/* =========================================================================
   First Wave Discovery — Site styles
   Extends colors_and_type.css. Drives all pages: index, about, services, contact.

   System
   ------
   - Single dark canvas (var(--fw-navy-900)) by default. One optional
     light section (papered) when [data-tweak-light="on"].
   - 12-col implicit; we mostly use flex/grid w/ gap. Page max 1240px.
   - All section padding controlled by --sp-section, scales w/ density tweak.
   - Hairlines + restrained type are the brand voice. No drop shadows on
     primary surfaces; depth via value.
   - Wave intensity is owned by .hero-bg and toggled via [data-tweak-wave].
   ========================================================================= */

:root {
  --sp-section: 112px;
  --sp-section-tight: 80px;
  --page-max: 1240px;
  --page-pad: 48px;

  /* one easing token, used everywhere */
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* Density tweak — compresses every vertical rhythm in one stroke */
html[data-tweak-density="dense"] {
  --sp-section: 72px;
  --sp-section-tight: 56px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { background: var(--fw-navy-900); }
body {
  background: var(--fw-navy-900);
  color: var(--fw-fg);
  font-family: var(--fw-font-body);
  font-size: 15px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
img, svg { display: block; max-width: 100%; }
::selection { background: rgba(125, 211, 252, 0.35); color: var(--fw-glow-white); }

/* ───────────── PAGE SCAFFOLD ───────────── */

.page {
  max-width: var(--page-max);
  margin: 0 auto;
  padding: 0 var(--page-pad);
}
.section {
  padding: var(--sp-section) 0;
  position: relative;
}
.section--tight { padding: var(--sp-section-tight) 0; }
.section--light {
  background: var(--fw-paper);
  color: var(--fw-navy-ink);
}
.section--light .eyebrow { color: var(--fw-navy-ink); opacity: 0.62; }
.section--light .section-title { color: var(--fw-navy-ink); }
.section--light .body { color: rgba(13, 27, 76, 0.78); }
.section--light .hair { background: var(--fw-rule); }
.section--light .annotation { color: rgba(13, 27, 76, 0.6); }
.section--light .contrib-card {
  background: var(--fw-paper-2);
  border-color: var(--fw-rule);
}
.section--light .contrib-card__institution { color: var(--fw-navy-ink); }
.section--light .contrib-card__graphic {
  background: var(--fw-paper-3);
  border-color: var(--fw-rule);
  color: rgba(13, 27, 76, 0.5);
}

/* tweak-driven: hide the light section when off */
html[data-tweak-light="off"] .section--light { display: none; }

.hair {
  width: 100%;
  height: 1px;
  background: var(--fw-border);
  border: 0;
  margin: 0;
}

/* ───────────── TYPE PRIMITIVES ───────────── */

.eyebrow {
  font-family: var(--fw-font-display);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--fw-blue-300);
}
.annotation {
  font-family: var(--fw-font-mono);
  font-size: 11px;
  letter-spacing: 0.05em;
  color: var(--fw-fg-quiet);
  text-transform: uppercase;
}
.section-title {
  font-family: var(--fw-font-display);
  font-weight: 300;
  font-size: 44px;
  letter-spacing: 0.05em;
  line-height: 1.08;
  text-transform: uppercase;
  color: var(--fw-glow-white);
  margin: 0;
  max-width: 22ch;
}
.section-title em {
  font-style: normal;
  color: var(--fw-glow-cyan);
  font-weight: 400;
}
.body {
  font-family: var(--fw-font-body);
  font-size: 15.5px;
  line-height: 1.65;
  color: var(--fw-fg-muted);
  margin: 0;
  max-width: 62ch;
  text-wrap: pretty;
}
.body strong { color: var(--fw-glow-white); font-weight: 600; }

/* Reused section header layout (eyebrow above title, stacked) */
.section-head {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-bottom: 56px;
}
.section-head .eyebrow { padding-top: 0; }
html[data-tweak-density="dense"] .section-head { margin-bottom: 36px; }

@media (max-width: 880px) {
  .section-head { gap: 14px; }
}

/* ───────────── HEADER / NAV ───────────── */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(10, 18, 48, 0.72);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--fw-divider);
}
.site-header__inner {
  max-width: var(--page-max);
  margin: 0 auto;
  padding: 18px var(--page-pad);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--fw-glow-white);
}
.brand__mark { width: 56px; height: 56px; }
.site-header .brand__mark { width: 67px; height: 67px; }
.brand__name {
  font-family: var(--fw-font-display);
  font-size: 26px;
  font-weight: 500;
  letter-spacing: 6px;
  text-transform: uppercase;
  line-height: 1.02;
  display: flex;
  flex-direction: column;
}
.brand__name .alt {
  color: var(--fw-glow-cyan);
  font-weight: 400;
  margin-left: 0;
}
.nav {
  display: flex;
  gap: 40px;
}
.nav a {
  font-family: var(--fw-font-display);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--fw-fg-muted);
  padding: 6px 0;
  position: relative;
  transition: color var(--fw-dur-base) var(--ease);
}
.nav a:hover { color: var(--fw-glow-white); }
.nav a.is-active { color: var(--fw-glow-white); }
.nav a.is-active::after {
  content: "";
  position: absolute;
  inset: auto 0 -2px 0;
  height: 1px;
  background: var(--fw-glow-cyan);
}
.cta {
  font-family: var(--fw-font-display);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  padding: 11px 22px;
  border: 1px solid var(--fw-border-strong);
  background: transparent;
  color: var(--fw-glow-white);
  border-radius: var(--fw-radius-sm);
  transition: all var(--fw-dur-base) var(--ease);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
}
.cta:hover {
  border-color: var(--fw-glow-cyan);
  box-shadow: 0 0 24px -8px rgba(125, 211, 252, 0.55);
  color: var(--fw-glow-white);
}
.cta:active { transform: translateY(1px); opacity: 0.88; }
.cta--solid {
  background: var(--fw-blue-500);
  border-color: transparent;
  color: var(--fw-glow-white);
}
.cta--solid:hover {
  background: var(--fw-blue-600);
  border-color: transparent;
  box-shadow: 0 0 24px -8px rgba(46, 107, 255, 0.7);
}
.cta--ghost {
  border-color: transparent;
  color: var(--fw-glow-ice);
  padding-left: 0;
}
.cta--ghost:hover {
  color: var(--fw-glow-white);
  box-shadow: none;
}
.cta__arrow {
  display: inline-block;
  position: relative;
  width: 16px;
  height: 8px;
  flex-shrink: 0;
  transition: width var(--fw-dur-base) var(--ease);
}
.cta__arrow::before {
  /* shaft */
  content: "";
  position: absolute;
  left: 0;
  right: 3px;
  top: 50%;
  height: 1px;
  background: currentColor;
  margin-top: -0.5px;
}
.cta__arrow::after {
  /* chevron — tip points right, centered on the shaft */
  content: "";
  position: absolute;
  right: 1px;
  top: 50%;
  width: 6px;
  height: 6px;
  border-top: 1px solid currentColor;
  border-right: 1px solid currentColor;
  transform: translateY(-50%) rotate(45deg);
}
.cta:hover .cta__arrow { width: 24px; }

