/* =========================================================
   Core Origin Group, site styles
   One family (Archivo, variable width) does all the work:
   wide + heavy for display, normal width for reading.
   ========================================================= */

:root {
  /* Palette */
  --ink: #0A1430;        /* deep navy base */
  --ink-2: #121F47;      /* raised navy */
  --field: #EDF0F5;      /* drafting-film grey */
  --paper: #FFFFFF;
  --cobalt: #2E5BFF;     /* brand blue */
  --cobalt-soft: #7D97FF;/* cobalt on navy */
  --steel: #66749A;      /* secondary text, candidate pool */
  --steel-pale: #A9B4D0;
  --amber: #FFB938;      /* reserved: "placed" */

  --text: var(--ink);
  --text-muted: #4A5678;
  --line: rgba(10, 20, 48, 0.12);
  --line-dark: rgba(237, 240, 245, 0.14);

  /* Type */
  --font: "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;
  --step--1: 0.875rem;
  --step-0: 1.0625rem;
  --step-1: 1.25rem;
  --step-2: clamp(1.5rem, 1.2rem + 1vw, 1.875rem);
  --step-3: clamp(2.1rem, 1.4rem + 2.6vw, 3.6rem);
  --step-hero: clamp(3.4rem, 1rem + 11.5vw, 11.5rem);

  /* Layout */
  --wrap: 1320px;
  --gutter: clamp(16px, 4vw, 48px);
  --section-y: clamp(80px, 11vw, 160px);
  --header-h: 76px;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- Reset-ish ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: var(--header-h); }
body {
  margin: 0;
  font-family: var(--font);
  font-size: var(--step-0);
  line-height: 1.6;
  color: var(--text);
  background: var(--field);
  font-stretch: 100%;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3 { margin: 0; font-weight: 700; line-height: 1.05; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
a { color: inherit; }
button { font: inherit; color: inherit; }
address { font-style: normal; }

:focus-visible {
  outline: 2px solid var(--cobalt);
  outline-offset: 3px;
  border-radius: 4px;
}
.hero :focus-visible,
.exec :focus-visible,
.site-footer :focus-visible,
.split :focus-visible,
.site-header :focus-visible { outline-color: var(--amber); }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}
.skip {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--amber); color: var(--ink); padding: 10px 16px;
  font-weight: 600; text-decoration: none; border-radius: 6px;
}
.skip:focus { top: 12px; }

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0 24px;
  border-radius: 999px;
  font-weight: 600; font-size: 1rem; letter-spacing: 0.005em;
  text-decoration: none; white-space: nowrap;
  border: 1.5px solid transparent;
  transition: background-color .2s, color .2s, border-color .2s;
}
.btn-primary { background: var(--cobalt); color: #fff; }
.btn-primary:hover { background: #1F47E6; }
.btn-light { background: var(--paper); color: var(--ink); }
.btn-light:hover { background: var(--field); }
.btn-ghost { border-color: rgba(237, 240, 245, 0.4); color: var(--field); }
.btn-ghost:hover { border-color: var(--field); background: rgba(237, 240, 245, 0.06); }

/* ---------- Brand ---------- */
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  text-decoration: none; color: var(--field);
}
.brand-mark { width: 34px; height: 34px; flex: none; }
.brand-mark path { fill: none; stroke: var(--cobalt-soft); stroke-width: 12; stroke-linecap: round; }
.brand-mark circle { fill: var(--amber); }
.brand-word {
  font-weight: 800; font-stretch: 125%;
  font-size: 1.125rem; letter-spacing: -0.02em;
}

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  height: var(--header-h);
  color: var(--field);
  transition: background-color .3s, border-color .3s;
  border-bottom: 1px solid transparent;
}
.site-header.is-solid {
  background: rgba(10, 20, 48, 0.92);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom-color: var(--line-dark);
}
.header-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }

