/* ==========================================================================
   BrightSpark Hire Consultancy Solutions: Design System
   Editorial direction: ink navy + ivory + brass; Fraunces display serif.
   ========================================================================== */

/* ---------- Tokens ---------- */
:root {
  /* Color */
  --ink: #0f1b2d;
  --ink-soft: #1c2c45;
  --ink-mute: #46586f;
  --ivory: #faf7f2;
  --paper: #fffdf9;
  --brass: #b98a2f;
  --brass-deep: #96702a;
  --line: rgba(15, 27, 45, 0.14);
  --line-strong: rgba(15, 27, 45, 0.32);
  --on-dark: #f4efe6;
  --on-dark-mute: rgba(244, 239, 230, 0.68);
  --steel: #33557e;

  /* Type */
  --font-display: "Fraunces", "Georgia", serif;
  --font-body: "Inter", -apple-system, "Segoe UI", sans-serif;

  /* Space & shape */
  --space-1: 0.5rem;
  --space-2: 1rem;
  --space-3: 1.75rem;
  --space-4: 2.75rem;
  --space-5: 4.5rem;
  --space-6: 7rem;
  --radius-s: 4px;
  --radius-m: 10px;

  /* Motion */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- Reset ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--ivory);
  font-feature-settings: "ss01";
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

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

h1 {
  font-size: clamp(2.35rem, 5.4vw, 4.05rem);
}
h2 {
  font-size: clamp(1.7rem, 3.4vw, 2.55rem);
}
h3 {
  font-size: clamp(1.18rem, 2vw, 1.45rem);
}

p {
  max-width: 62ch;
}

.lede {
  font-size: clamp(1.06rem, 1.6vw, 1.22rem);
  line-height: 1.7;
  color: var(--ink-mute);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.17em;
  text-transform: uppercase;
  color: var(--brass-deep);
  margin-bottom: var(--space-2);
}

.eyebrow::before {
  content: "";
  width: 1.8rem;
  height: 1px;
  background: var(--brass);
}

.muted {
  color: var(--ink-mute);
}

/* ---------- Layout primitives ---------- */
.wrap {
  width: min(1180px, 100% - 3rem);
  margin-inline: auto;
}

@media (max-width: 640px) {
  .wrap {
    width: calc(100% - 2.5rem);
  }
}

.section {
  padding-block: clamp(var(--space-4), 9vw, var(--space-6));
}

.section--dark {
  background: var(--ink);
  color: var(--on-dark);
}

.section--dark .lede,
.section--dark .muted {
  color: var(--on-dark-mute);
}

.section--paper {
  background: var(--paper);
  border-block: 1px solid var(--line);
}

.rule {
  border: 0;
  border-top: 1px solid var(--line);
}

/* Section header row: title left, supporting note right (editorial) */
.sect-head {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: var(--space-3) var(--space-5);
  align-items: end;
  margin-bottom: clamp(var(--space-4), 6vw, var(--space-5));
}

.sect-head p {
  justify-self: end;
  max-width: 44ch;
  font-size: 0.98rem;
  color: var(--ink-mute);
  border-left: 2px solid var(--brass);
  padding-left: 1.1rem;
}

.section--dark .sect-head p {
  color: var(--on-dark-mute);
}

@media (max-width: 800px) {
  .sect-head {
    grid-template-columns: 1fr;
    align-items: start;
  }
  .sect-head p {
    justify-self: start;
  }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.85rem 1.5rem;
  border-radius: var(--radius-s);
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  transition:
    background-color 0.2s var(--ease-out),
    color 0.2s var(--ease-out),
    border-color 0.2s var(--ease-out),
    transform 0.2s var(--ease-out);
}

.btn svg {
  flex: none;
  transition: transform 0.25s var(--ease-out);
}

.btn:hover svg {
  transform: translateX(3px);
}

.btn--primary {
  background: var(--ink);
  color: var(--ivory);
}

.btn--primary:hover {
  background: var(--ink-soft);
}

.btn--brass {
  background: var(--brass);
  color: #fff;
}

.btn--brass:hover {
  background: var(--brass-deep);
}

