/* Aulama — design system
   Light and dark themes, Liquid Glass navigation layer, scroll-linked motion. */

/* ------------------------------------------------------------------ tokens */
:root {
  --bg: #f3f6f0;
  --bg-elev: #ffffff;
  --ink: #0a0c12;
  --ink-2: #4a5162;
  --ink-3: #656b7c;
  --ink-faint: rgba(10, 12, 18, .16);
  --line: rgba(12, 16, 28, .085);
  --line-2: rgba(12, 16, 28, .15);
  --card: rgba(255, 255, 255, .7);
  --card-solid: #ffffff;
  --card-border: rgba(255, 255, 255, .95);
  --card-shadow: 0 1px 1px rgba(15, 20, 40, .03), 0 18px 50px -18px rgba(20, 30, 70, .18);
  --shadow-lg: 0 40px 90px -30px rgba(20, 30, 70, .35), 0 10px 30px rgba(20, 30, 70, .08);
  --field: rgba(255, 255, 255, .8);
  --field-border: rgba(12, 16, 28, .12);

  --glass-bg: rgba(255, 255, 255, .32);
  --glass-bg-strong: rgba(250, 251, 255, .72);
  --glass-menu: rgba(247, 249, 245, .9);
  --glass-bright: 1.07;
  --glass-hi: rgba(255, 255, 255, .9);
  --glass-lo: rgba(255, 255, 255, .3);
  --glass-edge: rgba(15, 22, 45, .1);
  --glass-shadow: 0 12px 34px -10px rgba(20, 30, 70, .22), 0 2px 8px rgba(20, 30, 70, .06);
  --glass-rim: rgba(255, 255, 255, 1);
  --glow: rgba(255, 255, 255, .85);
  --lens-bg: rgba(255, 255, 255, .5);
  --glass-caustic: rgba(255, 255, 255, .55);
  --glass-shade: rgba(20, 30, 60, .06);
  --sel-bg: rgba(10, 12, 18, .075);
  --sel-hi: rgba(255, 255, 255, .7);

  --b1: #6cbf2a;
  --b2: #1f9d5c;
  --b3: #0f8f8a;
  --grad: linear-gradient(115deg, var(--b1), var(--b2) 50%, var(--b3));
  --accent: #178a4d;
  --ok: #16a34a;
  --danger: #dc2626;

  --font: "Inter", -apple-system, BlinkMacSystemFont, "SF Pro Text", "PingFang HK", "PingFang TC", "Noto Sans TC", "Microsoft JhengHei", system-ui, sans-serif;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --spring: cubic-bezier(.3, 1.5, .45, 1);
  --radius: 30px;
  --nav-top: 14px;
  --nav-h: 60px;
  --gutter: clamp(20px, 5vw, 56px);
  --maxw: 1180px;
  color-scheme: light;
}

:root[data-theme="dark"] {
  --bg: #050806;
  --bg-elev: #0d1410;
  --b1: #c4f06a;
  --b2: #4ade80;
  --b3: #2dd4bf;
  --ink: #f2f4f9;
  --ink-2: #a4abbb;
  --ink-3: #8d94a6;
  --ink-faint: rgba(242, 244, 249, .16);
  --line: rgba(255, 255, 255, .08);
  --line-2: rgba(255, 255, 255, .15);
  --card: rgba(14, 21, 17, .62);
  --card-solid: #0e1511;
  --card-border: rgba(255, 255, 255, .07);
  --card-shadow: 0 1px 0 rgba(255, 255, 255, .04) inset, 0 24px 60px -24px rgba(0, 0, 0, .8);
  --shadow-lg: 0 40px 100px -30px rgba(0, 0, 0, .85), 0 10px 30px rgba(0, 0, 0, .4);
  --field: rgba(255, 255, 255, .05);
  --field-border: rgba(255, 255, 255, .12);
  --glass-bg: rgba(26, 36, 30, .34);
  --glass-bg-strong: rgba(16, 24, 20, .8);
  --glass-menu: rgba(13, 18, 15, .9);
  --glass-bright: .96;
  --glass-hi: rgba(255, 255, 255, .3);
  --glass-lo: rgba(255, 255, 255, .06);
  --glass-edge: rgba(255, 255, 255, .1);
  --glass-shadow: 0 14px 38px -10px rgba(0, 0, 0, .75), 0 2px 8px rgba(0, 0, 0, .35);
  --glass-rim: rgba(255, 255, 255, .6);
  --glow: rgba(255, 255, 255, .4);
  --lens-bg: rgba(255, 255, 255, .17);
  --glass-caustic: rgba(255, 255, 255, .12);
  --glass-shade: rgba(0, 0, 0, .25);
  --sel-bg: rgba(255, 255, 255, .11);
  --sel-hi: rgba(255, 255, 255, .22);
  --accent: #5ee08f;
  color-scheme: dark;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #050806;
    --bg-elev: #0d1410;
    --b1: #c4f06a;
    --b2: #4ade80;
    --b3: #2dd4bf;
    --ink: #f2f4f9;
    --ink-2: #a4abbb;
    --ink-3: #8d94a6;
    --ink-faint: rgba(242, 244, 249, .16);
    --line: rgba(255, 255, 255, .08);
    --line-2: rgba(255, 255, 255, .15);
    --card: rgba(14, 21, 17, .62);
    --card-solid: #0e1511;
    --card-border: rgba(255, 255, 255, .07);
    --card-shadow: 0 1px 0 rgba(255, 255, 255, .04) inset, 0 24px 60px -24px rgba(0, 0, 0, .8);
    --shadow-lg: 0 40px 100px -30px rgba(0, 0, 0, .85), 0 10px 30px rgba(0, 0, 0, .4);
    --field: rgba(255, 255, 255, .05);
    --field-border: rgba(255, 255, 255, .12);
    --glass-bg: rgba(26, 36, 30, .34);
    --glass-bg-strong: rgba(16, 24, 20, .8);
    --glass-menu: rgba(13, 18, 15, .9);
    --glass-bright: .96;
    --glass-hi: rgba(255, 255, 255, .3);
    --glass-lo: rgba(255, 255, 255, .06);
    --glass-edge: rgba(255, 255, 255, .1);
    --glass-shadow: 0 14px 38px -10px rgba(0, 0, 0, .75), 0 2px 8px rgba(0, 0, 0, .35);
    --glass-rim: rgba(255, 255, 255, .6);
    --glow: rgba(255, 255, 255, .4);
    --lens-bg: rgba(255, 255, 255, .17);
    --glass-caustic: rgba(255, 255, 255, .12);
    --glass-shade: rgba(0, 0, 0, .25);
    --sel-bg: rgba(255, 255, 255, .11);
    --sel-hi: rgba(255, 255, 255, .22);
  --glass-caustic: rgba(255, 255, 255, .12);
  --glass-shade: rgba(0, 0, 0, .25);
  --sel-bg: rgba(255, 255, 255, .11);
  --sel-hi: rgba(255, 255, 255, .22);
    --accent: #5ee08f;
    color-scheme: dark;
  }
}

/* ------------------------------------------------------------------ base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: 96px; }
body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
body.is-locked { overflow: hidden; }
img, video, canvas, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }
::selection { background: color-mix(in srgb, var(--b2) 30%, transparent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 10px; }

.skip-link {
  position: fixed; left: 16px; top: -60px; z-index: 100;
  padding: 10px 16px; border-radius: 999px; background: var(--ink); color: var(--bg);
  transition: top .2s var(--ease);
}
.skip-link:focus { top: 16px; }

/* Theme cross-fade (browsers with View Transitions) */
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .5s; animation-timing-function: var(--ease); }

/* ------------------------------------------------------------------ backdrop */
.page-glow {
  position: fixed; inset: -20vh -20vw; z-index: 0; pointer-events: none;
  background:
    radial-gradient(40vw 40vw at 82% 12%, color-mix(in srgb, var(--b1) 16%, transparent), transparent 70%),
    radial-gradient(46vw 46vw at 8% 70%, color-mix(in srgb, var(--b3) 12%, transparent), transparent 70%),
    radial-gradient(30vw 30vw at 60% 100%, color-mix(in srgb, var(--b2) 10%, transparent), transparent 70%);
}
#scene {
  position: fixed; inset: 0; z-index: 0;
  width: 100vw; height: 100vh; height: 100lvh;
  pointer-events: none;
  opacity: 0;
  transition: opacity .6s var(--ease);
}
.no-webgl #scene { display: none; }
.no-webgl .page-glow { opacity: 1.6; }
main, .site-footer { position: relative; z-index: 1; }

