/* ============================================================
   Talentory - control-room design system (dark + light)
   ============================================================ */

:root {
  --font-display: "Space Grotesk", "Inter", ui-sans-serif, system-ui, sans-serif;
  --font-body: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, "SF Mono", Menlo, monospace;
  --maxw: 1180px;
  --radius: 4px;
  --radius-lg: 8px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---- Dark (control room) - default ---- */
:root,
:root[data-theme="dark"] {
  --bg: #0b1416;
  --bg-band: #0e1c1f;
  --panel: #10201f;
  --panel-2: #142726;
  --ink: #e9eff0;
  --muted: #9aabad;
  --line: rgba(180, 220, 220, 0.12);
  --line-strong: rgba(180, 220, 220, 0.22);
  --accent: #24b6a7;
  --accent-ink: #061513;
  --signal-live: #38d6c7;
  --accent-strong: #f2914a;
  --gold: #d3ac52;
  --field: #0f2326;
  --hero-scrim: rgba(6, 12, 13, 0.55);
  --shadow: 0 24px 60px -30px rgba(0, 0, 0, 0.8);
  --grid-line: rgba(120, 200, 195, 0.06);
}

/* ---- Light (facilities daylight) ---- */
:root[data-theme="light"] {
  --bg: #f5f7f5;
  --bg-band: #eef2ed;
  --panel: #ffffff;
  --panel-2: #f4f7f4;
  --ink: #101619;
  --muted: #55636a;
  --line: rgba(16, 25, 28, 0.12);
  --line-strong: rgba(16, 25, 28, 0.2);
  --accent: #10897f;
  --accent-ink: #ffffff;
  --signal-live: #12897f;
  --accent-strong: #cf6626;
  --gold: #a9832b;
  --field: #0f2326;
  --hero-scrim: rgba(6, 12, 13, 0.35);
  --shadow: 0 24px 50px -32px rgba(15, 35, 38, 0.35);
  --grid-line: rgba(16, 60, 58, 0.05);
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  transition: background 0.4s var(--ease), color 0.4s var(--ease);
}

a { color: inherit; text-decoration: none; }

h1, h2, h3 { font-family: var(--font-display); }

img { max-width: 100%; }

::selection { background: var(--accent); color: var(--accent-ink); }

:focus-visible {
  outline: 2px solid var(--signal-live);
  outline-offset: 3px;
  border-radius: 2px;
}

.skip-link {
  position: fixed;
  left: 12px;
  top: -60px;
  z-index: 200;
  background: var(--accent);
  color: var(--accent-ink);
  padding: 10px 16px;
  border-radius: var(--radius);
  font-weight: 700;
  transition: top 0.2s var(--ease);
}
.skip-link:focus { top: 12px; }

/* ---- Header ---------------------------------------------------------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  display: flex;
  align-items: center;
  gap: 20px;
  justify-content: space-between;
  padding: 14px clamp(18px, 5vw, 64px);
  background: color-mix(in oklab, var(--bg) 78%, transparent);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease), padding 0.3s var(--ease);
}
.site-header.is-scrolled {
  border-bottom-color: var(--line);
  padding-top: 10px;
  padding-bottom: 10px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.01em;
  font-size: 1.12rem;
}
.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: var(--radius);
  background: var(--field);
  color: var(--signal-live);
  border: 1px solid var(--line-strong);
}
.brand-word { color: var(--ink); }

.site-nav {
  display: flex;
  gap: clamp(14px, 2.4vw, 30px);
  font-size: 0.92rem;
  font-weight: 500;
  margin-left: auto;
}
.site-nav a {
  color: var(--muted);
  position: relative;
  padding: 4px 0;
  transition: color 0.2s var(--ease);
}
.site-nav a::after {
  content: "";
  position: absolute;
  left: 0; bottom: -2px;
  width: 0; height: 2px;
  background: var(--accent);
  transition: width 0.25s var(--ease);
}
.site-nav a:hover { color: var(--ink); }
.site-nav a:hover::after { width: 100%; }

.header-actions { display: flex; align-items: center; gap: 12px; }

.theme-toggle {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px; height: 38px;
  border-radius: var(--radius);
  border: 1px solid var(--line-strong);
  background: var(--panel);
  color: var(--ink);
  cursor: pointer;
  transition: border-color 0.2s var(--ease), transform 0.2s var(--ease);
}
.theme-toggle:hover { border-color: var(--accent); transform: translateY(-1px); }
.theme-toggle .icon-sun { display: none; }
.theme-toggle .icon-moon { display: block; }
:root[data-theme="light"] .theme-toggle .icon-sun { display: block; }
:root[data-theme="light"] .theme-toggle .icon-moon { display: none; }

/* Tooltip for the toggle */
[data-tooltip] { position: relative; }
[data-tooltip]::before {
  content: attr(data-tooltip);
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  white-space: nowrap;
  background: var(--field);
  color: #eef7f6;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.02em;
  padding: 5px 8px;
  border-radius: var(--radius);
  border: 1px solid var(--line-strong);
  opacity: 0;
  transform: translateY(-4px);
  pointer-events: none;
  transition: opacity 0.18s var(--ease), transform 0.18s var(--ease);
  z-index: 120;
}
[data-tooltip]:hover::before,
[data-tooltip]:focus-visible::before { opacity: 1; transform: translateY(0); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 40px; height: 38px;
  align-items: center;
  justify-content: center;
  background: var(--panel);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  cursor: pointer;
}
.nav-toggle span {
  width: 18px; height: 2px;
  background: var(--ink);
  transition: transform 0.2s var(--ease), opacity 0.2s var(--ease);
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-nav {
  position: fixed;
  top: 64px; left: 0; right: 0;
  z-index: 99;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 16px clamp(18px, 5vw, 64px) 24px;
  background: color-mix(in oklab, var(--bg) 96%, transparent);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--line);
  transform: translateY(-12px);
  opacity: 0;
  transition: transform 0.24s var(--ease), opacity 0.24s var(--ease);
}
.mobile-nav.is-open { transform: translateY(0); opacity: 1; }
.mobile-nav a {
  padding: 12px 4px;
  color: var(--ink);
  font-weight: 500;
  border-bottom: 1px solid var(--line);
}
.mobile-nav a.button { border: none; margin-top: 10px; }

/* ---- Buttons --------------------------------------------------------- */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 12px 22px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.98rem;
  cursor: pointer;
  transition: transform 0.18s var(--ease), background 0.2s var(--ease), box-shadow 0.2s var(--ease), border-color 0.2s var(--ease);
}
.button:hover { transform: translateY(-2px); }
.button:active { transform: translateY(0); }
.button.primary {
  background: var(--accent);
  color: var(--accent-ink);
  box-shadow: 0 10px 26px -14px color-mix(in oklab, var(--accent) 80%, black);
}
.button.primary:hover { box-shadow: 0 16px 34px -14px color-mix(in oklab, var(--accent) 80%, black); }
.button.secondary {
  background: transparent;
  border-color: var(--line-strong);
  color: var(--ink);
}
.button.secondary:hover { border-color: var(--accent); }
.button.ghost {
  background: transparent;
  border-color: var(--line-strong);
  color: var(--ink);
}
.button.ghost:hover { border-color: var(--accent); }
.button.compact { min-height: 40px; padding: 9px 16px; font-size: 0.9rem; }
.button.tiny { min-height: 34px; padding: 7px 14px; font-size: 0.82rem; }
.button.wide { width: 100%; }
.button.is-loading { opacity: 0.7; pointer-events: none; }
.button:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }

