@font-face{font-family:"IBM Plex Mono";src:url("/assets/fonts/ibm-plex-mono-400-normal-ext.woff2") format("woff2");font-style:normal;font-weight:400;font-display:swap;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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF}
@font-face{font-family:"IBM Plex Mono";src:url("/assets/fonts/ibm-plex-mono-400-normal.woff2") format("woff2");font-style:normal;font-weight:400;font-display:swap;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}
@font-face{font-family:"IBM Plex Mono";src:url("/assets/fonts/ibm-plex-mono-500-normal-ext.woff2") format("woff2");font-style:normal;font-weight:500;font-display:swap;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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF}
@font-face{font-family:"IBM Plex Mono";src:url("/assets/fonts/ibm-plex-mono-500-normal.woff2") format("woff2");font-style:normal;font-weight:500;font-display:swap;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}
@font-face{font-family:"IBM Plex Sans";src:url("/assets/fonts/ibm-plex-sans-italic-ext.woff2") format("woff2");font-style:italic;font-weight:400;font-display:swap;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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF}
@font-face{font-family:"IBM Plex Sans";src:url("/assets/fonts/ibm-plex-sans-italic.woff2") format("woff2");font-style:italic;font-weight:400;font-display:swap;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}
@font-face{font-family:"IBM Plex Sans";src:url("/assets/fonts/ibm-plex-sans-normal-ext.woff2") format("woff2");font-style:normal;font-weight:400 600;font-display:swap;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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF}
@font-face{font-family:"IBM Plex Sans";src:url("/assets/fonts/ibm-plex-sans-normal.woff2") format("woff2");font-style:normal;font-weight:400 600;font-display:swap;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}
@font-face{font-family:"Newsreader Display";src:url("/assets/fonts/newsreader-display-italic-ext.woff2") format("woff2");font-style:italic;font-weight:400;font-display:swap;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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF}
@font-face{font-family:"Newsreader Display";src:url("/assets/fonts/newsreader-display-italic.woff2") format("woff2");font-style:italic;font-weight:400;font-display:swap;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}
@font-face{font-family:"Newsreader Display";src:url("/assets/fonts/newsreader-display-normal-ext.woff2") format("woff2");font-style:normal;font-weight:400;font-display:swap;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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF}
@font-face{font-family:"Newsreader Display";src:url("/assets/fonts/newsreader-display-normal.woff2") format("woff2");font-style:normal;font-weight:400;font-display:swap;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}
/* -----------------------------------------------------------
   portfolio.css - the visual system.

   Ivory paper with a faint dot grid, black ink, hairlines and one
   copper accent kept for live signals, owner contributions and
   focus. Newsreader Display sets the editorial headings, IBM Plex
   Sans the reading text, IBM Plex Mono captions, figure numbers
   and technical data. Content is always visible without
   JavaScript; motion is an enhancement switched on by the
   "motion" class on <html>.
   ----------------------------------------------------------- */

/* ------------------------------------------------ tokens */
:root {
  color-scheme: light;
  --paper: #f8f7f3;
  --paper-2: #f1efe8;
  --paper-3: #e8e5dc;
  --ink: #121211;
  --ink-2: #34332f;
  --muted: #5e5c56;
  --line: #e1ded5;
  --line-2: #c8c4b9;
  --dot: rgba(18, 18, 17, .1);
  --accent: #a24f1c;
  --accent-2: #c4682c;
  --accent-soft: rgba(162, 79, 28, .1);

  --serif: "Newsreader Display", "Newsreader", Georgia, "Times New Roman", serif;
  --sans: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --max: 1240px;
  --gutter: clamp(20px, 4.4vw, 56px);
  --measure: 40rem;
  --sec: clamp(80px, 10vw, 152px);
  --header-h: 64px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --radius: 2px;
}

/* ------------------------------------------------ base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: 24px; }
body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background-color: var(--paper);
  background-image: radial-gradient(circle, var(--dot) .85px, transparent 1.25px);
  background-size: 22px 22px;
  background-position: 11px 11px;
  font: 400 16.5px/1.62 var(--sans);
  font-kerning: normal;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-wrap: break-word;
}
@media (min-width: 1024px) { body { font-size: 17px; } html { scroll-padding-top: calc(var(--header-h) + 24px); } }

img, svg, canvas, video { display: block; max-width: 100%; }
img { height: auto; }
p, h1, h2, h3, h4, ul, ol, dl, dd, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 400; line-height: 1.08; letter-spacing: -.015em; text-wrap: balance; color: var(--ink); }
h1 em, h2 em, h3 em { font-style: italic; letter-spacing: -.02em; }
p { text-wrap: pretty; }
p + p { margin-top: 1em; }
strong, b { font-weight: 600; }
small { font-size: inherit; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .22em; transition: color .18s ease, text-decoration-color .18s ease; }
a:hover { color: var(--accent); }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; -webkit-tap-highlight-color: transparent; }
a { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
::selection { background: var(--ink); color: var(--paper); }
[hidden] { display: none !important; }
hr { border: 0; border-top: 1px solid var(--line); margin: 0; }
code, kbd, samp { font-family: var(--mono); font-size: .9em; }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; top: 10px; left: 12px; z-index: 100; padding: 10px 16px; background: var(--ink); color: var(--paper); text-decoration: none; font-size: 14px; transform: translateY(-160%); }
.skip-link:focus { transform: none; }

.container { width: min(var(--max), 100% - 2 * var(--gutter)); margin-inline: auto; }

/* Monospace label, the voice of captions and data. */
.mono, .kicker { font-family: var(--mono); font-size: 12px; line-height: 1.5; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }

/* ------------------------------------------------ header */
.site-header { position: relative; z-index: 40; background: rgba(248, 247, 243, .92); border-bottom: 1px solid var(--line); }
@supports ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
  .site-header { background: rgba(248, 247, 243, .8); -webkit-backdrop-filter: saturate(1.1) blur(12px); backdrop-filter: saturate(1.1) blur(12px); }
}
@media (min-width: 1024px) { .site-header { position: sticky; top: 0; } }

