/* bitnik — v1 "Cursor". One stylesheet, two palettes, one accent. */

/* ---------- Palettes (brand sheet) ---------- */
:root {
  color-scheme: dark;
  --bg: #0E1013;
  --surface: #1E2228;
  --line: #2A2F37;
  --line-strong: #6E7580;   /* field and button boundaries, 4.1:1 on the page */
  --text: #ECEAE4;
  --muted: #9AA0A8;
  --faint: #6E7580;         /* decorative glyphs only */
  --accent: #22C76A;        /* the cursor */

  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  --pad: clamp(20px, 4vw, 40px);
  --sec: clamp(56px, 8vw, 104px);
  --rail: 200px;
}
:root[data-theme="light"] {
  color-scheme: light;
  --bg: #F4F3EF;
  --surface: #EAE8E1;
  --line: #D9D6CD;
  --line-strong: #767C86;   /* 3.8:1 on the page */
  --text: #121417;
  --muted: #5A606A;
  --faint: #8A8F98;
  --accent: #188F4C;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--mono);
  font-size: 15px;
  line-height: 1.7;
  font-weight: 400;
  font-variant-ligatures: none;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-wrap: break-word;
}
@media (min-width: 900px) { body { font-size: 16px; } }

h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img { display: block; max-width: 100%; height: auto; }
button, input, textarea { font: inherit; color: inherit; }
button { background: none; border: 0; padding: 0; cursor: pointer; }

h1, h2, h3 { font-weight: 700; letter-spacing: -0.04em; line-height: 1.15; }
h1 { font-size: clamp(30px, 5.2vw, 56px); line-height: 1.08; }
h2 { font-size: clamp(22px, 2.7vw, 32px); }
h3 { font-size: 17px; line-height: 1.35; letter-spacing: -0.02em; }
p { max-width: 62ch; }

