@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,400;9..144,500;9..144,600;9..144,700&family=Manrope:wght@400;500;600;700;800&display=swap');

:root {
    --bg-0: #0a0b0e;
    --bg-1: #111319;
    --bg-2: #15171f;
    --bronze: #c68a4e;
    --copper: #d99a5b;
    --gold: #e8c07f;
    --ivory: #f4ede2;
    --muted: #b3ac9f;
    --line: rgba(244, 237, 226, 0.10);
}

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

html, body {
    margin: 0;
    padding: 0;
    width: 100%;
    overflow-x: hidden;
    background: var(--bg-0);
}

body {
    font-family: 'Manrope', sans-serif;
    color: var(--ivory);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    background:
        radial-gradient(ellipse 80% 60% at 20% 10%, rgba(198, 138, 78, 0.10), transparent 60%),
        radial-gradient(ellipse 70% 50% at 85% 85%, rgba(217, 154, 91, 0.08), transparent 60%),
        linear-gradient(180deg, var(--bg-0) 0%, var(--bg-1) 50%, var(--bg-0) 100%);
    min-height: 100vh;
    position: relative;
}

a { color: inherit; text-decoration: none; }

h1, h2, h3 {
    font-family: 'Fraunces', serif;
    font-weight: 600;
    margin: 0;
}

/* ---- Background animation layer ----
   Fixed behind everything; kept at z-index 0/1 (never negative) so it
   stays visible while scrolling without ever covering content. ---- */

#bg-layer {
    position: fixed;
    inset: 0;
    z-index: 0;
    background: transparent;
}

#orbit-canvas {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
    display: block;
}

/* ---- Nav ---- */

nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 30;
    backdrop-filter: blur(14px) saturate(140%);
    -webkit-backdrop-filter: blur(14px) saturate(140%);
    background: rgba(10, 11, 14, 0.55);
    border-bottom: 1px solid var(--line);
}

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

.wordmark {
    font-family: 'Fraunces', serif;
    font-weight: 600;
    font-size: 1.4rem;
    letter-spacing: 0.02em;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--ivory);
}

.wordmark-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 30%, var(--gold), var(--bronze) 70%);
    box-shadow: 0 0 10px rgba(217, 154, 91, 0.7);
    display: inline-block;
}

.nav-link {
    font-family: 'Manrope', sans-serif;
    font-weight: 700;
    font-size: 0.85rem;
    letter-spacing: 0.03em;
    padding: 10px 20px;
    border-radius: 999px;
    border: 1px solid rgba(230, 180, 120, 0.5);
    background: rgba(198, 138, 78, 0.10);
    color: var(--ivory);
    transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
    white-space: nowrap;
}

.nav-link:hover,
.nav-link:focus-visible {
    background: rgba(198, 138, 78, 0.22);
    border-color: var(--gold);
    transform: translateY(-1px);
}

.nav-link:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }

@media (max-width: 650px) {
    .nav-inner { padding: 14px 18px; }
    .wordmark { font-size: 1.15rem; }
    .nav-link { padding: 8px 14px; font-size: 0.75rem; }
}

/* ---- Layout wrapper ---- */

main {
    position: relative;
    z-index: 10;
}

.hero,
.cards-section,
.cta,
.signal-line {
    position: relative;
    z-index: 2;
}

section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 32px;
}

/* ---- Hero ---- */

.hero {
    padding-top: 14vh;
    padding-bottom: 9vh;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.eyebrow {
    font-family: 'Manrope', sans-serif;
    font-size: 0.78rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--copper);
    margin: 0 0 22px;
    font-weight: 700;
}

