/* =====================================================================
   Harshil Patel — portfolio
   Layout: full-bleed colour fields on a 12-column grid; hazard-tape
   bands mark the act breaks. Type scales horizontally (Anybody's
   width axis) the way infrastructure does.
   Palette: kaali-peeli, the yellow and black of Mumbai's taxis.
   ===================================================================== */
:root {
  /* raw palette */
  --yellow: #FFD12A;
  --ink: #12110D;
  --paper: #F1EEE4;
  --night: #0F0E0B;

  /* semantic tokens, light theme ("peeli") */
  --bg: var(--yellow);
  --fg: var(--ink);
  --muted: rgb(18 17 13 / .7);
  --line: rgb(18 17 13 / .2);
  --surface: var(--ink);
  --on-surface: var(--paper);
  --on-surface-muted: rgb(241 238 228 / .64);
  --surface-line: rgb(241 238 228 / .16);
  --accent: var(--ink);
  --accent-on-surface: var(--yellow);
  --ok: #0B6E37;
  --ok-on-surface: #4BDB8E;
  --dot: rgb(18 17 13 / .26);
  --dot-on-surface: rgb(241 238 228 / .22);
  --shade: rgb(0 0 0 / .6);
  --cursor-fill: rgb(255 209 42 / .22);
  --stripe-a: var(--ink);
  --stripe-b: var(--yellow);

  /* type */
  --f-display: "Anybody", "Arial Narrow", "Helvetica Neue", Arial, sans-serif;
  --f-body: "Instrument Sans", "Helvetica Neue", Arial, sans-serif;
  --f-serif: "Instrument Serif", Georgia, "Times New Roman", serif;
  --f-mono: "Martian Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;

  --fs-label: .6875rem;
  --fs-small: .875rem;
  --fs-body: 1rem;
  --fs-lead: clamp(1.3rem, 1rem + 1.15vw, 2.1rem);
  --fs-h3: clamp(2.6rem, 1.4rem + 4.6vw, 6.6rem);
  --fs-h2: clamp(3.4rem, 1.2rem + 9vw, 11.5rem);

  /* space + motion */
  --gutter: clamp(16px, 2.6vw, 40px);
  --section: clamp(88px, 13vh, 168px);
  --hdr: 68px;
  --radius: 22px;
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease-inout: cubic-bezier(.76, 0, .24, 1);

  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: var(--night);
    --fg: var(--paper);
    --muted: rgb(241 238 228 / .66);
    --line: rgb(241 238 228 / .15);
    --surface: var(--yellow);
    --on-surface: var(--ink);
    --on-surface-muted: rgb(18 17 13 / .72);
    --surface-line: rgb(18 17 13 / .2);
    --accent: var(--yellow);
    --accent-on-surface: var(--ink);
    --ok: #4BDB8E;
    --ok-on-surface: #0B6E37;
    --dot: rgb(241 238 228 / .2);
    --dot-on-surface: rgb(18 17 13 / .26);
    color-scheme: dark;
  }
}

:root[data-theme="dark"] {
  --bg: var(--night);
  --fg: var(--paper);
  --muted: rgb(241 238 228 / .66);
  --line: rgb(241 238 228 / .15);
  --surface: var(--yellow);
  --on-surface: var(--ink);
  --on-surface-muted: rgb(18 17 13 / .72);
  --surface-line: rgb(18 17 13 / .2);
  --accent: var(--yellow);
  --accent-on-surface: var(--ink);
  --ok: #4BDB8E;
  --ok-on-surface: #0B6E37;
  --dot: rgb(241 238 228 / .2);
  --dot-on-surface: rgb(18 17 13 / .26);
  color-scheme: dark;
}

/* Any block painted with the inverse colour remaps the tokens, so the
   components inside it never need to know which theme is active. */
.surface {
  --bg: var(--surface);
  --fg: var(--on-surface);
  --muted: var(--on-surface-muted);
  --line: var(--surface-line);
  --accent: var(--accent-on-surface);
  --ok: var(--ok-on-surface);
  --dot: var(--dot-on-surface);
  background: var(--bg);
  color: var(--fg);
}

/* ---------- lenis ---------- */
html.lenis, html.lenis body { height: auto; }
.lenis:not(.lenis-autoToggle).lenis-stopped { overflow: clip; }
.lenis [data-lenis-prevent], .lenis [data-lenis-prevent-wheel], .lenis [data-lenis-prevent-touch] { overscroll-behavior: contain; }
.lenis.lenis-smooth iframe { pointer-events: none; }

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; background: var(--bg); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--f-body);
  font-size: var(--fs-body);
  line-height: 1.55;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
  text-rendering: optimizeLegibility;
}
img, svg, canvas, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; color: inherit; }
button { background: none; border: 0; padding: 0; cursor: pointer; }
h1, h2, h3, h4, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
::selection { background: var(--fg); color: var(--bg); }
:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; border-radius: 4px; }

.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip {
  position: fixed; left: var(--gutter); top: 12px; z-index: 200;
  padding: 10px 16px; border-radius: 999px;
  background: var(--fg); color: var(--bg);
  font-family: var(--f-mono); font-size: var(--fs-label); text-transform: uppercase; letter-spacing: .06em;
  transform: translateY(-160%); transition: transform .3s var(--ease-out);
}
.skip:focus-visible { transform: none; }

.wrap { width: 100%; margin-inline: auto; padding-inline: var(--gutter); }

.mono, .eyebrow {
  font-family: var(--f-mono);
  font-size: var(--fs-label);
  font-weight: 400;
  font-stretch: 87.5%;
  letter-spacing: .06em;
  line-height: 1.6;
  text-transform: uppercase;
}
.eyebrow { color: var(--muted); }
em, .serif {
  font-family: var(--f-serif);
  font-style: italic;
  font-weight: 400;
  letter-spacing: 0;
  font-size: 1.08em;
  color: var(--accent);
}
.tnum { font-variant-numeric: tabular-nums; }

