/* ==========================================================================
   maharshis.tech / shared system (every page)
   One accent (signal orange), one sans (Archivo, variable wght + wdth), one mono.
   Shape rule: interactive controls are full pills, every surface is square.
   z-index scale: grain 90, nav 50, nav sheet 45, intro 100, dialogs use top layer.
   ========================================================================== */

@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  font-stretch: 62% 125%;
  src: url(../fonts/archivo-latin-standard-normal.woff2) format('woff2-variations'), url(../fonts/archivo-latin-standard-normal.woff2) format('woff2');
}
@font-face {
  font-family: 'Archivo';
  font-style: italic;
  font-display: swap;
  font-weight: 100 900;
  font-stretch: 62% 125%;
  src: url(../fonts/archivo-latin-standard-italic.woff2) format('woff2-variations'), url(../fonts/archivo-latin-standard-italic.woff2) format('woff2');
}
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-display: swap;
  font-weight: 100 800;
  src: url(../fonts/jetbrains-mono-latin-wght-normal.woff2) format('woff2-variations'), url(../fonts/jetbrains-mono-latin-wght-normal.woff2) format('woff2');
}

:root {
  --bg: #0D0E0C;
  --bg-2: #161714;
  --bg-3: #1E1F1B;
  --ink: #E9E8E2;
  --ink-2: #A09F97;
  --line: rgba(233, 232, 226, 0.13);
  --accent: #FF5B1F;
  --accent-ink: #FF7A45;       /* accent used as text on --bg */
  --on-accent: #0D0E0C;
  --screen: #0B0C10;           /* product "screens" stay dark in both themes */
  --screen-ink: #E9E8E2;

  --sans: 'Archivo', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, 'SFMono-Regular', Menlo, monospace;

  --gx: clamp(16px, 3.2vw, 44px);
  --nav-h: 72px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-io: cubic-bezier(0.65, 0, 0.35, 1);
  color-scheme: dark;
}

