:root {
  --ink: #0b0908;
  --cream: #f2ebe1;

  --fg: #f2ebe1;
  --fg-dim: rgba(242, 235, 225, 0.58);
  --fg-faint: rgba(242, 235, 225, 0.32);
  --hair: rgba(242, 235, 225, 0.12);
  --hair-strong: rgba(242, 235, 225, 0.26);
  --accent: #ff7d3b;
  --tint: rgba(242, 235, 225, 0.035);

  --brand: #f16c29;

  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;

  --maxw: 1280px;
  --gutter: clamp(20px, 5vw, 56px);
  --section-y: clamp(84px, 11vw, 168px);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --rise: cubic-bezier(0.16, 1, 0.3, 1);
}

.invert {
  --fg: #16110d;
  --fg-dim: rgba(22, 17, 13, 0.64);
  --fg-faint: rgba(22, 17, 13, 0.38);
  --hair: rgba(22, 17, 13, 0.14);
  --hair-strong: rgba(22, 17, 13, 0.28);
  --accent: #c9490f;
  --tint: rgba(22, 17, 13, 0.035);
  background: var(--cream);
  color: var(--fg);
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 76px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--ink);
  color: var(--fg);
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  font-size: 16.5px;
  line-height: 1.58;
  letter-spacing: -0.011em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

