/* Design tokens — see design-system/holistic-pathways/MASTER.md (dark adaptation) */
:root {
  --ink: #0B0F1A;
  --ink-2: #121829;
  --line: rgba(237, 232, 223, 0.14);
  --paper: #EDE8DF;
  --muted: #A7ADBB;
  --gold: #D9A441;
  --gold-soft: rgba(217, 164, 65, 0.14);
  --navy: #1E3A8A;
  --error: #F08A7E;

  --font-display: "EB Garamond", Georgia, serif;
  --font-body: "Lato", system-ui, sans-serif;

  --s-1: 8px; --s-2: 16px; --s-3: 24px; --s-4: 40px; --s-5: 64px; --s-6: 96px;
  --radius: 4px;
  --ease: cubic-bezier(.2, .7, .1, 1);
  --z-canvas: 0; --z-content: 10; --z-nav: 100;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--paper);
  font: 400 17px/1.65 var(--font-body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
::selection { background: var(--gold); color: var(--ink); }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 2px; }

.skip-link {
  position: absolute; left: var(--s-2); top: -60px; z-index: 1000;
  background: var(--gold); color: var(--ink); padding: 10px 16px; font-weight: 700;
}
.skip-link:focus { top: var(--s-2); }

/* ---------- Background layers ---------- */
#scene {
  position: fixed; inset: 0; width: 100%; height: 100%;
  z-index: var(--z-canvas);
  background: radial-gradient(ellipse at 70% 40%, #16224a 0%, var(--ink) 60%);
}
.grain {
  position: fixed; inset: 0; z-index: 1; pointer-events: none; opacity: .06;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- Nav ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: var(--z-nav);
  display: flex; align-items: center; gap: var(--s-3);
  padding: var(--s-2) clamp(16px, 4vw, 48px);
  transition: background .3s var(--ease), backdrop-filter .3s;
}
.nav.scrolled { background: rgba(11, 15, 26, .78); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; margin-right: auto; min-height: 44px; }
.brand-mark {
  width: 40px; height: 40px; display: grid; place-items: center;
  border: 1px solid var(--gold); color: var(--gold); border-radius: 50%;
  font: 500 15px/1 var(--font-display); letter-spacing: .06em;
}
.brand-name { font: 500 20px/1 var(--font-display); }
.brand-name small {
  display: block; margin-top: 4px; font: 700 10px/1 var(--font-body);
  letter-spacing: .22em; text-transform: uppercase; color: var(--gold);
}
.nav-links { display: flex; gap: var(--s-3); list-style: none; margin: 0; padding: 0; }
.nav-links a {
  text-decoration: none; font-size: 14px; letter-spacing: .08em; text-transform: uppercase;
  color: var(--muted); padding: 12px 2px; transition: color .2s;
}
.nav-links a:hover, .nav-links a.active { color: var(--paper); }
.nav-links a.active { box-shadow: inset 0 -1px 0 var(--gold); }
.menu-toggle, .nav-cta { display: none; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 26px; border-radius: 999px;
  background: var(--gold); color: var(--ink); border: 1px solid var(--gold);
  font: 700 14px/1 var(--font-body); letter-spacing: .06em; text-transform: uppercase;
  text-decoration: none; cursor: pointer;
  transition: transform .25s var(--ease), background .25s, color .25s;
  will-change: transform;
}
.btn:hover { background: #E8B759; }
.btn:active { transform: scale(.97); }
.btn-ghost { background: transparent; color: var(--paper); border-color: var(--line); }
.btn-ghost:hover { background: var(--gold-soft); border-color: var(--gold); }
.btn-small { min-height: 44px; padding: 0 18px; font-size: 12px; }

/* ---------- Layout ---------- */
main { position: relative; z-index: var(--z-content); }
.panel { min-height: 100vh; min-height: 100dvh; display: flex; align-items: center; padding: var(--s-6) 0; }
.wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 clamp(16px, 4vw, 48px); }
.split { display: grid; grid-template-columns: 1fr; gap: var(--s-4); }
@media (min-width: 960px) { .split { grid-template-columns: 1fr 1fr; gap: var(--s-5); align-items: start; } }
/* Text column that leaves the right half of the viewport to the particle shape */
.stack { max-width: 600px; }
.stack .chips { margin-top: var(--s-2); }