[hidden] { display: none !important; }
::view-transition-old(root), ::view-transition-new(root) { animation: none; mix-blend-mode: normal; }
::view-transition-old(root) { z-index: 1; }
::view-transition-new(root) { z-index: 2; }

/* hidden until the script has set the opening states (a timer in the head clears it if anything fails) */
.js.is-loading .hero__inner { visibility: hidden; }
.js-motion:not(.intro-done) .hdr { transform: translateY(-140%); }

/* split-text helpers (SplitText adds the wrappers) */
.line-mask { overflow: clip; padding-bottom: .06em; margin-bottom: -.06em; }

/* ---------- buttons + links ---------- */
.btn {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .65em;
  min-height: 52px;
  padding: 0 26px;
  border-radius: 999px;
  border: 1px solid var(--fg);
  font-size: .9375rem;
  font-weight: 500;
  line-height: 1;
  letter-spacing: .005em;
  white-space: nowrap;
  transition: color .45s var(--ease-out), border-color .45s var(--ease-out);
}
.btn::before {
  content: "";
  position: absolute;
  inset: -1px;
  z-index: -1;
  border-radius: inherit;
  transform: translateY(102%);
  transition: transform .55s var(--ease-out);
}
.btn--solid { background: var(--fg); color: var(--bg); }
.btn--solid::before { background: var(--bg); }
.btn--solid:hover, .btn--solid:focus-visible { color: var(--fg); }
.btn--ghost { color: var(--fg); }
.btn--ghost::before { background: var(--fg); }
.btn--ghost:hover, .btn--ghost:focus-visible { color: var(--bg); }
.btn:hover::before, .btn:focus-visible::before { transform: translateY(0); }
.btn__arrow { display: inline-block; transition: transform .45s var(--ease-out); }
.btn:hover .btn__arrow { transform: translate(3px, 2px); }
.btn--sm { min-height: 40px; padding: 0 18px; font-size: .8125rem; }

.ulink {
  background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat;
  transition: background-size .5s var(--ease-out);
}
.ulink:hover { background-size: 0 1px; background-position: 100% 100%; }

/* per-character roll on hover (characters injected by JS) */
.roll { display: inline-flex; vertical-align: top; }
.roll__in { position: relative; display: inline-flex; overflow: hidden; vertical-align: top; }
.roll__a, .roll__b { display: inline-flex; white-space: pre; }
.roll__b { position: absolute; left: 0; top: 0; }
.roll .c { display: inline-block; transition: transform .5s var(--ease-out); transition-delay: calc(var(--i) * 16ms); }
.roll__b .c { transform: translateY(105%); }
.roll:hover .roll__a .c, .roll:focus-visible .roll__a .c, .roll.is-active .roll__a .c { transform: translateY(-105%); }
.roll:hover .roll__b .c, .roll:focus-visible .roll__b .c, .roll.is-active .roll__b .c { transform: translateY(0); }

/* ---------- boot sequence (preloader) ---------- */
.boot { display: none; }
.js .boot {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 24px;
  padding: calc(env(safe-area-inset-top, 0px) + 22px) var(--gutter) calc(env(safe-area-inset-bottom, 0px) + 18px);
  overflow: hidden;
  cursor: progress;
}
.js.boot-done .boot { display: none; }
.boot__top { display: flex; justify-content: space-between; gap: 16px; color: var(--muted); }
.boot__prompt { color: var(--fg); }
.boot__caret { display: inline-block; width: .6em; height: 1.05em; margin-left: 2px; vertical-align: -.18em; background: var(--accent); animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.boot__log { display: grid; gap: 6px; max-width: 760px; font-family: var(--f-mono); font-size: clamp(.625rem, .55rem + .25vw, .78rem); font-stretch: 87.5%; letter-spacing: .02em; }
.boot__log li { display: grid; grid-template-columns: 7ch minmax(0, 1fr) auto; gap: 14px; opacity: 0; }
.boot__log .st { color: var(--muted); white-space: pre; }
.boot__log li.is-ok .st { color: var(--ok); }
.boot__log .k { color: var(--muted); text-align: right; }
.boot__bottom { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; }
.boot__label { max-width: 26ch; color: var(--muted); }
.boot__count {
  font-family: var(--f-display);
  font-weight: 880;
  font-stretch: 50%;
  font-size: clamp(6.5rem, 23vw, 27rem);
  line-height: .74;
  letter-spacing: -.01em;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
  margin-bottom: -.04em;
}
.boot__edge { position: absolute; left: 0; right: 0; bottom: 0; height: 10px; background: repeating-linear-gradient(-45deg, var(--stripe-a) 0 12px, var(--stripe-b) 12px 24px); }

/* ---------- header ---------- */
.hdr {
  position: fixed;
  z-index: 60;
  top: 0; left: 0; right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: calc(env(safe-area-inset-top, 0px) + 14px) var(--gutter) 0;
  pointer-events: none;
  transition: transform .6s var(--ease-out);
}
.hdr.is-hidden { transform: translateY(-120%); }
.hdr > * { pointer-events: auto; }
.pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 40px;
  padding: 0 16px;
  border-radius: 999px;
  background: var(--bg);
  color: var(--fg);
  border: 1px solid var(--line);
  font-family: var(--f-mono);
  font-size: var(--fs-label);
  font-stretch: 87.5%;
  letter-spacing: .06em;
  text-transform: uppercase;
  line-height: 1;
  white-space: nowrap;
}
.hdr__brand { padding-left: 6px; gap: 12px; }
.ring { position: relative; width: 30px; height: 30px; display: grid; place-items: center; }
.ring svg { position: absolute; inset: 0; width: 30px; height: 30px; transform: rotate(-90deg); }
.ring circle { fill: none; stroke-width: 2; }
.ring .ring__bg { stroke: var(--line); }
.ring .ring__fg { stroke: var(--fg); stroke-dasharray: 88; stroke-dashoffset: 88; stroke-linecap: round; }
.ring__txt { font-family: var(--f-display); font-weight: 860; font-stretch: 72%; font-size: .78rem; letter-spacing: 0; }
.status { display: inline-flex; align-items: center; gap: 8px; }
.status__dot { position: relative; width: 7px; height: 7px; border-radius: 50%; background: var(--ok); }
.status__dot::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 1px solid var(--ok); animation: ping 2.4s var(--ease-out) infinite; }
@keyframes ping { 0% { transform: scale(.4); opacity: 1; } 80%, 100% { transform: scale(1.6); opacity: 0; } }
.hdr__nav { gap: 2px; padding: 0 5px; }
.hdr__nav a { padding: 8px 11px 7px; border-radius: 999px; transition: background-color .4s var(--ease-out), color .4s var(--ease-out); }
.hdr__nav a.is-active { background: var(--fg); color: var(--bg); }
.hdr__right { display: flex; align-items: center; gap: 8px; }
.theme { gap: 10px; padding-left: 10px; }
.theme__track { position: relative; width: 30px; height: 18px; border-radius: 999px; background: var(--fg); }
.theme__knob { position: absolute; top: 3px; left: 3px; width: 12px; height: 12px; border-radius: 50%; background: var(--bg); transition: transform .5s var(--ease-out); }
:root[data-theme="dark"] .theme__knob { transform: translateX(12px); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .theme__knob { transform: translateX(12px); } }
.theme__label { min-width: 5ch; text-align: left; }
.hdr__menu { display: none; }