::selection { background: var(--brand); color: #0b0908; }

h1, h2, h3, h4 { margin: 0; font-weight: 400; }
p { margin: 0; text-wrap: pretty; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
ul { margin: 0; padding: 0; list-style: none; }

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

/* ---------- Film grain ---------- */
.grain {
  position: fixed;
  inset: -50%;
  z-index: 400;
  pointer-events: none;
  opacity: 0.055;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grainshift 1.2s steps(3) infinite;
}
@keyframes grainshift {
  0%   { transform: translate(0, 0); }
  33%  { transform: translate(-1.5%, 1%); }
  66%  { transform: translate(1%, -1.5%); }
  100% { transform: translate(0, 0); }
}

/* ---------- Type primitives ---------- */
.display {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 300;
  line-height: 0.96;
  letter-spacing: -0.038em;
  text-wrap: balance;
}
.display em { font-style: italic; font-weight: 300; color: var(--accent); }

.vh {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.mono {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-variant-numeric: tabular-nums;
}

.lede {
  font-size: clamp(1.02rem, 1.2vw, 1.14rem);
  color: var(--fg-dim);
  max-width: 56ch;
}

/* ---------- Layout ---------- */
.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
  container-type: inline-size;
}
.band { padding-block: var(--section-y); }

.sec-head {
  display: grid;
  grid-template-columns: 200px minmax(0, 1fr);
  gap: clamp(20px, 4vw, 56px);
  padding-top: 24px;
  border-top: 1px solid var(--hair-strong);
  margin-bottom: clamp(52px, 6vw, 92px);
}
.sec-head .idx { color: var(--fg-faint); padding-top: 9px; }
.sec-head .idx b { color: var(--accent); font-weight: 400; }
.sec-head h2 { font-size: clamp(2.1rem, 5vw, 4rem); }
.sec-head .lede { margin-top: 24px; }

/* ---------- Nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 300;
  background: rgba(11, 9, 8, 0.7);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.4s var(--ease), background 0.4s var(--ease);
}
.nav.scrolled { border-bottom-color: var(--hair); background: rgba(11, 9, 8, 0.88); }
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 72px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-family: 'Fraunces', serif;
  font-weight: 400;
  font-size: 1.2rem;
  letter-spacing: -0.035em;
}
.brand span { white-space: nowrap; }
.brand img {
  width: 28px; height: 28px;
  border-radius: 7px;
  transition: transform 0.5s var(--ease);
}
.brand:hover img { transform: rotate(-8deg) scale(1.06); }
.nav-links { display: flex; align-items: center; gap: clamp(16px, 2.4vw, 38px); }
.nav-links a { color: var(--fg-dim); white-space: nowrap; transition: color 0.2s var(--ease); position: relative; }
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; bottom: -6px;
  width: 0; height: 1px;
  background: var(--accent);
  transition: width 0.35s var(--ease);
}
.nav-links a:hover { color: var(--fg); }
.nav-links a:hover::after { width: 100%; }
.nav-cta {
  border: 1px solid var(--hair-strong);
  padding: 9px 16px;
  color: var(--fg);
  transition: background 0.3s var(--ease), border-color 0.3s var(--ease), color 0.3s var(--ease);
}
.nav-cta:hover { background: var(--brand); border-color: var(--brand); color: #0b0908; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding: 17px 26px;
  border: 1px solid var(--hair-strong);
  color: var(--fg);
  background: transparent;
  cursor: pointer;
  transition: background 0.3s var(--ease), color 0.3s var(--ease), border-color 0.3s var(--ease);
}
.btn .arw { transition: transform 0.35s var(--ease); }
.btn:hover .arw { transform: translateX(5px); }
.btn-fill { background: var(--brand); border-color: var(--brand); color: #0b0908; }
.btn-fill:hover { background: var(--fg); border-color: var(--fg); }
.btn-line:hover { border-color: var(--fg); background: var(--tint); }
.btn-dark { background: #16110d; border-color: #16110d; color: var(--cream); }
.btn-dark:hover { background: #000; border-color: #000; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: calc(100svh - 72px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding-block: clamp(28px, 4vw, 52px) 0;
  overflow: hidden;
}
.hero-glow {
  position: absolute;
  width: 900px; height: 900px;
  left: 0; top: 0;
  margin: -450px 0 0 -450px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(241, 108, 41, 0.16), transparent 62%);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.8s var(--ease);
  will-change: transform;
}
.hero-top, .hero-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  color: var(--fg-faint);
}
.hero-top { padding-bottom: 20px; border-bottom: 1px solid var(--hair); }
.hero-top i, .hero-foot i { font-style: normal; color: var(--accent); }
.hero-foot {
  /* Longhands only: `padding` shorthand would reset .wrap's padding-inline. */
  padding-top: 22px;
  padding-bottom: 30px;
  border-top: 1px solid var(--hair);
}
.hero-foot .facts { display: flex; gap: clamp(14px, 2vw, 30px); flex-wrap: wrap; }
.hero-mid {
  padding-block: clamp(40px, 6vw, 76px);
  display: grid;
  place-items: center;
}

/* ---------- Hero orbit ---------- */
.cycle {
  position: relative;
  width: 100%;
  max-width: 440px;
  aspect-ratio: 1;
  margin-inline: auto;
  opacity: 0;
  animation: fadein 1.2s var(--ease) 0.35s forwards;
}
@keyframes fadein { to { opacity: 1; } }
.cycle svg { display: block; width: 100%; height: 100%; overflow: visible; }
.cycle text {
  font-family: var(--mono);
  font-size: 15px;
  letter-spacing: 0.18em;
  fill: var(--fg-faint);
}
.cycle .ring-dash {
  transform-origin: 220px 220px;
  animation: spin 70s linear infinite;
}
.cycle .node { fill: var(--fg-faint); }
.cycle .runner {
  fill: var(--brand);
  offset-path: path("M 220 90 A 130 130 0 1 1 219.9 90");
  offset-distance: 0%;
  offset-rotate: 0deg;
  animation: orbit 16s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes orbit { to { offset-distance: 100%; } }
.cycle .mark {
  position: absolute;
  top: 50%; left: 50%;
  width: 21%;
  transform: translate(-50%, -50%);
  border-radius: 9px;
}


.hero-sub {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: clamp(24px, 4vw, 60px);
  align-items: end;
  opacity: 0;
  animation: fadein 1s var(--ease) 0.55s forwards;
}
@keyframes fadein { to { opacity: 1; } }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; }

.scroll-cue { display: inline-flex; align-items: center; gap: 10px; }
.scroll-cue span.bar {
  display: block;
  width: 42px; height: 1px;
  background: var(--hair-strong);
  position: relative;
  overflow: hidden;
}
.scroll-cue span.bar::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--accent);
  transform: translateX(-100%);
  animation: sweep 2.6s var(--ease) infinite;
}
@keyframes sweep {
  0% { transform: translateX(-100%); }
  55%, 100% { transform: translateX(100%); }
}