/* Scroll edge: content dissolves beneath the floating navigation. */
.scroll-edge {
  position: fixed; inset: 0 0 auto; height: 110px; z-index: 40; pointer-events: none;
  background: linear-gradient(to bottom, color-mix(in srgb, var(--bg) 92%, transparent), color-mix(in srgb, var(--bg) 0%, transparent));
  opacity: 0; transition: opacity .4s var(--ease);
  -webkit-mask: linear-gradient(#000 45%, transparent);
          mask: linear-gradient(#000 45%, transparent);
  backdrop-filter: blur(2px);
}
.site-nav.is-scrolled ~ .scroll-edge, body:has(.site-nav.is-scrolled) .scroll-edge { opacity: 1; }
.is-over-hero .scroll-edge { opacity: 0 !important; }

/* ------------------------------------------------------------------ type */
.container { width: min(var(--maxw), 100% - var(--gutter) * 2); margin-inline: auto; }
.narrow { width: min(820px, 100% - var(--gutter) * 2); margin-inline: auto; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  margin: 0 0 18px;
  color: var(--ink-2);
  font-size: 13px; font-weight: 600; letter-spacing: .08em;
}
.eyebrow::before {
  content: ""; width: 8px; height: 8px; border-radius: 50%;
  background: var(--grad); box-shadow: 0 0 0 4px color-mix(in srgb, var(--b2) 14%, transparent);
}
.display {
  margin: 0;
  font-size: clamp(46px, 7.6vw, 112px);
  line-height: 1.02;
  letter-spacing: -.035em;
  font-weight: 700;
  text-wrap: balance;
}
.display > span, .h2 > span { display: block; }
.h2 {
  margin: 0;
  font-size: clamp(34px, 4.7vw, 66px);
  line-height: 1.08;
  letter-spacing: -.03em;
  font-weight: 700;
  text-wrap: balance;
}
.h3 { margin: 0; font-size: clamp(22px, 2vw, 28px); line-height: 1.25; letter-spacing: -.02em; font-weight: 650; }
.lead { margin: 0; color: var(--ink-2); font-size: clamp(17px, 1.45vw, 21px); line-height: 1.65; text-wrap: pretty; }
.muted { color: var(--ink-3); }
.grad {
  background: var(--grad);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
}
.section { padding-block: clamp(96px, 14vw, 180px); }
.section-head { display: grid; gap: 22px; max-width: 760px; margin-bottom: clamp(48px, 6vw, 80px); }
.section-head.center { margin-inline: auto; text-align: center; justify-items: center; }

/* ------------------------------------------------------------------ buttons */
.btn {
  --h: 50px;
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: var(--h); padding: 0 24px;
  border: 0; border-radius: 999px;
  font-size: 15.5px; font-weight: 600; letter-spacing: -.005em; white-space: nowrap;
  transition: transform .5s var(--spring), box-shadow .3s var(--ease), background-color .3s var(--ease), color .3s var(--ease);
  overflow: hidden; isolation: isolate;
  -webkit-tap-highlight-color: transparent;
}
.btn svg { width: 18px; height: 18px; flex: none; transition: transform .35s var(--ease); }
.btn:hover svg.arrow { transform: translateX(3px); }
.btn-primary { background: var(--ink); color: var(--bg); box-shadow: 0 10px 30px -12px color-mix(in srgb, var(--ink) 60%, transparent); }
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 16px 36px -12px color-mix(in srgb, var(--ink) 65%, transparent); }
.btn-brand { background: var(--grad); color: #fff; box-shadow: 0 14px 34px -12px color-mix(in srgb, var(--b2) 70%, transparent); }
.btn-glass { color: var(--ink); }
.btn-text { padding-inline: 6px; color: var(--ink); min-height: 44px; overflow: visible; }
.btn-text:hover { color: var(--accent); }
.btn-sm { --h: 40px; padding: 0 16px; font-size: 14px; }
.btn-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }

/* ------------------------------------------------------------------ liquid glass */
/* Material follows Apple's Liquid Glass: a thin, mostly clear layer whose rim
   bends the content behind it, a specular edge lit from above (and from the
   pointer), light gathering inside the lower edge, and a soft floating shadow. */
.lg {
  position: relative;
  isolation: isolate;
  background: var(--glass-bg);
  -webkit-backdrop-filter: blur(var(--lg-blur, 16px)) saturate(1.9) brightness(var(--glass-bright));
          backdrop-filter: blur(var(--lg-blur, 16px)) saturate(1.9) brightness(var(--glass-bright));
  box-shadow:
    var(--glass-shadow),
    inset 0 1px 0 var(--glass-hi),
    inset 0 -1px 0 var(--glass-lo),
    inset 0 0 0 .5px var(--glass-edge),
    inset 0 -12px 22px -16px var(--glass-caustic),
    inset 0 10px 18px -14px var(--glass-shade);
}
.lg-lensing .lg.has-lens {
  -webkit-backdrop-filter: blur(var(--lg-blur-lens, 3px)) var(--lg-lens) saturate(1.9) brightness(var(--glass-bright));
          backdrop-filter: blur(var(--lg-blur-lens, 3px)) var(--lg-lens) saturate(1.9) brightness(var(--glass-bright));
}
/* Specular rim: a key light from the top left, a faint bounce on the opposite
   edge, and a hotspot that slides round the rim towards the pointer. */
.lg::before {
  content: "";
  position: absolute; inset: 0; z-index: -1;
  border-radius: inherit;
  padding: 1px;
  background:
    radial-gradient(160px circle at var(--mx, 70%) var(--my, -60px), var(--glass-rim), transparent 70%) fixed,
    linear-gradient(135deg, var(--glass-rim), color-mix(in srgb, var(--glass-rim) 25%, transparent) 22%, transparent 45%, transparent 62%, color-mix(in srgb, var(--glass-rim) 45%, transparent) 88%, var(--glass-rim));
  -webkit-mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  pointer-events: none;
  opacity: .85;
}
/* Touch energy: light spreads from where the control was pressed. */
.btn::after, .icon-button::after, .nav-tab::after, .pill-button::after, .ghost-button::after,
.nav-language-button::after, .home-account-button::after, .home-account-menu-link::after,
.nav-language-option::after, .lg-press::after {
  content: "";
  position: absolute; inset: 0; z-index: 0;
  border-radius: inherit;
  background: radial-gradient(circle at var(--gx, 50%) var(--gy, 50%), var(--glow), transparent 62%);
  opacity: 0; transform: scale(.6);
  transition: opacity .5s var(--ease), transform .6s var(--ease);
  pointer-events: none;
}
.is-pressed::after { opacity: .9; transform: scale(1.4); transition-duration: .18s, .35s; }
.btn.is-pressed, .icon-button.is-pressed, .pill-button.is-pressed, .ghost-button.is-pressed,
.nav-language-button.is-pressed, .home-account-button.is-pressed, .lg-press.is-pressed { transform: scale(1.06); }

.is-released { animation: lg-release .55s var(--ease); }
@keyframes lg-release {
  0% { transform: scale(1.06); }
  40% { transform: scale(.97); }
  70% { transform: scale(1.015); }
  100% { transform: scale(1); }
}

@media (prefers-reduced-transparency: reduce), (prefers-contrast: more) {
  .lg, .lg-lensing .lg.has-lens {
    background: var(--glass-bg-strong);
    -webkit-backdrop-filter: blur(30px); backdrop-filter: blur(30px);
  }
}
@media (prefers-contrast: more) {
  .lg { background: var(--bg-elev); box-shadow: 0 0 0 1.5px var(--ink); }
}

/* ------------------------------------------------------------------ navigation */
.site-nav {
  position: fixed; z-index: 50; inset: 0 0 auto;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px;
  padding: var(--nav-top) clamp(16px, 3vw, 40px) 0;
  pointer-events: none;
  /* resolve text colour here: over the opening the nav swaps palettes with
     the sky, and inherited colour would keep the site theme's ink */
  color: var(--ink);
  transition: transform .5s var(--ease);
}
.site-nav > * { pointer-events: auto; }
.site-nav.is-hidden { transform: translateY(calc(-100% - 12px)); }
.brand { justify-self: start; display: inline-flex; align-items: center; border-radius: 12px; }
/* Same wordmark sizes as the live site (184 / 139 / 110 px wide). The PNG
   carries transparent margins above and below the letters, trimmed here so
   the larger mark does not push the bar taller. */
.brand img { width: 184px; height: auto; margin-block: -8px; }
@media (max-width: 760px) { .brand img { width: 139px; margin-block: -6px; } }
@media (max-width: 440px) { .brand img { width: 110px; margin-block: -4px; } }

/* The centre pill: a Liquid Glass tab bar. At rest the selection is a quiet
   capsule inset concentrically in the bar (60px bar, 8px inset, 44px capsule).
   Pressed, it lifts into a clear lens that magnifies the labels beneath it and
   can be dragged between tabs; released, it settles back onto the nearest tab.
   Position, size, squash and lift are sprung in aulama.js. */
.nav-center { position: relative; justify-self: center; }
.nav-pill {
  display: flex; align-items: center; gap: 2px;
  height: var(--nav-h); padding: 0 8px;
  border-radius: 999px;
  --lg-bezel: 16; --lg-depth: 10;
  user-select: none; -webkit-user-select: none;
  touch-action: pan-y;
  transform: scale(var(--pill-scale, 1));
  transition: height .5s var(--ease), padding .5s var(--ease);
}
.nav-tab {
  position: relative; z-index: 1;
  display: inline-flex; align-items: center; gap: 8px;
  height: 44px; padding: 0 20px;
  border: 0; border-radius: 999px; background: transparent;
  color: var(--ink-2); font-size: 15.5px; font-weight: 650; white-space: nowrap;
  transition: color .3s var(--ease), padding .5s var(--ease), gap .5s var(--ease);
  -webkit-tap-highlight-color: transparent;
  -webkit-user-drag: none;
}
.nav-tab svg { width: 19px; height: 19px; flex: none; }
.nav-tab > span {
  display: inline-block; max-width: 5em; overflow: hidden;
  transition: max-width .5s var(--ease), opacity .3s var(--ease);
}
.nav-tab .nav-chevron { width: 14px; height: 14px; margin-left: -2px; opacity: .6; transition: transform .35s var(--ease), width .5s var(--ease), opacity .3s var(--ease), margin .5s var(--ease); }
.nav-tab[aria-expanded="true"] .nav-chevron { transform: rotate(180deg); }
.nav-tab:hover { color: var(--ink); }
.nav-tab.is-selected { color: var(--accent); }
/* dark glass: labels in white rather than grey */
:root[data-theme="dark"] .nav-tab:not(.is-selected) { color: rgba(255, 255, 255, .94); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .nav-tab:not(.is-selected) { color: rgba(255, 255, 255, .94); } }
/* Over the opening, the navigation takes its palette from the sky behind it
   rather than from the site theme (Liquid Glass adapts to its backdrop): dark
   glass with white labels over a night sky, light glass over daylight. */
:root.is-over-hero[data-hero-sky="day"] .site-nav {
  --bg: #f3f6f0;
  --bg-elev: #ffffff;
  --ink: #0a0c12;
  --ink-2: #4a5162;
  --ink-3: #656b7c;
  --ink-faint: rgba(10, 12, 18, .16);
  --line: rgba(12, 16, 28, .085);
  --line-2: rgba(12, 16, 28, .15);
  --card: rgba(255, 255, 255, .7);
  --card-solid: #ffffff;
  --card-border: rgba(255, 255, 255, .95);
  --card-shadow: 0 1px 1px rgba(15, 20, 40, .03), 0 18px 50px -18px rgba(20, 30, 70, .18);
  --shadow-lg: 0 40px 90px -30px rgba(20, 30, 70, .35), 0 10px 30px rgba(20, 30, 70, .08);
  --field: rgba(255, 255, 255, .8);
  --field-border: rgba(12, 16, 28, .12);
  --glass-bg: rgba(255, 255, 255, .32);
  --glass-bg-strong: rgba(250, 251, 255, .72);
  --glass-menu: rgba(247, 249, 245, .9);
  --glass-bright: 1.07;
  --glass-hi: rgba(255, 255, 255, .9);
  --glass-lo: rgba(255, 255, 255, .3);
  --glass-edge: rgba(15, 22, 45, .1);
  --glass-shadow: 0 12px 34px -10px rgba(20, 30, 70, .22), 0 2px 8px rgba(20, 30, 70, .06);
  --glass-rim: rgba(255, 255, 255, 1);
  --glow: rgba(255, 255, 255, .85);
  --lens-bg: rgba(255, 255, 255, .5);
  --glass-caustic: rgba(255, 255, 255, .55);
  --glass-shade: rgba(20, 30, 60, .06);
  --sel-bg: rgba(10, 12, 18, .075);
  --sel-hi: rgba(255, 255, 255, .7);
  --b1: #6cbf2a;
  --b2: #1f9d5c;
  --b3: #0f8f8a;
  --accent: #178a4d;
  --ok: #16a34a;
  --danger: #dc2626;
  --grad: linear-gradient(115deg, var(--b1), var(--b2) 50%, var(--b3));
  color-scheme: light;
}
:root.is-over-hero[data-hero-sky="night"] .site-nav {
  --bg: #050806;
  --bg-elev: #0d1410;
  --b1: #c4f06a;
  --b2: #4ade80;
  --b3: #2dd4bf;
  --ink: #f2f4f9;
  --ink-2: #a4abbb;
  --ink-3: #8d94a6;
  --ink-faint: rgba(242, 244, 249, .16);
  --line: rgba(255, 255, 255, .08);
  --line-2: rgba(255, 255, 255, .15);
  --card: rgba(14, 21, 17, .62);
  --card-solid: #0e1511;
  --card-border: rgba(255, 255, 255, .07);
  --card-shadow: 0 1px 0 rgba(255, 255, 255, .04) inset, 0 24px 60px -24px rgba(0, 0, 0, .8);
  --shadow-lg: 0 40px 100px -30px rgba(0, 0, 0, .85), 0 10px 30px rgba(0, 0, 0, .4);
  --field: rgba(255, 255, 255, .05);
  --field-border: rgba(255, 255, 255, .12);
  --glass-bg: rgba(26, 36, 30, .34);
  --glass-bg-strong: rgba(16, 24, 20, .8);
  --glass-menu: rgba(13, 18, 15, .9);
  --glass-bright: .96;
  --glass-hi: rgba(255, 255, 255, .3);
  --glass-lo: rgba(255, 255, 255, .06);
  --glass-edge: rgba(255, 255, 255, .1);
  --glass-shadow: 0 14px 38px -10px rgba(0, 0, 0, .75), 0 2px 8px rgba(0, 0, 0, .35);
  --glass-rim: rgba(255, 255, 255, .6);
  --glow: rgba(255, 255, 255, .4);
  --lens-bg: rgba(255, 255, 255, .17);
  --glass-caustic: rgba(255, 255, 255, .12);
  --glass-shade: rgba(0, 0, 0, .25);
  --sel-bg: rgba(255, 255, 255, .11);
  --sel-hi: rgba(255, 255, 255, .22);
  --accent: #5ee08f;
  --grad: linear-gradient(115deg, var(--b1), var(--b2) 50%, var(--b3));
  color-scheme: dark;
}
:root.is-over-hero[data-hero-sky="day"] .nav-tab:not(.is-selected) { color: var(--ink-2); }
:root.is-over-hero[data-hero-sky="night"] .nav-tab:not(.is-selected) { color: rgba(255, 255, 255, .94); }

/* the pressed Liquid Glass tab-bar ripple is carried by the lens instead */
.nav-tab::after { display: none; }

/* resting selection: sits under the labels, inside the bar */
.nav-sel {
  position: absolute; z-index: 0; left: 0; top: 50%;
  width: 0; height: 44px;
  border-radius: 999px;
  pointer-events: none;
  background: var(--sel-bg);
  box-shadow: inset 0 1px 0 var(--sel-hi), inset 0 0 0 .5px var(--glass-edge);
  opacity: 0;
  will-change: transform, width;
}

/* lifted lens: taller than the bar, clear, bends and magnifies what it covers */
.nav-lens {
  position: absolute; z-index: 2; left: 0; top: 50%;
  width: 90px; height: calc(var(--nav-h) + 12px);
  border-radius: 999px;
  pointer-events: none;
  opacity: 0;
  --lg-bezel: 13; --lg-depth: 9; --lg-zoom: .1; --lg-dispersion: .035;
  background: color-mix(in srgb, var(--lens-bg) 30%, transparent);
  box-shadow:
    inset 0 1.5px 1px -.5px rgba(255, 255, 255, .95),
    inset 0 -1.5px 1px -.5px rgba(255, 255, 255, .45),
    inset 0 0 0 1px rgba(255, 255, 255, .28),
    inset 0 -14px 18px -14px rgba(255, 255, 255, .55),
    inset 0 12px 16px -14px rgba(0, 0, 0, .18),
    0 10px 26px -10px rgba(0, 0, 0, .35),
    0 2px 6px -2px rgba(0, 0, 0, .14);
  will-change: transform, opacity, width;
}
.lg-lensing .nav-lens.has-lens {
  -webkit-backdrop-filter: var(--lg-lens) saturate(1.25) brightness(1.06);
          backdrop-filter: var(--lg-lens) saturate(1.25) brightness(1.06);
}
:root:not(.lg-lensing) .nav-lens {
  -webkit-backdrop-filter: blur(2px) saturate(1.3) brightness(1.08);
          backdrop-filter: blur(2px) saturate(1.3) brightness(1.08);
}
/* rim light on the lens */
.nav-lens::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1.2px;
  background: linear-gradient(170deg, #fff, rgba(255, 255, 255, .15) 30%, transparent 55%, rgba(255, 255, 255, .5));
  -webkit-mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
}

/* Minimised on scroll (wide screens): the bar keeps its icons only, as the iOS
   tab bar does, and expands again on scroll up or when the pointer arrives. */
@media (min-width: 1081px) {
  .site-nav.is-compact .nav-pill { height: calc(var(--nav-h) - 10px); padding: 0 5px; }
  .site-nav.is-compact .nav-tab { height: 40px; padding: 0 14px; gap: 0; }
  .site-nav.is-compact .nav-tab > span { max-width: 0; opacity: 0; }
  .site-nav.is-compact .nav-tab .nav-chevron { width: 0; margin-left: 0; opacity: 0; }
  .site-nav.is-compact .nav-sel { height: 40px; }
}
@media (prefers-reduced-transparency: reduce), (prefers-contrast: more) {
  .nav-lens, .lg-lensing .nav-lens.has-lens {
    background: var(--glass-bg-strong);
    -webkit-backdrop-filter: blur(30px); backdrop-filter: blur(30px);
  }
}

/* dropdown panels */
/* Menus and panels carry text of their own, so they use thick glass as
   Apple does for popovers: heavily frosted and nearly opaque, with the
   lensing kept to the rim. */
.nav-panel {
  position: absolute; left: 50%; top: calc(100% + 18px);
  width: 380px; padding: 10px;
  border-radius: 28px;
  background: var(--glass-menu);
  --lg-blur: 40px; --lg-blur-lens: 36px;
  transform: translateX(-50%);
  transform-origin: top center;
  animation: panel-in .45s var(--spring);
}
.nav-panel-wide { width: min(640px, calc(100vw - 32px)); padding: 16px; }
@keyframes panel-in { from { opacity: 0; transform: translateX(-50%) translateY(-8px) scale(.96); } }
.nav-panel-head { display: grid; gap: 4px; padding: 6px 10px 14px; }
.nav-panel-head strong { font-size: 15px; }
.nav-panel-head span { color: var(--ink-3); font-size: 13.5px; }
.nav-product-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; }
.nav-product, .nav-panel-link {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 12px; border-radius: 18px;
  transition: background-color .2s var(--ease), transform .4s var(--spring);
}
.nav-product:hover, .nav-panel-link:hover, .nav-product:focus-visible, .nav-panel-link:focus-visible { background: color-mix(in srgb, var(--ink) 6%, transparent); }
.nav-product img { width: 38px; height: 38px; object-fit: contain; flex: none; border-radius: 10px; }
.nav-product strong, .nav-panel-link strong { display: block; font-size: 14.5px; line-height: 1.3; }
.nav-product small, .nav-panel-link small { display: block; color: var(--ink-3); font-size: 12.5px; line-height: 1.4; }
.nav-panel-icon { display: grid; place-items: center; flex: none; width: 38px; height: 38px; border-radius: 12px; background: color-mix(in srgb, var(--accent) 12%, transparent); color: var(--accent); }
.nav-panel-icon svg { width: 19px; height: 19px; }

