/* ==========================================================================
   Juanhire Pro — styles.css
   Vanilla CSS, mobile-first. Edit the tokens in :root to retheme the site.
   ========================================================================== */

:root {
  --cream: #fdfaf6;
  --grey: #f4f4f5;
  --sage-grey: #edf0ed;
  --white: #ffffff;
  --ink: #0a0a0a;
  --heading: #18260d;
  --navy: #050a34;
  --navy-alt: #071d38;
  --on-navy: #f5f0e8;
  --on-navy-muted: rgba(245, 240, 232, 0.74);
  --sage: #abd37a;
  --sage-soft: #e7f2d5;
  --muted: #525252;
  --border: #e5e5e5;
  --field-border: #8a8a8a;
  --error: #a1161b;

  --font-head: "Newsreader", Georgia, "Times New Roman", serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-mono: "Space Mono", ui-monospace, Menlo, Consolas, monospace;

  --radius: 10px;
  --wrap: 1160px;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --section: clamp(4rem, 9vw, 7rem);
  --header-h: 6rem;

  --focus: var(--heading);
  --ghost-hover-bg: var(--heading);
  --ghost-hover-fg: var(--cream);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 6.5rem; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font: 400 1rem/1.65 var(--font-body);
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; display: block; }
h1, h2, h3, h4 {
  margin: 0 0 0.5em;
  color: var(--heading);
  font-family: var(--font-head);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.015em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.6rem, 6.4vw, 4.75rem); line-height: 1.03; letter-spacing: -0.025em; }
h2 { font-size: clamp(2rem, 4.2vw, 3rem); }
h3 { font-size: 1.375rem; font-weight: 500; line-height: 1.25; letter-spacing: -0.005em; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; }
a { color: inherit; text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 4px; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 1rem; top: -4rem; z-index: 100;
  padding: 0.75rem 1rem; border-radius: var(--radius);
  background: var(--sage); color: var(--heading); font-weight: 600; text-decoration: none;
}
.skip-link:focus { top: 1rem; }

/* Dark surfaces swap the focus and ghost-button colours */
.on-navy {
  color: var(--on-navy);
  --focus: var(--sage);
  --ghost-hover-bg: var(--on-navy);
  --ghost-hover-fg: var(--navy);
}
.on-navy h1, .on-navy h2, .on-navy h3 { color: var(--on-navy); }

/* Placeholder marker: anything in [brackets] still needs real content */
.ph {
  padding: 0.05em 0.35em;
  border-radius: 4px;
  border-bottom: 1px dashed var(--heading);
  background: var(--sage-soft);
  color: var(--heading);
  font-style: normal;
}

.lede { font-size: clamp(1.0625rem, 1.6vw, 1.25rem); line-height: 1.6; color: var(--muted); max-width: 38em; }
.on-navy .lede { color: var(--on-navy-muted); }
.muted { color: var(--muted); }

.label {
  display: flex; align-items: center; gap: 0.6rem;
  margin: 0 0 1.25rem;
  font: 400 0.8125rem/1.3 var(--font-mono);
  color: var(--heading);
}
.label::before { content: ""; width: 0.625rem; height: 0.625rem; border-radius: 2px; background: var(--sage); flex: none; }
.on-navy .label { color: var(--on-navy); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 2.875rem; padding: 0.7rem 1.35rem;
  border: 1.5px solid transparent; border-radius: var(--radius);
  font: 600 0.9375rem/1.1 var(--font-body);
  text-align: center; text-decoration: none; cursor: pointer;
  transition: background-color 0.15s, color 0.15s, border-color 0.15s;
}
.btn--primary { background: var(--sage); border-color: var(--sage); color: var(--heading); }
.btn--primary:hover { background: var(--sage-soft); }
.btn--ghost { background: transparent; border-color: currentColor; color: inherit; }
.btn--ghost:hover { background: var(--ghost-hover-bg); border-color: var(--ghost-hover-bg); color: var(--ghost-hover-fg); }
.btn-row { display: flex; flex-wrap: wrap; gap: 0.75rem; }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  background: var(--navy); color: var(--on-navy);
  --focus: var(--sage);
  --ghost-hover-bg: var(--on-navy);
  --ghost-hover-fg: var(--navy);
  --rule: rgba(245, 240, 232, 0.16);
  transition: background-color 0.25s, color 0.25s, box-shadow 0.25s;
}
.site-header.is-scrolled { box-shadow: 0 1px 0 rgba(245, 240, 232, 0.08), 0 10px 30px rgba(5, 10, 52, 0.18); }
/* Transparent over the hero (only when JS can restore the navy state on scroll) */
.js .site-header:not(.is-scrolled) {
  background: transparent; color: var(--heading);
  --focus: var(--heading);
  --ghost-hover-bg: var(--heading);
  --ghost-hover-fg: var(--cream);
  --rule: rgba(24, 38, 13, 0.14);
}
html:not(.js) .site-header { position: static; }

