/* D'Amico Technical: site styles
   Dark "instrument" palette with light paper sections. */

:root {
  --bg: #06070b;
  --bg-raised: #0d0f16;
  --bg-panel: rgba(255, 255, 255, .03);
  --ink: #eceae4;
  --muted: #9a9fab;
  --dim: #6b707c;
  --line: rgba(255, 255, 255, .1);
  --line-strong: rgba(255, 255, 255, .18);

  --paper: #ecebe6;
  --paper-ink: #0b0c10;
  --paper-muted: #575b64;
  --paper-line: rgba(11, 12, 16, .14);

  --blue: #7aa2ff;     /* Cherenkov */
  --violet: #a48bff;
  --amber: #ffb35c;

  --sans: "Inter Tight", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --serif: "Instrument Serif", ui-serif, Georgia, serif;
  --mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Consolas, monospace;

  --gutter: clamp(16px, 4vw, 48px);
  --maxw: 1240px;
  --section: clamp(88px, 12vw, 160px);
  --radius: 14px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { margin: 0; font-weight: 500; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; }
[role="list"] { list-style: none; }
em { font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: 0; }
strong { font-weight: 600; color: var(--ink); }
::selection { background: var(--amber); color: var(--paper-ink); }
:focus-visible { outline: 2px solid var(--amber); outline-offset: 3px; border-radius: 4px; }

.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 {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--ink); color: var(--bg); padding: 10px 16px; border-radius: 8px;
}
.skip:focus { top: 16px; }

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }
.mono { font-family: var(--mono); font-size: 12px; letter-spacing: .06em; text-transform: uppercase; }
.dim { color: var(--dim); }

/* ---------- Type scale ---------- */
.h-xxl, .h-xl, .h-lg, .hero-title {
  font-weight: 500;
  letter-spacing: -.035em;
  line-height: 1;
  text-wrap: balance;
}
.hero-title { font-size: clamp(44px, 7.6vw, 108px); line-height: .98; letter-spacing: -.045em; }
.h-xxl { font-size: clamp(40px, 6.4vw, 92px); }
.h-xl  { font-size: clamp(34px, 4.8vw, 66px); line-height: 1.02; }
.h-lg  { font-size: clamp(28px, 3.4vw, 44px); line-height: 1.08; letter-spacing: -.03em; }
.hero-title em, .h-xxl em, .h-xl em, .h-lg em { letter-spacing: -.01em; }

.eyebrow {
  display: flex; align-items: center; gap: 14px;
  font-family: var(--mono); font-size: 12px; letter-spacing: .1em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 28px;
}
.eyebrow span {
  color: var(--amber);
  padding-right: 14px; border-right: 1px solid var(--line-strong);
}
.lede { font-size: clamp(18px, 1.5vw, 21px); line-height: 1.5; color: var(--ink); }
.prose p { color: var(--muted); }
.prose .lede { color: var(--ink); }

