/* ==========================================================================
   The Guardians — site styles
   Colours are design tokens. `data-theme` (light | dark) and `data-palette`
   (classic | forest | burgundy) on <html> swap them; see assets/js/theme.js.
   ========================================================================== */

:root {
  /* palette: classic (default) — deep navy, antique gold, ivory */
  --brand: #1b2f5e;
  --brand-btn: #1b2f5e;
  --brand-strong: #0f1e3d;
  --brand-soft: #e9ecf4;
  --brand-glow: rgba(27, 47, 94, .24);
  --deep: #0f1b33;
  --deep-2: #263c6e;

  --accent: #c9a24b;
  --accent-hi: #dfc078;
  --accent-soft: #f5edd9;
  --accent-ink: #86661c;
  --on-accent: #14213d;

  --bg: #f8f5ee;
  --surface: #fffdf8;
  --surface-2: #f0ebdf;
  --heading: #14213d;
  --text: #2a3142;
  --muted: #646b7a;
  --line: #e4dccb;
  --header-bg: rgba(255, 253, 248, .88);
  --on-deep: #cdd3e2;

  --font-display: "Playfair Display", Georgia, "Times New Roman", serif;
  --font-body: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --radius: 16px;
  --shadow: 0 2px 4px rgba(20, 33, 61, .05), 0 16px 38px rgba(20, 33, 61, .11);
  --container: 1180px;
  --header-h: 76px;
  color-scheme: light;
}

:root[data-palette="forest"] {
  --brand: #1f4d3a; --brand-btn: #1f4d3a; --brand-strong: #143427; --brand-soft: #e6efe9;
  --brand-glow: rgba(31, 77, 58, .24); --deep: #10261d; --deep-2: #2b5c46; --heading: #132a20; --on-accent: #132a20;
}
:root[data-palette="burgundy"] {
  --brand: #6e1f2e; --brand-btn: #6e1f2e; --brand-strong: #521521; --brand-soft: #f4e7ea;
  --brand-glow: rgba(110, 31, 46, .24); --deep: #2a0f16; --deep-2: #6b2233; --heading: #2f1118; --on-accent: #2f1118;
}

:root[data-theme="dark"] {
  --brand: #a9bbe8; --brand-btn: #34518f; --brand-strong: #4464ab; --brand-soft: #1b2744;
  --brand-glow: rgba(52, 81, 143, .45); --deep: #101c38; --deep-2: #2a437d;
  --accent-soft: #2f2815; --accent-ink: #dfc078;
  --bg: #0a1020; --surface: #111a30; --surface-2: #17223d; --heading: #f6f1e4; --text: #d4d8e2;
  --muted: #9aa3b6; --line: #25314e; --header-bg: rgba(10, 16, 32, .85);
  --shadow: 0 2px 4px rgba(0, 0, 0, .3), 0 18px 40px rgba(0, 0, 0, .45);
  color-scheme: dark;
}
:root[data-theme="dark"][data-palette="forest"] {
  --brand: #9fd0b8; --brand-btn: #2c6a50; --brand-strong: #38805f; --brand-soft: #17332a;
  --brand-glow: rgba(44, 106, 80, .45); --deep: #0f241c; --deep-2: #2b5c46; --heading: #f6f1e4;
  --bg: #08130f; --surface: #0f1f19; --surface-2: #152a22; --line: #21402f; --header-bg: rgba(8, 19, 15, .85);
}
:root[data-theme="dark"][data-palette="burgundy"] {
  --brand: #e6a9b5; --brand-btn: #8a2a3d; --brand-strong: #a3364b; --brand-soft: #3a1720;
  --brand-glow: rgba(138, 42, 61, .45); --deep: #280e15; --deep-2: #6b2233; --heading: #f6f1e4;
  --bg: #140a0d; --surface: #211116; --surface-2: #2b171d; --line: #46252e; --header-bg: rgba(20, 10, 13, .85);
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  transition: background-color .3s ease, color .3s ease;
}

img, svg, video { max-width: 100%; display: block; }
a { color: var(--brand); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--brand-strong); }
p { margin: 0 0 1em; }
ul { margin: 0; padding: 0; list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }
::selection { background: var(--accent); color: var(--on-accent); }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--heading);
  line-height: 1.12;
  margin: 0 0 .5em;
  font-weight: 600;
  letter-spacing: -.015em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.4rem, 5.2vw, 4.1rem); }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.9rem); }
h3 { font-size: 1.35rem; letter-spacing: -.01em; }
h4 { font-size: 1.05rem; font-family: var(--font-body); font-weight: 700; letter-spacing: 0; }

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

