/* ============================================================
   EXCO Sciences — design system
   Palette: aged-instrument verdigris + brass on clean-room white
   Type: Spectral (display serif) · Hanken Grotesk (body) · IBM Plex Mono (data)
   ============================================================ */

/* Fonts load via <link> in each page head (avoids a render-blocking @import chain). */

:root {
  /* ---- color: committed palette ---- */
  --ground:      #F1F3F1;  /* cool mineral white — clean-room light, faint green-grey */
  --ground-2:    #E7EBE8;  /* recessed panels on light */
  --ink:         #0C1A17;  /* spruce ink — primary text */
  --ink-deep:    #07201C;  /* deep spruce — dark bands/hero */
  --ink-deep-2:  #0B2A24;  /* slightly lifted dark, for cards on dark */
  --accent:      #0E6E60;  /* oxidized teal — the stabilized-molecule hue */
  --accent-dk:   #0A554A;  /* teal pressed/hover */
  --accent-lt:   #5FC9B5;  /* luminous mint — accent on dark grounds */
  --brass:       #B98A3E;  /* heritage brass — used minimally */
  --brass-lt:    #D6B070;

  --line:        rgba(12, 26, 23, 0.14);  /* hairlines on light */
  --line-dk:     rgba(241, 243, 241, 0.16); /* hairlines on dark */
  --muted:       #4E5C58;  /* secondary text on light */
  --muted-dk:    #9FB2AC;  /* secondary text on dark */

  /* ---- type ---- */
  --serif: 'Spectral', Georgia, 'Times New Roman', serif;
  --sans:  'Hanken Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --mono:  'IBM Plex Mono', ui-monospace, 'SF Mono', Menlo, monospace;

  /* fluid type scale */
  --fs-eyebrow: 0.72rem;
  --fs-body:    1.0625rem;
  --fs-lead:    clamp(1.18rem, 0.9rem + 1.1vw, 1.5rem);
  --fs-h3:      clamp(1.25rem, 1rem + 1vw, 1.6rem);
  --fs-h2:      clamp(1.9rem, 1.3rem + 2.6vw, 3rem);
  --fs-h1:      clamp(2.6rem, 1.6rem + 4.6vw, 5rem);
  --fs-statement: clamp(2rem, 1.3rem + 2.8vw, 3.4rem); /* long-sentence headlines (About manifesto) */
  --fs-display: clamp(3rem, 1.6rem + 6vw, 6.5rem);

  /* rhythm */
  --maxw: 1180px;
  --gutter: clamp(1.25rem, 5vw, 4rem);
  --section-y: clamp(4.5rem, 8vw, 8.5rem);
  --radius: 3px;
}

/* ============================================================
   reset / base
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--sans);
  font-size: var(--fs-body);
  line-height: 1.62;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-dk); }

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 400;
  line-height: 1.06;
  letter-spacing: -0.012em;
  margin: 0;
  text-wrap: balance;
}

p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }

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

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 2px;
}

/* anchored sections land clear of the sticky header */
[id] { scroll-margin-top: 84px; }

/* skip link — visible only when focused */
.skip-link {
  position: absolute; left: 1rem; top: -100px; z-index: 100;
  background: var(--accent); color: var(--ground);
  font-family: var(--mono); font-size: 0.78rem; letter-spacing: 0.06em; text-transform: uppercase;
  padding: 0.7rem 1.1rem; border-radius: var(--radius);
  transition: top .15s ease;
}
.skip-link:focus-visible { top: 1rem; color: var(--ground); }

/* ============================================================
   layout primitives
   ============================================================ */
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.wrap--narrow { max-width: 820px; }

.section { padding-block: var(--section-y); }
.section + .section { padding-top: 0; }

.dark { background: var(--ink-deep); color: var(--ground); }
.dark h1, .dark h2, .dark h3, .dark h4 { color: var(--ground); }
.dark a { color: var(--accent-lt); }
.dark .eyebrow { color: var(--accent-lt); }
.dark .lead { color: var(--muted-dk); }

/* eyebrow / kicker — the mono "lab label" register */
.eyebrow {
  font-family: var(--mono);
  font-size: var(--fs-eyebrow);
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 1.4rem;
  display: flex;
  align-items: center;
  gap: 0.7rem;
}
.eyebrow::before {
  content: "";
  width: 1.6rem; height: 1px;
  background: currentColor;
  flex: none;
  opacity: 0.8;
}

