:root {
    --obsidian: #05070A;
    --obsidian-light: #0A0D12;
    --steel: #A8B4C2;
    --steel-dim: rgba(168, 180, 194, 0.12);
    --gold: #D4AF37;
    --gold-glow: rgba(212, 175, 55, 0.35);
    --font-mono: 'JetBrains Mono', monospace;
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --nav-height: 72px;
}

* { margin: 0; padding: 0; box-sizing: border-box; scroll-behavior: smooth; }

body {
    background-color: #09090b;
    background-image:
        radial-gradient(ellipse 80% 50% at 50% -20%, rgba(212, 175, 55, 0.07), transparent 55%),
        radial-gradient(ellipse 60% 40% at 100% 50%, rgba(212, 175, 55, 0.03), transparent 50%),
        radial-gradient(ellipse 50% 30% at 0% 80%, rgba(63, 63, 70, 0.15), transparent 45%),
        linear-gradient(rgba(63, 63, 70, 0.08) 1px, transparent 1px),
        linear-gradient(90deg, rgba(63, 63, 70, 0.08) 1px, transparent 1px);
    background-size: auto, auto, auto, 24px 24px, 24px 24px;
    color: #F4F4F4;
    font-family: var(--font-sans);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

section[id] { scroll-margin-top: var(--nav-height); }

canvas#resonant-field {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    z-index: 1; pointer-events: none; opacity: 0.25;
}

nav {
    position: fixed; top: 0; left: 0; right: 0; z-index: 100;
    background: rgba(5, 7, 10, 0.9); backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--steel-dim); padding: 1.25rem 2rem;
}

.nav-inner {
    max-width: 1200px; margin: 0 auto;
    display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
}

.nav-logo { display: flex; align-items: center; gap: 0.9rem; text-decoration: none; color: white; }

.nav-sigil {
    width: 44px;
    height: 44px;
    display: block;
    flex-shrink: 0;
}

.nav-logo-text {
    display: inline-flex;
    align-items: baseline;
    font-family: var(--font-mono);
    font-weight: 700;
    font-size: 1.05rem;
    color: var(--steel);
    line-height: 1;
}

/* Wide tracking on SOVEREIGN only — AI stays tight so it doesn't look gappy */
.nav-logo-word {
    letter-spacing: 0.22em;
}

.nav-logo-ai {
    color: var(--gold);
    letter-spacing: 0.02em;
    /* Small join after SOVEREIGN without inheriting wide tracking */
    margin-left: 0.12em;
}

.nav-toggle {
    display: none; background: none; border: 1px solid var(--steel-dim);
    color: #F4F4F4; cursor: pointer; padding: 0.45rem 0.55rem; line-height: 0;
}

.nav-toggle svg { width: 20px; height: 20px; display: block; }

.nav-links { display: flex; gap: 2.5rem; align-items: center; }

.nav-links a {
    color: var(--steel); text-decoration: none; font-family: var(--font-mono);
    font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.2em; transition: color 0.3s;
    border-radius: 0.25rem;
}

.nav-links a:hover, .nav-links a.active { color: var(--gold); }

.nav-links a:focus-visible {
    outline: 2px solid rgba(212, 175, 55, 0.45);
    outline-offset: 4px;
    color: var(--gold);
}

/*  -  -  -  Landing hero  -  -  -  */
.hero-section {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: min(100vh, 920px);
    padding: calc(var(--nav-height) + 3.5rem) 1.5rem 4.5rem;
    text-align: center;
    /* Allow data-rain to bleed past the hero edge into the next section */
    overflow: visible;
}

/* Subtle data-falling canvas — bleeds + fades into the section below */
.hero-data-rain {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    /* Extra length past hero so the trail dissolves into Foundation */
    height: calc(100% + min(48vh, 460px));
    z-index: 0;
    pointer-events: none;
    opacity: 0.9;
    /* Long soft dissolve: solid through mid-hero, then gradual into next section */
    -webkit-mask-image: linear-gradient(
        to bottom,
        transparent 0%,
        rgba(0, 0, 0, 0.5) 5%,
        rgba(0, 0, 0, 0.95) 12%,
        rgba(0, 0, 0, 0.92) 42%,
        rgba(0, 0, 0, 0.55) 58%,
        rgba(0, 0, 0, 0.28) 72%,
        rgba(0, 0, 0, 0.1) 86%,
        transparent 100%
    );
    mask-image: linear-gradient(
        to bottom,
        transparent 0%,
        rgba(0, 0, 0, 0.5) 5%,
        rgba(0, 0, 0, 0.95) 12%,
        rgba(0, 0, 0, 0.92) 42%,
        rgba(0, 0, 0, 0.55) 58%,
        rgba(0, 0, 0, 0.28) 72%,
        rgba(0, 0, 0, 0.1) 86%,
        transparent 100%
    );
    -webkit-mask-size: 100% 100%;
    mask-size: 100% 100%;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
}

.hero-section__inner {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 52rem;
    margin: 0 auto;
}

/* Hero mark — large layered sigil with multi-axis motion */
.hero-section__sigil {
    --sigil-size: clamp(7.5rem, 22vw, 11rem);
    position: relative;
    width: var(--sigil-size);
    height: var(--sigil-size);
    margin: 0 auto 2.25rem;
}

.hero-section__sigil-parallax {
    position: relative;
    width: 100%;
    height: 100%;
    will-change: transform;
}

