:root {
    --ink: #050509;
    --ink-soft: #0a0a10;
    --surface: #101018;
    --surface-light: #161620;
    --crimson: #b91e35;
    --crimson-bright: #e03450;
    --gold: #d1bd96;
    --gold-bright: #ead9b5;
    --text: #f3eef5;
    --text-soft: #c9c1ce;
    --muted: #aaa0b2;
    --border: rgba(209, 189, 150, 0.18);
    --shadow: 0 28px 80px rgba(0, 0, 0, 0.45);
    --serif: "Traditional Arabic", "Palatino Linotype", Georgia, serif;
    --sans: "Segoe UI", Tahoma, Arial, sans-serif;
    --shell: min(1180px, calc(100% - 40px));
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; color-scheme: dark; }

body {
    margin: 0;
    min-width: 320px;
    overflow-x: hidden;
    background: var(--ink);
    color: var(--text-soft);
    font-family: var(--sans);
    font-size: 16px;
    line-height: 1.85;
    text-rendering: optimizeLegibility;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -3;
    pointer-events: none;
    background:
        radial-gradient(circle at 12% 12%, rgba(185, 30, 53, 0.1), transparent 28%),
        radial-gradient(circle at 90% 70%, rgba(209, 189, 150, 0.05), transparent 30%),
        var(--ink);
}

::selection { background: var(--crimson); color: #fff; }
.visually-hidden { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: -1px !important; overflow: hidden !important; clip: rect(0, 0, 0, 0) !important; white-space: nowrap !important; border: 0 !important; }

::-webkit-scrollbar { width: 9px; }
::-webkit-scrollbar-track { background: var(--ink); }
::-webkit-scrollbar-thumb { background: #651321; border-radius: 99px; }

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }
button, input, textarea { font: inherit; }
button { color: inherit; }

h1, h2, h3, blockquote {
    margin-top: 0;
    color: var(--text);
    font-family: var(--serif);
    line-height: 1.25;
}

h1 { font-size: clamp(2.8rem, 6vw, 5.8rem); letter-spacing: -0.04em; }
h2 { font-size: clamp(2rem, 4vw, 3.55rem); letter-spacing: -0.025em; }
h3 { font-size: clamp(1.25rem, 2vw, 1.65rem); }
p { margin: 0 0 1rem; }

:focus-visible { outline: 3px solid var(--gold-bright); outline-offset: 4px; }

.skip-link {
    position: fixed;
    inset-inline-start: 20px;
    top: -80px;
    z-index: 1000;
    padding: 12px 18px;
    border-radius: 0 0 10px 10px;
    background: var(--gold-bright);
    color: #131018;
    font-weight: 800;
}
.skip-link:focus { top: 0; }
.page-progress { position: fixed; z-index: 320; top: 0; inset-inline: 0; height: 2px; pointer-events: none; }
.page-progress span { display: block; width: 100%; height: 100%; background: linear-gradient(90deg, var(--crimson-bright), var(--gold-bright)); box-shadow: 0 0 14px rgba(224,52,80,.55); transform: scaleX(0); transform-origin: left center; will-change: transform; }
[dir="rtl"] .page-progress span { transform-origin: right center; }

.shell { width: var(--shell); margin-inline: auto; }
.narrow-shell { width: min(820px, 100%); margin-inline: auto; text-align: center; }
.section { position: relative; padding: clamp(76px, 10vw, 132px) 0; }
.surface-section { background: linear-gradient(180deg, rgba(16, 16, 24, 0.72), rgba(10, 10, 16, 0.45)); border-block: 1px solid rgba(255,255,255,.035); }

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 18px;
    color: var(--gold);
    font-size: .78rem;
    font-weight: 800;
    letter-spacing: .11em;
    text-transform: uppercase;
}
.eyebrow::before { content: ""; width: 30px; height: 1px; background: var(--crimson-bright); }

.section-heading { width: min(760px, 100%); margin: 0 auto 52px; text-align: center; }
.section-heading h2 { margin-bottom: 18px; }
.section-heading p { color: var(--muted); font-size: 1.08rem; }
.section-heading.align-start { margin-inline: 0; text-align: start; }

.button {
    display: inline-flex;
    min-height: 52px;
    align-items: center;
    justify-content: center;
    padding: 11px 26px;
    border: 1px solid var(--crimson-bright);
    border-radius: 8px;
    background: linear-gradient(135deg, var(--crimson), #781022);
    box-shadow: 0 10px 28px rgba(185, 30, 53, .24);
    color: #fff;
    cursor: pointer;
    font-weight: 800;
    transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.button:hover { transform: translateY(-2px); box-shadow: 0 15px 34px rgba(185, 30, 53, .34); }
.button-small { min-height: 42px; padding: 8px 18px; font-size: .9rem; }
.button-ghost { border-color: var(--border); background: rgba(255,255,255,.025); box-shadow: none; color: var(--gold-bright); }
.button-ghost:hover { background: rgba(209,189,150,.1); box-shadow: none; }

.text-link { color: var(--gold-bright); font-weight: 800; }
.text-link span { display: inline-block; margin-inline-start: 6px; transition: transform .2s ease; }
.text-link:hover span { transform: translateX(-4px); }
[dir="ltr"] .text-link:hover span { transform: translateX(4px); }

.spoiler-chip, .tag-list span {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 5px 13px;
    border: 1px solid var(--border);
    border-radius: 99px;
    background: rgba(209,189,150,.06);
    color: var(--gold);
    font-size: .78rem;
    font-weight: 700;
}

.site-header {
    position: fixed;
    top: 0;
    inset-inline: 0;
    z-index: 100;
    border-bottom: 1px solid transparent;
    transition: background .25s ease, border-color .25s ease, backdrop-filter .25s ease;
}
.site-header.scrolled, .site-header.menu-open { background: rgba(5,5,9,.92); border-color: var(--border); backdrop-filter: blur(18px); }
.nav-shell { min-height: 82px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 12px; min-width: max-content; }
.brand-mark {
    display: grid;
    width: 45px;
    aspect-ratio: 1;
    place-items: center;
    border: 1px solid rgba(209,189,150,.42);
    border-radius: 50%;
    background: radial-gradient(circle, rgba(185,30,53,.22), transparent 68%);
    color: var(--gold-bright);
    font-family: var(--serif);
    font-size: 1.3rem;
    font-weight: 800;
}
.brand-copy { display: flex; flex-direction: column; line-height: 1.35; }
.brand-copy strong { color: var(--text); font-family: var(--serif); font-size: 1.05rem; }
.brand-copy small { color: var(--muted); font-size: .7rem; }
.site-nav { display: flex; align-items: center; gap: 4px; }
.site-nav a { position: relative; padding: 9px 11px; color: var(--text-soft); font-size: .92rem; font-weight: 700; }
.site-nav a::after { content: ""; position: absolute; right: 12px; bottom: 2px; left: 12px; height: 2px; background: var(--crimson-bright); transform: scaleX(0); transition: transform .2s ease; }
.site-nav a:hover, .site-nav a.active { color: var(--gold-bright); }
.site-nav a:hover::after, .site-nav a.active::after { transform: scaleX(1); }
.nav-actions { display: flex; align-items: center; gap: 12px; }
.language-link { color: var(--gold); font-size: .85rem; font-weight: 800; }
.menu-toggle { display: none; width: 44px; height: 44px; padding: 10px; border: 1px solid var(--border); border-radius: 8px; background: rgba(255,255,255,.03); cursor: pointer; }
.menu-toggle span { display: block; width: 100%; height: 2px; margin: 5px 0; background: var(--text); transition: transform .2s ease, opacity .2s ease; }
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.hero { --hero-shift-x: 0px; --hero-shift-y: 0px; --hero-scroll-y: 0px; min-height: max(820px, 100svh); display: grid; align-items: center; padding-top: 110px; padding-bottom: 58px; overflow: hidden; isolation: isolate; }
.hero::after { content: ""; position: absolute; z-index: 1; inset: 0; background: linear-gradient(180deg, transparent 58%, var(--ink) 100%); pointer-events: none; }
.hero-backdrop { position: absolute; z-index: -2; inset: 0; margin: 0; overflow: hidden; background: #08080d; }
.hero-backdrop::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(5,5,9,.28) 0%, rgba(5,5,9,.6) 50%, rgba(5,5,9,.96) 100%), linear-gradient(180deg, rgba(5,5,9,.32), rgba(5,5,9,.12) 55%, rgba(5,5,9,.78)); }
[dir="ltr"] .hero-backdrop::after { background: linear-gradient(90deg, rgba(5,5,9,.96) 0%, rgba(5,5,9,.62) 50%, rgba(5,5,9,.28) 100%), linear-gradient(180deg, rgba(5,5,9,.32), rgba(5,5,9,.12) 55%, rgba(5,5,9,.78)); }
.hero-backdrop img { width: 100%; height: 100%; object-fit: cover; object-position: center 48%; filter: saturate(.78) contrast(1.1) brightness(.7); transform: scale(1.075) translate3d(var(--hero-shift-x), calc(var(--hero-shift-y) + var(--hero-scroll-y)), 0); transition: transform .35s ease-out; will-change: transform; }
.hero-glow { position: absolute; z-index: -1; width: 760px; height: 760px; inset-inline-start: -170px; top: 70px; border-radius: 50%; background: radial-gradient(circle, rgba(185,30,53,.24), rgba(185,30,53,.05) 44%, transparent 70%); filter: blur(16px); animation: heroPulse 7s ease-in-out infinite alternate; }
.hero-grid { position: relative; z-index: 2; display: grid; grid-template-columns: minmax(0, 690px); justify-content: start; align-items: center; }
.hero-copy { padding-block: 20px 48px; text-shadow: 0 2px 28px rgba(0,0,0,.72); }
.hero-copy h1 { max-width: 690px; margin-bottom: 26px; }
[dir="rtl"] .hero-copy h1 { font-size: clamp(3rem, 5.2vw, 5.15rem); }
[dir="ltr"] .hero-copy h1 { font-size: clamp(3rem, 4.1vw, 4.4rem); line-height: 1.1; letter-spacing: -.03em; }
.hero-copy h1 span, .page-hero h1 span { display: block; color: var(--crimson-bright); }
.hero-lead { max-width: 660px; color: var(--text-soft); font-size: clamp(1.05rem, 1.5vw, 1.25rem); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.hero-scroll-cue { position: absolute; z-index: 3; bottom: 30px; inset-inline-start: 50%; display: grid; gap: 8px; justify-items: center; color: var(--gold); font-size: .7rem; font-weight: 800; letter-spacing: .08em; transform: translateX(-50%); }
[dir="rtl"] .hero-scroll-cue { transform: translateX(50%); }
.hero-scroll-cue i { position: relative; display: block; width: 25px; height: 38px; border: 1px solid rgba(209,189,150,.42); border-radius: 99px; }
.hero-scroll-cue i::after { content: ""; position: absolute; top: 7px; left: 50%; width: 3px; height: 7px; border-radius: 99px; background: var(--gold-bright); transform: translateX(-50%); animation: scrollCue 1.8s ease-in-out infinite; }

@keyframes heroPulse { to { transform: scale(1.1) translate3d(3%, -2%, 0); opacity: .78; } }
@keyframes scrollCue { 0% { transform: translate(-50%, 0); opacity: 0; } 30% { opacity: 1; } 80%, 100% { transform: translate(-50%, 14px); opacity: 0; } }

.stats-band { position: relative; z-index: 4; border-block: 1px solid var(--border); background: linear-gradient(90deg, rgba(185,30,53,.07), rgba(10,10,16,.94) 35%, rgba(10,10,16,.94) 65%, rgba(209,189,150,.05)); }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat { position: relative; padding: 26px 18px; text-align: center; }
.stat::after { content: ""; position: absolute; right: 25%; bottom: 0; left: 25%; height: 1px; background: linear-gradient(90deg, transparent, rgba(209,189,150,.34), transparent); opacity: 0; }
.stat + .stat { border-inline-start: 1px solid var(--border); }
.stat strong { display: block; color: var(--gold-bright); font-family: var(--serif); font-size: 2rem; line-height: 1.2; }
.stat span { color: var(--muted); font-size: .8rem; font-weight: 700; }
.stat strong { transition: transform .25s ease, color .25s ease; }
.stat:hover strong { color: #fff2cf; transform: translateY(-3px) scale(1.05); }

.split-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(45px, 8vw, 110px); }
.align-center { align-items: center; }
.story-section { overflow: hidden; }
.story-visual { position: relative; display: grid; min-height: 530px; place-items: center; isolation: isolate; }
.story-visual::before { content: ""; position: absolute; z-index: -2; width: min(455px, 88vw); aspect-ratio: 1; border: 1px solid rgba(209,189,150,.16); border-radius: 50%; background: radial-gradient(circle, rgba(185,30,53,.13), transparent 67%); box-shadow: 0 0 80px rgba(185,30,53,.08); }
.story-visual::after { content: ""; position: absolute; z-index: -1; width: min(390px, 78vw); aspect-ratio: 1; border: 1px dashed rgba(209,189,150,.17); border-radius: 50%; transform: rotate(-12deg); }
.story-cover { position: relative; width: min(285px, 64vw); margin: 0; transform: rotate(2deg); transition: transform .5s cubic-bezier(.2,.8,.2,1); }
[dir="ltr"] .story-cover { transform: rotate(-2deg); }
.story-cover:hover { transform: rotate(0) translateY(-8px) scale(1.015); }
[dir="ltr"] .story-cover:hover { transform: rotate(0) translateY(-8px) scale(1.015); }
.story-cover img { width: 100%; aspect-ratio: 2/3; border: 1px solid rgba(209,189,150,.28); border-radius: 7px; object-fit: cover; box-shadow: 0 34px 75px rgba(0,0,0,.58); }
.story-cover figcaption { position: absolute; right: -42px; bottom: 30px; display: grid; min-width: 185px; padding: 13px 16px; border: 1px solid rgba(209,189,150,.28); border-radius: 8px; background: rgba(5,5,9,.92); box-shadow: 0 14px 35px rgba(0,0,0,.4); transform: rotate(-2deg); }
[dir="ltr"] .story-cover figcaption { right: auto; left: -42px; transform: rotate(2deg); }
.story-cover figcaption strong { color: var(--gold-bright); font-family: var(--serif); }
.story-cover figcaption span { color: var(--muted); font-size: .7rem; }
.story-orbit { position: absolute; z-index: -1; inset-inline-start: 4%; top: 7%; color: rgba(209,189,150,.09); font-family: var(--serif); font-size: clamp(8rem, 15vw, 13rem); line-height: 1; }
.inline-links { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; margin-top: 26px; }

.card-grid { display: grid; gap: 22px; }
.realm-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.image-card, .portrait-card, .video-card { overflow: hidden; border: 1px solid var(--border); border-radius: 13px; background: linear-gradient(155deg, rgba(22,22,32,.94), rgba(8,8,13,.95)); box-shadow: 0 18px 55px rgba(0,0,0,.2); }
[data-spotlight-card] { --spotlight-x: 50%; --spotlight-y: 50%; position: relative; isolation: isolate; }
[data-spotlight-card]::after { content: ""; position: absolute; z-index: 5; inset: 0; border-radius: inherit; background: radial-gradient(360px circle at var(--spotlight-x) var(--spotlight-y), rgba(209,189,150,.11), transparent 48%); opacity: 0; pointer-events: none; transition: opacity .25s ease; }
[data-spotlight-card]:hover::after { opacity: 1; }
.card-media { position: relative; display: block; aspect-ratio: 4/3; overflow: hidden; background: #08080d; }
.card-media::after, .portrait-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 38%, rgba(5,5,9,.86)); }
.card-media img, .portrait-media img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.82) contrast(1.04); transition: transform .45s ease, filter .45s ease; }
.image-card:hover img, .portrait-card:hover img { transform: scale(1.045); filter: saturate(1) contrast(1.05); }
.card-number { position: absolute; z-index: 2; inset-inline-end: 14px; bottom: 10px; color: var(--gold-bright); font-family: var(--serif); font-size: 1.6rem; }
.card-content { padding: 22px; }
.card-kicker { display: block; margin-bottom: 7px; color: var(--crimson-bright); font-size: .72rem; font-weight: 800; letter-spacing: .05em; }
.card-content h2, .card-content h3 { margin-bottom: 10px; }
.card-content p { color: var(--muted); font-size: .9rem; line-height: 1.75; }
.card-content .text-link { font-size: .84rem; }