/* ---------- Marquee ---------- */
.marquee {
  overflow: hidden;
  border-top: 1px solid var(--hair);
  user-select: none;
}
.marquee + .marquee { border-bottom: 1px solid var(--hair); }
.marquee-track {
  display: flex;
  width: max-content;
  animation: slide 46s linear infinite;
}
.marquee.rev .marquee-track { animation-direction: reverse; animation-duration: 62s; }
.marquee-set {
  display: flex;
  align-items: center;
  gap: clamp(18px, 2.6vw, 40px);
  padding-right: clamp(18px, 2.6vw, 40px);
  white-space: nowrap;
}
.marquee-big .marquee-set {
  font-family: 'Fraunces', serif;
  font-weight: 200;
  font-style: italic;
  font-size: clamp(2.4rem, 6.6vw, 5.4rem);
  line-height: 1.16;
  letter-spacing: -0.035em;
  padding-block: clamp(10px, 1.4vw, 18px);
}
.marquee-big .hollow {
  color: transparent;
  -webkit-text-stroke: 1px var(--hair-strong);
}
.marquee-big i {
  font-style: normal;
  color: var(--brand);
  font-size: 0.28em;
  transform: translateY(-0.5em);
}
.marquee-small .marquee-set {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--fg-faint);
  padding-block: 13px;
  gap: 26px;
}
.marquee-small i { font-style: normal; color: var(--brand); }
@keyframes slide { to { transform: translateX(-50%); } }

/* ---------- Status board ---------- */
.board { display: grid; grid-template-columns: repeat(5, 1fr); }
.board-item {
  padding: clamp(24px, 3vw, 38px) clamp(12px, 1.6vw, 26px) clamp(24px, 3vw, 38px) 0;
  border-right: 1px solid var(--hair);
}
.board-item + .board-item { padding-left: clamp(14px, 1.8vw, 28px); }
.board-item:last-child { border-right: none; }
.board-item b {
  display: block;
  font-family: 'Fraunces', serif;
  font-weight: 300;
  font-size: clamp(1.25rem, 1.9vw, 1.7rem);
  letter-spacing: -0.03em;
  margin-bottom: 12px;
}
.board-item b a { transition: color 0.25s var(--ease); }
.board-item b a:hover { color: var(--accent); }
.board-item .st { display: inline-flex; align-items: center; gap: 8px; color: var(--fg-dim); }
.board-item .st.live { color: var(--accent); }
.dot {
  width: 5px; height: 5px;
  border-radius: 50%;
  background: currentColor;
  flex: none;
}
.st.live .dot { animation: pulse 2.4s ease-in-out infinite; }
@keyframes pulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(255, 125, 59, 0.5); }
  50% { opacity: 0.55; box-shadow: 0 0 0 5px rgba(255, 125, 59, 0); }
}

/* ---------- Approach ---------- */
.thesis-grid {
  display: grid;
  grid-template-columns: 200px minmax(0, 1fr);
  gap: clamp(20px, 4vw, 56px);
}
.thesis-body {
  max-width: 60ch;
  font-size: clamp(1.02rem, 1.2vw, 1.14rem);
  color: var(--fg-dim);
}
.thesis-body p + p { margin-top: 24px; }
.thesis-body strong { color: var(--fg); font-weight: 500; }
.pull {
  font-family: 'Fraunces', serif;
  font-weight: 200;
  font-style: italic;
  font-size: clamp(1.6rem, 3vw, 2.5rem);
  line-height: 1.16;
  letter-spacing: -0.035em;
  color: var(--fg);
  margin: 46px 0;
  padding-left: 28px;
  border-left: 1px solid var(--accent);
  max-width: 22ch;
}

