/* ============================================================ LUEVIA LANDING v3
   "The camera roll, finished."
   A gallery in the dark: drifting wall of unedited phone photos, one photo
   finished live, three signatures as physical prints, the whole roll grading
   itself in a wave. Instrument Serif display + Geist + Geist Mono.
   Motion contract: ONLY transform + opacity ever animate. 60fps floor.
   =========================================================================== */

:root {
  --ink: #0e0e0d;
  --ink-2: #161512;
  --paper: #f3efe7;
  --on-paper: #171614;
  --sub-dark: #6e685c;
  --on-ink: #f5f5f4;
  --sub: #a8a29e;
  --amber: #d4a373;
  --amber-dark: #8a6534;
  --line-ink: rgba(255, 255, 255, 0.09);
  --line-paper: rgba(23, 22, 20, 0.14);
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --wipe-skew: 6deg;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background: var(--ink);
  color: var(--on-ink);
  font-family: "Geist", system-ui, -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { font: inherit; border: 0; background: none; cursor: pointer; color: inherit; }
::selection { background: var(--amber); color: var(--ink); }

/* ------------------------------------------------------------ type */
.display, .num {
  font-family: "Instrument Serif", Georgia, serif;
  font-weight: 400;
  letter-spacing: -0.01em;
}
.display { font-size: clamp(2.85rem, 6.6vw, 5.6rem); line-height: 1.0; text-wrap: balance; }
.display em { font-style: italic; }
.mono {
  font-family: "Geist Mono", ui-monospace, monospace;
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.eyebrow { color: var(--sub); font-size: 11px; }
.lede { margin-top: 20px; color: var(--sub); font-size: clamp(1.02rem, 1.35vw, 1.2rem); max-width: 30em; text-wrap: pretty; }
.dim { color: var(--sub); }
.amber { color: var(--amber); }
.amber-dark { color: var(--amber-dark); }
.fineprint { font-size: 10px; color: var(--sub); }

.container { width: 100%; max-width: 1140px; margin-inline: auto; padding-inline: clamp(20px, 4vw, 48px); }
.container-wide { width: 100%; max-width: 1340px; margin-inline: auto; padding-inline: clamp(14px, 2.5vw, 36px); }

/* ------------------------------------------------------------ buttons / chips */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  height: 54px; padding: 0 30px; border-radius: 999px;
  font-weight: 500; font-size: 16px; white-space: nowrap;
  transition: transform 0.18s var(--ease-out);
}
.btn:hover { transform: scale(1.03); }
.btn:active { transform: scale(0.97); }
.btn-sm { height: 42px; padding: 0 22px; font-size: 14px; }
.btn-lg { height: 64px; padding: 0 44px; font-size: 18px; }
.btn-paper { background: var(--on-ink); color: var(--ink); }
.btn-ghost { color: var(--on-ink); box-shadow: inset 0 0 0 1px rgba(255,255,255,0.24); }
.btn-ink { background: var(--ink); color: var(--on-ink); }

.chip {
  display: inline-block; padding: 6px 13px; border-radius: 999px;
  background: rgba(10, 10, 9, 0.6); color: var(--on-ink);
  font-size: 10px; letter-spacing: 0.2em;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.16);
}
.chip-amber { color: var(--amber); box-shadow: inset 0 0 0 1px rgba(212, 163, 115, 0.5); }

/* ============================================================ NAV */
.nav { position: fixed; top: 0; left: 0; right: 0; z-index: 80; }
.nav-pill {
  max-width: 1140px; margin: 14px auto 0; padding: 0 10px 0 18px;
  height: 56px; display: flex; align-items: center; justify-content: space-between;
  border-radius: 999px; background: rgba(14, 14, 13, 0.74);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(12px);
  margin-inline: clamp(12px, 3vw, auto);
}
@media (min-width: 1200px) { .nav-pill { margin-inline: auto; } }
.nav-brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; font-size: 19px; letter-spacing: -0.02em; }
.nav-brand .mark { width: 24px; height: 24px; }
.nav-links { display: flex; gap: 28px; font-size: 14px; font-weight: 500; color: var(--sub); }
.nav-links a:hover { color: var(--on-ink); }
@media (max-width: 760px) { .nav-links { display: none; } }
/* keep anchored sections clear of the fixed nav pill */
section[id], #top { scroll-margin-top: 84px; }

