/* HertzVisuals page. Tokens come from ../shared/site.css. */

/* ---------- hero: a wall of scenes drifts under the title ---------- */
.hero { position: relative; height: 100svh; min-height: 40rem; overflow: hidden; background: var(--stage); display: grid; place-items: center; }
.hero__wall { --cw: calc((100vw + 12rem) / 5); position: absolute; inset: -12svh -6rem; display: flex; justify-content: center; gap: 14px; transform: rotate(-6deg) translateY(var(--lift, 0px)) scale(var(--zoom, 1)); will-change: transform; }
.hero__col { flex: none; width: var(--cw); display: flex; flex-direction: column; gap: 14px; animation: hv-drift calc(34s + var(--i) * 5s) linear infinite; animation-direction: var(--dir, normal); }
.hero__col:nth-child(even) { --dir: reverse; }
.hero__col video { width: 100%; height: auto; aspect-ratio: 9 / 16; object-fit: cover; }
@keyframes hv-drift { from { translate: 0 0; } to { translate: 0 calc(-50% - 7px); } }
.hero::after { content: ""; position: absolute; inset: 0; background: rgba(11, 12, 14, 0.46); pointer-events: none; }
.hero__content { position: relative; z-index: 1; display: grid; justify-items: center; gap: 2rem; text-align: center; padding-top: var(--header-h); }
.hero__title { font-size: clamp(3rem, 1rem + 7.4vw, 9.5rem); max-width: 14ch; }
.hero__say { font-size: var(--step-lead); line-height: 1.3; font-weight: 500; max-width: 36ch; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 0.75rem; justify-content: center; }
.hero__caption { position: absolute; z-index: 1; left: 0; right: 0; bottom: 1.5rem; text-align: center; color: var(--muted); max-width: none; }
@media (prefers-reduced-motion: reduce) { .hero__col { animation: none; } }
@media (prefers-reduced-motion: no-preference) {
  .js .hero__wall { animation: hv-wall-in 1400ms var(--ease-expo) both; }
  .js .hero__content > * { animation: hv-fade 800ms var(--ease-out) both; animation-delay: calc(200ms + var(--k, 0) * 90ms); }
  .js .hero__content > :nth-child(2) { --k: 1; } .js .hero__content > :nth-child(3) { --k: 2; }
}
@keyframes hv-wall-in { from { opacity: 0; scale: 1.12; } }
@keyframes hv-fade { from { opacity: 0; transform: translateY(14px); } }
@media (max-width: 56rem) {
  .hero__wall { --cw: calc((100vw + 8rem) / 3); }
  .hero__col:nth-child(n + 4) { display: none; }
  .hero__say { font-size: 1.125rem; }
  .hero__title { font-size: 9.2vw; }
}

