/* =====================================================================
   Custos Capital — Site B (light edition): "Infrastructure", institutional
   Alabaster / cool-white canvas, navy type, sober teal / blue / gold accents.
   Same markup as site-b; only the palette and surfaces change.
   No JavaScript required. All content is in the DOM at first paint.
   ===================================================================== */

:root {
  --bg: #f7f9fa;
  --bg-2: #ffffff;
  --cream: #fbfaf6;
  --navy: #071a2b;
  --navy-2: #0b2940;

  --teal: #1f8a83;      --teal-rgb: 31, 138, 131;
  --teal-ink: #16716b;
  --teal-2: #6fc8bf;    --teal-2-rgb: 111, 200, 191;
  --blue: #2463a6;      --blue-rgb: 36, 99, 166;
  --blue-2: #5b9ce6;    --blue-2-rgb: 91, 156, 230;
  --gold: #c89745;      --gold-rgb: 200, 151, 69;
  --gold-ink: #8c6426;
  --navy-rgb: 7, 26, 43;

  --text: #11202d;
  --text-2: #33424f;
  --muted: #5c6b78;
  --line: #d9e0e5;
  --line-2: #c5cfd7;
  --panel: #ffffff;

  --sans: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --container: 1180px;
  --gutter: 20px;
  --section-y: clamp(72px, 10vw, 120px);
  --radius: 18px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --shadow: 0 22px 60px rgba(7, 26, 43, .08);
  --shadow-2: 0 28px 70px rgba(7, 26, 43, .12);
  --grad: linear-gradient(90deg, var(--teal), var(--blue) 55%, var(--gold));
}

/* ---------- Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
body { margin: 0; font-family: var(--sans); line-height: 1.6; color: var(--text); background: var(--bg); -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
a:focus-visible, summary:focus-visible, label:focus-visible { outline: 2px solid var(--teal); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3, p, dl, ol, ul, figure { margin: 0; }
ol, ul { padding: 0; list-style: none; }
.mono { font-family: var(--mono); font-weight: 500; letter-spacing: 0; text-transform: lowercase; }

.container { width: min(var(--container), calc(100% - 2 * var(--gutter))); margin-inline: auto; position: relative; z-index: 1; }
.skip-link { position: absolute; left: 16px; top: -100px; padding: 10px 14px; background: var(--navy); color: #fff; border-radius: 8px; z-index: 100; font-weight: 700; }
.skip-link:focus { top: 12px; }

/* ---------- Typography ---------- */
h1, h2 { font-weight: 800; letter-spacing: -0.045em; line-height: 1; color: var(--navy); }
h1 { font-size: clamp(2.8rem, 6.4vw, 5.4rem); max-width: 13ch; }
h2 { font-size: clamp(2rem, 3.8vw, 3.3rem); max-width: 18ch; }
h3 { font-size: 1.2rem; font-weight: 700; letter-spacing: -0.015em; line-height: 1.25; color: var(--navy); }
.grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

.eyebrow { display: flex; align-items: baseline; gap: 12px; font-size: 0.74rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--teal-ink); margin-bottom: 22px; }
.eyebrow .mono { flex: none; white-space: nowrap; color: var(--muted); font-size: 0.8rem; letter-spacing: 0; }
.lead { font-size: clamp(1.08rem, 1.5vw, 1.28rem); line-height: 1.55; color: var(--text-2); max-width: 56ch; margin-top: 24px; }
.section-lead { font-size: 1.05rem; line-height: 1.65; color: var(--muted); max-width: 60ch; }

