/* relay.glass/buy: Relay One, the glasses on sale today, in the vision page's look
   (owner, 2026-11-03: the landing in two, "Buy Relay" and "The vision"). The vision
   is / (site/index.html); this page is the product, what it does and the order.

   The tokens are the vision page's own, so the two read as one site: paper, ink,
   Instrument Sans, and the product played on dark stages set into the paper. The
   studio photographs are on white, so the order's gallery is white too.
   No amber here (DESIGN.md: amber is a live microphone) and no red (on the vision
   page red means people). Every price comes from /checkout.json through
   /assets/pricing.js; nothing on this page types one.

   This file: the tokens, the bar, the reveal, the hero, the order, the box, the
   questions, the end and the foot. scenes.css draws "Watch it work"; motion.css
   draws "How it works", "It gets it done", "It knows your goal" and the privacy
   frame. */

@font-face { font-family: "Instrument Sans"; src: url("/r2v2/sans.woff2") format("woff2"); font-weight: 400 700; font-display: swap; }

:root {
  color-scheme: light;
  --paper: #F4F2EE; --paper-2: #EBE8E2; --white: #FFFFFF;
  --ink: #0C0C0D; --ink-2: #57534E; --ink-3: #8A857E;
  --rule: rgba(12, 12, 13, .14);
  --night: #0B0B0C; --night-2: #161615; --night-3: #1F1E1D;
  --on-night: #F5F5F4; --on-night-2: #A8A29E; --on-night-3: #78716C;
  --night-rule: rgba(255, 255, 255, .1);
  --sans: "Instrument Sans", -apple-system, "Segoe UI", sans-serif;
  --pad: clamp(16px, 5vw, 64px);
  --gap: clamp(8px, 1vw, 14px);
  --r: clamp(18px, 2.4vw, 32px);
  --max: 1480px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --bar: 64px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; background: var(--paper); scroll-padding-top: var(--bar); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--sans); font-size: 18px; line-height: 1.45; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