.nav { display: flex; align-items: center; gap: clamp(16px, 3vw, 40px); }
.nav ul { display: flex; gap: clamp(16px, 2.4vw, 32px); }
.nav ul a {
  text-decoration: none; font-size: 0.975rem; font-weight: 500;
  color: rgba(237, 240, 245, 0.78);
  padding: 6px 0; position: relative;
}
.nav ul a:hover { color: var(--field); }
.nav-cta { min-height: 42px; padding: 0 20px; font-size: 0.95rem; }

.nav-toggle {
  display: none;
  width: 44px; height: 44px; border: 0; background: none; cursor: pointer;
  position: relative;
}
.nav-toggle-bars,
.nav-toggle-bars::before {
  position: absolute; left: 11px; width: 22px; height: 2px; background: var(--field);
  transition: transform .25s var(--ease-out);
}
.nav-toggle-bars { top: 18px; }
.nav-toggle-bars::before { content: ""; left: 0; top: 7px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars { transform: translateY(3.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::before { transform: translateY(-7px) rotate(-90deg); }

@media (max-width: 900px) {
  .nav-toggle { display: block; }
  .nav {
    position: fixed; inset: var(--header-h) 0 auto 0;
    flex-direction: column; align-items: stretch; gap: 24px;
    padding: 24px var(--gutter) 32px;
    background: var(--ink);
    border-bottom: 1px solid var(--line-dark);
    transform: translateY(-8px); opacity: 0; visibility: hidden;
    transition: opacity .25s, transform .25s var(--ease-out), visibility 0s .25s;
  }
  .nav.is-open { opacity: 1; transform: none; visibility: visible; transition: opacity .25s, transform .25s var(--ease-out); }
  .nav ul { flex-direction: column; gap: 0; }
  .nav ul a {
    display: block; padding: 14px 0; font-size: 1.375rem; font-weight: 700; font-stretch: 115%;
    border-bottom: 1px solid var(--line-dark); color: var(--field);
  }
  .site-header:has(.nav.is-open) { background: var(--ink); }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex; flex-direction: column;
  background:
    radial-gradient(120% 80% at 85% 20%, #14245A 0%, rgba(20, 36, 90, 0) 60%),
    var(--ink);
  color: var(--field);
  overflow: hidden;
  isolation: isolate;
}
.hero-canvas {
  position: absolute; inset: 0; width: 100%; height: 100%;
  z-index: -1;
}
.hero-inner {
  flex: 1;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding-top: calc(var(--header-h) + 48px);
  padding-bottom: clamp(32px, 5vw, 56px);
  position: relative;
}
.hero-title {
  font-size: var(--step-hero);
  font-weight: 800;
  font-stretch: 125%;
  letter-spacing: -0.045em;
  line-height: 0.86;
  margin-left: -0.04em;
}
.hero-title .line { display: block; }

/* The full stop of "refined." is the logo dot: an empty ring until a candidate is placed */
.hero-dot {
  display: inline-block;
  width: 0.2em; height: 0.2em;
  margin-left: 0.05em;
  border-radius: 50%;
  background: var(--amber);
  box-shadow: 0 0 0 0 rgba(255, 185, 56, 0.6);
  vertical-align: baseline;
  position: relative; top: 0.005em;
}
.js .hero-dot {
  background: transparent;
  box-shadow: inset 0 0 0 0.022em rgba(169, 180, 208, 0.55);
  transition: background-color .35s var(--ease-out), box-shadow .35s var(--ease-out);
}
.js .hero-dot.is-lit {
  background: var(--amber);
  box-shadow: inset 0 0 0 0 transparent, 0 0 0.25em 0.02em rgba(255, 185, 56, 0.55);
  animation: dot-land .9s var(--ease-out);
}
@keyframes dot-land {
  0%   { transform: scale(0.6); }
  45%  { transform: scale(1.18); }
  100% { transform: scale(1); }
}

.hero-foot {
  margin-top: clamp(28px, 4vw, 48px);
  display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between;
  gap: 24px 48px;
}
.hero-lede {
  max-width: 34ch;
  font-size: var(--step-1);
  line-height: 1.5;
  color: rgba(237, 240, 245, 0.8);
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }

.hero-status {
  position: absolute;
  top: calc(var(--header-h) + 24px);
  right: var(--gutter);
  display: inline-flex; align-items: center; gap: 10px;
  font-size: var(--step--1); font-weight: 500;
  color: var(--steel-pale);
  font-variant-numeric: tabular-nums;
}
.status-pip {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--amber);
}
.js .status-pip { background: var(--cobalt-soft); transition: background-color .3s; }
.js .hero-status.is-done .status-pip { background: var(--amber); }

.hero-ledger { border-top: 1px solid var(--line-dark); position: relative; }
.ledger {
  display: grid; grid-template-columns: repeat(4, 1fr);
  margin-block: 0;
}
.ledger > div {
  padding: 20px 0 24px;
  display: flex; flex-direction: column-reverse; gap: 2px;
}
.ledger > div + div { padding-left: 24px; border-left: 1px solid var(--line-dark); }
.ledger dt { font-size: var(--step--1); color: var(--steel-pale); }
.ledger dd {
  margin: 0;
  font-size: var(--step-2); font-weight: 700; font-stretch: 120%;
  letter-spacing: -0.02em; line-height: 1.1;
}

@media (max-width: 720px) {
  .hero-status { position: static; margin-top: 28px; order: 3; }
  .hero-inner { justify-content: flex-end; }
  .ledger { grid-template-columns: repeat(2, 1fr); }
  .ledger > div:nth-child(3) { padding-left: 0; border-left: 0; }
  .ledger > div:nth-child(n+3) { border-top: 1px solid var(--line-dark); }
  .hero-actions { width: 100%; }
  .hero-actions .btn { flex: 1; }
}

/* ---------- Sections ---------- */
.section { padding-block: var(--section-y); }
.section-field { background: var(--field); }
.section-paper { background: var(--paper); }

.section-head { max-width: 640px; margin-bottom: clamp(48px, 6vw, 80px); }
.section-head h2 {
  font-size: var(--step-3);
  font-weight: 800; font-stretch: 118%;
  letter-spacing: -0.035em; line-height: 0.98;
  text-wrap: balance;
}
.section-head p {
  margin-top: 20px; max-width: 52ch;
  color: var(--text-muted); font-size: var(--step-1); line-height: 1.5;
}

/* ---------- Process ---------- */
.steps {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 1px solid var(--line);
}
.step {
  padding: 32px 28px 8px 0;
  position: relative;
}
.step + .step { padding-left: 28px; border-left: 1px solid var(--line); }
.dotgrid { aspect-ratio: 12 / 10; margin-bottom: 32px; max-width: 260px; }
.dotgrid svg { width: 100%; height: 100%; display: block; overflow: visible; }
.dotgrid .d { fill: rgba(102, 116, 154, 0.18); }
.dotgrid .d-pool { fill: var(--steel); }
.dotgrid .d-short { fill: var(--cobalt); }
.dotgrid .d-ring { fill: none; stroke: var(--cobalt); stroke-width: 1.4; }
.dotgrid .d-placed { fill: var(--amber); }
.step-num {
  display: inline-grid; place-items: center;
  width: 28px; height: 28px; border-radius: 50%;
  border: 1.5px solid var(--ink);
  font-size: 0.8rem; font-weight: 700;
  margin-bottom: 14px;
}
.step h3 { font-size: var(--step-2); font-stretch: 115%; letter-spacing: -0.02em; margin-bottom: 10px; }
.step p { color: var(--text-muted); max-width: 30ch; }

@media (max-width: 1000px) {
  .steps { grid-template-columns: repeat(2, 1fr); }
  .step:nth-child(3) { padding-left: 0; border-left: 0; }
  .step:nth-child(n+3) { border-top: 1px solid var(--line); margin-top: 24px; }
}
@media (max-width: 560px) {
  .steps { grid-template-columns: 1fr; }
  .step, .step + .step { padding: 28px 0 8px; border-left: 0; }
  .step + .step { border-top: 1px solid var(--line); margin-top: 16px; }
  .dotgrid { max-width: 200px; }
}

/* ---------- Services ---------- */
.services { border-top: 2px solid var(--ink); }
.service {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 5fr) minmax(0, 3fr);
  gap: 16px 48px;
  padding: clamp(28px, 4vw, 44px) 0;
  border-bottom: 1px solid var(--line);
  align-items: baseline;
}
.service h3 {
  font-size: clamp(1.9rem, 1.2rem + 2.6vw, 3.4rem);
  font-weight: 800; font-stretch: 125%;
  letter-spacing: -0.04em; line-height: 1;
  transition: color .25s;
}
.service p { font-size: var(--step-1); line-height: 1.5; color: var(--text-muted); max-width: 36ch; }
.service ul { font-size: var(--step--1); color: var(--text-muted); display: grid; gap: 6px; }
.service li { padding-left: 16px; position: relative; }
.service li::before {
  content: ""; position: absolute; left: 0; top: 0.62em;
  width: 6px; height: 6px; border-radius: 50%; background: var(--cobalt);
}
.service { position: relative; }
.service h3 a { color: inherit; text-decoration: none; }
.service h3 a::after { content: ""; position: absolute; inset: 0; } /* whole row is the link */
.service:hover h3 { color: var(--cobalt); }
@media (max-width: 900px) {
  .service { grid-template-columns: 1fr; }
}

/* ---------- Executive ---------- */
.exec {
  display: grid; grid-template-columns: 1fr 1fr;
  background: var(--ink); color: var(--field);
}
.exec-media { position: relative; min-height: 420px; }
.exec-media img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: 50% 30%;
}
.exec-copy {
  padding: var(--section-y) var(--gutter);
  max-width: 680px;
}
.exec-copy h2 {
  font-size: var(--step-3); font-weight: 800; font-stretch: 118%;
  letter-spacing: -0.035em; line-height: 0.98; text-wrap: balance;
}
.exec-copy > p { margin-top: 24px; color: rgba(237, 240, 245, 0.78); font-size: var(--step-1); line-height: 1.55; max-width: 46ch; }
.exec-points { margin: 40px 0 44px; border-top: 1px solid var(--line-dark); }
.exec-points > div {
  display: grid; grid-template-columns: 9.5rem 1fr; gap: 16px;
  padding: 16px 0; border-bottom: 1px solid var(--line-dark);
}
.exec-points dt { font-weight: 700; font-stretch: 115%; }
.exec-points dd { margin: 0; color: var(--steel-pale); }
@media (max-width: 900px) {
  .exec { grid-template-columns: 1fr; }
  .exec-media { min-height: 0; aspect-ratio: 4 / 3; }
}
@media (max-width: 480px) {
  .exec-points > div { grid-template-columns: 1fr; gap: 2px; }
}

/* ---------- Industries ---------- */
.industries {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(32px, 6vw, 96px);
  align-items: start;
}
.industry-list { border-top: 1px solid var(--line); }
.industry-list li { border-bottom: 1px solid var(--line); }
.industry-list button {
  width: 100%; text-align: left;
  background: none; border: 0; cursor: pointer;
  padding: 10px 0;
  font-size: clamp(1.5rem, 1rem + 2vw, 2.6rem);
  font-weight: 700; font-stretch: 112%;
  letter-spacing: -0.03em; line-height: 1.15;
  color: rgba(10, 20, 48, 0.32);
  display: flex; align-items: center; gap: 14px;
  transition: color .25s, font-stretch .35s var(--ease-out);
}
.industry-list button::before {
  content: ""; flex: none;
  width: 0.32em; height: 0.32em; border-radius: 50%;
  background: var(--cobalt);
  transform: scale(0); transition: transform .3s var(--ease-out);
}
.industry-list button:hover { color: rgba(10, 20, 48, 0.62); }
.industry-list button[aria-selected="true"] { color: var(--ink); font-stretch: 125%; }
.industry-list button[aria-selected="true"]::before { transform: scale(1); }

.industry-panel {
  position: sticky; top: calc(var(--header-h) + 32px);
  background: var(--ink); color: var(--field);
  padding: clamp(28px, 3vw, 44px);
  border-radius: 4px;
}
.industry-panel h3 { font-size: var(--step-2); font-stretch: 120%; letter-spacing: -0.02em; }
.industry-panel p { margin-top: 14px; color: var(--steel-pale); }
.role-list { margin-top: 28px; border-top: 1px solid var(--line-dark); }
.role-list li {
  padding: 12px 0; border-bottom: 1px solid var(--line-dark);
  display: flex; align-items: center; gap: 12px;
}
.role-list li::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--cobalt-soft); flex: none;
}
.industries-note { margin-top: 48px; color: var(--text-muted); }
.industries-note a { color: var(--cobalt); font-weight: 600; text-underline-offset: 3px; }

