:root {
    --ink: #050507;
    --charcoal: #0b0d12;
    --night: #101521;
    --indigo: #141d32;
    --wine: #441b22;
    --saffron: #b56d28;
    --gold: #d8b65a;
    --gold-bright: #f4dc8d;
    --ivory: #f3ead8;
    --muted: #b9ac93;
    --glass: rgba(12, 15, 22, 0.58);
    --line: rgba(216, 182, 90, 0.24);
    --font-display: "Cinzel", "Playfair Display", serif;
    --font-serif: "Playfair Display", Georgia, serif;
    --font-marathi: "Noto Serif Devanagari", "Kohinoor Devanagari", "Mangal", serif;
    --font-body: "Inter", Arial, sans-serif;
    --shadow-gold: 0 0 34px rgba(216, 182, 90, 0.22);
    --ease-luxury: cubic-bezier(0.19, 1, 0.22, 1);
    --max: 1180px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 92px;
}

body {
    min-height: 100vh;
    overflow-x: hidden;
    background:
        radial-gradient(circle at 15% 8%, rgba(181, 109, 40, 0.22), transparent 32rem),
        radial-gradient(circle at 86% 20%, rgba(68, 27, 34, 0.35), transparent 34rem),
        linear-gradient(140deg, var(--ink), var(--night) 48%, #08090c);
    color: var(--ivory);
    font-family: var(--font-body);
    line-height: 1.7;
    text-rendering: geometricPrecision;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input,
textarea {
    font: inherit;
}

#particleCanvas,
.site-texture {
    position: fixed;
    inset: 0;
    pointer-events: none;
}

#particleCanvas {
    z-index: 1;
    opacity: 0.92;
}

.site-texture {
    z-index: 2;
    opacity: 0.2;
    mix-blend-mode: soft-light;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px),
        radial-gradient(circle, rgba(216, 182, 90, 0.2) 1px, transparent 1.5px),
        repeating-linear-gradient(135deg, transparent 0 18px, rgba(244, 220, 141, 0.035) 18px 19px);
    background-size: 74px 74px, 74px 74px, 20px 20px, 46px 46px;
    mask-image: linear-gradient(to bottom, transparent, #000 14%, #000 84%, transparent);
}

.navbar {
    position: fixed;
    inset: 18px 18px auto;
    z-index: 20;
    transition: transform 0.55s var(--ease-luxury), background 0.35s ease, border-color 0.35s ease;
}

.nav-container {
    width: min(var(--max), 100%);
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 12px 16px;
    position: relative;
    border: 1px solid rgba(216, 182, 90, 0.34);
    border-radius: 8px;
    background:
        radial-gradient(circle at var(--nav-x, 50%) 0%, rgba(244, 220, 141, 0.16), transparent 28%),
        linear-gradient(120deg, rgba(255, 255, 255, 0.08), transparent 30%),
        linear-gradient(120deg, rgba(7, 8, 12, 0.66), rgba(20, 29, 50, 0.46));
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.42), inset 0 1px 0 rgba(255, 255, 255, 0.12), 0 0 42px rgba(216, 182, 90, 0.12);
    backdrop-filter: blur(24px) saturate(1.45);
    -webkit-backdrop-filter: blur(24px) saturate(1.45);
    transition: border-color 0.35s ease, box-shadow 0.35s ease, background 0.35s ease;
}

.nav-container::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    pointer-events: none;
    background: linear-gradient(100deg, transparent, rgba(244, 220, 141, 0.12), transparent);
    opacity: 0;
    transform: translateX(-22%);
    transition: opacity 0.4s ease, transform 0.7s var(--ease-luxury);
}

.nav-container:hover::after {
    opacity: 1;
    transform: translateX(22%);
}

.navbar.scrolled .nav-container {
    background:
        linear-gradient(120deg, rgba(255, 255, 255, 0.07), transparent 34%),
        rgba(7, 8, 12, 0.84);
    border-color: rgba(244, 220, 141, 0.42);
    box-shadow: 0 18px 70px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.1), 0 0 46px rgba(216, 182, 90, 0.16);
}

.navbar.hidden {
    transform: translateY(-125%);
}

.nav-logo {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.logo-mark {
    display: inline-grid;
    width: 46px;
    height: 46px;
    place-items: center;
    border: 1px solid rgba(244, 220, 141, 0.32);
    border-radius: 50%;
    overflow: hidden;
    background: radial-gradient(circle at top left, rgba(244, 220, 141, 0.14), transparent 45%);
    box-shadow: 0 0 18px rgba(244, 220, 141, 0.14), 0 10px 30px rgba(0, 0, 0, 0.18);
    transition: transform 0.45s var(--ease-luxury), box-shadow 0.45s ease, border-color 0.35s ease;
}

.nav-logo img,
.logo-mark img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.nav-logo:hover .logo-mark {
    transform: rotate(-8deg) scale(1.04);
    box-shadow: 0 0 44px rgba(244, 220, 141, 0.32);
}

.logo-text,
.footer-brand {
    font: 700 1rem var(--font-display);
    letter-spacing: 0.11em;
    text-transform: uppercase;
    color: var(--gold-bright);
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: clamp(18px, 3vw, 42px);
    list-style: none;
}

.nav-link {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 0;
    color: rgba(243, 234, 216, 0.78);
    font-size: 0.77rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    transition: color 0.25s ease, text-shadow 0.25s ease;
}

.nav-link::before {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(244, 220, 141, 0.18), transparent 68%);
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.55);
    transition: opacity 0.3s ease, transform 0.42s var(--ease-luxury);
}

.nav-link::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 4px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--gold-bright), transparent);
    transform: scaleX(0);
    transition: transform 0.28s ease;
}

.nav-link:hover,
.nav-link.active {
    color: var(--gold-bright);
    text-shadow: 0 0 20px rgba(244, 220, 141, 0.46);
}

.nav-link:hover::before,
.nav-link.active::before {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.nav-link:hover::after,
.nav-link.active::after {
    transform: scaleX(1);
}

.nav-link.active::after {
    height: 2px;
    box-shadow: 0 0 18px rgba(244, 220, 141, 0.68);
}

.hamburger {
    display: none;
    width: 44px;
    height: 44px;
    border: 1px solid var(--line);
    border-radius: 8px;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.025));
    cursor: pointer;
    transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s var(--ease-luxury);
}

.hamburger:hover,
.hamburger.active {
    border-color: rgba(244, 220, 141, 0.55);
    box-shadow: 0 0 24px rgba(216, 182, 90, 0.18);
    transform: translateY(-1px);
}

