/* dr.v0id hub — golden hour through a window in a dark room */

@font-face {
  font-family: "Space Grotesk";
  src: url("/assets/fonts/space-grotesk-latin-wght.woff2") format("woff2");
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "JetBrains Mono";
  src: url("/assets/fonts/jetbrains-mono-latin-500.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg-0: #09080F;
  --bg-1: #0E0C16;
  --surface: rgba(255, 255, 255, .04);
  --surface-2: rgba(255, 255, 255, .07);
  --border: rgba(255, 255, 255, .09);
  --text: #EEE9F6;
  --muted: #A19BB0;
  --amber: #F2A93B;
  --amber-glow: #FFC66B;
  --amber-ink: #1A1204;
  --crimson: #C8323C;
  --violet: #7B5CFF;
  --silver: #C9CEDA;
  --zyn-ink: #08090B;
  --zyn-paper: #F3F4F6;
  --radius: 20px;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --sun: .8;

  --font: "Space Grotesk", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Consolas, monospace;

  --step-body: clamp(1rem, .95rem + .3vw, 1.125rem);
  --step-small: .8125rem;
  --step-lead: clamp(1.125rem, 1rem + .6vw, 1.25rem);
  --step-h3: 1.875rem;
  --step-h2: clamp(2.25rem, 1.5rem + 2.6vw, 3.5rem);
  --step-hero: clamp(2.6rem, 9vw, 5.5rem);

  --gutter: max(20px, env(safe-area-inset-left), env(safe-area-inset-right));
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100svh;
  background: var(--bg-0);
  color: var(--text);
  font-family: var(--font);
  font-size: var(--step-body);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  overflow-x: hidden;
  overflow-x: clip;
}
img, svg, canvas { display: block; max-width: 100%; }
p, h1, h2, h3, ul { margin: 0; }
ul { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
a, button { touch-action: manipulation; }
::selection { background: var(--amber); color: var(--amber-ink); }

:focus { outline: none; }
:focus-visible { outline: 2px solid var(--amber); outline-offset: 3px; border-radius: 6px; }
.btn:focus-visible, .icon-btn:focus-visible, .avatar:focus-visible { border-radius: 999px; }

.skip {
  position: fixed; left: 16px; top: 12px; z-index: 50;
  padding: 10px 16px; border-radius: 999px;
  background: var(--amber); color: var(--amber-ink); font-weight: 600;
  transform: translateY(-160%);
  transition: transform .2s var(--ease);
}
.skip:focus-visible { transform: none; }

/* ---------- ambient: window light, dust, grain ---------- */
.ambient { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.ambient::before {
  /* the warm room glow the window throws */
  content: ""; position: absolute; inset: -20% -20% auto auto; width: 90vmax; height: 90vmax;
  background: radial-gradient(closest-side, rgba(242, 169, 59, .10), rgba(200, 50, 60, .04) 55%, transparent 75%);
  opacity: calc(.45 + var(--sun) * .55);
}
.light {
  position: absolute; top: -18vh; left: max(-8vw, calc(50vw - 760px));
  width: min(88vw, 980px); height: 120vh;
  display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 1.1fr 1fr;
  gap: clamp(14px, 1.8vw, 30px);
  transform: rotate(-10deg) skewX(-26deg);
  transform-origin: 70% 20%;
  opacity: calc(.35 + var(--sun) * .65);
  transition: opacity 3s linear;
}
.pane {
  display: block;
  background: linear-gradient(180deg, rgba(255, 198, 107, .11), rgba(242, 169, 59, .055) 50%, rgba(242, 169, 59, 0) 96%);
  border-radius: 2px;
  will-change: transform;
  animation: drift 26s var(--ease) infinite alternate;
}
.p2, .p4 { animation-duration: 31s; animation-delay: -6s; }
.p3, .p4 { background: linear-gradient(180deg, rgba(242, 169, 59, .06), rgba(242, 169, 59, 0) 85%); }
@keyframes drift {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(-2.5vw, 1.5vh, 0); }
}
.light-shift { position: absolute; inset: 0; will-change: transform; }
.dust { position: absolute; inset: 0; width: 100%; height: 100%; }
.grain {
  position: absolute; inset: -50%;
  background: url("/assets/noise.png") repeat;
  background-size: 64px 64px;
  opacity: .05;
}

.progress { position: fixed; inset: 0 0 auto 0; height: 2px; z-index: 40; pointer-events: none; }
.progress span {
  display: block; height: 100%; background: var(--amber);
  transform: scaleX(0); transform-origin: 0 50%;
}

/* ---------- layout ---------- */
.layout {
  position: relative; z-index: 1;
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 var(--gutter) max(28px, env(safe-area-inset-bottom));
  display: flex; flex-direction: column;
}

/* ---------- hero ---------- */
.hero { padding-top: max(28px, env(safe-area-inset-top)); }
.hero-inner {
  display: flex; flex-direction: column; align-items: center; text-align: center;
}
.hero-top { position: relative; width: 100%; display: flex; justify-content: center; }
.share { position: absolute; right: 0; top: 0; }

.avatar {
  position: relative; display: grid; place-items: center;
  width: 132px; height: 132px; border-radius: 50%;
  margin-bottom: 18px;
}
.avatar img {
  position: relative; z-index: 2;
  width: 126px; height: 126px; border-radius: 50%;
  object-fit: cover; object-position: 50% 30%;
  background: var(--bg-1);
  border: 3px solid var(--bg-0);
}
.avatar-ring {
  position: absolute; inset: 0; border-radius: 50%; z-index: 1;
  background: conic-gradient(from 0deg, var(--amber), var(--crimson) 30%, transparent 55%, transparent 70%, var(--amber-glow) 92%, var(--amber));
  animation: spin 9s linear infinite;
}
.avatar-glow {
  position: absolute; inset: -38%; border-radius: 50%; z-index: 0;
  background: radial-gradient(closest-side, rgba(242, 169, 59, .32), rgba(200, 50, 60, .10) 55%, transparent 78%);
  animation: breathe 5.5s ease-in-out infinite;
}
@keyframes spin { to { transform: rotate(1turn); } }
@keyframes breathe {
  0%, 100% { opacity: .65; transform: scale(.94); }
  50% { opacity: 1; transform: scale(1.04); }
}

.handle {
  font-size: var(--step-hero);
  font-weight: 700;
  letter-spacing: -.045em;
  line-height: .95;
  white-space: nowrap;
}
.handle .zero { color: var(--amber); }
.handle .ch { display: inline-block; text-align: center; }

.tagline { margin-top: 12px; font-size: var(--step-lead); color: var(--muted); font-weight: 500; letter-spacing: -.01em; }
.role { transition: color .5s var(--ease); }
.role.on { color: var(--text); }

.where { margin-top: 14px; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  min-height: 30px; padding: 4px 11px;
  font-family: var(--mono); font-size: var(--step-small); font-weight: 500;
  letter-spacing: -.01em; line-height: 1.2;
  color: var(--text);
  background: var(--surface-2);
  border-radius: 999px;
}
.chip svg { color: var(--amber); flex: none; }
.chip-time { font-variant-numeric: tabular-nums; }
.chip-time .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--amber); animation: blink 2.4s ease-in-out infinite; }
.chip-time .tz { color: var(--muted); }
.chip-time .phase:not(:empty)::before { content: "·"; margin: 0 6px; color: var(--muted); }
@keyframes blink { 50% { opacity: .35; } }