/* ---------- live: the notes of VELVET (or your own MIDI) drawn in the browser ---------- */
.live { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); align-items: center; padding-block: var(--section); }
.live__screen { grid-column: 1 / span 6; position: relative; background: var(--stage); aspect-ratio: 4 / 5; max-height: 88svh; width: 100%; justify-self: start; }
.live__canvas, .live__fallback { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.js .live__fallback { display: none; }
.live__play { position: absolute; left: 1.5rem; bottom: 1.5rem; display: inline-flex; align-items: center; gap: 0.75rem; min-height: 3.5rem; padding: 0 1.4rem 0 1.1rem; background: var(--accent); color: var(--accent-ink); font-weight: 800; font-size: 1.0625rem; transition: transform var(--t-press) var(--ease-out), background-color var(--t-hover) ease; }
.live__play:active { transform: scale(0.96); }
.live__play .i-pause { display: none; }
.live__play[aria-pressed="true"] .i-pause { display: inline; }
.live__play[aria-pressed="true"] .i-play { display: none; }
.live__copy { grid-column: 8 / span 5; display: grid; gap: 2rem; align-content: center; }
.live__say { font-size: var(--step-body); }
.live__looks { display: flex; gap: 0.5rem; }
.live__looks button { min-height: 3rem; padding: 0 1.25rem; background: var(--surface); color: var(--ink); font-weight: 700; transition: background-color var(--t-hover) ease, color var(--t-hover) ease, transform var(--t-press) var(--ease-out); }
.live__looks button:active { transform: scale(0.96); }
.live__looks button[aria-pressed="true"] { background: var(--ink); color: var(--bg); }
.live__read { display: grid; gap: 1rem; padding: 1.75rem; background: var(--surface); }
.live__read p { display: flex; align-items: baseline; gap: 0.9rem; color: var(--muted); }
.live__read b { flex: none; min-width: 3.2ch; font-size: var(--step-lead); font-weight: 800; letter-spacing: -0.03em; line-height: 1.1; color: var(--ink); }
.live__read .live__chord { color: var(--accent); min-width: 5ch; }
.live__mine { display: grid; gap: 0.75rem; justify-items: start; }
#live-file:focus-visible + .live__mine-say, .live__mine:has(#live-file:focus-visible) .button--ghost { outline: 2px solid var(--accent); outline-offset: 3px; }
.live__dropsay { position: absolute; inset: 0; display: grid; place-items: center; max-width: none; font-size: var(--step-head); font-weight: 900; letter-spacing: -0.04em; color: var(--accent-ink); background: var(--accent); opacity: 0; pointer-events: none; transition: opacity var(--t-ui) ease; }
.live__screen.is-over .live__dropsay { opacity: 0.94; }
@media (hover: hover) and (pointer: fine) {
  .live__play:hover { background: var(--lavender); }
  .live__looks button[aria-pressed="false"]:hover { background: var(--surface-2); }
}
@media (max-width: 56rem) {
  .live { grid-template-columns: 1fr; row-gap: 2.5rem; }
  .live__screen, .live__copy { grid-column: 1; }
  .live__copy { order: -1; }
  .live__screen { max-height: none; }
}

/* ---------- scenes: cards crossing a held picture ---------- */
.scenes { position: relative; height: 240svh; }
.scenes__stage { position: sticky; top: 0; height: 100svh; overflow: hidden; background: var(--stage); }
.scenes__ground { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: brightness(0.38) saturate(1.1); transform: scale(1.06); }
.scenes__head { position: absolute; top: calc(var(--header-h) + 2.5rem); left: 0; width: min(46rem, 52vw); display: grid; gap: 1.25rem; z-index: 2; will-change: transform, opacity; }
.scenes__head p { max-width: 38ch; }
.scenes__clip { position: absolute; inset: 0 var(--margin); overflow: hidden; }
.scenes__track { position: absolute; top: 50%; left: 0; display: flex; gap: 40px; transform: translate3d(var(--x, 58vw), -42%, 0); will-change: transform; }
.scene-card { flex: none; width: min(720px, 52vw); height: min(560px, 60svh); display: grid; grid-template-rows: 68% 32%; background: var(--tone); }
.scene-card video { width: 100%; height: 100%; object-fit: cover; }
.scene-card__panel { transition: opacity 300ms ease; display: flex; justify-content: space-between; align-items: flex-end; gap: 1.5rem; padding: 1.75rem; }
.scene-card h3 { font-size: var(--step-lead); font-weight: 800; }
.scene-card p { font-size: 1rem; text-align: right; max-width: 24ch; }
@media (max-width: 56rem) {
  .scenes { height: auto; }
  .scenes__stage { position: static; height: auto; overflow: visible; padding-block: var(--section) 0; }
  .scenes__ground { position: static; width: 100%; height: auto; aspect-ratio: 16 / 10; transform: none; margin-top: 2rem; }
  .scenes__head { position: static; width: auto; }
  .scenes__clip { position: static; overflow: visible; }
  .scenes__track { position: static; transform: none; display: grid; gap: 1.5rem; padding: 1.5rem var(--margin) 0; }
  .scene-card { width: 100%; height: auto; grid-template-rows: auto auto; }
  .scene-card video { aspect-ratio: 4 / 3; height: auto; }
  .scene-card__panel { flex-direction: column; align-items: flex-start; gap: 0.5rem; padding: 1.25rem; }
  .scene-card p { text-align: left; }
}

/* ---------- fan: four cards dealt ---------- */
.fan { padding-block: var(--section); display: grid; gap: 3.5rem; }
.fan__head { display: grid; gap: 1.25rem; max-width: 44rem; }
.fan__cards { position: relative; height: 480px; }
.fan-card { position: absolute; top: 20px; left: calc(50% - 550px + var(--x) * 260px); width: 320px; height: 430px; padding: 28px; background: var(--c); color: var(--accent-ink); display: grid; grid-template-rows: auto 1fr auto; gap: 1rem; rotate: var(--r); transition: translate 420ms var(--ease-out), rotate 420ms var(--ease-out); }
.fan-card h3 { font-size: 2rem; font-weight: 900; text-transform: uppercase; letter-spacing: -0.03em; }
.fan-card video { width: 212px; height: 100%; min-height: 0; object-fit: cover; object-position: 50% 50%; }
.fan-card p { font-size: 1rem; line-height: 1.4; max-width: 212px; font-weight: 500; }
.fan-card:nth-child(1) { z-index: 1; } .fan-card:nth-child(2) { z-index: 2; } .fan-card:nth-child(3) { z-index: 3; } .fan-card:nth-child(4) { z-index: 4; }
@media (hover: hover) and (pointer: fine) {
  .fan-card:hover { translate: 0 -18px; rotate: 0deg; z-index: 5; }
}
@media (prefers-reduced-motion: no-preference) {
  .js .fan-card[data-reveal] { transform: translateY(160px); rotate: 0deg; transition: opacity 500ms var(--ease-out), transform 800ms var(--ease-expo), rotate 800ms var(--ease-expo), translate 420ms var(--ease-out); transition-delay: calc(var(--i, 0) * 90ms); }
  .js .fan-card[data-reveal].is-in { transform: none; rotate: var(--r); }
  .js .fan-card[data-reveal].is-in:hover { rotate: 0deg; }
}
@media (max-width: 72rem) {
  .fan__cards { height: auto; display: grid; grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr)); gap: 1rem; }
  .fan-card { position: relative; left: auto; top: auto; width: auto; height: 26rem; rotate: 0deg; }
  .js .fan-card[data-reveal].is-in { rotate: 0deg; }
}

