/* =========================================================
   Archive & Inquiry — Historical, Archival & Cultural Research
   Modern editorial theme
   ========================================================= */

/* ---------- 1. Design tokens ---------- */
:root {
  /* Dark (default) — ink & brass */
  --bg:            #0b0a09;
  --bg-alt:        #100e0c;
  --surface:       #16141200;
  --surface-1:     #161412;
  --surface-2:     #1e1b18;
  --line:          rgba(237, 231, 220, .13);
  --line-strong:   rgba(237, 231, 220, .26);
  --text:          #ede7dc;
  --muted:         #a79e92;
  --faint:         #8f8579;
  --accent:        #cfa63c;
  --accent-hover:  #e0bb5b;
  --accent-soft:   rgba(207, 166, 60, .13);
  --on-accent:     #1a1408;
  --scrim:         linear-gradient(180deg, rgba(11,10,9,.35) 0%, rgba(11,10,9,.72) 55%, rgba(11,10,9,.97) 100%);
  --img-filter:    saturate(.85) contrast(1.03);

  /* Type */
  --font-display: "EB Garamond", "Iowan Old Style", Georgia, "Times New Roman", serif;
  --font-body:    "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;

  --step--1: clamp(.8125rem, .78rem + .16vw, .875rem);
  --step-0:  clamp(1rem, .96rem + .2vw, 1.0625rem);
  --step-1:  clamp(1.125rem, 1.06rem + .3vw, 1.25rem);
  --step-2:  clamp(1.375rem, 1.24rem + .6vw, 1.75rem);
  --step-3:  clamp(1.75rem, 1.5rem + 1.1vw, 2.5rem);
  --step-4:  clamp(2.25rem, 1.8rem + 2.1vw, 3.75rem);
  --step-5:  clamp(2.75rem, 1.9rem + 4.2vw, 6rem);

  /* Space (4/8 rhythm) */
  --s-1: .5rem;  --s-2: 1rem;   --s-3: 1.5rem;  --s-4: 2rem;
  --s-5: 3rem;   --s-6: 4rem;   --s-7: 6rem;    --s-8: 8rem;

  --container: 76rem;
  --container-narrow: 46rem;
  --radius: 2px;
  --radius-lg: 4px;

  --ease: cubic-bezier(.22, .61, .36, 1);
  --dur: 320ms;

  --z-nav: 100;
  --z-menu: 200;
  --z-top: 1000;

  color-scheme: dark;
}

[data-theme="light"] {
  --bg:            #f6f2ea;
  --bg-alt:        #efe9de;
  --surface:       #fffdf900;
  --surface-1:     #fffdf9;
  --surface-2:     #f0eade;
  --line:          rgba(26, 22, 17, .14);
  --line-strong:   rgba(26, 22, 17, .3);
  --text:          #17140f;
  --muted:         #565046;
  --faint:         #6a6458;
  --accent:        #7a5a0e;
  --accent-hover:  #5f460b;
  --accent-soft:   rgba(122, 90, 14, .1);
  --on-accent:     #fffdf9;
  --scrim:         linear-gradient(180deg, rgba(20,17,13,.34) 0%, rgba(20,17,13,.55) 50%, rgba(246,242,234,.96) 100%);
  --img-filter:    saturate(.95) contrast(1.02);
  color-scheme: light;
}

