/* ==========================================================================
   Mazhar Shaikh — The Safety Case
   Hand-built. Fraunces / IBM Plex. No frameworks.
   ========================================================================== */

@font-face {
  font-family: 'Fraunces';
  src: url('../assets/fonts/fraunces-var.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Fraunces';
  src: url('../assets/fonts/fraunces-italic-var.woff2') format('woff2');
  font-weight: 100 900;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: 'IBM Plex Sans';
  src: url('../assets/fonts/plex-sans-400.woff2') format('woff2');
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: 'IBM Plex Sans';
  src: url('../assets/fonts/plex-sans-500.woff2') format('woff2');
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: 'IBM Plex Sans';
  src: url('../assets/fonts/plex-sans-600.woff2') format('woff2');
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: 'IBM Plex Mono';
  src: url('../assets/fonts/plex-mono-400.woff2') format('woff2');
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: 'IBM Plex Mono';
  src: url('../assets/fonts/plex-mono-500.woff2') format('woff2');
  font-weight: 500;
  font-display: swap;
}

:root {
  --paper: #efebe3;
  --paper-2: #e6e1d6;
  --ink: #14150f;
  --ink-2: #3b3b33;
  --muted: #797568;
  --rule: rgba(20, 21, 15, 0.18);
  --rule-soft: rgba(20, 21, 15, 0.09);
  --signal: #c4451f;
  --display: 'Fraunces', 'Times New Roman', serif;
  --sans: 'IBM Plex Sans', 'Helvetica Neue', Arial, sans-serif;
  --mono: 'IBM Plex Mono', 'SFMono-Regular', Consolas, monospace;
  --rail: 46px;
  --pad: 48px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

* { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding-left: var(--rail);
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

::selection { background: var(--signal); color: var(--paper); }

img { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

h1, h2, h3, p, dl, dd, figure, blockquote { margin: 0; }
ol, ul { margin: 0; padding: 0; list-style: none; }

.mono {
  font-family: var(--mono);
  font-weight: 400;
  font-size: 10px;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}
.muted { color: var(--muted); }

.skip {
  position: fixed;
  top: -100px;
  left: 12px;
  z-index: 200;
  background: var(--ink);
  color: var(--paper);
  padding: 12px 18px;
  font-family: var(--mono);
  font-size: 11px;
}
.skip:focus { top: 12px; }

:focus-visible {
  outline: 2px solid var(--signal);
  outline-offset: 4px;
}

/* Paper grain ------------------------------------------------------------- */
.grain {
  position: fixed;
  inset: 0;
  z-index: 90;
  pointer-events: none;
  opacity: 0.22;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.82' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='240' height='240' filter='url(%23n)' opacity='0.32'/%3E%3C/svg%3E");
}

/* Left document rail ------------------------------------------------------ */
.rail {
  position: fixed;
  z-index: 40;
  left: 0;
  top: 0;
  bottom: 0;
  width: var(--rail);
  border-right: 1px solid var(--rule);
  background: var(--paper);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  padding: 20px 0;
}
.rail__mark {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.1em;
  color: var(--ink);
}
.rail__text {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  font-family: var(--mono);
  font-size: 8.5px;
  letter-spacing: 0.22em;
  color: var(--muted);
  text-transform: uppercase;
  white-space: nowrap;
}

/* Masthead --------------------------------------------------------------- */
.masthead {
  position: fixed;
  z-index: 50;
  top: 0;
  left: var(--rail);
  right: 0;
  height: 64px;
  display: flex;
  align-items: center;
  padding: 0 var(--pad);
  background: rgba(239, 235, 227, 0.86);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.4s ease;
}
.masthead.is-scrolled { border-bottom-color: var(--rule); }

.masthead__id {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
}
.masthead__id .mono { font-size: 10.5px; letter-spacing: 0.16em; }
.masthead__rule {
  display: block;
  width: 42px;
  height: 1px;
  background: var(--ink);
  opacity: 0.35;
}
.nav {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 26px;
}
.nav a {
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-2);
  display: inline-flex;
  gap: 6px;
  padding: 4px 0;
  position: relative;
  transition: color 0.25s ease;
}
.nav a .mono { font-size: 8px; color: var(--muted); transition: color 0.25s ease; }
.nav a::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: var(--signal);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s var(--ease);
}
.nav a:hover { color: var(--signal); }
.nav a:hover::after, .nav a.is-active::after { transform: scaleX(1); }
.nav a:hover .mono, .nav a.is-active .mono { color: var(--signal); }
.masthead__loc { margin-left: 32px; font-size: 9px; }

.menu-btn {
  display: none;
  margin-left: auto;
  background: none;
  border: 0;
  color: var(--ink);
  padding: 8px 0;
  cursor: pointer;
  align-items: center;
  gap: 12px;
}
.menu-btn__bars { display: block; width: 22px; }
.menu-btn__bars i { display: block; height: 1px; background: currentColor; margin: 4px 0; transition: transform .35s var(--ease); }

/* Menu panel ------------------------------------------------------------- */
.menu-panel[hidden] { display: none; }
.menu-panel {
  position: fixed;
  z-index: 60;
  inset: 0 0 0 var(--rail);
  background: var(--paper);
  padding: 100px var(--pad) 40px;
  display: flex;
  flex-direction: column;
  transform: translateY(-102%);
  transition: transform 0.6s var(--ease);
}
.menu-panel.is-open { transform: translateY(0); }
.menu-panel__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--rule);
  padding-bottom: 14px;
}
.menu-panel__head .mono { font-size: 9px; }
.menu-close {
  background: none;
  border: 0;
  padding: 2px 0;
  color: var(--ink);
  cursor: pointer;
  font-size: 9px;
  letter-spacing: 0.14em;
  display: inline-flex;
  gap: 8px;
  align-items: center;
}
.menu-close span { font-family: var(--sans); font-size: 17px; line-height: 1; }
.menu-panel nav { margin-top: 36px; display: flex; flex-direction: column; }
.menu-panel nav a {
  display: flex;
  align-items: baseline;
  gap: 18px;
  font-family: var(--display);
  font-variation-settings: 'opsz' 144, 'wght' 420, 'SOFT' 0, 'WONK' 1;
  font-size: clamp(34px, 6vw, 52px);
  letter-spacing: -0.025em;
  line-height: 1;
  padding: 18px 0;
  border-bottom: 1px solid var(--rule-soft);
}
.menu-panel nav a .mono { font-size: 9px; color: var(--muted); }
.menu-panel__foot { margin-top: auto; }