.btn--ghost {
  border-color: var(--line-strong);
  color: inherit;
  background: transparent;
}

.btn--ghost:hover {
  border-color: var(--ink);
  background: rgba(15, 27, 45, 0.04);
}

.section--dark .btn--ghost,
.hero .btn--ghost {
  border-color: rgba(244, 239, 230, 0.4);
}

.section--dark .btn--ghost:hover,
.hero .btn--ghost:hover {
  border-color: var(--on-dark);
  background: rgba(244, 239, 230, 0.07);
}

/* ---------- Header / Navigation ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(250, 247, 242, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.site-header__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2);
  min-height: 74px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  color: var(--ink);
}

.brand__mark {
  width: 42px;
  height: 42px;
  flex: none;
  display: grid;
  place-items: center;
  background: var(--ink);
  color: var(--ivory);
  border-radius: var(--radius-s);
  font-family: var(--font-display);
  font-size: 1.12rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.brand__name {
  display: flex;
  flex-direction: column;
  line-height: 1.16;
}

.brand__name b {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.08rem;
  letter-spacing: 0.005em;
}

.brand__name span {
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-mute);
}

.primary-nav ul {
  list-style: none;
  display: flex;
  gap: clamp(1.1rem, 2.4vw, 2rem);
}

.primary-nav a:not(.btn) {
  position: relative;
  display: inline-block;
  padding: 0.45rem 0;
  font-size: 0.94rem;
  font-weight: 500;
  color: var(--ink);
  text-decoration: none;
}

.primary-nav a:not(.btn)::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  background: var(--brass);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s var(--ease-out);
}

.primary-nav a:not(.btn):hover::after,
.primary-nav a[aria-current="page"]:not(.btn)::after {
  transform: scaleX(1);
}

.primary-nav a[aria-current="page"] {
  color: var(--brass-deep);
}

.primary-nav a.btn[aria-current="page"] {
  color: #fff;
}

.nav-toggle {
  display: none;
  place-items: center;
  width: 46px;
  height: 46px;
  background: none;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-s);
  cursor: pointer;
  color: var(--ink);
}

.nav-close {
  display: none;
}

@media (max-width: 920px) {
  .nav-toggle {
    display: grid;
  }

  .primary-nav {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    height: 100vh;
    height: 100dvh;
    background: var(--ink);
    color: var(--on-dark);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    text-align: center;
    padding: calc(4.5rem + env(safe-area-inset-top, 0px)) 1.5rem
      calc(2rem + env(safe-area-inset-bottom, 0px));
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.28s var(--ease-out), visibility 0.28s;
    z-index: 80;
  }

  .primary-nav.open {
    opacity: 1;
    visibility: visible;
  }

  /* Menu must always fit the viewport: gaps and type scale with its height */
  .primary-nav ul {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: clamp(0.35rem, 2.2vh, 1rem);
    margin: 0;
    padding: 0;
  }

  .primary-nav li {
    display: contents;
  }

  .primary-nav a:not(.btn),
  .primary-nav a.btn {
    font-family: var(--font-display);
    font-size: clamp(1.2rem, 4.6vh, 1.65rem);
    line-height: 1.2;
    color: var(--on-dark);
    text-decoration: none;
    padding: 0.35em 0.75rem;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .primary-nav a:not(.btn)::after {
    display: none;
  }

  .primary-nav a[aria-current="page"] {
    color: var(--brass);
  }

  .primary-nav .btn {
    background: var(--brass);
    border: 0;
    margin-top: var(--space-2);
  }

  .nav-close {
    display: grid;
    place-items: center;
    position: fixed;
    top: calc(1.1rem + env(safe-area-inset-top, 0px));
    right: 1.25rem;
    width: 46px;
    height: 46px;
    background: none;
    border: 1px solid rgba(244, 239, 230, 0.4);
    border-radius: var(--radius-s);
    color: var(--on-dark);
    font-size: 1.15rem;
    cursor: pointer;
    z-index: 90;
  }
}

/* ---------- Hero ----------
   Full-bleed editorial hero: one centered column (eyebrow, headline,
   lede, CTAs) over a full-height photograph, anchored by a slim
   fact strip along the bottom edge. Fills exactly the viewport height
   left under the sticky ~75px header, on every screen size — desktop
   and mobile alike — so the composition never overflows or falls short. */
