:root {
  --bg: #06060f;
  --surface: #0d0d1a;
  --surface2: #131322;
  --border: rgba(255,255,255,0.07);
  --text: #e8e8f0;
  --muted: #6b6b8a;
  --accent: #7c6aff;
  --accent2: #ff6a3d;
  --major: #00e5a0;
  --notable: #4da8ff;
  --routine: #6b6b8a;
  --font-head: 'Syne', sans-serif;
  --font-body: 'Fraunces', serif;
  --font-mono: 'IBM Plex Mono', monospace;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { background: var(--bg); color: var(--text); font-family: var(--font-head); min-height: 100vh; overflow-x: hidden; }

/* ── FAMILY BAR ── */
.fbar { background: rgba(16,16,14,.82); backdrop-filter: blur(8px); display: flex; align-items: center; padding: 0 20px; overflow-x: auto; scrollbar-width: none; position: sticky; top: 0; z-index: 100; }
.fbar::-webkit-scrollbar { display: none; }
.fbar-label { font-family: var(--font-mono); font-size: 10px; letter-spacing: .12em; color: rgba(255,253,247,.5); padding: 8px 12px 8px 0; border-right: 1px solid rgba(255,253,247,.15); margin-right: 4px; white-space: nowrap; }
.fbar a { font-family: var(--font-mono); font-size: 10px; letter-spacing: .1em; color: rgba(255,253,247,.55); padding: 8px 12px; border-right: 1px solid rgba(255,253,247,.15); white-space: nowrap; transition: color .15s; text-decoration: none; }
.fbar a:first-of-type { border-left: 1px solid rgba(255,253,247,.15); }
.fbar a:hover { color: #fffdf7; }
.fbar a.active { color: #00d488; }

/* ── ATMOSPHERE: aerial earth photo + motion layers ── */
.sky { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; background: #04060f; }
.earth { position: absolute; inset: -6%; background: url('earth.jpg') center/cover no-repeat; background-color: #0a1a33; will-change: transform; animation: kenburns 48s ease-in-out infinite alternate; }
@keyframes kenburns { from { transform: scale(1.06) translate(-1.2%, -0.8%); } to { transform: scale(1.14) translate(1.4%, 1.0%); } }
.cloud { position: absolute; inset: -12% 0; mix-blend-mode: screen; will-change: background-position; background-repeat: repeat; }
.cloud.c1 { opacity: .55; background-size: 900px 620px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='900' height='620'%3E%3Cfilter id='a'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.0045 0.009' numOctaves='5' seed='11' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 1.5 -0.64'/%3E%3C/filter%3E%3Crect width='900' height='620' filter='url(%23a)'/%3E%3C/svg%3E"); animation: cpan1 90s linear infinite; }
.cloud.c2 { opacity: .38; background-size: 620px 460px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='620' height='460'%3E%3Cfilter id='b'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.009 0.014' numOctaves='4' seed='27' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 1.4 -0.7'/%3E%3C/filter%3E%3Crect width='620' height='460' filter='url(%23b)'/%3E%3C/svg%3E"); animation: cpan2 150s linear infinite; }
@keyframes cpan1 { from { background-position: 0 0; } to { background-position: 900px 0; } }
@keyframes cpan2 { from { background-position: 0 0; } to { background-position: -620px 0; } }
.glitch { position: absolute; inset: 0; pointer-events: none; mix-blend-mode: screen; opacity: .5; }
.glitch::before { content: ''; position: absolute; inset: 0; background: repeating-linear-gradient(0deg, rgba(0,200,255,.05) 0 1px, transparent 1px 3px); animation: scan 8s linear infinite; }
.glitch::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(255,0,160,.08), transparent 18%, transparent 82%, rgba(0,180,255,.08)); animation: rgbshift 6s steps(1) infinite; }
@keyframes scan { to { background-position: 0 120px; } }
@keyframes rgbshift { 0%,86%,100% { transform: translateX(0); opacity: .5; } 88% { transform: translateX(-3px); opacity: .9; } 90% { transform: translateX(4px); opacity: .7; } 92% { transform: translateX(-2px); opacity: .9; } }
.sky::after { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse at 50% 36%, transparent 30%, rgba(4,6,15,.55) 100%), linear-gradient(180deg, rgba(4,6,15,.50) 0%, rgba(4,6,15,.20) 34%, rgba(4,6,15,.40) 72%, rgba(4,6,15,.66) 100%); }
#net { position: fixed; inset: 0; z-index: 0; pointer-events: none; opacity: .5; }
#relayfx { position: fixed; inset: 0; z-index: 60; pointer-events: none; }

.wrap { position: relative; z-index: 1; }

/* ── HERO (glass card so it reads over the photo) ── */
.hero { display: flex; justify-content: center; padding: 64px 20px 30px; }
.hero-card {
  text-align: center; max-width: 600px; width: 100%;
  background: rgba(7,9,20,0.52); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255,255,255,0.10); border-radius: 22px;
  padding: 30px 34px 32px; box-shadow: 0 24px 70px rgba(0,0,0,.45);
}
.hero-label { display: inline-block; font-family: var(--font-mono); font-size: 10px; letter-spacing: .15em; color: #b9acff; text-transform: uppercase; border: 1px solid rgba(124,106,255,0.4); padding: 4px 12px; border-radius: 20px; margin-bottom: 16px; }
.hero h1 { font-family: var(--font-head); font-size: clamp(28px, 4.4vw, 46px); font-weight: 800; line-height: 1.06; letter-spacing: -0.02em; margin-bottom: 14px;
  background: linear-gradient(100deg, #ffffff 0%, #b9acff 22%, #4da8ff 44%, #00e5a0 64%, #ffc7a0 84%, #ffffff 100%); background-size: 220% auto;
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent; animation: shimmer 9s linear infinite; }
.hero h1 em { font-style: italic; font-family: var(--font-body); font-weight: 300; -webkit-text-fill-color: transparent; }
@keyframes shimmer { to { background-position: 220% center; } }
.hero-sub { font-family: var(--font-body); font-size: 16px; font-weight: 300; color: #c9c9dd; max-width: 480px; margin: 0 auto; line-height: 1.6; font-style: italic; }

/* ── PROGRESS MONITOR ── */
.monitor { max-width: 1180px; margin: 4px auto 0; padding: 0 24px; display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; }
.mstat { background: rgba(8,10,22,.5); backdrop-filter: blur(10px); border: 1px solid var(--border); border-radius: 12px; padding: 14px 22px; text-align: center; min-width: 150px; }
.mstat-num { font-family: var(--font-mono); font-size: 26px; font-weight: 500; color: var(--text); display: block; }
.mstat-label { font-size: 10px; letter-spacing: .1em; color: var(--muted); text-transform: uppercase; }

/* layer rail — packet targets on the landing page */
.rail { max-width: 1180px; margin: 16px auto 0; padding: 0 24px; display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; }
.rail-node { font-family: var(--font-mono); font-size: 10px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); background: rgba(8,10,22,.5); border: 1px solid var(--border); border-radius: 30px; padding: 6px 13px; transition: color .3s, border-color .3s, box-shadow .3s; }
.rail-node.ping { color: var(--major); border-color: rgba(0,229,160,.6); box-shadow: 0 0 18px rgba(0,229,160,.4); }

/* ── IMPORTANCE TIERS (dark palette) ── */
.tier-tag { font-family: var(--font-mono); font-size: 9px; letter-spacing: .1em; text-transform: uppercase; padding: 2px 8px; border-radius: 3px; border: 1px solid transparent; white-space: nowrap; }
.tier-tag.foundational { color: #ffb3c0; background: #5e1a24; border-color: rgba(255,90,114,.45); }
.tier-tag.significant  { color: #ffd9a0; background: #6b4a16; border-color: rgba(255,180,84,.45); }
.tier-tag.notable      { color: #9fe0ef; background: #163f4a; border-color: rgba(79,201,230,.45); }
.tier-tag.routine      { color: #aeb2c6; background: #262633; border-color: rgba(255,255,255,.12); }

/* ── HEADLINE BANNER ── */
.headline { max-width: 1180px; margin: 18px auto 0; padding: 0 24px; }
.hl-inner { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; cursor: pointer; background: linear-gradient(100deg, rgba(94,26,36,.55), rgba(8,10,22,.6)); border: 1px solid rgba(255,90,114,.32); border-radius: 14px; padding: 14px 18px; transition: border-color .2s, transform .2s; }
.hl-inner[data-tier="significant"] { background: linear-gradient(100deg, rgba(107,74,22,.5), rgba(8,10,22,.6)); border-color: rgba(255,180,84,.32); }
.hl-inner[data-tier="notable"] { background: linear-gradient(100deg, rgba(22,63,74,.5), rgba(8,10,22,.6)); border-color: rgba(79,201,230,.3); }
.hl-inner:hover { transform: translateY(-2px); border-color: rgba(255,255,255,.28); }
.hl-tag { font-family: var(--font-mono); font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: #ffd1d8; white-space: nowrap; }
.hl-body { font-family: var(--font-body); font-size: 15px; color: var(--text); line-height: 1.5; flex: 1; min-width: 220px; }
.hl-body b { font-family: var(--font-head); font-weight: 700; }

/* ── LEGEND ── */
.legend { display: flex; justify-content: center; gap: 22px; padding: 14px 24px; flex-wrap: wrap; }
.leg { display: flex; align-items: center; gap: 7px; font-family: var(--font-mono); font-size: 11px; color: var(--muted); }
.leg .dot { width: 8px; height: 8px; border-radius: 50%; }

/* ── LIVE RELAY ── */
.relay { max-width: 1180px; margin: 22px auto 0; padding: 0 24px; }
.relay-head { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; }
.relay-live { font-family: var(--font-mono); font-size: 11px; letter-spacing: .16em; color: var(--text); display: flex; align-items: center; gap: 8px; }
.relay-live .pip { width: 8px; height: 8px; border-radius: 50%; background: var(--major); box-shadow: 0 0 10px var(--major); animation: blink 1.6s ease-in-out infinite; }
@keyframes blink { 0%,100% { opacity: 1; } 50% { opacity: .25; } }
.relay-sub { font-family: var(--font-body); font-style: italic; font-size: 13px; color: var(--muted); flex: 1; }
.relay-toggle { font-family: var(--font-mono); font-size: 10px; letter-spacing: .1em; color: var(--muted); background: var(--surface); border: 1px solid var(--border); border-radius: 5px; padding: 5px 12px; cursor: pointer; transition: all .2s; }
.relay-toggle:hover { color: var(--text); border-color: rgba(255,255,255,.2); }
.relay.paused .pip { animation: none; background: var(--routine); box-shadow: none; }
.relay-stream { position: relative; height: 200px; overflow: hidden; border: 1px solid var(--border); border-radius: 12px; background: linear-gradient(180deg, rgba(7,9,20,.72), rgba(4,6,15,.55)); backdrop-filter: blur(6px); padding: 8px 4px; -webkit-mask-image: linear-gradient(180deg, #000 78%, transparent); mask-image: linear-gradient(180deg, #000 78%, transparent); }
.rl { display: flex; align-items: center; gap: 10px; padding: 6px 14px; font-family: var(--font-mono); font-size: 12px; cursor: pointer; border-radius: 6px; transition: transform .3s ease, opacity .3s ease, background .15s; }
.rl:hover { background: rgba(255,255,255,.05); }
.rl.enter { transform: translateY(-10px); opacity: 0; }
.rl-time { color: var(--muted); font-size: 11px; }
.rl-name { color: var(--text); font-weight: 500; min-width: 100px; }
.rl-arrow { color: var(--accent); }
.rl-layer { color: var(--muted); min-width: 118px; }
.rl-sig { font-size: 9px; letter-spacing: .08em; text-transform: uppercase; padding: 1px 6px; border-radius: 3px; flex-shrink: 0; }
.rl-sig.major { color: var(--major); background: rgba(0,229,160,.1); }
.rl-sig.notable { color: var(--notable); background: rgba(77,168,255,.1); }
.rl-sig.routine { color: var(--routine); background: rgba(255,255,255,.04); }
.rl-msg { color: rgba(232,232,240,.78); font-family: var(--font-body); font-style: italic; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ── ADEXI CATEGORY HOMEBAR ── */
.catbar { background: rgba(10,12,24,.72); backdrop-filter: blur(8px); display: flex; align-items: center; padding: 0 20px; overflow-x: auto; scrollbar-width: none; border-bottom: 1px solid var(--border); }
.catbar::-webkit-scrollbar { display: none; }
.catbar-label { font-family: var(--font-mono); font-size: 10px; letter-spacing: .14em; color: var(--accent); padding: 9px 14px 9px 0; border-right: 1px solid var(--border); margin-right: 4px; white-space: nowrap; }
.catbar a { font-family: var(--font-mono); font-size: 10px; letter-spacing: .1em; color: rgba(200,200,230,.62); padding: 9px 14px; border-right: 1px solid var(--border); white-space: nowrap; cursor: pointer; transition: color .15s, background .15s; text-decoration: none; }
.catbar a:hover { color: #fff; background: rgba(255,255,255,.04); }

/* ── DATA CONSTELLATION: central source spidering to category nodes ── */
.constellation { position: relative; max-width: 1140px; margin: 14px auto 0; padding: 0; height: 700px; }
#spider { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 1; }
.hub { position: absolute; left: 50%; top: 50%; transform: translate(-50%,-50%); z-index: 3; width: 128px; height: 128px; border-radius: 50%; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; background: radial-gradient(circle, rgba(124,106,255,.38), rgba(8,10,22,.65) 72%); border: 1px solid rgba(124,106,255,.55); box-shadow: 0 0 50px rgba(124,106,255,.4); cursor: pointer; transition: box-shadow .3s, transform .2s; }
.hub:hover { transform: translate(-50%,-50%) scale(1.06); box-shadow: 0 0 64px rgba(124,106,255,.55); }
/* pulsing "open me" ring, only while closed */
.hub::after { content: ''; position: absolute; inset: -10px; border-radius: 50%; border: 1px solid rgba(124,106,255,.5); animation: hubring 2.4s ease-out infinite; pointer-events: none; }
.hub.is-open::after { display: none; }
.hub.recv { box-shadow: 0 0 78px rgba(159,214,255,.7), 0 0 30px rgba(159,214,255,.5); border-color: rgba(159,214,255,.8); }
@keyframes hubring { 0% { transform: scale(.88); opacity: .7; } 100% { transform: scale(1.55); opacity: 0; } }
.hub-core { width: 16px; height: 16px; border-radius: 50%; background: var(--major); box-shadow: 0 0 18px var(--major); animation: hubpulse 1.8s ease-in-out infinite; }
@keyframes hubpulse { 0%,100% { transform: scale(1); opacity: 1; } 50% { transform: scale(1.55); opacity: .55; } }
.hub-label { font-family: var(--font-mono); font-size: 9px; letter-spacing: .16em; color: #cfc6ff; margin-top: 9px; text-transform: uppercase; }
.cat-node { position: absolute; transform: translate(-50%,-50%); z-index: 2; width: 216px; background: rgba(8,10,22,.66); backdrop-filter: blur(10px); border: 1px solid var(--border); border-radius: 12px; padding: 10px 13px 11px; transition: border-color .3s, box-shadow .3s; }
.cat-node.pinged { border-color: rgba(0,229,160,.6); box-shadow: 0 0 28px rgba(0,229,160,.34); }
.cat-node.talk { border-color: rgba(159,214,255,.78); box-shadow: 0 0 26px rgba(159,214,255,.5); }
/* nodes are hidden until the hub is opened */
#nodes .cat-node { opacity: 0; transform: translate(-50%,-50%) scale(.85); pointer-events: none; transition: opacity .45s ease, transform .45s ease, border-color .3s, box-shadow .3s; }
.constellation.revealed #nodes .cat-node { opacity: 1; transform: translate(-50%,-50%) scale(1); pointer-events: auto; }
.cat-node-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 7px; }
.cat-node-name { font-family: var(--font-mono); font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: var(--text); }
.cat-count { font-family: var(--font-mono); font-size: 10px; color: var(--major); background: rgba(0,229,160,.1); border-radius: 10px; padding: 1px 8px; }
.cat-feed { display: flex; flex-direction: column; gap: 4px; min-height: 78px; }
.cf { font-family: var(--font-mono); font-size: 10.5px; color: rgba(232,232,240,.7); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; cursor: pointer; transition: opacity .3s, transform .3s, color .15s; }
.cf:hover { color: #fff; }
.cf.enter { opacity: 0; transform: translateY(-6px); }
.cf b { color: var(--text); font-weight: 500; }

@media (max-width: 820px) {
  .constellation { height: auto; display: flex; flex-direction: column; gap: 12px; padding-top: 6px; }
  .constellation #spider, .constellation .hub { display: none; }
  .cat-node { position: static; transform: none; width: 100%; }
  /* no hub to click on mobile — always show the nodes */
  .constellation #nodes { display: flex; flex-direction: column; gap: 12px; }
  .constellation #nodes .cat-node { opacity: 1; transform: none; pointer-events: auto; }
}

/* ── CTA to the full map ── */
.cta-wrap { text-align: center; padding: 30px 24px 10px; }
.cta-map { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-head); font-weight: 600; font-size: 15px; color: #fff; text-decoration: none; background: linear-gradient(100deg, rgba(124,106,255,.9), rgba(77,168,255,.9)); border: 1px solid rgba(255,255,255,.18); border-radius: 12px; padding: 14px 26px; transition: transform .2s, box-shadow .2s; box-shadow: 0 12px 40px rgba(77,108,255,.3); }
.cta-map:hover { transform: translateY(-2px); box-shadow: 0 18px 50px rgba(77,108,255,.45); }
.cta-note { font-family: var(--font-body); font-style: italic; font-size: 13px; color: var(--muted); margin-top: 12px; }

/* packet arrival pulses */
.stone.ping { animation: stoneping .65s ease-out; border-color: rgba(0,229,160,.5); }
@keyframes stoneping { 0% { box-shadow: 0 0 0 0 rgba(0,229,160,.45); } 100% { box-shadow: 0 0 0 20px rgba(0,229,160,0); } }
.stratum.flare { animation: stratflare 1s ease-out; }
@keyframes stratflare { 0% { background-color: rgba(124,106,255,.10); } 100% { background-color: rgba(124,106,255,0); } }

/* ── STRATA MAP (layers page) ── */
.map { max-width: 1180px; margin: 0 auto; padding: 20px 24px; position: relative; }
.depth-note { font-family: var(--font-mono); font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); text-align: center; margin-bottom: 18px; opacity: .8; }
.stratum { position: relative; border: 1px solid var(--border); border-radius: 14px; padding: 14px 16px 16px; margin-bottom: 14px; background: rgba(8,10,22,.42); backdrop-filter: blur(6px); transition: border-color .25s; }
.stratum-head { display: flex; align-items: baseline; gap: 10px; margin-bottom: 12px; }
.stratum-name { font-family: var(--font-mono); font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--text); }
.stratum-depth { font-family: var(--font-mono); font-size: 9px; letter-spacing: .1em; color: var(--muted); opacity: .7; }
.stratum-line { flex: 1; height: 1px; background: var(--border); }
/* long horizontal rows, stacked */
.stones { display: flex; flex-direction: column; gap: 10px; }
.stone { position: relative; overflow: hidden; display: grid; grid-template-columns: 210px 1fr auto; align-items: center; gap: 22px; background: rgba(13,13,26,.72); border: 1px solid var(--border); border-radius: 10px; padding: 14px 20px; cursor: pointer; transition: transform .18s, border-color .22s, background .22s; }
.stone:hover { transform: translateX(4px); border-color: rgba(255,255,255,0.16); background: rgba(19,19,34,.82); }
.stone::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--routine); opacity: .35; transition: opacity .22s; }
.stone[data-tier="foundational"]::after { background: #ff5a72; }
.stone[data-tier="significant"]::after { background: #ffb454; }
.stone[data-tier="notable"]::after { background: #4fc9e6; }
.stone:hover::after { opacity: 1; }
.stone.active { border-color: rgba(0,229,160,0.28); }
.stone.active::before { content: ''; position: absolute; top: -40%; right: -30%; width: 160px; height: 160px; background: radial-gradient(circle, rgba(0,229,160,0.16) 0%, transparent 70%); animation: breathe 3.4s ease-in-out infinite; pointer-events: none; }
@keyframes breathe { 0%,100% { opacity: .5; transform: scale(.9); } 50% { opacity: 1; transform: scale(1.08); } }
.stone-top { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; margin-bottom: 0; }
.stone-name { font-family: var(--font-head); font-size: 16px; font-weight: 700; letter-spacing: -0.01em; }
.stone-ver { font-family: var(--font-mono); font-size: 12px; color: var(--accent); white-space: nowrap; }
.stone-what { font-family: var(--font-body); font-size: 13px; font-style: italic; color: var(--muted); line-height: 1.5; margin-bottom: 0; min-height: 0; }
.stone-foot { display: flex; flex-direction: column; align-items: flex-end; gap: 5px; white-space: nowrap; }
.sig-tag { font-family: var(--font-mono); font-size: 9px; letter-spacing: .1em; text-transform: uppercase; padding: 2px 7px; border-radius: 3px; }
.sig-tag.major { color: var(--major); background: rgba(0,229,160,0.10); border: 1px solid rgba(0,229,160,0.22); }
.sig-tag.notable { color: var(--notable); background: rgba(77,168,255,0.10); border: 1px solid rgba(77,168,255,0.22); }
.sig-tag.routine { color: var(--routine); background: rgba(255,255,255,0.04); border: 1px solid var(--border); }
.stone-ago { font-family: var(--font-mono); font-size: 10px; color: var(--muted); }

/* ── DETAIL OVERLAY — Claude-style warm dark ── */
.overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.7); backdrop-filter: blur(4px); z-index: 200; display: flex; align-items: flex-start; justify-content: center; padding: 2.5vh 2.5vw; overflow-y: auto; opacity: 0; pointer-events: none; transition: opacity .22s; }
.overlay.open { opacity: 1; pointer-events: all; }
.panel {
  background: #1e1e1e;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
  width: 95vw; max-width: 95vw; min-height: 92vh;
  padding: 40px 56px;
  position: relative;
  transform: translateY(16px); transition: transform .22s;
  font-family: -apple-system, 'Segoe UI', sans-serif;
  color: #ececec;
}
.overlay.open .panel { transform: translateY(0); }
.close { position: absolute; top: 20px; right: 24px; background: transparent; border: none; border-radius: 6px; width: 32px; height: 32px; display: flex; align-items: center; justify-content: center; cursor: pointer; color: #555; font-size: 22px; transition: color .15s; }
.close:hover { color: #ececec; }
.d-badges { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 22px; }
.d-layer { font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: #777; font-family: -apple-system, 'Segoe UI', sans-serif; }
.d-name { font-size: 36px; font-weight: 700; letter-spacing: -0.025em; color: #f0f0f0; line-height: 1.1; font-family: -apple-system, 'Segoe UI', sans-serif; }
.d-ver { font-family: 'SF Mono', 'Fira Code', var(--font-mono), monospace; font-size: 13px; color: #777; margin-top: 8px; }
.d-what { font-size: 17px; color: #aaa; line-height: 1.7; margin: 22px 0 30px; padding-bottom: 26px; border-bottom: 1px solid rgba(255,255,255,.06); font-family: -apple-system, 'Segoe UI', sans-serif; }
.d-sec { margin-bottom: 30px; }
.d-sec-label { font-size: 12px; letter-spacing: .07em; text-transform: uppercase; color: #555; margin-bottom: 12px; font-family: -apple-system, 'Segoe UI', sans-serif; }
.d-body { font-size: 16px; line-height: 1.8; color: #d4d4d4; font-family: -apple-system, 'Segoe UI', sans-serif; }
.d-why { background: #252525; border-radius: 8px; padding: 18px 22px; font-size: 16px; line-height: 1.8; color: #d4d4d4; font-family: -apple-system, 'Segoe UI', sans-serif; }
.d-take { background: #252525; border-left: 3px solid #444; border-radius: 0 8px 8px 0; padding: 18px 22px; font-size: 16px; line-height: 1.8; color: #d4d4d4; font-family: -apple-system, 'Segoe UI', sans-serif; }
.d-take-badge { display: none; }
.d-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 28px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.06); }
.btn { padding: 10px 20px; border-radius: 8px; font-size: 14px; font-weight: 500; cursor: pointer; transition: all .15s; border: none; text-decoration: none; display: inline-flex; align-items: center; gap: 6px; font-family: -apple-system, 'Segoe UI', sans-serif; }
.btn-secondary { background: #2a2a2a; color: #ccc; border: 1px solid rgba(255,255,255,.1); }
.btn-secondary:hover { background: #333; color: #fff; }
.btn-primary { background: #2a2a2a; color: #ccc; border: 1px solid rgba(255,255,255,.1); }
.btn-primary:hover { background: #333; color: #fff; }
.d-source-top { margin-left: auto; font-family: 'SF Mono', 'Fira Code', var(--font-mono), monospace; font-size: 12px; color: #555; text-decoration: none; transition: color .15s; }
.d-source-top:hover { color: #ececec; }

/* ── PILLAR PROFILE PAGE (node.html) ── */
.np { position: relative; z-index: 1; max-width: 860px; margin: 0 auto; padding: 22px 24px 70px; }
/* .np-back replaced by .map-back (unified back button design) */
.np-hero { background: rgba(8,10,22,.55); backdrop-filter: blur(14px); border: 1px solid rgba(255,255,255,.1); border-radius: 18px; padding: 26px 28px; margin: 16px 0 28px; }
.np-cat { font-family: var(--font-mono); font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.np-name { font-family: var(--font-head); font-size: clamp(28px, 5vw, 44px); font-weight: 800; letter-spacing: -.02em; margin: 7px 0; }
.np-what { font-family: var(--font-body); font-style: italic; font-size: 16px; color: var(--text); line-height: 1.6; max-width: 640px; }
.np-why { font-family: var(--font-body); font-size: 14px; color: var(--muted); line-height: 1.6; max-width: 640px; margin-top: 10px; }
.np-meta { display: flex; gap: 18px; flex-wrap: wrap; margin-top: 16px; align-items: center; }
.np-cur { font-family: var(--font-mono); font-size: 12px; color: var(--muted); }
.np-cur b { color: var(--accent); font-weight: 500; }
.np-src { font-family: var(--font-mono); font-size: 11px; color: var(--accent); text-decoration: none; border: 1px solid var(--border); border-radius: 8px; padding: 7px 13px; transition: all .2s; }
.np-src:hover { color: #fff; border-color: rgba(255,255,255,.2); }
.np-sec-label { font-family: var(--font-mono); font-size: 11px; letter-spacing: .15em; text-transform: uppercase; color: var(--muted); margin: 0 0 18px; display: flex; align-items: center; gap: 10px; }
.np-sec-label::after { content: ''; flex: 1; height: 1px; background: var(--border); }
.timeline { position: relative; padding-left: 26px; }
.timeline::before { content: ''; position: absolute; left: 7px; top: 6px; bottom: 6px; width: 2px; background: linear-gradient(180deg, rgba(124,106,255,.6), rgba(124,106,255,.05)); }
.tl { position: relative; margin-bottom: 22px; }
.tl::before { content: ''; position: absolute; left: -25px; top: 5px; width: 12px; height: 12px; border-radius: 50%; background: var(--routine); border: 2px solid var(--bg); box-shadow: 0 0 0 1px var(--border); }
.tl[data-tier="foundational"]::before { background: #ff5a72; }
.tl[data-tier="significant"]::before { background: #ffb454; }
.tl[data-tier="notable"]::before { background: #4fc9e6; }
.tl-top { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.tl-ver { font-family: var(--font-head); font-weight: 700; font-size: 17px; color: var(--text); }
.tl-date { font-family: var(--font-mono); font-size: 11px; color: var(--muted); }
.tl-msg { font-family: var(--font-body); font-size: 14px; color: rgba(232,232,240,.82); line-height: 1.55; margin-top: 5px; max-width: 660px; }
.np-loading { font-family: var(--font-mono); font-size: 12px; color: var(--muted); }

/* ── PAGE HEADER (layers page) ── */
.phead { max-width: 1180px; margin: 0 auto; padding: 40px 24px 6px; display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.phead h1 { font-family: var(--font-head); font-size: clamp(26px, 4vw, 40px); font-weight: 800; letter-spacing: -0.02em; }
.phead p { font-family: var(--font-body); font-style: italic; color: var(--muted); font-size: 15px; margin-top: 6px; }
.back-link { font-family: var(--font-mono); font-size: 11px; letter-spacing: .1em; color: var(--accent); text-decoration: none; border: 1px solid var(--border); border-radius: 8px; padding: 8px 14px; transition: all .2s; white-space: nowrap; }
.back-link:hover { color: #fff; border-color: rgba(255,255,255,.2); }
.map-back { display: inline-flex; align-items: center; gap: 7px; margin: 22px 0 0 24px; font-family: var(--font-mono); font-size: 12px; letter-spacing: .08em; color: #fff; text-decoration: none; border: 1px solid rgba(255,255,255,.28); border-radius: 9px; padding: 9px 16px; background: rgba(8,10,22,.55); backdrop-filter: blur(8px); transition: background .2s, border-color .2s; }
.map-back:hover { background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.55); }

/* ── BELOW-FOLD wrapper (legend + stats off initial viewport) ── */
.below-fold { margin-top: 60px; }

/* ── FBAR home brand (replaces label) ── */
.fbar-home { font-family: var(--font-mono); font-size: 11px; letter-spacing: .18em; color: #00d488 !important; padding: 8px 14px !important; font-weight: 600; }

/* ── TIMELINE plain link in detail panel ── */
.d-timeline-link { font-family: 'SF Mono', 'Fira Code', monospace; font-size: 13px; color: #888; text-decoration: none; transition: color .15s; letter-spacing: .04em; }
.d-timeline-link:hover { color: #ececec; }

/* tier tags inside the panel — muted to fit Claude palette */
.panel .tier-tag { color: #aaa; background: #2a2a2a; border-color: rgba(255,255,255,.1); }

/* ── FOOTER ── */
.foot { text-align: center; padding: 40px 24px 60px; color: var(--muted); font-family: var(--font-mono); font-size: 11px; line-height: 1.8; }
.foot .seed-note { color: var(--major); opacity: .9; }

@media (max-width: 600px) {
  .hero { padding: 40px 14px 24px; }
  .hero-card { padding: 24px 20px; }
  .map { padding: 16px 14px; }
  .panel { padding: 24px 20px; }
  .stone { grid-template-columns: 1fr; gap: 8px; }
  .stone-foot { flex-direction: row; align-items: center; justify-content: space-between; width: 100%; }
  .rl-time, .rl-layer { display: none; }
  .rl-name { min-width: auto; }
}
@media (prefers-reduced-motion: reduce) {
  .cloud, .earth, .glitch, .glitch::before, .glitch::after, .hero h1, .stone.active::before, .relay-live .pip, .hub::after { animation: none !important; }
}