/* Hero ------------------------------------------------------------------- */
.hero {
  position: relative;
  min-height: 100svh;
  padding: 96px var(--pad) 34px;
  display: flex;
  flex-direction: column;
  border-bottom: 1px solid var(--rule);
  overflow: hidden;
}
.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}
.hero__bg img {
  position: absolute;
  top: -12%;
  right: -14%;
  width: min(78vw, 1150px);
  opacity: 0.55;
  will-change: transform;
}
.hero__top, .hero__body, .hero__foot { position: relative; z-index: 1; }

.hero__top {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--rule);
}
.hero__top .mono { font-size: 9px; }

.hero__body {
  flex: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 40px;
  padding: 48px 0 34px;
}

.hero__name {
  font-family: var(--display);
  font-variation-settings: 'opsz' 96, 'wght' 480, 'SOFT' 0, 'WONK' 1;
  font-size: clamp(64px, 12.4vw, 196px);
  line-height: 0.8;
  letter-spacing: -0.018em;
  text-transform: uppercase;
}
.hero__name .line {
  display: block;
  overflow: hidden;
  padding-bottom: 0.04em;
}
.hero__name .line > span {
  display: block;
  transform: translateY(112%);
  transition: transform 1.25s var(--ease);
}
.hero__name .line--out { margin-left: 0.72em; }
.hero__name .line--out > span {
  color: var(--ink);
  font-variation-settings: 'opsz' 96, 'wght' 330, 'SOFT' 0, 'WONK' 1;
  transition-delay: 0.08s;
}
body.is-loaded .hero__name .line > span { transform: translateY(0); }

