/* NextWell Lab — landing. One skin: hard corners, ruled hairlines, one
   rotating accent. Loaded by index.html only; the section galleries have
   their own stylesheets. */

@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 only the no-script fallback. */
:root {
  --bg: #0a0b10;
  --bg-raise: #10121a;
  --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, .6);
  --line: rgba(244, 242, 255, .12);
  --line-strong: rgba(244, 242, 255, .3);
  --acid: #c8ff2e;
  --hue2: #ff9a2e;
  --acid-ink: #0b0b10;
  --display: 'Science Gothic', 'Arial Black', 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);
  --ease-quart: cubic-bezier(.25, 1, .5, 1);
  --block-pad: clamp(72px, 11vw, 136px);
  color-scheme: dark;
}

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 { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
::selection { background: var(--acid); color: var(--acid-ink); }

:focus-visible { outline: 2px solid var(--acid); outline-offset: 3px; }

.skip {
  position: absolute; left: 12px; top: -64px; z-index: 200;
  padding: 12px 18px;
  background: var(--acid); color: var(--acid-ink);
  font: 700 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); }

/* Tracked caps for every small label on the page. */
.label, .eyebrow, .hint {
  font: 700 11px/1.4 var(--display);
  letter-spacing: .18em; text-transform: uppercase;
  color: var(--fg-3);
}