/* ───────────── BANNER WAVE (decorative, below header) ───────────── */
.wave-banner {
  display: block;
  width: 100%;
  height: 1px;
  background: var(--fw-divider);
}

/* ───────────── HERO (compact) ───────────── */

.hero {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 96px 0 72px;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("assets/wave-line.svg") no-repeat center bottom / 130% 60%;
  opacity: 0.35;
  pointer-events: none;
  z-index: 1;
}
html[data-tweak-density="dense"] .hero { padding: 40px 0 32px; }
.hero__inner {
  position: relative;
  z-index: 2;
  max-width: var(--page-max);
  margin: 0 auto;
  padding: 0 var(--page-pad);
  width: 100%;
}
.hero__coords {
  font-family: var(--fw-font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--fw-fg-quiet);
  display: flex;
  gap: 18px;
  margin: 0 0 28px 0;
}
.hero__h1 {
  font-family: var(--fw-font-display);
  font-weight: 300;
  font-size: clamp(36px, 5vw, 56px);
  letter-spacing: 0.04em;
  line-height: 1.06;
  text-transform: uppercase;
  color: var(--fw-glow-white);
  margin: 22px 0 28px 0;
  max-width: 20ch;
}
.hero__h1 em { font-style: normal; color: var(--fw-glow-cyan); font-weight: 400; }