.intro { margin-top: 18px; max-width: 34ch; color: var(--text); order: 6; }

.ctas { width: 100%; max-width: 440px; margin-top: 22px; display: grid; gap: 10px; }
.cta-row { position: relative; display: flex; transition: transform .25s var(--ease); }
.cta-row .btn-primary { padding-right: 76px; }
.cta-row .copy {
  position: absolute; right: 7px; top: 7px;
  width: 48px; height: 48px;
  color: var(--amber-ink); background: rgba(26, 18, 4, .1);
}
.btn {
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  min-height: 48px; border-radius: 999px;
  font-weight: 600; letter-spacing: -.01em;
  transition: transform .25s var(--ease), background-color .25s var(--ease), color .25s var(--ease), box-shadow .25s var(--ease);
}
.ctas .btn { min-height: 62px; padding: 8px 22px; justify-content: flex-start; flex: 1; text-align: left; }
.btn-text { display: grid; line-height: 1.2; }
.btn-label { font-size: var(--step-body); }
.btn-sub { font-family: var(--mono); font-size: var(--step-small); font-weight: 500; opacity: .78; }
.btn-ico { flex: none; }
.btn-primary { background: var(--amber); color: var(--amber-ink); }
.btn-ghost { color: var(--text); box-shadow: inset 0 0 0 1.5px rgba(238, 233, 246, .26); }
.icon-btn {
  display: grid; place-items: center; flex: none;
  width: 48px; height: 48px; border-radius: 999px;
  color: var(--text); background: var(--surface-2);
  transition: transform .25s var(--ease), background-color .25s var(--ease), color .25s var(--ease);
}
.btn:active, .icon-btn:active { transform: scale(.97); }