main { overflow-x: clip; }
h1, h2, h3, p, figure, ul, ol, dl, dd, blockquote { margin: 0; padding: 0; }
ul, ol { list-style: none; }
a { color: inherit; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
img, video, canvas, picture, svg { display: block; max-width: 100%; }
.vh { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }

/* ---- type: the vision page's sizes ---- */
h2 { font-size: clamp(42px, 7vw, 124px); font-weight: 600; line-height: .96; letter-spacing: -.05em; text-wrap: balance; }
.line { max-width: 24em; margin-top: clamp(16px, 2.6vh, 28px); font-size: clamp(20px, 1.9vw, 28px); font-weight: 500; line-height: 1.3; letter-spacing: -.015em; color: var(--ink-2); text-wrap: pretty; }
.sec { max-width: var(--max); margin: 0 auto; padding: clamp(96px, 16vh, 200px) var(--pad); }

/* ---- the one action: ink ---- */
.btn, .pill { display: inline-flex; align-items: center; justify-content: center; gap: .55em; border-radius: 999px; background: var(--ink); color: var(--paper); font-weight: 600; text-decoration: none; font-variant-numeric: tabular-nums; white-space: nowrap; transition: transform 180ms var(--ease), background 180ms ease, opacity 240ms ease; -webkit-tap-highlight-color: transparent; }
.btn { min-height: 58px; padding: 0 1.75em; font-size: 18px; }
.btn:hover, .pill:hover { background: #26262A; }
.btn:active, .pill:active { transform: scale(.97); }
.btn.wide { width: 100%; min-height: 60px; }
.btn.ghost { background: none; color: var(--ink); box-shadow: inset 0 0 0 2px var(--ink); }
.btn.ghost:hover { background: var(--ink); color: var(--paper); }
.btn .ar { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform 240ms var(--ease); }
.btn:hover .ar { transform: translateX(3px); }
/* A price slot keeps its room until pricing.js fills it. */
[data-market-price]:empty { display: inline-block; min-width: 3ch; }

/* ---- the bar: the mark, the two pages, and the button once past the first screen ---- */
.top { position: fixed; z-index: 30; top: 0; left: 0; right: 0; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px; height: var(--bar); padding: 0 var(--pad); transition: background 240ms ease, box-shadow 240ms ease, color 240ms ease; }
.top.on { background: rgba(244, 242, 238, .94); -webkit-backdrop-filter: saturate(1.4) blur(14px); backdrop-filter: saturate(1.4) blur(14px); box-shadow: 0 1px 0 var(--rule); }
.top.night { color: var(--on-night); }
.top.night.on { background: rgba(11, 11, 12, .78); box-shadow: 0 1px 0 var(--night-rule); }
.brand { justify-self: start; display: inline-flex; align-items: center; gap: .55rem; font-size: 17px; font-weight: 600; letter-spacing: .04em; line-height: 1; text-decoration: none; }
.brand svg { width: 34px; height: 18px; }
.switch { display: flex; gap: 2px; padding: 3px; border-radius: 999px; background: rgba(12, 12, 13, .07); transition: background 240ms ease; }
.switch a { padding: .5em 1em; border-radius: 999px; font-size: 15px; font-weight: 600; line-height: 1; text-decoration: none; white-space: nowrap; color: var(--ink-2); transition: background 200ms ease, color 200ms ease; }
.switch a:hover { color: var(--ink); }
.switch a[aria-current="page"] { background: var(--ink); color: var(--paper); }
.top.night .switch { background: rgba(11, 11, 12, .42); -webkit-backdrop-filter: blur(14px) saturate(1.2); backdrop-filter: blur(14px) saturate(1.2); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12); }
.top.night .switch a { color: rgba(245, 245, 244, .82); }
.top.night .switch a:hover { color: var(--on-night); }
.top.night .switch a[aria-current="page"] { background: var(--on-night); color: var(--ink); }
.pill { justify-self: end; min-height: 40px; padding: 0 1.1em; font-size: 15px; opacity: 0; transform: translateY(-6px); pointer-events: none; transition: opacity 240ms ease, transform 240ms var(--ease), background 180ms ease; }
.top.on .pill { opacity: 1; transform: none; pointer-events: auto; }
.top.night .pill { background: var(--on-night); color: var(--ink); }
.top.away .pill { opacity: 0; pointer-events: none; }
.pill .short { display: none; }
/* Frame one's one button (owner, 2026-11-04: "le bouton buy relay one ... dans le header à
   droite dans ce premier frame"): on a desk it is the bar's, there from the first paint with
   the price, and the hero's steps aside; it still steps aside where the page has its own. A
   phone keeps the hero's wide button in reach of the thumb, and the bar's short one after.
   (The hero's side of it is under Frame 1, after .hero-act, which would otherwise win.) */
@media (min-width: 761px) {
  .pill { opacity: 1; transform: none; pointer-events: auto; }
}
/* On a desk the bar is a step larger (owner, 2026-11-05: "aggrandi légèrement le top nav");
   a phone's is unchanged. The same block is in /, teams.css and legal.css, so the bar keeps
   its size from one page to the next. */
@media (min-width: 761px) {
  :root { --bar: 72px; }
  .brand { font-size: 18px; }
  .brand svg { width: 38px; height: 20px; }
  .switch a { padding: .55em 1.1em; font-size: 16px; }
  .pill { min-height: 44px; padding: 0 1.2em; font-size: 16px; }
}
@media (max-width: 760px) { .pill .long { display: none; } .pill .short { display: inline; } }
/* The guarantee and the shipping, in one line under frame one's button (Maverick, 2026-11-11:
   "Plutôt 14 jours", to the guarantee going to the top of /buy; docs/REDESIGN.md, "Shipping and
   returns in one line under the button"). On a desk the button is the bar's, so the line hangs
   under it, at the right, and only while the bar is still over the picture: once the bar has
   its own ground the page has moved on and the order frame says it again. There it lies over
   the picture's lit face, so it stands on the switch's glass, in the switch's words' colour.
   A phone's is under the hero's wide button (.hero-guar), in the picture's shadow. */
.top-guar { display: none; }
@media (min-width: 761px) {
  .top-guar { display: block; position: absolute; top: calc(var(--bar) - 4px); right: var(--pad); padding: .4em .9em; border-radius: 999px; background: rgba(11, 11, 12, .42); -webkit-backdrop-filter: blur(14px) saturate(1.2); backdrop-filter: blur(14px) saturate(1.2); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12); font-size: 15px; line-height: 1.3; white-space: nowrap; color: rgba(245, 245, 244, .82); opacity: 0; pointer-events: none; transition: opacity 240ms ease; }
  .top.night:not(.on) .top-guar { opacity: 1; }
}
@media (max-width: 560px) {
  .top { grid-template-columns: auto 1fr auto; gap: 8px; }
  .brand span { display: none; }
  .switch { justify-self: center; }
  .switch a { padding: .5em .8em; font-size: 14px; }
  .pill { padding: 0 .95em; font-size: 14px; }
}
@media (max-width: 359px) { .switch a { padding: .5em .6em; font-size: 13px; } }