/* ============================================================ WIPE SYSTEM
   The product's signature: a slanted edge sweeping a finished grade across
   the frame. Wrapper skews+translates, inner counter-skews+counter-translates;
   the photo stays still while the diagonal clipping edge moves. */
.wipe { position: absolute; inset: 0 -9%; overflow: hidden; }
.wipe-inner { position: absolute; inset: 0 -9%; }
.wipe img { width: 100%; height: 100%; object-fit: cover; }

/* ============================================================ ACT I · WALL */
.act-wall { position: relative; min-height: 100svh; display: flex; align-items: center; overflow: hidden; }
.wall {
  position: absolute; inset: -22%;
  display: flex; gap: 16px;
  transform: rotate(-4deg);
}
.wall-col { flex: 1; min-width: 0; overflow: hidden; }
.col-track { display: flex; flex-direction: column; gap: 18px; animation: drift var(--dur, 70s) linear infinite; will-change: transform; }
/* stagger the columns so tiles never align into a grid — a stream, not a mockup */
.wall-col:nth-child(1) .col-track { margin-top: -48px; }
.wall-col:nth-child(2) .col-track { margin-top: -150px; }
.wall-col:nth-child(3) .col-track { margin-top: -16px; }
.wall-col:nth-child(4) .col-track { margin-top: -104px; }
.wall-col:nth-child(5) .col-track { margin-top: -70px; }
/* the wall sleeps when scrolled past — no offscreen compositor work */
.act-wall.asleep .col-track { animation-play-state: paused; }
.wall-col:nth-child(even) .col-track { animation-direction: reverse; }
@keyframes drift { from { transform: translateY(0); } to { transform: translateY(-50%); } }
.wt { position: relative; border-radius: 6px; overflow: hidden; }
.wt img { width: 100%; height: auto; opacity: 1; }
/* no filename chrome — a wall of photographs, not a file browser */
.wt span { display: none; }
@media (max-width: 700px) {
  .wall { gap: 9px; }
  .wall-col:nth-child(n + 4) { display: none; }
  .col-track { gap: 9px; }
  /* lighter frost on phones to keep the drift at 60fps */
  .wall-frost { -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); height: 24%; }
}
.wall-scrim {
  position: absolute; inset: 0; z-index: 2;
  background:
    /* left anchor: text sits on solid dark, photos breathe on the right */
    linear-gradient(to right,
      rgba(14,14,13,0.97) 0%, rgba(14,14,13,0.88) 28%,
      rgba(14,14,13,0.46) 56%, rgba(14,14,13,0.18) 82%, rgba(14,14,13,0.3) 100%),
    /* top + bottom vignette: keeps the nav and fineprint off busy photos */
    linear-gradient(to bottom,
      rgba(14,14,13,0.62) 0%, rgba(14,14,13,0) 20%,
      rgba(14,14,13,0) 68%, rgba(14,14,13,0.5) 100%);
}
/* soft frosted melt at the bottom edge — the drifting wall blurs and dissolves
   into the next section instead of hard-cutting. Static blur (no animated
   filter), masked so it only touches the lower strip. */
