/* Rèiz website: the Kinetic Editorial identity, on the web.
   Spec: docs/superpowers/specs/2026-10-03-reiz-website-design.md
   Default styles describe each scene's FINISHED state. js/motion.js and js/scenes.js only animate
   from start states, and pinned scroll lengths apply only under html.js-motion. */

/* ---------- Fonts: self-hosted, SIL Open Font License (css/fonts/OFL-*.txt) ---------- */
@font-face { font-family: "Fraunces"; src: url("fonts/fraunces-roman.woff2") format("woff2"); font-style: normal; font-weight: 300 500; font-display: swap; }
@font-face { font-family: "Fraunces"; src: url("fonts/fraunces-italic.woff2") format("woff2"); font-style: italic; font-weight: 300 500; font-display: swap; }
@font-face { font-family: "Plus Jakarta Sans"; src: url("fonts/plus-jakarta-sans.woff2") format("woff2"); font-style: normal; font-weight: 400 700; font-display: swap; }
/* Metric-matched local fallbacks keep the font swap from shifting layout. */
@font-face { font-family: "Fraunces Fallback"; src: local("Georgia"); size-adjust: 104%; ascent-override: 92%; descent-override: 24%; line-gap-override: 0%; }
@font-face { font-family: "Jakarta Fallback"; src: local("Arial"); size-adjust: 104%; ascent-override: 96%; descent-override: 21%; line-gap-override: 0%; }