/* ---------- Portfolio index ---------- */
.index { border-bottom: 1px solid var(--hair-strong); }
.index-head {
  display: grid;
  grid-template-columns: 84px minmax(0, 1fr) 372px 22px;
  gap: 20px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--hair-strong);
  color: var(--fg-faint);
}
.index-head .row-meta { padding-top: 0; }
.row {
  position: relative;
  display: grid;
  grid-template-columns: 84px minmax(0, 1fr) 372px 22px;
  gap: 20px;
  align-items: start;
  padding: clamp(26px, 3vw, 40px) 0;
  border-bottom: 1px solid var(--hair);
}
.row:last-child { border-bottom: none; }
.row::after {
  content: "";
  position: absolute;
  left: 0; bottom: -1px;
  height: 1px; width: 0;
  background: var(--accent);
  transition: width 0.55s var(--ease);
}
a.row:hover::after { width: 100%; }
a.row:hover .row-name { color: var(--accent); transform: translateX(6px); }
a.row:hover .row-go { color: var(--accent); transform: translate(3px, -3px); }
.row-idx {
  font-family: 'Fraunces', serif;
  font-weight: 300;
  font-size: clamp(1.5rem, 2.2vw, 2rem);
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--fg-faint);
  font-variant-numeric: tabular-nums;
  padding-top: 4px;
}
.row-name {
  display: block;
  font-family: 'Fraunces', serif;
  font-weight: 300;
  font-size: clamp(1.8rem, 3.4vw, 2.9rem);
  letter-spacing: -0.04em;
  line-height: 1;
  margin-bottom: 14px;
  transition: color 0.3s var(--ease), transform 0.45s var(--ease);
}
.row-desc { display: block; color: var(--fg-dim); font-size: 0.97rem; max-width: 58ch; }
.row-meta { display: flex; gap: 20px; padding-top: 10px; }
.row-cat { flex: 0 0 186px; color: var(--fg-dim); }
.row-status { flex: 1 1 auto; color: var(--fg); }
.row-status.dim { color: var(--fg-faint); }
.row-go {
  padding-top: 8px;
  color: var(--fg-faint);
  font-size: 1.05rem;
  line-height: 1;
  transition: transform 0.35s var(--ease), color 0.3s var(--ease);
}
.index-note { margin-top: 32px; color: var(--fg-faint); max-width: 62ch; font-size: 0.9rem; }

/* ---------- Principles ---------- */
.math {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 200;
  font-size: clamp(2.6rem, 8.4vw, 7rem);
  line-height: 0.94;
  letter-spacing: -0.05em;
  text-wrap: balance;
  max-width: 14ch;
}
.math em { font-style: normal; color: var(--accent); }
.math .inf { font-style: italic; }
.math-note {
  margin-top: 30px;
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--fg-faint);
}
.prin-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: clamp(44px, 6vw, 100px);
  align-items: start;
}
.prin-lede { margin-top: 34px; color: var(--fg-dim); max-width: 36ch; }
.prin-list { border-top: 1px solid var(--hair-strong); }
.prin-item {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 18px;
  padding: 28px 0;
  border-bottom: 1px solid var(--hair);
}
.prin-item .n { color: var(--accent); padding-top: 5px; }
.prin-item h3 {
  font-size: 1.06rem;
  font-weight: 500;
  font-family: 'Inter', sans-serif;
  letter-spacing: -0.02em;
  margin-bottom: 7px;
}
.prin-item p { color: var(--fg-dim); font-size: 0.96rem; }

