/* ==========================================================================
   Pennington Group Associates — site styles
   Art direction: the analyst's report. Deep indigo-navy taken from the firm's
   own mark, a high-contrast serif for authority, hairline rules, numbered
   editorial sections, monospaced data labels. One crimson accent.
   ========================================================================== */

:root {
  /* Type scale */
  --text-xs: clamp(0.75rem, 0.7rem + 0.25vw, 0.8125rem);
  --text-sm: clamp(0.875rem, 0.8rem + 0.2vw, 0.9375rem);
  --text-base: clamp(1rem, 0.96rem + 0.2vw, 1.0625rem);
  --text-lg: clamp(1.125rem, 1rem + 0.6vw, 1.4375rem);
  --text-xl: clamp(1.5rem, 1.2rem + 1.25vw, 2.25rem);
  --text-2xl: clamp(2rem, 1.2rem + 2.5vw, 3.3rem);
  --text-3xl: clamp(2.4rem, 1.2rem + 3.6vw, 4.4rem);

  /* Spacing */
  --space-1: 0.25rem;  --space-2: 0.5rem;   --space-3: 0.75rem;
  --space-4: 1rem;     --space-5: 1.25rem;  --space-6: 1.5rem;
  --space-8: 2rem;     --space-10: 2.5rem;  --space-12: 3rem;
  --space-16: 4rem;    --space-20: 5rem;    --space-24: 6rem;
  --space-32: 8rem;

  /* Radius / motion */
  --radius-sm: 0.1875rem;
  --radius-md: 0.3125rem;
  --radius-lg: 0.5rem;
  --radius-full: 9999px;
  --transition-interactive: 180ms cubic-bezier(0.16, 1, 0.3, 1);

  /* Widths */
  --content-narrow: 660px;
  --content-default: 1060px;
  --content-wide: 1300px;

  /* Fonts */
  --font-display: 'Bespoke Serif', 'Iowan Old Style', Georgia, serif;
  --font-body: 'Satoshi', 'Segoe UI', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, monospace;

  /* The firm's navy, sampled from its own mark. Used for permanent chassis. */
  --navy: #0c0634;
  --navy-deep: #07031f;
  --navy-raised: #150d44;
}

/* ---------- Dark (brand default) ---------- */
:root,
[data-theme='dark'] {
  --color-bg: #0c0634;
  --color-surface: #140d44;
  --color-surface-2: #1a1152;
  --color-surface-offset: #0a0429;
  --color-border: #2b2166;
  --color-border-strong: #3d3187;
  --color-divider: #1e1652;
  --color-text: #edebf7;
  --color-text-muted: #a8a3c9;
  --color-text-faint: #8b84b0;
  --color-text-inverse: #0c0634;
  --color-primary: #e23a44;
  --color-primary-hover: #f0555e;
  --color-btn: #cc2b35;
  --color-btn-hover: #e23a44;
  --color-on-primary: #ffffff;
  --color-accent-text: #ff8f96;
  --color-focus: #ff8f96;
  --color-good: #52c08a;
  --color-slate: #7b8bc4;
  --color-brass: #d9a94a;
  --grid-line: rgba(255, 255, 255, 0.04);
  --img-veil: 0.6;
  --shadow-md: 0 10px 34px rgba(3, 1, 16, 0.55);
}

/* ---------- Light ---------- */
[data-theme='light'] {
  --color-bg: #f7f6f2;
  --color-surface: #ffffff;
  --color-surface-2: #fbfaf6;
  --color-surface-offset: #eeece4;
  --color-border: #d8d4c9;
  --color-border-strong: #bab5a7;
  --color-divider: #e4e1d8;
  --color-text: #0c0634;
  --color-text-muted: #524d78;
  --color-text-faint: #625d84;
  --color-text-inverse: #ffffff;
  --color-primary: #c62d38;
  --color-primary-hover: #a92028;
  --color-btn: #b3232b;
  --color-btn-hover: #97181f;
  --color-on-primary: #ffffff;
  --color-accent-text: #a92028;
  --color-focus: #c62d38;
  --color-good: #23794f;
  --color-slate: #4d5c92;
  --color-brass: #97701c;
  --grid-line: rgba(12, 6, 52, 0.05);
  --img-veil: 0.48;
  --shadow-md: 0 10px 30px rgba(12, 6, 52, 0.1);
}