/* mobile menu */
.menu {
  position: fixed;
  inset: 0;
  z-index: 55;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 32px;
  padding: calc(env(safe-area-inset-top, 0px) + 96px) var(--gutter) calc(env(safe-area-inset-bottom, 0px) + 28px);
  clip-path: inset(0 0 100% 0);
  visibility: hidden;
  transition: clip-path .8s var(--ease-inout), visibility 0s linear .8s;
}
.menu.is-open { clip-path: inset(0 0 0 0); visibility: visible; transition: clip-path .8s var(--ease-inout), visibility 0s; }
.menu__nav { display: grid; gap: 4px; }
.menu__nav a {
  font-family: var(--f-display);
  font-weight: 860;
  font-stretch: 62%;
  font-size: clamp(3.4rem, 17vw, 7rem);
  line-height: .9;
  text-transform: uppercase;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  padding-block: 6px;
}
.menu__nav a span.mono { font-size: var(--fs-label); color: var(--muted); }
.menu__foot { display: grid; gap: 14px; }
.menu__foot a { overflow-wrap: anywhere; }

/* ---------- hero ---------- */
.hero { position: relative; min-height: 100svh; display: flex; flex-direction: column; overflow: clip; }
.hero__field { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; }
.hero__inner {
  position: relative;
  z-index: 1;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 0;
  padding-top: calc(env(safe-area-inset-top, 0px) + var(--hdr) + clamp(28px, 6vh, 64px));
  padding-bottom: 18px;
  pointer-events: none;
}
.hero__inner a, .hero__inner button { pointer-events: auto; }
.hero__top { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 24px; align-items: start; margin-bottom: clamp(36px, 6vh, 72px); }
.hero__intro { grid-column: 1 / span 6; display: flex; flex-direction: column; gap: 26px; min-width: 0; }
.hero__lede {
  font-size: var(--fs-lead);
  font-weight: 500;
  line-height: 1.16;
  letter-spacing: -.018em;
  max-width: 24ch;
  text-wrap: balance;
}
.hero__cta { display: flex; flex-wrap: wrap; gap: 10px; }
.spec { grid-column: 8 / span 5; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 24px; border-top: 1px solid var(--line); min-width: 0; }
.spec > div { display: grid; gap: 3px; padding: 12px 0 13px; border-bottom: 1px solid var(--line); min-width: 0; }
.spec dt { color: var(--muted); }
.spec dd { font-size: .9375rem; font-weight: 500; line-height: 1.3; }
.hero__name {
  margin-top: auto;
  font-family: var(--f-display);
  font-weight: 860;
  font-size: 15vw;
  line-height: .78;
  text-transform: uppercase;
  white-space: nowrap;
  letter-spacing: 0;
  user-select: none;
  pointer-events: auto;
}
.hero__line { display: flex; align-items: flex-end; justify-content: space-between; overflow: clip; padding-top: .04em; }
.hero__line .ch, .foot__row .ch { flex: none; }
.hero__line + .hero__line { margin-top: .04em; }
.hero__name .ch { display: inline-block; font-stretch: 75%; will-change: transform; }
.hero__name .sp { display: inline-block; }
.hero__foot { display: flex; justify-content: space-between; gap: 16px; margin-top: clamp(16px, 2.6vh, 28px); border-top: 1px solid var(--line); padding-top: 12px; color: var(--muted); }
.hero__foot > span:first-child { color: var(--fg); }
.scrollcue { display: inline-flex; align-items: center; gap: 10px; }
.scrollcue i { position: relative; display: block; width: 1px; height: 18px; background: var(--line); overflow: hidden; }
.scrollcue i::after { content: ""; position: absolute; left: 0; top: -100%; width: 1px; height: 100%; background: var(--fg); animation: drip 1.8s var(--ease-inout) infinite; }
@keyframes drip { to { top: 100%; } }