.header__row { display: flex; align-items: center; gap: 12px 20px; min-height: var(--header-h); flex-wrap: wrap; }
.brand { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; text-decoration: none; white-space: nowrap; color: var(--ink); }
.brand:hover { color: var(--ink); }
.brand__mark { display: grid; grid-template-columns: repeat(3, 3px); gap: 2px; }
.brand__mark i { width: 3px; height: 3px; background: var(--ink); border-radius: 50%; }
.brand__mark i:nth-child(5) { background: var(--accent); }
.brand__mark i:nth-child(2), .brand__mark i:nth-child(8) { opacity: .35; }
.brand__name { font-family: var(--serif); font-size: 21px; letter-spacing: -.01em; line-height: 1; }

.desktop-nav { margin-left: auto; }
.desktop-nav > ul { display: flex; align-items: center; gap: 2px; }
.desktop-nav a { display: flex; align-items: center; min-height: 44px; padding: 0 10px; font-size: 14.5px; line-height: 1.2; color: var(--ink-2); text-decoration: none; white-space: nowrap; }
.desktop-nav a:hover { color: var(--ink); }
.desktop-nav a[aria-current="page"] { color: var(--ink); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 7px; }
.desktop-nav a[href="/career.html"] { margin-left: 6px; padding: 0 14px; min-height: 36px; border: 1px solid var(--ink); border-radius: var(--radius); color: var(--ink); }
.desktop-nav a[href="/career.html"]:hover { background: var(--ink); color: var(--paper); }
.desktop-nav a[href="/career.html"][aria-current="page"] { background: var(--ink); color: var(--paper); text-decoration: none; }

.leadership-nav { position: relative; }
.leadership-entry { display: flex; align-items: center; }
.leadership-entry > a { padding-right: 2px; }
.leadership-toggle { display: grid; place-items: center; width: 32px; height: 44px; padding: 0; border: 0; background: none; color: var(--muted); }
.leadership-toggle svg { transition: transform .2s var(--ease); }
.leadership-toggle[aria-expanded="true"] svg { transform: rotate(180deg); }
.leadership-toggle:hover { color: var(--ink); }
.leadership-submenu { position: absolute; top: calc(100% + 6px); left: 0; min-width: 240px; padding: 8px; background: var(--paper); border: 1px solid var(--line-2); box-shadow: 0 18px 40px -24px rgba(18, 18, 17, .35); }
.leadership-submenu a { min-height: 44px; padding: 0 12px; font-size: 14.5px; }
.leadership-submenu a:hover { background: var(--paper-2); }

.header-search { display: flex; align-items: center; height: 40px; border: 1px solid var(--line-2); border-radius: var(--radius); background: var(--paper); }
.header-search:focus-within { border-color: var(--ink); }
.header-search input { width: 150px; height: 100%; min-width: 0; padding: 0 0 0 12px; border: 0; background: transparent; font-size: 14px; outline: none; }
.header-search input::placeholder { color: var(--muted); opacity: 1; }
.header-search input::-webkit-search-cancel-button { -webkit-appearance: none; }
.header-search button { display: grid; place-items: center; width: 40px; height: 100%; padding: 0; border: 0; background: none; color: var(--ink-2); }
.header-search button:hover { color: var(--accent); }
.header-search:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 2px; }