/* ---------- FAQ ---------- */
.faq { border-top: 1px solid var(--hair-strong); }
.faq-item { border-bottom: 1px solid var(--hair); }
.faq-q {
  width: 100%;
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) 24px;
  gap: 18px;
  align-items: center;
  background: none;
  border: 0;
  cursor: pointer;
  text-align: left;
  color: var(--fg);
  font-family: 'Fraunces', serif;
  font-weight: 300;
  font-size: clamp(1.15rem, 1.9vw, 1.55rem);
  letter-spacing: -0.03em;
  padding: 28px 0;
  transition: color 0.25s var(--ease);
}
.faq-q:hover { color: var(--accent); }
.faq-q .n {
  color: var(--fg-faint);
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  transition: color 0.25s var(--ease);
}
.faq-item.open .faq-q .n, .faq-q:hover .n { color: var(--accent); }
.faq-q .pm { position: relative; width: 16px; height: 16px; justify-self: end; }
.faq-q .pm::before, .faq-q .pm::after {
  content: "";
  position: absolute;
  top: 50%; left: 50%;
  width: 14px; height: 1px;
  background: var(--accent);
  transform: translate(-50%, -50%);
  transition: transform 0.4s var(--ease), opacity 0.4s var(--ease);
}
.faq-q .pm::after { transform: translate(-50%, -50%) rotate(90deg); }
.faq-item.open .pm::after { transform: translate(-50%, -50%) rotate(0); opacity: 0; }
.faq-a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.45s var(--ease); }
.faq-item.open .faq-a { grid-template-rows: 1fr; }
.faq-a-inner { overflow: hidden; }
.faq-a p { color: var(--fg-dim); max-width: 64ch; padding: 0 0 32px 66px; }
.faq-a a { color: var(--accent); border-bottom: 1px solid rgba(255, 125, 59, 0.4); }

/* ---------- Contact ---------- */
.contact {
  background: var(--brand);
  color: #16110d;
  --fg: #16110d;
  --accent: #16110d;
  --fg-dim: rgba(22, 17, 13, 0.72);
  --fg-faint: rgba(22, 17, 13, 0.5);
  --hair: rgba(22, 17, 13, 0.2);
  --hair-strong: rgba(22, 17, 13, 0.32);
}
.contact h2 { font-size: clamp(2.8rem, 9vw, 7rem); line-height: 0.9; }
.contact .lede { color: rgba(22, 17, 13, 0.76); margin-top: 30px; max-width: 34ch; }
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(40px, 6vw, 90px);
  align-items: end;
  margin-top: clamp(40px, 5vw, 70px);
}
.contact-mail {
  display: inline-block;
  font-family: 'Fraunces', serif;
  font-weight: 200;
  font-size: clamp(1.7rem, 4.4vw, 3.3rem);
  letter-spacing: -0.045em;
  line-height: 1;
  border-bottom: 1px solid rgba(22, 17, 13, 0.3);
  padding-bottom: 8px;
  transition: border-color 0.3s var(--ease), transform 0.4s var(--ease);
}
.contact-mail:hover { border-color: #16110d; transform: translateX(4px); }
.contact-list { margin-top: 36px; }
.contact-list li {
  display: flex;
  gap: 14px;
  padding: 13px 0;
  border-top: 1px solid rgba(22, 17, 13, 0.18);
  color: rgba(22, 17, 13, 0.76);
  font-size: 0.95rem;
}
.contact-list li b { color: #16110d; font-weight: 500; }

/* ---------- Footer ---------- */
footer { padding-top: clamp(56px, 7vw, 88px); overflow: hidden; }
.foot-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) repeat(2, minmax(0, 1fr));
  gap: 40px;
  padding-bottom: 56px;
}
.foot-brand .brand { margin-bottom: 20px; }
.foot-brand p { color: var(--fg-dim); max-width: 32ch; font-size: 0.94rem; }
.foot-col h4 { color: var(--fg-faint); margin-bottom: 18px; }
.foot-col li { margin-bottom: 12px; }
.foot-col a { color: var(--fg-dim); font-size: 0.94rem; transition: color 0.2s var(--ease); }
.foot-col a:hover { color: var(--accent); }
.foot-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  padding-top: 26px;
  border-top: 1px solid var(--hair);
  color: var(--fg-faint);
}
.legal {
  margin-top: 22px;
  color: var(--fg-faint);
  font-size: 0.77rem;
  line-height: 1.7;
  max-width: 84ch;
  padding-bottom: 40px;
}
.wordmark {
  font-family: 'Fraunces', serif;
  font-weight: 200;
  font-size: 15.5cqw;
  line-height: 0.78;
  letter-spacing: -0.05em;
  color: rgba(242, 235, 225, 0.055);
  white-space: nowrap;
  user-select: none;
  pointer-events: none;
  transform: translateY(14%);
}

