/* NextWell Lab — landing. Refined sci-fi: layered glass panels, hairline
   detailing, one slow-moving accent kept to low chroma. The glass tokens
   mirror shared/glass.css so the landing and the galleries read as one product.
   Loaded by index.html only. */

@font-face {
  font-family: 'Golos Text'; font-style: normal; font-weight: 400; font-display: swap;
  src: url('/shared/fonts/golos-text/golos-text-latin-400-normal.woff2') format('woff2');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}
@font-face {
  font-family: 'Golos Text'; font-style: normal; font-weight: 400; font-display: swap;
  src: url('/shared/fonts/golos-text/golos-text-latin-ext-400-normal.woff2') format('woff2');
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}
@font-face {
  font-family: 'Golos Text'; font-style: normal; font-weight: 400; font-display: swap;
  src: url('/shared/fonts/golos-text/golos-text-cyrillic-400-normal.woff2') format('woff2');
  unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116;
}
@font-face {
  font-family: 'Golos Text'; font-style: normal; font-weight: 600; font-display: swap;
  src: url('/shared/fonts/golos-text/golos-text-latin-600-normal.woff2') format('woff2');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}
@font-face {
  font-family: 'Golos Text'; font-style: normal; font-weight: 600; font-display: swap;
  src: url('/shared/fonts/golos-text/golos-text-latin-ext-600-normal.woff2') format('woff2');
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}
@font-face {
  font-family: 'Golos Text'; font-style: normal; font-weight: 600; font-display: swap;
  src: url('/shared/fonts/golos-text/golos-text-cyrillic-600-normal.woff2') format('woff2');
  unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116;
}
@font-face {
  font-family: 'Geist Mono'; font-style: normal; font-weight: 400; font-display: swap;
  src: url('/shared/fonts/geist-mono/geist-mono-latin-400-normal.woff2') format('woff2');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}
@font-face {
  font-family: 'Geist Mono'; font-style: normal; font-weight: 400; font-display: swap;
  src: url('/shared/fonts/geist-mono/geist-mono-latin-ext-400-normal.woff2') format('woff2');
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}
@font-face {
  font-family: 'Geist Mono'; font-style: normal; font-weight: 400; font-display: swap;
  src: url('/shared/fonts/geist-mono/geist-mono-cyrillic-400-normal.woff2') format('woff2');
  unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

/* --acid and --hue2 are written inline on <html> (head script, then the
   rotation in main.js); the values here are the no-script fallback. */
@property --card-grow { syntax: "<number>"; inherits: false; initial-value: 0; }
@property --card-lit { syntax: "<number>"; inherits: false; initial-value: 0; }

:root {
  --bg: #07090d;
  --bg-raise: #0d1017;
  --fg: #f4f2ff;
  --fg-a05: rgba(244, 242, 255, .05);
  --fg-a08: rgba(244, 242, 255, .08);
  --fg-a12: rgba(244, 242, 255, .12);
  --fg-a25: rgba(244, 242, 255, .25);
  --fg-2: rgba(244, 242, 255, .76);
  --fg-3: rgba(244, 242, 255, .58);
  --acid: #79d0c8;
  --hue2: #71b3e1;
  --acid-ink: #06090d;

  --glass-fill: linear-gradient(180deg, rgba(255, 255, 255, .085) 0%, rgba(255, 255, 255, .03) 55%, rgba(255, 255, 255, .045) 100%);
  --glass-fill-hover: linear-gradient(180deg, rgba(255, 255, 255, .13) 0%, rgba(255, 255, 255, .055) 55%, rgba(255, 255, 255, .07) 100%);
  --glass-rim: linear-gradient(180deg, rgba(255, 255, 255, .26) 0%, rgba(255, 255, 255, .06) 38%, rgba(255, 255, 255, .03) 62%, rgba(255, 255, 255, .12) 100%);
  --glass-hi: rgba(255, 255, 255, .1);
  --glass-edge: rgba(255, 255, 255, .06);
  --glass-shade: 0 1px 2px rgba(0, 0, 0, .28), 0 6px 16px -10px rgba(0, 0, 0, .55);
  --glass-panel-shadow:
    inset 0 1px 0 var(--glass-hi), inset 0 0 0 1px var(--glass-edge),
    0 28px 64px -24px rgba(0, 0, 0, .7), 0 2px 10px -4px rgba(0, 0, 0, .4);
  --hair: linear-gradient(90deg, transparent, var(--fg-a12) 18%, var(--fg-a12) 82%, transparent);

  --display: 'Science Gothic', 'Arial Narrow', system-ui, sans-serif;
  --text: 'Golos Text', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'Geist Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --max-w: 1240px;
  --gutter: clamp(18px, 4vw, 48px);
  --head-h: 64px;
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --block-pad: clamp(72px, 10vw, 128px);
  --ease-card: cubic-bezier(.165, .84, .44, 1);
  --device-px: 1px;
  color-scheme: dark;
}

/* One device pixel in CSS pixels: the tile surface stops its growth on it. */
@media (resolution >= 1.25dppx) { :root { --device-px: calc(1px / 1.25); } }
@media (resolution >= 1.5dppx) { :root { --device-px: calc(1px / 1.5); } }
@media (resolution >= 2dppx) { :root { --device-px: .5px; } }
@media (resolution >= 3dppx) { :root { --device-px: calc(1px / 3); } }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }

body {
  background: var(--bg);
  color: var(--fg);
  font: 400 16px/1.55 var(--text);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  touch-action: manipulation;
}