/* ---------- hazard tapes ---------- */
.tapes { position: relative; height: clamp(170px, 20vw, 300px); overflow: clip; display: grid; place-items: center; }
.tape { position: absolute; left: -6%; width: 112%; display: flex; overflow: hidden; }
.tape__track { display: flex; flex: none; white-space: nowrap; will-change: transform; }
.tape--back {
  height: clamp(40px, 4.4vw, 64px);
  transform: rotate(3deg);
  background: repeating-linear-gradient(-45deg, var(--stripe-a) 0 18px, var(--stripe-b) 18px 36px);
  background-size: 50.9px 50.9px;
  border-block: 1px solid var(--stripe-a);
}
.tape--front {
  transform: rotate(-2.4deg);
  background: var(--surface);
  color: var(--accent-on-surface);
  padding-block: 12px;
  box-shadow: 0 0 0 1px var(--stripe-a);
}
.tape--front::before, .tape--front::after {
  content: "";
  position: absolute;
  left: 0; right: 0;
  height: 8px;
  background: repeating-linear-gradient(-45deg, var(--stripe-a) 0 10px, var(--stripe-b) 10px 20px);
}
.tape--front::before { top: 0; }
.tape--front::after { bottom: 0; }
.tape__item {
  display: inline-flex;
  align-items: center;
  gap: clamp(18px, 2vw, 34px);
  padding: 14px clamp(18px, 2vw, 34px) 12px 0;
  font-family: var(--f-display);
  font-weight: 820;
  font-stretch: 68%;
  font-size: clamp(1.7rem, 1rem + 2.9vw, 4.2rem);
  line-height: 1;
  text-transform: uppercase;
}
.tape__item i { font-style: normal; font-family: var(--f-mono); font-size: .38em; font-weight: 400; letter-spacing: .04em; opacity: .7; }

.stripe { display: block; height: 12px; background: repeating-linear-gradient(-45deg, var(--stripe-a) 0 12px, var(--stripe-b) 12px 24px); }

/* ---------- shared section heading ---------- */
.sec { padding-block: var(--section); }
.sec-head { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 16px 24px; align-items: end; margin-bottom: clamp(40px, 7vh, 88px); }
.sec-title {
  grid-column: 1 / span 9;
  font-family: var(--f-display);
  font-weight: 860;
  font-stretch: 62%;
  font-size: var(--fs-h2);
  line-height: .8;
  text-transform: uppercase;
  letter-spacing: -.005em;
  overflow-wrap: anywhere;
}
.sec-title .ch { display: inline-block; }
.sec-meta { grid-column: 10 / span 3; display: grid; gap: 10px; justify-items: end; text-align: right; padding-bottom: .4em; }
.sec-meta p:last-child { max-width: 30ch; color: var(--muted); font-size: .9375rem; text-transform: none; letter-spacing: 0; font-family: var(--f-body); font-stretch: 100%; }

/* ---------- about ---------- */
.about { position: relative; }
.about__lead { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 24px; align-items: start; }
.about__lead .eyebrow { grid-column: 1 / span 3; padding-top: .9em; }
.about__lead .manifesto { grid-column: 4 / span 9; }
.manifesto {
  font-size: clamp(1.75rem, 1rem + 3.15vw, 4.4rem);
  font-weight: 500;
  line-height: 1.06;
  letter-spacing: -.028em;
  max-width: 22ch;
  text-wrap: pretty;
}
.manifesto .word { display: inline-block; }
.manifesto em { font-size: 1.06em; letter-spacing: -.01em; }
.about__grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 32px 24px;
  margin-top: clamp(56px, 10vh, 120px);
  align-items: start;
}
.principles { grid-column: 1 / span 5; display: grid; border-top: 1px solid var(--line); }
.principle { display: grid; grid-template-columns: minmax(0, 11rem) minmax(0, 1fr); gap: 8px 20px; padding: 20px 0 22px; border-bottom: 1px solid var(--line); }
.principle h3 { font-family: var(--f-display); font-weight: 820; font-stretch: 70%; font-size: 1.35rem; line-height: 1; text-transform: uppercase; }
.principle p { color: var(--muted); max-width: 40ch; }

/* terminal-styled code card */
.code {
  grid-column: 7 / span 6;
  border-radius: var(--radius);
  overflow: hidden;
  min-width: 0;
}
.code__bar { display: flex; justify-content: space-between; gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--line); color: var(--muted); }
.code pre {
  margin: 0;
  padding: 20px 18px 24px;
  overflow-x: auto;
  font-family: var(--f-mono);
  font-size: clamp(.68rem, .62rem + .22vw, .82rem);
  font-stretch: 87.5%;
  line-height: 1.75;
  tab-size: 2;
}
.code .t-dim { color: var(--muted); }
.code .t-add { color: var(--ok); }
.code .t-key { color: var(--fg); font-weight: 600; }
.code .t-str { color: var(--accent); }
.code .t-cmt { color: var(--muted); font-style: italic; }
.code .t-plan { color: var(--fg); font-weight: 700; }