/* ---------- Buttons & links ---------- */
.btn {
  --h: 54px;
  display: inline-flex; align-items: center; gap: 10px;
  height: var(--h); padding: 0 26px; border-radius: 999px;
  font: 500 16px/1 var(--sans); text-decoration: none; letter-spacing: -.01em;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), background .3s;
}
.btn-sm { --h: 40px; padding: 0 16px; font-size: 14px; }
.btn-glow {
  color: var(--ink);
  background:
    linear-gradient(#0a0b10, #0a0b10) padding-box,
    linear-gradient(100deg, var(--amber), #ffdcae 30%, var(--blue) 70%, var(--violet)) border-box;
  border: 1px solid transparent;
  box-shadow: 0 0 0 1px rgba(255,255,255,.04), 0 8px 30px -8px rgba(255,179,92,.45), 0 8px 40px -10px rgba(122,162,255,.5);
}
.btn-glow:hover {
  transform: translateY(-1px);
  box-shadow: 0 0 0 1px rgba(255,255,255,.06), 0 10px 40px -6px rgba(255,179,92,.6), 0 10px 50px -8px rgba(122,162,255,.65);
}
.btn span { transition: transform .3s var(--ease); }
.btn:hover span { transform: translateX(3px); }

.link-quiet { color: #c3c6ce; text-decoration: none; border-bottom: 1px solid var(--line-strong); padding-bottom: 2px; transition: color .2s, border-color .2s; }
.link-quiet:hover { color: var(--ink); border-color: var(--ink); }

.link-arrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 500; text-decoration: none;
  border-bottom: 1px solid currentColor; padding-bottom: 3px;
}
.link-arrow span { transition: transform .3s var(--ease); }
.link-arrow:hover span { transform: translateX(4px); }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 50;
  transition: background .4s, backdrop-filter .4s, border-color .4s;
  border-bottom: 1px solid transparent;
}
.site-header.is-scrolled {
  background: rgba(6, 7, 11, .72);
  -webkit-backdrop-filter: blur(14px) saturate(1.4);
  backdrop-filter: blur(14px) saturate(1.4);
  border-color: var(--line);
}
.site-header.on-light:not(.menu-open) {
  background: rgba(236, 235, 230, .82);
  border-color: var(--paper-line);
  color: var(--paper-ink);
}
.site-header.on-light:not(.menu-open) .brand-mark { color: var(--paper-ink); }
.site-header.on-light:not(.menu-open) .brand em,
.site-header.on-light:not(.menu-open) .nav-links a { color: var(--paper-muted); }
.site-header.on-light:not(.menu-open) .nav-links a:hover { color: var(--paper-ink); }
.site-header.on-light:not(.menu-open) .nav-toggle { border-color: var(--paper-line); }
.site-header.on-light:not(.menu-open) .nav-toggle .bar { background: var(--paper-ink); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 600; font-size: 17px; letter-spacing: -.02em; }
.brand em { font-size: 1.12em; color: var(--muted); }
.brand-mark { width: 28px; height: 28px; color: var(--ink); }
.nav { display: flex; align-items: center; gap: 28px; }
.nav-links { display: flex; gap: 30px; list-style: none; }
.nav-links a { color: var(--muted); text-decoration: none; font-size: 15px; transition: color .2s; }
.nav-links a:hover { color: var(--ink); }
.nav-cta-mobile { display: none; }
.nav-toggle {
  display: none; width: 44px; height: 44px; border: 1px solid var(--line-strong); border-radius: 999px;
  background: transparent; cursor: pointer; position: relative;
}
.nav-toggle .bar { position: absolute; left: 13px; right: 13px; height: 1.5px; background: var(--ink); transition: transform .3s var(--ease); }
.nav-toggle .bar:nth-of-type(2) { top: 18px; }
.nav-toggle .bar:nth-of-type(3) { top: 25px; }
.nav-toggle[aria-expanded="true"] .bar:nth-of-type(2) { transform: translateY(3.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .bar:nth-of-type(3) { transform: translateY(-3.5px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 100svh; display: flex; flex-direction: column; justify-content: center;
  padding: 130px 0 230px; overflow: hidden; isolation: isolate;
}
.hero-bg { position: absolute; inset: 0; z-index: -1; }
.tracks { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .9; }

.rays {
  position: absolute; inset: 0;
  background:
    repeating-linear-gradient(90deg, transparent 0 22px, rgba(255,255,255,.9) 23px, transparent 26px 61px, rgba(255,255,255,.55) 62px, transparent 66px 97px),
    linear-gradient(90deg, rgba(255,140,40,.0), rgba(255,140,40,.8) 12%, rgba(255,190,110,.5) 30%, transparent 46%, transparent 56%, rgba(90,130,255,.6) 72%, rgba(150,110,255,.75) 88%, transparent);
  background-blend-mode: multiply;
  filter: blur(10px);
  opacity: .32;
  -webkit-mask-image: linear-gradient(to top, #000 15%, rgba(0,0,0,.35) 55%, transparent 85%);
  mask-image: linear-gradient(to top, #000 15%, rgba(0,0,0,.35) 55%, transparent 85%);
}

.horizon {
  position: absolute; left: 50%; top: calc(100% - 150px);
  width: max(180vw, 1600px); aspect-ratio: 1; border-radius: 50%;
  transform: translateX(-50%);
  background: radial-gradient(circle at 50% 0%, #10172c 0%, #080a12 18%, var(--bg) 40%);
  box-shadow:
    0 -1px 0 0 rgba(220, 230, 255, .75),
    0 -6px 24px 0 rgba(160, 190, 255, .55),
    0 -30px 90px 10px rgba(122, 162, 255, .35),
    0 -80px 220px 40px rgba(255, 160, 80, .18);
}
.horizon::before {
  /* hot core at the top of the limb */
  content: ""; position: absolute; left: 50%; top: -60px; width: 60%; height: 140px;
  transform: translateX(-50%);
  background: radial-gradient(ellipse at center, rgba(255, 200, 140, .55), rgba(122, 162, 255, .25) 40%, transparent 70%);
  filter: blur(20px);
}
.grain {
  position: absolute; inset: 0; opacity: .07; mix-blend-mode: overlay; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.hero-inner { display: flex; flex-direction: column; align-items: center; text-align: center; }
.pill {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 7px 16px 7px 12px; margin-bottom: 34px;
  font-family: var(--mono); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted);
  border: 1px solid var(--line-strong); border-radius: 999px;
  background: rgba(255,255,255,.03);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.pill-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--amber); box-shadow: 0 0 12px var(--amber); }
.hero-title { max-width: 14ch; }
.hero-title em { color: transparent; background: linear-gradient(95deg, #ffd8a8, var(--amber) 35%, #c9d6ff 70%, var(--blue)); -webkit-background-clip: text; background-clip: text; padding-right: .05em; }
.hero-lede { max-width: 600px; margin: 30px auto 0; font-size: clamp(17px, 1.5vw, 20px); color: var(--muted); line-height: 1.55; }
.hero-actions { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 18px 26px; margin-top: 40px; }
.hero-fine { margin-top: 18px; font-size: 14px; color: var(--dim); }

.hero-foot {
  position: absolute; left: 0; right: 0; bottom: 28px;
  display: flex; justify-content: space-between; color: var(--muted);
}
.scroll-cue { display: inline-flex; align-items: center; gap: 10px; }
.scroll-cue::after { content: ""; width: 1px; height: 28px; background: linear-gradient(var(--muted), transparent); animation: drip 2.4s var(--ease) infinite; transform-origin: top; }
@keyframes drip { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); } 100% { transform: scaleY(1); opacity: 0; } }

/* ---------- Sections ---------- */
.section { position: relative; padding: var(--section) 0; }
.section + .section:not(.light) { border-top: 1px solid var(--line); }
.light + .section, .section + .light { border-top: 0; }
.light { background: var(--paper); color: var(--paper-ink); }
.light .eyebrow { color: var(--paper-muted); }
.light .eyebrow span { color: #b8621a; border-color: var(--paper-line); }
.light em { color: inherit; }

.split { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(40px, 7vw, 120px); align-items: start; }
.split-body { padding-top: 54px; }
.split-body p { font-size: 18px; }
.problem .h-xl em { color: var(--amber); }

/* ---------- Proof ---------- */
.proof { overflow: hidden; }
.proof-glow {
  position: absolute; right: -20%; top: -10%; width: 70vw; height: 70vw; max-width: 1000px; max-height: 1000px;
  background: radial-gradient(circle, rgba(122,162,255,.14), rgba(164,139,255,.06) 40%, transparent 65%);
  pointer-events: none;
}
.proof-head { max-width: 900px; }
.proof-head .lede { color: var(--muted); max-width: 720px; margin-top: 30px; }
.proof .h-xl em { color: var(--blue); }

.stats {
  display: grid; grid-template-columns: repeat(4, 1fr);
  margin-top: clamp(56px, 7vw, 96px);
  border-top: 1px solid var(--line-strong);
}
.stat { padding: 28px 28px 8px 0; display: flex; flex-direction: column; gap: 14px; }
.stat + .stat { padding-left: 28px; border-left: 1px solid var(--line); }
.stat-num {
  font-size: clamp(40px, 4.6vw, 68px); font-weight: 500; letter-spacing: -.045em; line-height: 1;
  white-space: nowrap;
}
.stat-num .arrow { font-size: .55em; color: var(--dim); margin: 0 .12em; vertical-align: .2em; }
.stat-label { font-size: 15px; color: var(--muted); line-height: 1.45; max-width: 26ch; }

.instruments { display: grid; grid-template-columns: 1.5fr 1fr; gap: 20px; margin-top: 56px; }
.panel {
  margin: 0; padding: 26px 28px 28px;
  background: linear-gradient(180deg, rgba(255,255,255,.045), rgba(255,255,255,.015));
  border: 1px solid var(--line); border-radius: var(--radius);
  position: relative; overflow: hidden;
}
.panel::before {
  content: ""; position: absolute; inset: 0 0 auto; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.35), transparent);
}
.panel-head { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; color: var(--ink); margin-bottom: 40px; }

/* Rank ladder: #1 on the left, #20 on the right */
.ladder-track { position: relative; height: 72px; }
.ladder-ticks {
  position: absolute; left: 0; right: 0; bottom: 18px; height: 14px;
  background-image: repeating-linear-gradient(90deg, var(--line-strong) 0 1px, transparent 1px calc(100% / 19 - 0.0001px));
  border-right: 1px solid var(--line-strong);
}
.ladder-ticks::after {
  /* page-one boundary at #10 */
  content: ""; position: absolute; left: calc(9 / 19 * 100%); top: -30px; bottom: -6px; width: 1px;
  background: repeating-linear-gradient(var(--dim) 0 3px, transparent 3px 6px);
}
.ladder-fill {
  position: absolute; bottom: 24px; height: 2px;
  left: calc(7 / 19 * 100%); right: calc(100% - 17 / 19 * 100%);
  background: linear-gradient(90deg, var(--amber), rgba(122,162,255,.5));
  transform-origin: right; transform: scaleX(0);
  transition: transform 1.6s var(--ease) .3s;
}
.ladder-marker {
  position: absolute; bottom: 18px; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 4px;
}
.ladder-marker::after { content: ""; width: 12px; height: 12px; border-radius: 50%; margin-top: 2px; }
.ladder-marker span { font-family: var(--mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--dim); }
.ladder-marker b { font-weight: 500; font-size: 18px; letter-spacing: -.02em; line-height: 1; }
.ladder-marker.from { left: calc(17 / 19 * 100%); }
.ladder-marker.from::after { border: 1.5px solid var(--dim); background: var(--bg); }
.ladder-marker.from b { color: var(--muted); }
.ladder-marker.to { left: calc(17 / 19 * 100%); transition: left 1.6s var(--ease) .3s; }
.ladder-marker.to::after { background: var(--amber); box-shadow: 0 0 0 4px rgba(255,179,92,.18), 0 0 18px var(--amber); }
.ladder-marker.to b { color: var(--amber); }
.is-in .ladder-marker.to, .no-motion .ladder-marker.to { left: calc(7 / 19 * 100%); }
.is-in .ladder-fill, .no-motion .ladder-fill { transform: scaleX(1); }
.ladder-scale { position: relative; height: 16px; margin-top: 4px; }
.ladder-scale span { position: absolute; top: 0; white-space: nowrap; }
.ladder-scale span:nth-child(1) { left: 0; }
.ladder-scale span:nth-child(2) { left: calc(9 / 19 * 100%); transform: translateX(-50%); }
.ladder-scale span:nth-child(3) { right: 0; }
.ladder-note { margin: 34px 0 0; font-size: 14px; color: var(--muted); max-width: 52ch; }
.instruments { align-items: stretch; }

.readout-list li {
  display: flex; align-items: center; gap: 12px;
  padding: 11px 0; border-bottom: 1px solid var(--line);
  font-size: 15px;
}
.readout-list li:first-child { padding-top: 0; }
.readout-list i { flex: 1; height: 1px; background: repeating-linear-gradient(90deg, var(--dim) 0 2px, transparent 2px 6px); opacity: .6; }
.readout-list b { font-family: var(--mono); font-size: 12px; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; color: #9be3b4; display: inline-flex; align-items: center; gap: 8px; }
.readout-list b::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; box-shadow: 0 0 10px currentColor; }
.readout-before { margin: 16px 0 0; text-decoration: line-through; text-decoration-color: rgba(255,255,255,.3); }

.caption { margin-top: 22px; font-size: 13px; color: var(--dim); max-width: 760px; }
.proof-foot { margin-top: 56px; max-width: 720px; }
.proof-foot > p:first-child { font-size: clamp(19px, 1.7vw, 23px); line-height: 1.45; letter-spacing: -.01em; }
.proof-foot .aside { color: var(--muted); font-size: 17px; }
.proof-foot .aside em { font-size: 1.18em; }
.proof-foot .link-arrow { margin-top: 10px; }

/* ---------- Services (light) ---------- */
.services-head { display: flex; flex-direction: column; margin-bottom: clamp(48px, 6vw, 80px); }
.services-head .h-xl { max-width: 15ch; }
.svc-list { border-top: 1px solid var(--paper-ink); }
.svc a {
  position: relative;
  display: grid; grid-template-columns: 60px minmax(0, 1.1fr) minmax(0, 1fr) 40px; gap: 24px; align-items: center;
  padding: 30px 0; border-bottom: 1px solid var(--paper-line);
  text-decoration: none; color: var(--paper-ink);
}
.svc a::before {
  content: ""; position: absolute; inset: 0 calc(var(--gutter) * -1); z-index: -1;
  background: #e2e0d9; opacity: 0; transition: opacity .35s var(--ease);
}
.svc-list { isolation: isolate; }
.svc-no { color: var(--paper-muted); }
.svc-name {
  font-size: clamp(28px, 3.6vw, 52px); font-weight: 500; letter-spacing: -.04em; line-height: 1.02;
  transition: transform .45s var(--ease);
}
.svc-name small { display: block; font-family: var(--serif); font-style: italic; font-size: .5em; letter-spacing: 0; color: var(--paper-muted); margin-top: 4px; }
.svc-desc { font-size: 15.5px; line-height: 1.55; color: var(--paper-muted); transition: color .35s; }
.svc-arrow {
  justify-self: end; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center;
  border: 1px solid var(--paper-line); font-size: 16px;
  transition: background .35s, color .35s, transform .45s var(--ease), border-color .35s;
}
.svc a:hover::before, .svc a:focus-visible::before { opacity: 1; }
.svc a:hover .svc-name { transform: translateX(10px); }
.svc a:hover .svc-desc { color: var(--paper-ink); }
.svc a:hover .svc-arrow { background: var(--paper-ink); color: var(--paper); border-color: var(--paper-ink); transform: rotate(45deg); }
.svc-rest { margin-top: 40px; font-size: 18px; color: var(--paper-muted); max-width: 760px; }
.svc-rest em { color: var(--paper-ink); font-size: 1.15em; }
.svc-rest .link-arrow { color: var(--paper-ink); margin-left: 6px; }

/* ---------- Why a physicist ---------- */
.why { overflow: hidden; }
.why-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(40px, 6vw, 96px); align-items: center; }
.why-copy .h-xl { margin-bottom: 36px; }
.why-copy .h-xl em { color: var(--amber); }
.why-copy .prose { max-width: 600px; }
.why-copy .link-arrow { margin-top: 8px; }

.why-visual { position: relative; display: flex; flex-direction: column; align-items: center; }
.planet { position: relative; width: min(100%, 460px); aspect-ratio: 1; }
.planet-body {
  position: absolute; inset: 8%; border-radius: 50%;
  background:
    radial-gradient(circle at 30% 34%, rgba(255,255,255,.22), transparent 30%),
    radial-gradient(circle at 34% 38%, #8b8e97 0%, #4a4d55 26%, #1b1d23 52%, #08090c 70%);
  box-shadow:
    inset -40px -30px 80px rgba(0,0,0,.85),
    inset 8px 6px 30px rgba(255,220,180,.12),
    -18px -10px 70px -20px rgba(255,179,92,.35),
    0 0 120px -30px rgba(122,162,255,.4);
}
.planet-body::after {
  /* surface texture */
  content: ""; position: absolute; inset: 0; border-radius: 50%; opacity: .5; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.018' numOctaves='4' seed='7'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: cover;
}
.orbit { position: absolute; inset: -4% -8%; width: 116%; height: 108%; overflow: visible; }
.orbit-dot { filter: drop-shadow(0 0 6px #ffb35c); }

.spec { width: 100%; max-width: 460px; margin: 28px 0 0; border-top: 1px solid var(--line); text-transform: none; letter-spacing: .02em; }
.spec div { display: grid; grid-template-columns: 80px 1fr; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.spec dt { color: var(--dim); text-transform: uppercase; letter-spacing: .08em; }
.spec dd { margin: 0; color: var(--ink); line-height: 1.5; }

/* ---------- Who I work with ---------- */
.who-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: clamp(40px, 6vw, 96px); align-items: end; }
.who-copy .h-xl { margin-bottom: 36px; }
.who-copy .h-xl em { color: var(--blue); }
.ticks { list-style: none; margin-top: 4px; }
.ticks li { position: relative; padding: 14px 0 14px 32px; border-top: 1px solid var(--line); color: var(--ink); }
.ticks li::before {
  content: ""; position: absolute; left: 2px; top: 23px; width: 14px; height: 6px;
  border-left: 1.5px solid var(--amber); border-bottom: 1.5px solid var(--amber); transform: rotate(-45deg);
}
.who-cards { display: grid; gap: 16px; }
.card {
  position: relative; display: flex; flex-direction: column; gap: 52px;
  padding: 26px 28px; border-radius: var(--radius); text-decoration: none; overflow: hidden;
  border: 1px solid var(--line-strong);
  background:
    radial-gradient(120% 140% at 100% 0%, rgba(122,162,255,.22), transparent 55%),
    radial-gradient(90% 120% at 0% 100%, rgba(255,179,92,.12), transparent 60%),
    var(--bg-raised);
  transition: transform .4s var(--ease), border-color .3s;
}
.card + .card {
  background:
    radial-gradient(120% 140% at 100% 0%, rgba(164,139,255,.24), transparent 55%),
    radial-gradient(90% 120% at 0% 100%, rgba(122,162,255,.12), transparent 60%),
    var(--bg-raised);
}
.card:hover { transform: translateY(-3px); border-color: rgba(255,255,255,.32); }
.card-title { font-size: clamp(26px, 2.6vw, 34px); font-weight: 500; letter-spacing: -.035em; line-height: 1.05; }
.card-arrow {
  position: absolute; right: 24px; bottom: 24px; width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center; border: 1px solid var(--line-strong); transition: background .3s, color .3s, transform .4s var(--ease);
}
.card:hover .card-arrow { background: var(--ink); color: var(--bg); transform: translateX(3px); }

.startups {
  margin-top: clamp(72px, 9vw, 120px);
  display: grid; grid-template-columns: 1.4fr 1fr; gap: clamp(32px, 5vw, 80px); align-items: end;
  padding: clamp(28px, 4vw, 52px);
  border: 1px solid var(--line); border-radius: calc(var(--radius) + 6px);
  background: var(--bg-panel);
}
.startups .h-lg { margin-bottom: 22px; color: var(--ink); max-width: 20ch; }
.startups p { color: var(--muted); }
.startups p:last-child { margin-bottom: 0; }
.chips { display: flex; flex-direction: column; gap: 10px; }
.chips a {
  display: flex; justify-content: space-between; align-items: center;
  padding: 15px 20px; border-radius: 999px; border: 1px solid var(--line-strong);
  text-decoration: none; font-size: 16px; transition: background .3s, color .3s, border-color .3s;
}
.chips a:hover { background: var(--ink); color: var(--bg); border-color: var(--ink); }

/* ---------- How it works (light) ---------- */
.how .h-xl { margin-bottom: clamp(48px, 6vw, 80px); }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; counter-reset: s; }
.step { position: relative; padding: 34px 28px 0 0; border-top: 1px solid var(--paper-ink); }
.step::before {
  content: ""; position: absolute; top: -5px; left: 0; width: 9px; height: 9px; border-radius: 50%;
  background: var(--paper-ink);
}
.step:first-child::before { background: #d4782a; box-shadow: 0 0 0 4px rgba(212,120,42,.2); }
.step-no { color: var(--paper-muted); display: block; margin-bottom: 18px; }
.step h3 { font-size: clamp(22px, 2vw, 28px); letter-spacing: -.03em; line-height: 1.1; margin-bottom: 14px; }
.step h3 a { text-decoration: none; background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1.5px no-repeat; padding-bottom: 2px; }
.step p { color: var(--paper-muted); font-size: 16px; }

/* ---------- FAQ ---------- */
.faq-grid { display: grid; grid-template-columns: 1fr 1.6fr; gap: clamp(40px, 6vw, 96px); align-items: start; }
.faq-head { position: sticky; top: 120px; }
.faq-head .h-lg em { color: var(--amber); }
.faq-list { border-top: 1px solid var(--line-strong); }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list summary {
  list-style: none; cursor: pointer; position: relative;
  padding: 24px 56px 24px 0; font-size: clamp(18px, 1.6vw, 21px); font-weight: 500; letter-spacing: -.015em; line-height: 1.35;
  transition: color .2s;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after, .faq-list summary::before {
  content: ""; position: absolute; right: 12px; top: 50%; width: 14px; height: 1.5px; background: var(--ink);
  transition: transform .35s var(--ease), opacity .35s;
}
.faq-list summary::before { transform: rotate(90deg); }
.faq-list details[open] summary::before { transform: rotate(0deg); opacity: 0; }
.faq-list summary:hover { color: var(--amber); }
.faq-list details p { color: var(--muted); padding: 0 56px 26px 0; margin: 0; max-width: 680px; }
.faq-list details a { color: var(--ink); }

/* ---------- Closing CTA ---------- */
.cta {
  position: relative; overflow: hidden; isolation: isolate;
  padding: clamp(140px, 18vw, 240px) 0 clamp(120px, 14vw, 180px);
  border-top: 1px solid var(--line);
}
.cta-bg { position: absolute; inset: 0; z-index: -1; }
.horizon-top { top: auto; bottom: 80%; transform: translateX(-50%) rotate(180deg); }
.cta-inner { text-align: center; display: flex; flex-direction: column; align-items: center; }
.cta .h-xxl { max-width: 16ch; }
.cta .h-xxl em { color: transparent; background: linear-gradient(95deg, #ffd8a8, var(--amber) 35%, #c9d6ff 70%, var(--blue)); -webkit-background-clip: text; background-clip: text; padding-right: .05em; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 72px 0 36px; background: #040508; }
.footer-top { display: grid; grid-template-columns: 1fr 1.6fr; gap: 48px; }
.footer-brand p { color: var(--muted); font-size: 15px; margin: 18px 0 0; max-width: 34ch; }
.footer-brand p + p { margin-top: 8px; }
.footer-brand p a { text-decoration: none; }
.footer-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.footer-cols h3 { color: var(--dim); margin-bottom: 18px; font-weight: 400; }
.footer-cols ul { display: grid; gap: 10px; }
.footer-cols a { color: var(--muted); text-decoration: none; font-size: 15px; transition: color .2s; }
.footer-cols a:hover { color: var(--ink); }
.footer-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 64px; padding-top: 24px; border-top: 1px solid var(--line); }

/* ============================================================
   Inner pages
   ============================================================ */
.nav-links a[aria-current="page"] { color: var(--ink); }
.site-header.on-light:not(.menu-open) .nav-links a[aria-current="page"] { color: var(--paper-ink); }

.page-hero {
  position: relative; isolation: isolate; overflow: hidden;
  padding: clamp(140px, 16vw, 200px) 0 clamp(80px, 10vw, 130px);
}
.page-hero-bg { position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(60% 70% at 85% 40%, rgba(122,162,255,.16), transparent 60%),
    radial-gradient(50% 60% at 10% 90%, rgba(255,179,92,.10), transparent 60%);
}
.page-hero-grid { display: grid; grid-template-columns: 1.25fr 1fr; gap: clamp(40px, 6vw, 96px); align-items: center; }
.page-hero-copy .hero-lede { margin: 30px 0 0; max-width: 560px; }
.page-hero-copy .hero-actions { justify-content: flex-start; }
.page-title { max-width: 13ch; font-size: clamp(44px, 6vw, 86px); }
.page-title em { color: transparent; background: linear-gradient(95deg, #ffd8a8, var(--amber) 35%, #c9d6ff 70%, var(--blue)); -webkit-background-clip: text; background-clip: text; padding-right: .05em; }

.crumbs { display: flex; gap: 10px; color: var(--dim); margin-bottom: 30px; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--ink); }
.crumbs [aria-current] { color: var(--amber); }

/* Microscope view of an etched CR-39 plate */
.plate-wrap { margin: 0; justify-self: center; width: min(100%, 480px); }
.plate {
  position: relative; aspect-ratio: 1; border-radius: 50%; overflow: hidden;
  background: radial-gradient(circle at 50% 45%, #1b2030 0%, #10131c 55%, #07080c 100%);
  box-shadow:
    0 0 0 1px rgba(255,255,255,.12),
    0 0 0 10px rgba(255,255,255,.02),
    0 0 0 11px rgba(255,255,255,.08),
    0 30px 120px -30px rgba(122,162,255,.45),
    0 0 90px -20px rgba(255,179,92,.25);
}
.plate::after {
  /* lens vignette */
  content: ""; position: absolute; inset: 0; border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle, transparent 55%, rgba(0,0,0,.65) 100%);
}
.plate-svg { position: absolute; inset: 0; width: 100%; height: 100%; }

/* About hero portrait, with the CR-39 plate as an inset */
.portrait { position: relative; margin: 0; justify-self: center; width: min(100%, 440px); }
.portrait-frame {
  position: relative; aspect-ratio: 4 / 5; border-radius: 22px; overflow: hidden;
  border: 1px solid var(--line-strong);
  box-shadow: 0 40px 120px -40px rgba(255,179,92,.35), 0 20px 80px -30px rgba(122,162,255,.35);
}
.portrait-frame::after {
  /* sink the bottom edge into the page */
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(to top, rgba(6,7,11,.55), transparent 28%);
}
.portrait img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%; }
.plate-inset {
  position: absolute; left: -54px; bottom: 34px; width: 150px;
  box-shadow: 0 0 0 1px rgba(255,255,255,.16), 0 0 0 6px var(--bg), 0 0 0 7px rgba(255,255,255,.1), 0 20px 50px -10px rgba(0,0,0,.8);
}
.portrait-cap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 20px; padding-left: 110px; color: var(--ink); }
.plate-svg .pit { opacity: 0; animation: etch 1.2s var(--ease) forwards; transform-box: fill-box; }
@keyframes etch { from { opacity: 0; } to { opacity: 1; } }
.plate-svg .pits { animation: drift 60s linear infinite alternate; transform-origin: 200px 200px; }
@keyframes drift { from { transform: rotate(0deg) scale(1.02); } to { transform: rotate(8deg) scale(1.08); } }
.plate-reticle { position: absolute; inset: 0; pointer-events: none; }
.plate-reticle::before, .plate-reticle::after {
  content: ""; position: absolute; background: rgba(255,255,255,.12);
}
.plate-reticle::before { left: 50%; top: 8%; bottom: 8%; width: 1px; }
.plate-reticle::after { top: 50%; left: 8%; right: 8%; height: 1px; }
.plate-cap { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-top: 26px; color: var(--muted); }
.plate-scale { display: inline-flex; align-items: center; gap: 10px; text-transform: none; }
.plate-scale i { display: block; width: 48px; height: 6px; border: 1px solid var(--muted); border-top: 0; }

.pull { margin: clamp(64px, 8vw, 110px) 0 0; padding: 40px 0 0; border-top: 1px solid var(--line); max-width: 1000px; }
.pull p { font-size: clamp(30px, 4vw, 54px); line-height: 1.08; letter-spacing: -.035em; font-weight: 500; margin-bottom: 22px; }
.pull em { color: var(--amber); }

.research-head { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: end; margin-bottom: clamp(48px, 6vw, 72px); }
.research-intro { font-size: clamp(18px, 1.5vw, 21px); color: var(--paper-muted); max-width: 440px; justify-self: end; margin: 0; }
.pubs { border-top: 1px solid var(--paper-ink); }
.pub {
  display: grid; grid-template-columns: 110px minmax(0, 1fr) 280px; gap: 24px; align-items: baseline;
  padding: 26px 0; border-bottom: 1px solid var(--paper-line);
}
.pub-year { color: var(--paper-muted); }
.pub-title { font-size: clamp(19px, 1.9vw, 26px); font-weight: 500; letter-spacing: -.025em; line-height: 1.2; text-wrap: pretty; }
.pub-venue { color: var(--paper-muted); font-size: 17px; justify-self: end; text-align: right; display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
a.pub-title { color: var(--paper-ink); text-decoration: none; background: linear-gradient(currentColor, currentColor) 0 100% / 0 1.5px no-repeat; transition: background-size .45s var(--ease); }
a.pub-title:hover { background-size: 100% 1.5px; }
.pub-tag { font-size: 10.5px; color: #b8621a; }
.pub-venue em { font-size: 1.1em; }
.research-foot { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 20px 40px; margin-top: 40px; }
.aside-light { margin: 0; font-size: 18px; color: var(--paper-muted); max-width: 620px; }
.aside-light em { color: var(--paper-ink); font-size: 1.2em; }
.research-foot .link-arrow { color: var(--paper-ink); }

.bsi { overflow: hidden; }
.bsi-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 7vw, 120px); align-items: start; }
.bsi .h-xl em { color: var(--blue); }
.bsi .prose a:not(.link-arrow) { color: var(--ink); text-decoration-color: var(--amber); text-underline-offset: 3px; }
.bsi .prose { padding-top: 54px; }
.bsi .link-arrow { margin-top: 8px; }

.principles .h-xl { margin-bottom: clamp(48px, 6vw, 72px); }
.tenets { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.tenet {
  padding: 30px 30px 26px; border-radius: var(--radius);
  background: #e3e1da; border: 1px solid var(--paper-line);
  transition: transform .4s var(--ease), background .3s;
}
.tenet:hover { transform: translateY(-3px); background: #dedcd4; }
.tenet-no { color: #b8621a; display: block; margin-bottom: 40px; }
.tenet h3 { font-size: clamp(24px, 2.4vw, 32px); letter-spacing: -.035em; line-height: 1.05; margin-bottom: 14px; }
.tenet p { color: var(--paper-muted); margin: 0; font-size: 16.5px; }

@media (max-width: 1080px) {
  .pub { grid-template-columns: 90px minmax(0, 1fr); }
  .pub-venue { grid-column: 2; justify-self: start; text-align: left; flex-direction: row; align-items: baseline; gap: 12px; }
}
@media (max-width: 880px) {
  .page-hero-grid, .bsi-grid, .research-head { grid-template-columns: 1fr; }
  .portrait { width: min(86%, 400px); }
  .plate-inset { left: auto; bottom: auto; right: -16px; top: -22px; width: 104px; }
  .portrait-cap { padding-left: 0; margin-top: 18px; }
  .research-intro { justify-self: start; }
  .bsi .prose { padding-top: 0; }
}
@media (max-width: 600px) {
  .pub { grid-template-columns: 1fr; gap: 8px; padding: 22px 0; }
  .pub-venue { grid-column: 1; }
  .tenets { grid-template-columns: 1fr; }
  .tenet-no { margin-bottom: 24px; }
  .page-hero-copy .hero-actions { align-items: flex-start; }
}

/* ---------- Reveal ---------- */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(3) { padding-left: 0; border-left: 0; }
  .stat:nth-child(n+3) { border-top: 1px solid var(--line); margin-top: 8px; }
  .instruments { grid-template-columns: 1fr; }
  .svc a { grid-template-columns: 48px 1fr 40px; }
  .svc-desc { grid-column: 2 / 3; grid-row: 2; }
  .svc-arrow { grid-column: 3; grid-row: 1; }
  .steps { grid-template-columns: repeat(2, 1fr); row-gap: 48px; }
}

@media (max-width: 880px) {
  .nav-links {
    position: fixed; inset: 76px 0 auto; flex-direction: column; gap: 0;
    padding: 8px var(--gutter) 24px; background: rgba(6,7,11,.96);
    -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--line);
    transform: translateY(-8px); opacity: 0; visibility: hidden;
    transition: opacity .3s, transform .3s var(--ease), visibility .3s;
  }
  .nav-links.is-open { opacity: 1; transform: none; visibility: visible; }
  .nav-links li { border-bottom: 1px solid var(--line); }
  .nav-links a { display: block; padding: 16px 0; font-size: 20px; color: var(--ink); }
  .nav-cta-mobile { display: block; }
  .nav-cta-mobile a { color: var(--amber); }
  .nav-cta { display: none; }
  .nav-toggle { display: block; }
  .site-header.menu-open { background: rgba(6,7,11,.96); border-color: var(--line); }

  .split, .why-grid, .who-grid, .faq-grid, .startups, .footer-top { grid-template-columns: 1fr; }
  .split-body { padding-top: 0; }
  .faq-head { position: static; }
  .why-visual { order: -1; }
  .planet { width: min(80%, 360px); }
}

@media (max-width: 600px) {
  body { font-size: 16px; }
  .hero { padding: 116px 0 190px; }
  .horizon { top: calc(100% - 110px); }
  .hero-title { font-size: clamp(40px, 11.5vw, 56px); }
  .hero-actions { flex-direction: column; gap: 18px; }
  .hero-foot .mono:first-child { display: none; }
  .hero-foot { justify-content: center; }
  .stats { grid-template-columns: 1fr; }
  .stat, .stat + .stat { padding: 22px 0 18px; border-left: 0; }
  .stat:nth-child(n+2) { border-top: 1px solid var(--line); margin-top: 0; }
  .panel { padding: 22px 18px 22px; }
  .panel-head { margin-bottom: 30px; }
  .ladder-scale span:nth-child(2) { display: none; }
  .svc a { grid-template-columns: 1fr 40px; gap: 12px 16px; padding: 26px 0; }
  .svc-no { grid-column: 1; grid-row: 1; }
  .svc-name { grid-column: 1; grid-row: 2; }
  .svc-desc { grid-column: 1 / -1; grid-row: 3; }
  .svc-arrow { grid-column: 2; grid-row: 1 / 3; align-self: center; }
  .steps { grid-template-columns: 1fr; }
  .footer-cols { grid-template-columns: 1fr 1fr; }
  .spec div { grid-template-columns: 64px 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
  .js .reveal { opacity: 1; transform: none; }
}

.research-links { display: flex; gap: 28px; flex-wrap: wrap; }
.research-links .link-arrow { color: var(--paper-ink); }