/* ---------- Tokens ---------- */
:root {
  --canvas: #faf9f6;
  --surface: #ffffff;
  --paper: #f4f3f1;
  --wash-teal: #e4f3f2;
  --ink: #2b2420;
  --text: #594a41;
  --text-2: #736860;
  --hairline: rgba(43, 36, 32, .08);
  --teal: #006764;
  --teal-bright: #00827f;
  --orange: #fe9823;
  --on-orange: #2d1600;
  --conflict: #c95a50;
  --conflict-text: #a8443b; /* --conflict darkened for small text: 5.9:1 on white (AA) */
  --on-photo: #faf9f6;

  --font-display: "Fraunces", "Fraunces Fallback", Georgia, serif;
  --font-text: "Plus Jakarta Sans", "Jakarta Fallback", system-ui, sans-serif;
  --fs-xl: clamp(52px, 10vw, 164px);
  --fs-l: clamp(42px, 6.8vw, 112px);
  --fs-m: clamp(32px, 4.4vw, 64px);
  --fs-title: clamp(18px, 1.4vw, 22px);
  --fs-lede: clamp(18px, 1.45vw, 22px);

  --margin: 20px;
  --gutter: 16px;
  --nav-h: 60px;
  --section-y: clamp(96px, 14vw, 208px);
  --r-media: 20px;
  --r-card: 20px;
  --r-nested: 12px;

  --shadow-1: 0 1px 2px rgba(89, 74, 65, .06), 0 8px 24px -12px rgba(89, 74, 65, .14);
  --shadow-2: 0 2px 4px rgba(89, 74, 65, .06), 0 24px 48px -20px rgba(89, 74, 65, .24);
  --shadow-3: 0 40px 80px -24px rgba(30, 24, 20, .38);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease-ui: cubic-bezier(.2, .7, .2, 1);
}
@media (min-width: 800px) {
  :root { --margin: 40px; --gutter: 24px; --nav-h: 72px; --r-media: 28px; }
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: var(--nav-h); }
body {
  margin: 0;
  color: var(--text);
  font-family: var(--font-text);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  background-color: var(--canvas);
  /* Paper grain: static noise at ~3% (never fixed, never animated). */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .35 0 0 0 0 .29 0 0 0 0 .25 0 0 0 1 0'/%3E%3C/filter%3E%3Crect width='240' height='240' filter='url(%23n)' opacity='.06'/%3E%3C/svg%3E");
}
@media (min-width: 1200px) { body { font-size: 17px; } }
main { overflow-x: clip; } /* clip, not hidden: hidden would break position: sticky */
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3, p, ol, ul, figure { margin: 0; }
ol, ul { padding: 0; list-style: none; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--teal); outline-offset: 3px; border-radius: 4px; }
[tabindex="-1"]:focus { outline: none; }
::selection { background: var(--wash-teal); color: var(--ink); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.skip { position: fixed; top: 12px; left: var(--margin); z-index: 200; padding: 10px 16px; border-radius: 999px; background: var(--ink); color: var(--canvas); font-weight: 600; text-decoration: none; transform: translateY(-200%); }
.skip:focus { transform: none; }

/* ---------- Type ---------- */
.display-xl, .display-l, .display-m { font-family: var(--font-display); font-weight: 400; color: var(--ink); text-wrap: balance; }
.display-xl { font-size: var(--fs-xl); line-height: .92; letter-spacing: -.02em; }
.display-l { font-size: var(--fs-l); line-height: .96; letter-spacing: -.02em; }
.display-m { font-size: var(--fs-m); line-height: 1.02; letter-spacing: -.015em; font-weight: 420; }
@media (min-width: 800px) { .display-xl { letter-spacing: -.028em; } .display-l { letter-spacing: -.025em; } }
@media (min-width: 1200px) { .display-xl { letter-spacing: -.035em; } .display-l { letter-spacing: -.03em; } .display-m { letter-spacing: -.02em; } }
.display-xl em, .display-l em, .display-m em { font-style: italic; }
/* A masked line for the line reveal; padding keeps descenders and italic overhang unclipped. */
.line { display: block; overflow: hidden; padding: 0 .08em .1em 0; margin-bottom: -.1em; }
.line__inner { display: block; }
.label { font: 600 12px/1.2 var(--font-text); letter-spacing: .14em; text-transform: uppercase; color: var(--text-2); }
.label em { font: italic 400 15px/1 var(--font-display); letter-spacing: 0; text-transform: none; color: var(--ink); }
.lede { font-size: var(--fs-lede); line-height: 1.5; max-width: 34ch; text-wrap: pretty; }
.title { font-size: var(--fs-title); font-weight: 600; line-height: 1.3; letter-spacing: -.01em; color: var(--ink); }
.meta { font-size: 13px; font-weight: 500; line-height: 1.4; letter-spacing: .02em; font-variant-numeric: tabular-nums; color: var(--text-2); }
.kicker { display: flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; letter-spacing: .02em; color: var(--text-2); }

/* ---------- Layout ---------- */
.container { width: 100%; max-width: 1360px; margin-inline: auto; padding-inline: var(--margin); }
.scene { position: relative; padding-block: var(--section-y); }

/* ---------- Components ---------- */
.i { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.kicker .i { width: 14px; height: 14px; }

.btn {
  position: relative; display: inline-flex; align-items: center; gap: 12px;
  height: 48px; padding: 0 12px 0 26px; border: 1px solid transparent; border-radius: 999px;
  font: 600 15px/1 var(--font-text); letter-spacing: .01em; text-decoration: none; white-space: nowrap;
  transition: background-color .32s var(--ease-ui), border-color .32s var(--ease-ui), color .32s var(--ease-ui), transform .32s var(--ease-ui);
}
@media (min-width: 800px) { .btn { height: 52px; } }
.btn--primary { background: var(--teal); color: #fff; }
.btn--ghost { border-color: rgba(43, 36, 32, .18); color: var(--ink); background: transparent; padding-right: 26px; }
.btn--sm { height: 36px; padding: 0 16px; font-size: 14px; }
.btn__arrow { position: relative; display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; overflow: hidden; background: rgba(255, 255, 255, .16); }
.btn__arrow .i { grid-area: 1 / 1; width: 14px; height: 14px; transition: transform .32s var(--ease-ui); }
.btn__arrow .i + .i { transform: translateX(-200%); }
.btn:active { transform: scale(.98); }
@media (hover: hover) and (pointer: fine) {
  .btn:hover { transform: scale(1.02); }
  .btn--primary:hover { background: var(--teal-bright); }
  .btn--ghost:hover { background: #fff; box-shadow: var(--shadow-1); }
  .btn:hover .btn__arrow .i:first-child { transform: translateX(200%); }
  .btn:hover .btn__arrow .i + .i { transform: translateX(0); }
}

.pill { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 14px; border-radius: 999px; font: 600 13px/1 var(--font-text); white-space: nowrap; }
.pill .i { width: 14px; height: 14px; }
.pill--teal { background: var(--teal); color: #fff; }
.pill--orange { background: var(--orange); color: var(--on-orange); }
.pill--soft { background: var(--wash-teal); color: var(--teal); }
.pill--photo { background: rgba(30, 24, 20, .55); color: var(--on-photo); }
@media (min-width: 800px) { .pill--photo { background: rgba(30, 24, 20, .42); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); } }

.card { position: relative; background: var(--surface); border: 1px solid var(--hairline); border-radius: var(--r-card); box-shadow: var(--shadow-1); }
/* Hover elevation fades a pre-rendered shadow in; box-shadow itself is never animated. */
.card::after { content: ""; position: absolute; inset: -1px; border-radius: inherit; box-shadow: var(--shadow-2); opacity: 0; transition: opacity .32s var(--ease-ui); pointer-events: none; }
@media (hover: hover) and (pointer: fine) { .card:hover::after { opacity: 1; } }

.frame { position: relative; overflow: hidden; border-radius: var(--r-media); background: var(--frame-bg, var(--paper)); isolation: isolate; }
.frame::after { content: ""; position: absolute; inset: 0; z-index: 4; border-radius: inherit; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12); pointer-events: none; }
.frame > img { width: 100%; height: 100%; object-fit: cover; }

.link {
  text-decoration: none; padding-bottom: 3px;
  background: linear-gradient(var(--teal), var(--teal)) 0 100% / 0 1px no-repeat,
              linear-gradient(rgba(43, 36, 32, .25), rgba(43, 36, 32, .25)) 0 100% / 100% 1px no-repeat;
  transition: background-size .32s var(--ease-ui), color .32s var(--ease-ui);
}
@media (hover: hover) and (pointer: fine) { .link:hover { color: var(--teal); background-size: 100% 1px, 100% 1px; } }

@media (prefers-reduced-motion: reduce) {
  .btn, .card::after, .link { transition-property: opacity, background-color, color; transition-duration: .15s; }
  .btn:hover, .btn:active { transform: none; }
}

/* ---------- Navigation ---------- */
.nav {
  position: fixed; inset: 0 0 auto; z-index: 100; height: var(--nav-h); color: var(--ink);
  border-bottom: 1px solid transparent;
  transition: height .4s var(--ease-ui), background-color .4s var(--ease-ui), color .4s var(--ease-ui), border-color .4s var(--ease-ui);
}
.nav__inner { height: 100%; display: flex; align-items: center; gap: 32px; }
.nav__logo { display: inline-flex; margin-right: auto; border-radius: 8px; }
.nav__logo img { height: 36px; width: auto; }
.nav__links { display: none; gap: 28px; }
.nav__links a { font-size: 14px; font-weight: 500; text-decoration: none; opacity: .72; transition: opacity .32s var(--ease-ui); }
.nav__links a:hover { opacity: 1; }
@media (min-width: 800px) { .nav__links { display: flex; } }
/* A plain text link beside the pill that shows at every width ("Partner with us", "Sign in"). */
.nav__text { font-size: 14px; font-weight: 500; text-decoration: none; white-space: nowrap; opacity: .72; transition: opacity .32s var(--ease-ui); }
.nav__text:hover, .nav__text[aria-current="page"] { opacity: 1; }
@media (max-width: 799.98px) { .nav__inner { gap: 16px; } }
.nav.is-scrolled {
  --nav-h: 60px;
  background: rgba(250, 249, 246, .78);
  -webkit-backdrop-filter: blur(16px) saturate(140%); backdrop-filter: blur(16px) saturate(140%);
  border-bottom-color: var(--hairline);
}
.nav.is-dark {
  color: var(--on-photo); background: rgba(30, 24, 20, .42);
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  border-bottom-color: rgba(255, 255, 255, .08);
}
.nav.is-dark .btn--ghost { border-color: rgba(250, 249, 246, .35); color: var(--on-photo); }
/* Progress: a teal line ending in a dot, translated in from the left (js/motion.js). */
.nav__progress { position: absolute; left: 0; right: 0; bottom: -4px; height: 6px; overflow: hidden; display: none; pointer-events: none; }
.nav__line { position: absolute; left: 0; right: 0; top: 2px; height: 2px; background: var(--teal); transform: translateX(-100%); }
.nav__line::after { content: ""; position: absolute; right: 0; top: -2px; width: 6px; height: 6px; border-radius: 50%; background: var(--teal); }
@media (min-width: 1200px) { .nav__progress { display: block; } }
@media (prefers-reduced-transparency: reduce) {
  .nav.is-scrolled { background: var(--canvas); -webkit-backdrop-filter: none; backdrop-filter: none; }
  .nav.is-dark { background: var(--ink); -webkit-backdrop-filter: none; backdrop-filter: none; }
}
@media (prefers-reduced-motion: reduce) {
  .nav { transition: background-color .15s, color .15s, border-color .15s; }
  .nav__progress { display: none !important; }
}

/* ---------- Motion scaffolding (only while js/motion.js is in charge) ---------- */
.js-motion [data-reveal] { opacity: 0; } /* opacity, not visibility: content stays in the accessibility tree */
/* Pinned scenes: a tall section whose .stage sticks. Lengths (--len) are set per scene. */
@media (min-width: 800px) and (min-height: 541px) {
  .js-motion .scene--pin { height: var(--len, auto); padding-block: 0; }
  .js-motion .scene--pin > .stage { position: sticky; top: 0; height: 100svh; display: grid; align-content: center; padding-top: var(--nav-h); }
}

/* ---------- Scene 01: introduction ---------- */
/* Copy first, then the intro film on a 16:9 stage. The film carries its own on-screen type, so
   nothing is layered over it and no scrim is needed. From 800px the stage's finished state is
   full bleed; scenes.js starts it inset to the copy's edges and opens it on scroll, as Scene 06 does. */
.hero { position: relative; padding-top: calc(var(--nav-h) + clamp(40px, 10svh, 120px)); padding-bottom: 48px; }
.hero__label { margin-bottom: 20px; }
.hero__body { margin-top: 28px; }
.hero__ctas { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 20px; margin-top: 32px; }
.hero__frame { width: calc(100% - 2 * var(--margin)); max-width: calc(1360px - 2 * var(--margin)); margin: 40px auto 0; aspect-ratio: 16 / 9; }
.hero__frame > .hero__img, .hero__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
/* The poster stays underneath; the film fades in over it once frames are actually playing. */
.hero__video { z-index: 1; opacity: 0; transition: opacity .9s var(--ease-out); }
.hero__video.is-playing { opacity: 1; }
@media (min-width: 800px) {
  .hero__comp { display: grid; grid-template-columns: minmax(0, 1fr) min(460px, 38%); column-gap: var(--gutter); align-items: end; }
  .hero__label { grid-column: 1 / -1; }
  .hero__l2 { padding-left: 1em; }
  .hero__body { margin-top: 0; padding-bottom: calc(.1 * var(--fs-xl)); } /* the CTA row sits on the headline's last line */
  /* Full bleed, capped to the viewport below the nav (a slight cover-crop on very short screens). */
  .hero__frame { width: 100%; max-width: none; aspect-ratio: auto; height: min(56.25vw, calc(100svh - var(--nav-h))); margin-top: clamp(48px, 8svh, 96px); border-radius: 0; }
}
/* Entrance: faded until scenes.js plays it (the nav fades in with the CTA). The film's poster is the
   LCP image, so the frame is never hidden. Opacity, not visibility, keeps everything in the accessibility tree. */
.js-motion [data-hero]:not([data-hero="frame"]), .js-motion .nav { opacity: 0; }

/* ---------- Scene backdrops (02, 03): faint terrain, routes and coordinates behind the content ---------- */
/* Decorative SVGs (aria-hidden) that fill the stages' empty canvas. The terrain is a topographic
   contour field (every 5th line an index contour, scripts/site-assets/topo-backdrop.mjs), shaped
   per scene and faded out behind the copy by its mask. Default styles are the finished drawing;
   scenes.js drifts it and draws the routes with each scene's scrubbed timeline. Phones show the
   terrain alone, softer: the routes, coordinates and ruler are desktop/tablet only. */
.scene--trip > .stage, .scene--intel > .stage { position: relative; }
.stage > .backdrop { display: block; position: absolute; inset: 0; z-index: 0; width: 100%; height: 100%; pointer-events: none; }
.trip, .intel { position: relative; z-index: 1; }
.backdrop__terrain path, .backdrop__route, .backdrop__axis, .backdrop__ring, .backdrop__stop { vector-effect: non-scaling-stroke; }
.backdrop__terrain { fill: none; stroke: var(--ink); stroke-width: 1; stroke-linejoin: round; stroke-opacity: .085; }
.backdrop__terrain .backdrop__index { stroke-width: 1.3; stroke-opacity: .15; }
.scene--intel .backdrop__terrain { stroke: var(--teal); stroke-opacity: .12; }
.scene--intel .backdrop__terrain .backdrop__index { stroke-opacity: .2; }
@media (max-width: 799.98px) {
  .backdrop__marks { display: none; }
  .backdrop__terrain { opacity: .7; }
}
.backdrop__route { fill: none; stroke: var(--teal); stroke-width: 1.5; stroke-linecap: round; stroke-dasharray: 0 7; opacity: .4; }
.scene--intel .backdrop__route { stroke-linecap: butt; stroke-dasharray: 6 6; opacity: .3; }
.backdrop__draw { fill: none; stroke: #fff; stroke-width: 14; stroke-dasharray: 1; stroke-dashoffset: 0; } /* the route's reveal mask */
.backdrop__axis { fill: none; stroke: var(--ink); stroke-width: 1; opacity: .16; }
.backdrop__dot { fill: var(--teal); opacity: .5; }
.backdrop__ring { fill: none; stroke: var(--teal); opacity: .3; }
.backdrop__stop { fill: var(--canvas); stroke: var(--teal); stroke-width: 1.25; opacity: .55; }
.backdrop text { font: 600 10px/1 var(--font-text); letter-spacing: .14em; text-transform: uppercase; fill: var(--text-2); opacity: .55; }
.backdrop .backdrop__soft { opacity: .38; }
.backdrop__window rect { fill: var(--teal); opacity: .35; }
.backdrop__window text { fill: var(--teal); }
.backdrop__window--conflict { opacity: 0; } /* the "before" state: shown only while the scene plays it */
.backdrop__window--conflict rect { fill: var(--conflict); }
.backdrop__window--conflict text { fill: var(--conflict-text); }

/* ---------- Scene 02: one trip, everything connected ---------- */
.scene--trip { --len: 260svh; }
@media (max-width: 1199.98px) { .scene--trip { --len: 200svh; } }
.trip { display: grid; gap: 40px; align-items: center; }
.trip__copy .label { margin-bottom: 20px; }
.trip__index { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 32px; font-size: 14px; font-weight: 600; color: var(--ink); }
.trip__index li { display: flex; align-items: center; gap: 10px; }
.trip__node { display: grid; place-items: center; width: 16px; height: 16px; border-radius: 50%; border: 1.5px solid rgba(43, 36, 32, .22); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--teal); }
.trip__stage { position: relative; }
.tripcard { position: relative; width: min(100%, 460px); margin-inline: auto; padding: 20px 20px 12px 48px; }
.tripcard__bg { position: absolute; inset: 0; border-radius: var(--r-card); background: var(--surface); border: 1px solid var(--hairline); box-shadow: var(--shadow-1); }
.tripcard__head { position: relative; display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin: 0 0 12px -28px; padding-bottom: 12px; border-bottom: 1px solid var(--hairline); }
.tripcard__spine { position: absolute; left: 25px; top: 72px; bottom: 34px; border-left: 2px dashed #e8e4e0; transform-origin: top; }
.tripcard__rows { position: relative; display: grid; gap: 8px; }
.item { position: relative; display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: 14px; align-items: center; padding: 10px; background: var(--surface); border: 1px solid var(--hairline); border-radius: 14px; box-shadow: var(--shadow-1); transform-origin: 0 0; }
.item::before { content: ""; position: absolute; left: -27px; top: 50%; width: 8px; height: 8px; margin-top: -4px; border-radius: 50%; background: var(--teal); opacity: var(--node, 1); } /* --node: hidden while scattered (scenes.js) */
.item__media { display: block; aspect-ratio: 16 / 10; border-radius: 10px; overflow: hidden; background: var(--paper); }
.item__media img { width: 100%; height: 100%; object-fit: cover; }
.item__media--icon { display: grid; place-items: center; background: var(--wash-teal); color: var(--teal); }
.item__media--icon .i { width: 24px; height: 24px; }
.item__body { display: grid; gap: 2px; min-width: 0; }
.item .title { font-size: 16px; }
.item .meta { font-size: 12.5px; }
@media (min-width: 1200px) {
  .trip { grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); }
  .trip__copy { grid-column: 1 / 6; }
  .trip__stage { grid-column: 7 / 13; }
  .trip__index { flex-direction: column; gap: 14px; }
}
@media (min-width: 800px) and (min-height: 541px) {
  /* Room for the scattered cards while the scene is pinned. */
  .js-motion .trip__stage { min-height: min(560px, 60svh); display: grid; align-items: center; }
}

/* ---------- Scene 03: Rèiz understands the trip ---------- */
.scene--intel {
  --len: 300svh;
  background: linear-gradient(to bottom, rgba(228, 243, 242, 0), var(--wash-teal) 160px, var(--wash-teal) calc(100% - 160px), rgba(228, 243, 242, 0));
}
@media (max-width: 1199.98px) { .scene--intel { --len: 240svh; } }
.intel { display: grid; gap: 40px; align-items: center; }
.intel__copy .label { margin-bottom: 20px; }
.intel__steps { display: grid; gap: 10px; margin-top: 28px; max-width: 34ch; counter-reset: step; font-size: var(--fs-lede); line-height: 1.45; color: var(--ink); }
.intel__steps li { counter-increment: step; display: grid; grid-template-columns: 2.2em 1fr; }
.intel__steps li::before { content: counter(step, decimal-leading-zero); font: italic 400 .8em/1.8 var(--font-display); color: var(--teal); }
.intel__stage { position: relative; }
.daycard { width: min(100%, 420px); padding: 18px 24px 8px; overflow: hidden; }
.daycard__head { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding-bottom: 12px; border-bottom: 1px solid var(--hairline); }
.daycard__head .title { font-size: 16px; }
.row { display: grid; grid-template-columns: 14px 52px minmax(0, 1fr); gap: 12px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--hairline); color: var(--ink); font-weight: 500; }
.row:last-child { border-bottom: 0; }
.row time, .roll { font-variant-numeric: tabular-nums; font-weight: 600; color: var(--text); }
.row__flag, .flag { position: relative; align-self: stretch; }
.flag { position: absolute; inset: 0; }
/* Neutral dot on every row; conflict (terracotta) and clear (teal) layers add a bar + dot. */
.row__flag::after, .flag::after { content: ""; position: absolute; left: 3px; top: 50%; width: 8px; height: 8px; margin-top: -4px; border-radius: 50%; background: var(--c, rgba(43, 36, 32, .35)); }
.flag::before { content: ""; position: absolute; left: -24px; top: 6px; bottom: 6px; width: 3px; border-radius: 3px; background: var(--c); }
.flag--conflict { --c: var(--conflict); opacity: 0; }
.flag--clear { --c: var(--teal); }
.roll { display: inline-grid; overflow: hidden; }
.roll > span { grid-area: 1 / 1; }
.roll__old { opacity: 0; }
.travel { display: grid; padding: 10px 0 10px 90px; font-size: 13px; font-weight: 600; border-bottom: 1px solid var(--hairline); }
.travel > span { grid-area: 1 / 1; }
.travel__before { opacity: 0; color: var(--text-2); }
.travel__after { color: var(--teal); }
.scan { position: absolute; left: 0; right: 0; top: 0; height: 2px; background: linear-gradient(90deg, transparent, var(--teal-bright), transparent); opacity: 0; pointer-events: none; }
.chatchip, .callout { display: none; }
.chatchip { align-items: center; gap: 8px; width: max-content; margin-bottom: 12px; padding: 6px 12px 6px 6px; border-radius: 999px; background: var(--surface); border: 1px solid var(--hairline); box-shadow: var(--shadow-1); font-size: 13px; font-weight: 600; color: var(--ink); }
.chatchip__avatar { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--teal); color: #fff; }
.chatchip__avatar .i { width: 14px; height: 14px; }
.callout { width: min(100%, 300px); padding: 18px 20px; }
.callout > div { grid-area: 1 / 1; }
.callout__title { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; font-weight: 700; color: var(--ink); }
.callout__a .callout__title::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--conflict); }
.callout__b { opacity: 0; }
.callout .pill { margin-top: 12px; }
.intel__note { margin-top: 16px; max-width: 420px; font-size: 14px; color: var(--text-2); }
@media (min-width: 1200px) {
  .intel { grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); }
  .intel__copy { grid-column: 1 / 6; }
  .intel__stage { grid-column: 7 / 13; }
}
/* While pinned: the steps become one changing caption and the conflict UI joins in.
   (Pinned = tablet/desktop at least 541px tall, or a phone at least 700px tall; see js/motion.js.) */
