/* =========================================================
   MATCHBOX TALENT — styles.css
   Theme: Midnight (Fraunces + Inter on near-black)
   ========================================================= */

/* ---------------------------------------------------------
   01 · RESET
   --------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
img, svg { display: block; max-width: 100%; }

/* ---------------------------------------------------------
   02 · THEME VARIABLES
   --------------------------------------------------------- */
:root {
  --bg: #16130f;
  --bg-2: #1c1813;
  --surface: #211c17;
  --ink: #f2ead9;
  --muted: #9c9384;
  --line: #2e2820;
  --line-strong: #453c2f;
  --accent: #e0a04a;
  --accent-hover: #f0b866;
  --on-accent: #16130f;
  --icon-box: #a8341f;
  --icon-strip: #e0a04a;

  --font-body: 'Inter', system-ui, -apple-system, sans-serif;
  --font-display: 'Fraunces', Georgia, serif;
  --fw-display: 500;
  --track-display: -0.028em;

  --radius: 8px;
  --radius-lg: 14px;
  --shadow: 0 22px 54px -22px rgba(0, 0, 0, 0.75);
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.4);
}

/* ---------------------------------------------------------
   03 · BASE TYPOGRAPHY
   --------------------------------------------------------- */
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: var(--fw-display);
  letter-spacing: var(--track-display);
  line-height: 1.15;
  color: var(--ink);
}

a { color: var(--accent); text-decoration: none; transition: color 0.15s; }
a:hover { color: var(--accent-hover); }

/* ---------------------------------------------------------
   04 · SKIP LINK + FOCUS
   --------------------------------------------------------- */
.skip-link {
  position: absolute; left: -9999px; top: 1rem;
  background: var(--accent); color: var(--on-accent);
  padding: 0.7rem 1.1rem; border-radius: var(--radius);
  font-weight: 600; font-size: 0.85rem;
  z-index: 10000; text-decoration: none;
}
.skip-link:focus {
  left: 1rem;
  outline: 2px solid var(--ink);
  outline-offset: 2px;
}
:focus { outline: none; }
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: var(--radius);
}

/* ---------------------------------------------------------
   05 · HEADER
   --------------------------------------------------------- */
.hm-header {
  flex: 0 0 auto;
  border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 100;
  background: var(--bg);
  transition: background 0.25s ease, backdrop-filter 0.25s ease;
}
.hm-header.is-scrolled {
  background: rgba(22, 19, 15, 0.82);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
}
.hm-header .inner {
  display: flex; align-items: center; justify-content: flex-start;
  gap: 2rem;
  max-width: 1240px; margin: 0 auto; padding: 0.8rem 2rem;
}
.hm-logo {
  display: inline-flex; align-items: center; gap: 0.6rem;
  color: var(--ink); text-decoration: none;
}
.hm-logo .wm {
  font-family: var(--font-display);
  font-weight: var(--fw-display);
  font-size: 1.3rem;
  letter-spacing: var(--track-display);
  color: var(--ink); line-height: 1;
}
.hm-logo .wm em { font-style: normal; font-weight: 400; color: var(--muted); }

.hm-nav {
  display: flex; gap: 1.55rem; list-style: none;
  align-items: center;
  margin-left: auto; margin-right: 2.75rem;
}
.hm-nav > li { position: relative; }
.hm-nav > li > a {
  display: inline-flex; align-items: center; gap: 0.3rem;
  color: var(--ink); text-decoration: none;
  font-size: 0.88rem; font-weight: 500;
  padding: 0.6rem 0;
  transition: color 0.15s;
}
.hm-nav > li > a:hover { color: var(--accent); }
.hm-nav > li > a .caret {
  font-size: 0.65em; opacity: 0.7;
  transition: transform 0.2s;
}
.hm-nav > li.open > a .caret { transform: rotate(180deg); }

.hm-submenu {
  position: absolute; top: 100%; left: -14px;
  min-width: 220px; list-style: none;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 0.35rem;
  box-shadow: var(--shadow);
  opacity: 0; visibility: hidden;
  transform: translateY(-4px);
  transition: opacity 0.16s ease, transform 0.16s ease, visibility 0.16s;
  z-index: 120;
}
.hm-submenu::before {
  content: ''; position: absolute; top: -10px; left: 0; right: 0; height: 10px;
}
.hm-nav > li:hover .hm-submenu,
.hm-nav > li.open .hm-submenu {
  opacity: 1; visibility: visible; transform: translateY(0);
}
.hm-submenu li { margin: 0; }
.hm-submenu a {
  display: block; padding: 0.55rem 1rem;
  font-size: 0.85rem; color: var(--ink); text-decoration: none;
  border-radius: calc(var(--radius) - 2px);
  transition: background 0.14s; white-space: nowrap;
}
.hm-submenu a:hover {
  background: rgba(224, 160, 74, 0.1);
  color: var(--accent);
}

.nav-toggle {
  display: none; background: transparent;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  color: var(--ink); padding: 0.4rem 0.7rem;
  font-size: 1.1rem; cursor: pointer;
}