@media (max-width: 860px) {
  .industries { grid-template-columns: 1fr; }
  .industry-panel { position: static; }
}

/* ---------- Coverage tile map ---------- */
.coverage {
  display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr);
  gap: clamp(32px, 6vw, 96px); align-items: center;
}
.coverage .section-head { margin-bottom: 0; }
.map-key { margin-top: 32px; display: grid; gap: 10px; font-size: var(--step--1); color: var(--text-muted); }
.map-key li { display: flex; align-items: center; gap: 12px; }
.key { width: 14px; height: 14px; border-radius: 50%; flex: none; }
.key-active { background: var(--cobalt); }
.key-base { background: var(--field); box-shadow: inset 0 0 0 1px rgba(10, 20, 48, 0.12); }
.key-hq { background: var(--amber); }

.tilemap {
  display: grid;
  grid-template-columns: repeat(11, 1fr);
  gap: clamp(4px, 0.8vw, 10px);
}
.tile {
  aspect-ratio: 1;
  border-radius: 50%;
  display: grid; place-items: center;
  font-size: clamp(0.5rem, 0.3rem + 0.6vw, 0.78rem);
  font-weight: 600; letter-spacing: 0.02em;
  background: var(--field); color: var(--steel);
  transition: transform .2s var(--ease-out);
}
.tile.is-active { background: var(--cobalt); color: #fff; }
.tile.is-hq { background: var(--amber); color: var(--ink); }
.tile:hover { transform: scale(1.12); }
@media (max-width: 860px) {
  .coverage { grid-template-columns: 1fr; }
}

/* ---------- Employer timeline ---------- */
.timeline {
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 32px;
  position: relative;
  padding-top: 40px;
}
/* the track the dots sit on */
.timeline::before {
  content: ""; position: absolute; left: 0; right: 0; top: 7px;
  height: 2px; background: linear-gradient(90deg, var(--cobalt) 0%, var(--cobalt) 80%, var(--amber) 100%);
  opacity: 0.35;
}
.timeline li { position: relative; }
.timeline li::before {
  content: ""; position: absolute; top: -40px; left: 0;
  width: 16px; height: 16px; border-radius: 50%;
  background: var(--field); box-shadow: inset 0 0 0 2px var(--cobalt);
}
.timeline li.tl-last::before { background: var(--amber); box-shadow: none; }
.tl-when { display: block; font-size: var(--step--1); font-weight: 600; color: var(--cobalt); margin-bottom: 8px; }
.timeline h3 { font-size: var(--step-1); font-stretch: 115%; letter-spacing: -0.015em; margin-bottom: 8px; }
.timeline p { color: var(--text-muted); font-size: 0.975rem; }
@media (max-width: 1000px) {
  .timeline { grid-template-columns: 1fr; gap: 28px; padding-top: 0; padding-left: 40px; }
  .timeline::before { left: 7px; right: auto; top: 8px; bottom: 8px; width: 2px; height: auto;
    background: linear-gradient(180deg, var(--cobalt) 0%, var(--cobalt) 80%, var(--amber) 100%); }
  .timeline li::before { top: 4px; left: -40px; }
}

/* ---------- Comparison table ---------- */
.compare-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.compare {
  width: 100%; min-width: 720px;
  border-collapse: collapse;
  font-size: 1rem;
}
.compare th, .compare td {
  text-align: left; vertical-align: top;
  padding: 18px 20px; border-bottom: 1px solid var(--line);
}
.compare thead th {
  font-size: var(--step-1); font-weight: 700; font-stretch: 115%;
  border-bottom: 2px solid var(--ink); padding-bottom: 16px;
}
.compare tbody th { font-weight: 600; width: 22%; padding-left: 0; }
.compare td { color: var(--text-muted); }
.compare .is-us { background: var(--ink); color: var(--field); }
.compare thead .is-us { border-bottom-color: var(--amber); border-radius: 4px 4px 0 0; }
.compare td.is-us { border-bottom-color: var(--line-dark); font-weight: 500; }
.compare tbody tr:last-child td.is-us { border-radius: 0 0 4px 4px; }

/* ---------- Candidates ---------- */
.candidates { background: var(--ink-2); color: var(--field); padding-block: var(--section-y); }
.candidates-grid {
  display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr);
  gap: clamp(40px, 7vw, 112px); align-items: start;
}
.candidates-intro { position: sticky; top: calc(var(--header-h) + 32px); }
.candidates-intro h2 {
  font-size: var(--step-3); font-weight: 800; font-stretch: 118%;
  letter-spacing: -0.035em; line-height: 0.98; text-wrap: balance;
}
.candidates-intro p { margin: 20px 0 32px; color: var(--steel-pale); font-size: var(--step-1); line-height: 1.5; max-width: 40ch; }
.promises {
  display: grid; grid-template-columns: 1fr 1fr;
  border-top: 1px solid var(--line-dark);
}
.promises li { padding: 28px 28px 28px 0; border-bottom: 1px solid var(--line-dark); }
.promises li:nth-child(even) { padding-left: 28px; padding-right: 0; border-left: 1px solid var(--line-dark); }
.promises h3 { font-size: var(--step-1); font-stretch: 112%; letter-spacing: -0.01em; margin-bottom: 8px; }
.promises p { color: var(--steel-pale); }
@media (max-width: 900px) {
  .candidates-grid { grid-template-columns: 1fr; }
  .candidates-intro { position: static; }
}
@media (max-width: 600px) {
  .promises { grid-template-columns: 1fr; }
  .promises li, .promises li:nth-child(even) { padding: 24px 0; border-left: 0; }
}