@media (max-width: 720px) {
  .header-actions .button.compact { display: none; }
}

/* ---- Status dot ------------------------------------------------------ */
.status-dot {
  display: inline-block;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--signal-live);
  box-shadow: 0 0 0 0 color-mix(in oklab, var(--signal-live) 70%, transparent);
  margin-right: 8px;
  vertical-align: middle;
  animation: pulse-dot 2.4s var(--ease) infinite;
}
@keyframes pulse-dot {
  0% { box-shadow: 0 0 0 0 color-mix(in oklab, var(--signal-live) 55%, transparent); }
  70% { box-shadow: 0 0 0 7px transparent; }
  100% { box-shadow: 0 0 0 0 transparent; }
}

/* ---- Hero ------------------------------------------------------------ */
.hero {
  position: relative;
  min-height: 94vh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}
.hero-image,
.hero-overlay,
.hero-particles,
.hero-grid {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.hero-image { object-fit: cover; object-position: center; }
.hero-overlay {
  background:
    linear-gradient(90deg, rgba(6, 14, 15, 0.95) 0%, rgba(6, 14, 15, 0.78) 40%, rgba(6, 14, 15, 0.25) 78%),
    linear-gradient(0deg, rgba(6, 14, 15, 0.55), rgba(6, 14, 15, 0.1));
}
.hero-grid {
  background-image:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(90deg, black 0%, black 45%, transparent 85%);
  -webkit-mask-image: linear-gradient(90deg, black 0%, black 45%, transparent 85%);
}
.hero-particles { pointer-events: none; }
.hero-content {
  position: relative;
  z-index: 2;
  color: #fff;
  width: 100%;
  padding: clamp(120px, 16vh, 180px) clamp(18px, 5vw, 64px) clamp(56px, 8vh, 88px);
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-mono);
  color: var(--signal-live);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin: 0 0 16px;
}
.hero .eyebrow { color: var(--signal-live); }
.hero h1 {
  font-size: clamp(2.6rem, 7vw, 6.2rem);
  line-height: 1.06;
  letter-spacing: -0.02em;
  font-weight: 700;
  margin: 0;
  max-width: 15ch;
}
.hero-copy {
  color: rgba(255, 255, 255, 0.84);
  font-size: clamp(1.05rem, 2vw, 1.32rem);
  margin: 24px 0 0;
  max-width: 620px;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}
