/* Coneccti — the landing experience. Tokens come from BRAND.md / DESIGN.md: ink, sage (the connection: the
   partner, the thread), sand (touch, warmth), on the warm cream of the launch film. No gradients as
   decoration, no glass. Layering: ribbon canvas 1 < main 2 < rider 3 < peek 30 < gauge 40 < flood 44 <
   footer 46 < menu 49 < chrome 50 < loader 100 (the player is a <dialog> in the top layer). */

@font-face { font-family: "Newsreader"; font-style: normal; font-weight: 400 500; font-display: swap; src: url("/fonts/newsreader-latin.woff2") format("woff2"); }
@font-face { font-family: "Newsreader"; font-style: italic; font-weight: 400 500; font-display: swap; src: url("/fonts/newsreader-italic-latin.woff2") format("woff2"); }

:root {
  --paper: #F7F1E8;        /* the page: warm cream */
  --paper-2: #EFE7D8;      /* raised panels */
  --card: #FBF8F2;         /* chips, menu */
  --ink: #292E27;
  --ink-2: #565A53;        /* 6.2:1 on paper */
  --mute: #5C6059;         /* 5.6:1 on paper, 5.0:1 on paper-2 — labels */
  --night: #1B1E1A;        /* the app's dark paper: hero window, phones */
  --fin: #161915;
  --sage: #82977B;         /* graphics only on light */
  --sage-text: #56693F;
  --sage-deep: #5E7357;
  --sand: #C9B48F;
  --sand-text: #7A6440;
  --glow: #F6DDAE;
  --on-night: #EDE7DC;
  --rule: rgba(41, 46, 39, .14);
  --serif: "Newsreader", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --sans: Roboto, system-ui, -apple-system, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "Cascadia Mono", "SF Mono", Menlo, Consolas, monospace;
  --g: clamp(16px, 5vw, 72px);
  --r: 20px;
  --ease: cubic-bezier(.16, 1, .3, 1);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { background: var(--paper); color: var(--ink); -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: 96px; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
body { font: 400 17px/1.55 var(--sans); background: transparent; overflow-x: clip; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
body.locked { overflow: hidden; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
img, video, canvas, svg { display: block; }
img { max-width: 100%; height: auto; }
em { font-style: italic; }
::selection { background: var(--sage); color: #fff; }
:focus-visible { outline: 2px solid var(--sage-deep); outline-offset: 3px; border-radius: 6px; }
.mono { font-family: var(--sans); font-size: 13px; letter-spacing: .005em; font-weight: 500; }
.kdot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--sage); margin-right: 10px; vertical-align: 1px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
.skip { position: fixed; left: 12px; top: -60px; z-index: 120; background: var(--ink); color: var(--paper); padding: 10px 14px; border-radius: 10px; }
.skip:focus { top: 12px; }
.h2 { font: 400 clamp(40px, 6.4vw, 104px)/.98 var(--serif); letter-spacing: -.025em; }
.h3 { font: 400 clamp(28px, 3vw, 44px)/1.05 var(--serif); letter-spacing: -.02em; }
.kick { color: var(--mute); margin-bottom: 22px; }

/* ---------------------------------------------------------------- buttons, pills */
.btn { display: inline-flex; align-items: center; gap: 10px; height: 56px; padding: 0 26px; border-radius: 56px; font-weight: 500; font-size: 16px; letter-spacing: -.005em; transition: transform .5s var(--ease), background .3s, color .3s, box-shadow .3s; white-space: nowrap; }
.btn svg { width: 22px; height: 22px; fill: currentColor; flex: none; }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(.98); }
.btn-ink { background: var(--ink); color: var(--paper); }
.btn-ink:hover { background: #1d211b; box-shadow: 0 14px 30px -14px rgba(27, 30, 26, .6); }
.btn-line { border: 1.5px solid var(--ink); }
.btn-line:hover { background: var(--ink); color: var(--paper); }
.btn-night { background: var(--night); color: var(--on-night); }
.btn-lg { height: 64px; padding: 0 32px; font-size: 18px; }
.pill { display: inline-flex; align-items: center; gap: 10px; height: 46px; padding: 0 22px; border-radius: 46px; background: var(--card); border: 1px solid var(--rule); font-weight: 500; font-size: 15px; transition: background .35s, color .35s; }
.pill i { font-style: normal; transition: transform .5s var(--ease); }
.pill:hover { background: var(--ink); color: var(--paper); }
.pill:hover i { transform: translateY(3px); }
.pill-quiet { background: transparent; }

/* ---------------------------------------------------------------- loader */
#loader { display: none; }
.js #loader { display: block; position: fixed; inset: 0; z-index: 100; background: var(--night); color: var(--on-night); overflow: hidden; }
#loader .lmark { position: absolute; left: 50%; top: 44%; width: 120px; height: 120px; transform: translate(-50%, -50%); }
#loader .lsym { width: 120px; height: 120px; overflow: visible; }
#loader .lthread { fill: none; stroke: #E8E9E3; stroke-width: 10.2; stroke-linecap: butt; stroke-dasharray: 1; stroke-dashoffset: 1; }
#loader .ldot { position: absolute; width: 25.2px; height: 25.2px; border-radius: 50%; left: 83.2px; opacity: 0; }
#loader .ldot-a { top: 24.6px; background: #E8E9E3; }
#loader .ldot-b { top: 70.2px; background: #9DB096; }
#loader .lnote { position: absolute; left: var(--g); bottom: 40px; color: #A3A79F; }
#loader .lnote b { color: var(--on-night); font-weight: 500; }
#loader .lcount { position: absolute; right: calc(var(--g) - .06em); bottom: 22px; font: 400 clamp(88px, 13vw, 190px)/1 var(--serif); letter-spacing: -.04em; display: flex; overflow: hidden; height: 1em; font-variant-numeric: tabular-nums; }
#loader .dg { display: block; height: 1em; overflow: hidden; width: .52em; text-align: center; }
#loader .dg i { display: block; font-style: normal; line-height: 1; transition: transform .32s var(--ease); }
#loader .lwipe { position: absolute; inset: 0; background: var(--sage); transform: scaleY(0); transform-origin: 50% 100%; }

/* ---------------------------------------------------------------- chrome */
#chrome { position: fixed; z-index: 50; left: 0; right: 0; top: 0; height: 88px; padding: 0 var(--g); display: flex; align-items: center; justify-content: space-between; gap: 20px; transition: transform .6s var(--ease); pointer-events: none; }
#chrome > * { pointer-events: auto; }
#chrome.hid { transform: translateY(-120%); }
#chrome::before { content: ""; position: absolute; inset: 0; background: var(--paper); box-shadow: 0 1px 0 var(--rule); opacity: 0; transition: opacity .35s, background .35s; z-index: -1; pointer-events: none; }
#chrome.solid::before { opacity: 1; }
#chrome.dark::before { background: var(--fin); box-shadow: 0 1px 0 rgba(237, 231, 220, .08); }
#chrome .wm { display: block; padding: 8px 0; }
#chrome .wm img { height: 26px; width: auto; }
#chrome .l-dark, #chrome.dark .l-light { display: none; }
#chrome.dark .l-dark { display: block; }
#chrome .tick { position: absolute; left: 50%; transform: translateX(-50%); height: 16px; overflow: hidden; min-width: 340px; text-align: center; color: var(--ink-2); pointer-events: none; }
#chrome .tick span { position: absolute; left: 0; right: 0; top: 0; transition: transform .8s var(--ease); white-space: nowrap; }
#chrome.dark .tick { color: #A3A79F; }
.chrome-r { display: flex; align-items: center; gap: 10px; }
.cta { display: inline-flex; align-items: center; gap: 10px; height: 46px; padding: 0 20px 0 16px; border-radius: 46px; background: var(--ink); color: var(--paper); font-weight: 500; font-size: 15px; transition: transform .5s var(--ease), opacity .4s, visibility .4s; }
.cta:hover { transform: translateY(-1px); }
.cta .pulse { position: relative; width: 8px; height: 8px; border-radius: 50%; background: var(--sage); flex: none; }
.cta .pulse::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--sage); animation: pulse 2.4s var(--ease) infinite; }
@keyframes pulse { 0% { transform: scale(1); opacity: .7; } 70%, 100% { transform: scale(3); opacity: 0; } }
.cta.tucked { opacity: 0; visibility: hidden; transform: translateY(-6px); }
#chrome.dark .cta { background: var(--on-night); color: var(--night); }
.mbtn { width: 46px; height: 46px; border-radius: 50%; background: var(--card); border: 1px solid var(--rule); display: grid; place-items: center; }
html:not(.js) .mbtn { display: none; }
.mbtn .duo-dots { position: relative; width: 20px; height: 20px; }
.mbtn .duo-dots i { position: absolute; top: 50%; width: 7px; height: 7px; margin-top: -3.5px; border-radius: 4px; background: var(--ink); transition: left .5s var(--ease), width .5s var(--ease), height .5s var(--ease), margin .5s var(--ease), transform .5s var(--ease); }
.mbtn .duo-dots i:nth-child(1) { left: 1px; } .mbtn .duo-dots i:nth-child(2) { left: 12px; background: var(--sage-deep); }
.menu-open .mbtn .duo-dots i { left: 1px; width: 18px; height: 2.4px; margin-top: -1.2px; }
.menu-open .mbtn .duo-dots i:nth-child(1) { transform: rotate(45deg); } .menu-open .mbtn .duo-dots i:nth-child(2) { transform: rotate(-45deg); }

#menu { position: fixed; z-index: 49; top: 96px; right: var(--g); width: min(460px, calc(100vw - 2 * var(--g))); background: var(--card); border-radius: 22px; padding: 10px; box-shadow: 0 30px 80px -30px rgba(27, 30, 26, .4); transform-origin: 100% 0; transform: scale(.92) translateY(-8px); opacity: 0; visibility: hidden; transition: transform .55s var(--ease), opacity .35s, visibility 0s .55s; }
#menu[hidden] { display: none; }
.menu-open #menu { transform: none; opacity: 1; visibility: visible; transition: transform .55s var(--ease), opacity .35s, visibility 0s; }
#menu .tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
#menu .tile { position: relative; height: 112px; border-radius: 14px; background: var(--paper); padding: 14px 16px; display: flex; flex-direction: column; justify-content: space-between; transition: background .35s, color .35s; }
#menu .tile b { font: 400 30px/1 var(--serif); letter-spacing: -.02em; }
#menu .tile .mono { color: var(--mute); transition: color .35s; }
#menu .tile:hover, #menu .tile:focus-visible { background: var(--night); color: var(--on-night); }
#menu .tile:hover .mono, #menu .tile:focus-visible .mono { color: var(--glow); }
#menu .tile.on::after { content: ""; position: absolute; right: 16px; top: 16px; width: 8px; height: 8px; border-radius: 50%; background: var(--sage); }
#menu .mrow-lite { margin-top: 8px; border-radius: 14px; background: var(--paper); padding: 14px 16px; display: flex; gap: 16px; align-items: center; justify-content: space-between; font-size: 14px; line-height: 1.35; color: var(--ink-2); }
#menu .mrow-lite a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; flex: none; }
#menu .mrow { margin-top: 8px; display: flex; justify-content: space-between; align-items: center; border-radius: 14px; background: var(--night); color: var(--on-night); padding: 14px 16px; font-size: 15px; }
#menu .mrow .mono { color: var(--glow); }


#gauge { position: fixed; z-index: 40; right: calc(var(--g) * .5); bottom: 28px; width: 12px; height: 92px; opacity: 0; pointer-events: none; }
#gauge .gbar { position: absolute; left: 5px; top: 10px; bottom: 10px; width: 2px; background: var(--rule); border-radius: 2px; overflow: hidden; }
#gauge .gbar i { position: absolute; inset: 0; background: var(--sage); transform: scaleY(0); transform-origin: 50% 0; }
#gauge .gdot { position: absolute; left: 2px; width: 8px; height: 8px; border-radius: 50%; }
#gauge .gyou { top: 0; background: var(--ink); } #gauge .gthem { bottom: 0; background: var(--sage); }
#gauge .gpop { position: absolute; left: 3px; top: 10px; width: 6px; height: 6px; margin-top: -3px; border-radius: 50%; background: var(--sand); will-change: transform; }
#gauge.dark .gbar { background: rgba(237, 231, 220, .2); } #gauge.dark .gyou { background: var(--on-night); }

/* ---------------------------------------------------------------- reveals */
.ln { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .08em; margin-bottom: -.08em; }
.ln > span { display: inline-block; }
.js .rv .ln > span { transform: translateY(105%); transition: transform 1.1s var(--ease); }
.js .rv.in .ln > span { transform: none; }
.js .rv .ln:nth-child(2) > span { transition-delay: .08s; } .js .rv .ln:nth-child(3) > span { transition-delay: .16s; } .js .rv .ln:nth-child(4) > span { transition-delay: .24s; }
.js .fade { opacity: 0; transform: translateY(24px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.js .fade.in { opacity: 1; transform: none; }
.rm .rv .ln > span, .rm .fade, .boot-fail .rv .ln > span, .boot-fail .fade { transform: none !important; opacity: 1 !important; transition: none !important; }

/* ---------------------------------------------------------------- rendering budget */
/* Long sections below the fold are skipped for layout and paint until they come near the viewport;
   'auto' remembers their real size afterwards, so the scrollbar and anchors stay stable. */
.work, .how { content-visibility: auto; contain-intrinsic-size: auto 2600px; }
.foot { content-visibility: auto; contain-intrinsic-size: auto 1000px; }
@media (max-width: 760px) { .work { contain-intrinsic-size: auto 5200px; } .how { contain-intrinsic-size: auto 3400px; } }

/* ---------------------------------------------------------------- main + ribbon */
main { position: relative; z-index: 2; }
#ribbon { position: fixed; inset: 0; width: 100vw; height: 100vh; z-index: 1; pointer-events: none; }
.nogl #ribbon, .nogl #rider { display: none; }

/* ---------------------------------------------------------------- hero */
/* An editorial split: words and the download on the left, the keepsake window on the right. */
.hero { position: relative; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(28px, 4vw, 72px); align-items: center; min-height: 100svh; padding: 100px var(--g) 28px; }
.hcopy { position: relative; z-index: 1; max-width: 620px; }
/* the copy is painted from the first frame (it is the largest paint on phones); the curtain lift reveals it,
   with a short rise that never hides it */
.js:not(.rm) .hcopy { transform: translateY(18px); transition: transform 1.3s var(--ease); }
.js .hero.entered .hcopy { transform: none; }
.hmeta { margin-top: 34px; display: grid; gap: 8px; color: var(--mute); }
.hmeta span::before { content: ""; display: inline-block; width: 5px; height: 5px; border-radius: 50%; background: var(--sage); margin-right: 10px; vertical-align: 2px; }
.win { position: relative; height: max(520px, calc(100svh - 128px)); border-radius: 28px; overflow: hidden; background: var(--night); isolation: isolate; }
.win .still, .win .still img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity .8s; }
.win .still { background: var(--night); }
.win canvas { position: absolute; inset: 0; width: 100%; height: 100%; touch-action: pan-y; opacity: 0; transition: opacity .8s; }
.win.live canvas { opacity: 1; }
.win.live .still { opacity: 0; }
.nogl .win canvas, .gl-lost .win canvas { display: none; }
.gl-lost .win .still { opacity: 1; }
.hthread { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 22px; }
.hav { display: flex; flex-direction: column; align-items: center; gap: 6px; width: 40px; }
.hav b { position: relative; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--paper-2); color: var(--ink); font: 500 14px/1 var(--sans); }
.hav small { font: 500 12px/1 var(--sans); color: var(--mute); }
.hthem b::after { content: ""; position: absolute; right: -1px; bottom: -1px; width: 10px; height: 10px; border-radius: 50%; background: var(--sage); box-shadow: 0 0 0 2px var(--paper); }
.hthem.nudge b { animation: kilig .45s var(--ease); }
.hline { position: relative; width: clamp(120px, 14vw, 190px); height: 34px; }
.hline::before { content: ""; position: absolute; left: 0; right: 0; top: 17px; height: 1.5px; background: var(--sage); border-radius: 2px; }
.hline em { position: absolute; top: 27px; left: 0; right: 0; text-align: center; font: 500 12px/1.4 var(--sans); font-style: normal; color: var(--sage-text); white-space: nowrap; transition: color .3s; }
.hline em.hot { color: var(--sand-text); }
.hpop { position: absolute; left: 0; top: 13px; width: 9px; height: 9px; border-radius: 50%; background: var(--sand); opacity: 0; }
.hhint { position: absolute; right: 22px; bottom: 22px; height: 36px; padding: 0 16px; border-radius: 36px; display: flex; align-items: center; gap: 10px; background: #F7F1E8; color: var(--ink); font: 500 13px/1 var(--sans); pointer-events: none; opacity: 0; transition: opacity .8s .9s; box-shadow: 0 10px 30px -12px rgba(0, 0, 0, .5); }
.hhint::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--sage); }
.win.live .hhint { opacity: 1; }
.hero h1 { font: 400 clamp(40px, min(5.4vw, 10vh), 96px)/.98 var(--serif); letter-spacing: -.03em; }
.hero h1 em { color: var(--sage-text); }
.hero .sub { margin-top: 16px; font-size: clamp(17px, 1.4vw, 20px); color: var(--ink-2); max-width: 30ch; }
.hero .acts { margin-top: 24px; display: flex; flex-wrap: wrap; gap: 10px; }
@keyframes nudge { 0%, 100% { transform: none; } 50% { transform: translateY(4px); } }

/* ---------------------------------------------------------------- statement */
.statement { position: relative; padding: 24vh var(--g) 18vh; }
.big { font: 400 clamp(44px, 8.6vw, 148px)/.96 var(--serif); letter-spacing: -.03em; }
.big .ind { margin-left: 18vw; }
.big em { color: var(--sage-text); }
.st-body { display: grid; grid-template-columns: 1fr minmax(0, 520px); gap: 40px; margin-top: 9vh; }
.st-copy .lead { font: 400 clamp(22px, 1.9vw, 28px)/1.3 var(--serif); letter-spacing: -.01em; }
.st-copy .lead-2 { margin: 18px 0 28px; color: var(--ink-2); }
#rider { position: fixed; z-index: 3; left: 0; top: 0; width: 220px; opacity: 0; pointer-events: none; will-change: transform, opacity; }
#rider img { width: 100%; border-radius: 26px; border: 6px solid var(--night); background: var(--night); box-shadow: 0 30px 60px -28px rgba(27, 30, 26, .55); }
#rider figcaption { margin-top: 12px; display: flex; flex-direction: column; gap: 2px; }
#rider figcaption .mono { color: var(--mute); }
#rider figcaption b { font: 400 22px/1.1 var(--serif); }

/* ---------------------------------------------------------------- reel */
.reel { position: relative; height: 280vh; }
.reel .stage { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }
.rcard { position: absolute; left: 50%; top: 50%; width: min(24vw, 360px); aspect-ratio: 1 / .62; transform: translate(-50%, -50%); border-radius: 26px; overflow: hidden; background: var(--night); cursor: none; z-index: 2; }
.rcard video { width: 100%; height: 100%; object-fit: cover; }
.rcard:focus-visible { outline-offset: 6px; }
.rwords { position: absolute; inset: 0; pointer-events: none; z-index: 1; }
.rwords span { position: absolute; left: 0; top: 50%; font: 400 clamp(72px, 12.5vw, 196px)/1 var(--serif); letter-spacing: -.035em; white-space: nowrap; will-change: transform; }
.rwords span[data-w="r"] { font-style: italic; }
.rwhite { color: #FBF8F2; z-index: 3; }
.rmeta { position: absolute; left: var(--g); right: var(--g); bottom: 30px; display: flex; justify-content: space-between; color: var(--ink-2); opacity: 0; z-index: 3; }
.playb { position: fixed; left: 0; top: 0; z-index: 4; width: 112px; height: 112px; margin: -56px 0 0 -56px; border-radius: 50%; background: var(--glow); color: var(--night); display: grid; place-items: center; font: 500 17px/1 var(--sans); pointer-events: none; transform: scale(0); transition: transform .5s var(--ease); }
.playb.on { transform: scale(1); }
.rm .reel, .nopin .reel { height: auto; padding: 14vh var(--g); }
.rm .reel .stage, .nopin .reel .stage { position: relative; height: auto; overflow: visible; display: grid; gap: 22px; }
.rm .rcard, .nopin .rcard { position: relative; left: auto; top: auto; transform: none; width: 100%; aspect-ratio: 16 / 9; height: auto; cursor: pointer; }
.rm .rwords, .nopin .rwords { display: none; }
.rm .rmeta, .nopin .rmeta { position: static; opacity: 1; }
.rm .playb, .nopin .playb { position: absolute; left: 50%; top: 50%; transform: scale(1); }

/* ---------------------------------------------------------------- features */
.work { padding: 20vh var(--g) 16vh; }
.whead { display: flex; justify-content: space-between; align-items: flex-end; gap: 40px; margin-bottom: 64px; }
.whead .h2 em { color: var(--sage-text); }
.wctl { display: flex; flex-direction: column; align-items: flex-end; gap: 16px; }
.wctl .mono { color: var(--mute); }
.tog { position: relative; display: flex; padding: 4px; border-radius: 40px; background: var(--card); border: 1px solid var(--rule); }
.tog button { position: relative; z-index: 1; height: 38px; padding: 0 20px; border-radius: 38px; font-size: 14px; font-weight: 500; transition: color .4s; }
.tog button.on { color: var(--paper); }
.tog .kn { position: absolute; left: 4px; top: 4px; height: 38px; border-radius: 38px; background: var(--ink); transition: transform .55s var(--ease), width .55s var(--ease); }
.grid { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: 24px; row-gap: 110px; }
.pc { grid-column: span 5; display: block; position: relative; }
.pc.wide { grid-column: span 7; }
.pc:nth-child(4n+2), .pc:nth-child(4n+3) { margin-top: 110px; }
.pc .im { position: relative; overflow: hidden; border-radius: var(--r); aspect-ratio: 5 / 5.6; background: var(--paper-2); }
.pc.wide .im { aspect-ratio: 16 / 11; }
.js .pc .im { clip-path: inset(12% 0 0 0 round var(--r)); transition: clip-path 1.2s var(--ease); }
.js .pc.in .im { clip-path: inset(0 0 0 0 round var(--r)); }
.pc .im[data-tone="sage"] { background: #DCE3D5; } .pc .im[data-tone="sand"] { background: #EBDFC8; }
.pc .im[data-tone="night"] { background: var(--night); } .pc .im[data-tone="cream"] { background: var(--paper-2); }
.pc .im[data-tone="moss"] { background: #C9D2C1; }
.pc .ph { position: absolute; left: 70%; top: 13%; height: 100%; aspect-ratio: 540 / 1170; transform: translateX(-50%) rotate(var(--rot, -3deg)) scale(1.06); transform-origin: 50% 0; transition: transform 1.4s var(--ease); }
.pc.wide .ph { left: 69%; top: 10%; height: 112%; }
.js .pc.in .ph { transform: translateX(-50%) rotate(var(--rot, -3deg)); }
.pc:hover .ph { transform: translateX(-50%) rotate(0deg) translateY(-2%); }
.ph.rot-a { --rot: -3deg; } .ph.rot-b { --rot: 2.5deg; } .ph.rot-c { --rot: -2deg; } .ph.rot-d { --rot: 3deg; } .ph.rot-e { --rot: -2.5deg; } .ph.rot-f { --rot: 2deg; }
.pc .ph img { width: 100%; height: auto; border-radius: 30px; border: 7px solid var(--night); background: var(--night); box-shadow: 0 40px 80px -40px rgba(27, 30, 26, .55); }
.pc .im[data-tone="night"] .ph img { border-color: #2B2F29; }
.pc .note { position: absolute; left: 22px; top: 20px; right: 22px; display: flex; justify-content: space-between; align-items: flex-start; z-index: 1; }
.pc .idx { height: 28px; padding: 0 11px; display: inline-flex; align-items: center; border-radius: 28px; background: var(--card); }
.pc .chip { width: 40px; height: 40px; border-radius: 50%; background: var(--ink); color: var(--paper); display: grid; place-items: center; transform: scale(0); transition: transform .5s var(--ease); }
.pc:hover .chip, .pc:focus-visible .chip { transform: scale(1); }
.pc .say { position: absolute; left: 24px; bottom: 24px; max-width: 38%; font: 400 clamp(22px, 2vw, 30px)/1.08 var(--serif); letter-spacing: -.015em; z-index: 1; }
.pc .im[data-tone="night"] .say { color: var(--on-night); }
.pc .tags { display: flex; justify-content: space-between; gap: 12px; margin-top: 18px; color: var(--mute); }
.pc h3 { margin-top: 8px; font: 400 clamp(28px, 2.6vw, 40px)/1.05 var(--serif); letter-spacing: -.02em; display: flex; align-items: baseline; gap: 0; }
.pc h3 .ar { display: inline-block; width: 0; overflow: hidden; color: var(--sage-text); transition: width .5s var(--ease); }
.pc:hover h3 .ar { width: 1.1em; }
.pc p.ben { margin-top: 8px; color: var(--ink-2); max-width: 46ch; }
.index { list-style: none; display: none; border-top: 1px solid var(--rule); }
.work.list .grid { display: none; }
.work.list .index { display: block; }
.irow { display: grid; grid-template-columns: 70px 1.2fr 1.6fr 1fr; gap: 20px; align-items: center; min-height: 96px; padding: 16px 18px; border-bottom: 1px solid var(--rule); transition: background .35s, color .35s; }
.irow b { font: 400 clamp(26px, 2.6vw, 40px)/1.05 var(--serif); letter-spacing: -.02em; }
.irow .disc { color: var(--ink-2); }
.irow .mono { color: var(--mute); transition: color .35s; }
.irow:hover, .irow:focus-visible { background: var(--night); color: var(--on-night); }
.irow:hover .mono, .irow:hover .disc, .irow:focus-visible .mono, .irow:focus-visible .disc { color: #CFCBC2; }
#peek { position: fixed; z-index: 30; left: 0; top: 0; width: 200px; pointer-events: none; opacity: 0; transform: translate(-999px, 0); transition: opacity .3s; }
#peek.on { opacity: 1; }
#peek img { width: 100%; height: auto; border-radius: 22px; border: 6px solid var(--night); background: var(--night); box-shadow: 0 30px 60px -28px rgba(27, 30, 26, .6); }
.wmore { margin-top: 90px; }

/* ---------------------------------------------------------------- two phones */
@keyframes kilig { 0% { scale: 1; } 40% { scale: 1.035; } 100% { scale: 1; } }

/* ---------------------------------------------------------------- how it works */
.how { padding: 22vh var(--g) 18vh; position: relative; }
.how-head .h2 em { color: var(--sage-text); }
.steps { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; margin-top: 80px; border-top: 1px solid var(--rule); }
.steps li { padding-top: 26px; }
.steps .num { display: block; font: 400 clamp(64px, 7vw, 110px)/1 var(--serif); color: var(--sage); letter-spacing: -.04em; }
.steps h3 { margin-top: 14px; font: 500 21px/1.25 var(--sans); }
.steps p { margin-top: 8px; color: var(--ink-2); max-width: 38ch; }
.promise { margin-top: 18vh; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr); gap: 40px 60px; }
.promise h3 em { color: var(--sage-text); }
.promise ul { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 28px 40px; }
.promise li b { display: block; font-weight: 500; margin-bottom: 4px; }
.promise li span { color: var(--ink-2); }
.promise .note { grid-column: 2; font-size: 15px; color: var(--ink-2); }
.promise .note a, .faq a { text-decoration: underline; text-underline-offset: 3px; }
.faqs { margin-top: 16vh; max-width: 860px; }
.faqs .h3 { margin-bottom: 24px; }
.faq { border-top: 1px solid var(--rule); }
.faq:last-of-type { border-bottom: 1px solid var(--rule); }
.faq summary { list-style: none; cursor: pointer; padding: 22px 44px 22px 0; position: relative; font: 400 22px/1.25 var(--serif); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 6px; top: 18px; font: 300 28px/1 var(--sans); transition: transform .4s var(--ease); }
.faq[open] summary::after { transform: rotate(45deg); }
.faq p { padding: 0 0 22px; color: var(--ink-2); max-width: 64ch; }
.mt { margin-top: 32px; }

/* ---------------------------------------------------------------- finale */
.fin { position: relative; height: 420vh; z-index: 3; }
.fstage { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; background: var(--fin); color: var(--on-night); }
.fstage canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.fstill { position: absolute; inset: 0; background: var(--fin) url("/img/x/finale-still-1600.webp") center / cover no-repeat; display: none; }
@media (max-width: 760px) { .fstill { background-image: url("/img/x/finale-still-800.webp"); background-size: 180% auto; } }
.nogl .fstill, .gl-lost .fstill { display: block; }
.nogl #finCanvas, .gl-lost #finCanvas { display: none; }
.kin { position: absolute; left: 0; right: 0; top: 50%; transform: translateY(-50%); text-align: center; font: 400 clamp(40px, 7.2vw, 120px)/1.02 var(--serif); letter-spacing: -.03em; pointer-events: none; }
.kin .fw:nth-child(3) { font-style: italic; color: #B7C6AF; }
.kin .kw { display: inline-block; will-change: transform, opacity; }
.nogl .kin, .gl-lost .kin, .nogl .fcap, .gl-lost .fcap { display: none; }
.fcap { position: absolute; left: var(--g); bottom: 30px; color: #A3A79F; }
.fend { position: absolute; left: var(--g); right: var(--g); bottom: 7vh; text-align: center; opacity: 0; pointer-events: none; }
.fend h2 { font: 400 clamp(34px, 4.4vw, 76px)/1.02 var(--serif); letter-spacing: -.03em; max-width: 24ch; margin: 0 auto; text-wrap: balance; text-shadow: 0 2px 30px rgba(22, 25, 21, .85), 0 0 2px rgba(22, 25, 21, .6); }
.fend em { color: var(--glow); }
.nogl .fend, .gl-lost .fend { opacity: 1 !important; transform: none !important; }
.rm .fin, .nogl .fin { height: 100vh; height: 100svh; }
.rm .kin { display: none; }
.rm .fend { opacity: 1; }
#flood { position: fixed; inset: 0; z-index: 44; background: var(--sage); clip-path: circle(0% at 50% 50%); pointer-events: none; }
.nogl #flood, .rm #flood { display: none; }

/* ---------------------------------------------------------------- download footer */
.foot { position: relative; z-index: 46; background: var(--sage); color: #1B1E1A; padding: 18vh var(--g) 36px; }
.foot .f-kick { color: #1B1E1A; }
.lets { margin-top: 18px; font: 400 clamp(84px, 17vw, 300px)/1.06 var(--serif); letter-spacing: -.045em; display: flex; flex-wrap: wrap; cursor: default; }
.lets .ch { display: inline-block; height: 1.06em; overflow: hidden; }
.lets .ch > span { display: block; position: relative; transition: transform .7s var(--ease); }
.lets .ch > span::after { content: attr(data-c); position: absolute; left: 0; top: 100%; font-style: italic; }
.lets:hover .ch > span { transform: translateY(-100%); }
.lets .sp { width: .24em; }
.f-sub { margin-top: 14px; font: 400 clamp(24px, 2.4vw, 36px)/1.2 var(--serif); letter-spacing: -.01em; }
.f-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr .8fr; gap: 40px; margin-top: 12vh; padding-top: 36px; border-top: 1px solid rgba(27, 30, 26, .25); align-items: start; }
.f-dl .btn:hover { box-shadow: 0 18px 40px -20px rgba(27, 30, 26, .7); }
.f-line { margin-top: 16px; }
.f-small { margin-top: 12px; font-size: 15px; max-width: 42ch; }
.f-small a, .f-links a { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.f-qr { display: flex; gap: 16px; align-items: flex-start; }
.f-qr img { width: 112px; height: 112px; background: #fff; padding: 8px; border-radius: 12px; flex: none; }
.f-qr p { font-size: 15px; }
.f-steps { list-style: none; display: grid; gap: 12px; font-size: 15px; }
.f-steps li { display: grid; grid-template-columns: 32px 1fr; }
.f-links { display: flex; flex-direction: column; gap: 8px; font-size: 15px; }
.f-base { margin-top: 12vh; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 30px; font-size: 10.5px; }
.for-ios { display: none; }
[data-platform="ios"] .for-ios { display: block; }

/* ---------------------------------------------------------------- player */
#player { position: fixed; inset: 0; width: 100vw; height: 100vh; max-width: none; max-height: none; border: 0; background: transparent; padding: 0; }
#player::backdrop { background: rgba(14, 16, 13, .95); }
#player .pwrap { width: 100%; height: 100%; display: grid; place-items: center; }
#player video { width: min(92vw, 160vh); aspect-ratio: 16 / 9; border-radius: 16px; background: #000; }
#player .px { position: absolute; right: var(--g); top: 28px; height: 46px; padding: 0 20px; border-radius: 46px; background: var(--card); color: var(--ink); font-weight: 500; display: inline-flex; align-items: center; gap: 12px; }
#player .px .mono { color: var(--mute); }

/* ---------------------------------------------------------------- tablet */
@media (max-width: 1024px) {
  #chrome .tick { display: none; }
  .grid { row-gap: 80px; }
  .f-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; min-height: 0; padding-top: 104px; gap: 28px; }
  .win { height: max(380px, 54svh); }
  .st-body { grid-template-columns: 1fr; }
  .st-gap { height: 300px; }
  .steps { grid-template-columns: 1fr; gap: 0; }
  .promise { grid-template-columns: 1fr; }
  .promise .note { grid-column: 1; }
  .whead { flex-direction: column; align-items: flex-start; }
  .wctl { align-items: flex-start; }
}

/* ---------------------------------------------------------------- phone */
@media (max-width: 760px) {
  :root { --r: 14px; }
  body { font-size: 16px; }
  #loader .lnote { bottom: auto; top: 30px; }
  #chrome { top: 0; height: 76px; }
  #chrome .wm img { height: 22px; }
  .cta { height: 42px; padding: 0 16px 0 13px; font-size: 14px; }
  .cta-long { display: none; }
  .mbtn { width: 42px; height: 42px; }
  #menu { top: 76px; }
  #menu .tile { height: 92px; } #menu .tile b { font-size: 24px; }
  .hero { padding-top: 92px; gap: 22px; }
  .win { height: max(340px, 46svh); border-radius: 22px; }
  .hmeta { margin-top: 22px; font-size: 12px; }
  .hero h1 { font-size: clamp(36px, 10.4vw, 46px); }
  .hero .sub { font-size: 16px; margin-top: 10px; }
  .hero .acts { margin-top: 16px; }
  .hero .acts .btn { height: 50px; padding: 0 20px; font-size: 15px; }
  .hero .acts .btn-line { display: none; }
  .m-hide { display: none; }
  .hthread { margin-bottom: 14px; }
  .hline { width: 104px; }
  .hhint { display: none; }
  .statement { padding: 16vh var(--g) 12vh; }
  .big .ind { margin-left: 0; }
  .st-gap { height: 250px; }
  #rider { width: 128px; }
  #rider img { border-radius: 18px; border-width: 4px; }
  #rider figcaption b { font-size: 17px; }
  .reel { height: 220vh; }
  .rcard { border-radius: 18px; }
  .grid { grid-template-columns: 1fr; row-gap: 64px; }
  .pc, .pc.wide { grid-column: 1; margin-top: 0 !important; }
  .pc .im, .pc.wide .im { aspect-ratio: 4 / 3.6; }
  .pc .ph, .pc.wide .ph { height: 104%; left: 71%; top: 12%; }
  .pc .say { max-width: 42%; font-size: 20px; left: 18px; bottom: 18px; }
  .irow { grid-template-columns: 40px 1fr; min-height: 76px; }
  .irow .disc, .irow .yr { display: none; }
  .promise ul { grid-template-columns: 1fr; }
  .fin { height: 340vh; }
  .fend { bottom: 9vh; }
  .f-grid { grid-template-columns: 1fr; gap: 32px; }
  .f-base { flex-direction: column; }
  #gauge { right: 10px; bottom: 16px; height: 72px; }
  #player .px { top: 16px; }
}

/* ---------------------------------------------------------------- motion floor */
@media (prefers-reduced-motion: reduce) {
  .cta .pulse::after { animation: none; }
  .btn, .pill i, .pc .ph, .pc .im { transition: none !important; }
}