/* No prefers-color-scheme fallback by design: dark navy is the brand default
   for every visitor. Light applies only via an explicit toggle. */

/* --------------------------------------------------------------------------
   The navy chassis. These regions stay navy in light mode, so they re-declare
   the token set locally. Without this, accent text and borders resolve against
   the light page and vanish against the navy.
   -------------------------------------------------------------------------- */
.hero,
.band,
.pagehead,
.specstrip,
.footer {
  --color-text: #ffffff;
  --color-text-muted: rgba(255, 255, 255, 0.74);
  --color-text-faint: rgba(255, 255, 255, 0.54);
  --color-accent-text: #ff8f96;
  --color-focus: #ff8f96;
  --color-surface: rgba(255, 255, 255, 0.045);
  --color-surface-2: rgba(255, 255, 255, 0.07);
  --color-border: rgba(255, 255, 255, 0.14);
  --color-border-strong: rgba(255, 255, 255, 0.3);
  --color-btn: #cc2b35;
  --color-btn-hover: #e23a44;
  --color-primary: #e23a44;
}

/* ==========================================================================
   Primitives
   ========================================================================== */

.wrap { width: 100%; max-width: var(--content-wide); margin-inline: auto; padding-inline: var(--space-6); }
.wrap--default { max-width: var(--content-default); }
.wrap--narrow { max-width: var(--content-narrow); }

section { position: relative; }
.section { padding-block: clamp(var(--space-16), 7.5vw, var(--space-32)); }
.section--tight { padding-block: clamp(var(--space-12), 5vw, var(--space-20)); }
.section--rule { border-top: 1px solid var(--color-divider); }
.section--panel { background: var(--color-surface-offset); }

.stack > * + * { margin-top: var(--space-4); }
.stack-lg > * + * { margin-top: var(--space-8); }
.measure { max-width: 68ch; }
.measure-tight { max-width: 56ch; }

.h-hero, .h-1, .h-2, .h-3 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.04;
  letter-spacing: -0.015em;
  color: var(--color-text);
}
.h-hero { font-size: var(--text-3xl); }
.h-1 { font-size: var(--text-2xl); }
.h-2 { font-size: var(--text-xl); line-height: 1.12; }
.h-3 {
  font-family: var(--font-body);
  font-size: var(--text-lg);
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.005em;
}
.h-4 {
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: 700;
  letter-spacing: 0.005em;
  color: var(--color-text);
}

.lede { font-size: var(--text-lg); line-height: 1.5; color: var(--color-text-muted); }
.body-muted { color: var(--color-text-muted); }
.small { font-size: var(--text-sm); color: var(--color-text-muted); }
.tiny { font-size: var(--text-xs); color: var(--color-text-faint); }
.mono { font-family: var(--font-mono); }

.eyebrow {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-accent-text);
}
.eyebrow::before {
  content: '';
  width: 26px;
  height: 1px;
  background: var(--color-primary);
  flex: none;
}
.eyebrow--plain::before { display: none; }

.sec-head { max-width: 62ch; }
.sec-head > * + * { margin-top: var(--space-4); }

.link {
  color: var(--color-text);
  text-decoration: none;
  border-bottom: 1px solid var(--color-primary);
  padding-bottom: 1px;
  transition: color var(--transition-interactive);
}
.link:hover { color: var(--color-accent-text); }