/* A fixed blueprint grid that never repaints: it gives every panel something to sit over. */
body::before {
  content: ''; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, .028) 1px, transparent 1px) 0 0 / 72px 72px,
    linear-gradient(180deg, rgba(255, 255, 255, .028) 1px, transparent 1px) 0 0 / 72px 72px;
  -webkit-mask-image: radial-gradient(120% 90% at 50% 20%, #000 10%, transparent 78%);
          mask-image: radial-gradient(120% 90% at 50% 20%, #000 10%, transparent 78%);
}

a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
::selection { background: color-mix(in srgb, var(--acid) 80%, transparent); color: var(--acid-ink); }
:focus-visible { outline: 2px solid color-mix(in srgb, var(--acid) 75%, #fff); outline-offset: 3px; }

.skip {
  position: absolute; left: 12px; top: -64px; z-index: 200;
  padding: 12px 18px; border-radius: 10px;
  background: var(--acid); color: var(--acid-ink);
  font: 600 12px/1 var(--display); letter-spacing: .14em; text-transform: uppercase;
  transition: top .2s var(--ease-out);
}
.skip:focus { top: 12px; outline-color: var(--fg); }

main:focus { outline: none; }
.wrap { width: 100%; max-width: var(--max-w); margin-inline: auto; padding-inline: var(--gutter); }

.label, .eyebrow {
  font: 600 11px/1.4 var(--display);
  letter-spacing: .2em; text-transform: uppercase;
  color: var(--fg-3);
}

/* ===== glass material (see shared/glass.css) ===== */
.glass {
  position: relative; isolation: isolate;
  border-radius: var(--r, 14px);
  background: var(--glass-fill);
  box-shadow: var(--glass-panel-shadow);
}
.glass::before {
  content: ''; position: absolute; inset: 0; z-index: 2;
  border-radius: inherit; padding: 1px;
  background: var(--glass-rim);
  -webkit-mask: linear-gradient(#000 0 0) content-box, 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;
}

/* ===== reveal ===== */
html.js .reveal { opacity: 0; }
html.js .reveal.in {
  opacity: 1;
  animation: rise .9s var(--ease-out) var(--d, 0ms) backwards;
}
@keyframes rise { from { opacity: 0; transform: translate3d(0, 22px, 0); } }

/* ===== header ===== */
.site-head {
  position: sticky; top: 0; z-index: 90;
  display: flex; align-items: center; gap: 8px;
  height: var(--head-h);
  padding-inline: var(--gutter);
  background: var(--bg);
}
.site-head::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
  background: var(--hair); pointer-events: none;
}
.site-progress {
  position: absolute; left: 0; right: 0; bottom: 0; height: 1px; z-index: 1;
  background: var(--acid);
  transform-origin: 0 50%; transform: scaleX(var(--sp, 0));
  pointer-events: none;
}

.wordmark {
  display: flex; align-items: center; gap: 12px;
  margin-right: auto; min-height: 44px;
  font: 600 14px/1 var(--display); letter-spacing: .01em;
  white-space: nowrap;
}
.wordmark-box {
  position: relative;
  display: grid; place-items: center;
  width: 32px; height: 32px; flex: 0 0 32px;
  border-radius: 9px;
  background: linear-gradient(180deg, color-mix(in srgb, var(--acid) 88%, #fff), var(--acid));
  color: var(--acid-ink);
  font: 700 11px/1 var(--display); letter-spacing: -.02em;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .5), 0 8px 20px -10px color-mix(in srgb, var(--acid) 70%, transparent);
  transform-origin: 50% 50%;
  transition: transform .7s var(--ease-out), filter .3s;
}
.wordmark-text { position: relative; }
.wordmark em { font-style: normal; color: var(--acid); }
/* Hover turns the mark about its own centre; whatever the mark is made of, the rule does not care. */
.wordmark:hover .wordmark-box, .wordmark:focus-visible .wordmark-box { transform: rotate(180deg); filter: brightness(1.08); }

/* Tear: four copies of the mark that fire one short burst every ~12s (and on
   hover). They move only by transform/clip-path, so the header never shifts. */
.wordmark-box::before, .wordmark-box::after,
.wordmark-text::before, .wordmark-text::after {
  content: attr(data-text);
  position: absolute; inset: 0;
  opacity: 0; pointer-events: none;
}
.wordmark-text::before { --o: 20ms; color: var(--acid); }
.wordmark-box::after { --o: 40ms; }
.wordmark-text::after {
  --o: 60ms;
  color: var(--hue2);
  -webkit-mask-image: repeating-linear-gradient(180deg, #000 0 1px, transparent 1px 4px);
          mask-image: repeating-linear-gradient(180deg, #000 0 1px, transparent 1px 4px);
}
.wordmark-box::before, .wordmark-box::after { display: grid; place-items: center; border-radius: inherit; }
.wordmark-box::before { background: var(--acid); color: var(--acid-ink); }
.wordmark-box::after { background: color-mix(in srgb, var(--hue2) 75%, transparent); color: var(--acid-ink); }
.site-head .wordmark-box::before, .site-head .wordmark-box::after,
.site-head .wordmark-text::before, .site-head .wordmark-text::after {
  animation: tear 12.4s steps(1, end) calc(6s + var(--o, 0ms)) infinite;
}
.wordmark:hover .wordmark-box::before, .wordmark:hover .wordmark-box::after,
.wordmark:hover .wordmark-text::before, .wordmark:hover .wordmark-text::after,
.wordmark:focus-visible .wordmark-box::before, .wordmark:focus-visible .wordmark-box::after,
.wordmark:focus-visible .wordmark-text::before, .wordmark:focus-visible .wordmark-text::after {
  animation: tear-hi 2.8s steps(1, end) var(--o, 0ms) 1;
}
@keyframes tear {
  0%, 100% { opacity: 0; }
  .45% { opacity: 1; transform: translate3d(-3px, 0, 0); clip-path: inset(24% 0 58% 0); }
  .95% { opacity: 1; transform: translate3d(3px, 1px, 0); clip-path: inset(52% 0 28% 0); }
  1.45% { opacity: 1; transform: translate3d(-2px, 0, 0); clip-path: inset(36% 0 46% 0); }
  1.85% { opacity: 0; }
}
@keyframes tear-hi {
  0% { opacity: 1; transform: translate3d(-4px, 0, 0); clip-path: inset(20% 0 60% 0); }
  2% { opacity: 1; transform: translate3d(4px, -1px, 0); clip-path: inset(46% 0 34% 0); }
  4% { opacity: 1; transform: translate3d(-2px, 1px, 0); clip-path: inset(62% 0 20% 0); }
  6% { opacity: 0; }
  52% { opacity: 1; transform: translate3d(3px, 0, 0); clip-path: inset(30% 0 52% 0); }
  55%, 100% { opacity: 0; }
}

.site-nav { display: flex; align-items: center; gap: 2px; }
.site-nav a {
  position: relative;
  display: inline-flex; align-items: center; gap: 8px;
  height: 44px; padding: 0 14px;
  font: 600 11px/1 var(--display); letter-spacing: .16em; text-transform: uppercase;
  color: var(--fg-3);
  transition: color .2s;
}
.site-nav a:hover, .site-nav a[aria-current="true"] { color: var(--fg); }
.site-nav a::after {
  content: ''; position: absolute; left: 14px; right: 14px; bottom: 8px; height: 1px;
  background: var(--acid);
  transform: scaleX(0); transform-origin: 0 50%;
  transition: transform .4s var(--ease-out);
}
.site-nav a:hover::after, .site-nav a[aria-current="true"]::after { transform: scaleX(1); }
.site-nav .nav-ext {
  margin-left: 8px; padding: 0 16px; border-radius: 12px;
  background: var(--glass-fill);
  box-shadow: var(--glass-shade), inset 0 1px 0 var(--glass-hi), inset 0 0 0 1px var(--glass-edge);
}
.site-nav .nav-ext::before {
  content: ''; order: 2; width: 11px; height: 11px; flex: 0 0 11px;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 17 17 7M8 7h9v9'/%3E%3C/svg%3E") no-repeat center / contain;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 17 17 7M8 7h9v9'/%3E%3C/svg%3E") no-repeat center / contain;
}
.site-nav .nav-ext::after { display: none; }

.lang-selector { position: relative; }
.lang-toggle {
  display: inline-flex; align-items: center; gap: 8px;
  height: 44px; padding: 0 14px; border: 0; border-radius: 12px;
  background: var(--glass-fill); color: var(--fg-2); cursor: pointer;
  box-shadow: var(--glass-shade), inset 0 1px 0 var(--glass-hi), inset 0 0 0 1px var(--glass-edge);
  font: 600 11px/1 var(--display); letter-spacing: .14em;
  transition: color .2s, background .2s;
}
.lang-toggle:hover, .lang-selector.open .lang-toggle { color: var(--fg); background: var(--glass-fill-hover); }
.lang-dropdown {
  position: absolute; top: calc(100% + 10px); right: 0;
  width: 208px; padding: 6px;
  display: flex; flex-direction: column; gap: 1px;
  border-radius: 16px;
  background: color-mix(in srgb, var(--bg-raise) 94%, transparent);
  box-shadow: var(--glass-panel-shadow);
  z-index: 95;
  transform-origin: top right;
  opacity: 0; visibility: hidden; pointer-events: none;
  transform: translate3d(0, -8px, 0) scale(.98);
  transition: opacity .2s ease, transform .35s var(--ease-out), visibility .2s;
}
.lang-selector.open .lang-dropdown { opacity: 1; visibility: visible; pointer-events: auto; transform: none; }
.lang-option {
  --d: 0ms;
  display: flex; align-items: center; gap: 10px;
  min-height: 40px; padding: 0 12px; border: 0; border-radius: 10px;
  background: none; cursor: pointer; text-align: left;
  font: 400 14px/1 var(--text); color: var(--fg-2);
  opacity: 0; transform: translate3d(0, -6px, 0);
  transition: opacity .24s ease var(--d), transform .35s var(--ease-out) var(--d), background .15s, color .15s;
}
.lang-selector.open .lang-option { --d: calc(var(--i, 0) * 24ms); opacity: 1; transform: none; }
.lang-option:hover { background: var(--fg-a08); color: var(--fg); }
.lang-option.active { color: var(--fg); font-weight: 600; }
.lang-option.active::after { content: '✓'; margin-left: auto; color: var(--acid); }
.flag-icon { width: 18px; height: 13px; object-fit: cover; border-radius: 2px; }

.burger {
  display: none;
  width: 44px; height: 44px; flex: 0 0 44px; padding: 0; border: 0; border-radius: 12px;
  background: var(--glass-fill); cursor: pointer;
  box-shadow: var(--glass-shade), inset 0 1px 0 var(--glass-hi), inset 0 0 0 1px var(--glass-edge);
  flex-direction: column; align-items: center; justify-content: center; gap: 5px;
}
.burger span { display: block; width: 16px; height: 1.5px; border-radius: 1px; background: var(--fg); transition: transform .25s var(--ease-out), opacity .2s; }
.burger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

.mobile-menu {
  position: fixed; inset: var(--head-h) 0 0 0; z-index: 85;
  display: flex; flex-direction: column; gap: 32px;
  padding: 28px var(--gutter) 24px;
  background: var(--bg); overflow-y: auto;
}
.mobile-menu[hidden] { display: none; }
.mobile-menu-group { display: flex; flex-direction: column; }
.mobile-menu-group .label { margin-bottom: 8px; color: var(--acid); }
.mobile-menu-group a {
  display: flex; align-items: center; min-height: 48px;
  font: 600 22px/1.1 var(--display); letter-spacing: .01em; text-transform: uppercase;
  background: var(--hair) bottom / 100% 1px no-repeat;
  transition: color .2s, padding-left .3s var(--ease-out);
}
.mobile-menu-group a:hover { color: var(--acid); padding-left: 10px; }
.mobile-menu-group--featured { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 18px; }
.mobile-menu-group--featured .label { grid-column: 1 / -1; }
.mobile-menu-group--featured a { font-size: 15px; min-height: 44px; }
.mobile-menu-foot {
  margin-top: auto; padding-top: 18px;
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  background: var(--hair) top / 100% 1px no-repeat;
  font: 400 12px/1 var(--mono); letter-spacing: .06em; text-transform: uppercase;
  color: var(--fg-3);
}
.mobile-menu-foot a { color: var(--acid); }

/* ===== hero ===== */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  padding-top: clamp(36px, 7vh, 80px);
  touch-action: pan-y;
}
.hero::before {
  content: ''; position: absolute; inset: 0; z-index: -2; pointer-events: none;
  background:
    radial-gradient(900px 520px at 82% -8%, color-mix(in srgb, var(--hue2) 13%, transparent), transparent 70%),
    radial-gradient(760px 460px at 8% 30%, color-mix(in srgb, var(--acid) 8%, transparent), transparent 70%);
}
.field { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; display: block; pointer-events: none; }
.hero::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 140px; z-index: -1;
  background: linear-gradient(to bottom, transparent, var(--bg));
  pointer-events: none;
}
.hero-inner { position: relative; }
.hero-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.eyebrow { display: flex; align-items: center; gap: 12px; color: var(--fg-2); }
.eyebrow::before {
  content: ''; width: 7px; height: 7px; flex: none; border-radius: 50%;
  background: var(--acid);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--acid) 18%, transparent);
  animation: pulse 2.6s ease-in-out infinite;
}
@keyframes pulse { 50% { opacity: .4; } }

.readout {
  --r: 10px;
  min-width: 25ch; padding: 7px 12px;
  font: 400 11.5px/1.2 var(--mono); letter-spacing: .04em;
  font-variant-numeric: tabular-nums;
  color: var(--fg-3);
  contain: layout paint;
}

#heroTitle {
  margin: 28px 0 clamp(28px, 4vw, 44px);
  font: 900 40px/.9 var(--display);
  letter-spacing: -.015em; text-transform: uppercase;
}
.t-line { display: block; white-space: nowrap; }
.t-a { font-size: min(210px, calc((min(100vw, var(--max-w)) - 2 * var(--gutter)) / 5.75)); color: var(--fg); }
.t-b { margin-top: .08em; font-size: min(112px, calc((min(100vw, var(--max-w)) - 2 * var(--gutter)) / 14.6)); }
.hero-word { display: inline-block; }
.t-line.is-stacked .hero-word { display: block; }

/* The second line is outlined; the glyph under the probe fills with the accent
   (--p is written per glyph by main.js). */
.t-b .hero-glyph {
  --p: 0;
  position: relative; display: inline-block;
  color: transparent;
  -webkit-text-stroke: max(1.25px, .015em) var(--fg-2);
  transform: translate3d(0, calc(var(--p) * -.06em), 0);
}
.t-b .hero-glyph::after {
  content: attr(data-c);
  position: absolute; left: 0; top: 0;
  color: var(--acid);
  -webkit-text-stroke: 0;
  opacity: var(--p);
}

.hero-row {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 28px 56px;
}
.hero-copy { flex: 1 1 auto; max-width: 62ch; }
.lede { font-size: clamp(16px, 1.4vw, 18px); line-height: 1.62; color: var(--fg-2); text-wrap: pretty; }
.hero-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 12px; flex: none; }

