:root {
  --bg: #14111f;
  --bg-2: #1c1830;
  --surface: #241f3a;
  --line: rgba(255,255,255,.1);
  --text: #ece9f5;
  --muted: #a9a3c2;
  --amber: #ffb347;
  --coral: #ff5d73;
  --grad: linear-gradient(100deg, #ffb347 0%, #ff5d73 100%);
  --radius: 18px;
  --head: "Bricolage Grotesque", system-ui, sans-serif;
  --body: "DM Sans", system-ui, -apple-system, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--body); font-size: 17px; line-height: 1.7; color: var(--text); background: var(--bg); }
img { display: block; max-width: 100%; }
a { color: var(--amber); }
h1, h2, h3 { font-family: var(--head); font-weight: 700; line-height: 1.1; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(2.5rem, 5.6vw, 4.6rem); }
h2 { font-size: clamp(1.9rem, 3.4vw, 2.8rem); }
h3 { font-size: 1.35rem; }
p { margin: 0 0 1.1em; }
.container { width: min(1180px, 92%); margin-inline: auto; }
.narrow { width: min(780px, 92%); margin-inline: auto; }
.eyebrow { display: inline-block; font-size: .78rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--amber); margin-bottom: .9rem; }
.hl { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(20,17,31,.88); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.nav-wrap { display: flex; align-items: center; justify-content: space-between; height: 74px; }
.logo { font-family: var(--head); font-weight: 800; font-size: 1.3rem; color: var(--text); text-decoration: none; display: flex; align-items: center; gap: 10px; }
.logo-mark { width: 30px; height: 30px; border-radius: 8px; background: var(--grad); position: relative; }
.logo-mark::after { content: ""; position: absolute; left: 11px; top: 8px; border-style: solid; border-width: 7px 0 7px 11px; border-color: transparent transparent transparent var(--bg); }
.main-nav { display: flex; gap: 30px; }
.main-nav a { color: var(--muted); text-decoration: none; font-weight: 600; font-size: .96rem; padding: 6px 0; border-bottom: 2px solid transparent; }
.main-nav a:hover { color: var(--text); }
.main-nav a.active { color: var(--text); border-color: var(--coral); }
.nav-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--text); margin: 5px 0; transition: .25s; }