/* Hero sits over a photo in both themes - force legible button contrast */
.hero .button.secondary {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.42);
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(4px);
}
.hero .button.secondary:hover { border-color: var(--signal-live); background: rgba(255, 255, 255, 0.14); }

.signal-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin: 52px 0 0;
  padding-top: 26px;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
}
.signal-row div { min-width: 0; }
.signal-row dt {
  font-family: var(--font-display);
  color: #fff;
  font-size: clamp(1.9rem, 4.4vw, 2.9rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.02em;
}
.signal-row dd {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.92rem;
  margin: 10px 0 0;
}

/* ---- Sections -------------------------------------------------------- */
.section,
.section-band {
  padding: clamp(64px, 8vw, 112px) clamp(18px, 5vw, 64px);
}
.section-band { background: var(--bg-band); }
.section-inner { max-width: var(--maxw); margin: 0 auto; }
.split {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: clamp(32px, 6vw, 84px);
  align-items: start;
}
.section-heading { max-width: 820px; }
h2 {
  font-size: clamp(2rem, 4.4vw, 4rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
  font-weight: 700;
  margin: 0;
  max-width: 20ch;
}
.lead {
  color: var(--muted);
  font-size: 1.1rem;
  margin: 20px 0 26px;
  max-width: 46ch;
}
.copy-stack { display: grid; gap: 18px; }
.copy-stack p { color: var(--muted); font-size: 1.08rem; margin: 0; }

/* ---- Role cards ------------------------------------------------------ */
.role-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 44px;
}
.role-card {
  display: flex;
  flex-direction: column;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 26px;
  min-height: 300px;
  position: relative;
  overflow: hidden;
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.role-card::before {
  content: "";
  position: absolute;
  left: 0; top: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--accent-strong));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s var(--ease);
}
.role-card:hover {
  transform: translateY(-4px);
  border-color: var(--line-strong);
  box-shadow: var(--shadow);
}
.role-card:hover::before { transform: scaleX(1); }
.role-code {
  font-family: var(--font-mono);
  color: var(--gold);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  display: block;
  margin-bottom: 48px;
}
.role-card h3,
.process-item h3 {
  font-size: 1.32rem;
  line-height: 1.18;
  letter-spacing: -0.01em;
  margin: 0 0 12px;
}
.role-card p,
.process-item p { color: var(--muted); margin: 0; }
.tag-list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 18px 0 0;
  padding: 0;
}
.tag-list li {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.03em;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 100px;
  padding: 4px 10px;
}