.hero-section__sigil-aura {
    position: absolute;
    inset: -18%;
    border-radius: 50%;
    background:
        radial-gradient(circle, rgba(212, 175, 55, 0.28) 0%, rgba(212, 175, 55, 0.08) 38%, transparent 68%);
    animation: sigil-aura-breathe 4.5s ease-in-out infinite;
    pointer-events: none;
    z-index: 0;
}

.hero-section__sigil-ring {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    pointer-events: none;
    z-index: 1;
}

.hero-section__sigil-ring--outer {
    inset: -10%;
    border: 1px solid rgba(212, 175, 55, 0.22);
    box-shadow: 0 0 24px rgba(212, 175, 55, 0.08), inset 0 0 18px rgba(212, 175, 55, 0.04);
    animation: sigil-spin 28s linear infinite;
}

.hero-section__sigil-ring--outer::before,
.hero-section__sigil-ring--outer::after {
    content: '';
    position: absolute;
    width: 0.35rem;
    height: 0.35rem;
    border-radius: 50%;
    background: var(--gold);
    box-shadow: 0 0 10px var(--gold-glow);
}

.hero-section__sigil-ring--outer::before { top: 0; left: 50%; transform: translate(-50%, -40%); }
.hero-section__sigil-ring--outer::after { bottom: 0; left: 50%; transform: translate(-50%, 40%); }

.hero-section__sigil-ring--mid {
    inset: -2%;
    border: 1px dashed rgba(142, 154, 175, 0.28);
    animation: sigil-spin-rev 36s linear infinite;
}

.hero-section__sigil-ring--inner {
    inset: 10%;
    border: 1px solid rgba(212, 175, 55, 0.14);
    animation: sigil-spin 18s linear infinite;
}

.hero-section__sigil-svg {
    position: relative;
    z-index: 2;
    width: 100%;
    height: 100%;
    display: block;
    filter: drop-shadow(0 0 22px rgba(212, 175, 55, 0.35)) drop-shadow(0 0 48px rgba(212, 175, 55, 0.12));
    overflow: visible;
}

.sigil-hex {
    transform-origin: 50px 50px;
    animation: sigil-hex-breathe 5.5s ease-in-out infinite;
}

.sigil-lattice {
    transform-origin: 50px 50px;
    animation: sigil-lattice-pulse 3.8s ease-in-out infinite;
}

.sigil-frame {
    transform-box: fill-box;
    transform-origin: center;
}

.sigil-frame--1 { animation: sigil-frame-spin 40s linear infinite; }
.sigil-frame--2 { animation: sigil-frame-spin-rev 32s linear infinite; }
.sigil-frame--3 { animation: sigil-frame-spin 24s linear infinite; }
.sigil-frame--4 {
    animation: sigil-frame-spin-rev 16s linear infinite, sigil-frame-glow 3.2s ease-in-out infinite;
}

.sigil-orbit {
    transform-origin: 0 0;
    animation: sigil-orbit-spin 12s linear infinite;
}

.sigil-spokes {
    transform-origin: 0 0;
    animation: sigil-orbit-spin-rev 20s linear infinite;
}

.sigil-nucleus {
    transform-origin: 0 0;
    transform-box: fill-box;
    animation: sigil-nucleus-pulse 2.6s ease-in-out infinite;
    filter: drop-shadow(0 0 6px rgba(212, 175, 55, 0.9));
}

@keyframes sigil-aura-breathe {
    0%, 100% { transform: scale(0.92); opacity: 0.55; }
    50% { transform: scale(1.08); opacity: 1; }
}

@keyframes sigil-spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes sigil-spin-rev {
    from { transform: rotate(360deg); }
    to { transform: rotate(0deg); }
}

@keyframes sigil-hex-breathe {
    0%, 100% { transform: scale(1); opacity: 0.9; }
    50% { transform: scale(1.035); opacity: 1; }
}

@keyframes sigil-lattice-pulse {
    0%, 100% { opacity: 0.45; }
    50% { opacity: 0.85; }
}

@keyframes sigil-frame-spin {
    from { transform: rotate(15deg); }
    to { transform: rotate(375deg); }
}

@keyframes sigil-frame-spin-rev {
    from { transform: rotate(75deg); }
    to { transform: rotate(-285deg); }
}

@keyframes sigil-frame-glow {
    0%, 100% { opacity: 0.85; stroke-width: 3.2; }
    50% { opacity: 1; stroke-width: 3.8; }
}

@keyframes sigil-orbit-spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes sigil-orbit-spin-rev {
    from { transform: rotate(0deg); }
    to { transform: rotate(-360deg); }
}

@keyframes sigil-nucleus-pulse {
    0%, 100% { transform: scale(1); opacity: 0.92; }
    50% { transform: scale(1.18); opacity: 1; }
}

.hero-section__title {
    margin: 0;
    color: #fff;
    font-size: clamp(3.15rem, 9.5vw, 5.75rem);
    font-weight: 800;
    letter-spacing: -0.045em;
    line-height: 0.92;
    text-transform: none;
    text-wrap: balance;
}

.hero-section__accent {
    color: var(--gold);
    text-shadow: 0 0 48px var(--gold-glow), 0 0 2px rgba(212, 175, 55, 0.4);
}

.hero-section__promise {
    margin: 1.35rem 0 0;
    color: #fafafa;
    font-size: clamp(1.35rem, 3.2vw, 1.875rem);
    font-weight: 600;
    letter-spacing: -0.025em;
    line-height: 1.25;
    text-wrap: balance;
}

