:root {
    --bg: #050505;
    --text: #f2eadc;
    --muted: #b8aa91;
    --soft: rgba(242,234,220,.62);
    --gold: #c9a66a;
    --line-strong: rgba(238,206,144,.78);
    --max: 1680px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
    min-height: 100vh;
    overflow-x: hidden;
    background: var(--bg);
    color: var(--text);
    font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
body::selection { background: var(--gold); color: #050505; }
a { color: inherit; }

.page { position: relative; min-height: 100vh; isolation: isolate; overflow: hidden; }
.container { width: min(var(--max), calc(100% - 72px)); margin: 0 auto; }

.background-fx {
    position: fixed;
    inset: 0;
    z-index: -3;
    overflow: hidden;
    pointer-events: none;
    background:
        radial-gradient(circle at 52% 38%, rgba(201,166,106,.14), transparent 26%),
        radial-gradient(circle at 82% 20%, rgba(201,166,106,.08), transparent 24%),
        radial-gradient(circle at 17% 72%, rgba(90,100,102,.14), transparent 31%),
        linear-gradient(135deg, #020302 0%, #090907 50%, #020202 100%);
}
.background-fx::before {
    content: "";
    position: absolute;
    inset: -20%;
    opacity: .48;
    background-image:
        linear-gradient(38deg, transparent 0 48%, rgba(201,166,106,.11) 49%, transparent 50%),
        linear-gradient(123deg, transparent 0 49%, rgba(242,234,220,.07) 50%, transparent 51%),
        radial-gradient(circle, rgba(242,234,220,.48) 0 1px, transparent 1.7px),
        radial-gradient(circle, rgba(201,166,106,.48) 0 1px, transparent 1.8px);
    background-size: 620px 410px, 460px 520px, 160px 210px, 260px 290px;
    animation: mapDrift 68s linear infinite;
}
.background-fx::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at center, transparent 0%, rgba(0,0,0,.25) 56%, rgba(0,0,0,.86) 100%),
        repeating-linear-gradient(0deg, rgba(255,255,255,.028) 0 1px, transparent 1px 4px);
    opacity: .58;
    mix-blend-mode: screen;
}
.map-lines { position: fixed; inset: 0; z-index: -2; width: 100%; height: 100%; opacity: .52; pointer-events: none; }
.map-lines path, .map-lines circle { fill: none; stroke: rgba(201,166,106,.16); stroke-width: .8; }

.site-header {
    position: fixed;
    inset: 0 0 auto;
    z-index: 30;
    background: linear-gradient(180deg, rgba(5,5,5,.88), rgba(5,5,5,0));
}
.nav { min-height: 112px; display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.brand { display: inline-grid; grid-template-columns: 58px auto; gap: 16px; align-items: center; text-decoration: none; }
.brand-mark, .hub-mark { color: var(--gold); fill: none; stroke: currentColor; stroke-width: 1; }
.brand-mark { width: 58px; height: 58px; }
.brand-title { display: block; font-family: "Cormorant Garamond", Georgia, serif; font-size: clamp(1.55rem, 2.7vw, 3.2rem); font-weight: 500; letter-spacing: .09em; line-height: .9; }
.brand-subtitle, .section-kicker, .hero-role { display: block; color: var(--gold); font-size: .72rem; letter-spacing: .32em; text-transform: uppercase; }
.brand-subtitle { margin-top: 10px; }
.nav-links { display: flex; align-items: center; justify-content: flex-end; gap: clamp(18px, 2.4vw, 42px); }
.nav-links a { color: var(--text); font-size: .68rem; letter-spacing: .17em; text-decoration: none; text-transform: uppercase; opacity: .86; }
.nav-links a:hover { color: var(--gold); }
.menu-orb { width: 58px; height: 58px; display: inline-grid; place-items: center; border: 1px solid rgba(201,166,106,.56); border-radius: 50%; color: var(--gold); }
.menu-orb span, .menu-orb span::before, .menu-orb span::after { display: block; width: 16px; height: 1px; background: currentColor; }
.menu-orb span { position: relative; }
.menu-orb span::before, .menu-orb span::after { content: ""; position: absolute; left: 0; }
.menu-orb span::before { top: -5px; }
.menu-orb span::after { top: 5px; }

.hub-stage { position: relative; min-height: 1520px; padding: 170px 0 96px; }
.hero-copy { position: absolute; left: max(46px, calc((100vw - var(--max)) / 2 + 72px)); top: 214px; z-index: 8; max-width: 440px; }
.hero-copy h1 { margin-top: 22px; font-family: "Cormorant Garamond", Georgia, serif; font-size: clamp(4.1rem, 6.4vw, 7.6rem); font-weight: 500; line-height: .86; text-shadow: 0 26px 90px rgba(0,0,0,.58); }
.hero-copy p:not(.hero-role) { margin-top: 30px; color: var(--soft); font-size: 1rem; line-height: 1.82; }
.micro-link { display: inline-flex; align-items: center; gap: 10px; margin-top: 34px; color: var(--gold); font-size: .7rem; font-weight: 600; letter-spacing: .18em; text-decoration: none; text-transform: uppercase; }
.micro-link::after { content: "→"; width: 18px; height: 18px; display: inline-grid; place-items: center; border: 1px solid rgba(201,166,106,.48); border-radius: 50%; }

.node-map { position: relative; width: min(1260px, 88vw); height: 1180px; margin: 0 auto; }
.orbital-grid, .connection-layer { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.orbital-grid { opacity: .62; }
.orbital-grid circle, .orbital-grid path { fill: none; stroke: rgba(201,166,106,.18); stroke-width: 1; }
.orbital-grid .thin { stroke: rgba(242,234,220,.09); }
.connection-line { stroke: rgba(201,166,106,.22); stroke-width: 1; vector-effect: non-scaling-stroke; transition: stroke .22s ease, stroke-width .22s ease, opacity .22s ease; }
.connection-line.mesh { stroke: rgba(242,234,220,.11); stroke-dasharray: 3 9; }
.connection-line.is-active { stroke: var(--line-strong); stroke-width: 1.7; opacity: 1; }

.hub-center {
    position: absolute;
    left: 50%;
    top: 52%;
    z-index: 5;
    width: 320px;
    height: 320px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(201,166,106,.5);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    background: radial-gradient(circle at 50% 38%, rgba(201,166,106,.14), transparent 42%), rgba(4,5,5,.84);
    box-shadow: 0 0 0 20px rgba(201,166,106,.035), 0 0 0 42px rgba(242,234,220,.018), 0 34px 130px rgba(0,0,0,.72), inset 0 0 54px rgba(201,166,106,.08);
    text-align: center;
}
.hub-center::before, .hub-center::after { content: ""; position: absolute; border-radius: 50%; pointer-events: none; }
.hub-center::before { inset: -20px; border: 1px solid rgba(201,166,106,.18); }
.hub-center::after { inset: 52px; border: 1px dashed rgba(242,234,220,.18); }
.hub-mark { width: 54px; height: 54px; margin: 0 auto 18px; }
.hub-center strong { display: block; font-family: "Cormorant Garamond", Georgia, serif; font-size: 2.58rem; font-weight: 500; letter-spacing: .02em; line-height: .9; }
.hub-center span { display: block; margin-top: 18px; color: var(--gold); font-size: .82rem; letter-spacing: .28em; text-transform: uppercase; }

.node-card {
    --x: 50%;
    --y: 50%;
    --dx: 0px;
    --dy: 0px;
    --size: 154px;
    position: absolute;
    left: var(--x);
    top: var(--y);
    z-index: 7;
    width: 248px;
    display: grid;
    justify-items: center;
    color: var(--text);
    text-align: center;
    text-decoration: none;
    opacity: 0;
    transform: translate(-50%, -50%) translate(var(--dx), var(--dy));
    animation: fadeNode .8s cubic-bezier(.2,.7,.2,1) forwards;
    animation-delay: var(--delay);
}
.node-visual { position: relative; width: var(--size); height: var(--size); padding: 8px; border: 1px solid rgba(201,166,106,.55); border-radius: 50%; background: rgba(2,2,2,.46); box-shadow: 0 26px 80px rgba(0,0,0,.46), 0 0 0 7px rgba(201,166,106,.035); transition: transform .28s ease, border-color .28s ease, box-shadow .28s ease; }
.node-visual::before, .node-visual::after { content: ""; position: absolute; border-radius: 50%; pointer-events: none; }
.node-visual::before { inset: -8px; border: 1px solid rgba(242,234,220,.12); }
.node-visual::after { inset: 18px; border: 1px solid rgba(201,166,106,.14); }
.node-visual img, .node-placeholder { width: 100%; height: 100%; display: block; border-radius: 50%; }
.node-visual img { object-fit: cover; filter: grayscale(.25) sepia(.18) brightness(.68) contrast(1.16); transition: filter .28s ease, transform .28s ease; }
.node-placeholder { background: radial-gradient(circle at 42% 36%, rgba(242,234,220,.32), transparent 17%), radial-gradient(circle at 50% 60%, var(--tone), transparent 56%), linear-gradient(135deg, rgba(201,166,106,.16), rgba(17,18,17,.96)); }
.node-card h2 { margin-top: 22px; font-size: .88rem; font-weight: 600; letter-spacing: .14em; line-height: 1.28; text-transform: uppercase; }
.node-card p { max-width: 238px; margin-top: 10px; color: rgba(242,234,220,.64); font-size: .88rem; line-height: 1.5; text-wrap: balance; transition: color .24s ease; }
.node-card:hover .node-visual, .node-card:focus-visible .node-visual { transform: translateY(-8px) scale(1.04); border-color: rgba(238,206,144,.9); box-shadow: 0 34px 110px rgba(0,0,0,.64), 0 0 42px rgba(201,166,106,.18); }
.node-card:hover img, .node-card:focus-visible img { filter: grayscale(.06) sepia(.14) brightness(.94) contrast(1.1); transform: scale(1.04); }
.node-card:hover p, .node-card:focus-visible p { color: var(--text); }
.node-card:focus-visible { outline: none; }

.coord, .side-note { position: absolute; z-index: 4; color: rgba(201,166,106,.58); font-size: .72rem; letter-spacing: .42em; text-transform: uppercase; }
.coord { color: rgba(242,234,220,.35); line-height: 1.55; letter-spacing: .08em; text-transform: none; }
.coord.one { right: 21%; top: 16%; }
.coord.two { left: 8%; bottom: 13%; }
.side-note { writing-mode: vertical-rl; }
.side-note.left { left: 48px; top: 43%; transform: rotate(180deg); }
.side-note.right { right: 48px; top: 43%; }
.bottom-hint { position: absolute; left: 50%; bottom: 54px; z-index: 9; max-width: 330px; color: rgba(242,234,220,.62); text-align: center; transform: translateX(-50%); }
.down-orb { width: 58px; height: 58px; display: inline-grid; place-items: center; border: 1px solid rgba(201,166,106,.54); border-radius: 50%; color: var(--gold); text-decoration: none; }
.bottom-hint strong { display: block; margin-top: 30px; color: var(--gold); font-size: .76rem; font-weight: 500; letter-spacing: .34em; text-transform: uppercase; }
.bottom-hint p { margin-top: 18px; line-height: 1.7; }

.content-section { position: relative; z-index: 12; padding: 92px 0 120px; background: linear-gradient(180deg, rgba(5,5,5,0), rgba(5,5,5,.78) 18%, rgba(5,5,5,.96)); }
.triad-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; border-top: 1px solid rgba(201,166,106,.24); padding-top: 38px; }
.triad-card, .bio-card, .contact-card { border: 1px solid rgba(201,166,106,.18); border-radius: 8px; background: linear-gradient(180deg, rgba(242,234,220,.045), rgba(242,234,220,.014)); box-shadow: 0 30px 90px rgba(0,0,0,.18); }
.triad-card { min-height: 310px; padding: 28px; }
.triad-card span { display: block; color: var(--gold); font-size: .72rem; letter-spacing: .28em; text-transform: uppercase; }
.triad-card h2, .bio-card h2, .contact-card h2 { margin-top: 18px; font-family: "Cormorant Garamond", Georgia, serif; font-size: clamp(2.5rem, 4vw, 4.8rem); font-weight: 500; line-height: .92; }
.triad-card p, .bio-card p, .contact-card p { margin-top: 20px; color: var(--soft); font-size: 1rem; line-height: 1.78; }
.bio-contact { display: grid; grid-template-columns: minmax(0, 1fr) minmax(320px, 450px); gap: 22px; margin-top: 22px; }
.bio-card, .contact-card { padding: 32px; }
.bio-card strong { color: var(--text); font-weight: 500; }
.contact-list { display: grid; gap: 12px; margin-top: 26px; }
.contact-list a { display: flex; align-items: center; justify-content: space-between; gap: 18px; border-top: 1px solid rgba(201,166,106,.18); padding-top: 14px; color: var(--text); text-decoration: none; }
.contact-list a:hover { color: var(--gold); }
.actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 26px; }
.button { min-height: 48px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid rgba(201,166,106,.56); border-radius: 999px; padding: 0 22px; background: rgba(201,166,106,.08); color: var(--gold); font-size: .74rem; font-weight: 600; letter-spacing: .16em; text-decoration: none; text-transform: uppercase; transition: background .2s ease, color .2s ease, transform .2s ease; }
.button:hover { transform: translateY(-2px); background: var(--gold); color: #050505; }
.button.secondary { border-color: rgba(242,234,220,.2); background: rgba(242,234,220,.035); color: var(--text); }
.button.secondary:hover { background: rgba(242,234,220,.12); color: var(--text); }

@keyframes fadeNode { from { opacity: 0; filter: blur(8px); } to { opacity: 1; filter: blur(0); } }
@keyframes mapDrift { from { transform: translate3d(0,0,0); } to { transform: translate3d(-120px,-80px,0); } }
@keyframes cardIn { from { opacity: 0; filter: blur(8px); transform: translateY(18px) scale(.98); } to { opacity: 1; filter: blur(0); transform: translateY(0) scale(1); } }

@media (max-width: 1280px) {
    .container { width: min(100% - 40px, var(--max)); }
    .nav { min-height: 96px; }
    .nav-links { gap: 18px; }
    .hero-copy { position: relative; left: auto; top: auto; width: min(100%, 620px); margin: 0 auto 26px; padding-top: 118px; text-align: center; }
    .hero-copy h1 { font-size: clamp(4rem, 11vw, 7.2rem); }
    .hub-stage { min-height: auto; padding-top: 0; }
    .node-map { width: min(100%, 820px); height: auto; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin-top: 28px; }
    .orbital-grid, .connection-layer, .hub-center, .coord, .side-note { display: none; }
    .node-card { position: relative; left: auto; top: auto; width: 100%; min-height: 318px; justify-content: center; align-content: start; border: 1px solid rgba(201,166,106,.18); border-radius: 8px; padding: 28px 20px; background: rgba(9,9,8,.5); transform: none; animation-name: cardIn; }
    .node-card:hover, .node-card:focus-visible { transform: translateY(-4px); }
    .bottom-hint { position: relative; left: auto; bottom: auto; margin: 42px auto 0; transform: none; }
    .triad-grid, .bio-contact { grid-template-columns: 1fr; }
}

@media (max-width: 820px) {
    .nav { min-height: 86px; }
    .brand { grid-template-columns: 38px auto; gap: 10px; }
    .brand-mark { width: 38px; height: 38px; }
    .brand-title { font-size: 1.25rem; letter-spacing: .08em; }
    .brand-subtitle { margin-top: 7px; font-size: .52rem; letter-spacing: .2em; }
    .nav-links a { display: none; }
    .menu-orb { width: 46px; height: 46px; }
    .hero-copy { padding-top: 108px; }
    .hero-copy p:not(.hero-role) { font-size: .94rem; }
    .node-map { grid-template-columns: 1fr; }
    .node-card { min-height: auto; }
    .node-visual { --size: 142px; }
    .triad-card, .bio-card, .contact-card { padding: 24px; }
    .actions, .button { width: 100%; }
    .content-section { padding: 72px 0 80px; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        scroll-behavior: auto !important;
        animation-duration: .001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .001ms !important;
    }
}