/* Headline variants — toggled via tweak */
.hero__h1[data-variant="plain"] .v-plain { display: inline; }
.hero__h1[data-variant="plain"] .v-canonical,
.hero__h1[data-variant="plain"] .v-capability { display: none; }
.hero__h1[data-variant="canonical"] .v-canonical { display: inline; }
.hero__h1[data-variant="canonical"] .v-plain,
.hero__h1[data-variant="canonical"] .v-capability { display: none; }
.hero__h1[data-variant="capability"] .v-capability { display: inline; }
.hero__h1[data-variant="capability"] .v-plain,
.hero__h1[data-variant="capability"] .v-canonical { display: none; }

.hero__lede {
  font-family: var(--fw-font-body);
  font-size: 18px;
  line-height: 1.62;
  color: var(--fw-glow-ice);
  max-width: 56ch;
  margin: 0 0 44px 0;
}
.hero__actions { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; }

/* Hero scroll cue — bottom-right */
.hero__scroll {
  position: absolute;
  right: var(--page-pad);
  bottom: 56px;
  font-family: var(--fw-font-display);
  font-size: 10px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--fw-fg-quiet);
  display: flex;
  align-items: center;
  gap: 14px;
  z-index: 2;
}
.hero__scroll::after {
  content: "";
  width: 1px;
  height: 38px;
  background: linear-gradient(to bottom, var(--fw-glow-cyan), transparent);
}
.hero__locale {
  position: absolute;
  left: var(--page-pad);
  bottom: 56px;
  font-family: var(--fw-font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--fw-fg-quiet);
  z-index: 2;
}

/* HERO BACKGROUND — driven by [data-tweak-wave] */
.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

/* Subtle (default) — thin wave line at bottom + faint data-rain */
.hero__bg .wave-line {
  position: absolute;
  inset: auto 0 0 0;
  height: 200px;
  background: url("assets/wave-line.svg") no-repeat center bottom / 140% 60%;
  opacity: 0.55;
}
.hero__bg .wave-img {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center bottom;
  opacity: 0;
  transition: opacity var(--fw-dur-slow) var(--ease);
}
.hero__bg .wave-img--medium {
  background-image: url("assets/wave-clean-1.png");
  background-position: right bottom;
}
.hero__bg .wave-img--full {
  background-image: url("assets/wave-binary-rain.png");
  background-position: center 75%;
}

/* protect type — vertical dim gradient */
.hero__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(10,18,48,0.95) 0%, rgba(10,18,48,0.55) 45%, rgba(10,18,48,0.25) 100%),
    linear-gradient(180deg, rgba(10,18,48,0.5) 0%, rgba(10,18,48,0.05) 35%, rgba(10,18,48,0.75) 100%);
}

html[data-tweak-wave="medium"] .hero__bg .wave-img--medium { opacity: 0.7; }
html[data-tweak-wave="medium"] .hero__bg .wave-line { opacity: 0; }
html[data-tweak-wave="hero"] .hero__bg .wave-img--full { opacity: 0.92; }
html[data-tweak-wave="hero"] .hero__bg .wave-line { opacity: 0; }

/* Hero layout variants */
.hero[data-layout="centered"] .hero__inner { text-align: center; }
.hero[data-layout="centered"] .hero__h1,
.hero[data-layout="centered"] .hero__lede { margin-left: auto; margin-right: auto; }
.hero[data-layout="centered"] .hero__coords { justify-content: center; }
.hero[data-layout="centered"] .hero__actions { justify-content: center; }
.hero[data-layout="split"] .hero__inner {
  display: grid;
  grid-template-columns: 1fr 0.9fr;
  gap: 80px;
  align-items: center;
}
.hero[data-layout="split"] .hero__panel { position: relative; }
.hero[data-layout="split"] .split-art {
  display: none;
}
.hero[data-layout="split"] .hero__panel--art {
  position: relative;
  aspect-ratio: 4/5;
  border: 1px solid var(--fw-border);
  border-radius: var(--fw-radius-md);
  background: var(--fw-navy-1000) url("assets/wave-clean-2.png") no-repeat center / cover;
  overflow: hidden;
}
.hero[data-layout="split"] .hero__panel--art::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10,18,48,0.0) 0%, rgba(10,18,48,0.55) 100%);
}
.hero[data-layout="split"] .split-art {
  display: block;
  position: absolute;
  inset: auto 0 22px 0;
  z-index: 2;
  font-family: var(--fw-font-mono);
  font-size: 10px;
  text-align: center;
  color: var(--fw-fg-quiet);
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.hero[data-layout="split"] .hero__h1 { font-size: clamp(36px, 4.2vw, 52px); }

/* In non-split layouts, hide the art column entirely. */
.hero:not([data-layout="split"]) .hero__panel--art { display: none; }

/* Hero stat strip — anchored at the bottom of the hero, classic but signature */
.hero__strip {
  position: relative;
  z-index: 2;
  margin-top: auto;
  padding-top: 64px;
}
.hero__strip-inner {
  max-width: var(--page-max);
  margin: 0 auto;
  padding: 24px var(--page-pad) 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  border-top: 1px solid var(--fw-border);
}
.hero__strip dt {
  font-family: var(--fw-font-display);
  font-size: 10px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--fw-fg-quiet);
  margin-bottom: 10px;
}
.hero__strip dd {
  font-family: var(--fw-font-display);
  font-weight: 300;
  font-size: 22px;
  letter-spacing: 0.03em;
  margin: 0;
  color: var(--fw-glow-ice);
  text-transform: uppercase;
}
.hero__strip dd .accent { color: var(--fw-glow-cyan); }

