/* ============================================================
   RAM LABS: Design System v3
   Editorial research-lab aesthetic. Light-first, auto dark.
   ============================================================ */

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  /* LIGHT (default) */
  --bg: #FBFAF7;
  --bg-2: #F3F1EC;
  --surface: #FFFFFF;
  --surface-2: #F7F5F1;
  --line: rgba(16,18,20,0.10);
  --line-soft: rgba(16,18,20,0.06);
  --line-strong: rgba(16,18,20,0.22);
  --text: #101214;
  --text-2: #4A5057;
  --text-3: #8A9097;
  --accent: #C9501A;
  --accent-2: #E8703A;
  --glow: rgba(201,80,26,0.12);
  --btn-ink-bg: #101214;
  --btn-ink-text: #FBFAF7;
  --card-shadow: 0 1px 2px rgba(16,18,20,0.04);
  --card-shadow-hover: 0 18px 48px rgba(16,18,20,0.10);
  --header-bg: #FFFFFF;
  --footer-bg: #F3F1EC;
  --input-line: rgba(16,18,20,0.25);
  --radius: 14px;
  --radius-lg: 22px;
  --ease: cubic-bezier(.22,.61,.36,1);
  --font-display: 'Archivo', 'Inter', sans-serif;
  --font-hero: 'Manrope', 'Archivo', sans-serif;
  --font-body: 'Inter', sans-serif;
  --font-mono: 'IBM Plex Mono', monospace;
}

html[data-theme="dark"] {
  --bg: #0B0C0E;
  --bg-2: #111316;
  --surface: #15181C;
  --surface-2: #1A1E23;
  --line: rgba(255,255,255,0.10);
  --line-soft: rgba(255,255,255,0.06);
  --line-strong: rgba(255,255,255,0.24);
  --text: #F4F5F6;
  --text-2: #A4ABB3;
  --text-3: #62686F;
  --accent: #E8703A;
  --accent-2: #E9B872;
  --glow: rgba(232,112,58,0.16);
  --btn-ink-bg: #F4F5F6;
  --btn-ink-text: #0B0C0E;
  --card-shadow: 0 1px 2px rgba(0,0,0,0.3);
  --card-shadow-hover: 0 18px 48px rgba(0,0,0,0.5);
  --header-bg: rgba(11,12,14,0.88);
  --footer-bg: #08090B;
  --input-line: rgba(255,255,255,0.24);
}

/* Legacy aliases */
:root, html[data-theme="dark"] {
  --bg-primary: var(--bg);
  --bg-secondary: var(--bg-2);
  --bg-surface: var(--surface);
  --bg-elevated: var(--surface-2);
  --border-subtle: var(--line);
  --border-hover: var(--line-strong);
  --text-primary: var(--text);
  --text-secondary: var(--text-2);
  --text-muted: var(--text-3);
  --accent-gold: var(--accent-2);
  --accent-grad: linear-gradient(120deg, var(--accent) 0%, var(--accent-2) 100%);
  --accent-gradient: var(--accent-grad);
  --paper: var(--bg);
  --paper-2: var(--bg-2);
  --ink: var(--text);
  --ink-2: var(--text-2);
  --ink-3: var(--text-3);
  --line-dark: var(--line-soft);
  --dark: var(--bg);
  --dark-2: var(--bg-2);
  --font-heading: var(--font-display);
}

html {
  transition: none;
}

body {
  background: var(--bg);
  color: var(--text-2);
  font: 400 16px/1.7 var(--font-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  /* `clip` prevents horizontal bleed without creating the scroll container
     that breaks sticky navigation in some mobile browsers. */
  overflow-x: hidden;
  overflow-x: clip;
  transition: background 0.35s ease, color 0.35s ease;
}

::selection {
  background: var(--accent);
  color: #fff;
}

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

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

/* CONTAINER */
.container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 32px;
}

@media (min-width: 1440px) {
  .container {
    max-width: 1360px;
  }
}

/* TYPOGRAPHY */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: -0.025em;
  line-height: 1.1;
  color: var(--text);
}

.display-1 {
  font-family: var(--font-display);
  font-size: clamp(2.9rem, 6.4vw, 5.4rem);
  font-weight: 500;
  line-height: 1.04;
  letter-spacing: -0.035em;
}

.display-2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -0.028em;
}

.display-3 {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.serif-accent {
  font-family: var(--font-display);
  font-weight: 500;
}

.gradient-text {
  color: var(--accent);
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.lede {
  font-size: clamp(1.05rem, 1.5vw, 1.2rem);
  line-height: 1.7;
  color: var(--text-2);
}

.muted {
  color: var(--text-3);
}

.mono {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* BUTTONS */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 30px;
  border-radius: 100px;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  transition: all 0.3s var(--ease);
  border: 1px solid transparent;
  white-space: nowrap;
  text-transform: uppercase;
  cursor: pointer;
}

.btn .arrow {
  transition: transform 0.25s;
}

.btn:hover .arrow {
  transform: translateX(4px);
}

.btn-ink {
  background: var(--btn-ink-bg);
  color: var(--btn-ink-text);
  border: none;
}

.btn-ink:hover {
  background: var(--accent);
  color: #fff;
  transform: translateY(-1px);
}

.btn-outline {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--line-strong);
}

.btn-outline:hover {
  background: var(--surface);
  border-color: var(--text);
}

.btn-paper {
  background: var(--surface-2);
  color: var(--text);
}

.btn-paper:hover {
  background: var(--bg-2);
}

.link-arrow {
  display: inline-flex;
  font-weight: 500;
  color: var(--text);
  gap: 8px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-family: var(--font-mono);
  font-size: 12px;
  cursor: pointer;
  transition: color 0.3s ease;
}

.link-arrow:hover {
  color: var(--accent);
}

/* HEADER */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: var(--header-bg);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
  border-bottom: 1px solid var(--line-soft);
  transition: transform 0.4s var(--ease), background 0.35s ease;
}

.site-header.hidden {
  transform: translateY(-100%);
}

.header-inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 16px 32px;
  display: flex;
  align-items: center;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
}

.brand-logo {
  height: 24px;
  width: auto;
  filter: brightness(0) saturate(100%) invert(41%) sepia(89%) saturate(1569%) hue-rotate(352deg) brightness(89%) contrast(92%);
}

.logo-dark { display: block; }
.logo-light { display: none; }
html[data-theme="dark"] .logo-dark { display: none; }
html[data-theme="dark"] .logo-light { display: block; }

.brand-word { display: none; }
.brand-tag { display: none; }

.site-nav {
  display: flex;
  align-items: center;
  gap: 0;
  margin-left: auto;
}

.site-nav a {
  font-family: var(--font-body);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  padding: 8px 15px;
  color: var(--text-2);
  transition: color 0.2s;
}

.site-nav a:hover,
.site-nav a.active {
  color: var(--text);
}

.header-cta {
  padding: 11px 22px;
  font-size: 11.5px;
  letter-spacing: 0.1em;
}

/* THEME TOGGLE */
.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--text-2);
  cursor: pointer;
  transition: all 0.25s var(--ease);
  flex-shrink: 0;
}

.theme-toggle:hover {
  color: var(--text);
  border-color: var(--line-strong);
}

.theme-toggle .icon-sun { display: none; }
.theme-toggle .icon-moon { display: block; }
html[data-theme="dark"] .theme-toggle .icon-sun { display: block; }
html[data-theme="dark"] .theme-toggle .icon-moon { display: none; }

.nav-toggle {
  display: none;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text);
  background: none;
  border: none;
  cursor: pointer;
}

/* MOBILE NAV */
#mobileNav { display: none; }

#mobileNav.open {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--bg);
  z-index: 99;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 30px;
}

#mobileNav.open a {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text);
}

/* HERO: clean editorial statement */
.hero {
  padding: 140px 0 100px;
  position: relative;
  overflow: hidden;
  min-height: 78vh;
  display: flex;
  align-items: flex-end;
  border-bottom: 1px solid var(--line-soft);
}

.hero-orb { display: none; }

.hero .container {
  position: relative;
  z-index: 1;
  width: 100%;
}

.hero h1 {
  max-width: 1020px;
}

.hero-intro {
  max-width: 620px;
  margin-top: 34px;
}

.hero-actions {
  display: flex;
  gap: 12px;
  margin-top: 44px;
  flex-wrap: wrap;
}

.hero-meta {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  margin-top: 90px;
  border-top: 1px solid var(--line);
}

.hero-meta-item {
  padding: 24px 40px 22px 40px;
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.hero-meta-item:last-child {
  border-right: none;
}

.hero-meta-item .hm-icon {
  color: var(--accent);
  display: inline-flex;
}

.hero-meta-item .num {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.9rem, 3.2vw, 2.7rem);
  letter-spacing: -0.03em;
  color: var(--text);
  display: block;
  line-height: 1;
}

.hero-meta-item .lbl {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-3);
  display: block;
}

/* IMAGE BAND */
.image-band {
  position: relative;
  height: clamp(350px, 55vh, 560px);
  overflow: hidden;
}

.image-band img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.04);
  transition: transform 1.4s var(--ease);
}

.image-band.in img {
  transform: scale(1);
}

.image-band-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 24px 32px;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.4) 55%, transparent 100%);
  color: #fff;
}

/* SECTIONS */
.section {
  padding: 120px 0;
}

.section-sm {
  padding: 80px 0;
}

.section-dark {
  background: var(--bg);
  color: var(--text-2);
}

.section-tint {
  background: var(--bg-2);
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 40px;
  margin-bottom: 64px;
}

.section-head .left {
  max-width: 720px;
}

.section-head .eyebrow {
  margin-bottom: 22px;
}

.section-head p {
  margin-top: 18px;
  max-width: 600px;
}

.portfolio-title > span {
  display: block;
}

/* MANIFESTO & STATS */
.manifesto-eyebrow {
  margin-bottom: clamp(24px, 3vw, 36px);
}

.manifesto-statement {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.7rem, 3.2vw, 2.6rem);
  line-height: 1.28;
  letter-spacing: -0.02em;
  max-width: 1000px;
  color: var(--text);
}

.stats-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 90px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.stat {
  padding: 26px 40px 24px 40px;
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.stat:last-child {
  border-right: none;
}

.stat .st-icon {
  color: var(--accent);
  display: inline-flex;
}

.stat .num {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(2.2rem, 3.8vw, 3rem);
  letter-spacing: -0.03em;
  color: var(--text);
  line-height: 1;
}

.stat .lbl {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-3);
}

/* PROJECT CARDS */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}

.project-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line-soft);
  box-shadow: var(--card-shadow);
  display: flex;
  flex-direction: column;
  transition: transform 0.4s var(--ease), border-color 0.4s var(--ease), box-shadow 0.4s var(--ease);
}

.project-card:hover {
  transform: translateY(-4px);
  border-color: var(--line-strong);
  box-shadow: var(--card-shadow-hover);
}

.pc-media {
  aspect-ratio: 16/9;
  overflow: hidden;
  position: relative;
}

.pc-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ease);
}

.project-card:hover .pc-media img {
  transform: scale(1.04);
}

.pc-body {
  padding: 26px 30px 30px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
  background: var(--surface) !important;
}

.pc-top {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-3);
}

.project-card h3 {
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2.2vw, 1.75rem);
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--text);
  display: flex;
  align-items: baseline;
  justify-content: space-between;
}

.project-card h3 .arrow {
  position: relative;
  display: inline-grid;
  place-items: center;
  flex: 0 0 26px;
  width: 26px;
  height: 26px;
  margin-left: 16px;
  overflow: hidden;
  font-size: 0;
  line-height: 1;
  color: var(--accent);
  transition: transform 0.3s;
}

.project-card h3 .arrow::before,
.project-card h3 .arrow::after {
  content: '';
  position: absolute;
  pointer-events: none;
}

.project-card h3 .arrow::before {
  width: 20px;
  height: 1.5px;
  background: currentColor;
  transform: rotate(-45deg);
}

.project-card h3 .arrow::after {
  top: 3px;
  right: 3px;
  width: 10px;
  height: 10px;
  border-top: 1.5px solid currentColor;
  border-right: 1.5px solid currentColor;
}

@media (hover: hover) and (pointer: fine) {
  .project-card:hover h3 .arrow,
  .project-card:focus-visible h3 .arrow {
    transform: translate(3px, -3px);
  }
}

.pc-tagline {
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-2);
}

.pill {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 6px 13px;
  background: var(--surface-2);
  border: 1px solid var(--line-soft);
  border-radius: 100px;
  color: var(--text-3);
}

.pc-icon {
  display: inline-flex;
  color: var(--text-3);
  transition: color 0.3s ease;
}

.project-card:hover .pc-icon {
  color: var(--accent);
}

/* FEATURE CARD */
.feature-card {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line-soft);
  box-shadow: var(--card-shadow);
  min-height: 480px;
  transition: all 0.4s var(--ease);
}

.feature-card:hover {
  border-color: var(--line-strong);
  box-shadow: var(--card-shadow-hover);
}

.fc-text {
  padding: clamp(36px, 4vw, 60px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 40px;
}

.fc-num {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--text-3);
  text-transform: uppercase;
}

.feature-card h3 {
  font-family: var(--font-display);
  font-size: clamp(2.1rem, 3.6vw, 3.1rem);
  font-weight: 500;
  letter-spacing: -0.03em;
  margin: 22px 0 14px;
  color: var(--text);
}

.fc-tagline {
  font-size: clamp(1.05rem, 1.5vw, 1.25rem);
  color: var(--text);
  font-weight: 500;
  letter-spacing: -0.01em;
}

.fc-desc {
  margin-top: 16px;
  color: var(--text-2);
  max-width: 460px;
  font-size: 15px;
  line-height: 1.7;
}

.fc-media {
  position: relative;
  overflow: hidden;
}

.fc-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ease);
}

.feature-card:hover .fc-media img {
  transform: scale(1.03);
}

/* STEPS LIST */
.steps-list {
  border-top: 1px solid var(--line);
}

.step-row {
  display: grid;
  grid-template-columns: 80px 1fr 1.2fr;
  gap: 36px;
  padding: 40px 0;
  border-bottom: 1px solid var(--line);
  align-items: start;
}

.step-num {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-3);
  padding-top: 6px;
}

.step {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 28px;
  padding: 36px 0;
  border-bottom: 1px solid var(--line);
  align-items: start;
  position: relative;
}

.step:last-child {
  border-bottom: none;
}

.step-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
  color: var(--accent);
}

.step h3,
.step-row h3 {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2vw, 1.6rem);
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--text);
  margin-bottom: 10px;
}

.step p,
.step-desc {
  color: var(--text-2);
  max-width: 560px;
  font-size: 15px;
  line-height: 1.7;
}

/* ABQS PILLARS */
.pillars-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
}

.pillar {
  padding: 40px 26px 44px 0;
  border-right: 1px solid var(--line);
}

.pillar:last-child {
  border-right: none;
}

.p-letter {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(2.6rem, 4.6vw, 3.8rem);
  letter-spacing: -0.03em;
  color: var(--accent);
}

.p-name {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-3);
  display: block;
  margin: 16px 0 14px;
}

.pillar p {
  font-size: 14px;
  color: var(--text-2);
  line-height: 1.65;
}

/* REASON CARDS */
.reason-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.reason-card {
  border: 1px solid var(--line-soft);
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 36px;
  box-shadow: var(--card-shadow);
  transition: border-color 0.3s var(--ease), transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.reason-card:hover {
  border-color: var(--line-strong);
  box-shadow: var(--card-shadow-hover);
  transform: translateY(-3px);
}

.reason-card .rc-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface-2);
  color: var(--accent);
  margin-bottom: 22px;
}

.reason-card h3 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 500;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}

.reason-card p {
  font-size: 14.5px;
  line-height: 1.7;
  color: var(--text-2);
}

/* SPLIT */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(44px, 5vw, 84px);
  align-items: start;
}

.img-frame {
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4/5;
  border: 1px solid var(--line-soft);
}

.img-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.img-frame.wide {
  aspect-ratio: 3/2;
}

/* TIMELINE */
.timeline {
  border-top: 1px solid var(--line);
}

.timeline-item {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 40px;
  padding: 36px 0;
  border-bottom: 1px solid var(--line);
}

.timeline-item .t-era {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  padding-top: 5px;
}

.timeline-item h3 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 500;
  letter-spacing: -0.02em;
  margin-bottom: 10px;
}

.timeline-item p {
  font-size: 15px;
  line-height: 1.7;
  color: var(--text-2);
  max-width: 640px;
}

/* PULL QUOTE */
.pull-quote {
  border-left: 2px solid var(--accent);
  padding-left: 32px;
  margin: 48px 0 0;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.3rem, 2.2vw, 1.7rem);
  line-height: 1.4;
  letter-spacing: -0.015em;
  color: var(--text);
  max-width: 760px;
}

/* CTA BAND */
.cta-band {
  text-align: left;
  padding: 120px 0;
  border-top: 1px solid var(--line-soft);
}

.cta-band h2 {
  max-width: 900px;
  color: var(--text);
}

/* FOOTER */
.site-footer {
  background: var(--footer-bg);
  color: var(--text-2);
  padding: 88px 0 40px;
  border-top: 1px solid var(--line-soft);
  transition: background 0.35s ease;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 64px;
  border-bottom: 1px solid var(--line);
}

.footer-brand .brand-logo {
  height: 22px;
}

.footer-brand p {
  color: var(--text-3);
  font-size: 14px;
  max-width: 320px;
  margin-top: 18px;
  line-height: 1.65;
}

.footer-col h4 {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 22px;
}

.footer-col ul {
  list-style: none;
  padding: 0;
}

.footer-col li {
  margin-bottom: 12px;
}

.footer-col a {
  font-size: 12px;
  color: var(--text-2);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 500;
  transition: color 0.3s;
}

.footer-col a:hover {
  color: var(--text);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding-top: 34px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-3);
}

/* PAGE HERO */
.page-hero {
  padding: 190px 0 70px;
  position: relative;
  overflow: hidden;
}

.page-hero .eyebrow {
  margin-bottom: 30px;
}

.page-hero h1 {
  max-width: 1020px;
}

.page-hero .lede {
  margin-top: 30px;
  max-width: 640px;
}

/* FILTER BAR */
.filter-bar {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 48px;
}

.filter-btn {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 10px 18px;
  border: 1px solid var(--line);
  border-radius: 100px;
  color: var(--text-2);
  transition: all 0.25s;
  background: transparent;
  cursor: pointer;
}

.filter-btn:hover {
  border-color: var(--line-strong);
  color: var(--text);
}

.filter-btn.active {
  background: var(--btn-ink-bg);
  color: var(--btn-ink-text);
  border-color: var(--btn-ink-bg);
}

/* PROJECT DETAIL */
.pd-hero {
  padding: 180px 0 0;
}

.back-link {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-3);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 48px;
  transition: color 0.3s;
}

.back-link:hover {
  color: var(--accent);
}

.pd-head {
  max-width: 960px;
}

.pd-head h1 {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 7vw, 5.4rem);
  font-weight: 500;
  color: var(--text);
  letter-spacing: -0.035em;
}

.pd-tagline {
  font-size: clamp(1.2rem, 2.2vw, 1.7rem);
  font-weight: 500;
  letter-spacing: -0.015em;
  color: var(--text-2);
  margin-top: 22px;
}

.pd-icon {
  width: 60px;
  height: 60px;
  border: 1px solid var(--line);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  background: var(--surface);
}

.pd-meta-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
  margin-top: 60px;
}

.pd-meta-item {
  padding: 20px 34px 18px 34px;
  border-right: 1px solid var(--line);
}

.pd-meta-item:last-child {
  border-right: none;
}

.pd-meta-item .k {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-3);
  display: block;
}

.pd-meta-item .v {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 16px;
  letter-spacing: -0.01em;
  color: var(--text);
  display: block;
  margin-top: 6px;
}

.pd-body {
  padding: 90px 0;
}

.pd-section {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 56px;
  padding: 52px 0;
  border-top: 1px solid var(--line);
}

.pd-section h3 {
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 2.2vw, 1.7rem);
  font-weight: 500;
  letter-spacing: -0.02em;
  margin-bottom: 22px;
  color: var(--text);
}

.pd-section .content p {
  color: var(--text-2);
  margin-bottom: 16px;
  font-size: 15.5px;
  line-height: 1.75;
}

.innovation-list {
  list-style: none;
}

.innovation-list li {
  padding: 18px 0 18px 38px;
  border-bottom: 1px solid var(--line);
  color: var(--text-2);
  font-size: 15px;
  position: relative;
}

.innovation-list li::before {
  content: '';
  width: 7px;
  height: 7px;
  position: absolute;
  left: 2px;
  top: 25px;
  background: var(--accent);
  border-radius: 50%;
}

.pd-image {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line-soft);
}

.pd-image figcaption {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-3);
  padding-top: 14px;
}

.pd-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-top: 1px solid var(--line);
}

.pd-nav a {
  padding: 44px 0;
  transition: opacity 0.2s;
  display: block;
}

.pd-nav a:hover {
  opacity: 0.55;
}

.pd-nav-name {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.3rem, 2.2vw, 1.7rem);
  letter-spacing: -0.02em;
  color: var(--text);
  text-transform: uppercase;
}

.dossier-project-navigation {
  padding-block: clamp(52px, 7vw, 92px);
  border-top: 1px solid var(--line);
  background: var(--surface);
}

.dossier-project-navigation .pd-nav {
  margin: 0;
}

/* CONTACT */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: clamp(44px, 5vw, 84px);
  align-items: start;
}

.contact-item {
  padding: 22px 0;
  border-top: 1px solid var(--line);
}

.contact-item h4 {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-3);
  display: block;
  margin-bottom: 6px;
  font-weight: 500;
}

.contact-item a,
.contact-item p {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 18px;
  letter-spacing: -0.01em;
  color: var(--text);
  display: inline-block;
  transition: color 0.3s;
}

.contact-item a:hover {
  color: var(--accent);
}

.contact-item .k {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-3);
  display: block;
  margin-bottom: 4px;
}

.contact-item .v {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 18px;
  color: var(--text);
  display: inline-block;
  transition: color 0.3s;
}

.contact-item .v:hover {
  color: var(--accent);
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 26px;
}

.form-field label,
.form-group label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-3);
  display: block;
  margin-bottom: 8px;
}

.form-field input,
.form-field textarea,
.form-field select,
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  border: none;
  border-bottom: 1px solid var(--input-line);
  background: transparent;
  font-family: var(--font-body);
  font-size: 16px;
  padding: 12px 0;
  color: var(--text);
  border-radius: 0;
}

.form-field input:focus,
.form-field textarea:focus,
.form-field select:focus,
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-bottom-color: var(--accent);
}

.form-field select option,
.form-group select option {
  background: var(--surface);
  color: var(--text);
}

/* BLOG */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.blog-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line-soft);
  box-shadow: var(--card-shadow);
  display: flex;
  flex-direction: column;
  transition: transform 0.35s var(--ease), border-color 0.35s var(--ease), box-shadow 0.35s var(--ease);
}

.blog-card:hover {
  transform: translateY(-4px);
  border-color: var(--line-strong);
  box-shadow: var(--card-shadow-hover);
}

.blog-card .bc-media {
  aspect-ratio: 16/9;
  overflow: hidden;
}

.blog-card .bc-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ease);
}

.blog-card:hover .bc-media img {
  transform: scale(1.04);
}

.blog-card .bc-body {
  padding: 26px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.blog-card .bc-category {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 10px;
  display: block;
}

.blog-card .bc-title {
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 500;
  letter-spacing: -0.015em;
  color: var(--text);
  line-height: 1.32;
  margin-bottom: 10px;
}

.blog-card .bc-excerpt {
  font-size: 14px;
  color: var(--text-2);
  line-height: 1.65;
}

.blog-card .bc-date {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-3);
  margin-top: auto;
  padding-top: 16px;
  display: block;
}

/* BLOG ARTICLE */
.article-hero {
  padding: 190px 0 40px;
}

.article-meta {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 26px;
}

.article-body {
  max-width: 740px;
  margin: 0 auto;
  padding: 60px 0 90px;
}

.article-body h2 {
  font-family: var(--font-display);
  font-size: 1.7rem;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--text);
  margin: 48px 0 18px;
}

.article-body h3 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 500;
  letter-spacing: -0.015em;
  color: var(--text);
  margin: 36px 0 14px;
}

.article-body p {
  color: var(--text-2);
  margin-bottom: 20px;
  font-size: 16.5px;
  line-height: 1.8;
}

.article-body blockquote {
  border-left: 2px solid var(--accent);
  padding-left: 28px;
  margin: 36px 0;
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: -0.015em;
  font-size: 1.3rem;
  line-height: 1.45;
  color: var(--text);
}

/* LEGAL */
.legal-body {
  max-width: 740px;
}

.legal-body h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  margin: 32px 0 12px;
  font-weight: 500;
  color: var(--text);
}

.legal-body p {
  color: var(--text-2);
  margin-bottom: 14px;
  font-size: 15px;
}

/* REVEAL ANIMATIONS */
.reveal {
  opacity: 1;
  transform: none;
}

html.motion-ready.reveal-ready .reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.65s var(--ease), transform 0.65s var(--ease);
}

html.motion-ready.reveal-ready .reveal.in {
  opacity: 1;
  transform: translateY(0);
}

.reveal-d1 { transition-delay: 0.1s; }
.reveal-d2 { transition-delay: 0.2s; }
.reveal-d3 { transition-delay: 0.3s; }