.hm-cta {
  display: inline-flex; align-items: center; gap: 0.4rem;
  padding: 0.55rem 1rem;
  background: var(--accent); color: var(--on-accent);
  border-radius: var(--radius);
  font-size: 0.82rem; font-weight: 600;
  text-decoration: none; transition: background 0.15s;
}
.hm-cta:hover {
  background: var(--accent-hover);
  text-decoration: none; color: var(--on-accent);
}

/* ---------------------------------------------------------
   FOOTER
   --------------------------------------------------------- */
.hm-footer {
  flex: 0 0 auto;
  padding: 1.15rem 0 1.25rem;
  font-size: 0.78rem;
  color: var(--muted);
  border-top: 1px solid var(--line);
}
.hm-footer .inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 2rem;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1.25rem 2rem;
  align-items: center;
}

.footer-col-brand {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  min-width: 0;
}
.footer-brand-line {
  color: var(--muted);
  line-height: 1.5;
}
.footer-brand-line strong {
  color: var(--ink);
  font-family: var(--font-display);
  font-weight: var(--fw-display);
  font-size: 0.95rem;
  letter-spacing: var(--track-display);
}
.footer-brand-line strong em {
  font-style: normal;
  font-weight: 400;
  color: var(--muted);
}
.footer-brand-line strong em {
  font-style: normal;
  font-weight: 400;
  color: var(--muted);
}
.footer-contact {
  color: var(--muted);
  line-height: 1.5;
}

.footer-col-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.45rem;
}
.footer-socials {
  display: flex;
  gap: 0.35rem;
  align-items: center;
}
.footer-socials a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: transparent;
  border: 1px solid var(--line);
  color: var(--muted);
  transition: background 0.15s ease, border-color 0.15s ease,
              color 0.15s ease, transform 0.15s ease;
}
.footer-socials a:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--on-accent);
  transform: translateY(-1px);
  text-decoration: none;
}
.footer-socials svg {
  width: 13px;
  height: 13px;
  fill: currentColor;
  display: block;
}
.footer-legal {
  color: var(--muted);
  line-height: 1.5;
}

.hm-footer a {
  color: var(--muted);
  text-decoration: none;
  transition: color 0.15s;
}
.hm-footer a:hover { color: var(--accent); }
.hm-footer .dot {
  opacity: 0.4;
  margin: 0 0.5rem;
}

/* Click-to-copy email buttons in footer */
.email-copy {
  background: none;
  border: none;
  padding: 0;
  margin: 0;
  font: inherit;
  font-size: inherit;
  color: var(--muted);
  cursor: pointer;
  transition: color 0.15s;
  text-align: left;
  font-weight: 400;
}
.email-copy:hover { color: var(--accent); }
.email-copy.copied {
  color: var(--accent);
  font-weight: 500;
}

@media (max-width: 720px) {
  .hm-footer .inner {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  .footer-col-meta {
    align-items: flex-start;
  }
}

/* ---------------------------------------------------------
   07 · HOMEPAGE LAYOUT
   --------------------------------------------------------- */
.homepage {
  min-height: calc(100dvh - 44px);
  display: flex; flex-direction: column;
}
.hm-main {
  flex: 1 1 auto;
  display: flex; flex-direction: column;
  min-height: 0;
}

/* ---------------------------------------------------------
   08 · HERO
   --------------------------------------------------------- */
.hm-hero {
  flex: 1 1 auto; min-height: 0;
  display: flex; align-items: center;
  padding: clamp(1.5rem, 3vh, 3rem) 0;
  position: relative;
  background:
    radial-gradient(ellipse 55% 50% at 22% 30%,
      rgba(224, 160, 74, 0.09), transparent 70%),
    radial-gradient(ellipse 40% 40% at 90% 80%,
      rgba(168, 52, 31, 0.10), transparent 70%);
}
.hm-hero::after {
  content: '';
  position: absolute; inset: 0;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 64px 64px;
  opacity: 0.16;
  mask-image: radial-gradient(ellipse 55% 55% at 50% 40%, #000 0%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 55% 55% at 50% 40%, #000 0%, transparent 80%);
  pointer-events: none; z-index: 0;
}
.hm-hero-inner {
  position: relative; z-index: 1;
  width: 100%;
  max-width: 1240px; margin: 0 auto; padding: 0 2rem;
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(340px, 1fr);
  gap: clamp(2rem, 4vw, 4.5rem);
  align-items: center;
}
.hm-eyebrow {
  display: inline-block;
  font-size: 0.68rem; font-weight: 600;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 1.1rem;
}
.hm-h1 {
  font-family: var(--font-display);
  font-weight: var(--fw-display);
  font-size: clamp(1.9rem, 3.6vw, 3.1rem);
  line-height: 1.06;
  letter-spacing: var(--track-display);
  color: var(--ink); margin-bottom: 1.15rem;
  display: grid; grid-template-areas: "stack";
  min-height: 4.4em;
}
.hm-h1 .msg {
  grid-area: stack;
  opacity: 0; transform: translateY(14px);
  transition: opacity 0.7s ease, transform 0.7s ease;
  pointer-events: none;
}
.hm-h1 .msg.active {
  opacity: 1; transform: translateY(0); pointer-events: auto;
}
.hm-h1 .msg.leaving { opacity: 0; transform: translateY(-12px); }
.hm-h1 em { font-style: italic; font-weight: 400; color: var(--accent); }

.hm-sub {
  font-size: 1.02rem; line-height: 1.6;
  color: var(--muted); max-width: 520px;
  margin-bottom: 1.65rem;
}
.hm-ctas { display: flex; gap: 0.7rem; flex-wrap: wrap; margin-bottom: 1.5rem; }
.hm-btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.8rem 1.45rem;
  border-radius: var(--radius);
  font-size: 0.88rem; font-weight: 600;
  text-decoration: none; border: 1px solid transparent;
  transition: transform 0.15s, background 0.15s, border-color 0.15s, color 0.15s;
}
.hm-btn.primary { background: var(--accent); color: var(--on-accent); }
.hm-btn.primary:hover {
  background: var(--accent-hover);
  color: var(--on-accent);
  transform: translateY(-1px);
  text-decoration: none;
}
.hm-btn.ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line-strong);
}
.hm-btn.ghost:hover {
  background: var(--surface);
  border-color: var(--ink);
  text-decoration: none; color: var(--ink);
  transform: translateY(-1px);
}
.hm-trust {
  display: flex; gap: 1.35rem; flex-wrap: wrap;
  font-size: 0.78rem; color: var(--muted);
}
.hm-trust span {
  display: inline-flex; align-items: center; gap: 0.45rem;
  flex: 0 0 auto;
}
.hm-trust svg {
  width: 14px; height: 14px;
  color: var(--accent);
  stroke-linecap: round; stroke-linejoin: round;
  flex-shrink: 0;
}