.arrow-link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--color-accent-text);
  text-decoration: none;
}
.arrow-link::after { content: '→'; transition: transform var(--transition-interactive); }
.arrow-link:hover::after { transform: translateX(4px); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-4) var(--space-6);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 700;
  letter-spacing: 0.01em;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  text-decoration: none;
  cursor: pointer;
  transition: background var(--transition-interactive), border-color var(--transition-interactive),
              color var(--transition-interactive), transform var(--transition-interactive);
}
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--color-btn); color: var(--color-on-primary); }
.btn--primary:hover { background: var(--color-btn-hover); }
.btn--ghost { border-color: rgba(255, 255, 255, 0.28); color: #fff; background: transparent; }
.btn--ghost:hover { border-color: #fff; background: rgba(255, 255, 255, 0.07); }
[data-theme='light'] .btn--ghost { border-color: var(--color-border-strong); color: var(--color-text); }
[data-theme='light'] .btn--ghost:hover { background: var(--color-surface-offset); border-color: var(--color-text); }
/* The navy chassis stays navy in light mode, so ghost buttons on it must stay
   white. Without this they render navy-on-navy and disappear. */
[data-theme='light'] .hero .btn--ghost,
[data-theme='light'] .band .btn--ghost,
[data-theme='light'] .pagehead .btn--ghost,
[data-theme='light'] .footer .btn--ghost,
[data-theme='light'] .specstrip .btn--ghost {
  border-color: rgba(255, 255, 255, 0.32);
  color: #fff;
  background: transparent;
}
[data-theme='light'] .hero .btn--ghost:hover,
[data-theme='light'] .band .btn--ghost:hover,
[data-theme='light'] .pagehead .btn--ghost:hover,
[data-theme='light'] .footer .btn--ghost:hover,
[data-theme='light'] .specstrip .btn--ghost:hover {
  border-color: #fff;
  background: rgba(255, 255, 255, 0.1);
}
.btn--sm { padding: var(--space-3) var(--space-4); font-size: var(--text-xs); }
.btn-row { display: flex; flex-wrap: wrap; gap: var(--space-4); }

.chip {
  display: inline-block;
  padding: 0.28rem 0.6rem;
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.06em;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-full);
  color: var(--color-text-muted);
}
.chip--accent { border-color: rgba(226, 58, 68, 0.45); color: var(--color-accent-text); }

.grid { display: grid; gap: var(--space-8); }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); }

.card {
  padding: var(--space-8);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
}
.card--flush { padding: 0; background: none; border: none; }

/* Focus visibility */
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible {
  outline: 2px solid var(--color-focus);
  outline-offset: 2px;
}
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0;
  margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.sr-only:focus {
  position: static; width: auto; height: auto; margin: 0; overflow: visible;
  clip: auto; white-space: normal;
  padding: var(--space-3) var(--space-4); background: var(--color-primary); color: #fff;
}

/* ==========================================================================
   Header — permanent navy chassis in both themes
   ========================================================================== */

.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--navy);
  border-bottom: 1px solid rgba(255, 255, 255, 0.09);
  transition: box-shadow var(--transition-interactive);
}
.header--scrolled { box-shadow: 0 6px 24px rgba(3, 1, 16, 0.4); }
.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-6);
  min-height: 68px;
  padding-block: var(--space-3);
}
.logo { display: inline-flex; align-items: center; gap: var(--space-3); text-decoration: none; }
.logo__mark { width: 34px; height: 34px; flex: none; color: var(--color-primary); }
.logo__type { display: flex; flex-direction: column; line-height: 1.12; }
.logo__name {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: 0.005em;
  color: #fff;
}
.logo__sub {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.52);
  margin-top: 2px;
}