.lead { font-size: var(--fs-lead); line-height: 1.46; color: var(--muted); font-weight: 400; }

.serif-lead {
  font-family: var(--serif);
  font-size: var(--fs-lead);
  line-height: 1.4;
  font-weight: 300;
  letter-spacing: -0.01em;
}

.measure { max-width: 60ch; }
.measure-tight { max-width: 46ch; }

/* ============================================================
   buttons
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--mono);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.85rem 1.5rem;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  transition: background .18s ease, color .18s ease, border-color .18s ease, transform .18s ease;
}
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--accent); color: var(--ground); }
.btn--primary:hover { background: var(--accent-dk); color: var(--ground); }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--ink); color: var(--ink); }
.dark .btn--ghost, .hero .btn--ghost { color: var(--ground); border-color: var(--line-dk); }
.dark .btn--ghost:hover, .hero .btn--ghost:hover { border-color: var(--ground); color: var(--ground); }
.dark .btn--primary { background: var(--accent-lt); color: var(--ink-deep); }
.dark .btn--primary:hover { background: #7CD8C6; color: var(--ink-deep); }

.btn .arrow { transition: transform .18s ease; }
.btn:hover .arrow { transform: translateX(3px); }

.btn-row { display: flex; flex-wrap: wrap; gap: 0.9rem; }

/* text link with arrow */
.tlink {
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border-bottom: 1px solid transparent;
  padding-bottom: 2px;
}
.tlink:hover { border-bottom-color: currentColor; }
.tlink .arrow { transition: transform .18s ease; }
.tlink:hover .arrow { transform: translateX(3px); }

/* ============================================================
   site header
   ============================================================ */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--ground) 86%, transparent);
  backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.site-header.on-dark {
  background: color-mix(in srgb, var(--ink-deep) 80%, transparent);
  border-bottom-color: var(--line-dk);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1.5rem;
  height: 68px;
}
.brand { display: inline-flex; align-items: center; gap: 0.7rem; color: var(--ink); }
.on-dark .brand { color: var(--ground); }
.brand__mark { width: 26px; height: 26px; flex: none; }
.brand__word { font-family: var(--serif); font-size: 1.35rem; letter-spacing: 0.02em; line-height: 1; }
.brand__word b { font-weight: 500; }
.brand__sub {
  font-family: var(--mono); font-size: 0.58rem; letter-spacing: 0.28em;
  text-transform: uppercase; color: var(--muted); display: block; margin-top: 3px;
}
.on-dark .brand__sub { color: var(--muted-dk); }

.nav__links { display: flex; align-items: center; gap: 1.6rem; list-style: none; margin: 0; padding: 0; }
.nav__links a {
  font-family: var(--mono);
  font-size: 0.76rem;
  letter-spacing: 0.04em;
  color: var(--ink);
  text-transform: uppercase;
  padding: 0.4rem 0;
  position: relative;
}
.on-dark .nav__links a { color: var(--ground); }
.nav__links a::after {
  content: ""; position: absolute; left: 0; bottom: -2px; height: 1px; width: 0;
  background: var(--accent); transition: width .2s ease;
}
.nav__links a:hover::after, .nav__links a[aria-current="page"]::after { width: 100%; }
.nav__links a[aria-current="page"] { color: var(--accent); }
.on-dark .nav__links a[aria-current="page"] { color: var(--accent-lt); }
/* the filled CTA keeps its own contrast even when it is the current page */
.nav__links .nav__cta[aria-current="page"] { color: var(--ground); }
.on-dark .nav__links .nav__cta[aria-current="page"] { color: var(--ink-deep); }
.nav__links .nav__cta {
  background: var(--accent); color: var(--ground); padding: 0.5rem 0.95rem; border-radius: var(--radius);
}
.nav__links .nav__cta::after { display: none; }
.nav__links .nav__cta:hover { background: var(--accent-dk); color: var(--ground); }
.on-dark .nav__links .nav__cta { background: var(--accent-lt); color: var(--ink-deep); }

.nav__toggle {
  display: none; background: none; border: 0; cursor: pointer; padding: 8px;
  flex-direction: column; gap: 5px;
}
.nav__toggle span { width: 22px; height: 1.5px; background: currentColor; color: var(--ink); transition: .2s; }
.on-dark .nav__toggle span { color: var(--ground); }