.menu-toggle { display: none; align-items: center; gap: 10px; min-height: 44px; margin-left: auto; padding: 0 14px; border: 1px solid var(--ink); border-radius: var(--radius); background: transparent; font-size: 14px; }
.menu-toggle__icon { position: relative; width: 14px; height: 9px; }
.menu-toggle__icon::before, .menu-toggle__icon::after { content: ""; position: absolute; left: 0; right: 0; height: 1.5px; background: currentColor; transition: transform .2s var(--ease), top .2s var(--ease); }
.menu-toggle__icon::before { top: 0; }
.menu-toggle__icon::after { top: 7.5px; }
.menu-toggle[aria-expanded="true"] .menu-toggle__icon::before { top: 3.75px; transform: rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-toggle__icon::after { top: 3.75px; transform: rotate(-45deg); }

.mobile-menu { border-top: 1px solid var(--line); padding: 8px 0 24px; }
.mobile-menu__list > li { border-bottom: 1px solid var(--line); }
.mobile-menu__list a { display: flex; align-items: center; min-height: 52px; text-decoration: none; font-family: var(--serif); font-size: 26px; line-height: 1.1; }
.mobile-menu__list a[aria-current="page"]::after { content: ""; width: 7px; height: 7px; margin-left: 12px; background: var(--accent); border-radius: 50%; }
.mobile-submenu { padding: 0 0 12px 18px; border-left: 1px solid var(--line-2); margin: 0 0 12px 4px; }
.mobile-submenu a { min-height: 44px; font-family: var(--sans); font-size: 16px; color: var(--ink-2); }

/* 1024 to 1179: the search field shortens so one row still fits. */
@media (max-width: 1179px) { .header-search input { width: 104px; } .desktop-nav a { padding: 0 8px; font-size: 14px; } }
/* 761 to 1023: brand and search on the first row, the six links on a second row. */
@media (max-width: 1023px) {
  .desktop-nav { order: 3; flex-basis: 100%; margin: 0 calc(-1 * 8px); border-top: 1px solid var(--line); }
  .desktop-nav > ul { flex-wrap: wrap; }
  .header-search { margin-left: auto; }
  .header-search input { width: 180px; }
}
/* Phones: one menu button; the search joins the open menu. */
@media (max-width: 760px) {
  .desktop-nav { display: none; }
  .menu-toggle { display: inline-flex; }
  .header-search { display: none; order: 4; flex-basis: 100%; margin: 4px 0 12px; height: 44px; }
  .header-search input { flex: 1; width: auto; font-size: 16px; }
  .site-header.is-open .header-search, .site-header.is-search .header-search { display: flex; }
  .brand__name { font-size: 20px; }
}
@media (min-width: 761px) { .mobile-menu { display: none !important; } }

/* ------------------------------------------------ breadcrumb */
.crumbs { padding-top: 28px; }
.crumbs ol { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 0; font-family: var(--mono); font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.crumbs li { display: flex; align-items: center; }
.crumbs li + li::before { content: "/"; margin: 0 10px; color: var(--line-2); }
.crumbs a { display: inline-flex; align-items: center; min-height: 32px; text-decoration: none; }
.crumbs a:hover { color: var(--ink); text-decoration: underline; }
.crumbs [aria-current] { color: var(--ink-2); }

/* ------------------------------------------------ hero */
.hero { padding: clamp(36px, 6vw, 88px) 0 clamp(56px, 8vw, 120px); }
.hero__grid { display: grid; gap: 48px; align-items: start; }
.hero--figure .hero__grid { grid-template-columns: minmax(0, 1fr); }
@media (min-width: 1024px) {
  .hero--figure .hero__grid { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(40px, 5vw, 80px); align-items: center; }
}
.hero__copy { max-width: 820px; }
.hero__top { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin-bottom: 28px; }
.hero__kicker { font-family: var(--mono); font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.hero__title { font-size: clamp(40px, 6vw, 80px); line-height: 1.0; letter-spacing: -.022em; }
.hero__lead { max-width: 36rem; margin-top: 28px; font-size: clamp(18px, 1.6vw, 21px); line-height: 1.5; color: var(--ink-2); }
.hero__facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); margin-top: 40px; border-top: 1px solid var(--ink); }
.hero__facts > div { padding: 14px 18px 0 0; }
.hero__facts dt { font-family: var(--mono); font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.hero__facts dd { margin-top: 4px; font-size: 15.5px; line-height: 1.4; color: var(--ink); overflow-wrap: anywhere; }
.hero .actions { margin-top: 36px; }
.hero__figure { min-width: 0; }
/* Under 1024 px the figure follows the title rather than the whole introduction,
   and a portrait-format image is cropped square so the text stays close. */
@media (max-width: 1023px) {
  .hero--figure .hero__grid { gap: 0; }
  .hero--figure .hero__copy { display: contents; }
  .hero--figure .hero__copy > * { order: 4; }
  .hero--figure .hero__copy > :is(.hero__top, .identity) { order: 1; }
  .hero--figure .hero__copy > .hero__title { order: 2; }
  .hero--figure .hero__figure { order: 3; margin-top: 28px; }
  .hero .fig--portrait img { aspect-ratio: 1 / 1; object-fit: cover; object-position: 50% 20%; }
}

/* Home hero */
.home-hero { padding: clamp(40px, 7vw, 104px) 0 clamp(48px, 7vw, 104px); }
.home-hero .hero__grid { grid-template-columns: minmax(0, 1fr); }
@media (min-width: 1024px) { .home-hero .hero__grid { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(40px, 5vw, 88px); align-items: center; } }
.home-hero .hero__title { font-size: clamp(42px, 5.6vw, 82px); line-height: .98; }
.home-hero .hero__title em { display: block; margin-top: .08em; color: var(--ink-2); }
.identity { display: flex; align-items: center; gap: 16px; margin-bottom: 36px; }
.identity__portrait { flex: none; width: 64px; height: 78px; overflow: hidden; border: 1px solid var(--line-2); background: var(--paper-2); }
.identity__portrait img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 22%; }
.identity__name { font-family: var(--serif); font-size: 22px; line-height: 1.1; }
.identity__meta { margin-top: 4px; font-family: var(--mono); font-size: 12px; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); line-height: 1.55; }
.identity__meta a { text-decoration: none; }
.identity__meta a:hover { text-decoration: underline; }
.profiles { display: flex; flex-wrap: wrap; gap: 4px 20px; margin-top: 22px; }
.profiles a { display: inline-flex; align-items: center; min-height: 32px; font-family: var(--mono); font-size: 12.5px; letter-spacing: .06em; text-transform: uppercase; text-decoration: none; color: var(--ink-2); }
.profiles a:hover { color: var(--accent); }

/* ------------------------------------------------ sections */
.sec { padding: var(--sec) 0 0; }
.sec:last-child { padding-bottom: var(--sec); }
.sec__head { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; margin-bottom: clamp(32px, 4vw, 56px); padding-top: 18px; border-top: 1px solid var(--ink); }
@media (min-width: 768px) {
  .sec__head { grid-template-columns: 72px minmax(0, 1fr) auto; align-items: baseline; gap: 0 16px; }
  .sec__lead { grid-column: 2 / 3; }
}
.sec__num { font-family: var(--mono); font-size: 12px; letter-spacing: .06em; color: var(--muted); }
.sec__title { font-size: clamp(32px, 3.8vw, 52px); line-height: 1.04; }
.sec__link { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; font-family: var(--mono); font-size: 12.5px; letter-spacing: .06em; text-transform: uppercase; text-decoration: none; color: var(--ink-2); white-space: nowrap; }
.sec__link:hover { color: var(--accent); }
.sec__lead { max-width: var(--measure); margin-top: 6px; font-size: 18px; line-height: 1.5; color: var(--ink-2); }
.sec__body > * + * { margin-top: clamp(28px, 3.4vw, 44px); }
.sec__body > .block-title + * { margin-top: 0; }
main > .container > .sec:first-child { padding-top: clamp(16px, 2vw, 32px); }

/* Sub-block inside a section */
.block-title { font-family: var(--mono); font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); font-weight: 400; margin-bottom: 14px; }
h3.block-title { line-height: 1.5; letter-spacing: .06em; }

/* ------------------------------------------------ text */
.prose { max-width: var(--measure); color: var(--ink-2); }
.prose strong { color: var(--ink); }
.prose a, .note a, .facts a, .kv a, .card__text a { text-decoration-color: var(--line-2); }
.prose a:hover, .note a:hover, .facts a:hover, .kv a:hover { text-decoration-color: currentColor; }
.lead { max-width: var(--measure); font-size: clamp(18px, 1.5vw, 20px); line-height: 1.5; color: var(--ink-2); }
.note { max-width: var(--measure); font-size: 14.5px; line-height: 1.55; color: var(--muted); }
.note--rule { padding-left: 14px; border-left: 2px solid var(--line-2); }
.quote { max-width: 46rem; font-family: var(--serif); font-size: clamp(24px, 2.4vw, 32px); line-height: 1.25; }