.wall-frost {
  position: absolute; left: 0; right: 0; bottom: 0; height: 28%;
  z-index: 2; pointer-events: none;
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  -webkit-mask-image: linear-gradient(to top, #000 0%, #000 20%, transparent 100%);
  mask-image: linear-gradient(to top, #000 0%, #000 20%, transparent 100%);
  background: linear-gradient(to top, var(--ink) 3%, rgba(14,14,13,0) 100%);
}
.wall-copy { position: relative; z-index: 3; width: 100%; max-width: 1140px; margin-inline: auto; padding: clamp(96px, 16vh, 160px) clamp(20px, 4vw, 48px) clamp(72px, 12vh, 120px); }
.wall-copy .display { margin-top: 18px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.wall-copy .fineprint { margin-top: 24px; }
/* on phones the copy spans the full width and sits over the drifting photos —
   give it a calm reading zone so the headline never fights the wall. The scrim
   only anchors the left third, which is enough on desktop but not on mobile. */
@media (max-width: 700px) {
  .wall-copy::before {
    content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
    background: linear-gradient(180deg,
      rgba(14, 14, 13, 0) 0%, rgba(14, 14, 13, 0.5) 13%,
      rgba(14, 14, 13, 0.72) 38%, rgba(14, 14, 13, 0.72) 72%,
      rgba(14, 14, 13, 0.46) 90%, rgba(14, 14, 13, 0) 100%);
  }
  .wall-copy .eyebrow { letter-spacing: 0.13em; }
}

/* ============================================================ ACT II · THEATER */
.act-one { padding-block: clamp(40px, 6vh, 80px) clamp(72px, 10vh, 120px); }
.theater { display: flex; flex-direction: column; align-items: center; margin-top: clamp(36px, 6vh, 64px); }
.t-frame {
  position: relative; width: min(1100px, 94vw);
  border-radius: 18px; overflow: hidden;
  opacity: 0; transform: translateY(40px);
  transition: opacity 0.9s ease, transform 1s var(--ease-out);
}
.theater.t-in .t-frame { opacity: 1; transform: none; }
/* while swapping looks, snap the wipe back without animating out */
.theater.t-switching .t-frame .wipe,
.theater.t-switching .t-frame .wipe-inner { transition: none; }
.t-frame .t-before { width: 100%; height: auto; }
.t-frame .wipe,
.t-frame .wipe-inner { transition: transform 1.15s var(--ease-out); will-change: transform; }
.t-frame .wipe { transform: translateX(-118%) skewX(calc(var(--wipe-skew) * -1)); }
.t-frame .wipe-inner { transform: translateX(118%) skewX(var(--wipe-skew)); }
.theater.t-go .t-frame .wipe { transform: translateX(0) skewX(calc(var(--wipe-skew) * -1)); }
.theater.t-go .t-frame .wipe-inner { transform: translateX(0) skewX(var(--wipe-skew)); }

/* analyzing pulse — a breathing ring, never a spinner */
.t-frame::after {
  content: ""; position: absolute; inset: 10px; border-radius: 12px;
  border: 1.5px solid rgba(245, 245, 244, 0.65);
  opacity: 0; pointer-events: none;
}
.theater.t-analyzing .t-frame::after { animation: pulse 1.3s ease-in-out infinite; }
@keyframes pulse { 0%, 100% { opacity: 0; } 50% { opacity: 0.8; } }

/* the shimmer that rides the reveal edge */
.t-sweep {
  position: absolute; inset: -4% 0; pointer-events: none; opacity: 0;
  background: linear-gradient(100deg, transparent 38%, rgba(255,255,255,0.14) 50%, transparent 62%);
  transform: translateX(-80%);
}
.theater.t-go .t-sweep { animation: sweep 1.15s var(--ease-out) both; }
@keyframes sweep {
  0% { opacity: 0; transform: translateX(-80%); }
  18% { opacity: 1; } 82% { opacity: 1; }
  100% { opacity: 0; transform: translateX(80%); }
}

.t-chip { position: absolute; left: 16px; top: 16px; }

.t-thumbs {
  display: flex; gap: 12px; margin-top: 18px;
  opacity: 0; transform: translateY(22px);
  transition: opacity 0.7s ease, transform 0.7s var(--ease-out);
}
.theater.t-settled .t-thumbs { opacity: 1; transform: none; }
.t-thumb {
  position: relative; padding: 0; border: 0; background: none; cursor: pointer;
  display: block; border-radius: 10px;
  transition: transform 0.2s var(--ease-out);
}
.t-thumb img { width: clamp(86px, 10vw, 132px); height: auto; border-radius: 10px; display: block; transition: box-shadow 0.25s ease; }
.t-thumb span { display: block; margin-top: 7px; text-align: center; font-size: 8px; color: var(--sub); transition: color 0.2s ease; }
.t-thumb:hover { transform: translateY(-3px); }
.t-thumb.is-active img { box-shadow: 0 0 0 2px var(--amber); }
.t-thumb.is-active span { color: var(--on-ink); }
.t-thumb:focus-visible { outline: 2px solid var(--amber); outline-offset: 3px; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 3vw, 44px); margin-top: clamp(40px, 7vh, 72px); padding-top: 24px; border-top: 1px solid var(--line-ink); }
.steps .mono { color: var(--sub); font-size: 11px; }
.steps p { margin-top: 8px; color: var(--sub); font-size: 15px; max-width: 24em; }
@media (max-width: 760px) { .steps { grid-template-columns: 1fr; gap: 18px; } }

/* ============================================================ ACT III · FAN */
.act-fan { padding-block: clamp(72px, 10vh, 130px); overflow: hidden; }
.fan {
  position: relative; margin-top: clamp(44px, 7vh, 80px);
  height: clamp(460px, 64vh, 600px);
  display: flex; justify-content: center; align-items: center;
}
.print {
  position: absolute;
  width: min(330px, 76vw);
  background: var(--paper); color: var(--on-paper);
  padding: 12px 12px 0; border-radius: 6px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
  transform: translateX(var(--tx, 0)) rotate(var(--r, 0deg)) scale(var(--s, 0.95));
  transition: transform 0.95s var(--ease-out);
  outline: none;
}
.print img { width: 100%; height: auto; border-radius: 3px; }
.print figcaption { padding: 12px 6px 16px; display: flex; flex-direction: column; gap: 3px; }
.p-name { font-size: 9px; color: var(--sub-dark); }
.p-line { font-family: "Instrument Serif", Georgia, serif; font-style: italic; font-size: 20px; line-height: 1.2; }
.p-ops { font-size: 8.5px; color: var(--sub-dark); letter-spacing: 0.12em; }
/* deck → fan */
.print-a { --r: -2deg; z-index: 1; }
.print-b { --r: 1deg; z-index: 2; }
.print-c { --r: 3deg; z-index: 3; }
.fan.in .print-a { --tx: -106%; --r: -6.5deg; --s: 1; }
.fan.in .print-b { --tx: 0; --r: 1.5deg; --s: 1; }
.fan.in .print-c { --tx: 106%; --r: 6.5deg; --s: 1; }
.fan.in .print:hover, .fan.in .print:focus-visible { --r: 0deg; --s: 1.05; z-index: 6; }

@media (max-width: 860px) {
  .fan {
    height: auto; justify-content: flex-start; align-items: stretch;
    overflow-x: auto; scroll-snap-type: x mandatory;
    padding: 12px clamp(20px, 6vw, 48px) 28px; gap: 16px;
    -webkit-overflow-scrolling: touch;
  }
  .print { position: static; flex: 0 0 74vw; transform: rotate(-1.2deg) !important; scroll-snap-align: center; }
  .print:nth-child(2) { transform: rotate(1.2deg) !important; }
}

/* ============================================================ ACT IV · WAVE */
.act-roll { padding-block: clamp(72px, 10vh, 130px); }
.wave { position: relative; margin-top: clamp(36px, 6vh, 64px); overflow: hidden; border-radius: 16px; }
.wave-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; }
.wv { position: relative; aspect-ratio: 1; border-radius: 8px; overflow: hidden; }
.wv img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.wv .after { opacity: 0; transition: opacity 0.6s ease var(--d, 0s); }
.wave.run .wv .after { opacity: 1; }
.wave-shimmer {
  position: absolute; inset: -6% 0; pointer-events: none; opacity: 0;
  background: linear-gradient(100deg, transparent 40%, rgba(255,255,255,0.1) 50%, transparent 60%);
  transform: translateX(-85%);
}
.wave.run .wave-shimmer { animation: waveSweep 2s ease-in-out 0.15s both; }
@keyframes waveSweep {
  0% { opacity: 0; transform: translateX(-85%); }
  15% { opacity: 1; } 85% { opacity: 1; }
  100% { opacity: 0; transform: translateX(85%); }
}
@media (max-width: 700px) {
  .wave-grid { grid-template-columns: repeat(4, 1fr); gap: 6px; }
  .wv:nth-child(n + 17) { display: none; }
}

.studio { margin-top: clamp(48px, 8vh, 88px); padding-top: clamp(28px, 4vh, 44px); border-top: 1px solid var(--line-ink); }
.studio .eyebrow { color: var(--sub-dark); }
.studio-line { margin-top: 16px; font-size: clamp(1.05rem, 1.5vw, 1.3rem); max-width: 38em; color: var(--sub); }
.studio-line, .studio .eyebrow { display: block; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 3vw, 40px); margin-top: clamp(28px, 4vh, 44px); }
.stats dt { font-size: 10px; color: var(--sub-dark); }
.stats dd { margin-top: 8px; font-family: "Instrument Serif", Georgia, serif; font-size: clamp(1.3rem, 2vw, 1.8rem); line-height: 1.15; }
.stats .arrow { color: var(--sub-dark); }
@media (max-width: 760px) { .stats { grid-template-columns: 1fr; gap: 18px; } }