.container { width: min(100% - 40px, var(--container)); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 300;
  background: var(--deep); color: #fff; padding: 10px 16px; border-radius: 10px; text-decoration: none;
}
.skip-link:focus { top: 12px; color: #fff; }

.progress {
  position: fixed; inset: 0 0 auto 0; height: 3px; z-index: 200; transform-origin: 0 50%; transform: scaleX(0);
  background: linear-gradient(90deg, var(--brand-btn), var(--accent));
}

/* ---------- Buttons ---------- */
.btn {
  position: relative; overflow: hidden; display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  padding: .85em 1.35em; border-radius: 999px; border: 2px solid transparent;
  font-weight: 700; font-size: 1rem; line-height: 1.2; text-decoration: none; cursor: pointer;
  transition: transform .15s ease, background-color .15s ease, box-shadow .15s ease, border-color .15s ease, color .15s ease;
}
.btn svg { width: 1.1em; height: 1.1em; flex: none; }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn[disabled] { opacity: .6; cursor: progress; transform: none; }
/* light sweep on hover */
.btn-primary::after, .btn-accent::after {
  content: ""; position: absolute; inset: 0; transform: translateX(-120%) skewX(-20deg);
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .35), transparent); transition: transform .6s ease;
}
.btn-primary:hover::after, .btn-accent:hover::after { transform: translateX(120%) skewX(-20deg); }
.btn-primary { background: var(--brand-btn); color: #fff; box-shadow: 0 8px 20px var(--brand-glow); }
.btn-primary:hover { background: var(--brand-strong); color: #fff; }
.btn-accent { background: var(--accent); color: var(--on-accent); box-shadow: 0 8px 20px color-mix(in srgb, var(--accent) 35%, transparent); }
.btn-accent:hover { background: var(--accent-hi); color: var(--on-accent); }
.btn-ghost { background: transparent; color: var(--heading); border-color: color-mix(in srgb, var(--heading) 20%, transparent); }
.btn-ghost:hover { border-color: var(--heading); color: var(--heading); }
.btn-light { background: rgba(255, 255, 255, .08); color: #fff; border-color: rgba(255, 255, 255, .35); backdrop-filter: blur(6px); }
.btn-light:hover { border-color: #fff; color: #fff; }
.btn-sm { padding: .6em 1em; font-size: .92rem; }
.btn-link { background: none; border: 0; padding: 0; color: var(--brand); cursor: pointer; font-weight: 700; }

.link-arrow { display: inline-flex; align-items: center; gap: .4em; font-weight: 700; text-decoration: none; }
.link-arrow svg { width: 1em; height: 1em; transition: transform .15s ease; }
.link-arrow:hover svg { transform: translateX(4px); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100; background: var(--header-bg);
  backdrop-filter: saturate(160%) blur(14px); -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent; transition: border-color .2s ease, box-shadow .2s ease, background-color .3s ease;
}
.site-header.is-stuck { border-color: var(--line); box-shadow: 0 6px 24px rgba(11, 27, 58, .08); }
.header-inner { display: flex; align-items: center; gap: 20px; height: var(--header-h); }

.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--heading); margin-right: auto; }
.brand:hover { color: var(--heading); }
/* The logo file is hands + wordmark on white: show only the hands, on a white tile, and set the name in live text. */
.brand-mark {
  width: 64px; aspect-ratio: 512 / 300; flex: none; border-radius: 12px;
  background: #fff url("../img/logo.webp") center 5px / 86% auto no-repeat;
}
.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-name { font-family: var(--font-display); font-weight: 700; font-size: 1.3rem; letter-spacing: .01em; }
.brand-tag { font-size: .72rem; color: var(--muted); letter-spacing: .04em; margin-top: 3px; }

.nav ul { display: flex; align-items: center; gap: 4px; }
.nav a {
  display: block; padding: .5em .85em; border-radius: 999px; color: var(--heading);
  font-weight: 600; font-size: .98rem; text-decoration: none; transition: background-color .15s ease;
}
.nav a:hover { background: var(--brand-soft); }
.nav a[aria-current="page"] { background: var(--deep); color: #fff; }
.header-cta { display: flex; align-items: center; gap: 10px; }

.icon-btn {
  width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 50%; background: var(--surface); color: var(--heading);
  cursor: pointer; display: inline-grid; place-items: center; flex: none; transition: transform .15s ease, border-color .15s ease;
}
.icon-btn:hover { transform: translateY(-2px); border-color: var(--brand); }
.icon-btn svg { width: 20px; height: 20px; }

/* Theme menu */
.theme-menu { position: relative; }
.theme-menu summary { list-style: none; }
.theme-menu summary::-webkit-details-marker { display: none; }
.theme-panel {
  position: absolute; right: 0; top: calc(100% + 12px); width: 250px; padding: 18px; z-index: 120;
  background: var(--surface); border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow);
}
.theme-panel h4 { font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin: 0 0 10px; }
.theme-panel h4 + * { margin-bottom: 16px; }
.theme-panel > :last-child { margin-bottom: 0; }
.mode-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; padding: 4px; border-radius: 12px; background: var(--surface-2); }
.mode-row button {
  border: 0; background: transparent; border-radius: 9px; padding: .5em 0; cursor: pointer; font-weight: 700; font-size: .85rem; color: var(--muted);
}
.mode-row button[aria-pressed="true"] { background: var(--surface); color: var(--heading); box-shadow: 0 1px 4px rgba(0, 0, 0, .12); }
.swatch-row { display: flex; gap: 10px; }
.swatch-row button {
  flex: 1; border: 2px solid var(--line); background: var(--surface); border-radius: 12px; padding: 8px 6px; cursor: pointer;
  display: grid; justify-items: center; gap: 6px; font-size: .78rem; font-weight: 700; color: var(--muted);
}
.swatch-row button[aria-pressed="true"] { border-color: var(--brand); color: var(--heading); }
.swatch { width: 34px; height: 34px; border-radius: 50%; background: conic-gradient(var(--a) 0 50%, var(--b) 0 100%); box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .5); }