.hero {
  position: relative;
  background: var(--ink);
  color: var(--on-dark);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: calc(100vh - 75px);
  min-height: calc(100dvh - 75px);
}

.hero__media {
  position: absolute;
  inset: 0;
}

.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 38%;
  opacity: 0.4;
}

.hero__scrim {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(
      60% 55% at 50% 42%,
      rgba(15, 27, 45, 0.55) 0%,
      rgba(15, 27, 45, 0.22) 65%,
      rgba(15, 27, 45, 0) 100%
    ),
    linear-gradient(
      180deg,
      rgba(15, 27, 45, 0.62) 0%,
      rgba(15, 27, 45, 0.55) 45%,
      rgba(15, 27, 45, 0.72) 75%,
      rgba(15, 27, 45, 0.95) 100%
    );
}

.hero__content {
  position: relative;
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-block: clamp(2rem, 6vh, 4rem);
}

.hero h1 {
  color: #fff;
  max-width: 16ch;
  line-height: 1.08;
}

.hero .lede {
  color: var(--on-dark-mute);
  max-width: 46ch;
  margin-top: var(--space-2);
}

.hero__cta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-1);
  margin-top: var(--space-3);
}

.hero__stats {
  position: relative;
  border-top: 1px solid rgba(244, 239, 230, 0.2);
}

.hero__stats-inner {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  padding-block: clamp(1.1rem, 2.6vw, 1.6rem);
  gap: clamp(var(--space-1), 2vw, var(--space-3));
}

.hero-fact {
  border-left: 1px solid rgba(244, 239, 230, 0.2);
  padding-left: clamp(var(--space-1), 2vw, var(--space-2));
}

.hero-fact:first-child {
  border-left: 0;
  padding-left: 0;
}

.hero-fact b {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.05rem, 1.6vw, 1.4rem);
  font-weight: 600;
  color: #fff;
}

.hero-fact span {
  display: block;
  font-size: 0.82rem;
  color: var(--on-dark);
  opacity: 0.82;
  margin-top: 0.15rem;
}

/* Large desktop / wide monitors: let the column and type breathe a
   little more instead of stretching the same width forever. */
@media (min-width: 1440px) {
  .hero .wrap {
    width: min(1320px, 100% - 4rem);
  }
  .hero__content {
    max-width: 920px;
    margin-inline: auto;
  }
}

/* Phones: stack the CTAs full-width so two buttons never wrap into a
   ragged pair, and drop the fact descriptions — the bold labels are
   enough at this width. */
@media (max-width: 640px) {
  .hero__cta {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    max-width: 320px;
  }
  .hero__cta .btn {
    justify-content: center;
  }
  .hero__stats-inner {
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-1);
  }
  .hero-fact span {
    display: none;
  }
}

/* Short desktop/laptop windows (a wide viewport whose height is tight
   because of browser chrome, not a phone — e.g. a 1366×768 laptop):
   tighten spacing so nothing crowds the fold, but keep the lede and
   fact descriptions — the content should stay complete on desktop. */
@media (max-height: 820px) {
  .hero__content {
    padding-block: clamp(1.25rem, 4vh, 2rem);
  }
  .hero h1 {
    font-size: clamp(1.9rem, 4vw, 2.9rem);
  }
  .hero .eyebrow {
    margin-bottom: 0.4rem;
  }
  .hero .lede {
    font-size: clamp(0.96rem, 1.2vw, 1.05rem);
    margin-top: 0.5rem;
  }
  .hero__cta {
    margin-top: var(--space-2);
  }
  .hero__stats-inner {
    padding-block: 0.85rem;
  }
}

/* Short AND narrow viewports — landscape phones — where there truly
   isn't room for secondary copy: drop it so the CTA and fact strip
   always stay inside the fold. */
@media (max-width: 900px) and (max-height: 620px) {
  .hero .lede {
    display: none;
  }
  .hero-fact span {
    display: none;
  }
}