@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    --bg: #ECECE8;
    --bg-2: #E2E2DC;
    --bg-3: #D8D8D1;
    --ink: #121310;
    --ink-2: #57574F;
    --line: rgba(18, 19, 16, 0.14);
    --accent: #F2541B;
    --accent-ink: #AD3508;
    color-scheme: light;
  }
}
:root[data-theme="light"] {
  --bg: #ECECE8;
  --bg-2: #E2E2DC;
  --bg-3: #D8D8D1;
  --ink: #121310;
  --ink-2: #57574F;
  --line: rgba(18, 19, 16, 0.14);
  --accent: #F2541B;
  --accent-ink: #AD3508;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; overflow-x: clip; }
@supports not (overflow: clip) { html, body { overflow-x: hidden; } }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
  transition: background-color .5s var(--ease), color .5s var(--ease);
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
ul, ol { list-style: none; }
/* <i> is only ever a drawn shape here (dots, bars, icons); keeping it upright
   stops browsers fetching the 99K italic face for empty pseudo-elements. */
i { font-style: normal; }
::selection { background: var(--accent); color: var(--on-accent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 2px; }

.skip {
  position: fixed; left: 12px; top: 12px; z-index: 200;
  padding: 10px 16px; background: var(--accent); color: var(--on-accent);
  border-radius: 999px; font-weight: 600; transform: translateY(-160%);
  transition: transform .3s var(--ease);
}
.skip:focus { transform: none; }

/* ---------- grain: fixed, never on a scrolling layer ---------- */
.grain {
  position: fixed; inset: 0; z-index: 90; pointer-events: none; opacity: .07;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .5 0 0 0 0 .5 0 0 0 0 .5 0 0 0 1 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- nav: a capsule of liquid glass ----------
   It floats over everything, so it reads the page through itself instead of
   blending with it. Every browser gets frosted glass with a specular rim; in
   Chromium site.js adds .glass-lens and a real lens: the backdrop bends and
   splits at the rounded edges (an SVG displacement map sized to the capsule)
   and saturates harder there, like Apple's glass. */
:root {
  --glass-tint: rgba(18, 19, 16, .34);
  --glass-tint-on: rgba(18, 19, 16, .5);
  --glass-hi: rgba(255, 255, 255, .34);
  --glass-rim: rgba(255, 255, 255, .12);
  --glass-shadow: 0 12px 34px -14px rgba(0, 0, 0, .6);
}
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    --glass-tint: rgba(246, 246, 242, .42);
    --glass-tint-on: rgba(246, 246, 242, .62);
    --glass-hi: rgba(255, 255, 255, .9);
    --glass-rim: rgba(18, 19, 16, .1);
    --glass-shadow: 0 12px 30px -14px rgba(30, 28, 20, .35);
  }
}
:root[data-theme="light"] {
  --glass-tint: rgba(246, 246, 242, .42);
  --glass-tint-on: rgba(246, 246, 242, .62);
  --glass-hi: rgba(255, 255, 255, .9);
  --glass-rim: rgba(18, 19, 16, .1);
  --glass-shadow: 0 12px 30px -14px rgba(30, 28, 20, .35);
}
.nav {
  position: fixed; top: 10px; left: var(--gx); right: var(--gx); z-index: 50;
  height: calc(var(--nav-h) - 20px);
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 0 8px 0 20px; border-radius: 999px; isolation: isolate;
  color: var(--ink);
  background: var(--glass-tint);
  -webkit-backdrop-filter: blur(14px) saturate(1.9) brightness(1.06);
  backdrop-filter: blur(14px) saturate(1.9) brightness(1.06);
  box-shadow: inset 0 1px 0 var(--glass-hi), inset 0 0 0 1px var(--glass-rim), var(--glass-shadow);
  transition: background-color .6s var(--ease), color .5s var(--ease), transform .8s var(--ease);
}
/* the light on the glass: a bright bevel along the top-left, a softer
   catch-light on the bottom-right, both following the rounded edge */
.nav::before, .nav::after { content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; z-index: -1; }
.nav::before {
  padding: 1px;
  background: linear-gradient(115deg, rgba(255,255,255,.75), rgba(255,255,255,.08) 28%, rgba(255,255,255,0) 50%, rgba(255,255,255,.08) 72%, rgba(255,255,255,.45));
  -webkit-mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  opacity: .55;
}
.nav::after {
  background:
    radial-gradient(60% 120% at 12% -30%, rgba(255,255,255,.16), transparent 60%),
    radial-gradient(40% 90% at 92% 130%, rgba(255,255,255,.07), transparent 60%);
}
/* once you scroll, the glass thickens a little so the links stay crisp over anything */
.nav.is-scrolled { background: var(--glass-tint-on); }
.glass-lens .nav {
  -webkit-backdrop-filter: blur(5px) url(#mpGlass) brightness(1.05);
  backdrop-filter: blur(5px) url(#mpGlass) brightness(1.05);
}
@media (prefers-reduced-transparency: reduce) {
  .nav, .glass-lens .nav { background: var(--bg-2); -webkit-backdrop-filter: none; backdrop-filter: none; }
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .nav { background: var(--glass-tint-on); }
}
.nav-mark { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 15px; letter-spacing: -0.01em; }
.nav-mark svg { width: 24px; height: 24px; transition: transform .6s var(--ease); }
.nav-mark:hover svg { transform: rotate(-8deg) scale(1.08); }
.nav-links { display: flex; gap: 4px; font-size: 15px; font-weight: 500; }
.nav-links a { padding: 8px 14px; border-radius: 999px; transition: background-color .35s var(--ease); }
.nav-links a:hover { background: color-mix(in srgb, currentColor 10%, transparent); }
.nav-links a[aria-current="page"] { background: color-mix(in srgb, currentColor 13%, transparent); }
.foot-links a { position: relative; }
.foot-links a::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -3px; height: 1px; background: currentColor;
  transform: scaleX(0); transform-origin: right; transition: transform .45s var(--ease);
}
.foot-links a:hover::after { transform: scaleX(1); transform-origin: left; }
.nav-right { display: flex; align-items: center; gap: 8px; }
.nav-status { display: inline-flex; align-items: center; gap: 8px; margin-right: 6px; font-family: var(--mono); font-size: 12px; }
.nav-status i { width: 7px; height: 7px; border-radius: 50%; background: #3ED97E; box-shadow: 0 0 10px #3ED97E; animation: pulse 2.4s var(--ease-io) infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .25; } }
/* controls inside the capsule are droplets: a lighter pocket of the same glass */
.nav-cmd, .sound-btn, .theme-btn {
  background: color-mix(in srgb, currentColor 8%, transparent);
  box-shadow: inset 0 1px 0 color-mix(in srgb, var(--glass-hi) 70%, transparent), inset 0 0 0 1px color-mix(in srgb, currentColor 14%, transparent);
  transition: transform .4s var(--ease), background-color .3s var(--ease);
}
.nav-cmd:hover, .sound-btn:hover, .theme-btn:hover { background: color-mix(in srgb, currentColor 15%, transparent); }
.theme-btn { width: 36px; height: 36px; border-radius: 999px; display: grid; place-items: center; }
.theme-btn:hover { transform: rotate(180deg); }
.theme-btn-dot { width: 14px; height: 14px; border-radius: 50%; background: linear-gradient(90deg, currentColor 50%, transparent 50%); border: 1px solid currentColor; }
.nav-burger { display: none; width: 40px; height: 40px; position: relative; border-radius: 999px; }
.nav-burger span { position: absolute; left: 11px; right: 11px; height: 1.5px; background: currentColor; transition: transform .45s var(--ease); }
.nav-burger span:first-child { top: 16px; }
.nav-burger span:last-child { top: 23px; }
.nav-burger[aria-expanded="true"] span:first-child { transform: translateY(3.5px) rotate(45deg); }
.nav-burger[aria-expanded="true"] span:last-child { transform: translateY(-3.5px) rotate(-45deg); }

/* the phone menu: the same glass, thick enough to read through, links
   arriving one after another */
.nav-sheet {
  position: fixed; inset: 0; z-index: 45; padding: calc(var(--nav-h) + 24px) var(--gx) 32px;
  display: flex; flex-direction: column; justify-content: space-between;
  background: color-mix(in srgb, var(--bg) 58%, transparent);
  -webkit-backdrop-filter: blur(30px) saturate(1.8);
  backdrop-filter: blur(30px) saturate(1.8);
  animation: sheetIn .5s var(--ease) both;
}
.nav-sheet[hidden] { display: none; }
.nav-sheet nav { display: flex; flex-direction: column; }
.nav-sheet nav a {
  font-size: clamp(2.6rem, 13vw, 4.5rem); font-weight: 800; font-stretch: 112%; letter-spacing: -0.03em; line-height: 1.1; border-bottom: 1px solid var(--line); padding: 8px 0;
  animation: sheetLink .7s var(--ease) both;
}
.nav-sheet nav a:nth-child(2) { animation-delay: .04s; }
.nav-sheet nav a:nth-child(3) { animation-delay: .08s; }
.nav-sheet nav a:nth-child(4) { animation-delay: .12s; }
.nav-sheet nav a:nth-child(5) { animation-delay: .16s; }
@keyframes sheetIn { from { opacity: 0; -webkit-backdrop-filter: blur(0) saturate(1); backdrop-filter: blur(0) saturate(1); } }
@keyframes sheetLink { from { opacity: 0; transform: translateY(24px); } }
@media (prefers-reduced-transparency: reduce) { .nav-sheet { background: var(--bg); -webkit-backdrop-filter: none; backdrop-filter: none; } }
.nav-sheet-foot { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; font-family: var(--mono); font-size: 13px; color: var(--ink-2); }
.nav-sheet-foot .btn { font-family: var(--sans); color: var(--ink); }

.nav-cmd { display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 6px 0 14px; border-radius: 999px; font-size: 13px; font-weight: 600; }
.nav-cmd kbd { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 999px; background: var(--ink); color: var(--bg); font-family: var(--mono); font-size: 11px; }
.sound-btn { width: 36px; height: 36px; border-radius: 999px; display: flex; align-items: center; justify-content: center; gap: 2px; }
.sound-btn i { width: 2px; height: 3px; background: currentColor; border-radius: 1px; transition: height .3s var(--ease); }
.sound-btn[aria-pressed="true"] i { animation: eq 1s var(--ease-io) infinite; }
.sound-btn[aria-pressed="true"] i:nth-child(2) { animation-delay: -.3s; }
.sound-btn[aria-pressed="true"] i:nth-child(3) { animation-delay: -.6s; }
.sound-btn[aria-pressed="true"] i:nth-child(4) { animation-delay: -.15s; }
@keyframes eq { 0%, 100% { height: 3px; } 50% { height: 12px; } }
@media (max-width: 860px) { .nav-cmd { display: none; } .nav { padding-left: 16px; } }

/* ---------- terminal ---------- */
.cmd {
  margin: auto; width: min(760px, calc(100vw - 24px)); height: min(560px, calc(100svh - 24px));
  background: #0B0C10; color: #C7CAD3; border: 1px solid rgba(255,255,255,.1); padding: 0;
  font-family: var(--mono); font-size: 13px; overflow: hidden; display: none; flex-direction: column;
}
.cmd[open] { display: flex; animation: termIn .5s var(--ease); }
.cmd::backdrop { background: rgba(8, 8, 7, .55); backdrop-filter: blur(8px); }
.cmd-out { flex: 1; overflow-y: auto; padding: 16px 18px 6px; line-height: 1.65; overscroll-behavior: contain; }
.cmd-out p { white-space: pre-wrap; word-break: break-word; }
.cmd-out .in { color: #F2F2EE; }
.cmd-out .in::before { content: '$ '; color: #FF7A45; }
.cmd-out .dim { color: #8A8E9B; }
.cmd-out .ok { color: #3ED97E; }
.cmd-out .warn { color: #FF7A45; }
.cmd-out a { color: #7FB2FF; text-decoration: underline; text-underline-offset: 3px; }
.cmd-out .big { font-family: var(--sans); font-weight: 800; font-stretch: 125%; font-size: clamp(28px, 6vw, 44px); line-height: 1; color: #FF5B1F; letter-spacing: -0.03em; margin: 6px 0; }
.cmd-line { display: flex; align-items: center; gap: 0; padding: 12px 18px; border-top: 1px solid rgba(255,255,255,.08); }
.cmd-line label { flex: none; white-space: nowrap; }
.cmd-ps { color: #3ED97E; }
.cmd-ps2 { color: #8A8E9B; margin-right: 8px; }
.cmd-line input { flex: 1; min-width: 0; background: none; border: 0; outline: 0; color: #F2F2EE; font: inherit; font-size: 16px; caret-color: #FF5B1F; }
.cmd-chips { display: flex; gap: 6px; padding: 0 18px 14px; overflow-x: auto; scrollbar-width: none; }
.cmd-chips button { flex: none; font-family: var(--mono); font-size: 12px; color: #C7CAD3; padding: 6px 12px; border-radius: 999px; box-shadow: inset 0 0 0 1px rgba(255,255,255,.14); }
.cmd-chips button:hover { background: rgba(255,255,255,.08); }
@media (max-width: 520px) { .cmd-ps { display: none; } }


@media (max-width: 860px) {
  .nav-links, .nav-status { display: none; }
  .nav-burger { display: block; }
}

/* ---------- buttons ---------- */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center;
  height: 50px; padding: 0 24px; border-radius: 999px; overflow: hidden; isolation: isolate;
  font-size: 15px; font-weight: 600; letter-spacing: -0.005em; white-space: nowrap;
  transition: color .45s var(--ease), transform .2s var(--ease);
}
.btn::before {
  content: ''; position: absolute; inset: 0; z-index: -1; border-radius: inherit;
  transform: translateY(101%); transition: transform .55s var(--ease);
}
.btn:hover::before { transform: translateY(0); }
.btn:active { transform: scale(.97); }
.btn span { display: inline-block; }
.btn-solid { background: var(--accent); color: var(--on-accent); }
.btn-solid::before { background: var(--ink); }
.btn-solid:hover { color: var(--bg); }
.btn-line { box-shadow: inset 0 0 0 1px var(--line); color: var(--ink); }
.btn-line::before { background: var(--ink); }
.btn-line:hover { color: var(--bg); }

.link-arrow { display: inline-flex; gap: 8px; align-items: center; font-weight: 600; border-bottom: 1px solid var(--line); padding-bottom: 4px; transition: border-color .4s var(--ease), color .4s var(--ease); }
.link-arrow:hover { border-color: var(--accent); color: var(--accent-ink); }
.link-arrow span { transition: transform .4s var(--ease); }
.link-arrow:hover span { transform: translate(3px, -3px); }

/* ---------- section scaffolding ---------- */
section { position: relative; padding-left: var(--gx); padding-right: var(--gx); }
.section-h {
  font-weight: 800; font-stretch: 118%; letter-spacing: -0.045em; line-height: .9;
  font-size: clamp(2.3rem, 10.2vw, 11rem);
}
.section-h-count { display: inline-block; vertical-align: top; font-family: var(--mono); font-size: 13px; font-weight: 500; letter-spacing: 0; color: var(--accent-ink); margin: .5em .6em 0 0; }

/* ---------- footer ---------- */
.foot {
  position: relative; padding: clamp(80px, 14vh, 160px) var(--gx) 28px; background: var(--ink); color: var(--bg);
  overflow: hidden;
}
.foot-pre { font-family: var(--mono); font-size: 13px; opacity: .7; }
.foot-big {
  display: block; margin-top: 18px; font-weight: 800; letter-spacing: -0.05em; line-height: .84;
  font-size: var(--foot-size, 12.4vw); font-stretch: var(--fs, 125%); white-space: nowrap;
}
.foot-line { display: block; transition: color .4s var(--ease); }
.foot-big:hover .foot-line:last-child { color: var(--accent); }
.foot-mail { margin-top: clamp(32px, 5vh, 56px); display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; font-size: clamp(18px, 2vw, 26px); font-weight: 600; letter-spacing: -0.02em; }
.foot-mail a { border-bottom: 1px solid currentColor; }
.copy-btn { font-family: var(--mono); font-size: 12.5px; padding: 8px 16px; border-radius: 999px; box-shadow: inset 0 0 0 1px currentColor; transition: background-color .3s var(--ease), color .3s var(--ease); }
.copy-btn:hover, .copy-btn.is-done { background: var(--bg); color: var(--ink); }
.foot-grid { margin-top: clamp(56px, 10vh, 120px); display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; border-top: 1px solid color-mix(in srgb, var(--bg) 20%, transparent); padding-top: 22px; }
.foot-links { display: flex; gap: 24px; flex-wrap: wrap; font-weight: 600; }
.foot-meta { display: flex; gap: 8px 24px; flex-wrap: wrap; font-family: var(--mono); font-size: 12px; opacity: .75; }
.foot :focus-visible { outline-color: var(--accent); }

/* ---------- dialogs ---------- */
.term {
  margin: auto; width: min(640px, calc(100vw - 32px)); max-height: calc(100svh - 48px);
  background: #0B0C10; color: #C7CAD3; border: 1px solid rgba(255,255,255,.1); padding: 0;
  font-family: var(--mono); font-size: 12.5px; overflow: hidden; display: none; flex-direction: column;
}
.term[open] { display: flex; animation: termIn .5s var(--ease); }
.term::backdrop { background: rgba(8, 8, 7, .6); backdrop-filter: blur(6px); }
@keyframes termIn { from { opacity: 0; transform: translateY(16px) scale(.98); } }
.term-bar { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-bottom: 1px solid rgba(255,255,255,.08); background: #111319; }
.term-url { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #8A8E9B; }
.term-url b { color: #FF7A45; font-weight: 500; }
.term-x { width: 30px; height: 30px; border-radius: 999px; font-size: 18px; color: #C7CAD3; box-shadow: inset 0 0 0 1px rgba(255,255,255,.14); }
.term-x:hover { background: rgba(255,255,255,.08); }
.term-body { padding: 18px 16px; overflow: auto; }
.term-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 14px; }
.term-stats div { padding: 12px; border: 1px solid rgba(255,255,255,.08); }
.term-stats span { display: block; font-size: 11px; color: #8A8E9B; text-transform: uppercase; letter-spacing: .06em; }
.term-stats b { display: block; margin-top: 6px; font-size: 16px; font-weight: 500; color: #F2F2EE; word-break: break-word; }
.term-json { white-space: pre; overflow-x: auto; line-height: 1.65; padding: 14px; border: 1px solid rgba(255,255,255,.08); background: rgba(255,255,255,.02); }
.term-json .jk { color: #7FB2FF; } .term-json .js { color: #3ED97E; } .term-json .jn { color: #FF7A45; }
.term-json .jb { color: #FF9BD2; } .term-json .jz { color: #8A8E9B; }
.term-log { margin-top: 12px; display: flex; flex-direction: column; gap: 4px; color: #8A8E9B; }
.term-log b { color: #3ED97E; font-weight: 500; }
.term-foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; padding: 12px 16px; border-top: 1px solid rgba(255,255,255,.08); background: #111319; color: #8A8E9B; font-size: 11.5px; }
.term-actions { display: flex; gap: 14px; align-items: center; }
.term-actions a { color: #7FB2FF; }
.term-run { padding: 8px 16px; border-radius: 999px; background: #FF5B1F; color: #0D0E0C; font-family: var(--mono); font-size: 12px; font-weight: 600; }
.term-run:disabled { opacity: .5; cursor: not-allowed; }

/* ---------- page transitions (cross-document View Transitions) ----------
   The nav holds still while the next page wipes up over the last one.
   Browsers without support just navigate normally. */
@media (prefers-reduced-motion: no-preference) {
  @view-transition { navigation: auto; }
}
.nav { view-transition-name: site-nav; }
::view-transition-group(root) { animation-duration: .9s; }
::view-transition-old(root) { animation: vt-out .9s var(--ease-io) both; }
::view-transition-new(root) { animation: vt-in .9s var(--ease-io) both; }
@keyframes vt-out { to { transform: translateY(-8%); opacity: .35; } }
@keyframes vt-in { from { clip-path: inset(100% 0 0 0); } to { clip-path: inset(0 0 0 0); } }

/* ---------- shared reveal + reduced motion ---------- */
.js [data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.js [data-reveal].is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
}

a.nav-cmd { text-decoration: none; }

/* ---------- live type (assets/site/livetype.js) ----------
   The DOM characters stay for layout, selection and screen readers; the
   canvas paints the letters, filled with live data. */
.lt-on { position: relative; }
.lt-canvas, .name-canvas { position: absolute; left: 0; top: 0; pointer-events: none; }
.lt-on .lt-ch { color: transparent; -webkit-text-fill-color: transparent; }
.lt-on span { animation: none !important; }
.lt-w { white-space: nowrap; }
.lt-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
[data-live] { -webkit-tap-highlight-color: transparent; }