@media (hover: hover) and (pointer: fine) {
  .btn-primary:hover { background: var(--amber-glow); box-shadow: 0 10px 40px -12px rgba(242, 169, 59, .7); }
  .btn-ghost:hover { background: var(--surface-2); box-shadow: inset 0 0 0 1.5px rgba(238, 233, 246, .5); }
  .icon-btn:hover { background: rgba(255, 255, 255, .12); color: var(--amber-glow); }
  .cta-row .copy:hover { background: rgba(26, 18, 4, .2); color: var(--amber-ink); }
}

/* ---------- sections ---------- */
.main { margin-top: 64px; }
.block + .block { margin-top: 72px; }
.block-h {
  font-size: var(--step-h2); font-weight: 600; letter-spacing: -.03em; line-height: 1.05;
  margin-bottom: 20px;
}

.projects { display: grid; gap: 16px; }

.card {
  --accent: var(--amber);
  --mx: 50%; --my: 0%;
  position: relative; isolation: isolate;
  display: flex; flex-direction: column;
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--border), inset 0 1px 0 0 rgba(255, 255, 255, .07);
  overflow: hidden;
  transition: transform .5s var(--ease), box-shadow .3s var(--ease);
  transform-style: preserve-3d;
}
.card::before, .card::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  opacity: 0; transition: opacity .35s var(--ease);
}
.card::after {
  /* spotlight on the surface */
  z-index: 0;
  background: radial-gradient(420px circle at var(--mx) var(--my), color-mix(in srgb, var(--accent) 16%, transparent), transparent 60%);
}
.card::before {
  /* spotlight on the border */
  z-index: 3; padding: 1px;
  background: radial-gradient(320px circle at var(--mx) var(--my), color-mix(in srgb, var(--accent) 90%, white 10%), transparent 65%);
  -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);
}
.card.lit::before, .card.lit::after { opacity: 1; }
.card-hidara { --accent: var(--violet); }
.card-nocturne { --accent: var(--silver); background: color-mix(in srgb, #0E0C16 82%, transparent); }

.card-shot { position: relative; z-index: 1; display: block; aspect-ratio: 16 / 10; overflow: hidden; background: var(--bg-1); }
.card-shot img { width: 100%; height: 100%; object-fit: cover; object-position: 0 0; transition: transform .8s var(--ease); }
.card-hidara .card-shot { background: #2a1426; }
.badge {
  position: absolute; left: 12px; top: 12px;
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 12px; border-radius: 999px;
  font-family: var(--mono); font-size: var(--step-small); font-weight: 500;
  color: #0E0C16; background: var(--silver);
}
.badge::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #0E0C16; }

.card-body { position: relative; z-index: 1; display: flex; flex-direction: column; flex: 1; padding: 22px 24px 24px; }
.card-head { display: flex; align-items: center; gap: 12px; }
.app-icon { width: 40px; height: 40px; border-radius: 10px; flex: none; }
.card-title { font-size: var(--step-h3); font-weight: 650; letter-spacing: -.03em; line-height: 1.05; }
.card-tag { margin-top: 12px; font-size: var(--step-lead); font-weight: 500; line-height: 1.35; letter-spacing: -.01em; }
.card-hidara .card-tag { color: #C8BCFF; }
.card-nocturne .card-tag { color: var(--silver); }
.card-text { margin-top: 10px; color: var(--muted); line-height: 1.55; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 16px; }
.card-actions { margin-top: auto; padding-top: 20px; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; }
.btn-card { padding: 0 20px; color: var(--bg-0); background: var(--text); }
.card-hidara .btn-card { background: #6A4BF0; color: #fff; }
.btn-chip { padding: 0 16px; min-height: 48px; gap: 8px; color: var(--text); background: var(--surface-2); }
.note { color: var(--muted); line-height: 1.4; }

@media (hover: hover) and (pointer: fine) {
  .card:hover .card-shot img { transform: scale(1.035); }
  .btn-card:hover { background: #fff; }
  .card-hidara .btn-card:hover { background: var(--violet); }
  .btn-chip:hover { background: rgba(255, 255, 255, .12); }
}
@media (hover: none) {
  .card:has(a:active) { transform: scale(.98); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent) 70%, transparent), 0 0 32px -8px color-mix(in srgb, var(--accent) 60%, transparent); }
}

/* Zyntech: the studio's own black and white */
.studio {
  --accent: var(--zyn-ink);
  position: relative; isolation: isolate; overflow: hidden;
  display: grid; gap: 28px;
  padding: 28px 24px 0;
  border-radius: var(--radius);
  color: var(--zyn-ink); background: var(--zyn-paper);
  transition: transform .5s var(--ease);
}
.studio-mark { display: flex; align-items: center; gap: 10px; }
.studio-mark svg { color: var(--zyn-ink); flex: none; }
.studio-word { font-size: var(--step-h2); letter-spacing: -.045em; line-height: 1; }
.studio-word .zyn { font-weight: 400; }
.studio-word .tech { font-weight: 700; }
.studio-line { margin-top: 16px; max-width: 30ch; font-size: var(--step-lead); font-weight: 500; line-height: 1.3; letter-spacing: -.015em; }
.chips-studio .chip { color: var(--zyn-ink); background: rgba(8, 9, 11, .07); }
.btn-studio { margin-top: 22px; padding: 0 22px; color: var(--zyn-paper); background: var(--zyn-ink); }
@media (hover: hover) and (pointer: fine) {
  .btn-studio:hover { background: #2a2c31; }
}
@media (hover: none) {
  .studio:has(a:active) { transform: scale(.98); }
}
.wave {
  display: flex; align-items: center; justify-content: space-between; gap: 3px;
  height: 96px; margin: 0 -24px; padding: 0 24px 24px;
}
.wave i {
  display: block; flex: 1; min-width: 3px; max-width: 5px; height: 100%;
  background: var(--zyn-ink); border-radius: 1px;
  transform: scaleY(var(--h, .2)); transform-origin: 50% 50%;
  animation: eq 1.6s ease-in-out infinite alternate;
}
@keyframes eq {
  from { transform: scaleY(var(--h, .2)); }
  to { transform: scaleY(calc(var(--h, .2) * .35 + .06)); }
}

.about { max-width: 58ch; font-size: var(--step-lead); line-height: 1.5; letter-spacing: -.01em; }
.chips-tech { margin-top: 20px; }

.foot {
  position: relative; z-index: 1;
  margin-top: 72px; padding-top: 24px;
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 24px;
  color: var(--muted);
}

/* ---------- toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: max(24px, calc(env(safe-area-inset-bottom) + 12px)); z-index: 60;
  padding: 12px 20px; border-radius: 999px;
  font-weight: 600;
  color: var(--amber-ink); background: var(--amber);
  box-shadow: 0 12px 40px -10px rgba(0, 0, 0, .8);
  transform: translate(-50%, 140%); opacity: 0;
  transition: transform .4s var(--ease), opacity .3s var(--ease);
  pointer-events: none;
}
.toast.show { transform: translate(-50%, 0); opacity: 1; }
.toast:empty { visibility: hidden; }

/* ---------- entrance (pure CSS, so it runs even without JS) ---------- */
[data-enter] { animation: enter .55s var(--ease) both; }
[data-enter="2"] { animation-name: rise; animation-delay: 0s; }
[data-enter="3"] { animation-delay: .16s; }
[data-enter="4"] { animation-delay: .22s; }
[data-enter="5"] { animation-delay: .26s; }
@keyframes rise {
  from { transform: translate3d(0, 14px, 0); }
  to { transform: none; }
}
@keyframes enter {
  from { opacity: 0; transform: translate3d(0, 18px, 0); }
  to { opacity: 1; transform: none; }
}
.js [data-reveal] { opacity: 0; transform: translate3d(0, 26px, 0); }
.js [data-reveal].in {
  opacity: 1; transform: none;
  transition: opacity .7s var(--ease), transform .8s var(--ease);
  transition-delay: var(--d, 0s);
}

/* ---------- tablet ---------- */
@media (min-width: 640px) {
  .layout { max-width: 728px; padding-left: max(24px, env(safe-area-inset-left)); padding-right: max(24px, env(safe-area-inset-right)); }
  .hero { padding-top: 56px; }
  .projects { grid-template-columns: 1fr 1fr; }
  .studio { padding: 32px 32px 0; }
  .wave { margin: 0 -32px; padding: 0 32px 28px; height: 110px; }
  .intro { max-width: 40ch; }
}

/* ---------- desktop: pinned poster ---------- */
@media (min-width: 1024px) {
  .layout {
    max-width: 1240px;
    padding-left: 40px; padding-right: 40px;
    display: grid;
    grid-template-columns: 380px minmax(0, 1fr);
    grid-template-rows: 1fr auto;
    column-gap: clamp(48px, 5vw, 88px);
  }
  .hero { grid-column: 1; grid-row: 1 / span 2; padding-top: 0; }
  .main { grid-column: 2; grid-row: 1; margin-top: 0; padding-top: 14vh; }
  .foot { grid-column: 2; grid-row: 2; }
  .hero-inner {
    position: sticky; top: 0;
    min-height: 100svh; padding: 48px 0;
    align-items: flex-start; text-align: left; justify-content: center;
  }
  .hero-top { justify-content: flex-start; }
  .share { top: 4px; }
  .avatar { width: 184px; height: 184px; margin-bottom: 28px; }
  .avatar img { width: 174px; height: 174px; }
  .where { justify-content: flex-start; }
  .intro { order: 0; max-width: 32ch; }
  .ctas { max-width: none; margin-top: 28px; }
  .block + .block { margin-top: 120px; }
  .block-h { margin-bottom: 24px; }
  .studio { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); align-items: end; gap: 24px; padding: 36px 0 36px 36px; }
  .wave { margin: 0; padding: 0 36px 0 8px; height: 200px; align-self: center; }
  .foot { margin-top: 140px; padding-bottom: 8px; }
}
@media (min-width: 1024px) and (max-width: 1279px) {
  .layout { grid-template-columns: 340px minmax(0, 1fr); }
  .projects { grid-template-columns: 1fr; }
}
@media (min-width: 1024px) and (max-height: 720px) {
  .hero-inner { position: static; }
}
@media (min-width: 1536px) {
  :root { --step-body: 1.1875rem; }
  .layout { max-width: 1320px; grid-template-columns: 420px minmax(0, 1fr); }
}

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .pane, .avatar-ring, .avatar-glow, .chip-time .dot, .wave i { animation: none; }
  [data-enter] { animation-name: fade; animation-duration: .4s; }
  .js [data-reveal] { transform: none; }
  .js [data-reveal].in { transition: opacity .5s linear; }
  .dust { display: none; }
  .card, .studio, .btn, .icon-btn { transition: none; }
}
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }

@media (forced-colors: active) {
  .ambient { display: none; }
  .btn, .icon-btn, .chip, .card, .studio { border: 1px solid CanvasText; }
}

[hidden] { display: none !important; }
html:not(.js) .wave { display: none; }
.light { transform: translate3d(var(--px, 0px), var(--py, 0px), 0) rotate(-10deg) skewX(-26deg); }
.card.tilting { transition: transform .12s linear, box-shadow .3s var(--ease); }
.handle[data-scramble] { cursor: default; }
.offscreen { position: fixed; left: -9999px; top: 0; opacity: 0; }
.lost { min-height: 100svh; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 24px var(--gutter); }
.lost .ctas { max-width: 320px; }
.lost .btn { justify-content: center; }

/* ---------- hidden terminal ---------- */
.term {
  width: min(680px, calc(100vw - 24px));
  max-height: min(560px, calc(100svh - 24px));
  margin: auto; padding: 0;
  display: none; flex-direction: column;
  color: var(--text); background: var(--bg-1);
  border: 0; border-radius: 16px;
  box-shadow: 0 0 0 1px var(--border), 0 30px 80px -20px rgba(0, 0, 0, .9);
  font-family: var(--mono); font-size: .875rem; line-height: 1.6;
  overflow: hidden;
}
.term[open] { display: flex; animation: term-in .28s var(--ease) both; }
.term::backdrop { background: rgba(5, 4, 10, .72); }
@keyframes term-in { from { opacity: 0; transform: translateY(12px) scale(.98); } to { opacity: 1; transform: none; } }
.term-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 6px 6px 6px 18px; background: rgba(255, 255, 255, .04); }
.term-title { color: var(--muted); font-size: var(--step-small); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.term-close { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 999px; color: var(--muted); }
.term-out { flex: 1; min-height: 160px; overflow-y: auto; overscroll-behavior: contain; padding: 16px 18px 4px; }
.term-out p { min-height: 1.6em; white-space: pre-wrap; overflow-wrap: anywhere; }
.term-out a { color: var(--amber-glow); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.term-em { color: var(--amber); }
.term-dim { color: var(--muted); }
.term-echo { color: var(--text); }
.term-form { display: flex; align-items: center; gap: 10px; padding: 8px 18px 12px; }
.term-prompt { color: var(--amber); white-space: nowrap; flex: none; }
.term-in {
  flex: 1; min-width: 0; min-height: 40px;
  font: inherit; font-size: 16px; color: var(--text); caret-color: var(--amber);
  background: transparent; border: 0; padding: 0;
}
.term-in:focus-visible { outline: none; }
.term-keys { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 18px 16px; }
.term-keys button {
  min-height: 36px; padding: 0 12px; border-radius: 999px;
  font-family: var(--mono); font-size: var(--step-small);
  color: var(--text); background: var(--surface-2);
}
.term-keys button:active { transform: scale(.96); }
@media (hover: hover) and (pointer: fine) {
  .term-close:hover { color: var(--text); background: var(--surface-2); }
  .term-keys button:hover { background: rgba(255, 255, 255, .12); color: var(--amber-glow); }
}
@media (max-width: 639px) {
  .term { margin: 12px auto auto; font-size: .8125rem; }
  .term-prompt { display: none; }
  .term-form::before { content: "$"; color: var(--amber); }
}
@media (prefers-reduced-motion: reduce) { .term[open] { animation: none; } }