/* ============================================================ ACT V · RESCUES */
.act-rescue { padding-block: clamp(72px, 10vh, 130px); }
/* portrait 3-up — matches the real (vertical) photos so the subject + the
   before/after difference are actually visible, not cropped to a strip */
.rescues {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(14px, 1.8vw, 24px);
  width: 100%; max-width: 1140px; margin: clamp(40px, 6vh, 72px) auto 0;
  padding-inline: clamp(14px, 2.5vw, 36px);
}
.rescue { outline: none; }
.r-frame { position: relative; border-radius: 18px; overflow: hidden; aspect-ratio: 3 / 4; }
.r-frame > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
/* default shows the IMPROVED result; hold/hover reveals the original.
   never shows the degraded "before" unprompted */
.r-frame .wipe, .r-frame .wipe-inner { transition: transform 1.05s var(--ease-out); }
.r-frame .wipe { transform: translateX(118%) skewX(calc(var(--wipe-skew) * -1)); }
.r-frame .wipe-inner { transform: translateX(-118%) skewX(var(--wipe-skew)); }
.rescue:hover .r-frame .wipe, .rescue.peek .r-frame .wipe { transform: translateX(0) skewX(calc(var(--wipe-skew) * -1)); }
.rescue:hover .r-frame .wipe-inner, .rescue.peek .r-frame .wipe-inner { transform: translateX(0) skewX(var(--wipe-skew)); }
.r-scrim {
  position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(to top, rgba(10,10,9,0.88) 0%, rgba(10,10,9,0.3) 38%, transparent 66%);
}
.r-copy { position: absolute; left: 16px; right: 16px; bottom: 16px; }
.r-copy h3 { font-family: "Instrument Serif", Georgia, serif; font-weight: 400; font-size: clamp(1.4rem, 2.2vw, 1.9rem); margin-top: 7px; }
.r-copy p { margin-top: 5px; color: var(--sub); font-size: 13.5px; }
.r-state { position: absolute; right: 12px; top: 12px; font-size: 8px; color: var(--sub); }
.rescue-note { margin-top: clamp(36px, 5vh, 56px); color: var(--sub); font-size: clamp(1rem, 1.3vw, 1.15rem); max-width: 34em; }
@media (max-width: 760px) {
  .rescues { grid-template-columns: 1fr; gap: 18px; max-width: 440px; }
}