@media (max-width: 880px) {
  .hero__strip-inner { grid-template-columns: 1fr 1fr; gap: 24px; }
  .hero[data-layout="split"] .hero__inner { grid-template-columns: 1fr; gap: 48px; }
}

/* ───────────── WHAT-WE-DO :: 5-CIRCLE WHEEL ───────────── */

.wheel-section { background: var(--fw-navy-900); }
.wheel-wrap {
  position: relative;
  margin-top: 16px;
}
.wheel {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  display: block;
}
/* Hover/active state on a node */
.wheel-node {
  cursor: pointer;
  transition: filter var(--fw-dur-base) var(--ease);
}
.wheel-node:hover { filter: drop-shadow(0 0 18px rgba(125, 211, 252, 0.55)); }
.wheel-node:hover .wheel-node__ring { stroke: var(--fw-glow-cyan); stroke-width: 1.6; }
.wheel-node:hover .wheel-node__label { fill: var(--fw-glow-white); }
.wheel-node:hover .wheel-node__connector { stroke: var(--fw-glow-cyan); opacity: 0.95; }
.wheel-node[data-active="true"] .wheel-node__ring {
  stroke: var(--fw-glow-cyan);
  stroke-width: 1.6;
}
.wheel-node[data-active="true"] {
  filter: drop-shadow(0 0 20px rgba(125, 211, 252, 0.6));
}

/* GRID layout variant for capabilities (alternative) */
html[data-tweak-caps="grid"] .wheel-wrap { display: none; }
html[data-tweak-caps="grid"] .caps-grid { display: grid; }
html[data-tweak-caps="radial"] .caps-grid { display: none; }

.caps-grid {
  display: none;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
  margin-top: 24px;
}
.caps-grid__cell {
  background: var(--fw-navy-800);
  border: 1px solid var(--fw-border);
  border-radius: var(--fw-radius-md);
  padding: 28px 22px 32px;
  position: relative;
  overflow: hidden;
  transition: border-color var(--fw-dur-base) var(--ease);
}
.caps-grid__cell:hover { border-color: var(--fw-glow-cyan); }
.caps-grid__cell::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 55%;
  background: url("assets/wave-sweep.svg") no-repeat bottom right / 100% 100%;
  opacity: 0.3;
  pointer-events: none;
}
.caps-grid__num {
  font-family: var(--fw-font-mono);
  font-size: 11px;
  color: var(--fw-glow-cyan);
  letter-spacing: 0.08em;
  margin-bottom: 28px;
}
.caps-grid__glyph {
  width: 56px;
  height: 56px;
  border: 1px dashed var(--fw-border-strong);
  border-radius: 50%;
  margin-bottom: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 1;
  font-family: var(--fw-font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  color: var(--fw-fg-quiet);
  text-transform: uppercase;
}
.caps-grid__title {
  font-family: var(--fw-font-display);
  font-weight: 500;
  font-size: 14px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--fw-glow-white);
  margin: 0 0 12px 0;
  line-height: 1.25;
  position: relative;
  z-index: 1;
}
.caps-grid__desc {
  font-family: var(--fw-font-body);
  font-size: 13px;
  line-height: 1.55;
  color: var(--fw-fg-muted);
  margin: 0;
  position: relative;
  z-index: 1;
}
@media (max-width: 1080px) {
  .caps-grid { grid-template-columns: repeat(2, 1fr); }
}
.caps-grid { grid-template-columns: repeat(3, 1fr); }