/* ---------- 2. Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 6rem;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.7;
  font-synthesis-weight: none;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  transition: background-color var(--dur) var(--ease), color var(--dur) var(--ease);
}

body.is-locked { overflow: hidden; }

img, svg, video { display: block; max-width: 100%; }
img { height: auto; filter: var(--img-filter); }

a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; background: none; border: 0; }
ul, ol { list-style: none; padding: 0; }

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

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

.skip-link {
  position: absolute; top: -100%; left: var(--s-2); z-index: var(--z-top);
  padding: .75rem 1.25rem; background: var(--accent); color: var(--on-accent);
  font-size: var(--step--1); font-weight: 600;
}
.skip-link:focus { top: var(--s-2); }

/* ---------- 3. Typography primitives ---------- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -.012em;
  text-wrap: balance;
}

.eyebrow {
  display: inline-flex; align-items: center; gap: .625rem;
  font-family: var(--font-body);
  font-size: .6875rem; font-weight: 600;
  letter-spacing: .22em; text-transform: uppercase;
  color: var(--accent);
}
.eyebrow::before {
  content: ""; width: 1.75rem; height: 1px;
  background: currentColor; opacity: .7;
}
.eyebrow--plain::before { display: none; }

.section-title { font-size: var(--step-3); }
.lede {
  font-size: var(--step-1);
  color: var(--muted);
  max-width: 46ch;
  line-height: 1.65;
}
.prose p { color: var(--muted); max-width: 68ch; }
.prose p + p { margin-top: var(--s-2); }
.prose strong { color: var(--text); font-weight: 600; }

.divider { height: 1px; background: var(--line); border: 0; }

/* ---------- 4. Layout ---------- */
.container {
  width: min(100% - 2.5rem, var(--container));
  margin-inline: auto;
}
@media (min-width: 48rem) {
  .container { width: min(100% - 5rem, var(--container)); }
}
@supports (padding: env(safe-area-inset-left)) {
  .container { padding-left: env(safe-area-inset-left); padding-right: env(safe-area-inset-right); }
}

.section {
  padding-block: clamp(4.5rem, 3rem + 7vw, 9rem);
  position: relative;
}
.section--alt { background: var(--bg-alt); }
.section-head { margin-bottom: clamp(2.5rem, 1.5rem + 3vw, 4.5rem); }
.section-head .eyebrow { margin-bottom: var(--s-3); }
.section-head .section-title { margin-bottom: var(--s-3); max-width: 24ch; }

.split {
  display: grid;
  gap: clamp(2rem, 1rem + 4vw, 5rem);
}
@media (min-width: 62rem) {
  .split { grid-template-columns: 1fr 1fr; align-items: start; }
  .split--sticky > :first-child { position: sticky; top: 7rem; }
}

/* ---------- 5. Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .625rem;
  min-height: 3rem; padding: .875rem 1.75rem;
  font-size: var(--step--1); font-weight: 600;
  letter-spacing: .06em; text-transform: uppercase;
  border: 1px solid transparent; border-radius: var(--radius);
  transition: background-color 260ms var(--ease), color 260ms var(--ease),
              border-color 260ms var(--ease), transform 260ms var(--ease);
  will-change: transform;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn svg { width: 1rem; height: 1rem; flex: none; }

.btn--primary { background: var(--accent); color: var(--on-accent); }
.btn--primary:hover { background: var(--accent-hover); }

.btn--ghost { border-color: var(--line-strong); color: var(--text); }
.btn--ghost:hover { border-color: var(--accent); color: var(--accent); background: var(--accent-soft); }

.btn--small { min-height: 2.5rem; padding: .5rem 1.125rem; }

.link-arrow {
  display: inline-flex; align-items: center; gap: .5rem;
  font-size: var(--step--1); font-weight: 600;
  letter-spacing: .06em; text-transform: uppercase;
  color: var(--accent); padding-block: .5rem;
}
.link-arrow svg { width: 1rem; height: 1rem; transition: transform 260ms var(--ease); }
.link-arrow:hover svg { transform: translateX(4px); }

/* ---------- 6. Navigation ---------- */
.progress {
  position: fixed; inset: 0 auto auto 0; z-index: var(--z-top);
  height: 2px; width: 100%; transform-origin: 0 50%; transform: scaleX(0);
  background: var(--accent);
}