.nav { display: flex; align-items: center; gap: var(--space-6); }
.nav a {
  position: relative;
  font-size: var(--text-sm);
  font-weight: 500;
  color: rgba(255, 255, 255, 0.76);
  text-decoration: none;
  padding-block: var(--space-2);
  transition: color var(--transition-interactive);
}
.nav a:hover { color: #fff; }
.nav a[aria-current='page'] { color: #fff; }
.nav a[aria-current='page']::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 2px;
  background: var(--color-primary);
}

.header__actions { display: flex; align-items: center; gap: var(--space-3); }
.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px; height: 36px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius-sm);
  color: rgba(255, 255, 255, 0.85);
  cursor: pointer;
  transition: background var(--transition-interactive), color var(--transition-interactive);
}
.icon-btn:hover { background: rgba(255, 255, 255, 0.13); color: #fff; }

.burger { display: none; }
.drawer { display: none; }

@media (max-width: 900px) {
  .nav { display: none; }
  .burger { display: inline-flex; }
  .drawer {
    display: block;
    position: fixed;
    inset: 68px 0 auto 0;
    z-index: 49;
    background: var(--navy);
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    padding: var(--space-6) 0 var(--space-8);
    transform: translateY(-120%);
    transition: transform 260ms cubic-bezier(0.16, 1, 0.3, 1);
  }
  .drawer[data-open='true'] { transform: translateY(0); }
  .drawer a {
    display: block;
    padding: var(--space-4) 0;
    font-family: var(--font-display);
    font-size: var(--text-lg);
    color: #fff;
    text-decoration: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }
  .drawer .btn { margin-top: var(--space-6); width: 100%; }
  /* The call to action lives in the drawer on small screens. */
  .header__actions > .btn { display: none; }
  .header__inner { gap: var(--space-4); }
}

/* ==========================================================================
   Hero — navy chassis, editorial serif, faint grid
   ========================================================================== */

.hero {
  position: relative;
  background: var(--navy);
  color: #fff;
  overflow: hidden;
  isolation: isolate;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -2;
  background-image: linear-gradient(var(--grid-line) 1px, transparent 1px),
                    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 68px 68px;
  mask-image: radial-gradient(ellipse 90% 70% at 20% 20%, #000 40%, transparent 100%);
}
.hero__media {
  position: absolute;
  inset: 0;
  z-index: -3;
}
.hero__media img { width: 100%; height: 100%; object-fit: cover; }
.hero__media::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, var(--navy) 12%, rgba(12, 6, 52, 0.9) 46%, rgba(12, 6, 52, 0.55) 100%);
}
.hero__inner {
  display: grid;
  gap: var(--space-8);
  padding-block: clamp(var(--space-16), 9vw, var(--space-24));
  max-width: 46rem;
}
.hero__title {
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -0.02em;
  color: #fff;
}
.hero__title em { font-style: italic; color: var(--color-accent-text); }
.hero__lede {
  font-size: var(--text-lg);
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.78);
  max-width: 44ch;
}
.hero__cta { display: flex; flex-wrap: wrap; gap: var(--space-4); }

/* Rule of measure under the hero */
.specstrip {
  background: var(--navy-deep);
  border-block: 1px solid rgba(255, 255, 255, 0.09);
}
.specstrip__inner {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3) var(--space-8);
  padding-block: var(--space-5);
}
.specstrip span {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.62);
}
.specstrip span::before {
  content: '';
  width: 4px; height: 4px;
  border-radius: 50%;
  background: var(--color-primary);
  flex: none;
}

/* ==========================================================================
   Pillar — the numbered editorial row. PGA's signature block.
   ========================================================================== */

.pillars { border-top: 1px solid var(--color-divider); }
.pillar {
  display: grid;
  grid-template-columns: 5.5rem 1fr;
  gap: var(--space-6) var(--space-8);
  padding-block: clamp(var(--space-10), 5vw, var(--space-16));
  border-bottom: 1px solid var(--color-divider);
}
.pillar__num {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 4vw, 3.6rem);
  font-weight: 700;
  line-height: 0.85;
  color: var(--color-primary);
  opacity: 0.85;
}
.pillar__body > * + * { margin-top: var(--space-4); }
.pillar__title {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.012em;
  color: var(--color-text);
}
.pillar__list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr));
  gap: var(--space-3) var(--space-8);
  margin-top: var(--space-6);
  list-style: none;
}
.pillar__list li {
  position: relative;
  padding-left: var(--space-5);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}
.pillar__list li::before {
  content: '';
  position: absolute;
  left: 0; top: 0.55em;
  width: 8px; height: 1px;
  background: var(--color-primary);
}

@media (max-width: 640px) {
  .pillar { grid-template-columns: 1fr; gap: var(--space-3); }
  .pillar__num { font-size: 2.2rem; }
}

/* ==========================================================================
   Method — numbered process steps on a connecting rule
   ========================================================================== */