/* Legend below wheel */
.wheel-legend {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 18px;
  margin-top: 36px;
  padding-top: 28px;
  border-top: 1px solid var(--fw-border);
}
.wheel-legend__cell {
  border-left: 1px solid var(--fw-border);
  padding: 0 18px;
  cursor: pointer;
  transition: border-color var(--fw-dur-base) var(--ease);
}
.wheel-legend__cell:first-child { border-left: 0; padding-left: 0; }
.wheel-legend__cell:hover { border-left-color: var(--fw-glow-cyan); }
.wheel-legend__cell:first-child:hover { border-left-color: transparent; }
.wheel-legend__num {
  font-family: var(--fw-font-mono);
  font-size: 10px;
  color: var(--fw-glow-cyan);
  letter-spacing: 0.08em;
  margin-bottom: 8px;
}
.wheel-legend__name {
  font-family: var(--fw-font-display);
  font-weight: 500;
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--fw-glow-white);
  margin: 0 0 10px 0;
  line-height: 1.3;
}
.wheel-legend__desc {
  font-family: var(--fw-font-body);
  font-size: 12.5px;
  line-height: 1.55;
  color: var(--fw-fg-muted);
  margin: 0;
}
@media (max-width: 1160px) {
  .wheel-legend { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 32px; }
  .wheel-legend__cell:nth-child(3n+1) { border-left: 0; padding-left: 0; }
}
@media (max-width: 880px) {
  .wheel-legend { grid-template-columns: 1fr 1fr; }
  .wheel-legend__cell:nth-child(3n+1) { border-left: 1px solid var(--fw-border); padding-left: 18px; }
  .wheel-legend__cell:nth-child(odd) { border-left: 0; padding-left: 0; }
}

/* Action buttons below the wheel */
.wheel-actions {
  display: flex;
  gap: 18px;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 96px;
  padding-top: 56px;
  border-top: 1px solid var(--fw-border);
}
.wheel-actions .cta--ghost { padding-left: 18px; }

/* ───────────── ABOUT TEASER ───────────── */

.about {
  display: grid;
  grid-template-columns: 0.95fr 1.25fr;
  gap: 80px;
  align-items: start;
}
.about__pull {
  font-family: var(--fw-font-display);
  font-weight: 300;
  font-size: 32px;
  letter-spacing: 0.03em;
  line-height: 1.18;
  text-transform: uppercase;
  color: var(--fw-glow-white);
  margin: 0 0 32px 0;
}
.about__pull em { font-style: normal; color: var(--fw-glow-cyan); font-weight: 400; }
.about__copy { display: flex; flex-direction: column; gap: 18px; }
.about__copy .body strong { letter-spacing: 0.02em; }
.about__cta { margin-top: 12px; display: inline-flex; align-items: center; gap: 12px; color: var(--fw-glow-cyan); font-family: var(--fw-font-display); font-size: 11px; letter-spacing: 0.24em; text-transform: uppercase; }
.about__cta:hover { color: var(--fw-glow-white); }

@media (max-width: 880px) {
  .about { grid-template-columns: 1fr; gap: 32px; }
}

/* ───────────── KEY CONTRIBUTIONS ───────────── */