/* ---------- Type ---------- */
.eyebrow {
  margin: 0 0 var(--s-3); font-size: 13px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--gold);
  display: flex; align-items: center; gap: 12px;
}
.eyebrow .num { color: var(--muted); font-weight: 400; }
.eyebrow .num::after { content: ""; display: inline-block; width: 32px; height: 1px; background: var(--line); margin-left: 12px; vertical-align: middle; }
.display {
  margin: 0 0 var(--s-4);
  font: 400 clamp(40px, 5.6vw, 84px)/1.04 var(--font-display); letter-spacing: -.02em;
}
.title { margin: 0 0 var(--s-4); max-width: 18ch; font: 400 clamp(34px, 4.6vw, 64px)/1.08 var(--font-display); letter-spacing: -.015em; text-wrap: balance; }
em { font-style: italic; color: var(--gold); }
.lede { max-width: 52ch; color: var(--muted); font-size: 18px; margin: 0 0 var(--s-4); }
.body-col p { margin: 0 0 var(--s-3); max-width: 60ch; color: var(--muted); }
p { max-width: 65ch; }
h3 { font: 500 24px/1.2 var(--font-display); margin: 0 0 var(--s-1); }

/* ---------- Hero ---------- */
.hero { position: relative; }
.cta-row { display: flex; flex-wrap: wrap; gap: var(--s-2); }
.proof {
  list-style: none; margin: var(--s-4) 0 0; padding: var(--s-3) 0 0; max-width: 620px;
  display: flex; flex-wrap: wrap; gap: 10px 28px; border-top: 1px solid var(--line);
  font-size: 14px; color: var(--muted);
}
.proof strong { color: var(--paper); font-weight: 700; }
.scroll-cue {
  position: absolute; bottom: var(--s-4); left: 50%; transform: translateX(-50%);
  font-size: 11px; letter-spacing: .3em; text-transform: uppercase; color: var(--muted);
  display: flex; flex-direction: column; align-items: center; gap: 10px;
}
.scroll-cue span { width: 1px; height: 48px; background: linear-gradient(var(--gold), transparent); animation: cue 2.2s var(--ease) infinite; transform-origin: top; }
@keyframes cue { 0% { transform: scaleY(0); } 60% { transform: scaleY(1); } 100% { transform: scaleY(1); opacity: 0; } }

/* ---------- Stats ---------- */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-2); margin: var(--s-4) 0 0; border-top: 1px solid var(--line); padding-top: var(--s-3); }
.stats dt { font: 500 clamp(24px, 3vw, 34px)/1 var(--font-display); color: var(--paper); }
.stats dd { margin: 6px 0 0; font-size: 13px; color: var(--muted); }
.credential { margin: var(--s-3) 0 0; font-size: 14px; color: var(--muted); letter-spacing: .02em; }

/* ---------- Service tabs ---------- */
.tabs { list-style: none; margin: 0; padding: 0; display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); max-width: 760px; }
.tab {
  background: rgba(11, 15, 26, .82); backdrop-filter: blur(6px);
  padding: var(--s-3); display: grid; grid-template-columns: 90px 1fr; column-gap: var(--s-3);
  transition: background .3s var(--ease);
}
.tab:hover { background: rgba(18, 24, 41, .95); }
.tab-id { grid-row: span 2; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); padding-top: 6px; }
.tab p { margin: 0; color: var(--muted); font-size: 16px; }

/* ---------- Chips ---------- */
.chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; align-content: start; }
.chips li {
  padding: 12px 18px; border: 1px solid var(--line); border-radius: 999px;
  background: rgba(11, 15, 26, .6); backdrop-filter: blur(6px); font-size: 15px;
  transition: border-color .25s, background .25s;
}
.chips li:hover { border-color: var(--gold); background: var(--gold-soft); }