@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* Project dossier markup bindings.
   Kept last so the long-form page shell wins over legacy project-detail rules. */
.project-dossier .dossier-intro {
  display: block;
  padding: clamp(84px, 9vw, 136px) 0;
  border-bottom: 1px solid var(--dossier-rule, var(--line));
  scroll-margin-top: calc(var(--header-height, 71px) + 70px);
}

.project-dossier .dossier-intro > .container {
  display: block;
}

.dossier-intro-grid {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(320px, 1.1fr);
  gap: clamp(46px, 8vw, 126px);
  align-items: start;
}

.dossier-intro-grid > h2 {
  max-width: 15ch;
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5.2vw, 5rem);
  font-weight: 500;
  letter-spacing: -.055em;
  line-height: .98;
  color: var(--text);
  text-wrap: balance;
}

.dossier-intro-grid > div > p:not(.dossier-lede) {
  max-width: 66ch;
  margin-top: 24px;
  font-size: 1rem;
  line-height: 1.75;
  color: var(--text-2);
}

.dossier-section-head {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(300px, 1.1fr);
  gap: 20px clamp(46px, 8vw, 126px);
  align-items: end;
}

.dossier-section-head > .dossier-kicker {
  grid-column: 1 / -1;
  justify-self: start;
}

.dossier-section-head > .dossier-lede {
  align-self: end;
}

.dossier-section-body {
  margin-top: clamp(42px, 6vw, 76px);
}

.dossier-section-body > p {
  max-width: var(--dossier-reading, 720px);
  margin-left: auto;
  font-size: clamp(1rem, 1.2vw, 1.1rem);
  line-height: 1.78;
  color: var(--text-2);
  text-wrap: pretty;
}

.dossier-section-body > p + p {
  margin-top: 1.25em;
}

.dossier-media-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #101317;
}

.dossier-media-frame > img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .72s var(--ease), filter .45s ease;
}

.dossier-media-frame > img[src$=".svg"] {
  object-fit: contain;
  padding: clamp(20px, 4vw, 54px);
  background: #f4f1ea;
}

html[data-theme="dark"] .dossier-media-frame > img[src$=".svg"] {
  background: #e9e5dc;
}

.dossier-media.motion-media > .dossier-media-frame > img {
  transform: none;
}

.project-dossier .dossier-architecture-item {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  gap: 20px;
  padding-left: 0;
}

.project-dossier .dossier-architecture-item::before {
  display: none;
}

.dossier-architecture-item > span,
.dossier-flow-step > span,
.dossier-module > span {
  display: block;
  font-family: var(--font-mono);
  font-size: 9.5px;
  font-weight: 500;
  letter-spacing: .14em;
  line-height: 1.45;
  text-transform: uppercase;
  color: var(--accent);
}

.project-dossier .dossier-flow {
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
}

.project-dossier .dossier-flow-step:not(:last-child)::after {
  display: none;
}

.dossier-flow-step > span {
  margin-bottom: 26px;
}

.dossier-spec > p {
  grid-column: 2;
  margin-top: -12px;
  font-size: .88rem;
  line-height: 1.6;
  color: var(--text-3);
}

.dossier-module > span {
  margin-bottom: 18px;
}

.project-dossier .dossier-roadmap-item {
  grid-template-columns: minmax(120px, .28fr) minmax(0, 1fr);
}

.dossier-roadmap-item > div:last-child > span {
  display: block;
  margin-bottom: 8px;
  font-family: var(--font-mono);
  font-size: 9.5px;
  font-weight: 500;
  letter-spacing: .12em;
  line-height: 1.5;
  text-transform: uppercase;
  color: var(--text-3);
}

.dossier-callout > span {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: .15em;
  line-height: 1.55;
  text-transform: uppercase;
  color: var(--accent);
}

.dossier-callout > p {
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 2vw, 1.65rem);
  letter-spacing: -.02em;
  line-height: 1.42;
}

.project-dossier .dossier-resource {
  grid-template-columns: minmax(0, 1fr) auto;
}

.dossier-resource > div > h2 {
  max-width: 18ch;
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3.8rem);
  font-weight: 500;
  letter-spacing: -.045em;
  line-height: 1;
  color: var(--text);
}

.dossier-resource > div > p {
  max-width: 66ch;
  margin-top: 18px;
  line-height: 1.7;
  color: var(--text-2);
}

.dossier-connection {
  position: relative;
}

.dossier-connection > span {
  display: block;
  margin-bottom: 18px;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent);
}

.dossier-connection > i {
  position: absolute;
  top: clamp(28px, 3.5vw, 46px);
  right: 4px;
  font-style: normal;
  color: var(--accent);
  transition: transform .3s var(--ease);
}

.dossier-connection:hover > i,
.dossier-connection:focus-visible > i {
  transform: translateX(5px);
}

.dossier-section--resource .pd-nav {
  margin-top: clamp(64px, 8vw, 110px);
}

@media (max-width: 900px) {
  .dossier-intro-grid,
  .dossier-section-head {
    grid-template-columns: 1fr;
  }

  .dossier-section-head > .dossier-kicker {
    grid-column: auto;
  }

  .dossier-section-head > .dossier-lede {
    margin-top: 14px;
  }

  .dossier-section-body > p {
    margin-left: 0;
  }
}

@media (max-width: 680px) {
  .project-dossier .dossier-hero-credit {
    top: 78px;
    right: 20px;
    display: inline-flex;
    max-width: calc(100% - 40px);
    padding: 7px 9px;
    background: rgba(5,7,9,.58);
  }

  .project-dossier .dossier-intro {
    padding-block: 68px;
    scroll-margin-top: 20px;
  }

  .dossier-intro-grid {
    gap: 28px;
  }

  .dossier-intro-grid > h2 {
    font-size: clamp(2.2rem, 11vw, 3.25rem);
  }

  .dossier-section-head {
    gap: 8px;
  }

  .dossier-section-body {
    margin-top: 36px;
  }

  .project-dossier .dossier-architecture-item {
    grid-template-columns: 42px minmax(0, 1fr);
    gap: 14px;
  }

  .project-dossier .dossier-flow {
    grid-template-columns: 1fr;
  }

  .dossier-flow-step {
    border-right: 0;
    border-top: 1px solid var(--dossier-rule, var(--line));
  }

  .dossier-flow-step:first-child {
    border-top: 0;
  }

  .dossier-spec {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .dossier-spec > p {
    grid-column: auto;
    margin-top: 0;
  }

  .project-dossier .dossier-roadmap-item {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .dossier-roadmap-item .dossier-status {
    grid-column: auto;
  }

  .project-dossier .dossier-resource {
    grid-template-columns: 1fr;
  }

  .dossier-resource > .btn {
    justify-self: start;
  }
}

/* ============================================================
   SITE SEARCH
   A restrained command surface shared by every static page.
   ============================================================ */

.site-search-toggle,
.site-search-close {
  appearance: none;
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
}

.site-search-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex: 0 0 auto;
  width: auto;
  min-width: 102px;
  height: 40px;
  padding: 0 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--text-2);
  transition: color 0.22s ease, border-color 0.22s ease, transform 0.3s var(--ease);
}

.site-search-toggle > svg {
  flex: 0 0 auto;
}

.site-search-shortcut {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 20px;
  padding: 2px 6px;
  border: 1px solid var(--line);
  border-radius: 4px;
  color: var(--text-3);
  background: color-mix(in srgb, var(--surface) 60%, transparent);
  font-family: var(--font-mono);
  font-size: 8px;
  font-weight: 500;
  font-style: normal;
  letter-spacing: 0.06em;
  line-height: 1;
  text-transform: uppercase;
  white-space: nowrap;
  transition: color 0.22s ease, border-color 0.22s ease, background 0.22s ease;
}

.site-search-toggle:hover,
.site-search-toggle:focus-visible {
  color: var(--accent);
  border-color: var(--line-strong);
  transform: scale(1.04);
}

.site-header.over-hero .site-search-toggle,
.site-header.nav-open .site-search-toggle {
  color: rgba(255, 255, 255, 0.84);
  border-color: rgba(255, 255, 255, 0.24);
}

.site-header.over-hero .site-search-shortcut,
.site-header.nav-open .site-search-shortcut {
  color: rgba(255, 255, 255, 0.68);
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.22);
}

body.search-open {
  overflow: hidden;
}

.site-search[hidden] {
  display: none;
}

.site-search {
  position: fixed;
  inset: 0;
  z-index: 400;
  overflow-y: auto;
  padding: clamp(72px, 10vh, 116px) clamp(20px, 4vw, 56px) 40px;
  color: var(--text);
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  -webkit-backdrop-filter: blur(28px);
  backdrop-filter: blur(28px);
  opacity: 0;
  transition: opacity 0.26s ease;
}

.site-search.is-open {
  opacity: 1;
}

.site-search-shell {
  width: min(100%, 980px);
  margin: 0 auto;
  transform: translate3d(0, 18px, 0);
  transition: transform 0.42s var(--ease);
}

.site-search.is-open .site-search-shell {
  transform: translate3d(0, 0, 0);
}

.site-search-topline,
.site-search-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  font-family: var(--font-mono);
  font-size: 9.5px;
  font-weight: 500;
  letter-spacing: 0.14em;
  line-height: 1.4;
  text-transform: uppercase;
  color: var(--text-3);
}

.site-search-topline {
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line-strong);
}

.site-search-topline > span:first-child,
.site-search-count {
  color: var(--accent);
}

.site-search-close {
  min-height: 34px;
  padding: 4px 0 4px 18px;
  font: inherit;
  letter-spacing: inherit;
  text-transform: inherit;
}

.site-search-close:hover,
.site-search-close:focus-visible {
  color: var(--text);
}

.site-search-form {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  padding: clamp(28px, 5vw, 54px) 0 clamp(24px, 4vw, 42px);
  border-bottom: 1px solid var(--line-strong);
}

.site-search-form > svg {
  color: var(--accent);
}

.site-search-form input {
  width: 100%;
  min-width: 0;
  padding: 0;
  border: 0;
  outline: 0;
  color: var(--text);
  background: transparent;
  font-family: var(--font-display);
  font-size: clamp(1.65rem, 4.4vw, 3.75rem);
  font-weight: 500;
  letter-spacing: -0.045em;
  line-height: 1.08;
}

.site-search-form input::placeholder {
  color: color-mix(in srgb, var(--text) 34%, transparent);
}

.site-search-form input::-webkit-search-cancel-button {
  appearance: none;
}

.site-search-meta {
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}

.site-search-results {
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-search-results li {
  border-bottom: 1px solid var(--line);
}

.site-search-results a {
  position: relative;
  display: grid;
  grid-template-columns: minmax(130px, 0.34fr) minmax(180px, 0.58fr) minmax(0, 1fr);
  gap: clamp(20px, 4vw, 56px);
  align-items: baseline;
  padding: clamp(20px, 2.8vw, 30px) 48px clamp(20px, 2.8vw, 30px) 0;
  color: var(--text);
  transition: color 0.22s ease, padding-left 0.35s var(--ease);
}

.site-search-results a::after {
  content: '\2192';
  position: absolute;
  top: 50%;
  right: 2px;
  color: var(--accent);
  font-size: 1.25rem;
  transform: translate3d(0, -50%, 0);
  transition: transform 0.3s var(--ease);
}

.site-search-results a:hover,
.site-search-results a:focus-visible {
  padding-left: 10px;
  color: var(--accent);
}

.site-search-results a:hover::after,
.site-search-results a:focus-visible::after {
  transform: translate3d(6px, -50%, 0);
}

.site-search-results a > span {
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.12em;
  line-height: 1.5;
  text-transform: uppercase;
  color: var(--text-3);
}

.site-search-results strong {
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 2vw, 1.55rem);
  font-weight: 500;
  letter-spacing: -0.025em;
  line-height: 1.15;
}

.site-search-results p {
  margin: 0;
  color: var(--text-2);
  font-size: 0.88rem;
  line-height: 1.6;
}

@media (max-width: 860px) {
  .site-search-toggle {
    margin-left: auto;
    width: 38px;
    min-width: 38px;
    height: 38px;
    padding: 0;
    gap: 0;
    border-radius: 50%;
  }

  .site-search-shortcut {
    display: none;
  }

  .theme-toggle {
    margin-left: 0;
  }

  .site-search-results a {
    grid-template-columns: 1fr;
    gap: 7px;
    align-items: start;
  }

  .site-search-results p {
    max-width: 54ch;
  }
}

@media (max-width: 480px) {
  .header-inner {
    gap: 10px;
  }

  .site-search {
    padding-right: 18px;
    padding-left: 18px;
  }

  .site-search-meta > span:last-child {
    display: none;
  }

  .site-search-form {
    grid-template-columns: 25px minmax(0, 1fr);
    gap: 10px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .site-search,
  .site-search-shell,
  .site-search-toggle,
  .site-search-results a,
  .site-search-results a::after {
    transition: none !important;
    transform: none !important;
  }
}

/* ============================================================
   PROJECT DOSSIER SYSTEM
   Long-form, evidence-led project pages. The visual language is
   editorial and technical: broad media, precise rules, quiet type.
   ============================================================ */

.project-dossier {
  --dossier-max: 1360px;
  --dossier-reading: 720px;
  --dossier-rule: var(--line);
  --dossier-strong-rule: var(--line-strong);
  position: relative;
  background: var(--bg);
}

.project-dossier .dossier-hero {
  border-bottom-color: rgba(255,255,255,0.14);
}

.project-dossier .dossier-hero-credit {
  top: clamp(92px, 9vh, 118px);
  right: clamp(24px, 4vw, 64px);
  bottom: auto;
}

.project-dossier .dossier-hero .hero-copy {
  max-width: 980px;
}

.dossier-hero-credit {
  position: absolute;
  z-index: 3;
  right: clamp(24px, 4vw, 64px);
  bottom: clamp(96px, 12vh, 138px);
  display: inline-flex;
  align-items: center;
  gap: 9px;
  max-width: min(32ch, 36vw);
  padding: 8px 10px;
  font-family: var(--font-mono);
  font-size: 8.5px;
  font-weight: 500;
  letter-spacing: 0.11em;
  line-height: 1.45;
  text-align: right;
  text-transform: uppercase;
  color: rgba(247,247,243,0.72);
  background: rgba(5,7,9,0.38);
  border: 1px solid rgba(255,255,255,0.18);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  transition: color 0.25s ease, border-color 0.25s ease;
}

.dossier-hero-credit::before {
  content: '';
  flex: 0 0 auto;
  width: 5px;
  height: 5px;
  background: var(--hero-accent, var(--accent));
  border-radius: 50%;
}

.dossier-hero-credit:hover,
.dossier-hero-credit:focus-visible {
  color: #fff;
  border-color: rgba(255,255,255,0.48);
}

.project-dossier .dossier-hero--diagram .hero-bg {
  inset: 0;
  background:
    radial-gradient(circle at 77% 48%, rgba(232,112,58,0.12), transparent 30%),
    #090b0e;
}

.project-dossier .dossier-hero--diagram .hero-bg img {
  width: min(70%, 1040px);
  height: 100%;
  margin-left: auto;
  padding: clamp(84px, 9vw, 132px) clamp(22px, 4vw, 64px) clamp(70px, 8vw, 110px) 0;
  object-fit: contain;
  object-position: right center;
  opacity: 0.9;
  filter: saturate(0.86) contrast(1.04);
}

.project-dossier .dossier-hero--diagram.dossier-hero--diagram-cover .hero-bg img {
  width: 100%;
  padding: 0;
  object-fit: cover;
  object-position: center;
}

.project-dossier .dossier-hero--diagram.has-hero-bg::before {
  background:
    linear-gradient(90deg, rgba(5,7,9,0.98) 0%, rgba(5,7,9,0.90) 34%, rgba(5,7,9,0.60) 57%, rgba(5,7,9,0.20) 100%),
    linear-gradient(0deg, rgba(5,7,9,0.78) 0%, rgba(5,7,9,0.06) 52%, rgba(5,7,9,0.18) 100%);
}

.dossier-index {
  position: sticky;
  top: var(--header-height, 71px);
  z-index: 80;
  display: flex;
  width: 100%;
  min-height: 56px;
  overflow-x: auto;
  overflow-y: hidden;
  color: var(--text-2);
  background: rgba(251,250,247,0.93);
  border-bottom: 1px solid var(--dossier-rule, var(--line));
  -webkit-backdrop-filter: blur(18px) saturate(1.15);
  backdrop-filter: blur(18px) saturate(1.15);
  scrollbar-width: none;
  overscroll-behavior-inline: contain;
}

html[data-theme="dark"] .dossier-index {
  background: rgba(11,12,14,0.93);
}

.dossier-index::-webkit-scrollbar {
  display: none;
}

.dossier-index > .container,
.dossier-index > ol,
.dossier-index > ul {
  display: flex;
  align-items: stretch;
  width: min(100%, var(--dossier-max, 1360px));
  min-width: max-content;
  margin: 0 auto;
  list-style: none;
}

.dossier-index > ol > li,
.dossier-index > ul > li {
  display: contents;
}

.dossier-index a {
  position: relative;
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  min-height: 55px;
  padding: 0 clamp(18px, 2vw, 30px);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.135em;
  line-height: 1.2;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--text-3);
  border-left: 1px solid var(--dossier-rule, var(--line));
  transition: color 0.24s ease, background 0.24s ease;
}

.dossier-index a:last-child {
  border-right: 1px solid var(--dossier-rule, var(--line));
}

.dossier-index a::after {
  content: '';
  position: absolute;
  right: 18px;
  bottom: -1px;
  left: 18px;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.32s var(--ease);
}

.dossier-index a:hover,
.dossier-index a:focus-visible {
  color: var(--text);
  background: var(--surface-2);
}

.dossier-index a.is-active,
.dossier-index a[aria-current="location"] {
  color: var(--text);
}

.dossier-index a.is-active::after,
.dossier-index a[aria-current="location"]::after {
  transform: scaleX(1);
}

.dossier-section {
  position: relative;
  padding: clamp(84px, 9vw, 136px) 0;
  border-top: 1px solid var(--dossier-rule, var(--line));
  scroll-margin-top: calc(var(--header-height, 71px) + 70px);
}

.dossier-section:first-of-type {
  border-top: 0;
}

.dossier-section--compact {
  padding-block: clamp(62px, 7vw, 96px);
}

.dossier-section--tint {
  background: var(--bg-2);
}

.dossier-section--dark {
  color: rgba(244,245,246,0.72);
  background: #0d0f12;
  border-top-color: rgba(255,255,255,0.12);
}

.dossier-section--dark .dossier-heading,
.dossier-section--dark .dossier-lede,
.dossier-section--dark h3,
.dossier-section--dark strong {
  color: #f4f5f6;
}

.dossier-section--dark .dossier-prose,
.dossier-section--dark .dossier-prose p {
  color: rgba(244,245,246,0.67);
}

.dossier-intro {
  display: grid;
  grid-template-columns: minmax(220px, 0.62fr) minmax(0, 1.38fr);
  gap: clamp(44px, 8vw, 132px);
  align-items: start;
}

.dossier-intro > :last-child {
  min-width: 0;
}

.dossier-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0;
  margin-bottom: 24px;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.17em;
  line-height: 1.35;
  text-transform: uppercase;
  color: var(--accent);
}

.dossier-kicker::before {
  content: none;
}

.dossier-heading {
  max-width: 17ch;
  font-family: var(--font-display);
  font-size: clamp(2.25rem, 5vw, 4.8rem);
  font-weight: 500;
  letter-spacing: -0.05em;
  line-height: 0.98;
  color: var(--text);
  text-wrap: balance;
}

.dossier-lede {
  max-width: 39ch;
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2.3vw, 2.05rem);
  font-weight: 400;
  letter-spacing: -0.028em;
  line-height: 1.3;
  color: var(--text);
  text-wrap: pretty;
}

.dossier-prose {
  max-width: var(--dossier-reading, 720px);
  color: var(--text-2);
}

.dossier-prose > * + * {
  margin-top: 1.25em;
}

.dossier-prose p,
.dossier-prose li {
  font-size: clamp(1rem, 1.25vw, 1.115rem);
  line-height: 1.78;
  text-wrap: pretty;
}

.dossier-prose ul,
.dossier-prose ol {
  padding-left: 1.2em;
}

.dossier-prose a,
.dossier-resource a {
  color: var(--text);
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

.dossier-media {
  position: relative;
  margin: clamp(50px, 7vw, 96px) 0 0;
  overflow: hidden;
  background: var(--surface-2);
  border: 1px solid var(--dossier-rule, var(--line));
  border-radius: 3px;
}

.dossier-media > img,
.dossier-media > picture,
.dossier-media > picture > img,
.dossier-media > video {
  display: block;
  width: 100%;
}

.dossier-media > img,
.dossier-media > picture > img,
.dossier-media > video {
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.dossier-media--wide > img,
.dossier-media--wide > picture > img,
.dossier-media--wide > video {
  aspect-ratio: 21 / 9;
}

.dossier-media--portrait > img,
.dossier-media--portrait > picture > img,
.dossier-media--portrait > video {
  aspect-ratio: 4 / 5;
}

.dossier-media figcaption,
.dossier-media > .caption {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 13px 16px;
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.075em;
  line-height: 1.55;
  text-transform: uppercase;
  color: var(--text-3);
  background: var(--surface);
  border-top: 1px solid var(--dossier-rule, var(--line));
}

.dossier-media figcaption a {
  color: var(--text-2);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.dossier-media-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.38fr) minmax(260px, 0.62fr);
  gap: clamp(16px, 2.5vw, 34px);
  align-items: stretch;
  margin-top: clamp(50px, 7vw, 96px);
}

.dossier-media-grid .dossier-media {
  height: 100%;
  margin-top: 0;
}

.dossier-media-grid .dossier-media > img,
.dossier-media-grid .dossier-media > picture,
.dossier-media-grid .dossier-media > picture > img {
  height: calc(100% - 48px);
}

.dossier-media-grid .dossier-media > img,
.dossier-media-grid .dossier-media > picture > img {
  aspect-ratio: auto;
}

.dossier-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: clamp(48px, 7vw, 88px);
  border-top: 1px solid var(--dossier-strong-rule, var(--line-strong));
  border-bottom: 1px solid var(--dossier-rule, var(--line));
}

.dossier-metric {
  min-width: 0;
  padding: clamp(24px, 3vw, 40px) clamp(18px, 2.7vw, 36px);
  border-left: 1px solid var(--dossier-rule, var(--line));
}

.dossier-metric:first-child {
  border-left: 0;
}

.dossier-metric strong,
.dossier-metric .num,
.dossier-metric .value,
.dossier-metric-value {
  display: block;
  overflow-wrap: anywhere;
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 4rem);
  font-weight: 500;
  letter-spacing: -0.055em;
  line-height: 0.98;
  color: var(--text);
}

.dossier-metric span,
.dossier-metric p,
.dossier-metric-label {
  display: block;
  margin-top: 14px;
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.105em;
  line-height: 1.55;
  text-transform: uppercase;
  color: var(--text-3);
}

.dossier-architecture,
.dossier-specs,
.dossier-modules,
.dossier-audiences,
.dossier-connections {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 clamp(34px, 5vw, 76px);
  margin-top: clamp(48px, 7vw, 88px);
  border-top: 1px solid var(--dossier-strong-rule, var(--line-strong));
}

.dossier-architecture-item,
.dossier-module,
.dossier-audiences > *,
.dossier-connections > * {
  position: relative;
  min-width: 0;
  padding: clamp(28px, 3.5vw, 46px) 0;
  border-bottom: 1px solid var(--dossier-rule, var(--line));
}

.dossier-architecture-item {
  padding-left: 34px;
}

.dossier-architecture-item::before {
  content: '';
  position: absolute;
  top: clamp(35px, 4vw, 54px);
  left: 0;
  width: 9px;
  height: 9px;
  background: var(--accent);
  box-shadow: 0 0 0 6px var(--glow);
}

.dossier-architecture h3,
.dossier-module h3,
.dossier-audiences h3,
.dossier-connections h3,
.dossier-architecture-item > strong,
.dossier-module > strong {
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 2vw, 1.65rem);
  font-weight: 500;
  letter-spacing: -0.025em;
  line-height: 1.18;
  color: var(--text);
}

.dossier-architecture p,
.dossier-module p,
.dossier-audiences p,
.dossier-connections p {
  max-width: 58ch;
  margin-top: 12px;
  font-size: 0.96rem;
  line-height: 1.72;
  color: var(--text-2);
}

.dossier-flow {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: clamp(48px, 7vw, 88px);
  list-style: none;
  border-top: 1px solid var(--dossier-strong-rule, var(--line-strong));
  border-bottom: 1px solid var(--dossier-strong-rule, var(--line-strong));
}

.dossier-flow-step {
  position: relative;
  min-width: 0;
  padding: clamp(32px, 4vw, 52px) clamp(20px, 2.6vw, 36px);
  border-right: 1px solid var(--dossier-rule, var(--line));
}

.dossier-flow-step:last-child {
  border-right: 0;
}

.dossier-flow-step::before {
  content: '';
  position: absolute;
  top: -1px;
  left: 0;
  width: clamp(44px, 5vw, 74px);
  height: 3px;
  background: var(--accent);
}

.dossier-flow-step:not(:last-child)::after {
  content: '\2192';
  position: absolute;
  z-index: 1;
  top: 50%;
  right: -15px;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--accent);
  background: var(--bg);
  border: 1px solid var(--dossier-rule, var(--line));
  border-radius: 50%;
  transform: translateY(-50%);
}