@media (min-width: 800px) and (min-height: 541px), (max-width: 799.98px) and (min-height: 700px) {
  .js-motion .scene--intel .intel__steps > li { grid-area: 1 / 1; }
  .js-motion .scene--intel .chatchip { display: inline-flex; }
  .js-motion .scene--intel .callout { display: grid; margin-top: 12px; }
}
@media (min-width: 800px) and (min-height: 541px) {
  .js-motion .scene--intel .callout { position: absolute; right: 0; top: 46%; margin: 0; box-shadow: var(--shadow-3); }
}
@media (min-width: 1200px) and (min-height: 541px) {
  /* Out into the margin, so it overlaps only the card's padding, never the rows. */
  .js-motion .scene--intel .callout { right: -40px; width: 260px; }
}
@media (max-width: 799.98px) and (min-height: 700px) {
  .js-motion .scene--intel { height: 180svh; padding-block: 0; }
  .js-motion .scene--intel > .stage { position: sticky; top: 0; height: 100svh; display: grid; align-content: center; padding-top: var(--nav-h); }
  .js-motion .scene--intel .intel { gap: 16px; }
  .js-motion .scene--intel .intel__steps { margin-top: 12px; font-size: 16px; }
  /* The callout and the closing note take turns in one slot under the card. */
  .js-motion .scene--intel .intel__stage { display: grid; justify-items: start; }
  .js-motion .scene--intel .callout, .js-motion .scene--intel .intel__note { grid-row: 3; grid-column: 1; align-self: start; }
}