/* Buttons */
.btn { display: inline-block; padding: 14px 28px; border-radius: 999px; font-weight: 700; text-decoration: none; transition: transform .2s, filter .2s; }
.btn:hover { transform: translateY(-2px); filter: brightness(1.06); }
.btn-grad { background: var(--grad); color: #1a1426; }
.btn-ghost { border: 2px solid rgba(255,255,255,.35); color: var(--text); margin-left: 10px; }
.btn-ghost:hover { border-color: var(--text); }

/* Hero */
.hero { position: relative; min-height: 86vh; display: flex; align-items: center; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; background: var(--bg-2); }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(95deg, rgba(20,17,31,.95) 20%, rgba(20,17,31,.6) 55%, rgba(20,17,31,.2) 100%), linear-gradient(0deg, var(--bg) 0%, rgba(20,17,31,0) 30%); }
.hero .container { position: relative; z-index: 1; padding: 80px 0; }
.hero-content { max-width: 640px; }
.hero p.lead { font-size: 1.2rem; color: #d3cee6; }
.page-hero { min-height: 58vh; }

/* Image holder: soft colour until the photo loads */
.ph { background: linear-gradient(135deg, var(--surface), #2f2850); overflow: hidden; }
.ph img { width: 100%; height: 100%; object-fit: cover; }

/* Sections */
section { padding: 84px 0; }
.alt { background: var(--bg-2); }
.section-head { max-width: 680px; margin-bottom: 44px; }
.section-head p { color: var(--muted); }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.split.reverse > :first-child { order: 2; }
.split .ph { aspect-ratio: 4 / 3; border-radius: var(--radius); }
.split p { color: #cfcae2; }

.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; transition: transform .25s, border-color .25s; text-decoration: none; color: inherit; }
.card:hover { transform: translateY(-4px); border-color: rgba(255,179,71,.5); }
.card .ph { aspect-ratio: 3 / 2; }
.card-body { padding: 24px 26px 28px; }
.card-body p { color: var(--muted); margin: 0; }
.card-link { display: inline-block; margin-top: 14px; font-weight: 700; color: var(--amber); }

.tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.tile { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 26px; }
.alt .tile { background: var(--bg); }
.tile .num { font-family: var(--head); font-weight: 800; font-size: 1.9rem; line-height: 1; margin-bottom: 12px; display: block; }
.tile h3 { font-size: 1.15rem; }
.tile p { color: var(--muted); margin: 0; font-size: .96rem; }

.pill-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.pill { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 22px 24px; }
.alt .pill { background: var(--bg); }
.pill h3 { font-size: 1.15rem; margin-bottom: 6px; }
.pill h3::before { content: ""; display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: var(--grad); margin-right: 10px; vertical-align: middle; }
.pill p { color: var(--muted); margin: 0; font-size: .96rem; }

.checklist { list-style: none; padding: 0; margin: 0 0 1.4em; }
.checklist li { position: relative; padding-left: 30px; margin-bottom: 12px; color: #d8d4ea; }
.checklist li::before { content: ""; position: absolute; left: 0; top: 10px; width: 14px; height: 4px; border-radius: 2px; background: var(--grad); }

.quote { text-align: center; background: radial-gradient(ellipse at center, #2b2246 0%, var(--bg) 70%); }
.quote blockquote { font-family: var(--head); font-weight: 600; font-size: clamp(1.6rem, 3vw, 2.3rem); line-height: 1.3; max-width: 820px; margin: 0 auto 16px; }
.quote cite { color: var(--muted); font-style: normal; }

/* FAQ */
.faq details { border-bottom: 1px solid var(--line); padding: 20px 0; }
.faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 20px; font-weight: 700; font-size: 1.08rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--amber); font-size: 1.5rem; line-height: 1; transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--muted); margin: 14px 0 0; }

/* CTA */
.cta-band { background: var(--grad); color: #1a1426; border-radius: 26px; padding: 56px 40px; text-align: center; }
.cta-band p { max-width: 560px; margin: 0 auto 24px; color: #2e2238; }
.cta-band .btn { background: #1a1426; color: #fff; }

/* Legal */
.legal { padding: 64px 0 96px; }
.legal h2 { font-size: 1.55rem; margin-top: 2em; }
.legal p, .legal li { color: #cfcae2; }
.legal li { margin-bottom: .5em; }
.updated { color: var(--muted); }
.toc { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 24px 30px; margin: 28px 0; }
.toc ol { margin: 0; padding-left: 1.2em; columns: 2; }

/* Footer */
.site-footer { background: #0e0c17; border-top: 1px solid var(--line); padding: 64px 0 0; font-size: .95rem; color: var(--muted); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1.3fr; gap: 40px; padding-bottom: 44px; }
.site-footer h4 { font-family: var(--body); font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; color: var(--amber); margin: 0 0 14px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 8px; }
.site-footer a { color: var(--text); text-decoration: none; }
.site-footer a:hover { color: var(--amber); }
.footer-about { margin-top: 16px; max-width: 380px; }
.footer-bottom { display: flex; justify-content: space-between; gap: 16px; border-top: 1px solid var(--line); padding: 22px 0; font-size: .88rem; }

/* Reveal (content stays visible unless JS is confirmed running) */
.js .reveal { opacity: 0; transform: translateY(20px); transition: opacity .7s ease, transform .7s ease; }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .js .reveal { opacity: 1; transform: none; transition: none; } }

/* Responsive */
@media (max-width: 960px) {
  .split { grid-template-columns: 1fr; gap: 40px; }
  .split.reverse > :first-child { order: 0; }
  .cards, .pill-grid { grid-template-columns: 1fr 1fr; }
  .tiles { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .nav-toggle { display: block; }
  .main-nav { position: absolute; top: 74px; left: 0; right: 0; flex-direction: column; gap: 0; background: var(--bg); border-bottom: 1px solid var(--line); max-height: 0; overflow: hidden; transition: max-height .3s ease; }
  .main-nav a { padding: 16px 4%; border-bottom: 0; border-top: 1px solid var(--line); }
  .main-nav a.active { box-shadow: inset 3px 0 0 var(--coral); }
  .main-nav.open { max-height: 420px; }
  .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); }
  section { padding: 60px 0; }
  .hero { min-height: 78vh; }
  .hero::after { background: linear-gradient(0deg, rgba(20,17,31,.97) 25%, rgba(20,17,31,.55) 100%); }
  .toc ol { columns: 1; }
  .btn-ghost { margin: 12px 0 0; }
}
@media (max-width: 560px) {
  .cards, .tiles, .pill-grid, .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; }
  .cta-band { padding: 44px 24px; }
}