.hero__service { display: none; }
.gauge {
  width: clamp(190px, 21vw, 292px);
  margin-bottom: 8px;
  flex-shrink: 0;
  background: radial-gradient(circle at 50% 50%, var(--paper) 0%, var(--paper) 56%, rgba(239,235,227,0) 76%);
}
.gauge__svg { width: 100%; height: auto; overflow: visible; }
.gauge__ring { fill: none; stroke: var(--rule); stroke-width: 1; }
.gauge__ring--inner { stroke-dasharray: 1 6; stroke-opacity: 0.7; }
.gauge__label {
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.16em;
  fill: var(--muted);
  text-transform: uppercase;
}
.gauge__num {
  font-family: var(--display);
  font-variation-settings: 'opsz' 144, 'wght' 440, 'SOFT' 0, 'WONK' 1;
  font-size: 62px;
  fill: var(--ink);
  letter-spacing: -0.04em;
}
.gauge__unit {
  font-family: var(--mono);
  font-size: 7.5px;
  letter-spacing: 0.22em;
  fill: var(--muted);
}
.gauge__needle {
  stroke: var(--signal);
  stroke-width: 2.2;
  transform-origin: 150px 150px;
  transform: rotate(-120deg);
  transition: transform 1.9s var(--ease) 0.35s;
}
body.is-loaded .gauge__needle { transform: rotate(30deg); }
.gauge__hub { fill: var(--signal); }
.gauge__tick { stroke: rgba(20,21,15,0.35); stroke-width: 1; }
.gauge__tick--major { stroke: var(--ink); stroke-width: 1.2; }

.hero__foot::before {
  content: '';
  position: absolute;
  left: calc(var(--pad) * -1);
  right: calc(var(--pad) * -1);
  top: -26px;
  bottom: calc(var(--pad) * -1);
  background: linear-gradient(180deg, rgba(239,235,227,0) 0%, rgba(239,235,227,0.86) 38%, var(--paper) 100%);
  z-index: -1;
  pointer-events: none;
}
.hero__foot {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr 1.55fr auto;
  gap: 48px;
  align-items: start;
  border-top: 1px solid var(--rule);
  padding-top: 20px;
}
.hero__standfirst {
  font-family: var(--display);
  font-variation-settings: 'opsz' 72, 'wght' 400, 'SOFT' 0, 'WONK' 0;
  font-size: clamp(18px, 1.55vw, 22px);
  line-height: 1.36;
  letter-spacing: -0.008em;
  max-width: 36ch;
  color: var(--ink);
}
.hero__meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px 26px;
}
.hero__meta dt { margin-bottom: 5px; font-size: 8.5px; }
.hero__meta dd { font-size: 12.5px; line-height: 1.45; color: var(--ink-2); }

.scroll-cue {
  justify-self: end;
  align-self: end;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 8.5px;
  color: var(--muted);
}
.scroll-cue i {
  display: block;
  width: 1px;
  height: 44px;
  background: var(--rule);
  position: relative;
  overflow: hidden;
}
.scroll-cue i::after {
  content: '';
  position: absolute;
  left: 0; top: -50%;
  width: 1px; height: 50%;
  background: var(--signal);
  animation: drip 2.6s var(--ease) infinite;
}
@keyframes drip {
  0% { top: -50%; }
  60%, 100% { top: 100%; }
}

