/* ===== FONTS (managed; self-hosted, SIL OFL — no third-party requests) ===== */
@font-face { font-family: 'Cormorant Garamond'; src: url('assets/fonts/cormorant-garamond-latin-500-normal.woff2') format('woff2'); font-weight: 500; font-style: normal; font-display: swap; unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: 'Cormorant Garamond'; src: url('assets/fonts/cormorant-garamond-latin-ext-500-normal.woff2') format('woff2'); font-weight: 500; font-style: normal; font-display: swap; unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: 'Cormorant Garamond'; src: url('assets/fonts/cormorant-garamond-latin-600-normal.woff2') format('woff2'); font-weight: 600; font-style: normal; font-display: swap; unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: 'Cormorant Garamond'; src: url('assets/fonts/cormorant-garamond-latin-ext-600-normal.woff2') format('woff2'); font-weight: 600; font-style: normal; font-display: swap; unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: 'Cormorant Garamond'; src: url('assets/fonts/cormorant-garamond-latin-500-italic.woff2') format('woff2'); font-weight: 500; font-style: italic; font-display: swap; unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: 'Cormorant Garamond'; src: url('assets/fonts/cormorant-garamond-latin-ext-500-italic.woff2') format('woff2'); font-weight: 500; font-style: italic; font-display: swap; unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: 'Newsreader'; src: url('assets/fonts/newsreader-latin-wght-normal.woff2') format('woff2'); font-weight: 200 800; font-style: normal; font-display: swap; unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: 'Newsreader'; src: url('assets/fonts/newsreader-latin-ext-wght-normal.woff2') format('woff2'); font-weight: 200 800; font-style: normal; font-display: swap; unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: 'Newsreader'; src: url('assets/fonts/newsreader-latin-wght-italic.woff2') format('woff2'); font-weight: 200 800; font-style: italic; font-display: swap; unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: 'Newsreader'; src: url('assets/fonts/newsreader-latin-ext-wght-italic.woff2') format('woff2'); font-weight: 200 800; font-style: italic; font-display: swap; unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: 'IBM Plex Mono'; src: url('assets/fonts/ibm-plex-mono-latin-400-normal.woff2') format('woff2'); font-weight: 400; font-style: normal; font-display: swap; unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: 'IBM Plex Mono'; src: url('assets/fonts/ibm-plex-mono-latin-ext-400-normal.woff2') format('woff2'); font-weight: 400; font-style: normal; font-display: swap; unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: 'IBM Plex Mono'; src: url('assets/fonts/ibm-plex-mono-latin-500-normal.woff2') format('woff2'); font-weight: 500; font-style: normal; font-display: swap; unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: 'IBM Plex Mono'; src: url('assets/fonts/ibm-plex-mono-latin-ext-500-normal.woff2') format('woff2'); font-weight: 500; font-style: normal; font-display: swap; unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: 'STIX Two Text'; src: url('assets/fonts/stix-two-text-latin-400-normal.woff2') format('woff2'); font-weight: 400; font-style: normal; font-display: swap; unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: 'STIX Two Text'; src: url('assets/fonts/stix-two-text-latin-ext-400-normal.woff2') format('woff2'); font-weight: 400; font-style: normal; font-display: swap; unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: 'STIX Two Text'; src: url('assets/fonts/stix-two-text-greek-400-normal.woff2') format('woff2'); font-weight: 400; font-style: normal; font-display: swap; unicode-range: U+0370-0377,U+037A-037F,U+0384-038A,U+038C,U+038E-03A1,U+03A3-03FF; }
@font-face { font-family: 'STIX Two Text'; src: url('assets/fonts/stix-two-text-latin-400-italic.woff2') format('woff2'); font-weight: 400; font-style: italic; font-display: swap; unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: 'STIX Two Text'; src: url('assets/fonts/stix-two-text-latin-ext-400-italic.woff2') format('woff2'); font-weight: 400; font-style: italic; font-display: swap; unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: 'STIX Two Text'; src: url('assets/fonts/stix-two-text-greek-400-italic.woff2') format('woff2'); font-weight: 400; font-style: italic; font-display: swap; unicode-range: U+0370-0377,U+037A-037F,U+0384-038A,U+038C,U+038E-03A1,U+03A3-03FF; }
@font-face { font-family: 'STIX Two Math'; src: url('assets/fonts/stix-two-math-subset.woff2') format('woff2'); font-weight: 400; font-style: normal; font-display: swap; }
/* ===== END FONTS ===== */
:root {
  --ink: #12201d;
  --ink-soft: #50605b;
  --paper: #f2f0e9;
  --paper-bright: #fbfaf5;
  --night: #08110f;
  --night-soft: #10201c;
  --mint: #79e3e1;
  --mint-strong: #24b8b6;
  --line: rgba(18, 32, 29, 0.17);
  --line-dark: rgba(220, 245, 231, 0.17);
  --shell: min(1240px, calc(100vw - 48px));
  --radius: 4px;
  --ease: cubic-bezier(0.2, 0.75, 0.2, 1);
  --serif: "Times New Roman", Tinos, "Liberation Serif", "Nimbus Roman", Georgia, serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--serif);
  font-size: 16px;
  line-height: 1.62;
  text-rendering: optimizeLegibility;
}

body.menu-open { overflow: hidden; }
body.dialog-open { overflow: hidden; }

