/* EFS Financial World — global stylesheet
   Palette and type taken from the existing EFS site files. */

:root {
  /* Brand palette */
  --obsidian: #04060f;
  --ink: #070b18;
  --navy: #1a2a52;
  --silver: #9aa5b8;
  --white: #f0f2f7;
  --gold-fill: #c9a84c;
  --gold-fill-hi: #e8c97a;
  --on-gold: #04060f;
  --down: #e85c5c;

  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "DM Sans", system-ui, -apple-system, sans-serif;
  --mono: "DM Mono", ui-monospace, monospace;

  --wrap: 1240px;
  --gutter: clamp(16px, 4vw, 40px);
  --radius: 0;
  --header-h: 84px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --hairline: linear-gradient(90deg, transparent, var(--line) 18%, rgba(201,168,76,.32) 50%, var(--line) 82%, transparent);
  /* Gold corner marks for framed panels: four L-shaped ticks drawn as gradients */
  --corner: 14px;
  --corners:
    linear-gradient(var(--gold), var(--gold)) top left / var(--corner) 1px,
    linear-gradient(var(--gold), var(--gold)) top left / 1px var(--corner),
    linear-gradient(var(--gold), var(--gold)) top right / var(--corner) 1px,
    linear-gradient(var(--gold), var(--gold)) top right / 1px var(--corner),
    linear-gradient(var(--gold), var(--gold)) bottom left / var(--corner) 1px,
    linear-gradient(var(--gold), var(--gold)) bottom left / 1px var(--corner),
    linear-gradient(var(--gold), var(--gold)) bottom right / var(--corner) 1px,
    linear-gradient(var(--gold), var(--gold)) bottom right / 1px var(--corner);
}

/* Theme tokens. Dark is the house default; the hero, ticker, closing call to action
   and footer always stay dark, so the 3D world sits on obsidian in both themes. */
:root, .hero, .ticker, .tier-hero, .cta-band, .site-footer {
  --bg: #04060f;
  --surface: #070b18;
  --surface-2: #0b1122;
  --text: #f0f2f7;
  --text-soft: #d6dae4;
  --muted: #9aa5b8;
  --gold: #c9a84c;
  --gold-hi: #e8c97a;
  --teal: #3fb6a8;
  --up: #2ecc8a;
  --line: rgba(201, 168, 76, 0.16);
  --line-soft: rgba(154, 165, 184, 0.12);
  --field-line: rgba(154, 165, 184, 0.28);
  --header-bg: rgba(4, 6, 15, .72);
  --header-bg-solid: rgba(4, 6, 15, .92);
  --shadow: rgba(0, 0, 0, .8);
  --engraving: .2;
  --rosette: .16;
  color-scheme: dark;
}
:root[data-theme="light"] {
  --bg: #f6f3ec;
  --surface: #fbf9f4;
  --surface-2: #efe9dc;
  --text: #141c33;
  --text-soft: #2b344f;
  --muted: #586179;
  --gold: #7f6118;
  --gold-hi: #6e5414;
  --teal: #1b6e65;
  --up: #17744a;
  --line: rgba(156, 122, 38, 0.3);
  --line-soft: rgba(20, 28, 51, 0.1);
  --field-line: rgba(20, 28, 51, 0.24);
  --header-bg: rgba(246, 243, 236, .78);
  --header-bg-solid: rgba(246, 243, 236, .94);
  --shadow: rgba(60, 45, 10, .18);
  --engraving: .34;
  --rosette: .22;
  color-scheme: light;
}
.hero, .ticker, .tier-hero, .cta-band, .site-footer { color: var(--text); }
.hero, .tier-hero, .cta-band { background-color: var(--bg); }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; background: var(--bg); color: var(--text); transition: background-color .6s var(--ease), color .6s var(--ease);
  font: 300 16px/1.7 var(--sans); -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
/* Fine film grain over the whole page, for depth on the flat obsidian */
body::before {
  content: ""; position: fixed; inset: 0; z-index: 70; pointer-events: none; opacity: .03;
  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='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
::selection { background: rgba(201,168,76,.35); color: var(--text); }
html { scrollbar-color: rgba(201,168,76,.35) var(--bg); scrollbar-width: thin; }
strong, b { font-weight: 500; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible, summary:focus-visible {
  outline: 2px solid var(--gold-hi); outline-offset: 3px;
}
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 400; line-height: 1.1; margin: 0 0 .5em; letter-spacing: -.012em; text-wrap: balance; }
h1 { font-size: clamp(2.6rem, 6.4vw, 5.2rem); font-weight: 300; line-height: 1.02; letter-spacing: -.02em; }
h2 { font-size: clamp(2.1rem, 4.2vw, 3.4rem); font-weight: 300; }
h3 { font-size: 1.55rem; }
h1 em, h2 em { font-style: italic; color: var(--gold-hi); }
p { margin: 0 0 1em; }
.muted { color: var(--muted); }
.gold { color: var(--gold-hi); }
.mono { font-family: var(--mono); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--gold-fill); color: var(--on-gold); padding: 8px 14px; z-index: 100; }
.skip:focus { left: 8px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }

/* Animated gold line across the top of every page */
.topbar {
  position: fixed; inset: 0 0 auto 0; height: 2px; z-index: 60;
  background: linear-gradient(90deg, transparent, var(--gold), var(--gold-hi), var(--gold), transparent);
  background-size: 200% 100%; animation: sweep 6s linear infinite;
}
@keyframes sweep { to { background-position: -200% 0; } }

.eyebrow {
  display: flex; align-items: center; gap: 14px;
  font: 400 .7rem/1.4 var(--mono); letter-spacing: .26em; text-transform: uppercase;
  color: var(--gold); margin: 0 0 1.4rem;
}
.eyebrow::before { content: ""; width: 32px; height: 1px; background: linear-gradient(90deg, var(--gold), transparent); flex-shrink: 0; }
.lead { font-size: clamp(1.05rem, 1.6vw, 1.22rem); font-weight: 300; line-height: 1.75; color: var(--muted); max-width: 60ch; }

/* Buttons */
.btn {
  position: relative; overflow: hidden; isolation: isolate;
  display: inline-flex; align-items: center; justify-content: center; gap: .9em; padding: 1.25em 2.1em;
  font: 500 .72rem/1 var(--sans); letter-spacing: .2em; text-transform: uppercase; border-radius: var(--radius);
  border: 1px solid rgba(201,168,76,.55); cursor: pointer; transition: background .5s var(--ease), color .5s var(--ease), border-color .5s var(--ease);
  background: transparent; color: var(--gold-hi);
}
.btn:hover { border-color: var(--gold-hi); background: rgba(201,168,76,.07); }
/* Slow light sheen that crosses the button on hover */
.btn::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(110deg, transparent 30%, rgba(255,240,200,.28) 50%, transparent 70%);
  transform: translateX(-120%); transition: transform .9s var(--ease);
}
.btn:hover::after { transform: translateX(120%); }
.btn-gold { background: var(--gold-fill); color: var(--on-gold); border-color: var(--gold-fill); }
.btn-gold:hover { background: var(--gold-fill-hi); border-color: var(--gold-fill-hi); }
.btn-sm { padding: 1.05em 1.6em; font-size: .66rem; }
.btn .icon { width: 16px; height: 16px; transition: transform .5s var(--ease); }
.btn:hover .icon { transform: translateX(4px); }
@media (prefers-reduced-motion: reduce) { .btn::after { display: none; } }
.text-link { color: var(--gold-hi); border-bottom: 1px solid var(--line); }
.text-link:hover { border-color: var(--gold-hi); }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50; height: var(--header-h);
  background: var(--header-bg); backdrop-filter: blur(18px) saturate(1.2); -webkit-backdrop-filter: blur(18px) saturate(1.2);
  border-bottom: 1px solid transparent; transition: background .6s var(--ease), height .6s var(--ease);
}
.site-header::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px; background: var(--hairline); opacity: .45; transition: opacity .6s var(--ease); }
.site-header.is-scrolled { background: var(--header-bg-solid); }
.site-header.is-scrolled::after { opacity: 1; }
.header-inner { height: 100%; display: flex; align-items: center; gap: 24px; }
.logo { display: flex; align-items: center; gap: 14px; flex-shrink: 0; color: var(--gold-hi); }
.logo-mark { width: 40px; height: 40px; transition: transform 1.2s var(--ease); }
.logo:hover .logo-mark { transform: rotate(60deg); }
.logo-text { display: flex; flex-direction: column; gap: 3px; line-height: 1.1; }
.logo-name { font: 500 1.5rem/1 var(--serif); letter-spacing: .32em; color: var(--text); }
.logo-sub { font: 400 .58rem/1.4 var(--mono); letter-spacing: .22em; text-transform: uppercase; color: var(--gold); }
.nav { flex: 1; display: flex; justify-content: center; }
.nav-list { list-style: none; margin: 0; padding: 0; display: flex; gap: 2px; }
.nav-item { position: static; }
.nav-trigger {
  position: relative; white-space: nowrap; background: none; border: 0; color: var(--muted); font: 400 .82rem var(--sans); letter-spacing: .03em;
  padding: 10px 12px; cursor: pointer; display: flex; align-items: center; gap: 7px; border-radius: var(--radius); transition: color .4s var(--ease);
}
.nav-trigger::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 2px; height: 1px; background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform .5s var(--ease); }
.nav-trigger:hover, .nav-trigger[aria-expanded="true"] { color: var(--text); }
.nav-trigger:hover::after, .nav-trigger[aria-expanded="true"]::after { transform: scaleX(1); }
.caret { width: 6px; height: 6px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg) translateY(-2px); transition: transform .2s; }
.nav-trigger[aria-expanded="true"] .caret { transform: rotate(225deg) translateY(-1px); }
.mega {
  position: absolute; left: 0; right: 0; top: var(--header-h);
  background: linear-gradient(180deg, var(--surface), var(--bg)); border-bottom: 1px solid var(--line);
  padding: 44px max(var(--gutter), calc((100vw - var(--wrap)) / 2 + var(--gutter))) 48px;
  display: grid; grid-template-columns: 280px 1fr; gap: 56px;
  box-shadow: 0 40px 80px rgba(0,0,0,.6);
  animation: mega-in .45s var(--ease);
}
@keyframes mega-in { from { opacity: 0; transform: translateY(-6px); } }
.mega[hidden] { display: none; }
.mega-blurb { font: 300 1.85rem/1.2 var(--serif); color: var(--text); }
.mega-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 0 24px; }
.mega-list a { display: block; padding: 16px 0; border-bottom: 1px solid var(--line-soft); transition: border-color .4s var(--ease), padding .4s var(--ease); }
.mega-list a:hover { border-color: var(--gold); padding-left: 8px; }
.mega-name { display: block; font: 400 1.22rem/1.3 var(--serif); color: var(--text); margin-bottom: 4px; }
.mega-short { display: block; font-size: .84rem; color: var(--muted); line-height: 1.45; }
.ext { color: var(--gold); font-size: .8em; }
.header-actions { display: flex; align-items: center; gap: 16px; flex-shrink: 0; }
.nav-link { font-size: .86rem; color: var(--muted); }
.nav-link:hover { color: var(--text); }
.theme-toggle {
  display: grid; place-items: center; width: 42px; height: 42px; padding: 0; cursor: pointer;
  background: none; border: 1px solid var(--line); color: var(--gold-hi); border-radius: var(--radius);
  transition: border-color .4s var(--ease), color .4s var(--ease);
}
.theme-toggle:hover { border-color: var(--gold); }
.theme-toggle svg { width: 18px; height: 18px; grid-area: 1 / 1; transition: opacity .5s var(--ease), transform .7s var(--ease); }
.theme-toggle .moon, :root[data-theme="light"] .theme-toggle .sun { opacity: 0; transform: rotate(-90deg) scale(.6); }
:root[data-theme="light"] .theme-toggle .moon { opacity: 1; transform: none; }
.menu-btn { display: none; background: none; border: 1px solid var(--line); color: var(--text); width: 42px; height: 42px; border-radius: var(--radius); padding: 9px; cursor: pointer; }
.drawer { position: fixed; inset: var(--header-h) 0 0 0; background: var(--bg); overflow-y: auto; z-index: 49; }
.drawer[hidden] { display: none; }
.drawer-inner { padding: 20px var(--gutter) 40px; }
.drawer-group { border-bottom: 1px solid var(--line-soft); }
.drawer-group summary { padding: 20px 0; cursor: pointer; font: 300 1.55rem var(--serif); list-style: none; display: flex; justify-content: space-between; align-items: center; }
.drawer-group summary::after { content: "+"; color: var(--gold); }
.drawer-group[open] summary::after { content: "−"; }
.drawer-group ul, .drawer-links { list-style: none; margin: 0; padding: 0 0 12px; }
.drawer-group li a, .drawer-links a { display: block; padding: 8px 0; color: var(--muted); }
.drawer-links { padding: 16px 0 24px; }