/* ============================================================ ACT VI · VOTE */
.act-vote { padding-block: clamp(72px, 10vh, 130px); }
.split { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(32px, 5vw, 80px); align-items: center; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }
.vote-phone { display: flex; justify-content: center; }
.phone {
  position: relative; width: min(330px, 82vw);
  background: var(--ink-2); border-radius: 32px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12);
  padding: 18px 16px 14px;
}
.phone-head, .phone-foot { text-align: center; font-size: 9px; letter-spacing: 0.2em; color: var(--sub); }
.phone-row { display: flex; gap: 7px; margin-top: 12px; }
.phone-row figure { flex: 1; }
.phone-row img { width: 100%; aspect-ratio: 9 / 14; object-fit: cover; border-radius: 10px; }
.polls { margin-top: 14px; display: flex; flex-direction: column; gap: 9px; }
.poll { display: grid; grid-template-columns: 72px 1fr 34px; align-items: center; gap: 10px; }
.poll .mono { font-size: 8px; color: var(--sub); }
.poll .pct { text-align: right; color: var(--on-ink); }
.bar { display: block; height: 8px; border-radius: 999px; background: rgba(255, 255, 255, 0.08); overflow: hidden; }
.bar i { display: block; height: 100%; background: var(--paper); transform: scaleX(0); transform-origin: left; transition: transform 1.1s var(--ease-out); }
.poll:nth-child(2) .bar i { transition-delay: 0.18s; }
.poll:nth-child(3) .bar i { transition-delay: 0.36s; }
.vote-phone.run .bar i { transform: scaleX(var(--v, 0)); }
.phone-foot { margin-top: 14px; }
.reply {
  position: absolute; font-family: "Geist Mono", monospace; font-size: 9px; letter-spacing: 0.08em;
  background: var(--paper); color: var(--on-paper);
  padding: 7px 12px; border-radius: 999px 999px 999px 4px;
  opacity: 0; pointer-events: none;
}
.reply-1 { right: -36px; top: 32%; }
.reply-2 { left: -42px; top: 60%; border-radius: 999px 999px 4px 999px; }
.vote-phone.run .reply { animation: replyFloat 7s ease-in-out infinite; }
.vote-phone.run .reply-2 { animation-delay: 3.4s; }
@keyframes replyFloat {
  0% { opacity: 0; transform: translateY(14px); }
  10% { opacity: 1; transform: translateY(0); }
  32% { opacity: 1; transform: translateY(-6px); }
  44% { opacity: 0; transform: translateY(-20px); }
  100% { opacity: 0; transform: translateY(-20px); }
}
@media (max-width: 860px) {
  .reply-1 { right: 4px; }
  .reply-2 { left: 4px; }
}