.nav-tools { justify-self: end; display: flex; align-items: center; gap: 8px; }
.nav-actions { display: flex; align-items: center; gap: 8px; }
.nav-actions[data-auth-state="checking"] > .nav-auth-button { opacity: 0; pointer-events: none; }

.icon-button, .nav-language-button {
  position: relative; overflow: hidden;
  display: inline-grid; place-items: center;
  width: 48px; height: 48px; padding: 0;
  border: 0; border-radius: 50%;
  background: var(--glass-bg); color: var(--ink);
  transition: background-color .25s var(--ease), transform .45s var(--spring);
  -webkit-tap-highlight-color: transparent;
}
.icon-button svg { width: 20px; height: 20px; position: relative; z-index: 1; }
.theme-button .sun, .theme-button .moon { transition: transform .6s var(--spring), opacity .3s var(--ease); transform-origin: center; }
.theme-button .moon { position: absolute; }
.theme-button[aria-pressed="true"] .sun { opacity: 0; transform: rotate(-90deg) scale(.4); }
.theme-button[aria-pressed="false"] .moon { opacity: 0; transform: rotate(90deg) scale(.4); }

.pill-button, .ghost-button {
  position: relative; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 0 20px;
  border: 0; border-radius: 999px;
  font-size: 14.5px; font-weight: 650; white-space: nowrap;
  transition: transform .45s var(--spring), background-color .25s var(--ease), color .25s var(--ease), opacity .25s var(--ease);
  -webkit-tap-highlight-color: transparent;
}
.pill-button { background: var(--ink); color: var(--bg); }
.pill-button:hover { opacity: .9; }
.ghost-button { background: color-mix(in srgb, var(--ink) 7%, transparent); color: var(--ink); }
.ghost-button:hover { background: color-mix(in srgb, var(--ink) 12%, transparent); }
.nav-actions .ghost-button { background: var(--glass-bg); box-shadow: inset 0 1px 0 var(--glass-hi), inset 0 0 0 .5px var(--glass-edge), var(--glass-shadow); -webkit-backdrop-filter: blur(16px) saturate(1.8); backdrop-filter: blur(16px) saturate(1.8); }
.ghost-button.danger { color: var(--danger); }
.pill-button:disabled, .ghost-button:disabled { opacity: .45; cursor: not-allowed; }

.nav-toggle { display: none; }
.nav-toggle-lines { position: relative; width: 18px; height: 12px; z-index: 1; }
.nav-toggle-lines::before, .nav-toggle-lines::after {
  content: ""; position: absolute; left: 0; right: 0; height: 2px; border-radius: 2px; background: currentColor;
  transition: transform .45s var(--spring), top .3s var(--ease);
}
.nav-toggle-lines::before { top: 1px; }
.nav-toggle-lines::after { top: 9px; }
.is-menu-open .nav-toggle-lines::before { top: 5px; transform: rotate(45deg); }
.is-menu-open .nav-toggle-lines::after { top: 5px; transform: rotate(-45deg); }

.nav-sheet {
  grid-column: 1 / -1;
  width: 100%; margin-top: 10px;
  padding: 14px;
  border-radius: 30px;
  --lg-blur: 40px; --lg-blur-lens: 36px;
  background: var(--glass-menu);
  max-height: calc(100svh - var(--nav-h) - var(--nav-top) - 30px);
  overflow: auto;
  animation: sheet-in .5s var(--spring);
  transform-origin: top center;
}
@keyframes sheet-in { from { opacity: 0; transform: translateY(-10px) scale(.96); } }
.nav-sheet-group { display: grid; gap: 2px; }
.nav-sheet-label { margin: 10px 12px 6px; color: var(--ink-3); font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; }
.nav-sheet a { display: flex; align-items: center; gap: 12px; padding: 11px 12px; border-radius: 16px; font-weight: 550; }
.nav-sheet a:hover { background: color-mix(in srgb, var(--ink) 6%, transparent); }
.nav-sheet a img { width: 30px; height: 30px; object-fit: contain; border-radius: 9px; }
.nav-sheet-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; }
.nav-sheet-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 12px; padding: 12px 12px 4px; border-top: 1px solid var(--line); color: var(--ink-3); font-size: 13px; }

/* language picker rendered by aulama-atelier-nav.js */
.nav-language-picker { position: relative; }
.icon-button:hover, .nav-language-button:hover, .nav-language-picker.is-open .nav-language-button { background: color-mix(in srgb, var(--ink) 9%, var(--glass-bg)); }
.nav-language-button { box-shadow: var(--glass-shadow), inset 0 1px 0 var(--glass-hi), inset 0 0 0 .5px var(--glass-edge); -webkit-backdrop-filter: blur(16px) saturate(1.8); backdrop-filter: blur(16px) saturate(1.8); }
.nav-language-flag { position: relative; z-index: 1; font-size: 19px; line-height: 1; }
.nav-language-menu {
  position: absolute; right: 0; top: calc(100% + 14px);
  width: 250px; padding: 10px;
  border-radius: 26px;
  background: var(--glass-menu);
  --lg-blur: 40px; --lg-blur-lens: 36px;
  opacity: 0; visibility: hidden;
  transform: translateY(-8px) scale(.94); transform-origin: top right;
  transition: opacity .2s var(--ease), transform .45s var(--spring), visibility 0s linear .45s;
}
.nav-language-picker.is-open .nav-language-menu { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.nav-language-menu-label { margin: 6px 12px 8px; color: var(--ink-3); font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; }
.nav-language-menu-options { display: grid; gap: 2px; }
.nav-language-option {
  position: relative; overflow: hidden;
  display: grid; grid-template-columns: 28px 1fr auto; align-items: center; gap: 10px;
  width: 100%; padding: 10px 12px;
  border: 0; border-radius: 16px; background: transparent; text-align: left;
}
.nav-language-option:hover, .nav-language-option:focus-visible { background: color-mix(in srgb, var(--ink) 6%, transparent); }
.nav-language-option-flag { font-size: 20px; }
.nav-language-option-copy { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.nav-language-option-copy strong { font-size: 14.5px; font-weight: 600; }
.nav-language-option-copy small { color: var(--ink-3); font-size: 12px; }
.nav-language-option-check { opacity: 0; color: var(--accent); font-weight: 700; }
.nav-language-option.is-active .nav-language-option-check { opacity: 1; }

/* account menu rendered by aulama-atelier-nav.js */
.home-account { position: relative; }
.home-account-button {
  position: relative; overflow: hidden;
  display: inline-flex; align-items: center; gap: 10px;
  height: 52px; padding: 0 14px 0 6px;
  border: 0; border-radius: 999px;
  background: var(--glass-bg);
  -webkit-backdrop-filter: blur(16px) saturate(1.8); backdrop-filter: blur(16px) saturate(1.8);
  box-shadow: var(--glass-shadow), inset 0 1px 0 var(--glass-hi), inset 0 0 0 .5px var(--glass-edge);
  transition: background-color .25s var(--ease), transform .45s var(--spring);
}
.home-account-button:hover, .home-account.is-open .home-account-button { background: color-mix(in srgb, var(--ink) 9%, var(--glass-bg)); }
.home-account-avatar {
  position: relative; z-index: 1;
  display: inline-grid; place-items: center; flex: none;
  width: 36px; height: 36px; overflow: hidden;
  border-radius: 50%;
  background: var(--grad); color: #fff;
  font-weight: 700; font-size: 15px;
  box-shadow: 0 0 0 2px var(--bg), 0 0 0 3.5px var(--tier, transparent);
}
.home-account-avatar img { width: 100%; height: 100%; object-fit: cover; }
.home-account-avatar.is-premium { --tier: #f5b73b; }
.home-account-avatar.is-admin { --tier: #3a6df6; }
.home-account-avatar.is-super-admin { --tier: #8b4dff; }
.home-account-copy { position: relative; z-index: 1; display: grid; text-align: left; line-height: 1.2; }
.home-account-copy strong { max-width: 120px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14px; }
.home-account-copy small { color: var(--ink-2); font-size: 12px; }
.home-account-chevron { position: relative; z-index: 1; display: grid; color: var(--ink-3); transition: transform .3s var(--ease); }
.home-account.is-open .home-account-chevron { transform: rotate(180deg); }
.home-account-menu-icon { width: 18px; height: 18px; flex: none; }
.home-account-menu {
  position: absolute; right: 0; top: calc(100% + 14px);
  width: min(360px, calc(100vw - 24px));
  padding: 12px;
  border-radius: 28px;
  background: var(--glass-menu);
  --lg-blur: 40px; --lg-blur-lens: 36px;
  transform-origin: top right;
}
.home-account-menu-head { display: flex; align-items: center; gap: 12px; padding: 8px 8px 14px; }
.home-account-menu-head .home-account-avatar { width: 48px; height: 48px; font-size: 19px; }
.home-account-menu-copy { display: grid; gap: 3px; min-width: 0; }
.home-account-menu-copy > strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 16px; }
.home-account-menu-meta { display: flex; align-items: center; gap: 8px; min-width: 0; }
.home-account-menu-meta small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ink-3); font-size: 12.5px; }
.home-account-role { flex: none; padding: 2px 8px; border-radius: 999px; background: color-mix(in srgb, var(--accent) 14%, transparent); color: var(--accent); font-size: 11.5px; font-weight: 600; }
.home-account-products, .home-account-language { padding: 12px 8px; border-top: 1px solid var(--line); }
.home-account-section-heading, .home-account-language > div:first-child { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; color: var(--ink-3); font-size: 12.5px; font-weight: 600; }
.home-account-product-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.home-account-product { position: relative; display: grid; place-items: center; aspect-ratio: 1; border-radius: 14px; transition: background-color .2s var(--ease), transform .4s var(--spring); }
.home-account-product:hover { background: color-mix(in srgb, var(--ink) 7%, transparent); transform: translateY(-2px); }
.home-account-product-icon { display: grid; place-items: center; width: 32px; height: 32px; }
.home-account-product-icon img { width: 100%; height: 100%; object-fit: contain; }
.home-account-product-icon.is-wide img { object-fit: cover; object-position: left center; }
.home-account-product-tooltip {
  position: absolute; bottom: calc(100% + 6px); left: 50%; transform: translateX(-50%) translateY(4px);
  padding: 4px 9px; border-radius: 8px; background: var(--ink); color: var(--bg);
  font-size: 12px; white-space: nowrap; opacity: 0; pointer-events: none; transition: .2s var(--ease);
}
.home-account-product:hover .home-account-product-tooltip { opacity: 1; transform: translateX(-50%); }
.home-account-menu-actions { display: grid; gap: 2px; padding: 8px 0; border-top: 1px solid var(--line); }
.home-account-menu-link {
  position: relative; overflow: hidden;
  display: flex; align-items: center; gap: 12px;
  padding: 11px 12px; border-radius: 16px; font-weight: 550; font-size: 14.5px;
}
.home-account-menu-link > span { flex: 1; }
.home-account-menu-link:hover { background: color-mix(in srgb, var(--ink) 6%, transparent); }
.home-account-menu-arrow { opacity: .4; }
.home-account-language-options { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 6px; }
.home-account-language-options button {
  display: flex; align-items: center; gap: 6px;
  padding: 7px 10px; border: 1px solid var(--line); border-radius: 12px; background: transparent;
  font-size: 13px; text-align: left;
}
.home-account-language-options button.is-active { border-color: var(--accent); color: var(--accent); background: color-mix(in srgb, var(--accent) 8%, transparent); }
.home-account-language-check { display: none; }
.home-account-menu-footer { padding-top: 8px; border-top: 1px solid var(--line); }
.logout-action {
  display: flex; align-items: center; gap: 12px; width: 100%;
  padding: 11px 12px; border: 0; border-radius: 16px; background: transparent;
  color: var(--danger); font-weight: 600; font-size: 14.5px; text-align: left;
}
.logout-action:hover { background: color-mix(in srgb, var(--danger) 9%, transparent); }

@media (max-width: 1080px) {
  .nav-tab { padding: 0 14px; }
  .nav-tab svg:first-child { display: none; }
}
@media (max-width: 899px) {
  .site-nav { grid-template-columns: 1fr auto; }
  .nav-center { display: none; }
  .nav-toggle { display: inline-grid; }
  .nav-actions .ghost-button.nav-auth-button { display: none; }
  .home-account-copy, .home-account-chevron { display: none; }
  .home-account-button { padding: 0 4px; }
}
@media (max-width: 480px) {
  :root { --nav-top: 10px; --nav-h: 56px; }
  .theme-button { display: none; }
  .icon-button, .nav-language-button { width: 44px; height: 44px; }
  .nav-actions .pill-button { padding: 0 16px; min-height: 42px; }
}

/* ------------------------------------------------------------------ reveal */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease), transform 1s var(--ease); transition-delay: calc(var(--d, 0) * 90ms); }
.reveal.is-in { opacity: 1; transform: none; }
.reveal-scale { opacity: 0; transform: translateY(40px) scale(.96); transition: opacity 1s var(--ease), transform 1.1s var(--ease); }
.reveal-scale.is-in { opacity: 1; transform: none; }