@media (max-width: 1000px) {
  .nav__toggle { display: flex; }
  .nav__links {
    position: fixed; inset: 68px 0 auto 0;
    flex-direction: column; align-items: flex-start; gap: 0;
    background: var(--ink-deep); padding: 1rem var(--gutter) 2rem;
    transform: translateY(-130%); visibility: hidden;
    transition: transform .3s ease, visibility 0s linear .3s; z-index: 49;
  }
  .nav__links[data-open="true"] { transform: translateY(0); visibility: visible; transition-delay: 0s; }
  .nav__links a { color: var(--ground); width: 100%; padding: 0.9rem 0; border-bottom: 1px solid var(--line-dk); font-size: 0.95rem; }
  .nav__links .nav__cta { margin-top: 1rem; }
}

/* ============================================================
   hero
   ============================================================ */
.hero {
  position: relative; overflow: hidden;
  background: var(--ink-deep); color: var(--ground);
  padding-block: clamp(5rem, 12vw, 9rem);
}
.hero__canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; opacity: 0.9; }
.hero__inner { position: relative; z-index: 2; }
.hero::after { /* bottom fade so canvas settles into copy */
  content: ""; position: absolute; inset: auto 0 0 0; height: 45%;
  background: linear-gradient(to top, var(--ink-deep), transparent); z-index: 1;
}
.hero .eyebrow { color: var(--accent-lt); }
.hero h1 {
  font-size: var(--fs-h1);
  font-weight: 300;
  max-width: 16ch;
  margin-bottom: 1.6rem;
}
.hero h1 em { font-style: italic; color: var(--accent-lt); }
.hero__sub { font-size: var(--fs-lead); color: var(--muted-dk); max-width: 54ch; margin-bottom: 2.2rem; line-height: 1.5; }

/* ---- cinematic hero (homepage) ----
   Full-viewport photographic hero, pinned with position:sticky inside a
   taller stage so it dwells on screen while the scroll-driven zoom plays out.
   JS in main.js drives the zoom/dim/fade. */
.cine-stage { height: 175svh; position: relative; z-index: 0; }
.hero--cinema {
  min-height: 100svh;
  display: flex; align-items: center;
  position: sticky; top: 0; z-index: 0;
}
.hero__bg { position: absolute; inset: 0; z-index: 0; overflow: hidden; will-change: transform; }
.hero__bg img {
  width: 100%; height: 100%; object-fit: cover; object-position: 50% 38%;
  animation: kenburns 16s cubic-bezier(0.22, 1, 0.36, 1) both;
}
@keyframes kenburns { from { transform: scale(1.14); } to { transform: scale(1); } }
.hero--cinema::before { /* legibility scrim, spruce-toned to keep the palette */
  content: ""; position: absolute; inset: 0; z-index: 1;
  background:
    linear-gradient(100deg, rgba(7, 32, 28, 0.9) 0%, rgba(7, 32, 28, 0.55) 48%, rgba(7, 32, 28, 0.18) 100%),
    linear-gradient(to bottom, rgba(7, 32, 28, 0.55), transparent 30%);
}
.hero--cinema .hero__canvas { z-index: 1; opacity: 0.4; }
.hero--cinema .hero__inner { will-change: transform, opacity; }

/* scroll cue at the base of the cinematic hero */
.scroll-cue {
  position: absolute; left: 50%; bottom: 1.6rem; transform: translateX(-50%);
  z-index: 2; display: flex; flex-direction: column; align-items: center; gap: 0.55rem;
  font-family: var(--mono); font-size: 0.62rem; letter-spacing: 0.3em; text-transform: uppercase;
  color: var(--muted-dk);
}
.scroll-cue::after {
  content: ""; width: 1px; height: 34px;
  background: linear-gradient(var(--accent-lt), transparent);
  animation: cue-drop 2.2s ease-in-out infinite;
}
@keyframes cue-drop {
  0%   { transform: scaleY(0); transform-origin: top; }
  45%  { transform: scaleY(1); transform-origin: top; }
  55%  { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}
/* on short viewports the cue would crowd the domains ribbon — drop it */
@media (max-height: 860px) { .scroll-cue { display: none; } }

/* sections ride over the pinned hero */
.page-cinema main > .section, .page-cinema .site-footer { position: relative; z-index: 2; }
.page-cinema main > .section:not(.dark) { background: var(--ground); }
/* the first covering section rises like a curtain over the image */
.page-cinema .cine-stage + .section {
  border-top-left-radius: clamp(16px, 3vw, 36px);
  border-top-right-radius: clamp(16px, 3vw, 36px);
  box-shadow: 0 -34px 70px rgba(7, 32, 28, 0.45);
}

@media (prefers-reduced-motion: reduce) {
  .hero__bg img { animation: none; }
  .hero--cinema { position: relative; }
  .cine-stage { height: auto; }
  .scroll-cue::after { animation: none; }
}

/* domain ribbon */
.domains {
  display: flex; flex-wrap: wrap; gap: 0.5rem 1.4rem;
  font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--muted-dk); margin-top: 2.6rem; padding-top: 1.4rem; border-top: 1px solid var(--line-dk);
}
.domains span { display: inline-flex; align-items: center; gap: 0.6rem; }
.domains span::before { content: ""; width: 5px; height: 5px; background: var(--accent-lt); border-radius: 50%; flex: none; }