/* ------------------------------------------------ facts (spec tables) */
.facts { max-width: 920px; border-top: 1px solid var(--line-2); }
.facts > div { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2px; padding: 14px 0 15px; border-bottom: 1px solid var(--line); }
@media (min-width: 640px) { .facts > div { grid-template-columns: 200px minmax(0, 1fr); gap: 24px; } }
.facts dt { font-family: var(--mono); font-size: 12px; line-height: 1.9; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.facts dd { font-size: 16px; line-height: 1.55; color: var(--ink); }
.facts dd .st { margin-right: 8px; }
.facts-wrap > .block-title + .facts { margin-top: 0; }

/* Key-value list: a sentence-long label above its text */
.kv { max-width: 920px; display: grid; gap: 0; border-top: 1px solid var(--line-2); }
.kv > li { display: grid; grid-template-columns: minmax(0, 1fr); gap: 4px; padding: 16px 0; border-bottom: 1px solid var(--line); }
@media (min-width: 768px) { .kv > li { grid-template-columns: 240px minmax(0, 1fr); gap: 28px; } .kv--stack > li { grid-template-columns: minmax(0, 1fr); gap: 4px; } }
.kv b { font-weight: 600; font-size: 15.5px; line-height: 1.45; color: var(--ink); }
.kv span { color: var(--ink-2); font-size: 16px; line-height: 1.55; }

/* Chips */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; min-height: 30px; padding: 4px 11px; border: 1px solid var(--line-2); border-radius: 999px; font-family: var(--mono); font-size: 12px; letter-spacing: .02em; line-height: 1.3; color: var(--ink-2); background: var(--paper); }