/* ---- Process --------------------------------------------------------- */
.process {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin: 44px 0 0;
  counter-reset: step;
}
.process-item {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 24px;
  min-height: 260px;
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease);
}
.process-item:hover { transform: translateY(-4px); border-color: var(--line-strong); }
.process-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px; height: 38px;
  border-radius: var(--radius);
  background: var(--field);
  color: var(--signal-live);
  font-family: var(--font-mono);
  font-weight: 600;
  border: 1px solid var(--line-strong);
  margin-bottom: 44px;
}

/* ---- Candidates / passport ------------------------------------------ */
.passport {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 8px 24px 12px;
  box-shadow: var(--shadow);
}
.passport-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 0 16px;
  border-bottom: 1px solid var(--line-strong);
}
.passport-label {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.passport-verified {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  color: var(--signal-live);
}
.passport-row {
  display: grid;
  grid-template-columns: 0.5fr 1fr;
  gap: 18px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}
.passport-row:last-child { border-bottom: none; }
.passport-row span { color: var(--muted); font-size: 0.94rem; }
.passport-row strong { font-size: 1.02rem; }

/* ---- Proof ----------------------------------------------------------- */
.proof-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 44px;
}
.proof-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease);
}
.proof-card:hover { transform: translateY(-4px); border-color: var(--accent); }
.proof-stat {
  font-family: var(--font-display);
  font-size: 2.6rem;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
}
.proof-copy { color: var(--ink); font-size: 1rem; }
.proof-source {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  color: var(--muted);
  margin-top: auto;
}