/* ===== reveal ===== */
html.js .reveal { opacity: 0; }
html.js .reveal.in {
  opacity: 1;
  animation: rise .85s var(--ease-out) var(--d, 0ms) backwards;
}
@keyframes rise { from { opacity: 0; transform: translate3d(0, 26px, 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);
  border-bottom: 1px solid var(--line);
}
.site-progress {
  position: absolute; left: 0; right: 0; bottom: -1px; height: 2px;
  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: 800 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;
  background: var(--acid); color: var(--acid-ink);
  font: 900 11px/1 var(--display); letter-spacing: -.02em;
  transform: rotate(-4deg);
  transition: transform .3s var(--ease-out);
}
.wordmark-text { position: relative; }
.wordmark em { font-style: normal; color: var(--acid); }
.wordmark:hover .wordmark-box { transform: rotate(4deg) scale(1.08); }

/* Tear: four copies of the mark that fire one short burst every ~12s (and on
   hover). They only ever move 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; }
.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: 4px; }
.site-nav a {
  position: relative;
  display: inline-flex; align-items: center; gap: 8px;
  height: 44px; padding: 0 14px;
  font: 700 11px/1 var(--display); letter-spacing: .16em; text-transform: uppercase;
  color: var(--fg-3);
  transition: color .15s, background .15s;
}
.site-nav a:hover { color: var(--acid-ink); background: var(--acid); }
.site-nav a[aria-current="true"] { color: var(--fg); }
.site-nav a[aria-current="true"]::after {
  content: ''; position: absolute; left: 14px; right: 14px; bottom: 9px; height: 2px;
  background: var(--acid);
}
.site-nav a[aria-current="true"]:hover { color: var(--acid-ink); }
.site-nav a[aria-current="true"]:hover::after { background: var(--acid-ink); }
.site-nav .nav-ext { margin-left: 8px; border: 1px solid var(--line-strong); }
.site-nav .nav-ext::after {
  content: ''; 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.6' 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.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 17 17 7M8 7h9v9'/%3E%3C/svg%3E") no-repeat center / contain;
}

.lang-selector { position: relative; }
.lang-toggle {
  display: inline-flex; align-items: center; gap: 8px;
  height: 44px; padding: 0 14px;
  background: none; border: 1px solid var(--line-strong);
  color: var(--fg-2); cursor: pointer;
  font: 700 11px/1 var(--display); letter-spacing: .14em;
  transition: color .15s, background .15s, border-color .15s;
}
.lang-toggle:hover, .lang-selector.open .lang-toggle {
  color: var(--acid-ink); background: var(--acid); border-color: var(--acid);
}
.lang-dropdown {
  position: absolute; top: calc(100% + 10px); right: 0;
  width: 208px; padding: 4px;
  display: flex; flex-direction: column; gap: 1px;
  background: var(--bg-raise);
  border: 1px solid var(--line-strong);
  box-shadow: 6px 6px 0 color-mix(in srgb, var(--acid) 22%, transparent);
  z-index: 95;
  transform-origin: top right;
  opacity: 0; visibility: hidden; pointer-events: none;
  transform: translate3d(0, -8px, 0);
  transition: opacity .18s ease, transform .3s var(--ease-out), visibility .18s;
}
.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;
  background: none; border: 0; 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 .3s var(--ease-out) var(--d), background .12s, color .12s;
}
.lang-selector.open .lang-option { --d: calc(var(--i, 0) * 24ms); opacity: 1; transform: none; }
.lang-option:hover { background: var(--acid); color: var(--acid-ink); }
.lang-option.active { color: var(--fg); font-weight: 600; }
.lang-option.active:hover { color: var(--acid-ink); }
.lang-option.active::after { content: '✓'; margin-left: auto; color: var(--acid); }
.lang-option.active:hover::after { color: var(--acid-ink); }
.flag-icon { width: 18px; height: 13px; object-fit: cover; }

.burger {
  display: none;
  width: 44px; height: 44px; flex: 0 0 44px;
  padding: 0;
  background: none; border: 1px solid var(--line-strong); cursor: pointer;
  flex-direction: column; align-items: center; justify-content: center; gap: 5px;
}
.burger span { display: block; width: 16px; height: 2px; background: var(--fg); transition: transform .25s var(--ease-out), opacity .2s; }
.burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) { transform: translateY(-7px) 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: 800 22px/1.1 var(--display); letter-spacing: -.01em; text-transform: uppercase;
  border-bottom: 1px solid var(--line);
  transition: color .15s, padding-left .25s 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;
  border-top: 1px solid var(--line);
  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, 88px);
  touch-action: pan-y;
}
.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: 120px; z-index: -1;
  background: linear-gradient(to bottom, transparent, var(--bg));
  pointer-events: none;
}
.hero-inner { position: relative; }

.eyebrow { display: flex; align-items: center; gap: 14px; color: var(--fg-2); }
.eyebrow::before { content: ''; width: 40px; height: 2px; background: var(--acid); flex: none; }

.readout {
  position: absolute; top: -7px; right: var(--gutter);
  min-width: 25ch; padding: 6px 10px;
  border: 1px solid var(--line);
  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 { color: var(--fg); }
.t-a { font-size: min(210px, calc((min(100vw, var(--max-w)) - 2 * var(--gutter)) / 5.75)); }
.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; }

.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; flex-wrap: wrap; align-items: flex-end; justify-content: space-between;
  gap: 28px 48px;
}
.lede { max-width: 56ch; font-size: clamp(16px, 1.45vw, 19px); line-height: 1.6; color: var(--fg-2); text-wrap: pretty; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }

.btn {
  position: relative;
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; padding: 0 26px;
  background: var(--bg); color: var(--fg);
  border: 1px solid var(--line-strong);
  font: 800 12px/1 var(--display); letter-spacing: .16em; text-transform: uppercase;
  cursor: pointer;
  box-shadow: 0 0 0 var(--acid);
  transition: transform .25s var(--ease-out), box-shadow .25s var(--ease-out), background .15s, color .15s, border-color .15s;
}
.btn:hover { transform: translate3d(-3px, -3px, 0); box-shadow: 4px 4px 0 var(--acid); border-color: var(--acid); }
.btn:active { transform: translate3d(0, 0, 0); box-shadow: 0 0 0 var(--acid); transition-duration: .08s; }
.btn-primary { background: var(--acid); color: var(--acid-ink); border-color: var(--acid); }
.btn-primary:hover { box-shadow: 4px 4px 0 var(--fg); border-color: var(--fg); }
.btn-primary:focus-visible { outline-color: var(--fg); }

.hint { margin-top: 28px; letter-spacing: .12em; text-transform: none; font: 400 12px/1.5 var(--mono); }
.hint-coarse { display: none; }
@media (hover: none), (pointer: coarse) {
  .hint-fine { display: none; }
  .hint-coarse { display: inline; }
}

.hero-stats {
  position: relative;
  display: grid; grid-template-columns: repeat(8, minmax(0, 1fr));
  margin-top: clamp(40px, 7vh, 72px);
}
.hero-stats::before, .hero-stats::after {
  content: ''; position: absolute; left: var(--gutter); right: var(--gutter); top: 0;
  pointer-events: none;
}
.hero-stats::before { height: 1px; background: var(--line-strong); }
.hero-stats::after { height: 7px; background: repeating-linear-gradient(90deg, var(--line-strong) 0 1px, transparent 1px 12px); }
.hero-stats > div {
  padding: 22px 12px 26px 0;
  min-width: 0;
}
.hero-stats dt {
  font: 900 clamp(20px, 2.1vw, 30px)/1 var(--display);
  letter-spacing: -.01em; color: var(--acid);
  font-variant-numeric: tabular-nums;
}
.hero-stats dd { margin-top: 10px; font: 700 10px/1.35 var(--display); letter-spacing: .08em; text-transform: uppercase; color: var(--fg-3); }

/* ===== 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, 56px); max-width: 880px; }
.block-head::before {
  content: attr(data-idx) ' /';
  display: block; margin-bottom: 14px;
  font: 400 12px/1 var(--mono); letter-spacing: .14em; color: var(--acid);
}
.block-head h2 {
  font: 900 clamp(30px, 6vw, 76px)/.94 var(--display);
  letter-spacing: -.015em; text-transform: uppercase;
  text-wrap: balance; hyphens: auto; overflow-wrap: break-word;
}
.block-sub { margin-top: 18px; max-width: 58ch; color: var(--fg-2); text-wrap: pretty; }

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

.tile {
  --ca: var(--acid);
  position: relative; isolation: isolate;
  display: flex; flex-direction: column; justify-content: space-between; gap: 24px;
  padding: clamp(18px, 2.2vw, 28px);
  background: var(--bg-raise);
  border: 1px solid var(--line);
  overflow: hidden;
  transition: border-color .25s;
}
.tile:hover, .tile:focus-visible { border-color: var(--acid); }
.tile:focus-visible { outline-offset: 4px; }

/* cover layers, bottom to top: picture, scrim, pointer glow */
.tile-media { position: absolute; inset: 0; z-index: -3; overflow: hidden; }
.tile-media img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  filter: grayscale(1) contrast(1.15) brightness(.82);
  transform: translate3d(calc(var(--mx, 0) * -10px), calc(var(--my, 0) * -8px), 0) scale(1.06);
  transition: filter .5s var(--ease-quart), transform .5s var(--ease-quart);
}
.tile-media::after {
  content: ''; position: absolute; inset: 0;
  background: var(--acid); mix-blend-mode: multiply; opacity: .62;
  transition: opacity .5s var(--ease-quart);
}
.tile::after {
  content: ''; position: absolute; inset: 0; z-index: -2;
  background: linear-gradient(to top, rgba(10, 11, 16, .94) 8%, rgba(10, 11, 16, .55) 48%, rgba(10, 11, 16, .2));
  pointer-events: none;
}
.tile::before {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(circle 260px at var(--px, 50%) var(--py, 50%), color-mix(in srgb, var(--acid) 30%, transparent), transparent 72%);
  opacity: 0; pointer-events: none;
  transition: opacity .35s;
}
.tile:hover::before, .tile:focus-visible::before { opacity: 1; }
.tile:hover .tile-media img, .tile:focus-visible .tile-media img { filter: none; }
.tile:hover .tile-media::after, .tile:focus-visible .tile-media::after { opacity: 0; }