/* ---------- Split sections (image + prose) ---------- */
.split {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: var(--space-4) clamp(var(--space-3), 5vw, var(--space-5));
  align-items: center;
}

/* Direct child divs without explicit grid placement still need width */
.split > div:not(.split__body):not(.split__media) {
  grid-column: span 6;
}

.split__media {
  grid-column: 1 / span 6;
}

.split__media img {
  width: 100%;
  height: 100%;
  max-height: 620px;
  object-fit: cover;
}

.split__body {
  grid-column: 8 / span 5;
}

.split--flip .split__media {
  grid-column: 7 / span 6;
  order: 2;
}

.split--flip .split__body {
  grid-column: 1 / span 5;
  order: 1;
}

.prose > * + * {
  margin-top: var(--space-2);
}

.checklist {
  list-style: none;
  display: grid;
  gap: 0.55rem;
  margin-top: var(--space-2);
}

.checklist li {
  position: relative;
  padding-left: 1.7rem;
}

.checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.52em;
  width: 0.95rem;
  height: 0.95rem;
  border-radius: 50%;
  background: var(--brass);
  -webkit-mask: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="white" stroke-width="3.4" stroke-linecap="round" stroke-linejoin="round"><path d="M4 12.5l5 5L20 6.5"/></svg>')
    center / contain no-repeat;
  mask: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="white" stroke-width="3.4" stroke-linecap="round" stroke-linejoin="round"><path d="M4 12.5l5 5L20 6.5"/></svg>')
    center / contain no-repeat;
}

@media (max-width: 900px) {
  .split {
    grid-template-columns: 1fr;
  }
  .split__media,
  .split__body,
  .split--flip .split__media,
  .split--flip .split__body {
    grid-column: 1 / -1;
    order: initial;
  }
  .split__media {
    order: -1;
  }
  .split__media img {
    max-height: 420px;
  }
}

/* Offset image frame (editorial touch) */
.frame-offset {
  position: relative;
}

.frame-offset::after {
  content: "";
  position: absolute;
  inset: 1.1rem -1.1rem -1.1rem 1.1rem;
  border: 1px solid var(--brass);
  z-index: -1;
  opacity: 0.55;
}

.section--dark .frame-offset::after {
  opacity: 0.4;
}

/* ---------- Numbered editorial rows (What we do / Journey) ---------- */
.indexed {
  list-style: none;
  counter-reset: idx;
  display: grid;
}

.indexed > li {
  counter-increment: idx;
  display: grid;
  grid-template-columns: 4.5rem minmax(0, 1fr) minmax(0, 1.15fr);
  gap: var(--space-2) var(--space-4);
  padding-block: clamp(1.4rem, 3vw, 2.2rem);
  border-top: 1px solid var(--line);
  align-items: baseline;
}

.indexed > li:last-child {
  border-bottom: 1px solid var(--line);
}

.indexed > li::before {
  content: counter(idx, decimal-leading-zero);
  font-family: var(--font-display);
  font-size: 1.05rem;
  color: var(--brass-deep);
  letter-spacing: 0.06em;
}

.indexed h3 {
  margin: 0;
}

.indexed .indexed__desc {
  color: var(--ink-mute);
  font-size: 0.97rem;
}

.section--dark .indexed > li {
  border-color: rgba(244, 239, 230, 0.18);
}

.section--dark .indexed > li::before {
  color: var(--brass);
}

.section--dark .indexed .indexed__desc {
  color: var(--on-dark-mute);
}

@media (max-width: 800px) {
  .indexed > li {
    grid-template-columns: 3.2rem 1fr;
  }
  .indexed .indexed__desc {
    grid-column: 2;
  }
}

/* ---------- Journey timeline ---------- */
.journey {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: var(--space-3);
  counter-reset: step;
}

.journey li {
  counter-increment: step;
  border-top: 2px solid rgba(244, 239, 230, 0.22);
  padding-top: var(--space-2);
  position: relative;
}

.journey li::before {
  content: counter(step);
  position: absolute;
  top: -0.82rem;
  left: 0;
  width: 1.62rem;
  height: 1.62rem;
  display: grid;
  place-items: center;
  background: var(--brass);
  color: #fff;
  border-radius: 50%;
  font-size: 0.82rem;
  font-weight: 600;
}