.hamburger span {
    display: block;
    width: 18px;
    height: 2px;
    margin: 5px auto;
    background: var(--gold-bright);
    transition: transform 0.25s ease, opacity 0.25s ease;
}

.hamburger.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

.hero {
    --hero-scroll-bottom: clamp(18px, 3vh, 30px);
    --hero-scroll-height: 58px;
    --hero-stat-gap: clamp(18px, 3vh, 30px);
    --hero-stats-bottom: calc(var(--hero-scroll-bottom) + var(--hero-scroll-height) + var(--hero-stat-gap));
    position: relative;
    z-index: 3;
    min-height: max(100svh, 720px);
    display: grid;
    place-items: center;
    padding: 126px 22px calc(var(--hero-stats-bottom) + 82px);
    overflow: hidden;
    isolation: isolate;
}

.hero-bg-image {
    position: absolute;
    inset: -7%;
    z-index: -4;
    background-image:
        linear-gradient(90deg, rgba(5, 5, 7, 0.88) 0%, rgba(5, 5, 7, 0.42) 46%, rgba(5, 5, 7, 0.9) 100%),
        linear-gradient(to bottom, rgba(5, 5, 7, 0.28), rgba(5, 5, 7, 0.56) 58%, var(--ink) 98%),
        url("https://cdn.pixabay.com/photo/2014/07/30/22/53/palace-405618_1280.jpg");
    background-position: center;
    background-size: cover;
    filter: saturate(0.76) contrast(1.2) brightness(0.62);
    opacity: 0.9;
    transform: translate3d(0, 0, 0) scale(1.04);
    will-change: transform;
}

.hero-bg-image::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 50% 34%, rgba(216, 182, 90, 0.22), transparent 21rem),
        linear-gradient(115deg, rgba(68, 27, 34, 0.52), transparent 34%, rgba(7, 11, 19, 0.72)),
        linear-gradient(to bottom, rgba(0, 0, 0, 0.16), transparent 28%, rgba(0, 0, 0, 0.62) 92%),
        repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.028) 0 1px, transparent 1px 4px);
    mix-blend-mode: multiply;
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -3;
    background:
        linear-gradient(to bottom, rgba(5, 5, 7, 0.08), rgba(5, 5, 7, 0.62) 62%, var(--ink)),
        radial-gradient(circle at 50% 34%, rgba(244, 220, 141, 0.24), transparent 16rem),
        radial-gradient(circle at 74% 54%, rgba(181, 109, 40, 0.28), transparent 30rem),
        radial-gradient(circle at 22% 62%, rgba(68, 27, 34, 0.5), transparent 32rem),
        linear-gradient(135deg, #050507 0%, #111827 42%, #2e171d 100%);
    opacity: 0.92;
}

.hero::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -2;
    background:
        radial-gradient(ellipse at 50% 50%, transparent 0 36%, rgba(0, 0, 0, 0.4) 76%, rgba(0, 0, 0, 0.78) 100%),
        linear-gradient(90deg, rgba(0, 0, 0, 0.58), transparent 20%, transparent 80%, rgba(0, 0, 0, 0.62)),
        linear-gradient(115deg, transparent 0 18%, rgba(216, 182, 90, 0.06) 18% 18.4%, transparent 18.4% 50%, rgba(216, 182, 90, 0.04) 50% 50.3%, transparent 50.3%),
        repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.028) 0 1px, transparent 1px 16px);
    opacity: 0.72;
}

.cinema-lighting {
    position: absolute;
    inset: -12% -12%;
    z-index: -2;
    pointer-events: none;
    filter: saturate(1.12);
}

.light-beam,
.light-bloom {
    position: absolute;
    display: block;
    pointer-events: none;
}

.light-beam {
    width: 58vw;
    height: 135vh;
    opacity: 0.2;
    filter: blur(34px);
    mix-blend-mode: screen;
    background: linear-gradient(100deg, transparent, rgba(244, 220, 141, 0.26) 42%, rgba(181, 109, 40, 0.1), transparent);
    animation: beamDrift 12s var(--ease-luxury) infinite alternate;
}

.beam-one {
    top: -28vh;
    left: -12vw;
    transform: rotate(18deg);
}

.beam-two {
    right: -24vw;
    top: -16vh;
    opacity: 0.14;
    transform: rotate(-22deg);
    animation-duration: 15s;
}

.light-bloom {
    width: clamp(240px, 36vw, 620px);
    aspect-ratio: 1;
    border-radius: 50%;
    filter: blur(42px);
    mix-blend-mode: screen;
    background: radial-gradient(circle, rgba(244, 220, 141, 0.32), rgba(181, 109, 40, 0.1) 44%, transparent 68%);
    animation: bloomPulse 7s ease-in-out infinite;
}

.bloom-one {
    left: 50%;
    top: 22%;
    transform: translate(-50%, -50%);
}

.bloom-two {
    right: 5%;
    bottom: 10%;
    width: clamp(200px, 28vw, 480px);
    opacity: 0.55;
    animation-delay: -2.5s;
}

.hero-atmosphere {
    position: absolute;
    inset: 0;
    z-index: -1;
}