.nav-toggle {
  display: none; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 12px;
  background: var(--surface); cursor: pointer; align-items: center; justify-content: center; flex: none;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  display: block; width: 20px; height: 2px; background: var(--heading); border-radius: 2px;
  transition: transform .2s ease, opacity .2s ease; content: ""; position: relative;
}
.nav-toggle span::before { position: absolute; top: -6px; }
.nav-toggle span::after { position: absolute; top: 6px; }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after { transform: translateY(-6px) rotate(-45deg); }

.nav-mobile { display: none; }
@media (max-width: 980px) {
  .nav-toggle { display: inline-flex; }
  .nav {
    position: absolute; left: 0; right: 0; top: 100%; background: var(--surface); border-bottom: 1px solid var(--line);
    box-shadow: 0 24px 40px rgba(11, 27, 58, .14); padding: 12px 20px 20px; display: none;
  }
  .nav.is-open { display: block; }
  .nav ul { flex-direction: column; align-items: stretch; gap: 2px; }
  .nav a { padding: .8em 1em; border-radius: 12px; font-size: 1.05rem; }
}
@media (max-width: 560px) {
  .nav-mobile { display: block; }
  .header-cta .btn { display: none; }
  .header-inner { gap: 10px; }
  .brand-mark { width: 52px; }
  .brand-name { font-size: 1.08rem; }
  .brand-tag { display: none; }
}

/* ---------- Sections ---------- */
.section { padding: clamp(64px, 9vw, 112px) 0; }
.section-tight { padding: clamp(40px, 6vw, 72px) 0; }
.section-alt { background: var(--surface); }
.section-ink { position: relative; overflow: hidden; background: var(--deep); color: var(--on-deep); isolation: isolate; }
.section-ink h2, .section-ink h3, .section-ink h4 { color: #fff; }
/* soft colour glow + fine grid, so the dark bands are not flat */
.section-ink::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(520px 380px at 8% 0%, color-mix(in srgb, var(--deep-2) 90%, transparent), transparent 70%),
    radial-gradient(420px 320px at 96% 100%, color-mix(in srgb, var(--accent) 16%, transparent), transparent 70%),
    linear-gradient(rgba(255, 255, 255, .035) 1px, transparent 1px) 0 0 / 44px 44px,
    linear-gradient(90deg, rgba(255, 255, 255, .035) 1px, transparent 1px) 0 0 / 44px 44px;
}

.eyebrow {
  display: inline-flex; align-items: center; gap: .6em; margin-bottom: 1.1em;
  font-size: .78rem; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--accent-ink);
}
.eyebrow::before { content: ""; width: 34px; height: 1px; background: var(--accent); }
.section-ink .eyebrow, .on-dark .eyebrow { color: var(--accent); }