/* Gold hairline  -  separates mark from supporting copy */
.hero-section__promise::after {
    content: '';
    display: block;
    width: 2.75rem;
    height: 2px;
    margin: 1.35rem auto 0;
    background: linear-gradient(
        90deg,
        transparent 0%,
        var(--gold) 20%,
        var(--gold) 80%,
        transparent 100%
    );
    opacity: 0.75;
    border-radius: 1px;
}

.hero-section__lede {
    max-width: 36rem;
    margin: 1.35rem auto 0;
    color: #a1a1aa;
    font-size: clamp(1.05rem, 2vw, 1.2rem);
    font-weight: 400;
    line-height: 1.65;
}

.hero-section__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.875rem;
    margin-top: 2.35rem;
}

.hero-section__cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 3.25rem;
    padding: 0.9rem 1.75rem;
    border-radius: 1rem;
    font-size: 0.975rem;
    font-weight: 600;
    letter-spacing: -0.01em;
    text-decoration: none;
    transition:
        background-color 0.2s ease,
        border-color 0.2s ease,
        color 0.2s ease,
        box-shadow 0.25s ease,
        transform 0.15s ease;
}

.hero-section__cta:focus-visible {
    outline: 2px solid rgba(212, 175, 55, 0.55);
    outline-offset: 3px;
}

/* Primary action: high-contrast surface + gold perimeter for brand focal */
.hero-section__cta--primary {
    background: #fafafa;
    color: #09090b;
    border: 1px solid #fafafa;
    box-shadow:
        0 0 0 1px rgba(212, 175, 55, 0.35),
        0 0 28px rgba(212, 175, 55, 0.12),
        0 8px 24px rgba(0, 0, 0, 0.28);
    font-weight: 700;
    letter-spacing: 0.01em;
}

.hero-section__cta--primary:hover {
    background: #fff;
    border-color: #fff;
    box-shadow:
        0 0 0 1px rgba(212, 175, 55, 0.55),
        0 0 40px rgba(212, 175, 55, 0.28),
        0 10px 28px rgba(0, 0, 0, 0.32);
}

.hero-section__cta--primary:active {
    transform: scale(0.985);
}

.hero-section__cta--secondary {
    background: transparent;
    color: #d4d4d8;
    border: 1px solid #3f3f46;
    font-weight: 500;
}

.hero-section__cta--secondary:hover {
    border-color: rgba(212, 175, 55, 0.35);
    color: #fafafa;
    background: rgba(24, 24, 27, 0.72);
}

.hero-section__signals {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.75rem;
    list-style: none;
    margin: 2.75rem auto 0;
    padding: 0;
    max-width: 52rem;
}

.hero-section__signal {
    --signal-i: 0;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.45rem;
    text-align: left;
    padding: 1.15rem 1.2rem 1.25rem;
    background: rgba(24, 24, 27, 0.55);
    border: 1px solid #27272a;
    border-radius: 1.15rem;
    overflow: hidden;
    transition:
        border-color 0.25s ease,
        background-color 0.25s ease,
        box-shadow 0.3s ease,
        transform 0.25s ease;
}

/* Amber scan-line draws in after hero ready */
.hero-section__signal::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    height: 2px;
    width: 100%;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(212, 175, 55, 0.15) 20%,
        rgba(212, 175, 55, 0.85) 50%,
        rgba(212, 175, 55, 0.15) 80%,
        transparent 100%
    );
    transform: scaleX(0);
    transform-origin: left center;
    opacity: 0;
}

.hero-section.is-ready .hero-section__signal::before {
    animation: hero-signal-scan 0.85s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    animation-delay: calc(0.58s + (var(--signal-i) * 0.1s));
}

@keyframes hero-signal-scan {
    0% {
        transform: scaleX(0);
        opacity: 0;
    }
    20% {
        opacity: 1;
    }
    100% {
        transform: scaleX(1);
        opacity: 1;
    }
}

.hero-section__signal:hover {
    border-color: rgba(212, 175, 55, 0.35);
    background: rgba(24, 24, 27, 0.85);
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.35);
    transform: translateY(-2px);
}

.hero-section__signal-key {
    flex-shrink: 0;
    color: rgba(212, 175, 55, 0.8);
    font-family: var(--font-mono);
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.14em;
}

.hero-section__signal-title {
    color: #fafafa;
    font-size: 0.975rem;
    font-weight: 600;
    letter-spacing: -0.02em;
    line-height: 1.25;
}

.hero-section__signal-val {
    color: #a1a1aa;
    font-size: 0.8125rem;
    font-weight: 400;
    letter-spacing: -0.01em;
    line-height: 1.55;
}

@media (min-width: 640px) {
    .hero-section__cta {
        min-width: 11.5rem;
        padding: 0.95rem 2rem;
    }

    .hero-section__signals {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.875rem;
    }

    .hero-section__signal {
        min-height: 100%;
        padding: 1.25rem 1.15rem 1.35rem;
    }
}

/* Staggered entrance: .is-pending hides, .is-ready reveals (JS-gated; visible without JS) */
.hero-section.is-pending .hero-section__sigil,
.hero-section.is-pending .hero-section__title,
.hero-section.is-pending .hero-section__promise,
.hero-section.is-pending .hero-section__lede,
.hero-section.is-pending .hero-section__actions,
.hero-section.is-pending .hero-section__signal {
    opacity: 0;
    transform: translateY(14px);
}