/* ============================================================ ACT VII · PLANS */
.act-plans { padding-block: clamp(72px, 10vh, 130px); }
.cycle-toggle {
  display: inline-flex; margin-top: 28px; padding: 4px; border-radius: 999px;
  background: var(--ink-2); box-shadow: inset 0 0 0 1px var(--line-ink);
}
.cycle-toggle button { padding: 9px 20px; border-radius: 999px; font-size: 14px; color: var(--sub); transition: color 0.2s; }
.cycle-toggle button.is-on { background: var(--on-ink); color: var(--ink); font-weight: 500; }

/* Four editorial columns (left→right) — warm palette, serif prices, mono
   labels, one inverted "hero" Pro column. Not a generic gradient-SaaS grid. */
.plans {
  margin-top: clamp(34px, 5vh, 52px);
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 16px; align-items: stretch;
}
.plan {
  position: relative;
  display: flex; flex-direction: column; gap: clamp(18px, 2vh, 26px);
  padding: clamp(24px, 2.2vw, 34px) clamp(18px, 1.6vw, 24px);
  border: 1px solid var(--line-ink); border-radius: 18px;
}
.plan header { display: flex; flex-direction: column; gap: 16px; }
.plan-name { font-size: 11px; letter-spacing: 0.18em; color: var(--sub); }
/* num on its own line, per always one line below — keeps every card's header
   the same height across tiers AND across the monthly/yearly toggle, so the
   feature lists below always start at the same y. */
.plan-price { display: flex; flex-direction: column; align-items: flex-start; gap: 7px; }
.plan .num { font-family: "Instrument Serif", Georgia, serif; font-weight: 400; font-size: clamp(2.3rem, 2.6vw, 2.9rem); line-height: 1; }
.per { font-size: 10px; color: var(--sub); text-transform: none; letter-spacing: 0.08em; white-space: nowrap; }
.plan-feats { list-style: none; flex: 1; display: flex; flex-direction: column; gap: 11px; color: var(--sub); font-size: 14px; }
.plan-feats li { position: relative; padding-left: 18px; line-height: 1.35; }
.plan-feats li::before { content: "✓"; position: absolute; left: 0; top: 0.05em; font-size: 11px; color: var(--sub-dark); }
.plan-feats li.feat-key { color: var(--on-ink); font-weight: 500; }
.plan-feats .amber, .plan-feats .amber-dark { color: var(--amber); }
.plan .btn { margin-top: auto; width: 100%; }

/* the one warm hero column — lifted, paper-inverted */
.plan.is-featured {
  background: var(--paper); color: var(--on-paper);
  border-color: transparent;
  box-shadow: 0 22px 55px rgba(0, 0, 0, 0.38);
}
.plan.is-featured .plan-name, .plan.is-featured .per, .plan.is-featured .plan-feats { color: var(--sub-dark); }
.plan.is-featured .num, .plan.is-featured .plan-feats li.feat-key { color: var(--on-paper); }
.plan.is-featured .plan-feats li::before { color: var(--sub-dark); }
.plan.is-featured .plan-feats .amber-dark { color: var(--amber-dark); }
.plan-tag {
  position: absolute; top: -11px; left: 50%; transform: translateX(-50%); white-space: nowrap;
  font-size: 8px; letter-spacing: 0.18em; color: var(--paper); background: var(--ink-2);
  box-shadow: inset 0 0 0 1px var(--line-ink); padding: 5px 11px; border-radius: 999px;
}
.plan-trust { display: flex; flex-wrap: wrap; gap: 8px; margin-top: clamp(28px, 4vh, 40px); }
.plan-trust li { font-size: 10px; color: var(--sub); padding: 6px 12px; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--line-ink); }
.plans-note { margin-top: 16px; color: var(--sub); font-size: 15px; max-width: 40em; }