.dossier-section--tint .dossier-flow-step:not(:last-child)::after {
  background: var(--bg-2);
}

.dossier-flow-step h3,
.dossier-flow-step > strong {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 1.8vw, 1.45rem);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: var(--text);
}

.dossier-flow-step p {
  margin-top: 13px;
  font-size: 0.91rem;
  line-height: 1.65;
  color: var(--text-2);
}

.dossier-specs {
  margin-top: clamp(42px, 6vw, 78px);
}

.dossier-spec {
  display: grid;
  grid-template-columns: minmax(110px, 0.46fr) minmax(0, 1fr);
  gap: 22px;
  align-items: baseline;
  min-width: 0;
  padding: 21px 0;
  border-bottom: 1px solid var(--dossier-rule, var(--line));
}

.dossier-spec dt,
.dossier-spec .label,
.dossier-spec > span:first-child {
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.12em;
  line-height: 1.5;
  text-transform: uppercase;
  color: var(--text-3);
}

.dossier-spec dd,
.dossier-spec .value,
.dossier-spec > span:last-child {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1rem, 1.4vw, 1.2rem);
  font-weight: 500;
  letter-spacing: -0.015em;
  line-height: 1.4;
  color: var(--text);
}

.dossier-roadmap {
  margin-top: clamp(48px, 7vw, 88px);
  list-style: none;
  border-top: 1px solid var(--dossier-strong-rule, var(--line-strong));
}

.dossier-roadmap-item {
  display: grid;
  grid-template-columns: minmax(112px, 0.3fr) minmax(0, 1fr) auto;
  gap: clamp(22px, 4vw, 68px);
  align-items: start;
  padding: clamp(25px, 3vw, 38px) 0;
  border-bottom: 1px solid var(--dossier-rule, var(--line));
}

.dossier-roadmap-item > time,
.dossier-roadmap-item > .phase {
  padding-top: 3px;
  font-family: var(--font-mono);
  font-size: 9.5px;
  font-weight: 500;
  letter-spacing: 0.12em;
  line-height: 1.5;
  text-transform: uppercase;
  color: var(--text-3);
}

.dossier-roadmap-item h3,
.dossier-roadmap-item > strong {
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 1.8vw, 1.45rem);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.25;
  color: var(--text);
}

.dossier-roadmap-item p {
  max-width: 65ch;
  margin-top: 9px;
  font-size: 0.93rem;
  line-height: 1.65;
  color: var(--text-2);
}

.dossier-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: max-content;
  padding: 7px 10px;
  font-family: var(--font-mono);
  font-size: 8.5px;
  font-weight: 500;
  letter-spacing: 0.12em;
  line-height: 1;
  text-transform: uppercase;
  color: var(--text-2);
  border: 1px solid var(--dossier-rule, var(--line));
}

.dossier-status::before {
  content: '';
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 50%;
}

.dossier-callout {
  position: relative;
  display: grid;
  grid-template-columns: minmax(220px, 0.7fr) minmax(0, 1.3fr);
  gap: clamp(34px, 7vw, 108px);
  margin-top: clamp(54px, 8vw, 104px);
  padding: clamp(38px, 6vw, 78px);
  overflow: hidden;
  color: rgba(244,245,246,0.70);
  background: #101317;
}

.dossier-callout::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 32%;
  height: 4px;
  background: var(--accent);
}

.dossier-callout h2,
.dossier-callout h3,
.dossier-callout strong,
.dossier-callout .dossier-heading,
.dossier-callout .dossier-lede {
  color: #f4f5f6;
}

.dossier-callout p {
  max-width: 65ch;
  line-height: 1.75;
  color: rgba(244,245,246,0.68);
}

.dossier-modules {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.dossier-module {
  padding-right: clamp(12px, 2vw, 28px);
}

.dossier-module small {
  display: block;
  margin-bottom: 18px;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.14em;
  line-height: 1.4;
  text-transform: uppercase;
  color: var(--accent);
}

.dossier-audiences {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
}

.dossier-audiences > * {
  padding-right: clamp(18px, 2.5vw, 34px);
  padding-left: clamp(18px, 2.5vw, 34px);
  border-left: 1px solid var(--dossier-rule, var(--line));
}

.dossier-audiences > :first-child {
  padding-left: 0;
  border-left: 0;
}

.dossier-resource {
  display: grid;
  grid-template-columns: minmax(160px, 0.45fr) minmax(0, 1fr) auto;
  gap: clamp(24px, 5vw, 72px);
  align-items: center;
  margin-top: clamp(48px, 7vw, 84px);
  padding: clamp(28px, 4vw, 44px) 0;
  border-top: 1px solid var(--dossier-strong-rule, var(--line-strong));
  border-bottom: 1px solid var(--dossier-rule, var(--line));
}

.dossier-resource > small,
.dossier-resource > .label {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.14em;
  line-height: 1.5;
  text-transform: uppercase;
  color: var(--accent);
}

.dossier-resource h3,
.dossier-resource > strong {
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 1.8vw, 1.5rem);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.3;
  color: var(--text);
}

.dossier-resource > a:last-child {
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  white-space: nowrap;
}

.dossier-connections {
  gap: 0;
}

.dossier-connections > a {
  display: block;
  padding-right: clamp(24px, 4vw, 60px);
  transition: color 0.25s ease, padding-left 0.35s var(--ease);
}

.dossier-connections > a:nth-child(even) {
  padding-right: 0;
  padding-left: clamp(24px, 4vw, 60px);
  border-left: 1px solid var(--dossier-rule, var(--line));
}

.dossier-connections > a:hover,
.dossier-connections > a:focus-visible {
  padding-left: 12px;
  color: var(--accent);
}

.dossier-connections > a:nth-child(even):hover,
.dossier-connections > a:nth-child(even):focus-visible {
  padding-left: calc(clamp(24px, 4vw, 60px) + 12px);
}

.project-dossier :where(a, button):focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}

@media (max-width: 1080px) {
  .dossier-intro {
    grid-template-columns: minmax(190px, 0.5fr) minmax(0, 1.5fr);
    gap: clamp(34px, 6vw, 76px);
  }

  .dossier-metrics,
  .dossier-audiences {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .dossier-metric:nth-child(odd),
  .dossier-audiences > :nth-child(odd) {
    border-left: 0;
  }

  .dossier-metric:nth-child(n+3),
  .dossier-audiences > :nth-child(n+3) {
    border-top: 1px solid var(--dossier-rule, var(--line));
  }

  .dossier-flow {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .dossier-flow-step:nth-child(2n) {
    border-right: 0;
  }

  .dossier-flow-step:nth-child(n+3) {
    border-top: 1px solid var(--dossier-rule, var(--line));
  }

  .dossier-flow-step:nth-child(2n)::after {
    display: none;
  }

  .dossier-modules {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .dossier-hero-credit {
    right: 20px;
    bottom: 22px;
    max-width: calc(100% - 40px);
    font-size: 8px;
  }

  .project-dossier .dossier-hero--diagram .hero-bg img {
    width: 100%;
    padding: 78px 16px 150px;
    object-position: center 40%;
    opacity: 0.68;
  }

  .project-dossier .dossier-hero--diagram.has-hero-bg::before {
    background:
      linear-gradient(90deg, rgba(5,7,9,0.92) 0%, rgba(5,7,9,0.72) 100%),
      linear-gradient(0deg, rgba(5,7,9,0.92) 0%, rgba(5,7,9,0.24) 62%, rgba(5,7,9,0.48) 100%);
  }

  .dossier-index {
    position: relative;
    top: auto;
    min-height: 52px;
  }

  .dossier-index a {
    min-height: 51px;
    padding-inline: 17px;
    font-size: 9px;
  }

  .dossier-section {
    padding-block: 72px;
    scroll-margin-top: 20px;
  }

  .dossier-intro,
  .dossier-callout {
    grid-template-columns: 1fr;
  }

  .dossier-intro {
    gap: 32px;
  }

  .dossier-heading {
    max-width: 20ch;
  }

  .dossier-media,
  .dossier-media-grid {
    margin-top: 46px;
  }

  .dossier-media--wide > img,
  .dossier-media--wide > picture > img,
  .dossier-media--wide > video {
    aspect-ratio: 16 / 10;
  }

  .dossier-media-grid {
    grid-template-columns: 1fr;
  }

  .dossier-media-grid .dossier-media > img,
  .dossier-media-grid .dossier-media > picture,
  .dossier-media-grid .dossier-media > picture > img {
    height: auto;
  }

  .dossier-media-grid .dossier-media > img,
  .dossier-media-grid .dossier-media > picture > img {
    aspect-ratio: 16 / 10;
  }

  .dossier-media figcaption,
  .dossier-media > .caption {
    display: block;
  }

  .dossier-architecture,
  .dossier-specs,
  .dossier-modules,
  .dossier-connections {
    grid-template-columns: 1fr;
  }

  .dossier-connections > a:nth-child(even) {
    padding-left: 0;
    border-left: 0;
  }

  .dossier-connections > a:nth-child(even):hover,
  .dossier-connections > a:nth-child(even):focus-visible {
    padding-left: 12px;
  }

  .dossier-roadmap-item {
    grid-template-columns: minmax(94px, 0.3fr) minmax(0, 1fr);
  }

  .dossier-roadmap-item .dossier-status {
    grid-column: 2;
    justify-self: start;
  }

  .dossier-resource {
    grid-template-columns: 1fr auto;
  }

  .dossier-resource > small,
  .dossier-resource > .label {
    grid-column: 1 / -1;
  }
}

@media (max-width: 540px) {
  .dossier-metrics,
  .dossier-flow,
  .dossier-audiences {
    grid-template-columns: 1fr;
  }

  .dossier-metric,
  .dossier-metric:nth-child(odd),
  .dossier-audiences > *,
  .dossier-audiences > :first-child {
    padding-right: 0;
    padding-left: 0;
    border-top: 1px solid var(--dossier-rule, var(--line));
    border-left: 0;
  }

  .dossier-metric:first-child,
  .dossier-audiences > :first-child {
    border-top: 0;
  }

  .dossier-flow-step,
  .dossier-flow-step:nth-child(2n) {
    border-top: 1px solid var(--dossier-rule, var(--line));
    border-right: 0;
  }

  .dossier-flow-step:first-child {
    border-top: 0;
  }

  .dossier-flow-step::after,
  .dossier-flow-step:not(:last-child)::after {
    display: none;
  }

  .dossier-spec,
  .dossier-roadmap-item,
  .dossier-resource {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .dossier-roadmap-item .dossier-status {
    grid-column: 1;
  }

  .dossier-callout {
    padding: 32px 24px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .dossier-index a::after,
  .dossier-connections > a,
  .dossier-media > img,
  .dossier-media > picture > img {
    transition: none !important;
    transform: none !important;
  }
}

/* ICONS */
.p-svg {
  width: 22px;
  height: 22px;
}

/* RESPONSIVE */
@media (max-width: 860px) {
  .site-nav,
  .header-cta {
    display: none;
  }

  .nav-toggle {
    display: block;
    margin-left: auto;
  }

  .theme-toggle {
    margin-left: auto;
  }

  .nav-toggle {
    margin-left: 0;
  }

  .projects-grid,
  .steps-list .step-row,
  .pillars-grid,
  .split,
  .contact-grid,
  .footer-grid,
  .blog-grid,
  .reason-grid {
    grid-template-columns: 1fr;
  }

  .steps-list .step-row {
    gap: 20px;
  }

  .pillar {
    border-right: none;
    border-bottom: 1px solid var(--line);
  }

  .pillar:last-child {
    border-bottom: none;
  }

  .timeline-item {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .section-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
  }

  .feature-card {
    grid-template-columns: 1fr;
  }

  .feature-card .fc-media {
    min-height: 260px;
  }

  .pd-section {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

@media (max-width: 768px) {
  .hero {
    padding-top: 150px;
    min-height: auto;
  }

  .section {
    padding: 90px 0;
  }

  .hero-meta,
  .stats-row {
    grid-template-columns: 1fr;
  }

  .hero-meta-item,
  .stat {
    border-right: none;
    border-bottom: 1px solid var(--line);
    padding: 22px 0;
  }

  .hero-meta-item:last-child,
  .stat:last-child {
    border-bottom: none;
  }
}

@media (max-width: 640px) {
  .pd-nav {
    grid-template-columns: 1fr;
  }

  .pd-nav a:first-child {
    border-bottom: 1px solid var(--line);
  }
}

@media (max-width: 560px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 10px;
  }
}


/* ===== Round 3 additions ===== */

/* Hero media band (home + approach) */
.hero-media { margin: 72px 0 0; border: 1px solid var(--line); border-radius: 18px; overflow: hidden; background: var(--surface); }
.hero-media img { display: block; width: 100%; height: auto; aspect-ratio: 21 / 9; object-fit: cover; }
.hero-media figcaption { padding: 14px 22px; font-family: 'IBM Plex Mono', monospace; font-size: 12px; letter-spacing: 0.04em; color: var(--text-3); border-top: 1px solid var(--line); }

/* Founder split: smaller photo */
.split-founder { grid-template-columns: 0.8fr 1.2fr; align-items: center; }
.img-frame-sm { max-width: 340px; }
@media (max-width: 860px) { .split-founder { grid-template-columns: 1fr; } .img-frame-sm { max-width: 280px; } }

/* ABQS pillar icons */
.p-icon { display: inline-flex; align-items: center; justify-content: center; width: 52px; height: 52px; border: 1px solid var(--line); border-radius: 14px; color: var(--accent); background: var(--surface); margin-bottom: 18px; }
.pillar { position: relative; }

/* Vertical method tiles */
.method-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.method-tile { border: 1px solid var(--line); border-radius: 16px; padding: 30px 26px; background: var(--surface); transition: border-color .25s ease, transform .25s ease; }
.method-tile:hover { border-color: var(--accent); transform: translateY(-3px); }
.method-tile .step-icon { display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; border-radius: 12px; border: 1px solid var(--line); color: var(--accent); margin-bottom: 20px; }
.method-tile h3 { font-family: var(--font-display); font-size: 20px; font-weight: 600; margin: 0 0 12px; letter-spacing: -0.01em; }
.method-tile p { font-size: 14.5px; line-height: 1.65; color: var(--text-2); margin: 0; }
@media (max-width: 1080px) { .method-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .method-grid { grid-template-columns: 1fr; } }

/* Project page: hero image inside pd-hero */
.pd-hero .pd-image { margin: 54px 0 0; border: 1px solid var(--line); border-radius: 18px; overflow: hidden; background: var(--surface); }
.pd-hero .pd-image img { display: block; width: 100%; height: auto; aspect-ratio: 21 / 9; object-fit: cover; }
.pd-hero .pd-image figcaption { padding: 14px 22px; font-family: 'IBM Plex Mono', monospace; font-size: 12px; letter-spacing: 0.04em; color: var(--text-3); border-top: 1px solid var(--line); }

/* Connected projects */
.pd-connections { margin: 80px 0 20px; }
.conn-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; margin-top: 26px; }
.conn-card { display: flex; flex-direction: column; gap: 10px; border: 1px solid var(--line); border-radius: 14px; padding: 24px 26px; text-decoration: none; color: var(--text); background: var(--surface); transition: border-color .25s ease, transform .25s ease; }
.conn-card:hover { border-color: var(--accent); transform: translateY(-2px); }
.conn-name { font-family: var(--font-display); font-size: 17px; font-weight: 600; letter-spacing: -0.01em; }
.conn-name .arrow { color: var(--accent); }
.conn-blurb { font-size: 14px; line-height: 1.6; color: var(--text-2); }
@media (max-width: 700px) { .conn-grid { grid-template-columns: 1fr; } }

/* Contact page */
.contact-direct { display: flex; flex-wrap: wrap; align-items: baseline; gap: 18px 34px; margin-top: 44px; }
.contact-email { font-family: var(--font-display); font-size: clamp(26px, 4vw, 40px); font-weight: 600; letter-spacing: -0.02em; color: var(--text); text-decoration: none; border-bottom: 2px solid var(--accent); padding-bottom: 4px; }
.contact-email:hover { color: var(--accent); }
.contact-loc { font-size: 15px; color: var(--text-2); }
.inquiry-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.inquiry-card { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 16px; padding: 30px 28px; background: var(--surface); text-decoration: none; color: var(--text); transition: border-color .25s ease, transform .25s ease; }
.inquiry-card:hover { border-color: var(--accent); transform: translateY(-3px); }
.in-icon { display: inline-flex; align-items: center; justify-content: center; width: 50px; height: 50px; border: 1px solid var(--line); border-radius: 13px; color: var(--accent); margin-bottom: 20px; }
.inquiry-card h3 { font-family: var(--font-display); font-size: 19px; font-weight: 600; margin: 0 0 10px; letter-spacing: -0.01em; }
.inquiry-card p { font-size: 14.5px; line-height: 1.65; color: var(--text-2); margin: 0 0 18px; flex: 1; }
@media (max-width: 900px) { .inquiry-grid { grid-template-columns: 1fr; } }

/* Cookie consent bar */
.cookie-bar {
  position: fixed;
  z-index: 9999;
  left: 50%;
  bottom: max(20px, env(safe-area-inset-bottom));
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 28px;
  width: min(760px, calc(100% - 40px));
  padding: 22px 24px 23px;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: 2px;
  background: color-mix(in srgb, var(--surface) 96%, transparent);
  box-shadow: 0 24px 70px rgba(0, 0, 0, .22);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  opacity: 0;
  transform: translate(-50%, calc(100% + 44px));
  transition: transform .42s var(--ease), opacity .3s ease;
}

.cookie-bar::before {
  content: '';
  position: absolute;
  inset: 0 0 auto;
  height: 2px;
  background: var(--accent);
}

.cookie-bar.show {
  opacity: 1;
  transform: translate(-50%, 0);
}

.cookie-kicker {
  display: block;
  margin-bottom: 5px;
  color: var(--accent);
  font: 600 10px/1.4 var(--font-mono);
  letter-spacing: .16em;
  text-transform: uppercase;
}

.cookie-text strong {
  display: block;
  margin-bottom: 5px;
  color: var(--text);
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 560;
  letter-spacing: -.01em;
}

.cookie-text p {
  max-width: 62ch;
  margin: 0;
  color: var(--text-2);
  font-size: 13.5px;
  line-height: 1.55;
}

.cookie-text a {
  color: var(--text);
  text-decoration-color: var(--accent);
  text-underline-offset: 3px;
}

.cookie-actions {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}

.cookie-actions .btn {
  min-height: 42px;
  padding: 10px 16px;
  white-space: nowrap;
  font-size: 12px;
}

@media (max-width: 620px) {
  .cookie-bar {
    bottom: max(12px, env(safe-area-inset-bottom));
    grid-template-columns: 1fr;
    align-items: start;
    gap: 18px;
    width: calc(100% - 24px);
    padding: 20px 20px 19px;
  }

  .cookie-actions {
    width: 100%;
  }

  .cookie-actions .btn {
    flex: 1 1 0;
  }
}


/* ============================================================
   HERO SYSTEM v4
   Full-canvas research imagery, direct editorial typography,
   and one calibrated contrast layer across every route.
   ============================================================ */

:root {
  --header-height: 71px;
  --hero-ink: #F7F7F3;
  --hero-ink-soft: rgba(247,247,243,0.78);
  --hero-ink-muted: rgba(247,247,243,0.80);
  --hero-line: rgba(255,255,255,0.22);
  --hero-accent: #FF7440;
}

.hero.has-hero-bg,
.page-hero.has-hero-bg,
.pd-hero.has-hero-bg,
.article-hero.has-hero-bg {
  --hero-shift: 0px;
  --hero-position: 50% 50%;
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  padding: 0;
  color: var(--hero-ink);
  background: #080A0C;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.hero.has-hero-bg,
.page-hero.has-hero-bg,
.pd-hero.has-hero-bg,
.article-hero.has-hero-bg {
  min-height: max(780px, 100svh);
}

/* The homepage carries the densest hero content. Compact its internal rhythm so
   the shared full-canvas height remains exact instead of growing past the other routes. */
.hero.has-hero-bg > .container {
  padding-top: 112px;
  padding-bottom: 32px;
}

.hero .hero-copy .hero-actions {
  margin-top: 28px;
}

.has-hero-bg .hero-bg {
  position: absolute;
  inset: -28px 0;
  z-index: -3;
  overflow: hidden;
  transform: translate3d(0, var(--hero-shift), 0);
  will-change: transform;
}

.has-hero-bg .hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: var(--hero-position);
  opacity: 0.82;
  transform: scale(1.055);
  filter: saturate(0.78) contrast(1.06);
  transition: opacity 1.1s var(--ease), transform 1.6s var(--ease), filter 1.2s var(--ease);
}

.has-hero-bg.hero-ready .hero-bg img {
  opacity: 1;
  transform: scale(1);
}

.has-hero-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(5,7,9,0.93) 0%, rgba(5,7,9,0.79) 32%, rgba(5,7,9,0.42) 58%, rgba(5,7,9,0.12) 100%),
    linear-gradient(0deg, rgba(5,7,9,0.76) 0%, rgba(5,7,9,0.18) 42%, rgba(5,7,9,0.08) 70%),
    linear-gradient(180deg, rgba(5,7,9,0.46) 0%, rgba(5,7,9,0) 26%);
}

.has-hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.12;
  background-image: linear-gradient(90deg, rgba(255,255,255,0.09) 1px, transparent 1px);
  background-size: min(25vw, 360px) 100%;
  -webkit-mask-image: linear-gradient(to bottom, transparent 12%, #000 58%, transparent 100%);
  mask-image: linear-gradient(to bottom, transparent 12%, #000 58%, transparent 100%);
}

.has-hero-bg > .container {
  position: relative;
  z-index: 1;
  width: 100%;
  padding-top: clamp(128px, 16vh, 172px);
  padding-bottom: clamp(42px, 7vh, 76px);
}

.article-hero.has-hero-bg > .container {
  width: 100%;
  max-width: 1360px !important;
  margin-inline: auto !important;
}

.hero-copy,
html[data-theme="dark"] .hero-copy {
  display: block;
  width: min(100%, 980px);
  max-width: 940px;
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}

.page-hero .hero-copy {
  max-width: 980px;
}

.pd-hero .hero-copy {
  max-width: 920px;
}

.article-hero .hero-copy {
  max-width: 940px;
}

.hero-copy h1,
.hero-copy .display-1,
.hero-copy .display-2,
.hero-copy .pd-tagline,
.hero-copy .contact-email {
  color: var(--hero-ink);
  text-wrap: balance;
}

.hero-copy h1 {
  text-shadow: 0 2px 28px rgba(0,0,0,0.18);
}

.hero .hero-copy .display-1 {
  max-width: 14ch;
  font-family: var(--font-hero);
  font-size: clamp(3.7rem, 6.2vw, 5.6rem);
  line-height: 0.96;
  letter-spacing: -0.052em;
}

.hero .hero-copy .display-1.hero-title-stacked {
  max-width: none;
  font-family: var(--font-hero);
  font-weight: 500;
  font-size: clamp(3.35rem, 5.5vw, 5.25rem);
  line-height: 0.91;
  letter-spacing: -0.062em;
}

.hero-title-stacked > span {
  display: block;
  white-space: nowrap;
}

.page-hero .hero-copy .display-1 {
  max-width: 19ch;
  font-family: var(--font-hero);
  font-size: clamp(3.35rem, 5.25vw, 5.25rem);
  line-height: 0.99;
  letter-spacing: -0.047em;
}

.page-hero .hero-copy .projects-hero-title {
  max-width: none;
  font-size: clamp(3.25rem, 5.1vw, 5.1rem);
  line-height: 0.94;
  letter-spacing: -0.055em;
}

.projects-hero-title > span {
  display: block;
  white-space: nowrap;
}

.pd-hero .pd-head h1 {
  max-width: 15ch;
  font-family: var(--font-hero);
  font-size: clamp(4rem, 7vw, 6.4rem);
  line-height: 0.92;
  letter-spacing: -0.055em;
  text-transform: uppercase;
}

.article-hero .hero-copy .display-2 {
  max-width: 19ch;
  font-family: var(--font-hero);
  font-size: clamp(3rem, 5vw, 4.8rem);
  line-height: 1;
  letter-spacing: -0.045em;
}

.hero-copy p,
.hero-copy .lede,
.hero-copy .pd-tagline {
  color: var(--hero-ink-soft);
}

.hero-copy .lede {
  max-width: 56ch;
  margin-top: clamp(24px, 3vh, 34px);
  font-size: clamp(1.05rem, 1.3vw, 1.2rem);
  line-height: 1.62;
  text-wrap: pretty;
}

.hero-copy .pd-tagline {
  margin-top: 20px;
  font-size: clamp(1.15rem, 1.8vw, 1.5rem);
  font-weight: 400;
  letter-spacing: -0.01em;
}

.hero-copy .eyebrow,
.hero-copy .article-meta {
  margin-top: 0 !important;
  margin-bottom: clamp(22px, 3vh, 30px) !important;
  color: var(--hero-accent);
}

.hero-kicker {
  margin-bottom: clamp(22px, 3vh, 30px);
}

.hero-kicker .eyebrow {
  margin-bottom: 0 !important;
}

.hero-copy .back-link {
  margin-bottom: clamp(30px, 4vh, 44px);
  color: var(--hero-ink-muted);
  text-shadow: none;
}

.hero-copy .back-link:hover {
  color: var(--hero-accent);
}

.article-hero .hero-copy .back-link {
  margin-bottom: 0;
}

.article-hero .hero-copy .article-meta {
  margin-top: 30px !important;
  margin-bottom: 20px !important;
}

.hero-copy .hero-actions {
  margin-top: clamp(28px, 4vh, 40px);
}

.hero-copy .btn-ink {
  color: #0A0C0E;
  background: var(--hero-ink);
}

.hero-copy .btn-ink:hover {
  color: #fff;
  background: var(--accent);
}

.hero-copy .btn-outline {
  color: var(--hero-ink);
  border-color: rgba(255,255,255,0.44);
}

.hero-copy .btn-outline:hover {
  color: #0A0C0E;
  background: var(--hero-ink);
  border-color: var(--hero-ink);
}

.hero-copy .contact-email {
  border-bottom-color: var(--hero-accent);
}

.hero-copy .contact-loc {
  color: var(--hero-ink-soft);
}

.hero-copy .pd-icon {
  width: 46px;
  height: 46px;
  color: var(--hero-accent);
  background: transparent;
  border: 1px solid rgba(255,255,255,0.34);
  border-radius: 0;
}

.pd-head .eyebrow {
  margin-top: 26px !important;
  margin-bottom: 18px !important;
}

.has-hero-bg .hero-meta,
.has-hero-bg .pd-meta-grid,
html[data-theme="dark"] .has-hero-bg .hero-meta,
html[data-theme="dark"] .has-hero-bg .pd-meta-grid {
  margin-top: clamp(36px, 5vh, 54px);
  color: var(--hero-ink);
  background: transparent;
  border: 0;
  border-top: 1px solid var(--hero-line);
  border-bottom: 1px solid var(--hero-line);
  border-radius: 0;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}

html .hero.has-hero-bg .hero-meta {
  margin-top: 28px;
}

.has-hero-bg .hero-meta-item,
.has-hero-bg .pd-meta-item {
  border-color: var(--hero-line);
}

.has-hero-bg .hero-meta-item {
  display: grid;
  grid-template-columns: 34px 1fr;
  grid-template-rows: auto auto;
  column-gap: 16px;
  row-gap: 5px;
  padding: 20px clamp(20px, 2.6vw, 34px);
}

.has-hero-bg .hm-icon,
html[data-theme="dark"] .has-hero-bg .hm-icon {
  grid-row: 1 / 3;
  align-self: center;
  width: 32px;
  height: 32px;
  color: var(--hero-accent);
  background: transparent;
  border: 0;
  border-radius: 0;
}

.has-hero-bg .hero-meta-item .num {
  color: var(--hero-ink);
  font-size: clamp(1.65rem, 2.4vw, 2.25rem);
}

.has-hero-bg .hero-meta-item .lbl,
.has-hero-bg .pd-meta-item .k {
  color: var(--hero-ink-muted);
  font-weight: 500;
}

.has-hero-bg .pd-meta-item {
  padding: 18px clamp(20px, 2.8vw, 38px);
}

.has-hero-bg .pd-meta-item .v {
  color: var(--hero-ink);
}

/* Route-specific focal points keep the research subject in frame. */
.hero-bg img[src$="hero-home-authentic-lab-v3.webp"] { --hero-position: 50% 50%; }
.hero-bg img[src$="hero-about.jpg"] { --hero-position: 54% 50%; }
.hero-bg img[src$="approach-hero.jpg"] { --hero-position: 56% 50%; }
.hero-bg img[src$="hero-projects.jpg"] { --hero-position: 62% 50%; }
.hero-bg img[src$="hero-blog.jpg"] { --hero-position: 58% 50%; }
.hero-bg img[src$="hero-projects-v2.webp"] { --hero-position: 64% 50%; }
.hero-bg img[src$="approach-hero-v2.webp"] { --hero-position: 67% 50%; }
.hero-bg img[src$="hero-founder-v2.webp"] { --hero-position: 64% 50%; }
.hero-bg img[src$="hero-insights-v2.webp"] { --hero-position: 64% 50%; }
.hero-bg img[src$="hero-contact.jpg"] { --hero-position: 58% 50%; }
.hero-bg img[src$="aither-hero.jpg"] { --hero-position: 58% 50%; }
.hero-bg img[src$="qontos.jpg"] { --hero-position: 60% 50%; }
.hero-bg img[src$="zhilicon-hero-research-v2.webp"] { --hero-position: 68% 50%; }
.hero-bg img[src$="shiora.jpg"] { --hero-position: 74% 50%; }
.hero-bg img[src$="scutum-hero-research-v2.webp"] { --hero-position: 70% 50%; }
.hero-bg img[src$="quinno.jpg"] { --hero-position: 64% 50%; }
.hero-bg img[src$="noble.jpg"] { --hero-position: 66% 50%; }
.hero-bg img[src$="sylvain-hero-research-v2.webp"] { --hero-position: 68% 50%; }
.hero-bg img[src$="fable-hero-research-v2.webp"] { --hero-position: 70% 50%; }
.hero-bg img[src$="zeromatter.jpg"] { --hero-position: 62% 50%; }

/* Header becomes part of the first composition, then returns to the site chrome. */
.site-header.over-hero {
  color: var(--hero-ink);
  background: linear-gradient(180deg, rgba(5,7,9,0.62), rgba(5,7,9,0));
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  border-bottom-color: rgba(255,255,255,0.12);
}

.site-header.over-hero .logo-dark,
.site-header.nav-open .logo-dark {
  display: none;
}

.site-header.over-hero .logo-light,
.site-header.nav-open .logo-light {
  display: block;
}

.site-header.over-hero .site-nav a,
.site-header.over-hero .nav-toggle,
.site-header.nav-open .nav-toggle {
  color: rgba(255,255,255,0.76);
}

.site-header.over-hero .site-nav a:hover,
.site-header.over-hero .site-nav a.active {
  color: #fff;
}

.site-header.over-hero .theme-toggle,
.site-header.nav-open .theme-toggle {
  color: rgba(255,255,255,0.82);
  border-color: rgba(255,255,255,0.24);
}

.site-header.nav-open {
  color: var(--hero-ink);
  background: #090B0D;
  border-bottom-color: rgba(255,255,255,0.12);
}

.site-header:focus-within,
.site-header.nav-open {
  transform: translateY(0);
}

body.nav-open {
  overflow: hidden;
}

#mobileNav.open {
  color: var(--hero-ink);
  background: #090B0D;
}

#mobileNav.open a {
  color: var(--hero-ink);
}

/* Icon lines remain precise at every size. */
.hm-icon svg, .st-icon svg, .pc-icon svg, .rc-icon svg, .step-icon svg,
.p-icon svg, .in-icon svg, .pd-icon svg, .conn-card svg, .p-svg {
  stroke-width: 1.1 !important;
}

@media (min-width: 1440px) {
  .article-hero.has-hero-bg > .container {
    max-width: 1360px !important;
  }
}

@media (max-width: 1200px) {
  .hero.has-hero-bg > .container {
    padding-top: 96px;
    padding-bottom: 22px;
  }

  html .hero.has-hero-bg .hero-meta {
    margin-top: 18px;
  }

  .hero .hero-copy .hero-actions {
    margin-top: 22px;
  }
}

@media (max-width: 900px) {
  .has-hero-bg > .container {
    padding-top: 124px;
    padding-bottom: 40px;
  }

  .has-hero-bg .hero-meta {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .has-hero-bg .hero-meta-item {
    padding: 18px 20px;
    border-right: 1px solid var(--hero-line);
    border-bottom: 0;
  }

  .has-hero-bg .hero-meta-item:last-child {
    border-right: 0;
  }
}

@media (max-width: 680px) {
  :root {
    --header-height: 67px;
  }

  .container,
  .header-inner {
    padding-left: 20px;
    padding-right: 20px;
  }

  .has-hero-bg > .container {
    padding-top: 112px;
    padding-bottom: 26px;
  }

  .hero.has-hero-bg > .container {
    padding-top: 92px;
    padding-bottom: 18px;
  }

  html .hero.has-hero-bg .hero-meta {
    margin-top: 18px;
  }

  .hero .hero-copy .hero-actions {
    margin-top: 20px;
  }

  .has-hero-bg::before {
    background:
      linear-gradient(90deg, rgba(5,7,9,0.91) 0%, rgba(5,7,9,0.70) 64%, rgba(5,7,9,0.32) 100%),
      linear-gradient(0deg, rgba(5,7,9,0.86) 0%, rgba(5,7,9,0.20) 56%, rgba(5,7,9,0.12) 100%);
  }

  .hero-copy,
  html[data-theme="dark"] .hero-copy {
    width: 100%;
    padding-left: 0;
  }

  .hero .hero-copy .display-1 {
    max-width: 15ch;
    font-size: clamp(2.7rem, 12vw, 3.65rem);
    line-height: 0.98;
  }

  .hero .hero-copy .display-1.hero-title-stacked {
    max-width: none;
    font-size: clamp(1.5rem, 7.5vw, 2.75rem);
    line-height: 0.94;
  }

  .page-hero .hero-copy .display-1 {
    max-width: 15ch;
    font-size: clamp(2.6rem, 11vw, 3.35rem);
    line-height: 0.98;
  }

  .page-hero .hero-copy .projects-hero-title {
    max-width: none;
    font-size: clamp(1.8rem, 6.5vw, 3.5rem);
    line-height: 0.95;
  }

  .pd-hero .pd-head h1 {
    font-size: clamp(3.2rem, 15vw, 4rem);
  }

  .article-hero .hero-copy .display-2 {
    max-width: 16ch;
    font-size: clamp(2.55rem, 11vw, 3rem);
  }

  .hero-copy .lede {
    max-width: 46ch;
    margin-top: 22px;
    font-size: 1rem;
    line-height: 1.55;
  }

  .hero-copy .hero-actions {
    gap: 9px;
    margin-top: 26px;
  }

  .hero-copy .btn {
    min-height: 46px;
    padding: 13px 18px;
    font-size: 10.5px;
  }

  .has-hero-bg .hero-meta {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-top: 30px;
  }

  .has-hero-bg .hero-meta-item {
    display: block;
    min-width: 0;
    padding: 15px 10px;
    border-right: 1px solid var(--hero-line);
    border-bottom: 0;
  }

  .has-hero-bg .hero-meta-item .hm-icon {
    display: none;
  }

  .has-hero-bg .hero-meta-item .num {
    font-size: 1.65rem;
  }

  .has-hero-bg .hero-meta-item .lbl {
    margin-top: 7px;
    font-size: 10px;
    line-height: 1.45;
    letter-spacing: 0.08em;
  }

  .has-hero-bg .pd-meta-grid {
    grid-template-columns: 1fr;
    margin-top: 28px;
  }

  .has-hero-bg .pd-meta-item {
    display: grid;
    grid-template-columns: 74px 1fr;
    gap: 14px;
    align-items: baseline;
    padding: 11px 0;
    border-right: 0;
    border-bottom: 1px solid var(--hero-line);
  }

  .has-hero-bg .pd-meta-item:last-child {
    border-bottom: 0;
  }

  .has-hero-bg .pd-meta-item .v {
    margin-top: 0;
    font-size: 14px;
  }

  .hero-copy .contact-email {
    overflow-wrap: anywhere;
  }

  .hero-bg img[src$="hero-home-authentic-lab-v3.webp"] { object-position: 70% 50%; }
  .hero-bg img[src$="hero-projects.jpg"] { object-position: 62% 50%; }
  .hero-bg img[src$="approach.jpg"] { object-position: 68% 50%; }
  .hero-bg img[src$="hero-projects-v2.webp"] { object-position: 70% 50%; }
  .hero-bg img[src$="approach-hero-v2.webp"] { object-position: 70% 50%; }
  .hero-bg img[src$="hero-founder-v2.webp"] { object-position: 70% 50%; }
  .hero-bg img[src$="hero-insights-v2.webp"] { object-position: 70% 50%; }
  .hero-bg img[src$="zhilicon-hero-research-v2.webp"] { object-position: 76% 50%; }
  .hero-bg img[src$="scutum-hero-research-v2.webp"] { object-position: 78% 50%; }
  .hero-bg img[src$="sylvain-hero-research-v2.webp"] { object-position: 76% 50%; }
  .hero-bg img[src$="fable-hero-research-v2.webp"] { object-position: 78% 50%; }
}

@media (max-width: 430px) {
  .page-hero .hero-copy .display-1 {
    font-size: clamp(2.45rem, 11.5vw, 3.05rem);
  }

  .page-hero .hero-copy .display-1.projects-hero-title {
    font-size: clamp(1.85rem, 9.7vw, 2.6rem);
  }

  .page-hero .hero-copy .lede {
    font-size: 0.95rem;
  }

  .article-hero .hero-copy .display-2 {
    font-size: clamp(2.35rem, 11vw, 3rem);
  }
}

@media (max-height: 820px) and (orientation: landscape) and (min-width: 901px) {
  .hero.has-hero-bg > .container {
    padding-top: 80px;
    padding-bottom: 16px;
  }

  .hero .hero-copy .display-1 {
    font-size: clamp(3.7rem, 6.2vw, 4.8rem);
  }

  html .hero.has-hero-bg .hero-meta {
    margin-top: 14px;
  }

  .hero .hero-copy .hero-actions {
    margin-top: 16px;
  }
}

@media (max-height: 700px) and (orientation: landscape) {
  .hero.has-hero-bg,
  .page-hero.has-hero-bg,
  .pd-hero.has-hero-bg,
  .article-hero.has-hero-bg {
    min-height: 640px;
  }

  .has-hero-bg > .container {
    padding-top: 98px;
    padding-bottom: 24px;
  }

  .hero .hero-copy .display-1 {
    font-size: clamp(3rem, 6vw, 3.3rem);
    line-height: 0.98;
  }

  .page-hero .hero-copy .display-1 {
    font-size: clamp(2.75rem, 5.5vw, 3rem);
  }

  .pd-hero .pd-head h1 {
    font-size: clamp(3.2rem, 6.5vw, 3.6rem);
  }

  .article-hero .hero-copy .display-2 {
    font-size: clamp(2.6rem, 5vw, 3rem);
  }

  .hero-copy .lede {
    margin-top: 18px;
    font-size: 0.95rem;
    line-height: 1.48;
  }

  .hero-copy .eyebrow,
  .hero-copy .article-meta,
  .hero-kicker {
    margin-bottom: 16px !important;
  }

  .hero-copy .back-link {
    margin-bottom: 20px;
  }

  .hero-copy .hero-actions {
    margin-top: 20px;
  }

  .has-hero-bg .hero-meta,
  .has-hero-bg .pd-meta-grid {
    margin-top: 24px;
  }

  .has-hero-bg .hero-meta-item,
  .has-hero-bg .pd-meta-item {
    padding-top: 12px;
    padding-bottom: 12px;
  }

  .hero.has-hero-bg > .container {
    padding-top: 78px;
    padding-bottom: 12px;
  }

  .hero .hero-copy .display-1 {
    font-size: 3rem;
  }

  html .hero.has-hero-bg .hero-meta {
    margin-top: 10px;
  }

  .hero .hero-copy .hero-actions {
    margin-top: 14px;
  }
}

/* ============================================================
   RESEARCH VISUAL REFINEMENT
   Image-led ABQS tiles, semantic research glyphs and media pacing.
   ============================================================ */

.research-icon-library {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
  pointer-events: none;
}

.research-icon {
  position: relative;
  display: inline-grid;
  width: 42px;
  height: 42px;
  place-items: center;
  color: var(--accent);
}

.research-icon::after {
  content: none;
  display: none;
}

.research-icon svg,
.abqs-tile-icon svg {
  width: 29px;
  height: 29px;
  overflow: visible;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.35;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.abqs-tiles {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(14px, 1.4vw, 20px);
  list-style: none;
}

.abqs-tile {
  min-width: 0;
  overflow: hidden;
  color: #F5F5F1;
  background: #121518;
  border: 1px solid rgba(255,255,255,0.13);
  border-radius: 20px;
  transition: border-color 0.35s var(--ease), transform 0.35s var(--ease);
}

.abqs-tile:hover {
  border-color: rgba(255,116,64,0.55);
  transform: translateY(-4px);
}

.abqs-tile-media {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 5;
  background: #080A0C;
}

.abqs-tile-media::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(5,7,9,0.08) 35%, rgba(5,7,9,0.82) 100%),
    linear-gradient(90deg, rgba(5,7,9,0.25), transparent 55%);
  pointer-events: none;
}

.abqs-tile-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.82) contrast(1.08) brightness(0.84);
  transition: transform 0.8s var(--ease), filter 0.5s var(--ease);
}