@media (max-width: 1520px) { .logo-sub { display: none; } .nav-trigger { padding: 10px 9px; } }
@media (max-width: 1440px) { .header-actions .nav-link { display: none; } }
@media (max-width: 1180px) {
  .nav, .nav-link, .header-actions .btn { display: none; }
  .menu-btn { display: block; }
  .header-actions { margin-left: auto; }
}

/* Sections */
.section { padding: clamp(80px, 11vw, 150px) 0; position: relative; }
.section-tight { padding: clamp(56px, 7vw, 96px) 0; }
.section-head { max-width: 780px; margin-bottom: clamp(48px, 6vw, 72px); }
/* Sections are divided by a gold hairline that fades out at both ends */
.section + .section::before { content: ""; position: absolute; top: 0; left: 50%; width: min(var(--wrap), 100% - 2 * var(--gutter)); height: 1px; transform: translateX(-50%); background: var(--hairline); }
/* Banknote-style guilloché engraving, faded towards the edges */
.engraved { position: relative; overflow: hidden; }
.engraved::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: var(--engraving);
  background: url("/assets/img/guilloche.svg") center / 480px 240px repeat;
  -webkit-mask-image: radial-gradient(ellipse 75% 70% at 50% 50%, #000 15%, transparent 78%); mask-image: radial-gradient(ellipse 75% 70% at 50% 50%, #000 15%, transparent 78%);
}
.engraved > * { position: relative; z-index: 1; }
main { position: relative; z-index: 0; isolation: isolate; }