img { display: block; max-width: 100%; }
a { color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button, input, textarea, select { font: inherit; }

.shell { width: var(--shell); margin-inline: auto; }
.section { padding: 132px 0; }
.section-dark { color: #e8f2ec; background: var(--night); }
.section-paper { background: var(--paper-bright); }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 12px;
  left: 12px;
  padding: 10px 16px;
  color: var(--night);
  background: var(--mint);
  transform: translateY(-150%);
}
.skip-link:focus { transform: translateY(0); }

.page-progress {
  position: fixed;
  z-index: 1000;
  inset: 0 0 auto;
  height: 2px;
  background: transparent;
}
.page-progress span { display: block; width: 0; height: 100%; background: var(--mint-strong); }

.site-header {
  position: fixed;
  z-index: 100;
  top: 0;
  left: 0;
  display: flex;
  width: 100%;
  height: 80px;
  align-items: center;
  justify-content: space-between;
  padding: 0 max(24px, calc((100vw - 1240px) / 2));
  color: #ecf4ef;
  transition: background 250ms ease, height 250ms ease, border-color 250ms ease;
}
.site-header.scrolled {
  height: 66px;
  border-bottom: 1px solid var(--line-dark);
  background: rgba(8, 17, 15, 0.88);
  backdrop-filter: blur(16px);
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  font-size: 0.84rem;
  font-weight: 650;
  letter-spacing: 0.04em;
}
.wordmark-mark {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid rgba(121, 227, 225, 0.42);
  color: var(--mint);
  font-family: var(--serif);
  font-size: 0.78rem;
}
.site-nav { display: flex; align-items: center; gap: 30px; }
.site-nav a {
  position: relative;
  text-decoration: none;
  font-size: 0.78rem;
  letter-spacing: 0.05em;
  opacity: 0.8;
}
.site-nav a::after {
  position: absolute;
  right: 0;
  bottom: -8px;
  left: 0;
  height: 1px;
  content: "";
  background: var(--mint);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 220ms ease;
}
.site-nav a:hover::after, .site-nav a:focus-visible::after { transform: scaleX(1); transform-origin: left; }
.site-nav a:hover, .site-nav a:focus-visible { opacity: 1; }
.site-nav .nav-cta {
  padding: 9px 15px;
  border: 1px solid rgba(121, 227, 225, 0.34);
  opacity: 1;
}
.site-nav .nav-cta::after { display: none; }
.menu-toggle { display: none; }

.hero {
  position: relative;
  min-height: 100svh;
  overflow: hidden;
  color: #eef6f1;
  background:
    radial-gradient(circle at 72% 25%, rgba(80, 170, 119, 0.13), transparent 28%),
    linear-gradient(135deg, #07100e 0%, #0b1814 58%, #08110f 100%);
}
.hero::after {
  position: absolute;
  inset: 0;
  pointer-events: none;
  content: "";
  opacity: 0.22;
  background-image: linear-gradient(rgba(255,255,255,0.026) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.026) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: linear-gradient(to bottom, #000, transparent 86%);
}
.lattice-canvas { position: absolute; z-index: 0; inset: 0; width: 100%; height: 100%; opacity: 0.45; }
.lattice-dots { position: absolute; z-index: 0; inset: 0; overflow: hidden; pointer-events: none; }
.lattice-dots span { position: absolute; left: -2.1px; top: -2.1px; width: 4.2px; height: 4.2px; border-radius: 50%; background: rgba(88, 215, 212, 0.8); will-change: transform; }
.hero-grid {
  position: relative;
  z-index: 2;
  display: grid;
  min-height: calc(100svh - 96px);
  align-items: center;
  gap: clamp(32px, 3vw, 48px);
  grid-template-columns: repeat(2, minmax(0, 1fr));
  padding-top: 118px;
  padding-bottom: 70px;
}
.hero-copy { max-width: 820px; }
.eyebrow, .kicker {
  margin: 0 0 24px;
  color: var(--mint-strong);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.eyebrow {
  display: grid;
  align-items: center;
  gap: 6px 14px;
  grid-template-columns: 28px auto;
  margin-bottom: 30px;
  letter-spacing: 0;
  text-transform: none;
}
.eyebrow span { display: inline-block; width: 28px; height: 1px; background: currentColor; }
.eyebrow strong {
  color: #eaf5ef;
  font-size: clamp(2.55rem, 4vw, 4.65rem);
  font-weight: 400;
  letter-spacing: -0.045em;
  line-height: 0.94;
}
.eyebrow small {
  grid-column: 2;
  color: var(--mint-strong);
  font-size: clamp(0.98rem, 1.25vw, 1.2rem);
  font-weight: 400;
  letter-spacing: 0.055em;
  line-height: 1.3;
}
.hero h1 {
  max-width: 850px;
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(3rem, 5.2vw, 5.65rem);
  font-weight: 400;
  letter-spacing: -0.052em;
  line-height: 0.97;
}
.hero h1 em { color: var(--mint); font-style: italic; }
.hero-intro {
  max-width: 800px;
  margin: 32px 0 0;
  color: rgba(234, 245, 238, 0.73);
  font-size: clamp(0.92rem, 1.05vw, 1.05rem);
  line-height: 1.66;
}
.hero-actions, .contact-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.button {
  display: inline-flex;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  gap: 18px;
  padding: 13px 20px;
  border: 1px solid transparent;
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  transition: transform 180ms ease, background 180ms ease, color 180ms ease;
}
.button:hover, .button:focus-visible { transform: translateY(-2px); }
.button-primary { color: var(--night); background: var(--mint); }
.button-primary:hover, .button-primary:focus-visible { background: #d0f9df; }
.button-ghost { border-color: rgba(220, 245, 231, 0.28); color: inherit; background: transparent; }
.button-ghost:hover, .button-ghost:focus-visible { border-color: var(--mint); color: var(--mint); }
.availability {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 30px;
  color: rgba(234, 245, 238, 0.58);
  font-size: 0.75rem;
}
.signal-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--mint-strong);
  box-shadow: 0 0 0 5px rgba(36, 184, 182, 0.1);
  animation: signal 2.4s ease-in-out infinite;
}
@keyframes signal { 50% { box-shadow: 0 0 0 9px rgba(36, 184, 182, 0.03); } }

.hero-theory-visual { position: relative; width: 100%; max-width: 660px; margin: 0; justify-self: end; }
.theory-panel { margin: 0; }
.diagram-header { margin-bottom: 22px; }
.diagram-eyebrow { margin: 0 0 8px; color: #79bcb0; font-size: 0.73rem; letter-spacing: 0.13em; text-transform: uppercase; }
.diagram-header h3 { margin: 0; color: #dfede3; font-size: clamp(1.35rem, 1.8vw, 1.7rem); font-weight: 400; letter-spacing: -0.015em; line-height: 1.15; }
.diagram-context { margin: 7px 0 0; color: #95b3a4; font-size: 0.87rem; line-height: 1.4; }

.diagram-note { margin: 14px 0 0; color: #91ad9e; font-size: 0.79rem; line-height: 1.5; }
.holography-panel { margin-top: 30px; padding-top: 25px; border-top: 1px solid rgba(145, 199, 181, 0.2); }
.holography-panel .diagram-header { margin-bottom: 22px; }
.ads-diagram { width: 100%; height: auto; }
.holography-caption { margin: 0; text-align: center; }
.diagram-formula { margin: 3px 0 0; color: #d7ebdf; font-size: clamp(1.15rem, 1.6vw, 1.4rem); line-height: 1.4; }
.diagram-formula sub { font-size: 0.64em; }
.math-scripts { display: inline-grid; margin-left: 0.06em; margin-right: 0.05em; vertical-align: middle; line-height: 1; text-align: left; transform: translateY(-0.06em); }
.math-scripts sup, .math-scripts sub { position: static; font-size: 0.56em; line-height: 1; }
.holography-caption .diagram-note { margin-top: 8px; }
.diagram-references { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 16px; margin-top: 23px; padding-top: 15px; border-top: 1px solid rgba(145, 199, 181, 0.12); }
.diagram-references a { color: #83a799; font-size: 0.73rem; text-decoration: none; text-underline-offset: 4px; transition: color 180ms ease; }
.diagram-references a:hover, .diagram-references a:focus-visible { color: var(--mint); text-decoration: underline; }

.profile-heading h2, .profile-detail h2, .section-heading h2, .direction h2, .contact h2 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(2.4rem, 4.8vw, 5rem);
  font-weight: 400;
  letter-spacing: -0.045em;
  line-height: 1.03;
}
.profile-heading {
  display: grid;
  align-items: end;
  gap: 56px;
  grid-template-columns: minmax(0, 1.25fr) minmax(280px, 0.75fr);
  margin-bottom: 64px;
}
.profile-heading h2 { max-width: 850px; }
.profile-heading > p { max-width: 470px; margin: 0 0 6px; color: var(--ink-soft); }
.profile-cards { display: grid; gap: 22px; grid-template-columns: repeat(2, 1fr); }
.profile-card {
  position: relative;
  display: flex;
  min-height: 330px;
  flex-direction: column;
  padding: clamp(32px, 4vw, 52px);
  overflow: hidden;
  border: 1px solid var(--line);
  text-decoration: none;
  background: var(--paper-bright);
  transition: border-color 220ms ease, box-shadow 220ms ease, transform 220ms var(--ease);
}
.profile-card::before { position: absolute; top: 0; right: 0; left: 0; height: 3px; content: ""; background: var(--mint-strong); transform: scaleX(0); transform-origin: left; transition: transform 220ms var(--ease); }
.profile-card:hover, .profile-card:focus-visible { border-color: rgba(36,184,182,0.5); box-shadow: 0 18px 52px rgba(8,17,15,0.1); outline: 0; transform: translateY(-3px); }
.profile-card:hover::before, .profile-card:focus-visible::before { transform: scaleX(1); }
.profile-card-index { color: #72817b; font-family: var(--serif); font-size: 0.65rem; letter-spacing: 0.08em; text-transform: uppercase; }
.profile-card h3 { max-width: 520px; margin: 36px 0 16px; font-family: var(--serif); font-size: clamp(1.75rem, 2.8vw, 2.75rem); font-weight: 400; letter-spacing: -0.035em; line-height: 1.06; }
.profile-card p { max-width: 540px; margin: 0; color: var(--ink-soft); font-size: 0.9rem; }
.profile-card-link { display: flex; align-items: center; gap: 10px; margin-top: auto; padding-top: 34px; color: #167f7d; font-size: 0.74rem; font-weight: 700; }
.profile-card-link span { transition: transform 180ms ease; }
.profile-card:hover .profile-card-link span { transform: translateY(3px); }

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: 64px;
}
.section-heading h2 { max-width: 850px; font-size: clamp(2.5rem, 4.5vw, 4.5rem); }
.heading-note { max-width: 300px; margin: 0; color: var(--ink-soft); font-size: 0.88rem; }
.direction-copy .lead { margin: 0 0 28px; color: #f1f5f2; font-family: var(--serif); font-size: 1.45rem; line-height: 1.55; }
.text-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid currentColor;
  text-decoration: none;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.03em;
}
.section-dark .text-link { color: var(--mint); }
.text-link:hover span, .text-link:focus-visible span { transform: translate(2px, -2px); }
.text-link span { transition: transform 180ms ease; }

.project-list { display: grid; gap: 22px; grid-template-columns: repeat(2, 1fr); background: transparent; }
.project {
  position: relative;
  display: block;
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--paper);
  transition: background 220ms ease, box-shadow 220ms ease, transform 220ms var(--ease);
}
.project::before { position: absolute; top: 0; right: 0; left: 0; height: 3px; content: ""; background: var(--mint-strong); transform: scaleX(0); transform-origin: left; transition: transform 240ms var(--ease); }
.project:hover, .project:focus-within { z-index: 2; border-color: rgba(36,184,182,0.42); background: var(--paper-bright); box-shadow: 0 16px 50px rgba(8, 17, 15, 0.1); transform: translateY(-3px); }
.project:hover::before, .project:focus-within::before { transform: scaleX(1); }
.project-card-trigger { position: absolute; z-index: 3; inset: 0; border: 0; cursor: pointer; background: transparent; }
.project-card-trigger:focus-visible { outline: 2px solid var(--mint-strong); outline-offset: -4px; }
.project-body { display: flex; min-height: 340px; flex-direction: column; align-items: flex-start; padding: clamp(32px, 4vw, 52px); }
.project-meta { display: flex; width: 100%; justify-content: space-between; gap: 18px; color: #74817c; font-family: var(--serif); font-size: 0.64rem; letter-spacing: 0.06em; text-transform: uppercase; }
.project h3 { max-width: 600px; margin: 24px 0 15px; font-family: var(--serif); font-size: clamp(1.35rem, 2vw, 1.9rem); font-weight: 400; letter-spacing: -0.025em; line-height: 1.12; }
.project p { max-width: 590px; margin: 0; color: var(--ink-soft); font-size: 0.92rem; }
.project-open { display: inline-flex; align-items: center; gap: 10px; margin-top: auto; padding-top: 28px; color: #167f7d; font-size: 0.74rem; font-weight: 700; letter-spacing: 0.03em; }
.project-open span { transition: transform 180ms ease; }
.project:hover .project-open span, .project:focus-within .project-open span { transform: translate(2px, -2px); }
.tags { display: flex; flex-wrap: wrap; gap: 7px; margin: 26px 0 30px; }
.tags span { padding: 5px 9px; border: 1px solid var(--line); color: #596762; font-size: 0.63rem; }

.project-dialog {
  width: min(1120px, calc(100vw - 40px));
  max-width: none;
  max-height: min(90vh, 900px);
  padding: 0;
  overflow: auto;
  border: 1px solid rgba(121, 227, 225, 0.34);
  color: var(--ink);
  background: var(--paper-bright);
  box-shadow: 0 34px 100px rgba(0, 0, 0, 0.42);
}
.project-dialog::backdrop { background: rgba(3, 10, 8, 0.76); backdrop-filter: blur(7px); }
.project-dialog[open] { animation: dialog-in 240ms var(--ease); }
@keyframes dialog-in { from { opacity: 0; transform: translateY(18px) scale(0.985); } }
.dialog-close {
  position: sticky;
  z-index: 5;
  top: 16px;
  float: right;
  width: 42px;
  height: 42px;
  margin: 16px 16px -58px 0;
  border: 1px solid rgba(121, 227, 225, 0.35);
  color: #eef6f1;
  cursor: pointer;
  background: rgba(8, 17, 15, 0.92);
  font-size: 1.6rem;
  line-height: 1;
}
.dialog-close:hover, .dialog-close:focus-visible { color: var(--mint); border-color: var(--mint); }
.dialog-project { display: grid; min-height: 680px; grid-template-columns: minmax(330px, 0.86fr) minmax(0, 1.14fr); }
.dialog-visual { position: relative; min-height: 100%; background: var(--night); }
.dialog-visual img { width: 100%; height: 100%; min-height: 680px; padding: 28px 28px 64px; object-fit: contain; opacity: 0.92; }
.dialog-visual-photo img { padding: 0; object-fit: cover; opacity: 0.86; }
.dialog-visual::after { position: absolute; inset: 0; content: ""; pointer-events: none; background: linear-gradient(to top, rgba(8,17,15,0.85), transparent 18%); }
.dialog-visual-photo::after { background: linear-gradient(to top, rgba(8,17,15,0.8), transparent 42%); }
.dialog-visual p { position: absolute; z-index: 2; right: 26px; bottom: 22px; left: 26px; margin: 0; color: rgba(238,246,241,0.74); font-family: var(--serif); font-size: 0.62rem; letter-spacing: 0.04em; text-transform: uppercase; }
.dialog-copy { padding: clamp(44px, 5vw, 76px); }
.dialog-copy h2 { margin: 27px 0 22px; font-family: var(--serif); font-size: clamp(2rem, 3.3vw, 3.55rem); font-weight: 400; letter-spacing: -0.04em; line-height: 1.03; }
.dialog-abstract { margin: 0; color: #30413b; font-family: var(--serif); font-size: 1.08rem; line-height: 1.58; }
.project-facts { margin: 34px 0 0; }
.project-facts div { display: grid; gap: 18px; grid-template-columns: 112px 1fr; padding: 16px 0; border-top: 1px solid var(--line); }
.project-facts dt { color: #167f7d; font-size: 0.69rem; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; }
.project-facts dd { margin: 0; color: var(--ink-soft); font-size: 0.84rem; }
.dialog-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 24px; }
.button-dialog { color: #eef6f1; background: var(--night-soft); }
.button-dialog:hover, .button-dialog:focus-visible { color: var(--night); background: var(--mint); }

.profile-detail-grid { display: grid; align-items: start; gap: clamp(56px, 8vw, 110px); grid-template-columns: minmax(300px, 0.82fr) minmax(0, 1.18fr); }
.profile-detail-heading { position: sticky; top: 108px; }
.profile-detail h2 { font-size: clamp(2.6rem, 4.5vw, 4.7rem); }
.detail-lead { max-width: 620px; margin: 30px 0 0; color: var(--ink-soft); font-family: var(--serif); font-size: 1.14rem; line-height: 1.6; }
.section-dark .detail-lead { color: rgba(232,246,237,0.68); }
.detail-panels { display: grid; grid-template-columns: repeat(2, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.detail-panel { min-height: 410px; padding: clamp(28px, 3.5vw, 42px); border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.detail-panel > span { color: #167f7d; font-family: var(--serif); font-size: 0.65rem; letter-spacing: 0.08em; text-transform: uppercase; }
.detail-panel h3, .capability-list h3 { margin: 44px 0 16px; font-family: var(--serif); font-size: 1.6rem; font-weight: 400; line-height: 1.15; }
.detail-panel p { margin: 0; color: var(--ink-soft); font-size: 0.88rem; }
.detail-panel ul { margin: 28px 0 0; padding: 0; list-style: none; }
.detail-panel li { padding: 10px 0; border-top: 1px solid var(--line); color: #394842; font-size: 0.78rem; }
.detail-panels-ai { grid-template-columns: 1fr; }
.detail-panels-ai .detail-panel { min-height: 220px; }
.detail-panels-ai .detail-panel h3 { margin-top: 24px; }
.capability-list { border-top: 1px solid var(--line-dark); }
.capability-list article { display: grid; gap: 24px; grid-template-columns: 48px 1fr; padding: 24px 0; border-bottom: 1px solid var(--line-dark); }
.capability-list article > span { color: var(--mint-strong); font-family: var(--serif); font-size: 0.7rem; }
.capability-list h3 { margin: 0 0 8px; color: #f0f6f2; }
.capability-list p { margin: 0; color: rgba(232,246,237,0.6); font-size: 0.88rem; }

.direction-grid { display: grid; align-items: center; gap: 70px; grid-template-columns: 0.82fr 1.18fr; }
.direction-copy > p:last-child { color: rgba(232,246,237,0.6); }
.direction-map { position: relative; min-height: 540px; }
.direction-map svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.direction-map path { fill: none; stroke: rgba(121,227,225,0.25); stroke-dasharray: 4 6; }
.map-core, .map-node { position: absolute; z-index: 2; display: flex; flex-direction: column; border: 1px solid var(--line-dark); background: rgba(13,29,24,0.92); backdrop-filter: blur(8px); }
.map-core { top: 50%; left: 50%; width: 190px; min-height: 110px; justify-content: center; padding: 20px; border-color: rgba(121,227,225,0.5); transform: translate(-50%, -50%); }
.map-node { width: 175px; min-height: 84px; padding: 14px; }
.map-core span, .map-node span { color: var(--mint-strong); font-size: 0.55rem; letter-spacing: 0.12em; text-transform: uppercase; }
.map-core strong, .map-node strong { margin-top: 5px; font-family: var(--serif); font-size: 0.92rem; font-weight: 400; line-height: 1.25; }
.node-a { top: 20px; left: 0; }
.node-b { top: 30px; right: 0; }
.node-c { bottom: 22px; left: 0; }
.node-d { right: 0; bottom: 16px; }

.contact { padding-top: 70px; background: var(--paper-bright); }
.contact-card { padding: clamp(40px, 8vw, 100px); color: #edf6f0; background: var(--night-soft); }
.contact-card h2 { max-width: 900px; }
.contact-card > p:not(.kicker) { max-width: 700px; margin: 28px 0 0; color: rgba(232,246,237,0.63); }
.contact-meta { display: flex; flex-wrap: wrap; gap: 26px; margin-top: 48px; padding-top: 18px; border-top: 1px solid var(--line-dark); color: rgba(232,246,237,0.42); font-family: var(--serif); font-size: 0.64rem; text-transform: uppercase; }

.site-footer { padding: 34px 0; color: #becac4; background: var(--night); }
.footer-grid { display: grid; align-items: center; gap: 28px; grid-template-columns: 1fr 1fr auto; }
.footer-grid > div { display: flex; flex-direction: column; font-size: 0.7rem; }
.footer-grid strong { color: #f0f5f1; font-family: var(--serif); font-size: 0.95rem; font-weight: 400; }
.footer-grid > div:nth-child(2) { align-items: center; }
.footer-grid a { color: var(--mint); font-size: 0.72rem; text-decoration: none; }

.js .reveal { opacity: 0; transform: translateY(20px); transition: opacity 700ms var(--ease), transform 700ms var(--ease); }
.js .reveal.visible { opacity: 1; transform: translateY(0); }

@media (max-width: 1040px) {
  .hero-grid { gap: 48px; grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.92fr); }
  .hero h1 { font-size: clamp(3rem, 6.2vw, 5rem); }
  .profile-detail-grid, .direction-grid { grid-template-columns: 1fr; }
  .profile-detail-heading { position: static; max-width: 820px; }
  .dialog-project { grid-template-columns: 0.8fr 1.2fr; }
}

@media (max-width: 820px) {
  :root { --shell: min(100% - 32px, 680px); }
  .section { padding: 92px 0; }
  .site-header { height: 68px; padding: 0 16px; }
  .menu-open .site-header { backdrop-filter: none; }
  .menu-toggle {
    position: relative;
    z-index: 102;
    display: flex;
    width: 42px;
    height: 42px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    border: 1px solid var(--line-dark);
    color: inherit;
    background: transparent;
  }
  .menu-toggle span:not(.sr-only) { width: 18px; height: 1px; background: currentColor; transition: transform 180ms ease, opacity 180ms ease; }
  .menu-open .menu-toggle span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
  .menu-open .menu-toggle span:nth-child(2) { opacity: 0; }
  .menu-open .menu-toggle span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
  .site-nav {
    position: fixed;
    z-index: 101;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 26px;
    padding: 70px 30px;
    color: #eef5f0;
    background: rgba(8,17,15,0.98);
    visibility: hidden;
    opacity: 0;
    transform: translateY(-12px);
    transition: opacity 180ms ease, transform 180ms ease, visibility 180ms;
  }
  .menu-open .site-nav { visibility: visible; opacity: 1; transform: translateY(0); }
  .site-nav a { font-family: var(--serif); font-size: 1.8rem; letter-spacing: -0.02em; }
  .site-nav .nav-cta { padding: 0; border: 0; color: var(--mint); }
  .wordmark-text { display: none; }

  .hero-grid { grid-template-columns: 1fr; padding-top: 120px; }
  .hero-theory-visual { width: min(100%, 660px); margin-top: 12px; justify-self: center; }
  .profile-heading { grid-template-columns: 1fr; }
  .profile-cards, .detail-panels { grid-template-columns: 1fr; }
  .detail-panel { min-height: auto; }
  .section-heading { align-items: start; flex-direction: column; }
  .project-list { grid-template-columns: 1fr; }
  .dialog-project { grid-template-columns: 1fr; }
  .dialog-visual, .dialog-visual img { min-height: 300px; max-height: 360px; }
  .dialog-visual img { padding: 16px 16px 52px; }
  .dialog-visual-photo img { padding: 0; }
  .dialog-copy { padding-top: 54px; }
  .direction-map { min-height: 650px; }
  .map-core { top: 50%; }
  .node-a, .node-b, .node-c, .node-d { right: auto; left: 50%; transform: translateX(-50%); }
  .node-a { top: 0; }
  .node-b { top: 118px; }
  .node-c { bottom: 118px; }
  .node-d { bottom: 0; }
  .direction-map svg { display: none; }
  .footer-grid { grid-template-columns: 1fr auto; }
  .footer-grid > div:nth-child(2) { display: none; }
}

@media (max-width: 560px) {
  .hero h1 { font-size: clamp(2.7rem, 13vw, 4.1rem); }
  .hero-intro { font-size: 0.94rem; }
  .hero-theory-visual { margin-top: 8px; }
  
  
  
  .diagram-header h3 { font-size: 1.55rem; }
  .hero-actions, .contact-actions { align-items: stretch; flex-direction: column; }
  .button { width: 100%; }
  .profile-card { min-height: 285px; }
  .project-body { min-height: auto; }
  .project-open { margin-top: 24px; padding-top: 0; }
  .project-dialog { width: calc(100vw - 16px); max-height: calc(100vh - 16px); }
  .dialog-visual, .dialog-visual img { min-height: 230px; max-height: 270px; }
  .dialog-copy { padding: 44px 24px 34px; }
  .dialog-copy h2 { font-size: 2rem; }
  .project-facts div { grid-template-columns: 1fr; gap: 5px; }
  .dialog-actions { align-items: stretch; flex-direction: column; }
  .contact-card { width: calc(100% - 16px); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  .reveal { opacity: 1; transform: none; }
  .lattice-canvas, .lattice-dots { display: none; }
}

/* ---------- Views: hero → explore chooser → profile | work ---------- */
.js .view { display: none; }
.js .view.is-active { display: block; }
.view > section, .contact { scroll-margin-top: 90px; }
.view-bar { background: var(--paper); border-bottom: 1px solid var(--line); scroll-margin-top: 66px; }
.view-bar .shell { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 18px 0; font-size: 0.76rem; letter-spacing: 0.03em; }
.view-bar a { color: #167f7d; text-decoration: none; font-weight: 700; }
.view-bar a:hover, .view-bar a:focus-visible { text-decoration: underline; text-underline-offset: 4px; }
.view-bar-current { color: var(--ink-soft); font-family: var(--serif); font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; }

.explore-dialog {
  width: min(960px, calc(100vw - 40px));
  max-width: none;
  padding: 0;
  border: 1px solid rgba(121, 227, 225, 0.34);
  color: #eef6f1;
  background: var(--night-soft);
  box-shadow: 0 34px 100px rgba(0, 0, 0, 0.5);
}
.explore-dialog::backdrop { background: rgba(3, 10, 8, 0.78); backdrop-filter: blur(7px); }
.explore-dialog[open] { animation: dialog-in 240ms var(--ease); }
.explore-inner { padding: clamp(36px, 5vw, 64px); }
.explore-inner h2 { margin: 0 0 34px; font-family: var(--serif); font-size: clamp(1.9rem, 3.2vw, 3rem); font-weight: 400; letter-spacing: -0.035em; line-height: 1.05; }
.explore-options { display: grid; gap: 18px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.explore-card {
  position: relative;
  display: flex;
  min-height: 250px;
  flex-direction: column;
  padding: clamp(24px, 3vw, 36px);
  overflow: hidden;
  border: 1px solid var(--line-dark);
  text-decoration: none;
  background: rgba(8, 17, 15, 0.7);
  transition: border-color 220ms ease, transform 220ms var(--ease), background 220ms ease;
}
.explore-card::before { position: absolute; top: 0; right: 0; left: 0; height: 3px; content: ""; background: var(--mint); transform: scaleX(0); transform-origin: left; transition: transform 220ms var(--ease); }
.explore-card:hover, .explore-card:focus-visible { border-color: rgba(121, 227, 225, 0.6); background: rgba(8, 17, 15, 0.95); outline: 0; transform: translateY(-3px); }
.explore-card:hover::before, .explore-card:focus-visible::before { transform: scaleX(1); }
.explore-index { color: var(--mint-strong); font-family: var(--serif); font-size: 0.7rem; letter-spacing: 0.12em; }
.explore-card h3 { margin: 26px 0 12px; font-family: var(--serif); font-size: clamp(1.5rem, 2.2vw, 2rem); font-weight: 400; letter-spacing: -0.03em; line-height: 1.08; }
.explore-card p { margin: 0; color: rgba(232, 246, 237, 0.62); font-size: 0.88rem; }
.explore-link { display: flex; align-items: center; gap: 10px; margin-top: auto; padding-top: 26px; color: var(--mint); font-size: 0.74rem; font-weight: 700; letter-spacing: 0.03em; }
.explore-link span { transition: transform 180ms ease; }
.explore-card:hover .explore-link span { transform: translateX(4px); }

@media (max-width: 820px) {
  .explore-options { grid-template-columns: 1fr; }
  .explore-card { min-height: auto; }
  .view-bar .shell { flex-wrap: wrap; gap: 8px 18px; }
  .view-bar-current { order: -1; width: 100%; }
}
@media (max-width: 560px) {
  .explore-dialog { width: calc(100vw - 16px); }
  .explore-inner { padding: 48px 22px 28px; }
}

/* ---------- Landing = hero only; a branch replaces the hero like a separate page ---------- */
.js .view-shared { display: none; }
.js body:not([data-view="home"]) .view-shared { display: block; }
.js body:not([data-view="home"]) .hero { display: none; }
.js body:not([data-view="home"]) .view.is-active { padding-top: 80px; }
.js body:not([data-view="home"]) .site-header,
.js body:not([data-view="home"]) .site-header.scrolled {
  color: var(--ink);
  border-bottom: 1px solid var(--line);
  background: rgba(242, 240, 233, 0.92);
  backdrop-filter: blur(16px);
}
.js body:not([data-view="home"]) .wordmark-mark { border-color: rgba(36, 184, 182, 0.55); color: var(--mint-strong); }
.js body:not([data-view="home"]) .site-nav a::after { background: var(--mint-strong); }
.js body:not([data-view="home"]) .site-nav .nav-cta { border-color: rgba(36, 184, 182, 0.5); }
.js body:not([data-view="home"]) .site-nav a[aria-current="page"] { opacity: 1; }
.js body:not([data-view="home"]) .site-nav a[aria-current="page"]::after { transform: scaleX(1); }
.js body[data-view="home"] .hero { min-height: 100svh; }
@media (max-width: 820px) {
  .js body:not([data-view="home"]) .view.is-active { padding-top: 68px; }
  .js body:not([data-view="home"]) .site-nav { color: #eef5f0; }
}

/* ---------- Landing fits one screen on desktop: scale the schematic column with viewport height ---------- */
@media (min-width: 821px) {
  .hero-grid { min-height: calc(100svh - 136px); padding-top: 96px; padding-bottom: 40px; }
  .hero-theory-visual { max-width: min(560px, 46vh); }
  .diagram-eyebrow { margin-bottom: 4px; font-size: 0.66rem; }
  
  .diagram-references a { font-size: 0.68rem; }
  .holography-caption .diagram-note { margin-top: 4px; }
  .diagram-header { margin-bottom: 12px; }
  .diagram-header h3 { font-size: clamp(1.2rem, 1.6vw, 1.5rem); }
  .diagram-context { margin-top: 4px; font-size: 0.82rem; }
  
  
  
  .diagram-note { margin-top: 8px; font-size: 0.74rem; }
  .holography-panel { margin-top: 16px; padding-top: 14px; }
  .holography-panel .diagram-header { margin-bottom: 10px; }
  .diagram-formula { font-size: clamp(1rem, 1.3vw, 1.2rem); }
  .diagram-references { margin-top: 12px; padding-top: 10px; }
  .hero-intro { margin-top: 24px; }
  .hero-actions { margin-top: 28px; }
  .availability { margin-top: 22px; }
}
@media (min-width: 821px) and (max-height: 880px) {
  .hero-grid { padding-top: 84px; padding-bottom: 24px; }
  .hero h1 { font-size: clamp(2.6rem, 4.4vw, 4.2rem); }
  .eyebrow strong { font-size: clamp(2.2rem, 3.4vw, 3.6rem); }
  .eyebrow { margin-bottom: 18px; }
  .hero-intro { margin-top: 18px; font-size: 0.9rem; }
  .hero-actions { margin-top: 20px; }
  .availability { margin-top: 16px; }
  .hero-theory-visual { max-width: min(520px, 42vh); }
  .diagram-references, .holography-caption .diagram-note { display: none; }
  
}

/* ---------- Profile areas and contact open as dialogs ---------- */
button.profile-card { width: 100%; text-align: left; cursor: pointer; font: inherit; color: inherit; appearance: none; -webkit-appearance: none; }
button.profile-card:focus-visible { outline: 2px solid var(--mint-strong); outline-offset: -4px; }

.profile-dialog .section { padding: clamp(44px, 6vw, 72px) clamp(24px, 5vw, 64px); }
.profile-dialog .shell { width: 100%; }
.profile-dialog .profile-detail-grid, .profile-dialog .direction-grid { grid-template-columns: 1fr; gap: clamp(32px, 4vw, 48px); }
.profile-dialog .profile-detail-heading { position: static; max-width: 760px; }
.profile-dialog .profile-detail h2, .profile-dialog .direction h2 { font-size: clamp(2.1rem, 3.6vw, 3.4rem); }
.profile-dialog .detail-lead { margin-top: 22px; }
.profile-dialog .detail-panel { min-height: 300px; }
.profile-dialog .direction-copy { max-width: 760px; }
.profile-dialog .direction-map { min-height: 520px; }

.contact-dialog {
  width: min(900px, calc(100vw - 40px));
  max-width: none;
  padding: 0;
  border: 1px solid rgba(121, 227, 225, 0.34);
  color: #edf6f0;
  background: var(--night-soft);
  box-shadow: 0 34px 100px rgba(0, 0, 0, 0.5);
}
.contact-dialog::backdrop { background: rgba(3, 10, 8, 0.78); backdrop-filter: blur(7px); }
.contact-dialog[open] { animation: dialog-in 240ms var(--ease); }
.contact-dialog .contact-card { padding: clamp(40px, 7vw, 80px); }
.contact-dialog .contact-card h2 { font-family: var(--serif); font-size: clamp(2rem, 3.6vw, 3.4rem); font-weight: 400; letter-spacing: -0.04em; line-height: 1.03; }
html:not(.js) .contact-dialog { position: static; display: block; width: var(--shell); margin: 0 auto 80px; }

/* Footer stays at the bottom even when a branch is short */
.js body { display: flex; flex-direction: column; min-height: 100svh; }
.js main { flex: 1 0 auto; }
.js .view.is-active { min-height: calc(100svh - 110px); }

@media (max-width: 560px) {
  .contact-dialog { width: calc(100vw - 16px); }
  .contact-dialog .contact-card { padding: 52px 22px 32px; }
}
.profile-dialog .detail-panels-ai .detail-panel { min-height: auto; }

/* ---------- Profile-area dialogs: dark, schematic-led ---------- */
.profile-dialog { color: #e8f2ec; background: var(--night); border-color: rgba(121, 227, 225, 0.34); }
.profile-dialog .area { padding: clamp(44px, 6vw, 72px) clamp(24px, 5vw, 64px); }
.area-grid { display: grid; align-items: start; gap: clamp(32px, 4vw, 56px); grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); }
.area-copy h2 { margin: 0; font-family: var(--serif); font-size: clamp(2.1rem, 3.6vw, 3.4rem); font-weight: 400; letter-spacing: -0.04em; line-height: 1.03; }
.area-copy .detail-lead { max-width: 560px; margin-top: 20px; color: rgba(232, 246, 237, 0.68); }
.area-groups { margin-top: 32px; border-top: 1px solid var(--line-dark); }
.area-group { padding: 18px 0 16px; border-bottom: 1px solid var(--line-dark); }
.area-group-label { color: var(--mint-strong); font-family: var(--serif); font-size: 0.64rem; letter-spacing: 0.1em; text-transform: uppercase; }
.area-group h3 { margin: 8px 0 0; font-family: var(--serif); font-size: 1.25rem; font-weight: 400; line-height: 1.2; color: #f0f6f2; }
.area-group ul { margin: 8px 0 0; padding: 0; list-style: none; }
.area-group li { padding: 6px 0; color: rgba(232, 246, 237, 0.66); font-size: 0.84rem; line-height: 1.55; }
.area-group li + li { border-top: 1px solid rgba(220, 245, 231, 0.08); }

.schematic { width: 100%; margin: 0; }
.schematic-stage { position: relative; aspect-ratio: 6 / 5; }
.schematic svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.schematic .map-core, .schematic .map-node { left: var(--x); top: var(--y); transform: translate(-50%, -50%); }
.schematic .map-core { width: 196px; min-height: 96px; }
.schematic .map-node { width: 176px; min-height: auto; }
.map-node small, .map-core small { display: block; margin-top: 6px; color: rgba(232, 246, 237, 0.52); font-size: 0.68rem; line-height: 1.35; letter-spacing: 0.01em; }
.schematic figcaption { margin-top: 18px; color: rgba(232, 246, 237, 0.42); font-size: 0.7rem; letter-spacing: 0.02em; text-align: right; }
.sch-edge { fill: none; stroke: rgba(121, 227, 225, 0.32); stroke-width: 1; stroke-dasharray: 4 6; }
.sch-edge-arrow { stroke: rgba(121, 227, 225, 0.5); stroke-dasharray: none; }
.sch-arrowhead { fill: none; stroke: rgba(121, 227, 225, 0.75); stroke-width: 1.2; stroke-linecap: round; stroke-linejoin: round; }
.sch-hex { fill: none; stroke: rgba(121, 227, 225, 0.12); stroke-width: 1; }
.sch-hex-strong { stroke: rgba(121, 227, 225, 0.3); }
.sch-chain { fill: none; stroke: rgba(121, 227, 225, 0.3); stroke-width: 1; }
.sch-tensor { fill: rgba(8, 17, 15, 1); stroke: rgba(121, 227, 225, 0.55); stroke-width: 1.2; }
.sch-ring { fill: none; stroke: rgba(121, 227, 225, 0.16); stroke-width: 1; stroke-dasharray: 2 7; }
.sch-label { fill: rgba(232, 246, 237, 0.5); font-family: var(--serif); font-size: 13px; font-style: italic; }
.schematic-theory .map-node { width: 164px; }
.schematic-theory .map-node strong { font-size: 0.86rem; }

@media (max-width: 1040px) {
  .area-grid { grid-template-columns: 1fr; }
  .schematic { max-width: 640px; }
}
@media (max-width: 820px) {
  .profile-dialog .area { padding-top: 60px; }
  .schematic { max-width: none; }
  .schematic-stage { display: grid; gap: 10px; grid-template-columns: 1fr 1fr; aspect-ratio: auto; }
  .schematic svg { display: none; }
  .schematic .map-core, .schematic .map-node { position: static; width: auto; transform: none; }
  .schematic .map-core { grid-column: 1 / -1; order: -1; }
  .schematic figcaption { margin-top: 10px; text-align: left; }
}
@media (max-width: 420px) {
  .schematic-stage { grid-template-columns: 1fr; }
}
.profile-dialog { width: min(1280px, calc(100vw - 40px)); }
.profile-dialog .area { padding: clamp(44px, 6vw, 64px) clamp(24px, 4.5vw, 56px); }
.area-grid { align-items: center; gap: clamp(32px, 4vw, 48px); grid-template-columns: minmax(0, 0.78fr) minmax(0, 1.22fr); }
.schematic .map-core { width: 180px; min-height: 84px; padding: 16px 18px; }
.schematic .map-node { width: 152px; padding: 12px 14px; }
.schematic .map-core span, .schematic .map-node span { font-size: 0.52rem; }
.schematic .map-core strong, .schematic .map-node strong { font-size: 0.88rem; }
.schematic-theory .map-node { width: 152px; }
.schematic-theory .map-node strong { font-size: 0.86rem; }
.sch-hex { stroke: rgba(121, 227, 225, 0.085); }
.sch-hex-strong { stroke: rgba(121, 227, 225, 0.4); }

/* ---------- Hero schematic column: integrated, larger, scaled to viewport height ---------- */
@media (min-width: 821px) {
  .hero-grid { grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr); gap: clamp(40px, 4.5vw, 72px); }
  .hero h1 { font-size: clamp(3rem, 4.9vw, 5.15rem); }
  .hero-theory-visual { max-width: min(700px, calc(68.5vh - 96px)); width: 100%; justify-self: end; }
  .diagram-header { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; margin-bottom: 14px; }
  .diagram-eyebrow { margin: 0; width: 100%; }
  .diagram-header h3 { font-size: 1.05rem; letter-spacing: -0.01em; }
  .diagram-context { margin: 0; font-size: 0.8rem; }
  .diagram-context::before { content: "·"; margin-right: 10px; color: rgba(145, 199, 181, 0.5); }
  
  
  
  .diagram-note { margin-top: 8px; }
  .holography-panel { margin-top: 26px; padding-top: 0; border-top: 0; }
  .holography-panel .diagram-header { margin-bottom: 8px; }
  .ads-stage { position: relative; }
  .ads-stage::before {
    position: absolute;
    inset: 8% 4% 6%;
    content: "";
    pointer-events: none;
    background: radial-gradient(ellipse at 50% 55%, rgba(121, 227, 225, 0.13), rgba(121, 227, 225, 0.04) 45%, transparent 70%);
    filter: blur(18px);
  }
  .ads-stage img { position: relative; }
  .holography-caption { margin-top: 2px; }
  .diagram-formula { margin: 0; font-size: clamp(1.05rem, 1.35vw, 1.3rem); }
  .diagram-references { margin-top: 14px; padding-top: 10px; border-top: 1px solid rgba(145, 199, 181, 0.1); }
}
@media (min-width: 821px) and (max-height: 999px) {
  .hero-theory-visual { max-width: min(660px, calc(70vh - 104px)); }
  .diagram-references { display: none; }
}
@media (min-width: 821px) and (max-height: 880px) {
  .hero-theory-visual { max-width: min(660px, calc(71.5vh - 97px)); }
  .holography-caption .diagram-note, .flux-block .diagram-note { display: none; }
}
@media (max-width: 1040px) {
  .area-grid { grid-template-columns: 1fr; align-items: start; }
  .schematic { max-width: 640px; }
}
@media (max-width: 820px) {
  .schematic .map-core, .schematic .map-node { position: static; width: auto; min-height: auto; transform: none; }
}

/* ---------- Project dialogs: same dark, schematic-led layout as the profile areas ---------- */
.project-dialog { color: #e8f2ec; background: var(--night); border-color: rgba(121, 227, 225, 0.34); width: min(1280px, calc(100vw - 40px)); }
.project-dialog .dialog-project { display: block; min-height: 0; padding: clamp(44px, 6vw, 64px) clamp(24px, 4.5vw, 56px); }
.project-dialog .dialog-copy { padding: 0; }
.project-dialog .dialog-copy h2 { margin: 22px 0 18px; font-size: clamp(1.9rem, 3vw, 2.9rem); }
.project-dialog .project-meta { color: rgba(232, 246, 237, 0.5); }
.project-dialog .dialog-abstract { color: rgba(232, 246, 237, 0.78); font-size: 1.02rem; }
.project-dialog .project-facts { margin-top: 28px; }
.project-dialog .project-facts div { padding: 14px 0; border-top: 1px solid var(--line-dark); }
.project-dialog .project-facts dt { color: var(--mint-strong); }
.project-dialog .project-facts dd { color: rgba(232, 246, 237, 0.66); }
.project-dialog .tags { margin: 22px 0 26px; }
.project-dialog .tags span { border-color: var(--line-dark); color: rgba(232, 246, 237, 0.62); }
.project-dialog .button-dialog { color: var(--night); background: var(--mint); }
.project-dialog .button-dialog:hover, .project-dialog .button-dialog:focus-visible { background: #d0f9df; }
.project-dialog .text-link { color: var(--mint); }

/* SVG schematic vocabulary (project drawings) */
.schematic-project .schematic-stage { aspect-ratio: 6 / 5; }
.sch-text { fill: rgba(232, 246, 237, 0.86); font-family: var(--serif); font-size: 14px; }
.sch-text-italic { font-style: italic; }
.sch-text-soft { fill: rgba(232, 246, 237, 0.5); font-family: var(--serif); font-size: 12px; }
.sch-text-label { fill: var(--mint-strong); font-family: var(--serif); font-size: 9.5px; letter-spacing: 0.14em; }
.sch-stroke { fill: none; stroke: rgba(121, 227, 225, 0.55); stroke-width: 1.2; stroke-linecap: round; stroke-linejoin: round; }
.sch-stroke-strong { fill: none; stroke: #79e3e1; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.sch-glow { fill: none; stroke: rgba(121, 227, 225, 0.16); stroke-width: 12; stroke-linecap: round; stroke-linejoin: round; }
.sch-hex-lattice { fill: none; stroke: rgba(121, 227, 225, 0.22); stroke-width: 1; }
.sch-dot { fill: #79e3e1; }
.sch-dot-soft { fill: rgba(121, 227, 225, 0.6); }
.sch-halo { fill: rgba(121, 227, 225, 0.12); }
.sch-ring-dot { fill: rgba(8, 17, 15, 0.9); stroke: #79e3e1; stroke-width: 1.4; }
.sch-site { fill: rgba(8, 17, 15, 1); stroke: rgba(121, 227, 225, 0.7); stroke-width: 1.2; }
.sch-spin { fill: none; stroke: #79e3e1; stroke-width: 1.4; }
.sch-box { fill: rgba(13, 29, 24, 0.92); stroke: rgba(220, 245, 231, 0.2); stroke-width: 1; }
.sch-box-strong { stroke: rgba(121, 227, 225, 0.55); }
.sch-area { fill: rgba(121, 227, 225, 0.09); stroke: none; }
.sch-axis { fill: none; stroke: rgba(232, 246, 237, 0.32); stroke-width: 1; }
.sch-grid { stroke: rgba(121, 227, 225, 0.1); stroke-width: 1; }
.sch-level { stroke: #79e3e1; stroke-width: 1.4; }
.sch-level-soft { stroke: rgba(121, 227, 225, 0.4); stroke-width: 1; }
.sch-photon { fill: none; stroke: rgba(232, 246, 237, 0.55); stroke-width: 1; stroke-dasharray: 2 3; }

@media (max-width: 820px) {
  .schematic-project .schematic-stage { display: block; }
  .schematic-project svg { display: block; position: static; width: 100%; height: auto; }
}
.project-dialog .shell { width: 100%; }
.sch-sub { font-size: 70%; }
@media (max-width: 820px) {
  .schematic-project { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .schematic-project .schematic-stage { min-width: 540px; }
}

/* ---------- Hero flux panels: zoomed C2 corridor, inline, animated ---------- */

/* (a) formation: the string draws inward from both sources; rishon pairs light up outer → inner */

/* (b) breaking: inner links empty, a q̄q pair appears, two short strings remain */

/* ---------- Schematic vocabulary v3 (audit pass) ---------- */
.schematic .map-core, .schematic .map-node { background: #0d1c18; backdrop-filter: none; }
.schematic .map-core { box-shadow: 0 0 0 4px rgba(8, 17, 15, 1), 0 0 34px rgba(121, 227, 225, 0.08); }
.schematic .map-node { box-shadow: 0 0 0 4px rgba(8, 17, 15, 1); }
.sch-edge-flow { stroke: rgba(121, 227, 225, 0.55); stroke-dasharray: none; stroke-width: 1.1; }
.sch-edge-soft { stroke: rgba(121, 227, 225, 0.2); stroke-dasharray: 2 5; }
.sch-chevron { fill: none; stroke: #79e3e1; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.sch-ring-strong { stroke: rgba(121, 227, 225, 0.22); stroke-dasharray: 1 6; stroke-linecap: round; stroke-width: 1.4; }
.sch-ring-label { fill: rgba(121, 227, 225, 0.55); font-family: var(--serif); font-size: 9px; letter-spacing: 0.22em; }
.sch-label-small { fill: rgba(232, 246, 237, 0.42); font-family: var(--serif); font-size: 11px; font-style: italic; }
rect.sch-tensor { fill: #0d1c18; stroke: rgba(121, 227, 225, 0.6); stroke-width: 1.1; }
.sch-link { stroke: rgba(121, 227, 225, 0.28); stroke-width: 1.1; }
.sch-link-corr { stroke: rgba(121, 227, 225, 0.5); stroke-width: 1.1; }
.sch-rishon { fill: #08110f; stroke: rgba(121, 227, 225, 0.55); stroke-width: 1; }
.sch-rishon-on { fill: #79e3e1; }
.sch-site-a, .sch-site-b { fill: #08110f; stroke: rgba(121, 227, 225, 0.9); stroke-width: 1.2; }
.sch-text-id { fill: rgba(232, 246, 237, 0.4); font-family: var(--serif); font-size: 10px; }
.sch-text-small { fill: rgba(232, 246, 237, 0.82); font-family: var(--serif); font-size: 12.5px; }
.sch-rule { stroke: rgba(220, 245, 231, 0.12); stroke-width: 1; }
.sch-track { fill: none; stroke: #79e3e1; stroke-width: 2.4; stroke-linecap: round; opacity: 0.55; }
.schematic-project .sch-text-label { font-size: 9px; }

/* hero zoom panels */

/* the decorative lattice canvas recedes behind the schematic column */
@media (min-width: 821px) {
  .lattice-canvas { -webkit-mask-image: linear-gradient(90deg, #000 0%, #000 42%, rgba(0, 0, 0, 0.18) 60%, rgba(0, 0, 0, 0.18) 100%); mask-image: linear-gradient(90deg, #000 0%, #000 42%, rgba(0, 0, 0, 0.18) 60%, rgba(0, 0, 0, 0.18) 100%); }
}
.sch-tip { fill: #79e3e1; stroke: none; }

/* ---------- Hero gauge-dynamics panel v3: full C2 patch, single animated figure ---------- */
.flux-c2 { margin: 10px 0 0; }

/* 12 s sequence: sources → ramp → string → quench → two mesons → reset */

@media (min-width: 821px) {
  .hero-theory-visual { max-width: min(720px, calc(62vh - 70px)); }
  .holography-panel { margin-top: 18px; }
}
@media (min-width: 821px) and (max-height: 999px) {
  .hero-theory-visual { max-width: min(720px, calc(66vh - 100px)); }
  .holography-caption .diagram-note { display: none; }
}
@media (min-width: 821px) and (max-height: 880px) {
  .hero-theory-visual { max-width: min(720px, calc(68vh - 108px)); }
}
@media (min-width: 821px) {
  .hero-theory-visual { max-width: min(720px, calc(68vh - 76px)); }
}
@media (min-width: 821px) and (max-height: 999px) {
  .hero-theory-visual { max-width: min(720px, calc(68vh - 76px)); }
}
@media (min-width: 821px) and (max-height: 880px) {
  .hero-theory-visual { max-width: min(720px, calc(68vh - 76px)); }
}
@media (min-width: 821px) and (max-height: 740px) {
  .hero-theory-visual { max-width: min(720px, calc(68vh - 86px)); }
}
@media (min-width: 821px) and (min-height: 1000px) and (max-height: 1060px) {
  .hero-theory-visual { max-width: min(720px, calc(68vh - 82px)); }
}

/* ===== DESIGN SYSTEM v4 (managed) ===== */
:root {
  --display: 'Cormorant Garamond', 'Cormorant', 'Iowan Old Style', Georgia, serif;
  --text: 'Newsreader', 'STIX Two Text', 'Iowan Old Style', Georgia, serif;
  --mono: 'IBM Plex Mono', ui-monospace, 'SFMono-Regular', Menlo, monospace;
  --math: 'STIX Two Text', 'Newsreader', 'Times New Roman', serif;
  --serif: var(--text);
  --ivory: #efe7d6;
  --gold: #e2c27e;
  --flux: #8ff0ea;
}
body { font-family: var(--text); font-optical-sizing: auto; text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; font-kerning: normal; }

/* display: headlines and titles */
.hero h1, .eyebrow strong, .wordmark-text, .diagram-header h3, .section-heading h2, .profile-card h3, .project h3,
.dialog-copy h2, .profile-detail h2, .explore-inner h2, .explore-card h3, .area-copy h2, .contact-dialog .contact-card h2,
.contact-card h2, .direction h2, .detail-panel h3, .footer-grid strong, .area-group h3 {
  font-family: var(--display); font-weight: 500; font-feature-settings: "kern", "liga", "dlig" 0;
}
.hero h1 em, .explore-card h3 em { font-family: var(--display); font-style: italic; font-weight: 500; }

/* instrument labels: mono, tracked uppercase */
.kicker, .diagram-eyebrow, .profile-card-index, .project-meta, .detail-panel > span, .capability-list article > span,
.contact-meta, .view-bar-current, .explore-index, .area-group-label, .map-core span, .map-node span,
.profile-card-link, .explore-link, .project-facts dt, .tags span, .site-nav a, .button, .availability {
  font-family: var(--mono); font-weight: 400; font-style: normal;
}
.kicker, .diagram-eyebrow, .profile-card-index, .project-meta, .area-group-label, .explore-index, .view-bar-current,
.map-core span, .map-node span, .project-facts dt, .contact-meta { letter-spacing: 0.14em; text-transform: uppercase; }

/* MathML: journal-grade typesetting with the self-hosted STIX Two Math subset */
math { font-family: 'STIX Two Math', math; font-size: 1.04em; }
.f1-ham math { font-size: 1.08em; }
.f1-legend math { font-size: 1.04em; }
.diagram-formula math { font-size: 1.04em; }
/* math in diagrams and formulas */
.diagram-formula, .holography-caption, .sch-text, .sch-text-soft, .sch-text-small, .sch-text-id, .sch-label,
.sch-label-small, .f1 text { font-family: var(--math); }
.sch-text-label, .sch-ring-label { font-family: var(--mono); letter-spacing: 0.16em; }

/* ---------- Fig. 1: real-time dynamics on the C2 patch (driven by assets/js/fig1.js) ---------- */
.flux-c2 { margin: 12px 0 0; container-type: inline-size; }
.f1 { display: block; width: 100%; height: auto; overflow: visible; -webkit-user-select: none; user-select: none; }
.f1 text { font-family: var(--math); }
.f1-sub { font-size: 72%; }
/* readout */
.f1-ro-k { fill: rgba(232, 246, 237, 0.74); font-size: 11px; font-style: italic; }
.f1-ro-v { fill: #eef6f1; font-family: var(--mono) !important; font-size: 9px; letter-spacing: 0.04em; }
.f1-ro-c { fill: rgba(232, 246, 237, 0.46); font-family: var(--mono) !important; font-size: 6.6px; letter-spacing: 0.16em; text-transform: uppercase; }
.f1-ro-b { fill: var(--flux); font-size: 10.5px; font-style: italic; }
/* lattice */
.f1-link { fill: none; stroke: rgba(170, 225, 214, 0.2); stroke-width: 1; }
.f1-link-flash { fill: none; stroke: rgba(170, 245, 236, 0.6); stroke-width: 1.3; }
.f1-lid { fill: rgba(232, 246, 237, 0.32); font-size: 9.6px; font-style: italic; }
.f1-sub-id { font-style: normal; }
.f1-vid { fill: rgba(232, 246, 237, 0.36); font-family: var(--mono) !important; font-size: 7.6px; letter-spacing: 0.04em; }
.f1-str { fill: none; stroke: var(--flux); stroke-width: 2.4; stroke-linecap: round; }
.f1-str-glow { fill: none; stroke: rgba(121, 227, 225, 0.6); stroke-width: 9; stroke-linecap: round; filter: url(#f1-glow); }
.f1-burst { fill: url(#f1-burst-g); pointer-events: none; }
.f1-qflash { fill: url(#f1-flash-g); pointer-events: none; }
.f1-r { fill: var(--flux); }
.f1-r-vac { fill-opacity: 0.42; }
.f1-site { fill: #07100e; stroke: rgba(236, 232, 220, 0.78); stroke-width: 1; }
.f1-q { fill: var(--ivory); }
.f1-q-static { fill-opacity: 0.5; }
.f1-src { fill: none; stroke: rgba(239, 231, 214, 0.72); stroke-width: 0.9; stroke-dasharray: 2.2 2.3; }
.f1-srcl { fill: #f4eddd; font-size: 15px; font-style: italic; }
.f1-srcq { fill: rgba(239, 231, 214, 0.62); font-size: 10px; font-style: italic; }
.f1-ch { fill: #fbf6ea; font-size: 13px; font-style: italic; }
/* closed loop: gauge sector */
.f1-loop-fill { fill: rgba(226, 194, 126, 0.045); }
.f1-loop-ring { fill: none; stroke: var(--gold); stroke-width: 2.1; stroke-linejoin: round; stroke-linecap: round; }
.f1-loop-glow { fill: none; stroke: rgba(226, 194, 126, 0.5); stroke-width: 8.5; stroke-linejoin: round; filter: url(#f1-glow); }
.f1-loop-glint { fill: none; stroke: #fff4d8; stroke-width: 2.6; stroke-linecap: round; stroke-dasharray: 0.07 0.93; }
.f1-plaq-t { fill: var(--gold); font-size: 13.5px; font-style: italic; }
.f1-plaq-c { fill: rgba(226, 194, 126, 0.72); font-family: var(--mono) !important; font-size: 6.4px; letter-spacing: 0.16em; text-transform: uppercase; }
/* time axis */
.f1-mustar { fill: none; stroke: rgba(239, 231, 214, 0.34); stroke-width: 0.8; stroke-dasharray: 2 2.6; }
.f1-mustar-t { fill: rgba(239, 231, 214, 0.55); font-size: 8.8px; font-style: italic; }
.f1-trace-dim { fill: none; stroke: rgba(239, 231, 214, 0.2); stroke-width: 1.1; stroke-linejoin: round; }
.f1-trace { fill: none; stroke: #f4eddd; stroke-width: 1.35; stroke-linejoin: round; }
.f1-tl-num { fill: rgba(232, 246, 237, 0.55); font-family: var(--mono) !important; font-size: 8px; }
.f1-tl-mu { fill: rgba(232, 246, 237, 0.78); font-size: 12.5px; font-style: italic; }
.f1-ax-dim { stroke: rgba(232, 246, 237, 0.18); stroke-width: 1.2; }
.f1-ax { stroke: var(--flux); stroke-width: 1.6; stroke-linecap: round; }
.f1-ax-brk { stroke: rgba(232, 246, 237, 0.45); stroke-width: 0.9; }
.f1-tick { stroke: rgba(232, 246, 237, 0.34); stroke-width: 0.8; }
.f1-anchor { fill: rgba(239, 231, 214, 0.62); }
.f1-capw { fill: rgba(232, 246, 237, 0.62); }
.f1-cap { font-family: var(--mono); font-size: 7.4px; letter-spacing: 0.16em; }
.f1-cap-m { font-size: 9.6px; font-style: italic; fill: rgba(232, 246, 237, 0.78); }
.f1-cap2 { fill: rgba(232, 246, 237, 0.52); font-size: 8.8px; font-style: italic; }
.f1-ph-line { stroke: rgba(239, 231, 214, 0.45); stroke-width: 0.7; stroke-dasharray: 1.4 1.8; }
.f1-ph-dot { fill: #fbf6ea; }
.f1-ph-ring { fill: #07100e; stroke: var(--flux); stroke-width: 1.3; }
.f1-ph-core { fill: var(--flux); }
.f1-ph-halo { fill: none; stroke: rgba(143, 240, 234, 0.4); stroke-width: 0.8; transform-box: fill-box; transform-origin: center;
  animation: f1-halo 2.4s ease-out infinite; }
@keyframes f1-halo { 0% { opacity: 0.9; transform: scale(0.65); } 100% { opacity: 0; transform: scale(1.55); } }
.f1.is-dragging .f1-ph-halo, .f1.is-paused .f1-ph-halo { animation: none; opacity: 0; }
.f1-hit { fill: transparent; cursor: ew-resize; touch-action: pan-y; pointer-events: all; }
.f1.is-dragging .f1-hit { cursor: grabbing; }
.f1-ctrl { outline: none; }
.f1-play { cursor: pointer; }
.f1-play-ring { fill: rgba(143, 240, 234, 0.06); stroke: rgba(143, 240, 234, 0.55); stroke-width: 0.9; transition: fill 160ms ease; }
.f1-play:hover .f1-play-ring { fill: rgba(143, 240, 234, 0.16); }
.f1-ic-pause rect, .f1-ic-play { fill: var(--flux); }
.f1-ic-play { display: none; }
.f1.is-paused .f1-ic-play { display: inline; }
.f1.is-paused .f1-ic-pause { display: none; }
.f1-ctrl:focus-visible .f1-play-ring { stroke: #fff; stroke-width: 1.5; }
.f1-slider:focus-visible ~ .f1-ph .f1-ph-ring, .f1-tl:focus-within .f1-ph-ring { stroke-width: 1.8; }
html:not(.js) .f1-play, html:not(.js) .f1-hit { display: none; }

/* the copy stays pinned while the plates scroll, where the screen is tall enough to show all of it */
@media (min-width: 821px) and (min-height: 760px) { .hero-copy { position: sticky; top: 100px; } }
/* figure plates: a quiet frame with gold registration corners */
@media (min-width: 821px) {
  .hero-theory-visual .theory-panel { position: relative; margin: 0 !important; padding: 18px 22px 16px !important;
    border: 1px solid rgba(239, 231, 214, 0.075) !important;
    background: linear-gradient(180deg, rgba(11, 26, 23, 0.74), rgba(7, 16, 14, 0.52)); }
  .hero-theory-visual .theory-panel + .theory-panel { margin-top: 18px !important; }
  .hero-theory-visual .theory-panel::before { --c: rgba(226, 194, 126, 0.6); position: absolute; inset: -1px; pointer-events: none; content: "";
    background:
      linear-gradient(var(--c), var(--c)) left top / 13px 1px no-repeat, linear-gradient(var(--c), var(--c)) left top / 1px 13px no-repeat,
      linear-gradient(var(--c), var(--c)) right top / 13px 1px no-repeat, linear-gradient(var(--c), var(--c)) right top / 1px 13px no-repeat,
      linear-gradient(var(--c), var(--c)) left bottom / 13px 1px no-repeat, linear-gradient(var(--c), var(--c)) left bottom / 1px 13px no-repeat,
      linear-gradient(var(--c), var(--c)) right bottom / 13px 1px no-repeat, linear-gradient(var(--c), var(--c)) right bottom / 1px 13px no-repeat; }
  .flux-block .diagram-header { padding-bottom: 10px; margin-bottom: 4px; border-bottom: 1px solid rgba(239, 231, 214, 0.06); }
  .flux-block .diagram-header::after { margin-left: auto; color: rgba(143, 240, 234, 0.62); content: "INTERACTIVE · DRAG t";
    font-family: var(--mono); font-size: 0.56rem; letter-spacing: 0.18em; text-transform: none; white-space: nowrap; }
  .holography-panel .diagram-header { padding-bottom: 10px; border-bottom: 1px solid rgba(239, 231, 214, 0.06); }
  .flux-c2 { margin-top: 10px; }
}
/* v4: hand-inserted sources, vacuum bonds, glueball loops */
.f1-ins { fill: none; stroke: rgba(244, 237, 221, 0.9); stroke-width: 1.1; stroke-dasharray: 3 2.4; pointer-events: none; }
.f1-vacband { fill: rgba(232, 246, 237, 0.02); stroke: rgba(232, 246, 237, 0.08); stroke-width: 0.5; stroke-dasharray: 1.4 1.8; }
.f1-vact { fill: rgba(232, 246, 237, 0.42); font-size: 6.6px; font-style: italic; }
.f1-hand { fill: rgba(244, 237, 221, 0.78); }
.f1-handt { fill: rgba(244, 237, 221, 0.66); font-family: var(--mono) !important; font-size: 6.4px; letter-spacing: 0.03em; }
.f1-bondglow { opacity: 0.32; }
.f1-lg-tube { stroke: var(--flux); stroke-width: 3; stroke-linecap: round; }
/* v5: colour-singlet clusters, in the notation of Halimeh et al., PRX Quantum 5, 030358 (2024) */
.f1-tri { fill: rgba(205, 232, 224, 0.05); stroke: rgba(205, 232, 224, 0.2); stroke-width: 0.75; stroke-linejoin: round; }
.f1-lk { fill: none; stroke: rgba(205, 232, 224, 0.36); stroke-width: 0.9; }
.f1-ak { fill: none; stroke-width: 1.5; stroke-linecap: round; }
.f1-ak-t { stroke: var(--flux); }
.f1-ak-g { stroke: var(--gold); }
.f1-kg path { fill: none; stroke-linecap: round; }
.f1-kg1 { stroke: rgba(121, 227, 225, 0.11); stroke-width: 13; }
.f1-kg2 { stroke: rgba(121, 227, 225, 0.2); stroke-width: 6; }
.f1-lb path { fill: none; stroke-linecap: round; }
.f1-lo { stroke-width: 15; stroke-opacity: 0.08; }
.f1-lm { stroke-width: 9.4; stroke-opacity: 0.42; }
.f1-lc { stroke-width: 3.6; stroke-opacity: 0.4; }
.f1-lb-t path { stroke: #7fe9e2; } .f1-lb-t .f1-lc { stroke: #e9fffc; }
.f1-lb-g path { stroke: #e2c27e; } .f1-lb-g .f1-lc { stroke: #fff4da; }
.f1-lb-i path { stroke: #efe7d6; } .f1-lb-i .f1-lm { stroke-opacity: 0.3; } .f1-lb-i .f1-lc { stroke: #ffffff; stroke-opacity: 0.32; }
.f1-sr { fill: #07100e; stroke: rgba(236, 232, 220, 0.66); stroke-width: 0.85; }
.f1-sf { fill: #f3eee2; }
.f1-sh { fill: rgba(239, 231, 214, 0.06); stroke: rgba(239, 231, 214, 0.34); stroke-width: 0.8; }
.f1-mv { pointer-events: none; }
.f1-mv-h { fill: rgba(244, 237, 221, 0.2); }
.f1-mv-c { fill: #fffaf0; }
.f1-srcs { fill: #f4eddd; stroke: #07100e; stroke-width: 0.8; }
.f1-rg path { fill: none; stroke-linejoin: round; }
.f1-rg-g1 { stroke: rgba(226, 194, 126, 0.07); stroke-width: 17; }
.f1-rg-g2 { stroke: rgba(226, 194, 126, 0.13); stroke-width: 7.5; }
.f1-g { pointer-events: none; }
.f1-g-h { fill: rgba(143, 240, 234, 0.16); }
.f1-g-c { fill: #f6fffd; }
.f1-g-o { fill: #07100e; stroke: #f6fffd; stroke-width: 1.15; }
.f1-ghalo { fill: none; stroke: rgba(143, 240, 234, 0.85); stroke-width: 0.9; stroke-dasharray: 2.2 2.4; }
.f1-gs { fill: rgba(232, 246, 237, 0.55); font-family: var(--mono) !important; font-size: 5.6px; letter-spacing: 0.12em; }
.f1-gs-l { fill: none; stroke: rgba(232, 246, 237, 0.28); stroke-width: 0.6; stroke-dasharray: 1 1.6; }
.f1-plaq-s { fill: rgba(226, 194, 126, 0.58); font-size: 7.2px; font-style: italic; }
.f1-link-iflash { fill: none; stroke: rgba(244, 237, 221, 0.75); stroke-width: 1.4; }
.f1-co-l { fill: none; stroke: rgba(143, 240, 234, 0.42); stroke-width: 0.6; }
.f1-co-t { fill: rgba(143, 240, 234, 0.84); font-family: var(--mono) !important; font-size: 6.2px; letter-spacing: 0.16em; }
.f1-co-s { fill: rgba(143, 240, 234, 0.6); font-size: 7.4px; font-style: italic; }
.f1-co-m { display: none; }
/* v7: the figure is a stack of four svg layers with one viewBox -- glow underlay, tube glow (its opacity follows
   P_conn on the compositor), the interactive figure, and the annotations: colour-singlet outlines, glueball markers,
   captions.  Each layer is its own compositor layer, so what changes in one never repaints the others. */
.f1-stage { position: relative; }
.f1-stage > svg.f1 { position: relative; }
.f1-layer { position: absolute; top: 0; left: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none;
  -webkit-user-select: none; user-select: none; will-change: transform; }
.f1-tglow { will-change: transform, opacity; }
.f1-layer text { font-family: var(--math); }
.f1-ol path, .f1-gc circle { fill: none; stroke-linejoin: round; }
.f1-ol-g { stroke: rgba(143, 240, 234, 0.075); stroke-width: 4.6; }
.f1-ol-p { stroke: rgba(143, 240, 234, 0.82); stroke-width: 0.85; stroke-linecap: round; stroke-dasharray: 3.3 2.5; }
.f1-gc-g { stroke: rgba(226, 194, 126, 0.075); stroke-width: 4.6; }
.f1-gc-c { stroke: rgba(226, 194, 126, 0.85); stroke-width: 0.85; stroke-linecap: round; stroke-dasharray: 3.3 2.5; }
.f1-co-dot { fill: rgba(143, 240, 234, 0.8); }
.f1-labels text { paint-order: stroke; stroke: rgba(9, 21, 18, 0.92); stroke-width: 3.2px; stroke-linejoin: round; }
.f1-tl-hex { fill: none; stroke: rgba(226, 194, 126, 0.62); stroke-width: 0.8; stroke-linejoin: round; }
.f1-lg-tri { fill: rgba(205, 232, 224, 0.08); stroke: rgba(205, 232, 224, 0.42); stroke-width: 1; stroke-linejoin: round; }
.f1-lg-s { fill: #07100e; stroke: rgba(236, 232, 220, 0.75); stroke-width: 0.9; }
.f1-lg-s1 { fill: #f3eee2; }
.f1-lg-lobe { fill: none; stroke: #7fe9e2; stroke-opacity: 0.45; stroke-width: 6.6; stroke-linecap: round; }
.f1-lg-lobec { fill: none; stroke: #e9fffc; stroke-opacity: 0.4; stroke-width: 2.4; stroke-linecap: round; }
.f1-lg-closedc { fill: none; stroke: rgba(226, 194, 126, 0.35); stroke-width: 5.4; stroke-linejoin: round; }
.f1-legend svg.f1-lg-v { width: 1.2em; height: 1.05em; }
.f1-note { margin: 0.9cqi 0 0; color: rgba(232, 246, 237, 0.4); font-family: var(--text); font-size: clamp(7.5px, 1.45cqi, 10.5px); font-style: italic; text-align: right; }
.f1-note b { font-weight: 600; font-style: normal; }
/* v3: live readout, exact class bands, magnetic-term inset */
.f1-ro-vc { fill: var(--flux); }
.f1-ro-vf { fill: #f4eddd; }
.f1-ro-u { fill: rgba(232, 246, 237, 0.42); font-family: var(--mono) !important; font-size: 6.6px; letter-spacing: 0.06em; }
.f1-cls-dim .f1-bc { fill: rgba(143, 240, 234, 0.1); }
.f1-cls-dim .f1-b1 { fill: rgba(239, 231, 214, 0.07); }
.f1-cls-dim .f1-b2 { fill: rgba(239, 231, 214, 0.045); }
.f1-cls-dim .f1-b0 { fill: rgba(170, 190, 184, 0.03); }
.f1-cls-lit .f1-bc { fill: rgba(143, 240, 234, 0.4); }
.f1-cls-lit .f1-b1 { fill: rgba(239, 231, 214, 0.3); }
.f1-cls-lit .f1-b2 { fill: rgba(239, 231, 214, 0.15); }
.f1-cls-lit .f1-b0 { fill: rgba(170, 190, 184, 0.08); }
.f1-blc, .f1-bl1, .f1-bl2 { fill: none; stroke-linejoin: round; }
.f1-cls-dim .f1-blc { stroke: rgba(143, 240, 234, 0.28); stroke-width: 0.7; }
.f1-cls-dim .f1-bl1, .f1-cls-dim .f1-bl2 { stroke: rgba(239, 231, 214, 0.14); stroke-width: 0.5; }
.f1-cls-lit .f1-blc { stroke: var(--flux); stroke-width: 1.15; }
.f1-cls-lit .f1-bl1 { stroke: rgba(244, 237, 221, 0.7); stroke-width: 0.7; }
.f1-cls-lit .f1-bl2 { stroke: rgba(244, 237, 221, 0.35); stroke-width: 0.5; }
.f1-pframe { fill: none; stroke: rgba(232, 246, 237, 0.14); stroke-width: 0.6; stroke-dasharray: 1.2 2; }
.f1-bt { font-size: 7.6px; font-style: italic; pointer-events: none; }
.f1-bt-c { fill: #e6fffb; }
.f1-bt-f { fill: #fbf6ea; }
.f1-bt-s { fill: rgba(251, 246, 234, 0.72); font-size: 6.2px; }
.f1-ph-pdot { fill: var(--flux); stroke: #07100e; stroke-width: 0.8; }
.f1-plaq-c2 { fill: rgba(226, 194, 126, 0.62); font-size: 7.4px; font-style: italic; }
.f1-kin-h { fill: var(--gold); font-family: var(--mono) !important; font-size: 6.6px; letter-spacing: 0.18em; }
.f1-kin-hm { fill: var(--gold); font-size: 9px; font-style: italic; }
.f1-kin-s { fill: rgba(232, 246, 237, 0.52); font-size: 7.6px; font-style: italic; }
.f1-kin-ax { fill: none; stroke: rgba(232, 246, 237, 0.28); stroke-width: 0.6; }
.f1-kin-half { fill: none; stroke: rgba(232, 246, 237, 0.14); stroke-width: 0.5; stroke-dasharray: 1 1.8; }
.f1-kin-n { fill: rgba(232, 246, 237, 0.48); font-family: var(--mono) !important; font-size: 6.2px; }
.f1-kin-m { fill: rgba(232, 246, 237, 0.55); font-size: 7.6px; font-style: italic; }
.f1-kin-k0 { fill: none; stroke: var(--flux); stroke-width: 1; stroke-linejoin: round; }
.f1-kin-k0-d { fill: var(--flux); }
.f1-kin-k2 { fill: none; stroke: var(--gold); stroke-width: 1; stroke-linejoin: round; }
.f1-kin-k2-d.is-e { fill: var(--gold); }
.f1-kin-k2-d.is-p { fill: #07100e; stroke: var(--gold); stroke-width: 0.9; }
.f1-kin-k4 { fill: none; stroke: rgba(226, 194, 126, 0.55); stroke-width: 0.8; stroke-dasharray: 2 1.6; }
.f1-kin-k0.is-switch, .f1-kin-k2.is-switch { stroke-dasharray: 1.6 1.6; opacity: 0.8; }
.f1-kin-k4-d { fill: #07100e; stroke: rgba(226, 194, 126, 0.6); stroke-width: 0.8; }
.f1-kin-l { font-size: 7.4px; font-style: italic; }
.f1-kin-l0 { fill: var(--flux); }
.f1-kin-l2 { fill: var(--gold); }
.f1-kin-l4 { fill: rgba(226, 194, 126, 0.7); }
.f1-kin-mk { fill: none; stroke: rgba(244, 237, 221, 0.6); stroke-width: 0.7; stroke-dasharray: 1.2 1.6; }
.f1-kin-t { fill: rgba(232, 246, 237, 0.5); font-size: 7px; font-style: italic; }

.f1-ham { display: flex; align-items: flex-start; justify-content: space-between; gap: 0.5em; margin: 1.6cqi 0 0;
  padding-top: 1.6cqi; border-top: 1px solid rgba(220, 245, 231, 0.09); color: #e8f1ec; font-family: var(--math);
  font-size: clamp(8.5px, 2.12cqi, 14px); line-height: 1.2; white-space: nowrap; }
.f1-ham-h { padding-right: 0.1em; }
.f1-term, .f1-ham-h { display: grid; grid-template-rows: 2.15em auto; justify-items: center; align-items: center; }
.f1-term small { margin-top: 0.55em; padding-top: 0.4em; border-top: 1px solid currentColor; font-family: var(--mono);
  font-size: 0.5em; letter-spacing: 0.16em; text-transform: uppercase; opacity: 0.62; }
.f1-term-m { color: var(--ivory); }
.f1-term-e { color: var(--flux); }
.f1-term-b { color: var(--gold); }
.f1-term-c { color: rgba(232, 246, 237, 0.45); }
.f1-legend { display: flex; flex-wrap: nowrap; justify-content: space-between; gap: 0.8em; margin: 1.7cqi 0 0; padding: 0;
  list-style: none; color: rgba(232, 246, 237, 0.56); font-family: var(--text); font-size: clamp(8px, 1.7cqi, 12px); white-space: nowrap; }
.f1-legend li { display: flex; align-items: center; gap: 0.45em; }
.f1-legend svg { width: 2.1em; height: 0.95em; flex: none; }
.f1-legend svg.f1-lg-hex { width: 1.15em; height: 1.05em; }
.f1-lg-site { fill: none; stroke: rgba(236, 232, 220, 0.75); stroke-width: 1; }
.f1-lg-q { fill: var(--ivory); }
.f1-lg-r { fill: var(--flux); }
.f1-lg-open { stroke: var(--flux); stroke-width: 2.2; stroke-linecap: round; }
.f1-lg-closed { fill: none; stroke: var(--gold); stroke-width: 2; stroke-linejoin: round; }


/* ---------- Hero, elevated ---------- */
.hero {
  background:
    radial-gradient(110% 80% at 80% 14%, rgba(64, 158, 138, 0.13), transparent 56%),
    radial-gradient(70% 55% at 6% 104%, rgba(226, 194, 126, 0.045), transparent 62%),
    linear-gradient(160deg, #050c0a 0%, #0a1512 54%, #060d0b 100%);
}
.hero::before {
  /* grain: plain alpha at .014 matches the former overlay blend at .075 on this dark ground (mean difference 0.02/255),
     without making every frame re-blend the whole hero backdrop when something beneath it moves */
  position: absolute; inset: 0; z-index: 1; pointer-events: none; content: ""; opacity: 0.014;
  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='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .6 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.hero::after { opacity: 0.16; }
.lattice-canvas { opacity: 0.38; }

.wordmark { gap: 14px; }
.wordmark-mark { width: 38px; height: 38px; border-color: rgba(239, 231, 214, 0.32); color: var(--ivory);
  font-family: var(--display); font-size: 1.02rem; font-style: italic; font-weight: 600; letter-spacing: 0.03em; }
.wordmark-text { color: #f1ece1; font-size: 1.16rem; font-weight: 600; letter-spacing: 0.015em; }
.site-nav { gap: 34px; }
.site-nav a { font-size: 0.66rem; letter-spacing: 0.18em; text-transform: uppercase; opacity: 0.74; }
.site-nav .nav-cta { padding: 11px 17px; border-color: rgba(239, 231, 214, 0.28); }
.site-nav .nav-cta:hover, .site-nav .nav-cta:focus-visible { border-color: var(--flux); color: var(--flux); }

.eyebrow { margin-bottom: min(28px, 3.1vh); }
.eyebrow span { background: rgba(239, 231, 214, 0.5); }
.eyebrow strong { color: #f3efe6; font-size: clamp(2.3rem, min(3.9vw, 6.3vh), 3.9rem); letter-spacing: -0.01em; line-height: 0.95; }
.eyebrow small { margin-top: 4px; color: rgba(143, 240, 234, 0.82); font-family: var(--mono); font-size: clamp(0.62rem, 0.74vw, 0.72rem);
  letter-spacing: 0.22em; text-transform: uppercase; }
.hero h1 { color: #f3efe6; font-size: clamp(2.8rem, min(5.25vw, 8.5vh), 5.2rem); letter-spacing: -0.016em; line-height: 0.92; }
.hero h1 em { color: var(--flux); letter-spacing: -0.012em; }
.hero-intro { max-width: 35.5em; margin-top: min(26px, 2.9vh); color: rgba(236, 240, 232, 0.7); font-size: clamp(0.94rem, min(1.1vw, 1.95vh), 1.1rem); line-height: 1.68; }
.hero-actions { gap: 14px; margin-top: min(30px, 3.3vh); }
.button { min-height: 48px; gap: 16px; padding: 14px 22px; font-size: 0.66rem; font-weight: 500; letter-spacing: 0.2em; text-transform: uppercase; }
.button-primary { color: #04110e; background: var(--flux); }
.button-primary:hover, .button-primary:focus-visible { background: #e6fffb; }
.button-ghost { border-color: rgba(239, 231, 214, 0.26); }
.button span[aria-hidden] { font-family: var(--text); font-size: 1rem; letter-spacing: 0; }

.hero-ledger { display: grid; max-width: 36rem; margin: min(28px, 3.1vh) 0 0; padding: 0; grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid rgba(239, 231, 214, 0.12); }
.hero-ledger div { padding: 14px 20px 0 0; margin-right: 20px; border-right: 1px solid rgba(239, 231, 214, 0.08); }
.hero-ledger div:last-child { margin-right: 0; padding-right: 0; border-right: 0; }
.hero-ledger dt { color: rgba(143, 240, 234, 0.62); font-family: var(--mono); font-size: 0.58rem; letter-spacing: 0.22em; text-transform: uppercase; }
.hero-ledger dd { display: flex; align-items: center; gap: 9px; margin: 7px 0 0; color: rgba(236, 240, 232, 0.8); font-size: 0.9rem; line-height: 1.35; }
.hero-ledger a { color: inherit; text-decoration: none; background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat;
  background-color: transparent; padding-bottom: 1px; transition: color 180ms ease; }
.hero-ledger a:hover, .hero-ledger a:focus-visible { color: var(--flux); }
.hero-ledger .signal-dot { width: 6px; height: 6px; flex: none; }

/* hero: a wide column for the figure plates; the copy stays in view while the plates scroll */
@media (min-width: 821px) {
  :root { --shell: min(1320px, calc(100vw - 80px)); }
  .hero-grid { min-height: calc(100svh - 96px); align-items: start; padding-top: 100px; padding-bottom: 64px;
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(36px, 3.6vw, 64px); }
  .hero { overflow: clip; }
  .hero-copy { align-self: start; }
  .hero-theory-visual { max-width: 800px; width: 100%; justify-self: end; }
  .hero h1 { font-size: clamp(2.6rem, 4.3vw, 4.5rem); }
  .eyebrow strong { font-size: clamp(2.2rem, 3.5vw, 3.5rem); }
}
/* figure plates: one-line headers */
@media (min-width: 821px) {
  .diagram-header { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 12px; margin-bottom: 10px; }
  .diagram-eyebrow { width: auto; margin: 0; padding: 3px 7px 2px; border: 1px solid rgba(239, 231, 214, 0.22); }
  .diagram-context::before { content: none; }
  .diagram-context { margin: 0; font-size: 0.84rem; }
  .holography-panel { margin-top: 14px !important; padding-top: 12px !important; }
  .ads-stage { width: 84%; margin: 0 auto; }
}
/* figure plates */
.diagram-eyebrow { color: rgba(239, 231, 214, 0.78); font-size: 0.6rem; letter-spacing: 0.22em; }
.diagram-eyebrow span { margin: 0 0.35em; color: rgba(143, 240, 234, 0.6); }
.diagram-header h3 { color: #f1ece1; font-size: clamp(1.4rem, 1.85vw, 1.85rem); letter-spacing: -0.005em; }
.diagram-context { color: rgba(214, 228, 220, 0.62); font-style: italic; }
@media (min-width: 821px) {
  .holography-panel { margin-top: 20px; padding-top: 16px; border-top: 1px solid rgba(239, 231, 214, 0.08); }
}
.ads-stage svg { position: relative; display: block; }
.diagram-formula { color: #ecf3ee; }

.js body:not([data-view="home"]) .wordmark-text { color: var(--ink); }

/* narrow figure columns (short laptop screens): keep each figure header on one line */
.hero-theory-visual { container-type: inline-size; }
@media (min-width: 821px) {
  @container (max-width: 500px) {
    .diagram-header { gap: 2px 9px; }
    .diagram-header h3 { font-size: 1.2rem; }
    .diagram-context { font-size: 0.72rem; }
  }
}
/* narrow figure columns: the legend wraps into two rows */
@container (max-width: 520px) {
  .f1-legend { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); justify-content: start; gap: 0.4em 1.4em; }
}
/* Fig. 1 on narrow screens: declutter the lattice, wrap the Hamiltonian and legend */
@media (max-width: 820px) {
  @container (max-width: 560px) {
    .f1-lid, .f1-vid { display: none; }
    .f1-ch { font-size: 15px; }
    .f1-ro-k { font-size: 11.5px; } .f1-ro-v { font-size: 10px; } .f1-ro-u { display: none; }
    .f1-cap { font-size: 9px; letter-spacing: 0.1em; } .f1-cap-m { font-size: 11px; } .f1-cap2 { font-size: 10.5px; }
    .f1-tl-num { font-size: 10px; } .f1-mustar-t { font-size: 10.5px; } .f1-tl-mu { font-size: 14px; }
    .f1-play { transform-box: fill-box; transform-origin: center; transform: scale(1.7); }
    .f1-ph-ring { r: 5.6; }
    .f1-ham { flex-wrap: wrap; justify-content: flex-start; gap: 0.7em 0.9em; padding-left: 2.1em; font-size: 11.5px; }
    .f1-ham-h { margin-left: -2.1em; }
    .f1-legend { display: grid; grid-template-columns: 1fr 1fr; gap: 0.7em 1em; font-size: 10.5px; white-space: normal; }
    .f1-legend li:first-child { grid-column: 1 / -1; }
    .f1-co-t { font-size: 9.5px; letter-spacing: 0.1em; } .f1-co-d { display: none; } .f1-co-m { display: inline; }
    .f1-plaq-t { font-size: 18px; } .f1-plaq-c { font-size: 9.5px; letter-spacing: 0.1em; } .f1-plaq-s { font-size: 10.5px; }
    .f1-srcq { font-size: 12px; }
    .f1-gs { font-size: 7.5px; }
    .f1-note { font-size: 9.5px; }
  }
}

@media (max-width: 820px) {
  .eyebrow small { letter-spacing: 0.14em; }
  .hero-ledger { grid-template-columns: 1fr; }
  .hero-ledger div { margin-right: 0; padding: 12px 0 0; border-right: 0; }
}

/* generated choreography */


@media (prefers-reduced-motion: reduce) {
  .f1-ph-halo { animation: none; opacity: 0; }
}
/* ---------- v8: every card carries an ink thumbnail of its figure plate ---------- */
.card-fig { position: absolute; right: clamp(26px, 3.2vw, 44px); bottom: clamp(22px, 2.8vw, 38px); display: flex; flex-direction: column;
  align-items: flex-end; gap: 5px; pointer-events: none; }
.card-fig svg { display: block; width: 118px; height: 63px; overflow: visible; opacity: 0.78; transition: opacity 220ms ease, transform 220ms var(--ease); }
.profile-card:hover .card-fig svg, .profile-card:focus-visible .card-fig svg, .project:hover .card-fig svg, .project:focus-within .card-fig svg { opacity: 1; transform: translateY(-2px); }
.card-fig-n { color: #7b8983; font-family: var(--mono); font-size: 0.56rem; letter-spacing: 0.2em; text-transform: uppercase; }
.cf-ink { fill: none; stroke: rgba(28, 98, 94, 0.42); stroke-width: 1; stroke-linejoin: round; }
.cf-dash { stroke-dasharray: 2.6 2.2; }
.cf-key { fill: none; stroke: #1f8f89; stroke-width: 2.1; stroke-linecap: round; stroke-linejoin: round; }
.cf-key-l { fill: none; stroke: #1f8f89; stroke-width: 1.2; stroke-dasharray: 3 2.2; }
.cf-lev { stroke: #1f8f89; stroke-width: 1.3; }
.cf-gold { fill: none; stroke: #b08a3e; stroke-width: 1.1; stroke-dasharray: 3 2.2; }
.cf-gold-l { fill: none; stroke: #b08a3e; stroke-width: 1.1; stroke-dasharray: 3 2.2; }
.cf-dot { fill: #f7f4ec; stroke: #2a6f6b; stroke-width: 1; }
.cf-src { fill: #f7f4ec; stroke: #1b3e3b; stroke-width: 1.4; }
.cf-core { fill: #f7f4ec; stroke: #1f8f89; stroke-width: 1.2; }
.cf-trk { stroke: #1b3e3b; stroke-width: 1.3; stroke-dasharray: 3 2; }
.cf-tipk { fill: #1f8f89; }
.project-body, .profile-card { padding-bottom: max(clamp(32px, 4vw, 52px), 104px); }
@media (max-width: 560px) { .card-fig svg { width: 96px; height: 51px; } }
/* ---------- v8: Fig. 2 legend in the language of Fig. 1 ---------- */
.ads-legend { justify-content: center; gap: 0.5em 1.4em; margin-top: 1.4cqi; flex-wrap: wrap; }
.ads-lg-plane { fill: rgba(143, 213, 192, 0.06); stroke: rgba(122, 175, 158, 0.75); stroke-width: 1; }
.ads-lg-loop { fill: none; stroke: #d5f8e9; stroke-width: 1.5; }
.ads-lg-mesh { fill: none; stroke: rgba(150, 216, 197, 0.85); stroke-width: 1.1; }
.ads-lg-back { stroke-opacity: 0.4; stroke-dasharray: 2 2.4; }
.ads-lg-rad { fill: none; stroke: #a0c6b7; stroke-width: 1.1; }
.holography-caption .f1-note { text-align: center; }
/* ---------- v8: figure plates (Fig. 3-10) -- the anatomy and vocabulary of Fig. 1 in every dialog ---------- */
.plate { position: relative; margin: 0; padding: 16px 20px 14px; border: 1px solid rgba(239, 231, 214, 0.075);
  background: linear-gradient(180deg, rgba(11, 26, 23, 0.74), rgba(7, 16, 14, 0.52)); container-type: inline-size; }
.plate::before { --c: rgba(226, 194, 126, 0.6); position: absolute; inset: -1px; pointer-events: none; content: "";
  background:
    linear-gradient(var(--c), var(--c)) left top / 13px 1px no-repeat, linear-gradient(var(--c), var(--c)) left top / 1px 13px no-repeat,
    linear-gradient(var(--c), var(--c)) right top / 13px 1px no-repeat, linear-gradient(var(--c), var(--c)) right top / 1px 13px no-repeat,
    linear-gradient(var(--c), var(--c)) left bottom / 13px 1px no-repeat, linear-gradient(var(--c), var(--c)) left bottom / 1px 13px no-repeat,
    linear-gradient(var(--c), var(--c)) right bottom / 13px 1px no-repeat, linear-gradient(var(--c), var(--c)) right bottom / 1px 13px no-repeat; }
.plate .diagram-header { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 12px; margin: 0 0 8px; padding-bottom: 10px;
  border-bottom: 1px solid rgba(239, 231, 214, 0.06); }
.plate .diagram-eyebrow { width: auto; margin: 0; padding: 3px 7px 2px; border: 1px solid rgba(239, 231, 214, 0.22); font-size: 0.6rem; }
.plate .diagram-header h3 { margin: 0; font-size: clamp(1.12rem, 1.5vw, 1.42rem); }
.plate .diagram-context { margin: 0; font-size: 0.82rem; }
.plate .diagram-context::before { content: none; }
.plate-stage { position: relative; }
.plate-svg .plate-stage svg { position: static; display: block; width: 100%; height: auto; overflow: visible; }
.plate-legend { display: flex; flex-wrap: wrap; gap: 0.45em 1.25em; margin: 10px 0 0; padding: 10px 0 0; border-top: 1px solid rgba(220, 245, 231, 0.07);
  list-style: none; color: rgba(232, 246, 237, 0.56); font-family: var(--text); font-size: 0.74rem; line-height: 1.2; }
.plate-legend li { display: flex; align-items: center; gap: 0.45em; }
.plate-legend svg { width: 2.1em; height: 0.95em; flex: none; overflow: visible; }
.plate-legend svg.pl-lg-v { width: 1.2em; height: 1.05em; }
.plate-legend svg.pl-lg-sq { width: 1em; height: 1em; }
.plate-legend sub { font-size: 72%; }
.plate-note { margin: 8px 0 0; color: rgba(232, 246, 237, 0.4); font-family: var(--text); font-size: 0.7rem; font-style: italic; line-height: 1.4; text-align: right; }
.plate-note b { font-weight: 600; font-style: normal; }
.plate.schematic { width: 100%; }
.plate.schematic .plate-legend svg { position: static; inset: auto; display: block; width: 2.1em; height: 0.95em; }
.plate.schematic .plate-legend svg.pl-lg-sq { width: 1em; height: 1em; }
.plate.schematic figcaption.sr-only { margin: 0; }
/* drawing vocabulary */
.pl-svg text { font-family: var(--math); }
.pl-t { fill: rgba(236, 244, 239, 0.88); font-size: 11.5px; }
.pl-ts { fill: rgba(232, 246, 237, 0.56); font-size: 9.6px; }
.pl-ti { font-style: italic; }
.pl-big { font-size: 15px; }
.pl-sub { font-size: 72%; }
.pl-cap { fill: rgba(143, 240, 234, 0.86); font-family: var(--mono) !important; font-size: 7px; letter-spacing: 0.16em; }
.pl-caps { fill: rgba(143, 240, 234, 0.6); font-size: 8.4px; font-style: italic; }
.pl-panel { fill: rgba(239, 231, 214, 0.72); font-family: var(--mono) !important; font-size: 7.4px; letter-spacing: 0.06em; }
.pl-lead { fill: none; stroke: rgba(143, 240, 234, 0.42); stroke-width: 0.6; }
.pl-ldot { fill: rgba(143, 240, 234, 0.85); }
.pl-rule { stroke: rgba(220, 245, 231, 0.09); stroke-width: 0.8; }
.pl-ax { fill: none; stroke: rgba(232, 246, 237, 0.34); stroke-width: 0.8; }
.pl-half { fill: none; stroke: rgba(232, 246, 237, 0.18); stroke-width: 0.6; stroke-dasharray: 1.4 2; }
.pl-num-t { fill: rgba(232, 246, 237, 0.5); font-family: var(--mono) !important; font-size: 7px; }
.pl-curve { fill: none; stroke: #79e3e1; stroke-width: 1.4; stroke-linejoin: round; stroke-linecap: round; }
.pl-curve-iv { fill: none; stroke: rgba(244, 237, 221, 0.8); stroke-width: 1.1; stroke-linejoin: round; }
.pl-area { fill: rgba(121, 227, 225, 0.09); }
.pl-tq { fill: #8ff0ea; }
.pl-tiv { fill: rgba(244, 237, 221, 0.88); }
.pl-gc { fill: none; stroke: rgba(226, 194, 126, 0.85); stroke-width: 0.85; stroke-dasharray: 3.3 2.5; stroke-linecap: round; }
.pl-olpath { fill: none; stroke-linejoin: round; pointer-events: none; }
.pl-level { stroke: rgba(121, 227, 225, 0.5); stroke-width: 1; }
.pl-level-d { stroke: #79e3e1; stroke-width: 1.25; }
.pl-tip { fill: #79e3e1; }
.pl-tip-iv { fill: rgba(244, 237, 221, 0.88); }
.pl-arrow { fill: none; stroke: rgba(121, 227, 225, 0.62); stroke-width: 1; }
.pl-arrow-iv { fill: none; stroke: rgba(244, 237, 221, 0.72); stroke-width: 1; }
.pl-num-c, .pl-step-c { fill: #0a1714; stroke: rgba(239, 231, 214, 0.55); stroke-width: 0.75; }
.pl-num { fill: rgba(239, 231, 214, 0.92); font-family: var(--mono) !important; font-size: 6.6px; }
.pl-step-c { stroke: rgba(121, 227, 225, 0.62); }
.pl-step-end { stroke: rgba(226, 194, 126, 0.9); }
.pl-step { fill: #8ff0ea; font-family: var(--mono) !important; font-size: 8px; }
.pl-dotc { fill: #f3eee2; }
.pl-site { fill: #07100e; stroke: rgba(236, 232, 220, 0.66); stroke-width: 0.85; }
.pl-spin { fill: none; stroke: #f3eee2; stroke-width: 1.2; }
.pl-bond { stroke: rgba(121, 227, 225, 0.78); stroke-linecap: round; }
.pl-bond-s { stroke-width: 2.4; }
.pl-bond-w { stroke-width: 1.1; }
.pl-bond2 { stroke: rgba(205, 232, 224, 0.42); stroke-width: 0.9; stroke-dasharray: 3 2.6; }
.pl-q { fill: #e2c27e; font-size: 13px; font-style: italic; }
.pl-box { fill: rgba(13, 29, 24, 0.9); stroke: rgba(220, 245, 231, 0.24); stroke-width: 0.9; }
.pl-box-strong { stroke: rgba(121, 227, 225, 0.5); }
.pl-grid { stroke: rgba(121, 227, 225, 0.1); stroke-width: 0.7; }
.pl-track { stroke: rgba(244, 237, 221, 0.9); stroke-width: 1.5; stroke-linecap: round; }
.pl-track-in { stroke-dasharray: 3 2.4; stroke-opacity: 0.6; }
.pl-photon { stroke: rgba(232, 246, 237, 0.5); stroke-width: 0.9; stroke-dasharray: 1.6 2.2; }
.pl-cathode { stroke: rgba(226, 194, 126, 0.85); stroke-width: 1.6; stroke-linecap: round; }
.pl-signal { fill: none; stroke: rgba(121, 227, 225, 0.66); stroke-width: 1.1; }
.pl-signal-thin { fill: none; stroke: rgba(121, 227, 225, 0.55); stroke-width: 0.9; stroke-linejoin: round; }
.pl-wave { fill: none; stroke: rgba(121, 227, 225, 0.6); stroke-width: 1; }
.pl-halo { fill: rgba(143, 240, 234, 0.16); }
.pl-tri-big { stroke-width: 0.9; }
.pl-labels text, text.pl-hl, .pl-svg .f1-srcl, .pl-svg .f1-srcq { paint-order: stroke; stroke: rgba(9, 21, 18, 0.92); stroke-width: 3.2px; stroke-linejoin: round; }
/* legend icons */
.pl-lg-ol { fill: none; stroke: rgba(143, 240, 234, 0.85); stroke-width: 1.1; stroke-dasharray: 3 2.2; }
.pl-lg-gc { fill: none; stroke: rgba(226, 194, 126, 0.9); stroke-width: 1.1; stroke-dasharray: 3 2.2; }
.pl-lg-curve { fill: none; stroke: #79e3e1; stroke-width: 1.6; }
.pl-lg-curve-iv { fill: none; stroke: rgba(244, 237, 221, 0.85); stroke-width: 1.4; }
.pl-lg-level { stroke: rgba(121, 227, 225, 0.6); stroke-width: 1.3; }
.pl-lg-doublet { stroke: #79e3e1; stroke-width: 1.3; }
.pl-lg-area { fill: rgba(121, 227, 225, 0.18); stroke: #79e3e1; stroke-width: 1; }
.pl-lg-site { fill: #07100e; stroke: rgba(236, 232, 220, 0.75); stroke-width: 1.2; }
.pl-lg-bond { stroke: rgba(121, 227, 225, 0.85); stroke-width: 2.4; stroke-linecap: round; }
.pl-lg-bond2 { stroke: rgba(205, 232, 224, 0.55); stroke-width: 1.2; stroke-dasharray: 3 2.4; }
.pl-lg-track { stroke: rgba(244, 237, 221, 0.9); stroke-width: 1.8; stroke-linecap: round; }
.pl-lg-photon { stroke: rgba(232, 246, 237, 0.65); stroke-width: 1.2; stroke-dasharray: 1.8 2.2; }
.pl-lg-signal, .pl-lg-flow { fill: none; stroke: rgba(121, 227, 225, 0.8); stroke-width: 1.3; }
.pl-lg-est { stroke: rgba(121, 227, 225, 0.7); stroke-width: 1.2; } .pl-lg-est-d { fill: #79e3e1; }
.pl-lg-dev { stroke: rgba(226, 194, 126, 0.75); stroke-width: 1.1; stroke-dasharray: 3 2.4; } .pl-lg-dev-d { fill: #e2c27e; }
.pl-lg-base { stroke: rgba(239, 231, 214, 0.5); stroke-width: 1.1; stroke-dasharray: 1.4 2.4; } .pl-lg-base-d { fill: rgba(239, 231, 214, 0.85); }
/* the profile maps: nodes as annotations, coloured by maturity, on the plate ground */
.plate.schematic .map-core, .plate.schematic .map-node { --cat: rgba(121, 227, 225, 0.7); border: 0; border-top: 1px solid var(--cat);
  background: #0a1815; box-shadow: 0 0 0 5px #0a1815; backdrop-filter: none; }
.plate.schematic .map-node { padding: 9px 11px 10px; }
.plate.schematic .map-core { border: 1px solid rgba(121, 227, 225, 0.5); box-shadow: 0 0 0 5px #0a1815, 0 0 30px rgba(121, 227, 225, 0.1); }
.plate.schematic .map-node span { color: rgba(143, 240, 234, 0.9); }
.plate.schematic .map-dev { --cat: rgba(226, 194, 126, 0.8); }
.plate.schematic .map-dev span { color: #e2c27e; }
.plate.schematic .map-base { --cat: rgba(239, 231, 214, 0.55); }
.plate.schematic .map-base span { color: rgba(239, 231, 214, 0.78); }
.plate.schematic .map-core strong, .plate.schematic .map-node strong { color: #eef4ef; }
.sch-edge-est { stroke: rgba(121, 227, 225, 0.5); stroke-dasharray: none; stroke-width: 1; }
.sch-edge-dev { stroke: rgba(226, 194, 126, 0.55); stroke-dasharray: 3.3 2.5; stroke-width: 0.95; }
.sch-edge-base { stroke: rgba(239, 231, 214, 0.32); stroke-dasharray: 1.4 2.6; stroke-width: 1; }
.sch-ring-est { fill: none; stroke: rgba(143, 240, 234, 0.55); stroke-width: 1; stroke-dasharray: 3.3 2.5; stroke-linecap: round; }
.sch-ring-dev { fill: none; stroke: rgba(226, 194, 126, 0.55); stroke-width: 1; stroke-dasharray: 3.3 2.5; stroke-linecap: round; }
.sch-ring-label-est { fill: rgba(143, 240, 234, 0.7); font-family: var(--mono); font-size: 8px; letter-spacing: 0.22em; }
.sch-ring-label-dev { fill: rgba(226, 194, 126, 0.75); font-family: var(--mono); font-size: 8px; letter-spacing: 0.22em; }
.plate .sch-hex { stroke: rgba(121, 227, 225, 0.075); }
.plate .sch-tip { fill: #79e3e1; }
.plate .sch-tip-gold { fill: #e2c27e; }
/* narrow plates: the drawings keep a legible size and scroll sideways */
@container (max-width: 520px) {
  .plate-svg .plate-stage { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .plate-svg .plate-stage svg { width: 560px; max-width: none; }
  .plate { padding: 12px 12px 10px; }
  .plate-legend { font-size: 0.7rem; gap: 0.4em 1em; }
}
@media (max-width: 820px) { .plate { margin-top: 6px; } }
/* ===== END DESIGN SYSTEM v4 ===== */