.abqs-tile:nth-child(1) .abqs-tile-media img { object-position: 72% 50%; }
.abqs-tile:nth-child(2) .abqs-tile-media img { object-position: 76% 50%; }
.abqs-tile:nth-child(3) .abqs-tile-media img,
.abqs-tile:nth-child(4) .abqs-tile-media img { object-position: 50% 50%; }

.abqs-tile:hover .abqs-tile-media img {
  filter: saturate(0.96) contrast(1.08) brightness(0.88);
  transform: scale(1.035);
}

.abqs-tile-letter {
  position: absolute;
  z-index: 1;
  left: clamp(18px, 2vw, 26px);
  bottom: 14px;
  color: #F5F5F1;
  font-family: var(--font-display);
  font-size: clamp(3.8rem, 5.4vw, 5.1rem);
  font-weight: 500;
  line-height: 0.85;
  letter-spacing: -0.07em;
}

.abqs-tile-copy {
  min-height: 244px;
  padding: 24px clamp(20px, 2vw, 28px) 30px;
}

.abqs-tile-role {
  display: flex;
  gap: 10px;
  align-items: center;
  color: var(--hero-accent);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.abqs-tile-icon {
  display: inline-grid;
  width: 28px;
  height: 28px;
  place-items: center;
}

.abqs-tile-icon svg {
  width: 22px;
  height: 22px;
}

.abqs-tile h3 {
  margin-top: 20px;
  color: #F5F5F1;
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 1.55vw, 1.42rem);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.03em;
}

.abqs-tile p {
  margin-top: 15px;
  color: rgba(245,245,241,0.66);
  font-size: 13.5px;
  line-height: 1.65;
  text-wrap: pretty;
}

.abqs-convergence {
  display: grid;
  grid-template-columns: 140px minmax(280px, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(24px, 4vw, 60px);
  align-items: center;
  margin-top: clamp(46px, 5vw, 70px);
  padding-top: 30px;
  border-top: 1px solid rgba(255,255,255,0.2);
}

.abqs-convergence > span {
  color: rgba(245,245,241,0.48);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.abqs-convergence strong {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  color: #F5F5F1;
  font-family: var(--font-display);
  font-size: clamp(1.12rem, 1.55vw, 1.35rem);
  font-weight: 500;
}

.abqs-convergence strong i {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--hero-accent);
}

.abqs-convergence p {
  color: rgba(245,245,241,0.6);
  font-size: 13.5px;
  line-height: 1.65;
}

.research-media-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(16px, 2.2vw, 28px);
  margin-top: clamp(54px, 6vw, 78px);
}

.research-media-feature {
  margin: 0 0 clamp(58px, 7vw, 88px);
}

.research-media-image {
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}

.research-media-feature .research-media-image {
  aspect-ratio: 2.08 / 1;
}

.research-media-feature--compact .research-media-image {
  aspect-ratio: 2.35 / 1;
}

.research-media-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ease);
}

.research-media-feature:hover .research-media-image img,
.research-media-grid figure:hover .research-media-image img {
  transform: scale(1.025);
}

.research-media-grid figcaption,
.research-media-feature figcaption {
  display: flex;
  flex-wrap: wrap;
  gap: 7px 12px;
  padding: 13px 2px 0;
  color: var(--text-3);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  line-height: 1.5;
  text-transform: uppercase;
}

.research-media-grid figcaption span,
.research-media-feature figcaption span {
  color: var(--accent);
}

.founder-portrait {
  aspect-ratio: 4 / 5;
  border-radius: var(--radius-lg);
}

.founder-identity {
  margin-top: 28px;
}

.founder-identity .eyebrow {
  display: block;
  width: max-content;
  max-width: none;
  color: var(--accent);
  font-family: var(--font-body);
  font-size: clamp(11px, 0.9vw, 13px);
  font-weight: 500;
  letter-spacing: 0.015em;
  line-height: 1.3;
  text-transform: uppercase;
  white-space: nowrap;
}

.founder-identity .display-3 {
  margin-top: 13px;
}