.journey b {
  display: block;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.06rem;
  color: #fff;
  margin-bottom: 0.3rem;
}

.journey span {
  font-size: 0.87rem;
  color: var(--on-dark-mute);
  display: block;
}

@media (min-width: 901px) {
  .journey li:nth-child(n + 2)::after {
    content: "";
    position: absolute;
    top: -1px;
    left: calc(-1 * var(--space-3) + 0.81rem);
    width: calc(var(--space-3) - 1.62rem);
    height: 2px;
    background: rgba(244, 239, 230, 0.22);
  }
}

@media (max-width: 900px) {
  .journey {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-3) var(--space-3);
  }
}

@media (max-width: 520px) {
  .journey {
    grid-template-columns: 1fr;
  }
  .journey li:nth-child(n + 2)::after {
    display: none;
  }
}

/* ---------- Cards (used sparingly) ---------- */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
  gap: var(--space-3);
}

.card {
  background: var(--paper);
  border: 1px solid var(--line);
  padding: var(--space-3);
  display: flex;
  flex-direction: column;
  transition: border-color 0.25s var(--ease-out), transform 0.25s var(--ease-out);
}

.card:hover {
  border-color: var(--brass);
  transform: translateY(-3px);
}

.card h3 {
  margin-bottom: 0.55rem;
}

.card p {
  font-size: 0.95rem;
  color: var(--ink-mute);
  flex-grow: 1;
}

.card__meta {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-top: var(--space-2);
}

.chip {
  display: inline-block;
  padding: 0.28rem 0.72rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  color: var(--ink-mute);
  background: var(--ivory);
}

/* ---------- Jobs listing ---------- */
.jobs-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-3);
}

.jobs-count {
  font-size: 0.9rem;
  color: var(--ink-mute);
  white-space: nowrap;
}

.filters {
  display: flex;
  gap: var(--space-1);
  flex-wrap: wrap;
}

select,
input[type="text"],
input[type="email"],
input[type="tel"],
textarea {
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--ink);
  padding: 0.72rem 0.9rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-s);
  background: var(--paper);
}

select:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--brass);
  outline-offset: 1px;
}

.job-row {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr) auto;
  gap: var(--space-2) var(--space-4);
  align-items: center;
  padding-block: var(--space-3);
  border-top: 1px solid var(--line);
  transition: background-color 0.2s var(--ease-out);
}

.job-row:last-of-type {
  border-bottom: 1px solid var(--line);
}

.job-row:hover {
  background: rgba(185, 138, 47, 0.05);
}

.job-row.is-hidden {
  display: none;
}

.job-row h3 {
  margin: 0 0 0.25rem;
  font-size: 1.22rem;
}

.job-row .job-desc {
  font-size: 0.92rem;
  color: var(--ink-mute);
  max-width: 48ch;
}

.job-row .job-meta {
  font-size: 0.88rem;
  color: var(--ink-mute);
  display: grid;
  gap: 0.35rem;
  justify-items: start;
}

.job-row .job-meta .chip {
  justify-self: start;
}

.job-row .btn {
  justify-self: end;
  padding: 0.7rem 1.2rem;
  font-size: 0.88rem;
}

@media (max-width: 820px) {
  .job-row {
    grid-template-columns: 1fr;
    gap: var(--space-2);
  }
  .job-row .btn {
    justify-self: start;
  }
}

.no-results {
  display: none;
  padding: var(--space-4) 0;
  color: var(--ink-mute);
}

.no-results.show {
  display: block;
}

/* ---------- Training programs ---------- */
.program {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr);
  gap: var(--space-3) var(--space-5);
  padding-block: var(--space-4);
  border-top: 1px solid var(--line);
}

.program:last-of-type {
  border-bottom: 1px solid var(--line);
}

.program__name {
  display: grid;
  gap: 0.4rem;
  align-content: start;
}

.program__tag {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brass-deep);
}

.program__body p {
  color: var(--ink-mute);
}

.program__includes {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 0.55rem 1.5rem;
  margin-top: var(--space-2);
}