/* Home hero */
.hero { position: relative; min-height: calc(100vh - var(--header-h)); min-height: calc(100svh - var(--header-h)); display: flex; align-items: center; overflow: hidden; }
.hero-canvas, .hero-fallback { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-canvas { opacity: 0; transition: opacity 1.4s ease; }
.hero-canvas.is-ready { opacity: 1; }
.hero-fallback { color: var(--gold); opacity: .55; transition: opacity 1.2s; }
.hero.has-3d .hero-fallback { opacity: 0; }
.hero::after { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse at 30% 50%, rgba(4,6,15,.85) 0%, rgba(4,6,15,.35) 55%, rgba(4,6,15,.1) 100%); pointer-events: none; }
.hero-content { width: 100%; position: relative; z-index: 2; padding-top: 40px; padding-bottom: 80px; pointer-events: none; }
.hero-content a, .hero-content button { pointer-events: auto; }
.hero-hint { pointer-events: none; white-space: nowrap; }
@media (max-width: 700px) { .hero-hint { display: none; } }
.hero-canvas { cursor: grab; }
.hero h1 { max-width: 13ch; font-size: clamp(2.9rem, 7.2vw, 6.2rem); }
.hero h1 em { font-style: italic; font-weight: 300; color: var(--gold-hi); }
.hero-entities { font: 400 .68rem/1.9 var(--mono); letter-spacing: .18em; text-transform: uppercase; color: var(--muted); margin: 32px 0 40px; padding-top: 24px; border-top: 1px solid var(--line); max-width: max-content; }
.hero-entities span { color: var(--gold); padding: 0 .6em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-hint { position: absolute; z-index: 2; bottom: 24px; left: 50%; transform: translateX(-50%); font: .7rem var(--mono); letter-spacing: .2em; color: var(--muted); text-transform: uppercase; }

/* Standards ticker (terminal strip) */
.ticker {
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--surface); overflow: hidden; white-space: nowrap; position: relative; z-index: 3;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}
.ticker-track { display: inline-flex; animation: ticker 80s linear infinite; }
.ticker:hover .ticker-track { animation-play-state: paused; }
.ticker-item { font: 400 .74rem/1 var(--mono); color: var(--muted); padding: 18px 32px; border-right: 1px solid var(--line-soft); letter-spacing: .1em; }
.ticker-item b { color: var(--gold-hi); font-weight: 500; margin-right: .6em; }
@keyframes ticker { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .ticker-track { animation: none; } .topbar { animation: none; } }

/* District / group cards */
.districts { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); border-top: 1px solid var(--line-soft); border-left: 1px solid var(--line-soft); }
.district { position: relative; border-right: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); padding: 40px 30px 32px; display: flex; flex-direction: column; transition: background .6s var(--ease); }
.district::before { content: ""; position: absolute; left: -1px; right: -1px; top: -1px; height: 1px; background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform .8s var(--ease); }
.district:hover { background: linear-gradient(180deg, rgba(201,168,76,.05), transparent 70%); }
.district:hover::before { transform: scaleX(1); }
.district-num { font: .68rem var(--mono); color: var(--gold); letter-spacing: .26em; text-transform: uppercase; margin-bottom: 22px; }
.district h3 { font-size: 1.7rem; font-weight: 300; margin-bottom: .4em; }
.district p { color: var(--muted); font-size: .92rem; }
.district ul { list-style: none; margin: auto 0 0; padding: 18px 0 0; border-top: 1px solid var(--line-soft); }
.district li a { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; font-size: .9rem; color: var(--text); }
.district li a:hover { color: var(--gold-hi); }
.district li a::after { content: "→"; color: var(--gold); opacity: .5; transition: opacity .2s, transform .2s; }
.district li a:hover::after { opacity: 1; transform: translateX(3px); }

/* Pillars */
.pillars { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 40px 32px; counter-reset: pillar; }
.pillar { position: relative; padding-top: 32px; counter-increment: pillar; }
.pillar::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 1px; background: linear-gradient(90deg, var(--gold), rgba(201,168,76,.12)); }
.pillar::after { content: counter(pillar, upper-roman) "."; position: absolute; top: -.7em; right: 0; padding-left: 10px; background: var(--bg); font: italic 300 1.1rem var(--serif); color: var(--gold); }
.pillar h3 { font-size: 1.5rem; font-weight: 400; }
.pillar p { color: var(--muted); font-size: .94rem; }