/* Status: a shape and a word, never colour alone */
.st { display: inline-flex; align-items: center; gap: 8px; font-family: var(--mono); font-size: 12px; letter-spacing: .06em; text-transform: uppercase; line-height: 1.4; color: var(--ink-2); max-width: 100%; }
.st::before { content: ""; flex: none; width: 9px; height: 9px; border-radius: 50%; border: 1.5px solid currentColor; }
.st--done::before { background: var(--ink); border-color: var(--ink); }
.st--wip { color: var(--accent); }
.st--wip::before { background: linear-gradient(90deg, currentColor 50%, transparent 50%); }
.st--plan::before { border-style: dashed; }
.st--info::before { border-radius: 1px; width: 8px; height: 8px; }
.academic { display: inline-flex; align-items: center; min-height: 24px; padding: 0 9px; border: 1px solid var(--line-2); font-family: var(--mono); font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.status-line { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px; max-width: var(--measure); padding: 12px 0; border-top: 1px dashed var(--line-2); border-bottom: 1px dashed var(--line-2); }
.status-line > span:last-child { font-size: 15px; color: var(--ink-2); }

/* ------------------------------------------------ actions */
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 46px; padding: 0 20px; border: 1px solid var(--ink); border-radius: var(--radius); background: transparent; color: var(--ink); font-size: 15px; font-weight: 500; line-height: 1.2; text-decoration: none; white-space: nowrap; transition: background-color .18s ease, color .18s ease, border-color .18s ease; }
.btn:hover { color: var(--paper); background: var(--ink); }
.btn--primary, .btn--accent { background: var(--ink); color: var(--paper); }
.btn--primary:hover, .btn--accent:hover { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn--ghost { border-color: var(--line-2); }
.btn--ghost:hover { border-color: var(--ink); }
.btn--sm { min-height: 44px; padding: 0 16px; font-size: 14.5px; }
.btn__arrow { display: inline-block; transition: transform .2s var(--ease); }
.btn:hover .btn__arrow { transform: translate(2px, -2px); }
.btn__tag { font-family: var(--mono); font-size: 12px; letter-spacing: .06em; opacity: .75; }
@media (max-width: 420px) { .actions .btn { flex: 1 1 100%; } }

.text-link { display: inline-flex; align-items: center; gap: 8px; min-height: 32px; font-family: var(--mono); font-size: 12.5px; letter-spacing: .06em; text-transform: uppercase; text-decoration: none; color: var(--ink); }
.text-link::after { content: "\2197"; font-family: var(--sans); transition: transform .2s var(--ease); }
.text-link:hover { color: var(--accent); }
.text-link:hover::after { transform: translate(2px, -2px); }

.evidence { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; max-width: 920px; padding: 18px 0; border-top: 1px solid var(--line-2); border-bottom: 1px solid var(--line-2); }
@media (min-width: 768px) { .evidence { grid-template-columns: 200px minmax(0, 1fr); gap: 24px; align-items: baseline; } }
.evidence__label { font-family: var(--mono); font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.evidence__links { display: flex; flex-wrap: wrap; gap: 4px 24px; }
.evidence__links a { display: inline-flex; align-items: center; gap: 6px; min-height: 32px; font-size: 15.5px; text-decoration: underline; text-decoration-color: var(--line-2); }
.evidence__links a:hover { text-decoration-color: currentColor; }
.evidence__links a[target="_blank"]::after { content: "\2197"; font-size: .85em; color: var(--muted); }

.next-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: var(--sec); padding: 24px 0 var(--sec); border-top: 1px solid var(--ink); }
.next-row__label { flex-basis: 100%; margin-bottom: 4px; }

/* ------------------------------------------------ stats */
.stats { display: grid; grid-template-columns: minmax(0, 1fr); border-top: 1px solid var(--ink); }
@media (min-width: 768px) { .stats { grid-template-columns: repeat(var(--n, 3), minmax(0, 1fr)); } }
.stat { display: block; padding: 20px 24px 24px 0; text-decoration: none; color: inherit; border-bottom: 1px solid var(--line); }
@media (min-width: 768px) { .stat { border-bottom: 0; } .stat + .stat { padding-left: 24px; border-left: 1px solid var(--line); } }
.stat__value { display: block; font-family: var(--serif); font-size: clamp(56px, 6vw, 84px); line-height: .95; letter-spacing: -.03em; }
.stat__label { display: block; margin-top: 12px; font-size: 16px; font-weight: 500; line-height: 1.35; }
.stat__note { display: block; margin-top: 6px; font-family: var(--mono); font-size: 12px; letter-spacing: .04em; line-height: 1.5; color: var(--muted); }
a.stat:hover .stat__value { color: var(--accent); }
a.stat:hover .stat__label { text-decoration: underline; text-underline-offset: .22em; }

/* ------------------------------------------------ cards */
.cards { display: grid; grid-template-columns: minmax(0, 1fr); border-top: 1px solid var(--line-2); border-left: 1px solid var(--line-2); }
@media (min-width: 640px) { .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .cards--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.cards > li { display: flex; min-width: 0; border-right: 1px solid var(--line-2); border-bottom: 1px solid var(--line-2); background: var(--paper); }
.card { position: relative; display: flex; flex-direction: column; width: 100%; padding: clamp(20px, 2.2vw, 28px); text-decoration: none; color: inherit; transition: background-color .2s ease; }
.card:hover { color: inherit; background: #fbfaf7; }
.card__media { position: relative; margin: calc(-1 * clamp(20px, 2.2vw, 28px)) calc(-1 * clamp(20px, 2.2vw, 28px)) 22px; aspect-ratio: 16 / 10; overflow: hidden; background: var(--paper-2); border-bottom: 1px solid var(--line-2); }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.card__media--contain img { object-fit: contain; padding: 12px; }
.card__media--gfx { background: transparent; }
.card__media--gfx .gfx, .card__media--gfx .gfx__plate { position: absolute; inset: 0; height: 100%; aspect-ratio: auto; border: 0; background: none; }
.gfx--mini .gfx__plate::before, .gfx--mini .gfx__plate::after { display: none; }
.card:hover .card__media img { transform: scale(1.025); }
.card__media figcaption { position: absolute; left: 0; bottom: 0; padding: 4px 8px; background: var(--paper); font-family: var(--mono); font-size: 12px; letter-spacing: .04em; color: var(--muted); border-top: 1px solid var(--line-2); border-right: 1px solid var(--line-2); }
.card__kicker { font-family: var(--mono); font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.card__title { margin-top: 10px; font-size: clamp(24px, 2vw, 28px); line-height: 1.1; }
.card__text { margin-top: 12px; font-size: 15.5px; line-height: 1.55; color: var(--ink-2); }
.card__foot { display: inline-flex; align-items: center; gap: 8px; margin-top: auto; padding-top: 22px; font-family: var(--mono); font-size: 12.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--ink); }
.card__foot::after { content: "\2192"; font-family: var(--sans); transition: transform .2s var(--ease); }
.card:hover .card__foot { color: var(--accent); }
.card:hover .card__foot::after { transform: translateX(3px); }
.card:hover .card__title { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .14em; }

/* Records: professional experience rows */
.records { border-top: 1px solid var(--ink); }
.record { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; padding: 26px 0 28px; border-bottom: 1px solid var(--line-2); }
@media (min-width: 900px) { .record { grid-template-columns: 56px minmax(0, 5fr) minmax(0, 6fr); gap: 0 28px; } }
.record__num { font-family: var(--mono); font-size: 12px; letter-spacing: .06em; color: var(--muted); padding-top: 8px; }
.record__org { font-size: clamp(26px, 2.4vw, 32px); line-height: 1.08; }
.record__org a { text-decoration: none; }
.record__org a:hover { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .14em; color: inherit; }
.record__role { margin-top: 8px; font-size: 15.5px; font-weight: 500; }
.record__meta { margin-top: 4px; font-family: var(--mono); font-size: 12px; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); }
.record__text { font-size: 16px; line-height: 1.6; color: var(--ink-2); }
.record__result { display: inline-flex; align-items: center; gap: 10px; margin-top: 14px; font-family: var(--mono); font-size: 12.5px; letter-spacing: .04em; color: var(--ink); }
.record__result::before { content: ""; width: 18px; height: 1px; background: var(--accent); }
.record__links { margin-top: 10px; }

/* Timeline */
.timeline { border-top: 1px solid var(--line-2); }
.timeline > li { display: grid; grid-template-columns: minmax(0, 1fr); gap: 6px; padding: 20px 0; border-bottom: 1px solid var(--line); }
@media (min-width: 768px) { .timeline > li { grid-template-columns: 180px minmax(0, 1fr); gap: 28px; } }
.timeline .period { font-family: var(--mono); font-size: 12px; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); padding-top: 6px; }
.timeline h3 { font-size: 24px; line-height: 1.15; }
.timeline h3 a { text-decoration: none; }
.timeline h3 a:hover { text-decoration: underline; text-decoration-thickness: 1px; color: inherit; }
.timeline .role { margin-top: 4px; font-size: 15px; font-weight: 500; }
.timeline .role + p { margin-top: 6px; }
.timeline p:not(.period):not(.role) { color: var(--ink-2); font-size: 15.5px; }

/* Numbered points, three short claims */
.points { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0; border-top: 1px solid var(--line-2); }
@media (min-width: 768px) { .points { grid-template-columns: repeat(var(--n, 3), minmax(0, 1fr)); } }
.points > li { padding: 20px 24px 22px 0; border-bottom: 1px solid var(--line); }
@media (min-width: 768px) { .points > li { border-bottom: 0; } .points > li + li { padding-left: 24px; border-left: 1px solid var(--line); } }
.points__num { font-family: var(--mono); font-size: 12px; letter-spacing: .06em; color: var(--muted); }
.points h3 { margin-top: 12px; font-size: 24px; line-height: 1.15; }
.points p { margin-top: 8px; font-size: 15.5px; color: var(--ink-2); }

/* Upstream contributions */
.upstream { display: grid; grid-template-columns: minmax(0, 1fr); border-top: 1px solid var(--line-2); border-left: 1px solid var(--line-2); }
@media (min-width: 768px) { .upstream { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.upstream > li { display: flex; flex-direction: column; padding: 24px; border-right: 1px solid var(--line-2); border-bottom: 1px solid var(--line-2); background: var(--paper); }
.upstream__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 16px; }
.upstream h3 { font-size: 26px; line-height: 1.1; }
.pr-state { font-family: var(--mono); font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.upstream p { margin-top: 12px; font-size: 15.5px; color: var(--ink-2); }
.upstream .verification { font-size: 14.5px; color: var(--muted); }
.upstream .verification b { display: block; font-family: var(--mono); font-weight: 400; font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin-bottom: 2px; }
.upstream .text-link { margin-top: auto; padding-top: 16px; }

/* Contact block */
.contact { display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px; padding: clamp(36px, 5vw, 64px) 0; border-top: 1px solid var(--ink); border-bottom: 1px solid var(--ink); }
@media (min-width: 1024px) { .contact { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); align-items: end; } }
.contact h2 { font-size: clamp(36px, 4.6vw, 64px); line-height: 1.02; }
.contact p { margin-top: 14px; color: var(--ink-2); }
.contact-links { display: grid; border-top: 1px solid var(--line-2); }
.contact-links a { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 56px; border-bottom: 1px solid var(--line-2); text-decoration: none; font-size: 17px; }
.contact-links a::after { content: "\2197"; color: var(--muted); transition: transform .2s var(--ease); }
.contact-links a:hover::after { transform: translate(2px, -2px); color: var(--accent); }
.contact-links .mono { font-size: 12px; }

/* ------------------------------------------------ figures */
.fig { min-width: 0; }
.fig__frame { position: relative; display: block; border: 1px solid var(--line-2); background: var(--paper); overflow: hidden; }
.fig__frame img { width: 100%; }
.fig__frame a { display: block; }
.fig--narrow { max-width: 720px; }
.fig--contain .fig__frame img { max-height: 70vh; width: auto; margin-inline: auto; }
.fig figcaption, .gfx figcaption, .dg figcaption, .figcap { display: grid; grid-template-columns: minmax(0, 1fr); gap: 4px; margin-top: 12px; max-width: 46rem; }
.fig__no { font-family: var(--mono); font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--ink); }
.fig__no b { font-weight: 500; }
.fig__text { font-size: 14.5px; line-height: 1.5; color: var(--muted); }
.fig__open { justify-self: start; font-family: var(--mono); font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-2); text-decoration: none; min-height: 28px; display: inline-flex; align-items: center; }
.fig__open::after { content: " \2197"; white-space: pre; }
.fig__open:hover { color: var(--accent); }