@media (max-width: 1100px) {
  .abqs-tiles {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .abqs-tile-media {
    aspect-ratio: 4 / 3;
  }

  .abqs-tile-copy {
    min-height: 214px;
  }

  .abqs-convergence {
    grid-template-columns: 120px minmax(240px, 0.8fr) minmax(0, 1.2fr);
    gap: 28px;
  }
}

@media (max-width: 820px) {
  .abqs-convergence {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .founder-profile-aside {
    grid-template-rows: auto;
    align-items: end;
  }

  .founder-portrait {
    grid-row: auto;
  }

  .founder-identity {
    margin: 0 0 2px;
  }
}

@media (max-width: 700px) {
  .research-icon {
    width: 36px;
    height: 36px;
  }

  .research-icon svg {
    width: 26px;
    height: 26px;
  }

  .research-media-grid {
    grid-template-columns: 1fr;
  }

  .research-media-feature .research-media-image,
  .research-media-feature--compact .research-media-image {
    aspect-ratio: 4 / 3;
  }

  .founder-identity {
    margin-top: 26px;
  }
}

@media (max-width: 620px) {
  .abqs-tiles {
    grid-template-columns: 1fr;
  }

  .abqs-tile-media {
    aspect-ratio: 5 / 4;
  }

  .abqs-tile-copy {
    min-height: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .has-hero-bg .hero-bg,
  .has-hero-bg .hero-bg img {
    transform: none !important;
  }
}

/* ============================================================
   ABQS SYSTEMS PLATE
   A cardless architectural view of the lab's shared platform.
   ============================================================ */

.abqs-platform {
  position: relative;
  overflow: hidden;
  color: #F5F5F1;
  background: #0B0D0F;
  border-top: 1px solid rgba(255,255,255,0.08);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.abqs-platform .container {
  position: relative;
  z-index: 1;
}

.abqs-head {
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(360px, 1.12fr);
  gap: clamp(56px, 9vw, 132px);
  align-items: end;
  margin-bottom: clamp(64px, 8vw, 96px);
}

.abqs-platform .eyebrow {
  margin-bottom: 24px;
  color: var(--hero-accent);
}

.abqs-platform .display-2 {
  max-width: 12ch;
  color: #F5F5F1;
  font-size: clamp(3rem, 5.1vw, 4.5rem);
  line-height: 0.98;
  letter-spacing: -0.05em;
  text-wrap: balance;
}

.abqs-thesis {
  max-width: 58ch;
  color: rgba(245,245,241,0.69);
  font-size: clamp(1.02rem, 1.3vw, 1.16rem);
  line-height: 1.72;
  text-wrap: pretty;
}

.abqs-system {
  display: grid;
  grid-template-columns: minmax(230px, 0.62fr) minmax(0, 1.55fr);
  gap: clamp(48px, 7vw, 106px);
  border-top: 1px solid rgba(255,255,255,0.24);
}

.abqs-signature {
  align-self: start;
  position: sticky;
  top: 112px;
  margin-top: 40px;
  padding: 4px 0 4px clamp(20px, 2.3vw, 34px);
  border-left: 1px solid var(--hero-accent);
}

.abqs-word {
  display: block;
  margin-left: -0.075em;
  color: #F5F5F1;
  font-family: var(--font-display);
  font-size: clamp(5.2rem, 9vw, 8.5rem);
  font-weight: 500;
  line-height: 0.8;
  letter-spacing: -0.09em;
}

.abqs-caption,
.abqs-role,
.abqs-synthesis-label {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.abqs-caption {
  display: block;
  margin-top: 28px;
  color: var(--hero-accent);
}

.abqs-signature p {
  max-width: 30ch;
  margin-top: 16px;
  color: rgba(245,245,241,0.56);
  font-size: 14px;
  line-height: 1.65;
}

.abqs-stack {
  min-width: 0;
}

.abqs-layers {
  position: relative;
  list-style: none;
}

.abqs-layers::before {
  content: '';
  position: absolute;
  top: 72px;
  bottom: 72px;
  left: 28px;
  width: 1px;
  background: linear-gradient(180deg, transparent, rgba(255,116,64,0.32) 12%, rgba(255,116,64,0.32) 88%, transparent);
}

.abqs-layer {
  display: grid;
  grid-template-columns: 58px minmax(190px, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(20px, 2.8vw, 38px);
  align-items: center;
  min-height: 146px;
  padding: 28px 16px 28px 0;
  border-bottom: 1px solid rgba(255,255,255,0.14);
  transition: background-color 0.3s var(--ease);
}

.abqs-layer:hover {
  background: rgba(255,255,255,0.025);
}

.abqs-key {
  position: relative;
  z-index: 1;
  width: 100%;
  color: rgba(245,245,241,0.34);
  background: #0B0D0F;
  font-family: var(--font-display);
  font-size: clamp(2.7rem, 4vw, 3.75rem);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.05em;
  transition: color 0.3s var(--ease);
}

.abqs-layer:hover .abqs-key {
  color: var(--hero-accent);
}

.abqs-role {
  display: block;
  margin-bottom: 9px;
  color: var(--hero-accent);
}

.abqs-identity h3 {
  color: #F5F5F1;
  font-size: clamp(1.1rem, 1.65vw, 1.35rem);
  font-weight: 500;
  letter-spacing: -0.02em;
}

.abqs-layer > p {
  max-width: 46ch;
  color: rgba(245,245,241,0.62);
  font-size: 14.5px;
  line-height: 1.65;
}

.abqs-synthesis {
  display: grid;
  grid-template-columns: 130px minmax(260px, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(20px, 2.8vw, 38px);
  align-items: center;
  padding: 30px 16px 0 0;
}

.abqs-synthesis-label {
  color: rgba(245,245,241,0.46);
}

.abqs-synthesis strong {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  color: #F5F5F1;
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 1.7vw, 1.4rem);
  font-weight: 500;
  letter-spacing: -0.02em;
}

.abqs-synthesis strong i {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--hero-accent);
}

.abqs-synthesis p {
  color: rgba(245,245,241,0.56);
  font-size: 13.5px;
  line-height: 1.6;
}

@media (max-width: 1040px) {
  .abqs-head {
    grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1.1fr);
    gap: 52px;
  }

  .abqs-system {
    grid-template-columns: 220px minmax(0, 1fr);
    gap: 48px;
  }

  .abqs-layer {
    grid-template-columns: 48px minmax(160px, 0.8fr) minmax(0, 1.2fr);
    gap: 18px;
  }

  .abqs-synthesis {
    grid-template-columns: 110px minmax(230px, 0.9fr) minmax(0, 1.1fr);
    gap: 18px;
  }
}

@media (max-width: 820px) {
  .abqs-head,
  .abqs-system {
    grid-template-columns: 1fr;
  }

  .abqs-head {
    gap: 30px;
    margin-bottom: 64px;
  }

  .abqs-thesis {
    max-width: 62ch;
  }

  .abqs-system {
    gap: 42px;
  }

  .abqs-signature {
    position: static;
    max-width: 560px;
    margin-top: 34px;
  }
}

@media (max-width: 620px) {
  .abqs-platform {
    padding-top: 92px;
    padding-bottom: 92px;
  }

  .abqs-platform .display-2 {
    font-size: clamp(2.55rem, 12vw, 3.25rem);
  }

  .abqs-system {
    gap: 34px;
  }

  .abqs-signature {
    margin-top: 28px;
    padding-left: 18px;
  }

  .abqs-word {
    font-size: clamp(4.9rem, 24vw, 6.2rem);
  }

  .abqs-layer {
    grid-template-columns: 42px minmax(0, 1fr);
    gap: 16px;
    min-height: 0;
    padding: 24px 0;
  }

  .abqs-layers::before {
    top: 30px;
    bottom: 30px;
    left: 20px;
  }

  .abqs-layer > p {
    grid-column: 2;
    margin-top: -4px;
    font-size: 14px;
  }

  .abqs-synthesis {
    grid-template-columns: 1fr;
    gap: 14px;
    padding-top: 28px;
  }

  .abqs-synthesis strong {
    gap: 8px;
  }
}

/* ============================================================
   V3 RESEARCH NARRATIVE
   Shared editorial architecture for Founder and Approach.
   ============================================================ */

.page-hero .hero-copy--dense {
  width: min(100%, 1040px);
  max-width: 1040px;
}

.page-hero .hero-copy--dense .display-1 {
  max-width: 22ch;
  font-size: clamp(3.1rem, 4.65vw, 4.75rem);
  line-height: 0.99;
}

.page-hero .hero-copy--dense .lede {
  max-width: 72ch;
  margin-top: clamp(20px, 2.5vh, 28px);
  font-size: clamp(1rem, 1.15vw, 1.08rem);
  line-height: 1.58;
}

.research-page .section {
  padding-top: clamp(104px, 9vw, 136px);
  padding-bottom: clamp(104px, 9vw, 136px);
}

.research-head {
  display: grid;
  grid-template-columns: minmax(190px, 0.45fr) minmax(0, 1.55fr);
  gap: clamp(44px, 7vw, 108px);
  align-items: start;
  margin-bottom: clamp(56px, 6vw, 80px);
}

.research-head > .eyebrow {
  max-width: 24ch;
  padding-top: 9px;
}

.research-head .display-2 {
  max-width: 18ch;
  font-size: clamp(2.45rem, 4.1vw, 3.65rem);
  line-height: 1.02;
  letter-spacing: 0.015em;
  text-wrap: balance;
}

.research-lede {
  max-width: 70ch;
  margin-top: 26px;
  color: var(--text-2);
  font-size: 1.02rem;
  line-height: 1.75;
  text-wrap: pretty;
}

.research-index,
.research-key,
.research-matrix-title > span,
.research-signals span,
.research-claims span,
.founder-role {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.research-index {
  color: var(--accent);
  padding-top: 5px;
}

.research-arguments,
.research-process,
.research-matrix,
.research-dependencies {
  list-style: none;
  border-top: 1px solid var(--line-strong);
}

.research-arguments > li,
.research-process > li {
  display: grid;
  grid-template-columns: 58px minmax(220px, 0.72fr) minmax(0, 1.28fr);
  gap: clamp(24px, 3.5vw, 54px);
  align-items: start;
  padding: clamp(32px, 3.5vw, 46px) 0;
  border-bottom: 1px solid var(--line);
}

.research-arguments h3,
.research-process h3,
.research-matrix h3 {
  color: var(--text);
  font-size: clamp(1.16rem, 1.7vw, 1.4rem);
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: -0.025em;
}

.research-arguments p,
.research-process p,
.research-dependencies p,
.research-matrix-body p,
.research-claims p,
.research-signals p {
  color: var(--text-2);
  font-size: 15px;
  line-height: 1.75;
  text-wrap: pretty;
}

.research-dependencies > li {
  display: grid;
  grid-template-columns: minmax(190px, 0.42fr) minmax(0, 1.58fr);
  gap: clamp(32px, 6vw, 92px);
  align-items: baseline;
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
}

.research-key {
  color: var(--accent);
}

.research-signals {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: clamp(52px, 6vw, 80px);
  border-top: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line-strong);
}

.research-signals > div {
  min-width: 0;
  padding: 28px clamp(18px, 2.4vw, 34px) 32px 0;
  border-right: 1px solid var(--line);
}

.research-signals > div + div {
  padding-left: clamp(18px, 2.4vw, 34px);
}

.research-signals > div:last-child {
  padding-right: 0;
  border-right: 0;
}

.research-signals span,
.research-claims span,
.research-matrix-title > span {
  display: block;
  margin-bottom: 13px;
  color: var(--accent);
}

.research-statement {
  max-width: 990px;
  margin-top: clamp(58px, 7vw, 88px);
  padding-left: clamp(22px, 2.8vw, 36px);
  color: var(--text);
  border-left: 2px solid var(--accent);
  font-family: var(--font-display);
  font-size: clamp(1.55rem, 2.7vw, 2.25rem);
  font-weight: 500;
  line-height: 1.35;
  letter-spacing: -0.03em;
  text-wrap: balance;
}

.research-matrix > li {
  display: grid;
  grid-template-columns: 58px minmax(230px, 0.72fr) minmax(0, 1.28fr);
  gap: clamp(24px, 3.5vw, 54px);
  align-items: start;
  padding: clamp(36px, 4vw, 54px) 0;
  border-bottom: 1px solid var(--line);
}

.research-matrix-title h3 {
  max-width: 23ch;
}

.research-matrix-body {
  max-width: 72ch;
}

.research-matrix-body p + p {
  margin-top: 18px;
}

.research-claims {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid var(--line-strong);
}

.research-claims article {
  padding: clamp(30px, 4vw, 48px) clamp(30px, 4vw, 56px) clamp(36px, 4.5vw, 56px) 0;
  border-bottom: 1px solid var(--line);
}

.research-claims article:nth-child(even) {
  padding-right: 0;
  padding-left: clamp(30px, 4vw, 56px);
  border-left: 1px solid var(--line);
}

.founder-profile-grid {
  display: grid;
  grid-template-columns: minmax(300px, 0.72fr) minmax(0, 1.28fr);
  gap: clamp(60px, 9vw, 132px);
  align-items: start;
}

.founder-profile-aside {
  position: sticky;
  top: 106px;
}

.founder-portrait {
  max-width: 430px;
  overflow: hidden;
  aspect-ratio: 1 / 1.06;
  border: 1px solid var(--line);
  background: var(--surface);
}

.founder-portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 20%;
}

.founder-profile-aside > .eyebrow {
  display: flex;
  max-width: 32ch;
  margin-top: 30px;
}

.founder-profile-aside .display-3 {
  margin-top: 16px;
  font-size: clamp(1.75rem, 2.6vw, 2.4rem);
}

.founder-role {
  margin-top: 14px;
  color: var(--text-3);
}

.founder-role a {
  color: var(--accent);
}

.editorial-prose {
  max-width: 720px;
  color: var(--text-2);
  font-size: clamp(1rem, 1.18vw, 1.08rem);
  line-height: 1.82;
}

.editorial-prose > p + p,
.editorial-prose > .editorial-quote + p {
  margin-top: 25px;
}

.editorial-prose strong {
  color: var(--text);
  font-weight: 600;
}

.editorial-prose > .editorial-finale {
  margin-top: clamp(40px, 5vw, 58px);
  padding-top: 24px;
  border-top: 1px solid var(--line-strong);
  color: var(--accent);
  font-family: var(--font-display);
  font-size: clamp(1.18rem, 1.7vw, 1.42rem);
  line-height: 1.4;
  letter-spacing: -0.015em;
}

.editorial-prose > .editorial-finale strong {
  color: inherit;
  font-weight: 500;
}

.editorial-quote {
  max-width: 660px;
  margin: clamp(44px, 6vw, 68px) 0;
  padding-left: clamp(22px, 2.8vw, 34px);
  color: var(--text);
  border-left: 2px solid var(--accent);
  font-family: var(--font-display);
  font-size: clamp(1.45rem, 2.3vw, 2rem);
  font-weight: 500;
  line-height: 1.38;
  letter-spacing: -0.025em;
  text-wrap: balance;
}

.research-cta .display-2 {
  max-width: 18ch;
  margin-top: 24px;
  font-size: clamp(2.6rem, 4.8vw, 4rem);
  line-height: 1.02;
  letter-spacing: -0.045em;
}

.research-cta-copy {
  max-width: 74ch;
  margin-top: 26px;
  color: var(--text-2);
  font-size: 1.02rem;
  line-height: 1.75;
}

.research-cta .hero-actions {
  margin-top: 36px;
}

@media (max-width: 980px) {
  .research-head {
    grid-template-columns: 170px minmax(0, 1fr);
    gap: 42px;
  }

  .research-arguments > li,
  .research-process > li,
  .research-matrix > li {
    grid-template-columns: 48px minmax(190px, 0.72fr) minmax(0, 1.28fr);
    gap: 24px;
  }

  .research-signals {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .research-signals > div:nth-child(2) {
    padding-right: 0;
    border-right: 0;
  }

  .research-signals > div:nth-child(n+3) {
    border-top: 1px solid var(--line);
  }

  .research-signals > div:nth-child(3) {
    padding-left: 0;
  }

  .founder-profile-grid {
    grid-template-columns: minmax(260px, 0.72fr) minmax(0, 1.28fr);
    gap: 54px;
  }
}

@media (max-width: 820px) {
  .research-head,
  .founder-profile-grid {
    grid-template-columns: 1fr;
  }

  .research-head {
    gap: 24px;
  }

  .research-head > .eyebrow {
    max-width: none;
    padding-top: 0;
  }

  .research-head .display-2 {
    max-width: 20ch;
  }

  .founder-profile-aside {
    position: static;
    display: grid;
    grid-template-columns: minmax(220px, 320px) 1fr;
    column-gap: 36px;
    align-items: end;
  }

  .founder-portrait {
    grid-row: 1 / span 3;
  }

  .founder-profile-aside > .eyebrow {
    margin-top: 0;
  }

  .editorial-prose {
    max-width: 680px;
  }
}

@media (max-width: 700px) {
  .page-hero .hero-copy--dense .display-1 {
    max-width: 18ch;
    font-size: clamp(2.2rem, 9.6vw, 2.85rem);
    line-height: 1.01;
  }

  .page-hero .hero-copy--dense .lede {
    max-width: 48ch;
    margin-top: 18px;
    font-size: 0.9rem;
    line-height: 1.48;
  }

  .research-page .section {
    padding-top: 92px;
    padding-bottom: 92px;
  }

  .research-head {
    margin-bottom: 48px;
  }

  .research-head .display-2 {
    font-size: clamp(2.25rem, 11vw, 3rem);
  }

  .research-lede {
    margin-top: 20px;
    font-size: 0.96rem;
  }

  .research-arguments > li,
  .research-process > li,
  .research-matrix > li {
    grid-template-columns: 42px minmax(0, 1fr);
    gap: 16px;
    padding: 30px 0;
  }

  .research-arguments p,
  .research-process p,
  .research-matrix-body {
    grid-column: 2;
  }

  .research-dependencies > li {
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 24px 0;
  }

  .research-signals {
    grid-template-columns: 1fr;
  }

  .research-signals > div,
  .research-signals > div + div,
  .research-signals > div:nth-child(3) {
    padding: 24px 0;
    border-top: 1px solid var(--line);
    border-right: 0;
  }

  .research-signals > div:first-child {
    border-top: 0;
  }

  .research-claims {
    grid-template-columns: 1fr;
  }

  .research-claims article,
  .research-claims article:nth-child(even) {
    padding: 30px 0 34px;
    border-left: 0;
  }

  .founder-profile-aside {
    display: block;
  }

  .founder-portrait {
    max-width: 340px;
  }

  .founder-profile-aside > .eyebrow {
    margin-top: 28px;
  }

  .editorial-prose {
    line-height: 1.76;
  }
}

@media (max-height: 700px) and (orientation: landscape) {
  .page-hero .hero-copy--dense .display-1 {
    max-width: 24ch;
    font-size: clamp(2.35rem, 4.8vw, 2.75rem);
    line-height: 1;
  }

  .page-hero .hero-copy--dense .lede {
    max-width: 84ch;
    margin-top: 14px;
    font-size: 0.86rem;
    line-height: 1.4;
  }
}

/* Final Founder portrait geometry: match the homepage 4:5 rounded frame. */
.founder-portrait {
  aspect-ratio: 4 / 5;
  border-radius: var(--radius-lg);
}

@media (max-width: 820px) {
  .founder-profile-aside {
    grid-template-rows: auto;
  }

  .founder-portrait {
    grid-row: auto;
  }

  .founder-identity {
    margin: 0 0 2px;
  }
}

@media (max-width: 700px) {
  .founder-identity {
    margin-top: 26px;
  }
}

/* ============================================================
   DYNAMIC EXPERIENCE v1
   Restrained motion for an institutional research site: one
   living hero, precise navigation feedback and evidence-led
   movement. Content remains fully readable without JavaScript.
   ============================================================ */

.scroll-progress {
  position: fixed;
  z-index: 1001;
  inset: 0 0 auto;
  height: 2px;
  background: var(--accent);
  box-shadow: 0 0 14px color-mix(in srgb, var(--accent) 42%, transparent);
  pointer-events: none;
  transform: scaleX(0);
  transform-origin: left center;
  will-change: transform;
}

.site-header,
.header-inner {
  transition:
    transform 0.24s var(--ease),
    background 0.28s ease,
    border-color 0.28s ease,
    padding 0.28s var(--ease);
}

html.is-scrolled .site-header:not(.over-hero) {
  box-shadow: 0 10px 34px rgba(8, 10, 12, 0.06);
}

html.is-scrolled .header-inner {
  padding-top: 12px;
  padding-bottom: 12px;
}

.site-nav {
  position: relative;
}

.nav-indicator {
  position: absolute;
  left: 0;
  bottom: -14px;
  width: 0;
  height: 1px;
  opacity: 0;
  background: var(--accent);
  pointer-events: none;
  transform: translate3d(0, 0, 0);
  transition:
    width 0.34s var(--ease),
    transform 0.34s var(--ease),
    opacity 0.18s ease;
}

.nav-indicator.is-visible {
  opacity: 1;
}

.site-header.over-hero .nav-indicator {
  background: var(--hero-accent);
}

.has-hero-bg .hero-copy {
  opacity: var(--hero-copy-opacity, 1);
  transform: translate3d(0, var(--hero-copy-y, 0px), 0);
  will-change: transform, opacity;
}

html.motion-ready .has-hero-bg .hero-bg img {
  transform: translate3d(var(--hero-pan-x, 0px), var(--hero-pan-y, 0px), 0) scale(1.075);
  transition:
    opacity 1.1s var(--ease),
    transform 1.45s var(--ease),
    filter 0.8s ease;
  will-change: transform;
}

html.motion-ready .has-hero-bg.hero-ready .hero-bg img {
  transform: translate3d(var(--hero-pan-x, 0px), var(--hero-pan-y, 0px), 0) scale(1.025);
}

html.motion-ready .has-hero-bg:not(.hero-ready) .hero-copy > * {
  opacity: 0;
  transform: translate3d(0, 18px, 0);
}

html.motion-ready .has-hero-bg.hero-ready .hero-copy > * {
  opacity: 1;
  transform: translate3d(0, 0, 0);
  transition:
    opacity 0.72s var(--ease),
    transform 0.9s var(--ease);
}

html.motion-ready .has-hero-bg.hero-ready .hero-copy > :nth-child(1) { transition-delay: 0.06s; }
html.motion-ready .has-hero-bg.hero-ready .hero-copy > :nth-child(2) { transition-delay: 0.14s; }
html.motion-ready .has-hero-bg.hero-ready .hero-copy > :nth-child(3) { transition-delay: 0.22s; }
html.motion-ready .has-hero-bg.hero-ready .hero-copy > :nth-child(4) { transition-delay: 0.30s; }
html.motion-ready .has-hero-bg.hero-ready .hero-copy > :nth-child(5) { transition-delay: 0.38s; }

.hero-scroll-cue {
  position: absolute;
  z-index: 2;
  right: clamp(28px, 4vw, 64px);
  bottom: clamp(34px, 5vh, 58px);
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--hero-ink-muted);
  opacity: var(--hero-cue-opacity, 1);
  pointer-events: none;
  transition: opacity 0.2s linear;
}

.hero-scroll-cue span {
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hero-scroll-cue i {
  position: relative;
  display: block;
  width: 44px;
  height: 1px;
  overflow: hidden;
  background: var(--hero-line);
}

.hero-scroll-cue i::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--hero-accent);
  transform: translateX(-100%);
  animation: rl-cue 2.2s var(--ease) 1s infinite;
}

@keyframes rl-cue {
  0% { transform: translateX(-105%); }
  48%, 62% { transform: translateX(0); }
  100% { transform: translateX(105%); }
}

html.motion-ready.reveal-ready .reveal {
  opacity: 0;
  transform: translate3d(0, 16px, 0);
  transition:
    opacity 0.62s var(--ease) var(--reveal-delay, 0ms),
    transform 0.72s var(--ease) var(--reveal-delay, 0ms),
    border-color 0.35s var(--ease),
    box-shadow 0.35s var(--ease);
}

html.motion-ready.reveal-ready .reveal-d1 { --reveal-delay: 100ms; }
html.motion-ready.reveal-ready .reveal-d2 { --reveal-delay: 200ms; }
html.motion-ready.reveal-ready .reveal-d3 { --reveal-delay: 300ms; }

html.motion-ready.reveal-ready .reveal.in {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

html.motion-ready.reveal-ready .project-card.reveal.in:hover,
html.motion-ready.reveal-ready .blog-card.reveal.in:hover,
html.motion-ready.reveal-ready .abqs-tile.reveal.in:hover {
  transform: translate3d(0, -4px, 0) scale(1);
}

.motion-media {
  position: relative;
  overflow: hidden;
}

.motion-media > img {
  transform: translate3d(
    var(--motion-pointer-x, 0px),
    calc(var(--motion-scroll-y, 0px) + var(--motion-pointer-y, 0px)),
    0
  ) scale(1.025);
  transition: transform 0.72s var(--ease), filter 0.45s ease;
}

.motion-media.is-motion-active > img {
  will-change: transform;
}

.project-card:hover .motion-media > img,
.project-card:focus-within .motion-media > img,
.feature-card:hover .motion-media > img,
.feature-card:focus-within .motion-media > img,
.blog-card:hover .motion-media > img,
.blog-card:focus-within .motion-media > img,
.abqs-tile:hover .motion-media > img,
.abqs-tile:focus-within .motion-media > img,
.research-media-feature:hover .motion-media > img,
.research-media-grid figure:hover .motion-media > img {
  transform: translate3d(
    var(--motion-pointer-x, 0px),
    calc(var(--motion-scroll-y, 0px) + var(--motion-pointer-y, 0px)),
    0
  ) scale(1.045);
}

.project-card:focus-within,
.blog-card:focus-within,
.feature-card:focus-within,
.abqs-tile:focus-within {
  border-color: var(--accent);
  outline: none;
}

.link-arrow {
  transition: color 0.3s ease, transform 0.35s var(--ease);
}

.link-arrow:hover,
.link-arrow:focus-visible,
a:hover .link-arrow,
a:focus-visible .link-arrow {
  transform: translateX(4px);
}

@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  html.motion-ready .manifesto-statement.motion-reading {
    color: transparent;
    background:
      linear-gradient(
        180deg,
        var(--text) 0%,
        var(--text) var(--reading-progress, 0%),
        color-mix(in srgb, var(--text) 44%, transparent) calc(var(--reading-progress, 0%) + 18%),
        color-mix(in srgb, var(--text) 44%, transparent) 100%
      );
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
  }
}

[hidden] {
  display: none !important;
}

@media (max-width: 900px), (hover: none) {
  .nav-indicator,
  .hero-scroll-cue {
    display: none;
  }

  .motion-media > img,
  .project-card:hover .motion-media > img,
  .feature-card:hover .motion-media > img,
  .blog-card:hover .motion-media > img,
  .abqs-tile:hover .motion-media > img,
  .research-media-feature:hover .motion-media > img,
  .research-media-grid figure:hover .motion-media > img {
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .scroll-progress,
  .hero-scroll-cue,
  .nav-indicator {
    display: none !important;
  }

  .has-hero-bg .hero-copy {
    opacity: 1 !important;
    transform: none !important;
  }

  .has-hero-bg .hero-copy > *,
  .motion-media > img {
    opacity: 1 !important;
    filter: none !important;
    transform: none !important;
  }

  .manifesto-statement.motion-reading {
    color: var(--text) !important;
    background: none !important;
    -webkit-text-fill-color: currentColor !important;
  }

  ::view-transition-old(root),
  ::view-transition-new(root) {
    animation: none !important;
  }
}

/* ============================================================
   PROJECT DOSSIER REFINEMENT
   A quieter institutional hierarchy, semantic research glyphs,
   and ruled systems layouts replace decorative numbering.
   ============================================================ */

.eyebrow::before,
.dossier-kicker::before {
  content: none !important;
  display: none !important;
}

.project-dossier {
  --dossier-reading: 64ch;
}

.project-dossier .pd-hero .pd-head h1 {
  max-width: 14ch;
  font-size: clamp(3.65rem, 6vw, 5.55rem);
  line-height: 0.95;
  letter-spacing: -0.052em;
}

.project-dossier .pd-head .eyebrow {
  margin-top: 0 !important;
}

.project-dossier .dossier-intro {
  padding-block: clamp(82px, 8vw, 118px);
}

.project-dossier .dossier-intro-grid {
  grid-template-columns: minmax(0, 0.88fr) minmax(360px, 1.12fr);
  gap: clamp(52px, 7vw, 104px);
}

.project-dossier .dossier-intro-grid > h2 {
  max-width: 15ch;
  font-size: clamp(2.4rem, 4.4vw, 4.35rem);
  line-height: 1.02;
  letter-spacing: -0.042em;
}

.project-dossier .dossier-intro-grid > div > .dossier-lede {
  max-width: 46ch;
  font-size: clamp(1.2rem, 1.7vw, 1.55rem);
  font-weight: 400;
  line-height: 1.48;
  letter-spacing: -0.018em;
}

.project-dossier .dossier-intro-grid > div > p:not(.dossier-lede) {
  max-width: 62ch;
  font-size: 0.98rem;
  line-height: 1.72;
}

.project-dossier .dossier-section {
  padding-block: clamp(82px, 8vw, 118px);
}

.project-dossier > .dossier-section:nth-of-type(even):not(.dossier-section--resource) {
  background: var(--bg-2);
}

.project-dossier .dossier-section-head {
  grid-template-columns: minmax(176px, 0.34fr) minmax(0, 1fr);
  gap: 18px clamp(48px, 7vw, 104px);
  align-items: start;
}

.project-dossier .dossier-section-head > .dossier-kicker {
  grid-column: 1;
  grid-row: 1;
  align-self: start;
  padding-top: 0.72rem;
  margin-bottom: 0;
}

.project-dossier .dossier-section-head > .dossier-heading {
  grid-column: 2;
  grid-row: 1;
  max-width: 19ch;
  font-size: clamp(2.15rem, 3.6vw, 3.65rem);
  line-height: 1.04;
  letter-spacing: -0.038em;
}

.project-dossier .dossier-section-head > .dossier-lede {
  grid-column: 2;
  grid-row: 2;
  max-width: 61ch;
  margin-top: 2px;
  font-family: var(--font-body);
  font-size: clamp(1.04rem, 1.35vw, 1.18rem);
  font-weight: 400;
  line-height: 1.66;
  letter-spacing: 0;
  color: var(--text-2);
}

.project-dossier .dossier-section-body {
  margin-top: clamp(44px, 5vw, 68px);
}

.project-dossier .dossier-section-body > p {
  width: min(100%, var(--dossier-reading));
  max-width: var(--dossier-reading);
  font-size: clamp(0.98rem, 1.08vw, 1.06rem);
  line-height: 1.78;
}

/* The opening problem is composed as a claim-and-evidence spread. */
@media (min-width: 1050px) {
  .project-dossier #problem .dossier-section-head {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: clamp(20px, 2.2vw, 34px);
    align-items: end;
    padding-bottom: clamp(38px, 4vw, 56px);
    border-bottom: 1px solid var(--dossier-rule, var(--line));
  }

  .project-dossier #problem .dossier-section-head > .dossier-kicker {
    grid-column: 1 / -1;
    grid-row: 1;
    padding-top: 0;
    margin-bottom: clamp(24px, 3vw, 40px);
  }

  .project-dossier #problem .dossier-section-head > .dossier-heading {
    grid-column: 1 / 8;
    grid-row: 2;
    max-width: 14ch;
    font-size: clamp(2.65rem, 4.25vw, 4.45rem);
    line-height: 0.99;
  }

  .project-dossier #problem .dossier-section-head > .dossier-lede {
    grid-column: 8 / -1;
    grid-row: 2;
    max-width: 45ch;
    margin: 0;
    align-self: end;
  }

  .project-dossier #problem .dossier-section-body {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 1.25em clamp(20px, 2.2vw, 34px);
  }

  .project-dossier #problem .dossier-section-body > p {
    grid-column: 8 / -1;
    width: 100%;
    max-width: 54ch;
    margin: 0;
  }

  .project-dossier #problem .dossier-section-body > p + p {
    margin-top: 0;
  }

  .project-dossier #problem .dossier-section-body > :not(p) {
    grid-column: 1 / -1;
  }
}