@media (max-width: 800px) {
  .program {
    grid-template-columns: 1fr;
  }
}

/* ---------- FAQ ---------- */
.faq-list {
  max-width: 100%;
}

.faq-item h3 {
  margin: 0;
}

.faq-item {
  border-bottom: 1px solid var(--line);
}

.faq-item:first-of-type {
  border-top: 1px solid var(--line);
}

.faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2);
  padding: 1.15rem 0.25rem;
  background: none;
  border: 0;
  cursor: pointer;
  text-align: left;
  font-family: var(--font-display);
  font-size: 1.13rem;
  font-weight: 500;
  color: var(--ink);
}

.faq-q .faq-icon {
  flex: none;
  width: 1.9rem;
  height: 1.9rem;
  display: grid;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  transition: transform 0.3s var(--ease-out), background-color 0.3s,
    border-color 0.3s;
}

.faq-q[aria-expanded="true"] .faq-icon {
  transform: rotate(45deg);
  background: var(--brass);
  border-color: var(--brass);
  color: #fff;
}

.faq-a {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.32s var(--ease-out);
}

.faq-a > div {
  overflow: hidden;
}

.faq-a p {
  padding: 0 0.25rem 1.25rem;
  color: var(--ink-mute);
}

.faq-item[data-open] .faq-a {
  grid-template-rows: 1fr;
}

/* ---------- Forms ---------- */
.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-2);
}

.form-grid .field--full {
  grid-column: 1 / -1;
}

.field label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  margin-bottom: 0.4rem;
}

.field label small {
  font-weight: 400;
  color: var(--ink-mute);
}

.field textarea {
  resize: vertical;
  min-height: 130px;
  width: 100%;
}

.field input,
.field select {
  width: 100%;
}

.file-field {
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius-s);
  padding: var(--space-2);
  background: var(--ivory);
}

.file-field small {
  display: block;
  margin-top: 0.45rem;
  color: var(--ink-mute);
}

.form-note {
  margin-top: var(--space-1);
  font-size: 0.95rem;
  font-weight: 500;
  min-height: 1.4em;
}

.form-note.ok {
  color: #2e7d43;
}

.form-note.err {
  color: #b3402e;
}

.btn.loading {
  pointer-events: none;
  opacity: 0.65;
}

@media (max-width: 640px) {
  .form-grid {
    grid-template-columns: 1fr;
  }
}

/* ---------- Contact page ---------- */
.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
  gap: var(--space-4) var(--space-5);
  align-items: start;
}

.contact-cards {
  display: grid;
  gap: var(--space-2);
}

.contact-card {
  border: 1px solid var(--line);
  border-left: 3px solid var(--brass);
  background: var(--paper);
  padding: var(--space-2) var(--space-3);
}

.contact-card b {
  display: block;
  font-family: var(--font-display);
  font-size: 1.05rem;
  margin-bottom: 0.2rem;
}

.contact-card p {
  font-size: 0.93rem;
  color: var(--ink-mute);
}

.contact-card a {
  color: var(--steel);
  text-decoration: none;
}

.contact-card a:hover {
  text-decoration: underline;
}

@media (max-width: 900px) {
  .contact-layout {
    grid-template-columns: 1fr;
  }
}

/* ---------- Page hero (inner pages) ----------
   Same idea as the homepage hero: fills exactly the viewport height
   left under the sticky ~75px header, on every screen size, so it
   never falls short of or overflows the fold. */
.page-hero {
  background: var(--ink);
  color: var(--on-dark);
  padding-block: clamp(3.2rem, 8vw, 5.5rem);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  min-height: calc(100vh - 75px);
  min-height: calc(100dvh - 75px);
}

/* Short viewports (compact laptops, phones): the banner has less to
   say than the homepage hero, but still tighten it so the title and
   lede never crowd the header or the next section. */
@media (max-height: 760px) {
  .page-hero {
    padding-block: clamp(2rem, 6vh, 3.5rem);
  }
}

.page-hero__media {
  position: absolute;
  inset: 0;
}

.page-hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.26;
}

.page-hero__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    rgba(15, 27, 45, 0.9),
    rgba(15, 27, 45, 0.45)
  );
}