.nav {
  position: fixed; inset: 0 0 auto 0; z-index: var(--z-nav);
  transition: background-color var(--dur) var(--ease), border-color var(--dur) var(--ease),
              backdrop-filter var(--dur) var(--ease);
  border-bottom: 1px solid transparent;
}
.nav:not(.is-stuck) {
  --text:        #f4efe6;
  --muted:       #cfc6b7;
  --faint:       #a39a8d;
  --line:        rgba(255, 255, 255, .2);
  --line-strong: rgba(255, 255, 255, .34);
  --accent:      #dcb75d;
  --accent-soft: rgba(220, 183, 93, .16);
  color: var(--text);
}
.nav.is-stuck {
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(14px) saturate(1.4);
  -webkit-backdrop-filter: blur(14px) saturate(1.4);
  border-bottom-color: var(--line);
}
.nav__inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--s-3); min-height: 4.5rem;
}
@media (min-width: 62rem) { .nav__inner { min-height: 5.25rem; } }

.brand { display: flex; align-items: center; gap: .75rem; min-height: 44px; }
.brand__mark {
  width: 2.125rem; height: 2.125rem; flex: none;
  border: 1px solid var(--accent); border-radius: var(--radius);
  display: grid; place-items: center;
  font-family: var(--font-display); font-size: .875rem;
  letter-spacing: .04em; color: var(--accent);
  transition: background-color 260ms var(--ease), color 260ms var(--ease);
}
.brand:hover .brand__mark { background: var(--accent); color: var(--on-accent); }
.brand__text { display: flex; flex-direction: column; line-height: 1.15; }
.brand__name {
  font-family: var(--font-display); font-size: 1.0625rem;
  letter-spacing: .06em; text-transform: uppercase;
}
.brand__sub {
  font-size: .5625rem; letter-spacing: .2em; text-transform: uppercase;
  color: var(--faint);
}
@media (max-width: 26rem) { .brand__sub { display: none; } }

.nav__links { display: none; }
@media (min-width: 62rem) {
  .nav__links { display: flex; align-items: center; gap: clamp(1rem, .3rem + 1.4vw, 2rem); }
}
.nav__link {
  position: relative; padding: .5rem 0;
  font-size: .6875rem; font-weight: 600;
  letter-spacing: .16em; text-transform: uppercase;
  color: var(--muted);
  transition: color 220ms var(--ease);
}
.nav__link::after {
  content: ""; position: absolute; left: 0; bottom: 0;
  width: 100%; height: 1px; background: var(--accent);
  transform: scaleX(0); transform-origin: 0 50%;
  transition: transform 300ms var(--ease);
}
.nav__link:hover { color: var(--text); }
.nav__link:hover::after,
.nav__link.is-active::after { transform: scaleX(1); }
.nav__link.is-active { color: var(--text); }

.nav__actions { display: flex; align-items: center; gap: .5rem; }
.nav__cta { display: none; }
@media (min-width: 62rem) { .nav__cta { display: inline-flex; } }

.icon-btn {
  width: 44px; height: 44px; display: grid; place-items: center;
  border: 1px solid var(--line); border-radius: var(--radius);
  color: var(--text);
  transition: border-color 220ms var(--ease), color 220ms var(--ease), background-color 220ms var(--ease);
}
.icon-btn:hover { border-color: var(--accent); color: var(--accent); background: var(--accent-soft); }
.icon-btn svg { width: 1.125rem; height: 1.125rem; }
.theme-toggle .icon-moon { display: none; }
[data-theme="light"] .theme-toggle .icon-moon { display: block; }
[data-theme="light"] .theme-toggle .icon-sun { display: none; }

.menu-btn { display: grid; }
@media (min-width: 62rem) { .menu-btn { display: none; } }