/* ---------- FAQ ---------- */
.faq-grid {
  display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr);
  gap: clamp(32px, 6vw, 96px); align-items: start;
}
.faq-grid .section-head a { color: var(--cobalt); font-weight: 600; }
.faq { border-top: 2px solid var(--ink); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center; gap: 24px;
  padding: 22px 0;
  font-size: var(--step-1); font-weight: 600; font-stretch: 108%; letter-spacing: -0.01em; line-height: 1.35;
}
.faq summary::-webkit-details-marker { display: none; }
/* a ring that fills when open: the same "placed" idea as the logo dot */
.faq summary::after {
  content: ""; flex: none; width: 14px; height: 14px; border-radius: 50%;
  box-shadow: inset 0 0 0 2px var(--cobalt);
  transition: background-color .25s, box-shadow .25s;
}
.faq details[open] summary::after { background: var(--cobalt); }
.faq summary:hover { color: var(--cobalt); }
.faq details p { padding: 0 48px 26px 0; color: var(--text-muted); max-width: 64ch; }
@media (max-width: 900px) {
  .faq-grid { grid-template-columns: 1fr; }
  .faq-grid .section-head { margin-bottom: 0; }
}

/* ---------- Contact ---------- */
.contact { background: var(--cobalt); color: #fff; padding-block: var(--section-y); }
.contact-grid {
  display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 6fr);
  gap: clamp(40px, 7vw, 112px); align-items: start;
}
.contact-intro h2 {
  font-size: var(--step-3); font-weight: 800; font-stretch: 122%;
  letter-spacing: -0.04em; line-height: 0.98; text-wrap: balance;
}
.contact-intro p { margin-top: 20px; font-size: var(--step-1); line-height: 1.5; color: rgba(255, 255, 255, 0.86); max-width: 36ch; }
.contact-direct { margin-top: 40px; display: grid; gap: 6px; color: rgba(255, 255, 255, 0.86); }
.contact-direct a { color: #fff; font-weight: 600; font-size: var(--step-1); text-underline-offset: 4px; }

.contact-form {
  background: var(--paper); color: var(--ink);
  padding: clamp(24px, 3.5vw, 48px);
  border-radius: 6px;
  display: grid; gap: 20px;
}
.contact :focus-visible { outline-color: var(--ink); }
.intent { border: 0; padding: 4px; margin: 0 0 4px; display: inline-flex; background: var(--field); border-radius: 999px; justify-self: start; }
.intent label { position: relative; cursor: pointer; }
.intent input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.intent span {
  display: block; padding: 10px 18px; border-radius: 999px;
  font-weight: 600; font-size: 0.95rem; color: var(--text-muted);
  transition: background-color .2s, color .2s;
}
.intent input:checked + span { background: var(--ink); color: var(--field); }
.intent input:focus-visible + span { outline: 2px solid var(--cobalt); outline-offset: 2px; }

.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.field { display: grid; gap: 6px; }
.field[hidden] { display: none; }
.field label { font-size: 0.9rem; font-weight: 600; }
.field input, .field textarea {
  font: inherit; font-size: 1rem; color: var(--ink);
  width: 100%; padding: 12px 14px;
  border: 1.5px solid rgba(10, 20, 48, 0.16); border-radius: 4px;
  background: var(--paper);
  transition: border-color .2s;
}
.field textarea { resize: vertical; min-height: 110px; }
.field input:hover, .field textarea:hover { border-color: rgba(10, 20, 48, 0.32); }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--cobalt); box-shadow: 0 0 0 3px rgba(46, 91, 255, 0.18); }
.field input[aria-invalid="true"] { border-color: #C9302C; }
.field input::placeholder, .field textarea::placeholder { color: #8F99B3; }
.form-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; }
.form-status { font-size: 0.95rem; color: var(--text-muted); }
.form-status.is-error { color: #C9302C; }
@media (max-width: 900px) {
  .contact-grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .field-row { grid-template-columns: 1fr; }
  .intent { justify-self: stretch; }
  .intent label { flex: 1; text-align: center; }
}

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: var(--steel-pale); padding-top: clamp(64px, 8vw, 112px); }
.footer-grid {
  display: grid; grid-template-columns: 2fr 1.4fr 1fr 1fr; gap: 40px;
  padding-bottom: 64px;
}
.footer-brand p { margin-top: 16px; }
.footer-h { font-size: 0.95rem; font-weight: 600; color: var(--field); margin-bottom: 16px; }
.site-footer ul { display: grid; gap: 10px; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--field); }
.site-footer address { line-height: 1.8; }
.footer-base {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px;
  padding-top: 24px; padding-bottom: 32px;
  border-top: 1px solid var(--line-dark);
  font-size: var(--step--1);
}
.footer-base ul { display: flex; flex-wrap: wrap; gap: 24px; }
@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}