/* =========================================================
   HERO on content pages
   Two-column heroes (Employers, Candidates, Pricing, Guarantee)
   carry an at-a-glance card on the right and match Home's
   rhythm. Single-column heroes (Vacancies, Apply, Contact)
   share the same top gap but get a tighter lower rhythm so a
   short rotating headline doesn't leave dead space beneath it.
   ========================================================= */

/* Top gap — same on all content pages, matches Home */
main > .hm-hero {
  padding-top: clamp(4.5rem, 9vh, 7rem);
}

.homepage .hm-hero {
  align-items: flex-start;
  padding-top: clamp(4.5rem, 9vh, 7rem);
}

/* Two-column heroes: default bottom + h1 reservation */
main > .hm-hero:has(.glance) {
  padding-bottom: clamp(2rem, 4vh, 3rem);
}

/* Single-column heroes: tighter bottom */
body[data-page="vacancies"] main > .hm-hero,
body[data-page="apply"] main > .hm-hero,
body[data-page="contact"] main > .hm-hero {
  padding-bottom: 1rem;
}

/* Single-column heroes: reserve less height, centre the
   message vertically so short headlines don't leave dead
   space below */
body[data-page="vacancies"] main > .hm-hero .hm-h1,
body[data-page="apply"] main > .hm-hero .hm-h1,
body[data-page="contact"] main > .hm-hero .hm-h1 {
  min-height: 2.4em;
  align-content: center;
  margin-bottom: 0.6rem;
}

body[data-page="vacancies"] main > .hm-hero .hm-sub,
body[data-page="apply"] main > .hm-hero .hm-sub,
body[data-page="contact"] main > .hm-hero .hm-sub {
  margin-bottom: 0.5rem;
}

/* Wrapping section (list / form) trims top padding */
.container-content > section:not(.content-section) {
  padding-top: 0 !important;
  padding-bottom: 1.25rem !important;
}
.container-content > section:not(.content-section) + .content-section {
  padding-top: 1.75rem;
}

/* Short-viewport tweaks */
@media (max-height: 720px) {
  main > .hm-hero {
    padding-top: clamp(3rem, 8vh, 5rem);
  }
  body[data-page="vacancies"] main > .hm-hero,
  body[data-page="apply"] main > .hm-hero,
  body[data-page="contact"] main > .hm-hero {
    padding-bottom: 0.75rem;
  }
}

/* ---------------------------------------------------------
   09 · AT A GLANCE
   --------------------------------------------------------- */
.glance {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1.4rem 1.6rem 1.5rem;
  box-shadow: var(--shadow);
}
.glance-head {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 1rem;
  padding-bottom: 0.85rem; margin-bottom: 0.25rem;
  border-bottom: 1px solid var(--line);
}
.glance-head h3 {
  font-family: var(--font-display);
  font-weight: var(--fw-display);
  font-size: 1.08rem;
  letter-spacing: var(--track-display);
  color: var(--ink);
}
.glance-head span {
  font-size: 0.6rem; font-weight: 600;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--accent);
}
.glance-row {
  display: grid; grid-template-columns: 92px 1fr; gap: 1rem;
  padding: 0.7rem 0;
  border-bottom: 1px solid var(--line);
}
.glance-row:last-child { border-bottom: none; padding-bottom: 0; }
.glance-row .lbl {
  font-size: 0.6rem; font-weight: 700;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--muted);
  padding-top: 0.32rem;
}
.glance-row .val {
  font-family: var(--font-display);
  font-weight: var(--fw-display);
  font-size: 1rem; line-height: 1.32;
  color: var(--ink); letter-spacing: var(--track-display);
}
.glance-row .val b { font-weight: 600; color: var(--accent); }
.glance-row .val .sub {
  display: block;
  font-family: var(--font-body); font-weight: 400;
  font-size: 0.8rem; line-height: 1.45;
  letter-spacing: 0; color: var(--muted);
  margin-top: 0.15rem;
}