/* ---------- experience ---------- */
.gantt { margin-bottom: clamp(48px, 9vh, 104px); overflow-x: clip; }
.gantt__plot { position: relative; }
.gantt__axis { position: relative; height: 26px; border-bottom: 1px solid var(--line); color: var(--muted); }
.gantt__tick { position: absolute; bottom: 6px; transform: translateX(-1px); padding-left: 6px; border-left: 1px solid var(--line); line-height: 1; height: 14px; display: flex; align-items: flex-end; }
.gantt__rows { position: relative; display: grid; gap: 10px; padding-block: 14px; }
.gantt__grid { position: absolute; inset: 0; pointer-events: none; }
.gantt__grid span { position: absolute; top: 0; bottom: 0; width: 1px; background: var(--line); }
.gantt__row { position: relative; height: 40px; }
.gantt__bar {
  position: absolute;
  top: 0; bottom: 0;
  left: var(--s);
  width: var(--w);
  min-width: 10px;
  border-radius: 999px;
  background: var(--fg);
  transform-origin: left center;
}
.gantt__bar.is-study { background: repeating-linear-gradient(-45deg, var(--fg) 0 2px, transparent 2px 8px); border: 1px solid var(--fg); }
.gantt__label {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  white-space: nowrap;
  font-family: var(--f-mono);
  font-size: var(--fs-label);
  font-stretch: 87.5%;
  letter-spacing: .05em;
  text-transform: uppercase;
}
.gantt__label.is-inside { left: calc(var(--s) + 16px); color: var(--bg); background: var(--fg); padding: 3px 8px; border-radius: 999px; }
.gantt__label.is-right { right: calc(100% - var(--s) + 12px); text-align: right; }
.gantt__now { position: absolute; top: -26px; bottom: 0; left: var(--now); width: 0; border-left: 1px dashed var(--fg); }
.gantt__now span { position: absolute; top: 0; right: 6px; white-space: nowrap; background: var(--fg); color: var(--bg); padding: 4px 7px; border-radius: 999px; line-height: 1; }
.gantt__live { position: absolute; right: -4px; top: 50%; width: 9px; height: 9px; margin-top: -4.5px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 3px var(--bg); }
.gantt figcaption { margin-top: 10px; color: var(--muted); }