/* Footer credit */
.footer-base .credit a { color: var(--field); text-decoration: underline; text-underline-offset: 3px; }
.footer-base .credit a:hover { color: var(--amber); }

/* ---------- Contact form: validation, sending, success ---------- */
.contact-card { position: relative; transition: height .5s var(--ease-out); }
.contact-card.is-animating { overflow: hidden; }

.field-error {
  font-size: 0.85rem; color: #C9302C; margin: 0;
  display: flex; align-items: center; gap: 6px;
  animation: field-error-in .25s var(--ease-out);
}
.field-error::before { content: "!"; display: inline-grid; place-items: center; width: 16px; height: 16px; border-radius: 50%; background: #C9302C; color: #fff; font-size: 11px; font-weight: 800; flex: none; }
.field textarea[aria-invalid="true"] { border-color: #C9302C; }
.field input[aria-invalid="true"]:focus, .field textarea[aria-invalid="true"]:focus { box-shadow: 0 0 0 3px rgba(201, 48, 44, 0.16); }
.field.is-shaking { animation: field-shake .4s var(--ease-out); }
@keyframes field-error-in { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
@keyframes field-shake { 0%, 100% { transform: none; } 20% { transform: translateX(-6px); } 40% { transform: translateX(5px); } 60% { transform: translateX(-3px); } 80% { transform: translateX(2px); } }

/* Honeypot — kept out of sight and out of the tab order. */
.hp-field { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.btn-submit { position: relative; min-width: 168px; justify-content: center; }
.btn-submit .btn-spinner {
  position: absolute; inset: 0; margin: auto; width: 20px; height: 20px;
  border: 2.5px solid rgba(255, 255, 255, 0.35); border-top-color: #fff; border-radius: 50%;
  opacity: 0; transform: scale(.6); transition: opacity .2s, transform .2s;
}
.btn-submit .btn-label { transition: opacity .2s, transform .2s; }
.btn-submit.is-loading { pointer-events: none; }
.btn-submit.is-loading .btn-label { opacity: 0; transform: translateY(-4px); }
.btn-submit.is-loading .btn-spinner { opacity: 1; transform: none; animation: btn-spin .7s linear infinite; }
@keyframes btn-spin { to { transform: rotate(360deg); } }
.contact-form.is-sending .field, .contact-form.is-sending .intent { opacity: .55; transition: opacity .2s; }
.form-status a { color: inherit; font-weight: 600; }

.contact-form.is-leaving { animation: form-leave .35s var(--ease-out) forwards; }
@keyframes form-leave { to { opacity: 0; transform: translateY(-12px) scale(.985); } }

.form-success {
  background: var(--paper); color: var(--ink); border-radius: 6px;
  padding: clamp(40px, 6vw, 72px) clamp(24px, 3.5vw, 48px);
  display: grid; justify-items: center; text-align: center; gap: 14px;
}
.form-success[hidden], .contact-form[hidden] { display: none; }
.form-success:focus { outline: none; }
.form-success.is-in .success-title,
.form-success.is-in .success-text,
.form-success.is-in .success-again { animation: success-rise .55s var(--ease-out) both; }
.form-success.is-in .success-title { animation-delay: .45s; }
.form-success.is-in .success-text { animation-delay: .55s; }
.form-success.is-in .success-again { animation-delay: .65s; }
.success-title { font-size: var(--step-2, 1.75rem); font-weight: 800; letter-spacing: -0.02em; margin: 6px 0 0; }
.success-text { color: var(--text-muted); max-width: 40ch; margin: 0; font-size: 1.05rem; line-height: 1.5; }
.success-again { margin-top: 10px; border-color: rgba(10, 20, 48, 0.2); color: var(--ink); }
.success-again:hover { border-color: var(--ink); background: var(--field); }
@keyframes success-rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

.success-mark { width: 76px; height: 76px; }
.success-circle { fill: none; stroke: var(--cobalt); stroke-width: 2.5; stroke-dasharray: 151; stroke-dashoffset: 151; transform-origin: center; }
.success-check { fill: none; stroke: var(--cobalt); stroke-width: 3.5; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 36; stroke-dashoffset: 36; }
.form-success.is-in .success-circle { animation: draw .6s var(--ease-out) forwards, pop .5s .5s var(--ease-out); }
.form-success.is-in .success-check { animation: draw .35s .45s var(--ease-out) forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes pop { 50% { transform: scale(1.08); } }