/* Sections --------------------------------------------------------------- */
.section, .contact { scroll-margin-top: 80px; }
.section {
  padding: 104px var(--pad) 116px;
  position: relative;
}
.section--rule { border-top: 1px solid var(--rule); }
.section--dark {
  --ink: #efece4;
  --ink-2: #c6c1b4;
  --muted: #8b8677;
  --rule: rgba(239, 236, 228, 0.2);
  --rule-soft: rgba(239, 236, 228, 0.1);
  background: #14150f;
  color: #efece4;
}
.section--dark .section__title { color: #efece4; }
.section--dark ::selection { background: #efece4; color: #14150f; }

.section__head {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr) auto;
  align-items: baseline;
  gap: 18px;
  border-top: 1px solid var(--rule);
  padding-top: 16px;
}
.section--dark .section__head { border-top-color: var(--rule); }
.section__num { font-size: 10px; color: var(--signal); padding-top: 8px; }
.section--dark .section__num { color: #e2542a; }
.section__title {
  font-family: var(--display);
  font-variation-settings: 'opsz' 144, 'wght' 400, 'SOFT' 0, 'WONK' 1;
  font-size: clamp(38px, 4.6vw, 62px);
  line-height: 1;
  letter-spacing: -0.028em;
}
.section__tag { font-size: 8.5px; padding-top: 8px; text-align: right; }
.section__body { padding-left: 90px; margin-top: 54px; }

.lede {
  text-wrap: pretty;
  font-family: var(--display);
  font-variation-settings: 'opsz' 96, 'wght' 380, 'SOFT' 0, 'WONK' 1;
  font-size: clamp(23px, 2.55vw, 34px);
  line-height: 1.26;
  letter-spacing: -0.018em;
  max-width: 25ch;
}
.lede--short { max-width: 34ch; font-size: clamp(21px, 2.1vw, 28px); }

/* 01 Record */
.record__cols {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 56px;
  margin-top: 44px;
  max-width: 1000px;
}
.record__cols p {
  text-wrap: pretty;
  font-size: 15.5px;
  line-height: 1.72;
  color: var(--ink-2);
  max-width: 52ch;
}
.record__cols p + p { margin-top: 0; }

.figures {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
  margin-top: 72px;
  border-top: 1px solid var(--rule);
  padding-top: 20px;
}
.figures li { display: flex; flex-direction: column; gap: 10px; }
.figures__n {
  font-family: var(--display);
  font-variation-settings: 'opsz' 144, 'wght' 420, 'SOFT' 0, 'WONK' 1;
  font-size: clamp(42px, 4.4vw, 64px);
  line-height: 0.9;
  letter-spacing: -0.04em;
}
.figures__l { font-size: 8.5px; line-height: 1.5; }

/* 02 Timeline */
.timeline { margin-top: 78px; position: relative; }
.timeline__pipe {
  position: absolute;
  left: 0; right: 0; top: 4px;
  height: 1px;
  background: var(--rule);
}
.timeline__pipe::after {
  content: '';
  position: absolute;
  right: 0;
  top: -4px;
  width: 1px;
  height: 9px;
  background: var(--signal);
  opacity: 0.7;
}
.timeline__pipe span {
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(90deg, var(--signal) 0 7px, transparent 7px 18px);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 1.9s cubic-bezier(0.16, 1, 0.3, 1);
  opacity: 0.9;
}
.stations {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 26px;
}
.station { position: relative; padding-top: 30px; }
.station__dot {
  position: absolute;
  top: 0; left: 0;
  width: 9px; height: 9px;
  border-radius: 50%;
  border: 1px solid var(--ink);
  background: var(--paper);
  transition: background 0.4s ease, border-color 0.4s ease;
}
.station__dot::after {
  content: '';
  position: absolute;
  left: 4px; top: 9px;
  width: 1px; height: 20px;
  background: var(--rule);
}
.station.in .station__dot { background: var(--signal); border-color: var(--signal); }
.station__year { display: block; font-size: 9px; color: var(--muted); margin-bottom: 12px; }
.station__title {
  font-family: var(--display);
  font-variation-settings: 'opsz' 72, 'wght' 430, 'SOFT' 0, 'WONK' 1;
  font-size: clamp(20px, 1.9vw, 26px);
  line-height: 1.1;
  letter-spacing: -0.015em;
  margin-bottom: 8px;
}
.station__place { font-size: 12px; color: var(--ink); margin-bottom: 12px; }
.station__note { font-size: 13px; line-height: 1.62; color: var(--muted); max-width: 30ch; }

/* 03 Clauses */
.clauses {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 64px;
}
.clause { padding: 34px 0 38px; border-top: 1px solid var(--rule); }
.clause:nth-child(1), .clause:nth-child(2) { border-top: 1px solid var(--ink); }
.clause__n { display: block; color: var(--signal); margin-bottom: 16px; }
.clause h3 {
  font-family: var(--display);
  font-variation-settings: 'opsz' 96, 'wght' 400, 'SOFT' 0, 'WONK' 1;
  font-size: clamp(26px, 2.6vw, 34px);
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin-bottom: 14px;
}
.clause p { font-size: 14.8px; line-height: 1.7; color: var(--ink-2); max-width: 46ch; }

.capabilities {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 28px;
  margin-top: 64px;
  padding-top: 20px;
  border-top: 1px solid var(--rule);
}
.capabilities li {
  font-size: 9px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--ink-2);
}
.capabilities li::before {
  content: '';
  width: 4px; height: 4px;
  background: var(--signal);
}

/* 04 AI */
.ai .lede { max-width: 30ch; }
.ai__cols {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 72px;
  margin-top: 52px;
  align-items: start;
}
.ai__text p {
  font-size: 15.5px;
  line-height: 1.75;
  color: var(--ink-2);
  max-width: 50ch;
}
.ai__text p + p { margin-top: 20px; }

.ai__figure { margin: 0; }
.barrier {
  border: 1px solid var(--rule);
  padding: 20px 26px 24px;
  background: rgba(255, 255, 255, 0.015);
}
.barrier__cap {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--rule);
}
.barrier__cap .mono { font-size: 8px; }
.barrier__stages {
  position: relative;
  margin-top: 6px;
}
.barrier__stages::before {
  content: '';
  position: absolute;
  left: 4px;
  top: 22px;
  bottom: 22px;
  width: 1px;
  background-image: repeating-linear-gradient(180deg, var(--signal) 0 5px, transparent 5px 12px);
  opacity: 0.6;
}
.barrier__stages li {
  position: relative;
  display: grid;
  grid-template-columns: 104px 1fr;
  gap: 18px;
  align-items: baseline;
  padding: 15px 0 15px 26px;
  border-top: 1px solid var(--rule-soft);
}
.barrier__stages li:first-child { border-top: 0; }
.barrier__dot {
  position: absolute;
  left: 0;
  top: 19px;
  width: 9px;
  height: 9px;
  border: 1px solid var(--signal);
  background: #14150f;
}
.is-start .barrier__dot, .is-end .barrier__dot { background: var(--signal); }
.barrier__stages b {
  font-family: var(--mono);
  font-weight: 400;
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #efece4;
}
.barrier__stages em {
  font-style: normal;
  font-size: 10.5px;
  line-height: 1.4;
  color: var(--muted);
  text-align: left;
}
.ai__figure figcaption {
  margin-top: 12px;
  font-size: 8.5px;
  line-height: 1.6;
  max-width: 44ch;
}
.ai__credit {
  margin-top: 46px;
  padding-top: 14px;
  border-top: 1px solid var(--rule);
  font-size: 8.5px;
}