/* ---------- Steps ---------- */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s-3); grid-template-columns: 1fr; max-width: 700px; }
@media (min-width: 720px) { .steps { grid-template-columns: repeat(2, 1fr); } }
.steps li { border-top: 1px solid var(--gold); padding-top: var(--s-2); background: linear-gradient(rgba(11,15,26,.7), transparent); }
.steps span { font: 400 14px/1 var(--font-body); color: var(--gold); letter-spacing: .14em; }
.steps h3 { margin-top: var(--s-1); }
.steps p { margin: 0; color: var(--muted); font-size: 16px; }

/* ---------- Rates ---------- */
.table-wrap { overflow-x: auto; max-width: 860px; border: 1px solid var(--line); background: rgba(11, 15, 26, .82); backdrop-filter: blur(6px); }
.rates { width: 100%; border-collapse: collapse; font-size: 16px; }
.rates th, .rates td { text-align: left; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.rates th { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); font-weight: 700; }
.rates td:last-child { font-variant-numeric: tabular-nums; white-space: nowrap; color: var(--paper); }
.rates td:nth-child(2) { color: var(--muted); }
.rates tr:last-child td { border-bottom: 0; }

/* ---------- FAQ ---------- */
.faq-col { max-width: 720px; }
.faq { border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); background: rgba(11, 15, 26, .7); backdrop-filter: blur(6px); }
.faq-item summary {
  list-style: none; cursor: pointer; padding: 18px 44px 18px 4px; position: relative; min-height: 44px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary h3 { margin: 0; font-size: 21px; }
.faq-item summary::after {
  content: "+"; position: absolute; right: 8px; top: 50%; transform: translateY(-50%);
  color: var(--gold); font: 300 28px/1 var(--font-body); transition: transform .25s var(--ease);
}
.faq-item[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq-item summary:hover h3 { color: var(--gold); }
.faq-item p { margin: 0; padding: 0 4px 20px; color: var(--muted); font-size: 16px; }
.faq-item a { color: var(--gold); }

/* ---------- Legal / content pages ---------- */
.page { position: relative; z-index: var(--z-content); padding: 140px 0 var(--s-6); background: radial-gradient(ellipse at 80% 0%, #16224a 0%, var(--ink) 55%); min-height: 70vh; }
.prose { max-width: 760px; }
.prose .updated { color: var(--muted); font-size: 14px; margin: 0 0 var(--s-4); }
.prose h2 { font: 400 30px/1.2 var(--font-display); margin: var(--s-5) 0 var(--s-2); }
.prose h3 { margin: var(--s-4) 0 var(--s-1); }
.prose p, .prose li { color: var(--muted); }
.prose strong { color: var(--paper); }
.prose ul { padding-left: 1.2em; }
.prose li { margin-bottom: 8px; }
.prose a { color: var(--gold); }
.prose a.btn { color: var(--ink); margin: 0 var(--s-1) var(--s-1) 0; }
.prose a.btn-ghost { color: var(--paper); }
.prose .callout { border-left: 3px solid var(--gold); background: var(--gold-soft); padding: var(--s-2) var(--s-3); color: var(--paper); margin: var(--s-3) 0; }
.prose .toc { border: 1px solid var(--line); padding: var(--s-2) var(--s-3); margin: 0 0 var(--s-4); }
.prose .toc ol { margin: 8px 0 0; padding-left: 1.2em; }
.prose table { width: 100%; border-collapse: collapse; font-size: 15px; margin: var(--s-2) 0; }
.prose th, .prose td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; color: var(--muted); }
.prose th { color: var(--paper); }
.prose .table-wrap { overflow-x: auto; max-width: none; background: none; backdrop-filter: none; }

/* ---------- Blog ---------- */
.post-list { list-style: none; margin: var(--s-4) 0 var(--s-3); padding: 0; display: grid; gap: var(--s-2); grid-template-columns: 1fr; max-width: 1000px; }
@media (min-width: 760px) { .post-list { grid-template-columns: 1fr 1fr; } }
.post-card {
  display: flex; flex-direction: column; height: 100%; padding: var(--s-3); text-decoration: none;
  border: 1px solid var(--line); background: rgba(11, 15, 26, .75); border-radius: var(--radius);
  transition: border-color .25s var(--ease), background .25s var(--ease), transform .25s var(--ease);
}
.post-card:hover { border-color: var(--gold); background: rgba(18, 24, 41, .95); transform: translateY(-2px); }
.post-meta { font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); }
.post-card h2 { font: 400 25px/1.2 var(--font-display); margin: 10px 0; }
.post-card p { margin: 0 0 var(--s-2); color: var(--muted); font-size: 16px; }
.read-more { margin-top: auto; font-size: 14px; color: var(--paper); }
.post-card:hover .read-more { color: var(--gold); }
.crumbs { font-size: 14px; color: var(--muted); margin: 0 0 var(--s-3); }
.crumbs a { color: var(--muted); }
.prose .byline { font-size: 14px; color: var(--muted); margin: 0 0 var(--s-4); }
.prose .byline a { color: var(--paper); }
.post-cta { margin: var(--s-5) 0 var(--s-3); padding: var(--s-4); border: 1px solid var(--gold); background: var(--gold-soft); border-radius: var(--radius); }
.prose .post-cta h2 { margin-top: 0; }
.prose .post-cta p { color: var(--paper); }
.post-disclaimer { font-size: 13px; }

/* ---------- Contact form ---------- */
.mail { font: 400 clamp(20px, 2.4vw, 28px)/1.2 var(--font-display); color: var(--gold); overflow-wrap: anywhere; }
.form { background: rgba(11, 15, 26, .85); backdrop-filter: blur(10px); border: 1px solid var(--line); padding: var(--s-4); border-radius: var(--radius); }
.field { margin-bottom: var(--s-3); }
.field label { display: block; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 8px; color: var(--paper); }
.field label span { color: var(--gold); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 48px; padding: 12px 14px; border-radius: var(--radius);
  background: var(--ink-2); border: 1px solid var(--line); color: var(--paper);
  font: 16px/1.4 var(--font-body); transition: border-color .2s;
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--gold); outline: none; box-shadow: 0 0 0 3px var(--gold-soft); }
.field [aria-invalid="true"] { border-color: var(--error); }
.error { margin: 6px 0 0; color: var(--error); font-size: 14px; min-height: 0; }
.hint { margin: 6px 0 0; color: var(--muted); font-size: 14px; }
.hint a { color: var(--paper); }
.field.check { display: grid; grid-template-columns: 24px 1fr; gap: 4px 12px; align-items: start; }
.field.check input { width: 22px; min-height: 22px; height: 22px; margin: 2px 0 0; accent-color: var(--gold); cursor: pointer; }
.field.check label { text-transform: none; letter-spacing: 0; font-size: 14px; color: var(--muted); margin: 0; cursor: pointer; }
.field.check .error { grid-column: 2; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.btn[disabled] { opacity: .5; cursor: progress; }
.status { margin: var(--s-2) 0 0; font-size: 15px; }
.status.ok { color: var(--gold); }
.status.fail { color: var(--error); }

/* ---------- Footer ---------- */
.footer {
  position: relative; z-index: var(--z-content);
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--s-2);
  padding: var(--s-4) clamp(16px, 4vw, 48px); border-top: 1px solid var(--line);
  font-size: 14px; color: var(--muted); background: var(--ink);
}
.footer p { margin: 0; }
.footer { flex-direction: column; }
.footer-main { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--s-2); }
.footer .disclaimer { max-width: 100ch; font-size: 13px; line-height: 1.6; color: var(--muted); border-top: 1px solid var(--line); padding-top: var(--s-2); }
.footer nav { display: flex; flex-wrap: wrap; gap: 4px 20px; }
.footer nav a { color: var(--muted); text-decoration: none; padding: 6px 0; }
.footer nav a:hover { color: var(--paper); text-decoration: underline; }