.timeline-section { background: linear-gradient(180deg, transparent, rgba(185,30,53,.035), transparent); }
.timeline { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 13px; margin: 0; padding: 0; list-style: none; }
.timeline-item { position: relative; min-height: 275px; overflow: hidden; padding: 25px 21px 24px; border: 1px solid var(--border); border-radius: 12px; background: linear-gradient(155deg, rgba(22,22,32,.9), rgba(8,8,13,.96)); box-shadow: 0 18px 48px rgba(0,0,0,.16); transition: transform .25s ease, border-color .25s ease; }
.timeline-item:hover { border-color: rgba(209,189,150,.38); transform: translateY(-5px); }
.timeline-item::before { content: ""; position: absolute; top: 0; inset-inline: 0; height: 2px; background: linear-gradient(90deg, var(--crimson), var(--gold), transparent 84%); }
.timeline-step { display: grid; width: 42px; aspect-ratio: 1; margin-bottom: 25px; place-items: center; border: 1px solid rgba(209,189,150,.28); border-radius: 50%; color: var(--gold-bright); font-family: var(--serif); font-size: .85rem; background: rgba(209,189,150,.04); }
.timeline-item h3 { margin-bottom: 11px; font-size: 1.15rem; }
.timeline-item p { margin: 0; color: var(--muted); font-size: .88rem; line-height: 1.8; }

