:root {
  --void: #03050d;
  --night: #070a18;
  --ink: #0d1230;
  --panel: rgba(12, 17, 42, 0.78);
  --panel-solid: #0e1432;
  --line: rgba(170, 203, 255, 0.18);
  --line-hot: rgba(120, 244, 230, 0.52);
  --white: #f7f8ff;
  --mist: #b8c2df;
  --coral: #ff637d;
  --aqua: #63f2df;
  --sky: #65a8ff;
  --violet: #a77bff;
  --gold: #ffc85b;
  --shadow: 0 34px 100px rgba(0, 0, 0, 0.46);
  --glow-aqua: 0 0 44px rgba(99, 242, 223, 0.18);
  --radius: 1.6rem;
  --wrap: min(1240px, calc(100vw - 3rem));
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--void); }
body { margin: 0; overflow-x: hidden; background: var(--void); color: var(--white); font-family: "Segoe UI", Arial, sans-serif; font-size: 1rem; line-height: 1.65; text-rendering: optimizeLegibility; }
body.menu-open { overflow: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; }
p, h1, h2, h3 { margin-top: 0; }
h1, h2, h3 { color: var(--white); font-family: Georgia, "Times New Roman", serif; font-weight: 500; line-height: 0.98; text-wrap: balance; }
h1 { font-size: clamp(4rem, 8.8vw, 9rem); letter-spacing: -0.068em; }
h2 { font-size: clamp(2.8rem, 5.8vw, 6rem); letter-spacing: -0.055em; }
h3 { font-size: clamp(1.5rem, 2.4vw, 2.5rem); letter-spacing: -0.035em; line-height: 1.05; }
button, input { font: inherit; }
.wrap { width: var(--wrap); margin-inline: auto; }
.section { position: relative; z-index: 1; padding: clamp(6rem, 11vw, 10rem) 0; }
.ambient-field { position: fixed; inset: 0; z-index: 0; width: 100%; height: 100%; opacity: 0.5; pointer-events: none; }

.skip-link { position: fixed; top: -5rem; left: 1rem; z-index: 1000; padding: 0.8rem 1rem; border-radius: 0.5rem; background: var(--white); color: var(--void); }
.skip-link:focus { top: 1rem; }
.site-header { position: absolute; inset: 0 0 auto; z-index: 60; color: var(--white); }
.site-header-inner { width: var(--wrap); min-height: 6.4rem; margin-inline: auto; display: flex; align-items: center; justify-content: space-between; gap: 1.4rem; border-bottom: 1px solid rgba(255, 255, 255, 0.14); }
.brand { display: inline-flex; align-items: center; gap: 0.8rem; color: var(--white); text-decoration: none; font-family: Georgia, "Times New Roman", serif; font-size: 1.05rem; line-height: 1.1; }
.brand img { width: 3rem; height: 3rem; border-radius: 0.8rem; background: var(--ink); object-fit: contain; box-shadow: 0 0 25px rgba(99, 242, 223, 0.12); }
.brand span { max-width: 8.7rem; }
.site-nav { display: flex; align-items: center; gap: clamp(0.75rem, 1.6vw, 1.45rem); }
.site-nav a { position: relative; padding: 0.35rem 0; color: rgba(255, 255, 255, 0.76); text-decoration: none; font-size: 0.82rem; font-weight: 700; }
.site-nav a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: 0; height: 1px; background: var(--aqua); transition: right 180ms ease; }
.site-nav a:hover, .site-nav a:focus-visible, .site-nav a[aria-current="page"] { color: var(--white); }
.site-nav a:hover::after, .site-nav a:focus-visible::after, .site-nav a[aria-current="page"]::after { right: 0; }
.menu-button { display: none; border: 0; background: transparent; color: var(--white); font: inherit; font-weight: 700; cursor: pointer; }
.menu-lines { display: block; width: 1.5rem; height: 0.55rem; margin-top: 0.3rem; border-top: 2px solid currentColor; border-bottom: 2px solid currentColor; }

