/* v3 "through the viewfinder" (2026-10-24). Loaded after styles.css. Scroll scenes are sticky panels inside tall
   sections; v3.js writes each scene's progress into --p (0 to 1). Without script or with reduced motion every scene
   shows its finished state. */

.v3 { --night: #14110d; --cream: #f3ecdf; --red: #e0412b; }
.v3 .sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* shutter intro: two blades open once */
.shutter { position: fixed; inset: 0; z-index: 200; pointer-events: none; display: grid; grid-template-rows: 1fr 1fr; }
.shutter i { background: var(--night); transition: transform 1.1s cubic-bezier(.77,0,.18,1) .25s; }
.v3.go .shutter i:first-child { transform: translateY(-101%); }
.v3.go .shutter i:last-child { transform: translateY(101%); }

/* nav over the hero is light, solid after scroll */
.v3 .nav:not(.solid) { background: transparent; color: #fff; }
.v3 .nav:not(.solid) .nav-cta { background: #fff; color: var(--night); }
.v3 .nav:not(.solid) .nav-toggle span { background: #fff; }

/* hero: his footage full screen, seen through a viewfinder */
.vf-hero { position: relative; height: 100svh; min-height: 600px; overflow: hidden; background: var(--night); color: #fff; }
.vf-bg { position: absolute; inset: -4%; width: 108%; height: 108%; object-fit: cover; transform: translate3d(var(--mx, 0), var(--my, 0), 0) scale(calc(1.02 + var(--hp, 0) * .12)); }
.vf-tint { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(14,11,8,.72) 0%, rgba(14,11,8,.35) 45%, rgba(14,11,8,0) 70%), linear-gradient(0deg, rgba(14,11,8,.55), rgba(14,11,8,0) 40%); }
.vf-frame { position: absolute; inset: clamp(70px, 9vh, 96px) clamp(16px, 3vw, 40px) clamp(16px, 3vw, 40px); pointer-events: none; font: 500 .82rem/1 var(--sans); letter-spacing: .04em; font-variant-numeric: tabular-nums; }
.vf-frame .c { position: absolute; width: 34px; height: 34px; border: 0 solid rgba(255,255,255,.85); }
.vf-frame .tl { left: 0; top: 0; border-width: 2px 0 0 2px; }
.vf-frame .tr { right: 0; top: 0; border-width: 2px 2px 0 0; }
.vf-frame .bl { left: 0; bottom: 0; border-width: 0 0 2px 2px; }
.vf-frame .br { right: 0; bottom: 0; border-width: 0 2px 2px 0; }
.vf-frame .rec { position: absolute; left: 50px; top: 10px; display: flex; gap: 8px; align-items: center; }
.vf-frame .rec b { width: 10px; height: 10px; border-radius: 50%; background: var(--red); animation: rec 1.2s steps(2, start) infinite; }
.vf-frame .tc { position: absolute; right: 50px; top: 10px; }
.vf-frame .meta { position: absolute; right: 50px; bottom: 10px; opacity: .8; }
.vf-frame .focus { position: absolute; left: 72%; top: 46%; width: 92px; height: 92px; margin: -46px 0 0 -46px; border: 1.5px solid rgba(255,255,255,.7); transform: translate3d(var(--fx, 0), var(--fy, 0), 0); transition: transform .9s cubic-bezier(.2,.7,.2,1); }
@keyframes rec { to { visibility: hidden; } }
.vf-copy { position: absolute; left: clamp(36px, 6vw, 110px); bottom: clamp(56px, 12vh, 140px); max-width: 760px; }
.vf-copy h1 { font-size: clamp(3.4rem, 9.2vw, 9.6rem); line-height: .9; letter-spacing: -.035em; max-width: none; color: #fff; }
.vf-copy h1 .ln { display: block; overflow: hidden; padding-bottom: .06em; }
.vf-copy h1 .ln > span { display: block; transform: translateY(110%); transition: transform 1.2s cubic-bezier(.16,1,.3,1); }
.vf-copy h1 .ln + .ln > span { transition-delay: .12s; }
.v3.go .vf-copy h1 .ln > span { transform: none; transition-delay: 1s; }
.v3.go .vf-copy h1 .ln + .ln > span { transition-delay: 1.12s; }
.vf-lede { margin-top: 28px; max-width: 34ch; font-size: clamp(1.05rem, 1.4vw, 1.3rem); line-height: 1.5; color: rgba(255,255,255,.92); }
.vf-copy .actions { margin-top: 36px; align-items: center; gap: 28px; }
.vf-copy .btn-solid { background: #fff; color: var(--night); border-color: #fff; }
.vf-copy .btn-solid:hover { background: var(--brass); border-color: var(--brass); color: #fff; }
.vf-play { position: relative; color: #fff; text-decoration: none; font-weight: 500; display: inline-flex; gap: 14px; align-items: center; }
.vf-play::before { content: ""; width: 46px; height: 46px; border-radius: 50%; border: 1.5px solid #fff; flex: none; transition: background .3s; }
.vf-play::after { content: ""; position: absolute; left: 19px; top: 50%; margin-top: -7px; border-style: solid; border-width: 7px 0 7px 11px; border-color: transparent transparent transparent #fff; }
.vf-play:hover::before { background: rgba(255,255,255,.18); }
.vf-scroll { position: absolute; left: 50%; bottom: 22px; transform: translateX(-50%); font-size: .8rem; letter-spacing: .08em; color: rgba(255,255,255,.75); }
.vf-scroll::after { content: ""; display: block; width: 1.5px; height: 34px; margin: 10px auto 0; background: #fff; transform-origin: top; animation: drip 1.8s cubic-bezier(.6,0,.3,1) infinite; }
@keyframes drip { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); transform-origin: top; } 51% { transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }
.magnet { transition: transform .35s cubic-bezier(.2,.7,.2,1); transform: translate3d(var(--gx, 0), var(--gy, 0), 0); }

/* scenes */
.scene { position: relative; height: var(--len, 280vh); }
.scene .pin { position: sticky; top: 0; height: 100svh; overflow: hidden; }

/* exchange: the two sides travel in from the edges, the line between them draws */
.ex { --len: 260vh; background: var(--cream); }
.ex .pin { display: flex; flex-direction: column; justify-content: center; padding: 0 clamp(20px, 6vw, 110px); }
.ex-title { font-size: clamp(2.6rem, 6.6vw, 6.8rem); max-width: 16ch; line-height: .95; letter-spacing: -.03em; opacity: calc(.25 + var(--p, 1) * 3); }
.ex-for { color: var(--brass); }
.ex-cols { margin-top: clamp(36px, 7vh, 80px); display: grid; grid-template-columns: 1fr minmax(60px, 1fr) 1fr; align-items: center; gap: 24px; }
.ex-cols li { font: 400 clamp(1.8rem, 3.6vw, 3.4rem)/1.12 var(--serif); }
.ex-give { transform: translateX(calc((1 - min(1, var(--p, 1) * 2.2)) * -40vw)); }
.ex-get { text-align: right; transform: translateX(calc((1 - min(1, max(0, var(--p, 1) * 2.2 - .5))) * 40vw)); }
.ex-line { display: block; height: 3px; background: var(--brass); transform-origin: left; transform: scaleX(min(1, max(0, var(--p, 1) * 2.4 - 1.1))); }
.ex-line::after { content: ""; float: right; width: 14px; height: 14px; margin-top: -6px; border: solid var(--brass); border-width: 3px 3px 0 0; transform: rotate(45deg); }
.ex-note { margin-top: clamp(32px, 6vh, 64px); font-size: 1.1rem; opacity: min(1, max(0, var(--p, 1) * 3 - 1.8)); }

/* invoice: a sheet of paper whose total counts down to zero, then a stamp lands */
.inv { --len: 240vh; background: var(--night); }
.inv .pin { display: grid; place-items: center; padding: 20px; }
.inv-paper { width: min(560px, 100%); background: #fbf8f2; color: #211d18; padding: clamp(28px, 5vw, 56px); transform: rotate(calc(-3deg + var(--p, 1) * 3deg)) translateY(calc((1 - min(1, var(--p, 1) * 2)) * 30vh)); position: relative; }
.inv-head { font: 500 clamp(1.6rem, 3vw, 2.2rem)/1.1 var(--serif); margin-bottom: 28px; }
.inv-rows li, .inv-total { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; font-size: 1.1rem; font-variant-numeric: tabular-nums; }
.inv-rows li { box-shadow: 0 1px 0 #e6dccb; }
.inv-total { margin-top: 18px; font: 600 clamp(1.4rem, 3vw, 2rem)/1.2 var(--sans); }
.inv-total b { font-weight: 800; }
.inv-stamp { position: absolute; right: 8%; top: 42%; padding: 12px 18px; border: 3px solid var(--red); color: var(--red); font: 800 clamp(1rem, 2vw, 1.4rem)/1 var(--sans); text-transform: uppercase; letter-spacing: .04em;
  opacity: min(1, max(0, var(--p, 1) * 6 - 4.6)); transform: rotate(-12deg) scale(calc(2.4 - min(1, max(0, var(--p, 1) * 6 - 4.6)) * 1.4)); }
.inv-fine { margin-top: 22px; font-size: .85rem; color: #6b6255; }

/* reels: a strip that runs sideways while you scroll down */
.strip { --len: 320vh; background: var(--cream); }
.strip .pin { display: flex; flex-direction: column; justify-content: center; }
.strip-title { padding: 0 clamp(20px, 6vw, 110px); font-size: clamp(2.2rem, 5vw, 4.8rem); max-width: 16ch; letter-spacing: -.03em; }
.strip-row { margin-top: clamp(28px, 5vh, 56px); display: flex; gap: clamp(14px, 2vw, 28px); padding-left: clamp(20px, 6vw, 110px); width: max-content; transform: translate3d(calc(var(--p, 0) * var(--run, 0px) * -1), 0, 0); will-change: transform; }
.strip-row figure { width: clamp(200px, 22vw, 320px); flex: none; }
.strip-row video { width: 100%; aspect-ratio: 9 / 16; object-fit: cover; background: #ddd2bf; }
.strip-row figure:nth-child(even) { transform: translateY(calc(var(--p, 0) * -60px)); }
.strip-row figcaption { margin-top: 10px; font-size: .95rem; }

/* a picture that opens to the whole screen */
.open { --len: 220vh; background: var(--cream); }
.open .pin { display: grid; place-items: center; }
.open-pic { position: absolute; inset: 0; clip-path: inset(calc((1 - var(--p, 1)) * 26%) calc((1 - var(--p, 1)) * 30%) round calc((1 - var(--p, 1)) * 24px)); }
.open-pic img { width: 100%; height: 100%; object-fit: cover; transform: scale(calc(1.25 - var(--p, 1) * .25)); }
.open-pic::after { content: ""; position: absolute; inset: 0; background: rgba(14,11,8,.42); opacity: min(1, max(0, var(--p, 1) * 2.4 - 1.2)); }
.open-title { position: relative; color: #fff; font-size: clamp(2.6rem, 7.4vw, 7.6rem); text-align: center; max-width: 12ch; letter-spacing: -.03em; text-shadow: 0 2px 40px rgba(0,0,0,.35); opacity: min(1, max(0, var(--p, 1) * 2.4 - 1.2)); }

/* the live thing: pick the nights */
.nights { background: var(--cream); }
.nights-in { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(32px, 6vw, 96px); align-items: center; }
.nights-head p { margin-top: 22px; max-width: 36ch; font-size: 1.15rem; }
.nights-pick { display: block; margin-top: 44px; }
.nights-pick input { width: 100%; -webkit-appearance: none; appearance: none; height: 6px; background: linear-gradient(90deg, var(--brass) var(--fill, 50%), #e2d7c4 var(--fill, 50%)); border-radius: 3px; cursor: pointer; }
.nights-pick input::-webkit-slider-thumb { -webkit-appearance: none; width: 34px; height: 34px; border-radius: 50%; background: var(--paper); border: 4px solid var(--cream); box-shadow: 0 0 0 2px var(--paper); }
.nights-pick input::-moz-range-thumb { width: 28px; height: 28px; border-radius: 50%; background: var(--paper); border: 4px solid var(--cream); }
.nights-scale { display: flex; justify-content: space-between; margin-top: 14px; font-size: 1rem; font-variant-numeric: tabular-nums; }
.nights-scale i { font-style: normal; width: 34px; text-align: center; }
.nights-card { background: var(--night); color: var(--cream); padding: clamp(32px, 4vw, 56px); }
.nc-n { font-size: 1.1rem; color: #e3cfa3; }
.nc-n b { font: 500 clamp(4rem, 8vw, 7rem)/1 var(--serif); color: var(--cream); margin-right: 8px; }
.nights-card h3 { margin-top: 8px; font: 400 clamp(2rem, 3vw, 2.8rem)/1.1 var(--serif); }
.nights-card ul { margin-top: 22px; }
.nights-card li { padding: 7px 0; font-size: 1.15rem; }
.nights-card li::before { content: ""; display: inline-block; width: 8px; height: 8px; margin: 0 12px 2px 0; background: var(--brass); }
.nights-card li.new { animation: pop .5s cubic-bezier(.2,.7,.2,1); }
@keyframes pop { from { opacity: 0; transform: translateY(10px); } }
.nc-fine { margin-top: 20px; font-size: .95rem; color: #cfc4b2; }
.nights-card .btn { margin-top: 28px; background: var(--cream); color: var(--night); border-color: var(--cream); }
.nights-card .btn:hover { background: var(--brass); border-color: var(--brass); color: #fff; }

/* the film section sits between light scenes */
.v3 .film { background: var(--night); }

@media (max-width: 960px) {
  .nights-in { grid-template-columns: 1fr; }
  .ex-cols { grid-template-columns: 1fr; gap: 18px; }
  .ex-get { text-align: left; }
  .ex-mid { width: 50%; }
}
@media (max-width: 600px) {
  .vf-copy { left: 20px; right: 20px; bottom: 76px; }
  .vf-frame .meta { display: none; }
  .vf-frame .focus { left: 70%; top: 32%; width: 70px; height: 70px; margin: -35px 0 0 -35px; }
  .vf-tint { background: linear-gradient(0deg, rgba(14,11,8,.85) 0%, rgba(14,11,8,.35) 55%, rgba(14,11,8,.1) 100%); }
  .vf-copy .actions { gap: 18px; }
  .strip-row figure { width: 62vw; }
}
@media (prefers-reduced-motion: reduce) {
  .shutter { display: none; }
  .vf-copy h1 .ln > span { transform: none; transition: none; }
  .scene { height: auto; }
  .scene .pin { position: relative; height: auto; min-height: 100svh; padding-block: 80px; }
  .strip-row { width: auto; overflow-x: auto; transform: none; }
  .vf-frame .rec b, .vf-scroll::after { animation: none; }
}