/* ---- Contact --------------------------------------------------------- */
.contact { background: var(--field); color: #eef7f6; }
.contact h2 { color: #fff; }
.contact .eyebrow { color: var(--signal-live); }
.contact .lead { color: rgba(238, 247, 246, 0.78); }
.contact-points {
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
  display: grid;
  gap: 12px;
}
.contact-points li {
  position: relative;
  padding-left: 26px;
  color: rgba(238, 247, 246, 0.86);
}
.contact-points li::before {
  content: "";
  position: absolute;
  left: 0; top: 8px;
  width: 12px; height: 7px;
  border-left: 2px solid var(--signal-live);
  border-bottom: 2px solid var(--signal-live);
  transform: rotate(-45deg);
}
.contact-direct { color: rgba(238, 247, 246, 0.7); font-size: 0.95rem; }
.contact-direct a { color: var(--signal-live); text-decoration: underline; text-underline-offset: 3px; }

.contact-card {
  background: var(--panel);
  color: var(--ink);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
  padding: clamp(22px, 3vw, 32px);
  box-shadow: var(--shadow);
  position: sticky;
  top: 96px;
}
.contact-form { display: grid; gap: 16px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: grid; gap: 6px; }
.field label { font-size: 0.86rem; font-weight: 600; color: var(--ink); }
.req { color: var(--accent-strong); margin-left: 2px; }
.field input,
.field select,
.field textarea {
  width: 100%;
  background: var(--panel-2);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 0.98rem;
  padding: 12px 14px;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.field textarea { resize: vertical; min-height: 96px; }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px color-mix(in oklab, var(--accent) 25%, transparent);
}
.field input[aria-invalid="true"],
.field textarea[aria-invalid="true"] { border-color: var(--accent-strong); }
.field-error { color: var(--accent-strong); font-size: 0.8rem; margin: 0; min-height: 1em; }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form-status { font-size: 0.9rem; margin: 4px 0 0; min-height: 1.2em; }
.form-status.is-ok { color: var(--accent); }
.form-status.is-error { color: var(--accent-strong); }
.form-fineprint { font-size: 0.8rem; color: var(--muted); margin: 0; }
.form-fineprint a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }

/* ---- Footer ---------------------------------------------------------- */
.footer {
  background: color-mix(in oklab, var(--bg) 82%, black);
  border-top: 1px solid var(--line);
  padding: clamp(48px, 6vw, 72px) clamp(18px, 5vw, 64px) 28px;
  color: var(--muted);
}
.footer-inner {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 40px;
}
.footer-brand p { color: var(--muted); font-size: 0.96rem; margin: 16px 0 0; max-width: 42ch; }
.footer-contact a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.footer-col { display: flex; flex-direction: column; gap: 10px; }
.footer-col h3 {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink);
  margin: 0 0 6px;
}
.footer-col a { color: var(--muted); font-size: 0.94rem; transition: color 0.2s var(--ease); }
.footer-col a:hover { color: var(--accent); }
.footer-base {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 40px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  font-size: 0.86rem;
}
.footer-status { display: inline-flex; align-items: center; font-family: var(--font-mono); font-size: 0.76rem; }

/* ---- Cookie banner --------------------------------------------------- */
.cookie-banner {
  position: fixed;
  left: 16px; right: 16px; bottom: 16px;
  z-index: 160;
  max-width: 560px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: space-between;
  background: var(--panel);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 14px 16px;
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.28s var(--ease), transform 0.28s var(--ease);
}
.cookie-banner.is-visible { opacity: 1; transform: translateY(0); }
.cookie-banner-text { font-size: 0.85rem; color: var(--muted); margin: 0; flex: 1 1 240px; }
.cookie-banner-text a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }
.cookie-banner-actions { display: flex; align-items: center; gap: 8px; }
.cookie-link { font-size: 0.82rem; color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.cookie-link:hover { color: var(--accent); }

/* ---- Scroll reveal (progressive enhancement) ------------------------ */
/* Only hide when JS is present to reveal it; no-JS / failed-JS shows all. */
html.js [data-reveal] {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
  will-change: opacity, transform;
}
html.js [data-reveal].is-revealed { opacity: 1; transform: none; }

/* ---- Legal / content pages ------------------------------------------ */
.page-hero {
  padding: clamp(120px, 16vh, 180px) clamp(18px, 5vw, 64px) clamp(30px, 5vw, 56px);
  border-bottom: 1px solid var(--line);
  background: var(--bg-band);
}
.page-hero .eyebrow { color: var(--accent); }
.page-hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 0;
  max-width: 22ch;
}
.page-hero .updated { font-family: var(--font-mono); font-size: 0.8rem; color: var(--muted); margin-top: 14px; }
.prose {
  max-width: 760px;
  margin: 0 auto;
  padding: clamp(40px, 6vw, 72px) clamp(18px, 5vw, 32px) clamp(64px, 8vw, 96px);
}
.prose h2 {
  font-size: clamp(1.4rem, 3vw, 1.9rem);
  margin: 42px 0 14px;
  scroll-margin-top: 90px;
}
.prose h3 { font-size: 1.2rem; margin: 26px 0 10px; }
.prose p, .prose li { color: var(--muted); font-size: 1.02rem; }
.prose p { margin: 0 0 16px; }
.prose ul, .prose ol { padding-left: 22px; margin: 0 0 18px; display: grid; gap: 8px; }
.prose a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.prose strong { color: var(--ink); }
.prose .callout {
  background: var(--panel);
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius);
  padding: 16px 20px;
  margin: 0 0 22px;
}
.prose .callout p:last-child { margin-bottom: 0; }
.toc {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 20px 24px;
  margin: 0 0 36px;
}
.toc h2 { font-size: 0.8rem; font-family: var(--font-mono); letter-spacing: 0.08em; text-transform: uppercase; margin: 0 0 12px; color: var(--muted); }
.toc ol { columns: 2; gap: 24px; margin: 0; }
.toc a { font-size: 0.92rem; }