/* Mobile menu */
.menu {
  position: fixed; inset: 0; z-index: var(--z-menu);
  background: var(--bg);
  padding: 6rem var(--s-3) max(var(--s-5), env(safe-area-inset-bottom));
  display: flex; flex-direction: column; justify-content: space-between;
  transform: translateY(-100%);
  transition: transform 460ms var(--ease);
  overflow-y: auto;
}
.menu[data-open="true"] { transform: translateY(0); }
.menu__close { position: absolute; top: 1.125rem; right: 1.25rem; }
.menu__list { display: flex; flex-direction: column; gap: .25rem; }
.menu__link {
  display: flex; align-items: baseline; gap: 1rem;
  padding: .625rem 0;
  font-family: var(--font-display); font-size: var(--step-2);
  border-bottom: 1px solid var(--line);
  opacity: 0; transform: translateY(12px);
}
.menu[data-open="true"] .menu__link {
  animation: menuIn 500ms var(--ease) forwards;
  animation-delay: calc(60ms * var(--i, 0) + 120ms);
}
.menu__num { font-family: var(--font-body); font-size: .625rem; letter-spacing: .18em; color: var(--accent); }
.menu__foot { margin-top: var(--s-5); color: var(--faint); font-size: var(--step--1); }
@keyframes menuIn { to { opacity: 1; transform: translateY(0); } }

/* ---------- 7. Hero ---------- */
.hero {
  /* The hero sits on a photograph in both themes, so it keeps a fixed
     light-on-dark palette instead of following the theme tokens. */
  --text:        #f4efe6;
  --muted:       #cfc6b7;
  --faint:       #a39a8d;
  --line:        rgba(255, 255, 255, .16);
  --line-strong: rgba(255, 255, 255, .32);
  --accent:      #dcb75d;
  --accent-hover:#ecca79;
  --accent-soft: rgba(220, 183, 93, .16);
  --on-accent:   #1a1408;
  color: var(--text);

  position: relative; isolation: isolate;
  min-height: 100svh;
  display: flex; align-items: flex-end;
  padding-top: 8rem; padding-bottom: clamp(2.5rem, 1rem + 5vw, 5rem);
  overflow: hidden;
}
.hero__media { position: absolute; inset: 0; z-index: -2; }
.hero__media img {
  width: 100%; height: 100%; object-fit: cover; object-position: 62% 50%;
  transform: scale(1.08);
  animation: heroZoom 14s var(--ease) forwards;
}
@keyframes heroZoom { to { transform: scale(1); } }
.hero__media::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(8,7,6,.38) 0%, rgba(8,7,6,.66) 52%, rgba(8,7,6,.9) 100%),
    linear-gradient(90deg, rgba(8,7,6,.6) 0%, rgba(8,7,6,.1) 62%);
}

.hero__grid { position: absolute; inset: 0; z-index: -1; opacity: .5; pointer-events: none;
  background-image: linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 25% 100%;
}

.hero__content { max-width: 60rem; }
.hero__title {
  font-size: var(--step-5);
  line-height: .96; letter-spacing: -.025em;
  margin-block: var(--s-3) var(--s-3);
}
.hero__title .thin { font-style: italic; font-weight: 400; color: var(--accent); }
.hero__sub {
  font-family: var(--font-display);
  font-size: var(--step-2); color: var(--text); opacity: .92;
  margin-bottom: var(--s-3);
}
.hero__tagline {
  display: flex; flex-wrap: wrap; gap: .5rem 1.25rem;
  margin-bottom: var(--s-4);
  font-size: var(--step--1); letter-spacing: .1em; text-transform: uppercase;
  color: var(--muted);
}
.hero__tagline li { display: flex; align-items: center; gap: 1.25rem; }
.hero__tagline li:not(:last-child)::after {
  content: ""; width: 4px; height: 4px; border-radius: 50%; background: var(--accent);
}
@media (max-width: 40rem) {
  .hero__tagline { flex-direction: column; gap: .375rem; }
  .hero__tagline li:not(:last-child)::after { display: none; }
}
.hero__copy { max-width: 54ch; color: var(--muted); margin-bottom: var(--s-4); }
.hero__actions { display: flex; flex-wrap: wrap; gap: var(--s-2); }