a { color: inherit; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.28em; text-decoration-color: var(--line-strong); }
a:hover { text-decoration-color: var(--accent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 3px; }
::selection { background: var(--text); color: var(--bg); }

.wrap { max-width: calc(1120px + 2 * var(--pad)); margin-inline: auto; padding-inline: var(--pad); }
.muted { color: var(--muted); }
.label { font-size: 13px; line-height: 1.6; color: var(--muted); text-transform: lowercase; font-weight: 400; letter-spacing: 0; }
.vh { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

.skip { position: absolute; left: var(--pad); top: -80px; z-index: 10; padding: 10px 14px; background: var(--text); color: var(--bg); text-decoration: none; border-radius: 3px; }
.skip:focus { top: 12px; }

/* ---------- The cursor ---------- */
.cursor {
  display: inline-block;
  width: 0.48em;
  height: 0.83em;
  margin-left: 0.14em;      /* 0.09em gap after the wordmark's own -0.05em tracking */
  background: var(--accent);
}
.cursor--blink { animation: blink 1.1s steps(1, end) infinite; }
@keyframes blink { 50% { opacity: 0; } }

.wordmark { display: inline-block; font-weight: 700; letter-spacing: -0.05em; line-height: 1; white-space: nowrap; color: var(--text); text-decoration: none; }

/* A static block: bullets and "you are here" marks. */
.blocks > li { position: relative; padding-left: 1.5em; }
.blocks > li::before { content: ""; position: absolute; left: 0; top: 0.48em; width: 0.48em; height: 0.83em; background: var(--accent); }
.blocks > li + li { margin-top: 0.55em; }

/* ---------- Header ---------- */
.bar { display: flex; flex-wrap: wrap; align-items: center; column-gap: 20px; min-height: 68px; border-bottom: 1px solid var(--line); }
.bar .wordmark { font-size: 24px; margin-right: auto; padding: 6px 0; }

.site-nav ul { display: flex; gap: 28px; }
.site-nav a { display: inline-block; padding: 8px 0; font-size: 14px; text-decoration-color: transparent; }
.site-nav a:hover { text-decoration-color: var(--accent); }
.site-nav a[aria-current]::after,
.foot-nav a[aria-current]::after { content: ""; display: inline-block; width: 0.48em; height: 0.83em; margin-left: 0.3em; background: var(--accent); vertical-align: -0.04em; }
.site-nav .only-menu { display: none; }

.theme-toggle { display: inline-flex; align-items: center; gap: 0.5em; min-height: 40px; padding: 0 2px; font-size: 13px; color: var(--muted); white-space: nowrap; }
html:not(.js) .theme-toggle { display: none; }
.tt-sep { color: var(--faint); }
:root:not([data-theme="light"]) .tt-dark, :root[data-theme="light"] .tt-light { color: var(--text); }
:root:not([data-theme="light"]) .tt-dark::before, :root[data-theme="light"] .tt-light::before { content: ""; display: inline-block; width: 0.48em; height: 0.83em; margin-right: 0.4em; background: var(--accent); vertical-align: -0.04em; }
.theme-toggle:hover .tt-opt { color: var(--text); }

.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 40px; padding: 8px 16px; border: 1px solid var(--text); border-radius: 3px; font-size: 14px; line-height: 1.3; font-weight: 500; text-decoration: none; color: var(--text); background: transparent; white-space: nowrap; }
.btn:hover { background: var(--text); color: var(--bg); }
.btn--solid { background: var(--text); color: var(--bg); min-height: 48px; padding: 12px 22px; font-size: 15px; }
.btn--solid:hover { background: transparent; color: var(--text); }

.menu-btn { display: none; min-height: 40px; padding: 8px 14px; border: 1px solid var(--line-strong); border-radius: 3px; font-size: 13px; line-height: 1.3; }

@media (min-width: 880px) {
  .bar { column-gap: 28px; min-height: 76px; }
}
@media (max-width: 359.98px) {
  .bar .wordmark { font-size: 21px; }
  .theme-toggle { font-size: 12px; }
  .menu-btn { padding-inline: 10px; }
}
@media (max-width: 879.98px) {
  .bar { column-gap: 12px; }
  .js .menu-btn { display: inline-flex; align-items: center; order: 3; }
  .theme-toggle { order: 2; }
  .cta-head { display: none; }
  .site-nav { order: 10; flex-basis: 100%; border-top: 1px solid var(--line); }
  .js .site-nav { display: none; }
  .js .site-nav.is-open { display: block; }
  .site-nav ul { display: block; }
  .site-nav li + li { border-top: 1px solid var(--line); }
  .site-nav a { display: block; padding: 15px 0; font-size: 16px; }
  .site-nav .only-menu { display: block; }
}

/* ---------- Sections ---------- */
.sec { padding-bottom: var(--sec); }
.sec::before { content: ""; display: block; height: 1px; margin: 0 max(var(--pad), calc((100% - 1120px) / 2)) var(--sec); background: var(--line); }
.sec--first::before { background: transparent; height: 0; }
.sec--flush { padding-bottom: 0; }
.sec-head { display: grid; gap: 6px; margin-bottom: clamp(28px, 4vw, 44px); }
.sec-head p { margin-top: 14px; color: var(--muted); }
.inset { min-width: 0; }
@media (min-width: 900px) {
  .sec-head { grid-template-columns: var(--rail) minmax(0, 1fr); gap: 0; align-items: baseline; }
  .sec-head > :not(.label) { grid-column: 2; }
  .inset { margin-left: var(--rail); }
}

.prompt { display: inline-block; padding: 6px 0; font-weight: 500; }
.prompt::before { content: "\276F"; display: inline-block; margin-right: 0.7em; color: var(--faint); text-decoration: none; }
.more { margin-top: 28px; }

/* ---------- Home hero ---------- */
.hero { padding-block: clamp(40px, 4.6vw, 64px) clamp(40px, 3.8vw, 52px); }
.hero h1 { font-size: inherit; letter-spacing: 0; line-height: inherit; font-weight: 400; }
.wordmark--hero { display: block; font-size: clamp(56px, 19vw, 150px); line-height: 0.92; }
.hero-line { display: block; margin-top: clamp(18px, 2.2vw, 26px); color: var(--muted); font-size: clamp(15px, 1.6vw, 20px); line-height: 1.5; }
.typed { display: inline-block; overflow: hidden; white-space: nowrap; vertical-align: bottom; max-width: 100%; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 4px 36px; margin-top: clamp(20px, 2.4vw, 30px); }
.home-work::before { margin-bottom: clamp(32px, 3vw, 36px); }
.home-work .sec-head { margin-bottom: 24px; }
@media (prefers-reduced-motion: no-preference) {
  .typed { width: calc(var(--n) * 1ch); animation: type 1s steps(var(--n), end) 0.35s both; }
  @keyframes type { from { width: 0; } }
}

/* ---------- Screenshot frames ---------- */
.frame { display: block; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: var(--surface); }
.frame img { width: 100%; height: auto; }
.frame--laptop { aspect-ratio: 16 / 10; }
.frame--scroll { aspect-ratio: 16 / 10; overflow-y: auto; scrollbar-width: thin; scrollbar-color: var(--line-strong) var(--surface); }
.frame--phone { width: min(300px, 100%); aspect-ratio: 780 / 1688; }

.tag { display: inline-block; padding: 5px 7px; border: 1px solid var(--line); border-radius: 3px; font-size: 12px; line-height: 1; color: var(--muted); text-transform: lowercase; white-space: nowrap; font-weight: 400; letter-spacing: 0; }

/* ---------- The work index ---------- */
.index { position: relative; }
.index > li { border-top: 1px solid var(--line); }
.index > li:last-child { border-bottom: 1px solid var(--line); }
.row { display: grid; grid-template-columns: 2.4em minmax(0, 1fr) auto 1.2em; column-gap: 14px; align-items: start; padding: 20px 0 18px; text-decoration: none; }
.row-shot { grid-column: 1 / -1; margin-bottom: 16px; }
.row-cap { display: none; }
.row-num { color: var(--muted); font-size: 13px; padding-top: 0.25em; }
.row-name { font-size: 17px; font-weight: 500; letter-spacing: -0.02em; line-height: 1.35; }
.row-meta { margin-top: 3px; font-size: 13px; color: var(--muted); max-width: none; }
.row-meta span { white-space: nowrap; }
@media (max-width: 959.98px) { .row-meta span { display: block; white-space: normal; } .row-meta .sep { display: none; } }
.row .tag { margin-top: 2px; }
.row-arrow { color: var(--muted); text-align: right; }
.row:hover .row-arrow, .row:focus-visible .row-arrow { color: var(--text); }
.row:focus-visible { outline-offset: 0; }

@media (min-width: 600px) and (max-width: 959.98px) {
  .row { grid-template-columns: 240px 2.4em minmax(0, 1fr) auto 1.2em; column-gap: 16px; align-items: center; }
  .row-shot { grid-column: 1; margin: 0; }
}
@media (min-width: 960px) {
  .index { --pv: 420px; padding-right: calc(var(--pv) + 48px); min-height: calc(var(--pv) * 0.625 + 40px); }
  .row-shot { position: absolute; top: 0; right: 0; width: var(--pv); margin: 0; visibility: hidden; }
  .row-cap { display: block; margin-top: 10px; font-size: 12px; color: var(--muted); }
  .index > li.is-active .row-shot { visibility: visible; }
  .row:hover .row-shot, .row:focus-visible .row-shot { visibility: visible; z-index: 1; }
  .index > li.is-active .row-name::after,
  html:not(.js) .row:hover .row-name::after { content: ""; display: inline-block; width: 0.48em; height: 0.83em; margin-left: 0.4em; background: var(--accent); vertical-align: -0.04em; }
  .index > li.is-active .row-arrow { color: var(--text); }
}
@media (min-width: 1100px) { .index { --pv: 500px; padding-right: calc(var(--pv) + 56px); } }

.note { margin-top: 28px; font-size: 13px; color: var(--muted); }

/* ---------- Three directions (home) ---------- */
.tri { display: grid; gap: 40px; }
.tri-k { display: flex; align-items: baseline; gap: 0.8em; margin-top: 16px; }
.tri h3 { margin-top: 2px; }
.tri-d { margin-top: 6px; color: var(--muted); font-size: 14px; }
.tri-c { margin-top: 10px; font-size: 12px; color: var(--muted); }
@media (min-width: 600px) and (max-width: 899.98px) {
  .tri > li { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 28px; align-items: center; }
  .tri-k { margin-top: 0; }
}
@media (min-width: 900px) { .tri { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; } }
.shown { max-width: none; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin-top: 36px; padding-top: 18px; border-top: 1px solid var(--line); font-size: 14px; }
.shown .muted { font-size: 13px; }
.shown a { margin-left: auto; }
@media (max-width: 599.98px) { .shown a { margin-left: 0; flex-basis: 100%; } }

/* ---------- Ruled lists: spec, steps, principles ---------- */
.spec-row, .steps > li { display: grid; gap: 4px 28px; padding: 18px 0; border-top: 1px solid var(--line); }
.spec-row:last-child, .steps > li:last-child { border-bottom: 1px solid var(--line); }
.spec dt { position: relative; padding-left: 1.5em; font-weight: 500; }
.spec dt::before { content: ""; position: absolute; left: 0; top: 0.46em; width: 0.48em; height: 0.83em; background: var(--accent); }
.spec dd { color: var(--muted); max-width: 62ch; }
.steps .num { color: var(--muted); font-size: 13px; padding-top: 0.2em; }
.steps p { color: var(--muted); }
@media (max-width: 719.98px) {
  .spec dd { padding-left: 1.5em; }
  .steps > li { grid-template-columns: 2.4em minmax(0, 1fr); }
  .steps p { grid-column: 2; }
}
@media (min-width: 720px) {
  .spec-row { grid-template-columns: minmax(0, 17em) minmax(0, 1fr); }
  .steps > li { grid-template-columns: 2.4em minmax(0, 15.5em) minmax(0, 1fr); }
}

.names { display: grid; gap: 0 32px; border-bottom: 1px solid var(--line); }
.names li { position: relative; padding: 13px 0 13px 1.5em; border-top: 1px solid var(--line); }
.names li::before { content: ""; position: absolute; left: 0; top: calc(13px + 0.46em); width: 0.48em; height: 0.83em; background: var(--accent); }
@media (min-width: 720px) { .names { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---------- Page heads ---------- */
.page-head { padding-block: clamp(44px, 7vw, 88px) clamp(40px, 6vw, 72px); }
.page-head h1 { margin-top: 12px; max-width: 20em; }
.lede { margin-top: 22px; font-size: clamp(16px, 1.5vw, 18px); color: var(--muted); }
.crumbs { display: flex; flex-wrap: wrap; gap: 0 0.7em; }
.crumbs a { display: inline-block; padding: 4px 0; }
.crumbs li + li::before { content: "/"; margin-right: 0.7em; color: var(--faint); }
.meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin-top: 18px; color: var(--muted); font-size: 14px; }
.meta .dot { color: var(--faint); }

/* ---------- Case page ---------- */
.case-intro { display: grid; gap: 32px 56px; margin-top: clamp(32px, 5vw, 56px); padding-top: clamp(24px, 3vw, 32px); border-top: 1px solid var(--line); }
.case-intro .summary { font-size: clamp(16px, 1.5vw, 18px); max-width: 34em; }
.case-intro .label { margin-bottom: 10px; }
@media (min-width: 900px) { .case-intro { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); } }

.dir-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 24px; padding: 10px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
html:not(.js) .dir-bar { display: none; }
.tabs { display: flex; align-items: center; gap: 0.5em; margin-left: -4px; font-size: 20px; }
.tabs .sep, .view .sep { color: var(--faint); }
.tab { min-height: 44px; padding: 0 4px; font-size: 20px; font-weight: 700; letter-spacing: -0.04em; color: var(--muted); }
.tab:hover { color: var(--text); }
.tab[aria-selected="true"] { color: var(--text); }
.tab[aria-selected="true"]::after { content: ""; display: inline-block; width: 0.48em; height: 0.83em; margin-left: 0.14em; background: var(--accent); }
.view { display: flex; align-items: center; gap: 0.5em; font-size: 13px; }
.view button { min-height: 44px; padding: 0 2px; color: var(--muted); }
.view button[aria-pressed="true"] { color: var(--text); }
.view button[aria-pressed="true"]::before { content: ""; display: inline-block; width: 0.48em; height: 0.83em; margin-right: 0.4em; background: var(--accent); vertical-align: -0.04em; }
.view button:hover { color: var(--text); }

.dir { display: grid; gap: 28px 56px; padding-block: clamp(28px, 4vw, 48px); border-top: 1px solid var(--line); }
.js .dir { border-top: 0; }
.dir[hidden] { display: none; }
.dir:focus-visible { outline-offset: -2px; }
.dir h3 { margin-top: 6px; font-size: clamp(24px, 2.8vw, 34px); letter-spacing: -0.04em; line-height: 1.12; }
.tone { margin-top: 12px; color: var(--muted); }
.dir .blocks { margin-top: 26px; font-size: 14px; max-width: 46ch; }
.shots { display: grid; gap: 28px; min-width: 0; }
.shot { min-width: 0; }
.hint { margin-top: 10px; font-size: 12px; color: var(--muted); }
[data-view="laptop"] .shot--phone, [data-view="phone"] .shot--laptop { display: none; }
@media (min-width: 900px) {
  .dir { grid-template-columns: minmax(0, 0.52fr) minmax(0, 1fr); align-items: start; }
}

.pager { display: grid; border-top: 1px solid var(--line); }
.pager a { display: block; padding: 22px 0; text-decoration: none; }
.pager a + a { border-top: 1px solid var(--line); }
.pager .label { display: block; }
.pager .name { font-weight: 500; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.28em; text-decoration-color: var(--line-strong); }
.pager a:hover .name { text-decoration-color: var(--accent); }
@media (min-width: 720px) {
  .pager { grid-template-columns: 1fr 1fr; }
  .pager a + a { border-top: 0; border-left: 1px solid var(--line); padding-left: 28px; text-align: right; }
}

/* ---------- FAQ ---------- */
.faq { border-top: 1px solid var(--line); }
.faq:last-of-type { border-bottom: 1px solid var(--line); }
.faq summary { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 20px; align-items: baseline; padding: 18px 0; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary h3 { font-weight: 500; }
.faq[open] summary h3::after { content: ""; display: inline-block; width: 0.48em; height: 0.83em; margin-left: 0.4em; background: var(--accent); vertical-align: -0.04em; }
.faq-mark { color: var(--muted); }
.faq-mark::before { content: "+"; }
.faq[open] .faq-mark::before { content: "\2212"; }
.faq-a { padding: 0 0 22px; color: var(--muted); }

/* ---------- Closing call to action ---------- */
.cta h2 { max-width: 24em; }
.cta-mail { display: inline-block; margin-top: clamp(24px, 3.4vw, 40px); font-size: clamp(24px, 6.6vw, 64px); font-weight: 700; letter-spacing: -0.05em; line-height: 1.1; text-decoration-thickness: 2px; text-underline-offset: 0.16em; }
.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 28px; margin-top: clamp(24px, 3vw, 36px); }
.cta-row .muted a { display: inline-block; padding: 4px 0; color: var(--text); }

/* ---------- About ---------- */
.prose p + p { margin-top: 1.1em; }
.prose h2 { margin: 2.2em 0 0.6em; font-size: clamp(19px, 2vw, 22px); }
.prose h2:first-child { margin-top: 0; }
.prose .blocks { margin: 1em 0; max-width: 62ch; }
.prose { color: var(--muted); }
.prose h2, .prose a, .prose strong { color: var(--text); }
.prose strong { font-weight: 500; }

/* ---------- Contact ---------- */
.reach { border-bottom: 1px solid var(--line); }
.reach > div { display: grid; gap: 2px; padding: 18px 0; border-top: 1px solid var(--line); }
.reach dd { font-size: clamp(24px, 6.6vw, 48px); font-weight: 700; letter-spacing: -0.05em; line-height: 1.15; }
.reach dd a { text-decoration-thickness: 2px; text-underline-offset: 0.16em; }
@media (min-width: 900px) {
  .reach > div { grid-template-columns: var(--rail) minmax(0, 1fr); align-items: baseline; padding: 22px 0; }
}

.form { display: grid; gap: 22px 28px; max-width: 720px; }
.form[hidden] { display: none; }
.field { display: grid; gap: 7px; min-width: 0; align-content: start; }
.field label { font-size: 13px; color: var(--muted); text-transform: lowercase; }
.field .opt { color: var(--muted); }
.field input, .field textarea { width: 100%; padding: 12px 14px; font-size: 16px; line-height: 1.5; background: transparent; border: 1px solid var(--line-strong); border-radius: 3px; }
.field textarea { min-height: 9.5em; resize: vertical; }
.field input:focus-visible, .field textarea:focus-visible { outline-offset: 1px; border-color: var(--text); }
.field [aria-invalid="true"] { border-color: var(--text); border-width: 2px; padding: 11px 13px; }
.err { font-size: 13px; color: var(--text); max-width: none; }
.err::before { content: "! "; font-weight: 700; }
.err[hidden] { display: none; }
.form-foot { display: grid; gap: 16px; justify-items: start; }
.form-foot p { font-size: 13px; color: var(--muted); }
.sent { padding: 26px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); max-width: 720px; }
.sent h3 { font-size: clamp(22px, 2.6vw, 30px); letter-spacing: -0.04em; }
.sent h3::after { content: ""; display: inline-block; width: 0.48em; height: 0.83em; margin-left: 0.14em; background: var(--accent); }
.sent p { margin-top: 10px; color: var(--muted); }
.sent[hidden] { display: none; }
@media (min-width: 720px) {
  .form { grid-template-columns: 1fr 1fr; }
  .field--full, .form-foot { grid-column: 1 / -1; }
}