.btn {
  position: relative; isolation: isolate;
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 46px; padding: 0 24px;
  border: 0; border-radius: 12px; cursor: pointer;
  font: 600 11px/1 var(--display); letter-spacing: .16em; text-transform: uppercase;
  white-space: nowrap;
  transition: background .3s var(--ease-out), box-shadow .3s var(--ease-out), color .2s, transform .1s;
}
.btn:active { transform: scale(.98); }

/* Both buttons answer a hover with colour and glow only. */
.btn-ghost {
  color: var(--fg);
  background: var(--glass-fill);
  box-shadow: var(--glass-shade), inset 0 1px 0 var(--glass-hi), inset 0 0 0 1px color-mix(in srgb, var(--fg) 18%, transparent);
}
.btn-ghost:hover, .btn-ghost:focus-visible {
  background: var(--glass-fill-hover);
  box-shadow: var(--glass-shade), inset 0 1px 0 var(--glass-hi), inset 0 0 0 1px color-mix(in srgb, var(--acid) 60%, transparent), 0 0 26px -8px color-mix(in srgb, var(--acid) 45%, transparent);
}

.btn-primary {
  color: var(--acid-ink);
  background: linear-gradient(180deg, color-mix(in srgb, var(--acid) 86%, #fff), var(--acid));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .55), 0 12px 30px -14px color-mix(in srgb, var(--acid) 55%, transparent);
}
.btn-primary:hover, .btn-primary:focus-visible {
  background: linear-gradient(180deg, color-mix(in srgb, var(--acid) 70%, #fff), color-mix(in srgb, var(--acid) 92%, #fff));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .65), 0 12px 30px -14px color-mix(in srgb, var(--acid) 55%, transparent), 0 0 0 3px color-mix(in srgb, var(--acid) 24%, transparent);
}
.btn-primary:focus-visible { outline-color: var(--fg); }

/* The two hero buttons are experiments (main.js, "hero buttons"): filings in
   the primary, a decoding label in the secondary. Nothing here moves the button. */
.btn-text { position: relative; z-index: 1; display: block; }
.btn-label { display: block; }
.btn-fx { position: absolute; inset: 0; z-index: 0; width: 100%; height: 100%; border-radius: inherit; pointer-events: none; }
.btn-scr { position: absolute; left: 0; top: 0; white-space: pre; pointer-events: none; }
.btn-scr span { position: absolute; top: 0; text-align: center; }
.btn-scr .is-glyph { color: var(--acid); }
.btn.is-decoding .btn-label { color: transparent; }
.btn-scan { position: absolute; top: -8px; bottom: -8px; left: 0; width: 1px; background: var(--acid); opacity: 0; pointer-events: none; }
.btn.is-decoding .btn-scan { opacity: .85; }

/* ----- metrics ----- */
.metrics {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px;
  margin-top: clamp(36px, 6vh, 60px);
}
.metric {
  --r: 18px;
  display: flex; flex-direction: column; gap: 8px;
  min-height: 156px; padding: 20px 22px 20px;
  min-width: 0;
}
.metric dd:not(.metric-vis) {
  order: -1;
  font: 600 10.5px/1.35 var(--display); letter-spacing: .18em; text-transform: uppercase;
  color: var(--fg-3);
}
.metric dt {
  font: 300 clamp(42px, 4.4vw, 58px)/1 var(--display); letter-spacing: -.01em;
  font-variant-numeric: tabular-nums; color: var(--fg);
}
.metric-vis { margin-top: auto; padding-top: 10px; display: flex; align-items: center; gap: 4px; min-height: 28px; }
.vis-bar i { display: block; height: 6px; border-radius: 3px; flex: var(--n) 1 0; min-width: 3px; background: var(--acid); opacity: var(--o, 1); }
.vis-dots { gap: 7px; }
.vis-dots i { display: block; width: 9px; height: 9px; border-radius: 50%; background: var(--ca); opacity: .85; }
.vis-ticks { gap: 4px; }
.vis-ticks i { display: block; width: 3px; height: 16px; border-radius: 2px; background: var(--acid); }
.vis-ticks .is-frozen { background: transparent; box-shadow: inset 0 0 0 1px var(--fg-3); }
.vis-ticks .is-proto { background: var(--hue2); height: 10px; }
.vis-ticks .is-ghost { background: transparent; box-shadow: inset 0 0 0 1px var(--fg-a25); height: 10px; }
.vis-flags { flex-wrap: wrap; gap: 4px 3px; }
.vis-flags img { display: block; width: 14px; height: 10px; object-fit: cover; border-radius: 2px; opacity: .9; }

/* ----- timeline ----- */
.timeline {
  --r: 18px;
  display: grid; align-items: center;
  grid-template-columns: auto minmax(120px, 1fr) auto auto auto;
  column-gap: clamp(14px, 2.4vw, 32px);
  margin-top: 14px; padding: 18px 26px;
}
.timeline b { display: block; font: 300 clamp(26px, 2.6vw, 34px)/1 var(--display); letter-spacing: -.005em; font-variant-numeric: tabular-nums; color: var(--fg); }
.tl-label { display: block; margin-top: 6px; font: 600 10.5px/1.35 var(--display); letter-spacing: .16em; text-transform: uppercase; color: var(--fg-3); }
.tl-mid { position: relative; display: flex; align-items: center; justify-content: center; min-height: 52px; }
.tl-chip {
  position: relative; display: inline-flex; align-items: baseline; gap: 10px;
  padding: 11px 18px; border-radius: 999px; white-space: nowrap;
  background: var(--bg-raise);
  box-shadow: inset 0 0 0 1px var(--glass-edge), inset 0 1px 0 var(--glass-hi);
}
.tl-chip b { font-size: 18px; line-height: 1; color: var(--acid); }
.tl-chip .tl-label { margin: 0; line-height: 1; }
.tl-rule {
  position: absolute; left: 0; right: 0; top: 50%; height: 9px; margin-top: -4px;
  background:
    linear-gradient(var(--fg-a25), var(--fg-a25)) 0 4px / 100% 1px no-repeat,
    repeating-linear-gradient(90deg, var(--fg-a25) 0 1px, transparent 1px 10px) 0 0 / 100% 9px no-repeat;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}
.tl-extra { padding-left: clamp(14px, 2.4vw, 32px); background: linear-gradient(180deg, transparent, var(--fg-a12) 25%, var(--fg-a12) 75%, transparent) left / 1px 100% no-repeat; }

/* ===== blocks ===== */
.block { padding-block: var(--block-pad) 0; scroll-margin-top: calc(var(--head-h) - 24px); }
#featured { padding-bottom: clamp(56px, 8vw, 96px); }
.block-head { margin-bottom: clamp(28px, 5vw, 52px); max-width: 880px; }
.block-head h2 {
  font: 300 clamp(30px, 5.2vw, 64px)/.98 var(--display);
  letter-spacing: -.005em; text-transform: uppercase;
  text-wrap: balance; hyphens: auto; overflow-wrap: break-word;
}
.block-sub { margin-top: 16px; max-width: 58ch; color: var(--fg-2); text-wrap: pretty; }

/* ===== sections: the bento ===== */
.bento {
  display: grid; gap: 16px;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  grid-auto-rows: minmax(260px, auto);
}
.tile--interactive { grid-column: 1 / 8; grid-row: 1 / 3; }
.tile--apps { grid-column: 8 / 13; grid-row: 1; }
.tile--games { grid-column: 8 / 13; grid-row: 2; }
.tile--s3d { grid-column: 1 / 5; grid-row: 3; }
.tile--clocks { grid-column: 5 / 9; grid-row: 3; }
.tile--pomodoro { grid-column: 9 / 13; grid-row: 3; }

/* The tile's surface (rim and fill) is larger than the tile by --shift-* and
   clipped back to the tile at rest; hover opens the clip, so the frame grows
   outward while the box, the cover and the content keep their pixels (the idea
   of the portfolio's bento cards). The rim is the 1px gap between the two
   clips, so the fill stays opaque; the cover sits inside it, inset by that 1px. */
.tile {
  --ca: var(--acid); --r: 20px;
  --shift-x: 5px; --shift-y: 5px;
  display: flex; flex-direction: column; justify-content: space-between; gap: 20px;
  padding: 14px;
  background: none;
  box-shadow: 0 28px 64px -24px rgba(0, 0, 0, .7), 0 2px 10px -4px rgba(0, 0, 0, .4);
}
.tile:focus-visible { outline-offset: 9px; }

/* --clip-* live on the pseudo-elements: --card-grow is not inherited */
.tile::before, .tile::after {
  --clip-y: calc(var(--shift-y) * (1 - var(--card-grow)));
  --clip-x: calc(var(--shift-x) * (1 - var(--card-grow)));
  content: ''; position: absolute; pointer-events: none;
  padding: 0; border-radius: 0;
  -webkit-mask: none; mask: none;
  transition: --card-grow 800ms var(--ease-card);
}
@supports (width: round(down, 1.5px, 1px)) {
  .tile::before, .tile::after, .tile-media {
    --clip-y: calc(var(--shift-y) - min(round(down, var(--shift-y), var(--device-px)), var(--shift-y) * var(--card-grow)));
    --clip-x: calc(var(--shift-x) - min(round(down, var(--shift-x), var(--device-px)), var(--shift-x) * var(--card-grow)));
  }
}
.tile::before {
  z-index: -5;
  inset: calc(0px - var(--shift-y)) calc(0px - var(--shift-x));
  background: var(--glass-rim);
  clip-path: inset(var(--clip-y) var(--clip-x) round var(--r));
}
.tile::after {
  z-index: -4;
  inset: calc(1px - var(--shift-y)) calc(1px - var(--shift-x));
  background: linear-gradient(180deg, rgba(255, 255, 255, .07), rgba(255, 255, 255, .02)), var(--bg-raise);
  clip-path: inset(var(--clip-y) var(--clip-x) round calc(var(--r) - 1px));
}

/* layers inside the tile, bottom to top: cover, scrim and pointer glow */
/* The cover is as large as the grown surface and is cropped by the same
   clip, so growing the frame reveals more of the picture; the picture itself
   neither moves nor scales. */
.tile-media {
  --clip-y: calc(var(--shift-y) * (1 - var(--card-grow)));
  --clip-x: calc(var(--shift-x) * (1 - var(--card-grow)));
  position: absolute; z-index: -3; overflow: hidden;
  inset: calc(1px - var(--shift-y)) calc(1px - var(--shift-x));
  clip-path: inset(var(--clip-y) var(--clip-x) round calc(var(--r) - 1px));
  transition: --card-grow 800ms var(--ease-card);
}
.tile-media img {
  width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; display: block;
  filter: saturate(.5) brightness(.8) contrast(1.05);
  transform: scale(1.05);
  transition: filter .6s var(--ease-out);
}
.tile-media::after {
  content: ''; position: absolute; inset: 0;
  background:
    radial-gradient(circle 280px at var(--px, 24%) var(--py, 0%), color-mix(in srgb, var(--acid) calc(var(--card-lit) * 24%), transparent), transparent 70%),
    linear-gradient(180deg, rgba(7, 9, 13, .35) 0%, rgba(7, 9, 13, 0) 30%, rgba(7, 9, 13, .1) 55%, rgba(7, 9, 13, .82) 100%);
  transition: --card-lit .45s ease-out;
}

/* Hover grows the surface; keyboard focus does the same. Hover is for real
   pointers only, so a touch screen never keeps a tile open. */
.tile:focus-visible { z-index: 1; }
.tile:focus-visible::before, .tile:focus-visible::after, .tile:focus-visible .tile-media { --card-grow: 1; }
.tile:focus-visible .tile-media::after { --card-lit: 1; }
.tile:focus-visible .tile-media img { filter: saturate(.95) brightness(.95) contrast(1.02); }
.tile:focus-visible .tile-go {
  background: linear-gradient(180deg, color-mix(in srgb, var(--acid) 86%, #fff), var(--acid));
  color: var(--acid-ink);
}
@media (hover: hover) and (pointer: fine) {
  .tile:hover { z-index: 1; }
  .tile:hover::before, .tile:hover::after, .tile:hover .tile-media { --card-grow: 1; }
  .tile:hover .tile-media::after { --card-lit: 1; }
  .tile:hover .tile-media img { filter: saturate(.95) brightness(.95) contrast(1.02); }
  .tile:hover .tile-go {
    background: linear-gradient(180deg, color-mix(in srgb, var(--acid) 86%, #fff), var(--acid));
    color: var(--acid-ink);
  }
}

.tile-top { position: relative; display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding: 4px 6px 0; }
.tile-art {
  display: grid; place-items: center; width: 44px; height: 44px; flex: none;
  border-radius: 13px; color: var(--ca);
  background: var(--glass-fill);
  box-shadow: var(--glass-shade), inset 0 1px 0 var(--glass-hi), inset 0 0 0 1px var(--glass-edge);
}
.tile-art svg { display: block; width: 28px; height: 28px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.tile-art .sec { stroke: var(--acid); stroke-width: 1.1; }
.tile-art .track { opacity: .3; }
.tile-art .bar { stroke: var(--acid); }
.tile-count { display: flex; flex-direction: column; align-items: flex-end; gap: 12px; text-align: right; }
.tile-count b {
  font: 200 clamp(44px, 5vw, 70px)/.85 var(--display); letter-spacing: -.01em;
  font-variant-numeric: tabular-nums; color: var(--fg);
  text-shadow: 0 8px 30px rgba(0, 0, 0, .5);
}
.tile--s3d .tile-count b, .tile--clocks .tile-count b, .tile--pomodoro .tile-count b { font-size: clamp(36px, 3.6vw, 50px); }
.tile--s3d, .tile--clocks, .tile--pomodoro { min-height: 340px; }
.tile-count .count-word { font: 400 11px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--fg-2); }

.tile-panel {
  position: relative;
  display: flex; flex-direction: column; gap: 10px;
  padding: 18px 20px 18px; border-radius: 14px;
  background: linear-gradient(180deg, rgba(14, 17, 24, .38), rgba(8, 10, 14, .74));
  box-shadow: inset 0 1px 0 var(--glass-hi), inset 0 0 0 1px var(--glass-edge), 0 18px 40px -22px rgba(0, 0, 0, .8);
}
.tile h3 {
  padding-right: 52px;
  font: 500 clamp(21px, 2.1vw, 28px)/1.05 var(--display);
  letter-spacing: .005em; text-transform: uppercase;
  hyphens: auto; overflow-wrap: break-word;
}
.tile--interactive h3 { font-size: clamp(24px, 3vw, 38px); }
.tile p { padding-right: 52px; max-width: 48ch; font-size: 14px; line-height: 1.5; color: var(--fg-2); }
.tile-tech { display: flex; flex-wrap: wrap; gap: 6px; padding-right: 52px; }
.tile-tech i {
  font-style: normal; padding: 4px 9px; border-radius: 999px;
  font: 400 10.5px/1.2 var(--mono); letter-spacing: .04em; color: var(--fg-2);
  box-shadow: inset 0 0 0 1px var(--glass-edge), inset 0 1px 0 rgba(255, 255, 255, .05);
  background: rgba(255, 255, 255, .03);
}
.tile-go {
  position: absolute; right: 16px; bottom: 16px;
  display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px;
  background: var(--glass-fill); color: var(--fg-2);
  box-shadow: var(--glass-shade), inset 0 1px 0 var(--glass-hi), inset 0 0 0 1px var(--glass-edge);
  transition: background .3s, color .3s;
}
/* HUD corner marks over the cover */
.tile-media::before {
  content: ''; position: absolute; inset: calc(var(--shift-y) + 8px) calc(var(--shift-x) + 8px); z-index: 1; pointer-events: none; opacity: .5;
  background:
    linear-gradient(#fff, #fff) 0 0 / 10px 1px no-repeat, linear-gradient(#fff, #fff) 0 0 / 1px 10px no-repeat,
    linear-gradient(#fff, #fff) 100% 0 / 10px 1px no-repeat, linear-gradient(#fff, #fff) 100% 0 / 1px 10px no-repeat;
}

/* ===== ticker =====
   A strip of lab terms with a reading head in the middle: the words that pass
   under it are lit in the accent and set a little taller, like a scanner
   catching them. A second copy of the track, clipped to the head, does it; both
   run on one clock. Scrolling the page speeds the strip up (main.js). */
.ticker-wrap { padding-block: clamp(36px, 6vw, 64px) 0; }
.ticker {
  --lens-w: min(300px, 42%);
  position: relative; overflow: hidden; height: 54px;
  display: flex; align-items: center;
  background: repeating-linear-gradient(90deg, var(--fg-a12) 0 1px, transparent 1px 12px) bottom / 100% 5px no-repeat;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.ticker::before, .ticker::after { content: ''; position: absolute; left: 0; right: 0; height: 1px; background: var(--hair); }
.ticker::before { top: 0; }
.ticker::after { bottom: 0; }
.ticker-base { display: flex; align-items: center; width: 100%; height: 100%; }
/* Once the reading head exists, the strip beneath it is cut away so the lit copy is the only one there. */
.ticker-wrap.has-lens .ticker-base {
  -webkit-mask-image: linear-gradient(90deg, #000 calc(50% - var(--lens-w) / 2), transparent calc(50% - var(--lens-w) / 2) calc(50% + var(--lens-w) / 2), #000 calc(50% + var(--lens-w) / 2));
          mask-image: linear-gradient(90deg, #000 calc(50% - var(--lens-w) / 2), transparent calc(50% - var(--lens-w) / 2) calc(50% + var(--lens-w) / 2), #000 calc(50% + var(--lens-w) / 2));
}
.ticker-track { display: flex; align-items: center; width: max-content; animation: ticker 80s linear infinite; }
.ticker-track > * { flex: none; }
.ticker .w { font: 600 11px/1 var(--display); letter-spacing: .24em; text-transform: uppercase; color: var(--fg-3); }
.ticker .d { width: 7px; height: 7px; margin-inline: clamp(22px, 3vw, 44px); color: var(--acid); opacity: .7; position: relative; }
.ticker .d::before, .ticker .d::after { content: ''; position: absolute; }
.ticker .d:nth-of-type(3n+1)::before { inset: 1px; background: currentColor; transform: rotate(45deg); }
.ticker .d:nth-of-type(3n+2)::before { left: 3px; top: 0; width: 1px; height: 7px; background: currentColor; }
.ticker .d:nth-of-type(3n+2)::after { left: 0; top: 3px; width: 7px; height: 1px; background: currentColor; }
.ticker .d:nth-of-type(3n)::before { inset: 0; border-radius: 50%; box-shadow: inset 0 0 0 1px currentColor; }
.ticker-wrap.is-off .ticker-track { animation-play-state: paused; }
@keyframes ticker { to { transform: translate3d(-50%, 0, 0); } }

.ticker-frame {
  position: absolute; left: 50%; top: 0; bottom: 0; width: var(--lens-w); transform: translateX(-50%);
  background: linear-gradient(180deg, color-mix(in srgb, var(--acid) 9%, transparent), transparent 80%);
  box-shadow: inset 1px 0 0 color-mix(in srgb, var(--acid) 38%, transparent), inset -1px 0 0 color-mix(in srgb, var(--acid) 38%, transparent);
  pointer-events: none;
}
.ticker-lens {
  position: absolute; inset: 0; pointer-events: none;
  clip-path: inset(0 calc(50% - var(--lens-w) / 2));
}
.ticker-lens-in { display: flex; align-items: center; height: 100%; transform: scaleY(1.22); }
.ticker-lens .w { color: var(--acid); }
.ticker-lens .d { opacity: 1; }

/* ===== featured: the log ===== */
.feature-list {
  --r: 22px; padding: 8px;
  background: linear-gradient(180deg, rgba(14, 17, 24, .8), rgba(10, 12, 18, .74)), var(--glass-fill);
  -webkit-backdrop-filter: blur(18px) saturate(1.1);
          backdrop-filter: blur(18px) saturate(1.1);
}
.feature-row {
  position: relative; isolation: isolate;
  display: grid;
  grid-template-columns: minmax(150px, 230px) minmax(0, 1fr) minmax(0, 210px) 118px 28px;
  align-items: center; column-gap: clamp(14px, 2vw, 30px);
  min-height: 80px; padding: 16px 20px; border-radius: 14px;
  background: var(--hair) top / calc(100% - 40px) 1px no-repeat;
  background-position: 50% 0;
  transition: color .25s;
}
.feature-row:first-child { background-image: none; }
.feature-row::before {
  content: ''; position: absolute; inset: 0; z-index: -1; border-radius: inherit;
  background:
    radial-gradient(60% 140% at 0% 50%, color-mix(in srgb, var(--acid) 16%, transparent), transparent 70%),
    var(--glass-fill-hover);
  opacity: 0; transition: opacity .4s var(--ease-out);
}
a.feature-row:hover::before, a.feature-row:focus-visible::before { opacity: 1; }
a.feature-row:focus-visible { outline-offset: -2px; }
.feature-row:hover + .feature-row, .feature-row:focus-visible + .feature-row { background-image: none; }

.feature-name {
  font: 500 clamp(17px, 1.6vw, 21px)/1.1 var(--display);
  letter-spacing: .01em; text-transform: uppercase;
  overflow-wrap: break-word; hyphens: auto;
}
.feature-desc { font-size: 15px; line-height: 1.45; color: var(--fg-2); }
.feature-host { font: 400 12px/1.2 var(--mono); letter-spacing: .02em; color: var(--fg-3); overflow-wrap: anywhere; }
.feature-arrow { display: grid; place-items: center; justify-self: end; color: var(--fg-3); transition: color .25s; }
a.feature-row:hover .feature-arrow, a.feature-row:focus-visible .feature-arrow { color: var(--acid); }
a.feature-row:hover .feature-name, a.feature-row:focus-visible .feature-name { color: var(--acid); }

.feature-status {
  display: inline-flex; align-items: center; gap: 8px; justify-self: start;
  padding: 6px 11px; border-radius: 999px;
  font: 400 10.5px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase;
  color: var(--fg-2);
  background: rgba(255, 255, 255, .03);
  box-shadow: inset 0 0 0 1px var(--glass-edge), inset 0 1px 0 rgba(255, 255, 255, .05);
}
.feature-status::before { content: ''; width: 7px; height: 7px; flex: none; border-radius: 50%; }
.feature-status--live::before { background: var(--acid); box-shadow: 0 0 0 3px color-mix(in srgb, var(--acid) 18%, transparent); animation: pulse 2.4s ease-in-out infinite; }
.feature-status--frozen { color: var(--fg-3); }
.feature-status--frozen::before { box-shadow: inset 0 0 0 1.5px currentColor; }
.feature-status--proto::before { box-shadow: inset 0 0 0 1.5px var(--hue2); background: color-mix(in srgb, var(--hue2) 28%, transparent); }

.feature-row--static { cursor: default; }
.feature-row--static .feature-name, .feature-row--static .feature-desc { color: var(--fg-3); }

/* ===== footer ===== */
.site-foot { position: relative; padding-bottom: clamp(20px, 3vw, 36px); }
.foot-plate { --r: 26px; padding: clamp(28px, 4vw, 48px) clamp(20px, 3.4vw, 44px) 8px; }
.foot-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 32px 24px; }
.foot-col { display: flex; flex-direction: column; }
.foot-col a { display: flex; align-items: center; min-height: 36px; font-size: 14.5px; color: var(--fg-2); transition: color .2s; }
.foot-col a:hover { color: var(--acid); }
.foot-col .foot-head {
  min-height: 44px; margin-bottom: 4px;
  font: 600 13px/1.1 var(--display); letter-spacing: .08em; text-transform: uppercase; color: var(--fg);
  background: var(--hair) bottom / 100% 1px no-repeat;
}
.foot-col .foot-more {
  position: relative; align-self: flex-start; margin-top: 4px; padding-right: 18px;
  font: 600 10.5px/1 var(--display); letter-spacing: .18em; text-transform: uppercase; color: var(--acid);
}
/* The chevron's room is reserved; on hover it is wiped in from the left while it fades up. */
.foot-col .foot-more::after {
  content: ''; position: absolute; right: 0; top: 50%; width: 11px; height: 11px; margin-top: -5.5px;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 5l7 7-7 7'/%3E%3C/svg%3E") no-repeat center / contain;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 5l7 7-7 7'/%3E%3C/svg%3E") no-repeat center / contain;
  opacity: 0; clip-path: inset(0 100% 0 0);
  transition: opacity .4s ease, clip-path .5s var(--ease-out);
}
.foot-col .foot-more:hover::after, .foot-col .foot-more:focus-visible::after { opacity: 1; clip-path: inset(0 0 0 0); }

.foot-mark {
  position: relative; container-type: inline-size;
  display: flex; justify-content: space-between; align-items: flex-end;
  margin-top: clamp(32px, 5vw, 56px);
}
.foot-letter {
  position: relative; display: block; flex: none;
  padding: 0 .02em; border: 0; border-radius: 12px; background: none; cursor: pointer;
  font: 800 calc(100cqi / 8.4)/.9 var(--display); letter-spacing: -.02em;
  color: rgba(255, 255, 255, .06);
  -webkit-text-stroke: 1.5px rgba(255, 255, 255, .26);
  transform-origin: 50% 100%;
  transition: color .35s var(--ease-out), -webkit-text-stroke-color .35s;
  -webkit-tap-highlight-color: transparent;
}
.foot-letter:hover { color: color-mix(in srgb, var(--acid) 14%, transparent); -webkit-text-stroke-color: color-mix(in srgb, var(--acid) 70%, transparent); }
.foot-letter:focus-visible { outline-offset: 2px; }
.foot-letter:active { transform: scale(.98); }
.foot-caption {
  position: absolute; left: 50%; top: -2.2em; pointer-events: none; white-space: nowrap;
  font: 400 11.5px/1 var(--mono); letter-spacing: .16em; text-transform: uppercase; color: var(--acid);
  opacity: 0; transform: translate3d(-50%, 6px, 0);
  transition: opacity .3s var(--ease-out), transform .4s var(--ease-out);
}
.foot-caption.on { opacity: 1; transform: translate3d(-50%, 0, 0); }
.foot-bar {
  display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap;
  margin-top: 8px; padding: 14px 0 18px;
  background: var(--hair) top / 100% 1px no-repeat;
  font: 400 12px/1 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--fg-3);
}
.foot-bar a { display: inline-flex; align-items: center; min-height: 44px; color: var(--acid); }
.foot-bar a:hover { text-decoration: underline; text-underline-offset: 4px; }
.foot-versions { display: inline-flex; align-items: center; gap: 0; letter-spacing: .08em; text-transform: none; }
.foot-bar .foot-versions a { min-height: 44px; padding: 0 7px; color: var(--fg-3); opacity: .75; transition: color .2s, opacity .2s; }
.foot-bar .foot-versions a:hover { color: var(--acid); opacity: 1; text-decoration: none; }
.foot-bar .foot-versions a[aria-current="page"] { color: var(--fg-2); opacity: 1; }
.foot-versions i { font-style: normal; color: var(--fg-3); opacity: .4; }

/* ----- the letters' effects (main.js, "wordmark") ----- */
.fx-layer { position: fixed; inset: 0; z-index: 120; width: 100%; height: 100%; pointer-events: none; }
.fx-xray { position: fixed; inset: 0; z-index: 121; pointer-events: none; background: #fff; mix-blend-mode: difference; opacity: 0; }
.fx-xray.run { animation: xray 1s ease-in-out; }
.fx-xray i { position: absolute; left: 0; right: 0; top: 0; height: 2px; background: #000; transform: translate3d(0, -4px, 0); }
.fx-xray.run i { animation: xray-scan .9s cubic-bezier(.45, 0, .2, 1); }
@keyframes xray { 0%, 100% { opacity: 0; } 35%, 55% { opacity: .6; } }
@keyframes xray-scan { to { transform: translate3d(0, 100vh, 0); } }
.fx-dark {
  position: fixed; left: -180px; top: -180px; z-index: 121; width: 360px; height: 360px; border-radius: 50%;
  pointer-events: none; opacity: 0; will-change: transform;
  box-shadow: 0 0 0 100vmax rgba(5, 7, 10, .9), inset 0 0 40px 6px rgba(5, 7, 10, .6);
  transition: opacity .4s var(--ease-out);
}
.fx-dark.on { opacity: 1; }
.foot-letter.is-wave { animation: wave 1.1s var(--ease-out) var(--wd, 0ms); }
@keyframes wave { 35% { transform: translate3d(0, -.16em, 0); color: color-mix(in srgb, var(--acid) 22%, transparent); } }
.foot-letter.is-eq { animation: eq var(--ed, .5s) ease-in-out 4; }
@keyframes eq { 0%, 100% { transform: scaleY(1); } 25% { transform: scaleY(.5); } 50% { transform: scaleY(1.1); } 75% { transform: scaleY(.72); } }
.foot-letter.is-glitch { animation: tear-hi 1s steps(1, end) 1; color: color-mix(in srgb, var(--hue2) 22%, transparent); }
.foot-mark.is-life .foot-letter { color: transparent; -webkit-text-stroke-color: transparent; }

/* ===== corner switch ===== */
.corner-switches { position: fixed; right: 16px; bottom: 16px; z-index: 80; display: flex; justify-content: flex-end; max-width: calc(100vw - 32px); }
.corner-btn {
  display: flex; align-items: center;
  min-width: 44px; height: 44px; padding: 0; border: 0; border-radius: 14px;
  background: color-mix(in srgb, var(--bg-raise) 92%, transparent);
  box-shadow: var(--glass-panel-shadow);
  color: var(--fg-2); cursor: pointer; overflow: hidden;
  transition: color .2s;
}
.corner-btn:hover, .corner-btn:focus-visible { color: var(--fg); }
.motion-icon { display: flex; align-items: center; justify-content: center; gap: 3px; width: 44px; height: 44px; flex: 0 0 44px; }
.motion-icon i { width: 3px; height: 13px; border-radius: 1px; background: currentColor; }
.motion-icon::before { content: ''; display: none; margin-left: 3px; border: 7px solid transparent; border-right: 0; border-left: 11px solid var(--acid); }
.motion-label {
  max-width: 0; opacity: 0; overflow: hidden; white-space: nowrap;
  font: 600 10.5px/1 var(--display); letter-spacing: .14em; text-transform: uppercase;
  transition: max-width .4s var(--ease-out), opacity .25s, padding-right .4s var(--ease-out);
}
.corner-btn:hover .motion-label, .corner-btn:focus-visible .motion-label { max-width: 260px; opacity: 1; padding-right: 16px; }
.motion-on { display: none; }
html.no-anim .motion-toggle .motion-on { display: inline; }
html.no-anim .motion-toggle .motion-off { display: none; }
html.no-anim .motion-toggle .motion-icon i { display: none; }
html.no-anim .motion-toggle .motion-icon::before { display: block; }

/* ===== animations off: the switch above, or the system setting ===== */
html.no-anim *, html.no-anim *::before, html.no-anim *::after { animation: none !important; transition: none !important; }
html.no-anim { scroll-behavior: auto; }
html.no-anim .reveal { opacity: 1; }
html.no-anim .readout { display: none; }
html.no-anim .wordmark:hover .wordmark-box, html.no-anim .wordmark:focus-visible .wordmark-box { transform: none; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
  html.js .reveal { opacity: 1; }
  .readout { display: none; }
  .wordmark:hover .wordmark-box, .wordmark:focus-visible .wordmark-box { transform: none; }
  .foot-col .foot-more::after { clip-path: none !important; transition: opacity .25s linear !important; }
}

/* ===== scrollbar =====
   The native bar is replaced by an overlay thumb: this page scrolls and the
   section pages do not, and a native bar's width made every navigation between
   them shift sideways. The document still scrolls itself; this only draws and
   drags a thumb. */
.scrollbar {
  position: fixed; top: 0; right: 2px; bottom: 0; width: 10px; z-index: 70;
  opacity: 0; pointer-events: none;
  transition: opacity .25s ease;
}
.scrollbar.is-visible, .scrollbar.is-dragging, .scrollbar:hover { opacity: 1; pointer-events: auto; }
.scrollbar-thumb {
  position: absolute; right: 0; width: 5px; min-height: 32px; border-radius: 999px;
  background: var(--fg-a25);
  transition: background .2s ease, width .15s ease;
}
.scrollbar:hover .scrollbar-thumb, .scrollbar.is-dragging .scrollbar-thumb { width: 8px; background: color-mix(in srgb, var(--acid) 80%, transparent); }
html.has-custom-scrollbar { scrollbar-width: none; }
html.has-custom-scrollbar::-webkit-scrollbar { width: 0; height: 0; }
@media (hover: none), (pointer: coarse) { .scrollbar { display: none; } }

/* ===== responsive ===== */
@media (max-width: 1100px) {
  .foot-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .feature-row { grid-template-columns: minmax(140px, 200px) minmax(0, 1fr) 118px 28px; }
  .feature-host { display: none; }
  .timeline { grid-template-columns: auto minmax(100px, 1fr) auto; row-gap: 18px; }
  .tl-extra { grid-row: 2; padding-left: 0; background: none; }
  .tl-extra:nth-of-type(4) { grid-column: 1 / 3; }
  .tl-extra:nth-of-type(5) { grid-column: 3; }
}

@media (max-width: 960px) {
  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: minmax(280px, auto); }
  .tile--interactive, .tile--apps, .tile--games, .tile--s3d, .tile--clocks, .tile--pomodoro { grid-column: auto; grid-row: auto; }
  .tile--interactive { grid-column: 1 / -1; min-height: 380px; }
  .tile--pomodoro { grid-column: 1 / -1; }
}

@media (max-width: 900px) {
  .hero-row { flex-direction: column; align-items: stretch; }
  .hero-actions { justify-content: flex-start; }
  .metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 820px) {
  :root { --head-h: 60px; }
  .site-nav { display: none; }
  .burger { display: flex; }
  .readout { display: none; }
  #heroTitle { margin-top: 20px; }
  .feature-row {
    grid-template-columns: minmax(0, 1fr) 24px;
    grid-template-areas: "name arrow" "desc desc" "host status";
    row-gap: 6px; padding: 16px 14px;
  }
  .feature-name { grid-area: name; }
  .feature-desc { grid-area: desc; }
  .feature-host { grid-area: host; display: block; align-self: center; }
  .feature-status { grid-area: status; justify-self: end; }
  .feature-arrow { grid-area: arrow; }
}

@media (max-width: 640px) {
  .hero-actions .btn { flex: 1 1 100%; }
  .bento { grid-template-columns: minmax(0, 1fr); }
  .tile--interactive { grid-column: auto; min-height: 380px; }
  .tile--pomodoro { grid-column: auto; }
  .tile-count b { font-size: 48px; }
  .foot-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 20px; }
  .foot-col .foot-head { font-size: 12px; }
  .metric { min-height: 140px; padding: 16px; }
  .metric dd:not(.metric-vis) { font-size: 10px; letter-spacing: .1em; }
  .timeline {
    padding: 16px; row-gap: 14px;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas: "from to" "mid mid" "x1 x2";
  }
  .tl-from { grid-area: from; }
  .tl-to { grid-area: to; text-align: right; }
  .tl-mid { grid-area: mid; }
  .tl-extra:nth-of-type(4) { grid-area: x1; grid-column: auto; grid-row: auto; }
  .tl-extra:nth-of-type(5) { grid-area: x2; grid-column: auto; grid-row: auto; text-align: right; }
}

@media (hover: none), (pointer: coarse) {
  .lang-option, .foot-col a { min-height: 44px; }
}