.hero__scroll {
  display: none;
  position: absolute; right: 0; bottom: clamp(2.5rem, 1rem + 5vw, 5rem);
  writing-mode: vertical-rl;
  font-size: .625rem; letter-spacing: .24em; text-transform: uppercase;
  color: var(--faint); align-items: center; gap: .75rem;
}
@media (min-width: 62rem) { .hero__scroll { display: flex; } }
.hero__scroll::after {
  content: ""; width: 1px; height: 4rem; background: var(--line-strong);
  position: relative; overflow: hidden;
}

/* Client strip */
.strip {
  border-block: 1px solid var(--line);
  padding-block: var(--s-3);
  background: var(--bg-alt);
  overflow: hidden;
}
.strip__track {
  display: flex; gap: clamp(1.75rem, 1rem + 3vw, 3.5rem); width: max-content;
  animation: marquee 46s linear infinite;
}
.strip__track span {
  font-family: var(--font-display); font-size: var(--step-1);
  color: var(--faint); white-space: nowrap;
  display: flex; align-items: center; gap: clamp(1.75rem, 1rem + 3vw, 3.5rem);
}
.strip__track span::after { content: "·"; color: var(--accent); }
@keyframes marquee { to { transform: translateX(-50%); } }
.strip:hover .strip__track { animation-play-state: paused; }

/* ---------- 8. Figures ---------- */
.figure { position: relative; overflow: hidden; border-radius: var(--radius-lg); }
.figure img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 900ms var(--ease);
}
.figure:hover img { transform: scale(1.04); }
.figure--tall { aspect-ratio: 4 / 5; }
.figure--wide { aspect-ratio: 16 / 9; }
.figure--square { aspect-ratio: 1 / 1; }
.figure__caption {
  margin-top: var(--s-2);
  font-size: .6875rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--faint);
}

/* ---------- 9. Cards & grids ---------- */
.grid { display: grid; gap: var(--s-3); }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 20rem), 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr)); }

.card {
  position: relative;
  padding: clamp(1.5rem, 1rem + 1.4vw, 2.25rem);
  background: var(--surface-1);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  transition: border-color 320ms var(--ease), transform 320ms var(--ease), background-color 320ms var(--ease);
}
.card::before {
  content: ""; position: absolute; inset: 0 auto 0 0; width: 2px;
  background: var(--accent); transform: scaleY(0); transform-origin: 50% 0;
  transition: transform 380ms var(--ease);
}
.card:hover { border-color: var(--line-strong); transform: translateY(-3px); }
.card:hover::before { transform: scaleY(1); }
.card__icon {
  width: 2.75rem; height: 2.75rem; margin-bottom: var(--s-3);
  display: grid; place-items: center;
  border: 1px solid var(--line); border-radius: 50%;
  color: var(--accent);
}
.card__icon svg { width: 1.25rem; height: 1.25rem; }
.card__title { font-size: var(--step-2); margin-bottom: .625rem; }
.card__text { color: var(--muted); font-size: var(--step-0); }

/* Question list */
.questions { display: grid; gap: .25rem; margin-top: var(--s-3); counter-reset: q; }
.questions li {
  display: flex; gap: var(--s-2); align-items: baseline;
  padding: .875rem 0; border-bottom: 1px solid var(--line);
  font-family: var(--font-display); font-size: var(--step-1);
  counter-increment: q;
}
.questions li::before {
  content: counter(q, decimal-leading-zero);
  font-family: var(--font-body); font-size: .625rem; letter-spacing: .16em;
  color: var(--accent); flex: none;
}

/* Note / callout */
.note {
  border-left: 2px solid var(--accent);
  background: var(--accent-soft);
  padding: var(--s-3);
  border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
}
.note p { font-size: var(--step--1); color: var(--muted); max-width: 72ch; }
.note p + p { margin-top: .75rem; }