/* ---------- Skip link ---------- */
.skip {
  position: absolute;
  left: -9999px; top: 10px;
  z-index: 500;
  background: var(--brand);
  color: #0b0908;
  padding: 10px 18px;
  font-weight: 600;
}
.skip:focus { left: 16px; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .index-head { display: none; }
  .row { grid-template-columns: 60px minmax(0, 1fr) 22px; row-gap: 16px; }
  .row-meta { grid-column: 2; grid-row: 2; padding-top: 0; flex-wrap: wrap; gap: 8px 18px; }
  .row-cat { flex: 0 0 auto; }
  .row-go { grid-column: 3; grid-row: 1; }
  .board { grid-template-columns: repeat(2, 1fr); }
  .board-item { border-bottom: 1px solid var(--hair); padding-bottom: 26px; }
  .board-item:nth-child(even) { border-right: none; }
  .board-item:nth-child(5) { border-right: none; border-bottom: none; }
}
@media (max-width: 900px) {
  .hero { min-height: 0; }
  .prin-grid, .contact-grid { grid-template-columns: minmax(0, 1fr); }
  .cycle { max-width: 300px; }
  .sec-head, .thesis-grid { grid-template-columns: minmax(0, 1fr); gap: 22px; }
  .math { max-width: none; }
  .foot-grid { grid-template-columns: repeat(2, 1fr); }
  .foot-brand { grid-column: 1 / -1; }
  .scroll-cue { display: none; }
}
@media (max-width: 1080px) {
  .nav-links { gap: 15px; }
  .nav-links a { font-size: 0.63rem; letter-spacing: 0.11em; }
  .nav-cta { font-size: 0.63rem; letter-spacing: 0.11em; padding: 9px 13px; }
}
@media (max-width: 880px) {
  .nav-links { display: none; }
}

@media (max-width: 720px) {
  .board { grid-template-columns: minmax(0, 1fr); }
  .board-item { border-right: none; padding-left: 0 !important; }
  .board-item:last-child { border-bottom: none; }
  .faq-a p { padding-left: 0; }
}
@media (max-width: 460px) {
  body { font-size: 16px; }
  .foot-grid { grid-template-columns: repeat(2, 1fr); }
  .row { grid-template-columns: 44px minmax(0, 1fr); }
  .row-go { display: none; }
  .row-meta { grid-column: 2; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .marquee-track, .grain, .st.live .dot, .scroll-cue span.bar::after,
  .cycle .ring-dash, .cycle .runner { animation: none; }
  .cycle { opacity: 1; animation: none; }
  .hero-sub { opacity: 1; animation: none; }
  * { transition-duration: 0.01ms !important; }
}

/* =========================================================
   Notes — archive rows reuse the .row index component.
   Article pages use .article-* below.
   ========================================================= */

.notes-hero { padding-block: clamp(52px, 7vw, 96px) clamp(36px, 4vw, 56px); }
.notes-hero h1 {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 200;
  font-size: clamp(2.8rem, 9vw, 7rem);
  line-height: 0.9;
  letter-spacing: -0.05em;
}
.notes-hero h1 em { font-style: italic; color: var(--accent); }
.notes-hero .lede { margin-top: 28px; }

.article-grid {
  display: grid;
  grid-template-columns: 200px minmax(0, 1fr);
  gap: clamp(20px, 4vw, 56px);
  align-items: start;
}
.article-rail { position: sticky; top: 104px; display: grid; gap: 22px; }
.article-rail dl { margin: 0; display: grid; gap: 18px; }
.article-rail dt { color: var(--fg-faint); margin-bottom: 5px; }
.article-rail dd { margin: 0; color: var(--fg-dim); font-size: 0.9rem; }
.article-back {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--fg-dim);
  transition: color 0.25s var(--ease), gap 0.25s var(--ease);
}
.article-back:hover { color: var(--accent); gap: 13px; }

.article-head { padding-top: 24px; border-top: 1px solid var(--hair-strong); }
.article-head h1 {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 200;
  font-size: clamp(2.3rem, 5.6vw, 4.4rem);
  line-height: 0.94;
  letter-spacing: -0.045em;
  text-wrap: balance;
  max-width: 18ch;
}
.article-head h1 em { font-style: italic; color: var(--accent); }
.article-dek {
  margin-top: 30px;
  font-family: 'Fraunces', serif;
  font-weight: 300;
  font-size: clamp(1.2rem, 2vw, 1.6rem);
  line-height: 1.32;
  letter-spacing: -0.03em;
  color: var(--fg-dim);
  max-width: 34ch;
}