.character-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.portrait-media { position: relative; display: block; aspect-ratio: 4/5; overflow: hidden; background: #08080d; }
.portrait-content { position: relative; z-index: 2; margin-top: -28px; padding: 0 20px 23px; }
.portrait-content > span { color: var(--crimson-bright); font-size: .72rem; font-weight: 800; }
.portrait-content h2, .portrait-content h3 { margin: 6px 0 8px; }
.portrait-content p { margin: 0; color: var(--muted); font-size: .84rem; line-height: 1.75; }
.portrait-content .text-link { display: inline-block; margin-top: 14px; font-size: .82rem; }
.section-cta { margin-top: 38px; text-align: center; }

.excerpt-section { overflow: hidden; background: radial-gradient(circle at center, rgba(185,30,53,.16), transparent 58%); }
.excerpt-shell { position: relative; width: min(930px, var(--shell)); margin-inline: auto; padding: clamp(42px, 7vw, 75px); border: 1px solid rgba(209,189,150,.2); border-radius: 18px; background: linear-gradient(145deg, rgba(18,18,27,.87), rgba(7,7,11,.86)); box-shadow: 0 30px 90px rgba(0,0,0,.28); text-align: center; }
.excerpt-shell::before { content: "“"; position: absolute; top: 8px; inset-inline-start: 28px; color: rgba(209,189,150,.1); font-family: var(--serif); font-size: 9rem; line-height: 1; }
.excerpt-intro { margin: 10px 0 0; color: var(--muted); font-size: .92rem; }
.excerpt-shell blockquote { margin: 25px 0 18px; color: var(--gold-bright); font-size: clamp(1.55rem, 3vw, 2.45rem); line-height: 1.75; }
.excerpt-shell cite { display: block; margin-bottom: 32px; color: var(--muted); font-size: .78rem; font-style: normal; }

.media-shell { overflow: hidden; }
.media-heading-row { display: flex; align-items: end; justify-content: space-between; gap: 35px; margin-bottom: 42px; }
.media-heading-row .section-heading { margin-bottom: 0; }
.slider-controls { display: flex; flex: 0 0 auto; align-items: center; gap: 10px; }
.slider-button { display: grid; width: 48px; aspect-ratio: 1; place-items: center; border: 1px solid var(--border); border-radius: 50%; background: rgba(255,255,255,.025); color: var(--gold-bright); cursor: pointer; transition: border-color .2s ease, background .2s ease, transform .2s ease; }
.slider-button:hover { border-color: rgba(209,189,150,.52); background: rgba(209,189,150,.1); transform: translateY(-2px); }
.slider-button span { font-family: Georgia, serif; font-size: 2rem; line-height: 1; transform: translateY(-1px); }
[dir="rtl"] .slider-button span { transform: scaleX(-1) translateY(-1px); }
.slider-status { display: inline-flex; min-width: 64px; align-items: baseline; justify-content: center; gap: 6px; color: var(--muted); font-size: .76rem; }
.slider-status strong { color: var(--gold-bright); font-family: var(--serif); font-size: 1.2rem; }
.slider-status i { color: rgba(209,189,150,.34); font-style: normal; }
.media-viewport { overflow-x: auto; overflow-y: hidden; padding: 5px 2px 20px; scrollbar-width: none; scroll-behavior: smooth; scroll-snap-type: inline mandatory; overscroll-behavior-inline: contain; }
.media-viewport::-webkit-scrollbar { display: none; }
.media-track { display: flex; gap: 22px; width: max-content; }
.video-card { flex: 0 0 min(390px, calc(100vw - 70px)); width: min(390px, calc(100vw - 70px)); scroll-snap-align: start; transition: transform .28s ease, border-color .28s ease, box-shadow .28s ease; }
.video-card:hover { border-color: rgba(209,189,150,.34); box-shadow: 0 24px 65px rgba(0,0,0,.34); transform: translateY(-5px); }
.video-card .card-content { min-height: 178px; }
.video-poster { position: relative; display: block; width: 100%; padding: 0; aspect-ratio: 16/9; overflow: hidden; border: 0; background: #08080d; cursor: pointer; }
.video-poster > img, .video-poster iframe { width: 100%; height: 100%; object-fit: cover; border: 0; }
.video-poster::after { content: ""; position: absolute; inset: 0; background: rgba(5,5,9,.25); transition: background .2s ease; }
.video-poster:hover::after { background: rgba(5,5,9,.05); }
.play-button { position: absolute; z-index: 2; top: 50%; left: 50%; display: grid; width: 60px; aspect-ratio: 1; place-items: center; border: 1px solid rgba(255,255,255,.65); border-radius: 50%; background: rgba(185,30,53,.88); color: #fff; transform: translate(-50%, -50%); }
.video-poster:hover .play-button { transform: translate(-50%, -50%) scale(1.08); box-shadow: 0 0 0 9px rgba(185,30,53,.16); }
.play-button { transition: transform .25s ease, box-shadow .25s ease; }
.video-poster.playing::after, .video-poster.playing .play-button { display: none; }
.slider-progress { height: 2px; margin-top: 10px; overflow: hidden; border-radius: 99px; background: rgba(209,189,150,.1); }
.slider-progress span { display: block; width: 100%; height: 100%; background: linear-gradient(90deg, var(--crimson-bright), var(--gold-bright)); transform: scaleX(.1111); transform-origin: left center; transition: transform .35s ease; }
[dir="rtl"] .slider-progress span { transform-origin: right center; }

.author-monogram, .author-mark-large { position: relative; display: grid; width: min(330px, 75vw); aspect-ratio: 1; place-items: center; border: 1px solid var(--border); border-radius: 50%; background: radial-gradient(circle, rgba(185,30,53,.2), rgba(10,10,16,.6) 60%, transparent 62%); color: var(--gold-bright); font-family: var(--serif); font-size: 9rem; }
.author-monogram::before, .author-mark-large::before { content: ""; position: absolute; inset: 10%; border: 1px dashed rgba(209,189,150,.24); border-radius: 50%; }
.author-monogram small, .author-mark-large small { position: absolute; inset-inline-end: 24%; bottom: 23%; color: var(--crimson-bright); font-size: 2.5rem; }
.author-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 27px 0; }
.author-facts > div { min-width: 0; padding: 15px 13px; border: 1px solid var(--border); border-radius: 9px; background: rgba(255,255,255,.025); }
.author-facts > div { transition: transform .22s ease, border-color .22s ease; }
.author-facts > div:hover { border-color: rgba(209,189,150,.38); transform: translateY(-3px); }
.author-facts dt { color: var(--crimson-bright); font-size: .67rem; font-weight: 800; }
.author-facts dd { margin: 5px 0 0; color: var(--text-soft); font-size: .78rem; line-height: 1.55; }

.page-hero { min-height: 720px; display: grid; align-items: center; padding-top: 150px; overflow: hidden; }
.page-hero::before { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 75% 25%, rgba(185,30,53,.16), transparent 42%); pointer-events: none; }
.page-hero-grid { position: relative; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(300px, .7fr); align-items: center; gap: clamp(45px, 8vw, 110px); }
.page-hero-copy h1 { margin-bottom: 25px; }
.book-visual { position: relative; isolation: isolate; width: min(335px, 80vw); margin-inline: auto; }
.book-visual::before { content: ""; position: absolute; z-index: -2; inset: 7% -15%; border-radius: 50%; background: radial-gradient(circle, rgba(217,179,107,.24), rgba(185,30,53,.12) 40%, transparent 70%); filter: blur(24px); }
.book-visual::after { content: ""; position: absolute; z-index: -1; inset: 15px -15px -15px 15px; border: 1px solid rgba(209,189,150,.24); border-radius: 5px; transform: rotate(-1deg); }
.book-visual img { position: relative; z-index: 1; width: 100%; aspect-ratio: 2/3; object-fit: cover; border: 1px solid rgba(209,189,150,.34); border-radius: 5px; box-shadow: 0 42px 95px rgba(0,0,0,.7); transform: rotate(2deg); }
[dir="ltr"] .book-visual img { transform: rotate(-2deg); }
.tag-list { display: flex; flex-wrap: wrap; gap: 8px; margin: 25px 0 0; }
.author-role { color: var(--gold); font-weight: 800; }
.author-mark-large { margin-inline: auto; }
.world-hero .map-frame { max-width: 470px; margin-inline: auto; }
.map-frame { position: relative; padding: 12px; border: 1px solid var(--border); background: rgba(209,189,150,.04); box-shadow: var(--shadow); transform: rotate(1deg); }
.map-frame::after { content: ""; position: absolute; inset: 12px; border: 1px solid rgba(209,189,150,.18); pointer-events: none; }
.map-frame img { width: 100%; max-height: 520px; object-fit: cover; object-position: top; filter: sepia(.16) saturate(.8) contrast(1.04); }
.compact-hero { min-height: 540px; padding-bottom: 90px; }
.centered-hero { position: relative; width: min(880px, 100%); margin-inline: auto; text-align: center; }
.centered-hero h1 { margin-bottom: 22px; }
.centered-hero .hero-lead { margin-inline: auto; }

.content-sidebar-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(270px, .65fr); gap: 28px; align-items: start; }
.author-bio-shell { max-width: 920px; }
.prose-panel, .facts-panel, .quote-panel { border: 1px solid var(--border); border-radius: 14px; background: rgba(10,10,16,.68); padding: clamp(28px, 5vw, 55px); }
.prose-panel h2, .facts-panel h2 { margin-bottom: 25px; font-size: clamp(1.75rem, 3vw, 2.5rem); }
.prose-panel p { color: var(--text-soft); font-size: 1.05rem; line-height: 2.05; }
.facts-panel { position: sticky; top: 108px; }
.facts-panel dl { margin: 0; }
.facts-panel dl > div { padding: 15px 0; border-bottom: 1px solid var(--border); }
.facts-panel dl > div:last-child { border-bottom: 0; }
.facts-panel dt { color: var(--muted); font-size: .75rem; font-weight: 700; }
.facts-panel dd { margin: 2px 0 0; color: var(--gold-bright); font-weight: 700; }

.book-list { width: min(920px, 100%); margin: 0 auto; padding: 0; list-style: none; }
.book-list-item { display: grid; grid-template-columns: 90px 1fr; gap: 25px; padding: 28px 0; border-top: 1px solid var(--border); }
.book-list-item:last-child { border-bottom: 1px solid var(--border); }
.book-list-item > span { color: rgba(209,189,150,.28); font-family: var(--serif); font-size: 2.3rem; }
.book-list-item h3 { margin-bottom: 8px; }
.book-list-item p { color: var(--muted); }
.book-journey-section { position: relative; min-height: 710px; display: grid; align-items: center; overflow: hidden; isolation: isolate; }
.book-journey-section::after { content: ""; position: absolute; z-index: -1; inset: 0; background: linear-gradient(90deg, rgba(5,5,9,.95) 8%, rgba(5,5,9,.6) 48%, rgba(5,5,9,.18) 75%, rgba(5,5,9,.72)); pointer-events: none; }
[dir="rtl"] .book-journey-section::after { background: linear-gradient(270deg, rgba(5,5,9,.95) 8%, rgba(5,5,9,.6) 48%, rgba(5,5,9,.18) 75%, rgba(5,5,9,.72)); }
.book-journey-art { position: absolute; z-index: -2; inset: 0; margin: 0; }
.book-journey-art img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.82) contrast(1.08) brightness(.78); transform: scale(1.045) translate3d(0, var(--scene-shift), 0); will-change: transform; }
.book-journey-content { display: grid; min-height: 710px; align-items: center; }
.book-journey-content .section-heading { width: min(610px, 100%); margin: 0; padding: clamp(30px, 5vw, 58px); border-inline-start: 1px solid rgba(209,189,150,.35); background: linear-gradient(90deg, rgba(5,5,9,.72), transparent); backdrop-filter: blur(3px); }
[dir="rtl"] .book-journey-content .section-heading { background: linear-gradient(270deg, rgba(5,5,9,.72), transparent); }
.book-journey-content h2 { max-width: 580px; font-size: clamp(2.45rem, 5vw, 4.75rem); line-height: 1.12; }
.book-journey-content p { max-width: 570px; margin-bottom: 30px; color: var(--text-soft); font-size: 1.06rem; }
.theme-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 0; padding: 0; list-style: none; }
.theme-list li { padding: 18px 20px; border: 1px solid var(--border); border-radius: 8px; background: rgba(255,255,255,.02); color: var(--gold-bright); font-weight: 700; }
.theme-list li::before { content: "✦"; margin-inline-end: 10px; color: var(--crimson-bright); }
.final-cta { background: radial-gradient(circle at center, rgba(185,30,53,.13), transparent 56%); }

.quote-panel blockquote { margin-bottom: 20px; color: var(--gold-bright); font-size: clamp(1.45rem, 2.5vw, 2rem); line-height: 1.8; }
.quote-panel cite { color: var(--crimson-bright); font-style: normal; font-weight: 800; }
.focus-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin: 0; padding: 0; list-style: none; }
.focus-grid li { min-height: 170px; padding: 25px; border: 1px solid var(--border); background: linear-gradient(150deg, rgba(22,22,32,.8), rgba(8,8,13,.7)); color: var(--text); font-family: var(--serif); font-size: 1.15rem; }
.focus-grid li span { display: block; margin-bottom: 25px; color: var(--crimson-bright); font-family: var(--sans); font-size: .72rem; }

