/* Hindsight 360: the front page (templates/hindsight/home.html), after site.css whose names (--hs-…) it uses.
   Drawn for a 1440px screen and made to fit from a phone (375px) up: the rows of the wide page fold to one
   column on a phone and two on a tablet, the headlines shrink with the screen, nothing scrolls sideways. */

/* the headings and the body words the sections share */
.hs-h2 { font-size: clamp(28px, min(8vw, max(34px, 3.8vw)), 52px); line-height: 1.05; font-weight: 600; letter-spacing: -.02em; color: var(--hs-text); }
.hs-h3 { font-size: clamp(21px, 5.6vw, 23px); line-height: 1.26; font-weight: 600; color: var(--hs-text); }
.hs-body { font-size: 17px; line-height: 1.55; font-weight: 300; color: var(--hs-text); }

/* the top: the words on the left, the room on the right; on a phone the room comes under the words */
.hs-hero { overflow: hidden; }
@supports (overflow: clip) { .hs-hero { overflow: visible; overflow-x: clip; } }   /* the ring may reach past the page's side: cut there, no sideways scroll */
.hs-hero-in { display: flex; flex-wrap: wrap; align-items: center; gap: 44px 48px; padding-top: clamp(14px, 2.4vw, 28px); padding-bottom: clamp(64px, 8vw, 88px); }
.hs-hero-words { flex: 1 1 460px; min-width: 0; display: flex; flex-direction: column; gap: clamp(16px, 4vw, 22px); }
.hs-hero-where { font-size: clamp(17px, 4.6vw, 20px); line-height: 1.26; color: var(--hs-soft); }
.hs-hero-kicker { font-size: clamp(20px, 5.6vw, 28px); line-height: 1.26; color: var(--hs-text); margin-top: -6px; }
.hs-hero-title { font-size: clamp(50px, min(16.5vw, max(62px, 8.6vw)), 128px); line-height: .92; font-weight: 600; letter-spacing: -.025em; color: var(--hs-gold); margin: 4px 0 6px -4px; white-space: nowrap; }
.hs-hero-lead { font-size: clamp(18px, 4.8vw, 20px); line-height: 1.55; font-weight: 300; max-width: 540px; }
.hs-hero-act { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 26px; margin-top: 6px; }
.hs-text-link { font-size: 18px; font-weight: 500; color: var(--hs-text); text-underline-offset: 6px; padding: 12px 0; }
.hs-hero-list { list-style: none; margin: clamp(8px, 2vw, 18px) 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 12px clamp(22px, 6vw, 34px); font-size: clamp(18px, 4.8vw, 20px); line-height: 1.26; color: var(--hs-soft); }
.hs-hero-list li { display: flex; align-items: center; gap: 12px; }
.hs-hero-list svg { flex: none; }
/* the room, the dashed ring turning slowly behind it, the streak of light going round it */
.hs-hero-art { flex: 1 1 500px; min-width: 0; position: relative; max-width: min(660px, 86vw); margin: 0 auto; }
.hs-hero-ring { position: absolute; left: -7%; top: -6%; width: 114%; height: auto; }
.hs-ring { transform-origin: 50% 50%; transform-box: fill-box; animation: hs-spin 160s linear infinite; }
.hs-hero-float { position: relative; animation: hs-float 7s ease-in-out infinite; }
.hs-hero-img {
  display: block; width: 100%; height: auto;
  /* the picture's four edges fade into the page */
  -webkit-mask-image: linear-gradient(to right, transparent 0, #000 7%, #000 93%, transparent 100%), linear-gradient(to bottom, transparent 0, #000 6%, #000 94%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(to right, transparent 0, #000 7%, #000 93%, transparent 100%), linear-gradient(to bottom, transparent 0, #000 6%, #000 94%, transparent 100%);
  mask-composite: intersect;
}
.hs-hero-streak { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.hs-orbit { animation: hs-orbit 7s linear infinite; filter: drop-shadow(0 0 6px #F7CF5A); }
@keyframes hs-orbit { to { stroke-dashoffset: -1239; } }
@keyframes hs-spin { to { transform: rotate(360deg); } }
@keyframes hs-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@keyframes hs-nudge { 0%, 100% { transform: translate(-50%, -50%) scale(1); } 50% { transform: translate(-50%, -50%) scale(1.08); } }

/* the four words under the top */
.hs-band { border-top: 1px solid var(--hs-line-soft); border-bottom: 1px solid var(--hs-line-soft); }
.hs-band-list { list-style: none; margin-top: 0; margin-bottom: 0; padding-top: 20px; padding-bottom: 20px; display: grid; grid-template-columns: auto auto; justify-content: space-between; gap: 8px 20px; font-size: 15px; line-height: 1.26; letter-spacing: .04em; color: var(--hs-soft); }
@media (min-width: 760px) {
  .hs-band-list { display: flex; flex-wrap: wrap; gap: 10px 32px; padding-top: 26px; padding-bottom: 26px; font-size: 16px; }
}

/* the dark part: the wall to drag across */
.hs-inside { background: var(--hs-dark); color: var(--hs-dark-ink); padding-top: clamp(56px, 9vw, 104px); padding-bottom: clamp(52px, 8.4vw, 96px); }
.hs-inside-in { display: flex; flex-direction: column; gap: clamp(26px, 4vw, 40px); }
.hs-inside-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 18px 56px; }
.hs-inside-title { flex: 1 1 520px; min-width: 0; font-size: clamp(31px, min(8.8vw, max(38px, 4.4vw)), 62px); line-height: 1.02; font-weight: 600; letter-spacing: -.02em; color: var(--hs-gold); }
.hs-inside-lead { flex: 1 1 380px; min-width: 0; max-width: 470px; font-size: clamp(17px, 4.6vw, 19px); line-height: 1.55; font-weight: 300; color: var(--hs-dark-ink); }
.hs-inside-note { font-size: clamp(16px, 4.4vw, 18px); line-height: 1.5; font-weight: 300; color: var(--hs-dark-muted); max-width: 760px; }

/* The wall. Two drawings, one on the other: the finished wall on top is cut away from the left as far as
   --hs-reveal, and the gold handle stands at the cut. 38% here, so it looks right before home.js runs or without it;
   home.js moves it. The slider that carries the number lies over the whole picture, unseen: it is what the
   keyboard and a screen reader use. */
.hs-wall { --hs-reveal: 38%; position: relative; border-radius: clamp(12px, 2vw, 18px); overflow: hidden; background: #1F1F1E; box-shadow: 0 30px 80px rgba(0, 0, 0, .45); -webkit-tap-highlight-color: transparent; }
.hs-wall-layer { display: block; width: 100%; height: auto; aspect-ratio: 1200 / 560; }
.hs-wall-top { position: absolute; inset: 0; clip-path: inset(0 0 0 var(--hs-reveal)); }
.hs-wall-range { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; }
.hs-wall-handle { position: absolute; top: 0; bottom: 0; left: var(--hs-reveal); width: 0; pointer-events: none; }
.hs-wall-bar { position: absolute; top: 0; bottom: 0; left: -2px; width: 4px; background: var(--hs-gold); }
.hs-wall-knob { position: absolute; top: 50%; left: 0; width: 44px; height: 44px; border-radius: 50%; background: var(--hs-gold); border: 3px solid #fff; box-shadow: 0 6px 18px rgba(0, 0, 0, .4); display: flex; align-items: center; justify-content: center; transform: translate(-50%, -50%); animation: hs-nudge 2.4s ease-in-out infinite; }
.hs-wall-knob svg { width: 22px; height: 22px; }
.hs-wall-range:focus-visible + .hs-wall-handle .hs-wall-knob { outline: 4px solid #fff; outline-offset: 3px; }
/* with home.js running the whole picture follows the mouse or the finger; a finger moving up or down still scrolls the page */
.hs-wall-live { cursor: ew-resize; touch-action: pan-y; -webkit-user-select: none; user-select: none; }
.hs-wall-live .hs-wall-range { pointer-events: none; }
/* the little name tags in the drawing are sized for a wide screen: on a narrower picture they are drawn larger,
   each growing from the side that keeps it inside the picture, so they can still be read */
.hs-tag { transform-box: fill-box; transform-origin: center; transform: scale(2.2); }
.hs-tag-e { transform-origin: right center; }
.hs-tag-sw { transform-origin: left bottom; }
.hs-tag-se { transform-origin: right bottom; }
@media (min-width: 520px) { .hs-tag { transform: scale(1.6); } }
@media (min-width: 760px) {
  .hs-tag { transform: scale(1.25); }
  .hs-wall-knob { width: 56px; height: 56px; border-width: 4px; }
  .hs-wall-knob svg { width: 26px; height: 26px; }
}
@media (min-width: 1000px) { .hs-tag { transform: none; } }

/* why scan: four reasons under a gold line */
.hs-why { padding-top: clamp(56px, 9vw, 104px); padding-bottom: clamp(52px, 8vw, 88px); }
.hs-why-in { display: flex; flex-direction: column; gap: clamp(30px, 5vw, 52px); }
.hs-why-title { max-width: 720px; }
.hs-why-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 30px 36px; }
.hs-why-item { display: flex; flex-direction: column; gap: 12px; padding-top: 22px; border-top: 3px solid var(--hs-gold); }

/* how it works: four steps, each under its dashed ring */
.hs-how, .hs-price { background: var(--hs-card); border-top: 1px solid var(--hs-line-soft); border-bottom: 1px solid var(--hs-line-soft); padding-top: clamp(52px, 8.4vw, 96px); padding-bottom: clamp(52px, 8.4vw, 96px); }
.hs-how-in { display: flex; flex-direction: column; gap: clamp(32px, 5vw, 56px); }
.hs-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 36px 32px; }
.hs-step { display: flex; flex-direction: column; gap: 14px; }
.hs-step svg { display: block; flex: none; width: 64px; height: 64px; }
@media (min-width: 600px) {
  .hs-why-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px 36px; }
  .hs-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 44px 32px; }
}
@media (min-width: 1100px) {
  .hs-why-grid, .hs-steps { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* the record is yours: the words, and the three things you get */
.hs-keep { padding-top: clamp(56px, 9vw, 104px); padding-bottom: clamp(56px, 9vw, 104px); }
.hs-keep-in { display: flex; flex-wrap: wrap; align-items: center; gap: 40px 72px; }
.hs-keep-words { flex: 1 1 440px; min-width: 0; display: flex; flex-direction: column; gap: clamp(16px, 4vw, 22px); }
.hs-keep-words p { font-size: clamp(17px, 4.6vw, 19px); line-height: 1.55; font-weight: 300; max-width: 520px; }
.hs-keep-words .hs-keep-strong { font-weight: 500; }
.hs-keep-list { flex: 1 1 420px; min-width: 0; max-width: 520px; list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.hs-keep-item { display: flex; align-items: center; gap: clamp(14px, 4vw, 18px); padding: clamp(16px, 4.4vw, 20px) clamp(16px, 4.8vw, 22px); background: var(--hs-card); border: 1px solid var(--hs-line-soft); border-radius: 16px; box-shadow: 0 10px 30px rgba(43, 43, 42, .06); }
.hs-keep-item svg { flex: none; }
.hs-keep-item div { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.hs-keep-name { font-size: 19px; line-height: 1.26; font-weight: 600; color: var(--hs-text); }
.hs-keep-what { font-size: 16px; line-height: 1.3; font-weight: 300; color: var(--hs-muted); }

/* the price, and the box that works it out */
.hs-price-in { display: flex; flex-wrap: wrap; align-items: center; gap: 36px 72px; }
.hs-price-words { flex: 1 1 420px; min-width: 0; display: flex; flex-direction: column; gap: clamp(16px, 4vw, 20px); }
.hs-price-title { font-size: clamp(40px, min(11.6vw, max(44px, 5.6vw)), 84px); line-height: .98; font-weight: 600; letter-spacing: -.025em; color: var(--hs-text); }
.hs-price-lead { font-size: clamp(17px, 4.6vw, 19px); line-height: 1.55; font-weight: 300; max-width: 480px; }
/* the sliding scale, when there is one: each range and its price a square foot */
.hs-scale { max-width: 480px; border-top: 1px solid var(--hs-line); }
.hs-scale > div { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 10px 2px; border-bottom: 1px solid var(--hs-line-soft); font-size: clamp(17px, 4.6vw, 19px); line-height: 1.3; }
.hs-scale dt { font-weight: 300; min-width: 0; }
.hs-scale dd { margin: 0; font-weight: 600; color: var(--hs-text); font-variant-numeric: tabular-nums; white-space: nowrap; }
.hs-calc { flex: 1 1 420px; min-width: 0; max-width: 540px; padding: clamp(24px, 6vw, 34px) clamp(20px, 6vw, 34px) clamp(22px, 5.4vw, 30px); background: var(--hs-ground); border: 1px solid var(--hs-line-soft); border-radius: 22px; display: flex; flex-direction: column; gap: 16px; }
.hs-calc-label { font-size: 18px; line-height: 1.26; font-weight: 500; color: var(--hs-text); }
.hs-calc-out { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 16px; }
.hs-calc-sf { font-size: 22px; line-height: 1.26; color: var(--hs-muted); }
.hs-calc-price { font-size: clamp(54px, 15vw, 64px); line-height: 1; font-weight: 600; letter-spacing: -.02em; color: var(--hs-text); font-variant-numeric: tabular-nums; }
.hs-calc-note { font-size: 15px; line-height: 1.5; font-weight: 300; color: var(--hs-muted); }
.hs-calc .hs-button { min-height: 56px; margin-top: 6px; font-size: 18px; }
/* the slider: a thin grey track and a gold knob */
.hs-range { -webkit-appearance: none; appearance: none; width: 100%; height: 44px; margin: 0; background: transparent; cursor: pointer; }
.hs-range::-webkit-slider-runnable-track { height: 6px; border-radius: 3px; background: var(--hs-rule); }
.hs-range::-moz-range-track { height: 6px; border-radius: 3px; background: var(--hs-rule); }
.hs-range::-webkit-slider-thumb { -webkit-appearance: none; width: 30px; height: 30px; border-radius: 50%; background: var(--hs-gold); border: 4px solid #fff; box-shadow: 0 2px 8px rgba(0, 0, 0, .28); margin-top: -12px; }
.hs-range::-moz-range-thumb { width: 22px; height: 22px; border-radius: 50%; background: var(--hs-gold); border: 4px solid #fff; box-shadow: 0 2px 8px rgba(0, 0, 0, .28); }
.hs-range:focus-visible { outline: 3px solid var(--hs-ink); outline-offset: 4px; border-radius: 8px; }

/* the questions: one column, two on a wide screen */
.hs-questions { padding-top: clamp(56px, 9vw, 104px); padding-bottom: clamp(52px, 8.4vw, 96px); }
.hs-questions-in { display: flex; flex-direction: column; gap: clamp(26px, 4.4vw, 48px); }
.hs-qa { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0 72px; }
.hs-qa-item { display: flex; flex-direction: column; gap: 10px; padding: clamp(20px, 5vw, 26px) 0; border-top: 1px solid var(--hs-rule); }
.hs-qa-item .hs-h3 { font-size: clamp(20px, 5.4vw, 21px); }
@media (min-width: 1000px) { .hs-qa { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* the gold band at the end */
.hs-cta { background: var(--hs-gold); padding-top: clamp(48px, 7.4vw, 84px); padding-bottom: clamp(48px, 7.4vw, 84px); }
.hs-cta-in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 26px 56px; }
.hs-cta-title { flex: 1 1 520px; min-width: 0; font-size: clamp(32px, min(9.4vw, max(40px, 5vw)), 72px); line-height: 1; font-weight: 600; letter-spacing: -.025em; color: var(--hs-ink); }
.hs-cta-act { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 26px; }
.hs-cta-act .hs-button { min-height: 60px; padding-left: 34px; padding-right: 34px; }
.hs-cta-call { font-size: 20px; font-weight: 500; color: var(--hs-ink); text-underline-offset: 6px; padding: 12px 0; }
.hs-cta-call:hover { color: #000; }

/* nothing turns, floats or pulses for someone who asked for less motion */
@media (prefers-reduced-motion: reduce) {
  .hs-orbit, .hs-ring, .hs-hero-float, .hs-wall-knob { animation: none; }
}