.hero h1 {
    font-size: clamp(2rem, 6vw, 5rem);
    line-height: 1.12;
    letter-spacing: -0.01em;
    background: linear-gradient(100deg, var(--ivory) 40%, var(--gold) 65%, var(--copper) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero-sub {
    margin: 26px 0 0;
    max-width: 680px;
    font-size: 1.08rem;
    line-height: 1.65;
    color: var(--muted);
}

@media (max-width: 480px) {
    .hero { padding-top: 12vh; padding-bottom: 7vh; }
    .hero-sub { font-size: 1rem; }
}

/* ---- Cards ---- */

.cards-section {
    padding-bottom: 12vh;
}

.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
}

.card {
    padding: 38px 34px;
    border-radius: 18px;
    background: linear-gradient(160deg, rgba(244, 237, 226, 0.045), rgba(244, 237, 226, 0.015));
    border: 1px solid var(--line);
    transition: transform 0.28s ease, border-color 0.28s ease, box-shadow 0.28s ease;
}

.card:hover {
    transform: translateY(-6px);
    border-color: rgba(230, 192, 127, 0.4);
    box-shadow: 0 20px 40px -20px rgba(198, 138, 78, 0.35);
}

.card-mark {
    width: 34px; height: 34px;
    border-radius: 50%;
    border: 1.5px solid var(--copper);
    position: relative;
    margin-bottom: 22px;
}

.card-mark::after {
    content: '';
    position: absolute;
    top: 50%; left: 50%;
    width: 6px; height: 6px;
    border-radius: 50%;
    background: var(--gold);
    transform: translate(-50%, -50%);
    box-shadow: 0 0 8px rgba(232, 192, 127, 0.8);
}

.card h3 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--ivory);
}

.card p {
    margin: 0;
    color: var(--muted);
    font-size: 0.98rem;
    line-height: 1.6;
}

@media (max-width: 480px) {
    .card { padding: 30px 24px; }
}

/* ---- CTA / Signal line ---- */

.cta {
    padding-top: 6vh;
    padding-bottom: 14vh;
}

.signal-line {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 22px;
}

.signal-status {
    margin: 0;
    font-size: 0.8rem;
    letter-spacing: 0.2em;
    font-weight: 700;
    color: var(--gold);
    text-transform: uppercase;
}

.signal-cta {
    display: inline-block;
    font-family: 'Fraunces', serif;
    font-weight: 600;
    font-size: 1.15rem;
    letter-spacing: 0.01em;
    padding: 20px 48px;
    border-radius: 999px;
    color: var(--bg-0);
    background: linear-gradient(120deg, var(--gold), var(--bronze));
    box-shadow: 0 18px 40px -14px rgba(217, 154, 91, 0.55);
    transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.signal-cta:hover,
.signal-cta:focus-visible {
    transform: translateY(-3px);
    box-shadow: 0 22px 48px -12px rgba(217, 154, 91, 0.7);
    filter: brightness(1.06);
}

.signal-cta:focus-visible { outline: 2px solid var(--ivory); outline-offset: 3px; }

.signal-sub {
    margin: 0;
    font-size: 0.9rem;
    color: var(--muted);
}

@media (max-width: 480px) {
    section { padding: 0 20px; }
    .signal-cta { padding: 17px 34px; font-size: 1.02rem; }
}

/* ---- Footer ---- */
/* Footer markup itself is injected via SSI and shouldn't be edited per-domain.
   The dark theme means we can't trust the partial's default text color for
   contrast, so styling is forced here: opaque panel, light text, gold links,
   above the fixed background/canvas layers. */

footer {
    position: relative;
    z-index: 10;
    background: rgba(10, 11, 14, 0.85);
    border-top: 1px solid var(--line);
    text-align: center;
    padding: 30px 20px 44px;
    font-size: 0.85rem;
    color: var(--muted);
}

footer * {
    position: relative;
    z-index: 10;
    color: inherit;
}

footer div {
    margin: 4px 0;
}

footer a {
    color: var(--gold);
    text-decoration: underline;
}

footer a:hover,
footer a:focus-visible {
    color: var(--copper);
}

@media (prefers-reduced-motion: reduce) {
    * { scroll-behavior: auto !important; }
}