.hero-section.is-pending .hero-section__sigil,
.hero-section.is-pending .hero-section__title,
.hero-section.is-pending .hero-section__promise,
.hero-section.is-pending .hero-section__lede,
.hero-section.is-pending .hero-section__actions,
.hero-section.is-pending .hero-section__signal,
.hero-section.is-ready .hero-section__sigil,
.hero-section.is-ready .hero-section__title,
.hero-section.is-ready .hero-section__promise,
.hero-section.is-ready .hero-section__lede,
.hero-section.is-ready .hero-section__actions,
.hero-section.is-ready .hero-section__signal {
    transition:
        opacity 0.65s cubic-bezier(0.16, 1, 0.3, 1),
        transform 0.65s cubic-bezier(0.16, 1, 0.3, 1),
        border-color 0.25s ease,
        background-color 0.25s ease,
        box-shadow 0.3s ease;
}

.hero-section.is-ready .hero-section__sigil { opacity: 1; transform: none; transition-delay: 0.05s; }
.hero-section.is-ready .hero-section__title { opacity: 1; transform: none; transition-delay: 0.14s; }
.hero-section.is-ready .hero-section__promise { opacity: 1; transform: none; transition-delay: 0.22s; }
.hero-section.is-ready .hero-section__lede { opacity: 1; transform: none; transition-delay: 0.3s; }
.hero-section.is-ready .hero-section__actions { opacity: 1; transform: none; transition-delay: 0.38s; }
.hero-section.is-ready .hero-section__signal {
    opacity: 1;
    transform: none;
    transition-delay: calc(0.46s + (var(--signal-i) * 0.09s));
}

.hero-section.is-ready .hero-section__signal:hover {
    transform: translateY(-2px);
}

/* Legacy page / subpage utilities */
.hero {
    min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center;
    text-align: center; position: relative; z-index: 2; padding: 10rem 2rem 5rem;
}

.sigil-container {
    width: clamp(200px, 30vw, 280px); height: clamp(200px, 30vw, 280px); margin-bottom: 3.5rem;
    filter: drop-shadow(0 0 50px var(--gold-glow));
    animation: pulse 4s ease-in-out infinite;
    transition: transform 0.1s ease-out;
}

.sigil-container img {
    width: 100%;
    height: 100%;
    display: block;
}

@keyframes pulse { 0%, 100% { transform: scale(1); opacity: 0.8; } 50% { transform: scale(1.03); opacity: 1; } }

h1 {
    font-size: clamp(2.8rem, 8vw, 5.5rem); font-weight: 900; letter-spacing: -0.05em;
    line-height: 0.9; margin-bottom: 2rem; text-transform: uppercase;
}

h1 span.gold { color: var(--gold); text-shadow: 0 0 35px var(--gold-glow); }

.subtitle {
    max-width: 750px; color: var(--steel); font-size: clamp(1rem, 1.8vw, 1.2rem);
    margin-bottom: 4rem; font-weight: 300; margin-left: auto; margin-right: auto; line-height: 1.5;
}