/* ============================================================
   section heading block
   ============================================================ */
.headline-block { max-width: 760px; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.headline-block h2 { font-size: var(--fs-h2); margin-bottom: 1.2rem; }
.headline-block .lead { max-width: 60ch; }

/* ============================================================
   IP tiles (homepage) — ordered portfolio, numbering carries meaning
   ============================================================ */
.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
@media (max-width: 820px) { .tiles { grid-template-columns: 1fr; } }
.tile {
  background: var(--ground); padding: clamp(1.6rem, 3vw, 2.4rem);
  display: flex; flex-direction: column; min-height: 320px;
  transition: background .2s ease;
}
.tile:hover { background: var(--ground-2); }
.tile__no { font-family: var(--mono); font-size: 0.78rem; color: var(--brass); letter-spacing: 0.1em; }
.tile__name { font-family: var(--serif); font-size: var(--fs-h3); margin: 1.4rem 0 0.2rem; }
.tile__tm { font-size: 0.6em; vertical-align: super; color: var(--muted); }
.tile__kind { font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); margin-bottom: 1rem; }
.tile__desc { color: var(--muted); font-size: 0.98rem; flex: 1; }
.tile__foot { margin-top: 1.6rem; }

/* ============================================================
   application matrix — the lead-gen grid
   ============================================================ */
.matrix-head { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 1rem; margin-bottom: 1.6rem; }
.matrix-head h3 { font-size: var(--fs-h3); }
.matrix-head .tier-label { font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); }

.matrix { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 0.9rem; }
.appcard {
  background: var(--ground); padding: 1.5rem 1.4rem 1.3rem;
  border: 1px solid var(--line); border-radius: var(--radius);
  display: flex; flex-direction: column; gap: 0.5rem; min-height: 150px;
  position: relative; transition: background .18s ease, border-color .18s ease;
}
.appcard:hover { background: var(--ground-2); border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); }
.appcard__name { font-family: var(--serif); font-size: 1.18rem; line-height: 1.18; }
.appcard__note { font-size: 0.9rem; color: var(--muted); flex: 1; }
.appcard__cta { font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); display: inline-flex; align-items: center; gap: 0.45rem; margin-top: 0.3rem; }
.appcard:hover .appcard__cta { color: var(--accent-dk); }
.appcard:hover .appcard__cta .arrow { transform: translateX(3px); }
.appcard__cta .arrow { transition: transform .18s ease; }
.appcard--flag { box-shadow: inset 3px 0 0 var(--accent); }
.appcard--explore { background: var(--ground-2); }
.appcard--explore .appcard__cta { color: var(--brass); }

/* dark variant of matrix */
.dark .appcard { background: var(--ink-deep-2); border-color: var(--line-dk); }
.dark .appcard:hover { background: #103530; border-color: color-mix(in srgb, var(--accent-lt) 40%, var(--line-dk)); }
.dark .appcard__note { color: var(--muted-dk); }
.dark .appcard__cta { color: var(--accent-lt); }

/* ============================================================
   facts / claims strip
   ============================================================ */
/* facts strips always hold 4 tiles — wrap 4 → 2×2 → 1 so no empty cells show */
.facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line-dk); border-block: 1px solid var(--line-dk); }
@media (max-width: 920px) { .facts { grid-template-columns: 1fr 1fr; } }
@media (max-width: 440px) { .facts { grid-template-columns: 1fr; } }
.fact { background: var(--ink-deep); padding: 2rem 1.6rem; }
.fact__num { font-family: var(--serif); font-size: clamp(2.2rem, 4vw, 3.2rem); font-weight: 300; line-height: 1; color: var(--ground); }
.fact__num span { color: var(--accent-lt); }
.fact__label { font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.08em; color: var(--muted-dk); margin-top: 0.9rem; line-height: 1.45; }