.contributions {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-top: 24px;
}
.contrib-card {
  background: var(--fw-navy-800);
  border: 1px solid var(--fw-border);
  border-radius: var(--fw-radius-md);
  padding: 32px;
  display: grid;
  grid-template-columns: 1fr 180px;
  gap: 32px;
  align-items: stretch;
  position: relative;
  overflow: hidden;
  transition: border-color var(--fw-dur-base) var(--ease);
}
.contrib-card:hover { border-color: var(--fw-glow-cyan); }
.contrib-card__institution {
  font-family: var(--fw-font-display);
  font-weight: 500;
  font-size: 18px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--fw-glow-white);
  margin: 0 0 6px 0;
}
.contrib-card__role {
  font-family: var(--fw-font-mono);
  font-size: 11px;
  color: var(--fw-glow-cyan);
  letter-spacing: 0.08em;
  margin: 0 0 18px 0;
  text-transform: uppercase;
}
.contrib-card__bullets {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.contrib-card__bullets li {
  font-family: var(--fw-font-body);
  font-size: 13.5px;
  color: var(--fw-fg-muted);
  line-height: 1.5;
  padding-left: 18px;
  position: relative;
}
.contrib-card__bullets li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 10px;
  height: 1px;
  background: var(--fw-glow-cyan);
}
.contrib-card__graphic {
  background: var(--fw-navy-1000);
  border: 1px dashed var(--fw-border-strong);
  border-radius: var(--fw-radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 16px;
  font-family: var(--fw-font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fw-fg-quiet);
  min-height: 180px;
}

@media (max-width: 880px) {
  .contributions { grid-template-columns: 1fr; }
  .contrib-card { grid-template-columns: 1fr; gap: 18px; }
  .contrib-card__graphic { min-height: 140px; }
}

/* ───────────── CTA BAND ───────────── */

.cta-band {
  position: relative;
  padding: 96px 0;
  overflow: hidden;
  border-top: 1px solid var(--fw-border);
  border-bottom: 1px solid var(--fw-border);
}
.cta-band::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("assets/wave-line.svg") no-repeat center / 110% 100%;
  opacity: 0.4;
  pointer-events: none;
}
.cta-band__inner {
  position: relative;
  z-index: 2;
  max-width: var(--page-max);
  margin: 0 auto;
  padding: 0 var(--page-pad);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 48px;
  align-items: center;
}
.cta-band__title {
  font-family: var(--fw-font-display);
  font-weight: 300;
  font-size: 38px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--fw-glow-white);
  margin: 0;
  max-width: 24ch;
  line-height: 1.15;
}
.cta-band__title em { font-style: normal; color: var(--fw-glow-cyan); font-weight: 400; }
.cta-band__meta {
  font-family: var(--fw-font-mono);
  font-size: 12px;
  color: var(--fw-fg-quiet);
  margin-top: 14px;
  letter-spacing: 0.04em;
}
@media (max-width: 880px) {
  .cta-band__inner { grid-template-columns: 1fr; gap: 24px; }
}

/* ───────────── FOOTER ───────────── */

.site-footer {
  padding: 56px 0 40px;
  border-top: 1px solid var(--fw-divider);
}
.site-footer__inner {
  max-width: var(--page-max);
  margin: 0 auto;
  padding: 0 var(--page-pad);
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr 1fr;
  gap: 40px;
  align-items: start;
}
.site-footer__brand .brand { margin-bottom: 16px; }
.site-footer__brand p {
  font-family: var(--fw-font-body);
  font-size: 13px;
  color: var(--fw-fg-muted);
  line-height: 1.55;
  max-width: 32ch;
  margin: 0;
}
.site-footer__col h6 {
  font-family: var(--fw-font-display);
  font-size: 10px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--fw-fg-quiet);
  margin: 0 0 18px 0;
  font-weight: 500;
}
.site-footer__col ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.site-footer__col li {
  font-family: var(--fw-font-body);
  font-size: 13.5px;
  color: var(--fw-fg-muted);
}
.site-footer__col a:hover { color: var(--fw-glow-white); }
.site-footer__bottom {
  max-width: var(--page-max);
  margin: 56px auto 0;
  padding: 24px var(--page-pad) 0;
  border-top: 1px solid var(--fw-divider);
  display: flex;
  justify-content: space-between;
  gap: 24px;
  font-family: var(--fw-font-mono);
  font-size: 11px;
  color: var(--fw-fg-quiet);
}
@media (max-width: 880px) {
  .site-footer__inner { grid-template-columns: 1fr 1fr; }
  .site-footer__bottom { flex-direction: column; }
}

/* ───────────── SUB-PAGE HEADER (about/services/contact) ───────────── */