.fog-layer {
    position: absolute;
    left: -30vw;
    right: -30vw;
    pointer-events: none;
    opacity: 0.42;
    filter: blur(18px);
    will-change: transform;
    background:
        radial-gradient(ellipse at 18% 55%, rgba(232, 221, 195, 0.18), transparent 34%),
        radial-gradient(ellipse at 46% 50%, rgba(166, 146, 108, 0.12), transparent 36%),
        radial-gradient(ellipse at 78% 62%, rgba(232, 221, 195, 0.16), transparent 32%);
    mask-image: linear-gradient(90deg, transparent, #000 14%, #000 86%, transparent);
}

.fog-back {
    top: 22vh;
    height: 28vh;
    opacity: 0.28;
    animation: fogDrift 28s linear infinite alternate;
}

.fog-front {
    bottom: 7vh;
    height: 34vh;
    opacity: 0.38;
    filter: blur(24px);
    animation: fogDrift 38s linear infinite alternate-reverse;
}

.mountain-haze {
    position: absolute;
    left: -8vw;
    right: -8vw;
    bottom: 18vh;
    height: 26vh;
    opacity: 0.44;
    background:
        linear-gradient(to top, rgba(5, 5, 7, 0.82), transparent 58%),
        linear-gradient(140deg, transparent 0 12%, rgba(19, 23, 32, 0.85) 12% 28%, transparent 28% 37%, rgba(27, 24, 31, 0.82) 37% 51%, transparent 51% 62%, rgba(16, 21, 33, 0.88) 62% 78%, transparent 78%);
    clip-path: polygon(0 100%, 0 74%, 13% 46%, 23% 71%, 38% 31%, 51% 70%, 66% 38%, 78% 72%, 90% 43%, 100% 76%, 100% 100%);
    filter: blur(1px);
}

.fort-silhouette {
    position: absolute;
    left: -4vw;
    right: -4vw;
    bottom: -1px;
    height: min(34vh, 310px);
    background:
        linear-gradient(to top, rgba(5, 5, 7, 0.98), rgba(5, 5, 7, 0.84) 56%, transparent 57%),
        linear-gradient(90deg, transparent 0 4%, #050507 4% 12%, transparent 12% 18%, #050507 18% 31%, transparent 31% 38%, #050507 38% 50%, transparent 50% 57%, #050507 57% 68%, transparent 68% 75%, #050507 75% 88%, transparent 88%);
    clip-path: polygon(0 100%, 0 52%, 6% 52%, 6% 35%, 9% 35%, 9% 52%, 18% 52%, 18% 30%, 22% 30%, 22% 52%, 34% 52%, 34% 41%, 39% 22%, 44% 41%, 44% 52%, 56% 52%, 56% 30%, 60% 30%, 60% 52%, 72% 52%, 72% 37%, 75% 37%, 75% 52%, 86% 52%, 86% 31%, 90% 31%, 90% 52%, 100% 52%, 100% 100%);
    filter: drop-shadow(0 -18px 45px rgba(216, 182, 90, 0.08));
    transform: translate3d(0, 0, 0);
}

.hero-crest {
    position: absolute;
    top: 18%;
    right: 8%;
    color: rgba(216, 182, 90, 0.1);
    font-family: var(--font-serif);
    font-size: clamp(5rem, 15vw, 13rem);
    font-weight: 900;
    animation: crestGlow 7s ease-in-out infinite;
    will-change: transform;
}

.hero-content {
    width: min(920px, 100%);
    text-align: center;
    transform: translateY(-2vh);
    will-change: transform;
}

.eyebrow,
.section-kicker {
    margin-bottom: 18px;
    color: var(--gold-bright);
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.28em;
    text-transform: uppercase;
}

.hero-title {
    color: transparent;
    background: linear-gradient(180deg, #fff8df 0%, var(--ivory) 42%, #b99b54 100%);
    -webkit-background-clip: text;
    background-clip: text;
    font: 800 clamp(3.35rem, 9.5vw, 9.8rem) / 0.86 var(--font-display);
    letter-spacing: 0.035em;
    filter: drop-shadow(0 0 30px rgba(216, 182, 90, 0.26)) drop-shadow(0 28px 64px rgba(0, 0, 0, 0.78));
}

.hero-title::after {
    content: "";
    display: block;
    width: min(360px, 70vw);
    height: 1px;
    margin: 30px auto 0;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
    box-shadow: var(--shadow-gold);
}

.hero-subtitle {
    max-width: 720px;
    margin: 28px auto 0;
    color: rgba(243, 234, 216, 0.86);
    font: 600 clamp(1.02rem, 2.2vw, 1.34rem) / 1.78 var(--font-serif);
    text-shadow: 0 10px 36px rgba(0, 0, 0, 0.7);
    text-wrap: balance;
}

.hero-author {
    margin-top: 18px;
    color: var(--muted);
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.25em;
    text-transform: uppercase;
}

.hero-actions {
    display: flex;
    justify-content: center;
    gap: 14px;
    flex-wrap: wrap;
    margin-top: 36px;
}

.hero-stats {
    position: absolute;
    left: 50%;
    bottom: var(--hero-stats-bottom);
    display: flex;
    gap: 10px;
    transform: translateX(-50%);
    color: rgba(243, 234, 216, 0.64);
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.hero-stats span {
    padding: 8px 12px;
    border: 1px solid rgba(216, 182, 90, 0.2);
    border-radius: 999px;
    background: rgba(5, 5, 7, 0.28);
    backdrop-filter: blur(12px);
}

.hero-stats.reveal {
    transform: translateX(-50%) translateY(24px) scale(0.985);
}

.hero-stats.reveal.visible {
    transform: translateX(-50%) translateY(0);
}

.cta-button,
.ghost-button,
.book-btn,
.submit-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 24px;
    border-radius: 4px;
    overflow: hidden;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    transition: transform 0.35s var(--ease-luxury), box-shadow 0.35s ease, border-color 0.35s ease, background 0.35s ease;
}

.cta-button::before,
.ghost-button::before,
.book-btn::before,
.submit-btn::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(100deg, transparent 18%, rgba(255, 255, 255, 0.42), transparent 82%);
    transform: translateX(-120%);
    transition: transform 0.7s var(--ease-luxury);
}

.cta-button:hover::before,
.ghost-button:hover::before,
.book-btn:hover::before,
.submit-btn:hover::before {
    transform: translateX(120%);
}

.cta-button,
.submit-btn {
    border: 1px solid rgba(244, 220, 141, 0.7);
    background: linear-gradient(135deg, var(--gold-bright), var(--gold) 45%, var(--saffron));
    color: #171007;
    box-shadow: 0 16px 42px rgba(216, 182, 90, 0.26);
}

.ghost-button,
.book-btn {
    border: 1px solid var(--line);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.02));
    color: var(--gold-bright);
    backdrop-filter: blur(12px);
}

.cta-button:hover,
.ghost-button:hover,
.book-btn:hover,
.submit-btn:hover {
    transform: translateY(-4px);
    box-shadow: 0 24px 62px rgba(216, 182, 90, 0.32), 0 0 26px rgba(244, 220, 141, 0.16);
}

.scroll-cue {
    position: absolute;
    bottom: var(--hero-scroll-bottom);
    left: 50%;
    display: grid;
    justify-items: center;
    gap: 8px;
    transform: translateX(-50%);
    color: rgba(243, 234, 216, 0.62);
    font-size: 0.68rem;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    min-height: var(--hero-scroll-height);
    width: max-content;
    max-width: 100%;
}

.scroll-cue i {
    width: 1px;
    height: 42px;
    background: linear-gradient(transparent, var(--gold), transparent);
    animation: scrollPulse 1.8s ease-in-out infinite;
}

.section-band {
    position: relative;
    z-index: 3;
    padding: clamp(78px, 10vw, 140px) 22px;
    overflow: hidden;
}

.section-band::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    border-top: 1px solid rgba(216, 182, 90, 0.12);
    background:
        radial-gradient(circle at 12% 30%, rgba(181, 109, 40, 0.11), transparent 24rem),
        radial-gradient(circle at 88% 70%, rgba(216, 182, 90, 0.08), transparent 25rem),
        linear-gradient(180deg, rgba(255, 255, 255, 0.018), transparent 18%, transparent 82%, rgba(216, 182, 90, 0.035));
}