/* Satellites row */
.satellites { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; }
.satellite { position: relative; border: 1px solid var(--line-soft); padding: 36px 32px; border-radius: var(--radius); background: var(--corners), linear-gradient(160deg, rgba(63,182,168,.06), transparent 60%); background-repeat: no-repeat; transition: border-color .6s var(--ease), transform .6s var(--ease), box-shadow .6s var(--ease); }
.satellite:hover { border-color: var(--line); transform: translateY(-3px); box-shadow: 0 30px 60px -30px rgba(201,168,76,.25); }
.satellite .icon { width: 32px; height: 32px; color: var(--teal); margin-bottom: 18px; }
.satellite h3 { font-size: 1.35rem; }
.satellite p { color: var(--muted); font-size: .9rem; }
.badge { display: inline-block; font: 400 .62rem/1 var(--mono); letter-spacing: .2em; text-transform: uppercase; padding: 7px 11px; border: 1px solid var(--line); border-radius: 0; color: var(--gold-hi); }
.badge-live { border-color: rgba(46,204,138,.4); color: var(--up); }
.badge-live::before { content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--up); margin-right: 7px; vertical-align: 1px; box-shadow: 0 0 8px var(--up); }
.badge-soon { color: var(--muted); border-color: var(--line-soft); }

/* Tier page hero */
.tier-hero { position: relative; padding: clamp(56px, 8vw, 110px) 0 clamp(48px, 6vw, 80px); overflow: hidden; border-bottom: 1px solid var(--line-soft); }
.tier-hero-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 40px; align-items: center; }
.tier-hero h1 { font-size: clamp(2.5rem, 5.4vw, 4.6rem); }
.tier-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(ellipse 60% 80% at 75% 45%, rgba(201,168,76,.07), transparent 70%); }
.crumbs { font: .68rem var(--mono); letter-spacing: .18em; color: var(--muted); margin-bottom: 28px; text-transform: uppercase; }
.crumbs a:hover { color: var(--gold-hi); }
.crumbs span { color: var(--gold); padding: 0 .5em; }
.accent { position: relative; aspect-ratio: 1; max-width: 380px; width: 100%; justify-self: center; }
.accent canvas, .accent .accent-fallback { position: absolute; inset: 0; width: 100%; height: 100%; }
.accent canvas { opacity: 0; transition: opacity 1s; }
.accent.has-3d canvas { opacity: 1; }
.accent.has-3d .accent-fallback { opacity: 0; }
.accent-fallback { color: var(--gold); transition: opacity .8s; }
.accent::before { content: ""; position: absolute; inset: 10%; border-radius: 50%; background: radial-gradient(circle, rgba(201,168,76,.12), transparent 70%); }
.built-by { display: inline-flex; align-items: center; gap: 8px; margin-top: 8px; font: .78rem var(--mono); color: var(--teal); letter-spacing: .06em; }
.built-by:hover { color: var(--gold-hi); }
.hero-badges { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }

/* Overview */
.overview { display: grid; grid-template-columns: 1.4fr 1fr; gap: 56px; }
.overview-text p:not(.eyebrow) { font-size: 1.1rem; line-height: 1.85; color: var(--text-soft); }
.overview-text .eyebrow + p::first-letter { float: left; font: 300 4.4em/.8 var(--serif); color: var(--gold-hi); padding: .08em .12em 0 0; }
.audience { border: 1px solid var(--line-soft); padding: 36px 32px; border-radius: var(--radius); background: var(--corners), var(--surface); background-repeat: no-repeat; align-self: start; }
.audience ul { list-style: none; margin: 0; padding: 0; }
.audience li { padding: 10px 0 10px 22px; position: relative; border-bottom: 1px solid var(--line-soft); font-size: .95rem; }
.audience li:last-child { border-bottom: 0; }
.audience li::before { content: ""; position: absolute; left: 0; top: 19px; width: 10px; height: 1px; background: var(--gold); }

/* Service grid */
.services { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); border-top: 1px solid var(--line-soft); border-left: 1px solid var(--line-soft); }
.service { position: relative; border-right: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); padding: 36px 30px; transition: background .6s var(--ease); }
.service::before { content: ""; position: absolute; left: -1px; right: -1px; top: -1px; height: 1px; background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform .8s var(--ease); }
.service:hover { background: linear-gradient(180deg, rgba(201,168,76,.045), transparent 80%); }
.service:hover::before { transform: scaleX(1); }
.service .icon { width: 26px; height: 26px; color: var(--gold); margin-bottom: 22px; stroke-width: 1.2; }
.service h3 { font: 400 1.35rem/1.25 var(--serif); letter-spacing: 0; margin-bottom: .5em; }
.service p { color: var(--muted); font-size: .9rem; margin: 0; }

