:root {
    --bg: #050505;
    --text: #f2eadc;
    --muted: #b8aa91;
    --soft: rgba(242,234,220,.62);
    --gold: #c9a66a;
    --line-strong: rgba(238,206,144,.78);
    --max: 1680px;
    --sigil-clip: polygon(50% 0, 82% 18%, 82% 82%, 50% 100%, 18% 82%, 18% 18%);
}

* { 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; }
.svg-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.vanheu-sigil { fill: none; stroke: currentColor; stroke-width: 7; stroke-linecap: square; stroke-linejoin: miter; overflow: visible; }

.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-flex; align-items: center; gap: .75rem; color: var(--text); font-family: "Cormorant Garamond", Georgia, serif; font-size: 1.02rem; letter-spacing: .22em; text-decoration: none; text-transform: uppercase; white-space: nowrap; }
.brand-mark { width: 31px; height: 31px; object-fit: contain; filter: drop-shadow(0 0 18px rgba(201,166,106,.16)); }
.brand-word { display: inline-block; transform: translateY(.02em); }
.section-kicker, .hero-role { display: block; color: var(--gold); font-size: .72rem; letter-spacing: .32em; text-transform: uppercase; }
.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 {
    --active-tone: rgba(201,166,106,.34);
    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%, var(--active-tone), 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;
    transition: border-color .28s ease, box-shadow .28s ease, background .28s ease;
}
.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-center.is-active {
    border-color: rgba(242,234,220,.82);
    box-shadow: 0 0 0 20px rgba(201,166,106,.045), 0 0 0 42px rgba(242,234,220,.03), 0 42px 150px rgba(0,0,0,.78), 0 0 54px rgba(201,166,106,.18), inset 0 0 66px rgba(201,166,106,.12);
}
.hub-mark { width: 72px; height: 72px; margin: 0 auto 20px; color: rgba(242,234,220,.94); transition: transform .28s ease, color .28s ease, filter .28s ease; }
.hub-center.is-active .hub-mark { color: var(--text); filter: drop-shadow(0 0 26px rgba(201,166,106,.36)); transform: scale(1.08) rotate(4deg); }
.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: 10px; border: 1px solid rgba(201,166,106,.55); border-radius: 2px; clip-path: var(--sigil-clip); 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; clip-path: var(--sigil-clip); pointer-events: none; }
.node-visual::before { inset: 8px; border: 1px solid rgba(242,234,220,.14); }
.node-visual::after { inset: 24px; border: 1px solid rgba(201,166,106,.16); }
.node-visual img, .node-placeholder { width: 100%; height: 100%; display: block; clip-path: var(--sigil-clip); }
.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 { display: grid; place-items: center; background: radial-gradient(circle at 42% 36%, rgba(242,234,220,.22), transparent 17%), radial-gradient(circle at 50% 60%, var(--tone), transparent 56%), linear-gradient(135deg, rgba(201,166,106,.12), rgba(17,18,17,.96)); }
.node-sigil { width: 58%; height: 58%; color: rgba(242,234,220,.74); filter: drop-shadow(0 0 18px rgba(201,166,106,.18)); transition: transform .28s ease, color .28s ease, filter .28s ease; }
.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 .node-sigil, .node-card:focus-visible .node-sigil { color: var(--text); filter: drop-shadow(0 0 28px rgba(201,166,106,.34)); transform: scale(1.08) rotate(4deg); }
.node-card:hover p, .node-card:focus-visible p { color: var(--text); }
.node-card:focus-visible { outline: none; }

.side-note { position: absolute; z-index: 4; color: rgba(201,166,106,.58); font-size: .72rem; letter-spacing: .42em; text-transform: uppercase; }
.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, .territory-block, .territory-card { scroll-margin-top: 120px; }
.triad-card, .bio-card, .contact-card, .territory-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; }
.territory-block { margin-top: 22px; }
.territory-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 14px; }
.territory-card { min-height: 168px; display: grid; align-content: end; padding: 22px; color: var(--text); text-decoration: none; transition: border-color .22s ease, transform .22s ease, background .22s ease; }
.territory-card small { display: block; margin-bottom: 12px; color: rgba(201,166,106,.72); font-size: .62rem; font-weight: 600; letter-spacing: .24em; text-transform: uppercase; }
.territory-card span { color: var(--gold); font-family: "Cormorant Garamond", Georgia, serif; font-size: 2.3rem; line-height: .95; }
.territory-card p { max-width: 240px; margin-top: 16px; color: rgba(242,234,220,.62); font-size: .92rem; line-height: 1.55; }
.territory-card.is-fiction { background: linear-gradient(180deg, rgba(201,166,106,.07), rgba(242,234,220,.014)); }
.territory-card:hover, .territory-card:focus-visible { border-color: rgba(238,206,144,.72); background: linear-gradient(180deg, rgba(201,166,106,.075), rgba(242,234,220,.018)); transform: translateY(-3px); outline: none; }
.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); }

.gallery-page { min-height: 100vh; padding: 42px 0 100px; }
.gallery-nav { display: flex; align-items: center; justify-content: space-between; gap: 22px; }
.gallery-back { color: var(--gold); font-size: .68rem; font-weight: 600; letter-spacing: .18em; text-decoration: none; text-transform: uppercase; }
.gallery-back::before { content: "←"; margin-right: 10px; }
.gallery-intro { max-width: 760px; margin: 112px 0 58px; }
.gallery-intro h1 { margin-top: 20px; font-family: "Cormorant Garamond", Georgia, serif; font-size: clamp(4.2rem, 9vw, 8rem); font-weight: 500; line-height: .82; }
.gallery-intro p { max-width: 600px; margin-top: 28px; color: var(--soft); font-size: 1.04rem; line-height: 1.8; }
.masonry-grid { column-count: 3; column-gap: 18px; }
.masonry-item { position: relative; display: inline-block; width: 100%; margin: 0 0 18px; overflow: hidden; break-inside: avoid; border: 1px solid rgba(201,166,106,.2); border-radius: 5px; background: #0c0c0a; }
.masonry-item img { width: 100%; height: auto; display: block; filter: saturate(.82) contrast(1.04); transition: transform .45s ease, filter .3s ease; }
.masonry-item figcaption { position: absolute; right: 0; bottom: 0; left: 0; padding: 36px 18px 16px; background: linear-gradient(transparent, rgba(5,5,5,.88)); color: var(--text); font-size: .68rem; letter-spacing: .15em; text-transform: uppercase; opacity: 0; transition: opacity .25s ease; }
.masonry-item:hover img, .masonry-item:focus-within img { filter: saturate(1) contrast(1.06); transform: scale(1.025); }
.masonry-item:hover figcaption, .masonry-item:focus-within figcaption { opacity: 1; }

@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, .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, .territory-grid, .bio-contact { grid-template-columns: 1fr; }
    .masonry-grid { column-count: 2; }
}

@media (max-width: 820px) {
    .nav { min-height: 86px; }
    .brand { gap: .55rem; font-size: .86rem; letter-spacing: .12em; line-height: 1.25; white-space: normal; }
    .brand-mark { width: 28px; height: 28px; }
    .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; }
    .gallery-page { padding-top: 26px; }
    .gallery-intro { margin: 72px 0 40px; }
    .masonry-grid { column-count: 1; }
}

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