/* ---- the reveal (DESIGN.md, site: opacity and 24 px over 500 ms, once, at most
   four steps of 80 ms). With no script, or Reduce Motion, everything is at rest. ---- */
.js .rv { opacity: 0; transform: translateY(24px); transition: opacity 500ms ease-out, transform 500ms ease-out; transition-delay: calc(min(var(--i, 0), 4) * 80ms); }
.js .rv.in { opacity: 1; transform: none; }

/* ---- Frame 1, the promise: "Feel superhuman." over one picture in the shadow; the one button
   in the bar on a desk, under the words on a phone. At the top it is black from edge to edge
   (owner, 2026-11-04: "make the first frame all black too, no white border"), and as the page
   moves down it settles into the paper as the vision page sets its dark stages ("only when
   going down the border first appears"): buy.js takes --hk from 0 to 1 over the first 120 px
   and the stage is clipped, never resized, so nothing else moves. Its top edge has left the
   screen by then, so the bar never straddles it. ---- */
.hero { padding: 0; }
.hero-stage { position: relative; overflow: hidden; isolation: isolate; height: 100svh; min-height: 560px; background: var(--night); color: var(--on-night); -webkit-clip-path: inset(calc(var(--gap) * var(--hk, 0)) round calc(var(--r) * var(--hk, 0))); clip-path: inset(calc(var(--gap) * var(--hk, 0)) round calc(var(--r) * var(--hk, 0))); }
.hero-bg, .hero-bg img, .hero-film { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-bg, .hero-film { z-index: -2; }
.hero-bg img, .hero-film { object-fit: cover; object-position: 72% 28%; transform: translate3d(0, var(--py, 0px), 0) scale(1.1); }
.js .hero-bg img { animation: dawn 2600ms var(--ease) both; }
@keyframes dawn { from { opacity: 0; transform: translate3d(0, var(--py, 0px), 0) scale(1.24); } to { opacity: 1; transform: translate3d(0, var(--py, 0px), 0) scale(1.1); } }
/* The same picture, breathing (owner, 2026-11-04): its 5-second loop lies over it, framed
   as it is, unseen until buy.js has it playing, then fades in. No pause button (owner,
   2026-11-05: "enlève le bouton play"). */
.hero-film { opacity: 0; pointer-events: none; transition: opacity 500ms ease-out; }
.hero-film.on { opacity: 1; }
/* The shadow the words stand in: deepest at the left and the foot, where they are. */
.hero-stage::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(11, 11, 12, .94) 0%, rgba(11, 11, 12, .62) 38%, rgba(11, 11, 12, .12) 72%, rgba(11, 11, 12, .3) 100%), linear-gradient(0deg, rgba(11, 11, 12, .9) 0%, rgba(11, 11, 12, 0) 52%); }
.hero-in { position: absolute; left: 0; right: 0; bottom: 0; display: flex; flex-direction: column; gap: clamp(20px, 3.4vh, 40px); padding: clamp(24px, 5vw, 80px); }
.mega { max-width: 7em; font-size: clamp(58px, min(13.5vw, 23svh), 280px); font-weight: 600; line-height: .84; letter-spacing: -.065em; color: var(--on-night); }
.mega .w { display: inline-block; }
.js .mega .w { opacity: 0; transform: translateY(.3em); animation: rise 1100ms var(--ease) forwards; animation-delay: calc(400ms + var(--k) * 140ms); }
@keyframes rise { to { opacity: 1; transform: none; } }
.hero-act { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 28px; }
.js .hero-act { opacity: 0; transform: translateY(14px); animation: rise 900ms var(--ease) 1100ms forwards; }
.btn.light { background: var(--on-night); color: var(--ink); }
.btn.light:hover { background: #fff; }
/* On a desk the button is the bar's, so the hero's steps aside and "Feel superhuman." stands
   at the foot of the picture, level with Scroll. The line that sat under the button is gone
   on a desk and a phone (owner, 2026-11-04: "ca fait un espace vide indesirable", then
   "enlève sur téléphone"): frame two says both halves of it, the glasses with the assistant
   and the first month. */
@media (min-width: 761px) { .hero-act { display: none; } }
/* A phone's button has the guarantee and the shipping under it since 2026-11-11 (.top-guar
   has why); the line that said what it is stays gone. */
.hero-guar { width: 100%; font-size: 15px; line-height: 1.3; text-align: center; color: var(--on-night-2); }
.cue { position: absolute; right: clamp(24px, 5vw, 80px); bottom: clamp(24px, 5vw, 80px); display: flex; flex-direction: column; align-items: center; gap: 12px; color: var(--on-night-2); font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; text-decoration: none; }
.cue i { width: 1px; height: 56px; background: linear-gradient(var(--on-night-2), rgba(168, 162, 158, 0)); }
.js .cue { opacity: 0; animation: rise 900ms var(--ease) 1600ms forwards; }
@media (max-width: 760px) {
  .hero-stage { min-height: 520px; }
  .hero-bg img, .hero-film { object-position: 50% 22%; }
  .hero-stage::before { background: linear-gradient(0deg, rgba(11, 11, 12, .96) 0%, rgba(11, 11, 12, .72) 34%, rgba(11, 11, 12, .1) 68%, rgba(11, 11, 12, .35) 100%); }
  .hero-in { gap: 18px; padding: 22px 20px 26px; }
  .mega { font-size: clamp(54px, 16vw, 96px); }
  .hero-act .btn { width: 100%; }
  .cue { display: none; }
}

/* ---- the frames: one idea a screen, centred, with room ---- */
.frame { min-height: 100svh; display: flex; flex-direction: column; justify-content: center; }
.kick { margin-bottom: .9rem; font-size: 15px; font-weight: 600; letter-spacing: .02em; color: var(--ink-3); }

/* ---- Frame 2, what it is ---- */
.meet { align-items: center; text-align: center; }
.meet h2 { max-width: 11em; }
.meet .line { margin-left: auto; margin-right: auto; }
/* The render's ground is the page's paper exactly, so the glasses stand on the page itself. */
.meet-pic { width: min(100%, 1040px); margin: clamp(32px, 6vh, 72px) auto 0; overflow: hidden; border-radius: var(--r); background: var(--paper); }
/* The glasses grow inside their white card as it comes up the screen (buy.js, --g from .9 to 1). */
.meet-pic picture { display: block; transform: scale(var(--g, 1)); }
.meet-pic img { width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; object-position: 50% 50%; }
.meet-buy { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 12px 22px; margin-top: clamp(28px, 5vh, 48px); }
.meet-buy p { font-size: 16px; color: var(--ink-2); }
.meet-buy b { font-weight: 600; color: var(--ink); }
@media (max-width: 760px) { .meet { text-align: left; align-items: flex-start; } .meet-pic img { aspect-ratio: 4 / 3; } .meet-buy { justify-content: flex-start; } }

/* ---- Choose yours: what a buyer decides on fits one screen (.fold, the owner: "everything
   must fit on the same frame, otherwise choose the important"); the rest waits under it (.rest).
   Sizes follow the screen's height, so the button stays on a 13-inch laptop. ---- */
.order.sec { justify-content: flex-start; padding-top: calc(var(--bar) + clamp(12px, 2.6svh, 32px)); padding-bottom: clamp(56px, 9vh, 120px); }
.order-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(340px, .85fr); gap: clamp(24px, 4vw, 72px); align-items: start; }
.gal { position: sticky; top: calc(var(--bar) + clamp(12px, 2.6svh, 32px)); min-width: 0; }
/* Square, and never taller than the screen leaves it. */
.gal-stage { position: relative; overflow: hidden; width: min(100%, calc(100svh - var(--bar) - 140px)); aspect-ratio: 1; margin: 0 auto; border-radius: var(--r); background: var(--white); }
.gal-stage figure { position: absolute; inset: 0; opacity: 0; transform: scale(1.035); transition: opacity 520ms ease-out, transform 900ms var(--ease); }
.gal-stage figure.on { opacity: 1; transform: none; }
.gal-stage img { width: 100%; height: 100%; object-fit: cover; }
.gal-stage .tag { position: absolute; left: 16px; bottom: 16px; padding: .4em .8em; border-radius: 999px; background: rgba(255, 255, 255, .9); box-shadow: 0 0 0 1px var(--rule); font-size: 13px; font-weight: 600; line-height: 1.2; }
.gal-thumbs { display: flex; gap: 8px; width: min(100%, calc(100svh - var(--bar) - 140px)); margin: 12px auto 0; overflow-x: auto; scrollbar-width: none; padding: 2px; }
.gal-thumbs::-webkit-scrollbar { display: none; }
.gal-thumbs button { flex: 0 0 auto; width: 64px; height: 64px; padding: 0; border: 0; border-radius: 16px; overflow: hidden; background: var(--white); cursor: pointer; box-shadow: inset 0 0 0 1px var(--rule); transition: box-shadow 200ms ease, transform 180ms var(--ease); -webkit-tap-highlight-color: transparent; }
.gal-thumbs button img { width: 100%; height: 100%; object-fit: cover; opacity: .78; transition: opacity 200ms ease; }
.gal-thumbs button[aria-pressed="true"] { box-shadow: 0 0 0 2px var(--paper), 0 0 0 4px var(--ink); }
.gal-thumbs button[aria-pressed="true"] img, .gal-thumbs button:hover img { opacity: 1; }
.gal-thumbs button:active { transform: scale(.95); }