.subpage-hero {
  position: relative;
  padding: 140px 0 40px;
  overflow: hidden;
}
.subpage-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("assets/wave-line.svg") no-repeat center bottom / 130% 60%;
  opacity: 0.35;
  pointer-events: none;
}
.subpage-hero__inner {
  position: relative;
  z-index: 1;
  max-width: var(--page-max);
  margin: 0 auto;
  padding: 0 var(--page-pad);
}
.subpage-hero h1 {
  font-family: var(--fw-font-display);
  font-weight: 300;
  font-size: clamp(36px, 5vw, 56px);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--fw-glow-white);
  margin: 22px 0 24px 0;
  line-height: 1.06;
}
.subpage-hero h1 em { font-style: normal; color: var(--fw-glow-cyan); font-weight: 400; }
.subpage-hero__lede {
  font-family: var(--fw-font-body);
  font-size: 17px;
  color: var(--fw-glow-ice);
  line-height: 1.6;
  max-width: 62ch;
  margin: 0;
}

/* Editable placeholder block */
.placeholder {
  border: 1px dashed var(--fw-border-strong);
  border-radius: var(--fw-radius-md);
  padding: 24px 26px;
  font-family: var(--fw-font-body);
  font-size: 14px;
  line-height: 1.65;
  color: var(--fw-fg-muted);
}
.placeholder p { margin: 0 0 12px 0; }
.placeholder p:last-child { margin-bottom: 0; }
.placeholder__label {
  display: block;
  font-family: var(--fw-font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fw-glow-cyan);
  margin-bottom: 10px;
}

.services-list {
  display: grid;
  gap: 32px;
}
.services-row {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 48px;
  padding: 32px 0;
  border-top: 1px solid var(--fw-border);
  align-items: start;
}
.services-row:last-child { border-bottom: 1px solid var(--fw-border); }
.services-row__name {
  font-family: var(--fw-font-display);
  font-weight: 500;
  font-size: 18px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--fw-glow-white);
  margin: 0;
}
.services-row__num {
  font-family: var(--fw-font-mono);
  font-size: 11px;
  color: var(--fw-glow-cyan);
  letter-spacing: 0.08em;
  margin-bottom: 10px;
  display: block;
}
@media (max-width: 880px) {
  .services-row { grid-template-columns: 1fr; gap: 16px; }
}

/* Filled service content */
.services-body p {
  font-family: var(--fw-font-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--fw-fg-muted);
  margin: 0 0 22px 0;
}
.services-body__label {
  display: block;
  font-family: var(--fw-font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fw-glow-cyan);
  margin: 0 0 14px 0;
}
.services-body ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
}
.services-body li {
  position: relative;
  padding-left: 24px;
  font-family: var(--fw-font-body);
  font-size: 15.5px;
  line-height: 1.5;
  color: var(--fw-fg-muted);
}
.services-body li::before {
  content: "";
  position: absolute;
  left: 3px;
  top: 9px;
  width: 6px;
  height: 6px;
  background: var(--fw-glow-cyan);
  border-radius: 1px;
  transform: rotate(45deg);
}

/* ───────────── CONTACT PAGE ───────────── */

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}
.contact-info { display: flex; flex-direction: column; gap: 16px; }
.contact-info__row {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 18px;
  padding: 18px 0;
  border-top: 1px solid var(--fw-border);
  align-items: baseline;
}
.contact-info__row:last-child { border-bottom: 1px solid var(--fw-border); }
.contact-info__label {
  font-family: var(--fw-font-display);
  font-size: 10px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--fw-fg-quiet);
}
.contact-info__value {
  font-family: var(--fw-font-body);
  font-size: 16px;
  color: var(--fw-glow-white);
}
.contact-info__value a:hover { color: var(--fw-glow-cyan); }

.contact-card {
  background: var(--fw-navy-800);
  border: 1px solid var(--fw-border);
  border-radius: var(--fw-radius-md);
  padding: 36px;
  position: relative;
  overflow: hidden;
}
.contact-card::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 70%;
  background: url("assets/wave-sweep.svg") no-repeat bottom right / 100% 100%;
  opacity: 0.35;
  pointer-events: none;
}
.contact-card > * { position: relative; z-index: 1; }
.contact-card h3 {
  font-family: var(--fw-font-display);
  font-weight: 500;
  font-size: 18px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--fw-glow-white);
  margin: 0 0 20px 0;
}
.contact-card .body { margin-bottom: 28px; }
.mail-options {
  display: flex;
  align-items: center;
  gap: 16px;
  padding-left: 2px;
}
.mail-options__label {
  font-family: var(--fw-font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--fw-fg-quiet);
}
.mail-options__link {
  font-family: var(--fw-font-display);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fw-glow-ice);
  text-decoration: none;
  padding-bottom: 2px;
  border-bottom: 1px solid var(--fw-border-strong);
  transition: color var(--fw-dur-base) var(--ease), border-color var(--fw-dur-base) var(--ease);
}
.mail-options__link:hover { color: var(--fw-glow-white); border-color: var(--fw-glow-cyan); }