.stack { display: grid; gap: clamp(28px, 6vh, 64px); }
.card {
  position: sticky;
  top: calc(var(--hdr) + 18px + var(--n) * 14px);
  border-radius: var(--radius);
  overflow: hidden;
  min-height: min(76vh, 680px);
  transform-origin: 50% 0;
}
.card__shade { position: absolute; inset: 0; background: var(--shade); opacity: 0; pointer-events: none; z-index: 3; }
.card__inner {
  position: relative;
  height: 100%;
  min-height: inherit;
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  grid-template-rows: auto 1fr auto;
  gap: 28px 24px;
  padding: clamp(22px, 3vw, 44px);
}
.card__top { grid-column: 1 / -1; display: flex; justify-content: space-between; gap: 16px; color: var(--muted); }
.card__head { grid-column: 1 / span 8; align-self: center; min-width: 0; }
.card__title {
  font-family: var(--f-display);
  font-weight: 860;
  font-stretch: 64%;
  font-size: var(--fs-h3);
  line-height: .84;
  text-transform: uppercase;
  overflow-wrap: anywhere;
}
.card__role { margin-top: .35em; font-family: var(--f-serif); font-style: italic; font-size: clamp(1.6rem, 1rem + 2.1vw, 3.2rem); line-height: 1.05; color: var(--accent); }
.card__side { grid-column: 9 / span 4; align-self: center; justify-self: end; text-align: right; display: grid; gap: 6px; color: var(--muted); }
.card__period { font-family: var(--f-display); font-weight: 760; font-stretch: 100%; font-size: clamp(1.1rem, .8rem + 1vw, 1.7rem); line-height: 1.1; color: var(--fg); text-transform: uppercase; }
.card__points { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px 24px; border-top: 1px solid var(--line); padding-top: 22px; }
.card__points li { display: grid; gap: 10px; align-content: start; color: var(--fg); max-width: 44ch; }
.card__points li::before { content: attr(data-k); font-family: var(--f-mono); font-size: var(--fs-label); font-stretch: 87.5%; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tags li { padding: 6px 11px; border: 1px solid var(--line); border-radius: 999px; font-family: var(--f-mono); font-size: .625rem; font-stretch: 87.5%; letter-spacing: .05em; text-transform: uppercase; line-height: 1.2; }
.card .tags { grid-column: 1 / -1; }

.stamp { position: relative; justify-self: end; width: clamp(104px, 9.5vw, 148px); aspect-ratio: 1; margin-bottom: 10px; color: var(--accent); }
.stamp svg { width: 100%; height: 100%; overflow: visible; }
.stamp text { font-family: var(--f-mono); font-size: 7.6px; letter-spacing: 1.6px; text-transform: uppercase; fill: currentColor; }
.stamp__core { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; }
.stamp__core b { font-family: var(--f-display); font-weight: 900; font-stretch: 58%; font-size: clamp(1.15rem, .8rem + 1vw, 1.75rem); line-height: .86; text-transform: uppercase; }
.stamp__spin { animation: spin 18s linear infinite; transform-origin: 50% 50%; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- selected work ---------- */
.work { position: relative; }
.work__pin { position: relative; }
.work__mask { position: relative; }
.work__track { display: grid; gap: 0; }
.panel { position: relative; }
.panel--intro {
  display: grid;
  place-items: center;
  align-content: center;
  gap: 18px;
  text-align: center;
  padding: var(--section) var(--gutter);
}
.work__title {
  font-family: var(--f-display);
  font-weight: 880;
  font-stretch: 62%;
  font-size: clamp(4.2rem, 2rem + 13vw, 17rem);
  line-height: .78;
  text-transform: uppercase;
}
.work__title .w2 { display: block; font-stretch: 140%; font-weight: 700; font-size: .5em; letter-spacing: -.01em; }
.panel--intro .mono { color: var(--muted); }

.project { padding: clamp(72px, 12vh, 120px) var(--gutter) clamp(48px, 8vh, 96px); border-top: 1px solid var(--line); }
.project__grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 32px 24px; align-items: start; }
.project__info { grid-column: 1 / span 5; display: grid; gap: 22px; min-width: 0; }
.project__index { display: flex; justify-content: space-between; color: var(--muted); }
.project__title {
  font-family: var(--f-display);
  font-weight: 880;
  font-stretch: 60%;
  font-size: clamp(3.4rem, 1.6rem + 6.6vw, 9.4rem);
  line-height: .8;
  text-transform: uppercase;
  overflow-wrap: anywhere;
}
.project__kind { font-family: var(--f-serif); font-style: italic; font-size: clamp(1.45rem, 1rem + 1.4vw, 2.5rem); line-height: 1.05; color: var(--accent); }
.project__desc { color: var(--fg); max-width: 46ch; }
.project__list { display: grid; gap: 9px; color: var(--muted); max-width: 52ch; }
.project__list li { position: relative; padding-left: 18px; }
.project__list li::before { content: ""; position: absolute; left: 0; top: .66em; width: 8px; height: 1px; background: var(--fg); }
.project__stack { display: grid; gap: 8px; }
.project__stack p:first-child { color: var(--muted); }
.project__links { display: flex; flex-wrap: wrap; gap: 10px; padding-top: 4px; }
.project__visual { grid-column: 7 / span 6; min-width: 0; display: grid; gap: 14px; }

.viz { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.viz__bar { display: flex; justify-content: space-between; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--line); color: var(--muted); }
.viz__body { padding: clamp(14px, 2vw, 24px); }
.flow { width: 100%; height: auto; }
.flow .node rect { fill: var(--bg); stroke: var(--fg); stroke-width: 1.2; }
.flow .node.is-ext rect { fill: var(--fg); }
.flow .node.is-ext text { fill: var(--bg); }
.flow .node text { fill: var(--fg); font-family: var(--f-mono); font-size: 10.5px; letter-spacing: .4px; text-transform: uppercase; }
.flow .node text.sub { fill: var(--muted); font-size: 8.4px; }
.flow .node.is-ext text.sub { fill: var(--bg); opacity: .7; }
.flow .edge { fill: none; stroke: var(--fg); stroke-width: 1.2; stroke-dasharray: 3 6; animation: flow 1.1s linear infinite; }
.flow .edge.is-back { animation-direction: reverse; }
.flow .edge-label { fill: var(--muted); font-family: var(--f-mono); font-size: 8.4px; letter-spacing: .4px; text-transform: uppercase; }
.flow .frame { fill: none; stroke: var(--line); stroke-dasharray: 2 4; }
.flow .frame-label { fill: var(--muted); font-family: var(--f-mono); font-size: 8.4px; letter-spacing: .6px; text-transform: uppercase; }
.flow .packet { fill: var(--accent); }
@keyframes flow { to { stroke-dashoffset: -18; } }

.log { font-family: var(--f-mono); font-size: clamp(.6rem, .55rem + .2vw, .72rem); font-stretch: 87.5%; letter-spacing: .02em; line-height: 1.9; height: calc(1.9em * 6 + 28px); overflow: hidden; padding: 14px 16px; }
.log__row { display: grid; grid-template-columns: 9ch 5.5ch minmax(0, 1fr) auto; gap: 12px; white-space: nowrap; }
.log__row > span { overflow: hidden; text-overflow: ellipsis; }
.log__row .s2 { color: var(--ok); }
.log__row .dim { color: var(--muted); }

.vault { display: grid; gap: 14px; }
.vault__field { display: grid; gap: 8px; }
.vault__field label { color: var(--muted); }
.vault__input {
  width: 100%;
  min-height: 52px;
  padding: 0 16px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: transparent;
  font-family: var(--f-mono);
  font-size: .875rem;
  font-stretch: 87.5%;
  letter-spacing: .02em;
}
.vault__input:focus { outline: none; border-color: var(--fg); }
.vault__cipher { min-height: 5.6em; padding: 14px 16px; border-radius: 14px; background: var(--fg); color: var(--bg); font-family: var(--f-mono); font-size: .75rem; font-stretch: 87.5%; letter-spacing: .02em; line-height: 1.7; overflow-wrap: anywhere; word-break: break-all; }
.vault__meta { display: flex; flex-wrap: wrap; gap: 6px 16px; color: var(--muted); }
.rbac { width: 100%; border-collapse: collapse; font-family: var(--f-mono); font-size: var(--fs-label); font-stretch: 87.5%; letter-spacing: .05em; text-transform: uppercase; }
.rbac th, .rbac td { padding: 9px 6px; border-bottom: 1px solid var(--line); text-align: center; font-weight: 400; }
.rbac th:first-child, .rbac td:first-child { text-align: left; }
.rbac thead th { color: var(--muted); }
.rbac .y, .rbac .n { display: inline-block; width: 10px; height: 10px; border-radius: 50%; }
.rbac .y { background: var(--fg); }
.rbac .n { border: 1px solid var(--line); }

.panel--outro { display: grid; align-content: center; gap: 28px; padding: var(--section) var(--gutter); border-top: 1px solid var(--line); }
.outro__big { font-family: var(--f-display); font-weight: 860; font-stretch: 66%; font-size: clamp(2.6rem, 1.4rem + 4.8vw, 6.6rem); line-height: .86; text-transform: uppercase; max-width: 12ch; }
.outro__big em { font-size: .9em; text-transform: none; }
.outro__txt { color: var(--muted); max-width: 44ch; }

/* ---------- toolbox ---------- */
.tools { border-top: 1px solid var(--line); }
.tools__row { position: relative; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 10px 24px; padding: clamp(18px, 3vh, 30px) 0; }
.tools__row::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--fg); opacity: .22; transform-origin: left center; transform: scaleX(var(--draw, 1)); }
.tools__cat { grid-column: 1 / span 3; color: var(--muted); padding-top: .5em; }
.tools__list { grid-column: 4 / span 9; display: flex; flex-wrap: wrap; gap: .08em .42em; align-items: baseline; }
.tool {
  font-family: var(--f-display);
  font-weight: 800;
  font-stretch: 72%;
  font-size: clamp(1.75rem, 1rem + 2.7vw, 4rem);
  line-height: 1.02;
  text-transform: uppercase;
  transition: font-stretch .6s var(--ease-out), color .3s;
}
.tool:hover { font-stretch: 128%; }
.tool:not(:last-child)::after { content: "/"; display: inline-block; margin-left: .32em; font-weight: 300; font-stretch: 100%; color: var(--muted); }