/* light facts variant */
.facts--light { background: var(--line); border-block-color: var(--line); }
.facts--light .fact { background: var(--ground); }
.facts--light .fact__num { color: var(--ink); }
.facts--light .fact__num span { color: var(--accent); }
.facts--light .fact__label { color: var(--muted); }

/* ============================================================
   feature rows (split text/visual)
   ============================================================ */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 5rem); align-items: start; }
.split--narrow-text { grid-template-columns: 1.1fr 0.9fr; }
@media (max-width: 820px) { .split, .split--narrow-text { grid-template-columns: 1fr; gap: 2.5rem; } }

/* capability list — fixed label column so rows align */
.caps { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.caps li { padding: 1.2rem 0; border-top: 1px solid var(--line); display: grid; grid-template-columns: minmax(150px, 190px) 1fr; gap: 1rem; align-items: start; }
@media (max-width: 560px) { .caps li { grid-template-columns: 1fr; gap: 0.4rem; } .caps__k { padding-top: 0; } }
.caps li:last-child { border-bottom: 1px solid var(--line); }
.dark .caps li { border-color: var(--line-dk); }
.caps__k { font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent); padding-top: 0.35rem; }
.dark .caps__k { color: var(--accent-lt); }
.caps__v strong { font-family: var(--serif); font-weight: 500; font-size: 1.12rem; display: block; margin-bottom: 0.2rem; }
.caps__v span { color: var(--muted); font-size: 0.96rem; }
.dark .caps__v span { color: var(--muted-dk); }

/* ============================================================
   credibility band (IP status + inventors)
   ============================================================ */
.credband { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: clamp(1.5rem, 3vw, 3rem); padding-block: clamp(2.5rem, 5vw, 4rem); border-top: 1px solid var(--line-dk); }
.cred__k { font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted-dk); margin-bottom: 0.7rem; }
.cred__v { font-family: var(--serif); font-size: 1.15rem; line-height: 1.35; }
.cred__v small { display: block; font-family: var(--sans); font-size: 0.85rem; color: var(--muted-dk); margin-top: 0.3rem; letter-spacing: 0; }

/* pill / status chip */
.chip { display: inline-flex; align-items: center; gap: 0.5rem; font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.12em; text-transform: uppercase; padding: 0.4rem 0.8rem; border: 1px solid var(--line); border-radius: 100px; color: var(--muted); }
.dark .chip { border-color: var(--line-dk); color: var(--muted-dk); }
.chip::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.dark .chip::before { background: var(--accent-lt); }
.chip--brass { color: var(--brass); border-color: color-mix(in srgb, var(--brass) 40%, transparent); }
.chip--brass::before { background: var(--brass); }

/* ============================================================
   quote / pull
   ============================================================ */
.pull { font-family: var(--serif); font-weight: 300; font-size: clamp(1.5rem, 1rem + 2vw, 2.4rem); line-height: 1.28; letter-spacing: -0.01em; max-width: 22ch; }
.pull--wide { max-width: 30ch; }

/* heritage line treatment */
.heritage { display: flex; align-items: center; gap: 1.1rem; font-family: var(--mono); font-size: 0.75rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--brass); }
.heritage hr { flex: 1; border: 0; border-top: 1px solid color-mix(in srgb, var(--brass) 35%, transparent); }

/* ============================================================
   leadership cards
   ============================================================ */
.people { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.5rem; }
.person { border: 1px solid var(--line); border-radius: var(--radius); padding: 1.8rem; background: var(--ground); }
.person__name { font-family: var(--serif); font-size: 1.4rem; margin-bottom: 0.3rem; }
.person__cred { font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); margin-bottom: 1rem; }
.person__anchor { font-size: 0.95rem; color: var(--muted); }
.person--placeholder { border-style: dashed; background: transparent; display: flex; flex-direction: column; justify-content: center; }
.person--placeholder .person__name { color: var(--muted); }

/* ============================================================
   forms
   ============================================================ */