/* ---------- Footer ---------- */
.site-foot { margin-top: 0; }
.foot { display: grid; gap: 36px 40px; padding-block: clamp(44px, 6vw, 72px) 28px; border-top: 1px solid var(--line); font-size: 14px; }
.foot .wordmark { font-size: 28px; }
.foot-desc { margin-top: 12px; color: var(--muted); }
.foot li + li { margin-top: 4px; }
.foot a { display: inline-block; padding: 3px 0; }
.foot-nav a { text-decoration-color: transparent; }
.foot-nav a:hover { text-decoration-color: var(--accent); }
.foot-base { display: flex; flex-wrap: wrap; gap: 6px 24px; padding-block: 18px 36px; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); }
.foot-base .legal { display: flex; flex-wrap: wrap; gap: 6px 24px; }
.foot-base a { display: inline-block; padding: 3px 0; }
.foot-base .legal { margin-left: auto; }
.foot-concept { padding-block: 16px; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); max-width: none; }
@media (min-width: 720px) {
  .foot { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1.2fr) minmax(0, 0.8fr); }
}
@media (max-width: 479.98px) { .foot-base .legal { margin-left: 0; } }

/* ---------- Motion ---------- */
@media (prefers-reduced-motion: reduce) {
  .cursor--blink { animation: none; }
  .typed { animation: none; width: auto; }
  * { scroll-behavior: auto !important; }
}

@media print {
  .site-header .theme-toggle, .menu-btn, .dir-bar { display: none !important; }
  .dir[hidden] { display: grid !important; }
}

/* Without JavaScript the menu is simply open; give the wordmark row its normal height. */
@media (max-width: 879.98px) { html:not(.js) .bar .wordmark { padding-block: 20px; } }
