/* michaeleshoo.com shared styles. Extracted from index.html 2026-11-02 so every page shares one design. */

/* cyrillic-ext */
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/assets/fonts/jetbrains-mono-500-cyrillic-ext.woff2") format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
/* cyrillic */
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/assets/fonts/jetbrains-mono-500-cyrillic.woff2") format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
/* greek */
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/assets/fonts/jetbrains-mono-500-greek.woff2") format('woff2');
  unicode-range: U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF;
}
/* vietnamese */
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/assets/fonts/jetbrains-mono-500-vietnamese.woff2") format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
/* latin-ext */
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/assets/fonts/jetbrains-mono-500-latin-ext.woff2") format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/assets/fonts/jetbrains-mono-500-latin.woff2") format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* vietnamese */
@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/fonts/space-grotesk-vietnamese.woff2") format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
/* latin-ext */
@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/fonts/space-grotesk-latin-ext.woff2") format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/fonts/space-grotesk-latin.woff2") format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* vietnamese */
@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/assets/fonts/space-grotesk-vietnamese.woff2") format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
/* latin-ext */
@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/assets/fonts/space-grotesk-latin-ext.woff2") format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/assets/fonts/space-grotesk-latin.woff2") format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* vietnamese */
@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/assets/fonts/space-grotesk-vietnamese.woff2") format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
/* latin-ext */
@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/assets/fonts/space-grotesk-latin-ext.woff2") format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/assets/fonts/space-grotesk-latin.woff2") format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* vietnamese */
@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/assets/fonts/space-grotesk-vietnamese.woff2") format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
/* latin-ext */
@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/assets/fonts/space-grotesk-latin-ext.woff2") format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/assets/fonts/space-grotesk-latin.woff2") format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

  /* ---------- tokens ---------- */
  :root {
    --bg:        oklch(0.18 0.004 80);
    --bg-2:      oklch(0.21 0.005 80);
    --surface:   oklch(0.23 0.006 80);
    --line:      oklch(0.40 0.006 80 / 0.5);
    --line-soft: oklch(0.40 0.006 80 / 0.22);

    --fg:        oklch(0.96 0.005 90);
    --fg-2:      oklch(0.78 0.008 90);
    --fg-3:      oklch(0.58 0.010 90);
    --fg-4:      oklch(0.46 0.010 90);

    --accent:    oklch(0.80 0.075 165);
    --accent-2:  oklch(0.62 0.060 165);
    --accent-dim: oklch(0.80 0.075 165 / 0.16);

    --maxw: 1180px;
    --gutter: clamp(22px, 5vw, 72px);
    --rail: 168px;

    --disp: "Space Grotesk", ui-sans-serif, system-ui, sans-serif;
    --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

    --ease: cubic-bezier(.2,.7,.2,1);
  }

  * { box-sizing: border-box; }
  html, body { margin: 0; padding: 0; }
  html { scroll-behavior: smooth; }
  @media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

  body {
    font-family: var(--disp);
    font-weight: 400;
    color: var(--fg-2);
    background: var(--bg);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    overflow-x: hidden;
  }

  /* grain */
  body::before {
    content: "";
    position: fixed; inset: 0;
    pointer-events: none; z-index: 1;
    opacity: 0.035; mix-blend-mode: overlay;
    background-image: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0naHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmcnIHdpZHRoPScxNjAnIGhlaWdodD0nMTYwJz48ZmlsdGVyIGlkPSduJz48ZmVUdXJidWxlbmNlIHR5cGU9J2ZyYWN0YWxOb2lzZScgYmFzZUZyZXF1ZW5jeT0nMC45JyBudW1PY3RhdmVzPScyJyBzdGl0Y2hUaWxlcz0nc3RpdGNoJy8+PGZlQ29sb3JNYXRyaXggdmFsdWVzPScwIDAgMCAwIDEgIDAgMCAwIDAgMSAgMCAwIDAgMCAxICAwIDAgMCAwLjkgMCcvPjwvZmlsdGVyPjxyZWN0IHdpZHRoPScxMDAlJyBoZWlnaHQ9JzEwMCUnIGZpbHRlcj0ndXJsKCUyM24pJy8+PC9zdmc+");
  }

  ::selection { background: var(--accent-dim); color: var(--fg); }
  a { color: inherit; text-decoration: none; }
  :focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 2px; }

  /* ---------- emphasis vocabulary (replaces serif-italic + bold) ---------- */
  /* 1 — annotation underline on key phrases */
  .key {
    color: var(--fg);
    position: relative;
    white-space: nowrap;
  }
  .key::after {
    content: "";
    position: absolute; left: 0; right: 0; bottom: -2px;
    height: 1.5px;
    background: var(--accent);
    opacity: 0.85;
  }
  /* 2 — bracketed mono tag for categorical terms */
  .tag {
    font-family: var(--mono);
    font-size: 0.72em;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--accent);
    white-space: nowrap;
    vertical-align: 0.06em;
  }
  .tag::before { content: "[ "; color: var(--accent-2); }
  .tag::after  { content: " ]"; color: var(--accent-2); }

  /* ---------- layout ---------- */
  .wrap {
    max-width: var(--maxw);
    margin: 0 auto;
    padding-left: var(--gutter);
    padding-right: var(--gutter);
    position: relative; z-index: 2;
  }

  .mono { font-family: var(--mono); }

  /* mono micro-label */
  .ml {
    font-family: var(--mono);
    font-size: 11px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--fg-4);
  }



  /* ---------- nav ---------- */
  .nav {
    position: fixed; top: 0; left: 0; right: 0; z-index: 50;
    padding: 16px var(--gutter);
    display: flex; align-items: center; justify-content: space-between; gap: 24px;
    border-bottom: 1px solid transparent;
    transition: background .35s var(--ease), backdrop-filter .35s var(--ease), border-color .35s var(--ease);
  }
  .nav.is-stuck {
    background: oklch(0.18 0.004 80 / 0.72);
    backdrop-filter: saturate(140%) blur(16px);
    -webkit-backdrop-filter: saturate(140%) blur(16px);
    border-bottom-color: var(--line-soft);
  }
  .brand {
    display: inline-flex; align-items: center; gap: 12px;
    font-family: var(--mono); font-weight: 500; font-size: 13px;
    letter-spacing: 0.08em; color: var(--fg); text-transform: uppercase;
  }
  .brand .id {
    display: inline-grid; place-items: center;
    width: 26px; height: 26px;
    border: 1px solid var(--line);
    color: var(--fg); font-size: 11px; letter-spacing: 0;
  }
  .brand-name { display: none; }
  @media (min-width: 520px) { .brand-name { display: inline; } }

  .nav-right { display: flex; align-items: center; gap: clamp(16px, 2.6vw, 30px); }
  .nav-links { display: none; gap: clamp(16px, 2.6vw, 30px); }
  @media (min-width: 720px) { .nav-links { display: flex; } }
  .nav-links a {
    font-family: var(--mono); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase;
    color: var(--fg-3); transition: color .25s var(--ease); position: relative;
  }
  .nav-links a:hover { color: var(--fg); }
  .nav-links a::before { content: ""; }

  .clock {
    font-family: var(--mono); font-size: 12px; letter-spacing: 0.04em;
    color: var(--fg-4); display: none; align-items: center; gap: 9px;
  }
  @media (min-width: 980px) { .clock { display: inline-flex; } }
  .clock .dot {
    width: 6px; height: 6px; border-radius: 50%; background: var(--accent);
    box-shadow: 0 0 0 0 var(--accent-dim);
    animation: pulse 2.6s ease-out infinite;
  }
  @keyframes pulse {
    0%   { box-shadow: 0 0 0 0 oklch(0.80 0.075 165 / 0.5); }
    70%  { box-shadow: 0 0 0 8px oklch(0.80 0.075 165 / 0); }
    100% { box-shadow: 0 0 0 0 oklch(0.80 0.075 165 / 0); }
  }
  @media (prefers-reduced-motion: reduce) { .clock .dot { animation: none; } }

  /* ---------- hero ---------- */
  .hero {
    position: relative; overflow: hidden;
    padding-top: clamp(132px, 20vh, 200px);
    padding-bottom: clamp(64px, 11vh, 120px);
  }
  /* technical dot-grid + restrained glow (replaces blurry orb) */
  .hero-bg {
    position: absolute; inset: 0; z-index: 0; pointer-events: none;
    background-image:
      radial-gradient(circle at 78% 8%, oklch(0.55 0.06 165 / 0.18) 0%, oklch(0.2 0.01 80 / 0) 42%),
      radial-gradient(oklch(0.62 0.02 165 / 0.16) 1px, transparent 1.4px);
    background-size: auto, 30px 30px;
    background-position: center, -1px -1px;
    -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 55%, transparent 100%);
    mask-image: linear-gradient(180deg, #000 0%, #000 55%, transparent 100%);
    opacity: 0.85;
  }

  .hero-coord {
    display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
    margin-bottom: 40px;
  }
  .hero-coord .ml { color: var(--fg-3); }
  .hero-coord .bar { width: 26px; height: 1px; background: var(--line); }

  .hero-h1 {
    font-family: var(--disp);
    font-weight: 500;
    color: var(--fg-2);
    font-size: clamp(38px, 6.6vw, 92px);
    line-height: 1.04;
    letter-spacing: -0.025em;
    margin: 0;
    max-width: 16ch;
    text-wrap: balance;
  }
  .hero-h1 .key { color: var(--fg); }

  /* spec table */
  .spec {
    margin-top: clamp(44px, 7vh, 76px);
    display: grid; grid-template-columns: 1fr; gap: 0;
    max-width: 640px;
    border-top: 1px solid var(--line-soft);
  }
  .spec-row {
    display: flex; align-items: baseline; gap: 14px;
    padding: 14px 0;
    border-bottom: 1px solid var(--line-soft);
  }
  .spec-row .k {
    font-family: var(--mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase;
    color: var(--fg-4); flex: none; width: 84px;
  }
  .spec-row .dots {
    flex: 1; align-self: stretch; min-width: 16px;
    border-bottom: 1px dotted var(--line);
    transform: translateY(-4px);
    opacity: 0.6;
  }
  .spec-row .v {
    font-family: var(--mono); font-size: 13.5px; color: var(--fg); letter-spacing: 0.01em; text-align: right;
  }
  .spec-row .v .sub { color: var(--fg-3); }

  /* ---------- section scaffold ---------- */
  section { position: relative; z-index: 2; }
  .section {
    padding-top: clamp(72px, 11vh, 128px);
    padding-bottom: clamp(72px, 11vh, 128px);
  }
  .sec-head {
    display: flex; align-items: center; gap: 18px;
    margin-bottom: clamp(40px, 7vh, 72px);
  }
  .sec-head .idx {
    font-family: var(--mono); font-size: 12px; letter-spacing: 0.1em; color: var(--accent);
    flex: none;
  }
  .sec-head .name {
    font-family: var(--mono); font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase;
    color: var(--fg-3); flex: none;
  }
  .sec-head .rule { flex: 1; height: 1px; background: var(--line-soft); }

  .grid2 {
    display: grid; grid-template-columns: 1fr; gap: 40px;
  }
  @media (min-width: 880px) {
    .grid2 { grid-template-columns: var(--rail) 1fr; gap: clamp(40px, 6vw, 88px); }
  }

  /* sticky rail aside */
  .rail { align-self: start; }
  @media (min-width: 880px) { .rail { position: sticky; top: 108px; } }
  .rail .ml { display: block; margin-bottom: 18px; }
  .rail-meta { display: grid; gap: 16px; }
  .rail-meta .pair { display: grid; gap: 4px; }
  .rail-meta .pk { font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--fg-4); }
  .rail-meta .pv { font-family: var(--mono); font-size: 13px; color: var(--fg); }

  /* ---------- about ---------- */
  .lead {
    font-family: var(--disp);
    font-weight: 400;
    color: var(--fg);
    font-size: clamp(23px, 2.9vw, 36px);
    line-height: 1.28;
    letter-spacing: -0.015em;
    margin: 0 0 1.1em;
    max-width: 22ch;
    text-wrap: balance;
  }
  .body p {
    font-size: clamp(15.5px, 1.25vw, 17px);
    line-height: 1.62;
    color: var(--fg-2);
    margin: 0 0 1.1em;
    max-width: 56ch;
  }
  .body p:last-child { margin-bottom: 0; }

  /* statement block — the "make it boring" line, as a framed spec note */
  .note {
    margin-top: 40px;
    border: 1px solid var(--line-soft);
    border-left: 2px solid var(--accent);
    padding: 22px 26px;
    max-width: 56ch;
    background: linear-gradient(180deg, oklch(0.21 0.005 80 / 0.7), oklch(0.19 0.005 80 / 0.4));
  }
  .note .ml { display: block; margin-bottom: 10px; color: var(--accent-2); }
  .note p {
    margin: 0;
    font-family: var(--disp);
    font-size: clamp(17px, 1.7vw, 21px);
    line-height: 1.4;
    color: var(--fg);
    letter-spacing: -0.01em;
  }

  /* ---------- contact ---------- */
  .contact-h {
    font-family: var(--disp);
    font-weight: 500;
    color: var(--fg);
    font-size: clamp(36px, 5.6vw, 76px);
    letter-spacing: -0.03em;
    line-height: 1.02;
    margin: 0 0 6px;
  }
  .contact-sub {
    font-family: var(--mono); font-size: 13px; color: var(--fg-3); letter-spacing: 0.02em;
    margin: 0 0 40px; max-width: 40ch; line-height: 1.6;
  }

  .channels { display: grid; gap: 0; border-top: 1px solid var(--line-soft); max-width: 720px; }
  .channel {
    display: grid;
    grid-template-columns: 90px 1fr auto;
    align-items: center;
    gap: 18px;
    padding: 22px 4px;
    border-bottom: 1px solid var(--line-soft);
    transition: padding-left .3s var(--ease);
  }
  .channel:hover { padding-left: 14px; }
  .channel .c-k {
    font-family: var(--mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--fg-4);
  }
  .channel .c-v {
    font-family: var(--disp); font-size: clamp(18px, 2vw, 24px); color: var(--fg); letter-spacing: -0.01em;
    transition: color .3s var(--ease);
  }
  .channel:hover .c-v { color: var(--accent); }
  .channel .c-go {
    font-family: var(--mono); font-size: 12px; color: var(--fg-4);
    display: inline-flex; align-items: center; gap: 8px; letter-spacing: 0.06em;
    transition: color .3s var(--ease);
  }
  .channel:hover .c-go { color: var(--accent); }
  .channel .c-go svg { transition: transform .3s var(--ease); }
  .channel:hover .c-go svg { transform: translate(3px, -3px); }
  @media (max-width: 560px) {
    .channel { grid-template-columns: 1fr auto; gap: 8px 14px; }
    .channel .c-k { grid-column: 1 / -1; }
  }

  /* ---------- footer ---------- */
  footer {
    border-top: 1px solid var(--line-soft);
    padding: 30px var(--gutter);
    display: flex; flex-direction: column; gap: 12px;
    align-items: flex-start; justify-content: space-between;
    font-family: var(--mono); font-size: 11px; letter-spacing: 0.06em;
    color: var(--fg-4); text-transform: uppercase;
    position: relative; z-index: 2;
  }
  @media (min-width: 720px) { footer { flex-direction: row; align-items: center; } }
  footer .l { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
  footer .sep { color: var(--line); }
  footer a:hover { color: var(--fg-2); }

  /* ---------- reveal ---------- */
  .reveal { opacity: 0; transform: translateY(12px); transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: var(--rd, 0ms); will-change: transform, opacity; }
  .reveal.in { opacity: 1; transform: none; }
  /* hard failsafe — shows content instantly when the render timeline is paused (print, background iframe, export) */
  .reveal.now { opacity: 1 !important; transform: none !important; transition: none !important; }
  @media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

  /* ================================================================
     Projects + writing (added 2026-11-02)
     ================================================================ */

  .nav-links a[aria-current="page"] { color: var(--fg); }
  /* phones: keep Projects + Writing reachable; About/Contact and the § numbers drop out */
  @media (max-width: 719px) {
    .nav-links { display: flex; gap: 18px; }
    .nav-links a { font-size: 11px; }
    .nav-links a.opt, .nav-links .nn { display: none; }
  }

  /* section intro under a sec-head */
  .sec-intro {
    font-size: clamp(16px, 1.35vw, 18px); line-height: 1.6; color: var(--fg-2);
    max-width: 60ch; margin: 0 0 clamp(32px, 5vh, 52px);
  }
  .sec-more {
    display: inline-flex; align-items: center; gap: 8px; margin-top: 28px;
    font-family: var(--mono); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase;
    color: var(--fg-3); transition: color .25s var(--ease);
  }
  .sec-more:hover { color: var(--accent); }

  /* ---------- work list: one row per project or article ---------- */
  .work { display: grid; border-top: 1px solid var(--line-soft); }
  .work-row {
    display: grid; grid-template-columns: 1fr; gap: 10px;
    padding: 28px 4px; border-bottom: 1px solid var(--line-soft);
    transition: padding-left .3s var(--ease);
  }
  @media (min-width: 760px) {
    .work-row { grid-template-columns: 150px 1fr auto; gap: 28px; align-items: baseline; }
  }
  a.work-row:hover { padding-left: 14px; }
  .work-row .w-k { font-family: var(--mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--fg-4); }
  .work-row .w-t {
    display: block; font-size: clamp(20px, 2.2vw, 27px); color: var(--fg); letter-spacing: -0.015em; line-height: 1.2;
    transition: color .3s var(--ease);
  }
  a.work-row:hover .w-t { color: var(--accent); }
  .work-row .w-d { display: block; margin-top: 8px; font-size: 15.5px; line-height: 1.55; color: var(--fg-3); max-width: 62ch; }
  .work-row .w-go { font-family: var(--mono); font-size: 12px; color: var(--fg-4); letter-spacing: 0.06em; white-space: nowrap; }
  a.work-row:hover .w-go { color: var(--accent); }
  .work-row.is-soon .w-t { color: var(--fg-3); }

  /* principles list */
  .principles { display: grid; gap: 0; border-top: 1px solid var(--line-soft); max-width: 760px; }
  .principle { display: grid; grid-template-columns: 44px 1fr; gap: 14px; padding: 20px 0; border-bottom: 1px solid var(--line-soft); }
  .principle .n { font-family: var(--mono); font-size: 12px; color: var(--accent); padding-top: 4px; }
  .principle h3, .prose .principle h3 { margin: 0 0 6px; font-weight: 500; font-size: 19px; color: var(--fg); letter-spacing: -0.01em; }
  .principle p { margin: 0; font-size: 15.5px; line-height: 1.55; color: var(--fg-3); }

  /* ---------- sub-page header ---------- */
  .page-head { padding-top: clamp(120px, 17vh, 168px); padding-bottom: clamp(36px, 6vh, 64px); position: relative; }
  .crumbs { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 28px; }
  .crumbs a, .crumbs span { font-family: var(--mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--fg-4); }
  .crumbs a:hover { color: var(--fg-2); }
  .page-h1 {
    font-weight: 500; color: var(--fg); margin: 0; max-width: 20ch; text-wrap: balance;
    font-size: clamp(36px, 5.4vw, 72px); line-height: 1.05; letter-spacing: -0.025em;
  }
  .page-dek { margin: 22px 0 0; max-width: 58ch; font-size: clamp(17px, 1.6vw, 21px); line-height: 1.5; color: var(--fg-2); text-wrap: pretty; }

  /* ---------- article ---------- */
  .article { padding-bottom: clamp(72px, 11vh, 128px); }
  .prose { max-width: 66ch; min-width: 0; }
  .prose > * + * { margin-top: 1.05em; }
  .prose p, .prose li { font-size: clamp(16px, 1.3vw, 17.5px); line-height: 1.68; color: var(--fg-2); }
  .prose strong { color: var(--fg); font-weight: 500; }
  .prose a { color: var(--fg); border-bottom: 1px solid var(--accent-2); transition: border-color .2s var(--ease), color .2s var(--ease); }
  .prose a:hover { color: var(--accent); border-color: var(--accent); }
  .prose h2 {
    margin: 2.4em 0 0; padding-top: 1.1em; border-top: 1px solid var(--line-soft);
    font-weight: 500; font-size: clamp(24px, 2.5vw, 32px); line-height: 1.2; letter-spacing: -0.02em; color: var(--fg);
  }
  .prose h2 .idx { display: block; margin-bottom: 10px; font-family: var(--mono); font-size: 12px; letter-spacing: 0.1em; color: var(--accent); font-weight: 500; }
  .prose h3 { margin-top: 1.9em; font-weight: 500; font-size: 20px; color: var(--fg); letter-spacing: -0.01em; }
  .prose ul, .prose ol { padding-left: 1.2em; }
  .prose li + li { margin-top: 0.35em; }
  .prose li::marker { color: var(--fg-4); }
  .prose code { font-family: var(--mono); font-size: 0.86em; color: var(--fg); background: var(--surface); padding: 1px 5px; border-radius: 3px; }
  .prose .note { margin-top: 1.8em; }

  /* tried / failed / worked list */
  .attempts { list-style: none; padding: 0 !important; display: grid; gap: 0; border-top: 1px solid var(--line-soft); }
  .attempts li { display: grid; grid-template-columns: 92px 1fr; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--line-soft); margin: 0 !important; }
  .attempts .r { font-family: var(--mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; padding-top: 5px; }
  .attempts .r.no { color: var(--fg-4); }
  .attempts .r.yes { color: var(--accent); }

  /* tables */
  .tbl-wrap { overflow-x: auto; margin-top: 1.4em; border: 1px solid var(--line-soft); }
  .prose table { width: 100%; border-collapse: collapse; font-size: 15px; }
  .prose th, .prose td { text-align: left; vertical-align: top; padding: 12px 14px; border-bottom: 1px solid var(--line-soft); line-height: 1.5; }
  .prose th { font-family: var(--mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--fg-4); font-weight: 500; background: var(--bg-2); }
  .prose td { color: var(--fg-2); }
  .prose td:first-child { color: var(--fg); white-space: nowrap; }
  .prose tr:last-child td { border-bottom: 0; }

  /* warnings */
  .callout { border: 1px solid var(--line-soft); padding: 18px 22px; background: var(--bg-2); }
  .callout .ml { display: block; margin-bottom: 10px; color: var(--accent-2); }
  .callout ul { margin: 0; }

  /* prompt blocks */
  .prompt { margin-top: 1.3em; border: 1px solid var(--line); background: var(--surface); }
  .prompt-bar {
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    padding: 9px 14px; border-bottom: 1px solid var(--line-soft);
  }
  .prompt-bar .ml { color: var(--fg-3); }
  .copy {
    font: 500 11px/1 var(--mono); letter-spacing: 0.1em; text-transform: uppercase;
    color: var(--fg-3); background: none; border: 1px solid var(--line); padding: 7px 10px; cursor: pointer;
    transition: color .2s var(--ease), border-color .2s var(--ease);
  }
  .copy:hover { color: var(--accent); border-color: var(--accent-2); }
  .copy.done { color: var(--accent); border-color: var(--accent); }
  .prompt pre {
    margin: 0; padding: 16px 18px; white-space: pre-wrap; word-wrap: break-word;
    font-family: var(--mono); font-size: 13.5px; line-height: 1.65; color: var(--fg);
  }
  .prompt pre .fill { color: var(--accent); }
  .finding { margin-top: 0.9em !important; font-size: 15px !important; color: var(--fg-3) !important; }
  .finding strong { color: var(--fg-2); }

  /* in-page table of contents */
  .toc { display: grid; gap: 10px; }
  .toc a { font-family: var(--mono); font-size: 12px; letter-spacing: 0.04em; color: var(--fg-3); transition: color .2s var(--ease); }
  .toc a:hover { color: var(--accent); }

  @media print {
    body::before, .nav, footer, .copy { display: none !important; }
    body { background: #fff; color: #000; }
    .reveal { opacity: 1 !important; transform: none !important; }
  }