/* Registration ticks on plates */
.ticks { position: relative; }
.ticks::before, .ticks::after { content: ""; position: absolute; width: 12px; height: 12px; pointer-events: none; z-index: 2; }
.ticks::before { top: -1px; left: -1px; border-top: 1px solid var(--ink); border-left: 1px solid var(--ink); }
.ticks::after { right: -1px; bottom: -1px; border-right: 1px solid var(--ink); border-bottom: 1px solid var(--ink); }

/* Galleries */
.gallery { display: grid; grid-template-columns: minmax(0, 1fr); gap: 32px 24px; }
@media (min-width: 640px) { .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .gallery--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.gallery .fig__frame { aspect-ratio: var(--ar, 4 / 3); }
.gallery .fig__frame a { position: absolute; inset: 0; }
.gallery .fig__frame img { width: 100%; height: 100%; object-fit: cover; }
.gallery .fig__frame--contain img { object-fit: contain; }
/* One column: each frame takes its photograph's own proportions. */
@media (max-width: 639px) { .gallery .fig__frame { aspect-ratio: var(--nat, var(--ar, 4 / 3)); } }

/* Two-column composition: text beside a figure */
.split { display: grid; grid-template-columns: minmax(0, 1fr); gap: 32px; align-items: start; }
@media (min-width: 1024px) {
  .split { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(36px, 5vw, 72px); }
  .split--rev { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); }
  .split--rev > :first-child { order: 2; }
  .split--center { align-items: center; }
}
.split > * > * + * { margin-top: 24px; }