.utility {
  max-height: 2.25rem; overflow: hidden;
  border-bottom: 1px solid var(--rule);
  font-size: 0.8125rem;
  transition: max-height 0.25s, opacity 0.2s, visibility 0s;
}
.utility__inner { display: flex; justify-content: space-between; gap: 1rem; align-items: center; height: 2.25rem; }
.utility a { text-decoration: none; font-weight: 500; white-space: nowrap; }
.utility a:hover { text-decoration: underline; }
.site-header.is-scrolled .utility { max-height: 0; opacity: 0; visibility: hidden; border-bottom-width: 0; transition: max-height 0.25s, opacity 0.2s, visibility 0s 0.25s; }

.header__bar { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; min-height: 4rem; flex-wrap: wrap; }
.wordmark {
  display: inline-flex; align-items: center; gap: 0.6rem;
  font: 500 1.4375rem/1 var(--font-head); letter-spacing: -0.01em;
  color: inherit; text-decoration: none;
}
.wordmark svg { width: 2rem; height: 1.5rem; flex: none; }

.nav-toggle {
  position: relative; z-index: 2;
  display: none; align-items: center; justify-content: center;
  width: 2.875rem; height: 2.875rem; margin-right: -0.5rem;
  border: 0; border-radius: var(--radius); background: transparent; cursor: pointer;
}
.js .nav-toggle { display: inline-flex; }
.nav-toggle__bars, .nav-toggle__bars::before, .nav-toggle__bars::after {
  display: block; width: 1.5rem; height: 2px; border-radius: 2px; background: currentColor;
  transition: transform 0.25s, background-color 0.2s;
}
.nav-toggle__bars { position: relative; }
.nav-toggle__bars::before, .nav-toggle__bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle__bars::before { top: -7px; }
.nav-toggle__bars::after { top: 7px; }
.nav-toggle[aria-expanded="true"] { color: var(--on-navy); --focus: var(--sage); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::before { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::after { transform: translateY(-7px) rotate(-45deg); }

.site-nav ul { list-style: none; display: flex; flex-wrap: wrap; gap: 0.25rem 1.25rem; }
.site-nav a:not(.btn) { display: inline-block; padding: 0.5rem 0; font-weight: 500; font-size: 0.9375rem; text-decoration: none; }
.site-nav a:not(.btn):hover, .site-nav a[aria-current="page"]:not(.btn) { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 0.45em; }
.site-nav__cta { display: flex; flex-wrap: wrap; gap: 0.625rem; }
.site-nav__contact { display: none; }
.site-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem 1.75rem; padding-bottom: 0.75rem; }

.nav-backdrop { position: fixed; inset: 0; z-index: 40; background: rgba(5, 10, 52, 0.5); opacity: 0; visibility: hidden; transition: opacity 0.3s, visibility 0s 0.3s; }
.nav-open .nav-backdrop { opacity: 1; visibility: visible; transition: opacity 0.3s; }
.nav-open { overflow: hidden; }

@media (max-width: 1099.98px) {
  /* Drawer menu */
  .js .site-nav {
    position: fixed; top: 0; right: 0; bottom: 0; z-index: 1;
    width: min(22rem, 100%);
    flex-direction: column; flex-wrap: nowrap; align-items: stretch; gap: 1.75rem;
    padding: 6.5rem var(--gutter) 2rem;
    background: var(--navy); color: var(--on-navy);
    --focus: var(--sage); --ghost-hover-bg: var(--on-navy); --ghost-hover-fg: var(--navy);
    overflow-y: auto;
    transform: translateX(100%); visibility: hidden;
    transition: transform 0.3s ease, visibility 0s 0.3s;
  }
  .js.nav-open .site-nav { transform: none; visibility: visible; transition: transform 0.3s ease; }
  .js .site-nav ul { flex-direction: column; gap: 0; }
  .js .site-nav li { border-bottom: 1px solid rgba(245, 240, 232, 0.16); }
  .js .site-nav a:not(.btn) { display: block; padding: 0.9rem 0; font: 400 1.5rem/1.2 var(--font-head); }
  .js .site-nav__cta { flex-direction: column; }
  .js .site-nav__contact { display: grid; gap: 0.35rem; margin-top: auto; font-size: 0.9375rem; }
  .js .site-nav__contact a { padding: 0.25rem 0; font: 500 0.9375rem/1.4 var(--font-body); }
}
@media (min-width: 1100px) {
  .js .nav-toggle { display: none; }
  .header__bar { flex-wrap: nowrap; min-height: 4.25rem; }
  .site-nav { flex-wrap: nowrap; padding-bottom: 0; gap: 2rem; }
  .site-nav ul { flex-wrap: nowrap; gap: 1.75rem; }
  .site-nav .btn { min-height: 2.5rem; padding: 0.55rem 1.05rem; }
}

/* ---------- Sections ---------- */
.section { padding-block: var(--section); }
.section--tight-top { padding-top: 0; }
.bg-grey { background: var(--grey); }
.bg-sage { background: var(--sage-grey); }
.bg-white { background: var(--white); }
.bg-navy { background: var(--navy); }
.rule-top { border-top: 1px solid var(--border); }
.section-head { max-width: 46rem; margin-bottom: clamp(2rem, 5vw, 3.5rem); }
.section-head p:last-child { margin-bottom: 0; }

/* ---------- Hero (home) ---------- */
.hero {
  position: relative; overflow: hidden;
  padding: calc(var(--header-h) + clamp(2.5rem, 7vw, 5.5rem)) 0 clamp(3rem, 7vw, 5.5rem);
  background:
    radial-gradient(60rem 34rem at 88% 18%, rgba(171, 211, 122, 0.28), transparent 62%),
    radial-gradient(circle at 1px 1px, rgba(24, 38, 13, 0.09) 1px, transparent 0) 0 0 / 28px 28px,
    var(--cream);
}
.hero__grid { display: grid; gap: 3rem; align-items: center; }
.hero h1 { max-width: 11em; margin-bottom: 0.45em; }
.hero .lede { margin-bottom: 2rem; color: #3c3c3c; }
.hero__note { margin: 1.5rem 0 0; font-size: 0.9375rem; color: var(--muted); }
.hero__note a { color: var(--heading); font-weight: 600; }
.hero__art { max-width: 30rem; width: 100%; margin-inline: auto; }
.hero__art text { font: 400 12px var(--font-mono); fill: var(--heading); }
@media (min-width: 900px) {
  .hero__grid { grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: 4rem; }
  .hero__art { max-width: none; }
}

/* The one orchestrated moment: the open seat on the org chart gets filled */
.seat-fill, .seat-label-filled { opacity: 0; animation: seat-in 0.6s ease 1.5s forwards; }
.seat-open, .seat-label-open { animation: seat-out 0.4s ease 1.4s forwards; }
@keyframes seat-in { to { opacity: 1; } }
@keyframes seat-out { to { opacity: 0; } }

/* ---------- Page hero (inner pages) ---------- */
.page-hero {
  position: relative; overflow: hidden;
  padding: calc(var(--header-h) + clamp(2.5rem, 6vw, 4.5rem)) 0 clamp(2.5rem, 6vw, 4.5rem);
  border-bottom: 1px solid var(--border);
  background:
    radial-gradient(48rem 26rem at 92% 0%, rgba(171, 211, 122, 0.26), transparent 62%),
    radial-gradient(circle at 1px 1px, rgba(24, 38, 13, 0.09) 1px, transparent 0) 0 0 / 28px 28px,
    var(--cream);
}
.page-hero h1 { font-size: clamp(2.4rem, 5.4vw, 4rem); max-width: 14em; }
.page-hero .lede { margin-bottom: 0; color: #3c3c3c; }
.page-hero .btn-row { margin-top: 2rem; }

/* ---------- Stats bento ---------- */
.bento { display: grid; gap: 0.875rem; grid-template-columns: 1fr; }
.tile {
  display: flex; flex-direction: column; justify-content: space-between; gap: 1.5rem;
  min-height: 10.5rem; padding: 1.5rem;
  border: 1px solid var(--border); border-radius: var(--radius); background: var(--white);
}
.tile__num { font: 400 clamp(2.25rem, 5vw, 3rem)/1 var(--font-mono); color: var(--heading); letter-spacing: -0.03em; }
.tile__label { margin: 0; color: var(--muted); font-size: 0.9375rem; }
.tile--navy { background: var(--navy); border-color: var(--navy); }
.tile--navy .tile__num { font-size: clamp(3.25rem, 9vw, 5.5rem); color: var(--on-navy); }
.tile--navy .tile__label { color: var(--on-navy-muted); font-size: 1.0625rem; max-width: 22em; }
.tile--sage { background: var(--sage-grey); border-color: var(--sage-grey); }
.tile--contact h3 { margin: 0; }
.tile__links { display: grid; gap: 0.25rem; font: 500 clamp(1.125rem, 2.4vw, 1.375rem)/1.35 var(--font-head); }
.tile__links a { width: fit-content; overflow-wrap: anywhere; }
.bento-note { margin: 1rem 0 0; font-size: 0.875rem; }
@media (min-width: 600px) {
  .bento { grid-template-columns: repeat(2, 1fr); }
  .tile--navy, .tile--contact { grid-column: span 2; }
}
@media (min-width: 960px) {
  .bento { grid-template-columns: repeat(4, 1fr); }
  .tile--navy { grid-row: span 2; min-height: 22rem; }
}
/* Two-tile bento: one stat beside the contact tile */
@media (min-width: 700px) {
  .bento--pair { grid-template-columns: 1fr 1fr; align-items: stretch; }
  .bento--pair .tile--navy,
  .bento--pair .tile--contact {
    grid-column: auto;
    grid-row: auto;
    min-height: 16rem;
  }
}

/* ---------- Pillars ---------- */
.pillars { list-style: none; display: grid; gap: 2.5rem; }
.pillar { padding-top: 1.5rem; border-top: 1px solid var(--heading); }
.pillar__num { display: block; margin-bottom: 2rem; font: 400 0.875rem/1 var(--font-mono); color: var(--heading); }
.pillar h3 { font-size: 1.625rem; font-weight: 400; }
.pillar p { margin: 0; color: var(--muted); }
@media (min-width: 800px) { .pillars { grid-template-columns: repeat(3, 1fr); gap: 2.5rem; } }

/* ---------- Cards ---------- */
.cards { list-style: none; display: grid; gap: 0.875rem; }
.card {
  display: flex; flex-direction: column; gap: 0.5rem;
  padding: 1.75rem; border: 1px solid var(--border); border-radius: var(--radius); background: var(--white);
}
.card h3 { margin: 0 0 0.25rem; }
.card p { margin: 0; color: var(--muted); }
.card .hint { margin-top: auto; padding-top: 1rem; font-size: 0.875rem; }
.card--accent { background: var(--navy-alt); border-color: var(--navy-alt); }
.card--accent p { color: var(--on-navy-muted); }
.card--accent .btn { margin-top: 1.25rem; align-self: flex-start; }
.tag {
  align-self: flex-start; padding: 0.2rem 0.55rem; border-radius: 4px;
  background: var(--sage-soft); color: var(--heading);
  font: 400 0.75rem/1.4 var(--font-mono);
}
@media (min-width: 700px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .cards--3 { grid-template-columns: repeat(3, 1fr); } }

/* ---------- Split band ---------- */
.split { display: grid; gap: 2.5rem; align-items: start; }
.split > * > :last-child { margin-bottom: 0; }
@media (min-width: 900px) { .split { grid-template-columns: 1fr 1fr; gap: 5rem; } .split--wide-left { grid-template-columns: 1.15fr 0.85fr; } }
@media (min-width: 900px) { .split--faq { grid-template-columns: 0.75fr 1.25fr; } .split--faq .section-head { margin-bottom: 0; position: sticky; top: 7rem; } }
.checklist { list-style: none; display: grid; gap: 0; }
.checklist li { position: relative; padding: 1rem 0 1rem 2.25rem; border-top: 1px solid rgba(24, 38, 13, 0.16); }
.checklist li:last-child { border-bottom: 1px solid rgba(24, 38, 13, 0.16); }
.checklist li::before {
  content: ""; position: absolute; left: 0.2rem; top: 1.35rem;
  width: 0.95rem; height: 0.5rem; border: solid var(--heading); border-width: 0 0 2px 2px;
  transform: rotate(-45deg);
}
.checklist strong { display: block; font-weight: 600; color: var(--heading); }
.checklist span { color: var(--muted); font-size: 0.9375rem; }

/* ---------- How it works ---------- */
.toggle {
  display: inline-flex; gap: 0.25rem; padding: 0.25rem; margin-bottom: 2.5rem;
  border: 1px solid var(--border); border-radius: calc(var(--radius) + 4px); background: var(--white);
}
.toggle button {
  min-height: 2.75rem; padding: 0.5rem 1.15rem;
  border: 0; border-radius: var(--radius); background: transparent;
  font-weight: 600; font-size: 0.9375rem; color: var(--muted); cursor: pointer;
  transition: background-color 0.15s, color 0.15s;
}
.toggle button:hover { color: var(--heading); }
.toggle button[aria-selected="true"] { background: var(--navy); color: var(--on-navy); }
html:not(.js) .toggle { display: none; }
.panel-title { margin-bottom: 1.5rem; font-size: 1.5rem; }
.panel-title--spaced { margin-top: 3rem; }
.js .panel-title { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.steps { list-style: none; counter-reset: step; display: grid; gap: 2rem; }
.steps li { counter-increment: step; padding-top: 1.25rem; border-top: 1px solid var(--border); }
.steps li::before {
  content: "Step " counter(step);
  display: block; margin-bottom: 1.25rem;
  font: 400 0.8125rem/1 var(--font-mono); color: var(--heading);
}
.steps h3, .steps h4 { margin-bottom: 0.4rem; font: 500 1.25rem/1.25 var(--font-head); }
.steps p { margin: 0; color: var(--muted); font-size: 0.9688rem; }
@media (min-width: 640px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .steps { grid-template-columns: repeat(4, 1fr); } }

/* ---------- Chips ---------- */
.chips { list-style: none; display: flex; flex-wrap: wrap; gap: 0.625rem; }
.chips li { padding: 0.6rem 1rem; border: 1px solid var(--border); border-radius: 999px; background: var(--white); font-weight: 500; font-size: 0.9375rem; }

/* ---------- Facts list ---------- */
.facts { display: grid; gap: 0; margin: 0; }
.facts div { display: grid; grid-template-columns: 9rem 1fr; gap: 1rem; padding: 1rem 0; border-top: 1px solid var(--border); }
.facts div:last-child { border-bottom: 1px solid var(--border); }
.facts dt { font: 400 0.8125rem/1.7 var(--font-mono); color: var(--muted); }
.facts dd { margin: 0; font-weight: 500; overflow-wrap: anywhere; }

/* ---------- Testimonials ---------- */
.quote { margin: 0; }
.quote blockquote { margin: 0.75rem 0 1.5rem; font: 400 1.375rem/1.35 var(--font-head); color: var(--heading); }
.quote figcaption { margin-top: auto; padding-top: 1rem; border-top: 1px solid var(--border); font-size: 0.9375rem; color: var(--muted); }

/* ---------- CTA band ---------- */
.cta-band { position: relative; overflow: hidden; padding-block: clamp(4rem, 9vw, 6.5rem); background: var(--navy); }
.cta-band::after {
  content: ""; position: absolute; right: -8rem; top: 50%; translate: 0 -50%;
  width: 34rem; aspect-ratio: 1; border-radius: 50%;
  border: 1px solid rgba(171, 211, 122, 0.35);
  box-shadow: -11rem 0 0 -1px var(--navy), -11rem 0 0 0 rgba(245, 240, 232, 0.18);
  pointer-events: none;
}
.cta-band .wrap { position: relative; z-index: 1; }
.cta-band h2 { max-width: 14em; font-size: clamp(2.25rem, 5vw, 3.75rem); }
.cta-band p { max-width: 34em; margin-bottom: 2rem; color: var(--on-navy-muted); font-size: 1.125rem; }
.cta-band__contact { margin: 2rem 0 0; font-size: 0.9375rem; }
.cta-band__contact a { color: var(--on-navy); font-weight: 600; }

/* ---------- Accordion ---------- */
.accordion { border-top: 1px solid var(--heading); }
.accordion__item { border-bottom: 1px solid var(--border); }
.accordion__item h3 { margin: 0; font: inherit; }
.accordion__trigger {
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
  width: 100%; padding: 1.35rem 0; border: 0; background: transparent; text-align: left; cursor: pointer;
  font: 500 clamp(1.1875rem, 2vw, 1.375rem)/1.3 var(--font-head); color: var(--heading);
}
.accordion__icon { position: relative; flex: none; width: 1rem; height: 1rem; }
.accordion__icon::before, .accordion__icon::after {
  content: ""; position: absolute; left: 0; top: 50%; width: 100%; height: 2px; margin-top: -1px;
  background: currentColor; transition: transform 0.2s;
}
.accordion__icon::after { transform: rotate(90deg); }
.accordion__trigger[aria-expanded="true"] .accordion__icon::after { transform: rotate(0deg); }
html:not(.js) .accordion__icon { display: none; }
.accordion__panel { padding: 0 0 1.5rem; max-width: 46rem; color: var(--muted); }
.accordion__panel p:last-child { margin-bottom: 0; }
.accordion__panel a { color: var(--heading); font-weight: 500; }
[hidden] { display: none !important; }

/* ---------- Empty state ---------- */
.empty {
  padding: clamp(2rem, 6vw, 3.5rem); text-align: center;
  border: 1.5px dashed #a3a3a3; border-radius: var(--radius); background: var(--white);
}
.empty h3 { font-size: 1.625rem; font-weight: 400; }
.empty p { max-width: 34em; margin-inline: auto; color: var(--muted); }
.empty .btn-row { justify-content: center; margin-top: 1.5rem; }

/* ---------- Team ---------- */
.avatar { width: 4rem; height: 4rem; margin-bottom: 0.75rem; border-radius: 50%; background: var(--sage-grey); }

/* ---------- Prose (privacy) ---------- */
.prose { max-width: 44rem; }
.prose h2 { margin-top: 2.5rem; font-size: 1.75rem; }
.prose ul { padding-left: 1.25rem; margin-bottom: 1em; }
.prose li { margin-bottom: 0.4em; }

/* ---------- Contact form ---------- */
.form { display: grid; gap: 1.25rem; }
.form-row { display: grid; gap: 1.25rem; }
@media (min-width: 640px) { .form-row { grid-template-columns: 1fr 1fr; } }
.field { display: grid; gap: 0.4rem; }
.field label, .field legend { font-weight: 600; font-size: 0.9375rem; color: var(--heading); padding: 0; }
.field .optional { font-weight: 400; color: var(--muted); }
.field input[type="text"], .field input[type="email"], .field input[type="tel"], .field textarea {
  width: 100%; padding: 0.8rem 0.9rem;
  border: 1px solid var(--field-border); border-radius: var(--radius); background: var(--white);
  font: inherit; color: var(--ink);
}
.field textarea { min-height: 9.5rem; resize: vertical; }
.field input:focus-visible, .field textarea:focus-visible { outline-offset: 1px; border-radius: var(--radius); }
.field [aria-invalid="true"] { border-color: var(--error); box-shadow: 0 0 0 1px var(--error); }
.field__error { margin: 0; color: var(--error); font-size: 0.875rem; font-weight: 500; }
.field__hint { margin: 0; color: var(--muted); font-size: 0.875rem; }
fieldset.field { margin: 0; padding: 0; border: 0; min-width: 0; }
.choices { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 0.15rem; }
.choice { position: relative; }
.choice input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.choice span {
  display: inline-flex; align-items: center; min-height: 2.75rem; padding: 0.5rem 1.1rem;
  border: 1px solid var(--field-border); border-radius: var(--radius); background: var(--white);
  font-weight: 500; font-size: 0.9375rem;
}
.choice input:checked + span { background: var(--navy); border-color: var(--navy); color: var(--on-navy); }
.choice input:focus-visible + span { outline: 3px solid var(--focus); outline-offset: 3px; }
.consent { display: flex; align-items: flex-start; gap: 0.7rem; font-weight: 400; font-size: 0.9375rem; color: var(--ink); cursor: pointer; }
.consent input { flex: none; width: 1.25rem; height: 1.25rem; margin: 0.15rem 0 0; accent-color: var(--navy); cursor: pointer; }
.consent a { color: var(--heading); font-weight: 500; }
.field .consent { font-weight: 400; color: var(--ink); }
.consent input[aria-invalid="true"] { outline: 2px solid var(--error); outline-offset: 2px; box-shadow: none; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status { padding: 1rem 1.15rem; border-radius: var(--radius); font-weight: 500; }
.form-status:empty { display: none; }
.form-status--ok { background: var(--sage-soft); color: var(--heading); border: 1px solid var(--sage); }
.form-status--error { background: #fdf0f0; color: var(--error); border: 1px solid #e4b4b6; }
.form-status a { color: inherit; }
.form__foot { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem; }
.form__foot p { margin: 0; font-size: 0.9375rem; color: var(--muted); }
.form__foot a { color: var(--heading); font-weight: 500; }
.btn[disabled] { opacity: 0.6; cursor: progress; }

.contact-card { padding: 1.75rem; border-radius: var(--radius); background: var(--navy); }
.contact-card h2 { font-size: 1.75rem; }
.contact-card .big { display: block; width: fit-content; margin-bottom: 0.35rem; font: 400 clamp(1.375rem, 3vw, 1.75rem)/1.25 var(--font-head); color: var(--on-navy); overflow-wrap: anywhere; }
.contact-card dl { margin: 1.75rem 0 0; display: grid; gap: 0; }
.contact-card dl div { padding: 0.9rem 0; border-top: 1px solid rgba(245, 240, 232, 0.16); }
.contact-card dt { font: 400 0.8125rem/1.6 var(--font-mono); color: var(--on-navy-muted); }
.contact-card dd { margin: 0; overflow-wrap: anywhere; }

/* ---------- Footer ---------- */
.site-footer { padding: clamp(3.5rem, 7vw, 5rem) 0 2rem; background: var(--navy-alt); font-size: 0.9375rem; }
.footer__grid { display: grid; gap: 2.5rem; }
.footer__brand p { max-width: 24em; margin: 1rem 0 0; color: var(--on-navy-muted); }
.footer__phone { display: block; width: fit-content; margin-top: 1.25rem; font: 400 1.5rem/1.2 var(--font-head); text-decoration: none; }
.footer__phone:hover { text-decoration: underline; }
.site-footer h2 { margin-bottom: 1rem; font: 400 0.8125rem/1.3 var(--font-mono); letter-spacing: 0; color: var(--on-navy-muted); }
.site-footer ul { list-style: none; display: grid; gap: 0.55rem; }
.site-footer li a { text-decoration: none; overflow-wrap: anywhere; }
.site-footer li a:hover { text-decoration: underline; }
.site-footer li small { display: block; color: var(--on-navy-muted); font-size: 0.8125rem; }
.footer__bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.75rem 2rem;
  margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid rgba(245, 240, 232, 0.16);
  color: var(--on-navy-muted); font-size: 0.875rem;
}
.footer__bottom p { margin: 0; }
.footer__bottom a { color: var(--on-navy); }
@media (min-width: 700px) { .footer__grid { grid-template-columns: 1.4fr 1fr 1.2fr; } }
@media (min-width: 1000px) { .footer__grid { grid-template-columns: 1.6fr 0.8fr 1.2fr 1fr; gap: 3rem; } }

/* ---------- Motion & print ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; animation-delay: 0s !important; }
}
@media print {
  .site-header { position: static; background: none; color: #000; }
  .nav-toggle, .site-nav, .skip-link, .cta-band::after { display: none !important; }
  .hero, .page-hero { padding-top: 2rem; }
}

/* ---------- Small refinements ---------- */
@media (min-width: 700px) {
  .card--accent { grid-column: 1 / -1; flex-direction: row; flex-wrap: wrap; align-items: center; gap: 0.5rem 2rem; }
  .card--accent h3 { flex: 0 0 100%; }
  .card--accent p { flex: 1 1 20rem; }
  .card--accent .btn { margin-top: 0; }
}
.footer__brand p a { color: var(--on-navy); }
@media (max-width: 1099.98px) {
  .js .site-nav .site-nav__contact a { display: block; padding: 0.25rem 0; font: 500 0.9375rem/1.4 var(--font-body); text-decoration: underline; }
}

.bento--quad { display:grid; gap:inherit; grid-template-columns:1fr; }
@media (min-width:700px){ .bento--quad { grid-template-columns:1fr 1fr; } }
@media (min-width:1000px){ .bento--quad { grid-template-columns:repeat(4,1fr); align-items:stretch; } }
.bento--quad .tile--navy,
.bento--quad .tile--contact { grid-column: auto !important; grid-row: auto !important; min-height: 12rem; }
@media (min-width:600px){ .bento--quad { grid-template-columns: repeat(2,1fr); } }
@media (min-width:960px){ .bento--quad { grid-template-columns: repeat(4,1fr); } }
.bento--quad { gap: 1rem; }

/* ==========================================================================
   Interactivity (v5) — progressive enhancement only.
   Nothing below hides content unless main.js has run (html.reveal-on),
   and prefers-reduced-motion turns every effect off.
   ========================================================================== */

/* Scroll reveal */
.reveal-on .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease var(--reveal-delay, 0s), transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1) var(--reveal-delay, 0s), box-shadow 0.22s ease, border-color 0.22s ease;
}
.reveal-on .reveal.is-visible { opacity: 1; transform: none; }

/* Card lift on hover / keyboard focus inside the card */
.card {
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}
.card:not(.card--accent):hover,
.card:not(.card--accent):focus-within {
  transform: translateY(-4px);
  border-color: var(--sage);
  box-shadow: 0 14px 30px -18px rgba(5, 10, 52, 0.35), inset 0 3px 0 var(--sage);
}
.card--accent:hover,
.card--accent:focus-within {
  transform: translateY(-4px);
  box-shadow: 0 16px 34px -18px rgba(5, 10, 52, 0.6);
}
.reveal-on .card.reveal.is-visible:hover,
.reveal-on .card.reveal.is-visible:focus-within { transform: translateY(-4px); }

/* FAQ smooth expand/collapse (JS wraps answers in .accordion__inner) */
.js .accordion__panel.is-animated { padding: 0; overflow: hidden; transition: height 0.3s ease; }
.js .accordion__inner { padding: 0 0 1.5rem; }
.accordion__trigger:hover span:first-child { text-decoration: underline; text-underline-offset: 0.2em; }

/* Tab panel fade when switching "I'm hiring" / "I'm looking for work" */
.js [role="tabpanel"].is-entering { animation: panel-in 0.35s ease both; }
@keyframes panel-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* Stat count-up keeps width steady while digits change */
.count { font-variant-numeric: tabular-nums; }

/* Sticky "Email us" button (mobile only, needs JS so it can hide itself) */
.fab-email { display: none; }
@media (max-width: 699.98px) {
  .js .fab-email {
    position: fixed; right: 1rem; bottom: calc(1rem + env(safe-area-inset-bottom, 0px)); z-index: 30;
    display: inline-flex; align-items: center; gap: 0.5rem;
    min-height: 3rem; padding: 0.75rem 1.15rem;
    border-radius: 999px; background: var(--navy); color: var(--on-navy);
    font-weight: 600; font-size: 0.9375rem; text-decoration: none;
    box-shadow: 0 10px 24px -10px rgba(5, 10, 52, 0.55);
    transition: opacity 0.25s ease, transform 0.25s ease, visibility 0s;
  }
  .js .fab-email svg { width: 1.25rem; height: 1.25rem; }
  .js .fab-email:focus-visible { outline: 3px solid var(--sage); outline-offset: 3px; }
  .js .fab-email.is-hidden,
  .js.nav-open .fab-email {
    opacity: 0; visibility: hidden; transform: translateY(1rem);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0s 0.2s;
  }
}

@media (prefers-reduced-motion: reduce) {
  .reveal-on .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
  .card:hover, .card:focus-within,
  .reveal-on .card.reveal.is-visible:hover,
  .reveal-on .card.reveal.is-visible:focus-within { transform: none !important; }
  .js [role="tabpanel"].is-entering { animation: none; }
  .js .accordion__panel.is-animated { transition: none; }
}
@media print {
  .fab-email { display: none !important; }
  .reveal-on .reveal { opacity: 1 !important; transform: none !important; }
}

/* Mailto fallback toast */
.mail-toast { position: fixed; left: 50%; bottom: 1.25rem; transform: translate(-50%, 150%); z-index: 1000; width: min(92vw, 30rem); display: flex; gap: 0.75rem; align-items: flex-start; padding: 0.9rem 1rem; background: #050a34; color: #fff; border-radius: 12px; box-shadow: 0 10px 30px rgba(0,0,0,.25); font-size: 0.9375rem; line-height: 1.45; opacity: 0; transition: transform .3s ease, opacity .3s ease; }
.mail-toast.is-shown { transform: translate(-50%, 0); opacity: 1; }
.mail-toast p { margin: 0; color: #fff; }
.mail-toast a { color: #aed581; text-decoration: underline; }
.mail-toast__addr { font-weight: 600; }
.mail-toast__close { background: none; border: 0; color: #fff; font-size: 1.4rem; line-height: 1; cursor: pointer; padding: 0 0.25rem; }
@media (prefers-reduced-motion: reduce) { .mail-toast { transition: none; } }

/* CV upload field */
.field input[type="file"] { font: inherit; font-size: 0.9375rem; color: var(--ink); padding: 0.75rem; border: 1px dashed rgba(10,10,10,.35); border-radius: 12px; background: #fff; width: 100%; cursor: pointer; }
.field input[type="file"]::file-selector-button { font: inherit; font-weight: 600; margin-right: 0.85rem; padding: 0.5rem 0.9rem; border: 1px solid var(--ink); border-radius: 999px; background: transparent; cursor: pointer; }
.field input[type="file"][aria-invalid="true"] { border-color: #b3261e; }