/* ---------- 10. Services accordion ---------- */
.services { border-top: 1px solid var(--line); }
.service { border-bottom: 1px solid var(--line); }
.service__head {
  width: 100%; display: grid;
  grid-template-columns: auto 1fr auto; align-items: center;
  gap: var(--s-2) var(--s-3);
  padding: clamp(1.25rem, 1rem + 1vw, 1.875rem) 0;
  text-align: left;
  transition: color 240ms var(--ease);
}
.service__num {
  font-size: .625rem; letter-spacing: .18em; color: var(--accent);
  font-variant-numeric: tabular-nums;
}
.service__title {
  font-family: var(--font-display); font-size: var(--step-2);
  line-height: 1.2; transition: transform 320ms var(--ease);
}
.service__head:hover .service__title { transform: translateX(6px); }
.service__toggle {
  width: 2.25rem; height: 2.25rem; flex: none;
  border: 1px solid var(--line); border-radius: 50%;
  display: grid; place-items: center; color: var(--accent);
  transition: transform 380ms var(--ease), background-color 260ms var(--ease);
}
.service__head:hover .service__toggle { background: var(--accent-soft); }
.service__head[aria-expanded="true"] .service__toggle { transform: rotate(45deg); }
.service__toggle svg { width: 1rem; height: 1rem; }
.service__panel {
  display: grid; grid-template-rows: 0fr;
  transition: grid-template-rows 420ms var(--ease);
}
.service__panel[data-open="true"] { grid-template-rows: 1fr; }
.service__panel > div { overflow: hidden; }
.service__body {
  padding: 0 0 var(--s-4);
  display: grid; gap: var(--s-3);
}
@media (min-width: 48rem) {
  .service__body { grid-template-columns: 1fr 1fr; padding-left: 3.5rem; }
}
.service__body p { color: var(--muted); }
.tags { display: flex; flex-wrap: wrap; gap: .5rem; }
.tags li {
  font-size: .6875rem; letter-spacing: .04em;
  padding: .375rem .75rem;
  border: 1px solid var(--line); border-radius: 999px;
  color: var(--muted);
  transition: border-color 240ms var(--ease), color 240ms var(--ease);
}
.tags li:hover { border-color: var(--accent); color: var(--accent); }

/* ---------- 11. Feature panels ---------- */
.panel {
  padding: clamp(1.75rem, 1.2rem + 2vw, 3rem);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(120% 100% at 0% 0%, var(--accent-soft) 0%, transparent 60%),
    var(--surface-1);
}
.panel__title { font-size: var(--step-2); margin-block: var(--s-2) var(--s-2); }
.checks { display: grid; gap: .625rem; margin-top: var(--s-3); }
@media (min-width: 40rem) { .checks { grid-template-columns: 1fr 1fr; } }
.checks li {
  display: flex; gap: .625rem; align-items: flex-start;
  font-size: var(--step--1); color: var(--muted);
}
.checks li svg { width: .875rem; height: .875rem; flex: none; color: var(--accent); margin-top: .35em; }

/* ---------- 12. Projects ---------- */
.project {
  display: grid; gap: clamp(1.5rem, 1rem + 3vw, 3.5rem);
  padding-block: clamp(2.5rem, 2rem + 3vw, 4.5rem);
  border-top: 1px solid var(--line);
  align-items: center;
}
@media (min-width: 62rem) {
  .project { grid-template-columns: 1.05fr 1fr; }
  .project--reverse > .figure { order: 2; }
}
.project__kicker {
  font-size: .625rem; letter-spacing: .2em; text-transform: uppercase;
  color: var(--accent); margin-bottom: var(--s-2); display: block;
}
.project__title { font-size: var(--step-3); margin-bottom: var(--s-2); line-height: 1.12; }
.project__meta {
  font-size: var(--step--1); color: var(--faint);
  letter-spacing: .04em; margin-bottom: var(--s-3);
}
.project__scope { margin-top: var(--s-3); }
.project__scope dt {
  font-size: .625rem; letter-spacing: .18em; text-transform: uppercase;
  color: var(--faint); margin-bottom: .75rem;
}