/* ---------- Scene 04: from inspiration to itinerary ---------- */
.inspire__head { margin-bottom: 48px; }
.inspire__head .label { margin-bottom: 20px; }
.inspire__frame { width: calc(100% - 2 * var(--margin)); margin-inline: auto; aspect-ratio: 4 / 5; }
.inspire__frame img { position: absolute; inset: 0; object-position: 55% 30%; }
.inspire__chip { position: absolute; z-index: 3; left: 20px; top: 20px; }
@media (min-width: 800px) {
  /* A large frame, deliberately not full bleed (the source is 888px wide). */
  .inspire__frame { width: 92vw; aspect-ratio: auto; height: clamp(420px, 70svh, 760px); }
}
.inspire__plan { margin-top: 56px; }
.days { display: grid; gap: 16px; }
@media (min-width: 800px) { .days { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gutter); } }
/* Tablet: Day 2, where the card lands, gets the room the card needs. */
@media (min-width: 800px) and (max-width: 1199.98px) {
  .days { grid-template-columns: minmax(0, 1fr) minmax(0, 1.7fr) minmax(0, 1fr); }
  .day:not(.day--target) .day__row { grid-template-columns: 1fr; gap: 2px; } /* narrow columns: time above text */
}
.day { padding: 18px; border-radius: var(--r-card); background: var(--paper); }
.day__name { margin-bottom: 12px; font: 600 12px/1.2 var(--font-text); letter-spacing: .14em; text-transform: uppercase; color: var(--text-2); }
.day__rows { display: grid; gap: 8px; }
.day__row { display: grid; grid-template-columns: 52px 1fr; gap: 10px; padding: 12px 14px; border-radius: 14px; background: var(--surface); border: 1px solid var(--hairline); font-weight: 500; color: var(--ink); }
.day__row time { font-variant-numeric: tabular-nums; font-weight: 600; color: var(--text-2); }
/* The empty slot waiting for the card while it travels. */
.slot { border-radius: var(--r-card); outline: 1.5px dashed rgba(43, 36, 32, .2); outline-offset: -1.5px; }
.find { display: grid; grid-template-columns: 64px minmax(0, 1fr); grid-template-areas: "media body" "state state"; gap: 10px 14px; padding: 12px; transform-origin: 0 0; }
.find__media { grid-area: media; display: block; aspect-ratio: 1; border-radius: 10px; overflow: hidden; background: var(--paper); }
.find__media img { width: 100%; height: 100%; object-fit: cover; }
.find__body { grid-area: body; display: grid; gap: 2px; min-width: 0; }
.find__title { font-size: 16px; }
.find__state { grid-area: state; display: grid; justify-items: start; }
.find__state > * { grid-area: 1 / 1; }
.add__cta { opacity: 0; }
.inspire__caption { margin-top: 32px; }