@media (min-width: 901px) and (max-width: 1049px) {
  .project-dossier #problem .dossier-section-head {
    grid-template-columns: 1fr;
    max-width: 850px;
  }

  .project-dossier #problem .dossier-section-head > .dossier-kicker,
  .project-dossier #problem .dossier-section-head > .dossier-heading,
  .project-dossier #problem .dossier-section-head > .dossier-lede {
    grid-column: 1;
    grid-row: auto;
  }

  .project-dossier #problem .dossier-section-head > .dossier-kicker {
    padding-top: 0;
    margin-bottom: 10px;
  }

  .project-dossier #problem .dossier-section-body > p {
    max-width: 64ch;
    margin-left: 0;
  }
}

.project-dossier .dossier-section-body > :is(
  .dossier-architecture,
  .dossier-flow,
  .dossier-specs,
  .dossier-roadmap,
  .dossier-modules,
  .dossier-audiences,
  .dossier-media,
  .dossier-callout
):first-child {
  margin-top: 0;
}

.project-dossier .dossier-kicker {
  gap: 0;
  font-size: 9.5px;
  letter-spacing: 0.16em;
}

.dossier-glyph {
  position: relative;
  display: inline-grid !important;
  place-items: start;
  width: 44px;
  height: 44px;
  margin: 0;
  color: var(--accent) !important;
  font: inherit;
  letter-spacing: 0;
}

.dossier-glyph::after {
  content: none;
  display: none;
}

.dossier-glyph svg {
  width: 31px;
  height: 31px;
  overflow: visible;
}

.dossier-glyph-accent {
  fill: var(--accent);
  stroke: none;
}

.project-dossier .dossier-resource > a.btn.btn-ink {
  color: var(--btn-ink-text);
  background: var(--btn-ink-bg);
  border-color: var(--btn-ink-bg);
  text-decoration: none;
}

.project-dossier .dossier-resource > a.btn.btn-ink:is(:hover, :focus-visible) {
  color: #fff;
  background: var(--accent);
  border-color: var(--accent);
}

.dossier-code {
  display: block;
  margin-bottom: 18px;
  font-family: var(--font-mono);
  font-size: 9.5px;
  font-weight: 500;
  letter-spacing: 0.14em;
  line-height: 1.45;
  text-transform: uppercase;
  color: var(--accent);
}

.project-dossier .dossier-architecture {
  gap: 0 clamp(38px, 5vw, 72px);
  margin-top: clamp(42px, 5vw, 68px);
}

.project-dossier .dossier-architecture-item {
  grid-template-columns: 52px minmax(0, 1fr);
  gap: 20px;
  align-items: start;
  padding-block: clamp(26px, 3vw, 38px);
}

.project-dossier .dossier-architecture-item h3,
.project-dossier .dossier-module h3,
.project-dossier .dossier-audiences h3 {
  font-size: clamp(1.16rem, 1.55vw, 1.42rem);
  line-height: 1.24;
}

.project-dossier .dossier-architecture-item p,
.project-dossier .dossier-module p,
.project-dossier .dossier-audiences p {
  margin-top: 10px;
  font-size: 0.93rem;
  line-height: 1.68;
}

.project-dossier .dossier-flow {
  display: block;
  margin-top: clamp(42px, 5vw, 68px);
  border-bottom: 0;
}

.project-dossier .dossier-flow-step,
.project-dossier .dossier-flow-step:nth-child(2n) {
  display: grid;
  grid-template-columns: 56px minmax(190px, 0.52fr) minmax(0, 1fr);
  gap: clamp(20px, 3vw, 46px);
  align-items: start;
  padding: clamp(25px, 2.8vw, 34px) 0;
  border-top: 0;
  border-right: 0;
  border-bottom: 1px solid var(--dossier-rule, var(--line));
}

.project-dossier .dossier-flow-step::before,
.project-dossier .dossier-flow-step::after {
  content: none;
  display: none;
}

.project-dossier .dossier-flow-step > .dossier-glyph {
  margin-bottom: 0;
}

.project-dossier .dossier-flow-step h3 {
  padding-top: 2px;
  font-size: clamp(1.15rem, 1.5vw, 1.38rem);
  line-height: 1.28;
}

.project-dossier .dossier-flow-step p {
  max-width: 62ch;
  margin-top: 0;
  font-size: 0.94rem;
  line-height: 1.7;
}

.project-dossier .dossier-module > .dossier-glyph {
  margin-bottom: 17px;
}

.project-dossier .dossier-metric > span {
  display: block;
  margin-top: 14px;
  font-family: var(--font-mono);
  font-size: 9.5px;
  font-weight: 500;
  letter-spacing: 0.105em;
  line-height: 1.5;
  text-transform: uppercase;
  color: var(--text-3);
}

.project-dossier .dossier-metric > p {
  margin-top: 7px;
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1.5;
  text-transform: none;
  color: var(--text-2);
}

.project-dossier .dossier-media figcaption {
  display: grid;
  grid-template-columns: minmax(132px, 0.3fr) minmax(0, 1fr);
  gap: 20px;
  padding: 15px 17px 16px;
  font-family: var(--font-body);
  font-size: 0.79rem;
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1.55;
  text-transform: none;
}

.project-dossier .dossier-media figcaption > span {
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.1em;
  line-height: 1.5;
  text-transform: uppercase;
  color: var(--accent);
}

.project-dossier .dossier-media-frame > img[src$=".svg"] {
  padding: clamp(28px, 5vw, 72px);
  filter: none;
  opacity: 1;
}

.project-dossier .dossier-audiences {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.project-dossier .dossier-audiences > :nth-child(odd) {
  padding-left: 0;
  border-left: 0;
}

.project-dossier .dossier-audiences > :nth-child(even) {
  border-left: 1px solid var(--dossier-rule, var(--line));
}

.project-dossier--qontos .hero-bg img {
  object-position: center center;
}

@media (max-width: 900px) {
  .project-dossier .dossier-intro-grid,
  .project-dossier .dossier-section-head {
    grid-template-columns: 1fr;
  }

  .project-dossier .dossier-section-head > .dossier-kicker,
  .project-dossier .dossier-section-head > .dossier-heading,
  .project-dossier .dossier-section-head > .dossier-lede {
    grid-column: 1;
    grid-row: auto;
  }

  .project-dossier .dossier-section-head > .dossier-kicker {
    padding-top: 0;
    margin-bottom: 10px;
  }

  .project-dossier .dossier-section-head > .dossier-lede {
    margin-top: 7px;
  }

  .project-dossier .dossier-architecture,
  .project-dossier .dossier-specs,
  .project-dossier .dossier-callout {
    grid-template-columns: 1fr;
  }

  .project-dossier .dossier-section-body > p {
    margin-left: 0;
  }
}

@media (max-width: 680px) {
  .project-dossier .pd-hero .pd-head h1 {
    font-size: clamp(3.05rem, 14vw, 3.75rem);
    line-height: 0.97;
  }

  .project-dossier .dossier-intro,
  .project-dossier .dossier-section {
    padding-block: 68px;
  }

  .project-dossier .dossier-intro-grid > h2 {
    font-size: clamp(2.15rem, 10vw, 3rem);
  }

  .project-dossier .dossier-section-head > .dossier-heading {
    font-size: clamp(2rem, 9vw, 2.75rem);
  }

  .project-dossier .dossier-section-body {
    margin-top: 34px;
  }

  .project-dossier .dossier-architecture-item {
    grid-template-columns: 44px minmax(0, 1fr);
    gap: 14px;
  }

  .project-dossier .dossier-flow-step,
  .project-dossier .dossier-flow-step:nth-child(2n) {
    grid-template-columns: 44px minmax(0, 1fr);
    gap: 4px 14px;
    padding-block: 25px;
  }

  .project-dossier .dossier-flow-step p {
    grid-column: 2;
    margin-top: 8px;
  }

  .project-dossier .dossier-media figcaption {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .project-dossier .dossier-audiences {
    grid-template-columns: 1fr;
  }

  .project-dossier .dossier-audiences > *,
  .project-dossier .dossier-audiences > :nth-child(even) {
    padding-right: 0;
    padding-left: 0;
    border-left: 0;
  }

  .project-dossier .dossier-roadmap-item .dossier-status {
    grid-column: 1;
  }

  .project-dossier--qontos .hero-bg img {
    object-position: 58% center;
  }
}

/* ============================================================
   VIEWPORT CHAPTERS + PROJECT HANDOFFS
   Full-view pacing without wheel interception or scroll-jacking.
   ============================================================ */

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

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 1000;
  padding: 10px 14px;
  color: #fff;
  background: #101214;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .08em;
  text-transform: uppercase;
  transform: translateY(-160%);
}

.skip-link:focus {
  transform: translateY(0);
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.viewport-chapter {
  scroll-margin-top: 78px;
}

@media (min-width: 901px) and (min-height: 701px) {
  .viewport-chapter {
    min-height: calc(100svh - 64px);
    display: grid;
    align-items: center;
  }

  .viewport-chapter > .container {
    width: 100%;
  }

  main > .pd-body > .pd-section.viewport-chapter {
    align-content: center;
  }

  main > .pd-body > .pd-section.viewport-chapter > .eyebrow {
    position: sticky;
    top: 106px;
    align-self: start;
  }
}

.pd-nav {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line);
}

.pd-nav a {
  position: relative;
  display: flex;
  min-width: 0;
  min-height: clamp(142px, 17vw, 210px);
  padding: clamp(32px, 4.5vw, 58px) clamp(66px, 7vw, 104px);
  flex-direction: column;
  justify-content: center;
  gap: 13px;
  opacity: 1;
  transition: color 0.25s ease, background 0.3s ease;
}

.pd-nav a.next {
  align-items: flex-end;
  text-align: right;
  border-left: 1px solid var(--line);
}

.pd-nav-icon {
  position: absolute;
  top: 50%;
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  color: var(--accent);
  font-size: 1rem;
  line-height: 1;
  transform: translateY(-50%);
  transition: color 0.25s ease, background 0.25s ease, border-color 0.25s ease, transform 0.35s var(--ease);
}

.pd-nav-icon svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.pd-nav a.prev .pd-nav-icon {
  left: 0;
}

.pd-nav a.next .pd-nav-icon {
  right: 0;
}

.pd-nav a:hover,
.pd-nav a:focus-visible {
  opacity: 1;
  color: var(--accent);
  background: var(--surface-2);
}

.pd-nav a.prev:hover .pd-nav-icon,
.pd-nav a.prev:focus-visible .pd-nav-icon {
  color: #fff;
  background: var(--accent);
  border-color: var(--accent);
  transform: translate3d(-5px, -50%, 0);
}

.pd-nav a.next:hover .pd-nav-icon,
.pd-nav a.next:focus-visible .pd-nav-icon {
  color: #fff;
  background: var(--accent);
  border-color: var(--accent);
  transform: translate3d(5px, -50%, 0);
}

.pd-nav .mono.muted {
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.16em;
  line-height: 1.4;
  text-transform: uppercase;
  color: var(--accent);
}

.pd-nav-name {
  display: block;
  min-width: 0;
  font-family: var(--font-display);
  font-size: clamp(1.55rem, 2.8vw, 2.6rem);
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 1.05;
  color: var(--text);
}

.pd-nav-name .p-svg {
  display: none;
}

.pd-problem-media {
  grid-column: 1 / -1;
  margin: clamp(34px, 5vw, 68px) 0 0;
  overflow: hidden;
  border-top: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line);
}

.pd-problem-media-frame,
.project-dossier #problem .dossier-media-frame {
  height: auto;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #111417;
}

.pd-problem-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ease), filter 0.5s ease;
}

.pd-problem-media figcaption {
  display: grid;
  grid-template-columns: minmax(120px, 0.28fr) minmax(0, 1fr);
  gap: clamp(20px, 4vw, 58px);
  padding: 15px 0;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.08em;
  line-height: 1.55;
  text-transform: uppercase;
  color: var(--text-3);
}

.pd-problem-media figcaption > span {
  color: var(--accent);
}

.pd-section--problem .content h3 {
  max-width: 17ch;
  font-size: clamp(2.25rem, 4.1vw, 4.25rem);
  line-height: 1;
  letter-spacing: -0.045em;
  text-transform: none;
  color: var(--text);
}

.pd-section--problem .content p {
  max-width: 64ch;
}

@media (max-width: 860px) {
  .site-search-toggle {
    margin-left: auto;
  }

  .theme-toggle {
    margin-left: 0;
  }
}

@media (max-width: 680px) {
  .viewport-chapter {
    min-height: auto;
    scroll-margin-top: 68px;
  }

  .pd-nav {
    grid-template-columns: 1fr;
  }

  .pd-nav a {
    min-height: 124px;
    padding: 26px 64px;
  }

  .pd-nav a.next {
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .pd-nav-name {
    font-size: clamp(1.45rem, 8vw, 2rem);
  }

  .pd-problem-media-frame,
  .project-dossier #problem .dossier-media-frame {
    height: auto;
  }

  .pd-problem-media figcaption {
    grid-template-columns: 1fr;
    gap: 6px;
  }
}

@media (max-height: 700px) and (orientation: landscape),
       (prefers-reduced-motion: reduce) {
  .viewport-chapter {
    min-height: auto;
  }

  main > .pd-body > .pd-section.viewport-chapter > .eyebrow {
    position: static;
  }
}

/* ============================================================
   WORLD-CLASS LAB EXPERIENCE v2
   Content-proportional chapters, cinematic research media and a
   single cardless interaction language across the whole site.
   ============================================================ */

:root {
  --label: #7b3010;
  --muted-readable: #616970;
  --chrome-compact: 62px;
  --lab-section-space: clamp(88px, 9vw, 142px);
}

html[data-theme="dark"] {
  --label: #f49b73;
  --muted-readable: #b9c0c7;
}

/* The former runtime full-screen rule created artificial blank canvases. */
.viewport-chapter,
main > .pd-body > .pd-section.viewport-chapter {
  display: block !important;
  min-height: 0 !important;
  align-content: initial !important;
}

.lab-chapter {
  position: relative;
  min-height: 0;
  scroll-margin-top: calc(var(--chrome-compact) + 28px);
}

.lab-chapter::after {
  content: '';
  position: absolute;
  z-index: 2;
  top: 0;
  left: 0;
  width: clamp(72px, 8vw, 126px);
  height: 1px;
  background: var(--accent);
  pointer-events: none;
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform .7s var(--ease);
}

.lab-chapter.is-lab-active::after {
  transform: scaleX(1);
}

.lab-page-home .lab-chapter.section,
.lab-page-research .lab-chapter.section {
  padding-block: var(--lab-section-space);
}

.lab-page-dossier .dossier-intro,
.lab-page-dossier .dossier-section {
  min-height: 0;
  padding-block: clamp(84px, 8vw, 124px);
}

/* A slim, ruled section index replaces full-screen scroll staging. */
.lab-chapter-rail {
  --lab-rail-progress: 0%;
  position: fixed;
  z-index: 79;
  top: 50%;
  right: 15px;
  display: flex;
  gap: 12px;
  align-items: center;
  color: var(--muted-readable);
  pointer-events: none;
  transform: translateY(-50%);
}

.lab-rail-context {
  display: none;
}

.lab-rail-current {
  max-height: 190px;
  overflow: hidden;
  font-family: var(--font-mono);
  font-size: 8.5px;
  font-weight: 500;
  letter-spacing: .12em;
  line-height: 1.35;
  text-transform: uppercase;
  text-overflow: ellipsis;
  white-space: nowrap;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
}

.lab-rail-segments {
  position: relative;
  display: flex;
  padding-block: 5px;
  flex-direction: column;
}

.lab-rail-segments::before,
.lab-rail-segments::after {
  content: '';
  position: absolute;
  z-index: -1;
  top: 12px;
  bottom: 12px;
  left: 50%;
  width: 1px;
  background: var(--line);
  transform: translateX(-50%);
}

.lab-rail-segments::after {
  bottom: auto;
  height: var(--lab-rail-progress);
  max-height: calc(100% - 24px);
  background: color-mix(in srgb, var(--accent) 45%, transparent);
  transition: height .45s var(--ease);
}

.lab-rail-segments button {
  position: relative;
  display: grid;
  width: 38px;
  height: 18px;
  padding: 0;
  place-items: center end;
  border: 0;
  color: inherit;
  background: transparent;
  cursor: pointer;
  pointer-events: auto;
}

.lab-rail-segments button::before {
  content: '';
  width: 12px;
  height: 1px;
  background: var(--muted-readable);
  transition: width .32s var(--ease), background .25s ease;
}

.lab-rail-segments button:is(:hover, :focus-visible, .is-active)::before {
  width: 30px;
  background: var(--accent);
}

.lab-rail-segments button:focus-visible {
  outline: 1px solid var(--accent);
  outline-offset: 2px;
}

/* Media enters through one precise exposure rather than blur and bounce. */
.lab-media-frame {
  isolation: isolate;
}

.lab-media-frame::after {
  content: '';
  position: absolute;
  z-index: 4;
  inset: 0;
  background: var(--bg-2);
  pointer-events: none;
  transform: translate3d(0, 0, 0);
  transform-origin: top;
  transition: transform .9s var(--ease);
}

.lab-media-frame.is-media-revealed::after {
  transform: translate3d(0, -101%, 0);
}

.lab-project-mosaic .lab-media-frame::after,
.abqs-tile .lab-media-frame::after {
  background: #101316;
}

/* Portfolio: image-led, asymmetric and cardless. */
.lab-project-mosaic {
  gap: 1px;
  overflow: hidden;
  background: var(--line-strong);
  border-top: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line-strong);
}

.lab-project-mosaic .project-card {
  position: relative;
  isolation: isolate;
  min-height: clamp(430px, 39vw, 560px);
  overflow: hidden;
  border: 0;
  border-radius: 0;
  color: #f7f7f3;
  background: #0b0d0f;
  box-shadow: none;
  transform: none !important;
}

.lab-project-mosaic .project-card::after {
  content: '';
  position: absolute;
  z-index: 4;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform .45s var(--ease);
}

.lab-project-mosaic .project-card:is(:hover, :focus-visible)::after {
  transform: scaleX(1);
}

.lab-project-mosaic .pc-media {
  position: absolute;
  z-index: -2;
  inset: 0;
  aspect-ratio: auto;
}

.lab-project-mosaic .pc-media::before,
.lab-project-mosaic .pc-media::after {
  content: '';
  position: absolute;
  z-index: 2;
  inset: 0;
  pointer-events: none;
}

.lab-project-mosaic .pc-media::before {
  background: linear-gradient(180deg, rgba(4,6,8,.36), transparent 36%);
}

.lab-project-mosaic .pc-media::after {
  background: linear-gradient(0deg, rgba(4,6,8,.96) 0%, rgba(4,6,8,.62) 43%, rgba(4,6,8,.05) 78%);
}

.lab-project-mosaic .pc-media img {
  filter: saturate(.82) contrast(1.04) brightness(.88);
}

.lab-project-mosaic .pc-media img.portfolio-shiora-image {
  object-position: right center;
}

.lab-project-mosaic .pc-body {
  position: relative;
  z-index: 3;
  min-height: 100%;
  padding: clamp(28px, 3vw, 44px);
  justify-content: flex-end;
  background: transparent !important;
}

.lab-project-mosaic .pc-top {
  margin-bottom: auto;
  color: rgba(255,255,255,.74);
  font-size: 10px;
}

.lab-project-mosaic .pc-icon {
  color: var(--hero-accent);
}

.lab-project-mosaic .project-card h3 {
  color: #fff;
  font-size: clamp(1.85rem, 3.5vw, 3.4rem);
  line-height: .98;
  letter-spacing: -.05em;
}

.lab-project-mosaic .pc-tagline {
  max-width: 38ch;
  color: rgba(255,255,255,.76);
  font-size: .94rem;
}

.lab-project-mosaic .pill {
  display: inline-flex;
  padding: 6px 0;
  border: 0;
  border-radius: 0;
  color: rgba(255,255,255,.62);
  background: transparent;
}

.lab-page-projects .lab-project-mosaic {
  grid-template-columns: repeat(12, minmax(0, 1fr));
  margin-top: 0 !important;
}

.lab-page-projects .lab-project-mosaic .project-card {
  grid-column: span 4;
  min-height: clamp(440px, 38vw, 560px);
}

.lab-page-projects .lab-project-mosaic .project-card:nth-child(1),
.lab-page-projects .lab-project-mosaic .project-card:nth-child(6),
.lab-page-projects .lab-project-mosaic .project-card:nth-child(11) {
  grid-column: span 7;
}

.lab-page-projects .lab-project-mosaic .project-card:nth-child(2),
.lab-page-projects .lab-project-mosaic .project-card:nth-child(7),
.lab-page-projects .lab-project-mosaic .project-card:nth-child(12) {
  grid-column: span 5;
}

@media (min-width: 901px) {
  .lab-page-projects .lab-project-mosaic.is-filtered .project-card:not([hidden]) {
    grid-column: span 6;
  }

  .lab-page-projects .lab-project-mosaic.is-filtered .project-card.is-filter-last {
    grid-column: 1 / -1;
  }
}

.lab-page-projects .section-sm {
  padding-top: 0;
}

.lab-page-projects .filter-bar {
  position: sticky;
  z-index: 78;
  top: var(--chrome-compact);
  flex-wrap: nowrap;
  gap: clamp(20px, 2.5vw, 36px);
  margin: 0;
  padding: 18px 0 17px;
  overflow-x: auto;
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--bg) 94%, transparent);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  scrollbar-width: none;
}

.lab-page-projects .filter-bar::-webkit-scrollbar {
  display: none;
}

.lab-page-projects .filter-btn {
  position: relative;
  flex: 0 0 auto;
  padding: 8px 0;
  border: 0;
  border-radius: 0;
  color: var(--muted-readable);
  background: transparent;
}

.lab-page-projects .filter-btn::after {
  content: '';
  position: absolute;
  right: 0;
  bottom: -18px;
  left: 0;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transition: transform .3s var(--ease);
}

.lab-page-projects .filter-btn:is(:hover, :focus-visible, .active) {
  color: var(--text);
  background: transparent;
}

.lab-page-projects .filter-btn.active::after {
  transform: scaleX(1);
}

/* The flagship becomes an editorial spread, not another card. */
.lab-feature {
  grid-template-columns: minmax(320px, .88fr) minmax(0, 1.12fr);
  min-height: clamp(520px, 55vw, 690px);
  border: 0;
  border-top: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line-strong);
  border-radius: 0;
  background: transparent;
  box-shadow: none !important;
}

.lab-feature .fc-text {
  padding: clamp(42px, 6vw, 82px) clamp(32px, 5vw, 70px) clamp(42px, 6vw, 82px) 0;
}

.lab-feature .fc-media {
  min-height: 100%;
}

.lab-feature .fc-media::after {
  content: '';
  position: absolute;
  inset: 0;
  box-shadow: inset 1px 0 var(--line);
  pointer-events: none;
}

.lab-feature:is(:hover, :focus-visible) {
  border-color: var(--line-strong);
  box-shadow: none;
}

.home-founder-copy {
  align-self: center;
}

.home-founder-copy .display-3 {
  margin: 24px 0 22px;
}

.home-founder-lede {
  max-width: 520px;
  color: var(--text-2);
}