.status {
  display: inline-flex; align-items: center; gap: .5rem;
  font-size: .6875rem; letter-spacing: .12em; text-transform: uppercase;
  color: var(--accent); margin-top: var(--s-3);
}
.status::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent); box-shadow: 0 0 0 0 var(--accent);
  animation: pulse 2.4s var(--ease) infinite;
}
@keyframes pulse {
  70% { box-shadow: 0 0 0 8px rgba(207,166,60,0); }
  100% { box-shadow: 0 0 0 0 rgba(207,166,60,0); }
}

/* ---------- 13. Method flow ---------- */
.flow {
  display: flex; flex-wrap: wrap; align-items: center;
  gap: .625rem var(--s-2);
  margin-top: var(--s-4);
}
.flow li {
  display: flex; align-items: center; gap: var(--s-2);
  font-family: var(--font-display); font-size: var(--step-1);
}
.flow li span {
  padding: .5rem 1.125rem;
  border: 1px solid var(--line); border-radius: 999px;
  background: var(--surface-1);
  transition: border-color 300ms var(--ease), color 300ms var(--ease), background-color 300ms var(--ease);
}
.flow li:hover span { border-color: var(--accent); color: var(--accent); background: var(--accent-soft); }
.flow li:not(:last-child)::after {
  content: ""; width: .875rem; height: 1px; background: var(--line-strong);
}

/* ---------- 14. Founder ---------- */
.credentials { display: grid; gap: 0; margin-top: var(--s-2); }
.credentials li {
  padding: var(--s-2) 0; border-bottom: 1px solid var(--line);
  display: grid; gap: .25rem;
}
.credentials strong {
  font-family: var(--font-display); font-size: var(--step-1);
  font-weight: 500; color: var(--text);
}
.credentials span { font-size: var(--step--1); color: var(--faint); }

.pill-list { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: var(--s-2); }
.pill-list li {
  font-size: var(--step--1); color: var(--muted);
  padding: .5rem .875rem; border: 1px solid var(--line);
  border-radius: var(--radius); background: var(--surface-1);
}

/* ---------- 15. Contact ---------- */
.contact-grid { display: grid; gap: clamp(2rem, 1rem + 4vw, 4rem); }
@media (min-width: 62rem) { .contact-grid { grid-template-columns: 1fr 1.1fr; } }