/* ---- Cookie preferences page ---------------------------------------- */
.pref-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 22px 24px;
  margin: 0 0 16px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}
.pref-card h3 { margin: 0 0 6px; font-size: 1.1rem; }
.pref-card p { margin: 0; color: var(--muted); font-size: 0.94rem; }
.pref-examples { font-family: var(--font-mono); font-size: 0.74rem; color: var(--muted); margin-top: 10px !important; }
.switch { position: relative; display: inline-flex; flex: 0 0 auto; width: 52px; height: 30px; }
.switch input { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.switch .track {
  position: absolute; inset: 0;
  background: var(--panel-2);
  border: 1px solid var(--line-strong);
  border-radius: 100px;
  transition: background 0.2s var(--ease), border-color 0.2s var(--ease);
}
.switch .track::after {
  content: "";
  position: absolute;
  top: 3px; left: 3px;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--muted);
  transition: transform 0.2s var(--ease), background 0.2s var(--ease);
}
.switch input:checked + .track { background: color-mix(in oklab, var(--accent) 30%, transparent); border-color: var(--accent); }
.switch input:checked + .track::after { transform: translateX(22px); background: var(--accent); }
.switch input:disabled + .track { opacity: 0.55; }
.switch input:focus-visible + .track { outline: 2px solid var(--signal-live); outline-offset: 2px; }
.pref-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 26px 0 18px; }
.ccpa-box {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 22px 24px;
  margin: 28px 0;
}
.ccpa-box label { display: flex; align-items: flex-start; gap: 12px; cursor: pointer; }
.ccpa-box input[type="checkbox"] { margin-top: 4px; width: 18px; height: 18px; accent-color: var(--accent); }
.pref-toast {
  position: fixed;
  left: 50%; bottom: 24px;
  transform: translateX(-50%) translateY(16px);
  background: var(--accent);
  color: var(--accent-ink);
  padding: 12px 22px;
  border-radius: var(--radius);
  font-weight: 600;
  box-shadow: var(--shadow);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s var(--ease), transform 0.25s var(--ease);
  z-index: 170;
}
.pref-toast.is-visible { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ---- Hidden AI-crawler note (visually blended by design) ------------- */
.llm-note {
  color: var(--bg);
  background: var(--bg);
  font-size: 0.72rem;
  line-height: 1.4;
  user-select: none;
  border: none;
  margin: 40px 0 0;
}

/* ---- Responsive ------------------------------------------------------ */
@media (max-width: 960px) {
  .split { grid-template-columns: 1fr; }
  .role-grid,
  .proof-grid { grid-template-columns: 1fr 1fr; }
  .process { grid-template-columns: 1fr 1fr; }
  .contact-card { position: static; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 720px) {
  .site-nav { display: none; }
  .nav-toggle { display: inline-flex; }
  .signal-row { grid-template-columns: 1fr 1fr; }
  .toc ol { columns: 1; }
}

@media (max-width: 560px) {
  .hero { min-height: 92vh; }
  .role-grid,
  .proof-grid,
  .process,
  .signal-row { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
  .footer-base { flex-direction: column; align-items: flex-start; }
  .cookie-banner { flex-direction: column; align-items: stretch; }
  .cookie-banner-actions { justify-content: flex-end; }
  .pref-card { flex-direction: column; }
}

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