.section-band::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 0;
    width: min(920px, 86vw);
    height: 1px;
    transform: translateX(-50%);
    background: linear-gradient(90deg, transparent, rgba(244, 220, 141, 0.44), transparent);
    box-shadow: 0 0 26px rgba(216, 182, 90, 0.24);
}

.section-shell {
    width: min(var(--max), 100%);
    margin: 0 auto;
}

.about-grid,
.contact-grid {
    display: grid;
    grid-template-columns: minmax(320px, 0.9fr) minmax(0, 1.1fr);
    gap: clamp(34px, 7vw, 86px);
    align-items: center;
}

.contact-grid {
    grid-template-columns: minmax(0, 1fr) minmax(310px, 0.82fr);
}

.section-title {
    max-width: 780px;
    color: var(--ivory);
    font: 700 clamp(2rem, 5vw, 4.2rem) / 1.02 var(--font-serif);
    letter-spacing: 0.01em;
    text-wrap: balance;
}

.about-copy p:not(.section-kicker),
.contact-copy p {
    margin-top: 28px;
    color: rgba(243, 234, 216, 0.7);
    font-size: 1rem;
}

.about-copy .section-title {
    font-size: clamp(2.4rem, 5.6vw, 4.8rem);
}

.about-copy .section-title::after {
    content: "";
    display: block;
    width: min(220px, 52vw);
    height: 1px;
    margin-top: 24px;
    background: linear-gradient(90deg, var(--gold-bright), rgba(216, 182, 90, 0.12), transparent);
    box-shadow: 0 0 22px rgba(216, 182, 90, 0.22);
}

.about-copy p:not(.section-kicker) {
    max-width: 680px;
    line-height: 1.95;
}

.author-highlights {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin-top: 34px;
}

.author-highlights div {
    padding: 16px 18px;
    border: 1px solid rgba(216, 182, 90, 0.2);
    border-radius: 8px;
    background:
        linear-gradient(135deg, rgba(244, 220, 141, 0.06), rgba(255, 255, 255, 0.02)),
        rgba(5, 5, 7, 0.22);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.author-highlights dt {
    color: var(--gold-bright);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.author-highlights dd {
    margin-top: 6px;
    color: rgba(243, 234, 216, 0.76);
    font-family: var(--font-serif);
    font-size: 1.02rem;
}

.author-panel {
    position: relative;
    min-height: auto;
    display: grid;
    place-items: center;
    padding: clamp(18px, 3.5vw, 34px);
    border: 1px solid rgba(216, 182, 90, 0.32);
    border-radius: 12px;
    background:
        radial-gradient(circle at 50% 42%, rgba(244, 220, 141, 0.16), transparent 18rem),
        linear-gradient(135deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.015)),
        radial-gradient(circle at 18% 14%, rgba(181, 109, 40, 0.18), transparent 16rem),
        rgba(5, 5, 7, 0.34);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1), 0 30px 90px rgba(0, 0, 0, 0.38), 0 0 42px rgba(216, 182, 90, 0.08);
    overflow: hidden;
    transform-style: preserve-3d;
    transition: transform 0.55s var(--ease-luxury), box-shadow 0.45s ease;
}

.author-panel:hover {
    transform: translateY(-8px);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12), 0 36px 96px rgba(0, 0, 0, 0.48), 0 0 46px rgba(216, 182, 90, 0.16);
}

.author-panel::before,
.author-panel::after {
    content: "";
    position: absolute;
    inset: 12px;
    width: auto;
    aspect-ratio: 1;
    border: 1px solid rgba(216, 182, 90, 0.28);
    border-radius: 10px;
    transform: none;
    pointer-events: none;
}

.author-panel::after {
    inset: -20%;
    border: 0;
    background:
        radial-gradient(circle at 20% 30%, rgba(244, 220, 141, 0.16) 0 1px, transparent 2px),
        radial-gradient(circle at 70% 64%, rgba(244, 220, 141, 0.12) 0 1px, transparent 2px),
        radial-gradient(circle at 46% 78%, rgba(181, 109, 40, 0.14) 0 1px, transparent 2px);
    background-size: 92px 92px, 126px 126px, 74px 74px;
    animation: portraitParticles 18s linear infinite;
    opacity: 0.62;
}

.ornament-ring {
    position: absolute;
    width: min(500px, 86%);
    aspect-ratio: 1;
    border: 1px solid rgba(216, 182, 90, 0.3);
    border-radius: 12px;
    box-shadow: var(--shadow-gold), inset var(--shadow-gold);
    animation: borderBreathe 5s ease-in-out infinite;
}

.portrait-frame {
    position: relative;
    z-index: 2;
    width: min(440px, 100%);
    aspect-ratio: 1 / 1;
    padding: clamp(8px, 1.4vw, 12px);
    border: 1px solid rgba(244, 220, 141, 0.48);
    border-radius: 12px;
    background:
        linear-gradient(145deg, rgba(244, 220, 141, 0.2), rgba(255, 255, 255, 0.04) 34%, rgba(0, 0, 0, 0.18)),
        rgba(7, 8, 12, 0.46);
    box-shadow:
        0 34px 90px rgba(0, 0, 0, 0.46),
        0 0 42px rgba(216, 182, 90, 0.14),
        inset 0 1px 0 rgba(255, 255, 255, 0.16);
    overflow: hidden;
    transform: translateZ(24px);
}

.portrait-frame::before {
    content: "";
    position: absolute;
    inset: 18px;
    z-index: 2;
    border: 1px solid rgba(244, 220, 141, 0.28);
    border-radius: 5px;
    pointer-events: none;
    box-shadow: inset 0 0 28px rgba(216, 182, 90, 0.08);
}

.portrait-frame::after {
    content: "";
    position: absolute;
    inset: -20% -60%;
    z-index: 3;
    background: linear-gradient(105deg, transparent 42%, rgba(255, 255, 255, 0.2) 49%, rgba(244, 220, 141, 0.18) 52%, transparent 60%);
    transform: translateX(-42%);
    transition: transform 0.9s var(--ease-luxury);
    pointer-events: none;
    mix-blend-mode: screen;
}

.author-panel:hover .portrait-frame::after {
    transform: translateX(42%);
}

.portrait-frame img {
    display: block;
    width: 100%;
    height: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    object-position: center 34%;
    image-rendering: auto;
    border-radius: 6px;
    filter: saturate(0.94) contrast(1.08) brightness(0.92);
    transform: scale(1.01);
    transition: transform 0.7s var(--ease-luxury), filter 0.45s ease;
}