/* 05 Chapter */
.chapter__top {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 64px;
  align-items: start;
}
.platinum { border-top: 1px solid var(--ink); padding-top: 16px; }
.platinum__n {
  display: block;
  font-family: var(--display);
  font-style: italic;
  font-variation-settings: 'opsz' 144, 'wght' 380, 'SOFT' 0, 'WONK' 1;
  font-size: clamp(44px, 4.6vw, 64px);
  line-height: 0.95;
  letter-spacing: -0.03em;
  color: var(--signal);
}
.platinum__y { display: block; margin: 12px 0 12px; font-size: 10px; }
.platinum__c { display: block; font-size: 8.5px; line-height: 1.6; max-width: 30ch; text-transform: none; letter-spacing: 0.04em; }

.ledger { margin-top: 60px; }
.ledger li {
  display: grid;
  grid-template-columns: 130px 1fr 1.25fr;
  gap: 24px;
  align-items: baseline;
  padding: 20px 0;
  border-top: 1px solid var(--rule);
}
.ledger li:last-child { border-bottom: 1px solid var(--rule); }
.ledger .mono { font-size: 9px; color: var(--muted); }
.ledger__role {
  font-family: var(--display);
  font-variation-settings: 'opsz' 72, 'wght' 400, 'SOFT' 0, 'WONK' 1;
  font-size: clamp(20px, 2vw, 26px);
  letter-spacing: -0.015em;
  line-height: 1.1;
}
.ledger__res { font-size: 12.5px; color: var(--muted); }