/* Generative illustration plate */
.gfx { min-width: 0; }
.gfx__plate { position: relative; aspect-ratio: var(--ratio, 4 / 3); border: 1px solid var(--line-2); background: radial-gradient(120% 90% at 50% 40%, rgba(248, 247, 243, .9), rgba(248, 247, 243, .55)); overflow: hidden; touch-action: pan-y; }
.gfx__canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.gfx__axis { position: absolute; left: 12px; top: 10px; z-index: 1; font-family: var(--mono); font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); pointer-events: none; }
.gfx__scale { position: absolute; right: 12px; bottom: 10px; z-index: 1; font-family: var(--mono); font-size: 12px; letter-spacing: .06em; color: var(--muted); pointer-events: none; }
.gfx__label { position: absolute; z-index: 3; transform: translate(-50%, -100%); padding: 3px 8px; background: var(--ink); color: var(--paper); font-family: var(--mono); font-size: 12px; letter-spacing: .04em; white-space: nowrap; pointer-events: none; opacity: 0; transition: opacity .2s ease; }
.gfx__label.is-on { opacity: 1; }
.gfx__parts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.gfx__parts button { display: inline-flex; align-items: center; gap: 8px; min-height: 36px; padding: 0 12px; border: 1px solid var(--line-2); border-radius: 999px; background: var(--paper); font-family: var(--mono); font-size: 12px; letter-spacing: .04em; color: var(--ink-2); transition: border-color .18s ease, color .18s ease, background-color .18s ease; }
.gfx__parts button::before { content: ""; width: 6px; height: 6px; border-radius: 50%; border: 1px solid currentColor; }
.gfx__parts button:hover { border-color: var(--ink); color: var(--ink); }
.gfx__parts button[aria-pressed="true"] { border-color: var(--accent); color: var(--accent); background: var(--accent-soft); }
.gfx__parts button[aria-pressed="true"]::before { background: currentColor; }
.gfx__note { min-height: 1.5em; margin-top: 10px; font-size: 14.5px; line-height: 1.5; color: var(--ink-2); max-width: 46rem; }
.gfx__tabs { display: flex; flex-wrap: wrap; gap: 0; margin-top: 14px; border: 1px solid var(--line-2); width: max-content; max-width: 100%; }
.gfx__tabs button { min-height: 40px; padding: 0 14px; border: 0; border-right: 1px solid var(--line-2); background: var(--paper); font-family: var(--mono); font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.gfx__tabs button:last-child { border-right: 0; }
.gfx__tabs button:hover { color: var(--ink); }
.gfx__tabs button[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
html:not(.js) .gfx { display: none; }
html.js .gfx-fallback { display: none; }

/* Engineering diagrams, inline SVG */
.dg { min-width: 0; }
.dg__plate { position: relative; padding: clamp(10px, 1.6vw, 20px); border: 1px solid var(--line-2); background: var(--paper); }
.dg__svg { width: 100%; height: auto; overflow: visible; }
.dg__svg--tall { display: none; max-width: 560px; margin-inline: auto; }
.dg { container-type: inline-size; }
@container (max-width: 719px) {
  .dg__svg--wide.has-tall { display: none; }
  .dg__svg--tall { display: block; }
}
/* Edge shadows appear only where more of the diagram lies sideways. */
.dg__scroll {
  overflow-x: auto; overscroll-behavior-x: contain;
  background:
    linear-gradient(90deg, var(--paper) 40%, rgba(248, 247, 243, 0)) left / 28px 100% no-repeat local,
    linear-gradient(270deg, var(--paper) 40%, rgba(248, 247, 243, 0)) right / 28px 100% no-repeat local,
    radial-gradient(farthest-side at 0 50%, rgba(18, 18, 17, .18), rgba(18, 18, 17, 0)) left / 12px 100% no-repeat scroll,
    radial-gradient(farthest-side at 100% 50%, rgba(18, 18, 17, .18), rgba(18, 18, 17, 0)) right / 12px 100% no-repeat scroll;
}
.dg__scroll > .dg__svg { min-width: var(--minw, 0); }
.dg__bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 24px; margin-top: 14px; }
.dg__legend { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.dg__legend li { display: inline-flex; align-items: center; gap: 8px; font-family: var(--mono); font-size: 12px; letter-spacing: .03em; color: var(--muted); }
.dg__legend svg { width: 30px; height: 10px; overflow: visible; }
.dg__filters { display: flex; flex-wrap: wrap; gap: 6px; }
.dg__filters button { min-height: 32px; padding: 0 11px; border: 1px solid var(--line-2); border-radius: 999px; background: var(--paper); font-family: var(--mono); font-size: 12px; letter-spacing: .04em; color: var(--ink-2); }
.dg__filters button:hover { border-color: var(--ink); color: var(--ink); }
.dg__filters button[aria-pressed="true"] { border-color: var(--ink); background: var(--ink); color: var(--paper); }
.dg__note { min-height: 1.5em; margin-top: 8px; font-size: 14.5px; color: var(--ink-2); max-width: 46rem; }
.dg__note b { font-weight: 600; color: var(--ink); }

.dg-svg { font-family: var(--sans); }
.dg-svg text { fill: var(--ink); }
.dg-title { font-weight: 600; }
.dg-sub { fill: var(--muted) !important; }
.dg-tag { font-family: var(--mono); letter-spacing: .06em; fill: var(--muted) !important; }
.dg-node--mine .dg-tag { fill: var(--accent) !important; }
.dg-box { fill: var(--paper); stroke: var(--line-2); stroke-width: 1.2; transition: stroke .2s ease, fill .2s ease; }
.dg-node--mine .dg-box { stroke: var(--accent); stroke-width: 1.8; }
.dg-node--mine .dg-box-inner { fill: none; stroke: var(--accent); stroke-width: .8; opacity: .55; }
.dg-node--ext .dg-box { fill: transparent; stroke-dasharray: 5 4; }
.dg-node--planned .dg-box { fill: transparent; stroke: var(--muted); stroke-dasharray: 3 4; }
.dg-node--planned .dg-title { fill: var(--ink-2); }
.dg-node--zone .dg-box { fill: var(--paper-2); }
.dg-node--chip .dg-box { fill: var(--ink); stroke: var(--ink); }
.dg-node--chip .dg-title { fill: var(--paper); }
.dg-node--chip .dg-sub { fill: #c9c6bd !important; }
.dg-node { outline: none; }
.dg-node[tabindex] { cursor: pointer; }
.dg-node:focus-visible .dg-box { stroke: var(--accent); stroke-width: 2.6; }
.dg-group-box { fill: none; stroke: var(--line-2); stroke-width: 1; stroke-dasharray: 2 4; }
.dg-group-label { font-family: var(--mono); letter-spacing: .08em; fill: var(--muted) !important; }
.dg-edge { fill: none; stroke-linejoin: round; stroke-linecap: round; transition: opacity .25s ease, stroke-width .2s ease; }
.dg-edge--power { stroke: var(--accent); stroke-width: 2.6; }
.dg-edge--data { stroke: var(--ink); stroke-width: 1.6; }
.dg-edge--command { stroke: var(--ink); stroke-width: 1.6; stroke-dasharray: 7 5; stroke-linecap: butt; }
.dg-edge--radio { stroke: var(--ink); stroke-width: 1.8; stroke-dasharray: .1 5.5; }
.dg-edge--planned { stroke: var(--muted); stroke-width: 1.5; stroke-dasharray: 4 6; stroke-linecap: butt; }
.dg-edge--legacy { stroke: var(--line-2); stroke-width: 1.4; stroke-dasharray: 1 5; }
.dg-arrow--power { fill: var(--accent); }
.dg-arrow--data, .dg-arrow--command, .dg-arrow--radio { fill: var(--ink); }
.dg-arrow--planned { fill: var(--muted); }
.dg-arrow--legacy { fill: var(--line-2); }
.dg-label-bg { fill: var(--paper); }
.dg-label { font-family: var(--mono); letter-spacing: .02em; fill: var(--muted) !important; }
.dg-label--power { fill: var(--accent) !important; }
.dg-note { fill: var(--muted) !important; }
.dg-note--ink { fill: var(--ink) !important; }
.dg-note--accent { fill: var(--accent) !important; }
.dg-note--mono { font-family: var(--mono); letter-spacing: .05em; }
.dg-raw-line { fill: none; stroke: var(--ink); stroke-width: 1.4; }
.dg-raw-faint { fill: none; stroke: var(--line-2); stroke-width: 1; }
.dg-raw-accent { fill: none; stroke: var(--accent); stroke-width: 2; }
.dg-raw-fill { fill: var(--accent-soft); stroke: none; }
.dg-raw-dot { fill: var(--ink); }
.dg-pulse { fill: var(--paper); stroke-width: 2; pointer-events: none; }
.dg-pulse--power { stroke: var(--accent); fill: var(--accent); }
.dg-pulse--data, .dg-pulse--command, .dg-pulse--radio { stroke: var(--ink); fill: var(--ink); }
/* Highlighting: everything not connected steps back. */
.dg.is-focus .dg__plate .dg-edge:not(.is-on), .dg.is-focus .dg__plate .dg-elabel:not(.is-on) { opacity: .14; }
.dg.is-focus .dg__plate .dg-node:not(.is-on) { opacity: .32; }
.dg-node, .dg-elabel { transition: opacity .25s ease; }
.dg.is-focus .dg__plate .dg-edge.is-on { stroke-width: 3; }
.dg.is-focus .dg__plate .dg-edge--data.is-on, .dg.is-focus .dg__plate .dg-edge--command.is-on { stroke-width: 2.2; }
.dg.is-focus .dg-node.is-on .dg-box { stroke: var(--ink); }
.dg.is-focus .dg-node--mine.is-on .dg-box { stroke: var(--accent); }

/* ------------------------------------------------ disclosure */
.disclosure { max-width: 920px; border-top: 1px solid var(--line-2); border-bottom: 1px solid var(--line-2); }
.disclosure + .disclosure { border-top: 0; margin-top: 0 !important; }
.disclosure > summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 52px; padding: 8px 0; cursor: pointer; list-style: none; font-family: var(--mono); font-size: 12.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--ink); }
.disclosure > summary::-webkit-details-marker { display: none; }
.disclosure > summary::after { content: ""; flex: none; width: 11px; height: 11px; background: linear-gradient(currentColor, currentColor) center / 11px 1.5px no-repeat, linear-gradient(currentColor, currentColor) center / 1.5px 11px no-repeat; transition: transform .25s var(--ease); }
.disclosure[open] > summary::after { transform: rotate(45deg); }
.disclosure > summary:hover { color: var(--accent); }
.disclosure__body { padding: 4px 0 24px; }
.disclosure__body > * + * { margin-top: 18px; }

/* ------------------------------------------------ footer */
.site-footer { margin-top: var(--sec); padding: clamp(40px, 6vw, 72px) 0 40px; border-top: 1px solid var(--ink); background: var(--paper); }
.footer__grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 36px; }
@media (min-width: 900px) { .footer__grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); } }
.footer__sign { font-family: var(--serif); font-size: clamp(30px, 3.2vw, 44px); line-height: 1.05; }
.footer__sign em { display: block; color: var(--muted); }
.footer__nav { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 24px; align-content: start; }
@media (min-width: 640px) { .footer__nav { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.footer__nav a { display: flex; align-items: center; min-height: 44px; border-bottom: 1px solid var(--line); font-family: var(--mono); font-size: 12.5px; letter-spacing: .06em; text-transform: uppercase; text-decoration: none; color: var(--ink-2); }
.footer__nav a:hover { color: var(--accent); }
.footer__meta { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; margin-top: 48px; font-family: var(--mono); font-size: 12px; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); }
main + .site-footer { margin-top: 0; }

/* ------------------------------------------------ search page */
.search-page { padding-bottom: var(--sec); }
.search-status { max-width: var(--measure); padding: 14px 0; border-bottom: 1px solid var(--line-2); font-family: var(--mono); font-size: 12.5px; letter-spacing: .04em; color: var(--muted); }
.search-results { max-width: 860px; }
.search-results li { padding: 22px 0; border-bottom: 1px solid var(--line); }
.search-results h2 { font-size: 26px; line-height: 1.15; }
.search-results h2 a { text-decoration: none; }
.search-results h2 a:hover { text-decoration: underline; text-decoration-thickness: 1px; color: inherit; }
.search-results p { margin-top: 6px; color: var(--ink-2); font-size: 15.5px; }

/* ------------------------------------------------ math (teaching) */
.math-box { max-width: 920px; padding: 22px 24px; border: 1px solid var(--line-2); background: var(--paper); }
.math-box .katex-display { margin: 12px 0; overflow-x: auto; overflow-y: hidden; padding: 4px 0; }
.math-box > * + * { margin-top: 18px; }

/* ------------------------------------------------ motion */
/* Visible by default. Only html.motion (set by a head script when
   motion is allowed and IntersectionObserver exists) holds blocks
   back until they enter the viewport. */
.motion [data-reveal] { opacity: 0; transform: translate3d(0, 16px, 0); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.motion [data-reveal].is-in { opacity: 1; transform: none; }
.motion [data-stagger] > * { opacity: 0; transform: translate3d(0, 12px, 0); transition: opacity .7s var(--ease), transform .7s var(--ease); transition-delay: calc(var(--i, 0) * 70ms); }
.motion [data-stagger].is-in > * { opacity: 1; transform: none; }
.motion .dg__plate .dg-edge--power, .motion .dg__plate .dg-edge--data { stroke-dasharray: 1 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1.1s var(--ease), opacity .25s ease, stroke-width .2s ease; transition-delay: calc(var(--o, 0) * 90ms), 0s, 0s; }
.motion .dg.is-in .dg__plate .dg-edge--power, .motion .dg.is-in .dg__plate .dg-edge--data { stroke-dashoffset: 0; }
.motion .dg.is-drawn .dg__plate .dg-edge--power, .motion .dg.is-drawn .dg__plate .dg-edge--data { stroke-dasharray: none; transition: opacity .25s ease, stroke-width .2s ease; }
.motion .dg:not(.is-in) .dg__plate :is(.dg-edge--command, .dg-edge--radio, .dg-edge--planned, .dg-edge--legacy, .dg-elabel, .dg-arrow) { opacity: 0; }
.motion .dg__plate :is(.dg-edge--command, .dg-edge--radio, .dg-edge--planned, .dg-edge--legacy, .dg-elabel, .dg-arrow) { transition: opacity .6s ease .5s; }
.motion .dg.is-drawn .dg__plate :is(.dg-edge, .dg-elabel) { transition: opacity .25s ease, stroke-width .2s ease; }
.motion .dg:not(.is-in) .dg__plate .dg-node { opacity: 0; transform: translateY(6px); }
.motion .dg__plate .dg-node { transition: opacity .6s var(--ease), transform .6s var(--ease); transition-delay: calc(var(--o, 0) * 50ms); transform-box: fill-box; }
.motion .dg.is-drawn .dg__plate .dg-node { transition: opacity .25s ease; transition-delay: 0s; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0s !important; animation-duration: 0s !important; scroll-behavior: auto !important; }
  .motion [data-reveal], .motion [data-stagger] > * { opacity: 1 !important; transform: none !important; }
}

/* ------------------------------------------------ print */
@media print {
  body { background: #fff; font-size: 11pt; }
  .site-header, .site-footer nav, .menu-toggle, .gfx, .dg__bar, .skip-link, .next-row, .crumbs, .actions, .profiles { display: none !important; }
  [data-reveal], [data-stagger] > *, .dg-node, .dg-edge, .dg-elabel { opacity: 1 !important; transform: none !important; }
  .sec { padding-top: 24pt; break-inside: avoid-page; }
  a { text-decoration: underline; }
}