/* ---------- Scene 05: the Rèiz app (real screenshots only; see the comment in index.html) ---------- */
.scene--app { --len: 200svh; }
@media (max-width: 1199.98px) { .scene--app { --len: 160svh; } }
.app { display: grid; gap: 40px; align-items: center; }
.app__copy .label { margin-bottom: 20px; }
/* Default and mobile: a swipeable row of framed screenshots. */
.phone { display: flex; gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; margin-inline: calc(-1 * var(--margin)); padding: 8px var(--margin) 24px; }
.screen { flex: 0 0 min(78vw, 300px); scroll-snap-align: center; }
.screen img { width: 100%; height: auto; border-radius: 36px; border: 8px solid #1f1a17; box-shadow: var(--shadow-2); background: #1f1a17; }
.screen figcaption { margin-top: 12px; text-align: center; font-size: 14px; color: var(--text-2); }
@media (min-width: 1200px) {
  .app { grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); }
  .app__copy { grid-column: 1 / 6; }
  .phone { grid-column: 6 / 13; }
}
/* Pinned: one phone; screens stacked and crossfaded by scenes.js; captions to the right. */
@media (min-width: 800px) and (min-height: 541px) {
  .js-motion .scene--app .phone {
    position: relative; display: block; overflow: visible; scroll-snap-type: none;
    width: min(300px, calc((100svh - 200px) / 2.163)); aspect-ratio: 1170 / 2532;
    margin: 0 0 0 40px; padding: 0; border-radius: 46px; box-shadow: var(--shadow-3);
  }
  .js-motion .scene--app .screen { position: absolute; inset: 0; }
  .js-motion .scene--app .screen img { height: 100%; object-fit: cover; border-radius: 46px; border-width: 10px; box-shadow: none; }
  .js-motion .scene--app .screen figcaption { position: absolute; top: 42%; left: calc(100% + 48px); width: 220px; margin: 0; text-align: left; font-size: var(--fs-lede); color: var(--ink); }
}

