/* Ondo website template.
   BRAND SETTINGS below set the colours and fonts for the whole page. */

@font-face { font-family: 'Syne'; src: url('../fonts/syne-latin-wght-normal.woff2') format('woff2'); font-weight: 400 800; font-display: swap; }
@font-face { font-family: 'Inter'; src: url('../fonts/inter-latin-wght-normal.woff2') format('woff2'); font-weight: 100 900; font-display: swap; }

:root {
  /* ---------- BRAND SETTINGS ---------- */
  --t-ground: #0f1a1b;        /* page background, behind the product */
  --t-ground-2: #142223;      /* the details panel below the story */
  --t-ink: #efe8da;           /* main text and the big words */
  --t-muted: #9ba7a2;         /* secondary text */
  --t-dim: #223334;           /* the big words behind each chapter */
  --t-line: #2a3b3c;          /* thin dividing lines */
  --t-accent: #ff9a5c;        /* buttons and highlights */
  --t-on-accent: #2b1306;     /* text on accent buttons */
  --t-display: 'Syne', 'Inter', system-ui, sans-serif;   /* big words, headings, wordmark */
  --t-display-weight: 700;
  --t-display-tracking: -0.045em;
  --t-body: 'Inter', system-ui, sans-serif;              /* everything else */
  /* ------------------------------------- */

  --gutter: clamp(16px, 4vw, 64px);
  --r-pill: 999px;
  --r-panel: 28px;
  --ease-out: cubic-bezier(.16, 1, .3, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; background: var(--t-ground); }
body { margin: 0; background: var(--t-ground); color: var(--t-ink); font-family: var(--t-body); font-size: 17px; line-height: 1.55; -webkit-font-smoothing: antialiased; overflow-x: clip; }
a { color: inherit; }
img { display: block; max-width: 100%; }
:focus-visible { outline: 2px solid var(--t-accent); outline-offset: 3px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.label { margin: 0; font-size: 12px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--t-muted); }
.small { margin: 0; font-size: 14px; color: var(--t-muted); }
h2 { margin: 0; font-family: var(--t-display); font-weight: var(--t-display-weight); letter-spacing: -0.03em; text-wrap: balance; }

/* ---------- The big words, fixed behind the product ---------- */
.bigtype { position: fixed; inset: 0; z-index: 0; display: grid; place-items: start center; padding-top: max(84px, 11vh); pointer-events: none; }
.word { grid-area: 1 / 1; margin: 0; text-align: center; white-space: nowrap; font-family: var(--t-display); font-weight: var(--t-display-weight); letter-spacing: var(--t-display-tracking); line-height: .86; font-size: min(15vw, 23vh, 270px); color: var(--t-ink); }
.word.dim { align-self: center; margin-top: -11vh; font-size: min(13vw, 240px); color: var(--t-dim); }
.word.mark { font-weight: 800; letter-spacing: -0.055em; line-height: .9; font-size: min(18vw, 30vh, 320px); }
.word .ln { display: block; overflow: hidden; padding: 0 .05em .1em; }
.word .ln > span { display: block; transform: translateY(130%); visibility: hidden; transition: transform 1.1s var(--ease-out), visibility 0s 1.1s; }
.word.is-active .ln > span { transform: none; visibility: visible; transition: transform 1.1s var(--ease-out), visibility 0s; }
.word.is-active .ln:nth-child(3) > span { transition-delay: .08s, 0s; }
.word .gap { display: block; height: min(7vw, 13vh, 120px); }

/* ---------- The 3D product, and its still pictures ---------- */
.stage { position: fixed; inset: 0; z-index: 1; display: block; width: 100%; height: 100%; touch-action: pan-y; cursor: grab; outline: none; }
.stage.is-dragging { cursor: grabbing; }
.stage:focus-visible { outline: 2px solid var(--t-accent); outline-offset: -8px; }
.stills { display: none; }
.no-3d .stage, html:not(.js) .stage { display: none; }
.no-3d .stills, html:not(.js) .stills { display: block; position: fixed; inset: 0; z-index: 1; pointer-events: none; }
.still { position: absolute; inset: 0; opacity: 0; transition: opacity .6s var(--ease-out); }
.still.is-active { opacity: 1; }
.still img { width: 100%; height: 100%; object-fit: cover; }
.no-3d .hint { display: none; }
.vignette { position: fixed; inset: 0; z-index: 2; pointer-events: none; background: radial-gradient(120% 90% at 50% 45%, transparent 55%, rgb(0 0 0 / .38)); }

/* ---------- Header ---------- */
.nav { position: fixed; inset: 0 0 auto; z-index: 50; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px var(--gutter); pointer-events: none; }
.nav > * { pointer-events: auto; }
.nav::before { content: ''; position: absolute; inset: 0; z-index: -1; background: color-mix(in oklab, var(--t-ground-2) 88%, transparent); backdrop-filter: blur(12px); opacity: 0; transition: opacity .3s; }
.past-story .nav::before { opacity: 1; }
.wordmark { font-family: var(--t-display); font-weight: 800; font-size: 24px; letter-spacing: -0.045em; line-height: 1; text-decoration: none; }
.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-link { display: inline-flex; align-items: center; min-height: 40px; padding: 0 14px; border-radius: var(--r-pill); font-size: 14px; font-weight: 500; text-decoration: none; transition: background-color .2s; }
.nav-link:hover { background: color-mix(in oklab, var(--t-ink) 10%, transparent); }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 12px; min-height: 52px; padding: 0 26px; border: 0; border-radius: var(--r-pill); font: inherit; font-size: 16px; font-weight: 600; text-decoration: none; cursor: pointer; transition: transform .25s var(--ease-out), background-color .25s, box-shadow .25s; }
.btn:active { transform: scale(.98); }
.btn-accent { background: var(--t-accent); color: var(--t-on-accent); }
.btn-accent:hover { background: color-mix(in oklab, var(--t-accent) 86%, white); }
.btn-ghost { background: transparent; color: var(--t-ink); box-shadow: inset 0 0 0 1px color-mix(in oklab, var(--t-ink) 38%, transparent); }
.btn-ghost:hover { box-shadow: inset 0 0 0 1px var(--t-ink); }
.btn-small { min-height: 40px; padding: 0 18px; margin-left: 8px; font-size: 14px; }
.btn .arrow { width: 16px; height: 16px; transition: transform .35s var(--ease-out); }
.btn:hover .arrow { transform: translateX(3px); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- The story ---------- */
main { position: relative; z-index: 10; pointer-events: none; }
main a, main button, main .copy { pointer-events: auto; }
section { position: relative; }
.hero, .story, .end { min-height: 100svh; padding: 0 var(--gutter); }
.hero { display: grid; align-content: end; padding-bottom: clamp(24px, 5vh, 56px); }
.hero-row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 32px; }
.hero .copy { display: grid; gap: 18px; max-width: 470px; }
.lead { margin: 0; font-size: clamp(17px, 1.3vw, 19px); color: color-mix(in oklab, var(--t-ink) 86%, var(--t-ground)); }
.hint { display: inline-flex; align-items: center; gap: 10px; }
.hint svg { width: 18px; height: 18px; }
.story { display: grid; align-items: center; min-height: 130svh; }
.story .copy { display: grid; gap: 14px; max-width: 420px; }
.story h2 { font-size: clamp(32px, 4.2vw, 58px); line-height: 1; }
.story .copy > p:not(.label) { margin: 0; max-width: 36ch; color: var(--t-muted); }
.end { display: grid; align-content: end; padding-bottom: clamp(40px, 9vh, 110px); }
.end .copy { display: grid; gap: 20px; max-width: 520px; }
.end h2 { font-size: clamp(30px, 3.4vw, 50px); line-height: 1.02; max-width: 14ch; }
.price { margin: 0; font-family: var(--t-display); font-weight: 700; font-size: 30px; letter-spacing: -0.02em; line-height: 1.1; }
.price span { margin-left: 10px; font-family: var(--t-body); font-weight: 400; font-size: 15px; letter-spacing: 0; color: var(--t-muted); }
.variants { display: grid; gap: 12px; }
.variants .label span { color: var(--t-ink); }
.swatches { display: flex; gap: 12px; }
.swatch { width: 40px; height: 40px; padding: 0; border: 0; border-radius: 50%; background: var(--swatch); cursor: pointer; box-shadow: inset 0 0 0 1px rgb(255 255 255 / .2), 0 0 0 3px var(--t-ground), 0 0 0 4px transparent; transition: box-shadow .25s var(--ease-out); }
.swatch:hover { box-shadow: inset 0 0 0 1px rgb(255 255 255 / .2), 0 0 0 3px var(--t-ground), 0 0 0 4px color-mix(in oklab, var(--t-ink) 40%, transparent); }
.swatch[aria-pressed='true'] { box-shadow: inset 0 0 0 1px rgb(255 255 255 / .2), 0 0 0 3px var(--t-ground), 0 0 0 5px var(--t-ink); }