.section-head { max-width: 720px; margin-bottom: clamp(32px, 5vw, 56px); }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head.center .eyebrow { justify-content: center; }
.section-head.row { max-width: none; display: flex; align-items: end; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.section-head.row > div { max-width: 720px; }
.lead { font-size: 1.18rem; color: var(--muted); max-width: 62ch; }
.section-ink .lead { color: var(--on-deep); }
.section-head .lead:last-child, .section-head h2:last-child { margin-bottom: 0; }

/* ---------- Hero (home) — background video from the original site ---------- */
.hero {
  position: relative; overflow: hidden; isolation: isolate; background: #05070d; color: #d9e1f5;
  min-height: min(88vh, 820px); display: grid; align-items: center; padding: clamp(72px, 10vw, 120px) 0 clamp(96px, 12vw, 150px);
}
.hero-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 70% 30%; z-index: -2; opacity: .9; }
.hero-scrim {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    linear-gradient(90deg, var(--deep) 0%, color-mix(in srgb, var(--deep) 88%, transparent) 34%, color-mix(in srgb, var(--deep) 30%, transparent) 68%, transparent 100%),
    linear-gradient(0deg, color-mix(in srgb, var(--deep) 85%, transparent) 0%, transparent 38%),
    radial-gradient(700px 420px at 12% 0%, color-mix(in srgb, var(--deep-2) 80%, transparent), transparent 70%);
}
.hero-copy { max-width: 660px; }
.hero h1 { color: #fff; }
.hero h1 em {
  font-style: italic; font-weight: 500;
  background: linear-gradient(100deg, var(--accent), var(--accent-hi) 55%, var(--accent)); -webkit-background-clip: text; background-clip: text; color: transparent;
  padding-right: .08em;
}
.hero .eyebrow { color: var(--accent); }
.hero .lead { font-size: clamp(1.1rem, 1.6vw, 1.3rem); margin: 1.2em 0 1.8em; color: #d0d9ef; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-stats { display: flex; flex-wrap: wrap; gap: 12px; margin-top: clamp(32px, 5vw, 56px); }
.glass {
  display: flex; align-items: center; gap: 12px; padding: 12px 18px 12px 12px; border-radius: 18px;
  background: rgba(255, 255, 255, .09); border: 1px solid rgba(255, 255, 255, .16);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  font-size: .86rem; line-height: 1.25; color: #c9d3ea; font-weight: 600;
}
.glass strong { display: block; font-family: var(--font-display); font-size: 1.45rem; color: #fff; line-height: 1; }
.glass .dot { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--accent); color: var(--on-accent); flex: none; }
.glass .dot svg { width: 20px; height: 20px; }
.video-toggle {
  position: absolute; right: 20px; bottom: 44px; z-index: 2; width: 44px; height: 44px; border-radius: 50%; cursor: pointer;
  border: 1px solid rgba(255, 255, 255, .3); background: rgba(0, 0, 0, .35); color: #fff; display: none; place-items: center; backdrop-filter: blur(8px);
}
.js .video-toggle { display: grid; }
.video-toggle svg { width: 18px; height: 18px; }
.video-toggle .i-play, .video-toggle.is-paused .i-pause { display: none; }
.video-toggle.is-paused .i-play { display: block; }
/* curved bottom edge into the next section */
.hero-curve { position: absolute; left: 0; right: 0; bottom: -1px; width: 100%; height: clamp(28px, 4vw, 56px); color: var(--surface); z-index: 1; }
@media (max-width: 760px) {
  .hero-video { object-position: 78% 30%; opacity: .55; }
}

/* ---------- Page hero (inner pages) ---------- */
.page-hero { position: relative; overflow: hidden; isolation: isolate; background: var(--deep); color: var(--on-deep); padding: clamp(56px, 8vw, 100px) 0; }
.page-hero::before, .page-hero::after { content: ""; position: absolute; border-radius: 50%; z-index: -1; }
.page-hero::before {
  width: 560px; aspect-ratio: 1; right: -170px; top: -250px;
  background: radial-gradient(circle at 35% 65%, var(--brand-btn), var(--deep-2)); animation: drift 14s ease-in-out infinite alternate;
}
.page-hero::after {
  width: 230px; aspect-ratio: 1; right: 190px; bottom: -140px; background: var(--accent);
  animation: drift 11s ease-in-out infinite alternate-reverse;
}
@keyframes drift { to { transform: translate(-26px, 18px) scale(1.06); } }
.page-hero h1 { color: #fff; font-size: clamp(2.3rem, 5vw, 3.8rem); max-width: 16ch; }
.page-hero .lead { color: var(--on-deep); margin: 0; max-width: 58ch; }
.page-hero .eyebrow { color: var(--accent); }
.page-hero .cta-actions .btn { margin-top: 0; }
.crumbs { font-size: .9rem; margin-bottom: 1.4em; color: color-mix(in srgb, var(--on-deep) 75%, transparent); }
.crumbs a { color: inherit; text-decoration: none; }
.crumbs a:hover { color: #fff; }

/* ---------- Logo marquee ---------- */
.trust { background: var(--surface); border-bottom: 1px solid var(--line); padding: 30px 0 34px; }
.trust-label { text-align: center; font-size: .8rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 20px; }
.marquee { overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee-track { display: flex; align-items: center; gap: 18px; width: max-content; animation: marquee 46s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
/* client logos are drawn for white backgrounds, so each sits on its own white tile in every theme */
.marquee-track span { display: grid; place-items: center; width: 170px; height: 76px; padding: 14px 22px; border-radius: 16px; background: #fff; border: 1px solid var(--line); flex: none; }
.marquee img { max-height: 100%; width: auto; max-width: 100%; object-fit: contain; }
@keyframes marquee { to { transform: translateX(calc(-50% - 9px)); } }

/* ---------- Cards / grids ---------- */
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 980px) { .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 680px) { .grid-2, .grid-3 { grid-template-columns: 1fr; } }

.card {
  position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px; transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease, background-color .3s ease;
}
.section-alt .card { background: var(--bg); }
.card p:last-child { margin-bottom: 0; }
.card p { color: var(--muted); }
a.card { text-decoration: none; color: inherit; display: block; overflow: hidden; }
a.card::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 4px; transform: scaleX(0); transform-origin: 0 50%;
  background: linear-gradient(90deg, var(--brand-btn), var(--accent)); transition: transform .35s ease;
}
a.card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: transparent; color: inherit; }
a.card:hover::before { transform: scaleX(1); }
a.card:hover .icon { transform: rotate(-6deg) scale(1.08); }
.card .link-arrow { margin-top: 1.1em; color: var(--brand); }

.icon {
  width: 56px; height: 56px; border-radius: 18px; display: grid; place-items: center; margin-bottom: 20px;
  background: var(--brand-soft); color: var(--brand); transition: transform .25s ease;
}
.icon svg { width: 26px; height: 26px; }
.icon.yellow { background: var(--accent-soft); color: var(--accent-ink); }
.icon.ink { background: var(--deep); color: var(--accent); }
.icon.solid { background: var(--accent); color: var(--on-accent); }

.num { font-family: var(--font-display); font-size: 1rem; font-weight: 600; color: var(--brand); letter-spacing: .08em; margin-bottom: 14px; display: block; }
.section-ink .num { color: var(--accent); }

.checks li { position: relative; padding-left: 1.9em; margin-bottom: .7em; }
.checks li::before {
  content: ""; position: absolute; left: 0; top: .28em; width: 1.2em; height: 1.2em; border-radius: 50%;
  background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2314213d' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center / 70% no-repeat;
}

/* ---------- Two paths ---------- */
.paths { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.path { border-radius: 28px; padding: clamp(28px, 4vw, 48px); position: relative; overflow: hidden; isolation: isolate; transition: transform .25s ease; }
.path:hover { transform: translateY(-4px); }
.path::after { content: ""; position: absolute; width: 260px; aspect-ratio: 1; border-radius: 50%; right: -90px; bottom: -120px; z-index: -1; }
.path h3 { font-size: clamp(1.6rem, 2.6vw, 2.1rem); }
.path .checks { margin: 1.4em 0 1.8em; }
.path-employer { background: linear-gradient(140deg, var(--deep), var(--deep-2)); color: var(--on-deep); }
.path-employer::after { background: color-mix(in srgb, var(--accent) 20%, transparent); }
.path-employer h3 { color: #fff; }
.path-employer .eyebrow { color: var(--accent); }
.path-seeker { background: linear-gradient(140deg, var(--accent-hi), var(--accent)); color: var(--on-accent); }
.path-seeker::after { background: rgba(255, 255, 255, .35); }
.path-seeker h3, .path-seeker .eyebrow { color: var(--on-accent); }
.path-seeker .eyebrow::before { background: var(--on-accent); }
.path-seeker .checks li::before { background-color: #fff; }
@media (max-width: 800px) { .paths { grid-template-columns: 1fr; } }

/* ---------- Stats ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.stat { padding: 26px 24px; border-radius: var(--radius); background: rgba(255, 255, 255, .05); border: 1px solid color-mix(in srgb, var(--accent) 35%, transparent); backdrop-filter: blur(6px); }
.stat strong {
  display: block; font-family: var(--font-display); font-weight: 600; font-size: clamp(2.4rem, 5vw, 3.6rem); line-height: 1; letter-spacing: -.02em;
  background: linear-gradient(120deg, #fff 20%, var(--accent-hi)); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.stat span { display: block; margin-top: .6em; font-weight: 600; }
@media (max-width: 860px) { .stats { grid-template-columns: repeat(2, 1fr); } }

/* ---------- Steps ---------- */
.steps { counter-reset: step; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.step { position: relative; padding-top: 30px; border-top: 2px solid var(--line); }
.step::before {
  counter-increment: step; content: "0" counter(step); position: absolute; top: -22px; left: 0;
  width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center;
  background: var(--deep); color: var(--accent); font-weight: 800; font-size: .88rem; box-shadow: 0 0 0 6px var(--bg);
}
.step h3 { font-size: 1.2rem; margin-top: .4em; }
.step p { color: var(--muted); margin: 0; font-size: 1rem; }
@media (max-width: 900px) { .steps { grid-template-columns: repeat(2, 1fr); gap: 48px 24px; } }
@media (max-width: 520px) { .steps { grid-template-columns: 1fr; } }

/* ---------- Chips ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip {
  display: inline-flex; align-items: center; gap: .5em; padding: .55em 1.05em; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--line); font-weight: 600; font-size: .95rem; color: var(--heading);
  transition: transform .15s ease, border-color .15s ease;
}
.chip:hover { transform: translateY(-2px); border-color: var(--brand); }
.section-ink .chip { background: rgba(255, 255, 255, .07); border-color: rgba(255, 255, 255, .14); color: #fff; }
.section-ink .chip:hover { border-color: var(--accent); }

/* ---------- Split (text + aside) ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: start; }
.split.center { align-items: center; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } }
.prose p { color: var(--muted); }
.prose p strong { color: var(--heading); }
.sticky { position: sticky; top: calc(var(--header-h) + 24px); }

.panel { background: var(--surface); border: 1px solid var(--line); border-radius: 28px; padding: clamp(26px, 4vw, 44px); }
.panel-yellow { background: var(--accent-soft); border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); }

/* ---------- Testimonials ---------- */
.quote { display: flex; flex-direction: column; margin: 0; }
.quote blockquote { margin: 0 0 24px; color: var(--text); font-size: 1.04rem; flex: 1; }
.quote blockquote::before {
  content: "\201C"; display: block; font-family: var(--font-display); font-size: 4rem; line-height: .7; color: var(--accent); margin-bottom: .1em;
}
.person { display: flex; align-items: center; gap: 14px; }
.person img { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; flex: none; box-shadow: 0 0 0 3px var(--accent); }
.person strong { display: block; color: var(--heading); line-height: 1.2; }
.person span { font-size: .9rem; color: var(--muted); }

.feature-quote { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: clamp(24px, 4vw, 48px); align-items: center; }
.feature-quote img { width: clamp(120px, 16vw, 180px); aspect-ratio: 1; object-fit: cover; object-position: top; border-radius: 24px; border: 4px solid var(--accent); }
.feature-quote blockquote { margin: 0 0 1em; font-family: var(--font-display); font-size: clamp(1.25rem, 2.3vw, 1.75rem); line-height: 1.35; color: #fff; }
.feature-quote cite { font-style: normal; font-weight: 700; color: var(--accent); }
.feature-quote cite span { display: block; color: var(--on-deep); font-weight: 500; font-size: .95rem; }
@media (max-width: 640px) { .feature-quote { grid-template-columns: 1fr; } }

/* ---------- Client logo wall ---------- */
.logo-wall { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 18px; }
.logo-tile {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; min-height: 150px; padding: 24px 20px 18px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; color: #5a6479;
  font-size: .85rem; font-weight: 700; text-align: center; transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.logo-tile img { height: 56px; width: auto; max-width: 150px; object-fit: contain; }
.logo-tile:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: transparent; color: #14213d; }

/* ---------- CTA band ---------- */
.cta-band {
  position: relative; overflow: hidden; isolation: isolate; color: #e4ebff; border-radius: 34px; padding: clamp(36px, 6vw, 72px);
  background: linear-gradient(125deg, var(--brand-btn), var(--deep-2));
}
.cta-band::before { content: ""; position: absolute; width: 380px; aspect-ratio: 1; border-radius: 50%; background: rgba(255, 255, 255, .1); left: -140px; top: -220px; z-index: -1; }
.cta-band::after { content: ""; position: absolute; width: 340px; aspect-ratio: 1; border-radius: 50%; background: var(--accent); right: -110px; bottom: -190px; z-index: -1; }
.cta-band h2 { color: #fff; max-width: 18ch; }
.cta-band p { max-width: 52ch; font-size: 1.12rem; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 1.6em; }

/* ---------- Forms ---------- */
.field { display: flex; flex-direction: column; gap: 6px; }
.field label, .field .label { font-size: .86rem; font-weight: 700; color: var(--heading); }
.field .hint { font-weight: 500; color: var(--muted); font-size: .82rem; }
.input, .select, .textarea {
  width: 100%; padding: .85em 1em; border-radius: 14px; border: 1.5px solid var(--line); background: var(--surface); color: var(--text);
  transition: border-color .15s ease, box-shadow .15s ease, background-color .3s ease;
}
.input::placeholder, .textarea::placeholder { color: var(--muted); opacity: .8; }
.textarea { min-height: 150px; resize: vertical; }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px var(--brand-glow); }
.select { appearance: none; padding-right: 2.6em; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 22px) 55%, calc(100% - 16px) 55%; background-size: 6px 6px; background-repeat: no-repeat; }
input[type="file"].input { padding: .6em; }
input[type="file"]::file-selector-button { margin-right: 12px; border: 0; border-radius: 10px; padding: .5em .9em; font-weight: 700; cursor: pointer; background: var(--brand-soft); color: var(--brand); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 560px) { .form-grid { grid-template-columns: 1fr; } }
.seg { display: flex; gap: 8px; flex-wrap: wrap; }
.seg label { cursor: pointer; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg span { display: inline-block; padding: .6em 1.1em; border-radius: 999px; border: 1.5px solid var(--line); background: var(--surface); font-weight: 700; font-size: .95rem; transition: all .15s ease; }
.seg input:checked + span { background: var(--brand-btn); border-color: var(--brand-btn); color: #fff; }
.seg input:focus-visible + span { outline: 3px solid var(--brand); outline-offset: 3px; }
.form-status { margin-top: 14px; padding: 14px 16px; border-radius: 14px; font-weight: 600; display: none; }
.form-status.ok { display: block; background: #e3f7ea; color: #14532d; }
.form-status.err { display: block; background: #fde8e8; color: #8a1c1c; }

/* ---------- Sign in / register ---------- */
.auth { padding: clamp(40px, 7vw, 88px) 0; }
.auth-grid { display: grid; grid-template-columns: 1fr minmax(0, 480px); gap: clamp(28px, 6vw, 80px); align-items: start; }
.auth-copy h1 { font-size: clamp(2.1rem, 4.4vw, 3.2rem); }
.auth-copy .checks { margin-top: 1.6em; color: var(--muted); }
.auth-copy .checks strong { color: var(--heading); }
.auth-card { box-shadow: var(--shadow); }
.auth-alt { margin: 18px 0 0; text-align: center; font-weight: 600; }
.auth-alt.hint { font-weight: 500; font-size: .88rem; color: var(--muted); margin-top: 8px; }
.dialog-head .hint { font-size: .85rem; margin-top: 6px; }
@media (max-width: 860px) { .auth-grid { grid-template-columns: 1fr; } .auth-copy .checks { display: none; } }

.consent { margin: 0 0 12px; font-size: .85rem; color: var(--muted); }
.footer-bottom a { color: inherit; }
.legal { max-width: 78ch; }
.legal h2 { font-size: 1.35rem; margin: 1.8em 0 .5em; }
.legal h2:first-child { margin-top: 0; }

/* ---------- Jobs ---------- */
.job-tools { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 12px; margin-bottom: 14px; padding: 20px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); margin-top: -76px; position: relative; z-index: 2; }
@media (max-width: 760px) { .job-tools { grid-template-columns: 1fr; } }
.job-count { color: var(--muted); font-weight: 600; margin: 22px 0 18px; }
.job-list { display: grid; gap: 14px; }

.job { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); transition: box-shadow .2s ease, border-color .2s ease, background-color .3s ease; }
.job:hover, .job[open] { box-shadow: var(--shadow); border-color: color-mix(in srgb, var(--brand) 35%, var(--line)); }
.job summary { list-style: none; cursor: pointer; padding: 22px 26px; display: grid; grid-template-columns: 1fr auto; gap: 8px 20px; align-items: center; border-radius: var(--radius); }
.job summary::-webkit-details-marker { display: none; }
.job-title { font-family: var(--font-display); font-size: 1.3rem; font-weight: 600; color: var(--heading); line-height: 1.2; margin: 0; }
.job-meta { grid-column: 1; display: flex; flex-wrap: wrap; gap: 6px 18px; color: var(--muted); font-size: .93rem; font-weight: 600; }
.job-meta span { display: inline-flex; align-items: center; gap: .4em; }
.job-meta svg { width: 1.05em; height: 1.05em; color: var(--brand); flex: none; }
.job-tag { display: inline-block; padding: .2em .75em; border-radius: 999px; background: var(--brand-soft); color: var(--brand); font-size: .78rem; font-weight: 800; letter-spacing: .03em; margin-bottom: 8px; }
.job-toggle {
  grid-column: 2; grid-row: 1 / span 2; width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center;
  background: var(--surface-2); border: 1px solid var(--line); color: var(--heading); transition: transform .2s ease, background-color .2s ease;
}
.job-toggle svg { width: 18px; height: 18px; }
.job[open] .job-toggle { transform: rotate(180deg); background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.job-body { padding: 4px 26px 28px; border-top: 1px solid var(--line); }
.job-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 14px 24px; padding: 22px 0; margin: 0; }
.job-facts dt { font-size: .76rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.job-facts dd { margin: 2px 0 0; font-weight: 600; color: var(--heading); }
.job-body h4 { margin: 1.4em 0 .6em; }
.job-body p { color: var(--muted); }
.bullets li { position: relative; padding-left: 1.3em; margin-bottom: .4em; }
.bullets li::before { content: ""; position: absolute; left: .15em; top: .68em; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
.job-apply { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 26px; padding-top: 22px; border-top: 1px dashed var(--line); }
.empty { text-align: center; padding: 56px 20px; border: 2px dashed var(--line); border-radius: var(--radius); color: var(--muted); }

.job-mini { display: flex !important; flex-direction: column; height: 100%; }
.job-mini h3 { font-size: 1.22rem; margin-bottom: .6em; }
.job-mini .job-meta { flex-direction: column; gap: 6px; flex: 1; }
.job-mini .job-tag { align-self: flex-start; }

/* ---------- Dialog (apply form) ---------- */
.dialog {
  width: min(640px, calc(100% - 24px)); max-height: calc(100dvh - 24px); padding: 0; border: 1px solid var(--line); border-radius: 26px;
  background: var(--surface); color: var(--text); box-shadow: 0 40px 100px rgba(0, 0, 0, .4); overflow: auto;
}
.dialog::backdrop { background: rgba(4, 9, 22, .62); backdrop-filter: blur(4px); }
.dialog[open] { animation: pop .25s ease; }
@keyframes pop { from { opacity: 0; transform: translateY(16px) scale(.98); } }
.dialog-head { position: sticky; top: 0; z-index: 1; display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding: 24px 28px 18px; background: var(--surface); border-bottom: 1px solid var(--line); }
.dialog-head h2 { font-size: 1.5rem; margin: 0; }
.dialog-head p { margin: 4px 0 0; color: var(--muted); font-size: .95rem; }
.dialog-body { padding: 22px 28px 28px; }

/* ---------- Acts list ---------- */
.acts { columns: 2; column-gap: 40px; }
.acts li { break-inside: avoid; padding: .7em 0 .7em 1.6em; border-bottom: 1px solid rgba(255, 255, 255, .1); position: relative; color: #e2e8f7; font-size: .98rem; }
.acts li::before { content: "§"; position: absolute; left: 0; color: var(--accent); font-weight: 800; }
.acts li span { color: color-mix(in srgb, var(--on-deep) 70%, transparent); font-variant-numeric: tabular-nums; }
@media (max-width: 760px) { .acts { columns: 1; } }

/* ---------- Director note ---------- */
.director { display: grid; grid-template-columns: 220px 1fr; gap: clamp(24px, 5vw, 56px); align-items: center; }
.director img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 24px; box-shadow: 14px 14px 0 var(--accent); }
.director figure { margin: 0; }
.director blockquote { margin: 0 0 1.2em; font-family: var(--font-display); font-size: clamp(1.2rem, 2.2vw, 1.6rem); line-height: 1.4; color: var(--heading); }
.director cite { font-style: normal; font-weight: 800; color: var(--heading); }
.director cite span { display: block; font-weight: 500; color: var(--muted); }
@media (max-width: 700px) { .director { grid-template-columns: 1fr; } .director img { max-width: 200px; } }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(24px, 4vw, 48px); align-items: start; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-list { display: grid; gap: 14px; }
.contact-item { display: flex; gap: 16px; align-items: flex-start; padding: 20px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); text-decoration: none; color: var(--text); transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
a.contact-item:hover { transform: translateY(-3px); box-shadow: var(--shadow); color: var(--text); border-color: color-mix(in srgb, var(--brand) 35%, var(--line)); }
.contact-item .icon { margin: 0; width: 46px; height: 46px; border-radius: 14px; flex: none; }
.contact-item .icon svg { width: 22px; height: 22px; }
.contact-item .icon.wa { background: #dcf8e7; color: #128c4a; }
.contact-item small { display: block; font-size: .76rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.contact-item strong { color: var(--heading); font-size: 1.05rem; line-height: 1.4; display: block; }
.map { border: 0; width: 100%; height: 420px; border-radius: 28px; display: block; }
:root[data-theme="dark"] .map { filter: invert(.92) hue-rotate(180deg) saturate(.8); }

/* ---------- Footer ---------- */
.site-footer { position: relative; background: var(--deep); color: color-mix(in srgb, var(--on-deep) 85%, transparent); padding: clamp(56px, 7vw, 88px) 0 28px; font-size: .98rem; }
.site-footer::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 4px; background: linear-gradient(90deg, var(--brand-btn), var(--accent), var(--brand-btn)); }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.3fr; gap: 40px; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer h4 { color: #fff; font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 1.2em; }
.site-footer a { color: var(--on-deep); text-decoration: none; }
.site-footer a:hover { color: var(--accent); }
.site-footer li { margin-bottom: .6em; }
.site-footer .brand, .site-footer .brand:hover { color: #fff; margin-bottom: 18px; }
.site-footer .brand-tag { color: var(--on-deep); }
.footer-bottom { margin-top: 48px; padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, .12); display: flex; flex-wrap: wrap; gap: 10px 24px; justify-content: space-between; font-size: .88rem; }

.wa-fab {
  position: fixed; right: 20px; bottom: 20px; z-index: 90; width: 58px; height: 58px; border-radius: 50%;
  background: #25d366; color: #fff; display: grid; place-items: center; box-shadow: 0 10px 28px rgba(0, 0, 0, .25);
  transition: transform .15s ease;
}
.wa-fab::before { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid #25d366; animation: ping 2.6s ease-out infinite; }
@keyframes ping { 0% { transform: scale(1); opacity: .7; } 70%, 100% { transform: scale(1.7); opacity: 0; } }
.wa-fab:hover { transform: scale(1.08); color: #fff; }
.wa-fab svg { width: 30px; height: 30px; }

/* ---------- Motion ---------- */
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s cubic-bezier(.2, .7, .2, 1); }
.js .reveal.is-in { opacity: 1; transform: none; }
.js .reveal.d1 { transition-delay: .08s; }
.js .reveal.d2 { transition-delay: .16s; }
.js .reveal.d3 { transition-delay: .24s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
  .marquee-track { flex-wrap: wrap; justify-content: center; width: auto; }
  .marquee-track [aria-hidden="true"] { display: none; }
}

@media print {
  .site-header, .site-footer, .wa-fab, .cta-band, .job-tools, .progress { display: none; }
  body { background: #fff; }
}