@media (max-width: 880px) {
  .contact-grid { grid-template-columns: 1fr; gap: 32px; }
}

/* ───────────── BINARY-RAIN OVERLAY (removed per request) ───────────── */
.data-rain { display: none; }

/* ───────────── UTILS ───────────── */

/* About — Domains of Expertise */
.about-intro { max-width: 74ch; }
.about-intro p { font-family: var(--fw-font-body); font-size: 16.5px; line-height: 1.65; color: var(--fw-fg-muted); }
.about-intro p + p { margin-top: 20px; }
.about-intro strong { color: var(--fw-glow-white); font-weight: 600; }
.domains {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  margin-top: 40px;
}
.domain {
  background: var(--fw-navy-800);
  border: 1px solid var(--fw-border);
  border-radius: var(--fw-radius-md);
  padding: 30px 28px 32px;
  transition: border-color var(--fw-dur-base) var(--ease);
}
.domain:hover { border-color: var(--fw-glow-cyan); }
.domain__num {
  font-family: var(--fw-font-mono);
  font-size: 11px;
  color: var(--fw-glow-cyan);
  letter-spacing: 0.08em;
  margin-bottom: 12px;
}
.domain__title {
  font-family: var(--fw-font-display);
  font-weight: 500;
  font-size: 18px;
  line-height: 1.25;
  color: var(--fw-glow-white);
  margin: 0 0 18px 0;
}
@media (max-width: 880px) { .domains { grid-template-columns: 1fr; } }
.domain__todo { color: var(--fw-fg-quiet) !important; font-family: var(--fw-font-mono); font-size: 11.5px; }
.domain__todo::before { background: var(--fw-fg-quiet) !important; }

.flow-gap-3 > * + * { margin-top: 12px; }

/* Publications & Patents */
.pubs-lede { max-width: 74ch; }
.pubs-lede p { font-family: var(--fw-font-body); font-size: 16.5px; line-height: 1.65; color: var(--fw-fg-muted); margin: 0; }
.patent-list {
  list-style: none;
  margin: 30px 0 0 0;
  padding: 0;
  display: grid;
  gap: 16px;
  max-width: 82ch;
}
.patent-list li {
  position: relative;
  padding-left: 26px;
  font-family: var(--fw-font-body);
  font-size: 15.5px;
  line-height: 1.55;
  color: var(--fw-fg-muted);
}
.patent-list li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 10px;
  width: 7px;
  height: 7px;
  background: var(--fw-glow-cyan);
  border-radius: 1px;
  transform: rotate(45deg);
}
.patent-list .patent-id {
  font-family: var(--fw-font-mono);
  font-size: 12.5px;
  color: var(--fw-glow-ice);
  white-space: nowrap;
}
.pub-list {
  list-style: none;
  counter-reset: pub;
  margin: 30px 0 0 0;
  padding: 0;
  display: grid;
  gap: 20px;
  max-width: 88ch;
}
.pub-list li {
  position: relative;
  padding-left: 52px;
  min-height: 34px;
  font-family: var(--fw-font-body);
  font-size: 15.5px;
  line-height: 1.6;
  color: var(--fw-fg-muted);
}
.pub-list li::before {
  counter-increment: pub;
  content: counter(pub, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 1px;
  font-family: var(--fw-font-mono);
  font-size: 13px;
  color: var(--fw-glow-cyan);
  border: 1px solid var(--fw-border);
  border-radius: var(--fw-radius-sm, 6px);
  width: 34px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.pub-list .pub-journal { color: var(--fw-glow-white); font-weight: 600; font-style: normal; }
.pub-list .pub-year { font-family: var(--fw-font-mono); font-size: 12.5px; color: var(--fw-glow-ice); }
.pub-footnote {
  margin: 24px 0 0 0;
  max-width: 88ch;
  font-family: var(--fw-font-mono);
  font-size: 12px;
  color: var(--fw-fg-quiet);
  letter-spacing: 0.01em;
}
.flow-gap-4 > * + * { margin-top: 16px; }
.flow-gap-5 > * + * { margin-top: 24px; }