.article-body {
  max-width: 66ch;
  margin-top: clamp(44px, 5vw, 72px);
  font-size: 1.06rem;
  line-height: 1.72;
  color: var(--fg-dim);
}
.article-body > * + * { margin-top: 26px; }
.article-body h2 {
  font-family: 'Fraunces', serif;
  font-weight: 300;
  font-size: clamp(1.5rem, 2.6vw, 2.1rem);
  letter-spacing: -0.035em;
  line-height: 1.1;
  color: var(--fg);
  margin-top: clamp(48px, 5vw, 72px);
}
.article-body h3 {
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: -0.015em;
  color: var(--fg);
  margin-top: 40px;
}
.article-body strong { color: var(--fg); font-weight: 500; }
.article-body em { font-style: italic; }
.article-body a {
  color: var(--fg);
  border-bottom: 1px solid var(--accent);
  transition: color 0.2s var(--ease);
}
.article-body a:hover { color: var(--accent); }
.article-body ul, .article-body ol { padding-left: 0; list-style: none; }
.article-body li { position: relative; padding-left: 26px; }
.article-body li + li { margin-top: 12px; }
.article-body ul li::before {
  content: "";
  position: absolute;
  left: 2px; top: 0.72em;
  width: 6px; height: 1px;
  background: var(--accent);
}
.article-body ol { counter-reset: n; }
.article-body ol li { counter-increment: n; }
.article-body ol li::before {
  content: counter(n, decimal-leading-zero);
  position: absolute;
  left: 0; top: 0;
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  color: var(--accent);
  line-height: 2.6;
}
.article-body blockquote {
  margin: clamp(40px, 4vw, 56px) 0;
  padding-left: 28px;
  border-left: 1px solid var(--accent);
  font-family: 'Fraunces', serif;
  font-weight: 200;
  font-style: italic;
  font-size: clamp(1.35rem, 2.4vw, 1.95rem);
  line-height: 1.22;
  letter-spacing: -0.035em;
  color: var(--fg);
  max-width: 22ch;
}
.article-body code {
  font-family: var(--mono);
  font-size: 0.86em;
  background: var(--tint);
  border: 1px solid var(--hair);
  padding: 2px 6px;
  color: var(--fg);
}
.article-body pre {
  background: var(--tint);
  border: 1px solid var(--hair);
  padding: 22px 24px;
  overflow-x: auto;
  font-size: 0.86rem;
  line-height: 1.65;
}
.article-body pre code { background: none; border: 0; padding: 0; }
.article-body hr { border: 0; height: 1px; background: var(--hair); margin: clamp(44px, 5vw, 68px) 0; }
.article-body figcaption, .article-body .caption {
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--fg-faint);
  margin-top: 12px;
}

.article-end {
  max-width: 66ch;
  margin-top: clamp(56px, 6vw, 88px);
  padding-top: 26px;
  border-top: 1px solid var(--hair-strong);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  color: var(--fg-faint);
}

@media (max-width: 900px) {
  .article-grid { grid-template-columns: minmax(0, 1fr); gap: 26px; }
  .article-rail { position: static; grid-auto-flow: row; }
  .article-rail dl { display: flex; flex-wrap: wrap; gap: 16px 30px; }
  .article-head h1 { max-width: none; }
}

/* ---------- Bare section label (no heading, no lede) ---------- */
.sec-label {
  display: block;
  padding-top: 24px;
  border-top: 1px solid var(--hair-strong);
  margin-bottom: clamp(34px, 4vw, 54px);
  color: var(--fg-faint);
}
.sec-label b { color: var(--accent); font-weight: 400; }

/* ---------- Full-bleed statement ---------- */
.statement { padding-block: clamp(96px, 14vw, 220px); }
.statement .math { max-width: 16ch; }