.page-hero__inner {
  position: relative;
}

.page-hero h1 {
  color: #fff;
  max-width: 18ch;
}

.page-hero .lede {
  color: var(--on-dark-mute);
  max-width: 58ch;
  margin-top: var(--space-2);
}

.breadcrumb {
  font-size: 0.82rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--on-dark-mute);
  margin-bottom: var(--space-2);
}

.breadcrumb a {
  color: var(--brass);
  text-decoration: none;
}

.breadcrumb a:hover {
  text-decoration: underline;
}

/* ---------- Legal / longform ---------- */
.longform {
  max-width: 760px;
}

.longform h2 {
  font-size: 1.55rem;
  margin-top: var(--space-4);
  margin-bottom: var(--space-1);
}

.longform h3 {
  margin-top: var(--space-3);
  margin-bottom: 0.5rem;
}

.longform p,
.longform li {
  color: var(--ink-mute);
}

.longform > p:first-of-type {
  color: var(--ink);
  font-size: 1.05rem;
}

.longform ul,
.longform ol {
  padding-left: 1.3rem;
  display: grid;
  gap: 0.45rem;
}

.updated {
  display: inline-block;
  margin-top: var(--space-3);
  padding-top: var(--space-2);
  border-top: 1px solid var(--line);
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-mute);
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--ink);
  color: var(--on-dark-mute);
  padding-block: var(--space-5) var(--space-3);
  margin-top: 0;
}

.site-footer a {
  color: var(--on-dark);
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--brass);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2.2fr 1fr 1fr 1.3fr;
  gap: var(--space-3) var(--space-4);
  padding-bottom: var(--space-4);
  border-bottom: 1px solid rgba(244, 239, 230, 0.16);
}

.footer-brand p {
  margin-top: var(--space-2);
  font-size: 0.92rem;
  max-width: 34ch;
}

.site-footer .brand {
  color: var(--on-dark);
}

.site-footer .brand__mark {
  background: var(--brass);
  color: #fff;
}

.site-footer .brand__name span {
  color: var(--on-dark-mute);
}

.footer-col b {
  display: block;
  color: var(--on-dark);
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: var(--space-2);
}

.footer-col ul {
  list-style: none;
  display: grid;
  gap: 0.55rem;
  font-size: 0.93rem;
}

.footer-col address {
  font-style: normal;
  font-size: 0.93rem;
  line-height: 1.7;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-1) var(--space-3);
  align-items: center;
  justify-content: space-between;
  padding-top: var(--space-3);
  font-size: 0.84rem;
}

.footer-legal {
  display: flex;
  gap: var(--space-3);
}

.footer-guarantee {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--on-dark);
}

.footer-guarantee::before {
  content: "";
  width: 0.5rem;
  height: 0.5rem;
  background: var(--brass);
  border-radius: 50%;
}

@media (max-width: 900px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 560px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

/* ---------- Reveal on scroll ---------- */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity 0.65s var(--ease-out),
    transform 0.65s var(--ease-out);
  transition-delay: var(--reveal-delay, 0s);
}

.reveal.in-view {
  opacity: 1;
  transform: none;
}

/* Controls inside revealing blocks must never shift under the cursor */
.reveal:has(.faq-q) ,
.reveal:has(.filters),
.reveal:has(form) {
  transform: none !important;
}

/* ---------- Accessibility ---------- */
.skip-link {
  position: absolute;
  left: 1rem;
  top: -3.5rem;
  z-index: 100;
  background: var(--ink);
  color: var(--ivory);
  padding: 0.7rem 1.1rem;
  border-radius: var(--radius-s);
  transition: top 0.2s;
}

.skip-link:focus {
  top: 1rem;
}

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

.section--dark :focus-visible,
.site-footer :focus-visible,
.hero :focus-visible,
.primary-nav.open :focus-visible {
  outline-color: var(--brass);
}

.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;
}

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

/* ---------- Print ---------- */
@media print {
  .site-header,
  .site-footer,
  .hero__media,
  .page-hero__media {
    display: none;
  }
  body {
    background: #fff;
  }
}
