:root {
  --bg: #0f0f0f;
  --bg-soft: #0c0c0c;
  --panel: rgba(20, 20, 20, .82);
  --panel-solid: #171717;
  --text: #f8f5ed;
  --muted: #a49f95;
  --gold: #c8a24a;
  --gold-light: #f0d78a;
  --violet: #3a2f5a;
  --green: #1f4d3a;
  --danger: #e66868;
  --line: rgba(255,255,255,.1);
  --shadow: 0 24px 80px rgba(0,0,0,.32);
  --radius: 16px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: "DM Sans", system-ui, sans-serif; line-height: 1.6; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
body::before { content: ""; position: fixed; inset: 0; pointer-events: none; opacity: .035; z-index: 100; background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.8'/%3E%3C/svg%3E"); }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }
h1,h2,h3,h4 { margin: 0; font-family: "Plus Jakarta Sans", system-ui, sans-serif; line-height: 1.12; letter-spacing: -.03em; }
p { margin: 0; }
::selection { color: var(--text); background: rgba(200,162,74,.3); }
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: #141414; }
::-webkit-scrollbar-thumb { background: #493f2b; border-radius: 99px; }
::-webkit-scrollbar-thumb:hover { background: rgba(200,162,74,.6); }
.container { width: min(1180px, calc(100% - 40px)); margin-inline: auto; }
.container.narrow { width: min(780px, calc(100% - 40px)); }
.skip-link { position: fixed; top: 8px; left: 8px; z-index: 999; transform: translateY(-150%); background: var(--gold); color: #14110a; padding: 10px 14px; border-radius: 8px; }
.skip-link:focus { transform: none; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.muted { color: var(--muted); }

.site-header { position: fixed; inset: 0 0 auto; z-index: 50; padding: 14px 18px 0; }
.nav-shell { width: 100%; max-width: 1200px; min-height: 64px; margin: auto; padding: 10px 16px 10px 24px; display: flex; align-items: center; justify-content: space-between; gap: 18px; border: 1px solid transparent; border-radius: 16px; transition: .3s ease; }
.site-header.scrolled .nav-shell { background: rgba(12,12,14,.86); border-color: var(--line); box-shadow: 0 16px 48px rgba(0,0,0,.3); backdrop-filter: blur(18px); }
.brand { display: inline-flex; align-items: center; gap: 11px; font-family: "Plus Jakarta Sans", sans-serif; font-weight: 800; background: linear-gradient(135deg, var(--gold-light), var(--gold)); background-clip: text; color: transparent; }
.brand-mark { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 9px; color: var(--gold); background: rgba(200,162,74,.12); border: 1px solid rgba(200,162,74,.3); box-shadow: inset 0 0 20px rgba(200,162,74,.08); }
.brand-logo { width: auto; max-width: 150px; height: 42px; object-fit: contain; }
.disc-icon { position: relative; display: block; width: 19px; height: 19px; border: 1.5px solid currentColor; border-radius: 50%; transition: transform .5s ease; }
.disc-icon::before, .disc-icon::after { content: ""; position: absolute; inset: 4px; border: 1px solid currentColor; border-radius: 50%; }
.disc-icon::after { inset: 7px; background: currentColor; }
.brand:hover .disc-icon { transform: rotate(180deg); }
.site-nav { display: flex; align-items: center; gap: 2px; }
.site-nav a { padding: 8px 9px; border-radius: 9px; color: var(--muted); font-size: 13px; font-weight: 600; transition: .2s; }
.site-nav a:hover, .site-nav a.active { color: var(--gold-light); background: rgba(211,173,85,.08); }
.nav-actions { display: flex; align-items: center; gap: 8px; }
.menu-toggle { display: none; width: 40px; height: 40px; align-items: center; justify-content: center; flex-direction: column; gap: 4px; border: 1px solid var(--line); border-radius: 9px; color: var(--text); background: rgba(255,255,255,.05); padding: 0; }
.menu-toggle span { width: 17px; height: 1.5px; background: currentColor; transition: .2s; }

.hero { position: relative; min-height: 100vh; display: grid; place-items: center; overflow: hidden; background: radial-gradient(ellipse 80% 60% at 50% -10%, rgba(200,162,74,.14), transparent 60%), radial-gradient(ellipse 50% 50% at 85% 20%, rgba(128,102,55,.08), transparent 55%), radial-gradient(ellipse 50% 50% at 10% 80%, rgba(51,51,51,.4), transparent 60%), linear-gradient(180deg,#0b0b0b 0%,#0f0f0f 60%,#0a0a0a 100%); }
.hero-content { position: relative; z-index: 2; text-align: center; padding-block: 150px 110px; }
.hero h1 { margin-top: 20px; font-size: clamp(48px, 8vw, 96px); background: linear-gradient(135deg, #f0d78a 0%, #c8a24a 45%, #a37f34 100%); background-clip: text; -webkit-background-clip: text; color: transparent; }
.roles { margin: 24px auto 0; color: #dedbd2; font-size: clamp(15px, 2vw, 20px); letter-spacing: .04em; }
.lead { max-width: 680px; margin: 22px auto 0; color: var(--muted); font-size: clamp(16px, 2vw, 19px); }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 12px; margin-top: 34px; }
.hero .eyebrow, .page-hero .eyebrow { align-items: center; gap: 8px; padding: 6px 16px; color: var(--gold); background: rgba(200,162,74,.1); border: 1px solid rgba(200,162,74,.3); border-radius: 999px; letter-spacing: .22em; }
.button-icon { font-size: 16px; font-weight: 400; }
.hero-rings { position: absolute; inset: 0; display: grid; place-items: center; pointer-events: none; }
.hero-rings i { position: absolute; width: min(52vw, 560px); aspect-ratio: 1; border: 1px solid rgba(211,173,85,.14); border-radius: 50%; animation: spin 28s linear infinite; }
.hero-rings i:nth-child(2) { width: min(72vw, 760px); border-color: rgba(211,173,85,.07); animation-direction: reverse; }
.hero-rings i:nth-child(3) { width: min(32vw, 340px); border-style: dashed; animation-duration: 18s; }
.scroll-cue { position: absolute; bottom: 26px; left: 50%; z-index: 3; transform: translateX(-50%); color: rgba(200,162,74,.65); font-size: 30px; animation: bounce 1.6s ease-in-out infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes bounce { 0%,100% { transform: translate(-50%,0); } 50% { transform: translate(-50%,7px); } }

.eyebrow { display: inline-flex; color: var(--gold); font-size: 12px; font-weight: 700; letter-spacing: .19em; text-transform: uppercase; }
.btn { min-height: 40px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 8px 16px; border: 1px solid transparent; border-radius: 8px; font-weight: 600; font-size: 14px; transition: transform .2s, background .2s, border .2s, box-shadow .2s; }
.btn:hover { transform: translateY(-1px); }
.btn.primary { color: #0f0f0f; background: var(--gold); box-shadow: 0 8px 30px -6px rgba(200,162,74,.35); }
.btn.primary:hover { background: #d4b25f; box-shadow: 0 10px 34px -5px rgba(200,162,74,.42); }
.btn.outline { color: var(--text); border-color: var(--line); background: rgba(255,255,255,.035); }
.btn.outline:hover, .btn.ghost:hover { background: rgba(255,255,255,.08); }
.btn.ghost { color: var(--muted); background: transparent; }
.btn.danger { color: #ffb8b8; border-color: rgba(230,104,104,.25); background: rgba(230,104,104,.11); }
.btn.small { min-height: 34px; padding: 6px 10px; font-size: 12px; }
.btn.full { width: 100%; }
.text-link { color: var(--gold-light); font-weight: 700; font-size: 14px; }

.section { padding: 96px 0; background: var(--bg); }
.section.alternate, .stats-strip { background: #0d0d10; border-block: 1px solid var(--line); }
.section-heading { margin-bottom: 42px; max-width: 680px; }
.section-heading.row { max-width: none; display: flex; justify-content: space-between; align-items: end; gap: 24px; }
.section-heading h2 { margin-top: 10px; font-size: clamp(32px, 5vw, 48px); }
.section-heading h2 em { color: var(--gold); font-style: normal; }
.section-heading p { margin-top: 13px; color: var(--muted); }
.section-heading.spaced { margin-top: 76px; }
.card-grid { display: grid; gap: 22px; }
.card-grid.three { grid-template-columns: repeat(3, minmax(0,1fr)); }
.card-grid.four { grid-template-columns: repeat(4, minmax(0,1fr)); }

.stats-strip { padding: 36px 0; }
.stat-card { padding: 24px; text-align: center; border: 1px solid rgba(200,162,74,.09); background: rgba(23,23,23,.5); border-radius: 12px; transition: border-color .3s, transform .3s; }
.stat-card:hover { border-color: rgba(200,162,74,.4); transform: translateY(-2px); }
.stat-icon { width: 48px; height: 48px; display: grid; place-items: center; margin: 0 auto 12px; color: var(--gold); background: rgba(200,162,74,.1); border: 1px solid rgba(200,162,74,.2); border-radius: 50%; font-style: normal; font-size: 19px; transition: transform .3s; }
.stat-card:hover .stat-icon { transform: scale(1.1); }
.stat-card strong { display: block; color: var(--gold-light); font: 800 34px/1 "Plus Jakarta Sans", sans-serif; }
.stat-card span { display: block; margin-top: 8px; color: var(--muted); font-size: 14px; }
.feature-card { position: relative; z-index: 0; min-height: 340px; display: flex; flex-direction: column; justify-content: end; overflow: hidden; padding: 28px; border: 1px solid rgba(200,162,74,.12); border-radius: 16px; box-shadow: var(--shadow); transition: .5s; }
.feature-card::before { content: ""; position: absolute; inset: 0; z-index: -1; opacity: .65; }
.feature-card.tone-gold::before { background: radial-gradient(circle at 90% 10%, rgba(211,173,85,.34), transparent 48%), #111113; }
.feature-card.tone-violet::before { background: radial-gradient(circle at 90% 10%, rgba(101,86,143,.42), transparent 48%), #111113; }
.feature-card.tone-green::before { background: radial-gradient(circle at 90% 10%, rgba(52,107,85,.42), transparent 48%), #111113; }
.feature-card:hover { transform: translateY(-7px); border-color: rgba(211,173,85,.34); }
.feature-icon { position: absolute; top: 24px; right: 24px; width: 56px; height: 56px; display: grid; place-items: center; color: var(--gold); background: rgba(200,162,74,.15); border: 1px solid rgba(200,162,74,.3); border-radius: 12px; font-style: normal; font-size: 22px; transition: .5s; }
.feature-card:hover .feature-icon { transform: scale(1.1) rotate(6deg); }
.feature-card > span { color: var(--gold); font-size: 12px; text-transform: uppercase; letter-spacing: .13em; }
.feature-card h3 { margin-top: 10px; font-size: 25px; }
.feature-card p { margin: 12px 0 22px; color: var(--muted); }
.feature-card b { color: var(--gold-light); }

.post-card { overflow: hidden; background: #171717; border: 1px solid rgba(200,162,74,.12); border-radius: 12px; transition: .3s; }
.post-card:hover { transform: translateY(-5px); border-color: rgba(211,173,85,.3); box-shadow: var(--shadow); }
.post-visual { height: 190px; display: flex; align-items: end; padding: 18px; background: radial-gradient(circle at 80% 15%, rgba(211,173,85,.3), transparent 35%), radial-gradient(circle at 20% 90%, rgba(101,86,143,.3), transparent 42%), #15151a center/cover; }
.post-visual span { padding: 5px 9px; color: var(--gold-light); background: rgba(9,9,11,.7); border: 1px solid rgba(211,173,85,.22); border-radius: 99px; font-size: 11px; font-weight: 700; }
.post-body { padding: 22px; }
.post-meta { display: flex; flex-wrap: wrap; gap: 14px; color: var(--muted); font-size: 12px; }
.post-body h3 { margin-top: 12px; font-size: 20px; }
.post-body p { min-height: 72px; margin: 12px 0 18px; color: var(--muted); font-size: 14px; }
.post-card.featured { display: grid; grid-template-columns: 1fr 1fr; margin-bottom: 30px; }
.post-card.featured .post-visual { height: 100%; min-height: 320px; }
.post-card.featured .post-body { display: flex; flex-direction: column; justify-content: center; padding: 32px; }
.post-card.featured .post-body h3 { font-size: 28px; }
.post-card.featured .post-body p { min-height: auto; font-size: 15px; }
.blog-grid { margin-top: 24px; }

.page-hero { position: relative; min-height: 440px; display: grid; align-items: end; overflow: hidden; padding: 144px 0 68px; border-bottom: 1px solid var(--line); }
.page-hero.cinematic { background: radial-gradient(ellipse 80% 60% at 50% -10%, rgba(200,162,74,.14), transparent 60%), radial-gradient(ellipse 50% 50% at 85% 20%, rgba(128,102,55,.08), transparent 55%), linear-gradient(180deg,#0b0b0b,#0f0f0f 65%,#0a0a0a); }
.page-hero.dystopia { background: radial-gradient(ellipse 70% 60% at 50% 0%, rgba(58,47,90,.5), transparent 60%), radial-gradient(circle at 70% 80%, rgba(128,102,55,.08), transparent 40%), linear-gradient(180deg,#08070c,#0d0b12 50%,#0a0a0a); }
.page-hero.academy { background: radial-gradient(ellipse 60% 50% at 50% -5%, rgba(31,77,58,.35), transparent 55%), linear-gradient(180deg,#0b0b0b,#0f0f0f); }
.hero-top-line { position: absolute; inset: 0 0 auto; height: 1px; background: linear-gradient(90deg,transparent,rgba(200,162,74,.4),transparent); }
.page-hero h1 { max-width: 850px; margin-top: 16px; font-size: clamp(38px, 6vw, 64px); color: var(--text); }
.page-hero h1 em { color: transparent; font-style: normal; background: linear-gradient(135deg,#f0d78a,#c8a24a 50%,#a37f34); background-clip: text; -webkit-background-clip: text; }
.page-hero p { max-width: 720px; margin-top: 20px; color: var(--muted); font-size: 18px; }
.page-hero.error-page { min-height: 70vh; align-items: center; text-align: center; }
.page-hero.error-page h1, .page-hero.error-page p { margin-inline: auto; }
.page-hero.error-page .btn { margin-top: 28px; }
.intro-panel { max-width: 820px; margin: 0 auto 58px; padding: 30px; color: #ddd9cf; font-size: 19px; text-align: center; background: linear-gradient(135deg, rgba(211,173,85,.09), rgba(101,86,143,.08)); border: 1px solid var(--line); border-radius: var(--radius); }
.content-card { min-height: 260px; padding: 26px; background: var(--panel-solid); border: 1px solid var(--line); border-radius: 17px; }
.content-card h3 { margin-top: 13px; font-size: 22px; }
.content-card p { margin-top: 12px; color: var(--muted); }
.content-card .muted { color: var(--gold-light); font-size: 13px; }
.content-card .text-link { display: inline-block; margin-top: 18px; }
.event-list { display: grid; gap: 12px; }
.event-list article { display: grid; grid-template-columns: 90px 1fr auto; align-items: center; gap: 22px; padding: 20px 24px; background: var(--panel-solid); border: 1px solid var(--line); border-radius: 14px; }
.event-list article > strong, .event-list article > span { color: var(--gold-light); }
.event-list p { color: var(--muted); }
.timeline { max-width: 850px; margin-inline: auto; }
.timeline-item { position: relative; display: grid; grid-template-columns: 100px 1fr; gap: 28px; padding: 0 0 40px; }
.timeline-item::before { content: ""; position: absolute; left: 84px; top: 4px; bottom: 0; width: 1px; background: linear-gradient(var(--gold), transparent); }
.timeline-item > strong { color: var(--gold); font: 800 23px/1 "Plus Jakarta Sans", sans-serif; }
.timeline-item h3 { font-size: 21px; }
.timeline-item p { margin-top: 8px; color: var(--muted); }
.book-showcase { display: grid; grid-template-columns: minmax(240px, .8fr) 1.5fr; align-items: center; gap: 70px; max-width: 940px; margin: 0 auto 80px; }
.book-cover { aspect-ratio: 2/3; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 35px; text-align: center; background: radial-gradient(circle at 50% 28%, rgba(211,173,85,.25), transparent 30%), linear-gradient(145deg, #2b2341, #0a0810 70%); border: 1px solid rgba(211,173,85,.25); border-radius: 9px 18px 18px 9px; box-shadow: -10px 15px 60px rgba(0,0,0,.5), inset 8px 0 14px rgba(0,0,0,.4); }
.book-cover strong { color: var(--gold-light); font: 800 38px/1.1 "Plus Jakarta Sans", sans-serif; }
.book-cover small, .book-cover span { margin-top: 18px; text-transform: uppercase; letter-spacing: .17em; color: var(--muted); }
.book-showcase h2 { margin-top: 10px; font-size: 46px; }
.book-showcase p:not(.lead) { margin-top: 20px; color: var(--muted); }
.book-showcase .btn { margin-top: 26px; }
.tag-row { display: flex; gap: 10px; margin-top: 22px; }
.tag-row span { padding: 7px 11px; border: 1px solid var(--line); border-radius: 99px; color: var(--gold-light); font-size: 13px; }
.quote-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 18px; margin-bottom: 80px; }
.quote-grid blockquote { margin: 0; padding: 26px; color: #ded9cc; font: 500 19px/1.6 "Plus Jakarta Sans", sans-serif; border: 1px solid var(--line); border-radius: 16px; background: rgba(101,86,143,.09); }
.book-grid { display: grid; gap: 34px; }
.book-card { display: grid; grid-template-columns: minmax(220px,320px) 1fr; gap: 52px; align-items: center; padding: 32px; background: var(--panel-solid); border: 1px solid var(--line); border-radius: 20px; }
.book-card-cover img, .book-detail-cover > img { width: 100%; aspect-ratio: 2/3; object-fit: cover; border-radius: 9px 17px 17px 9px; box-shadow: -10px 16px 50px rgba(0,0,0,.45); }
.book-card h2, .book-detail h2 { margin: 10px 0 14px; font-size: clamp(32px,5vw,48px); }
.book-card p, .book-detail .lead { color: var(--muted); font-size: 18px; }
.book-card .btn, .book-detail .btn { margin-top: 24px; }
.book-detail { display: grid; grid-template-columns: minmax(250px,360px) 1fr; gap: 70px; align-items: center; max-width: 980px; margin: 0 auto 70px; }
.book-copy { max-width: 820px; margin: 28px auto; padding: 34px; background: var(--panel-solid); border: 1px solid var(--line); border-radius: 18px; }
.book-copy h2 { margin: 10px 0 20px; }
.rich-copy p + p, .prose li + li { margin-top: 8px; }
.prose h2, .prose h3 { margin: 30px 0 12px; color: var(--text); }
.prose ul, .prose ol { padding-left: 24px; }
.prose blockquote { margin: 24px 0; padding: 12px 20px; border-left: 3px solid var(--gold); color: #d8d3c8; }
.prose a, .rich-copy a { color: var(--gold-light); text-decoration: underline; }

.filter-bar { display: flex; gap: 10px; align-items: center; margin-bottom: 36px; }
.filter-bar label { flex: 1; }
.filter-links { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 30px; }
.filter-links a { padding: 8px 14px; border: 1px solid var(--line); border-radius: 99px; color: var(--muted); font-size: 13px; }
.filter-links a.active, .filter-links a:hover { color: #171208; background: var(--gold); border-color: var(--gold); }
input, textarea, select { width: 100%; color: var(--text); background: rgba(255,255,255,.045); border: 1px solid var(--line); border-radius: 10px; padding: 11px 13px; outline: none; transition: .2s; }
input { min-height: 46px; }
select { min-height: 46px; }
textarea { resize: vertical; }
input:focus, textarea:focus, select:focus { border-color: rgba(211,173,85,.65); box-shadow: 0 0 0 3px rgba(211,173,85,.09); }
label { display: grid; gap: 7px; color: #d2cfc7; font-size: 13px; font-weight: 600; }
.form-panel { margin-top: 70px; padding: 32px; background: var(--panel-solid); border: 1px solid var(--line); border-radius: var(--radius); }
.form-panel .section-heading { margin-bottom: 28px; }
.form-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 18px; }
.form-grid.one { grid-template-columns: 1fr; }
.form-grid .full { grid-column: 1/-1; }
.honeypot { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.contact-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 50px; align-items: start; }
.contact-grid .form-panel { margin-top: 0; }
.contact-info h2 { margin: 12px 0 18px; font-size: 42px; }
.contact-info > p { color: var(--muted); }
.contact-info > a, .contact-info > div { display: grid; margin-top: 18px; padding: 18px; border: 1px solid var(--line); border-radius: 12px; background: rgba(255,255,255,.025); }
.contact-info small { color: var(--gold); }
.review-card { padding: 24px; background: var(--panel-solid); border: 1px solid var(--line); border-radius: 16px; }
.review-card p { margin: 15px 0 20px; color: #d7d3ca; }
.review-card strong, .review-card small { display: block; }
.review-card small { color: var(--muted); }
.stars { color: var(--gold); letter-spacing: 2px; }
.stars span { color: #3b3936; }
.empty-state { padding: 60px 20px; text-align: center; color: var(--muted); border: 1px dashed var(--line); border-radius: 16px; }
.article { padding: 150px 0 90px; }
.article .eyebrow { margin-top: 35px; display: flex; }
.article h1 { margin: 14px 0 22px; font-size: clamp(38px, 6vw, 64px); }
.article-cover { height: min(52vw, 460px); margin: 36px 0; background: radial-gradient(circle at 80% 20%, rgba(211,173,85,.33), transparent 35%), radial-gradient(circle at 20% 80%, rgba(101,86,143,.38), transparent 35%), #15151a center/cover; border: 1px solid var(--line); border-radius: 20px; }
.article-lead { font-size: 21px; color: #dedacf; }
.prose { margin-top: 28px; color: #bbb7af; font-size: 18px; line-height: 1.82; }
.prose p + p { margin-top: 22px; }
.toast { position: fixed; top: 95px; right: 22px; z-index: 80; max-width: 380px; padding: 14px 18px; color: #e9e6df; background: #1b1b20; border: 1px solid var(--line); border-radius: 11px; box-shadow: var(--shadow); animation: toast-in .3s ease; }
.toast.success { border-color: rgba(81,185,132,.4); }
.toast.error { border-color: rgba(230,104,104,.45); }
@keyframes toast-in { from { opacity: 0; transform: translateY(-10px); } }
.reveal { opacity: 0; transform: translateY(20px); transition: .6s ease; }
.reveal.visible { opacity: 1; transform: none; }

.site-footer { padding: 68px 0 24px; background: #08080a; border-top: 1px solid var(--line); }
.site-footer { position: relative; }
.site-footer::before { content: ""; position: absolute; inset: 0 0 auto; height: 1px; background: linear-gradient(90deg,transparent,rgba(200,162,74,.3),transparent); }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(3,1fr); gap: 48px; }
.footer-grid h2 { margin-bottom: 16px; font-size: 14px; text-transform: uppercase; letter-spacing: .1em; }
.footer-grid p, .footer-grid a:not(.brand) { display: block; margin-top: 9px; color: var(--muted); font-size: 14px; }
.footer-grid a:hover { color: var(--gold-light); }
.footer-post { display: flex !important; align-items: flex-start; justify-content: space-between; gap: 8px; }
.footer-post span { display: -webkit-box; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.footer-post b { color: var(--gold); opacity: 0; transition: opacity .2s; }
.footer-post:hover b { opacity: 1; }
.social-row { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 20px; }
.social-row a { width: 34px; height: 34px; display: grid !important; place-items: center; margin: 0 !important; color: var(--muted); background: rgba(255,255,255,.04); border: 1px solid var(--line); border-radius: 8px; font-size: 10px !important; font-weight: 800; }
.social-row a:hover { color: var(--gold); border-color: rgba(200,162,74,.3); background: rgba(200,162,74,.1); }
.footer-bottom { margin-top: 48px; padding-top: 20px; display: flex; align-items: center; justify-content: center; border-top: 1px solid var(--line); color: #8f8a81; font-size: 13px; text-align: center; }
.footer-bottom code { color: #77746f; }
.footer-line { display: block; width: 100%; line-height: 1.9; text-align: center; }
.footer-line i { color: rgba(200,162,74,.5); font-style: normal; }
.footer-credit { position: relative; display: inline-block; font-family: "Plus Jakarta Sans",system-ui,sans-serif; font-weight: 800; letter-spacing: -.01em; background: linear-gradient(110deg,#936b20 0%,#c99d3a 28%,#f0cf6d 38%,#fff8d9 47%,#f2d478 56%,#bd8f2d 68%,#936b20 100%); background-size: 320% 100%; background-clip: text; -webkit-background-clip: text; color: #f0cf6d; -webkit-text-fill-color: transparent; text-shadow: 0 1px 8px rgba(200,162,74,.18); animation: footer-gold-sheen 2.8s linear infinite; }
.footer-credit::after { content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 1px; transform: scaleX(.25); transform-origin: center; background: linear-gradient(90deg,transparent,rgba(240,215,138,.72),transparent); opacity: .45; transition: transform .35s ease,opacity .35s ease; }
.footer-credit:hover::after, .footer-credit:focus-visible::after { transform: scaleX(1); opacity: .9; }
@keyframes footer-gold-sheen { 0% { background-position: 130% 50%; filter: brightness(1); } 48% { filter: brightness(1.32); } 100% { background-position: -130% 50%; filter: brightness(1.02); } }

/* Admin */
.admin-body { min-height: 100vh; background: radial-gradient(ellipse 80% 60% at 50% -10%, rgba(200,162,74,.11), transparent 60%), radial-gradient(ellipse 50% 50% at 90% 80%, rgba(58,47,90,.18), transparent 55%), linear-gradient(180deg,#0b0b0b,#0f0f0f 60%,#0a0a0a); background-attachment: fixed; }
.admin-shell { min-height: 100vh; display: grid; grid-template-columns: 260px 1fr; }
.admin-sidebar { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; padding: 24px 18px; background: rgba(12,12,12,.74); border-right: 1px solid rgba(200,162,74,.12); backdrop-filter: blur(18px); }
.admin-sidebar nav { display: grid; gap: 5px; margin: 36px 0 auto; }
.admin-sidebar nav a { padding: 10px 12px; color: var(--muted); border-radius: 9px; font-size: 14px; }
.admin-sidebar nav a { position: relative; }
.admin-sidebar nav a::before { content: ""; width: 5px; height: 5px; display: inline-block; margin: 0 10px 2px 0; background: rgba(200,162,74,.45); border-radius: 50%; }
.admin-sidebar nav a:hover { color: var(--gold-light); background: rgba(200,162,74,.08); }
.admin-main { min-width: 0; }
.admin-topbar { position: sticky; top: 0; z-index: 30; min-height: 72px; display: flex; align-items: center; justify-content: flex-end; padding: 12px 32px; background: rgba(0,0,0,.6); border-bottom: 1px solid rgba(255,255,255,.1); backdrop-filter: blur(18px); }
.admin-topbar > div { display: grid; text-align: right; }
.admin-topbar small { color: var(--muted); }
.admin-content { padding: 38px; }
.admin-heading { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 28px; }
.admin-heading h1 { margin-top: 8px; font-size: 38px; }
.admin-heading p { margin-top: 8px; color: var(--muted); }
.admin-card { padding: 24px; background: rgba(255,255,255,.04); border: 1px solid rgba(200,162,74,.12); border-radius: 12px; backdrop-filter: blur(12px); box-shadow: 0 10px 30px -3px rgba(0,0,0,.35); }
.admin-stat-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 16px; margin-bottom: 24px; }
.admin-stat-grid article { padding: 22px; background: linear-gradient(145deg, rgba(200,162,74,.09), rgba(255,255,255,.025)); border: 1px solid rgba(200,162,74,.14); border-radius: 12px; transition: transform .3s,border-color .3s; }
.admin-stat-grid article:hover { transform: translateY(-3px); border-color: rgba(200,162,74,.38); }
.admin-stat-grid span { color: var(--muted); font-size: 13px; }
.admin-stat-grid strong { display: block; margin-top: 12px; color: var(--gold-light); font: 800 36px/1 "Plus Jakarta Sans",sans-serif; }
.admin-split { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.card-title { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.card-title h2 { font-size: 19px; }
.card-title a { color: var(--gold); font-size: 13px; }
.compact-row { display: flex; justify-content: space-between; gap: 16px; padding: 16px 0; border-top: 1px solid var(--line); }
.compact-row p { margin-top: 4px; color: var(--muted); font-size: 13px; }
.status { display: inline-flex; align-items: center; width: max-content; margin: 2px; padding: 4px 8px; border-radius: 99px; color: var(--muted); background: rgba(255,255,255,.06); font-size: 11px; font-weight: 700; text-transform: capitalize; }
.status.new { color: #f3d37e; background: rgba(211,173,85,.13); }
.status.read { color: #88ddb1; background: rgba(75,181,126,.13); }
.status.archived { color: #a5a2a0; }
.table-wrap { overflow-x: auto; padding: 0; }
.table-wrap tr { transition: background .2s; }
.table-wrap tbody tr:hover { background: rgba(200,162,74,.035); }
table { width: 100%; border-collapse: collapse; }
th, td { padding: 16px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: middle; }
th { color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: .09em; }
td { font-size: 14px; }
td small { display: block; color: var(--muted); }
.actions, .actions form { display: flex; align-items: center; justify-content: flex-end; gap: 7px; }
.admin-form { max-width: 980px; }
.admin-form .form-actions { display: flex; gap: 10px; margin-top: 26px; padding-top: 22px; border-top: 1px solid var(--line); }
.upload-field { display: grid; gap: 8px; }
.upload-field > small { color: var(--muted); font-size: 12px; }
.upload-field input[type="file"] { padding: 9px; color: var(--muted); }
.upload-field input[type="file"]::file-selector-button { margin-right: 12px; padding: 8px 12px; color: #0f0f0f; background: var(--gold); border: 0; border-radius: 7px; font-weight: 700; cursor: pointer; }
.cover-preview { width: min(100%,420px); overflow: hidden; margin-top: 8px; padding: 10px; background: rgba(255,255,255,.03); border: 1px solid var(--line); border-radius: 11px; }
.cover-preview img { width: 100%; aspect-ratio: 16/9; object-fit: cover; border-radius: 7px; }
.cover-preview .check { margin-top: 10px; }
.cover-preview.book { width: min(100%,260px); }
.cover-preview.book img { aspect-ratio: 2/3; }
.logo-preview { width: min(100%,420px); display: grid; gap: 12px; margin-top: 8px; padding: 14px; background: rgba(255,255,255,.03); border: 1px solid var(--line); border-radius: 11px; }
.logo-preview img { max-width: 260px; max-height: 100px; object-fit: contain; }
.settings-note { margin: -10px 0 20px; color: var(--muted); font-size: 13px; }
.color-field { display: grid; grid-template-columns: 70px 1fr; align-items: center; gap: 12px; }
.color-field input { width: 70px; padding: 4px; }
.color-field code { color: var(--muted); }
.rich-editor { margin-top: 7px; overflow: hidden; border: 1px solid var(--line); border-radius: 11px; background: rgba(255,255,255,.035); }
.rich-editor:focus-within { border-color: rgba(211,173,85,.65); box-shadow: 0 0 0 3px rgba(211,173,85,.09); }
.rich-editor .ql-toolbar.ql-snow { border: 0; border-bottom: 1px solid var(--line); background: rgba(255,255,255,.035); }
.rich-editor .ql-container.ql-snow { min-height: 260px; border: 0; color: var(--text); font: 16px/1.7 "DM Sans",sans-serif; }
.rich-editor .ql-editor { min-height: 260px; }
.rich-editor .ql-editor.ql-blank::before { color: var(--muted); font-style: normal; }
.rich-editor .ql-snow .ql-stroke { stroke: #b9b3a7; }
.rich-editor .ql-snow .ql-fill { fill: #b9b3a7; }
.rich-editor .ql-snow .ql-picker { color: #b9b3a7; }
.rich-editor .ql-snow .ql-picker-options { background: #18181c; border-color: var(--line); }
.check { display: flex; grid-auto-flow: column; grid-template-columns: auto 1fr; justify-content: start; align-items: center; gap: 9px; }
.check input { width: 18px; min-height: 18px; }
.moderation-list { display: grid; gap: 14px; }
.moderation-card.unread { border-color: rgba(200,162,74,.4); box-shadow: 0 0 0 1px rgba(200,162,74,.08), 0 10px 30px rgba(0,0,0,.3); }
.moderation-head { display: flex; justify-content: space-between; gap: 20px; }
.moderation-head small { display: block; margin-top: 3px; color: var(--muted); }
.moderation-card h2 { margin-top: 18px; font-size: 17px; }
.moderation-card > p { margin: 15px 0; color: #c9c5bd; }
.moderation-card .actions { justify-content: flex-start; }
.admin-filters { margin-bottom: 20px; }
.settings-group { max-width: 980px; margin-bottom: 18px; }
.settings-group h2 { margin-bottom: 22px; font-size: 20px; }
.sticky-save { position: sticky; bottom: 20px; max-width: 980px; display: flex; justify-content: flex-end; padding: 14px; background: rgba(17,17,21,.9); border: 1px solid var(--line); border-radius: 12px; backdrop-filter: blur(12px); }
.notice { margin: 20px 38px 0; padding: 13px 16px; border: 1px solid var(--line); border-radius: 10px; }
.notice.success { color: #a8efc8; border-color: rgba(75,181,126,.35); background: rgba(75,181,126,.08); }
.notice.error { color: #ffb8b8; border-color: rgba(230,104,104,.35); background: rgba(230,104,104,.08); }
.auth-body { min-height: 100vh; display: grid; place-items: center; padding: 30px; background: radial-gradient(ellipse 80% 60% at 50% -10%,rgba(200,162,74,.14),transparent 60%), radial-gradient(ellipse 50% 50% at 85% 80%,rgba(58,47,90,.2),transparent 55%), linear-gradient(180deg,#0b0b0b,#0f0f0f 60%,#0a0a0a); }
.auth-card { position: relative; width: min(450px,100%); overflow: hidden; padding: 34px; background: rgba(255,255,255,.04); border: 1px solid rgba(200,162,74,.15); border-radius: 16px; box-shadow: var(--shadow); backdrop-filter: blur(16px); }
.auth-card::before { content: ""; position: absolute; inset: 0 0 auto; height: 1px; background: linear-gradient(90deg,transparent,rgba(200,162,74,.55),transparent); }
.auth-card > .brand { margin-bottom: 42px; }
.auth-card h1 { margin-top: 9px; font-size: 34px; }
.auth-card > p { margin: 10px 0 24px; color: var(--muted); }
.auth-card .notice { margin: 0 0 18px; }
.auth-card .text-link { display: inline-block; margin-top: 22px; }

@media (max-width: 1040px) {
  .site-nav { position: fixed; top: 88px; left: 18px; right: 18px; display: none; padding: 14px; background: rgba(14,14,17,.96); border: 1px solid var(--line); border-radius: 15px; box-shadow: var(--shadow); backdrop-filter: blur(18px); }
  .site-nav.open { display: grid; }
  .site-nav a { padding: 11px; }
  .menu-toggle { display: inline-flex; }
  .nav-actions { display: none; }
  .card-grid.three { grid-template-columns: repeat(2,1fr); }
  .footer-grid { grid-template-columns: repeat(2,1fr); }
  .admin-stat-grid { grid-template-columns: repeat(2,1fr); }
}

@media (max-width: 820px) {
  .admin-shell { grid-template-columns: 1fr; }
  .admin-sidebar { position: fixed; inset: 0 auto 0 0; z-index: 80; width: 270px; transform: translateX(-105%); transition: .25s; box-shadow: var(--shadow); }
  .admin-sidebar.open { transform: none; }
  .admin-topbar { justify-content: space-between; padding-inline: 20px; }
  .admin-topbar .menu-toggle { display: inline-flex; }
  .admin-content { padding: 24px 20px; }
  .notice { margin-inline: 20px; }
  .admin-split { grid-template-columns: 1fr; }
  .book-showcase { grid-template-columns: 1fr; gap: 42px; }
  .book-card, .book-detail { grid-template-columns: 1fr; gap: 36px; }
  .book-card-cover, .book-detail-cover { width: min(320px,100%); margin-inline: auto; }
  .book-cover { width: min(320px,100%); justify-self: center; }
  .contact-grid { grid-template-columns: 1fr; }
  .event-list article { grid-template-columns: 70px 1fr; }
  .event-list article > span { grid-column: 2; }
}

@media (max-width: 620px) {
  .container { width: min(100% - 28px,1180px); }
  .section { padding: 72px 0; }
  .hero-content { padding-block: 135px 85px; }
  .hero-actions { align-items: stretch; flex-direction: column; }
  .hero-actions .btn { width: 100%; }
  .card-grid.three, .card-grid.four, .quote-grid, .form-grid { grid-template-columns: 1fr; }
  .post-card.featured { grid-template-columns: 1fr; }
  .post-card.featured .post-visual { min-height: 220px; }
  .form-grid .full { grid-column: auto; }
  .section-heading.row, .admin-heading { align-items: flex-start; flex-direction: column; }
  .footer-grid { grid-template-columns: 1fr; gap: 30px; }
  .footer-line { line-height: 2.1; }
  .filter-bar { align-items: stretch; flex-direction: column; }
  .filter-bar .btn { width: 100%; }
  .form-panel { padding: 22px; }
  .timeline-item { grid-template-columns: 70px 1fr; gap: 18px; }
  .timeline-item::before { left: 60px; }
  .admin-stat-grid { grid-template-columns: 1fr 1fr; }
  .admin-stat-grid article { padding: 16px; }
  .admin-stat-grid strong { font-size: 29px; }
  .admin-card { padding: 18px; }
  th, td { padding: 12px; }
}

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