.tile-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.tile-art { display: block; width: 48px; height: 48px; color: var(--ca); flex: none; }
.tile-art svg { display: block; width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.tile-art .sec { stroke: var(--acid); stroke-width: 1.2; }
.tile-art .track { opacity: .28; }
.tile-art .bar { stroke: var(--acid); }
.tile-count { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; text-align: right; }
.tile-count b {
  font: 900 clamp(44px, 5.4vw, 76px)/.85 var(--display);
  color: transparent; -webkit-text-stroke: 1.5px var(--fg);
  font-variant-numeric: tabular-nums;
  transition: color .3s, -webkit-text-stroke-color .3s;
}
.tile:hover .tile-count b, .tile:focus-visible .tile-count b { color: var(--acid); -webkit-text-stroke-color: var(--acid); }
.tile-count .count-word { font: 400 11.5px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--fg-2); }

.tile-body { display: flex; flex-direction: column; gap: 10px; }
.tile-body p, .tile-tech { padding-right: 56px; }
.tile h3 {
  font: 900 clamp(22px, 2.05vw, 30px)/1 var(--display);
  letter-spacing: -.01em; text-transform: uppercase;
  hyphens: auto; overflow-wrap: break-word;
}
.tile--interactive h3 { font-size: clamp(24px, 3.6vw, 48px); }
.tile p { max-width: 46ch; font-size: 14.5px; line-height: 1.5; color: var(--fg-2); }
.tile-tech { font: 400 11.5px/1.3 var(--mono); letter-spacing: .06em; color: var(--fg-3); }