.detail-hero { min-height: 740px; display: grid; align-items: center; padding-top: 150px; overflow: hidden; }
.detail-backdrop { position: absolute; inset: 0; opacity: .13; filter: blur(18px) saturate(.7); transform: scale(1.08); }
.detail-backdrop::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, var(--ink) 12%, rgba(5,5,9,.55), var(--ink) 88%); }
.detail-backdrop img { width: 100%; height: 100%; object-fit: cover; }
.detail-hero-grid { position: relative; display: grid; grid-template-columns: 1fr .72fr; align-items: center; gap: clamp(40px, 8vw, 100px); }
.detail-copy h1 { margin: 14px 0 24px; }
.back-link { display: inline-block; margin-bottom: 28px; color: var(--muted); font-size: .84rem; font-weight: 700; }
.detail-image { overflow: hidden; margin: 0; aspect-ratio: 1; border: 1px solid var(--border); border-radius: 50% 50% 8px 8px; box-shadow: var(--shadow); }
.detail-image img { width: 100%; height: 100%; object-fit: cover; }
.portrait-detail { aspect-ratio: 4/5; border-radius: 46% 46% 8px 8px; }
.next-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.next-card { display: flex; min-height: 130px; flex-direction: column; justify-content: flex-end; padding: 22px; border: 1px solid var(--border); border-radius: 10px; background: linear-gradient(145deg, rgba(22,22,32,.8), rgba(8,8,13,.9)); transition: transform .2s ease, border-color .2s ease; }
.next-card:hover { transform: translateY(-3px); border-color: rgba(209,189,150,.45); }
.next-card span { color: var(--crimson-bright); font-size: .72rem; }
.next-card strong { color: var(--text); font-family: var(--serif); font-size: 1.25rem; }