/* Steps */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; counter-reset: step; position: relative; }
.steps::before { content: ""; position: absolute; top: 19px; left: 20px; right: 20px; height: 1px; background: linear-gradient(90deg, var(--gold), var(--line)); }
.step { position: relative; padding-right: 24px; counter-increment: step; }
.step::before { content: counter(step, decimal-leading-zero); display: grid; place-items: center; width: 40px; height: 40px; border: 1px solid var(--gold); border-radius: 50%; background: var(--bg); font: .8rem var(--mono); color: var(--gold-hi); margin-bottom: 20px; position: relative; }
.step h3 { font-size: 1.3rem; }
.step p { color: var(--muted); font-size: .92rem; }
@media (max-width: 860px) {
  .steps { grid-template-columns: 1fr; gap: 28px; }
  .steps::before { top: 20px; bottom: 20px; left: 19px; right: auto; width: 1px; height: auto; background: linear-gradient(180deg, var(--gold), var(--line)); }
  .step { padding: 0 0 0 64px; }
  .step::before { position: absolute; left: 0; top: 0; margin: 0; }
}

/* Standards panel */
.standards { border: 1px solid var(--line); border-radius: var(--radius); background: var(--corners), linear-gradient(180deg, var(--surface), var(--bg)); background-repeat: no-repeat; overflow: hidden; box-shadow: 0 40px 80px -40px var(--shadow); }
.standards-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 14px 24px; border-bottom: 1px solid var(--line); font: .72rem var(--mono); letter-spacing: .16em; text-transform: uppercase; color: var(--gold); flex-wrap: wrap; }
.standards ul { list-style: none; margin: 0; padding: 8px 24px; }
.standards li { padding: 14px 0 14px 32px; border-bottom: 1px solid var(--line-soft); position: relative; }
.standards li:last-child { border-bottom: 0; }
.standards li::before { content: "§"; position: absolute; left: 4px; top: 13px; color: var(--gold); font-family: var(--serif); font-size: 1.1rem; }
.standards-note { padding: 14px 24px; border-top: 1px solid var(--line); color: var(--muted); font-size: .86rem; margin: 0; }

.live-product { display: flex; gap: 20px; align-items: flex-start; border: 1px solid rgba(46,204,138,.3); background: rgba(46,204,138,.04); padding: 24px; border-radius: var(--radius); margin-top: 24px; }
.live-product h3 { font-size: 1.35rem; margin-bottom: .2em; }
.live-product p { color: var(--muted); margin: 0; }

/* Engagement / pricing */
.engage { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; border: 1px solid var(--line); padding: clamp(32px, 5vw, 64px); border-radius: var(--radius); background: var(--corners), radial-gradient(ellipse at top right, rgba(201,168,76,.09), transparent 60%); background-repeat: no-repeat; }
.plans { display: grid; gap: 20px; }
.plan-edition { border: 1px solid var(--line-soft); border-radius: var(--radius); }
.plan-edition h3 { font: 500 .74rem var(--mono); letter-spacing: .16em; text-transform: uppercase; color: var(--gold); padding: 14px 20px; margin: 0; border-bottom: 1px solid var(--line-soft); }
.plan-row { display: flex; justify-content: space-between; padding: 12px 20px; border-bottom: 1px solid var(--line-soft); font-size: .95rem; }
.plan-row:last-child { border-bottom: 0; }
.plan-row span:last-child { font-family: var(--mono); color: var(--muted); }
.plan-row .free { color: var(--up); }

.disclaimer { border-left: 2px solid var(--gold); padding: 16px 20px; background: var(--surface); color: var(--muted); font-size: .88rem; margin: 0; }