.buybox { min-width: 0; }
.fold { display: flex; flex-direction: column; justify-content: center; gap: clamp(16px, 3.2svh, 40px); min-height: calc(100svh - var(--bar) - 2 * clamp(12px, 2.6svh, 32px)); }
.fold .kick { margin-bottom: .5rem; }
.buybox .name { font-size: clamp(44px, min(4.8vw, 8.4svh), 80px); font-weight: 600; line-height: .95; letter-spacing: -.05em; }
.buybox .price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; margin-top: clamp(10px, 1.8svh, 18px); }
.buybox .price b { font-size: clamp(34px, min(3.4vw, 6svh), 52px); font-weight: 600; line-height: 1.05; letter-spacing: -.045em; font-variant-numeric: tabular-nums; }
.buybox .price span { font-size: 15px; color: var(--ink-2); }
.buybox .then { margin-top: 6px; font-size: 15px; line-height: 1.45; color: var(--ink-2); }
.opts { display: grid; grid-template-columns: auto 1fr; gap: 6px clamp(28px, 3.4vw, 56px); padding-top: clamp(14px, 2.2svh, 22px); border-top: 1px solid var(--rule); }
.opts .note { grid-column: 1 / -1; }
.opt-h { display: flex; flex-wrap: wrap; align-items: baseline; gap: .45rem; font-size: 15px; line-height: 1.3; }
.opt-h span { color: var(--ink-2); }
.opt-h b { font-weight: 600; }
.opt-h em { margin-left: auto; font-style: normal; font-size: 13px; color: var(--ink-3); }
.sw { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.sw button { position: relative; width: 50px; height: 50px; padding: 0; border: 0; border-radius: 50%; background: none; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.sw button i { position: absolute; inset: 7px; border-radius: 50%; background-size: cover; background-position: center; box-shadow: inset 0 0 0 1px rgba(12, 12, 13, .2); transition: box-shadow 200ms ease, transform 180ms var(--ease); }
.sw button[aria-checked="true"] i { box-shadow: inset 0 0 0 1px rgba(12, 12, 13, .2), 0 0 0 2px var(--paper), 0 0 0 4px var(--ink); }
.sw button:active i { transform: scale(.92); }
.sw button[aria-disabled="true"] { cursor: not-allowed; }
.sw button[aria-disabled="true"] i { opacity: .45; }
.sw button[aria-disabled="true"]::after { content: ""; position: absolute; left: 10px; right: 10px; top: 50%; height: 2px; border-radius: 2px; background: var(--ink-2); transform: rotate(-45deg); }
.note { font-size: 13px; line-height: 1.4; color: var(--ink-3); }
.due { padding: clamp(14px, 2.2svh, 20px) 20px clamp(14px, 2.2svh, 18px); border-radius: 22px; background: var(--white); box-shadow: 0 0 0 1px var(--rule), 0 30px 60px -40px rgba(12, 12, 13, .35); }
.due .row { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; }
.due .row span { font-size: 17px; font-weight: 600; }
.due .row b { font-size: clamp(26px, min(2.4vw, 4.4svh), 32px); font-weight: 600; line-height: 1.1; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.due .btn.wide { min-height: clamp(50px, 7svh, 60px); margin-top: clamp(10px, 1.6svh, 14px); }
.due .guar { margin-top: 10px; font-size: 13px; text-align: center; color: var(--ink-3); }
.oos-pill { margin-top: 10px; }
.oos-pill span { display: inline-flex; padding: .35em .8em; border-radius: 999px; background: var(--paper-2); font-size: 13px; font-weight: 600; }
/* Sold out (pricing.js's `data-oos`), "Buy Relay One · $299" loses its price; the dot before it goes too. */
[data-oos] span[aria-hidden="true"] { display: none; }
/* Under the fold: the lenses to look at, what comes in the box, the terms. */
.rest { padding-top: clamp(28px, 5vh, 56px); }
.rest .opt + .opt { margin-top: 22px; padding-top: 16px; border-top: 1px solid var(--rule); }
.lenses { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.lenses button { display: inline-flex; align-items: center; gap: .55em; min-height: 44px; padding: 0 1em 0 .45em; border: 0; border-radius: 999px; background: var(--white); box-shadow: inset 0 0 0 1px var(--rule); font-size: 15px; font-weight: 600; cursor: pointer; transition: box-shadow 200ms ease, transform 180ms var(--ease); -webkit-tap-highlight-color: transparent; }
.lenses button i { width: 32px; height: 32px; border-radius: 50%; background-size: cover; background-position: center; box-shadow: inset 0 0 0 1px rgba(12, 12, 13, .14); }
.lenses button[aria-pressed="true"] { box-shadow: inset 0 0 0 2px var(--ink); }
.lenses button:active { transform: scale(.96); }
.fine { margin-top: 22px; font-size: 13px; line-height: 1.55; color: var(--ink-3); }
.fine a { color: var(--ink-2); }
/* A phone: the picture shorter, its thumbnails left out (the swatches and lenses still turn
   it), so the name, the price, the case and the button share the screen with it. */
@media (max-width: 900px) {
  .order.sec { padding-top: calc(var(--bar) + 8px); }
  .order-grid { grid-template-columns: 1fr; gap: 14px; }
  .gal { position: static; }
  .gal-stage { width: 100%; aspect-ratio: auto; height: clamp(180px, 30svh, 360px); }
  .gal-thumbs { display: none; }
  .fold { min-height: 0; gap: 14px; }
  .buybox .name { font-size: clamp(36px, 10vw, 52px); }
  .buybox .price b { font-size: 32px; }
  .buybox .price { margin-top: 6px; }
  .buybox .then { font-size: 14px; }
  .sw button { width: 46px; height: 46px; }
}

/* ---- In the box: four lines inside the order ---- */
.inbox { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 18px; margin-top: 10px; }
.inbox li { display: flex; flex-direction: column; gap: 2px; padding: 12px 14px; border-radius: 14px; background: var(--white); box-shadow: inset 0 0 0 1px var(--rule); }
.inbox b { font-size: 15px; font-weight: 600; }
.inbox span { font-size: 13px; line-height: 1.35; color: var(--ink-2); }
@media (max-width: 400px) { .inbox { grid-template-columns: 1fr; } }

/* ---- Questions ---- */
.know { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(16px, 3vw, 48px); }
.know h2 { font-size: clamp(34px, 4.4vw, 68px); }
.know details { padding: 1.1rem 0; border-top: 1px solid var(--rule); }
.know details:last-child { border-bottom: 1px solid var(--rule); }
.know summary { cursor: pointer; font-size: 19px; font-weight: 600; letter-spacing: -.01em; list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
.know summary::-webkit-details-marker { display: none; }
.know summary::after { content: "+"; font-weight: 400; color: var(--ink-3); transition: transform 240ms var(--ease); }
.know details[open] summary::after { content: "\2212"; }
.know details p { margin-top: .6rem; max-width: 40em; font-size: 16px; line-height: 1.45; color: var(--ink-2); }
.know details a { color: var(--ink); }
@media (max-width: 900px) { .know { grid-template-columns: 1fr; } }

/* ---- The end: the last button, and the way to the vision ---- */
.end { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--gap); max-width: calc(var(--max) + 2 * var(--gap)); margin: 0 auto; padding: 0 var(--gap) var(--gap); }
.end > * { border-radius: var(--r); padding: clamp(28px, 5vw, 72px); min-height: clamp(360px, 52vh, 560px); display: flex; flex-direction: column; justify-content: space-between; gap: 28px; }
.end .last { background: var(--white); }
.end .last h2 { max-width: 9em; }
.end .acts { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
/* Why we built it, beside the last button and on the way to the vision (owner, 2026-11-04:
   "maybe put why we built it at the botom near a button 'the vision'"). The founder's film is
   the card's picture, and The vision is a ghost button, lighter than the order's. The film
   takes the card's width: in a frame of its own it was a flex item with auto margins and
   nothing in its flow, so it shrank to 0 px wide, and its 16:9 to 0 px tall. */
.end .why { background: var(--white); }
.end .why h2 { max-width: 9em; font-size: clamp(34px, 4.2vw, 64px); }
.end .why .fv { width: 100%; max-width: none; margin: 0; border-radius: calc(var(--r) * .6); }
.end .why .btn { align-self: flex-start; }
@media (max-width: 900px) {
  .end { grid-template-columns: 1fr; }
  .end > * { min-height: 0; }
}
/* A phone plays the 9:16 cut; it keeps the height the frame of its own gave it. */
@media (max-width: 759px) { .end .why .fv { width: min(100%, calc(78svh * 9 / 16)); } }

/* ---- the phone's buy bar: once past the first screen, out of the way over the order and the end ---- */
.buybar { position: fixed; z-index: 25; left: 0; right: 0; bottom: 0; display: none; align-items: center; justify-content: space-between; gap: 12px; padding: 12px var(--pad) calc(12px + env(safe-area-inset-bottom)); background: rgba(244, 242, 238, .96); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); box-shadow: 0 -1px 0 var(--rule); transform: translateY(110%); transition: transform 320ms var(--ease); }
.buybar.on { transform: none; }
.buybar p { display: flex; flex-direction: column; line-height: 1.15; }
.buybar b { font-size: 19px; font-variant-numeric: tabular-nums; }
.buybar span { font-size: 12px; color: var(--ink-2); }
.buybar .btn { min-height: 48px; padding: 0 1.3em; font-size: 16px; }
@media (max-width: 760px) { .buybar { display: flex; } }

/* ---- foot ---- */
.foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 2rem; max-width: var(--max); margin: 0 auto; padding: 1.5rem var(--pad) calc(2rem + env(safe-area-inset-bottom)); font-size: 14px; color: var(--ink-3); }
.foot nav { display: flex; flex-wrap: wrap; gap: .4rem 1.2rem; }
.foot a { color: var(--ink-2); text-decoration: none; }
.foot a:hover { color: var(--ink); }
@media (max-width: 760px) { .foot { padding-bottom: calc(5.5rem + env(safe-area-inset-bottom)); } }

/* ---- Reduce Motion: everything at rest, nothing plays by itself ---- */
@media (prefers-reduced-motion: reduce) {
  .js .rv, .js .mega .w, .js .hero-act, .js .cue, .js .hero-bg img { opacity: 1 !important; animation: none !important; transition: none !important; }
  .js .rv, .js .mega .w, .js .hero-act { transform: none !important; }
  .hero-bg img { transform: scale(1.1) !important; }
  .meet-pic picture { transform: none !important; }
  .gal-stage figure, .buybar { transition: none !important; }
  .hero-film { display: none !important; }
}

/* ---- an address's Copy button (assets/contact.js shows it) ---- */
.mail-copy { margin-left: .4em; padding: .2em .65em; border: 0; border-radius: 999px; background: var(--paper-2); color: var(--ink); font: 600 13px/1.3 var(--sans); cursor: pointer; vertical-align: baseline; }
.mail-copy:hover { background: #E2DED6; }

/* ---- Why we built it: the founder's film, 16:9 on a wide screen, 9:16 on a phone ---- */
.fv { position: relative; margin: clamp(28px, 5vh, 56px) auto 0; max-width: 1180px; aspect-ratio: 16 / 9; border-radius: var(--r); overflow: hidden; background: var(--paper-2); }
@media (max-width: 759px) { .fv { aspect-ratio: 9 / 16; width: min(100%, calc(78svh * 9 / 16)); } }
.fv-play { all: unset; position: absolute; inset: 0; display: block; cursor: pointer; }
.fv-play:focus-visible { outline: 2px solid var(--ink); outline-offset: -4px; }
.fv-play picture, .fv-play img { display: block; width: 100%; height: 100%; }
.fv-play img { object-fit: cover; }
.fv-btn { position: absolute; left: 50%; bottom: clamp(16px, 4vw, 32px); transform: translateX(-50%); display: inline-flex; align-items: center; gap: .55rem; min-height: 48px; padding: .7rem 1.35rem; border-radius: 999px; background: rgba(255, 255, 255, .92); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); color: var(--ink); font-size: 17px; font-weight: 600; white-space: nowrap; transition: transform 180ms var(--ease); }
.fv-play:active .fv-btn { transform: translateX(-50%) scale(.96); }
.fv-btn svg { width: 18px; height: 18px; fill: var(--ink); }
.fv-len { color: var(--ink-2); font-weight: 400; }
.fv video[hidden] { display: none; }
.fv video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; background: #000; }

/* ---- the side ruler (after yourpersona.com, owner 2026-11-03): one tick per frame
   ([data-frame], in page order), the one in view longest with its name beside it, its
   neighbours a little longer, like a dock; a tick takes you to its frame. Desk only. ---- */
.ruler { position: fixed; z-index: 28; top: 50%; right: 14px; display: none; flex-direction: column; transform: translateY(-50%); }
@media (min-width: 1024px) { .ruler { display: flex; } }
.ruler button { position: relative; display: flex; align-items: center; justify-content: flex-end; width: 48px; height: 12px; padding: 0; border: 0; background: none; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.ruler .t { display: block; width: var(--w, 11px); height: 1.5px; border-radius: 2px; background: var(--ink-3); opacity: .55; transition: width 220ms var(--ease), opacity 220ms ease, background 220ms ease; }
.ruler button:hover .t { opacity: 1; }
.ruler button[aria-current="true"] .t { background: var(--ink); opacity: 1; }
.ruler .n { position: absolute; right: calc(var(--w, 11px) + 10px); top: 50%; transform: translate(6px, -50%); padding: .3em .7em; border-radius: 999px; background: rgba(244, 242, 238, .94); box-shadow: 0 0 0 1px var(--rule); font-size: 12px; font-weight: 600; letter-spacing: .01em; line-height: 1.2; white-space: nowrap; color: var(--ink); opacity: 0; pointer-events: none; transition: opacity 220ms ease, transform 320ms var(--ease); }
/* A frame's name shows for a moment as the reader reaches it (.say, buy.js), and under the pointer. */
.ruler.say button[aria-current="true"] .n, .ruler button:hover .n, .ruler button:focus-visible .n { opacity: 1; transform: translate(0, -50%); }
.ruler.night .t { background: var(--on-night-2); }
.ruler.night button[aria-current="true"] .t { background: var(--on-night); }
.ruler.night .n { background: rgba(11, 11, 12, .72); box-shadow: 0 0 0 1px rgba(255, 255, 255, .12); color: var(--on-night); }
@media (prefers-reduced-motion: reduce) { .ruler .t, .ruler .n { transition: none; } }

/* ---- the name, huge and faint, where the page ends ---- */
.giant { overflow: hidden; margin: 0 auto; padding: 0 var(--pad); max-width: var(--max); font-size: clamp(96px, 26vw, 440px); font-weight: 600; line-height: .74; letter-spacing: -.02em; color: var(--paper-2); user-select: none; height: .62em; }