/* ---------- WhatsApp button ---------- */
.wa-float {
  position: fixed; right: clamp(16px, 3vw, 32px); bottom: clamp(16px, 3vw, 32px); z-index: 90;
  display: inline-flex; align-items: center; gap: 10px; min-height: 56px; padding: 0 22px 0 16px;
  border-radius: 999px; background: #25D366; color: #0B1A10; text-decoration: none;
  font: 700 14px/1 var(--font-body); letter-spacing: .02em;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .45);
  transition: transform .25s var(--ease), bottom .3s var(--ease), box-shadow .25s;
}
.wa-float:hover { transform: translateY(-2px); box-shadow: 0 14px 36px rgba(0, 0, 0, .55); }
.wa-float:active { transform: scale(.97); }
.wa-float:focus-visible { outline: 3px solid var(--paper); outline-offset: 3px; }
body.has-consent .wa-float { bottom: calc(var(--consent-h, 96px) + 24px); }
.wa-inline { display: inline-flex; align-items: center; gap: 8px; }
.wa-inline svg { width: 20px; height: 20px; }

/* ---------- Cookie consent ---------- */
.consent {
  position: fixed; left: 50%; bottom: 16px; transform: translateX(-50%); z-index: 95;
  width: min(960px, calc(100% - 32px));
  display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-2) var(--s-3);
  padding: var(--s-2) var(--s-3); border: 1px solid var(--line); border-radius: var(--radius);
  background: rgba(18, 24, 41, .97); backdrop-filter: blur(12px); box-shadow: 0 12px 40px rgba(0, 0, 0, .5);
}
.consent[hidden] { display: none; }
.consent p { flex: 1 1 420px; margin: 0; font-size: 14px; line-height: 1.55; color: var(--muted); }
.consent p strong { color: var(--paper); }
.consent a { color: var(--gold); }
.consent-actions { display: flex; gap: 10px; flex-wrap: wrap; }
body.has-consent .footer { padding-bottom: 200px; }
.linklike {
  background: none; border: 0; padding: 6px 0; margin: 0; cursor: pointer;
  font: inherit; color: var(--muted); text-decoration: none;
}
.linklike:hover { color: var(--paper); text-decoration: underline; }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Mobile ---------- */
@media (max-width: 900px) {
  .nav > .btn-small { display: none; }
  .menu-toggle {
    display: grid; place-content: center; gap: 6px; width: 44px; height: 44px;
    background: none; border: 1px solid var(--line); border-radius: 50%; cursor: pointer;
  }
  .menu-toggle span { display: block; width: 18px; height: 1.5px; background: var(--paper); transition: transform .3s var(--ease); }
  .menu-toggle[aria-expanded="true"] span:first-child { transform: translateY(3.75px) rotate(45deg); }
  .menu-toggle[aria-expanded="true"] span:last-child { transform: translateY(-3.75px) rotate(-45deg); }
  .nav-links {
    position: fixed; inset: 72px 0 auto 0; flex-direction: column; gap: 0;
    background: rgba(11, 15, 26, .97); border-bottom: 1px solid var(--line);
    padding: var(--s-1) var(--s-3) var(--s-3);
    transform: translateY(-8px); opacity: 0; visibility: hidden;
    transition: opacity .25s, transform .25s var(--ease), visibility .25s;
  }
  .nav-links.open { opacity: 1; transform: none; visibility: visible; }
  .nav-links a { display: block; padding: 14px 0; font-size: 16px; }
  .nav-cta { display: block; }
  .nav-links .nav-cta a { color: var(--gold); }
  .tab { grid-template-columns: 1fr; }
  .tab-id { grid-row: auto; padding: 0 0 6px; }
  .form { padding: var(--s-3); }
  .stats { grid-template-columns: 1fr 1fr 1fr; }
  .wa-float { padding: 0; width: 56px; justify-content: center; }
  .wa-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .consent { bottom: 8px; padding: var(--s-2); }
  .consent-actions { width: 100%; }
  .consent-actions .btn { flex: 1; }
}

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