.cta, .cta-secondary {
    display: inline-block; padding: 1.2rem 3.5rem; border: 2px solid var(--gold);
    color: var(--gold); font-family: var(--font-mono); font-weight: 700;
    text-transform: uppercase; letter-spacing: 0.3em; text-decoration: none;
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.cta:hover, .cta-secondary:hover {
    background: var(--gold); color: var(--obsidian);
    box-shadow: 0 0 60px var(--gold-glow); transform: translateY(-4px);
}

.cta-secondary {
    margin-top: 2.5rem; padding: 0.9rem 2rem; font-size: 0.75rem; letter-spacing: 0.25em;
}

section {
    position: relative;
    z-index: 2;
}

.container { max-width: 1100px; margin: 0 auto; }

/* Card design system */
.card {
    display: flex;
    flex-direction: column;
    background-color: #18181b;
    border: 1px solid #27272a;
    border-radius: 1.5rem;
    padding: 2rem;
    transition: border-color 0.2s ease, color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.card-hover:hover {
    border-color: rgba(212, 175, 55, 0.35);
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
}

.card-number {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.22em;
    color: rgba(212, 175, 55, 0.95);
    margin-bottom: 0.65rem;
    width: fit-content;
    min-width: 2.25rem;
}

/* Foundation principles  -  ordered card row using shared .card system */
.foundation-principles {
    list-style: none;
}

.foundation-principles > .card {
    height: 100%;
}

/* Number + mono label stack: scan path is 01 â†’ PERIMETER â†’ title */
.foundation-principles .card-number {
    margin-bottom: 0.4rem;
    padding-bottom: 0;
    border-bottom: none;
}

.foundation-principles .card-label {
    margin-bottom: 0.85rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid rgba(212, 175, 55, 0.18);
    text-transform: uppercase;
    color: rgba(212, 175, 55, 0.85);
}

.foundation-principles .card-title {
    margin-bottom: 0.65rem;
    line-height: 1.25;
}

.card-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 0.75rem;
}

.card-title-lg {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.025em;
    color: #ffffff;
    margin-bottom: 0.75rem;
}

.card-desc {
    color: #a1a1aa;
    font-size: 15px;
    line-height: 1.625;
    flex: 1;
}

.card-icon {
    color: var(--gold);
    margin-bottom: 1rem;
}

.card-icon svg {
    display: block;
}

.card-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.card-header .card-icon {
    margin-bottom: 0;
}

.card-header .card-title {
    margin-bottom: 0;
}

.card-label {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    letter-spacing: 0.125em;
    color: rgba(212, 175, 55, 0.8);
    margin-bottom: 1.5rem;
}

.card-footer {
    margin-top: 1.5rem;
    font-size: 10px;
    font-family: var(--font-mono);
    letter-spacing: 0.1em;
    color: #71717a;
    transition: color 0.2s ease;
}

.card-hover:hover .card-footer {
    color: rgba(212, 175, 55, 0.7);
}

.label {
    color: var(--gold); font-family: var(--font-mono); font-size: 0.7rem;
    letter-spacing: 0.5em; text-transform: uppercase; margin-bottom: 1.5rem;
    display: block; font-weight: 600;
}

/*  -  -  -  Sovereign Nodal Stack (#architecture)  -  -  -  */
/* Reliable layout: rail lives INSIDE the panel (no negative-left overflow). */
.nodal-stack {
    --stack-rail: 3px;
    --stack-gap: 0.65rem;
    --stack-gutter: 1.15rem;
    box-sizing: border-box;
    width: 100%;
    max-width: 48rem;
    margin-left: auto;
    margin-right: auto;
    background-color: #18181b;
    border: 1px solid #3f3f46;
    border-radius: 1.5rem;
    padding: 1.5rem 1.5rem 1.25rem;
    overflow: hidden; /* clip decorative wash; rail is inside padding */
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.nodal-stack *,
.nodal-stack *::before,
.nodal-stack *::after {
    box-sizing: border-box;
}

.nodal-stack__orient {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin: 0 0 1.1rem;
    font-family: var(--font-mono);
    font-size: 0.625rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: #71717a;
}

.nodal-stack__orient-line {
    flex: 1 1 auto;
    min-width: 1rem;
    height: 1px;
    background: linear-gradient(
        90deg,
        rgba(212, 175, 55, 0.55),
        rgba(63, 63, 70, 0.55) 70%,
        rgba(63, 63, 70, 0.2)
    );
}

.nodal-stack__layers {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: var(--stack-gap);
}

.nodal-stack__layers > li {
    list-style: none;
    margin: 0;
    padding: 0;
}

.nodal-stack__layer {
    position: relative;
    display: grid;
    grid-template-columns: minmax(2.25rem, 2.75rem) minmax(0, 1fr);
    column-gap: 1rem;
    row-gap: 0.35rem;
    align-items: start;
    padding: 1.05rem 1.1rem 1.05rem calc(var(--stack-gutter) + 0.35rem);
    border: 1px solid #27272a;
    border-left: var(--stack-rail) solid rgba(212, 175, 55, 0.7);
    border-radius: 0.85rem;
    background:
        linear-gradient(90deg, rgba(212, 175, 55, 0.05), transparent 46%),
        #18181b;
    min-width: 0;
}

/* Rail node  -  inside the layer, on the left border (no negative offsets) */
.nodal-stack__layer::before {
    content: "";
    position: absolute;
    left: calc(var(--stack-rail) / 2 - 3.5px);
    top: 1.35rem;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--gold);
    box-shadow: 0 0 0 2px #18181b;
    z-index: 1;
    pointer-events: none;
}

/* Vertical connector stays inside the card column */
.nodal-stack__layer:not(:last-child)::after {
    content: "";
    position: absolute;
    left: calc(var(--stack-rail) / 2 - 0.5px);
    top: calc(1.35rem + 7px);
    bottom: calc(var(--stack-gap) * -1 - 1px);
    width: 1px;
    background: linear-gradient(
        180deg,
        rgba(212, 175, 55, 0.55),
        rgba(212, 175, 55, 0.15)
    );
    z-index: 0;
    pointer-events: none;
}

/* Depth bands: surface brightest â†’ foundation denser */
.nodal-stack__layer--l4 {
    border-left-color: rgba(212, 175, 55, 1);
    background:
        linear-gradient(90deg, rgba(212, 175, 55, 0.08), transparent 48%),
        #1c1c20;
}
.nodal-stack__layer--l4::before { background: rgba(212, 175, 55, 1); }

.nodal-stack__layer--l3 {
    border-left-color: rgba(212, 175, 55, 0.85);
    background:
        linear-gradient(90deg, rgba(212, 175, 55, 0.055), transparent 45%),
        #19191d;
}
.nodal-stack__layer--l3::before { background: rgba(212, 175, 55, 0.9); }

.nodal-stack__layer--l2 {
    border-left-color: rgba(212, 175, 55, 0.68);
    background:
        linear-gradient(90deg, rgba(212, 175, 55, 0.04), transparent 42%),
        #16161a;
}
.nodal-stack__layer--l2::before { background: rgba(212, 175, 55, 0.75); }

.nodal-stack__layer--l1 {
    border-left-color: rgba(212, 175, 55, 0.5);
    background:
        linear-gradient(90deg, rgba(212, 175, 55, 0.03), transparent 40%),
        #141417;
}
.nodal-stack__layer--l1::before { background: rgba(212, 175, 55, 0.58); }

.nodal-stack__index {
    font-family: var(--font-mono);
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    color: var(--gold);
    line-height: 1.4;
    padding-top: 0.15rem;
    text-align: right;
    font-variant-numeric: tabular-nums;
}

.nodal-stack__layer--l4 .nodal-stack__index { color: rgba(212, 175, 55, 1); }
.nodal-stack__layer--l3 .nodal-stack__index { color: rgba(212, 175, 55, 0.92); }
.nodal-stack__layer--l2 .nodal-stack__index { color: rgba(212, 175, 55, 0.8); }
.nodal-stack__layer--l1 .nodal-stack__index { color: rgba(212, 175, 55, 0.68); }

.nodal-stack__body {
    min-width: 0;
    overflow-wrap: anywhere;
}

.nodal-stack__code {
    font-family: var(--font-mono);
    font-size: 0.6875rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: rgba(212, 175, 55, 0.92);
    margin-bottom: 0.3rem;
}

.nodal-stack__layer--l4 .nodal-stack__code { color: rgba(212, 175, 55, 1); }
.nodal-stack__layer--l3 .nodal-stack__code { color: rgba(212, 175, 55, 0.92); }
.nodal-stack__layer--l2 .nodal-stack__code { color: rgba(212, 175, 55, 0.82); }
.nodal-stack__layer--l1 .nodal-stack__code { color: rgba(212, 175, 55, 0.72); }

.nodal-stack__title {
    color: #ffffff;
    font-size: 1.0625rem;
    font-weight: 600;
    line-height: 1.35;
    letter-spacing: -0.01em;
    overflow-wrap: break-word;
}

.nodal-stack__desc {
    margin: 0.4rem 0 0;
    color: #a1a1aa;
    font-size: 0.9375rem;
    line-height: 1.55;
}

.nodal-stack__footnote {
    margin-top: 2rem;
    max-width: 36rem;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
    color: #a1a1aa;
    font-size: 0.9375rem;
    line-height: 1.55;
}

/* Mobile: stack remains readable; index/code stay on one logical scan path */
@media (max-width: 640px) {
    .nodal-stack {
        padding: 1.15rem 1rem 1rem;
        border-radius: 1.25rem;
    }

    .nodal-stack__layer {
        grid-template-columns: 2rem minmax(0, 1fr);
        column-gap: 0.75rem;
        padding: 0.95rem 0.85rem 0.95rem calc(var(--stack-gutter) + 0.15rem);
    }

    .nodal-stack__title {
        font-size: 1rem;
    }

    .nodal-stack__desc {
        font-size: 0.875rem;
    }

    .nodal-stack__code {
        letter-spacing: 0.14em;
    }
}


@media (prefers-reduced-motion: reduce) {
    .nodal-stack__layer,
    .nodal-stack__layer::before,
    .nodal-stack__layer::after {
        transition: none;
        animation: none;
    }
}
/* Landing sections control h2 spacing via Tailwind; keep legacy margin for page heroes */
h2 {
    line-height: 1.1;
}

section h2 {
    margin-bottom: 0;
}

.sr-only {
    position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

.site-footer {
    padding: 4rem 2rem 5rem; text-align: center;
    border-top: 1px solid var(--steel-dim); position: relative; z-index: 2;
}

.footer-links {
    display: flex; flex-wrap: wrap; justify-content: center; gap: 1rem 2.5rem;
    margin-bottom: 1.5rem;
}

.footer-links a {
    color: var(--steel); text-decoration: none; font-family: var(--font-mono);
    font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.2em; transition: color 0.3s;
}

.footer-links a:hover { color: var(--gold); }

.footer-copy {
    font-family: var(--font-mono); font-size: 0.7rem; color: var(--steel);
    letter-spacing: 0.2em; opacity: 0.6;
}

.footer-heritage {
    font-family: var(--font-mono); font-size: 0.6rem; color: var(--steel);
    letter-spacing: 0.25em; opacity: 0.3; margin-top: 1.5rem;
}

.page-hero {
    padding: calc(var(--nav-height) + 6rem) 2rem 3rem; text-align: center;
    position: relative; z-index: 2; border-bottom: 1px solid var(--steel-dim);
}

.page-hero h1 {
    font-size: clamp(2rem, 5vw, 3.5rem); margin-bottom: 1rem;
}

.page-hero .subtitle { margin-bottom: 0; }

.legal-content, .manifesto-full {
    max-width: 850px; margin: 0 auto; padding: 6rem 2rem;
    position: relative; z-index: 2;
}

.legal-content h2, .manifesto-full h3 {
    font-family: var(--font-mono); font-size: 0.95rem; color: var(--gold);
    letter-spacing: 0.15em; text-transform: uppercase; margin: 2.5rem 0 1rem;
}

.legal-content p, .manifesto-full p {
    color: var(--steel); font-size: 0.95rem; font-weight: 300;
    line-height: 1.8; margin-bottom: 1.25rem;
}

.legal-content a, .manifesto-full a { color: var(--gold); }

.legal-updated {
    margin-top: 3rem; padding-top: 2rem; border-top: 1px solid var(--steel-dim);
    font-family: var(--font-mono); font-size: 0.75rem; color: var(--steel); opacity: 0.6;
}

.manifesto-meta {
    font-family: var(--font-mono); font-size: 0.8rem; color: var(--gold);
    letter-spacing: 0.2em; margin-bottom: 2.5rem; padding-bottom: 1rem;
    border-bottom: 1px solid var(--steel-dim);
}

.manifesto-full .lead { color: #E5E5E5; font-size: 1.1rem; }

.manifesto-full .emphasis { color: var(--gold); font-weight: 600; }

.security-grid {
    display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; margin-top: 3rem;
}

.security-item {
    border-left: 2px solid var(--gold); padding-left: 1.5rem;
}

.security-item h4 {
    font-family: var(--font-mono); font-size: 0.8rem; color: var(--gold);
    letter-spacing: 0.1em; margin-bottom: 0.5rem; text-transform: uppercase;
}

.security-item p { font-size: 0.85rem; margin-bottom: 0; }

.manifesto-closing {
    margin-top: 4rem; padding-top: 2rem; border-top: 1px solid var(--steel-dim);
    text-align: center; font-family: var(--font-mono); font-size: 1rem;
    letter-spacing: 0.2em; color: var(--gold);
}

.page-cta { text-align: center; padding-bottom: 6rem; position: relative; z-index: 2; }

/*  -  -  -  Clandestine Briefing / Inquiry CTA (primary conversion)  -  -  -  */
.inquiry {
    position: relative;
    z-index: 2;
    padding: 5.5rem 1.5rem 6rem;
    border-top: 1px solid rgba(63, 63, 70, 0.85);
    /* Soft vault glow  -  draws the eye without sales flash */
    background:
        radial-gradient(ellipse 70% 55% at 50% 0%, rgba(212, 175, 55, 0.07), transparent 62%),
        radial-gradient(ellipse 50% 40% at 50% 100%, rgba(24, 24, 27, 0.9), transparent 70%);
}

.inquiry__shell {
    position: relative;
    max-width: 40rem;
    margin: 0 auto;
}

.inquiry__header {
    text-align: center;
    margin-bottom: 2.25rem;
}


.inquiry__badge::before {
    content: ";
    width: 0.4rem;
    height: 0.4rem;
    border-radius: 50%;
    background: var(--gold);
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.16);
    flex-shrink: 0;
}

.inquiry__badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0 auto 1rem;
    padding: 0.35rem 0.85rem;
    border-radius: 999px;
    border: 1px solid rgba(212, 175, 55, 0.32);
    background: rgba(212, 175, 55, 0.06);
    color: var(--gold);
    font-family: var(--font-mono);
    font-size: 0.7rem;
    letter-spacing: 0.18em;
    font-weight: 600;
}

.inquiry__title {
    margin: 0;
    font-size: clamp(2rem, 4.5vw, 3rem);
    font-weight: 700;
    letter-spacing: -0.025em;
    line-height: 1.1;
    color: #fff;
}

.inquiry__lede {
    margin: 0.9rem auto 0;
    max-width: 26rem;
    font-size: 1.05rem;
    line-height: 1.55;
    color: #a1a1aa;
}

/* Fortified form panel  -  gold crown edge + enclave frame */
.inquiry__form {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 1.35rem;
    padding: 2rem 1.75rem 1.75rem;
    border-radius: 1.5rem;
    border: 1px solid rgba(63, 63, 70, 0.95);
    background:
        linear-gradient(180deg, rgba(24, 24, 27, 0.96) 0%, rgba(9, 9, 11, 0.94) 100%);
    box-shadow:
        0 0 0 1px rgba(212, 175, 55, 0.04),
        0 24px 64px rgba(0, 0, 0, 0.45);
}

.inquiry__form::before {
    content: "";
    position: absolute;
    top: 0;
    left: 1.5rem;
    right: 1.5rem;
    height: 2px;
    border-radius: 2px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
    opacity: 0.85;
    pointer-events: none;
}

.inquiry__row {
    display: flex;
    flex-direction: column;
    gap: 1.35rem;
}

.inquiry__row--split {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.35rem;
}

@media (min-width: 768px) {
    .inquiry__row--split {
        grid-template-columns: 1fr 1fr;
        gap: 1.25rem;
    }

    .inquiry__form {
        padding: 2.35rem 2.35rem 2rem;
        gap: 1.5rem;
    }
}

.inquiry__field {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    min-width: 0;
}

.inquiry__label {
    display: block;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.12em;
    color: #d4d4d8;
}

.inquiry__input {
    color-scheme: dark;
    width: 100%;
    min-height: 3rem;
    padding: 0.75rem 1rem;
    border-radius: 1rem;
    border: 1px solid #3f3f46;
    background: #09090b;
    color: #fff;
    font-family: var(--font-sans);
    font-size: 1rem; /* â‰¥16px prevents iOS zoom */
    line-height: 1.4;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
    -webkit-appearance: none;
    appearance: none;
}

.inquiry__input::placeholder {
    color: #71717a;
}

.inquiry__input--area {
    min-height: 8.5rem;
    padding-top: 0.85rem;
    border-radius: 1.15rem;
    resize: vertical;
}

.inquiry__input:hover {
    border-color: #52525b;
}

.inquiry__input:focus {
    outline: none;
    border-color: rgba(212, 175, 55, 0.65);
}

.inquiry__input:focus-visible {
    outline: none;
    border-color: var(--gold);
    box-shadow:
        0 0 0 3px rgba(212, 175, 55, 0.22),
        0 0 0 1px rgba(212, 175, 55, 0.35);
}

.inquiry__honeypot {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

.inquiry__actions {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0.85rem;
    padding-top: 0.35rem;
}

.inquiry__submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    width: 100%;
    min-height: 3.35rem;
    padding: 0.95rem 2.25rem;
    border: 1px solid #fafafa;
    border-radius: 1rem;
    background: #fafafa;
    color: #09090b;
    box-shadow: 0 0 0 1px rgba(212, 175, 55, 0.18), 0 12px 40px rgba(0, 0, 0, 0.35);
    font-family: var(--font-mono);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    cursor: pointer;
    transition:
        background-color 0.2s ease,
        box-shadow 0.25s ease,
        transform 0.15s ease,
        opacity 0.2s ease;
}

.inquiry__submit:hover {
    background: #fff;
    box-shadow: 0 0 40px rgba(212, 175, 55, 0.25);
}

.inquiry__submit:active {
    transform: scale(0.985);
    background: #fff;
}

.inquiry__submit:focus {
    outline: none;
}

.inquiry__submit:focus-visible {
    outline: 2px solid rgba(212, 175, 55, 0.55);
    outline-offset: 3px;
    box-shadow: 0 0 0 4px rgba(212, 175, 55, 0.12);
}

.inquiry__submit:disabled,
.inquiry__submit[aria-busy="true"] {
    cursor: wait;
    opacity: 0.65;
    transform: none;
    box-shadow: none;
}

.inquiry__submit-arrow {
    display: inline-block;
    transition: transform 0.15s ease;
}

.inquiry__submit:hover .inquiry__submit-arrow {
    transform: translateX(2px);
}

.inquiry__assurance {
    margin: 0;
    text-align: center;
    font-size: 0.7rem;
    letter-spacing: 0.04em;
    line-height: 1.45;
    color: #71717a;
}

.inquiry__status {
    margin-top: 1.5rem;
    padding: 2rem 1.5rem;
    border-radius: 1.35rem;
    text-align: center;
}

.inquiry__status--success {
    border: 1px solid rgba(6, 78, 59, 0.85);
    background: rgba(2, 44, 34, 0.55);
}

.inquiry__status--error {
    border: 1px solid rgba(127, 29, 29, 0.85);
    background: rgba(69, 10, 10, 0.45);
}

.inquiry__status-title {
    margin: 0;
    font-family: var(--font-mono);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.14em;
}

.inquiry__status--success .inquiry__status-title {
    color: #34d399;
}

.inquiry__status--error .inquiry__status-title {
    color: #f87171;
}

.inquiry__status-body {
    margin: 0.65rem auto 0;
    max-width: 22rem;
    font-size: 0.9rem;
    line-height: 1.55;
}

.inquiry__status--success .inquiry__status-body {
    color: rgba(110, 231, 183, 0.78);
}

.inquiry__status--error .inquiry__status-body {
    color: rgba(252, 165, 165, 0.78);
}

.inquiry__status-body a {
    color: inherit;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.inquiry__status-body a:hover {
    color: #fecaca;
}

.inquiry__status-body a:focus-visible {
    outline: 2px solid rgba(248, 113, 113, 0.5);
    outline-offset: 2px;
    border-radius: 2px;
}

@media (min-width: 768px) {
    .inquiry {
        padding: 6.5rem 1.5rem 7rem;
    }

    .inquiry__actions {
        flex-direction: row;
        flex-wrap: wrap;
        align-items: center;
        justify-content: space-between;
        gap: 1rem 1.5rem;
    }

    .inquiry__submit {
        width: auto;
        min-width: 14rem;
    }

    .inquiry__assurance {
        text-align: left;
        flex: 1;
        min-width: 12rem;
    }
}

@media (max-width: 480px) {
    .inquiry {
        padding: 4rem 1rem 5rem;
    }

    .inquiry__form {
        padding: 1.5rem 1.15rem 1.35rem;
        border-radius: 1.25rem;
        gap: 1.15rem;
    }

    .inquiry__form::before {
        left: 1rem;
        right: 1rem;
    }

    .inquiry__input {
        min-height: 3.15rem; /* touch-friendly */
        padding: 0.85rem 0.95rem;
    }

    .inquiry__submit {
        min-height: 3.35rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .inquiry__submit,
    .inquiry__submit-arrow,
    .inquiry__input {
        transition: none;
    }

    .inquiry__submit:active {
        transform: none;
    }

    .inquiry__submit:hover .inquiry__submit-arrow {
        transform: none;
    }
}

@media (max-width: 1024px) {
    .security-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    .nav-toggle { display: block; }
    .nav-links {
        position: fixed; top: var(--nav-height); left: 0; right: 0;
        flex-direction: column; gap: 0; background: rgba(5, 7, 10, 0.98);
        border-bottom: 1px solid var(--steel-dim); padding: 0.5rem 0 1rem;
        transform: translateY(-120%); opacity: 0; pointer-events: none;
        transition: transform 0.3s ease, opacity 0.3s ease;
    }
    .nav-links.open { transform: translateY(0); opacity: 1; pointer-events: auto; }
    .nav-links a { width: 100%; padding: 0.85rem 2rem; text-align: left; }
}

@media (prefers-reduced-motion: reduce) {
    .sigil-container { animation: none; }
    .hero-data-rain { display: none; }
    .hero-section__sigil-aura,
    .hero-section__sigil-ring,
    .sigil-hex,
    .sigil-lattice,
    .sigil-frame,
    .sigil-orbit,
    .sigil-spokes,
    .sigil-nucleus {
        animation: none !important;
    }
    * { scroll-behavior: auto; }
    .card-hover:hover {
        transform: none;
        box-shadow: none;
    }
    .hero-section.is-pending .hero-section__sigil,
    .hero-section.is-pending .hero-section__title,
    .hero-section.is-pending .hero-section__promise,
    .hero-section.is-pending .hero-section__lede,
    .hero-section.is-pending .hero-section__actions,
    .hero-section.is-pending .hero-section__signal {
        opacity: 1;
        transform: none;
        transition: none;
    }
    .hero-section.is-ready .hero-section__signal::before {
        animation: none;
        transform: scaleX(1);
        opacity: 1;
    }
    .hero-section__signal:hover {
        transform: none;
        box-shadow: none;
    }
    .hero-section__cta--primary:active {
        transform: none;
    }
}
/* Explicit utility — form success/error rely on this even if Tailwind CDN is slow */
.hidden { display: none !important; }

@media (max-width: 640px) {
    .inquiry {
        padding: 3.5rem 1.1rem 4.5rem;
    }
    .inquiry__form {
        padding: 1.5rem 1.15rem 1.35rem;
    }
    .inquiry__submit {
        min-height: 3.15rem;
    }
}