.form { display: grid; gap: var(--s-3); }
.field { display: grid; gap: .5rem; }
.field label {
  font-size: .6875rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--muted); font-weight: 600;
}
.field .req { color: var(--accent); }
.field input, .field textarea, .field select {
  width: 100%; min-height: 3rem; padding: .875rem 1rem;
  font: inherit; font-size: var(--step-0);
  color: var(--text); background: var(--surface-1);
  border: 1px solid var(--line); border-radius: var(--radius);
  transition: border-color 240ms var(--ease), background-color 240ms var(--ease);
}
.field textarea { min-height: 8rem; resize: vertical; line-height: 1.6; }
.field input::placeholder, .field textarea::placeholder { color: var(--faint); }
.field input:hover, .field textarea:hover, .field select:hover { border-color: var(--line-strong); }
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none; border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.field .help { font-size: .75rem; color: var(--faint); }
.field .error {
  font-size: .75rem; color: #e2765c; display: none; align-items: center; gap: .375rem;
}
[data-theme="light"] .field .error { color: #b03a1f; }
.field[data-invalid="true"] .error { display: flex; }
.field[data-invalid="true"] input,
.field[data-invalid="true"] textarea { border-color: #e2765c; }
.field-row { display: grid; gap: var(--s-3); }
@media (min-width: 40rem) { .field-row { grid-template-columns: 1fr 1fr; } }

/* Honeypot — kept out of sight and out of the tab order, but not display:none,
   which many bots specifically skip. */
.honeypot {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip-path: inset(50%); white-space: nowrap; border: 0;
}

.form__status {
  font-size: var(--step--1);
  display: none; align-items: flex-start; gap: .5rem;
  margin-top: var(--s-2);
}
.form__status[data-state] { display: none; }
.form__status[data-state="pending"],
.form__status[data-state="success"],
.form__status[data-state="error"] { display: flex; }
.form__status svg { width: 1rem; height: 1rem; flex: none; margin-top: .3em; }
.form__status .status-ok, .form__status .status-err { display: none; }
.form__status[data-state="success"] { color: var(--accent); }
.form__status[data-state="success"] .status-ok { display: block; }
.form__status[data-state="pending"] { color: var(--muted); }
.form__status[data-state="error"] { color: #e2765c; }
.form__status[data-state="error"] .status-err { display: block; }
[data-theme="light"] .form__status[data-state="error"] { color: #a8341a; }

.form__legal {
  margin-top: var(--s-2);
  font-size: .75rem; color: var(--faint); max-width: 46ch;
}
.form__legal a { color: var(--muted); text-decoration: underline; text-underline-offset: 2px; }
.form__legal a:hover { color: var(--accent); }

/* The floating reCAPTCHA badge is hidden, which Google permits as long as the
   attribution above is shown. */
.grecaptcha-badge { visibility: hidden; }

.btn[disabled], .btn[aria-disabled="true"] {
  opacity: .55; cursor: not-allowed; transform: none;
}
.btn[disabled]:hover { transform: none; background: var(--accent); }

.info-list { display: grid; gap: 0; }
.info-list li { padding: var(--s-3) 0; border-bottom: 1px solid var(--line); }
.info-list dt {
  font-size: .625rem; letter-spacing: .18em; text-transform: uppercase;
  color: var(--faint); margin-bottom: .5rem;
}
.info-list dd { font-family: var(--font-display); font-size: var(--step-1); }
.info-list a:hover { color: var(--accent); }

/* ---------- 16. Footer ---------- */
.footer {
  background: var(--bg-alt);
  border-top: 1px solid var(--line);
  padding-block: clamp(3rem, 2rem + 4vw, 5rem) var(--s-4);
}
.footer__top {
  display: grid; gap: var(--s-4);
  padding-bottom: var(--s-5);
}
@media (min-width: 62rem) { .footer__top { grid-template-columns: 1.4fr 1fr; align-items: end; } }
.footer__wordmark {
  font-family: var(--font-display);
  font-size: var(--step-3); letter-spacing: .04em; text-transform: uppercase;
  line-height: 1.1;
}
.footer__tag { color: var(--muted); margin-top: var(--s-2); font-size: var(--step-1); font-family: var(--font-display); }
.footer__nav { display: flex; flex-wrap: wrap; gap: .75rem 1.5rem; }
.footer__nav a {
  font-size: .6875rem; letter-spacing: .16em; text-transform: uppercase;
  color: var(--muted); padding-block: .5rem;
  transition: color 220ms var(--ease);
}
.footer__nav a:hover { color: var(--accent); }
.footer__bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--s-2);
  padding-top: var(--s-3); border-top: 1px solid var(--line);
  font-size: .75rem; color: var(--faint);
}

/* ---------- 17. Reveal animations ---------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 760ms var(--ease), transform 760ms var(--ease);
  transition-delay: calc(var(--d, 0) * 80ms);
}
[data-reveal].is-in { opacity: 1; transform: none; }

.hero [data-reveal] { transition-duration: 900ms; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
  [data-reveal] { opacity: 1; transform: none; }
  .strip__track { animation: none; }
  .hero__media img { transform: none; }
}

/* ---------- 18. Print ---------- */
@media print {
  .nav, .menu, .progress, .hero__scroll, .strip, .btn { display: none !important; }
  body { background: #fff; color: #000; }
  .section { padding-block: 1.5rem; }
}