/* ABQS uses the same hard-edged research-media language. */
.abqs-tiles {
  gap: 1px;
  background: rgba(255,255,255,.16);
  border-top: 1px solid rgba(255,255,255,.18);
  border-bottom: 1px solid rgba(255,255,255,.18);
}

.abqs-tile {
  border: 0;
  border-radius: 0;
  transform: none !important;
}

.abqs-tile-copy {
  border-top: 1px solid rgba(255,255,255,.12);
}

.abqs-tile .lab-media-frame::after,
.abqs-tile .lab-media-frame.is-motion-active::after {
  background:
    linear-gradient(180deg, rgba(5,7,9,.06) 35%, rgba(5,7,9,.82) 100%),
    linear-gradient(90deg, rgba(5,7,9,.24), transparent 55%);
  transform: none;
}

.abqs-tile:hover {
  border-color: transparent;
}

/* Project dossiers: tighter claims, broader evidence and aligned chrome. */
.dossier-index,
.insight-jump-nav {
  top: var(--chrome-compact);
}

.lab-chapter-rail {
  opacity: 0;
  visibility: hidden;
  transform: translate3d(10px, -50%, 0);
  transition: opacity .28s ease, visibility .28s ease, transform .4s var(--ease);
}

.lab-chapter-rail.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translate3d(0, -50%, 0);
}

.lab-project-mosaic .pc-media::after,
.lab-project-mosaic .pc-media.is-motion-active::after {
  transform: none;
  transition: none;
}

.dossier-index a,
.insight-jump-nav a {
  color: var(--muted-readable);
}

.dossier-hero-credit {
  font-size: 10px;
}

.dossier-hero-credit::before {
  width: 14px;
  height: 1px;
  border-radius: 0;
}

.dossier-glyph-accent {
  display: none !important;
  fill: none !important;
  stroke: none !important;
}

@media (min-width: 1050px) {
  .project-dossier #problem .dossier-section-body > p:nth-of-type(1) {
    grid-column: 1 / 7;
    max-width: 58ch;
  }

  .project-dossier #problem .dossier-section-body > p:nth-of-type(2) {
    grid-column: 7 / -1;
    max-width: 58ch;
  }
}

/* Long-form research reads as a paper, not six sparse full screens. */
.insight-section {
  min-height: 0;
  padding-block: clamp(78px, 8vw, 112px);
}

.insight-section:first-child {
  padding-top: 0;
}

.insight-hero > .container {
  padding-top: 0;
  padding-bottom: 0;
}

.insight-jump-nav a,
.insight-meta,
.insight-hero-record,
.insight-evidence,
.insight-source-note,
.insight-sources li > span,
.insight-sources li p,
.insight-sources li a,
.home-insight-meta small,
.home-insight-meta time,
.insight-feature > span,
.insight-feature > small,
.insights-publication-stats dd {
  font-size: 10px;
}

.insight-evidence > a {
  min-width: 34px;
  min-height: 34px;
}

.insight-jump-nav a,
.insight-hero-record,
.insight-sources li p {
  color: var(--muted-readable);
}

.insight-evidence > a,
.insight-sources li > span,
.insight-sources li a,
.home-insight-meta small,
.insight-feature > span {
  color: var(--label);
}

@media (max-width: 1260px), (hover: none) {
  .lab-chapter-rail {
    display: none;
  }
}

@media (max-width: 900px) {
  .lab-page-projects .lab-project-mosaic {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .lab-page-projects .lab-project-mosaic .project-card,
  .lab-page-projects .lab-project-mosaic .project-card:nth-child(n) {
    grid-column: auto;
    min-height: 450px;
  }

  .lab-feature {
    grid-template-columns: 1fr;
  }

  .lab-feature .fc-text {
    padding: 42px 0;
  }

  .lab-feature .fc-media {
    order: -1;
    min-height: clamp(310px, 58vw, 480px);
  }
}

@media (max-width: 680px) {
  :root {
    --lab-section-space: 84px;
  }

  .lab-page-projects .filter-bar {
    top: 58px;
    margin-inline: -20px;
    padding-inline: 20px;
  }

  .lab-page-projects .lab-project-mosaic {
    grid-template-columns: 1fr;
  }

  .lab-page-projects .lab-project-mosaic .project-card,
  .lab-page-projects .lab-project-mosaic .project-card:nth-child(n),
  .lab-page-home .lab-project-mosaic .project-card {
    min-height: 430px;
  }

  .lab-project-mosaic .pc-body {
    padding: 26px 22px;
  }

  .lab-project-mosaic .project-card h3 {
    font-size: clamp(2rem, 10vw, 2.8rem);
  }

  .project-card h3 .arrow {
    flex-basis: 24px;
    width: 24px;
    height: 24px;
  }

  .lab-media-frame::after {
    transition-duration: .45s;
  }

  .lab-feature {
    min-height: 0;
  }

  .lab-feature .fc-text {
    padding: 36px 0 42px;
  }

  .lab-page-dossier .dossier-intro,
  .lab-page-dossier .dossier-section {
    padding-block: 72px;
  }

  .insight-section {
    padding-block: 70px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .lab-chapter::after,
  .lab-media-frame::after,
  .lab-rail-segments::after,
  .lab-rail-segments button::before,
  .lab-project-mosaic .project-card::after {
    transition: none !important;
  }

  .lab-media-frame::after {
    display: none;
  }
}

/* ============================================================
   INSIGHTS PUBLICATION
   Evidence-led, cardless research index and long-form papers.
   ============================================================ */

.insights-page,
.insight-article {
  --insight-label: #9f3b10;
  background: var(--bg);
}

html[data-theme="dark"] .insights-page,
html[data-theme="dark"] .insight-article {
  --insight-label: #f18d60;
}

.home-insights-list {
  --insight-label: #9f3b10;
  margin-top: clamp(52px, 7vw, 84px);
  border-top: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line-strong);
}

html[data-theme="dark"] .home-insights-list {
  --insight-label: #f18d60;
}

.home-insights-list > a {
  display: grid;
  grid-template-columns: minmax(190px, .36fr) minmax(0, 1fr) 38px;
  gap: clamp(26px, 5vw, 76px);
  align-items: center;
  min-height: 164px;
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
  color: var(--text);
  transition: color .25s ease, padding .35s var(--ease), background .3s ease;
}

.home-insights-list > a:last-child {
  border-bottom: 0;
}

.home-insight-meta,
.home-insight-copy {
  display: flex;
  flex-direction: column;
}

.home-insight-meta {
  gap: 8px;
}

.home-insight-meta small,
.home-insight-meta time {
  font-family: var(--font-mono);
  font-size: 9px;
  font-style: normal;
  letter-spacing: .12em;
  line-height: 1.5;
  text-transform: uppercase;
}

.home-insight-meta small {
  color: var(--insight-label);
}

.home-insight-meta time {
  color: var(--text-2);
}

.home-insight-copy strong {
  max-width: 29ch;
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2.5vw, 2.25rem);
  font-weight: 500;
  letter-spacing: -.035em;
  line-height: 1.08;
  text-wrap: balance;
}

.home-insight-copy p {
  max-width: 74ch;
  margin: 13px 0 0;
  color: var(--text-2);
  font-size: .9rem;
  line-height: 1.65;
}

.home-insights-list > a > i {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--accent);
  font-style: normal;
  transition: transform .3s var(--ease), background .25s ease, color .25s ease, border-color .25s ease;
}

.home-insights-list > a:is(:hover, :focus-visible) {
  padding-right: 10px;
  padding-left: 10px;
  color: var(--accent);
  background: var(--surface);
}

.home-insights-list > a:is(:hover, :focus-visible) > i {
  color: #fff;
  background: var(--accent);
  border-color: var(--accent);
  transform: translateX(4px);
}

.insights-hero-index .hero-copy {
  max-width: 920px;
}

.insights-hero-index .lede {
  max-width: 720px;
}

.insights-manifesto {
  padding: clamp(92px, 12vw, 168px) 0;
  border-bottom: 1px solid var(--line);
}

.insights-manifesto > .container {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(420px, .75fr);
  gap: clamp(70px, 10vw, 150px);
  align-items: end;
}

.insights-manifesto-copy h2 {
  max-width: 16ch;
  margin-top: 22px;
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 5.2rem);
  font-weight: 500;
  letter-spacing: -.055em;
  line-height: .98;
  text-wrap: balance;
}

.insights-manifesto-copy p {
  max-width: 62ch;
  margin-top: 32px;
  color: var(--text-2);
  font-size: clamp(1rem, 1.4vw, 1.18rem);
  line-height: 1.75;
}

.insights-publication-stats {
  margin: 0;
  border-top: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line);
}

.insights-publication-stats > div {
  display: grid;
  grid-template-columns: minmax(100px, .45fr) 1fr;
  gap: 24px;
  align-items: baseline;
  padding: 25px 0;
  border-bottom: 1px solid var(--line);
}

.insights-publication-stats > div:last-child {
  border-bottom: 0;
}

.insights-publication-stats dt {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  font-weight: 500;
  letter-spacing: -.045em;
  color: var(--text);
}

.insights-publication-stats dd {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: .14em;
  line-height: 1.5;
  text-transform: uppercase;
  color: var(--text-2);
}

.insights-featured {
  padding: clamp(88px, 11vw, 150px) 0;
  background: var(--surface-2);
  border-bottom: 1px solid var(--line);
}

.insight-feature-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: clamp(54px, 7vw, 86px);
  border-top: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line-strong);
}

.insight-feature {
  position: relative;
  display: flex;
  min-height: clamp(360px, 40vw, 520px);
  padding: clamp(32px, 4vw, 54px);
  flex-direction: column;
  border-right: 1px solid var(--line);
  color: var(--text);
  transition: color .25s ease, background .35s ease;
}

.insight-feature:last-child {
  border-right: 0;
}

.insight-feature > span,
.insight-feature > small {
  font-family: var(--font-mono);
  font-size: 9px;
  font-style: normal;
  letter-spacing: .13em;
  line-height: 1.5;
  text-transform: uppercase;
  color: var(--insight-label);
}

.insight-feature > strong {
  display: block;
  max-width: 18ch;
  margin-top: auto;
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 3vw, 3.1rem);
  font-weight: 500;
  letter-spacing: -.045em;
  line-height: 1.02;
  text-wrap: balance;
}

.insight-feature > p {
  max-width: 46ch;
  margin: 22px 0 34px;
  color: var(--text-2);
  font-size: .92rem;
  line-height: 1.7;
}

.insight-feature > small {
  color: var(--text-2);
}

.insight-feature > small i {
  display: inline-block;
  margin-left: 8px;
  color: var(--accent);
  font-style: normal;
  transition: transform .3s var(--ease);
}

.insight-feature:is(:hover, :focus-visible) {
  color: var(--accent);
  background: var(--surface);
}

.insight-feature:is(:hover, :focus-visible) > small i {
  transform: translateX(5px);
}

.insights-catalogue {
  padding: clamp(96px, 12vw, 170px) 0;
}

.insights-catalogue-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 520px);
  gap: 50px;
  align-items: end;
}

.insights-catalogue-head h2 {
  margin-top: 20px;
  font-family: var(--font-display);
  font-size: clamp(3rem, 7vw, 7rem);
  font-weight: 500;
  letter-spacing: -.07em;
  line-height: .9;
}

.insights-search {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  padding: 14px 0;
  border-bottom: 1px solid var(--line-strong);
  color: var(--accent);
}

.insights-search input {
  width: 100%;
  min-width: 0;
  padding: 0;
  border: 0;
  outline: 0;
  color: var(--text);
  background: transparent;
  font-family: var(--font-display);
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  letter-spacing: -.025em;
}

.insights-search input::placeholder {
  color: var(--text-3);
}

.insights-search:focus-within {
  border-color: var(--insight-label);
  box-shadow: 0 2px 0 var(--insight-label);
}

.insights-filter-bar {
  display: flex;
  gap: 0 clamp(18px, 2.4vw, 36px);
  margin-top: clamp(48px, 6vw, 76px);
  overflow-x: auto;
  border-bottom: 1px solid var(--line);
  scrollbar-width: none;
}

.insights-filter-bar::-webkit-scrollbar {
  display: none;
}

.insights-filter-btn {
  position: relative;
  flex: 0 0 auto;
  padding: 0 0 16px;
  border: 0;
  color: var(--text-2);
  background: transparent;
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 500;
  letter-spacing: .12em;
  text-transform: uppercase;
  cursor: pointer;
  transition: color .22s ease;
}

.insights-filter-btn::after {
  content: '';
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .3s var(--ease);
}

.insights-filter-btn:is(:hover, :focus-visible, .active) {
  color: var(--text);
}

.insights-filter-btn.active::after {
  transform: scaleX(1);
}

.insights-result-meta {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 17px 0;
  border-bottom: 1px solid var(--line-strong);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--text-2);
}

.insights-result-meta > span:first-child {
  color: var(--insight-label);
}

.insight-index-list {
  border-bottom: 1px solid var(--line-strong);
}

.insight-index-item {
  display: grid;
  grid-template-columns: 54px minmax(170px, .45fr) minmax(0, 1.2fr) 38px;
  gap: clamp(22px, 4vw, 58px);
  align-items: center;
  min-height: 176px;
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
  color: var(--text);
  transition: color .24s ease, padding .35s var(--ease), background .3s ease;
}

.insight-index-item:last-child {
  border-bottom: 0;
}

.insight-index-meta i,
.insight-index-meta small {
  font-family: var(--font-mono);
  font-size: 9px;
  font-style: normal;
  letter-spacing: .12em;
  line-height: 1.5;
  text-transform: uppercase;
}

.insight-index-glyph {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  color: var(--accent);
}

.insight-index-glyph svg {
  width: 29px;
  height: 29px;
}

.insight-index-meta {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 8px;
}

.insight-index-meta i {
  color: var(--text-2);
}

.insight-index-meta small {
  color: var(--text-2);
}

.insight-index-copy strong {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2.5vw, 2.25rem);
  font-weight: 500;
  letter-spacing: -.035em;
  line-height: 1.08;
  text-wrap: balance;
}

.insight-index-copy p {
  max-width: 76ch;
  margin: 13px 0 0;
  color: var(--text-2);
  font-size: .9rem;
  line-height: 1.65;
}

.insight-index-arrow {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--accent);
  transition: transform .3s var(--ease), background .25s ease, color .25s ease, border-color .25s ease;
}

.insight-index-item:is(:hover, :focus-visible) {
  color: var(--accent);
  padding-right: 10px;
  padding-left: 10px;
  background: var(--surface-2);
}

.insight-index-item:is(:hover, :focus-visible) .insight-index-arrow {
  color: #fff;
  background: var(--accent);
  border-color: var(--accent);
  transform: translateX(4px);
}

.insights-empty {
  margin: 0;
  padding: 70px 0;
  border-bottom: 1px solid var(--line);
  color: var(--text-2);
}

/* Research note */
.insight-reading-progress {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 500;
  height: 2px;
  pointer-events: none;
}

.insight-reading-progress > i {
  display: block;
  width: 100%;
  height: 100%;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  will-change: transform;
}

.insight-hero.has-hero-bg {
  position: relative;
  display: flex;
  min-height: max(720px, 100svh);
  padding: clamp(150px, 18svh, 220px) 0 clamp(70px, 10svh, 110px);
  align-items: flex-end;
  overflow: hidden;
  color: #fff;
  background:
    radial-gradient(circle at 78% 22%, rgba(190, 78, 31, .22), transparent 28%),
    linear-gradient(135deg, #111417 0%, #171b1f 52%, #0b0d0f 100%);
}

.insight-hero.has-hero-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px);
  background-size: 72px 72px;
  -webkit-mask-image: linear-gradient(to bottom, rgba(0,0,0,.28), #000);
  mask-image: linear-gradient(to bottom, rgba(0,0,0,.28), #000);
  pointer-events: none;
}

.insight-hero.has-hero-bg::after {
  content: '';
  position: absolute;
  right: clamp(28px, 5vw, 76px);
  bottom: clamp(42px, 7vw, 92px);
  width: clamp(120px, 14vw, 220px);
  aspect-ratio: 1;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 50%;
  box-shadow: 0 0 0 34px rgba(255,255,255,.025), 0 0 0 68px rgba(255,255,255,.015);
  pointer-events: none;
}

.insight-hero > .container {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, .32fr);
  gap: clamp(60px, 10vw, 160px);
  align-items: end;
  width: min(calc(100% - 64px), 1360px);
}

.insight-hero-copy {
  max-width: 1050px;
}

.insight-hero .back-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: rgba(255,255,255,.72);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: .13em;
  text-transform: uppercase;
}

.insight-hero .back-link::before {
  content: '\2190';
  color: var(--accent);
}

.insight-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 26px;
  margin-top: clamp(46px, 7vw, 82px);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: rgba(255,255,255,.66);
}

.insight-meta > span:first-child {
  color: #ef895b;
}

.insight-hero h1 {
  max-width: 16ch;
  margin-top: 25px;
  font-family: var(--font-hero);
  font-size: clamp(3.35rem, 7vw, 7.4rem);
  font-weight: 500;
  letter-spacing: -.07em;
  line-height: .9;
  text-wrap: balance;
}

.insight-hero--long h1 {
  max-width: 19ch;
  font-size: clamp(3.15rem, 6vw, 6.35rem);
}

.insight-hero-copy > p {
  max-width: 69ch;
  margin-top: 30px;
  color: rgba(255,255,255,.74);
  font-size: clamp(1rem, 1.45vw, 1.2rem);
  line-height: 1.7;
}

.insight-hero-record {
  position: relative;
  display: flex;
  padding-top: 22px;
  flex-direction: column;
  gap: 13px;
  border-top: 1px solid rgba(255,255,255,.24);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: .12em;
  line-height: 1.5;
  text-transform: uppercase;
  color: rgba(255,255,255,.55);
}

.insight-hero-record > strong {
  color: #fff;
  font-family: var(--font-display);
  font-size: clamp(1.55rem, 2.5vw, 2.35rem);
  font-weight: 500;
  letter-spacing: -.035em;
  text-transform: none;
}

.insight-hero.has-hero-bg h1 {
  color: var(--hero-ink);
}

.insight-hero.has-hero-bg .insight-hero-record {
  color: var(--hero-ink-soft);
}

.insight-jump-nav {
  position: sticky;
  top: 57px;
  z-index: 90;
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
}

.insight-jump-nav > .container {
  display: flex;
  gap: 30px;
  overflow-x: auto;
  scrollbar-width: none;
}

.insight-jump-nav > .container::-webkit-scrollbar {
  display: none;
}

.insight-jump-nav a {
  position: relative;
  flex: 0 0 auto;
  padding: 18px 0 16px;
  font-family: var(--font-mono);
  font-size: 8.5px;
  letter-spacing: .11em;
  text-transform: uppercase;
  color: var(--text-2);
}

.insight-jump-nav a::after {
  content: '';
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
}

.insight-jump-nav a:is(:hover, :focus-visible, [aria-current="location"]) {
  color: var(--text);
}

.insight-jump-nav a[aria-current="location"]::after {
  transform: scaleX(1);
}

.insight-finding {
  padding: clamp(76px, 9vw, 124px) 0;
  background: var(--surface-2);
  border-bottom: 1px solid var(--line);
}

.insight-finding-head {
  display: grid;
  grid-template-columns: minmax(150px, .3fr) minmax(0, 1fr);
  gap: clamp(46px, 8vw, 120px);
  align-items: start;
}

.insight-finding-head h2 {
  max-width: 28ch;
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.45vw, 3.55rem);
  font-weight: 400;
  letter-spacing: -.04em;
  line-height: 1.06;
  text-wrap: balance;
}

.insight-metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  margin-top: clamp(70px, 10vw, 130px);
  border-top: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line-strong);
}

.insight-metric {
  min-width: 0;
  padding: clamp(28px, 4vw, 46px) clamp(20px, 2.5vw, 34px);
  border-right: 1px solid var(--line);
}

.insight-metric:first-child {
  padding-left: 0;
}

.insight-metric:last-child {
  padding-right: 0;
  border-right: 0;
}

.insight-metric > strong {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.5vw, 4.4rem);
  font-weight: 500;
  letter-spacing: -.06em;
  line-height: .95;
  color: var(--text);
}

.insight-metric > span {
  display: block;
  margin-top: 20px;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: .13em;
  line-height: 1.45;
  text-transform: uppercase;
  color: var(--insight-label);
}

.insight-metric > p {
  margin: 11px 0 0;
  color: var(--text-2);
  font-size: .82rem;
  line-height: 1.6;
}

.insight-reading-layout {
  display: grid;
  grid-template-columns: minmax(190px, 250px) minmax(0, 790px);
  gap: clamp(80px, 11vw, 170px);
  justify-content: start;
  padding-top: clamp(92px, 11vw, 150px);
  padding-bottom: clamp(110px, 14vw, 190px);
}

.insight-outline {
  position: sticky;
  top: 94px;
  display: flex;
  max-height: calc(100svh - 120px);
  padding-right: 20px;
  flex-direction: column;
  align-self: start;
  overflow-y: auto;
  border-top: 1px solid var(--line-strong);
}

.insight-outline > span {
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--insight-label);
}

.insight-outline > a {
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  color: var(--text-2);
  font-size: .78rem;
  line-height: 1.45;
}

.insight-outline > a:is(:hover, :focus-visible, [aria-current="location"]) {
  color: var(--text);
}

.insight-paper {
  min-width: 0;
}

.insight-section {
  display: flex;
  min-height: min(780px, calc(100svh - 90px));
  padding: clamp(76px, 9vw, 120px) 0;
  flex-direction: column;
  justify-content: center;
  border-top: 1px solid var(--line-strong);
  scroll-margin-top: 84px;
}

.insight-section:first-child {
  padding-top: 0;
  border-top: 0;
}

.insight-section h2,
.insight-sources h2 {
  max-width: 19ch;
  margin-bottom: 34px;
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3.7rem);
  font-weight: 500;
  letter-spacing: -.045em;
  line-height: 1.02;
  text-wrap: balance;
}

.insight-section p {
  max-width: 70ch;
  margin: 0 0 23px;
  color: var(--text-2);
  font-size: clamp(1rem, 1.2vw, 1.08rem);
  line-height: 1.86;
}

.insight-evidence {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-top: 16px;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.insight-evidence > span {
  margin-right: 4px;
  color: var(--text-2);
}

.insight-evidence > a {
  display: inline-grid;
  min-width: 28px;
  min-height: 28px;
  place-items: center;
  color: var(--insight-label);
}

.insight-limitations {
  min-height: auto;
  margin: clamp(40px, 6vw, 80px) 0;
  padding: clamp(50px, 7vw, 80px);
  border: 1px solid var(--line-strong);
  background: var(--surface-2);
}

.insight-limitations .eyebrow {
  margin-bottom: 28px;
}

.insight-sources {
  padding-top: clamp(90px, 11vw, 140px);
  border-top: 1px solid var(--line-strong);
  scroll-margin-top: 84px;
}

.insight-source-note {
  max-width: 62ch;
  color: var(--text-2);
  line-height: 1.75;
}

.insight-sources ol {
  margin: 48px 0 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line-strong);
}

.insight-sources li {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 20px;
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
  scroll-margin-top: 140px;
}

.insight-sources li > span {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: .12em;
  color: var(--insight-label);
}

.insight-sources cite {
  display: block;
  color: var(--text);
  font-family: var(--font-display);
  font-size: 1.02rem;
  font-style: normal;
  font-weight: 500;
  line-height: 1.42;
}

.insight-sources li p {
  margin: 7px 0 0;
  color: var(--text-2);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: .08em;
  line-height: 1.5;
  text-transform: uppercase;
}

.insight-sources li a {
  display: inline-block;
  margin-top: 10px;
  color: var(--insight-label);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: .05em;
}

.insight-sources li a i {
  font-style: normal;
}

.insight-related {
  padding: clamp(90px, 12vw, 160px) 0;
  background: var(--surface-2);
  border-top: 1px solid var(--line);
}

.insight-related-list {
  margin-top: clamp(50px, 7vw, 82px);
  border-top: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line-strong);
}

.insight-related-list > a {
  display: grid;
  grid-template-columns: minmax(180px, .4fr) minmax(0, 1fr) 36px;
  gap: clamp(24px, 5vw, 70px);
  align-items: center;
  min-height: 122px;
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
  color: var(--text);
}

.insight-related-list > a:last-child {
  border-bottom: 0;
}

.insight-related-list span {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--text-2);
}

.insight-related-list strong {
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 2.5vw, 2.1rem);
  font-weight: 500;
  letter-spacing: -.035em;
  line-height: 1.1;
}

.insight-related-list i {
  color: var(--accent);
  font-style: normal;
  transition: transform .3s var(--ease);
}

.insight-related-list > a:is(:hover, :focus-visible) {
  color: var(--accent);
}

.insight-related-list > a:is(:hover, :focus-visible) i {
  transform: translateX(5px);
}