.steps { display: grid; gap: 0; counter-reset: step; }
.step {
  display: grid;
  grid-template-columns: 2.75rem 1fr;
  gap: var(--space-6);
  padding-bottom: var(--space-8);
}
.step:last-child { padding-bottom: 0; }
.step__marker { position: relative; display: flex; justify-content: center; }
.step__dot {
  position: relative;
  z-index: 1;
  width: 2.75rem; height: 2.75rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--color-surface);
  border: 1px solid var(--color-border-strong);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  font-weight: 500;
  color: var(--color-accent-text);
  flex: none;
}
.step:not(:last-child) .step__marker::after {
  content: '';
  position: absolute;
  top: 2.75rem; bottom: calc(-1 * var(--space-8));
  left: 50%;
  width: 1px;
  background: var(--color-border);
}
.step__body > * + * { margin-top: var(--space-2); }
.step__title { font-size: var(--text-base); font-weight: 700; color: var(--color-text); }

/* ==========================================================================
   Quote / positioning statement
   ========================================================================== */

.quote {
  position: relative;
  padding-left: var(--space-8);
  border-left: 2px solid var(--color-primary);
}
.quote__text {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-style: italic;
  font-weight: 500;
  line-height: 1.25;
  letter-spacing: -0.01em;
  color: var(--color-text);
}
.quote__who {
  margin-top: var(--space-4);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-text-faint);
}

/* ==========================================================================
   Stats — serif numerals
   ========================================================================== */

.stat__num {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.4vw, 2.9rem);
  font-weight: 700;
  line-height: 1;
  color: var(--color-text);
}
.stat__label {
  margin-top: var(--space-3);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}
.stat { padding-top: var(--space-5); border-top: 1px solid var(--color-border); }

/* ==========================================================================
   Split layouts
   ========================================================================== */

.split {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
  gap: clamp(var(--space-8), 5vw, var(--space-20));
  align-items: center;
}
.split--top { align-items: start; }

/* Asymmetric lead: give the serif heading column more room to breathe. */
@media (min-width: 900px) {
  .split--lead { grid-template-columns: 1.15fr 1fr; }
}

/* A row of statistics that stays a row on desktop. */
.statrow {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 150px), 1fr));
  gap: var(--space-6);
}
.figframe {
  position: relative;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--color-surface-offset);
}
.figframe img { width: 100%; }
.figframe figcaption {
  padding: var(--space-3) var(--space-4);
  border-top: 1px solid var(--color-border);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.06em;
  color: var(--color-text-faint);
  background: var(--color-surface);
}

/* ==========================================================================
   Software band — the VissRad section. Dark navy inside light pages too.
   ========================================================================== */

.band {
  position: relative;
  background: var(--navy-raised);
  color: #fff;
  overflow: hidden;
  isolation: isolate;
}
.band::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 80% 80% at 80% 30%, #000 30%, transparent 100%);
}
.band .h-1, .band .h-2, .band .h-3, .band .h-4 { color: #fff; }
.band .lede, .band .body-muted, .band .small { color: rgba(255, 255, 255, 0.74); }
.band .tiny { color: rgba(255, 255, 255, 0.5); }
.band .eyebrow { color: var(--color-accent-text); }
.band .card {
  background: rgba(255, 255, 255, 0.045);
  border-color: rgba(255, 255, 255, 0.14);
}
.band .chip { border-color: rgba(255, 255, 255, 0.22); color: rgba(255, 255, 255, 0.75); }
.band .stat { border-top-color: rgba(255, 255, 255, 0.2); }
.band .stat__num { color: #fff; }
.band .stat__label { color: rgba(255, 255, 255, 0.7); }

/* Module list inside the software band */
.mods { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 268px), 1fr)); gap: var(--space-5); }
.mod {
  display: grid;
  gap: var(--space-2);
  padding: var(--space-5) var(--space-6);
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: var(--radius-md);
  border-left: 2px solid var(--color-primary);
}
.mod__name {
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  font-weight: 500;
  letter-spacing: 0.02em;
  color: #fff;
}
.mod__role { font-size: var(--text-sm); color: rgba(255, 255, 255, 0.72); }

/* ==========================================================================
   Contact form
   ========================================================================== */