/* 06 Papers */
.papers li {
  display: grid;
  grid-template-columns: 90px 1fr auto;
  gap: 24px;
  align-items: start;
  padding: 26px 0;
  border-top: 1px solid var(--rule);
  transition: padding-left 0.4s var(--ease);
}
.papers li:last-child { border-bottom: 1px solid var(--rule); }
.papers li:hover { padding-left: 10px; }
.papers__year { font-size: 9px; color: var(--muted); padding-top: 6px; }
.papers__main h3 {
  font-family: var(--display);
  font-variation-settings: 'opsz' 72, 'wght' 400, 'SOFT' 0, 'WONK' 1;
  font-size: clamp(20px, 2.15vw, 29px);
  line-height: 1.16;
  letter-spacing: -0.018em;
  max-width: 34ch;
  transition: color 0.3s ease;
}
.papers li:hover h3 { color: var(--signal); }
.papers__main p { font-size: 8.5px; margin-top: 8px; }
.papers__kind { font-size: 8.5px; padding-top: 6px; }

/* 07 Person */
.person {
  display: grid;
  grid-template-columns: 360px minmax(0, 1fr);
  gap: 72px;
  align-items: start;
}
.plate__frame {
  position: relative;
  aspect-ratio: 4 / 5;
  border: 1px solid var(--rail, rgba(20,21,15,.35));
  background:
    linear-gradient(158deg, rgba(255,255,255,0.10), rgba(255,255,255,0.015) 46%, rgba(0,0,0,0.18) 100%),
    radial-gradient(rgba(239,236,228,0.16) 0.55px, transparent 0.9px) 0 0 / 4px 4px,
    #1b1c14;
  overflow: hidden;
}
.plate__frame img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(1) contrast(1.04) brightness(1.02);
}
.plate__cross::before, .plate__cross::after {
  content: '';
  position: absolute;
  background: rgba(239,236,228,0.14);
}
.plate__cross::before { left: 50%; top: 7%; bottom: 7%; width: 1px; }
.plate__cross::after { top: 50%; left: 7%; right: 7%; height: 1px; }
.plate__corner {
  position: absolute;
  width: 12px;
  height: 12px;
  border: 0 solid rgba(239,236,228,0.42);
}
.plate__corner--tl { top: 12px; left: 12px; border-top-width: 1px; border-left-width: 1px; }
.plate__corner--tr { top: 12px; right: 12px; border-top-width: 1px; border-right-width: 1px; }
.plate__corner--bl { bottom: 12px; left: 12px; border-bottom-width: 1px; border-left-width: 1px; }
.plate__corner--br { bottom: 12px; right: 12px; border-bottom-width: 1px; border-right-width: 1px; }
.plate__id {
  position: absolute;
  left: 22px;
  bottom: 20px;
  font-size: 8px;
  color: rgba(239,236,228,0.55);
  letter-spacing: 0.18em;
}
.plate figcaption { margin-top: 10px; font-size: 8.5px; }
.person__text .lede { max-width: 30ch; }
.person__text > p + p { margin-top: 22px; }
.person__text > p { font-size: 15.5px; line-height: 1.75; color: var(--ink-2); max-width: 54ch; }
.person__h { margin: 44px 0 14px; padding-top: 12px; border-top: 1px solid var(--rule); font-size: 8.5px; }
.creds div {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 18px;
  padding: 11px 0;
  border-bottom: 1px solid var(--rule-soft);
}
.creds dt { font-family: var(--mono); font-size: 9px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--signal); }
.creds dd { font-size: 13px; color: var(--ink-2); }