/* ---------- Details below the story ---------- */
.after { position: relative; z-index: 20; display: grid; gap: clamp(64px, 9vw, 128px); padding: clamp(56px, 8vw, 112px) var(--gutter) 36px; border-radius: var(--r-panel) var(--r-panel) 0 0; background: var(--t-ground-2); }
.after section { scroll-margin-top: 88px; }
.after h2 { font-size: clamp(30px, 3.6vw, 52px); line-height: 1; }
.specs, .questions { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 32px; }
.spec-list { display: grid; margin: 0; }
.spec-list div { display: grid; grid-template-columns: minmax(120px, 1fr) 2fr; gap: 24px; padding: 18px 0; border-top: 1px solid var(--t-line); }
.spec-list div:last-child { border-bottom: 1px solid var(--t-line); }
.spec-list dt { color: var(--t-muted); }
.spec-list dd { margin: 0; }
.faq details { border-top: 1px solid var(--t-line); }
.faq details:last-child { border-bottom: 1px solid var(--t-line); }
.faq summary { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 20px 0; font-size: 18px; font-weight: 500; list-style: none; cursor: pointer; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; flex: none; font-size: 24px; font-weight: 300; line-height: 1; color: var(--t-muted); transition: transform .3s var(--ease-out); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { max-width: 60ch; margin: 0 0 22px; color: var(--t-muted); }
.footer { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 12px 32px; padding-top: 32px; border-top: 1px solid var(--t-line); font-size: 15px; color: var(--t-muted); }
.footer p { margin: 0; }
.footer-brand { font-family: var(--t-display); font-weight: 800; font-size: 30px; letter-spacing: -0.045em; color: var(--t-ink); }

/* ---------- Loading screen ---------- */
.veil { position: fixed; inset: 0; z-index: 90; display: grid; place-items: center; background: var(--t-ground); pointer-events: none; transition: opacity .9s var(--ease-out), visibility 0s .9s; }
.veil-mark { font-family: var(--t-display); font-weight: 800; font-size: 28px; letter-spacing: -0.045em; opacity: .5; }
.is-loaded .veil, html:not(.js) .veil { opacity: 0; visibility: hidden; }

/* ---------- Phones ---------- */
@media (max-width: 759px) {
  .nav-link { display: none; }
  .hero-row { flex-direction: column; align-items: stretch; }
  .hero .copy { gap: 14px; }
  .hint { display: none; }
  .story { align-items: end; padding-bottom: 14svh; }
  .bigtype { padding-top: 12svh; }
  .word { font-size: 17vw; }
  .word .gap { height: 40vw; }
  .word.dim { align-self: start; margin-top: 0; padding-top: 30svh; font-size: 15vw; }
  .word.mark { font-size: 18vw; }
  .specs, .questions { grid-template-columns: 1fr; gap: 20px; }
  .spec-list div { grid-template-columns: 1fr; gap: 2px; padding: 14px 0; }
  .price span { display: block; margin: 6px 0 0; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  .word .ln > span, .still, .veil, .btn, .btn .arrow, .faq summary::after { transition: none; }
}
.reduce .word .ln > span, .reduce .still, .reduce .veil, .reduce .btn, .reduce .btn .arrow { transition: none; }

/* ---------- Still pictures: ?still=N shows only the product on a clear page ---------- */
.still-mode, .still-mode body { background: transparent; }
.still-mode .bigtype, .still-mode .nav, .still-mode main, .still-mode .after, .still-mode .veil, .still-mode .vignette, .still-mode .stills { display: none !important; }