/* ---------------------------------------------------------
   10 · PROCESS STRIP
   --------------------------------------------------------- */
.hm-process {
  flex: 0 0 auto;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--bg-2);
}
.proc-head {
  max-width: 1240px; margin: 0 auto;
  padding: 0.55rem 2rem 0.1rem;
  display: flex; align-items: center; gap: 0.7rem;
  font-size: 0.66rem; font-weight: 600;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--muted);
}
.proc-toggle { display: inline-flex; gap: 0.25rem; margin-left: auto; }
.proc-toggle button {
  font: inherit;
  font-size: 0.66rem; font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase;
  background: transparent; color: var(--muted);
  border: none; border-radius: 999px;
  padding: 0.28rem 0.8rem; cursor: pointer;
  transition: background 0.15s, color 0.15s;
}
.proc-toggle button:hover { color: var(--ink); }
.proc-toggle button.active {
  background: var(--surface); color: var(--accent);
}
.proc-set {
  max-width: 1240px; margin: 0 auto;
  padding: 0 2rem 0.45rem;
  display: grid; grid-template-columns: repeat(4, 1fr);
}
.proc-set[hidden] { display: none; }
.proc {
  padding: 0.6rem 1.5rem 0.8rem;
  border-right: 1px solid var(--line);
  display: flex; flex-direction: column; gap: 0.18rem;
}
.proc:last-child { border-right: none; }
.proc .num {
  font-size: 0.64rem; font-weight: 700;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--accent);
}
.proc .name {
  font-family: var(--font-display);
  font-weight: var(--fw-display);
  font-size: 1.05rem;
  letter-spacing: var(--track-display);
  color: var(--ink); line-height: 1.15;
  margin-bottom: 0.12rem;
}
.proc .desc {
  font-size: 0.82rem; color: var(--muted); line-height: 1.42;
}

/* ---------------------------------------------------------
   11 · FAQ SECTION
   --------------------------------------------------------- */
.faq-section {
  background: var(--bg);
  border-top: 1px solid var(--line);
  padding: 5rem 0 5.5rem;
  position: relative;
}
.faq-section::before {
  content: '';
  position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  width: min(900px, 80%); height: 1px;
  background: linear-gradient(90deg, transparent, rgba(224, 160, 74, 0.4), transparent);
}
.faq-inner { max-width: 900px; margin: 0 auto; padding: 0 2rem; }
.faq-header { text-align: center; margin-bottom: 2.25rem; }
.faq-eyebrow {
  display: inline-block;
  font-size: 0.68rem; font-weight: 600;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 0.9rem;
}
.faq-header h2 {
  font-family: var(--font-display);
  font-weight: var(--fw-display);
  font-size: clamp(1.8rem, 3.2vw, 2.5rem);
  line-height: 1.1; letter-spacing: var(--track-display);
  color: var(--ink); margin-bottom: 0.85rem;
}
.faq-header h2 em { font-style: italic; font-weight: 400; color: var(--accent); }
.faq-header p {
  color: var(--muted); font-size: 1rem;
  max-width: 520px; margin: 0 auto;
}
.faq-tabs {
  display: flex; gap: 0.35rem; flex-wrap: wrap; justify-content: center;
  margin-bottom: 2.1rem; padding: 0.35rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  width: fit-content;
  margin-left: auto; margin-right: auto;
}
.faq-tabs button {
  font: inherit; font-size: 0.82rem; font-weight: 500;
  color: var(--muted); background: transparent; border: none;
  border-radius: 999px; padding: 0.5rem 1.05rem; cursor: pointer;
  transition: background 0.15s, color 0.15s; white-space: nowrap;
}
.faq-tabs button:hover { color: var(--ink); }
.faq-tabs button.active {
  background: var(--accent); color: var(--on-accent); font-weight: 600;
}
.faq-list { display: flex; flex-direction: column; gap: 0.7rem; }
.faq {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.faq[hidden] { display: none; }
.faq:hover { border-color: var(--line-strong); box-shadow: var(--shadow-sm); }
.faq[open] { border-color: rgba(224, 160, 74, 0.35); }
.faq summary {
  list-style: none; cursor: pointer;
  padding: 1.1rem 1.4rem;
  display: flex; align-items: center; gap: 1.1rem;
  font-family: var(--font-display);
  font-weight: var(--fw-display);
  font-size: 1.03rem; line-height: 1.35;
  letter-spacing: var(--track-display);
  color: var(--ink); transition: color 0.15s;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--accent); }