/* ------------------------------------------------------------------ hero */
.hero {
  position: relative;
  min-height: 100vh; min-height: 100svh;
  display: flex; align-items: center;
  padding-block: calc(var(--nav-h) + var(--nav-top) + 40px) 90px;
}
.hero-inner {
  display: grid; gap: 28px; max-width: 700px;
  transform: translateY(calc(var(--p, 0) * -90px));
  opacity: calc(1 - var(--p, 0) * 1.5);
}
.hero-note { display: flex; align-items: center; gap: 10px; color: var(--ink-3); font-size: 14px; }
.hero-note img { width: 22px; height: 22px; }
.scroll-cue {
  position: absolute; left: 50%; bottom: 28px; transform: translateX(-50%);
  display: grid; justify-items: center; gap: 10px;
  color: var(--ink-3); font-size: 12px; letter-spacing: .14em; text-transform: uppercase;
  opacity: calc(1 - var(--p, 0) * 4);
}
.scroll-cue::after {
  content: ""; width: 1.5px; height: 42px; border-radius: 2px;
  background: linear-gradient(var(--ink-3), transparent);
  animation: cue 2.2s var(--ease) infinite;
  transform-origin: top;
}
@keyframes cue { 0% { transform: scaleY(0); opacity: 1; } 60% { transform: scaleY(1); opacity: 1; } 100% { transform: scaleY(1); opacity: 0; } }