.tile-go {
  position: absolute; right: clamp(16px, 2vw, 24px); bottom: clamp(16px, 2vw, 24px);
  display: grid; place-items: center;
  width: 44px; height: 44px;
  border: 1px solid var(--line-strong);
  background: color-mix(in srgb, var(--bg) 60%, transparent);
  transition: background .2s, color .2s, border-color .2s, transform .35s var(--ease-out);
}
.tile:hover .tile-go, .tile:focus-visible .tile-go {
  background: var(--acid); color: var(--acid-ink); border-color: var(--acid);
  transform: translate3d(4px, -4px, 0);
}
.tile:active { transform: scale(.995); }

/* ===== tape ===== */
.tape-wrap { overflow: hidden; padding-block: clamp(36px, 6vw, 72px) 0; }
.tape {
  margin-inline: -24px;
  background: var(--acid); color: var(--acid-ink);
  transform: rotate(-1.4deg);
  overflow: hidden;
}
.tape-track { display: flex; width: max-content; animation: tape 52s linear infinite; }
.tape-track > span { flex: none; }
.tape .w { padding-block: 14px; font: 900 clamp(18px, 2.4vw, 28px)/1 var(--display); letter-spacing: .02em; text-transform: uppercase; }
.tape .d { padding-inline: clamp(18px, 2.6vw, 38px); align-self: center; font-size: clamp(14px, 1.6vw, 20px); }
.tape-wrap.is-off .tape-track { animation-play-state: paused; }
@keyframes tape { to { transform: translate3d(-50%, 0, 0); } }

/* ===== featured: the log ===== */
.feature-list { border-bottom: 1px solid var(--line); }
.feature-row {
  position: relative; isolation: isolate;
  display: grid;
  grid-template-columns: 44px minmax(150px, 230px) minmax(0, 1fr) minmax(0, 220px) 112px 28px;
  align-items: center; column-gap: clamp(12px, 2vw, 28px);
  min-height: 84px; padding: 18px 16px;
  border-top: 1px solid var(--line);
  transition: color .2s;
}
.feature-row::before {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background: var(--acid);
  transform: scaleX(0); transform-origin: 0 50%;
  transition: transform .45s var(--ease-out);
}
a.feature-row:hover, a.feature-row:focus-visible { color: var(--acid-ink); }
a.feature-row:hover::before, a.feature-row:focus-visible::before { transform: scaleX(1); }
a.feature-row:focus-visible { outline-offset: -2px; outline-color: var(--fg); }