/* Contact */
.contact {
  background: #14150f;
  color: #efece4;
  padding: 110px var(--pad) 100px;
  --muted: #8b8677;
  --rule: rgba(239,236,228,0.2);
}
.contact h2 {
  font-family: var(--display);
  font-variation-settings: 'opsz' 144, 'wght' 380, 'SOFT' 0, 'WONK' 1;
  font-size: clamp(38px, 6.2vw, 86px);
  line-height: 1.02;
  letter-spacing: -0.035em;
  margin: 22px 0 56px;
  max-width: 16ch;
}
.contact__inner { max-width: 1100px; }
.contact__rows { border-top: 1px solid var(--rule); }
.contact__row {
  display: grid;
  grid-template-columns: 120px 1fr auto;
  gap: 24px;
  align-items: center;
  padding: 24px 0;
  border-bottom: 1px solid var(--rule);
  transition: color 0.3s ease, padding-left 0.4s var(--ease);
}
.contact__row:hover { color: #e2542a; padding-left: 10px; }
.contact__row .mono { font-size: 9px; }
.contact__val {
  font-family: var(--display);
  font-variation-settings: 'opsz' 72, 'wght' 380, 'SOFT' 0, 'WONK' 1;
  font-size: clamp(18px, 2.3vw, 28px);
  letter-spacing: -0.01em;
}
.contact__arrow { font-size: 22px; line-height: 1; }

/* Colophon */
.colophon { background: var(--paper-2); border-top: 1px solid var(--rule); padding: 34px var(--pad) 46px; }
.colophon__grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1.6fr;
  gap: 32px;
}
.colophon__grid > div > .mono { display: block; margin-bottom: 10px; font-size: 8.5px; }
.colophon p.mono { font-size: 9px; line-height: 1.7; color: var(--ink-2); }
.colophon__note p { font-size: 11px; line-height: 1.6; color: var(--muted); max-width: 42ch; }

/* Reveal ----------------------------------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
  transition-delay: calc(var(--d, 0) * 70ms);
}
.reveal.in { opacity: 1; transform: translateY(0); }

/* Responsive ------------------------------------------------------------- */
@media (max-width: 1180px) {
  :root { --pad: 34px; }
  .hero__name { font-size: clamp(60px, 12vw, 150px); }
  .gauge { width: clamp(170px, 19vw, 230px); }
  .section__body { padding-left: 72px; }
  .section__head { grid-template-columns: 54px 1fr auto; }
  .person { grid-template-columns: 310px 1fr; gap: 48px; }
  .ledger li { grid-template-columns: 110px 1fr 1fr; }
}

@media (max-width: 980px) {
  :root { --rail: 0px; --pad: 26px; }
  body { padding-left: 0; }
  .rail { display: none; }
  .masthead { left: 0; }
  .menu-panel { left: 0; }
  .progress { left: 0; }
  .nav, .masthead__loc { display: none; }
  .menu-btn { display: inline-flex; }
  .hero { padding-top: 88px; min-height: auto; }
  .hero__body { grid-template-columns: 1fr auto; gap: 24px; }
  .hero__name { font-size: clamp(58px, 15vw, 130px); }
  .gauge { width: 170px; }
  .hero__foot { grid-template-columns: 1fr 1.2fr; gap: 30px; }
  .scroll-cue { grid-column: 2; justify-self: end; }
  .section { padding: 78px var(--pad) 88px; }
  .section__body { padding-left: 0; margin-top: 40px; }
  .section__head { display: block; }
  .section__num { display: block; padding: 0 0 10px; }
  .section__tag { display: none; }
  .record__cols { gap: 32px; }
  .timeline__pipe { display: none; }
  .stations { grid-template-columns: 1fr; gap: 0; }
  .station { padding: 0 0 34px 34px; border-left: 1px solid var(--rule); }
  .station:last-child { border-left-color: transparent; }
  .station__dot { top: 4px; left: -5px; }
  .station__dot::after { display: none; }
  .station__note { max-width: 46ch; }
  .clauses { gap: 0 40px; }
  .ai__cols { grid-template-columns: 1fr; gap: 40px; }
  .chapter__top { grid-template-columns: 1fr; gap: 40px; }
  .person { grid-template-columns: 280px 1fr; gap: 36px; }
  .persons .plate__frame { max-width: 280px; }
}