/* ---------- shell ---------- */
.term { border-radius: var(--radius); overflow: hidden; }
.term__bar { display: flex; justify-content: space-between; gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--line); color: var(--muted); }
.term__out {
  height: clamp(300px, 46vh, 460px);
  overflow-y: auto;
  padding: 18px 18px 6px;
  font-family: var(--f-mono);
  font-size: clamp(.7rem, .64rem + .22vw, .84rem);
  font-stretch: 87.5%;
  line-height: 1.75;
  letter-spacing: .01em;
  scrollbar-width: thin;
}
.term__out p { white-space: pre-wrap; overflow-wrap: anywhere; }
.term__out .cmd { color: var(--fg); }
.term__out .cmd b { color: var(--accent); font-weight: 400; }
.term__out .out { color: var(--muted); }
.term__out .ok { color: var(--ok); }
.term__out a { color: var(--fg); text-decoration: underline; text-underline-offset: 3px; }
.term__in { display: flex; align-items: center; gap: 10px; padding: 12px 18px 16px; font-family: var(--f-mono); font-size: clamp(.7rem, .64rem + .22vw, .84rem); font-stretch: 87.5%; }
.term__ps1 { color: var(--accent); white-space: nowrap; }
.term__input { flex: 1; min-width: 0; background: transparent; border: 0; outline: none; caret-color: var(--accent); padding: 6px 0; font-family: inherit; font-size: inherit; letter-spacing: .01em; }
.term__chips { display: flex; flex-wrap: wrap; gap: 8px; padding: 0 18px 18px; }
.chip { padding: 8px 12px; border-radius: 999px; border: 1px solid var(--line); font-family: var(--f-mono); font-size: .625rem; font-stretch: 87.5%; letter-spacing: .05em; text-transform: uppercase; transition: background-color .3s, color .3s, border-color .3s; }
.chip:hover, .chip:focus-visible { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.shell__grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 24px; align-items: start; }
.shell__aside { grid-column: 1 / span 4; display: grid; gap: 18px; color: var(--muted); max-width: 38ch; }
.shell__aside p:first-child { font-size: var(--fs-lead); color: var(--fg); line-height: 1.2; letter-spacing: -.015em; font-weight: 500; }
.shell__grid .term { grid-column: 5 / span 8; min-width: 0; }

/* ---------- contact / footer ---------- */
.foot { position: relative; overflow: clip; padding-top: var(--section); }
.foot__stripe { position: absolute; top: 0; left: 0; right: 0; }
.foot__inner { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 28px 24px; }
.foot__inner > .eyebrow { grid-column: 1 / -1; }
.foot__title {
  grid-column: 1 / span 10;
  font-family: var(--f-display);
  font-weight: 860;
  font-stretch: 64%;
  font-size: clamp(3rem, 1.4rem + 7vw, 9.5rem);
  line-height: .84;
  text-transform: uppercase;
  text-wrap: balance;
}
.foot__title em { text-transform: none; font-size: .92em; letter-spacing: -.01em; }
.foot__mail { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; padding-block: 24px; border-block: 1px solid var(--line); margin-top: 12px; }
.foot__addr {
  font-family: var(--f-display);
  font-weight: 700;
  font-stretch: 88%;
  font-size: clamp(1.25rem, .7rem + 2.6vw, 3.4rem);
  line-height: 1;
  overflow-wrap: anywhere;
  user-select: all;
  min-width: 0;
}
.foot__mail .btn { margin-left: auto; }
.foot__links { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 10px 28px; }
.foot__links a { display: inline-flex; gap: 8px; align-items: baseline; font-size: 1.05rem; font-weight: 500; }
.foot__links a span.mono { color: var(--muted); }
.foot__mark { position: relative; margin-top: clamp(48px, 10vh, 120px); padding-inline: var(--gutter); overflow: clip; }
.foot__word {
  display: block;
  font-family: var(--f-display);
  font-weight: 880;
  line-height: .74;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--accent);
  font-stretch: 100%;
  font-size: 20vw;
  transform-origin: 50% 100%;
  padding-top: .04em;
}
.foot__row { display: flex; justify-content: space-between; align-items: flex-end; }
.foot__row .ch { display: inline-block; }
.foot__bar { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 24px; padding-block: 18px calc(env(safe-area-inset-bottom, 0px) + 22px); border-top: 1px solid var(--line); color: var(--muted); }
.foot__bar a { color: var(--fg); }

/* ---------- cursor ---------- */
.cursor { position: fixed; left: 0; top: 0; z-index: 90; pointer-events: none; display: none; }
.has-cursor .cursor { display: block; opacity: 0; transition: opacity .3s; }
.has-cursor .cursor.is-on { opacity: 1; }
.cursor__dot {
  position: absolute;
  width: 34px; height: 34px;
  margin: -17px 0 0 -17px;
  border-radius: 50%;
  border: 1.5px solid var(--ink);
  box-shadow: 0 0 0 1px var(--yellow), inset 0 0 0 1px var(--yellow);
  transition: width .45s var(--ease-out), height .45s var(--ease-out), margin .45s var(--ease-out), background-color .3s;
}
.cursor__label {
  position: absolute;
  left: 14px; top: 12px;
  padding: 7px 11px;
  border-radius: 999px;
  background: var(--yellow);
  color: var(--ink);
  border: 1px solid var(--ink);
  font-family: var(--f-mono);
  font-size: .625rem;
  font-stretch: 87.5%;
  letter-spacing: .06em;
  text-transform: uppercase;
  white-space: nowrap;
  opacity: 0;
  transform: scale(.6);
  transform-origin: 0 0;
  transition: opacity .3s var(--ease-out), transform .4s var(--ease-out);
}
.cursor.is-label .cursor__label { opacity: 1; transform: none; }
.cursor.is-hover .cursor__dot { width: 60px; height: 60px; margin: -30px 0 0 -30px; background: var(--cursor-fill); }
.cursor.is-down .cursor__dot { width: 22px; height: 22px; margin: -11px 0 0 -11px; }
.cursor__label { left: 26px; top: 18px; }