@media (max-width: 1000px) {
  .insights-manifesto > .container,
  .insights-catalogue-head,
  .insight-finding-head {
    grid-template-columns: 1fr;
  }

  .insights-publication-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .insights-publication-stats > div {
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 24px;
    border-right: 1px solid var(--line);
    border-bottom: 0;
  }

  .insights-publication-stats > div:first-child {
    padding-left: 0;
  }

  .insights-publication-stats > div:last-child {
    border-right: 0;
  }

  .insight-feature-list {
    grid-template-columns: 1fr;
  }

  .insight-feature {
    min-height: 340px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .insight-feature:last-child {
    border-bottom: 0;
  }

  .insight-index-item {
    grid-template-columns: 42px minmax(150px, .38fr) minmax(0, 1fr) 38px;
    gap: 24px;
  }

  .insight-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .insight-hero > .container {
    grid-template-columns: 1fr;
    gap: 46px;
  }

  .insight-hero-record {
    max-width: 440px;
  }

  .insight-metric:nth-child(2) {
    border-right: 0;
  }

  .insight-metric:nth-child(-n+2) {
    border-bottom: 1px solid var(--line);
  }

  .insight-metric:nth-child(3) {
    padding-left: 0;
  }

  .insight-reading-layout {
    grid-template-columns: 1fr;
  }

  .insight-outline {
    display: none;
  }
}

@media (max-width: 680px) {
  .home-insights-list > a {
    grid-template-columns: minmax(0, 1fr) 34px;
    gap: 18px;
    min-height: 0;
    padding: 30px 0;
  }

  .home-insight-meta,
  .home-insight-copy {
    grid-column: 1;
  }

  .home-insights-list > a > i {
    grid-column: 2;
    grid-row: 1 / 3;
    width: 34px;
    height: 34px;
  }

  .insights-manifesto > .container {
    gap: 54px;
  }

  .insights-publication-stats {
    grid-template-columns: 1fr;
  }

  .insights-publication-stats > div,
  .insights-publication-stats > div:first-child {
    grid-template-columns: minmax(100px, .45fr) 1fr;
    padding: 20px 0;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .insights-publication-stats > div:last-child {
    border-bottom: 0;
  }

  .insight-feature {
    min-height: 390px;
    padding: 30px 0;
  }

  .insights-result-meta > span:last-child {
    display: none;
  }

  .insight-index-item {
    grid-template-columns: 36px minmax(0, 1fr) 34px;
    gap: 16px;
    min-height: 0;
    padding: 28px 0;
  }

  .insight-index-meta {
    grid-column: 2;
    grid-row: 1;
  }

  .insight-index-copy {
    grid-column: 2 / -1;
  }

  .insight-index-arrow {
    grid-column: 3;
    grid-row: 1;
    width: 34px;
    height: 34px;
  }

  .insight-index-glyph {
    grid-row: 1;
  }

  .insight-index-copy p {
    margin-right: 4px;
  }

  .insight-hero.has-hero-bg {
    min-height: max(680px, 100svh);
    padding: 130px 0 70px;
  }

  .insight-hero > .container {
    grid-template-columns: 1fr;
    gap: 48px;
    width: min(calc(100% - 40px), 1360px);
  }

  .insight-hero h1 {
    font-size: clamp(2.85rem, 14vw, 4.7rem);
  }

  .insight-hero--long h1 {
    font-size: clamp(2.65rem, 12vw, 4.2rem);
  }

  .insight-hero.has-hero-bg::after {
    right: -40px;
    bottom: 25px;
  }

  .insight-jump-nav > .container {
    padding-right: 20px;
    padding-left: 20px;
  }

  .insight-finding-head {
    gap: 30px;
  }

  .insight-metrics {
    grid-template-columns: 1fr;
  }

  .insight-metric,
  .insight-metric:first-child,
  .insight-metric:nth-child(3),
  .insight-metric:last-child {
    padding: 26px 0;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .insight-metric:last-child {
    border-bottom: 0;
  }

  .insight-reading-layout {
    gap: 0;
  }

  .insight-section {
    min-height: auto;
    padding: 72px 0;
  }

  .insight-limitations {
    margin: 40px 0 90px;
    padding: 34px 24px;
  }

  .insight-related-list > a {
    grid-template-columns: 1fr 26px;
    gap: 14px;
  }

  .insight-related-list span {
    grid-column: 1;
  }

  .insight-related-list strong {
    grid-column: 1;
  }

  .insight-related-list i {
    grid-column: 2;
    grid-row: 1 / 3;
  }
}

@media (max-height: 700px) and (orientation: landscape),
       (prefers-reduced-motion: reduce) {
  .insight-section {
    min-height: auto;
  }

  .insight-reading-progress > i,
  .insight-index-item,
  .insight-index-arrow,
  .insight-feature,
  .insight-feature > small i {
    transition: none !important;
  }
}

/* ============================================================
   FINAL LAB EXPERIENCE OVERRIDES
   Kept at the end of the cascade so publication and legacy-page
   rules cannot reintroduce sparse viewport staging or weak chrome.
   ============================================================ */

.dossier-index,
.insight-jump-nav {
  top: var(--chrome-compact);
}

.lab-page-dossier .site-header.hidden,
.lab-page-insight .site-header.hidden,
.lab-page-insights .site-header.hidden,
.lab-page-research .site-header.hidden,
.lab-page-projects .site-header.hidden {
  transform: translateY(0);
}

/* Light mode keeps every header state on an unmistakably white surface. */
html[data-theme="light"] .site-header,
html[data-theme="light"] .site-header.over-hero,
html[data-theme="light"] .site-header.nav-open {
  color: #101214;
  background: #fff;
  border-bottom-color: rgba(16,18,20,.1);
  -webkit-backdrop-filter: blur(22px);
  backdrop-filter: blur(22px);
  box-shadow: 0 8px 28px rgba(8,10,12,.05);
}

html[data-theme="light"] .site-header.over-hero .logo-dark,
html[data-theme="light"] .site-header.nav-open .logo-dark {
  display: block;
}

html[data-theme="light"] .site-header.over-hero .logo-light,
html[data-theme="light"] .site-header.nav-open .logo-light {
  display: none;
}

html[data-theme="light"] .site-header.over-hero .site-nav a,
html[data-theme="light"] .site-header.over-hero .nav-toggle,
html[data-theme="light"] .site-header.nav-open .nav-toggle {
  color: #4a5057;
}

html[data-theme="light"] .site-header.over-hero .site-nav a:hover,
html[data-theme="light"] .site-header.over-hero .site-nav a.active {
  color: #101214;
}

html[data-theme="light"] .site-header.over-hero .theme-toggle,
html[data-theme="light"] .site-header.nav-open .theme-toggle,
html[data-theme="light"] .site-header.over-hero .site-search-toggle,
html[data-theme="light"] .site-header.nav-open .site-search-toggle {
  color: #4a5057;
  border-color: rgba(16,18,20,.16);
}

html[data-theme="light"] .site-header.over-hero .site-search-shortcut,
html[data-theme="light"] .site-header.nav-open .site-search-shortcut {
  color: #616970;
  background: #f7f7f5;
  border-color: rgba(16,18,20,.14);
}

html[data-theme="light"] #mobileNav.open {
  color: #101214;
  background: #fff;
}

html[data-theme="light"] #mobileNav.open a {
  color: #101214;
}

.lab-rail-current,
.insight-jump-nav a,
.insight-hero .back-link,
.insight-meta,
.insight-hero-record,
.insight-evidence,
.insight-source-note,
.insight-sources li > span,
.insight-sources li p,
.insight-sources li a,
.home-insight-meta small,
.home-insight-meta time,
.insight-feature > span,
.insight-feature > small,
.insights-publication-stats dd,
.insights-filter-btn,
.insights-result-meta,
.insight-index-meta i,
.insight-index-meta small {
  font-size: 10px;
}

.insight-jump-nav a,
.insight-hero-record,
.insight-sources li p,
.insight-index-meta i,
.insight-index-meta small,
.insights-result-meta {
  color: var(--muted-readable);
}

.insight-evidence > a,
.insight-sources li > span,
.insight-sources li a,
.home-insight-meta small,
.insight-feature > span,
.insights-result-meta > span:first-child {
  color: var(--label);
}

.insights-search:focus-within {
  border-color: var(--label);
  box-shadow: 0 2px 0 var(--label);
}

.filter-btn:focus-visible,
.insights-filter-btn:focus-visible,
.site-search-toggle:focus-visible,
.theme-toggle:focus-visible,
.nav-toggle:focus-visible {
  outline: 1px solid var(--label);
  outline-offset: 4px;
}

.insight-section {
  min-height: 0;
  padding-block: clamp(78px, 8vw, 112px);
  justify-content: flex-start;
  scroll-margin-top: calc(var(--chrome-compact) + 70px);
}

.insight-section:first-child {
  padding-top: 0;
}

.insight-evidence > a {
  min-width: 34px;
  min-height: 34px;
}

.insight-sources,
.insight-sources li {
  scroll-margin-top: calc(var(--chrome-compact) + 72px);
}

/* Concise projects read as tightly edited research briefs. */
.lab-page-project .pd-body {
  padding-block: clamp(82px, 9vw, 138px);
}

.lab-page-project .pd-section {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: clamp(24px, 3.6vw, 58px);
  padding-block: clamp(62px, 7vw, 102px);
  border-color: var(--line-strong);
}

.lab-page-project .pd-section > .eyebrow {
  grid-column: 1 / 4;
  align-self: start;
}

.lab-page-project .pd-section > .content {
  grid-column: 4 / -1;
  max-width: 850px;
}

.lab-page-project .pd-section h3 {
  max-width: 22ch;
  margin-bottom: clamp(24px, 3vw, 38px);
  font-size: clamp(1.85rem, 3.5vw, 3.35rem);
  letter-spacing: -.045em;
  line-height: 1.02;
  text-wrap: balance;
}

.lab-page-project .pd-section .content p {
  max-width: 70ch;
  font-size: clamp(.98rem, 1.12vw, 1.08rem);
  line-height: 1.82;
}

.lab-page-project .pd-section--problem .content h3 {
  max-width: 18ch;
  font-size: clamp(2.65rem, 5vw, 5rem);
  line-height: .96;
}

.lab-page-project .pd-problem-media,
.lab-page-project .pd-image {
  grid-column: 1 / -1;
  border-right: 0;
  border-left: 0;
  border-radius: 0;
}

.lab-page-project .pd-image {
  height: clamp(390px, 58svh, 720px);
  margin-block: clamp(28px, 5vw, 70px);
  border-top: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line);
}

.lab-page-project .pd-image img {
  width: 100%;
  height: calc(100% - 40px);
  object-fit: cover;
}

.lab-page-project .pd-image figcaption {
  padding-top: 13px;
  color: var(--muted-readable);
  font-size: 10px;
}

.lab-page-project .innovation-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 clamp(34px, 5vw, 74px);
  border-top: 1px solid var(--line);
}

.lab-page-project .innovation-list li {
  min-height: 94px;
  padding: 24px 0 24px 34px;
  font-size: clamp(.92rem, 1.05vw, 1rem);
  line-height: 1.65;
}

.lab-page-project .innovation-list li::before {
  top: 31px;
  width: 16px;
  height: 1px;
  border-radius: 0;
}

@media (max-width: 900px) {
  .lab-page-project .pd-section {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .lab-page-project .pd-section > .eyebrow,
  .lab-page-project .pd-section > .content {
    grid-column: 1;
  }

  .lab-page-project .pd-problem-media,
  .lab-page-project .pd-image {
    grid-column: 1;
  }

  .lab-page-project .innovation-list {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  .insight-section {
    min-height: 0;
    padding-block: 70px;
  }

  .insight-hero.has-hero-bg {
    min-height: 100svh;
    padding: 104px 0 42px;
  }

  .insight-hero > .container {
    gap: 26px;
  }

  .insight-meta {
    margin-top: 28px;
  }

  .insight-hero h1 {
    margin-top: 18px;
  }

  .insight-hero-copy > p {
    margin-top: 22px;
    line-height: 1.62;
  }

  .insight-hero-record {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px 18px;
    max-width: none;
    padding-top: 14px;
  }

  .insight-hero-record > strong {
    font-size: clamp(1.25rem, 6vw, 1.55rem);
  }

  .lab-page-project .pd-body {
    padding-block: 60px 82px;
  }

  .lab-page-project .pd-section {
    padding-block: 56px;
  }

  .lab-page-project .pd-image {
    height: clamp(300px, 58svh, 480px);
    margin-block: 18px 42px;
  }
}

/* Authored focal points for the current documentary dossier masters. */
.project-dossier--aither .dossier-hero .hero-bg img { object-position: 62% 50%; }
.project-dossier--qontos .dossier-hero .hero-bg img { object-position: 68% 50%; }
.project-dossier--aethelred .dossier-hero .hero-bg img { object-position: 70% 50%; }
.project-dossier--zeromatter .dossier-hero .hero-bg img { object-position: 52% 48%; }
.project-dossier--terraqura .dossier-hero .hero-bg img { object-position: 65% 50%; }
.project-dossier--shiora .dossier-hero .hero-bg img { object-position: 70% 50%; }
.project-dossier--noble .dossier-hero .hero-bg img { object-position: 72% 50%; }
.project-dossier--stratoz .dossier-hero .hero-bg img { object-position: 63% 52%; }
.project-dossier--syntropy .dossier-hero .hero-bg img { object-position: 68% 50%; }

@media (max-width: 680px) {
  .project-dossier--shiora .dossier-hero .hero-bg img { object-position: 70% 50%; }
  .project-dossier--noble .dossier-hero .hero-bg img { object-position: 74% 50%; }
}

/* Insights deliberately use an analytical visual plate rather than stock art. */
@keyframes lab-grid-drift {
  0% { background-position: 0 0, 0 0; }
  50% { background-position: 18px 24px, 24px 18px; }
  100% { background-position: 72px 72px, 72px 72px; }
}

@keyframes lab-signal-breathe {
  0%, 100% { opacity: .72; transform: scale(.96); }
  50% { opacity: 1; transform: scale(1.035); }
}

.motion-ready .insight-hero.has-hero-bg::before {
  animation: lab-grid-drift 24s linear infinite;
}

.motion-ready .insight-hero.has-hero-bg::after {
  transform-origin: center;
  animation: lab-signal-breathe 9s ease-in-out infinite;
}

@media (prefers-reduced-motion: reduce) {
  .lab-chapter-rail {
    transition: none !important;
  }

  .insight-hero.has-hero-bg::before,
  .insight-hero.has-hero-bg::after {
    animation: none !important;
  }
}

/* ============================================================
   HOMEPAGE RESEARCH IMAGE SEQUENCE
   Four documentary scenes, one stable editorial composition.
   ============================================================ */

.home-hero.has-hero-bg .hero-bg-carousel .hero-slide {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: var(--hero-position, 50% 50%);
  opacity: 0;
  transform: translate3d(var(--hero-pan-x, 0px), var(--hero-pan-y, 0px), 0) scale(1.055);
  transition:
    opacity 0.675s var(--ease),
    transform 0.9s var(--ease),
    filter 0.8s ease;
  will-change: opacity, transform;
}

.home-hero.has-hero-bg .hero-bg-carousel .hero-slide.is-active {
  z-index: 1;
  opacity: 0.82;
  transform: translate3d(var(--hero-pan-x, 0px), var(--hero-pan-y, 0px), 0) scale(1.035);
}

.home-hero.has-hero-bg.hero-ready .hero-bg-carousel .hero-slide {
  opacity: 0;
}

.home-hero.has-hero-bg.hero-ready .hero-bg-carousel .hero-slide.is-active {
  opacity: 1;
  transform: translate3d(var(--hero-pan-x, 0px), var(--hero-pan-y, 0px), 0) scale(1.02);
}

.hero-carousel-controls {
  display: flex;
  align-items: center;
  gap: 18px;
  width: fit-content;
  margin-top: clamp(28px, 4vh, 42px);
  color: var(--hero-ink-muted);
}

.hero-carousel-controls[hidden] {
  display: none;
}

.hero-carousel-scenes {
  display: flex;
  align-items: center;
  gap: 13px;
}

.hero-carousel-scene,
.hero-carousel-toggle {
  appearance: none;
  -webkit-appearance: none;
  margin: 0;
  color: inherit;
  background: transparent;
  border: 0;
  cursor: pointer;
}

.hero-carousel-scene {
  display: grid;
  align-items: center;
  min-width: 34px;
  min-height: 32px;
  padding: 0;
}

.hero-carousel-track {
  position: relative;
  width: 30px;
  height: 1px;
  overflow: hidden;
  background: rgba(255,255,255,0.26);
  transition: background 0.25s ease;
}

.hero-carousel-track::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--hero-accent);
  transform: scaleX(0);
  transform-origin: left center;
}

.hero-carousel-scene[aria-current="true"] .hero-carousel-track::after {
  transform: scaleX(1);
}

.hero-carousel-controls.is-playing .hero-carousel-scene[aria-current="true"] .hero-carousel-track::after {
  animation: hero-carousel-progress 3.75s linear both;
}

.hero-carousel-scene:is(:hover, :focus-visible) .hero-carousel-track {
  background: rgba(255,255,255,0.6);
}

.hero-carousel-toggle {
  display: inline-grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: 50%;
  transition: color 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}

.hero-carousel-toggle:is(:hover, :focus-visible) {
  color: var(--hero-ink);
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.68);
}

.hero-carousel-play-icon,
.hero-carousel-toggle[aria-pressed="true"] .hero-carousel-pause-icon {
  display: none;
}

.hero-carousel-toggle[aria-pressed="true"] .hero-carousel-play-icon {
  display: block;
}

.hero-carousel-scene:focus-visible,
.hero-carousel-toggle:focus-visible {
  outline: 2px solid var(--hero-accent);
  outline-offset: 4px;
}

@keyframes hero-carousel-progress {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}

@media (max-width: 680px) {
  .home-hero.has-hero-bg .hero-bg-carousel .hero-slide {
    object-position: var(--hero-position-mobile, var(--hero-position, 50% 50%));
  }

  .hero-carousel-controls {
    gap: 12px;
    margin-top: 24px;
  }

  .hero-carousel-scenes {
    gap: 8px;
  }

  .hero-carousel-scene {
    min-width: 26px;
  }

  .hero-carousel-track {
    width: 22px;
  }

  .hero-carousel-toggle {
    width: 30px;
    height: 30px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .home-hero.has-hero-bg .hero-bg-carousel .hero-slide {
    opacity: 0 !important;
    transform: none !important;
    transition: none !important;
  }

  .home-hero.has-hero-bg .hero-bg-carousel .hero-slide.is-active {
    opacity: 1 !important;
  }

  .hero-carousel-toggle {
    display: none;
  }

  .hero-carousel-controls.is-playing .hero-carousel-scene[aria-current="true"] .hero-carousel-track::after {
    animation: none !important;
    transform: scaleX(1);
  }
}

/* Dossier imagery keeps its authored headroom at every viewport. */
.project-dossier .dossier-media-frame.motion-media > img {
  transform: none;
}

.project-dossier .dossier-media-frame > img[src$="syntropy-material-yield-audit-v1.webp"] {
  object-position: 50% 0%;
}

/* ============================================================
   PRODUCTION RESPONSIVE HARDENING
   Stable intrinsic media, safe narrow-view flow, and a dedicated
   error route for hosted deployments.
   ============================================================ */

html {
  overflow-x: clip;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  min-width: 320px;
}

main,
section,
.container,
.header-inner,
.footer-grid,
.hero-copy {
  min-width: 0;
}

img {
  height: auto;
}

video,
canvas,
iframe,
svg {
  max-width: 100%;
}

.error-page {
  position: relative;
  display: grid;
  min-height: 100svh;
  overflow: hidden;
  color: #fff;
  background: #080a0c;
}

.error-page__visual,
.error-page__visual::after {
  position: absolute;
  inset: 0;
}

.error-page__visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 68% 50%;
}

.error-page__visual::after {
  content: '';
  background:
    linear-gradient(90deg, rgba(5,7,9,.94) 0%, rgba(5,7,9,.74) 54%, rgba(5,7,9,.36) 100%),
    linear-gradient(0deg, rgba(5,7,9,.80), transparent 62%);
}

.error-page__content {
  position: relative;
  z-index: 1;
  align-self: center;
  width: 100%;
  padding-top: 140px;
  padding-bottom: 90px;
}

.error-page__code {
  margin: 22px 0 8px;
  color: var(--accent-2);
  font-family: var(--font-mono);
  font-size: clamp(4rem, 13vw, 10rem);
  font-weight: 500;
  letter-spacing: -.08em;
  line-height: .82;
}

.error-page h1 {
  max-width: 760px;
  color: #fff;
}

.error-page .lede {
  max-width: 620px;
  margin-top: 24px;
  color: rgba(255,255,255,.72);
}

.error-page .hero-actions {
  margin-top: 34px;
}

.error-page .btn-outline {
  color: #fff;
  border-color: rgba(255,255,255,.4);
}

@media (max-width: 860px) {
  .btn,
  .theme-toggle,
  .nav-toggle,
  .site-search-toggle,
  .hero-carousel-scene,
  .hero-carousel-toggle {
    min-height: 44px;
  }
}

@media (max-width: 680px) {
  .display-1,
  .home-hero .display-1,
  .page-hero .display-1,
  .pd-hero h1 {
    overflow-wrap: anywhere;
  }

  .hero-actions {
    align-items: stretch;
  }

  .hero-actions .btn {
    max-width: 100%;
  }

  .error-page__visual img {
    object-position: 73% 50%;
  }

  .error-page__content {
    padding-top: 118px;
    padding-bottom: 56px;
  }
}

@media (min-width: 1440px) {
  .header-inner {
    max-width: 1360px;
  }
}

@media (min-width: 681px) and (min-height: 701px) {
  .hero.has-hero-bg,
  .page-hero.has-hero-bg,
  .pd-hero.has-hero-bg,
  .article-hero.has-hero-bg {
    min-height: 100svh;
  }
}

@media (max-width: 860px) {
  :root {
    --header-height: 64px;
    --chrome-compact: 64px;
  }

  .header-inner,
  html.is-scrolled .header-inner {
    min-height: 64px;
    padding-top: 10px;
    padding-bottom: 10px;
  }

  .theme-toggle,
  .nav-toggle,
  .site-search-toggle,
  .hero-carousel-scene,
  .hero-carousel-toggle {
    min-width: 44px;
  }

  .nav-toggle {
    padding-inline: 10px;
  }

  .lab-page-projects .filter-bar,
  .insight-jump-nav {
    top: var(--header-height);
  }

  .lab-page-projects .filter-btn,
  .insights-filter-btn {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
  }
}

@media (max-width: 700px) {
  .dossier-index {
    top: auto;
  }
}

@media (max-width: 680px) {
  .hero.has-hero-bg,
  .page-hero.has-hero-bg,
  .pd-hero.has-hero-bg,
  .article-hero.has-hero-bg {
    min-height: max(640px, 100svh);
  }
}

@media (max-width: 900px) and (orientation: portrait) {
  .home-hero.has-hero-bg .hero-bg-carousel .hero-slide {
    object-position: var(--hero-position-mobile, var(--hero-position, 50% 50%));
  }
}

@media (max-width: 820px) {
  .dossier-media-grid {
    grid-template-columns: 1fr;
  }

  .dossier-media-grid .dossier-media > img,
  .dossier-media-grid .dossier-media > picture,
  .dossier-media-grid .dossier-media > picture > img {
    height: auto;
  }

  .dossier-media-grid .dossier-media > img,
  .dossier-media-grid .dossier-media > picture > img {
    aspect-ratio: 16 / 10;
  }
}

@media (min-width: 681px) and (max-width: 900px) {
  .lab-page-home .stats-row {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .lab-page-home .stat,
  .lab-page-home .stat:last-child {
    padding: 24px clamp(18px, 3vw, 30px);
    border-right: 1px solid var(--line);
    border-bottom: 0;
  }

  .lab-page-home .stat:last-child {
    border-right: 0;
  }

  .lab-page-home .lab-project-mosaic {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .lab-page-home .lab-project-mosaic .project-card,
  .lab-page-home .lab-project-mosaic .project-card:nth-child(n) {
    grid-column: auto;
    min-height: 430px;
  }

  .inquiry-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .inquiry-grid > :last-child {
    grid-column: 1 / -1;
  }
}

@media (min-width: 681px) and (max-width: 860px) {
  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 861px) and (max-width: 1040px) {
  .site-search-toggle {
    width: 44px;
    min-width: 44px;
    padding: 0;
  }

  .site-search-shortcut {
    display: none;
  }
}

@media (max-width: 380px) {
  .page-hero .hero-copy .display-1.projects-hero-title {
    font-size: clamp(1.65rem, 8.2vw, 1.95rem);
    letter-spacing: -.045em;
  }
}

/* Final interaction and viewport refinements. */
.site-header .brand {
  min-height: 44px;
}

.site-search-close {
  min-width: 44px;
  min-height: 44px;
}

.insight-evidence > a {
  min-width: 44px;
  min-height: 44px;
}

@media (max-width: 860px) {
  #mobileNav.open a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding-inline: 12px;
  }
}

@media (max-width: 760px) {
  .dossier-index {
    position: sticky;
    top: var(--header-height);
  }

  .dossier-section {
    scroll-margin-top: calc(var(--header-height) + 52px);
  }
}

@media (min-width: 901px) and (max-height: 800px) {
  .insight-hero.has-hero-bg {
    min-height: 100svh;
    padding: 108px 0 42px;
  }

  .insight-meta {
    margin-top: 28px;
  }

  .insight-hero h1 {
    margin-top: 18px;
    font-size: clamp(3.15rem, 5.7vw, 5.2rem);
  }

  .insight-hero--long h1 {
    font-size: clamp(2.85rem, 5vw, 4.6rem);
  }

  .insight-hero-copy > p {
    margin-top: 22px;
    line-height: 1.55;
  }
}