/* ---------- Buttons ---------- */
.actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 14px 22px; border-radius: 10px; font-weight: 700; font-size: 0.95rem; border: 1px solid transparent; transition: transform .22s var(--ease), box-shadow .22s var(--ease), background .22s; }
.btn-primary { background: var(--navy); color: #fff; box-shadow: 0 10px 24px rgba(var(--navy-rgb), .18); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 34px rgba(var(--navy-rgb), .28); background: var(--navy-2); }
.btn-ghost { border-color: var(--line-2); color: var(--navy); background: var(--panel); }
.btn-ghost:hover { border-color: var(--teal); background: #f0f8f7; }

/* ---------- Header / nav ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(247, 249, 250, .86); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border-bottom: 1px solid var(--line); }
.site-header::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px; background: linear-gradient(90deg, transparent, rgba(var(--teal-rgb), .5), rgba(var(--blue-rgb), .5), rgba(var(--gold-rgb), .5), transparent); }
.nav { min-height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 30px; position: relative; }
.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--navy); }
.brand-logo { display: block; width: auto; height: 28px; flex: none; }
.brand-logo-footer { height: 60px; }

.nav-links { display: flex; align-items: center; gap: 26px; font-size: 0.9rem; font-weight: 600; color: var(--text-2); }
.nav-links a:hover { color: var(--navy); }
.nav-cta { padding: 9px 16px; border: 1px solid var(--navy); border-radius: 10px; color: var(--navy); background: transparent; }
.nav-cta:hover { background: var(--navy); color: #fff; }
.lang { display: inline-flex; border: 1px solid var(--line-2); border-radius: 8px; overflow: hidden; font-family: var(--mono); font-size: 0.76rem; background: var(--panel); }
.lang a { padding: 6px 10px; color: var(--muted); }
.lang a[aria-current="page"] { background: var(--navy); color: #fff; }
.lang a:hover { color: var(--navy); }
.lang a[aria-current="page"]:hover { color: #fff; }

.nav-toggle { position: absolute; opacity: 0; pointer-events: none; }
.nav-burger { display: none; width: 44px; height: 44px; align-items: center; justify-content: center; flex-direction: column; gap: 5px; cursor: pointer; }
.nav-burger span { display: block; width: 22px; height: 2px; background: var(--navy); transition: transform .2s, opacity .2s; }

/* ---------- Colour atmosphere (soft) ---------- */
.orb { position: absolute; width: 60vw; max-width: 900px; aspect-ratio: 1; border-radius: 50%; pointer-events: none; z-index: 0; }
.orb-teal { background: radial-gradient(circle, rgba(var(--teal-rgb), .16), rgba(var(--teal-rgb), 0) 62%); }
.orb-blue { background: radial-gradient(circle, rgba(var(--blue-rgb), .14), rgba(var(--blue-rgb), 0) 62%); }
.orb-gold { background: radial-gradient(circle, rgba(var(--gold-rgb), .14), rgba(var(--gold-rgb), 0) 62%); }
.orb-tl { top: -30%; left: -20%; }
.orb-tr { top: -35%; right: -20%; }
.orb-bl { bottom: -35%; left: -20%; }
.orb-br { bottom: -35%; right: -20%; }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden; padding: clamp(64px, 9vw, 120px) 0 clamp(56px, 8vw, 96px);
  background:
    radial-gradient(70% 60% at 78% 8%, rgba(var(--teal-rgb), .16), transparent 60%),
    radial-gradient(50% 50% at 104% 72%, rgba(var(--blue-rgb), .14), transparent 60%),
    radial-gradient(40% 40% at 6% 92%, rgba(var(--gold-rgb), .12), transparent 60%),
    linear-gradient(180deg, #ffffff 0%, var(--bg) 100%);
}
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(rgba(var(--navy-rgb), .07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(var(--navy-rgb), .07) 1px, transparent 1px);
  background-size: 48px 48px;
  -webkit-mask-image: radial-gradient(70% 70% at 60% 30%, #000 20%, transparent 100%);
  mask-image: radial-gradient(70% 70% at 60% 30%, #000 20%, transparent 100%);
}
.aurora {
  position: absolute; left: 30%; top: -10%; width: 90vw; max-width: 1300px; height: 46vw; max-height: 620px;
  background: linear-gradient(90deg, rgba(var(--teal-2-rgb), .45), rgba(var(--blue-2-rgb), .35) 50%, rgba(var(--gold-rgb), .30));
  filter: blur(90px); opacity: .28; transform: rotate(-12deg); border-radius: 50%; pointer-events: none;
  animation: drift 26s ease-in-out infinite alternate;
}
@keyframes drift { to { transform: rotate(-6deg) translate(-6%, 6%); opacity: .38; } }
.hero::after { content: ""; position: absolute; inset: auto 0 0 0; height: 160px; background: linear-gradient(transparent, var(--bg)); pointer-events: none; }
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(40px, 6vw, 80px); align-items: center; }

/* Architecture stack (CSS diagram) */
.stack { display: grid; }
.stack-caption { font-size: 0.74rem; color: var(--muted); margin-bottom: 12px; }
.layer { border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px; background: var(--panel); box-shadow: var(--shadow); display: grid; gap: 10px; position: relative; }
.layer-client { background: linear-gradient(135deg, rgba(var(--blue-rgb), .10), #ffffff 70%); border-color: rgba(var(--blue-rgb), .35); }
.layer-core { background: linear-gradient(135deg, rgba(var(--teal-rgb), .16), #ffffff 75%); border-color: rgba(var(--teal-rgb), .6); box-shadow: 0 0 0 1px rgba(var(--teal-rgb), .12), 0 26px 70px rgba(var(--teal-rgb), .18); }
.layer-rails { background: linear-gradient(135deg, rgba(var(--gold-rgb), .12), #ffffff 70%); border-color: rgba(var(--gold-rgb), .45); }
.layer-label { font-size: 0.72rem; color: var(--muted); }
.layer-client .layer-label { color: var(--blue); }
.layer-core .layer-label { color: var(--teal-ink); }
.layer-rails .layer-label { color: var(--gold-ink); }
.layer strong { font-size: 1.02rem; color: var(--navy); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chips li { font-family: var(--mono); font-size: 0.7rem; padding: 4px 8px; border-radius: 6px; border: 1px solid var(--line); color: var(--text-2); background: #f3f6f8; }
.connector { display: flex; justify-content: center; gap: 48px; height: 26px; }
.connector i { width: 1px; height: 100%; display: block; position: relative; background: linear-gradient(rgba(var(--blue-rgb), .5), rgba(var(--teal-rgb), .9)); }
.connector i::after { content: ""; position: absolute; bottom: -2px; left: -2px; width: 5px; height: 5px; border-radius: 50%; background: var(--teal); }

/* Status tiles */
.statusbar { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: clamp(56px, 8vw, 88px); }
.tile { padding: 20px 22px; border-radius: 14px; border: 1px solid var(--line); background: var(--panel); position: relative; overflow: hidden; box-shadow: var(--shadow); }
.tile::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--c); }
.tile::after { content: ""; position: absolute; inset: 0; background: linear-gradient(135deg, color-mix(in srgb, var(--c) 10%, transparent), transparent 60%); pointer-events: none; }
.tile-teal { --c: var(--teal); } .tile-blue { --c: var(--blue); } .tile-gold { --c: var(--gold); } .tile-white { --c: var(--navy); }
.tile dt { font-weight: 700; color: var(--navy); font-size: 0.98rem; position: relative; }
.tile dd { margin: 6px 0 0; font-size: 0.86rem; color: var(--muted); line-height: 1.5; position: relative; }

/* ---------- Sections & tones ---------- */
.section { position: relative; overflow: hidden; padding: var(--section-y) 0; }
.section::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px; background: linear-gradient(90deg, transparent, rgba(var(--teal-rgb), .45), rgba(var(--blue-rgb), .45), rgba(var(--gold-rgb), .45), transparent); }
.tone-teal { background: linear-gradient(180deg, #f0f7f6 0%, var(--bg) 100%); }
.tone-blue { background: linear-gradient(180deg, #eef3f9 0%, #f5f7fa 100%); }
.tone-gold { background: linear-gradient(180deg, #faf6ee 0%, var(--cream) 100%); }
.tone-band { background: linear-gradient(120deg, #e4f1ef 0%, #eef3f8 50%, #f6efe2 100%); }
.tone-plain { background: var(--bg); }
.section-head { display: grid; grid-template-columns: 1fr 1fr; gap: 32px 64px; align-items: end; margin-bottom: clamp(40px, 6vw, 64px); }
.section-head .eyebrow { grid-column: 1 / -1; margin-bottom: 0; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 48px 80px; align-items: start; }
.two-col h2 { margin-bottom: 20px; }

/* Modules (colour-coded) */
.modules { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.module { --c: var(--teal-ink); --c-rgb: var(--teal-rgb); position: relative; border: 1px solid var(--line); border-top: 3px solid var(--c); border-radius: var(--radius); padding: 24px; background: linear-gradient(180deg, rgba(var(--c-rgb), .07), #ffffff 60%); box-shadow: var(--shadow); display: grid; grid-template-rows: auto auto 1fr auto; gap: 12px; min-height: 300px; transition: transform .25s var(--ease), box-shadow .25s var(--ease); }
.module:hover { transform: translateY(-4px); box-shadow: var(--shadow-2), 0 0 0 1px rgba(var(--c-rgb), .25); }
.module-teal { --c: var(--teal-ink); --c-rgb: var(--teal-rgb); }
.module-blue { --c: var(--blue); --c-rgb: var(--blue-rgb); }
.module-gold { --c: var(--gold-ink); --c-rgb: var(--gold-rgb); }
.module-white { --c: var(--navy); --c-rgb: var(--navy-rgb); }
.module-id { font-size: 0.72rem; color: var(--c); }
.module p:not(.module-id):not(.status) { color: var(--text-2); font-size: 0.94rem; }
.status { display: inline-flex; align-items: center; gap: 8px; width: fit-content; max-width: 100%; font-family: var(--mono); font-size: 0.72rem; padding: 6px 10px; border-radius: 8px; border: 1px solid rgba(var(--c-rgb), .3); background: rgba(var(--c-rgb), .08); color: var(--c); text-transform: lowercase; }
.status i { width: 7px; height: 7px; border-radius: 50%; background: var(--c); }

/* Ledger */
.ledger { border-top: 1px solid var(--navy); }
.ledger > li { --c: var(--teal-ink); --c-rgb: var(--teal-rgb); display: grid; grid-template-columns: 90px 1fr 320px; gap: 28px; align-items: start; padding: 32px 0; border-bottom: 1px solid var(--line); }
.row-blue { --c: var(--blue); --c-rgb: var(--blue-rgb); }
.row-gold { --c: var(--gold-ink); --c-rgb: var(--gold-rgb); }
.ledger-num { font-size: 2.2rem; line-height: 1; color: var(--c); }
.ledger h3 { margin-bottom: 10px; font-size: 1.35rem; }
.ledger p { color: var(--text-2); max-width: 56ch; }
.chips-right { justify-content: flex-end; }
.ledger .chips li { border-color: rgba(var(--c-rgb), .35); color: var(--c); background: rgba(var(--c-rgb), .07); }

/* Pipeline */
.pipeline { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; position: relative; }
.pipeline::before { content: ""; position: absolute; left: 24px; right: 24px; top: 30px; height: 2px; background: var(--grad); opacity: .8; }
.pipeline li { --c: var(--teal-ink); --c-rgb: var(--teal-rgb); position: relative; padding: 52px 20px 22px; border: 1px solid var(--line); border-radius: var(--radius); background: linear-gradient(180deg, rgba(var(--c-rgb), .08), #ffffff 70%); box-shadow: var(--shadow); display: grid; gap: 6px; align-content: start; }
.step-blue { --c: var(--blue); --c-rgb: var(--blue-rgb); }
.step-gold { --c: var(--gold-ink); --c-rgb: var(--gold-rgb); }
.pipeline li::before { content: ""; position: absolute; top: 24px; left: 20px; width: 12px; height: 12px; border-radius: 50%; background: #fff; border: 3px solid var(--c); }
.pipeline .mono { font-size: 0.72rem; color: var(--c); }
.pipeline strong { font-size: 1.15rem; color: var(--navy); }
.pipeline li > span:last-child { font-size: 0.88rem; color: var(--text-2); }

/* Cards */
.cards-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.card { --c: var(--teal-ink); --c-rgb: var(--teal-rgb); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; background: linear-gradient(160deg, rgba(var(--c-rgb), .07), #ffffff 55%); box-shadow: var(--shadow); transition: transform .25s var(--ease), box-shadow .25s var(--ease); }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-2), 0 0 0 1px rgba(var(--c-rgb), .25); }
.card-blue { --c: var(--blue); --c-rgb: var(--blue-rgb); }
.card-gold { --c: var(--gold-ink); --c-rgb: var(--gold-rgb); }
.card-id { font-size: 0.72rem; color: var(--c); margin-bottom: 14px; }
.card h3 { margin-bottom: 10px; }
.card > p:not(.card-id) { color: var(--text-2); font-size: 0.95rem; margin-bottom: 18px; }
.ticks li { position: relative; padding-left: 22px; margin: 8px 0; font-size: 0.93rem; color: var(--text); }
.ticks li::before { content: ""; position: absolute; left: 0; top: .5em; width: 10px; height: 6px; border-left: 2px solid var(--c); border-bottom: 2px solid var(--c); transform: rotate(-45deg); }

/* Timeline */
.timeline { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; position: relative; padding-top: 34px; }
.timeline::before { content: ""; position: absolute; left: 10px; right: 10px; top: 9px; height: 3px; border-radius: 3px; background: linear-gradient(90deg, var(--teal), var(--blue), var(--gold)); }
.phase { --c: var(--teal); --c-rgb: var(--teal-rgb); --c-ink: var(--teal-ink); position: relative; display: grid; gap: 6px; align-content: start; padding: 0 4px; }
.phase-blue { --c: var(--blue); --c-rgb: var(--blue-rgb); --c-ink: var(--blue); }
.phase-gold { --c: var(--gold); --c-rgb: var(--gold-rgb); --c-ink: var(--gold-ink); }
.phase::before { content: ""; position: absolute; top: -34px; left: 4px; width: 18px; height: 18px; border-radius: 50%; background: #fff; border: 5px solid var(--c); box-shadow: 0 0 0 4px rgba(var(--c-rgb), .18); }
.period { font-size: 0.72rem; color: var(--c-ink); }
.phase strong { font-size: 1.1rem; color: var(--navy); }
.phase > span:last-child { font-size: 0.88rem; color: var(--text-2); }

/* Operating layers (navy anchors) */
.oplayers { display: grid; gap: 12px; }
.oplayers li { --c: var(--teal); display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 22px 24px; border-radius: 14px; color: #fff; position: relative; overflow: hidden; box-shadow: var(--shadow); }
.op-teal { background: linear-gradient(90deg, var(--teal), #16716b); }
.op-blue { --c: var(--blue); background: linear-gradient(90deg, var(--blue), #1c4f86); }
.op-gold { --c: var(--gold); background: linear-gradient(90deg, var(--navy-2), var(--navy)); }
.oplayers strong { font-size: 1.1rem; color: #fff; }
.oplayers .mono { font-size: 0.72rem; color: rgba(255, 255, 255, .8); text-align: right; }

/* FAQ */
.faq-list details { border-bottom: 1px solid var(--line); background: var(--panel); transition: background .25s; }
.faq-list details:first-child { border-top: 1px solid var(--navy); }
.faq-list details[open] { background: linear-gradient(90deg, rgba(var(--teal-rgb), .08), #ffffff); }
.faq-list summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 20px 12px; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary h3 { font-size: 1.08rem; }
.faq-list summary::after { content: "+"; font-family: var(--mono); font-size: 1.3rem; color: var(--teal-ink); flex: none; line-height: 1; transition: transform .25s var(--ease); }
.faq-list details[open] summary::after { transform: rotate(45deg); }
.faq-list details p { color: var(--text-2); padding: 0 12px 22px; max-width: 62ch; font-size: 0.96rem; }

/* Contact (navy anchor with gradient border) */
.contact-panel { position: relative; overflow: hidden; display: grid; grid-template-columns: 1.15fr .85fr; gap: 40px; align-items: center; padding: clamp(32px, 5vw, 56px); border-radius: 24px; background: linear-gradient(135deg, var(--navy), var(--navy-2) 60%, #0d3a3f); box-shadow: 0 40px 100px rgba(var(--navy-rgb), .28); isolation: isolate; color: #fff; }
.contact-panel::before { content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1.5px; background: linear-gradient(90deg, var(--teal-2), var(--blue-2) 50%, #e2bc78); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); mask-composite: exclude; pointer-events: none; z-index: 2; }
.contact-panel > div:not(.orb) { position: relative; z-index: 1; }
.contact-panel > .orb { position: absolute; width: 70%; }
.contact-panel .orb-teal { background: radial-gradient(circle, rgba(var(--teal-rgb), .45), rgba(var(--teal-rgb), 0) 62%); }
.contact-panel h2 { color: #fff; margin-bottom: 18px; }
.contact-panel .eyebrow { color: var(--teal-2); }
.contact-panel .eyebrow .mono { color: #8fa9b8; }
.contact-panel .section-lead { color: #bfd0da; }
.contact-actions { display: grid; gap: 12px; justify-items: stretch; }
.contact-panel .btn-primary { background: linear-gradient(90deg, var(--teal-2), #8fd4ff); color: #041016; box-shadow: 0 10px 28px rgba(var(--teal-2-rgb), .35); }
.contact-panel .btn-primary:hover { background: linear-gradient(90deg, var(--teal-2), #8fd4ff); box-shadow: 0 16px 36px rgba(var(--teal-2-rgb), .5); }
.btn-lg { padding: 20px 28px; font-size: 1.05rem; border-radius: 14px; }
.contact-email { font-size: 0.86rem; color: #a9bcc9; text-align: center; }
.contact-email a { color: var(--teal-2); font-size: 0.82rem; }
.contact-email a:hover { color: #fff; }

/* Footer (navy) */
.site-footer { position: relative; background: var(--navy); color: #a9bcc9; padding: 56px 0 44px; }
.site-footer::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 2px; background: var(--grad); opacity: .9; }
.site-footer .brand { color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.1fr .7fr 1.4fr; gap: 40px; }
.footer-tagline { margin-top: 18px; font-size: 1.05rem; color: #fff; font-weight: 600; }
.footer-address { font-style: normal; margin-top: 10px; font-size: 0.8rem; }
.footer-address a:hover { color: #fff; }
.footer-lang { margin-top: 12px; font-size: 0.74rem; text-transform: none; }
.footer-lang a[aria-current="page"] { color: var(--teal-2); }
.footer-lang a:hover { color: #fff; }
.footer-heading { font-size: 0.72rem; color: #e2bc78; margin-bottom: 14px; }
.footer-nav li { margin: 6px 0; font-size: 0.92rem; }
.footer-nav a:hover { color: #fff; }
.legal p:not(.footer-heading) { font-size: 0.78rem; line-height: 1.6; color: #8ea2ae; }
.copyright { margin-top: 16px !important; font-size: 0.72rem !important; text-transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; }
  .stack { max-width: 640px; }
  .statusbar { grid-template-columns: 1fr 1fr; }
  .modules { grid-template-columns: 1fr 1fr; }
  .ledger > li { grid-template-columns: 60px 1fr; }
  .ledger .chips-right { grid-column: 2; justify-content: flex-start; }
  .pipeline { grid-template-columns: 1fr 1fr; }
  .pipeline::before { display: none; }
  .cards-3 { grid-template-columns: 1fr; }
  .timeline { grid-template-columns: 1fr; gap: 0; padding: 0 0 0 28px; border-left: 2px solid var(--line-2); }
  .timeline::before { display: none; }
  .phase { padding: 18px 0; }
  .phase::before { top: 22px; left: -38px; }
  .two-col, .section-head, .contact-panel { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .legal { grid-column: 1 / -1; }
  .aurora { left: 10%; }
}
@media (max-width: 820px) {
  .nav-links { display: none; position: absolute; top: calc(100% + 1px); left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; background: var(--panel); border-bottom: 1px solid var(--line); padding: 8px 0 16px; box-shadow: var(--shadow); }
  .nav-links li a { display: block; padding: 14px 0; border-bottom: 1px solid var(--line); }
  .nav-links .lang { margin-top: 12px; align-self: flex-start; }
  .nav-links .lang a { display: inline-block; padding: 6px 12px; border-bottom: 0; }
  .nav-links .nav-cta { margin-top: 12px; text-align: center; }
  .nav-toggle:checked ~ .nav-links { display: flex; }
  .nav-burger { display: flex; }
  .nav-toggle:checked ~ .nav-burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle:checked ~ .nav-burger span:nth-child(2) { opacity: 0; }
  .nav-toggle:checked ~ .nav-burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}
@media (max-width: 560px) {
  :root { --gutter: 16px; }
  .nav .brand-logo { height: 24px; }
  .statusbar, .modules, .pipeline { grid-template-columns: 1fr; }
  .module { min-height: 0; }
  .oplayers li { flex-direction: column; align-items: flex-start; gap: 6px; }
  .oplayers .mono { text-align: left; }
  .footer-grid { grid-template-columns: 1fr; }
  .actions .btn { width: 100%; }
  .orb { width: 120vw; }
}