@media (max-width: 1000px) {
  .plans { grid-template-columns: repeat(2, 1fr); gap: 14px; }
}
@media (max-width: 560px) {
  .plans { grid-template-columns: 1fr; }
}

/* ============================================================ CLOSER */
.closer { position: relative; overflow: hidden; padding-top: clamp(110px, 18vh, 200px); }
.closer-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.closer-scrim {
  position: absolute; inset: 0;
  background:
    linear-gradient(to bottom, var(--ink) 0%, rgba(14,14,13,0.55) 38%, rgba(14,14,13,0.72) 100%);
}
.closer-copy { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: center; text-align: center; }
.closer-copy .btn { margin-top: 38px; }
.closer-copy .dim { margin-top: 24px; }
.indie {
  margin-top: clamp(44px, 7vh, 72px);
  font-family: "Instrument Serif", Georgia, serif; font-size: clamp(1.05rem, 1.5vw, 1.3rem);
  color: var(--sub); max-width: 30em; line-height: 1.5;
}
.closer-meta {
  position: relative; z-index: 2;
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px;
  margin-top: clamp(56px, 9vh, 100px); padding-block: 24px 28px;
  border-top: 1px solid var(--line-ink);
  font-size: 11px; color: var(--sub); text-transform: none; letter-spacing: 0.06em;
}
.brand-min { display: inline-flex; align-items: center; gap: 9px; }
.brand-min .mark { width: 17px; height: 17px; }

/* ============================================================ FX reveals */
/* supporting content rises and settles — transform/opacity only, always
   compositor-cheap, so it holds 60fps on any phone */
.fx { opacity: 0; transform: translateY(34px) scale(0.985); transition: opacity 0.9s ease, transform 0.95s var(--ease-out); }
.fx.in { opacity: 1; transform: none; }
/* the big headings ALSO pull into focus — a small surface, so the one-shot
   blur transition stays cheap */
.display.fx { transition: opacity 0.9s ease, transform 0.95s var(--ease-out), filter 0.9s ease; filter: blur(7px); }
.display.fx.in { filter: blur(0); }
.fx-d1 { transition-delay: 0.12s; }
.fx-d2 { transition-delay: 0.24s; }
.fx-d3 { transition-delay: 0.36s; }
.fx-d4 { transition-delay: 0.48s; }

/* ============================================================ ELEMENTS
   Proven before/after slider (ported from the lab). Width-clip so it renders
   and drags reliably. Used by Watch one happen / Three signatures / Rescue. */