.form { display: grid; gap: var(--space-5); }
.form__row { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: var(--space-5); }
.field { display: grid; gap: var(--space-2); }
.field label { font-size: var(--text-sm); font-weight: 700; color: var(--color-text); }
.field input, .field textarea, .field select {
  padding: var(--space-3) var(--space-4);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  font-size: var(--text-base);
  color: var(--color-text);
  transition: border-color var(--transition-interactive);
}
.field input:hover, .field textarea:hover, .field select:hover { border-color: var(--color-border-strong); }
.field textarea { min-height: 8rem; resize: vertical; }
.field__hint { font-size: var(--text-xs); color: var(--color-text-faint); }
.form__status { font-size: var(--text-sm); color: var(--color-accent-text); min-height: 1.4em; }
.form__status[data-state="ok"] { color: var(--color-good); }
.form__status[data-state="error"] { color: #ff9a8f; }
.form__status[data-state="busy"] { color: var(--color-text-muted); }

/* ==========================================================================
   Page head (inner pages)
   ========================================================================== */

.pagehead {
  background: var(--navy);
  color: #fff;
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.pagehead::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: linear-gradient(var(--grid-line) 1px, transparent 1px),
                    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 80% 90% at 15% 10%, #000 40%, transparent 100%);
}
.pagehead__inner {
  padding-block: clamp(var(--space-14), 7vw, var(--space-20)) clamp(var(--space-12), 5vw, var(--space-16));
  max-width: 44rem;
}
.pagehead .h-hero { color: #fff; font-size: var(--text-2xl); }
.pagehead .lede { color: rgba(255, 255, 255, 0.76); }
.pagehead > .wrap > .pagehead__inner > * + * { margin-top: var(--space-5); }

/* ==========================================================================
   Callout
   ========================================================================== */

.callout {
  padding: var(--space-6) var(--space-8);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-left: 2px solid var(--color-primary);
  border-radius: var(--radius-sm);
}
.callout--neutral { border-left-color: var(--color-border-strong); }

/* ==========================================================================
   Footer — permanent navy chassis
   ========================================================================== */

.footer {
  background: var(--navy-deep);
  color: rgba(255, 255, 255, 0.72);
  border-top: 1px solid rgba(255, 255, 255, 0.09);
}
.footer__grid {
  display: grid;
  grid-template-columns: minmax(min(100%, 240px), 1.4fr) repeat(auto-fit, minmax(min(100%, 150px), 1fr));
  gap: var(--space-10);
  padding-block: var(--space-16) var(--space-10);
}
/* auto-fit still reserves tracks from its px minimum, so collapse explicitly. */
@media (max-width: 900px) {
  .footer__grid { grid-template-columns: 1fr 1fr; gap: var(--space-8); }
  .footer__grid > :first-child { grid-column: 1 / -1; }
}
@media (max-width: 460px) {
  .footer__grid { grid-template-columns: 1fr; }
}
.footer h4 {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.58);
  margin-bottom: var(--space-4);
}
.footer a { color: rgba(255, 255, 255, 0.72); text-decoration: none; font-size: var(--text-sm); }
.footer a:hover { color: #fff; }
.footer ul { list-style: none; display: grid; gap: var(--space-3); }
.footer__tag {
  font-family: var(--font-display);
  font-style: italic;
  font-size: var(--text-base);
  color: rgba(255, 255, 255, 0.6);
  margin-top: var(--space-4);
  max-width: 34ch;
}
.footer__base {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--space-4);
  padding-block: var(--space-6);
  border-top: 1px solid rgba(255, 255, 255, 0.09);
  font-size: var(--text-xs);
  color: rgba(255, 255, 255, 0.58);
}
.footer .logo__name { font-size: 1.1rem; }

/* ==========================================================================
   CTA
   ========================================================================== */

.cta {
  background: var(--color-surface-offset);
  border-top: 1px solid var(--color-divider);
  border-bottom: 1px solid var(--color-divider);
}

/* ==========================================================================
   Reveal on scroll
   ========================================================================== */

.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 620ms cubic-bezier(0.16, 1, 0.3, 1), transform 620ms cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.is-in { opacity: 1; transform: none; }

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