@media (max-width: 720px) {
  .hero__name .line--out > span { font-variation-settings: 'opsz' 96, 'wght' 405, 'SOFT' 0, 'WONK' 1; }
  .masthead__id .muted, .masthead__rule { display: none; }
  .menu-btn { gap: 10px; }
  .hero { min-height: auto; padding-bottom: 28px; }
  .hero__body { grid-template-columns: 1fr; padding: 40px 0 26px; }
  .gauge { display: none; }
  .hero__service {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    border-top: 1px solid var(--rule);
    padding-top: 10px;
    margin-top: 4px;
    font-size: 8.5px;
  }
  .hero__name { font-size: clamp(54px, 17vw, 104px); line-height: 0.84; }
  .hero__name .line--out { margin-left: 0.42em; }
  .gauge { width: 150px; margin: -6px 0 0 auto; }
  .hero__foot { grid-template-columns: 1fr; gap: 26px; }
  .hero__meta { grid-template-columns: repeat(2, 1fr); gap: 14px 20px; }
  .scroll-cue { display: none; }
  .section { padding: 64px var(--pad) 72px; }
  .section__title { font-size: clamp(34px, 9vw, 46px); }
  .section__head { gap: 10px; }
  .lede { font-size: clamp(22px, 6.2vw, 30px); }
  .record__cols { grid-template-columns: 1fr; gap: 22px; margin-top: 32px; }
  .figures { grid-template-columns: repeat(2, 1fr); gap: 26px 20px; margin-top: 52px; }
  .clauses { grid-template-columns: 1fr; }
  .clause:nth-child(2) { border-top: 1px solid var(--rule); }
  .capabilities { gap: 10px 20px; margin-top: 44px; }
  .ai__cols { margin-top: 36px; }
  .barrier { padding: 30px 10px; }
  .barrier__node, .barrier__gate { min-width: 0; padding: 7px 2px; }
  .barrier__node span, .barrier__gate span { font-size: 7px; letter-spacing: 0.04em; }
  .barrier__gate::before, .barrier__gate::after { display: none; }
  .barrier__stages li { grid-template-columns: 1fr; gap: 2px; }
  .barrier__stages em { max-width: none; font-size: 10px; }
  .ledger li { grid-template-columns: 1fr; gap: 5px; padding: 18px 0; }
  .ledger li .mono { margin-bottom: 2px; }
  .papers li { grid-template-columns: 50px 1fr; gap: 14px; }
  .papers__kind { display: none; }
  .person { grid-template-columns: 1fr; gap: 34px; }
  .plate { max-width: 300px; }
  .contact { padding: 76px var(--pad) 72px; }
  .contact__row { grid-template-columns: 1fr auto; gap: 6px 16px; padding: 20px 0; }
  .contact__row .mono { grid-column: 1 / -1; }
  .colophon__grid { grid-template-columns: 1fr 1fr; gap: 24px; }
  .colophon__note { grid-column: 1 / -1; }
}

@media (max-width: 420px) {
  :root { --pad: 18px; }
  .hero__name { font-size: 17vw; }
  .masthead { padding: 0 18px; }
  .masthead__rule { width: 24px; }
  .gauge { width: 132px; }
  .figures__n { font-size: 40px; }
  .barrier__node span, .barrier__gate span { font-size: 6.4px; }
}

/* Motion preferences ------------------------------------------------------ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .reveal { opacity: 1; transform: none; }
  .hero__name .line > span { transform: none; }
  .gauge__needle { transform: rotate(30deg); }
}

/* Print ------------------------------------------------------------------ */
@media print {
  body { padding: 0; background: #fff; color: #000; }
  .rail, .masthead, .progress, .menu-panel, .grain, .scroll-cue, .hero__bg { display: none !important; }
  .hero { min-height: 0; padding: 24px 0; }
  .section, .contact { padding: 24px 0; break-inside: avoid; }
  .section--dark, .contact { background: #fff; color: #000; }
  .reveal { opacity: 1; transform: none; }
  a { text-decoration: underline; }
}