/* ---------- Scene 06: the next trip ---------- */
.scene--next { padding-block: 0; }
.next__frame { width: calc(100% - 2 * var(--margin)); margin-inline: auto; aspect-ratio: 4 / 5; }
.next__frame img { position: absolute; inset: 0; object-position: 60% 50%; }
.next__copy { padding-top: 32px; }
.next__copy .label { margin-bottom: 16px; }
.next__copy .lede { margin-top: 20px; }
.accent { color: var(--teal); }
.stores { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.store { display: inline-flex; align-items: center; gap: 10px; height: 52px; padding: 0 22px; border-radius: 999px; border: 1px solid rgba(43, 36, 32, .18); background: rgba(255, 255, 255, .6); font-weight: 600; color: var(--ink); }
.store__state { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--text-2); }
@media (min-width: 800px) {
  /* Poster and copy share one grid cell, so the poster grows with the copy (the waitlist card)
     instead of the copy spilling into the footer on short viewports. */
  .scene--next { display: grid; }
  .next__frame, .next__copy { grid-area: 1 / 1; }
  .next__frame { width: 100%; aspect-ratio: auto; min-height: clamp(560px, 92svh, 960px); border-radius: 0; }
  /* Canvas-coloured wash at the top for the copy, and at the bottom into the footer. */
  .next__frame::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(to bottom, rgba(250, 249, 246, .85), rgba(250, 249, 246, 0) 45%, rgba(250, 249, 246, 0) 75%, var(--canvas)); }
  .next__copy { position: relative; z-index: 2; align-self: start; padding-block: clamp(96px, 14svh, 160px) 64px; }
}