.cmp{
  position:relative;width:100%;border-radius:18px;overflow:hidden;background:#000;
  cursor:ew-resize;touch-action:none;user-select:none;
  box-shadow:0 18px 50px rgba(0,0,0,.45),inset 0 0 0 1px var(--line-ink);
}
.cmp img{pointer-events:none;-webkit-user-drag:none;user-select:none}
.cmp .after{display:block;width:100%}
.cmp .bwrap{position:absolute;top:0;left:0;height:100%;width:var(--pos,55%);overflow:hidden}
.cmp .bwrap .before{position:absolute;top:0;left:0;height:100%;width:var(--cw,1100px);max-width:none}
.cmp .handle{position:absolute;top:0;bottom:0;left:var(--pos,55%);width:2px;background:rgba(255,255,255,.92);transform:translateX(-1px);pointer-events:none}
.cmp .knob{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);width:42px;height:42px;border-radius:50%;background:rgba(255,255,255,.96);box-shadow:0 2px 12px rgba(0,0,0,.45);display:grid;place-items:center}
.cmp .knob::before{content:"⟷";color:#111;font-size:17px;line-height:1}
.cmp.reveal .bwrap{transition:width 1.15s var(--ease-out)}
.cmp.reveal .handle{transition:left 1.15s var(--ease-out)}
.sl-tag{position:absolute;bottom:14px;z-index:3;font-family:"Geist Mono",monospace;font-size:10px;letter-spacing:.18em;text-transform:uppercase;padding:5px 11px;border-radius:999px;background:rgba(10,10,9,.72);color:#f5f5f4}
.sl-tag-b{left:14px}
.sl-tag-a{right:14px;box-shadow:inset 0 0 0 1px rgba(212,163,115,.6)}

/* Watch one happen + theater wrap */
.el-stage{margin-top:clamp(28px,5vh,52px)}
.el-stage .cmp{max-width:1100px;margin-inline:auto}
.el-note{margin-top:14px;text-align:center;color:var(--sub);font-size:14px}

/* Three signatures — slider + style picker */
.sig-cmp{max-width:1000px;margin:clamp(28px,5vh,48px) auto 0}
.sig-pick{display:flex;gap:10px;justify-content:center;margin-top:18px;flex-wrap:wrap}
.sig-btn{position:relative;padding:0;border:0;background:none;border-radius:12px;overflow:hidden;cursor:pointer;transition:transform .2s var(--ease-out);box-shadow:inset 0 0 0 1px var(--line-ink)}
.sig-btn:hover{transform:translateY(-3px)}
.sig-btn img{width:128px;height:92px;object-fit:cover;display:block;transition:opacity .2s}
.sig-btn span{position:absolute;left:8px;bottom:7px;font-family:"Geist Mono",monospace;font-size:8px;letter-spacing:.16em;color:#fff;background:rgba(10,10,9,.55);padding:3px 7px;border-radius:999px}
.sig-btn.on{box-shadow:0 0 0 2px var(--amber)}
.sig-btn:not(.on) img{opacity:.6}
@media(max-width:520px){ .sig-btn img{width:96px;height:70px} }

/* Rescue — editorial grid: one wide hero (Upscale) above a matched portrait
   pair (Denoise · Restore). Aligned to the container so it sits under the
   left-set heading, not as a centred island. Collapses to a column on phones. */
.resc{
  max-width:1140px;margin:clamp(40px,6vh,72px) auto 0;padding-inline:clamp(20px,4vw,48px);
  display:grid;grid-template-columns:1fr 1fr;
  grid-template-areas:"feat feat" "dn rs";
  gap:clamp(24px,3.4vw,44px);align-items:start;
}
.resc-card{width:100%;max-width:none}
.resc-card:nth-child(1){grid-area:dn}
.resc-card:nth-child(2){grid-area:feat}
.resc-card:nth-child(3){grid-area:rs}
@media(max-width:760px){
  .resc{grid-template-columns:1fr;grid-template-areas:"feat" "dn" "rs";max-width:480px;gap:clamp(30px,6vh,48px);padding-inline:20px}
}
.resc-meta{margin-top:13px}
.resc-meta h3{font-family:"Instrument Serif",Georgia,serif;font-weight:400;font-size:1.5rem;color:var(--on-ink)}
.resc-meta p{color:var(--sub);font-size:13.5px;margin-top:3px}
.resc-meta .model{font-family:"Geist Mono",monospace;font-size:10px;letter-spacing:.1em;text-transform:uppercase;color:var(--sub-dark);margin-top:6px}

/* ============================================================ REDUCED MOTION */
@media (prefers-reduced-motion: reduce) {
  .cmp.reveal .bwrap, .cmp.reveal .handle { transition: none; }
  html { scroll-behavior: auto; }
  .fx, .display.fx { opacity: 1; transform: none; filter: none; transition: none; }
  .t-frame { opacity: 1; transform: none; }
  .col-track { animation: none; }
  .t-frame .wipe, .t-frame .wipe-inner,
  .r-frame .wipe, .r-frame .wipe-inner,
  .print, .bar i, .wv .after { transition: none; }
  .t-sweep, .wave-shimmer { display: none; }
  .theater.t-analyzing .t-frame::after { animation: none; }
  .vote-phone.run .reply { animation: none; opacity: 0; }
  .t-thumbs { transition: none; }
  .btn { transition: none; }
}
