/* Edge: the editorial layer, loaded last on every page.
   Three rules replace the boxes:
   1. One corner. Everything is square; only true dots stay round.
   2. No containers. Content sits on the page, separated by hairlines and
      space, aligned to one grid. A frame is kept only around a drawing.
   3. Type does the work. Headings are heavy uppercase; everything else is
      quiet. One accent colour. */

/* 1. One corner. */
*,
*::before,
*::after {
  border-radius: 0 !important;
}
.live-dot,
.live-dot::after,
.led,
.plan-node,
.brand img,
.boot-logo,
.boot-pulse,
.boot-line i,
.ro-led,
.wire-progress i::after,
.matrix td.on::before,
.rack-screw,
.icon-button,
.locale-link {
  border-radius: 50% !important;
}

/* 2. Header: the floating glass bar from glass.css, kept as the one rounded
   object on the page. */
.site-header,
.desktop-nav,
.desktop-nav a,
.header-cta {
  border-radius: 999px !important;
}
.desktop-nav a {
  font-size: 13px;
}
.header-cta,
.button {
  padding: 14px 24px;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.header-cta {
  padding: 10px 18px;
}
.actions .text-link,
.proposal-cta,
.footer-chip,
.document-tools button {
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* 3. Type. */
.hero h1,
.page-heading h1,
.section-heading h2,
.statement p,
.sb-copy h2,
.spot-head :is(h2, h3),
.lib-shelf-head h2,
.lib-bar h2,
.footer-pitch h2,
.ds-main h2,
.home-index h2,
.photo-head h2,
.sim-poster h2,
.profile-hero h1,
.document header h1,
.kinetic p {
  font-weight: 700;
  line-height: 0.94;
  letter-spacing: -0.045em;
  text-transform: uppercase;
}
main .section-heading h2,
main .section-heading.split h2 {
  max-width: 16ch;
  font-size: clamp(38px, 5.4vw, 92px);
}
.page-heading h1 {
  font-size: clamp(44px, 8vw, 132px);
  max-width: 14ch;
}
.document header h1 {
  font-size: clamp(34px, 4.4vw, 68px);
  max-width: 18ch;
}
.statement p {
  max-width: 17ch;
  font-size: clamp(36px, 6.4vw, 108px);
}
.footer-pitch h2 em {
  text-transform: none;
}
.eyebrow {
  letter-spacing: 0.16em;
}

/* Sections breathe; a hairline opens each one. */
.section {
  padding-block: clamp(80px, 10vw, 160px);
}
.section + .section,
.numbers,
.kinetic {
  border-top: 1px solid var(--glass-line);
}
.section-heading {
  margin-bottom: clamp(36px, 5vw, 80px);
}

/* No containers. */
.rack,
.datasheet,
.spotlight,
.case-card,
.proposal,
.also-strip,
.reasons li,
.plan li,
.home-index article,
.contents,
.lib-stats,
.lib-shelf,
.lib-card a,
.availability,
.domain-tile,
.skill-row,
.contribution-map article,
.priorities article,
.delivered-grid article,
.cv-options article,
.fit-panel,
.hero-overline,
.hero-meta li,
.readout {
  border: 0;
  background: none;
  box-shadow: none;
}
.case-card:hover,
.proposal:hover,
.reasons li:hover,
.plan li:hover {
  translate: none;
  background: none;
}
.plate,
.timing,
.sim-panel,
.grid-panel {
  background: none;
  box-shadow: none;
  border-color: var(--glass-line);
}

/* Hero: the name runs the full width; copy and drawing sit under it. */
.hero-copy {
  display: contents;
}
.hero-grid {
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(26px, 3vw, 54px) clamp(30px, 6vw, 110px);
  align-items: start;
  padding-block: clamp(40px, 5vw, 84px) clamp(50px, 6vw, 100px);
}
.hero-overline,
.hero h1,
.hero .for-company {
  grid-column: 1 / -1;
}
.hero-overline {
  padding: 0;
}
.hero h1 {
  margin: 0;
  font-size: clamp(54px, 11.3vw, 230px);
  line-height: 0.86;
  letter-spacing: -0.055em;
  white-space: nowrap;
}
.hero .name-line {
  display: inline;
  padding: 0;
  margin: 0;
}
.hero .name-line > span,
.hero .name-line > em {
  display: inline;
}
.hero .name-line + .name-line {
  margin-left: 0.18em;
}
.hero-arcs {
  display: none;
}
.hero-pitch {
  max-width: 20ch;
  font-size: clamp(24px, 2.5vw, 38px);
  font-weight: 500;
}
.hero-meta {
  display: flex;
  gap: 0;
  margin-top: 46px;
  padding-top: 26px;
  border-top: 1px solid var(--glass-line);
}
.hero-meta li {
  flex: 1;
  padding: 0 18px 0 0;
}
.hero-meta li + li {
  padding-left: 18px;
  border-left: 1px solid var(--glass-line);
}
.hero-meta strong {
  font:
    700 clamp(26px, 2.6vw, 40px) / 1 Manrope,
    sans-serif;
  letter-spacing: -0.04em;
}
.hero-stage {
  margin-block: 0;
}

/* Marquee and kinetic band. */
.marquee {
  background: none;
}
.marquee li {
  border: 0;
  background: none;
  padding-inline: 14px;
}
.kinetic p {
  font-weight: 800;
  letter-spacing: -0.05em;
}

/* Why me, plan, subjects, index: columns divided by hairlines. */
.reasons,
.plan,
.proposals {
  gap: 0;
  border-top: 1px solid var(--glass-line);
}
.reasons li,
.reasons li:nth-child(even),
.proposal {
  padding: clamp(28px, 3.4vw, 52px) clamp(24px, 3.4vw, 56px) clamp(28px, 3.4vw, 52px) 0;
  border-bottom: 1px solid var(--glass-line);
}
.reasons li:nth-child(even),
.proposal:nth-child(even) {
  padding-left: clamp(24px, 3.4vw, 56px);
  padding-right: 0;
  border-left: 1px solid var(--glass-line);
}
.reason-n {
  font:
    700 13px/1 Consolas,
    monospace;
  letter-spacing: 0.14em;
  color: var(--cyan);
  opacity: 1;
}
.reasons h3 {
  margin-top: 22px;
  font-size: clamp(24px, 2.4vw, 36px);
  font-weight: 600;
  letter-spacing: -0.035em;
}
.plan li {
  padding: 28px 26px 30px 0;
}
.plan li + li {
  padding-left: 26px;
  border-left: 1px solid var(--glass-line);
}
.plan li::before {
  display: none;
}
.home-index {
  gap: 0;
}
.home-index article {
  padding: 0 clamp(24px, 4vw, 70px) 0 0;
}
.home-index article + article {
  padding: 0 0 0 clamp(24px, 4vw, 70px);
  border-left: 1px solid var(--glass-line);
}
.also-strip {
  padding: 22px 0;
  border-bottom: 1px solid var(--glass-line);
}

/* Datasheet: a spec sheet, not a card. */
.datasheet {
  border-block: 1px solid var(--glass-line);
}
.ds-head {
  padding-inline: 0;
  background: none;
  border-color: var(--glass-line);
}
.ds-main {
  padding-right: 0;
}

/* Projects: an index. One row per project, read left to right. */
.case-grid {
  display: block;
  border-top: 1px solid var(--glass-line);
}
.case-card {
  display: grid;
  grid-template-columns: 56px minmax(0, 1.05fr) minmax(0, 1fr) minmax(0, 0.62fr) clamp(170px, 17vw, 260px);
  grid-template-areas:
    "idx title summary metric art"
    "idx links chips metric art";
  column-gap: clamp(18px, 2.6vw, 44px);
  row-gap: 18px;
  align-items: start;
  padding: clamp(26px, 3vw, 46px) 0;
  border-bottom: 1px solid var(--glass-line);
  transition: background-color 0.3s;
}
.case-card:hover {
  background-color: color-mix(in srgb, var(--text) 3.5%, transparent);
}
.case-index {
  grid-area: idx;
  position: static;
  display: block;
  padding-top: 8px;
  font:
    700 12px/1 Consolas,
    monospace;
  letter-spacing: 0.14em;
  color: var(--cyan);
}
.case-title {
  grid-area: title;
}
.case-title :is(h2, h3) {
  font-size: clamp(32px, 3.8vw, 62px);
  font-weight: 700;
  line-height: 0.95;
  letter-spacing: -0.05em;
}
.case-subtitle {
  margin-top: 10px;
}
.case-summary {
  grid-area: summary;
  margin: 6px 0 0;
}
.case-metric {
  grid-area: metric;
  margin: 0;
}
.case-metric strong {
  font-size: clamp(38px, 4vw, 64px);
  font-weight: 700;
}
.case-chips {
  grid-area: chips;
  margin: 0;
}
.case-chips li {
  background: none;
  padding: 0;
  font:
    600 10.5px/1.6 Consolas,
    monospace;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.case-chips li + li::before {
  content: "/";
  margin-right: 8px;
  opacity: 0.5;
}
.case-links {
  grid-area: links;
  margin: 0;
  padding: 0;
  align-self: end;
}
.case-visual {
  grid-area: art;
  aspect-ratio: 1.5;
  border: 1px solid var(--glass-line);
  background: none;
  overflow: hidden;
}
.case-visual .project-art {
  inset: 10px;
  width: calc(100% - 20px);
  height: calc(100% - 20px);
}
.case-badge {
  display: none;
}

/* Zouzou spotlight: a spread, not a card. */
.spotlight {
  margin-bottom: clamp(50px, 7vw, 110px);
}
.spot-head {
  padding: 0 0 clamp(28px, 3.4vw, 50px);
  border-color: var(--glass-line);
}
.spot-head :is(h2, h3) {
  font-size: clamp(64px, 11vw, 190px);
  line-height: 0.84;
}
.spot-head :is(h2, h3) > span {
  text-transform: none;
  font-weight: 400;
}
.spot-copy {
  padding: clamp(28px, 3.4vw, 50px) clamp(24px, 3.4vw, 56px) 0 0;
  border-color: var(--glass-line);
}
.spot-visual {
  padding: clamp(28px, 3.4vw, 50px) 0 0 clamp(24px, 3.4vw, 56px);
}
.spot-points li {
  border: 0;
  padding: 0 18px 0 0;
}
.spot-stats dt {
  font-weight: 700;
}
.face-matrix {
  border-color: var(--glass-line);
}
.face-widget {
  border-color: var(--glass-line);
}

/* Numbers and team fit. */
.stat-value,
.fit-metric strong {
  font-weight: 700;
}
.fit-tabs {
  gap: 0;
  margin-bottom: 0;
  border-bottom: 1px solid var(--glass-line);
}
.fit-tabs button {
  margin-bottom: -1px;
  border: 0;
  border-bottom: 2px solid transparent;
  padding: 0 22px 0 0;
  margin-right: 14px;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.fit-tabs button:hover {
  border-color: transparent;
}
.fit-tabs button[aria-selected="true"] {
  color: var(--text);
  background: none;
  border-bottom-color: var(--text);
}
.fit-panel {
  border-bottom: 1px solid var(--glass-line);
}
.fit-proof {
  padding-left: 0;
}
.fit-side {
  padding-right: 0;
  border-color: var(--glass-line);
}

/* Library: counts as a line, documents as rows. */
.lib-stats {
  border-block: 1px solid var(--glass-line);
}
.lib-stats div:first-child {
  padding-left: 0;
}
.lib-shelf {
  padding-inline: 0;
  border-bottom: 1px solid var(--glass-line);
}
.lib-covers {
  border-bottom: 0;
  padding-bottom: 0;
}
.cover-book {
  box-shadow: none;
}
.lib-grid {
  display: block;
  border-top: 1px solid var(--glass-line);
}
.lib-card {
  display: block;
}
.lib-card a {
  display: grid;
  grid-template-columns: clamp(120px, 15vw, 210px) minmax(0, 1fr) auto;
  grid-template-areas:
    "top title foot"
    "top text foot";
  column-gap: clamp(18px, 3vw, 48px);
  padding: 24px 0;
  border-bottom: 1px solid var(--glass-line);
  transition: background-color 0.3s;
}
.lib-card a:hover,
.lib-card a:focus-visible {
  translate: none;
  background-color: color-mix(in srgb, var(--text) 3.5%, transparent);
}
.lib-card a::before {
  display: none;
}
.lib-top {
  grid-area: top;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  padding-top: 5px;
}
.lib-meta {
  text-align: left;
}
.lib-card h3 {
  grid-area: title;
  margin: 0;
  font-size: clamp(21px, 2vw, 30px);
}
.lib-card p {
  grid-area: text;
  margin-top: 8px;
  max-width: 70ch;
}
.lib-foot {
  grid-area: foot;
  flex-direction: column;
  align-items: flex-end;
  justify-content: space-between;
  margin: 0;
  padding: 4px 0 0;
}
.lib-tag {
  border: 0;
  padding: 0;
  font:
    600 10.5px/1.6 Consolas,
    monospace;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.lib-search {
  border-width: 0 0 1px;
  background: none;
  padding-inline: 0;
}
.lib-filters button {
  border-width: 0 0 2px;
  border-color: transparent;
  padding: 6px 0;
  margin-right: 18px;
  text-transform: uppercase;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
}
.lib-filters button[aria-pressed="true"] {
  color: var(--text);
  background: none;
  border-color: var(--text);
}

/* Other pages: rows instead of tiles. */
.domain-tile,
.skill-row,
.contribution-map article,
.priorities article,
.delivered-grid article,
.cv-options article,
.availability {
  padding: 22px 22px 22px 0;
  border-top: 1px solid var(--glass-line);
}
.contents {
  padding-inline: 0;
  border-block: 1px solid var(--glass-line);
}
.callout {
  border: 0;
  border-left: 2px solid var(--accent);
  background: none;
  box-shadow: none;
}
.doc-tags li,
.md-doc code {
  background: none;
  border: 1px solid var(--glass-line);
}
.formula,
pre {
  background: none;
  border: 1px solid var(--glass-line);
}
.photo-slot.is-empty {
  background: none;
}

/* Footer: full bleed. */
.site-footer {
  margin: clamp(90px, 10vw, 150px) 0 0;
  border: 0;
  border-top: 1px solid var(--glass-line);
  background: none;
}
.site-footer::before {
  display: none;
}

@media (max-width: 1080px) {
  .case-card {
    grid-template-columns: 40px minmax(0, 1fr) minmax(0, 0.8fr);
    grid-template-areas:
      "idx title art"
      "idx summary art"
      "idx metric metric"
      "idx chips chips"
      "idx links links";
  }
}
@media (max-width: 760px) {
  .site-header {
    border-radius: 22px !important;
  }
  .hero-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .hero h1 {
    font-size: clamp(56px, 19vw, 120px);
    white-space: normal;
  }
  .hero .name-line {
    display: block;
  }
  .hero .name-line + .name-line {
    margin-left: 0;
  }
  .hero-meta {
    flex-wrap: wrap;
    gap: 18px 0;
  }
  .hero-meta li:last-child {
    flex-basis: 100%;
    padding-left: 0;
    border-left: 0;
  }
  .reasons li:nth-child(even),
  .proposal:nth-child(even),
  .home-index article + article,
  .plan li + li {
    padding-left: 0;
    border-left: 0;
  }
  .home-index article + article {
    margin-top: 50px;
    padding-top: 50px;
    border-top: 1px solid var(--glass-line);
  }
  .plan li {
    border-bottom: 1px solid var(--glass-line);
  }
  .case-card {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "idx" "title" "art" "summary" "metric" "chips" "links";
  }
  .case-visual {
    aspect-ratio: 2.2;
  }
  .spot-copy,
  .spot-visual {
    padding-inline: 0;
  }
  .fit-side {
    padding-left: 0;
  }
  .fit-tabs {
    overflow-x: auto;
    flex-wrap: nowrap;
  }
  .fit-tabs button {
    flex: none;
  }
  .lib-card a {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "top" "title" "text" "foot";
    row-gap: 8px;
  }
  .lib-top {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 4px 14px;
    white-space: nowrap;
  }
  .lib-foot {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding-top: 6px;
  }
  .lib-stats div:first-child {
    padding-left: 16px;
  }
}

/* Plain section headings on the inner pages follow the same voice. */
main .section > h2,
main .two-column h2,
main .skill-group > h2,
main .cv-options h2 {
  font-size: clamp(28px, 3.4vw, 54px);
  font-weight: 700;
  line-height: 0.98;
  letter-spacing: -0.04em;
  text-transform: uppercase;
}
.skill-controls,
.skill-search {
  border-width: 0 0 1px;
  background: none;
}

/* 3D robot scene. Without WebGL it is a normal block: copy, list, picture. */
.rb-scene {
  position: relative;
  border-top: 1px solid var(--glass-line);
  background: color-mix(in srgb, var(--bg) 55%, #000);
}
.rb-stage {
  position: relative;
  padding-block: clamp(60px, 9vw, 120px);
}
.rb-canvas {
  display: none;
}
.rb-copy h2 {
  margin: 16px 0 22px;
  font-size: clamp(40px, 6vw, 104px);
  font-weight: 700;
  line-height: 0.92;
  letter-spacing: -0.05em;
  text-transform: uppercase;
}
.rb-copy > p:not(.eyebrow) {
  max-width: 38ch;
  color: var(--muted);
}
.rb-note {
  margin-top: 12px;
  font:
    11px/1.5 Consolas,
    monospace;
  letter-spacing: 0.04em;
}
.rb-copy .text-link {
  margin-top: 26px;
}
.rb-labels {
  max-width: calc(var(--max) + var(--gutter) * 2);
  margin: 40px auto 0;
  padding: 0 var(--gutter);
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 0 30px;
}
.rb-labels li {
  margin: 0;
  padding: 14px 0;
  border-top: 1px solid var(--glass-line);
}
.rb-labels b {
  display: block;
  font:
    700 11px/1.4 Consolas,
    monospace;
  letter-spacing: 0.14em;
  color: var(--cyan);
}
.rb-labels strong {
  display: block;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.rb-labels small {
  display: block;
  font-size: 12.5px;
  color: var(--muted);
}
.rb-fallback {
  display: block;
  width: min(420px, 80%);
  height: auto;
  margin: 40px auto 0;
}
/* Live: the canvas fills the pinned stage and the list becomes labels. */
.rb-scene.is-live {
  height: 320vh;
}
.rb-scene.is-live .rb-stage {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100svh;
  padding: 0;
  overflow: hidden;
}
.rb-scene.is-live .rb-canvas {
  display: block;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  cursor: grab;
  touch-action: pan-y;
}
.rb-scene.is-dragging .rb-canvas {
  cursor: grabbing;
}
.rb-scene.is-live .rb-fallback {
  display: none;
}
.rb-scene.is-live .rb-copy {
  position: absolute;
  inset: auto 0 clamp(30px, 7vh, 80px);
  pointer-events: none;
}
.rb-scene.is-live .rb-copy :is(a, button) {
  pointer-events: auto;
}
.rb-scene.is-live .rb-labels {
  position: absolute;
  inset: 0;
  display: block;
  max-width: none;
  margin: 0;
  padding: 0;
  pointer-events: none;
}
.rb-scene.is-live .rb-labels li {
  position: absolute;
  top: 0;
  left: 0;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 0;
  border: 0;
  opacity: 0;
  will-change: transform, opacity;
}
.rb-scene.is-live .rb-labels i {
  flex: none;
  width: 7px;
  height: 7px;
  margin: -3px 0 0 -3px;
  border-radius: 50% !important;
  background: var(--text);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--text) 18%, transparent);
}
.rb-scene.is-live .rb-labels span {
  padding-left: 12px;
  border-left: 1px solid color-mix(in srgb, var(--text) 45%, transparent);
  transform: translateY(-6px);
}
.rb-scene.is-live .rb-labels strong {
  font-size: 14px;
  white-space: nowrap;
}
.rb-scene.is-live .rb-labels small {
  white-space: nowrap;
  font-size: 11.5px;
}
.rb-scene.is-live .rb-stage::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 2px;
  background: var(--text);
  transform-origin: 0 50%;
  transform: scaleX(var(--rb-progress, 0));
}
@media (prefers-reduced-motion: reduce) {
  .rb-scene.is-live {
    height: auto;
  }
  .rb-scene.is-live .rb-stage {
    position: relative;
  }
}
:root[data-motion="off"] .rb-scene.is-live {
  height: auto;
}
:root[data-motion="off"] .rb-scene.is-live .rb-stage {
  position: relative;
}
@media (max-width: 860px) {
  .rb-scene.is-live .rb-copy {
    inset: 84px 0 auto;
  }
  .rb-copy h2 {
    font-size: clamp(34px, 10vw, 56px);
    margin-bottom: 12px;
  }
  .rb-copy > p:not(.eyebrow),
  .rb-copy .text-link {
    display: none;
  }
  .rb-scene.is-live .rb-labels small {
    display: none;
  }
  .rb-scene.is-live .rb-labels strong {
    font-size: 12px;
  }
}
/* Hero name: each letter takes its weight from the pointer (fx.js). */
.hero h1 .ch > span {
  font-variation-settings: "wght" var(--w, 700);
  transition: font-variation-settings 0.25s ease-out;
}
.wire-progress {
  display: none;
}
@media print {
  .rb-scene {
    display: none;
  }
}

/* Availability line: one line, never wrapped. */
.hero-overline {
  align-items: center;
  gap: 12px;
}
.hero-overline .eyebrow {
  max-width: none;
  white-space: nowrap;
  font-size: 11.5px;
  letter-spacing: 0.14em;
  line-height: 1;
}
.hero-overline .live-dot {
  flex: none;
}
@media (max-width: 760px) {
  .ov-more {
    display: none;
  }
}

/* Scenes follow the theme instead of forcing a dark ground. */
:root[data-theme="light"] :is(.rb-scene, .sb-scene) {
  background: var(--surface);
}

/* The 60-second brief. */
dialog.brief {
  width: min(1040px, calc(100vw - 28px));
  max-height: calc(100dvh - 28px);
  padding: 0;
  border: 1px solid var(--glass-line);
  background: var(--bg);
  color: var(--text);
  overflow: auto;
}
dialog.brief::backdrop {
  background: color-mix(in srgb, #000 70%, transparent);
  backdrop-filter: blur(10px);
}
dialog.brief[open] {
  animation: brief-in 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes brief-in {
  from {
    opacity: 0;
    transform: translateY(24px) scale(0.98);
  }
}
.brief-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 14px 14px clamp(20px, 3vw, 40px);
  border-bottom: 1px solid var(--glass-line);
}
.brief-head .eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--cyan);
}
.brief-body {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
}
.brief-main,
.brief-side {
  padding: clamp(22px, 3vw, 40px);
  min-width: 0;
}
.brief-side {
  border-left: 1px solid var(--glass-line);
}
.brief h2 {
  font-size: clamp(34px, 5vw, 68px);
  font-weight: 700;
  line-height: 0.92;
  letter-spacing: -0.05em;
  text-transform: uppercase;
}
.brief-lead {
  margin-top: 16px;
  max-width: 40ch;
  font-size: 17px;
  color: var(--muted);
}
.brief-facts {
  margin: 26px 0 0;
  border-top: 1px solid var(--glass-line);
}
.brief-facts div {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 14px;
  padding: 11px 0;
  border-bottom: 1px solid var(--glass-line);
}
.brief-facts dt {
  font:
    600 10.5px/1.9 Consolas,
    monospace;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
.brief-facts dd {
  margin: 0;
  font-size: 15px;
}
.brief-proofs {
  list-style: none;
  margin: 14px 0 0;
  padding: 0;
  border-top: 1px solid var(--glass-line);
}
.brief-proofs li {
  margin: 0;
  border-bottom: 1px solid var(--glass-line);
}
.brief-proofs a {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1fr) 18px;
  align-items: center;
  gap: 14px;
  padding: 16px 0;
  text-decoration: none;
}
.brief-proofs strong {
  font-size: clamp(32px, 3.6vw, 50px);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.05em;
  white-space: nowrap;
}
.brief-proofs sup {
  font-size: 0.45em;
  vertical-align: top;
}
.brief-proofs small {
  margin-left: 6px;
  font-size: 0.32em;
  font-weight: 500;
  letter-spacing: 0;
  color: var(--muted);
}
.brief-proofs span {
  font-size: 13px;
  line-height: 1.4;
  color: var(--muted);
}
.brief-proofs b {
  display: block;
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
}
.brief-proofs .icon {
  width: 16px;
  height: 16px;
  color: var(--muted);
}
.brief-proofs a:hover .icon {
  color: var(--cyan);
}
.brief-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  padding: clamp(16px, 2vw, 24px) clamp(20px, 3vw, 40px);
  border-top: 1px solid var(--glass-line);
}
.brief-actions .text-link {
  min-height: 46px;
  padding: 0 16px;
  border: 1px solid var(--glass-line);
  background: none;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.brief-actions a.text-link:nth-of-type(2) {
  text-transform: none;
  letter-spacing: 0;
  font-size: 14px;
}
@media (max-width: 760px) {
  .brief-body {
    grid-template-columns: minmax(0, 1fr);
  }
  .brief-side {
    border-left: 0;
    border-top: 1px solid var(--glass-line);
  }
  .brief-facts div {
    grid-template-columns: 96px minmax(0, 1fr);
  }
}
@media print {
  dialog.brief {
    display: none;
  }
}

/* Small screens: type that always fits, controls that scale down. */
.table-scroll {
  overflow-x: auto;
  max-width: 100%;
  overscroll-behavior-x: contain;
  /* Without it, Chromium lets a wide table widen the page after the window
     is narrowed, even though the table scrolls inside this box. */
  contain: paint;
}
.page-heading h1,
.profile-hero h1,
.document header h1,
main .section-heading h2,
main .section > h2,
main .two-column h2,
main .skill-group > h2,
.statement p,
.rb-copy h2,
.brief h2,
.lib-card h3,
.case-title :is(h2, h3) {
  overflow-wrap: anywhere;
  hyphens: auto;
}
@media (max-width: 760px) {
  .page-heading {
    padding-block: 54px 36px;
  }
  .page-heading h1 {
    font-size: clamp(30px, 10.4vw, 64px);
    max-width: none;
  }
  .profile-hero h1 {
    font-size: clamp(44px, 17vw, 92px);
  }
  .document header h1 {
    font-size: clamp(28px, 8.6vw, 44px);
  }
  main .section-heading h2,
  main .section-heading.split h2 {
    font-size: clamp(30px, 9.4vw, 54px);
  }
  main .section > h2,
  main .two-column h2,
  main .skill-group > h2,
  main .cv-options h2 {
    font-size: clamp(24px, 7.2vw, 38px);
  }
  .statement p {
    font-size: clamp(30px, 9.6vw, 56px);
    max-width: none;
  }
  .section {
    padding-block: clamp(56px, 14vw, 90px);
  }
  .lead {
    font-size: 17px;
  }
  /* Buttons: compact, and laid out as a tidy group. */
  .button,
  .header-cta {
    min-height: 46px;
    padding: 12px 18px;
    font-size: 11.5px;
    letter-spacing: 0.07em;
  }
  .actions .text-link,
  .proposal-cta,
  .footer-chip,
  .document-tools button,
  .brief-actions .text-link {
    min-height: 44px;
    padding: 0 14px;
    font-size: 11.5px;
  }
  .actions {
    gap: 8px;
  }
  .hero .actions,
  .ds-main .actions,
  .spot-copy .actions,
  .fit-side .actions,
  .brief-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }
  .hero .actions > :first-child,
  .ds-main .actions > :first-child,
  .spot-copy .actions > :first-child,
  .fit-side .actions > :first-child,
  .brief-actions > :first-child,
  .brief-actions > :nth-child(2) {
    grid-column: 1 / -1;
  }
  .hero .actions > *,
  .ds-main .actions > *,
  .spot-copy .actions > *,
  .fit-side .actions > *,
  .brief-actions > * {
    justify-content: center;
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .document-tools {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
  .document-tools > * {
    justify-content: center;
  }
  /* Figures. */
  .stat {
    padding: 20px 12px 18px;
  }
  .stat-value {
    font-size: clamp(30px, 9.6vw, 44px);
    white-space: normal;
  }
  .stat-value small {
    display: block;
    margin: 6px 0 0;
    font-size: 12px;
  }
  .stat-src {
    font-size: 12.5px;
  }
  .fit-metric strong {
    font-size: clamp(54px, 18vw, 84px);
  }
  .spot-head :is(h2, h3) {
    font-size: clamp(56px, 19vw, 96px);
  }
  .spot-stats dt {
    font-size: clamp(26px, 8vw, 36px);
  }
  .case-title :is(h2, h3) {
    font-size: clamp(30px, 9.4vw, 44px);
  }
  .lib-covers {
    gap: 8px;
  }
  .cover-book strong {
    font-size: clamp(15px, 4.8vw, 22px);
  }
  .cover-kicker {
    font-size: 7.5px;
    letter-spacing: 0.08em;
  }
  .cover-meta {
    font-size: 11px;
    gap: 5px;
  }
  .kinetic p {
    font-size: clamp(52px, 17vw, 96px);
  }
  .home-index h2 {
    font-size: clamp(28px, 8.6vw, 40px);
  }
  .footer-pitch h2 {
    font-size: clamp(34px, 10.5vw, 56px);
  }
}
@media (max-width: 380px) {
  .brand span {
    font-size: 14px;
  }
  .brand img {
    width: 30px;
    height: 30px;
  }
  .site-header {
    gap: 8px;
  }
  .header-actions .icon-button,
  .header-actions .locale-link {
    width: 38px;
    min-width: 38px;
  }
  .hero h1 {
    font-size: 18.5vw;
  }
}
@media (max-width: 350px) {
  .brand {
    gap: 8px;
    min-width: 0;
  }
  .brand span {
    font-size: 13px;
  }
  .header-actions [data-theme-toggle] {
    display: none;
  }
}