/* ------------------------------------------------------------------ meadow opening */
.nature { position: relative; height: 230vh; }
.nature-sticky {
  position: sticky; top: 0;
  height: 100vh; height: 100svh;
  overflow: hidden;
  display: grid; align-items: start;
  isolation: isolate;
}
.meadow, .nature-shade { position: absolute; inset: 0; width: 100%; height: 100%; }
.meadow { z-index: -2; overflow: hidden; background: linear-gradient(#f3dcae, #d9b77a 45%, #4d7a22 70%); pointer-events: none; }
:root[data-theme="dark"] .meadow { background: linear-gradient(#352a45, #b8573f 45%, #16240e 70%); }
.meadow-poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; transition: opacity 1.4s var(--ease); }
.meadow-poster:not([src]) { opacity: 0; }
/* live landscape: fades in over the matching still once its first frame is drawn */
.meadow .meadow-gl { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; transition: opacity 1.4s var(--ease); }
.meadow.is-3d .meadow-gl { opacity: 1; }
/* The opening follows the real sky rather than the site theme, so its copy
   takes a light or dark palette from the time of day. --page-bg keeps the
   dissolve into the page below on the theme colour. */
.nature[data-sky="day"] :is(.nature-content, .nature-hint, .scroll-cue) {
  --bg: #f3f6f0; --ink: #0a0c12; --ink-2: #3c4353; --ink-3: #6b7282;
  --b1: #6cbf2a; --b2: #1f9d5c; --b3: #0f8f8a; --accent: #178a4d;
  --grad: linear-gradient(115deg, var(--b1), var(--b2) 50%, var(--b3));
  --glass-bg: rgba(255, 255, 255, .32); --glass-bg-strong: rgba(250, 251, 255, .72); --glass-menu: rgba(247, 249, 245, .9);
  --glass-bright: 1.07; --glass-hi: rgba(255, 255, 255, .9); --glass-lo: rgba(255, 255, 255, .3);
  --glass-edge: rgba(15, 22, 45, .1); --glass-rim: #fff; --glass-caustic: rgba(255, 255, 255, .55);
  --glass-shade: rgba(20, 30, 60, .06); --glow: rgba(255, 255, 255, .85);
  --glass-shadow: 0 12px 34px -10px rgba(20, 30, 70, .22), 0 2px 8px rgba(20, 30, 70, .06);
  color: var(--ink);
}
.nature[data-sky="night"] :is(.nature-content, .nature-hint, .scroll-cue) {
  --bg: #060a10; --ink: #f2f4f9; --ink-2: #c3cad8; --ink-3: #8a93a6;
  --b1: #c4f06a; --b2: #4ade80; --b3: #2dd4bf; --accent: #5ee08f;
  --grad: linear-gradient(115deg, var(--b1), var(--b2) 50%, var(--b3));
  --glass-bg: rgba(20, 28, 36, .34); --glass-bg-strong: rgba(12, 18, 26, .66); --glass-menu: rgba(13, 18, 15, .9);
  --glass-bright: .96; --glass-hi: rgba(255, 255, 255, .3); --glass-lo: rgba(255, 255, 255, .06);
  --glass-edge: rgba(255, 255, 255, .1); --glass-rim: rgba(255, 255, 255, .6); --glass-caustic: rgba(255, 255, 255, .12);
  --glass-shade: rgba(0, 0, 0, .25); --glow: rgba(255, 255, 255, .4);
  --glass-shadow: 0 14px 38px -10px rgba(0, 0, 0, .75), 0 2px 8px rgba(0, 0, 0, .35);
  color: var(--ink);
}
.nature-shade { position: absolute; inset: 0; width: 100%; height: 100%; }
.nature-shade {
  z-index: -1; pointer-events: none;
  background: linear-gradient(to top, var(--bg) 0%, color-mix(in srgb, var(--bg) 0%, transparent) 30%);
  opacity: clamp(0, calc(var(--p, 0) * 2.5), 1);
}
.nature-sticky::after {
  /* dissolve into the page as the opening scrolls away */
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background: var(--bg);
  opacity: clamp(0, calc((var(--p, 0) - .62) * 2.8), 1);
}
.nature-content {
  position: relative; z-index: 1;
  min-height: 100vh; min-height: 100svh;
  display: grid; justify-items: center; align-content: start; gap: 14px; text-align: center;
  padding-top: calc(var(--nav-h) + var(--nav-top) + clamp(20px, 5vh, 64px));
  padding-bottom: 90px;
  transform: translateY(calc(var(--p, 0) * -140px));
  opacity: clamp(0, calc(1 - var(--p, 0) * 2.2), 1);
}
.nature-content .display {
  font-size: clamp(44px, 6.6vw, 100px);
  --halo: color-mix(in srgb, var(--bg) 80%, transparent);
  text-shadow: 0 0 34px var(--halo), 0 0 12px var(--halo);
}
.nature-content .display .grad { filter: drop-shadow(0 0 18px color-mix(in srgb, var(--bg) 70%, transparent)); text-shadow: none; }
.nature-content .eyebrow { color: var(--ink); text-shadow: 0 0 12px color-mix(in srgb, var(--bg) 90%, transparent); text-transform: none; letter-spacing: .06em; }
.hero-panel {
  display: grid; justify-items: center; gap: 20px;
  width: min(640px, 100%);
  margin-top: clamp(40px, 18vh, 230px);
  padding: clamp(20px, 3vw, 28px) clamp(20px, 3.4vw, 34px);
  border-radius: 32px;
  --lg-blur: 18px; --lg-refraction: 34;
  background: color-mix(in srgb, var(--glass-bg-strong) 70%, transparent);
  animation: drift 7s ease-in-out infinite;
}
.hero-panel .lead { color: var(--ink); font-weight: 500; }
@keyframes drift { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
.nature-hint {
  position: absolute; z-index: 1; right: clamp(16px, 3vw, 40px); bottom: 26px;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 14px; border-radius: 999px;
  color: var(--ink); font-size: 13px; font-weight: 550;
  opacity: clamp(0, calc(1 - var(--p, 0) * 5), 1);
}
.nature-hint svg { width: 16px; height: 16px; }
.nature.is-static .nature-hint { display: none; }
.nature .scroll-cue { z-index: 1; opacity: clamp(0, calc(1 - var(--p, 0) * 5), 1); }
/* the cue sits on meadow grass at every hour */
.nature .scroll-cue { color: rgba(255, 255, 255, .86); text-shadow: 0 1px 10px rgba(0, 0, 0, .55); }
.nature .scroll-cue::after { background: linear-gradient(rgba(255, 255, 255, .8), transparent); }

/* ------------------------------------------------------------------ walking the meadow */
.nature-walk {
  position: absolute; z-index: 2; right: clamp(16px, 3vw, 40px); bottom: 22px;
  display: inline-flex; align-items: center; gap: 10px;
  height: 48px; padding: 0 20px 0 16px; border: 0; border-radius: 999px;
  color: var(--ink); font: 650 15px/1 var(--font, inherit); letter-spacing: .01em;
  background: color-mix(in srgb, var(--glass-bg-strong) 80%, transparent);
  cursor: pointer;
  opacity: clamp(0, calc(1 - var(--p, 0) * 5), 1);
  transition: transform .45s var(--spring), opacity .4s var(--ease);
  animation: fade-in 1s var(--ease) 1.6s backwards;
}
.nature-walk svg { width: 22px; height: 22px; }
.nature-walk:hover { transform: translateY(-2px) scale(1.03); }
.nature-walk:active { transform: scale(.96); }
.nature[data-sky="day"] .nature-walk { --ink: #0a0c12; --glass-bg-strong: rgba(250, 251, 255, .72); }
.nature[data-sky="night"] .nature-walk { --ink: #f2f4f9; --glass-bg-strong: rgba(12, 18, 26, .66); }

html.is-walking, html.is-walking body { overflow: hidden; overscroll-behavior: none; }
html.is-walking .nature-sticky { position: fixed; inset: 0; z-index: 80; height: 100vh; height: 100dvh; }
html.is-walking .meadow { pointer-events: auto; }
html.is-walking :is(.nature-content, .nature-walk, .nature-hint, .scroll-cue, .nature-shade),
html.is-walking .nature-sticky::after { opacity: 0 !important; pointer-events: none; transition: opacity .6s var(--ease); }
html.is-walking :is(.site-nav, .scroll-edge) { opacity: 0; pointer-events: none; transform: translateY(-12px); transition: opacity .5s var(--ease), transform .5s var(--ease); }

.walk-hud {
  position: absolute; inset: 0; z-index: 5;
  pointer-events: none; opacity: 0; transition: opacity .6s var(--ease);
  color: #fff;
  --walk-glass: rgba(12, 16, 14, .5);
  --walk-edge: rgba(255, 255, 255, .16);
}
.walk-hud.is-shown { opacity: 1; }
.walk-hud:focus, .walk-hud:focus-visible { outline: none; }
.walk-hud > :not(.walk-look) { pointer-events: auto; }
.walk-look { position: absolute; inset: 0; pointer-events: auto; touch-action: none; cursor: grab; }
.walk-look.is-dragging { cursor: grabbing; }
.walk-hud :is(.walk-exit, .walk-sound, .walk-run, .walk-compass, .walk-tip, .walk-stick) {
  background: var(--walk-glass);
  -webkit-backdrop-filter: blur(18px) saturate(1.6); backdrop-filter: blur(18px) saturate(1.6);
  box-shadow: inset 0 0 0 .5px var(--walk-edge), inset 0 1px 0 rgba(255, 255, 255, .14), 0 10px 30px -12px rgba(0, 0, 0, .5);
}
.walk-exit, .walk-sound, .walk-run {
  position: absolute; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 46px; border: 0; border-radius: 999px; color: #fff; cursor: pointer;
  font: 600 14.5px/1 var(--font, inherit);
  transition: transform .4s var(--spring), background-color .2s;
}
.walk-exit:active, .walk-sound:active, .walk-run:active { transform: scale(.94); }
.walk-exit svg, .walk-sound svg, .walk-run svg { width: 20px; height: 20px; }
.walk-exit { top: calc(env(safe-area-inset-top, 0px) + 18px); left: calc(env(safe-area-inset-left, 0px) + 18px); padding: 0 18px 0 14px; }
.walk-sound { top: calc(env(safe-area-inset-top, 0px) + 18px); right: calc(env(safe-area-inset-right, 0px) + 18px); width: 46px; }
.walk-sound[aria-pressed="true"] .mute, .walk-sound[aria-pressed="false"] .wave { display: none; }
.walk-sound[aria-pressed="false"] { color: rgba(255, 255, 255, .6); }

.walk-compass {
  position: absolute; top: calc(env(safe-area-inset-top, 0px) + 18px); left: 50%;
  width: min(360px, 100vw - 200px); height: 46px; margin-left: calc(min(360px, 100vw - 200px) / -2);
  border-radius: 999px; overflow: hidden;
  -webkit-mask: linear-gradient(90deg, transparent, #000 18%, #000 82%, transparent); mask: linear-gradient(90deg, transparent, #000 18%, #000 82%, transparent);
}
.walk-compass-strip { position: absolute; inset: 0; }
.walk-compass-strip span {
  position: absolute; left: 50%; top: 50%; width: 0; display: grid; justify-items: center;
  margin-top: -9px; white-space: nowrap; font: 600 12.5px/18px var(--font, inherit); color: rgba(255, 255, 255, .72);
}
.walk-compass-strip span::before { content: ""; position: absolute; top: -6px; width: 1.5px; height: 5px; border-radius: 2px; background: rgba(255, 255, 255, .45); }
.walk-compass-strip span:empty::before { top: 5px; height: 8px; }
.walk-compass-strip .is-cardinal { color: #fff; font-weight: 750; font-size: 14px; }
.walk-compass-strip .is-landmark { top: auto; bottom: 1px; margin-top: 0; font-size: 10.5px; line-height: 14px; color: #ffd98a; }
.walk-compass-strip .is-landmark::before { top: auto; bottom: 14px; width: 5px; height: 5px; border-radius: 50%; background: #ffd98a; }
.walk-compass-mark { position: absolute; left: 50%; bottom: 0; width: 2px; height: 9px; margin-left: -1px; border-radius: 2px; background: #9ee37d; }

.walk-tip {
  position: absolute; left: 50%; bottom: calc(env(safe-area-inset-bottom, 0px) + 26px);
  display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 16px;
  max-width: calc(100vw - 32px); margin: 0; padding: 12px 20px; border-radius: 22px;
  transform: translateX(-50%); font-size: 13.5px; font-weight: 550; color: #fff;
  background: rgba(10, 13, 12, .62) !important; text-shadow: 0 1px 2px rgba(0, 0, 0, .35);
  transition: opacity .8s var(--ease), transform .8s var(--ease);
}
.walk-tip span { display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; }
.walk-tip kbd {
  display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 5px; border-radius: 6px;
  font: 700 11.5px/1 var(--font, inherit); color: #fff; background: rgba(255, 255, 255, .16); box-shadow: inset 0 -1px 0 rgba(0, 0, 0, .25);
}
.walk-tip.is-hidden { opacity: 0; transform: translateX(-50%) translateY(10px); pointer-events: none; }

.walk-stick {
  position: absolute; left: calc(env(safe-area-inset-left, 0px) + 28px); bottom: calc(env(safe-area-inset-bottom, 0px) + 32px);
  width: 128px; height: 128px; border-radius: 50%; touch-action: none;
}
.walk-stick::before { content: ""; position: absolute; inset: 22%; border-radius: 50%; border: 1.5px dashed rgba(255, 255, 255, .22); }
.walk-knob {
  position: absolute; left: 50%; top: 50%; width: 54px; height: 54px; margin: -27px 0 0 -27px; border-radius: 50%;
  background: rgba(255, 255, 255, .88); box-shadow: 0 6px 18px -6px rgba(0, 0, 0, .5);
  transition: transform .35s var(--spring);
}
.walk-stick.is-active .walk-knob { transition: none; }
.walk-run { right: calc(env(safe-area-inset-right, 0px) + 28px); bottom: calc(env(safe-area-inset-bottom, 0px) + 58px); padding: 0 18px 0 14px; height: 54px; }
.walk-run[aria-pressed="true"] { background: rgba(158, 227, 125, .9); color: #0b1a08; }
/* the tip sits above the stick on phones */
@media (pointer: coarse) {
  .walk-tip { bottom: calc(env(safe-area-inset-bottom, 0px) + 184px); font-size: 13px; }
}
@media (max-width: 560px) {
  .walk-exit span { display: none; }
  .walk-exit { width: 46px; padding: 0; }
  .walk-compass { width: calc(100vw - 150px); margin-left: calc((100vw - 150px) / -2); }
  .nature-walk { left: 50%; right: auto; bottom: 20px; transform: translateX(-50%); }
  .nature-walk:hover { transform: translateX(-50%) translateY(-2px); }
}
@media (orientation: landscape) and (max-height: 520px) {
  .walk-tip { bottom: 14px; }
  .walk-stick { bottom: 18px; width: 112px; height: 112px; }
  .walk-run { bottom: 36px; }
}

/* ------------------------------------------------------------------ statement (sticky fill) */
.statement { position: relative; height: 300vh; }
.statement-sticky {
  position: sticky; top: 0;
  height: 100vh; height: 100svh;
  display: grid; place-items: center;
}
.statement-text {
  margin: 0;
  width: min(1040px, 100% - var(--gutter) * 2);
  font-size: clamp(32px, 5.4vw, 76px);
  line-height: 1.16;
  letter-spacing: -.03em;
  font-weight: 700;
  text-wrap: balance;
}
.statement-text > span {
  --f: clamp(0%, calc((var(--p, 0) * 3.6 - var(--i, 0)) * 100%), 100%);
  display: block;
  background: linear-gradient(90deg, var(--ink) 0 var(--f), var(--ink-faint) var(--f));
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
}
.statement-text > span.grad-line {
  background: linear-gradient(90deg, var(--b1), var(--b2) calc(var(--f) * .5), var(--b3) var(--f), var(--ink-faint) var(--f));
  -webkit-background-clip: text; background-clip: text;
}

/* ------------------------------------------------------------------ product stack */
.stack { display: grid; gap: 0; }
.stack-card {
  --top: calc(var(--nav-top) + var(--nav-h) + 20px);
  position: sticky; top: var(--top);
  display: grid; grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr);
  min-height: min(660px, calc(100vh - var(--top) - 28px));
  margin-bottom: 48px;
  border-radius: 40px;
  background: var(--card);
  -webkit-backdrop-filter: blur(30px) saturate(1.5); backdrop-filter: blur(30px) saturate(1.5);
  border: 1px solid var(--card-border);
  box-shadow: var(--card-shadow);
  overflow: hidden;
  transform-origin: center top;
  transform: scale(calc(1 - var(--p, 0) * .07)) translateY(calc(var(--p, 0) * -10px));
  filter: brightness(calc(1 - var(--p, 0) * .12));
}
.stack-card:last-child { margin-bottom: 0; }
.stack-copy { display: flex; flex-direction: column; gap: 20px; padding: clamp(28px, 4vw, 56px); }
.stack-meta { display: flex; align-items: center; gap: 12px; color: var(--ink-3); font-size: 13px; font-weight: 600; letter-spacing: .08em; }
.stack-logo { height: 46px; width: auto; max-width: 220px; object-fit: contain; object-position: left center; }
.badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 11px; border-radius: 999px;
  background: rgb(var(--tone-rgb, 58 109 246) / .14);
  color: color-mix(in srgb, rgb(var(--tone-rgb, 58 109 246)) 78%, var(--ink));
  font-size: 12px; font-weight: 650; letter-spacing: .02em;
}
.badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.badge.is-muted { background: color-mix(in srgb, var(--ink) 7%, transparent); color: var(--ink-2); }
.stack-copy .h3 { font-size: clamp(28px, 3vw, 42px); letter-spacing: -.03em; font-weight: 700; }
.stack-copy p { margin: 0; color: var(--ink-2); font-size: 16.5px; line-height: 1.7; max-width: 46ch; }
.stack-copy .btn-row { margin-top: auto; padding-top: 8px; }
.stack-visual {
  position: relative;
  display: grid; place-items: center;
  padding: clamp(24px, 3.4vw, 48px);
  background:
    radial-gradient(70% 70% at 70% 30%, rgb(var(--tone-rgb) / .28), transparent 70%),
    radial-gradient(60% 60% at 20% 90%, rgb(var(--tone-rgb) / .16), transparent 70%);
  perspective: 1600px;
}
.shot {
  position: relative;
  width: 100%;
  margin: 0;
  border-radius: 18px;
  overflow: hidden;
  background: #0b0c10;
  box-shadow: var(--shadow-lg), 0 0 0 1px rgba(255, 255, 255, .08);
  transform: rotateY(calc(-9deg + var(--tx, 0) * 10deg)) rotateX(calc(5deg - var(--ty, 0) * 8deg));
  transition: transform .7s var(--ease);
  transform-style: preserve-3d;
}
.shot img { width: 100%; }
.shot-bar { display: flex; gap: 6px; padding: 10px 12px; background: #16181f; }
.shot-bar i { width: 9px; height: 9px; border-radius: 50%; background: #3a3d48; }
.shot-bar i:first-child { background: #ff5f57; }
.shot-bar i:nth-child(2) { background: #febc2e; }
.shot-bar i:nth-child(3) { background: #28c840; }
.shot-float {
  position: absolute; right: 6%; bottom: 7%; width: 34%;
  border-radius: 14px; overflow: hidden;
  box-shadow: var(--shadow-lg), 0 0 0 1px rgba(255, 255, 255, .1);
  transform: translateZ(60px) rotateY(-6deg);
}
.shot-caption {
  position: absolute; left: clamp(24px, 3.4vw, 48px); bottom: clamp(20px, 2.6vw, 34px);
  padding: 8px 14px; border-radius: 999px;
  font-size: 13px; font-weight: 600; color: var(--ink);
}

/* private-product visual for the VPN card */
.tunnel {
  position: relative; width: 100%; aspect-ratio: 16 / 11; display: grid; place-items: center;
  border-radius: 24px; overflow: hidden;
  background: radial-gradient(circle at 50% 50%, rgb(var(--tone-rgb) / .35), transparent 60%), #071016;
}
.tunnel-ring {
  position: absolute; border-radius: 50%; border: 1.5px solid rgb(var(--tone-rgb) / .55);
  animation: tunnel 4s linear infinite; opacity: 0;
}
.tunnel-ring:nth-child(2) { animation-delay: -1.3s; }
.tunnel-ring:nth-child(3) { animation-delay: -2.6s; }
@keyframes tunnel { 0% { width: 10%; aspect-ratio: 1; opacity: 0; } 20% { opacity: 1; } 100% { width: 130%; aspect-ratio: 1; opacity: 0; } }
.tunnel-core {
  position: relative; display: grid; justify-items: center; gap: 12px; color: #dff9fb; text-align: center;
}
.tunnel-core img { width: 72px; height: 72px; object-fit: contain; filter: drop-shadow(0 10px 30px rgb(var(--tone-rgb) / .6)); }
.tunnel-core span { font-size: 13px; letter-spacing: .14em; opacity: .75; }

/* ------------------------------------------------------------------ Aulama ID */
.id-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 96px); align-items: center; }
.id-points { display: grid; gap: 14px; margin: 36px 0; padding: 0; list-style: none; }
.id-points li { display: grid; grid-template-columns: 44px 1fr; gap: 16px; align-items: start; }
.id-points .num {
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: 14px;
  background: var(--card); border: 1px solid var(--card-border); box-shadow: var(--card-shadow);
  font-weight: 700; font-size: 14px; color: var(--accent);
}
.id-points strong { display: block; font-size: 17px; margin-bottom: 2px; }
.id-points span { color: var(--ink-2); font-size: 15.5px; }
.id-stage { position: relative; perspective: 1400px; display: grid; place-items: center; min-height: 460px; overflow-x: clip; }
.id-card {
  --rx: calc((.5 - var(--p, .5)) * 26deg - var(--ty, 0) * 14deg);
  --ry: calc((var(--p, .5) - .5) * 44deg + var(--tx, 0) * 18deg);
  position: relative;
  width: min(420px, 90%); aspect-ratio: 1.586;
  border-radius: 28px;
  padding: 26px;
  display: grid; grid-template-rows: auto 1fr auto;
  color: #fff;
  background:
    radial-gradient(120% 90% at 0% 0%, rgba(255, 255, 255, .35), transparent 55%),
    linear-gradient(135deg, #7cc62a 0%, #1f9d5c 45%, #0f7f8a 100%);
  box-shadow: 0 50px 90px -30px rgba(20, 90, 60, .55), inset 0 1px 0 rgba(255, 255, 255, .6), inset 0 0 0 1px rgba(255, 255, 255, .25);
  transform: rotateX(var(--rx)) rotateY(var(--ry));
  transform-style: preserve-3d;
  transition: transform .8s var(--ease);
  overflow: hidden;
}
.id-card::after {
  content: ""; position: absolute; inset: -40%;
  background: conic-gradient(from calc(var(--p, 0) * 360deg), transparent 0 20%, rgba(255, 255, 255, .45) 26%, transparent 32% 70%, rgba(255, 255, 255, .25) 76%, transparent 82%);
  mix-blend-mode: overlay; pointer-events: none;
}
.id-card-top { display: flex; align-items: center; justify-content: space-between; font-weight: 700; letter-spacing: .02em; }
.id-card-top img { height: 26px; filter: brightness(0) invert(1); }
.id-chip { width: 44px; height: 34px; border-radius: 8px; background: linear-gradient(135deg, #ffe7a8, #d6a441); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .15); }
.id-card-user { display: flex; align-items: flex-end; gap: 14px; align-self: end; }
.id-avatar { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: rgba(255, 255, 255, .25); font-weight: 700; font-size: 22px; box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .6); }
.id-card-user strong { display: block; font-size: 19px; }
.id-card-user small { opacity: .8; font-size: 13px; }
.id-card-apps { display: flex; gap: 8px; margin-top: 18px; }
.id-card-apps span { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: rgba(255, 255, 255, .92); }
.id-card-apps img { width: 24px; height: 24px; object-fit: contain; }
.id-orbit { position: absolute; inset: 0; transform-style: preserve-3d; pointer-events: none; }
.id-orbit span {
  position: absolute; display: grid; place-items: center;
  width: 64px; height: 64px; border-radius: 20px;
  --lg-blur: 12px;
  transform: translate3d(calc(var(--x) + var(--tx, 0) * 30px), calc(var(--y) + (var(--p, .5) - .5) * var(--drift)), 0);
  transition: transform .8s var(--ease);
}
.id-orbit img { width: 38px; height: 38px; object-fit: contain; }

/* ------------------------------------------------------------------ steps */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; counter-reset: step; }
.step {
  position: relative;
  display: grid; align-content: start; gap: 14px;
  padding: 28px 26px 32px;
  border-radius: 28px;
  background: var(--card); border: 1px solid var(--card-border); box-shadow: var(--card-shadow);
  -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px);
}
.step-num { color: var(--ink-3); font-size: 13px; font-weight: 700; letter-spacing: .1em; }
.step-num b { font-weight: 700; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.step h3 { margin: 0; font-size: 21px; letter-spacing: -.02em; }
.step p { margin: 0; color: var(--ink-2); font-size: 15.5px; line-height: 1.65; }

/* ------------------------------------------------------------------ platforms */
.platforms { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.platform {
  display: grid; gap: 14px; padding: 24px; border-radius: 24px;
  background: var(--card); border: 1px solid var(--card-border);
  transition: transform .5s var(--spring);
}
.platform:hover { transform: translateY(-4px); }
.platform img { width: 34px; height: 34px; }
.platform .openai { filter: invert(1); }
:root[data-theme="dark"] .platform .openai { filter: none; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .platform .openai { filter: none; } }
.platform strong { font-size: 17px; }
.platform span { color: var(--ink-2); font-size: 14.5px; line-height: 1.6; }
.fine-print { margin-top: 20px; color: var(--ink-3); font-size: 13px; }

/* ------------------------------------------------------------------ future */
.future {
  display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: center;
  padding: clamp(32px, 5vw, 64px);
  border-radius: 44px;
  background: var(--card); border: 1px solid var(--card-border); box-shadow: var(--card-shadow);
  -webkit-backdrop-filter: blur(30px); backdrop-filter: blur(30px);
}
.future-list { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.future-list li { display: grid; grid-template-columns: 92px 1fr; gap: 16px; align-items: baseline; padding: 16px 0; border-top: 1px solid var(--line); }
.future-list li:first-child { border-top: 0; }
.future-list b { font-size: 14px; letter-spacing: .06em; color: var(--accent); }
.future-list span { color: var(--ink-2); font-size: 15.5px; }

/* ------------------------------------------------------------------ roadmap */
.roadmap { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.roadmap::before {
  content: ""; position: absolute; left: 0; right: 0; top: 23px; height: 2px;
  background: linear-gradient(90deg, var(--b1), var(--b2), var(--b3)) left / calc(var(--p, 0) * 160%) 100% no-repeat, var(--line);
}
.roadmap-item { position: relative; display: grid; gap: 10px; padding-top: 58px; }
.roadmap-item::before {
  content: ""; position: absolute; top: 14px; left: 0; width: 20px; height: 20px; border-radius: 50%;
  background: var(--bg); border: 2px solid var(--b2); box-shadow: 0 0 0 6px color-mix(in srgb, var(--b2) 12%, transparent);
}
.roadmap-item b { font-size: 13px; letter-spacing: .12em; color: var(--accent); }
.roadmap-item h3 { margin: 0; font-size: 22px; letter-spacing: -.02em; }
.roadmap-item p { margin: 0; color: var(--ink-2); font-size: 15.5px; }

/* ------------------------------------------------------------------ CTA */
.cta {
  position: relative; display: grid; justify-items: center; gap: 26px; text-align: center;
  padding-block: clamp(120px, 18vw, 220px);
}
.cta .h2 { font-size: clamp(42px, 6.4vw, 92px); }

/* ------------------------------------------------------------------ footer */
.site-footer { padding: 72px 0 40px; border-top: 1px solid var(--line); background: color-mix(in srgb, var(--bg) 70%, transparent); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(2, 1fr); gap: 40px; }
.footer-brand { display: grid; gap: 14px; align-content: start; }
.footer-brand img { height: 28px; width: auto; }
.footer-brand p { margin: 0; color: var(--ink-3); font-size: 14.5px; }
.footer-col { display: grid; align-content: start; gap: 10px; }
.footer-col strong { font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 4px; }
.footer-col a { color: var(--ink-2); font-size: 14.5px; }
.footer-col a:hover { color: var(--ink); }
.footer-bottom { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--line); color: var(--ink-3); font-size: 13.5px; }

/* segmented control (theme, gallery) */
.seg {
  display: inline-flex; gap: 2px; padding: 4px; border-radius: 999px;
  --lg-blur: 14px;
}
.seg button {
  position: relative; overflow: hidden;
  display: inline-flex; align-items: center; gap: 6px;
  height: 34px; padding: 0 14px; border: 0; border-radius: 999px;
  background: transparent; color: var(--ink-2); font-size: 13.5px; font-weight: 550;
  transition: color .2s var(--ease), background-color .3s var(--ease), transform .45s var(--spring);
}
.seg button svg { width: 15px; height: 15px; }
.seg button[aria-pressed="true"], .seg button[aria-selected="true"] {
  color: var(--ink);
  background: var(--lens-bg);
  box-shadow: 0 2px 8px -2px rgba(0, 0, 0, .15), inset 0 1px 0 var(--glass-hi), inset 0 0 0 .5px var(--glass-edge);
}

/* ------------------------------------------------------------------ product pages */
.p-hero {
  position: relative; display: grid; justify-items: center; gap: 26px; text-align: center;
  padding: calc(var(--nav-h) + var(--nav-top) + clamp(56px, 8vw, 110px)) 0 40px;
}
.p-hero .lead { max-width: 640px; }
.p-logo { height: 60px; width: auto; max-width: 280px; object-fit: contain; }
.p-logo.square { height: 84px; border-radius: 22px; box-shadow: var(--shadow-lg); }
.p-stage { position: relative; padding: 30px 0 clamp(80px, 10vw, 140px); perspective: 2000px; }
.p-stage .shot {
  width: min(1100px, 100% - var(--gutter) * 2);
  margin-inline: auto;
  border-radius: 22px;
  transform-origin: center top;
  transform:
    rotateX(calc(max(0, 1 - var(--p, 0) * 2.3) * 30deg))
    scale(calc(.84 + min(1, var(--p, 0) * 2.3) * .16));
  transition: none;
}
.p-facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; overflow: hidden; border-radius: 28px; background: var(--line); border: 1px solid var(--line); }
.p-facts div { display: grid; gap: 6px; padding: 26px 24px; background: var(--card-solid); }
.p-facts span { color: var(--ink-3); font-size: 13px; }
.p-facts strong { font-size: 19px; letter-spacing: -.01em; }
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.features.four { grid-template-columns: repeat(2, 1fr); }
.feature {
  position: relative; display: grid; align-content: start; gap: 14px;
  padding: 32px 30px 34px; border-radius: 30px;
  background: var(--card); border: 1px solid var(--card-border); box-shadow: var(--card-shadow);
  -webkit-backdrop-filter: blur(24px); backdrop-filter: blur(24px);
  overflow: hidden;
}
.feature::before {
  content: ""; position: absolute; right: -40px; top: -40px; width: 160px; height: 160px; border-radius: 50%;
  background: radial-gradient(circle, rgb(var(--tone-rgb, 58 109 246) / .22), transparent 70%);
}
.feature-icon {
  display: grid; place-items: center; width: 48px; height: 48px; border-radius: 15px;
  background: rgb(var(--tone-rgb, 58 109 246) / .14); color: rgb(var(--tone-rgb, 58 109 246));
}
.feature-icon svg { width: 24px; height: 24px; }
.feature h3 { margin: 0; font-size: 21px; letter-spacing: -.02em; }
.feature p { margin: 0; color: var(--ink-2); font-size: 15.5px; line-height: 1.7; }
.gallery { display: grid; justify-items: center; gap: 28px; }
.gallery .shot { transform: none; width: min(1040px, 100%); }
.gallery-panel { width: 100%; display: grid; justify-items: center; }
.gallery-panel figcaption { margin-top: 16px; color: var(--ink-3); font-size: 14px; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(36px, 6vw, 90px); align-items: center; }
.split.flip > :first-child { order: 2; }
.split .shot { transform: rotateY(calc(-8deg + var(--tx, 0) * 10deg)) rotateX(calc(4deg - var(--ty, 0) * 8deg)); }
.split-visual { perspective: 1600px; }
.checks { display: grid; gap: 12px; margin: 26px 0 0; padding: 0; list-style: none; }
.checks li { display: grid; grid-template-columns: 26px 1fr; gap: 12px; color: var(--ink-2); }
.checks li::before {
  content: ""; width: 22px; height: 22px; margin-top: 2px; border-radius: 50%;
  background: rgb(var(--tone-rgb, 58 109 246) / .16) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23178a4d' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12 4 4 8-8'/%3E%3C/svg%3E") center / 13px no-repeat;
}
.checks strong { color: var(--ink); }
.flow { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.flow::before {
  content: ""; position: absolute; left: 30px; right: 30px; top: 30px; height: 2px; border-radius: 2px;
  background: linear-gradient(90deg, rgb(var(--tone-rgb, 58 109 246)), var(--b3)) left / calc(var(--p, 0) * 170%) 100% no-repeat, var(--line);
}
.flow-step { position: relative; display: grid; gap: 12px; }
.flow-step b {
  display: grid; place-items: center; width: 60px; height: 60px; border-radius: 50%;
  background: var(--card-solid); border: 1px solid var(--line-2);
  font-size: 18px; box-shadow: var(--card-shadow);
}
.flow-step h3 { margin: 10px 0 0; font-size: 20px; letter-spacing: -.015em; }
.flow-step p { margin: 0; color: var(--ink-2); font-size: 15.5px; }
.note {
  display: flex; gap: 14px; align-items: flex-start;
  padding: 18px 22px; border-radius: 20px;
  background: color-mix(in srgb, var(--ink) 4%, transparent);
  color: var(--ink-2); font-size: 14.5px;
}
.note svg { width: 20px; height: 20px; flex: none; margin-top: 2px; color: var(--accent); }
.next-card {
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 26px 30px; border-radius: 28px;
  background: var(--card); border: 1px solid var(--card-border); box-shadow: var(--card-shadow);
  transition: transform .5s var(--spring);
}
.next-card:hover { transform: translateY(-3px); }
.next-card small { display: block; color: var(--ink-3); font-size: 13px; margin-bottom: 4px; }
.next-card strong { font-size: 22px; letter-spacing: -.02em; }
.next-card img { height: 40px; width: auto; }
.phone-pair { display: grid; grid-template-columns: 2.4fr 1fr; gap: 18px; align-items: end; }
.phone-pair .shot { transform: none; }
.phone-pair .phone { border-radius: 30px; }

/* Stage: the hero screenshot floats in its own light, centred, with a soft
   floor reflection, and tips up into place as the page scrolls. */
.p-stage { isolation: isolate; }
.p-stage::before {
  content: ""; position: absolute; z-index: -1; left: 50%; top: 6%;
  width: min(1180px, 92vw); height: 78%; transform: translateX(-50%);
  background:
    radial-gradient(46% 52% at 50% 46%, rgb(var(--tone-rgb, 58 109 246) / .34), transparent 72%),
    radial-gradient(30% 36% at 22% 70%, rgb(var(--tone-rgb, 58 109 246) / .16), transparent 70%);
  filter: blur(30px); pointer-events: none;
}
.p-stage .shot, .p-stage .tv { -webkit-box-reflect: below 14px linear-gradient(transparent 78%, rgba(255, 255, 255, .1)); }

/* television frame for apps that live on the big screen */
.tv {
  position: relative; margin: 0 auto;
  width: min(1060px, 100% - var(--gutter) * 2);
  transform-origin: center top;
  transform:
    rotateX(calc(max(0, 1 - var(--p, 0) * 2.3) * 26deg))
    scale(calc(.86 + min(1, var(--p, 0) * 2.3) * .14));
}
.tv-screen {
  position: relative; overflow: hidden;
  aspect-ratio: 16 / 9;
  border-radius: 18px;
  background: #07080b;
  border: clamp(6px, .9vw, 11px) solid #0b0c10;
  box-shadow: var(--shadow-lg), 0 0 0 1px rgba(255, 255, 255, .09), inset 0 0 0 1px rgba(255, 255, 255, .05);
}
.tv-screen > img { width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.tv-screen::after {
  /* a faint sheen across the glass */
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(115deg, rgba(255, 255, 255, .07), transparent 38%);
}
.tv-stand {
  display: block; width: 26%; height: 16px; margin: 0 auto;
  border-radius: 0 0 14px 14px;
  background: linear-gradient(#1a1c22, #0b0c10);
  box-shadow: 0 18px 30px -12px rgba(0, 0, 0, .6);
}
/* the skip button, as it appears over an opening */
.tv-skip {
  position: absolute; right: 4%; bottom: 8%;
  display: inline-flex; align-items: center; gap: 8px;
  padding: clamp(8px, 1vw, 12px) clamp(14px, 1.6vw, 22px);
  border-radius: 999px;
  color: #fff; font-size: clamp(12px, 1.3vw, 17px); font-weight: 650;
  background: rgba(20, 22, 30, .42);
  -webkit-backdrop-filter: blur(16px) saturate(1.6); backdrop-filter: blur(16px) saturate(1.6);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35), inset 0 0 0 1px rgba(255, 255, 255, .18), 0 10px 30px -8px rgba(0, 0, 0, .6);
  animation: skip-appear 6s var(--ease) infinite;
}
.tv-skip svg { width: 1.1em; height: 1.1em; }
@keyframes skip-appear {
  0%, 12% { opacity: 0; transform: translateY(10px) scale(.96); }
  20%, 70% { opacity: 1; transform: none; }
  74% { opacity: 1; transform: scale(.94); }
  80%, 100% { opacity: 0; transform: scale(1.02); }
}

.platform-pills { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin: 0; padding: 0; list-style: none; }
.platform-pills li {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 14px; border-radius: 999px;
  font-size: 14px; font-weight: 600; color: var(--ink);
  background: color-mix(in srgb, var(--ink) 6%, transparent);
  box-shadow: inset 0 0 0 1px var(--line-2);
}
.platform-pills li.is-soon { color: var(--ink-3); background: transparent; box-shadow: inset 0 0 0 1px var(--line-2); border: 0; }
.platform-pills svg { width: 17px; height: 17px; }

/* skip intro / outro: an episode timeline with the play head jumping past
   the opening and the ending */
.skip-demo { display: grid; gap: 22px; padding: clamp(24px, 3vw, 34px); border-radius: 30px; }
.skip-demo-head { display: flex; justify-content: space-between; font-size: 15px; }
.skip-demo-head span { color: var(--ink-3); font-variant-numeric: tabular-nums; }
.skip-track {
  position: relative; display: grid; grid-template-columns: 1.5fr 7fr 1.5fr; gap: 4px;
  height: 46px;
}
.skip-track > span {
  display: grid; place-items: center; border-radius: 10px;
  font-size: 12.5px; font-weight: 650; color: var(--ink-2);
  background: color-mix(in srgb, var(--ink) 7%, transparent);
}
.skip-track .seg-op, .skip-track .seg-ed {
  color: color-mix(in srgb, rgb(var(--tone-rgb)) 55%, var(--ink)); background: rgb(var(--tone-rgb) / .16);
  box-shadow: inset 0 0 0 1px rgb(var(--tone-rgb) / .4);
}
.skip-head {
  position: absolute; top: -6px; bottom: -6px; left: 0; width: 3px; border-radius: 3px;
  background: var(--ink); box-shadow: 0 0 0 3px color-mix(in srgb, var(--bg) 70%, transparent);
  animation: skip-play 7s linear infinite;
}
@keyframes skip-play {
  0% { left: 0; }
  12% { left: 9%; }
  13% { left: 15.6%; }
  74% { left: 71%; }
  86% { left: 84%; }
  87% { left: 99%; }
  100% { left: 99%; }
}
.skip-demo-foot { display: flex; gap: 10px; flex-wrap: wrap; }
.skip-chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 14px; border-radius: 999px; font-size: 13.5px; font-weight: 650;
  color: var(--bg); background: var(--ink);
  animation: chip-op 7s linear infinite;
}
.skip-chip.is-ed { animation-name: chip-ed; }
.skip-chip svg { width: 15px; height: 15px; }
@keyframes chip-op { 0%, 2% { opacity: .35; } 4%, 12% { opacity: 1; transform: none; } 12.5% { transform: scale(.94); } 14%, 100% { opacity: .35; transform: none; } }
@keyframes chip-ed { 0%, 76% { opacity: .35; } 78%, 86% { opacity: 1; transform: none; } 86.5% { transform: scale(.94); } 88%, 100% { opacity: .35; transform: none; } }

/* before / after comparison, dragged with a range input */
.compare {
  --split: 50%;
  position: relative; overflow: hidden;
  width: min(880px, 100%); margin: 0 auto;
  aspect-ratio: 5 / 4; border-radius: 28px;
  background: #07080b;
  box-shadow: var(--shadow-lg), 0 0 0 1px rgba(255, 255, 255, .08);
}
/* the key art sits in the right ~42% of the screenshot: show only that */
.compare-img { position: absolute; right: 0; top: -16%; width: 262%; max-width: none; height: auto; }
.compare > .compare-img { filter: contrast(1.05) saturate(1.06); }
.compare-before { position: absolute; inset: 0; clip-path: inset(0 calc(100% - var(--split)) 0 0); }
.compare-before .compare-img { filter: blur(2.2px) contrast(.94) saturate(.92); }
.compare-label {
  position: absolute; top: 18px; padding: 7px 13px; border-radius: 999px;
  font-size: 13px; font-weight: 650; color: #fff;
  background: rgba(10, 12, 18, .45);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .18);
  pointer-events: none;
}
.compare-label.is-before { left: 18px; }
.compare-label.is-after { right: 18px; }
.compare-handle {
  position: absolute; top: 0; bottom: 0; left: var(--split); width: 2px; margin-left: -1px;
  background: rgba(255, 255, 255, .9); pointer-events: none;
}
.compare-handle::after {
  content: ""; position: absolute; top: 50%; left: 50%; width: 44px; height: 44px; margin: -22px 0 0 -22px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .22) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m9 7-5 5 5 5M15 7l5 5-5 5'/%3E%3C/svg%3E") center / 22px no-repeat;
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .5), inset 0 0 0 1px rgba(255, 255, 255, .35), 0 6px 18px rgba(0, 0, 0, .35);
}
.compare-range { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; touch-action: pan-y; }
.compare-range:focus-visible + * , .compare:focus-within .compare-handle::after { outline: 2px solid var(--accent); outline-offset: 3px; }
.compare-note { margin: 16px 0 0; text-align: center; color: var(--ink-3); font-size: 13.5px; }

.platforms { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.platform-card {
  position: relative; display: grid; align-content: start; gap: 12px;
  padding: 30px 28px 32px; border-radius: 30px;
  background: var(--card); border: 1px solid var(--card-border); box-shadow: var(--card-shadow);
}
.platform-icon {
  display: grid; place-items: center; width: 56px; height: 56px; border-radius: 18px;
  background: rgb(var(--tone-rgb, 58 109 246) / .14); color: rgb(var(--tone-rgb, 58 109 246));
}
.platform-icon svg { width: 28px; height: 28px; }
.platform-card h3 { margin: 6px 0 0; font-size: 21px; letter-spacing: -.02em; }
.platform-card p { margin: 0; color: var(--ink-2); font-size: 15.5px; line-height: 1.7; }
.platform-status {
  justify-self: start; margin-top: 6px; padding: 5px 11px; border-radius: 999px;
  font-size: 12.5px; font-weight: 650; color: var(--accent);
  background: color-mix(in srgb, var(--accent) 12%, transparent);
}
.platform-card.is-soon { background: transparent; box-shadow: none; border-style: dashed; border-color: var(--line-2); }
.platform-card.is-soon .platform-icon { background: color-mix(in srgb, var(--ink) 6%, transparent); color: var(--ink-3); }
.platform-card.is-soon .platform-status { color: var(--ink-3); background: color-mix(in srgb, var(--ink) 6%, transparent); }
@media (max-width: 900px) { .platforms { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { .tv-skip, .skip-head, .skip-chip { animation: none; } .tv-skip { opacity: 1; } }

/* ------------------------------------------------------------------ about */
.founder {
  display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(36px, 6vw, 90px); align-items: center;
}
.portrait { perspective: 1400px; }
.portrait-card {
  position: relative; border-radius: 36px; overflow: hidden;
  box-shadow: var(--shadow-lg);
  transform: rotateY(calc(var(--tx, 0) * 14deg)) rotateX(calc(var(--ty, 0) * -10deg));
  transition: transform .8s var(--ease);
}
.portrait-card figcaption {
  position: absolute; left: 16px; right: 16px; bottom: 16px;
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 18px; border-radius: 20px; font-weight: 600; color: var(--ink);
}
.values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }

/* ------------------------------------------------------------------ responsive */
@media (max-width: 1080px) {
  .steps { grid-template-columns: repeat(2, 1fr); }
  .platforms { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  .stack-card { position: relative; top: auto; grid-template-columns: 1fr; min-height: 0; margin-bottom: 20px; transform: none; filter: none; }
  .stack-visual { padding-top: 0; }
  .id-grid, .future, .split, .founder { grid-template-columns: 1fr; }
  .split.flip > :first-child { order: 0; }
  .features, .values { grid-template-columns: 1fr; }
  .features.four { grid-template-columns: 1fr; }
  .p-facts { grid-template-columns: repeat(2, 1fr); }
  .flow, .roadmap { grid-template-columns: 1fr; gap: 28px; }
  .flow::before { left: 29px; right: auto; top: 30px; bottom: 30px; width: 2px; height: auto; background: linear-gradient(rgb(var(--tone-rgb, 58 109 246)), var(--b3)) top / 100% calc(var(--p, 0) * 170%) no-repeat, var(--line); }
  .flow-step { grid-template-columns: 60px 1fr; column-gap: 18px; }
  .flow-step b { grid-row: span 2; }
  .flow-step h3 { margin-top: 6px; }
  .roadmap::before { left: 9px; right: auto; top: 0; bottom: 0; width: 2px; height: auto; background: linear-gradient(var(--b1), var(--b3)) top / 100% calc(var(--p, 0) * 160%) no-repeat, var(--line); }
  .roadmap-item { padding: 0 0 0 44px; }
  .roadmap-item::before { top: 2px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .statement { height: 240vh; }
  .id-stage { min-height: 360px; }
}
@media (max-width: 600px) {
  .nature .scroll-cue { display: none; }
  .nature-hint { left: 50%; right: auto; transform: translateX(-50%); white-space: nowrap; }
  .id-orbit span { width: 52px; height: 52px; border-radius: 16px; scale: .8; }
  .nature { height: 200vh; }
  .nature-content { padding-top: calc(var(--nav-h) + var(--nav-top) + 5vh); }
  .hero-panel { margin-top: 20vh; }
  .steps, .platforms { grid-template-columns: 1fr; }
  .hero { align-items: flex-end; padding-bottom: 110px; }
  .display { font-size: clamp(42px, 12vw, 60px); }
  .stack-card { border-radius: 30px; }
  .stack-logo { height: 38px; }
  .p-facts { grid-template-columns: 1fr; }
  .phone-pair { grid-template-columns: 1fr; }
  .next-card { flex-direction: column; align-items: flex-start; }
  .future-list li { grid-template-columns: 1fr; gap: 4px; }
  .btn-row .btn { flex: 1 1 auto; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .hero-inner { transform: none; opacity: 1; }
  .hero-panel { animation: none; }
  .stack-card { transform: none; filter: none; }
  .p-stage .shot, .p-stage .tv { transform: none; }
  .statement-text > span { --f: 100%; }
}

/* ------------------------------------------------------------------ motion */
/* Page to page: a plain cross-fade (cross-document View Transitions; other
   browsers simply navigate). The navigation is identical on both pages, so
   it appears to hold still. It must not get its own view-transition-name:
   that would make it a backdrop root and its glass could no longer blur the
   page behind it. */
@view-transition { navigation: auto; types: page; }
html:active-view-transition-type(page)::view-transition-old(root) { animation: page-out .28s cubic-bezier(.4, 0, 1, 1) both; }
html:active-view-transition-type(page)::view-transition-new(root) { animation: page-in .55s var(--ease) both; }
@keyframes page-out { to { opacity: 0; } }
@keyframes page-in { from { opacity: 0; } }

/* Opening: the title surfaces line by line out of soft focus, then the glass
   panel rises and the controls settle in. */
.nature-content .eyebrow { animation: rise-in 1s var(--ease) .15s backwards; }
.nature-content .display > span { animation: title-in 1.3s var(--ease) backwards; }
.nature-content .display > span.grad { animation-name: title-in-grad; }
.nature-content .display > span:nth-child(1) { animation-delay: .3s; }
.nature-content .display > span:nth-child(2) { animation-delay: .46s; }
.nature-content .hero-panel { animation: rise-in 1.1s var(--ease) .75s backwards, drift 7s ease-in-out 1.9s infinite; }
.nature .nature-hint, .nature .scroll-cue { animation: fade-in 1s var(--ease) 1.3s backwards; }
body:has(.nature) .site-nav { animation: nav-in 1s var(--ease) .1s backwards; }
.p-hero .display > span { animation: title-in 1.2s var(--ease) backwards; }
.p-hero .display > span:nth-child(2) { animation-delay: .14s; }
@keyframes title-in {
  from { opacity: 0; transform: translateY(.35em) scale(1.03); filter: blur(14px); letter-spacing: .04em; }
  to { opacity: 1; transform: none; filter: blur(0); }
}
@keyframes title-in-grad {
  from { opacity: 0; transform: translateY(.35em) scale(1.03); filter: blur(14px) drop-shadow(0 0 18px color-mix(in srgb, var(--bg) 70%, transparent)); }
  to { opacity: 1; transform: none; filter: blur(0) drop-shadow(0 0 18px color-mix(in srgb, var(--bg) 70%, transparent)); }
}
@keyframes rise-in { from { opacity: 0; transform: translateY(26px); filter: blur(6px); } to { opacity: 1; transform: none; filter: none; } }
@keyframes fade-in { from { opacity: 0; } }
@keyframes nav-in { from { opacity: 0; transform: translateY(-14px); } }

/* Section headlines open line by line from behind a mask. */
.reveal .h2 > span, .h2.reveal > span {
  clip-path: inset(-12% -4% 100% -4%);
  transform: translateY(45%);
  transition: clip-path 1.05s var(--ease), transform 1.05s var(--ease);
}
.reveal.is-in .h2 > span, .h2.reveal.is-in > span { clip-path: inset(-12% -4% -18% -4%); transform: none; }
.reveal .h2 > span:nth-child(2), .h2.reveal > span:nth-child(2) { transition-delay: .12s; }
.reveal .h2 > span:nth-child(3), .h2.reveal > span:nth-child(3) { transition-delay: .24s; }
.reveal { filter: blur(4px); transition: opacity .9s var(--ease), transform 1s var(--ease), filter .9s var(--ease); transition-delay: calc(var(--d, 0) * 90ms); }
.reveal.is-in { filter: none; }

/* Cards catch a soft light where the pointer is. */
:is(.feature, .platform-card, .next-card, .stack-card, .skip-demo)::after {
  content: ""; position: absolute; inset: 0; z-index: 0; border-radius: inherit; pointer-events: none;
  background: radial-gradient(380px circle at var(--sx, 50%) var(--sy, 50%), color-mix(in srgb, var(--ink) 7%, transparent), transparent 70%);
  opacity: 0; transition: opacity .4s var(--ease);
}
:is(.feature, .platform-card, .next-card, .stack-card, .skip-demo):hover::after { opacity: 1; }
:is(.platform-card, .next-card) { position: relative; overflow: hidden; }
:is(.feature, .platform-card, .next-card, .stack-card) > * { position: relative; z-index: 1; }
.feature, .platform-card { transition: transform .6s var(--spring), box-shadow .4s var(--ease); }
.feature:hover, .platform-card:hover { transform: translateY(-4px); }

/* Primary buttons lean a little towards the pointer. */
:is(.btn-primary, .btn-brand, .btn-glass) { translate: var(--bx, 0) var(--by, 0); transition: transform .5s var(--spring), translate .45s var(--spring), box-shadow .3s var(--ease), background-color .3s var(--ease), color .3s var(--ease); }

@media (prefers-reduced-motion: reduce) {
  ::view-transition-group(*), ::view-transition-old(*), ::view-transition-new(*) { animation: none !important; }
  .nature-content .eyebrow, .nature-content .display > span, .nature-content .hero-panel, .nature .nature-hint, .nature .scroll-cue,
  body:has(.nature) .site-nav, .p-hero .display > span { animation: none; }
  .reveal .h2 > span, .h2.reveal > span { clip-path: none; transform: none; transition: none; }
  .reveal { filter: none; }
  :is(.btn-primary, .btn-brand, .btn-glass) { translate: none; }
}

/* ------------------------------------------------------------------ deck */
.product-deck { display: grid; justify-items: center; }
.product-deck > .deck { width: min(1000px, 100%); }
.split-visual > .deck.is-phone { width: min(300px, 78%); margin: 0 auto; }
/* A pile of screenshots, fanned slightly, that can be dragged away one by
   one (behaviour in aulama.js). */
.deck { position: relative; width: 100%; display: grid; justify-items: center; gap: 18px; --deck-ratio: 16 / 10; }
.deck-cards {
  position: relative; width: 100%; aspect-ratio: var(--deck-ratio);
  margin-top: 40px;
  touch-action: pan-y; user-select: none; -webkit-user-select: none;
  cursor: grab; outline: none;
}
.deck.is-dragging .deck-cards { cursor: grabbing; }
.deck.is-single .deck-cards { margin-top: 0; cursor: default; }
.deck-card {
  position: absolute; inset: 0; margin: 0;
  display: flex; flex-direction: column;
  border-radius: 16px; overflow: hidden;
  background: #0b0c10;
  box-shadow: 0 30px 70px -28px rgba(0, 0, 0, .55), 0 10px 24px -12px rgba(0, 0, 0, .3), 0 0 0 1px rgba(255, 255, 255, .08);
  transform-origin: 50% 0;
  transition: transform .62s var(--spring), opacity .45s var(--ease);
  will-change: transform;
}
.deck-card .shot-bar { flex: none; }
.deck-card img { flex: 1; min-height: 0; width: 100%; height: 100%; object-fit: cover; object-position: top center; pointer-events: none; -webkit-user-drag: none; }
.deck-card[aria-hidden="true"] img { filter: brightness(.82); transition: filter .4s var(--ease); }
/* phone screenshots sit in a slim device frame */
.deck.is-phone { width: min(280px, 64%); }
.deck.is-phone .deck-card { border-radius: 36px; border: 7px solid #0b0c10; }
.deck.is-phone .deck-card img { border-radius: 29px; }
.deck-foot {
  display: flex; align-items: center; gap: 12px; max-width: 100%;
  padding: 7px 8px 7px 14px; border-radius: 999px;
  font-size: 13px; color: var(--ink-2);
  background: var(--glass-bg);
  -webkit-backdrop-filter: blur(16px) saturate(1.7); backdrop-filter: blur(16px) saturate(1.7);
  box-shadow: inset 0 1px 0 var(--glass-hi), inset 0 0 0 .5px var(--glass-edge);
}
.deck.is-single .deck-foot { padding-right: 14px; }
.deck-caption { font-weight: 650; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.deck-count { font-variant-numeric: tabular-nums; color: var(--ink-3); }
.deck.is-single :is(.deck-count, .deck-dots, .deck-hint) { display: none; }
.deck-dots { display: flex; align-items: center; gap: 6px; }
.deck-dots button {
  width: 7px; height: 7px; padding: 0; border: 0; border-radius: 4px;
  background: color-mix(in srgb, var(--ink) 24%, transparent);
  transition: width .45s var(--spring), background-color .3s var(--ease);
}
.deck-dots button.is-active { width: 20px; background: var(--ink); }
.deck-hint {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 10px; border-radius: 999px;
  color: var(--ink-2); background: color-mix(in srgb, var(--ink) 7%, transparent);
  transition: opacity .4s var(--ease), max-width .5s var(--ease);
  white-space: nowrap; max-width: 14em; overflow: hidden;
}
.deck-hint svg { width: 15px; height: 15px; flex: none; }
.deck.is-used .deck-hint { opacity: 0; max-width: 0; padding-inline: 0; margin-left: -12px; }
.deck-hint .on-touch { display: none; }
@media (hover: none), (pointer: coarse) { .deck-hint .on-mouse { display: none; } .deck-hint .on-touch { display: inline; } }
@media (prefers-reduced-motion: reduce) { .deck-card { transition: none; } }