/* ---------- formats: each picture slides over the last ---------- */
.formats__intro { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); align-items: end; padding-bottom: 4rem; }
.formats__intro h2 { grid-column: 1 / span 7; }
.formats__intro p { grid-column: 9 / span 4; }
.format { position: sticky; top: 0; height: 100svh; display: grid; place-items: center; background: var(--stage); overflow: hidden; }
.format--s { background: #14081c; }
.format--v { background: #1a0f08; }
.format video { max-width: 100%; }
.format--h video { width: 100%; height: 100%; object-fit: cover; }
.format--s video { height: 78svh; width: auto; aspect-ratio: 1; }
.format--v video { height: 84svh; width: auto; aspect-ratio: 9 / 16; }
.format figcaption { position: absolute; left: var(--margin); bottom: 2rem; font-size: 1.0625rem; font-weight: 700; padding: 0.75rem 1rem; background: rgba(11, 12, 14, 0.8); }
@media (max-width: 56rem) {
  .formats__intro { grid-template-columns: 1fr; row-gap: 1.25rem; }
  .formats__intro h2, .formats__intro p { grid-column: 1; }
  .format { height: 88svh; }
  .format--s video { width: 92vw; height: auto; }
  .format--v video { height: 72svh; }
  .format figcaption { font-size: 0.9375rem; right: var(--margin); }
}

/* ---------- pricing: plan names, one live figure ---------- */
.pricing { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); padding-block: var(--section); align-items: start; }
.pricing__names { grid-column: 1 / span 6; display: grid; justify-items: start; }
.pricing__names button { position: relative; font-size: clamp(3.5rem, 9vw, 9.5rem); font-weight: 900; letter-spacing: -0.05em; line-height: 1.02; color: #63666f; padding-left: 0.42em; transition: color var(--t-ui) ease; }
.pricing__names button::before { content: ""; position: absolute; left: 0; top: 50%; width: 0.22em; height: 0.22em; margin-top: -0.11em; background: var(--accent); border-radius: 50%; opacity: 0; transform: scale(0.6); transition: opacity var(--t-ui) ease, transform var(--t-ui) var(--ease-out); }
.pricing__names button[aria-selected="true"] { color: var(--ink); }
.pricing__names button[aria-selected="true"]::before { opacity: 1; transform: none; }
.pricing__names button:hover { color: var(--muted); }
.pricing__names button[aria-selected="true"]:hover { color: var(--ink); }
.pricing__stage { grid-column: 8 / span 5; padding-top: 1.5rem; }
.plan { display: grid; gap: 1.75rem; justify-items: start; }
.plan[hidden] { display: none; }
.plan__figure { font-size: clamp(3rem, 6.4vw, 6.5rem); font-weight: 900; letter-spacing: -0.05em; line-height: 0.95; display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 0.5rem; max-width: none; }
.plan__figure span { font-size: 1.125rem; font-weight: 500; letter-spacing: 0; color: var(--muted); }
.plan__say { font-size: 1.125rem; max-width: 34ch; }
@media (prefers-reduced-motion: no-preference) {
  .plan:not([hidden]) { animation: hv-fade 260ms var(--ease-out); }
}
@media (max-width: 56rem) {
  .pricing { grid-template-columns: 1fr; row-gap: 2rem; }
  .pricing__names, .pricing__stage { grid-column: 1; }
  .pricing__names { display: flex; gap: 1.5rem; }
  .pricing__names button { font-size: 16vw; }
  .pricing__stage { padding-top: 0; }
}

/* ---------- faq: question index, one answer ---------- */
.faq { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); padding-block: 0 var(--section); align-items: start; }
.faq__list { grid-column: 1 / span 5; }
.faq__title { font-size: 1.125rem; font-weight: 500; letter-spacing: 0; color: var(--muted); margin-bottom: 1.25rem; }
.faq__list ul { display: grid; gap: 0.35rem; }
.faq__list button { display: flex; align-items: baseline; gap: 0.9rem; width: 100%; padding: 0.55rem 0; text-align: left; font-size: 1.125rem; font-weight: 500; color: var(--muted); transition: color var(--t-hover) ease; }
.faq__list button::before { content: ""; flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--surface-2); transform: translateY(-2px); transition: background-color var(--t-hover) ease; }
.faq__list button[aria-expanded="true"] { color: var(--ink); }
.faq__list button[aria-expanded="true"]::before { background: var(--accent); }
.faq__list button:hover { color: var(--ink); }
.faq__a { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.faq__pane { grid-column: 7 / span 6; position: sticky; top: 7.5rem; padding-top: 2.75rem; }
.faq__answer { font-size: var(--step-lead); line-height: 1.3; letter-spacing: -0.02em; max-width: 28ch; }
@media (prefers-reduced-motion: no-preference) {
  .faq__answer.is-swap { animation: hv-fade 220ms var(--ease-out); }
}
@media (max-width: 56rem) {
  .faq { grid-template-columns: 1fr; }
  .faq__list { grid-column: 1; }
  .faq__pane { display: none; }
  .faq__list button[aria-expanded="true"] + .faq__a { position: static; width: auto; height: auto; overflow: visible; clip-path: none; padding: 0 0 1rem 1.4rem; font-size: 1.1875rem; line-height: 1.45; }
}

/* ---------- cta: one word is the button ---------- */
.cta { position: relative; display: block; height: 62svh; min-height: 22rem; background: var(--accent); color: var(--accent-ink); text-decoration: none; overflow: hidden; transition: background-color 0s, color 0s; }
.cta__say { position: absolute; top: 2rem; left: var(--margin); max-width: 30ch; font-size: var(--step-body); font-weight: 600; line-height: 1.35; }
.cta__arrow { position: absolute; top: 2rem; right: var(--margin); transition: transform var(--t-ui) var(--ease-out); }
.cta__word { position: absolute; left: var(--margin); right: var(--margin); bottom: 0.4rem; font-size: clamp(6rem, 33vw, 34rem); font-weight: 900; letter-spacing: -0.07em; line-height: 0.74; text-align: center; }
.cta:hover, .cta:focus-visible { background: var(--accent-ink); color: var(--accent); outline-offset: -6px; }
.cta:hover .cta__arrow { transform: translate(6px, -6px); }
@media (max-width: 56rem) {
  .cta { height: 46svh; }
  .cta__say { font-size: 1.0625rem; right: 5rem; }
  .cta__arrow { width: 32px; height: 32px; }
}

.scene-card.is-edge .scene-card__panel > * { opacity: 0; }
.scene-card__panel > * { transition: opacity 260ms ease; }
@media (prefers-reduced-motion: no-preference) { .js .fan-card[data-reveal] { opacity: 1; } }

/* ---------- headings rise out of a mask ---------- */
@media (prefers-reduced-motion: no-preference) {
  .js .head[data-reveal] { opacity: 1; transform: translateY(0.35em); clip-path: inset(0 0 100% 0); transition: clip-path 900ms var(--ease-expo), transform 900ms var(--ease-expo); }
  .js .head[data-reveal].is-in { transform: none; clip-path: inset(-0.2em -0.2em -0.3em -0.2em); }
}

/* ---------- verbs: one word at a time, over its own moving picture ---------- */
/* --p runs 0 to 1 while the verb is pinned (set by hv.js); letters rise in, then leave upward. */
.verbs { margin-top: var(--section); }
.verb { --p: 0.5; position: relative; height: 190svh; background: var(--stage); }
.verb__hold { position: sticky; top: 0; height: 100svh; overflow: hidden; display: grid; place-items: center; }
.verb__bg { position: absolute; inset: 0; transform: scale(calc(1.16 - var(--p) * 0.16)); filter: brightness(0.42) saturate(1.15); }
.verb__bg video { display: block; object-fit: cover; object-position: 50% 50%; }
.verb__bg--drop video { width: 100%; height: 100%; }
.verb__bg--pick { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; padding: 12px; align-content: center; }
.verb__bg--pick video { width: 100%; aspect-ratio: 1; height: auto; translate: 0 calc((1 - clamp(0, (var(--p) - var(--t) * 0.045) / 0.3, 1)) * 60svh); }
.verb__bg--export { display: flex; gap: 16px; align-items: center; justify-content: center; translate: calc((0.5 - var(--p)) * 24vw) 0; }
.verb__bg--export video { flex: none; height: 82svh; width: auto; aspect-ratio: 9 / 16; translate: 0 calc((var(--t) % 2 * 2 - 1) * (0.5 - var(--p)) * 18svh); }
.verb__word { position: relative; z-index: 1; font-size: clamp(6rem, 17vw, 19rem); font-weight: 900; letter-spacing: -0.06em; line-height: 0.9; text-align: center; scale: calc(0.9 + var(--p) * 0.16); }
.verb__word > span { display: inline-flex; overflow: hidden; padding: 0.04em 0.02em 0.1em; }
.verb__word > span span { display: inline-block; translate: 0 calc((1 - clamp(0, (var(--p) - 0.04 - var(--k) * 0.03) / 0.2, 1) - clamp(0, (var(--p) - 0.8 - var(--k) * 0.02) / 0.12, 1)) * 110%); }
.verb__say { position: absolute; left: var(--margin); bottom: 2rem; z-index: 1; max-width: 30rem; font-size: 1.125rem; padding: 1.25rem 1.5rem; background: rgba(11, 12, 14, 0.82); opacity: clamp(0, (var(--p) - 0.22) / 0.12, 1); translate: 0 calc((1 - clamp(0, (var(--p) - 0.22) / 0.12, 1)) * 24px); }
@media (max-width: 56rem) {
  .verb { height: 160svh; }
  .verb__word { font-size: 24vw; }
  .verb__bg--pick { grid-template-columns: repeat(2, 1fr); }
  .verb__bg--export video { height: 62svh; }
  .verb__say { right: var(--margin); font-size: 1rem; }
}

/* ---------- range: figures and the names rolling past ---------- */
.range { padding-block: var(--section) 0; overflow: hidden; }
.range__top { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); align-items: end; row-gap: 2.5rem; }
.range__top h2 { grid-column: 1 / span 7; }
.range__top p { grid-column: 9 / span 4; }
.range__figs { margin-top: 4rem; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--gutter); }
.range__figs p { display: flex; align-items: baseline; gap: 0.45rem; color: var(--muted); font-size: 1rem; max-width: none; }
.range__figs b { font-size: clamp(3rem, 5.4vw, 6rem); font-weight: 900; letter-spacing: -0.05em; line-height: 1; color: var(--ink); }
.range__rows { margin-top: 4rem; display: grid; gap: 0.5rem; }
.range__row { max-width: none; white-space: nowrap; font-size: clamp(2.5rem, 6.4vw, 7rem); font-weight: 900; letter-spacing: -0.045em; line-height: 1; transform: translateX(var(--rx, 0)); will-change: transform; }
.range__row span { color: #7a7d87; transition: color 250ms; }
.range__row span:nth-child(4n + 1) { color: var(--ink); }
.range__row--b span:nth-child(4n + 1) { color: var(--accent); }
@media (hover: hover) and (pointer: fine) { .range__row span:hover { color: var(--accent); } }
@media (max-width: 56rem) {
  .range__top { grid-template-columns: 1fr; }
  .range__top h2, .range__top p, .range__figs { grid-column: 1; }
  .range__figs { gap: 0.75rem; }
  .range__figs p { display: grid; font-size: 0.875rem; }
  .range__figs b { font-size: clamp(2rem, 9vw, 3rem); }
}

/* FILM: the walkthrough video */
.film { display: grid; gap: 1.5rem; justify-items: center; padding-block: var(--section) 0; }
.film__video { width: 100%; max-width: 1200px; height: auto; border-radius: 14px; background: #000; box-shadow: 0 0 0 1px rgba(255,255,255,.08), 0 30px 80px -30px rgba(0,0,0,.8); }