.author-panel:hover .portrait-frame img {
    transform: scale(1.045);
    filter: saturate(1.04) contrast(1.12) brightness(0.98);
}

.section-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 28px;
    margin-bottom: 44px;
}

.books-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
}

.books .section-kicker::after {
    content: " / दस्तऐवजी संग्रह";
    color: rgba(243, 234, 216, 0.42);
}

.book-card {
    position: relative;
    display: grid;
    grid-template-rows: auto 1fr;
    min-height: 100%;
    border: 1px solid rgba(216, 182, 90, 0.2);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.035);
    box-shadow: 0 18px 64px rgba(0, 0, 0, 0.26);
    overflow: hidden;
    transform-style: preserve-3d;
    will-change: transform;
    transition: transform 0.55s var(--ease-luxury), border-color 0.35s ease, box-shadow 0.35s ease;
}

.book-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(115deg, transparent 35%, rgba(244, 220, 141, 0.16), transparent 62%);
    transform: translateX(-120%);
    transition: transform 0.7s ease;
}

.book-card:hover {
    transform: translateY(-12px);
    border-color: rgba(244, 220, 141, 0.54);
    box-shadow: 0 30px 90px rgba(0, 0, 0, 0.42), 0 0 34px rgba(216, 182, 90, 0.16);
}

.book-card.tilted {
    transition-duration: 0.12s;
}

.book-card:hover::before {
    transform: translateX(120%);
}

.book-cover {
    position: relative;
    min-height: 310px;
    display: grid;
    place-items: center;
    padding: 26px 22px 32px;
    overflow: hidden;
    isolation: isolate;
    transform: translateZ(18px);
    perspective: 1000px;
}

.book-cover::before {
    content: "";
    position: absolute;
    inset: 16px;
    z-index: -1;
    border: 1px solid rgba(244, 220, 141, 0.22);
    box-shadow: inset 0 0 34px rgba(216, 182, 90, 0.08);
}

.book-cover::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -2;
    background:
        radial-gradient(circle at var(--mx, 50%) var(--my, 34%), rgba(244, 220, 141, 0.22), transparent 8rem),
        repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.035) 0 1px, transparent 1px 9px);
    transition: background 0.2s ease;
}

.book-mockup {
    position: relative;
    width: min(204px, 76%);
    aspect-ratio: 0.68;
    transform: rotateY(-13deg) rotateX(5deg) translateZ(18px);
    transform-style: preserve-3d;
    filter: drop-shadow(22px 30px 32px rgba(0, 0, 0, 0.5));
    transition: transform 0.6s var(--ease-luxury), filter 0.45s ease;
}

.book-card:hover .book-mockup {
    transform: rotateY(-4deg) rotateX(2deg) translateY(-8px) translateZ(28px);
    filter: drop-shadow(30px 38px 38px rgba(0, 0, 0, 0.5)) drop-shadow(0 0 22px rgba(216, 182, 90, 0.16));
}

.book-pages {
    position: absolute;
    inset: 4.5% -7% 4.5% auto;
    width: 15%;
    border-radius: 0 5px 5px 0;
    background:
        repeating-linear-gradient(0deg, rgba(107, 83, 45, 0.34) 0 1px, rgba(246, 227, 178, 0.82) 1px 3px),
        linear-gradient(90deg, #8f7140, #f3ddaa 40%, #7c5e31);
    transform: rotateY(62deg) translateZ(-10px);
    transform-origin: left center;
    box-shadow: inset -8px 0 14px rgba(70, 42, 15, 0.5), 12px 8px 22px rgba(0, 0, 0, 0.24);
}

.book-spine {
    position: absolute;
    inset: 0 auto 0 0;
    width: 18%;
    border-radius: 5px 0 0 5px;
    display: grid;
    place-items: center;
    overflow: hidden;
    background:
        linear-gradient(90deg, rgba(0, 0, 0, 0.46), rgba(255, 255, 255, 0.08) 34%, rgba(0, 0, 0, 0.26)),
        var(--cover-spine, #1d1520);
    transform: translateZ(10px);
    box-shadow: inset -1px 0 0 rgba(244, 220, 141, 0.24), inset 8px 0 18px rgba(0, 0, 0, 0.46);
}

.book-spine span {
    color: rgba(244, 220, 141, 0.74);
    font: 700 0.53rem var(--font-display);
    letter-spacing: 0.14em;
    text-transform: uppercase;
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    white-space: nowrap;
}

.book-front {
    position: absolute;
    inset: 0 0 0 13%;
    display: block;
    padding: 0;
    border-radius: 0 6px 6px 0;
    overflow: hidden;
    background: #120e12;
    box-shadow:
        inset 0 0 0 1px rgba(244, 220, 141, 0.36),
        inset 10px 0 18px rgba(0, 0, 0, 0.36),
        inset -18px 0 32px rgba(255, 255, 255, 0.04),
        0 0 0 1px rgba(0, 0, 0, 0.24);
    transform: translateZ(18px);
}

.book-front::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
    background:
        radial-gradient(circle at var(--mx, 55%) var(--my, 28%), rgba(255, 239, 177, 0.2), transparent 32%),
        linear-gradient(90deg, rgba(0, 0, 0, 0.4), transparent 16%, transparent 76%, rgba(255, 255, 255, 0.08)),
        linear-gradient(180deg, rgba(255, 255, 255, 0.12), transparent 22%, rgba(0, 0, 0, 0.22));
    mix-blend-mode: screen;
    opacity: 0.62;
    transition: opacity 0.35s ease;
}

.book-front::after {
    content: "";
    position: absolute;
    inset: -20% -80%;
    background: linear-gradient(105deg, transparent 42%, rgba(255, 255, 255, 0.32) 49%, rgba(244, 220, 141, 0.18) 52%, transparent 59%);
    transform: translateX(-45%);
    transition: transform 0.85s var(--ease-luxury);
    mix-blend-mode: screen;
}

.book-card:hover .book-front::after {
    transform: translateX(45%);
}

.book-card:hover .book-front::before {
    opacity: 0.9;
}

.book-front img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.003);
    transition: transform 0.65s var(--ease-luxury), filter 0.45s ease;
}

.book-card:hover .book-front img {
    transform: scale(1.035);
    filter: saturate(1.12) contrast(1.06);
}