.feature-idx { font: 400 12px/1 var(--mono); letter-spacing: .08em; color: var(--fg-3); transition: color .2s; }
.feature-name {
  font: 900 clamp(17px, 1.7vw, 22px)/1.1 var(--display);
  letter-spacing: -.005em; text-transform: uppercase;
  overflow-wrap: break-word; hyphens: auto;
}
.feature-desc { font-size: 15px; line-height: 1.45; color: var(--fg-2); transition: color .2s; }
.feature-host { font: 400 12px/1.2 var(--mono); letter-spacing: .02em; color: var(--fg-3); overflow-wrap: anywhere; transition: color .2s; }
a.feature-row:hover .feature-idx, a.feature-row:hover .feature-desc, a.feature-row:hover .feature-host,
a.feature-row:focus-visible .feature-idx, a.feature-row:focus-visible .feature-desc, a.feature-row:focus-visible .feature-host {
  color: color-mix(in srgb, var(--acid-ink) 82%, transparent);
}
.feature-arrow { display: grid; place-items: center; justify-self: end; color: var(--fg-2); transition: transform .35s var(--ease-out), color .2s; }
a.feature-row:hover .feature-arrow, a.feature-row:focus-visible .feature-arrow { color: var(--acid-ink); transform: translate3d(3px, -3px, 0); }

.feature-status {
  display: inline-flex; align-items: center; gap: 9px; justify-self: start;
  font: 400 11.5px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase;
  color: var(--fg);
  transition: color .2s;
}
.feature-status::before { content: ''; width: 9px; height: 9px; flex: none; }
.feature-status--live::before { background: var(--acid); animation: pulse 2.2s ease-in-out infinite; }
.feature-status--frozen { color: var(--fg-3); }
.feature-status--frozen::before { border: 1.5px solid currentColor; }
.feature-status--proto::before { border: 1.5px dashed var(--hue2); border-radius: 50%; }
a.feature-row:hover .feature-status, a.feature-row:focus-visible .feature-status { color: var(--acid-ink); }
a.feature-row:hover .feature-status::before, a.feature-row:focus-visible .feature-status::before { background: var(--acid-ink); border-color: var(--acid-ink); animation: none; }
a.feature-row:hover .feature-status--proto::before, a.feature-row:focus-visible .feature-status--proto::before { background: none; }
@keyframes pulse { 50% { opacity: .35; } }

.feature-row--static { cursor: default; }
.feature-row--static .feature-name, .feature-row--static .feature-desc { color: var(--fg-3); }
.feature-row--static::before {
  transform: none; z-index: -1;
  background: repeating-linear-gradient(135deg, var(--fg-a05) 0 1px, transparent 1px 9px);
}

/* ===== footer ===== */
.site-foot { position: relative; overflow: hidden; border-top: 1px solid var(--line-strong); background: var(--bg); }
.site-foot::before { content: ''; position: absolute; left: 0; right: 0; top: -1px; height: 2px; background: var(--acid); transform: scaleX(.12); transform-origin: 0 50%; }
.foot-grid {
  display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 36px 24px;
  padding-block: clamp(40px, 5vw, 64px) clamp(28px, 4vw, 44px);
}
.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 .15s, padding-left .25s var(--ease-out); }
.foot-col a:hover { color: var(--acid); padding-left: 6px; }
.foot-col .foot-head {
  min-height: 44px; margin-bottom: 4px;
  font: 900 15px/1.1 var(--display); letter-spacing: .02em; text-transform: uppercase; color: var(--fg);
  border-bottom: 1px solid var(--line);
}
.foot-col .foot-more { margin-top: 4px; font: 700 10.5px/1 var(--display); letter-spacing: .16em; text-transform: uppercase; color: var(--acid); }