/* Related */
.related { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.related a { display: block; padding: 32px 28px; border: 1px solid var(--line-soft); border-radius: var(--radius); transition: border-color .6s var(--ease), background .6s var(--ease); }
.related a:hover { border-color: var(--line); background: var(--corners), rgba(201,168,76,.03); background-repeat: no-repeat; }
.related .icon { width: 22px; height: 22px; color: var(--gold); float: right; }
.related h3 { font-size: 1.25rem; margin-bottom: .3em; }
.related p { color: var(--muted); font-size: .88rem; margin: 0; }

/* Forms */
.consult { display: grid; grid-template-columns: 1fr 1.2fr; gap: clamp(40px, 6vw, 96px); }
.form { display: grid; gap: 28px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 28px 32px; }
.field label { display: block; font: 400 .66rem var(--mono); letter-spacing: .22em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
/* Underline fields with a gold rule that draws in on focus */
.field input, .field textarea, .field select {
  width: 100%; padding: 12px 0 14px; background: transparent no-repeat 0 100% / 0 1px linear-gradient(var(--gold-hi), var(--gold-hi)); color: var(--text);
  border: 0; border-bottom: 1px solid var(--field-line); border-radius: 0; font: 300 1.05rem var(--sans);
  transition: background-size .6s var(--ease), border-color .4s;
}
.field select { background-color: var(--bg); }
.field input:hover, .field textarea:hover, .field select:hover { border-bottom-color: var(--line); }
.field input:focus, .field textarea:focus, .field select:focus { background-size: 100% 2px; outline: none; }
.field input:focus-visible, .field textarea:focus-visible, .field select:focus-visible { outline: none; }
.field textarea { min-height: 120px; resize: vertical; }
.consent { display: flex; gap: 12px; align-items: flex-start; font-size: .86rem; color: var(--muted); }
.consent input { appearance: none; -webkit-appearance: none; margin: 3px 0 0; width: 18px; height: 18px; flex-shrink: 0; border: 1px solid var(--gold); background: transparent; display: grid; place-items: center; cursor: pointer; transition: background .3s var(--ease); }
.consent input::after { content: ""; width: 9px; height: 5px; border-left: 1.5px solid var(--on-gold); border-bottom: 1.5px solid var(--on-gold); transform: rotate(-45deg) translate(1px, -1px); opacity: 0; }
.consent input:checked { background: var(--gold-fill); }
.consent input:checked::after { opacity: 1; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-status { font-size: .92rem; min-height: 1.4em; margin: 0; }
.form-status.ok { color: var(--up); }
.form-status.err { color: var(--down); }

/* Teaser */
.teaser-hero { text-align: left; }
.caps { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; margin: 40px 0; }
.cap { border: 1px solid var(--line-soft); padding: 32px 28px; border-radius: var(--radius); background: var(--corners); background-repeat: no-repeat; }
.cap .icon { width: 22px; height: 22px; color: var(--teal); margin-bottom: 14px; }
.cap p { margin: 0; font-weight: 500; }

/* Generic content (legal, about) */
.prose { max-width: 760px; }
.prose h2 { font-size: 2.1rem; font-weight: 300; margin-top: 1.8em; }
.prose h3 { font-size: 1.35rem; margin-top: 1.4em; }
.prose p, .prose li { color: var(--text-soft); line-height: 1.85; }
.prose ul { padding-left: 1.2em; }
.prose li { margin-bottom: .5em; }
.prose a { color: var(--gold-hi); border-bottom: 1px solid var(--line); }
.page-hero {
  position: relative; overflow: hidden; padding: clamp(72px, 10vw, 140px) 0 clamp(48px, 6vw, 80px);
  background: var(--hairline) bottom center / min(var(--wrap), 100% - 2 * var(--gutter)) 1px no-repeat, radial-gradient(ellipse 55% 90% at 85% 0%, rgba(201,168,76,.08), transparent 70%);
}
/* Engraved rosette turning slowly behind page headers and the closing call to action */
.page-hero::before, .cta-band::after {
  content: ""; position: absolute; z-index: -1; pointer-events: none; aspect-ratio: 1;
  background: url("/assets/img/rosette.svg") center / contain no-repeat; opacity: var(--rosette);
  animation: rosette-turn 300s linear infinite;
}
.page-hero::before { width: min(640px, 80vw); right: max(-160px, -12vw); top: 50%; translate: 0 -50%; }
.cta-band { overflow: hidden; }
.cta-band::after { width: min(720px, 110vw); left: 50%; top: 50%; translate: -50% -50%; opacity: calc(var(--rosette) * .7); }
@keyframes rosette-turn { to { rotate: 360deg; } }
@media (prefers-reduced-motion: reduce) { .page-hero::before, .cta-band::after { animation: none; } }
.page-hero h1 { font-size: clamp(2.5rem, 5.6vw, 4.6rem); }

/* Structure diagram (About) */
.structure { display: grid; justify-items: center; gap: 0; margin: 48px 0; }
.node { border: 1px solid var(--line); padding: 24px 36px; border-radius: var(--radius); text-align: center; background: var(--corners), var(--surface); background-repeat: no-repeat; min-width: min(100%, 360px); }
.node small { display: block; font: .68rem var(--mono); letter-spacing: .16em; color: var(--gold); text-transform: uppercase; margin-bottom: 6px; }
.node strong { font: 400 1.5rem var(--serif); }
.node-line { width: 1px; height: 44px; background: linear-gradient(180deg, var(--gold), rgba(201,168,76,.25)); }
.node-row { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; max-width: 900px; }
.node-sm { border: 1px solid var(--line); padding: 10px 16px; border-radius: var(--radius); font-size: .86rem; color: var(--muted); }

/* Industries */
.industries { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 20px; }
.industry { border: 1px solid var(--line-soft); padding: 36px 32px; border-radius: var(--radius); display: flex; flex-direction: column; gap: 12px; transition: border-color .6s var(--ease), background .6s var(--ease); }
.industry:hover { border-color: var(--line); background: var(--corners), rgba(201,168,76,.025); background-repeat: no-repeat; }
.industry h2 { font-size: 1.75rem; font-weight: 300; margin: 6px 0 0; }
.industry .sector { font: .74rem var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--gold); }
.industry p { color: var(--muted); font-size: .92rem; margin: 0; }
.industry .badge { align-self: flex-start; margin-top: auto; }

/* Insights */
.posts { display: grid; gap: 1px; background: var(--line-soft); border: 1px solid var(--line-soft); }
.post-card { background: var(--bg); padding: 40px 36px; display: grid; grid-template-columns: 180px 1fr; gap: 32px; transition: background .6s var(--ease); }
.post-card:hover { background: var(--surface); }
.post-card time { font: .78rem var(--mono); color: var(--gold); }
.post-card h2 { font-size: 1.9rem; font-weight: 300; margin-bottom: .3em; transition: color .4s; }
.post-card p { color: var(--muted); margin: 0; }
.post-card:hover h2 { color: var(--gold-hi); }

/* FAQ */
.faq details { border-bottom: 1px solid var(--line-soft); }
.faq summary { cursor: pointer; padding: 26px 48px 26px 0; font: 400 1.45rem var(--serif); list-style: none; position: relative; transition: color .4s; }
.faq summary:hover { color: var(--gold-hi); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 20px; color: var(--gold); font-family: var(--sans); font-size: 1.3rem; }
.faq details[open] summary::after { content: "−"; }
.faq details p { color: var(--muted); padding-bottom: 20px; margin: 0; }

/* Sitemap */
.sitemap { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 32px; }
.sitemap h2 { font-size: 1.3rem; color: var(--gold-hi); }
.sitemap ul { list-style: none; padding: 0; margin: 0; }
.sitemap li a { display: block; padding: 5px 0; color: var(--muted); font-size: .92rem; }
.sitemap li a:hover { color: var(--text); }

/* CTA band */
.cta-band { position: relative; text-align: center; padding: clamp(96px, 12vw, 170px) 0; background: radial-gradient(ellipse 50% 60% at center, rgba(201,168,76,.11), transparent 70%) var(--bg); }
.cta-band::before { content: ""; position: absolute; top: 0; left: 50%; width: min(var(--wrap), 100% - 2 * var(--gutter)); height: 1px; transform: translateX(-50%); background: var(--hairline); }
.cta-band .eyebrow { justify-content: center; color: var(--gold); margin-bottom: 1.6rem; }
.cta-band .eyebrow::after { content: ""; width: 32px; height: 1px; background: linear-gradient(270deg, var(--gold), transparent); }
.cta-band h2 { max-width: 18ch; margin: 0 auto .5em; font-size: clamp(2.4rem, 5vw, 4rem); }
.cta-band p { color: var(--muted); max-width: 56ch; margin: 0 auto 40px; }

/* Footer */
.site-footer { position: relative; background: linear-gradient(180deg, var(--surface), #05080f); padding: 88px 0 36px; font-size: .88rem; }
.site-footer::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 1px; background: linear-gradient(90deg, transparent, var(--gold) 50%, transparent); opacity: .6; }
.footer-top { display: grid; grid-template-columns: 1.4fr repeat(5, 1fr); gap: 32px; }
.footer-name { font: 300 1.9rem/1.15 var(--serif); margin-bottom: .4em; }
.footer-tag { color: var(--gold); font-family: var(--serif); font-size: 1.05rem; font-style: italic; }
.footer-contact { display: flex; align-items: center; gap: 8px; color: var(--muted); margin: 0 0 6px; }
.footer-contact .icon { width: 16px; height: 16px; color: var(--gold); }
.footer-head { font: 400 .64rem var(--mono); letter-spacing: .22em; text-transform: uppercase; color: var(--gold); margin-bottom: 18px; }
.footer-col ul, .footer-links { list-style: none; margin: 0; padding: 0; }
.footer-col li a { display: block; padding: 5px 0; color: var(--muted); line-height: 1.45; transition: color .4s; }
.footer-col li a:hover, .footer-links a:hover { color: var(--text); }
.footer-mid { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 16px; margin-top: 64px; padding: 24px 0; border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); }
.footer-links { display: flex; flex-wrap: wrap; gap: 6px 22px; }
.footer-links a { color: var(--muted); }
.footer-legal { padding-top: 24px; color: #8590a3; font-size: .78rem; letter-spacing: .01em; }
.footer-legal p { margin: 0 0 6px; max-width: 110ch; }
@media (max-width: 1100px) { .footer-top { grid-template-columns: repeat(3, 1fr); } .footer-brand { grid-column: 1 / -1; } }
@media (max-width: 600px) { .footer-top { grid-template-columns: 1fr 1fr; } }

/* Scroll reveal */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 1.2s var(--ease), transform 1.2s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

/* Responsive layouts */
@media (max-width: 900px) {
  .tier-hero-grid, .overview, .engage, .consult { grid-template-columns: 1fr; }
  .accent { max-width: 260px; order: -1; justify-self: start; }
  .mega { grid-template-columns: 1fr; }
  .post-card { grid-template-columns: 1fr; gap: 8px; }
  .form-row { grid-template-columns: 1fr; }
}