.hero, .page-hero { position: relative; z-index: 1; min-height: max(760px, 100svh); overflow: hidden; background: var(--night); isolation: isolate; }
.hero-media, .page-hero-media { position: absolute; inset: -3%; z-index: -4; background-image: var(--hero-image, url("images/hero-home.webp")); background-position: center; background-size: cover; transform: scale(1.04); animation: hero-breathe 18s ease-in-out infinite alternate; }
.hero-home .hero-media { background-image: url("images/hero-home.webp"); }
.hero-atmosphere, .page-hero-atmosphere { position: absolute; inset: 0; z-index: -3; background: radial-gradient(circle at 70% 24%, rgba(99, 242, 223, 0.16), transparent 26%), linear-gradient(90deg, rgba(3, 5, 13, 0.98) 0%, rgba(5, 8, 22, 0.88) 34%, rgba(5, 8, 22, 0.22) 68%, rgba(3, 5, 13, 0.28) 100%), linear-gradient(0deg, rgba(3, 5, 13, 0.86) 0%, transparent 48%); }
.hero-atmosphere::before, .page-hero-atmosphere::before { content: ""; position: absolute; inset: -30%; background: conic-gradient(from 180deg at 50% 50%, transparent, rgba(101, 168, 255, 0.13), transparent 22%, rgba(255, 99, 125, 0.09), transparent 45%); filter: blur(50px); animation: aurora-turn 26s linear infinite; }
.hero-grid { position: absolute; inset: 0; z-index: -2; opacity: 0.16; background-image: linear-gradient(rgba(255, 255, 255, 0.12) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.1) 1px, transparent 1px); background-size: 7.5rem 7.5rem; mask-image: linear-gradient(90deg, #000, transparent 74%); }
.hero-content { position: relative; z-index: 2; min-height: max(760px, 100svh); padding-block: clamp(11rem, 22vh, 15rem) 8rem; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; }
.hero-content h1 { max-width: 1100px; margin-bottom: 1.7rem; text-shadow: 0 10px 55px rgba(0, 0, 0, 0.42); }
.hero-content > p { max-width: 770px; margin-bottom: 2.2rem; color: rgba(247, 248, 255, 0.84); font-size: clamp(1.12rem, 1.8vw, 1.42rem); line-height: 1.55; }
.hero-coordinate { position: absolute; z-index: 3; right: max(1.5rem, calc((100vw - 1240px) / 2)); bottom: 2rem; display: flex; align-items: center; gap: 0.75rem; color: rgba(255, 255, 255, 0.58); font-family: "Segoe UI", Arial, sans-serif; font-size: 0.68rem; font-weight: 800; letter-spacing: 0.14em; }
.hero-coordinate i { width: clamp(2rem, 5vw, 5rem); height: 1px; background: linear-gradient(90deg, var(--coral), var(--aqua)); }
.scroll-cue { position: absolute; z-index: 4; left: 50%; bottom: 2rem; width: 2.4rem; height: 3.8rem; border: 1px solid rgba(255, 255, 255, 0.38); border-radius: 999px; transform: translateX(-50%); }
.scroll-cue span { position: absolute; top: 0.8rem; left: 50%; width: 0.35rem; height: 0.35rem; border-radius: 50%; background: var(--aqua); transform: translateX(-50%); animation: scroll-pulse 1.8s ease-in-out infinite; }
.button-row { display: flex; flex-wrap: wrap; gap: 0.9rem; }
.button { position: relative; display: inline-flex; align-items: center; justify-content: center; min-height: 3.5rem; padding: 0.82rem 1.45rem; overflow: hidden; border: 1px solid transparent; border-radius: 999px; text-decoration: none; font-weight: 780; line-height: 1.2; isolation: isolate; transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease; }
.button::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(110deg, var(--coral), #ff785f 46%, var(--gold)); }
.button:hover { transform: translateY(-3px); box-shadow: 0 16px 42px rgba(255, 99, 125, 0.24); }
.button-primary { color: var(--void); }
.button-glass { border-color: rgba(255, 255, 255, 0.34); background: rgba(7, 10, 24, 0.44); color: var(--white); backdrop-filter: blur(16px); }
.button-glass::before { background: linear-gradient(120deg, rgba(255, 255, 255, 0.08), rgba(99, 242, 223, 0.11)); opacity: 0.7; }
.button-glass:hover { border-color: var(--aqua); box-shadow: var(--glow-aqua); }

.opening-section { background: radial-gradient(circle at 12% 22%, rgba(167, 123, 255, 0.12), transparent 28%), radial-gradient(circle at 88% 74%, rgba(99, 242, 223, 0.1), transparent 30%), var(--void); }
.opening-grid { display: grid; grid-template-columns: minmax(0, 0.95fr) minmax(0, 1fr); gap: clamp(3rem, 9vw, 9rem); align-items: start; margin-bottom: 5rem; }
.opening-grid h2 { margin: 0; }
.lead-copy { color: var(--mist); font-size: clamp(1.14rem, 1.7vw, 1.36rem); }
.lead-copy p:last-child { margin-bottom: 0; }
.signal-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border: 1px solid var(--line); border-radius: var(--radius); background: linear-gradient(120deg, rgba(101, 168, 255, 0.08), rgba(167, 123, 255, 0.05), rgba(99, 242, 223, 0.07)); box-shadow: inset 0 1px rgba(255, 255, 255, 0.08), var(--shadow); backdrop-filter: blur(16px); }
.signal-row article { min-height: 9rem; padding: 1.5rem; display: flex; flex-direction: column; justify-content: space-between; border-right: 1px solid var(--line); }
.signal-row article:last-child { border-right: 0; }
.signal-row strong { color: var(--aqua); font-family: Georgia, "Times New Roman", serif; font-size: 2rem; font-weight: 500; }
.signal-row span { max-width: 11rem; color: var(--mist); font-size: 0.84rem; }

.portals-section { overflow: hidden; background: linear-gradient(180deg, var(--void), #06091a 45%, var(--void)); }
.portals-section::before { content: ""; position: absolute; width: 58rem; aspect-ratio: 1; top: 14%; left: -28rem; border-radius: 50%; background: radial-gradient(circle, rgba(101, 168, 255, 0.15), transparent 66%); filter: blur(25px); }
.section-intro { display: flex; align-items: end; justify-content: space-between; gap: 2rem; margin-bottom: 3rem; }
.section-intro h2 { max-width: 800px; margin: 0; }
.section-intro p { max-width: 360px; margin: 0; color: var(--mist); font-size: 1.15rem; }
.portal-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); grid-auto-rows: minmax(22rem, 31vw); gap: 1rem; perspective: 1400px; }
.portal-card { --rx: 0deg; --ry: 0deg; --mx: 50%; --my: 50%; position: relative; min-height: 24rem; overflow: hidden; border: 1px solid rgba(255, 255, 255, 0.16); border-radius: var(--radius); background-image: linear-gradient(180deg, rgba(3, 5, 13, 0.02), rgba(3, 5, 13, 0.92)), var(--portal-image); background-position: center; background-size: cover; color: var(--white); text-decoration: none; box-shadow: var(--shadow); transform: rotateX(var(--rx)) rotateY(var(--ry)); transform-style: preserve-3d; transition: transform 160ms ease, border-color 180ms ease, box-shadow 180ms ease, background-size 600ms ease; }
.portal-card::before { content: ""; position: absolute; inset: 0; background: linear-gradient(120deg, rgba(255, 99, 125, 0.16), transparent 35%, rgba(99, 242, 223, 0.12)); opacity: 0.25; transition: opacity 180ms ease; }
.portal-card:hover { border-color: rgba(99, 242, 223, 0.62); box-shadow: 0 40px 120px rgba(0, 0, 0, 0.58), 0 0 60px rgba(99, 242, 223, 0.12); }
.portal-card:hover::before { opacity: 0.8; }
.portal-wide { grid-row: span 2; }
.portal-family { grid-column: span 7; grid-row: span 2; }
.portal-earth, .portal-subterranean { grid-column: span 5; }
.portal-intelligence, .portal-network { grid-column: span 6; }
.portal-content { position: absolute; left: clamp(1.6rem, 4vw, 3.2rem); right: clamp(1.6rem, 4vw, 3.2rem); bottom: clamp(1.6rem, 4vw, 3.2rem); z-index: 2; display: grid; gap: 0.8rem; transform: translateZ(42px); }
.portal-content strong { font-family: Georgia, "Times New Roman", serif; font-size: clamp(2.3rem, 4vw, 4.8rem); font-weight: 500; line-height: 0.98; letter-spacing: -0.05em; }
.portal-content > span { max-width: 40rem; color: rgba(255, 255, 255, 0.8); font-size: 1.05rem; }
.portal-arrow { position: absolute; top: 1.4rem; right: 1.4rem; z-index: 3; width: 3.25rem; aspect-ratio: 1; border: 1px solid rgba(255, 255, 255, 0.32); border-radius: 50%; display: grid; place-items: center; background: rgba(3, 5, 13, 0.35); font-size: 1.4rem; backdrop-filter: blur(14px); transform: translateZ(36px); }
.portal-glow { position: absolute; width: 22rem; height: 22rem; left: calc(var(--mx) - 11rem); top: calc(var(--my) - 11rem); z-index: 1; border-radius: 50%; background: radial-gradient(circle, rgba(255, 255, 255, 0.2), transparent 68%); opacity: 0; pointer-events: none; transition: opacity 180ms ease; }
.portal-card:hover .portal-glow { opacity: 1; }
.page-portal { display: block; min-height: clamp(34rem, 58vw, 52rem); }

.cinematic-band { position: relative; z-index: 1; min-height: 105svh; overflow: hidden; display: grid; align-items: center; isolation: isolate; }
.cinematic-media { position: absolute; inset: -4%; z-index: -3; background-position: center; background-size: cover; transform: scale(1.05); animation: hero-breathe 22s ease-in-out infinite alternate-reverse; }
.family-band .cinematic-media { background-image: url("images/hero-family.webp"); }
.cinematic-shade { position: absolute; inset: 0; z-index: -2; background: linear-gradient(90deg, rgba(3, 5, 13, 0.96), rgba(3, 5, 13, 0.76) 42%, rgba(3, 5, 13, 0.1) 78%), linear-gradient(0deg, rgba(3, 5, 13, 0.76), transparent 52%); }
.cinematic-content { padding-block: 9rem; }
.cinematic-content h2 { max-width: 780px; }
.cinematic-content p { max-width: 650px; color: rgba(255, 255, 255, 0.8); font-size: clamp(1.08rem, 1.6vw, 1.3rem); }
.cinematic-content .button { margin-top: 1rem; }

.network-section { overflow: hidden; background: radial-gradient(circle at 78% 48%, rgba(101, 168, 255, 0.16), transparent 32%), radial-gradient(circle at 24% 70%, rgba(255, 99, 125, 0.09), transparent 27%), #050818; }
.network-layout { display: grid; grid-template-columns: 0.78fr 1.22fr; gap: clamp(3rem, 7vw, 7rem); align-items: center; }
.network-copy p { max-width: 580px; color: var(--mist); font-size: 1.15rem; }
.text-link { display: inline-block; color: var(--aqua); font-weight: 760; text-underline-offset: 0.28em; }
.network-stage { position: relative; min-height: min(640px, 70vw); border: 1px solid var(--line); border-radius: 50%; background: radial-gradient(circle at 50% 50%, rgba(101, 168, 255, 0.15), rgba(5, 8, 24, 0.4) 45%, rgba(3, 5, 13, 0.9) 72%); box-shadow: inset 0 0 90px rgba(99, 242, 223, 0.07), 0 0 90px rgba(101, 168, 255, 0.1); }
.network-stage::before, .network-stage::after { content: ""; position: absolute; inset: 11%; border: 1px solid rgba(255, 255, 255, 0.1); border-radius: 50%; }
.network-stage::after { inset: 28%; }
.network-stage canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.network-label { position: absolute; z-index: 2; padding: 0.6rem 0.85rem; border: 1px solid rgba(255, 255, 255, 0.18); border-radius: 999px; background: rgba(5, 8, 24, 0.62); color: var(--white); font-size: 0.76rem; font-weight: 760; backdrop-filter: blur(12px); box-shadow: 0 0 32px rgba(99, 242, 223, 0.08); }
.label-family { top: 18%; left: 10%; }
.label-earth { top: 12%; right: 18%; }
.label-intelligence { top: 46%; left: 38%; }
.label-culture { bottom: 18%; left: 16%; }
.label-movement { bottom: 13%; right: 10%; }

.provenance-section { background: var(--void); }
.provenance-card { position: relative; overflow: hidden; padding: clamp(2rem, 5vw, 4.5rem); border: 1px solid rgba(167, 123, 255, 0.35); border-radius: var(--radius); background: linear-gradient(125deg, rgba(167, 123, 255, 0.14), rgba(101, 168, 255, 0.07) 46%, rgba(99, 242, 223, 0.08)); box-shadow: var(--shadow); display: grid; grid-template-columns: 1fr auto; gap: 3rem; align-items: end; }
.provenance-card::after { content: ""; position: absolute; width: 28rem; height: 28rem; top: -18rem; right: -7rem; border-radius: 50%; background: radial-gradient(circle, rgba(255, 200, 91, 0.25), transparent 68%); }
.provenance-card h2 { max-width: 880px; font-size: clamp(2.5rem, 5vw, 5.2rem); }
.provenance-card p { max-width: 820px; margin-bottom: 0; color: var(--mist); font-size: 1.12rem; }
.provenance-card .button { z-index: 1; white-space: nowrap; }
.closing-section { min-height: 80svh; background: radial-gradient(circle at 18% 80%, rgba(255, 99, 125, 0.16), transparent 30%), radial-gradient(circle at 78% 22%, rgba(99, 242, 223, 0.13), transparent 28%), linear-gradient(180deg, var(--void), #07091a); display: grid; place-items: center; text-align: center; }
.closing-copy h2 { max-width: 1040px; margin-inline: auto; }
.closing-copy p { max-width: 700px; margin: 0 auto 2.2rem; color: var(--mist); font-size: 1.18rem; }
.centred-buttons { justify-content: center; }

.site-footer { position: relative; z-index: 1; padding: 5rem 0 2rem; border-top: 1px solid var(--line); background: #02040b; color: rgba(255, 255, 255, 0.66); }
.footer-grid { display: grid; grid-template-columns: 1.3fr 0.8fr 0.9fr; gap: 3rem; }
.footer-title { display: block; margin-bottom: 1rem; color: var(--white); text-decoration: none; font-family: Georgia, "Times New Roman", serif; font-size: 1.7rem; }
.footer-grid p { max-width: 30rem; }
.footer-grid h2 { font-family: "Segoe UI", Arial, sans-serif; font-size: 0.9rem; font-weight: 800; letter-spacing: 0; }
.footer-grid a:not(.footer-title) { display: block; width: fit-content; margin-bottom: 0.55rem; text-decoration: none; }
.footer-grid a:hover { color: var(--aqua); }
.footer-bottom { margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; font-size: 0.82rem; }
.footer-bottom p { margin: 0; }
.back-to-top { color: var(--aqua); }

/* Interior pages */
.page-hero { min-height: min(860px, 88svh); }
.page-hero .hero-content { min-height: min(860px, 88svh); }
.page-hero h1 { max-width: 1050px; font-size: clamp(4rem, 8vw, 8rem); }
.page-hero .hero-content > p { max-width: 760px; }
.page-kicker { max-width: 44rem; color: var(--aqua) !important; font-size: 0.9rem !important; font-weight: 780; letter-spacing: 0.04em; }
.content-section { background: rgba(3, 5, 13, 0.94); }
.content-section.alt { background: linear-gradient(180deg, #070a1a, var(--void)); }
.content-intro { display: grid; grid-template-columns: 0.82fr 1.18fr; gap: clamp(3rem, 8vw, 8rem); align-items: start; }
.content-intro p { color: var(--mist); font-size: 1.15rem; }
.status-key { display: flex; flex-wrap: wrap; gap: 0.65rem; margin-top: 2rem; }
.status-pill { padding: 0.5rem 0.8rem; border: 1px solid var(--line); border-radius: 999px; color: var(--mist); font-size: 0.76rem; font-weight: 740; }
.status-pill.vision { border-color: rgba(167, 123, 255, 0.5); color: #d5c5ff; }
.status-pill.live { border-color: rgba(99, 242, 223, 0.5); color: var(--aqua); }
.status-pill.proposed { border-color: rgba(255, 200, 91, 0.5); color: var(--gold); }
.story-grid, .content-grid, .callout-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.story-card, .glass-card, .source-card, .project-card { position: relative; overflow: hidden; padding: clamp(1.6rem, 3.5vw, 3rem); border: 1px solid var(--line); border-radius: var(--radius); background: linear-gradient(145deg, rgba(17, 24, 58, 0.84), rgba(7, 10, 24, 0.82)); box-shadow: inset 0 1px rgba(255, 255, 255, 0.05), 0 24px 70px rgba(0, 0, 0, 0.26); }
.story-card::before, .glass-card::before, .project-card::before { content: ""; position: absolute; width: 17rem; height: 17rem; top: -10rem; right: -8rem; border-radius: 50%; background: radial-gradient(circle, rgba(101, 168, 255, 0.2), transparent 68%); }
.story-card p, .glass-card p, .source-card p, .project-card p { color: var(--mist); }
.story-card blockquote, .quote-panel blockquote { margin: 2rem 0 0; color: var(--white); font-family: Georgia, "Times New Roman", serif; font-size: clamp(1.5rem, 2.5vw, 2.4rem); line-height: 1.18; }
.quote-panel { padding: clamp(2rem, 6vw, 5rem); border: 1px solid rgba(99, 242, 223, 0.34); border-radius: var(--radius); background: radial-gradient(circle at 80% 10%, rgba(99, 242, 223, 0.14), transparent 28%), linear-gradient(125deg, rgba(12, 17, 42, 0.96), rgba(7, 10, 24, 0.9)); box-shadow: var(--shadow); }
.interactive-lab { position: relative; overflow: hidden; padding: clamp(2rem, 5vw, 4rem); border: 1px solid rgba(101, 168, 255, 0.32); border-radius: var(--radius); background: radial-gradient(circle at 75% 25%, rgba(101, 168, 255, 0.14), transparent 30%), rgba(7, 10, 24, 0.88); box-shadow: var(--shadow); }
.interactive-lab > p { max-width: 750px; color: var(--mist); }
.control-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; margin-top: 2.5rem; }
.control { padding: 1.2rem; border: 1px solid var(--line); border-radius: 1rem; background: rgba(3, 5, 13, 0.46); }
.control label { display: flex; justify-content: space-between; gap: 1rem; margin-bottom: 0.7rem; color: var(--white); font-weight: 720; }
.control output { color: var(--aqua); }
.control small { display: block; margin-top: 0.45rem; color: rgba(184, 194, 223, 0.72); font-size: 0.74rem; line-height: 1.45; }
input[type="range"] { width: 100%; accent-color: var(--aqua); }
.family-presets { display: flex; flex-wrap: wrap; gap: 0.65rem; margin-top: 2rem; }
.dual-input { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 0.75rem; align-items: center; margin-bottom: 0.65rem; }
.dual-input input { min-width: 0; width: 100%; min-height: 3rem; padding: 0.6rem 0.8rem; border: 1px solid rgba(99, 242, 223, 0.34); border-radius: 0.8rem; background: rgba(3, 5, 13, 0.7); color: var(--white); }
.dual-input output { min-width: 5.2rem; overflow-wrap: anywhere; text-align: right; }
.family-constellation { position: relative; height: clamp(20rem, 38vw, 31rem); margin-top: 1rem; overflow: hidden; border: 1px solid var(--line); border-radius: 1.2rem; background: radial-gradient(circle at 50% 50%, rgba(101, 168, 255, 0.12), rgba(3, 5, 13, 0.94) 70%); }
.family-constellation canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.family-constellation span { position: absolute; left: 1rem; right: 1rem; bottom: 1rem; padding: 0.7rem 0.9rem; border: 1px solid var(--line); border-radius: 999px; background: rgba(3, 5, 13, 0.7); color: var(--white); font-size: 0.82rem; text-align: center; backdrop-filter: blur(12px); }
[data-family-model] .model-output { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.model-output { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.8rem; margin-top: 1rem; }
.model-output article { min-height: 10rem; padding: 1.3rem; border: 1px solid var(--line); border-radius: 1rem; background: rgba(10, 15, 38, 0.76); display: flex; flex-direction: column; justify-content: space-between; }
.model-output strong { min-width: 0; overflow-wrap: anywhere; color: var(--gold); font-family: Georgia, "Times New Roman", serif; font-size: 2.2rem; font-weight: 500; }
.model-output span { color: var(--mist); font-size: 0.84rem; }
.model-note { margin: 1.2rem 0 0; color: rgba(184, 194, 223, 0.75); font-size: 0.82rem; }
.canvas-shell { position: relative; min-height: 36rem; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: radial-gradient(circle at 50% 50%, rgba(101, 168, 255, 0.12), rgba(3, 5, 13, 0.95) 70%); }
.canvas-shell canvas { width: 100%; height: 100%; position: absolute; inset: 0; }
.subterranean-shell { min-height: clamp(32rem, 58vw, 48rem); margin-top: 2rem; background: linear-gradient(180deg, #071329 0%, #182848 16%, #1d1823 17%, #070914 100%); }
.subterranean-controls { margin-top: 1rem; }
.canvas-controls { position: absolute; z-index: 2; left: 1rem; right: 1rem; bottom: 1rem; padding: 1rem; border: 1px solid var(--line); border-radius: 1rem; background: rgba(3, 5, 13, 0.7); backdrop-filter: blur(14px); }
.timeline-explorer { padding: clamp(1.5rem, 4vw, 3.5rem); border: 1px solid var(--line); border-radius: var(--radius); background: linear-gradient(145deg, rgba(15, 21, 51, 0.92), rgba(5, 8, 21, 0.94)); box-shadow: var(--shadow); }
.timeline-control { display: grid; grid-template-columns: auto 1fr auto; gap: 1rem; align-items: center; }
.timeline-year { color: var(--aqua); font-family: Georgia, "Times New Roman", serif; font-size: clamp(3.5rem, 8vw, 7rem); line-height: 1; }
.timeline-display { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 2rem; margin-top: 2.5rem; padding-top: 2.5rem; border-top: 1px solid var(--line); }
.timeline-display p { color: var(--mist); }
.timeline-data { color: var(--gold) !important; }
.year-button, .filter-button { min-height: 2.8rem; padding: 0.6rem 0.95rem; border: 1px solid var(--line); border-radius: 999px; background: rgba(7, 10, 24, 0.7); color: var(--white); cursor: pointer; }
.year-button:hover, .year-button:focus-visible, .filter-button:hover, .filter-button:focus-visible, .filter-button.is-active { border-color: var(--aqua); color: var(--aqua); }
.milestone-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.milestone { min-height: 15rem; padding: 1.5rem; border: 1px solid var(--line); border-radius: 1.2rem; background: rgba(10, 15, 38, 0.72); }
.milestone strong { display: block; margin-bottom: 1.5rem; color: var(--aqua); font-family: Georgia, "Times New Roman", serif; font-size: 2rem; font-weight: 500; }
.filter-row { display: flex; flex-wrap: wrap; gap: 0.65rem; margin-bottom: 2rem; }
.ecosystem-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.project-card { display: flex; flex-direction: column; min-height: 22rem; text-decoration: none; transition: transform 180ms ease, border-color 180ms ease; }
.project-card:hover { transform: translateY(-5px); border-color: rgba(99, 242, 223, 0.52); }
.project-card h3 { margin-top: auto; }
.project-card .project-type { margin-bottom: auto; color: var(--aqua); font-size: 0.78rem; font-weight: 760; }
.project-card .project-status { margin-top: 1rem; color: var(--gold); font-size: 0.78rem; }
.project-card[hidden] { display: none; }
.source-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.source-card { min-height: 20rem; }
.source-card strong { display: block; margin-bottom: 1rem; color: var(--aqua); }
.source-card .text-link { display: block; width: fit-content; margin-top: 0.7rem; font-size: 0.84rem; }
.source-card .status-pill { display: inline-block; margin-top: 1.2rem; }
.un-of-love-section { background: radial-gradient(circle at 84% 24%, rgba(255, 99, 125, 0.14), transparent 28%), linear-gradient(180deg, #080a1d, var(--void)); }
.subterranean-hero .page-hero-media { background-position: center; }
.precedent-explorer { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(20rem, 0.65fr); gap: 1rem; align-items: stretch; }
.precedent-world { position: relative; min-height: 38rem; overflow: hidden; border: 1px solid rgba(101, 168, 255, 0.28); border-radius: var(--radius); background: radial-gradient(circle at 50% 50%, rgba(101, 168, 255, 0.12), rgba(3, 5, 13, 0.96) 72%); box-shadow: inset 0 0 80px rgba(99, 242, 223, 0.05); }
.precedent-world canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.world-point { position: absolute; z-index: 2; min-height: 2.75rem; padding: 0.52rem 0.8rem; border: 1px solid rgba(99, 242, 223, 0.34); border-radius: 999px; background: rgba(3, 5, 13, 0.76); color: var(--white); font-size: 0.74rem; font-weight: 760; cursor: pointer; box-shadow: 0 0 24px rgba(99, 242, 223, 0.08); backdrop-filter: blur(12px); transform: translate(-50%, -50%); }
.world-point:hover, .world-point:focus-visible, .world-point.is-active { border-color: var(--gold); color: var(--gold); box-shadow: 0 0 34px rgba(255, 200, 91, 0.2); }
.point-montreal { left: 22%; top: 34%; }
.point-snolab { left: 20%; top: 23%; }
.point-svalbard { left: 49%; top: 11%; }
.point-helsinki { left: 56%; top: 23%; }
.point-singapore { left: 73%; top: 61%; }
.point-japan { left: 84%; top: 39%; }
.point-seoul { left: 78%; top: 30%; }
.point-coober { left: 82%; top: 77%; }
.precedent-detail { min-width: 0; padding: clamp(1.6rem, 3vw, 2.7rem); border: 1px solid var(--line); border-radius: var(--radius); background: linear-gradient(145deg, rgba(17, 24, 58, 0.9), rgba(7, 10, 24, 0.94)); display: flex; flex-direction: column; justify-content: center; }
.precedent-detail .status-key { margin: 0 0 2rem; align-items: center; }
.precedent-place { color: var(--mist); font-size: 0.82rem; font-weight: 760; }
.precedent-detail p { color: var(--mist); }
.precedent-ledger { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.precedent-ledger .source-card { min-height: 29rem; display: flex; flex-direction: column; align-items: flex-start; }
.precedent-ledger .source-card p { margin-bottom: auto; }
.thoughtform-card { background: radial-gradient(circle at 80% 10%, rgba(255, 200, 91, 0.16), transparent 30%), linear-gradient(145deg, rgba(17, 24, 58, 0.9), rgba(7, 10, 24, 0.92)); }
.continuity-section { background: radial-gradient(circle at 80% 30%, rgba(99, 242, 223, 0.1), transparent 30%), var(--void); }
.page-nav { display: flex; justify-content: space-between; gap: 1rem; margin-top: 4rem; }
.page-nav a { max-width: 48%; padding: 1.3rem 1.5rem; border: 1px solid var(--line); border-radius: 1rem; background: rgba(10, 15, 38, 0.68); text-decoration: none; }
.page-nav a:hover { border-color: var(--aqua); }

.reveal-ready [data-reveal] { transition: opacity 800ms ease, transform 800ms cubic-bezier(0.16, 1, 0.3, 1); }
.reveal-ready [data-reveal]:not(.is-visible) { opacity: 0; transform: translateY(30px); }
.reveal-ready [data-reveal].is-visible { opacity: 1; transform: translateY(0); }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 4px; }

@keyframes hero-breathe { from { transform: scale(1.04) translate3d(0, 0, 0); } to { transform: scale(1.11) translate3d(-1.2%, -0.7%, 0); } }
@keyframes aurora-turn { to { transform: rotate(360deg); } }
@keyframes scroll-pulse { 0%, 100% { transform: translate(-50%, 0); opacity: 0.3; } 50% { transform: translate(-50%, 1.35rem); opacity: 1; } }

@media (max-width: 1120px) {
  .site-nav { position: absolute; top: 6.4rem; left: 0; right: 0; padding: 0.65rem 0.8rem; overflow-x: auto; background: rgba(2, 4, 11, 0.88); gap: 1.1rem; white-space: nowrap; scrollbar-width: thin; }
  .site-nav a { flex: 0 0 auto; font-size: 0.78rem; }
  .nav-ready .menu-button { display: block; position: relative; z-index: 4; }
  .nav-ready .site-nav { position: fixed; inset: 0; z-index: 3; padding: 8rem 1.5rem calc(2rem + env(safe-area-inset-bottom)); overflow-x: hidden; overflow-y: auto; background: rgba(2, 4, 11, 0.97); flex-direction: column; align-items: flex-start; gap: clamp(0.75rem, 1.6vw, 1.45rem); white-space: normal; transform: translateX(100%); transition: transform 240ms cubic-bezier(0.16, 1, 0.3, 1); }
  .nav-ready .site-nav.is-open { transform: translateX(0); }
  .nav-ready .site-nav a { font-family: Georgia, "Times New Roman", serif; font-size: 2rem; }
  .opening-grid, .network-layout, .content-intro { grid-template-columns: 1fr; }
  .signal-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .signal-row article:nth-child(2) { border-right: 0; }
  .signal-row article:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .portal-grid { grid-template-columns: 1fr; grid-auto-rows: minmax(28rem, 65vw); }
  .portal-wide, .portal-family, .portal-earth, .portal-subterranean, .portal-intelligence, .portal-network { grid-column: auto; grid-row: auto; }
  .network-stage { min-height: min(700px, 90vw); }
  .provenance-card { grid-template-columns: 1fr; align-items: start; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > div:first-child { grid-column: 1 / -1; }
  .ecosystem-grid, .milestone-grid, .source-grid, .precedent-ledger { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  [data-family-model] .model-output { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .precedent-explorer { grid-template-columns: 1fr; }
}

@media (max-width: 680px) {
  :root { --wrap: min(100% - 1.25rem, 1240px); }
  h1 { font-size: clamp(3.7rem, 17vw, 5.8rem); }
  h2 { font-size: clamp(2.7rem, 13vw, 4.2rem); }
  .hero-content { padding-bottom: 9rem; }
  .hero-atmosphere, .page-hero-atmosphere { background: linear-gradient(90deg, rgba(3, 5, 13, 0.94), rgba(5, 8, 22, 0.42)), linear-gradient(0deg, rgba(3, 5, 13, 0.9), transparent 60%); }
  .hero-grid { background-size: 4rem 4rem; }
  .hero-coordinate { left: 0.65rem; right: auto; bottom: 1.25rem; }
  .scroll-cue { display: none; }
  .button-row, .button { width: 100%; }
  .section-intro { align-items: start; flex-direction: column; }
  .signal-row { grid-template-columns: 1fr; }
  .signal-row article { min-height: 7rem; border-right: 0; border-bottom: 1px solid var(--line); }
  .signal-row article:last-child { border-bottom: 0; }
  .portal-grid { grid-auto-rows: minmax(29rem, 120vw); }
  .portal-content strong { font-size: 2.6rem; }
  .cinematic-shade { background: linear-gradient(90deg, rgba(3, 5, 13, 0.92), rgba(3, 5, 13, 0.4)), linear-gradient(0deg, rgba(3, 5, 13, 0.9), transparent 68%); }
  .network-stage { min-height: 95vw; }
  .provenance-card .button { white-space: normal; }
  .footer-grid, .story-grid, .content-grid, .callout-grid, .ecosystem-grid, .milestone-grid, .source-grid, .precedent-ledger, .control-grid, .model-output, [data-family-model] .model-output, .timeline-display { grid-template-columns: 1fr; }
  .footer-grid > div:first-child { grid-column: auto; }
  .footer-bottom { flex-direction: column; }
  .page-nav { flex-direction: column; }
  .page-nav a { max-width: 100%; }
  .timeline-control { grid-template-columns: 1fr 1fr; }
  .timeline-control input { grid-column: 1 / -1; grid-row: 1; }
  .family-presets .filter-button { flex: 1 1 calc(50% - 0.65rem); min-height: 3rem; }
  .family-constellation { height: min(25rem, 105vw); }
  .precedent-world { min-height: 33rem; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-content: end; gap: 0.45rem; padding: 12rem 0.75rem 0.75rem; }
  .precedent-world canvas { height: 12rem; bottom: auto; }
  .world-point { position: relative; inset: auto; width: 100%; min-height: 2.8rem; transform: none; }
  .subterranean-shell { min-height: min(32rem, 120vw); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  .reveal-ready [data-reveal] { opacity: 1; transform: none; }
}