/* ---------- Waitlist (inside Scene 06) ---------- */
.waitlist { margin-top: 40px; max-width: 520px; padding: 24px; background: var(--surface); border: 1px solid var(--hairline); border-radius: var(--r-card); box-shadow: var(--shadow-1); }
@media (min-width: 800px) { .waitlist { padding: 32px; box-shadow: var(--shadow-3); } }
@media (min-width: 1200px) {
  .next__copy { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); align-items: start; }
  .next__intro { grid-column: 1 / 7; }
  .waitlist { grid-column: 8 / 13; margin-top: 0; max-width: none; }
}
.waitlist__form { display: grid; gap: 20px; }
.waitlist__head .label { margin-bottom: 8px; }
.waitlist__title { font-family: var(--font-display); font-size: clamp(26px, 2.2vw, 32px); font-weight: 420; line-height: 1.1; letter-spacing: -.015em; }
.field { min-width: 0; margin: 0; padding: 0; border: 0; }
.field__label { display: block; margin-bottom: 8px; padding: 0; font-size: 13px; font-weight: 600; color: var(--ink); }
.field__input {
  width: 100%; height: 52px; padding: 0 16px; border: 1px solid rgba(43, 36, 32, .18); border-radius: var(--r-nested);
  background: var(--canvas); color: var(--ink); font: 500 16px/1 var(--font-text); /* 16px: no zoom-on-focus in iOS Safari */
  transition: border-color .32s var(--ease-ui), background-color .32s var(--ease-ui);
}
.field__input:hover { border-color: rgba(43, 36, 32, .32); }
.field__input:focus { border-color: var(--teal); background: var(--surface); }
.field__input[aria-invalid="true"] { border-color: var(--conflict); }
/* Platform: a row of radio pills. The input stays focusable; its pill shows the state and the ring. */
.choices { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.choice { position: relative; cursor: pointer; }
.choice input { position: absolute; inset: 0; margin: 0; opacity: 0; cursor: pointer; }
.choice span { display: grid; place-items: center; height: 44px; border: 1px solid rgba(43, 36, 32, .18); border-radius: 999px; font-size: 14px; font-weight: 600; color: var(--ink); transition: background-color .32s var(--ease-ui), border-color .32s var(--ease-ui), color .32s var(--ease-ui); }
.choice:hover span { border-color: rgba(43, 36, 32, .32); }
.choice input:checked + span { border-color: var(--teal); background: var(--wash-teal); color: var(--teal); }
.choice input:focus-visible + span { outline: 2px solid var(--teal); outline-offset: 3px; }
.choices.is-invalid .choice span { border-color: var(--conflict); }
.field__error { margin-top: 6px; font-size: 13px; font-weight: 500; line-height: 1.4; color: var(--conflict-text); }
.field__error:empty, .waitlist__error:empty { display: none; }
.waitlist__error { padding: 12px 14px; border-radius: var(--r-nested); background: rgba(201, 90, 80, .08); font-size: 14px; font-weight: 500; color: var(--conflict-text); }
.waitlist__hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.waitlist__submit { justify-content: space-between; width: 100%; cursor: pointer; }
.waitlist__submit:disabled { cursor: default; opacity: .8; transform: none; }
.waitlist__consent { margin: 0; font-size: 13px; line-height: 1.5; color: var(--text-2); }
/* Loading: the arrow gives way to a spinner in the same circle. */
.spinner { grid-area: 1 / 1; width: 14px; height: 14px; border: 2px solid rgba(255, 255, 255, .35); border-top-color: #fff; border-radius: 50%; opacity: 0; }
.waitlist__submit.is-loading .btn__arrow .i { opacity: 0; }
.waitlist__submit.is-loading .spinner { opacity: 1; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.waitlist__done { display: grid; justify-items: start; gap: 12px; }
.waitlist__done p { max-width: 40ch; }
.waitlist__icon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--wash-teal); color: var(--teal); }
.waitlist__icon .i { width: 20px; height: 20px; }
@media (prefers-reduced-motion: reduce) {
  .waitlist__submit.is-loading .spinner { animation-duration: 2.4s; }
  .field__input, .choice span { transition-duration: .15s; }
}

/* ---------- Footer ---------- */
.footer { padding: 64px 0 40px; }
.footer__inner { display: grid; gap: 24px; justify-items: start; }
.footer__logo { display: inline-flex; border-radius: 8px; }
.footer__logo img { height: 80px; width: auto; }
.footer__links { display: flex; flex-wrap: wrap; gap: 8px 28px; font-size: 14px; font-weight: 500; color: var(--ink); }
@media (min-width: 800px) {
  .footer__inner { grid-template-columns: auto 1fr auto; align-items: center; }
  .footer__links { justify-content: center; }
}