.character-forms-section { overflow: hidden; background: radial-gradient(circle at 50% 45%, rgba(185,30,53,.09), transparent 52%); }
.character-form-switcher { width: min(1020px, 100%); margin-inline: auto; }
.form-tabs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-bottom: 18px; }
.form-tabs button { display: flex; min-height: 74px; align-items: center; gap: 15px; padding: 14px 18px; border: 1px solid var(--border); border-radius: 10px; background: rgba(255,255,255,.025); color: var(--muted); cursor: pointer; text-align: start; transition: border-color .2s ease, background .2s ease, color .2s ease; }
.form-tabs button[aria-selected="true"] { border-color: rgba(209,189,150,.5); background: linear-gradient(135deg, rgba(185,30,53,.13), rgba(209,189,150,.07)); color: var(--gold-bright); }
.form-tabs button > span { display: grid; flex: 0 0 38px; aspect-ratio: 1; place-items: center; border: 1px solid currentColor; border-radius: 50%; font-family: var(--serif); font-size: .72rem; opacity: .72; }
.form-tabs button strong { font-size: .88rem; }
.form-panels { overflow: hidden; border: 1px solid var(--border); border-radius: 16px; background: linear-gradient(145deg, rgba(22,22,32,.9), rgba(7,7,11,.96)); box-shadow: var(--shadow); }
.character-form-panel { display: grid; grid-template-columns: minmax(300px, .82fr) minmax(0, 1.18fr); align-items: center; min-height: 560px; }
.character-form-panel[hidden] { display: none; }
.character-form-panel figure { align-self: stretch; overflow: hidden; margin: 0; min-height: 560px; background: #08080d; }
.character-form-panel figure img { width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.character-form-copy { padding: clamp(32px, 6vw, 72px); }
.character-form-copy h3 { margin-bottom: 18px; font-size: clamp(1.8rem, 3vw, 2.7rem); }
.character-form-copy p { color: var(--text-soft); font-size: 1.02rem; line-height: 2; }
.spoiler-details { margin-top: 16px; border: 1px solid rgba(224,52,80,.24); border-radius: 10px; background: rgba(185,30,53,.055); }
.spoiler-details summary { padding: 15px 18px; color: var(--gold-bright); cursor: pointer; font-size: .82rem; font-weight: 800; }
.spoiler-details p { margin: 0; padding: 0 18px 18px; color: var(--muted); font-size: .88rem; }

.world-guides-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.guide-card { display: grid; min-height: 270px; grid-template-columns: 70px 1fr; gap: 20px; padding: clamp(25px, 4vw, 42px); border: 1px solid var(--border); border-radius: 12px; background: linear-gradient(145deg, rgba(22,22,32,.82), rgba(8,8,13,.9)); transition: transform .2s ease, border-color .2s ease; }
.guide-card:hover { transform: translateY(-4px); border-color: rgba(209,189,150,.5); }
.guide-card > span { color: rgba(209,189,150,.28); font-family: var(--serif); font-size: 2rem; }
.guide-card small { color: var(--crimson-bright); font-weight: 800; }
.guide-card h2 { margin: 12px 0; font-size: clamp(1.55rem, 2.5vw, 2.25rem); }
.guide-card p { color: var(--muted); font-size: .9rem; }

.creature-list { display: grid; gap: 28px; }
.creature-entry { display: grid; grid-template-columns: minmax(260px, .62fr) minmax(0, 1.38fr); align-items: center; gap: clamp(30px, 7vw, 90px); padding: clamp(24px, 4vw, 46px); border: 1px solid var(--border); border-radius: 14px; background: linear-gradient(145deg, rgba(22,22,32,.82), rgba(8,8,13,.92)); }
.creature-entry:nth-child(even) figure { order: 2; }
.creature-entry figure { overflow: hidden; margin: 0; aspect-ratio: 4/5; border: 1px solid var(--border); border-radius: 46% 46% 8px 8px; }
.creature-entry figure img { width: 100%; height: 100%; object-fit: cover; }
.creature-entry h2 { margin-bottom: 16px; }
.creature-entry p { color: var(--muted); }
.creature-entry .creature-summary { color: var(--text); font-size: 1.08rem; font-weight: 700; }
.creature-entry dl { display: inline-flex; gap: 10px; margin: 18px 0 0; padding: 8px 13px; border: 1px solid var(--border); border-radius: 99px; }
.creature-entry dt { color: var(--muted); font-size: .75rem; }
.creature-entry dd { margin: 0; color: var(--crimson-bright); font-size: .75rem; font-weight: 800; }

.glossary-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.glossary-item { display: grid; min-height: 210px; grid-template-columns: 55px 1fr; gap: 15px; padding: 28px; border: 1px solid var(--border); border-radius: 10px; background: rgba(10,10,16,.68); }
.glossary-item > span { color: rgba(209,189,150,.28); font-family: var(--serif); font-size: 1.45rem; }
.glossary-item small { color: var(--crimson-bright); font-size: .72rem; font-weight: 800; }
.glossary-item h2 { margin: 8px 0 12px; font-size: 1.55rem; }
.glossary-item p { color: var(--muted); font-size: .9rem; }

.reading-header { position: relative; min-height: 690px; display: grid; align-items: end; overflow: hidden; isolation: isolate; padding-top: 170px; padding-bottom: 80px; background: #07070b; }
.reading-header::before { content: ""; position: absolute; z-index: -1; inset: 0; background: linear-gradient(180deg, rgba(5,5,9,.22), rgba(5,5,9,.38) 45%, rgba(5,5,9,.95)), radial-gradient(circle at 50% 55%, transparent, rgba(5,5,9,.52) 75%); pointer-events: none; }
.reading-scene { position: absolute; z-index: -2; inset: 0; margin: 0; }
.reading-scene img { width: 100%; height: 100%; object-fit: cover; object-position: center; filter: saturate(.72) contrast(1.08) brightness(.8); transform: scale(1.045) translate3d(0, var(--scene-shift), 0); will-change: transform; }
.reading-header .narrow-shell { position: relative; text-shadow: 0 3px 24px rgba(0,0,0,.85); }
.reading-header h1 { margin-bottom: 18px; font-size: clamp(2.5rem, 6vw, 5rem); }
.reading-header p { color: var(--gold); }
.reading-rule { display: flex; align-items: center; justify-content: center; margin-top: 40px; }
.reading-rule::before, .reading-rule::after { content: ""; width: 110px; height: 1px; background: var(--border); }
.reading-rule span { width: 10px; aspect-ratio: 1; margin: 0 14px; background: var(--crimson-bright); transform: rotate(45deg); }
.reading-section { padding-top: 70px; }
.reading-shell { width: min(760px, calc(100% - 40px)); margin-inline: auto; }
.reading-shell > p { color: #d7cfdc; font-family: var(--serif); font-size: clamp(1.12rem, 2vw, 1.35rem); line-height: 2.25; }
.reading-intro { margin-bottom: 45px !important; color: var(--gold-bright) !important; text-align: center; font-weight: 800; }
.reading-shell .dialogue { color: var(--text) !important; font-weight: 700; }
.reading-end { margin-top: 65px; padding-top: 40px; border-top: 1px solid var(--border); text-align: center; }
.reading-end > span { color: var(--crimson-bright); font-size: 1.6rem; }
.reading-end p { margin: 18px 0 25px; color: var(--gold-bright); font-family: var(--serif); font-size: 1.3rem; }
.reading-end small { display: block; margin-top: 28px; color: var(--muted); }

.legal-shell { width: min(900px, 100%); }
.legal-section { display: grid; grid-template-columns: 70px 1fr; gap: 25px; padding: 35px 0; border-top: 1px solid var(--border); }
.legal-section:last-child { border-bottom: 1px solid var(--border); }
.legal-section > span { color: rgba(209,189,150,.32); font-family: var(--serif); font-size: 1.7rem; }
.legal-section h2 { margin-bottom: 10px; font-size: 1.6rem; }
.legal-section p { color: var(--muted); }

.archive-hero { position: relative; min-height: 720px; display: grid; align-items: center; padding-top: 150px; overflow: hidden; isolation: isolate; background: radial-gradient(circle at 78% 42%, rgba(185,30,53,.18), transparent 32%), linear-gradient(120deg, rgba(209,189,150,.035), transparent 45%); }
.archive-hero::before { content: ""; position: absolute; z-index: -1; inset: -18%; background: url("../images/map-atlas-v3.webp") 82% 43% / min(690px, 66vw) auto no-repeat; opacity: .09; filter: grayscale(1) sepia(.35) contrast(1.25); transform: rotate(-3deg); }
[dir="rtl"] .archive-hero::before { background-position: 18% 43%; transform: rotate(3deg); }
.archive-hero-grid { display: grid; grid-template-columns: 1.25fr .75fr; align-items: center; gap: clamp(40px, 8vw, 110px); }
.archive-status { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.archive-status div { min-width: 190px; padding: 13px 16px; border: 1px solid var(--border); border-radius: 8px; background: rgba(255,255,255,.025); }
.archive-status small, .archive-status strong { display: block; }
.archive-status small { color: var(--muted); font-size: .68rem; text-transform: uppercase; letter-spacing: .12em; }
.archive-status strong { margin-top: 3px; color: var(--gold-bright); font-size: .88rem; }
.archive-seal { position: relative; display: grid; width: min(350px, 70vw); aspect-ratio: 1; margin-inline: auto; place-items: center; border: 1px solid rgba(209,189,150,.28); border-radius: 50%; box-shadow: inset 0 0 70px rgba(185,30,53,.12), 0 0 90px rgba(0,0,0,.45); }
.archive-seal::before, .archive-seal::after { content: ""; position: absolute; inset: 9%; border: 1px solid rgba(209,189,150,.16); border-radius: 50%; }
.archive-seal::after { inset: 22%; border-style: dashed; }
.archive-seal span { color: var(--crimson-bright); font-family: var(--serif); font-size: clamp(5rem, 11vw, 8rem); line-height: 1; }
.archive-seal strong { position: absolute; bottom: 21%; color: var(--gold); font-size: .65rem; text-transform: uppercase; letter-spacing: .18em; }
.archive-index-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.archive-index-card, .rights-card { position: relative; overflow: hidden; min-height: 230px; padding: 28px; border: 1px solid var(--border); border-radius: 10px; background: radial-gradient(circle at var(--spotlight-x, 50%) var(--spotlight-y, 50%), rgba(209,189,150,.08), transparent 45%), rgba(10,10,16,.7); }
.archive-index-card > span, .rights-card > span { color: rgba(209,189,150,.35); font-family: var(--serif); font-size: 1.7rem; }
.archive-index-card h3, .rights-card h3 { margin: 28px 0 10px; color: var(--text); }
.archive-index-card p, .rights-card p { color: var(--muted); font-size: .86rem; }
.archive-chapter-heading { display: grid; max-width: 850px; grid-template-columns: 70px 1fr; gap: 24px; margin-bottom: 45px; }
.archive-chapter-heading > span { color: rgba(209,189,150,.3); font-family: var(--serif); font-size: 2rem; }
.archive-chapter-heading h2 { margin-bottom: 10px; }
.archive-chapter-heading p { color: var(--muted); }
.archive-realm-list { display: grid; gap: 14px; }
.archive-realm { display: grid; grid-template-columns: 230px 1fr; gap: 30px; align-items: center; padding: 16px; border: 1px solid var(--border); border-radius: 10px; background: rgba(255,255,255,.018); transition: border-color .2s ease, transform .2s ease; }
.archive-realm:hover { border-color: var(--realm-accent, rgba(209,189,150,.5)); transform: translateY(-2px); }
.archive-realm img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: 6px; filter: saturate(.75); }
.archive-realm small, .archive-person small, .archive-chronicle small, .field-preview small { color: var(--realm-accent, var(--crimson-bright)); font-size: .7rem; font-weight: 800; }
.archive-realm h3, .archive-person h3, .archive-chronicle h3, .field-preview h3 { margin: 6px 0 9px; }
.archive-realm p, .archive-person p, .archive-chronicle p, .field-preview p { color: var(--muted); font-size: .88rem; }
.archive-chronicle { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--border); }
.archive-chronicle li { display: grid; grid-template-columns: 80px 1fr; gap: 25px; padding: 28px 0; border-bottom: 1px solid var(--border); }
.archive-chronicle li > span { color: rgba(209,189,150,.28); font-family: var(--serif); font-size: 1.8rem; }
.archive-people-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.archive-person { min-height: 220px; padding: 26px; border: 1px solid var(--border); border-radius: 10px; background: linear-gradient(150deg, rgba(22,22,32,.7), rgba(8,8,13,.65)); }
.archive-person:hover h3 { color: var(--gold-bright); }
.field-record-grid { display: grid; grid-template-columns: 1.3fr .7fr; gap: clamp(35px, 7vw, 90px); }
.field-preview { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.field-preview article { padding: 22px; border-top: 1px solid var(--crimson); background: rgba(5,5,9,.4); }
.archive-terms { padding: 30px; border: 1px solid var(--border); border-radius: 10px; background: rgba(5,5,9,.5); }
.archive-terms > div { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; padding: 14px 0; border-bottom: 1px solid var(--border); }
.archive-terms > div:last-child { border-bottom: 0; }
.archive-terms strong { color: var(--text); }
.archive-terms small { color: var(--muted); }
.press-hero { min-height: 780px; display: grid; align-items: center; padding-top: 145px; background: linear-gradient(110deg, rgba(185,30,53,.1), transparent 52%); }
.press-cover { position: relative; isolation: isolate; width: min(380px, 80%); margin: 0 auto; }
.press-cover::before { content: ""; position: absolute; z-index: -2; inset: 7% -13%; border-radius: 50%; background: radial-gradient(circle, rgba(217,179,107,.2), rgba(185,30,53,.1) 45%, transparent 72%); filter: blur(24px); }
.press-cover::after { content: ""; position: absolute; z-index: -1; inset: 16px -14px -14px 16px; border: 1px solid rgba(209,189,150,.22); border-radius: 5px; transform: rotate(-1deg); }
.press-cover img { position: relative; z-index: 1; width: 100%; aspect-ratio: 2/3; object-fit: cover; border: 1px solid rgba(209,189,150,.28); border-radius: 5px; box-shadow: 0 38px 90px rgba(0,0,0,.65); transform: rotate(1.5deg); }
.press-cover figcaption { margin-top: 22px; color: var(--muted); font-size: .75rem; text-align: center; }
.positioning-list { margin: 0; padding: 0; list-style: none; }
.positioning-list li { display: grid; grid-template-columns: 55px 1fr; gap: 18px; align-items: start; padding: 18px 0; border-bottom: 1px solid var(--border); }
.positioning-list li > span { color: var(--crimson-bright); font-family: var(--serif); }
.positioning-list p { margin: 0; color: var(--text-soft); }
.rights-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }

.contact-section { border-top: 1px solid var(--border); background: linear-gradient(135deg, rgba(185,30,53,.07), transparent 45%), var(--ink-soft); }
.contact-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(45px, 8vw, 100px); }
.contact-form { padding: 30px; border: 1px solid var(--border); border-radius: 12px; background: rgba(5,5,9,.55); }
.form-note { margin: 0 0 18px; color: var(--muted); font-size: .72rem; }
.form-note span, .field label > span { color: var(--crimson-bright); }
.form-row { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.professional-fields[hidden] { display: none; }
.field { margin-bottom: 16px; }
.field label { display: block; margin-bottom: 7px; color: var(--gold-bright); font-size: .82rem; font-weight: 700; }
.field label small { color: var(--muted); font-size: .72rem; font-weight: 400; }
.field input, .field textarea, .field select { width: 100%; border: 1px solid rgba(209,189,150,.23); border-radius: 7px; background: rgba(255,255,255,.035); color: var(--text); padding: 12px 14px; transition: border-color .2s ease, background .2s ease; }
.field input { min-height: 48px; }
.field select { min-height: 48px; color-scheme: dark; }
.field select option { background: var(--ink-soft); color: var(--text); }
.field textarea { resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--gold); background: rgba(255,255,255,.055); outline: none; box-shadow: 0 0 0 3px rgba(209,189,150,.11); }
.field-error { display: block; margin-top: 7px; color: #ffb9c4; }
.consent-check { display: flex; align-items: flex-start; gap: 10px; margin: 4px 0 18px; color: var(--text-soft); font-size: .86rem; }
.consent-check input { flex: 0 0 auto; margin-top: 4px; accent-color: var(--crimson-bright); }
.form-privacy { display: block; margin-top: 14px; color: var(--muted); line-height: 1.6; }
.form-privacy a { color: var(--gold-bright); text-decoration: underline; }
.honeypot { position: absolute !important; width: 1px !important; height: 1px !important; overflow: hidden !important; clip: rect(0 0 0 0) !important; white-space: nowrap !important; }
.form-message { padding: 10px 13px; border-radius: 7px; font-size: .85rem; }
.form-message.success { background: rgba(61,159,101,.14); color: #a9e5bd; }
.form-message.error { background: rgba(224,52,80,.14); color: #ffb9c4; }

.site-footer { padding: 45px 0 20px; border-top: 1px solid var(--border); background: #030305; }
.footer-grid { display: flex; align-items: center; justify-content: space-between; gap: 30px; }
.footer-brand .brand-copy small { max-width: 430px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 20px; }
.footer-links a, .footer-link-button { color: var(--muted); font-size: .82rem; font-weight: 700; }
.footer-link-button { padding: 0; border: 0; background: transparent; cursor: pointer; font-family: inherit; }
.footer-links a:hover, .footer-link-button:hover { color: var(--gold); }
.footer-social { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin-top: 30px; color: var(--muted); font-size: .78rem; }
.footer-social span { color: var(--text-soft); font-weight: 800; }
.footer-social a { color: var(--gold); }
.footer-bottom { margin-top: 35px; padding-top: 17px; border-top: 1px solid rgba(255,255,255,.055); color: #7d7484; }

.release-hero { min-height: 760px; display: grid; align-items: center; padding-top: 145px; background: radial-gradient(circle at 20% 30%, rgba(185,30,53,.14), transparent 36%), linear-gradient(110deg, rgba(209,189,150,.05), transparent 52%); }
.release-status { display: inline-flex; align-items: center; gap: 12px; margin-top: 24px; padding: 11px 14px; border: 1px solid rgba(209,189,150,.25); border-radius: 999px; background: rgba(5,5,9,.62); }
.release-status span { color: var(--muted); font-size: .75rem; }
.release-status strong { color: var(--gold-bright); font-size: .82rem; }
.release-points { display: grid; gap: 12px; margin: 24px 0 0; padding: 0; list-style: none; }
.release-points li { position: relative; padding-inline-start: 24px; color: var(--text-soft); }
.release-points li::before { content: ""; position: absolute; inset-inline-start: 0; top: .65em; width: 9px; height: 1px; background: var(--crimson-bright); }

.journal-grid { display: grid; gap: 18px; }
.home-journal-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.home-journal-card { min-height: 285px; padding: 28px; border: 1px solid var(--border); border-radius: 10px; background: radial-gradient(circle at var(--spotlight-x, 50%) var(--spotlight-y, 50%), rgba(209,189,150,.08), transparent 45%), rgba(10,10,16,.7); }
.home-journal-card h3 { margin: 22px 0 12px; }
.home-journal-card h3 a { color: var(--text); }
.home-journal-card h3 a:hover { color: var(--gold-bright); }
.home-journal-card > p:not(.journal-meta) { color: var(--muted); font-size: .88rem; }
.journal-card { display: grid; grid-template-columns: minmax(250px, .75fr) 1.25fr; gap: clamp(25px, 5vw, 65px); align-items: center; padding: 18px; border: 1px solid var(--border); border-radius: 12px; background: rgba(5,5,9,.52); }
.journal-image { overflow: hidden; border-radius: 8px; }
.journal-image img { width: 100%; aspect-ratio: 16/10; object-fit: cover; filter: saturate(.72) contrast(1.06); transition: transform .5s ease, filter .3s ease; }
.journal-card:hover .journal-image img { transform: scale(1.025); filter: saturate(.9) contrast(1.06); }
.journal-meta { margin: 0 0 10px; color: var(--crimson-bright); font-size: .72rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.journal-card h2 { margin-bottom: 12px; }
.journal-card h2 a { color: var(--text); }
.journal-card h2 a:hover { color: var(--gold-bright); }
.journal-card p:not(.journal-meta) { color: var(--muted); }
.article-hero { padding-top: 160px; padding-bottom: 90px; background: radial-gradient(circle at 50% 10%, rgba(185,30,53,.11), transparent 45%); }
.article-header { max-width: 880px; text-align: center; }
.article-header .hero-lead { margin-inline: auto; }
.article-header .back-link { display: inline-block; margin-bottom: 40px; color: var(--gold); font-size: .82rem; font-weight: 800; }
.article-image { overflow: hidden; max-width: 1100px; margin-top: -35px; border: 1px solid var(--border); border-radius: 12px; }
.article-image img { width: 100%; max-height: 630px; object-fit: cover; }
.article-body { max-width: 820px; padding-block: 80px 110px; }
.article-body > section { margin-bottom: 48px; }
.article-body h2 { margin-bottom: 18px; }
.article-body p { color: var(--text-soft); font-size: clamp(1rem, 1.35vw, 1.12rem); line-height: 1.95; }
.article-next { margin-top: 70px; padding: 30px; border-top: 1px solid var(--crimson); background: rgba(185,30,53,.06); }
.error-page { display: grid; min-height: 100svh; place-items: center; padding: 40px 0; background: radial-gradient(circle at 50% 35%, rgba(185,30,53,.16), transparent 38%), var(--ink); }
.error-panel { max-width: 760px; text-align: center; }
.error-code { display: block; color: rgba(209,189,150,.22); font-family: var(--serif); font-size: clamp(7rem, 24vw, 14rem); line-height: .8; }
.error-panel h1 { margin: 26px 0 16px; }
.error-panel > p:not(.eyebrow) { max-width: 620px; margin: 0 auto 30px; color: var(--muted); }

.consent-banner { position: fixed; z-index: 250; bottom: 20px; inset-inline-end: 20px; display: flex; width: min(560px, calc(100% - 40px)); align-items: center; justify-content: space-between; gap: 20px; padding: 15px 17px; border: 1px solid rgba(209,189,150,.36); border-radius: 12px; background: rgba(10,10,16,.97); box-shadow: var(--shadow); backdrop-filter: blur(14px); }
.consent-banner[hidden] { display: none; }
.consent-banner p { margin: 0; color: var(--text-soft); font-size: .86rem; }
.consent-banner p a { color: var(--gold-bright); text-decoration: underline; }
.consent-actions { display: flex; gap: 8px; min-width: max-content; }

.reveal { opacity: 0; transform: translateY(18px); transition: opacity .65s ease, transform .65s ease; }
.reveal.visible { opacity: 1; transform: none; }
.reveal-delay { transition-delay: .12s; }

/* Cinematic world system */
.hero-copy.reveal { opacity: 1; transform: none; transition: none; }
.realm-humans, [data-realm="humans"] { --realm-accent: #d9b36b; --realm-glow: rgba(217, 179, 107, .2); }
.realm-jinn, [data-realm="jinn"] { --realm-accent: #a9d9e6; --realm-glow: rgba(169, 217, 230, .2); }
.realm-ghosts, [data-realm="ghosts"] { --realm-accent: #d94245; --realm-glow: rgba(217, 66, 69, .2); }
.realm-giants, [data-realm="giants"] { --realm-accent: #b7784e; --realm-glow: rgba(183, 120, 78, .22); }

.legacy-section {
    --scene-shift: 0px;
    position: relative;
    display: grid;
    min-height: 790px;
    align-items: center;
    overflow: hidden;
    isolation: isolate;
    border-block: 1px solid rgba(209,189,150,.1);
    background: #050509;
}
.legacy-section::after { content: ""; position: absolute; z-index: -1; inset: 0; background: linear-gradient(90deg, rgba(5,5,9,.96), rgba(5,5,9,.4) 47%, rgba(5,5,9,.84)), linear-gradient(180deg, rgba(5,5,9,.45), transparent 44%, rgba(5,5,9,.88)); pointer-events: none; }
[dir="rtl"] .legacy-section::after { background: linear-gradient(270deg, rgba(5,5,9,.96), rgba(5,5,9,.4) 47%, rgba(5,5,9,.84)), linear-gradient(180deg, rgba(5,5,9,.45), transparent 44%, rgba(5,5,9,.88)); }
.legacy-art { position: absolute; z-index: -2; inset: 0; margin: 0; }
.legacy-art img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.74) contrast(1.12) brightness(.72); transform: scale(1.055) translate3d(0, var(--scene-shift), 0); will-change: transform; }
.legacy-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(360px, .55fr); align-items: end; gap: clamp(55px, 10vw, 150px); padding-block: 120px; }
.legacy-copy { max-width: 650px; padding: clamp(28px, 4vw, 48px); border-inline-start: 1px solid rgba(209,189,150,.3); background: linear-gradient(90deg, rgba(5,5,9,.72), transparent); backdrop-filter: blur(2px); }
[dir="rtl"] .legacy-copy { background: linear-gradient(270deg, rgba(5,5,9,.72), transparent); }
.legacy-copy h2 { max-width: 650px; margin-bottom: 22px; font-size: clamp(2.5rem, 5vw, 4.8rem); line-height: 1.13; }
.legacy-copy > p { max-width: 590px; color: var(--text-soft); font-size: 1.08rem; }
.legacy-copy blockquote { margin: 28px 0 32px; padding-inline-start: 22px; border-inline-start: 2px solid var(--crimson-bright); color: var(--gold-bright); font-size: clamp(1.2rem, 2.2vw, 1.7rem); line-height: 1.7; }
.legacy-keys { position: relative; z-index: 2; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 0; padding: 0; list-style: none; }
.legacy-keys li { display: grid; min-height: 118px; align-content: end; padding: 18px; border: 1px solid rgba(209,189,150,.3); border-top-color: var(--realm-accent); border-radius: 9px; background: linear-gradient(155deg, rgba(16,16,23,.91), rgba(5,5,9,.96)); box-shadow: inset 0 1px 0 var(--realm-glow), 0 16px 34px rgba(0,0,0,.34); backdrop-filter: blur(10px); }
.legacy-keys span { color: var(--realm-accent); font-family: var(--serif); font-size: .86rem; }
.legacy-keys strong { margin-top: 8px; color: #fff8fb; font-family: var(--serif); font-size: 1.08rem; line-height: 1.35; }

.realm-mural-section {
    --scene-shift: 0px;
    position: relative;
    display: grid;
    min-height: 840px;
    align-items: end;
    overflow: hidden;
    isolation: isolate;
    border-bottom: 1px solid rgba(209,189,150,.1);
    background: #060609;
}
.realm-mural-section::after { content: ""; position: absolute; z-index: -1; inset: 0; background: linear-gradient(180deg, rgba(5,5,9,.82) 0%, rgba(5,5,9,.18) 32%, rgba(5,5,9,.55) 62%, rgba(5,5,9,.98) 100%), linear-gradient(90deg, rgba(5,5,9,.58), transparent 35%, transparent 70%, rgba(5,5,9,.36)); pointer-events: none; }
.realm-mural-art { position: absolute; z-index: -2; inset: 0; margin: 0; }
.realm-mural-art img { width: 100%; height: 100%; object-fit: cover; object-position: center; filter: saturate(.77) contrast(1.08) brightness(.78); transform: scale(1.045) translate3d(0, var(--scene-shift), 0); will-change: transform; }
.realm-mural-content { padding-block: 125px 65px; }
.realm-mural-content .section-heading { max-width: 720px; margin-bottom: clamp(80px, 16vh, 150px); text-shadow: 0 3px 28px #000; }
.realm-mural-content .section-heading p { color: #ddd5df; }
.realm-portals { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.realm-portal { position: relative; display: grid; min-height: 155px; grid-template-columns: 42px 1fr; align-items: end; gap: 14px; overflow: hidden; padding: 20px; border: 1px solid rgba(255,255,255,.14); border-top-color: var(--realm-accent); border-radius: 8px; background: linear-gradient(155deg, rgba(5,5,9,.38), rgba(5,5,9,.84)); box-shadow: inset 0 1px 0 var(--realm-glow); backdrop-filter: blur(10px); transition: transform .28s ease, border-color .28s ease, background .28s ease; }
.realm-portal::before { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 50% 120%, var(--realm-glow), transparent 58%); opacity: 0; transition: opacity .28s ease; }
.realm-portal:hover { border-color: var(--realm-accent); background: rgba(5,5,9,.8); transform: translateY(-8px); }
.realm-portal:hover::before { opacity: 1; }
.realm-portal-index { position: relative; color: var(--realm-accent); font-family: var(--serif); font-size: 1.1rem; }
.realm-portal-copy { position: relative; display: grid; }
.realm-portal-copy small { color: var(--realm-accent); font-size: .66rem; font-weight: 800; }
.realm-portal-copy strong { margin-top: 4px; color: var(--text); font-family: var(--serif); font-size: clamp(1.15rem, 1.7vw, 1.55rem); line-height: 1.2; }
.realm-portal-copy em { margin-top: 11px; color: var(--gold-bright); font-size: .72rem; font-style: normal; font-weight: 800; opacity: .82; }

.world-atlas-hero { min-height: 920px; padding-bottom: 95px; background: radial-gradient(circle at 70% 42%, rgba(209,189,150,.08), transparent 36%), radial-gradient(circle at 12% 58%, rgba(185,30,53,.13), transparent 42%); }
.world-atlas-hero::before { background: linear-gradient(90deg, rgba(185,30,53,.09), transparent 44%); }
.world-atlas-hero .page-hero-grid { grid-template-columns: minmax(330px, .76fr) minmax(500px, 1.24fr); gap: clamp(45px, 7vw, 95px); }
.world-atlas-hero .page-hero-copy h1 { max-width: 630px; font-size: clamp(3rem, 5vw, 5.15rem); line-height: 1.08; }
.atlas-instruction { display: inline-flex; align-items: center; gap: 10px; margin-top: 24px; color: var(--gold); font-size: .78rem; font-weight: 800; letter-spacing: .05em; }
.atlas-instruction span { width: 30px; height: 1px; background: var(--crimson-bright); }
.atlas-stage { --atlas-shift-x: 0px; --atlas-shift-y: 0px; position: relative; width: min(650px, 100%); margin-inline: auto; filter: drop-shadow(0 32px 55px rgba(0,0,0,.48)); }
.atlas-frame { overflow: hidden; margin: 0; padding: 9px; border-color: rgba(209,189,150,.32); border-radius: 7px; background: #17110c; transform: none; }
.atlas-frame::after { inset: 9px; border-color: rgba(54,31,17,.5); }
.atlas-frame img { width: 100%; max-height: none; object-fit: contain; filter: saturate(.84) contrast(1.05) brightness(.85); transform: scale(1.012) translate3d(var(--atlas-shift-x), var(--atlas-shift-y), 0); transition: transform .35s ease-out; will-change: transform; }
.atlas-markers { position: absolute; inset: 9px; pointer-events: none; }
.atlas-marker { position: absolute; display: block; min-width: 145px; padding: 8px 11px 8px 29px; border: 1px solid color-mix(in srgb, var(--realm-accent) 52%, transparent); border-radius: 7px; background: rgba(7,6,6,.82); color: var(--text); box-shadow: 0 10px 24px rgba(0,0,0,.34), 0 0 24px var(--realm-glow); pointer-events: auto; transform: translate(-50%, -50%); backdrop-filter: blur(7px); transition: transform .22s ease, border-color .22s ease, background .22s ease; }
[dir="rtl"] .atlas-marker { padding: 8px 29px 8px 11px; }
.atlas-marker:hover, .atlas-marker:focus-visible { z-index: 5; border-color: var(--realm-accent); background: rgba(5,5,9,.95); transform: translate(-50%, -50%) scale(1.06); }
.atlas-marker > span { position: absolute; top: 50%; inset-inline-start: 10px; width: 9px; aspect-ratio: 1; border: 2px solid #09090d; border-radius: 50%; background: var(--realm-accent); box-shadow: 0 0 0 5px var(--realm-glow), 0 0 18px var(--realm-accent); transform: translateY(-50%); }
.atlas-marker strong, .atlas-marker small { display: block; line-height: 1.25; }
.atlas-marker strong { font-family: var(--serif); font-size: .85rem; }
.atlas-marker small { margin-top: 3px; color: var(--realm-accent); font-size: .58rem; font-weight: 800; }
.atlas-marker-humans { left: 64%; top: 79%; }
.atlas-marker-jinn { left: 55%; top: 15%; }
.atlas-marker-ghosts { left: 24%; top: 47%; }
.atlas-marker-giants { left: 58%; top: 37%; }
.atlas-place-marker { --realm-accent: #e6d2a6; --realm-glow: rgba(230,210,166,.16); min-width: 122px; border-style: dashed; border-color: rgba(230,210,166,.42); background: rgba(10,8,7,.76); }
.atlas-place-marker strong { font-size: .72rem; }
.atlas-place-marker small { color: #d0bea0; font-size: .53rem; }
.atlas-place-dark-forest { --realm-accent: #cf735e; --realm-glow: rgba(207,115,94,.18); left: 81%; top: 44%; }
.atlas-place-northern-sawarkin { left: 39%; top: 64%; }
.atlas-place-southern-sawarkin { left: 36%; top: 75%; }
.realm-card { border-top-color: var(--realm-accent); box-shadow: 0 18px 55px rgba(0,0,0,.2), inset 0 1px 0 var(--realm-glow); }
.realm-card .card-kicker { color: var(--realm-accent); }

.atlas-locations-section { overflow: hidden; background: radial-gradient(circle at 50% 40%, rgba(209,189,150,.075), transparent 52%), linear-gradient(180deg, #09090f, #06060a); }
.atlas-location-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.atlas-location-card { scroll-margin-top: 110px; overflow: hidden; border: 1px solid var(--border); border-top-color: rgba(230,210,166,.52); border-radius: 13px; background: linear-gradient(155deg, rgba(21,19,18,.94), rgba(7,7,11,.98)); box-shadow: 0 22px 58px rgba(0,0,0,.3); }
.atlas-location-card.location-dark-forest { border-top-color: rgba(207,115,94,.72); }
.atlas-location-map { position: relative; height: 245px; overflow: hidden; margin: 0; background: #17110c; }
.atlas-location-map::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 50%, rgba(7,7,11,.86)); pointer-events: none; }
.atlas-location-map img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.72) contrast(1.12) brightness(.8); transform: scale(2.2); transition: transform .8s cubic-bezier(.2,.8,.2,1), filter .4s ease; }
.atlas-location-card:hover .atlas-location-map img { filter: saturate(.9) contrast(1.08) brightness(.9); transform: scale(2.28); }
.location-dark-forest .atlas-location-map img { object-position: 82% 42%; transform-origin: 82% 42%; }
.location-northern-sawarkin .atlas-location-map img { object-position: 39% 64%; transform-origin: 39% 64%; }
.location-southern-sawarkin .atlas-location-map img { object-position: 36% 76%; transform-origin: 36% 76%; }
.atlas-location-map > span { position: absolute; z-index: 2; inset-inline-start: 18px; bottom: 15px; color: rgba(255,248,235,.9); font-family: var(--serif); font-size: 1.7rem; text-shadow: 0 3px 16px #000; }
.atlas-location-copy { padding: 25px 25px 28px; }
.atlas-location-copy > small { color: var(--crimson-bright); font-size: .67rem; font-weight: 800; letter-spacing: .08em; }
.atlas-location-copy h2 { margin: 8px 0 12px; font-size: clamp(1.65rem, 2.4vw, 2.35rem); }
.atlas-location-copy > p:not(.atlas-location-note) { color: var(--muted); font-size: .9rem; line-height: 1.85; }
.atlas-location-note { display: flex; align-items: center; gap: 8px; margin-bottom: 14px; color: var(--gold); font-size: .72rem; font-weight: 800; }
.atlas-location-note i { width: 7px; aspect-ratio: 1; border-radius: 50%; background: #e6d2a6; box-shadow: 0 0 0 4px rgba(230,210,166,.1); }
.location-dark-forest .atlas-location-note i { background: #cf735e; box-shadow: 0 0 0 4px rgba(207,115,94,.1); }
.atlas-location-copy .spoiler-chip { margin-top: 18px; }
.realm-detail .detail-hero { min-height: 820px; }
.realm-detail .detail-hero-grid { grid-template-columns: minmax(330px, .72fr) minmax(460px, 1.28fr); }
.realm-detail .detail-backdrop { opacity: .18; filter: blur(22px) saturate(.62); }
.realm-detail .detail-backdrop::after { background: linear-gradient(90deg, var(--ink) 5%, rgba(5,5,9,.46), var(--ink) 95%), linear-gradient(180deg, rgba(5,5,9,.25), rgba(5,5,9,.85)); }
.realm-hero-number { display: block; margin-bottom: 10px; color: var(--realm-accent); font-family: var(--serif); font-size: 1.1rem; letter-spacing: .18em; }
.realm-detail .detail-copy .eyebrow, .realm-detail .facts-panel dd { color: var(--realm-accent); }
.realm-detail .detail-copy h1 { font-size: clamp(3.2rem, 6vw, 6rem); text-wrap: balance; }
.realm-detail .detail-image { aspect-ratio: 4/3; border-color: color-mix(in srgb, var(--realm-accent) 45%, transparent); border-radius: 15px 15px 80px 15px; box-shadow: 0 34px 90px rgba(0,0,0,.52), 0 0 55px var(--realm-glow); }
[dir="rtl"] .realm-detail .detail-image { border-radius: 15px 15px 15px 80px; }
.realm-detail .detail-image img { filter: saturate(.72) contrast(1.08) brightness(.86); }
.realm-detail .prose-panel, .realm-detail .facts-panel { border-top-color: var(--realm-accent); }
.realm-detail .next-card { border-top-color: var(--realm-accent); }
.realm-detail .next-card span { color: var(--realm-accent); }

.featured-character-grid, .character-index-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.portrait-card { border-top-color: rgba(209,189,150,.3); }
.portrait-card .portrait-media img { filter: saturate(.58) sepia(.06) contrast(1.1) brightness(.84); }
.portrait-card:hover .portrait-media img { filter: saturate(.82) sepia(.03) contrast(1.08) brightness(.91); }
.featured-character-grid .portrait-content h3,
.character-index-grid .portrait-content h2 { font-size: clamp(1.75rem, 2.65vw, 2.85rem); line-height: 1.08; text-wrap: balance; }
.character-index-grid .portrait-content { min-height: 245px; }

@media (max-width: 1080px) {
    .site-nav { gap: 0; }
    .site-nav a { padding-inline: 7px; font-size: .82rem; }
    .nav-actions .button { display: none; }
    .realm-grid, .character-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .timeline { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .timeline-item { min-height: 0; }
    .focus-grid { grid-template-columns: repeat(2, 1fr); }
    .archive-index-grid, .rights-grid { grid-template-columns: repeat(2, 1fr); }
    .home-journal-grid { grid-template-columns: repeat(2, 1fr); }
    .realm-portals { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .legacy-grid { grid-template-columns: minmax(0, 1fr) minmax(300px, .65fr); gap: 40px; }
    .world-atlas-hero .page-hero-grid { grid-template-columns: minmax(290px, .7fr) minmax(420px, 1.3fr); gap: 35px; }
}

@media (max-width: 820px) {
    :root { --shell: min(100% - 30px, 680px); }
    .section { padding-block: 76px; }
    .site-header { background: rgba(5,5,9,.88); border-color: var(--border); backdrop-filter: blur(16px); }
    .nav-shell { min-height: 72px; }
    .menu-toggle { display: block; order: 3; }
    .site-nav { position: absolute; top: 72px; right: 0; left: 0; display: none; flex-direction: column; align-items: stretch; padding: 12px 20px 22px; border-bottom: 1px solid var(--border); background: rgba(5,5,9,.98); }
    .site-nav.open { display: flex; }
    .site-nav a { padding: 11px 8px; font-size: .95rem; }
    .site-nav a::after { display: none; }
    .nav-actions { margin-inline-start: auto; }
    .brand-copy { display: none; }
    .hero { min-height: max(760px, 100svh); padding-top: 105px; }
    .hero-grid, .page-hero-grid, .detail-hero-grid, .split-grid, .contact-grid, .content-sidebar-grid, .archive-hero-grid, .field-record-grid { grid-template-columns: 1fr; }
    .journal-card { grid-template-columns: 1fr; }
    .hero-copy { padding-block: 25px 95px; text-align: center; }
    .hero-copy h1, .hero-lead { margin-inline: auto; }
    .hero-actions, .inline-links { justify-content: center; }
    .hero-backdrop::after, [dir="ltr"] .hero-backdrop::after { background: linear-gradient(180deg, rgba(5,5,9,.72) 0%, rgba(5,5,9,.52) 48%, rgba(5,5,9,.82) 100%); }
    .hero-backdrop img { object-position: 48% center; filter: saturate(.75) contrast(1.08) brightness(.62); }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .stat:nth-child(3) { border-inline-start: 0; border-top: 1px solid var(--border); }
    .stat:nth-child(4) { border-top: 1px solid var(--border); }
    .story-visual { order: 2; min-height: 480px; }
    .section-heading.align-start { text-align: center; margin-inline: auto; }
    .media-heading-row { align-items: center; flex-direction: column; }
    .media-heading-row .section-heading { text-align: center; }
    .media-heading-row .section-heading.align-start { margin-inline: auto; }
    .author-monogram { margin-inline: auto; }
    .page-hero, .release-hero { min-height: auto; padding-top: 125px; }
    .page-hero-copy { text-align: center; }
    .page-hero-copy .hero-lead { margin-inline: auto; }
    .page-hero-copy .hero-actions, .page-hero-copy .tag-list { justify-content: center; }
    .book-visual, .author-mark-large, .map-frame { margin-top: 20px; }
    .facts-panel { position: static; }
    .detail-copy { text-align: center; }
    .detail-image { width: min(470px, 90%); margin-inline: auto; }
    .detail-hero { min-height: auto; padding-top: 125px; }
    .character-form-panel { grid-template-columns: 1fr; }
    .character-form-panel figure { min-height: auto; aspect-ratio: 4/5; }
    .next-grid { grid-template-columns: 1fr; }
    .world-guides-grid { grid-template-columns: 1fr; }
    .archive-hero { min-height: auto; padding-top: 125px; }
    .archive-hero .page-hero-copy { text-align: center; }
    .archive-status { justify-content: center; }
    .archive-people-grid { grid-template-columns: repeat(2, 1fr); }
    .creature-entry { grid-template-columns: 1fr; }
    .creature-entry:nth-child(even) figure { order: 0; }
    .creature-entry figure { width: min(440px, 100%); margin-inline: auto; }
    .contact-grid .section-heading { text-align: center; }
    .footer-grid { flex-direction: column; align-items: flex-start; }
    .legacy-section { min-height: auto; }
    .legacy-section::after, [dir="rtl"] .legacy-section::after { background: linear-gradient(180deg, rgba(5,5,9,.82), rgba(5,5,9,.42) 42%, rgba(5,5,9,.94)); }
    .legacy-grid { grid-template-columns: 1fr; gap: 32px; padding-block: 92px; }
    .legacy-copy { max-width: 670px; margin-inline: auto; border-inline-start: 0; border-top: 1px solid rgba(209,189,150,.3); background: rgba(5,5,9,.58); text-align: center; }
    .legacy-copy blockquote { padding: 20px 0 0; border-inline-start: 0; border-top: 1px solid var(--crimson-bright); }
    .legacy-keys { width: min(620px, 100%); margin-inline: auto; }
    .realm-mural-section { min-height: 900px; }
    .realm-mural-content { padding-block: 100px 55px; }
    .realm-mural-content .section-heading { margin-bottom: 210px; text-align: center; }
    .realm-portals { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .world-atlas-hero { padding-top: 125px; padding-bottom: 80px; }
    .world-atlas-hero .page-hero-grid { grid-template-columns: 1fr; }
    .world-atlas-hero .page-hero-copy { text-align: center; }
    .world-atlas-hero .page-hero-copy h1, .world-atlas-hero .page-hero-copy .hero-lead { margin-inline: auto; }
    .atlas-instruction { justify-content: center; }
    .atlas-stage { width: min(610px, 100%); }
    .atlas-location-grid { grid-template-columns: 1fr; width: min(620px, 100%); margin-inline: auto; }
    .atlas-location-card { display: grid; grid-template-columns: minmax(220px, .8fr) minmax(0, 1.2fr); }
    .atlas-location-map { height: 100%; min-height: 300px; }
    .realm-detail .detail-hero { min-height: auto; }
    .realm-detail .detail-hero-grid { grid-template-columns: 1fr; }
    .realm-detail .detail-copy { text-align: center; }
    .realm-detail .detail-copy .hero-lead { margin-inline: auto; }
    .realm-detail .detail-image { width: min(600px, 100%); margin-inline: auto; }
    .book-journey-section, .book-journey-content { min-height: 660px; }
    .book-journey-section::after, [dir="rtl"] .book-journey-section::after { background: linear-gradient(180deg, rgba(5,5,9,.4), rgba(5,5,9,.58) 45%, rgba(5,5,9,.96)); }
    .book-journey-content { align-items: end; padding-bottom: 58px; }
    .book-journey-content .section-heading, [dir="rtl"] .book-journey-content .section-heading { width: min(650px, 100%); padding: 34px 26px; border-inline-start: 0; border-top: 1px solid rgba(209,189,150,.35); background: rgba(5,5,9,.64); text-align: center; }
    .book-journey-content .section-heading p { margin-inline: auto; }
    .reading-header { min-height: 620px; }
}

@media (max-width: 580px) {
    h1 { font-size: clamp(2.5rem, 13vw, 4rem); }
    [dir="ltr"] .hero-copy h1 { font-size: 2.5rem; }
    .nav-actions .language-link { font-size: .75rem; }
    .realm-grid, .character-grid, .focus-grid, .theme-list, .form-row, .timeline, .author-facts, .archive-index-grid, .archive-people-grid, .field-preview, .rights-grid, .home-journal-grid { grid-template-columns: 1fr; }
    .story-visual { min-height: 440px; }
    .story-cover { width: min(255px, 70vw); }
    .story-cover figcaption { right: -18px; bottom: 22px; min-width: 165px; }
    [dir="ltr"] .story-cover figcaption { right: auto; left: -18px; }
    .glossary-grid { grid-template-columns: 1fr; }
    .guide-card { grid-template-columns: 45px 1fr; }
    .image-card, .portrait-card { max-width: 430px; width: 100%; margin-inline: auto; }
    .book-list-item { grid-template-columns: 55px 1fr; gap: 14px; }
    .book-list-item > span { font-size: 1.6rem; }
    .prose-panel, .facts-panel, .quote-panel, .contact-form { padding: 24px 20px; }
    .form-tabs { grid-template-columns: 1fr; }
    .character-form-copy { padding: 30px 22px; }
    .video-card { flex-basis: calc(100vw - 70px); width: calc(100vw - 70px); }
    .hero-scroll-cue span { display: none; }
    .legal-section { grid-template-columns: 45px 1fr; gap: 12px; }
    .archive-chapter-heading, .archive-chronicle li { grid-template-columns: 45px 1fr; gap: 12px; }
    .archive-realm { grid-template-columns: 1fr; padding: 12px; }
    .archive-realm > div { padding: 6px 8px 12px; }
    .consent-banner { right: 20px; left: 20px; width: auto; align-items: stretch; flex-direction: column; }
    .consent-actions .button { flex: 1; }
    .footer-links { flex-direction: column; gap: 10px; }
    .article-body { padding-block: 55px 80px; }
    .legacy-grid { padding-block: 75px; }
    .legacy-copy { padding: 28px 20px; }
    .legacy-copy h2 { font-size: clamp(2.35rem, 12vw, 3.4rem); }
    .legacy-keys li { min-height: 100px; padding: 14px; }
    .realm-mural-section { min-height: 930px; }
    .realm-mural-art img { object-position: 49% center; }
    .realm-mural-content { padding-block: 82px 34px; }
    .realm-mural-content .section-heading { margin-bottom: 250px; }
    .realm-portals { gap: 7px; }
    .realm-portal { min-height: 128px; grid-template-columns: 28px 1fr; gap: 8px; padding: 14px 11px; }
    .realm-portal-copy strong { font-size: 1rem; }
    .realm-portal-copy small, .realm-portal-copy em { font-size: .58rem; }
    .world-atlas-hero .page-hero-copy h1 { font-size: clamp(2.7rem, 13vw, 3.8rem); }
    .atlas-frame { padding: 5px; }
    .atlas-frame::after, .atlas-markers { inset: 5px; }
    .atlas-marker { min-width: 92px; padding: 6px 7px 6px 21px; border-radius: 5px; }
    [dir="rtl"] .atlas-marker { padding: 6px 21px 6px 7px; }
    .atlas-marker > span { inset-inline-start: 7px; width: 7px; box-shadow: 0 0 0 3px var(--realm-glow), 0 0 12px var(--realm-accent); }
    .atlas-marker strong { font-size: .62rem; }
    .atlas-marker small { display: none; }
    .atlas-marker-humans { left: 64%; top: 79%; }
    .atlas-marker-jinn { left: 55%; top: 15%; }
    .atlas-marker-ghosts { left: 24%; top: 47%; }
    .atlas-marker-giants { left: 58%; top: 37%; }
    .atlas-place-marker { min-width: 76px; padding: 5px 6px 5px 18px; }
    [dir="rtl"] .atlas-place-marker { padding: 5px 18px 5px 6px; }
    .atlas-place-marker strong { font-size: .53rem; }
    .atlas-place-dark-forest { left: 81%; top: 44%; }
    .atlas-place-northern-sawarkin { left: 39%; top: 64%; }
    .atlas-place-southern-sawarkin { left: 36%; top: 75%; }
    .character-index-grid .portrait-content { min-height: 0; }
    .atlas-location-card { display: block; }
    .atlas-location-map { min-height: 230px; }
    .book-journey-section, .book-journey-content { min-height: 610px; }
    .book-journey-art img { object-position: 53% center; }
    .book-journey-content { padding-bottom: 28px; }
    .book-journey-content .section-heading { padding: 28px 18px; }
    .book-journey-content h2 { font-size: clamp(2.2rem, 11vw, 3.25rem); }
    .reading-header { min-height: 570px; padding-top: 125px; padding-bottom: 55px; }
    .reading-scene img { object-position: 54% center; }
}

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