/* Awakened Monad section styles (hub + library articles). */
:root { --gold: #e6b84a; --gold-2: #f7d98a; --gold-dim: rgba(230, 184, 74, .38); --ink: #ece4d2; --muted: #a79a80; --bg: #050403; --panel: rgba(16, 12, 6, .72); --line: rgba(230, 184, 74, .22); }
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; background: var(--bg); color: var(--ink); }
body { font-family: 'Cormorant Garamond', Georgia, 'Times New Roman', serif; font-size: 19px; line-height: 1.6; overflow-x: clip; -webkit-font-smoothing: antialiased; }
a { color: var(--gold-2); text-decoration: none; }
h1, h2, h3 { font-family: 'Cinzel', Georgia, serif; font-weight: 600; letter-spacing: .06em; margin: 0; }
.cinzel { font-family: 'Cinzel', Georgia, serif; letter-spacing: .12em; text-transform: uppercase; }
.wrap { max-width: 1040px; margin: 0 auto; padding: 0 22px; position: relative; z-index: 2; }

/* ambient */
.sky { position: fixed; inset: 0; z-index: 0; pointer-events: none; background: radial-gradient(ellipse 70% 50% at 50% 18%, rgba(230, 184, 74, .16), transparent 62%), radial-gradient(ellipse 60% 40% at 50% 100%, rgba(120, 70, 10, .18), transparent 60%); }
.grain { position: fixed; inset: 0; z-index: 1; pointer-events: none; opacity: .09; mix-blend-mode: screen; background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)' opacity='.6'/></svg>"); }
.geometry { position: fixed; left: 50%; top: 52%; width: 1500px; height: 1500px; transform: translate(-50%, -50%); z-index: 0; opacity: .13; pointer-events: none; animation: spin 240s linear infinite; }
.geometry.r { animation-direction: reverse; opacity: .07; width: 1100px; height: 1100px; animation-duration: 180s; }
@keyframes spin { to { transform: translate(-50%, -50%) rotate(360deg); } }
.motes { position: fixed; inset: 0; z-index: 1; pointer-events: none; }
.mote { position: absolute; width: 3px; height: 3px; border-radius: 50%; background: var(--gold-2); box-shadow: 0 0 10px 2px rgba(247, 217, 138, .55); opacity: 0; animation: rise linear infinite; }
@keyframes rise { 0% { transform: translateY(0) scale(.6); opacity: 0; } 12% { opacity: .9; } 90% { opacity: .5; } 100% { transform: translateY(-110vh) scale(1.2); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .geometry, .mote { animation: none; } .mote { display: none; } }

/* hero */
.hero { text-align: center; padding: 64px 0 34px; }
.sigil { position: relative; width: 250px; height: 250px; margin: 0 auto 22px; }
.sigil img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; display: block; position: relative; z-index: 2; box-shadow: 0 0 0 1px rgba(247, 217, 138, .5), 0 0 60px 8px rgba(230, 184, 74, .35); }
.sigil::before, .sigil::after { content: ""; position: absolute; inset: -22px; border-radius: 50%; border: 1px solid var(--gold-dim); z-index: 1; animation: pulse 6s ease-in-out infinite; }
.sigil::after { inset: -44px; border-style: dashed; opacity: .5; animation-delay: -3s; animation-duration: 9s; }
@keyframes pulse { 0%, 100% { transform: scale(1); opacity: .55; } 50% { transform: scale(1.04); opacity: 1; } }
.eyebrow { display: inline-block; font-family: 'Cinzel', serif; font-size: 11px; letter-spacing: .32em; text-transform: uppercase; color: var(--gold); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 8px 18px; margin-bottom: 18px; }
h1.name { font-size: clamp(38px, 6vw, 64px); font-weight: 700; color: #fff4dc; text-shadow: 0 0 40px rgba(230, 184, 74, .35); line-height: 1.05; }
h1.name span { display: block; font-size: .42em; font-weight: 400; letter-spacing: .38em; color: var(--gold); margin-top: 10px; }
.creed { font-size: clamp(22px, 3vw, 30px); font-style: italic; color: #fff1cf; margin: 22px auto 10px; max-width: 700px; line-height: 1.35; }
.sub { color: var(--muted); max-width: 620px; margin: 0 auto; font-size: 18px; }
.words { display: flex; justify-content: center; gap: 22px; flex-wrap: wrap; margin: 26px 0 0; padding: 0; list-style: none; }
.words li { font-family: 'Cinzel', serif; font-size: 12px; letter-spacing: .3em; color: var(--gold); text-transform: uppercase; }
.words li::before { content: "✦"; margin-right: 14px; color: var(--gold-dim); }

/* doors */
section { padding: 44px 0; }
.sec-head { text-align: center; margin-bottom: 26px; }
.sec-head h2 { font-size: clamp(22px, 3vw, 30px); color: #fff4dc; }
.sec-head p { color: var(--muted); margin: 8px auto 0; max-width: 640px; font-size: 18px; }
.rule { width: 88px; height: 1px; margin: 14px auto 0; background: linear-gradient(90deg, transparent, var(--gold), transparent); }
.doors { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.door { position: relative; display: block; padding: 26px 22px 22px; background: var(--panel); border: 1px solid var(--line); border-radius: 6px; color: var(--ink); overflow: hidden; transition: transform .35s cubic-bezier(.2, .7, .2, 1), border-color .35s, box-shadow .35s; backdrop-filter: blur(6px); }
.door::before { content: ""; position: absolute; inset: 6px; border: 1px solid rgba(230, 184, 74, .12); border-radius: 3px; pointer-events: none; }
.door:hover { transform: translateY(-5px); border-color: var(--gold); box-shadow: 0 20px 50px rgba(0, 0, 0, .6), 0 0 30px rgba(230, 184, 74, .18); }
.door-glyph { width: 46px; height: 46px; display: grid; place-items: center; border: 1px solid var(--gold-dim); border-radius: 50%; margin-bottom: 16px; color: var(--gold-2); }
.door-glyph svg { width: 22px; height: 22px; fill: currentColor; }
.door h3 { font-size: 16px; color: #fff4dc; letter-spacing: .12em; }
.door .handle { display: block; font-size: 15px; color: var(--gold); margin: 4px 0 10px; font-style: italic; }
.door p { margin: 0; color: var(--muted); font-size: 16px; line-height: 1.5; }
.door .go { position: absolute; right: 18px; top: 22px; color: var(--gold-dim); font-size: 18px; transition: color .3s, transform .3s; }
.door:hover .go { color: var(--gold-2); transform: translateX(3px); }
.door .stat { display: inline-block; margin-top: 12px; font-family: 'Cinzel', serif; font-size: 11px; letter-spacing: .18em; color: var(--gold); text-transform: uppercase; }
@media (max-width: 900px) { .doors { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .doors { grid-template-columns: 1fr; } }

/* quote band */
.band { position: relative; text-align: center; padding: 70px 22px; margin: 30px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: url('/monad/banner.jpg') center 30% / cover no-repeat; }
.band::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(5, 4, 3, .82), rgba(5, 4, 3, .7)); }
.band > * { position: relative; }
.band blockquote { margin: 0 auto; max-width: 820px; font-size: clamp(24px, 3.6vw, 40px); font-style: italic; color: #fff4dc; line-height: 1.25; }
.band cite { display: block; margin-top: 16px; font-family: 'Cinzel', serif; font-style: normal; font-size: 12px; letter-spacing: .3em; color: var(--gold); text-transform: uppercase; }

/* latest */
.videos { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 14px; max-width: 900px; margin: 0 auto; }
.video { display: block; background: var(--panel); border: 1px solid var(--line); border-radius: 6px; overflow: hidden; color: var(--ink); transition: transform .35s, border-color .35s; }
.video:hover { transform: translateY(-4px); border-color: var(--gold); }
.video .thumb { position: relative; aspect-ratio: 16 / 9; background: #000; }
.video .thumb img { width: 100%; height: 100%; object-fit: cover; display: block; opacity: .9; }
.video .thumb::after { content: "▶"; position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: rgba(5, 4, 3, .75); border: 1px solid var(--gold); color: var(--gold-2); font-size: 14px; padding-left: 3px; }
.video .meta { padding: 14px 16px 16px; }
.video .meta strong { display: block; font-size: 17px; line-height: 1.3; color: #fff4dc; font-weight: 500; }
.video .meta small { display: block; margin-top: 6px; color: var(--muted); font-family: 'Cinzel', serif; font-size: 10.5px; letter-spacing: .16em; text-transform: uppercase; }
@media (max-width: 800px) { .videos { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .videos { grid-template-columns: 1fr; } }

.featured-embed { position: relative; aspect-ratio: 16 / 9; max-width: 900px; margin: 0 auto; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; background: #000; box-shadow: 0 30px 80px rgba(0, 0, 0, .6), 0 0 40px rgba(230, 184, 74, .12); }
.featured-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.feed-note { text-align: center; color: var(--muted); font-size: 15px; margin: 14px 0 26px; font-style: italic; }
.tiktok-wrap { margin-top: 40px; }
.tiktok-frame { max-width: 780px; margin: 0 auto; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; background: #000; }
.tiktok-frame iframe { display: block; width: 100%; height: 760px; border: 0; }
@media (max-width: 640px) { .tiktok-frame iframe { height: 640px; } }
/* map + gospels */
.map { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.node { padding: 24px 22px; background: var(--panel); border: 1px solid var(--line); border-radius: 6px; }
.node .glyph { font-size: 26px; color: var(--gold-2); line-height: 1; margin-bottom: 12px; text-shadow: 0 0 18px rgba(230, 184, 74, .5); }
.node h3 { font-size: 15px; color: #fff4dc; margin-bottom: 8px; }
.node p { margin: 0; color: var(--muted); font-size: 16.5px; line-height: 1.5; }
@media (max-width: 800px) { .map { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .map { grid-template-columns: 1fr; } }
.gospels { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.gospel { display: flex; gap: 16px; padding: 20px 22px; background: var(--panel); border: 1px solid var(--line); border-radius: 6px; }
.gospel .num { font-family: 'Cinzel', serif; color: var(--gold); font-size: 13px; letter-spacing: .1em; min-width: 30px; padding-top: 4px; }
.gospel h3 { font-size: 15px; color: #fff4dc; margin-bottom: 6px; }
.gospel p { margin: 0; color: var(--muted); font-size: 16px; line-height: 1.5; }
.gospel em { color: #fff1cf; }
@media (max-width: 700px) { .gospels { grid-template-columns: 1fr; } }

/* footer */
footer { text-align: center; padding: 40px 22px 60px; color: var(--muted); font-size: 15px; }
footer .cinzel { font-size: 11px; color: var(--gold); display: block; margin-bottom: 10px; }
.copy { display: inline-block; margin-top: 14px; padding: 8px 16px; border: 1px solid var(--line); border-radius: 999px; color: var(--gold-2); font-family: 'Cinzel', serif; font-size: 11px; letter-spacing: .2em; text-transform: uppercase; cursor: pointer; background: transparent; }
.copy:hover { border-color: var(--gold); }
/* music */
.player { position: fixed; left: 50%; bottom: 18px; transform: translate(-50%, 0); z-index: 5; display: flex; align-items: center; gap: 12px; padding: 8px 14px 8px 8px; background: rgba(8, 6, 3, .86); border: 1px solid var(--line); border-radius: 999px; backdrop-filter: blur(10px); box-shadow: 0 16px 40px rgba(0, 0, 0, .6), 0 0 24px rgba(230, 184, 74, .12); max-width: calc(100vw - 28px); }
.player-btn { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--gold); background: radial-gradient(circle at 40% 35%, #f7d98a, #b98a2a); color: #1a1200; display: grid; place-items: center; cursor: pointer; font-size: 14px; padding: 0; flex: 0 0 auto; }
.player-btn:hover { filter: brightness(1.08); }
.player-text { display: flex; flex-direction: column; min-width: 0; }
.player-text small { font-family: 'Cinzel', serif; font-size: 9.5px; letter-spacing: .26em; text-transform: uppercase; color: var(--gold); }
.player-text strong { font-weight: 500; font-size: 16px; color: #fff4dc; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 240px; }
.bars { display: flex; align-items: flex-end; gap: 3px; height: 18px; margin: 0 4px 0 2px; flex: 0 0 auto; }
.bars i { width: 3px; height: 30%; background: var(--gold-2); border-radius: 2px; opacity: .55; }
.player.on .bars i { animation: eq 1.1s ease-in-out infinite; opacity: 1; }
.player.on .bars i:nth-child(2) { animation-delay: -.3s; } .player.on .bars i:nth-child(3) { animation-delay: -.6s; } .player.on .bars i:nth-child(4) { animation-delay: -.9s; }
@keyframes eq { 0%, 100% { height: 25%; } 50% { height: 100%; } }
.player-next { border: 0; background: transparent; color: var(--gold); cursor: pointer; font-size: 16px; padding: 4px 6px; flex: 0 0 auto; }
.player-next:hover { color: var(--gold-2); }
.enter { position: fixed; inset: 0; z-index: 9; display: grid; place-items: center; background: rgba(5, 4, 3, .92); backdrop-filter: blur(6px); cursor: pointer; transition: opacity .9s ease; }
.enter.gone { opacity: 0; pointer-events: none; }
.enter div { text-align: center; padding: 30px; }
.enter .ring { width: 120px; height: 120px; border-radius: 50%; border: 1px solid var(--gold); margin: 0 auto 22px; display: grid; place-items: center; color: var(--gold-2); font-size: 30px; box-shadow: 0 0 50px rgba(230, 184, 74, .35); animation: pulse 4s ease-in-out infinite; }
.enter h2 { font-size: clamp(18px, 3vw, 26px); color: #fff4dc; margin-bottom: 8px; }
.enter p { color: var(--muted); margin: 0; font-style: italic; font-size: 18px; }
footer { padding-bottom: 110px; }
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .8s ease, transform .8s ease; }
.reveal.in { opacity: 1; transform: none; }


/* ---------- top bar, library, essays (public section, Sept 2026) ---------- */
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 0 0; }
.topbar-home { display: inline-flex; align-items: center; gap: 10px; font-family: 'Cinzel', serif; font-size: 13px; letter-spacing: .18em; text-transform: uppercase; color: #fff4dc; }
.topbar-home img { width: 34px; height: 34px; border-radius: 50%; box-shadow: 0 0 0 1px rgba(247, 217, 138, .5); }
.topbar-links { display: flex; gap: 18px; flex-wrap: wrap; }
.topbar-links a { font-family: 'Cinzel', serif; font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--gold); }
.topbar-links a:hover { color: var(--gold-2); }
@media (max-width: 640px) { .topbar { flex-direction: column; align-items: flex-start; } .topbar-links { gap: 12px; } }
.library { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.tome { display: flex; gap: 16px; padding: 20px 22px; background: var(--panel); border: 1px solid var(--line); border-radius: 6px; color: var(--ink); transition: transform .3s, border-color .3s; }
.tome:hover { transform: translateY(-3px); border-color: var(--gold); }
.tome-num { font-family: 'Cinzel', serif; color: var(--gold); font-size: 13px; letter-spacing: .1em; min-width: 32px; padding-top: 4px; }
.tome h3 { font-size: 15px; color: #fff4dc; margin-bottom: 6px; }
.tome p { margin: 0 0 8px; color: var(--muted); font-size: 15.5px; line-height: 1.5; }
.tome-go { font-family: 'Cinzel', serif; font-size: 10.5px; letter-spacing: .2em; text-transform: uppercase; color: var(--gold); }
@media (max-width: 700px) { .library { grid-template-columns: 1fr; } }
.essay { max-width: 760px; margin: 0 auto; padding-top: 30px; }
.essay-head { text-align: center; margin-bottom: 30px; }
.essay-head h1 { font-size: clamp(30px, 4.6vw, 48px); color: #fff4dc; line-height: 1.1; margin: 10px 0 14px; text-shadow: 0 0 40px rgba(230, 184, 74, .25); }
.essay-lede { font-size: 20px; font-style: italic; color: #fff1cf; max-width: 640px; margin: 0 auto; line-height: 1.45; }
.essay-body { font-size: 19.5px; line-height: 1.7; }
.essay-body h2 { font-size: 24px; color: #fff4dc; margin: 42px 0 12px; }
.essay-body h3 { font-size: 19px; color: #fff4dc; margin: 30px 0 10px; }
.essay-body p { margin: 0 0 18px; }
.essay-body ul, .essay-body ol { padding-left: 22px; margin: 0 0 18px; }
.essay-body li { margin: 6px 0; }
.essay-body a { color: var(--gold-2); border-bottom: 1px solid var(--gold-dim); }
.essay-body a:hover { border-bottom-color: var(--gold-2); }
.essay-body strong { color: #fff4dc; }
.essay-faq { margin-top: 44px; }
.essay-faq h2 { font-size: 20px; color: #fff4dc; margin-bottom: 14px; }
.qa { border: 1px solid var(--line); border-radius: 6px; background: var(--panel); padding: 14px 18px; margin-bottom: 10px; }
.qa summary { cursor: pointer; font-weight: 600; color: #fff4dc; font-size: 18px; }
.qa p { margin: 10px 0 0; color: var(--muted); font-size: 17px; line-height: 1.55; }
.essay-cta { display: flex; gap: 18px; align-items: center; margin-top: 40px; padding: 22px; border: 1px solid var(--line); border-radius: 6px; background: var(--panel); }
.essay-cta img { width: 72px; height: 72px; border-radius: 50%; flex: 0 0 auto; box-shadow: 0 0 0 1px rgba(247, 217, 138, .5), 0 0 30px rgba(230, 184, 74, .3); }
.essay-cta strong { display: block; font-family: 'Cinzel', serif; font-size: 14px; letter-spacing: .08em; color: #fff4dc; margin-bottom: 4px; }
.essay-cta span { color: var(--muted); font-size: 16.5px; }
.essay-cta-links { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 10px; }
.essay-cta-links a { font-family: 'Cinzel', serif; font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--gold); border: 1px solid var(--line); padding: 6px 12px; border-radius: 999px; }
.essay-cta-links a:hover { border-color: var(--gold); color: var(--gold-2); }
@media (max-width: 560px) { .essay-cta { flex-direction: column; align-items: flex-start; } }
.more { padding: 50px 0 20px; }
.more-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.more-card { display: block; padding: 20px; background: var(--panel); border: 1px solid var(--line); border-radius: 6px; color: var(--ink); transition: transform .3s, border-color .3s; }
.more-card:hover { transform: translateY(-3px); border-color: var(--gold); }
.more-card h3 { font-size: 15px; color: #fff4dc; margin-bottom: 6px; }
.more-card p { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.5; }
@media (max-width: 760px) { .more-grid { grid-template-columns: 1fr; } }
body.article-page footer { padding-bottom: 60px; }