.foot-mark {
  --fx: 50%; --fy: 50%;
  position: relative; container-type: inline-size;
  padding-inline: var(--gutter);
  max-width: calc(var(--max-w)); margin-inline: auto;
  user-select: none;
}
.foot-mark span {
  position: relative; display: block;
  font: 900 calc(100cqi / 7.9)/.82 var(--display);
  letter-spacing: -.02em; white-space: nowrap;
  color: transparent; -webkit-text-stroke: 1.5px var(--line-strong);
}
.foot-mark span::after {
  content: attr(data-text);
  position: absolute; inset: 0;
  color: var(--acid); -webkit-text-stroke: 0;
  -webkit-mask-image: radial-gradient(circle 220px at var(--fx) var(--fy), #000 0, transparent 100%);
          mask-image: radial-gradient(circle 220px at var(--fx) var(--fy), #000 0, transparent 100%);
  opacity: var(--fo, 0);
  transition: opacity .35s;
}
.foot-bar {
  display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap;
  padding-block: 22px 26px;
  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; }

/* ===== 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;
  background: rgba(10, 11, 16, .92);
  border: 1px solid var(--line-strong);
  color: var(--fg-2); cursor: pointer; overflow: hidden;
  transition: color .15s, border-color .15s;
}
.corner-btn:hover, .corner-btn:focus-visible { color: var(--fg); border-color: var(--acid); }
.motion-icon { display: flex; align-items: center; justify-content: center; gap: 3px; width: 42px; height: 42px; flex: 0 0 42px; }
.motion-icon i { width: 3px; height: 13px; 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: 700 10.5px/1 var(--display); letter-spacing: .14em; text-transform: uppercase;
  transition: max-width .35s var(--ease-out), opacity .25s, padding-right .35s 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 .hint, html.no-anim .readout { display: none; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
  html.js .reveal { opacity: 1; }
  .hint, .readout { display: none; }
}

/* ===== 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: 6px; min-height: 32px;
  background: var(--fg-a25);
  transition: background .2s ease, width .15s ease;
}
.scrollbar:hover .scrollbar-thumb, .scrollbar.is-dragging .scrollbar-thumb { width: 10px; background: var(--acid); }
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) {
  .hero-stats { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .hero-stats > div { padding-top: 20px; padding-bottom: 8px; }
  .hero-stats::after { display: none; }
  .foot-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .feature-row { grid-template-columns: 36px minmax(140px, 200px) minmax(0, 1fr) 112px 28px; }
  .feature-host { display: none; }
}

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

@media (max-width: 820px) {
  :root { --head-h: 60px; }
  .site-nav { display: none; }
  .burger { display: flex; }
  .readout { display: none; }
  #heroTitle { margin-top: 22px; }
  .hero-actions { width: 100%; }
  .hero-actions .btn { flex: 1 1 200px; }
  .feature-row {
    grid-template-columns: 30px minmax(0, 1fr) 24px;
    grid-template-areas: "idx name arrow" ". desc desc" ". host status";
    row-gap: 6px; padding-block: 16px;
  }
  .feature-idx { grid-area: idx; align-self: start; padding-top: 4px; }
  .feature-name { grid-area: name; }
  .feature-desc { grid-area: desc; }
  .feature-host { grid-area: host; display: block; }
  .feature-status { grid-area: status; justify-self: end; }
  .feature-arrow { grid-area: arrow; }
  .feature-row--static { grid-template-columns: 30px minmax(0, 1fr) auto; grid-template-areas: "idx name status" ". desc desc"; }
  .feature-row--static .feature-status { justify-self: end; }
}

@media (max-width: 640px) {
  .hero-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bento { grid-template-columns: minmax(0, 1fr); }
  .tile--interactive, .tile--apps { grid-column: auto; }
  .tile--interactive { min-height: 340px; }
  .foot-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 20px; }
  .foot-col .foot-head { font-size: 13px; }
  .hint { margin-top: 22px; }
}

@media (hover: none), (pointer: coarse) {
  .lang-option, .foot-col a { min-height: 44px; }
  .tile-media img { filter: grayscale(.4) brightness(.9); }
  .tile-media::after { opacity: .35; }
}
