/* ============================================================
   Global Talent Visa UK — "Aurora" dark design system
   Fresh 2026 build. Dark & luminous (Linear/Vercel/Framer tier).
   ============================================================ */

:root {
  /* Canvas */
  --bg: #06070e;
  --bg-2: #0a0c16;
  --bg-3: #0e1120;

  /* Surfaces */
  --surface: rgba(255, 255, 255, 0.035);
  --surface-2: rgba(255, 255, 255, 0.06);
  --surface-3: rgba(255, 255, 255, 0.09);
  --panel: rgba(16, 19, 34, 0.72);

  /* Lines */
  --border: rgba(255, 255, 255, 0.09);
  --border-2: rgba(255, 255, 255, 0.16);

  /* Text */
  --text: #eef1fb;
  --text-dim: #a7afca;
  --text-faint: #6f7792;

  /* Brand */
  --accent: #7c6bff;   /* violet-indigo */
  --accent-2: #22d3ee; /* cyan */
  --accent-3: #f472d0; /* magenta (used sparingly) */
  --grad: linear-gradient(115deg, #8b7bff 0%, #6366f1 40%, #22d3ee 100%);
  --grad-soft: linear-gradient(115deg, rgba(139,123,255,.18), rgba(34,211,238,.14));

  /* Effects */
  --glow: 0 0 0 1px rgba(124,107,255,.35), 0 18px 60px -12px rgba(124,107,255,.45);
  --shadow: 0 30px 80px -30px rgba(0, 0, 0, 0.8);
  --shadow-sm: 0 12px 32px -16px rgba(0, 0, 0, 0.7);
  --ring: 0 0 0 3px rgba(124, 107, 255, 0.45);

  --radius: 22px;
  --radius-md: 16px;
  --radius-sm: 11px;
  --maxw: 1180px;
  --nav-h: 68px;

  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-display: "Space Grotesk", "Inter", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  letter-spacing: -0.011em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* Aurora backdrop — fixed, subtle, alive */
body::before {
  content: "";
  position: fixed;
  inset: -20vh -10vw auto -10vw;
  height: 90vh;
  z-index: -2;
  background:
    radial-gradient(48vw 40vw at 18% 8%, rgba(124, 107, 255, 0.28), transparent 60%),
    radial-gradient(42vw 38vw at 88% 2%, rgba(34, 211, 238, 0.18), transparent 62%),
    radial-gradient(50vw 40vw at 60% 40%, rgba(99, 102, 241, 0.14), transparent 65%);
  filter: blur(10px);
  animation: aurora 22s ease-in-out infinite alternate;
}
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(120% 90% at 50% -10%, transparent 60%, rgba(6, 7, 14, 0.9) 100%),
    linear-gradient(180deg, transparent 0%, var(--bg) 70%);
  /* faint grid */
  background-image:
    linear-gradient(rgba(255,255,255,0.022) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.022) 1px, transparent 1px);
  background-size: 100% 100%, 64px 64px, 64px 64px;
  -webkit-mask-image: radial-gradient(120% 80% at 50% 0%, #000 40%, transparent 85%);
          mask-image: radial-gradient(120% 80% at 50% 0%, #000 40%, transparent 85%);
}
@keyframes aurora {
  0%   { transform: translate3d(0,0,0) scale(1); opacity: .9; }
  50%  { transform: translate3d(2%, 2%, 0) scale(1.06); opacity: 1; }
  100% { transform: translate3d(-2%, 1%, 0) scale(1.03); opacity: .85; }
}

::selection { background: rgba(124, 107, 255, 0.35); color: #fff; }

a { color: var(--accent-2); text-decoration: none; transition: color .15s ease; }
a:hover { color: #7ce7f5; }

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

:where(a, button, input, select, textarea, summary):focus-visible {
  outline: none;
  box-shadow: var(--ring);
  border-radius: 8px;
}

.container { width: min(var(--maxw), 92%); margin: 0 auto; }
.muted { color: var(--text-dim); }

.skip-link {
  position: fixed; left: 12px; top: 10px; z-index: 3000;
  padding: 10px 14px; border-radius: 10px;
  background: var(--bg-3); border: 1px solid var(--border-2); color: var(--text);
  transform: translateY(-160%); transition: transform .16s ease;
}
.skip-link:focus { transform: translateY(0); }

/* ---------- Disclaimer bar ---------- */
.disclaimer-bar {
  margin: 0; padding: 8px 16px; text-align: center;
  font-size: 0.8rem; color: var(--text-dim);
  background: rgba(255,255,255,0.02);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(6px);
}
.disclaimer-bar strong { color: var(--text); font-weight: 600; }

/* ---------- Navigation ---------- */
.top-nav {
  position: sticky; top: 12px; z-index: 1000;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  height: var(--nav-h); padding: 0 10px 0 18px;
  margin-top: 12px;
  border-radius: 999px;
  background: rgba(12, 14, 24, 0.6);
  border: 1px solid var(--border);
  backdrop-filter: blur(16px) saturate(140%);
  transition: box-shadow .25s ease, border-color .25s ease, background .25s ease;
}
.top-nav.is-scrolled {
  background: rgba(10, 12, 22, 0.82);
  border-color: var(--border-2);
  box-shadow: var(--shadow-sm);
}
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); font-weight: 700; }
.brand:hover { color: var(--text); }
.brand-mark {
  display: inline-grid; place-items: center;
  width: 34px; height: 34px; border-radius: 10px;
  font-family: var(--font-display); font-weight: 700; font-size: .82rem; letter-spacing: .02em;
  color: #fff; background: var(--grad);
  box-shadow: 0 8px 20px -6px rgba(124,107,255,.6), inset 0 0 0 1px rgba(255,255,255,.15);
}
.brand-word { font-size: .92rem; font-weight: 600; letter-spacing: -0.01em; }
.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a {
  color: var(--text-dim); font-size: .9rem; font-weight: 500;
  padding: 8px 12px; border-radius: 999px; transition: color .15s ease, background .15s ease;
}
.nav-links a:hover { color: var(--text); background: var(--surface-2); }
.nav-links a.is-active { color: var(--text); background: var(--surface-2); }

/* ---------- Buttons ---------- */
.btn {
  --btn-pad: 12px 20px;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: var(--btn-pad); border-radius: 999px;
  font-family: var(--font-body); font-weight: 600; font-size: .95rem; line-height: 1;
  border: 1px solid transparent; cursor: pointer; white-space: nowrap;
  transition: transform .16s cubic-bezier(.2,.7,.3,1), box-shadow .2s ease, background .2s ease, border-color .2s ease, color .2s ease;
}
.btn-sm { --btn-pad: 9px 15px; font-size: .86rem; }
.btn-primary {
  color: #fff;
  background: var(--grad);
  background-size: 140% 140%;
  box-shadow: 0 10px 30px -10px rgba(124,107,255,.65), inset 0 0 0 1px rgba(255,255,255,.16);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 18px 44px -12px rgba(124,107,255,.8), inset 0 0 0 1px rgba(255,255,255,.22); color:#fff; }
.btn-primary:active { transform: translateY(0); }
.btn-ghost {
  color: var(--text); background: var(--surface-2); border-color: var(--border-2);
  backdrop-filter: blur(6px);
}
.btn-ghost:hover { transform: translateY(-2px); background: var(--surface-3); border-color: rgba(255,255,255,.28); color: var(--text); }
.btn-block { width: 100%; }

/* ---------- Eyebrow / chips ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 12px 6px 10px; border-radius: 999px;
  font-size: .74rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase;
  color: var(--text-dim); background: var(--surface-2); border: 1px solid var(--border);
}
.eyebrow::before {
  content: ""; width: 7px; height: 7px; border-radius: 50%;
  background: var(--accent-2); box-shadow: 0 0 10px 1px var(--accent-2);
}

/* ---------- Typography scale ---------- */
h1, h2, h3 { font-family: var(--font-display); font-weight: 600; letter-spacing: -0.03em; line-height: 1.05; margin: 0; }
.h-xl { font-size: clamp(2.5rem, 6vw, 4.4rem); }
.h-lg { font-size: clamp(2rem, 4vw, 3rem); }
.gradient-text {
  background: linear-gradient(100deg, #b7aaff 10%, #7cc9ff 55%, #46e6f5 100%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.lead { font-size: clamp(1.05rem, 1.4vw, 1.22rem); color: var(--text-dim); line-height: 1.65; }

/* ---------- Section rhythm ---------- */
.section { padding: clamp(56px, 9vw, 120px) 0; position: relative; }
.section-head { max-width: 720px; margin: 0 0 clamp(28px, 4vw, 52px); }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head h2 { margin: 14px 0 12px; }
.section-head .lead { margin: 0; }

/* ---------- Hero ---------- */
.hero { padding: clamp(48px, 7vw, 96px) 0 clamp(40px, 6vw, 80px); }
.hero-grid {
  display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(28px, 4vw, 56px); align-items: center;
}
.hero h1 { margin: 18px 0 10px; }
.hero-tagline { font-family: var(--font-display); font-weight: 500; font-size: clamp(1.2rem, 2vw, 1.7rem); line-height: 1.2; margin: 0 0 16px; color: var(--text); letter-spacing: -0.02em; }
.hero .lead { max-width: 44ch; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 22px; }
.hero-trust { display: flex; flex-wrap: wrap; gap: 10px 20px; margin-top: 6px; }
.hero-trust span { display: inline-flex; align-items: center; gap: 8px; color: var(--text-dim); font-size: .88rem; }
.hero-trust svg { width: 17px; height: 17px; color: var(--accent-2); flex: none; }

/* Glowing funnel card on the right */
.hero-card {
  position: relative; border-radius: var(--radius);
  background: var(--panel); border: 1px solid var(--border-2);
  padding: 6px; backdrop-filter: blur(18px);
  box-shadow: var(--shadow);
}
.hero-card::before {
  content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1px; z-index: 0;
  pointer-events: none; /* decorative border must not intercept clicks on the form */
  background: conic-gradient(from 120deg, rgba(124,107,255,.7), rgba(34,211,238,.6), rgba(124,107,255,.7));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  opacity: .5;
}

/* ---------- Marquee trust strip ---------- */
.strip { border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); padding: 22px 0; background: rgba(255,255,255,0.012); }
.strip-inner { display: flex; align-items: center; gap: 44px; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee { display: inline-flex; gap: 44px; white-space: nowrap; min-width: max-content; animation: marquee 30s linear infinite; }
.marquee span { color: var(--text-faint); font-family: var(--font-display); font-size: 1.02rem; font-weight: 500; letter-spacing: .01em; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Cards / bento ---------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.card {
  position: relative; padding: 26px; border-radius: var(--radius-md);
  background: var(--surface); border: 1px solid var(--border);
  transition: transform .25s ease, border-color .25s ease, background .25s ease;
}
.card:hover { transform: translateY(-4px); border-color: var(--border-2); background: var(--surface-2); }
.card h3 { font-size: 1.2rem; margin: 0 0 8px; letter-spacing: -0.02em; }
.card p { color: var(--text-dim); margin: 0; font-size: .96rem; }

.icon-badge {
  display: inline-grid; place-items: center; width: 46px; height: 46px; margin-bottom: 16px;
  border-radius: 13px; color: #fff; background: var(--grad-soft);
  border: 1px solid var(--border-2);
}
.icon-badge svg { width: 22px; height: 22px; color: var(--accent-2); }

.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 18px; }
.bento > * { grid-column: span 2; }
.bento .span-3 { grid-column: span 3; }
.bento .span-4 { grid-column: span 4; }
.bento .span-6 { grid-column: span 6; }
.bento .tall { min-height: 240px; }

/* Sector grid */
.sectors { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.sector {
  position: relative; display: block; padding: 24px; border-radius: var(--radius-md);
  background: var(--surface); border: 1px solid var(--border); overflow: hidden;
  transition: transform .25s ease, border-color .25s ease;
}
.sector:hover { transform: translateY(-4px); border-color: var(--border-2); }
.sector::after {
  content: ""; position: absolute; inset: auto -30% -60% auto; width: 60%; height: 120%;
  background: radial-gradient(circle, rgba(124,107,255,.22), transparent 70%);
  opacity: 0; transition: opacity .3s ease;
}
.sector:hover::after { opacity: 1; }
.sector h3 { color: var(--text); font-size: 1.15rem; margin: 14px 0 6px; }
.sector p { color: var(--text-dim); font-size: .92rem; margin: 0 0 14px; }
.sector .go { display: inline-flex; align-items: center; gap: 6px; color: var(--accent-2); font-weight: 600; font-size: .9rem; }
.sector:hover .go { gap: 10px; }

/* ---------- Comparison ---------- */
.compare { border-radius: var(--radius-md); border: 1px solid var(--border); overflow: hidden; background: var(--surface); }
.compare table { width: 100%; border-collapse: collapse; }
.compare th, .compare td { padding: 16px 20px; text-align: left; border-bottom: 1px solid var(--border); font-size: .96rem; }
.compare thead th { font-family: var(--font-display); font-weight: 600; color: var(--text); background: rgba(255,255,255,0.02); }
.compare tbody td { color: var(--text-dim); }
.compare tbody td:first-child { color: var(--text); font-weight: 500; }
.compare .yes { color: #34e0c3; font-weight: 600; }
.compare .no { color: #ff8fb0; font-weight: 600; }
.compare tr:last-child td { border-bottom: none; }

/* ---------- Process timeline ---------- */
.process { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; counter-reset: step; }
.process .step {
  position: relative; padding: 24px 22px; border-radius: var(--radius-md);
  background: var(--surface); border: 1px solid var(--border);
}
.process .step::before {
  counter-increment: step; content: counter(step);
  display: grid; place-items: center; width: 34px; height: 34px; margin-bottom: 14px;
  border-radius: 10px; font-family: var(--font-display); font-weight: 700; color: #fff;
  background: var(--grad); box-shadow: 0 8px 18px -8px rgba(124,107,255,.7);
}
.process .step h3 { font-size: 1.05rem; margin: 0 0 6px; }
.process .step p { color: var(--text-dim); font-size: .92rem; margin: 0; }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 12px; max-width: 820px; }
.faq-item { border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--surface); overflow: hidden; transition: border-color .2s ease; }
.faq-item:hover { border-color: var(--border-2); }
.faq-item summary {
  list-style: none; cursor: pointer; padding: 18px 22px; font-weight: 600; font-family: var(--font-display);
  font-size: 1.02rem; display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+"; font-size: 1.4rem; color: var(--accent-2); font-weight: 400; line-height: 1; transition: transform .2s ease;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p { margin: 0 22px 20px; color: var(--text-dim); font-size: .96rem; }

/* ---------- Forms (funnel + contact) ---------- */
.funnel { padding: 22px; }
.funnel-head { margin-bottom: 14px; }
.funnel-head .eyebrow { margin-bottom: 10px; }
.funnel-head p { margin: 0; }
.funnel [data-step] { padding-top: 6px; }
#eligibilityForm [data-step] { display: none; }
#eligibilityForm [data-step]:first-of-type { display: block; }
.funnel-step-title { font-family: var(--font-display); font-size: 1.1rem; margin: 6px 0 14px; letter-spacing: -0.02em; }

label { display: block; margin: 0 0 6px; font-size: .86rem; font-weight: 500; color: var(--text-dim); }
input, select, textarea {
  width: 100%; padding: 12px 14px; border-radius: var(--radius-sm);
  background: rgba(255,255,255,0.04); border: 1px solid var(--border-2); color: var(--text);
  font-family: var(--font-body); font-size: .96rem;
  transition: border-color .16s ease, box-shadow .16s ease, background .16s ease;
}
input::placeholder, textarea::placeholder { color: var(--text-faint); }
input:focus, select:focus, textarea:focus {
  outline: none; border-color: rgba(124,107,255,.6);
  box-shadow: 0 0 0 4px rgba(124,107,255,.16); background: rgba(255,255,255,0.06);
}
textarea { min-height: 120px; resize: vertical; }
select {
  appearance: none; -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 20 20' fill='none'%3E%3Cpath d='M5 7.5L10 12.5L15 7.5' stroke='%2322d3ee' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: calc(100% - 14px) 50%; padding-right: 42px;
}
select option { background: var(--bg-3); color: var(--text); }
.form-grid { display: grid; gap: 12px; }
.funnel .label-spacer + label, .funnel label + input, .funnel label + select { margin-bottom: 12px; }

.progress { height: 6px; border-radius: 999px; background: rgba(255,255,255,0.08); overflow: hidden; margin: 4px 0 2px; }
.progress > span { display: block; height: 100%; width: 14%; background: var(--grad); border-radius: 999px; transition: width .35s cubic-bezier(.2,.7,.3,1); }

.funnel-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 18px; }
.funnel-actions .btn { min-width: 110px; }
.funnel-consent { font-size: .8rem; color: var(--text-faint); margin: 12px 0 0; }
.funnel-consent a { color: var(--accent-2); }

.funnel-step-nav { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin: 12px 0 4px; }
.funnel-step-dot {
  width: 30px; height: 30px; padding: 0; border-radius: 999px;
  border: 1px solid var(--border-2); background: var(--surface-2); color: var(--text-dim);
  font-size: .8rem; font-weight: 600; cursor: pointer; transition: all .15s ease;
}
.funnel-step-dot.is-done:not(:disabled) { border-color: rgba(34,211,238,.5); color: var(--text); }
.funnel-step-dot.is-active { background: var(--grad); color: #fff; border-color: transparent; box-shadow: 0 6px 16px -6px rgba(124,107,255,.7); }
.funnel-step-dot:disabled { opacity: .35; cursor: not-allowed; }

.form-honey { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.turnstile-wrap { margin: 14px 0 4px; min-height: 65px; }

.form-status { border-radius: var(--radius-sm); padding: 14px 16px; border: 1px solid var(--border); margin-top: 12px; background: var(--surface); }
.form-status--pending { border-color: rgba(34,211,238,.4); background: rgba(34,211,238,.06); }
.form-status--success { border-color: rgba(52,224,195,.5); background: rgba(52,224,195,.08); }
.form-status--warning { border-color: rgba(245,200,66,.5); background: rgba(245,200,66,.08); }
.form-status--error { border-color: rgba(255,120,150,.5); background: rgba(255,120,150,.08); }
.form-status__line { display: block; margin-top: 8px; font-size: .92rem; }
#eligibilityResult { color: var(--text); }

.disclaimer-inline {
  margin: 16px 0 0; padding: 12px 16px; border-radius: var(--radius-sm);
  border: 1px solid var(--border); border-left: 3px solid var(--accent-2);
  background: var(--surface); color: var(--text-dim); font-size: .9rem;
}

/* ---------- Contact block ---------- */
.contact-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 22px; align-items: start; }
.contact-card { padding: 30px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); }
.contact-card h2 { margin: 0 0 12px; }
.contact-form { padding: 30px; border-radius: var(--radius); background: var(--panel); border: 1px solid var(--border-2); }

/* ---------- CTA band ---------- */
.cta-band {
  position: relative; overflow: hidden; text-align: center;
  padding: clamp(44px, 6vw, 76px); border-radius: var(--radius);
  border: 1px solid var(--border-2); background: var(--bg-3);
}
.cta-band::before {
  content: ""; position: absolute; inset: 0; z-index: 0;
  background: radial-gradient(60% 120% at 50% 0%, rgba(124,107,255,.35), transparent 60%);
}
.cta-band > * { position: relative; }

/* ---------- Cookie consent ---------- */
.cookie-consent {
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 1300;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px;
  max-width: 720px; margin: 0 auto; padding: 16px 20px; border-radius: var(--radius-md);
  background: var(--panel); border: 1px solid var(--border-2); box-shadow: var(--shadow); backdrop-filter: blur(16px);
}
.cookie-consent__text { margin: 0; flex: 1 1 260px; font-size: .88rem; color: var(--text-dim); }
.cookie-consent__text a { color: var(--accent-2); }
.cookie-consent__actions { display: flex; gap: 8px; flex-shrink: 0; }

/* ---------- Footer ---------- */
.footer { margin-top: clamp(40px, 6vw, 80px); padding: clamp(40px, 5vw, 64px) 0 40px; border-top: 1px solid var(--border); }
.footer-grid { display: grid; grid-template-columns: 2.2fr 1fr 1fr; gap: 32px; }
.footer-about strong { display: block; font-size: 1rem; margin-bottom: 12px; }
.footer-about .brand { margin-bottom: 12px; }
.footer-about p { color: var(--text-dim); font-size: .88rem; margin: 8px 0; max-width: 46ch; }
.footer-identity .placeholder-note { color: var(--accent-3); font-style: italic; }
.footer-nav { display: flex; flex-direction: column; gap: 10px; }
.footer-nav strong { font-family: var(--font-display); font-size: .82rem; text-transform: uppercase; letter-spacing: .08em; color: var(--text-faint); margin-bottom: 2px; }
.footer-nav a { color: var(--text-dim); font-size: .92rem; }
.footer-nav a:hover { color: var(--text); }
.footer-copy { margin: 32px 0 0; padding-top: 22px; border-top: 1px solid var(--border); text-align: center; color: var(--text-faint); font-size: .84rem; }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s cubic-bezier(.2,.7,.3,1), transform .6s cubic-bezier(.2,.7,.3,1); }
.reveal.is-visible { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 940px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-card { order: 2; }
  .cards, .sectors, .process { grid-template-columns: 1fr 1fr; }
  .bento { grid-template-columns: repeat(2, 1fr); }
  .bento > *, .bento .span-3, .bento .span-4, .bento .span-6 { grid-column: span 2; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-about { grid-column: 1 / -1; }
}
/* Keep the nav pill on one line as it fills up: drop the wordmark, then the links */
@media (max-width: 1024px) { .brand-word { display: none; } }
@media (max-width: 900px) { .nav-links { display: none; } }

@media (max-width: 640px) {
  .nav-links { display: none; }
  .brand-word { display: inline; }
  .cards, .sectors, .process, .bento { grid-template-columns: 1fr; }
  .bento > *, .bento .span-3, .bento .span-4, .bento .span-6 { grid-column: span 1; }
  .footer-grid { grid-template-columns: 1fr; }
  .funnel-actions .btn { flex: 1; }
  .compare { overflow-x: auto; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  body::before { animation: none; }
  .marquee { animation: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
  * { transition-duration: .01ms !important; }
}

/* ============================================================
   Compatibility layer — sector (cluster) pages + legal pages
   Restyles the pre-existing content markup in the dark system.
   ============================================================ */

/* Alias legacy custom properties so inline var(--muted) etc. resolve */
:root {
  --muted: #a7afca;
  --card: rgba(255, 255, 255, 0.04);
  --card-2: rgba(255, 255, 255, 0.06);
  --bg-soft: #0a0c16;
}

/* Generic translucent surface used across sector/legal markup */
.glass {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  backdrop-filter: blur(10px);
}

/* Hero action button groups */
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 22px 0 0; }

/* Stats row (sector hero) */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 18px; }
.stat { padding: 15px 14px; text-align: center; border-radius: var(--radius-sm); background: var(--surface); border: 1px solid var(--border); }
.stat strong { font-family: var(--font-display); font-size: 1.02rem; display: inline-block; }
.stat span, .stat .muted { font-size: .8rem; }

/* Funnel-top section (sector pages lead with the funnel) */
.section--funnel-top { padding-top: clamp(18px, 3.5vw, 36px); padding-bottom: clamp(18px, 3vw, 30px); }
.section--funnel-top h2 { text-align: center; margin: 0 auto 16px; }
.section--funnel-top .funnel { max-width: 640px; margin: 0 auto; }

/* Content typography */
.content h2 { margin: 0 0 14px; }
.content h3 { margin: 26px 0 8px; font-size: 1.18rem; }
.content p { color: var(--text-dim); margin: 0 0 14px; }
.content ul { margin: 12px 0 18px; padding-left: 20px; }
.content li { margin: 7px 0; color: var(--text-dim); }
.content strong, .lead-strong { color: var(--text); font-weight: 600; }
.content a { color: var(--accent-2); }

/* Legal reading column */
.legal { max-width: 820px; }
.legal h1 { font-size: clamp(1.9rem, 3.4vw, 2.6rem); margin: 8px 0 14px; }
.legal h2 { font-size: clamp(1.2rem, 2vw, 1.5rem); margin: 28px 0 10px; }
.legal p, .legal li { color: var(--text-dim); }
.legal code { background: var(--surface-2); border: 1px solid var(--border); border-radius: 6px; padding: 1px 6px; font-size: .88em; }

/* Sector hero */
.cluster-hero { padding-top: clamp(20px, 4vw, 40px); }
.cluster-hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(22px, 3vw, 44px); align-items: start; }
.cluster-hero h1 { font-size: clamp(2rem, 4vw, 3.1rem); margin: 12px 0 14px; }
.cluster-breadcrumb { font-size: .86rem; color: var(--text-faint); margin: 0 0 12px; }
.cluster-breadcrumb a { color: var(--text-dim); }
.cluster-lead { font-size: clamp(1.02rem, 1.4vw, 1.18rem); color: var(--text-dim); margin: 0 0 16px; }
.cluster-pills { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0 0; }
.cluster-pill { font-size: .8rem; font-weight: 500; padding: 7px 13px; border-radius: 999px; border: 1px solid var(--border-2); background: var(--surface-2); color: var(--text-dim); }
.cluster-highlight { border-left: 3px solid var(--accent-2); padding: 6px 0 6px 18px; margin: 20px 0; }
.cluster-highlight p { margin: 0; color: var(--text-dim); }
.cluster-crosslinks { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.cluster-crosslinks .card h3 { margin: 0 0 6px; }
.cluster-crosslinks .card h3 a { color: var(--text); }
.cluster-crosslinks .card h3 a:hover { color: var(--accent-2); }

/* Ticker strip */
.section--cluster-ticker { padding: clamp(18px, 3vw, 30px) 0; }
.ticker { overflow: hidden; white-space: nowrap; padding: 15px 20px; }
.ticker p { margin: 0; display: inline-flex; gap: 30px; min-width: max-content; animation: marquee 30s linear infinite; }
.ticker span { color: var(--text-dim); font-family: var(--font-display); font-weight: 500; }
.ticker span::after { content: "·"; margin-left: 30px; color: var(--accent-2); }

/* Timeline (distinct from .process; no counter badge) */
.timeline { display: grid; gap: 12px; }
.timeline .step { padding: 16px 20px; border-radius: var(--radius-sm); background: var(--surface); border: 1px solid var(--border); color: var(--text-dim); }
.timeline .step strong { color: var(--text); font-weight: 600; }

@media (max-width: 900px) {
  .cluster-hero-grid { grid-template-columns: 1fr; }
  .cluster-hero .stats { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 640px) {
  .stats, .cluster-hero .stats { grid-template-columns: 1fr; }
}