.book-cover.crown {
    --cover-spine: linear-gradient(180deg, #120b12, #3d1720, #16111c);
    --cover-art:
        radial-gradient(circle at 50% 30%, rgba(244, 220, 141, 0.2), transparent 19%),
        linear-gradient(160deg, rgba(9, 12, 22, 0.2), rgba(74, 31, 39, 0.92)),
        repeating-linear-gradient(135deg, rgba(244, 220, 141, 0.1) 0 1px, transparent 1px 18px),
        linear-gradient(150deg, #1a2135, #4a1f27 62%, #111016);
    background: linear-gradient(150deg, #1a2135, #4a1f27 62%, #111016);
}

.book-cover.sword {
    --cover-spine: linear-gradient(180deg, #0b101a, #22324b, #24180f);
    --cover-art:
        linear-gradient(118deg, transparent 0 47%, rgba(244, 220, 141, 0.48) 47% 48%, transparent 48%),
        radial-gradient(circle at 62% 30%, rgba(244, 220, 141, 0.18), transparent 20%),
        repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.045) 0 1px, transparent 1px 11px),
        linear-gradient(150deg, #111927, #24324a 55%, #3a2617);
    background: linear-gradient(150deg, #111927, #24324a 55%, #3a2617);
}

.book-cover.empire {
    --cover-spine: linear-gradient(180deg, #130e0a, #3a2819, #4a1f27);
    --cover-art:
        radial-gradient(circle at 50% 48%, rgba(216, 182, 90, 0.18), transparent 22%),
        linear-gradient(90deg, transparent 0 20%, rgba(244, 220, 141, 0.08) 20% 21%, transparent 21% 79%, rgba(244, 220, 141, 0.08) 79% 80%, transparent 80%),
        repeating-linear-gradient(0deg, rgba(244, 220, 141, 0.08) 0 1px, transparent 1px 16px),
        linear-gradient(150deg, #15110d, #39291b 48%, #4a1f27);
    background: linear-gradient(150deg, #15110d, #39291b 48%, #4a1f27);
}

.book-series,
.book-meta {
    color: var(--gold-bright);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.book-body {
    position: relative;
    z-index: 1;
    display: grid;
    gap: 16px;
    padding: 24px;
    transform: translateZ(10px);
}

.book-body h3 {
    color: var(--gold-bright);
    font: 700 1.4rem var(--font-serif);
}

.book-body h3[lang="mr"] {
    font-family: var(--font-marathi);
    font-size: 1.32rem;
    line-height: 1.35;
    letter-spacing: 0;
}

.book-body p {
    color: rgba(243, 234, 216, 0.68);
    font-size: 0.95rem;
}

.book-body p[lang="mr"] {
    font-family: var(--font-marathi);
    font-size: 1rem;
    line-height: 1.88;
}

.book-meta {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    color: var(--muted);
}

.book-meta span[lang="mr"] {
    font-family: var(--font-marathi);
    font-size: 0.78rem;
    letter-spacing: 0.04em;
}

.book-btn {
    justify-self: start;
    min-height: 42px;
}

.quote-band {
    position: relative;
    z-index: 3;
    padding: clamp(70px, 9vw, 120px) 22px;
    border-block: 1px solid rgba(216, 182, 90, 0.14);
    background:
        linear-gradient(rgba(5, 5, 7, 0.68), rgba(5, 5, 7, 0.72)),
        radial-gradient(circle at 50% 50%, rgba(216, 182, 90, 0.24), transparent 30rem),
        repeating-linear-gradient(120deg, transparent 0 28px, rgba(216, 182, 90, 0.035) 28px 29px);
    text-align: center;
    overflow: hidden;
}

.quote-band::before {
    content: "";
    position: absolute;
    inset: -30% 20%;
    background: radial-gradient(ellipse, rgba(244, 220, 141, 0.18), transparent 65%);
    filter: blur(28px);
    animation: bloomPulse 8s ease-in-out infinite;
}

.quote-band p {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
    color: var(--ivory);
    font: 700 clamp(1.7rem, 4vw, 3.8rem) / 1.16 var(--font-serif);
}

.contact-form {
    display: grid;
    gap: 16px;
    padding: clamp(20px, 4vw, 34px);
    border: 1px solid var(--line);
    border-radius: 8px;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.025)),
        rgba(5, 5, 7, 0.32);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.09), 0 28px 86px rgba(0, 0, 0, 0.34);
    backdrop-filter: blur(18px);
    max-width: 720px;
    width: min(100%, 720px);
    margin-inline: auto;
}

.contact-copy {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 16px;
}

.contact-actions {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-top: 12px;
}

.contact-icon {
    display: grid;
    place-items: center;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    border: 1px solid rgba(244, 220, 141, 0.22);
    background: rgba(244, 220, 141, 0.08);
    color: var(--gold-bright);
    transition: transform 0.35s var(--ease-luxury), box-shadow 0.35s ease, background 0.35s ease;
    box-shadow: 0 0 0 rgba(216, 182, 90, 0);
}

.contact-icon svg {
    width: 1.35rem;
    height: 1.35rem;
}

.contact-icon:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 0 28px rgba(244, 220, 141, 0.32);
    background: rgba(244, 220, 141, 0.15);
}

.contact-icon:focus-visible {
    outline: 2px solid rgba(244, 220, 141, 0.55);
    outline-offset: 3px;
}

.contact-form label {
    display: grid;
    gap: 8px;
    color: var(--gold-bright);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    border: 1px solid rgba(216, 182, 90, 0.24);
    border-radius: 4px;
    background: rgba(5, 5, 7, 0.52);
    color: var(--ivory);
    padding: 14px 15px;
    outline: none;
    transition: border-color 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.contact-form textarea {
    resize: vertical;
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: rgba(244, 220, 141, 0.72);
    background: rgba(5, 5, 7, 0.72);
    box-shadow: 0 0 0 4px rgba(216, 182, 90, 0.1);
}

.submit-btn {
    border: 0;
    cursor: pointer;
}

.footer {
    position: relative;
    z-index: 3;
    padding: 42px 22px 26px;
    border-top: 1px solid rgba(216, 182, 90, 0.18);
    background:
        radial-gradient(circle at 50% 0, rgba(216, 182, 90, 0.1), transparent 28rem),
        #050507;
}

.footer-container {
    width: min(var(--max), 100%);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 28px;
    align-items: center;
    text-align: center;
}

.footer-intro {
    max-width: 780px;
}

.footer p {
    margin-top: 8px;
    color: rgba(243, 234, 216, 0.58);
    font-size: 0.95rem;
    line-height: 1.7;
}
.footer-links,
.footer-social {
    display: flex;
    gap: 18px;
    align-items: center;
}

.footer-links a,
.footer-social a {
    color: rgba(243, 234, 216, 0.64);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    transition: color 0.25s ease;
}

.footer-social a {
    display: grid;
    width: 38px;
    height: 38px;
    place-items: center;
    border: 1px solid var(--line);
    border-radius: 50%;
}

.footer-links a:hover,
.footer-social a:hover {
    color: var(--gold-bright);
}

.footer-bottom {
    width: min(var(--max), 100%);
    margin: 30px auto 0;
    padding-top: 22px;
    border-top: 1px solid rgba(216, 182, 90, 0.12);
    text-align: center;
}

.back-btn {
    position: absolute;
    top: 140px;
    left: 20px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    border: 1px solid rgba(244, 220, 141, 0.3);
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.05);
    color: var(--gold-bright);
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    text-decoration: none;
    transition: all 0.3s ease;
    z-index: 10;
}

.back-btn:hover {
    background: rgba(244, 220, 141, 0.1);
    border-color: var(--gold-bright);
    color: var(--ivory);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(216, 182, 90, 0.2);
}

.book-detail {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 120px 22px 80px;
}

.book-cover-container {
    display: flex;
    justify-content: center;
    margin-bottom: 40px;
}

.book-cover-container img {
    max-width: 280px;
    width: 100%;
    height: auto;
    border-radius: 8px;
    position: relative;
    background: 
        radial-gradient(circle at 30% 20%, rgba(244, 220, 141, 0.08), transparent 40%),
        radial-gradient(circle at 70% 80%, rgba(216, 182, 90, 0.06), transparent 45%),
        linear-gradient(135deg, rgba(255, 248, 220, 0.1), rgba(245, 222, 179, 0.05));
    border: 2px solid rgba(216, 182, 90, 0.3);
    box-shadow: 
        0 25px 70px rgba(0, 0, 0, 0.5),
        0 15px 35px rgba(0, 0, 0, 0.3),
        0 0 50px rgba(216, 182, 90, 0.2),
        inset 0 0 0 1px rgba(255, 255, 255, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    filter: 
        sepia(0.1) 
        contrast(1.05) 
        brightness(0.98) 
        saturate(0.95);
    transition: transform 0.6s ease, box-shadow 0.6s ease, filter 0.6s ease;
}

.book-cover-container:hover img {
    transform: translateY(-12px) scale(1.03) rotateX(2deg);
    box-shadow: 
        0 35px 90px rgba(0, 0, 0, 0.6),
        0 20px 45px rgba(0, 0, 0, 0.4),
        0 0 70px rgba(216, 182, 90, 0.3),
        inset 0 0 0 1px rgba(255, 255, 255, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.25);
    filter: 
        sepia(0.05) 
        contrast(1.08) 
        brightness(1.02) 
        saturate(1.02);
}

.book-title {
    font: 700 clamp(2.2rem, 6vw, 4.5rem) / 1.1 var(--font-display);
    color: var(--ivory);
    text-align: center;
    margin-bottom: 30px;
    text-shadow: 0 0 30px rgba(244, 220, 141, 0.3);
    letter-spacing: 0.02em;
}

.divider {
    width: 120px;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--gold-bright), transparent);
    border: none;
    margin: 0 auto 40px;
    box-shadow: 0 0 20px rgba(216, 182, 90, 0.4);
}

.book-description {
    max-width: 800px;
    margin: 0 auto 50px;
    padding: 40px;
    border: 1px solid rgba(216, 182, 90, 0.2);
    border-radius: 12px;
    background: rgba(12, 15, 22, 0.6);
    backdrop-filter: blur(20px);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1), 0 20px 60px rgba(0, 0, 0, 0.3);
    text-align: center;
}

.book-description p {
    font: 400 1.2rem / 1.8 var(--font-marathi);
    color: rgba(243, 234, 216, 0.9);
    margin: 0;
}

.reading-options {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.reading-options .cta-button {
    min-width: 200px;
    text-align: center;
}

.reveal {
    opacity: 0;
    filter: blur(10px);
    transform: translateY(42px) scale(0.985);
    transition: opacity 0.95s var(--ease-luxury), transform 0.95s var(--ease-luxury), filter 0.95s ease;
}

.reveal-left {
    transform: translateX(-44px) scale(0.985);
}

.reveal-right {
    transform: translateX(44px) scale(0.985);
}

.reveal.visible {
    opacity: 1;
    filter: blur(0);
    transform: translateY(0);
}

.reveal-left.visible,
.reveal-right.visible {
    transform: translateX(0);
}

.reveal.visible.hero-content {
    transform: translateY(-2vh);
}

@keyframes crestGlow {
    0%, 100% {
        opacity: 0.08;
        transform: translateY(0);
    }
    50% {
        opacity: 0.16;
        transform: translateY(-8px);
    }
}

@keyframes beamDrift {
    0% {
        opacity: 0.13;
        translate: -2% -1%;
    }
    100% {
        opacity: 0.28;
        translate: 4% 2%;
    }
}

@keyframes bloomPulse {
    0%, 100% {
        opacity: 0.46;
        filter: blur(42px) saturate(1);
    }
    50% {
        opacity: 0.82;
        filter: blur(54px) saturate(1.18);
    }
}

@keyframes fogDrift {
    0% {
        transform: translate3d(-3vw, 0, 0) scaleX(1);
    }
    100% {
        transform: translate3d(4vw, -1.5vh, 0) scaleX(1.08);
    }
}

@keyframes scrollPulse {
    0%, 100% {
        opacity: 0.35;
        transform: scaleY(0.65);
    }
    50% {
        opacity: 1;
        transform: scaleY(1);
    }
}

@keyframes rotateSlow {
    to {
        transform: rotate(405deg);
    }
}

@keyframes breathe {
    0%, 100% {
        transform: scale(1);
        opacity: 0.72;
    }
    50% {
        transform: scale(1.05);
        opacity: 1;
    }
}

@keyframes borderBreathe {
    0%, 100% {
        opacity: 0.62;
        box-shadow: 0 0 28px rgba(216, 182, 90, 0.16), inset 0 0 28px rgba(216, 182, 90, 0.1);
    }
    50% {
        opacity: 1;
        box-shadow: 0 0 48px rgba(244, 220, 141, 0.24), inset 0 0 34px rgba(216, 182, 90, 0.14);
    }
}

@keyframes portraitParticles {
    from {
        transform: translate3d(0, 0, 0);
    }
    to {
        transform: translate3d(36px, -42px, 0);
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

@media (max-width: 900px) {
    .hamburger {
        display: block;
        flex: 0 0 auto;
    }

    .nav-container {
        align-items: center;
    }

    .nav-menu {
        position: fixed;
        top: 84px;
        left: 18px;
        right: 18px;
        display: grid;
        gap: 0;
        padding: 16px;
        border: 1px solid rgba(216, 182, 90, 0.3);
        border-radius: 8px;
        background:
            radial-gradient(circle at 50% 0%, rgba(244, 220, 141, 0.16), transparent 34%),
            linear-gradient(135deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.02)),
            rgba(7, 8, 12, 0.92);
        box-shadow: 0 28px 82px rgba(0, 0, 0, 0.58), inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 0 36px rgba(216, 182, 90, 0.12);
        backdrop-filter: blur(22px) saturate(1.35);
        -webkit-backdrop-filter: blur(22px) saturate(1.35);
        transform: translateY(-20px) scale(0.97);
        transform-origin: top center;
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transition: opacity 0.32s ease, transform 0.46s var(--ease-luxury), visibility 0.32s ease;
    }

    .nav-menu.active {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        transform: translateY(0) scale(1);
    }

    .nav-menu li {
        opacity: 0;
        transform: translateY(-8px);
        transition: opacity 0.3s ease, transform 0.42s var(--ease-luxury);
    }

    .nav-menu.active li {
        opacity: 1;
        transform: translateY(0);
    }

    .nav-menu.active li:nth-child(1) {
        transition-delay: 0.04s;
    }

    .nav-menu.active li:nth-child(2) {
        transition-delay: 0.08s;
    }

    .nav-menu.active li:nth-child(3) {
        transition-delay: 0.12s;
    }

    .nav-menu.active li:nth-child(4) {
        transition-delay: 0.16s;
    }

    .nav-link {
        width: 100%;
        justify-content: center;
        padding: 15px;
        border-radius: 6px;
        transition: color 0.25s ease, text-shadow 0.25s ease, background 0.25s ease;
    }

    .nav-link:hover,
    .nav-link.active {
        background: rgba(244, 220, 141, 0.06);
    }

    .about-grid,
    .contact-grid,
    .footer-container {
        grid-template-columns: 1fr;
    }

    .about-grid {
        justify-items: center;
    }

    .about-copy {
        text-align: center;
    }

    .about-copy .section-title::after {
        margin-inline: auto;
        background: linear-gradient(90deg, transparent, var(--gold-bright), transparent);
    }

    .about-copy p:not(.section-kicker) {
        margin-inline: auto;
    }

    .author-highlights {
        max-width: 620px;
        margin-inline: auto;
    }

    .section-heading {
        display: block;
    }

    .books-grid {
        grid-template-columns: 1fr;
    }

    .hero {
        --hero-scroll-bottom: 18px;
        --hero-scroll-height: 58px;
        --hero-stat-gap: 20px;
        min-height: max(100svh, 740px);
    }

    .hero-stats {
        width: min(92vw, 520px);
        flex-wrap: wrap;
        justify-content: center;
        gap: 8px;
    }

    .light-beam {
        width: 78vw;
        opacity: 0.14;
    }

    .mountain-haze {
        bottom: 15vh;
        opacity: 0.34;
    }

    .footer-container,
    .footer-links,
    .footer-social {
        justify-content: center;
        text-align: center;
    }
}

@media (max-width: 560px) {
    .navbar {
        inset: 10px 10px auto;
    }

    .nav-container {
        padding: 10px;
    }

    .logo-mark {
        width: 40px;
        height: 40px;
    }

    .logo-text {
        font-size: 0.78rem;
        letter-spacing: 0.08em;
    }

    .hero {
        --hero-scroll-bottom: 14px;
        --hero-scroll-height: 54px;
        --hero-stat-gap: 18px;
        min-height: max(100svh, 760px);
        padding: 112px 16px calc(var(--hero-stats-bottom) + 96px);
        align-items: start;
        place-items: start center;
    }

    .hero-content {
        margin-top: 8vh;
    }

    .hero-title {
        font-size: clamp(3rem, 17vw, 4.8rem);
    }

    .hero-subtitle {
        margin-top: 22px;
        font-size: 1rem;
    }

    .eyebrow,
    .section-kicker {
        letter-spacing: 0.18em;
    }

    .hero-stats {
        font-size: 0.58rem;
        letter-spacing: 0.12em;
    }

    .hero-stats span {
        padding: 7px 9px;
    }

    .scroll-cue {
        display: grid;
        font-size: 0.56rem;
        letter-spacing: 0.2em;
    }

    .scroll-cue i {
        height: 34px;
    }

    .hero-crest {
        top: 26%;
        right: -10%;
        font-size: 6.5rem;
    }

    .hero-bg-image {
        inset: -4%;
        background-position: 52% center;
        opacity: 0.68;
    }

    .fort-silhouette {
        height: 24vh;
    }

    .hero-actions {
        display: grid;
    }

    .author-highlights {
        grid-template-columns: 1fr;
    }

    .reveal-left,
    .reveal-right {
        transform: translateY(34px) scale(0.985);
    }

    .reveal-left.visible,
    .reveal-right.visible {
        transform: translateY(0);
    }

    .cta-button,
    .ghost-button {
        width: min(100%, 320px);
    }

    .author-panel {
        width: min(100%, 500px);
        min-height: auto;
    }

    .ornament-ring {
        width: min(360px, 86%);
    }

    .portrait-frame {
        width: min(360px, 100%);
    }

    .book-cover {
        min-height: 260px;
    }

    .book-mockup {
        width: min(176px, 72%);
    }

    .book-front {
        border-radius: 0 5px 5px 0;
    }

    .book-meta {
        display: grid;
    }
}

@media (max-width: 768px) {
    .book-detail {
        padding: 100px 16px 60px;
    }

    .back-btn {
        position: static;
        margin-bottom: 30px;
        align-self: flex-start;
        top: auto;
        left: auto;
    }

    .book-cover-container img {
        max-width: 220px;
        box-shadow: 
            0 20px 50px rgba(0, 0, 0, 0.4),
            0 10px 25px rgba(0, 0, 0, 0.25),
            0 0 35px rgba(216, 182, 90, 0.15),
            inset 0 0 0 1px rgba(255, 255, 255, 0.1),
            inset 0 1px 0 rgba(255, 255, 255, 0.15);
    }

    .book-title {
        font-size: clamp(1.8rem, 8vw, 3.5rem);
        margin-bottom: 20px;
    }

    .divider {
        margin-bottom: 30px;
    }

    .book-description {
        padding: 30px 20px;
        margin-bottom: 40px;
    }

    .book-description p {
        font-size: 1rem;
        line-height: 1.7;
    }

    .reading-options {
        gap: 16px;
    }

    .reading-options .cta-button {
        min-width: 160px;
        font-size: 0.85rem;
    }
}