.formwrap { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(2rem, 5vw, 4.5rem); }
@media (max-width: 820px) { .formwrap { grid-template-columns: 1fr; } }
.form { display: grid; gap: 1.1rem; }
.form__fields { display: grid; gap: 1.1rem; }
.field { display: grid; gap: 0.4rem; }
.field label { font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.field input, .field select, .field textarea {
  font-family: var(--sans); font-size: 1rem; color: var(--ink);
  background: var(--ground); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 0.8rem 0.9rem; width: 100%;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: transparent; }
.field textarea { resize: vertical; min-height: 130px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
@media (max-width: 560px) { .field-row { grid-template-columns: 1fr; } }
.form__note { font-size: 0.82rem; color: var(--muted); }
.form__success { display: none; padding: 1.2rem 1.4rem; border: 1px solid var(--accent); border-radius: var(--radius); background: color-mix(in srgb, var(--accent) 8%, var(--ground)); color: var(--ink); }
.form__success[data-show="true"] { display: block; }
.form[data-submitted="true"] .form__fields { display: none; }

/* routing list on contact page */
.routes { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; border-top: 1px solid var(--line); }
.routes li { border-bottom: 1px solid var(--line); }
.routes a {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 1.05rem 1rem 1.05rem 0; color: var(--ink);
  box-shadow: inset 0 0 0 var(--accent);
  transition: background .18s ease, box-shadow .18s ease, padding-left .18s ease;
}
.routes a:hover { background: var(--ground-2); box-shadow: inset 3px 0 0 var(--accent); padding-left: 1rem; }
.routes .r-text { display: grid; gap: 0.28rem; }
.routes .r-tag { font-family: var(--mono); font-size: 0.66rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--accent); }
.routes .r-name { font-family: var(--serif); font-size: 1.18rem; line-height: 1.15; color: var(--ink); }
.routes .r-arrow { font-family: var(--mono); color: var(--accent); transition: transform .18s ease; }
.routes a:hover .r-arrow { transform: translateX(3px); }

/* ============================================================
   About opener — this page's own background register:
   tinted verdigris wash with a mint glow and faint brass warmth
   ============================================================ */
.about-hero {
  background:
    radial-gradient(1000px 460px at 88% -12%, rgba(95, 201, 181, 0.26), transparent 65%),
    radial-gradient(760px 420px at -8% 108%, rgba(185, 138, 62, 0.11), transparent 60%),
    linear-gradient(158deg, #DFEBE5 0%, #ECF1ED 48%, #E2ECE6 100%);
  border-bottom: 1px solid var(--line);
}

/* ============================================================
   misc utility
   ============================================================ */
.divide { border: 0; border-top: 1px solid var(--line); margin: 0; }
.dark .divide { border-top-color: var(--line-dk); }
.note-block { border-left: 2px solid var(--brass); padding: 0.4rem 0 0.4rem 1.2rem; color: var(--muted); font-size: 0.95rem; }
.dark .note-block { color: var(--muted-dk); }
.stack-lg > * + * { margin-top: clamp(1.4rem, 3vw, 2.2rem); }
.center { text-align: center; }
.center .eyebrow { justify-content: center; }
.center .eyebrow::before { display: none; }
.cta-band { text-align: center; }
.cta-band h2 { font-size: var(--fs-h2); margin-bottom: 1.3rem; max-width: 20ch; margin-inline: auto; }
.cta-band .btn-row { justify-content: center; }

/* ============================================================
   footer
   ============================================================ */
.site-footer { background: var(--ink-deep); color: var(--muted-dk); padding-block: clamp(3rem, 6vw, 5rem) 2.5rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 2rem; }
@media (max-width: 820px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: 2.5rem 1.5rem; } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-grid h4 { font-family: var(--mono); font-size: 0.7rem; font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ground); margin-bottom: 1.1rem; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.6rem; }
.footer-grid a { color: var(--muted-dk); font-size: 0.92rem; }
.footer-grid a:hover { color: var(--accent-lt); }
.footer-brand .brand { color: var(--ground); margin-bottom: 1.1rem; }
.footer-brand p { font-size: 0.92rem; max-width: 34ch; }
.footer-bottom { margin-top: clamp(2.5rem, 5vw, 4rem); padding-top: 1.6rem; border-top: 1px solid var(--line-dk); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.06em; color: var(--muted-dk); }

/* reveal-on-scroll */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.reveal[data-shown="true"] { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}