.faq summary .cat {
  flex: 0 0 auto;
  font-family: 'Inter', sans-serif;
  font-size: 0.56rem; font-weight: 700;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--accent);
  background: rgba(224, 160, 74, 0.12);
  padding: 0.25rem 0.6rem; border-radius: 999px;
}
.faq summary .q { flex: 1; }
.faq summary .chev {
  flex: 0 0 auto;
  width: 18px; height: 18px;
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--muted);
  transition: transform 0.28s cubic-bezier(0.5, 0, 0.2, 1), color 0.2s;
}
.faq[open] summary .chev { transform: rotate(180deg); color: var(--accent); }
.faq summary .chev svg { width: 14px; height: 14px; }
.faq-body {
  padding: 1.1rem 1.4rem 1.3rem;
  font-size: 0.94rem; line-height: 1.65;
  color: var(--muted);
  border-top: 1px solid var(--line);
  animation: faqOpen 0.28s ease;
}
.faq-body p + p { margin-top: 0.8rem; }
.faq-body strong { color: var(--ink); font-weight: 600; }
.faq-body a {
  color: var(--accent); text-decoration: none;
  border-bottom: 1px solid rgba(224, 160, 74, 0.35);
}
.faq-body a:hover { border-bottom-color: var(--accent); }
@keyframes faqOpen {
  from { opacity: 0; transform: translateY(-4px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ---------------------------------------------------------
   12 · LEGAL PAGES
   --------------------------------------------------------- */
.legal { max-width: 780px; margin: 0 auto; padding: 4.5rem 2rem 5rem; }
.legal-header {
  padding-bottom: 2rem; margin-bottom: 2.5rem;
  border-bottom: 1px solid var(--line);
}
.legal-header .eyebrow {
  display: inline-block;
  font-size: 0.68rem; font-weight: 600;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 0.85rem;
}
.legal-header h1 {
  font-family: var(--font-display);
  font-weight: var(--fw-display);
  font-size: clamp(1.9rem, 3.5vw, 2.6rem);
  line-height: 1.1; letter-spacing: var(--track-display);
  color: var(--ink); margin-bottom: 0.75rem;
}
.legal-header h1 em { font-style: italic; font-weight: 400; color: var(--accent); }
.legal-header .meta { font-size: 0.82rem; color: var(--muted); }
.legal-header .meta strong { color: var(--ink); font-weight: 600; }

.toc {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1.35rem 1.6rem; margin-bottom: 2.5rem;
}
.toc-title {
  font-size: 0.6rem; font-weight: 700;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 0.85rem;
}
.toc ol {
  list-style: none; counter-reset: toc;
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 0.35rem 1.5rem; font-size: 0.88rem;
}
.toc li {
  counter-increment: toc;
  display: flex; gap: 0.65rem; align-items: baseline;
}
.toc li::before {
  content: counter(toc, decimal-leading-zero);
  font-family: 'Inter', sans-serif;
  font-size: 0.72rem; font-weight: 600;
  color: var(--accent); flex-shrink: 0;
  min-width: 1.6rem;
}
.toc a { color: var(--ink); text-decoration: none; transition: color 0.15s; }
.toc a:hover { color: var(--accent); }

.legal h2 {
  font-family: var(--font-display);
  font-weight: var(--fw-display);
  font-size: 1.35rem; line-height: 1.2;
  letter-spacing: var(--track-display);
  color: var(--ink);
  margin: 3rem 0 1.1rem;
  scroll-margin-top: 5rem;
}
.legal h2:first-of-type { margin-top: 0; }
.legal h2 .num {
  display: inline-block;
  font-family: 'Inter', sans-serif;
  font-size: 0.8rem; font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--accent);
  margin-right: 0.7rem; vertical-align: middle;
}
.legal h3 {
  font-family: var(--font-body);
  font-weight: 600; font-size: 1rem;
  letter-spacing: 0;
  color: var(--ink); margin: 1.5rem 0 0.6rem;
}
.legal p { color: var(--ink); margin-bottom: 1.05rem; }
.legal p.lede { font-size: 1.02rem; color: var(--muted); }
.legal ul, .legal ol { margin: 0 0 1.25rem 1.5rem; color: var(--ink); }
.legal ul li, .legal ol li { margin-bottom: 0.4rem; line-height: 1.65; }
.legal strong { color: var(--ink); font-weight: 600; }
.legal em { font-style: italic; }
.legal a {
  color: var(--accent); text-decoration: none;
  border-bottom: 1px solid rgba(224, 160, 74, 0.35);
}
.legal a:hover { border-bottom-color: var(--accent); }
.legal table {
  width: 100%; border-collapse: collapse;
  margin: 1.25rem 0 1.75rem; font-size: 0.9rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.legal th, .legal td {
  padding: 0.85rem 1.05rem; text-align: left;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
.legal th {
  font-size: 0.7rem; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--muted); background: var(--bg-2);
}
.legal tr:last-child td { border-bottom: none; }

.callout {
  background: rgba(224, 160, 74, 0.08);
  border-left: 3px solid var(--accent);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 1.15rem 1.35rem;
  margin: 1.5rem 0 1.75rem;
  font-size: 0.92rem; color: var(--ink);
}
.callout strong { color: var(--ink); }
.callout p { margin: 0; color: var(--ink); }

/* ---------------------------------------------------------
   13 · JOB CARDS
   --------------------------------------------------------- */
.job-card {
  display: block;
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius-lg);
  padding: 1.6rem 1.8rem; margin-bottom: 0.85rem;
  color: var(--ink); box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease,
              border-color 0.2s ease;
}
.job-card:hover {
  transform: translateY(-2px); box-shadow: var(--shadow);
  text-decoration: none; color: var(--ink);
  border-color: var(--line-strong);
  border-left-color: var(--accent-hover);
}
.job-card h3 {
  margin: 0 0 0.5rem; font-size: 1.15rem;
  font-family: var(--font-display);
  font-weight: var(--fw-display);
  letter-spacing: var(--track-display);
}
.job-meta {
  display: flex; gap: 1.15rem; flex-wrap: wrap;
  font-size: 0.85rem; color: var(--muted);
}

/* ---------------------------------------------------------
   14 · FORMS
   --------------------------------------------------------- */
.form {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 2rem; max-width: 640px;
  box-shadow: var(--shadow-sm);
}
.form label {
  display: block; margin-bottom: 1.1rem;
  font-size: 0.88rem; font-weight: 500;
  color: var(--ink);
}
.form input, .form textarea, .form select {
  display: block; width: 100%;
  padding: 0.85rem 1rem; margin-top: 0.4rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--bg); color: var(--ink);
  font: inherit; font-size: 0.95rem;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.form input::placeholder, .form textarea::placeholder {
  color: var(--muted); opacity: 0.55;
}
.form input:focus, .form textarea:focus {
  outline: none; border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(224, 160, 74, 0.12);
}
.form textarea { resize: vertical; line-height: 1.6; min-height: 130px; }
.form .checkbox-label {
  display: flex; align-items: flex-start; gap: 0.65rem;
  font-weight: 400; font-size: 0.88rem; line-height: 1.5;
  color: var(--muted);
}
.form .checkbox-label input {
  width: auto; margin: 0.25rem 0 0; flex-shrink: 0;
  accent-color: var(--accent);
}
.form .honeypot { position: absolute; left: -9999px; }
.form .form-error {
  background: rgba(168, 52, 31, 0.12);
  border: 1px solid rgba(168, 52, 31, 0.35);
  color: #f0a89a;
  padding: 0.95rem 1.1rem;
  border-radius: var(--radius);
  margin-bottom: 1.4rem; font-size: 0.9rem;
  display: none;
}
.form .form-error.show { display: block; }

/* ---------------------------------------------------------
   15 · SKELETONS
   --------------------------------------------------------- */
.skeleton {
  display: block;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1.6rem 1.8rem; margin-bottom: 0.85rem;
  overflow: hidden; position: relative;
}
.skeleton::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(90deg,
    transparent 0%, rgba(224, 160, 74, 0.06) 50%, transparent 100%);
  animation: shimmer 1.4s ease-in-out infinite;
  pointer-events: none;
}
@keyframes shimmer {
  0%   { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}
.skeleton-bar {
  display: block; height: 14px;
  background: var(--line); border-radius: 4px;
  margin-bottom: 0.6rem;
}
.skeleton-bar.w40 { width: 40%; }
.skeleton-bar.w60 { width: 60%; }
.skeleton-bar.w80 { width: 80%; }
.skeleton-bar.title {
  height: 20px; width: 55%; margin-bottom: 0.85rem;
}
.skeleton-meta { display: flex; gap: 1rem; flex-wrap: wrap; margin-top: 0.4rem; }

/* ---------------------------------------------------------
   16 · STICKY CTA
   --------------------------------------------------------- */
.sticky-cta {
  position: fixed; right: 1rem; bottom: 1rem;
  z-index: 900; display: none;
  align-items: center; gap: 0.5rem;
  padding: 0.85rem 1.25rem;
  background: var(--accent); color: var(--on-accent);
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: 0.85rem; font-weight: 600;
  text-decoration: none;
  box-shadow: 0 16px 36px -10px rgba(0, 0, 0, 0.6),
              0 0 0 1px rgba(224, 160, 74, 0.4);
  transition: transform 0.22s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.22s ease;
  transform: translateY(80px); opacity: 0;
}
.sticky-cta.visible { transform: translateY(0); opacity: 1; }
.sticky-cta:hover {
  background: var(--accent-hover);
  color: var(--on-accent);
  text-decoration: none;
}
.sticky-cta svg { flex-shrink: 0; }

/* ---------------------------------------------------------
   17 · BACK TO TOP
   --------------------------------------------------------- */
.back-top {
  position: fixed;
  right: max(1rem, calc((100vw - 1240px) / 2 - 60px));
  bottom: 1rem;
  z-index: 900;
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--ink);
  cursor: pointer;
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.22s ease,
              transform 0.22s cubic-bezier(0.16, 1, 0.3, 1),
              background 0.15s ease, border-color 0.15s ease;
  pointer-events: none;
  box-shadow: var(--shadow-sm);
}
.back-top.visible {
  opacity: 1; transform: translateY(0); pointer-events: auto;
}
.back-top:hover {
  background: var(--bg-2); border-color: var(--line-strong);
}
.back-top:focus-visible {
  outline: 2px solid var(--accent); outline-offset: 3px;
}
.back-top svg {
  width: 16px; height: 16px;
  stroke-linecap: round; stroke-linejoin: round;
  transition: transform 0.2s ease;
}
.back-top:hover svg { transform: translateY(-2px); }

/* ---------------------------------------------------------
   18 · SCROLL REVEAL
   --------------------------------------------------------- */
.reveal {
  opacity: 0; transform: translateY(20px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: 0.05s; }
.reveal.d2 { transition-delay: 0.10s; }
.reveal.d3 { transition-delay: 0.15s; }

/* ---------------------------------------------------------
   19 · RESPONSIVE
   --------------------------------------------------------- */
@media (max-width: 900px) {
  .hm-hero-inner { grid-template-columns: 1fr; gap: 2rem; }
  .proc-set { grid-template-columns: repeat(2, 1fr); }
  .proc:nth-child(2) { border-right: none; }
  .proc:nth-child(1),
  .proc:nth-child(2) { border-bottom: 1px solid var(--line); }

  .hm-nav {
    display: none;
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    margin-left: 0; margin-right: 0;
    background: var(--surface);
    border-bottom: 1px solid var(--line);
    padding: 0.5rem 2rem 1rem;
  }
  .hm-nav.open { display: flex; }
  .hm-nav > li { border-bottom: 1px solid var(--line); }
  .hm-nav > li:last-child { border-bottom: none; }
  .hm-nav > li > a { padding: 0.9rem 0; }
  .hm-submenu {
    position: static; opacity: 1; visibility: visible; transform: none;
    box-shadow: none; background: transparent; border: none;
    padding: 0 0 0.5rem 1rem; min-width: 0;
  }
  .hm-submenu::before { display: none; }
  .hm-submenu a { padding: 0.45rem 0.6rem; font-size: 0.82rem; }
  .nav-toggle { display: block; margin-left: auto; }
  .hm-cta { display: none; }
  .sticky-cta { display: inline-flex; }
  .back-top { display: none; }
  .legal { padding: 3rem 1.5rem 4rem; }
}
@media (max-width: 600px) {
  .toc ol { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .proc-set { grid-template-columns: 1fr; }
  .proc { border-right: none; border-bottom: 1px solid var(--line); }
  .proc:last-child { border-bottom: none; }
  .faq summary { padding: 1rem 1.15rem; font-size: 0.96rem; gap: 0.7rem; }
  .faq summary .cat { display: none; }
  .faq-body { padding: 1rem 1.15rem; font-size: 0.9rem; }
}
@media (max-height: 720px) {
  .hm-hero { padding: 1rem 0; }
  .hm-sub { margin-bottom: 1.1rem; }
  .hm-ctas { margin-bottom: 1rem; }
  .hm-h1 { min-height: 3.6em; }
}

/* ---------------------------------------------------------
   20 · REDUCED MOTION
   --------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .hm-h1 .msg { transition: opacity 0.2s ease; }
  .hm-h1 .msg.leaving { transform: none; }
  .faq-body { animation: none; }
  .hm-header,
  .sticky-cta,
  .back-top,
  .back-top svg { transition: none; }
  .hm-hero::after { display: none; }
  .skeleton::after { animation: none; display: none; }
}

/* =========================================================
   CONTENT CONTAINER — content pages
   Padding matches the homepage's hero → process gap
   ========================================================= */
.container-content {
  max-width: 900px;
  margin: 0 auto;
  padding: 1.5rem 2rem 4.5rem;
}
.container-content h2 {
  font-family: var(--font-display);
  font-weight: var(--fw-display);
  font-size: 1.6rem;
  line-height: 1.15;
  letter-spacing: var(--track-display);
  color: var(--ink);
  margin: 3rem 0 1.1rem;
}
.container-content h2:first-child { margin-top: 0; }
.container-content h3 {
  font-family: var(--font-display);
  font-weight: var(--fw-display);
  font-size: 1.1rem;
  color: var(--ink);
  margin: 1.75rem 0 0.5rem;
  letter-spacing: var(--track-display);
}
.container-content p { margin-bottom: 1.05rem; color: var(--ink); }
.container-content p.lede { font-size: 1.05rem; color: var(--muted); }
.container-content ul,
.container-content ol { margin: 0 0 1.25rem 1.5rem; }
.container-content li { margin-bottom: 0.4rem; line-height: 1.65; }
.container-content strong { color: var(--ink); font-weight: 600; }
.container-content a {
  color: var(--accent); text-decoration: none;
  border-bottom: 1px solid rgba(224, 160, 74, 0.35);
}
.container-content a:hover { border-bottom-color: var(--accent); }

/* Sections */
.content-section { padding: 3.5rem 0; }
.content-section + .content-section { border-top: 1px solid var(--line); }

/* First section in any container sits flush under the hero — no gap */
.container-content > .content-section:first-child,
.container-content > section:first-child {
  padding-top: 0 !important;
}

/* CTA row (used in content pages) */
.cta-row {
  display: flex; gap: 0.6rem; flex-wrap: wrap;
  margin-top: 1.75rem;
}

/* =========================================================
   PRINT STYLESHEET — accessibility
   Overrides the Midnight theme for paper output
   ========================================================= */
@media print {
  /* Base: black text on white paper */
  *,
  *::before,
  *::after {
    background: transparent !important;
    color: #000 !important;
    box-shadow: none !important;
    text-shadow: none !important;
  }

  html,
  body {
    background: #fff !important;
    color: #000 !important;
    font-family: Arial, Helvetica, sans-serif !important;
    font-size: 12pt !important;
    line-height: 1.5 !important;
    margin: 0;
    padding: 0;
  }

  /* Typography: serif display becomes sans-serif, still sized for print */
  h1, h2, h3, h4 {
    font-family: Arial, Helvetica, sans-serif !important;
    color: #000 !important;
    page-break-after: avoid;
    page-break-inside: avoid;
  }
  h1 { font-size: 20pt !important; margin: 0 0 12pt 0; }
  h2 { font-size: 16pt !important; margin: 18pt 0 8pt 0; }
  h3 { font-size: 13pt !important; margin: 14pt 0 6pt 0; }
  h4 { font-size: 12pt !important; margin: 12pt 0 4pt 0; }

  p, li, td, th {
    font-size: 12pt !important;
    color: #000 !important;
    line-height: 1.5 !important;
    orphans: 3;
    widows: 3;
  }

  /* Links: show underline, and show the URL after the link text */
  a,
  a:visited {
    color: #000 !important;
    text-decoration: underline !important;
  }
  a[href^="http"]::after {
    content: " (" attr(href) ")";
    font-size: 10pt;
    color: #333;
    word-break: break-all;
  }

  /* Remove interactive and decorative elements */
  .skip-link,
  .nav-toggle,
  .hm-nav,
  .hm-submenu,
  .hm-cta,
  .sticky-cta,
  .back-top,
  .footer-socials,
  .email-copy,
  button,
  .btn,
  .hm-btn,
  .proc-toggle,
  .faq-tabs,
  .hm-hero::before,
  .hm-hero::after {
    display: none !important;
  }

  /* Simplify the header — keep only the wordmark */
  .hm-header {
    position: static !important;
    border-bottom: 1px solid #000 !important;
    padding: 8pt 0 !important;
  }
  .hm-logo .wm {
    color: #000 !important;
    font-family: Arial, Helvetica, sans-serif !important;
    font-size: 14pt !important;
  }
  .hm-logo .wm em {
    color: #000 !important;
  }
  .hm-logo svg {
    filter: grayscale(100%);
  }

  /* Remove hero background graphics */
  .hm-hero {
    background: none !important;
    padding: 12pt 0 !important;
  }

  /* Cards and forms: remove shadows, keep borders for structure */
  .glance,
  .form,
  .faq,
  .job-card,
  .price-table,
  .toc,
  .callout {
    background: #fff !important;
    border: 1px solid #000 !important;
    box-shadow: none !important;
    page-break-inside: avoid;
  }

  .glance-row .lbl,
  .glance-row .val,
  .glance-row .val b {
    color: #000 !important;
  }
  .glance-row .val b {
    font-weight: bold !important;
  }

  /* FAQ: expand all answers so the printed copy is complete */
  .faq[open] .faq-body {
    display: block !important;
    page-break-inside: avoid;
  }
  .faq summary .chev,
  .faq summary .cat {
    display: none !important;
  }
  .faq summary {
    padding: 8pt 0 !important;
    page-break-after: avoid;
  }

  /* Legal pages: clean single-column output */
  .legal {
    max-width: 100% !important;
    padding: 0 !important;
  }
  .legal-header {
    border-bottom: 2pt solid #000 !important;
    padding-bottom: 12pt !important;
    margin-bottom: 18pt !important;
  }
  .legal-header .eyebrow,
  .legal-header h1 em {
    color: #000 !important;
  }
  .legal h2 .num {
    color: #000 !important;
  }
  .legal table {
    border: 1px solid #000 !important;
  }
  .legal th {
    background: #eee !important;
    color: #000 !important;
  }

  /* Footer: strip to essentials */
  .hm-footer {
    border-top: 1pt solid #000 !important;
    padding-top: 8pt !important;
    margin-top: 24pt !important;
    font-size: 9pt !important;
    color: #000 !important;
  }
  .hm-footer a {
    color: #000 !important;
    text-decoration: underline !important;
  }
  .hm-footer .dot {
    display: none !important;
  }
  .footer-col-meta {
    display: none !important;
  }

  /* Page setup */
  @page {
    margin: 20mm 15mm;
    size: A4;
  }

  /* Avoid breaking inside key blocks */
  .content-section,
  .legal h2,
  .legal h3,
  .legal p,
  .legal li {
    page-break-inside: avoid;
  }

  /* Show the URL of the printed page at the bottom */
  body::after {
    content: "Printed from " attr(data-print-url);
    display: block;
    font-size: 9pt;
    color: #555;
    margin-top: 18pt;
    padding-top: 8pt;
    border-top: 1px solid #ccc;
  }
}

/* ---------------------------------------------------------
   BACK-TO-TOP on legal pages
   Legal pages don't have the mobile sticky CTA, so the
   back-to-top button should stay visible on smaller screens.
   --------------------------------------------------------- */
@media (max-width: 900px) {
  body:has(main.legal) .back-top {
    display: inline-flex;
  }
}