/* ---------- toast ---------- */
.toast {
  position: fixed;
  left: 50%;
  bottom: calc(env(safe-area-inset-bottom, 0px) + 22px);
  z-index: 95;
  padding: 12px 18px;
  border-radius: 999px;
  background: var(--fg);
  color: var(--bg);
  font-family: var(--f-mono);
  font-size: var(--fs-label);
  font-stretch: 87.5%;
  letter-spacing: .06em;
  text-transform: uppercase;
  transform: translate(-50%, calc(100% + 48px));
  visibility: hidden;
  transition: transform .55s var(--ease-out), visibility 0s linear .55s;
  pointer-events: none;
}
.toast.is-on { transform: translate(-50%, 0); visibility: visible; transition: transform .55s var(--ease-out), visibility 0s; }

/* ---------- desktop pin layout for the work rail ---------- */
@media (min-width: 1024px) {
  .js-motion .work__pin { height: 100vh; height: 100svh; overflow: hidden; }
  .js-motion .work__mask { position: absolute; inset: 0; overflow: hidden; will-change: clip-path; }
  .js-motion .work__track { display: flex; height: 100%; width: max-content; will-change: transform; }
  .js-motion .panel { flex: none; height: 100%; }
  .js-motion .panel--intro { width: 100vw; padding: 0 var(--gutter); }
  .js-motion .project { width: min(94vw, 2200px); padding: calc(var(--hdr) + 5vh) clamp(28px, 3.4vw, 64px) 5vh; border-top: 0; border-left: 1px solid var(--line); display: flex; flex-direction: column; justify-content: center; }
  .js-motion .panel--outro { width: min(64vw, 980px); padding: 0 clamp(28px, 5vw, 96px); border-top: 0; border-left: 1px solid var(--line); }
  .js-motion .project__grid { align-items: center; }
  .js-motion .project__title { font-size: min(clamp(3.4rem, 1rem + 6.2vw, 8.6rem), 12.5vh); }
  .js-motion .project { padding-top: max(84px, 10vh); padding-bottom: max(56px, 7vh); }
  .js-motion .work__progress { display: flex; }
}
.work__progress { display: none; position: absolute; left: var(--gutter); right: var(--gutter); bottom: 20px; z-index: 4; align-items: center; gap: 14px; color: var(--muted); pointer-events: none; }
.work__progress i { position: relative; flex: 1; height: 1px; background: var(--line); }
.work__progress i b { position: absolute; inset: 0; background: var(--fg); transform-origin: left center; transform: scaleX(0); }

/* short desktop screens: keep each project panel inside one viewport */
@media (min-width: 1024px) and (max-height: 900px) {
  .js-motion .project__info { gap: 14px; }
  .js-motion .project__kind { font-size: clamp(1.3rem, .9rem + 1vw, 1.9rem); }
  .js-motion .project__desc { font-size: .9375rem; line-height: 1.45; }
  .js-motion .project__list { gap: 6px; font-size: .875rem; line-height: 1.45; }
  .js-motion .project__visual { gap: 10px; }
  .js-motion .viz__body { padding: 12px 16px; }
  .js-motion .log { height: calc(1.8em * 6 + 24px); line-height: 1.8; padding-block: 12px; }
  .js-motion .project .btn { min-height: 46px; }
}
@media (min-width: 1024px) and (max-height: 760px) {
  .js-motion .project__list li:nth-child(3) { display: none; }
  .js-motion .flow { max-height: 34vh; }
}

/* ---------- responsive ---------- */
@media (max-width: 1180px) {
  .hero__intro { grid-column: 1 / span 7; }
  .spec { grid-column: 8 / span 5; grid-template-columns: minmax(0, 1fr); }
  .spec > div:nth-child(n+5) { display: none; }
}
@media (max-width: 1023px) {
  .hdr__nav { display: none; }
  .hdr__menu { display: inline-flex; }
  .project__info, .project__visual { grid-column: 1 / -1; }
  .code, .principles { grid-column: 1 / -1; }
  .shell__aside, .shell__grid .term { grid-column: 1 / -1; }
  .card__points { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 760px) {
  :root { --hdr: 60px; --radius: 18px; }
  .hdr__clock { display: none; }
  .hero__top { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .hero__intro, .spec { grid-column: 1 / -1; }
  .spec { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .spec > div:nth-child(n+5) { display: grid; }
  .hero__foot > span:nth-child(3) { display: none; }
  .sec-head { grid-template-columns: minmax(0, 1fr); }
  .sec-title, .sec-meta { grid-column: 1 / -1; }
  .sec-meta { justify-items: start; text-align: left; }
  .principle { grid-template-columns: minmax(0, 1fr); }
  .about__lead .eyebrow, .about__lead .manifesto { grid-column: 1 / -1; }
  .card { position: relative; top: auto; min-height: 0; }
  .card__head, .card__side { grid-column: 1 / -1; }
  .card__side { justify-self: start; text-align: left; }
  .card__top { flex-direction: column; gap: 4px; }
  .stamp { justify-self: start; width: 104px; }
  .tools__cat, .tools__list { grid-column: 1 / -1; }
  .foot__title { grid-column: 1 / -1; }
  .foot__mail .btn { margin-left: 0; }
  .log__row { grid-template-columns: 9ch 4.5ch minmax(0, 1fr); }
  .log__row > span:last-child { display: none; }
  .gantt__label { font-size: .5625rem; }
}
@media (max-width: 420px) {
  .theme__label { display: none; }
  .hdr__brand .status span:last-child { display: none; }
}

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .js .boot { display: none; }
  .status__dot::after { display: none; }
}
