:root {
    --navy-950: #04101f;
    --navy-900: #07172b;
    --navy-800: #0d2440;
    --navy-700: #17375e;
    --gold: #b58b33;
    --gold-soft: #d2b36c;
    --paper: #ffffff;
    --text: #eef3f8;
    --muted: #9dacbd;
    --line: rgba(255,255,255,.12);
    --page-ratio: 0.720956;
    --book-zoom: 1;
    --book-pan-x: 0px;
    --book-pan-y: 0px;
    --spread-offset: 0%;
}

* { box-sizing: border-box; }

html, body { margin: 0; min-height: 100%; }

body.brochure-body {
    min-height: 100vh;
    min-height: 100dvh;
    overflow-x: hidden;
    background:
        radial-gradient(circle at 18% 10%, rgba(32,78,126,.25), transparent 38%),
        radial-gradient(circle at 80% 84%, rgba(181,139,51,.12), transparent 36%),
        linear-gradient(145deg, var(--navy-950), var(--navy-900) 55%, #061426);
    color: var(--text);
    font-family: Arial, Helvetica, sans-serif;
    -webkit-font-smoothing: antialiased;
}

button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; }
a { color: inherit; text-decoration: none; }

.brochure-app {
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    min-height: 100dvh;
    width: 100%;
    overflow: hidden;
}

.brochure-app::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    opacity: .35;
    background-image:
        linear-gradient(rgba(255,255,255,.018) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.018) 1px, transparent 1px);
    background-size: 34px 34px;
    mask-image: linear-gradient(to bottom, rgba(0,0,0,.8), transparent 88%);
}

.brochure-header {
    position: relative;
    z-index: 30;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    width: min(1540px, calc(100% - 40px));
    margin: 0 auto;
    padding: 14px 0 12px;
    border-bottom: 1px solid var(--line);
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
    letter-spacing: .02em;
}

.brand-focus {
    color: #e7eef7;
    font-size: 20px;
    font-weight: 700;
    letter-spacing: .16em;
}

.brand-separator {
    width: 1px;
    height: 28px;
    background: rgba(255,255,255,.4);
}

.brand-audit {
    color: var(--gold-soft);
    font-size: 21px;
    font-weight: 600;
}

.header-actions,
.language-switch {
    display: flex;
    align-items: center;
    gap: 8px;
}

.language-switch {
    padding: 4px;
    border: 1px solid rgba(255,255,255,.14);
    border-radius: 10px;
    background: rgba(255,255,255,.04);
}

.language-button {
    min-width: 38px;
    padding: 8px 9px;
    border-radius: 7px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
    text-align: center;
    transition: background .2s ease, color .2s ease;
}

.language-button.active {
    background: var(--gold);
    color: #07172b;
}

.icon-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    height: 40px;
    min-width: 40px;
    padding: 0 10px;
    border: 1px solid rgba(255,255,255,.14);
    border-radius: 10px;
    background: rgba(255,255,255,.05);
    color: #e7eef7;
    cursor: pointer;
    transition: background .2s ease, border-color .2s ease, transform .2s ease;
}

.icon-button:hover,
.icon-button:focus-visible {
    background: rgba(255,255,255,.1);
    border-color: rgba(255,255,255,.28);
    outline: none;
}

.icon-button:active { transform: translateY(1px); }
.icon-button svg { width: 18px; height: 18px; fill: currentColor; }
.button-with-text { font-size: 12px; font-weight: 700; letter-spacing: .04em; }
.fullscreen-exit-icon { display: none; }
:fullscreen .fullscreen-enter-icon { display: none; }
:fullscreen .fullscreen-exit-icon { display: block; }

.reader-shell {
    position: relative;
    z-index: 10;
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    width: min(1540px, calc(100% - 40px));
    margin: 0 auto;
    padding: 12px 0 10px;
}

.reader-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 6px;
}

.eyebrow {
    margin: 0 0 3px;
    color: var(--gold-soft);
    font-size: 9px;
    font-weight: 700;
    letter-spacing: .24em;
}

.reader-heading h1 {
    margin: 0;
    font-size: clamp(19px, 1.8vw, 28px);
    font-weight: 500;
    letter-spacing: -.02em;
}

.reader-hint {
    margin: 0 0 2px;
    color: var(--muted);
    font-size: 11px;
    text-align: right;
}

.book-stage {
    position: relative;
    display: flex;
    flex: 1 1 auto;
    align-items: center;
    justify-content: center;
    min-height: 450px;
    outline: none;
    perspective: 2400px;
    touch-action: pan-y;
    user-select: none;
}

.book-stage.zoomed {
    overflow: hidden;
    border-radius: 10px;
    cursor: grab;
    touch-action: none;
}

.book-stage.zoomed.panning { cursor: grabbing; }

.book-stage:focus-visible::after {
    content: "";
    position: absolute;
    inset: 4px;
    z-index: 25;
    border: 1px solid rgba(210,179,108,.55);
    border-radius: 14px;
    pointer-events: none;
}

.book-shadow {
    position: absolute;
    left: 50%;
    bottom: 2.6%;
    width: min(86vw, 1080px);
    height: 50px;
    transform: translateX(-50%);
    border-radius: 50%;
    background: rgba(0,0,0,.58);
    filter: blur(24px);
    opacity: .78;
    transition: width .35s ease, opacity .25s ease;
}

.book-stage.single-page .book-shadow {
    width: min(44vw, 540px);
    opacity: .65;
}

.desktop-book {
    position: relative;
    height: min(74vh, 740px, 50.5vw);
    height: min(74dvh, 740px, 50.5vw);
    width: auto;
    max-width: 1160px;
    aspect-ratio: 1.441912 / 1;
    transform-style: preserve-3d;
    transform-origin: center center;
    transform: translate3d(var(--book-pan-x), var(--book-pan-y), 0) scale(var(--book-zoom)) translateX(var(--spread-offset));
    transition: transform 420ms cubic-bezier(.22,.61,.36,1);
    filter: drop-shadow(0 22px 32px rgba(0,0,0,.25));
    will-change: transform;
}

.book-stage.panning .desktop-book,
.book-stage.panning .mobile-book { transition: none; }

.desktop-book.is-cover { --spread-offset: -25%; }
.desktop-book.is-back { --spread-offset: 25%; }

.desktop-book::before,
.desktop-book::after {
    content: "";
    position: absolute;
    top: 0;
    width: 50%;
    height: 100%;
    background: #f2f2ef;
    box-shadow: inset 0 0 0 1px rgba(0,0,0,.12);
    transition: opacity .2s ease;
}

.desktop-book::before { left: 0; border-radius: 4px 0 0 4px; }
.desktop-book::after { right: 0; border-radius: 0 4px 4px 0; }
.desktop-book.is-cover::before { opacity: 0; }
.desktop-book.is-back::after { opacity: 0; }

.book-spine {
    position: absolute;
    z-index: 20;
    top: .4%;
    bottom: .4%;
    left: 50%;
    width: 2px;
    transform: translateX(-1px);
    background: linear-gradient(to right, rgba(0,0,0,.18), rgba(255,255,255,.35), rgba(0,0,0,.14));
    box-shadow: 0 0 12px rgba(0,0,0,.35);
    pointer-events: none;
    transition: opacity .2s ease;
}

.desktop-book.is-cover .book-spine,
.desktop-book.is-back .book-spine { opacity: 0; }

.book-sheet {
    position: absolute;
    top: 0;
    left: 50%;
    width: 50%;
    height: 100%;
    transform-origin: left center;
    transform-style: preserve-3d;
    transition: transform 720ms cubic-bezier(.22,.61,.36,1), filter 720ms ease;
    will-change: transform;
}

.book-sheet[data-sheet="0"] { z-index: 4; }
.book-sheet[data-sheet="1"] { z-index: 3; }
.book-sheet[data-sheet="2"] { z-index: 2; }
.book-sheet[data-sheet="3"] { z-index: 1; }

.book-sheet.flipped { transform: rotateY(-180deg); }
.book-sheet.flipped[data-sheet="0"] { z-index: 1; }
.book-sheet.flipped[data-sheet="1"] { z-index: 2; }
.book-sheet.flipped[data-sheet="2"] { z-index: 3; }
.book-sheet.flipped[data-sheet="3"] { z-index: 4; }

.book-face {
    position: absolute;
    inset: 0;
    overflow: hidden;
    background: var(--paper);
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    box-shadow: inset 0 0 0 1px rgba(0,0,0,.12);
}

.book-front { border-radius: 0 4px 4px 0; }
.book-back { transform: rotateY(180deg); border-radius: 4px 0 0 4px; }

.book-front::after,
.book-back::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.book-front::after { background: linear-gradient(to left, transparent 78%, rgba(0,0,0,.1)); }
.book-back::after { background: linear-gradient(to right, transparent 78%, rgba(0,0,0,.1)); }

.book-face img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    pointer-events: none;
}

.mobile-book { display: none; }

.stage-hotspot {
    position: absolute;
    z-index: 22;
    top: 12%;
    bottom: 12%;
    width: 16%;
    border: 0;
    background: transparent;
    cursor: pointer;
}
.stage-hotspot-prev { left: 0; }
.stage-hotspot-next { right: 0; }
.stage-hotspot:focus { outline: none; }
.stage-hotspot:disabled { pointer-events: none; }
.book-stage.zoomed .stage-hotspot { pointer-events: none; }

.reader-controls {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    width: min(820px, 100%);
    margin: 7px auto 0;
}

.nav-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    justify-self: start;
    min-height: 42px;
    padding: 0 15px;
    border: 1px solid rgba(255,255,255,.16);
    border-radius: 11px;
    background: rgba(255,255,255,.055);
    color: #eef3f8;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .03em;
    cursor: pointer;
    transition: background .2s ease, opacity .2s ease, border-color .2s ease;
}

.nav-button:last-child { justify-self: end; }
.nav-button:hover:not(:disabled),
.nav-button:focus-visible:not(:disabled) {
    background: rgba(255,255,255,.12);
    border-color: rgba(255,255,255,.3);
    outline: none;
}
.nav-button:disabled { opacity: .28; cursor: default; }
.nav-button svg { width: 17px; height: 17px; fill: currentColor; }

.reader-center-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.page-status {
    min-width: 92px;
    text-align: center;
}

.page-status-label {
    display: block;
    margin-bottom: 2px;
    color: var(--gold-soft);
    font-size: 8px;
    font-weight: 700;
    letter-spacing: .22em;
}

.page-status strong { font-size: 13px; font-weight: 600; letter-spacing: .05em; }

.zoom-controls {
    display: inline-flex;
    align-items: center;
    height: 36px;
    border: 1px solid rgba(255,255,255,.14);
    border-radius: 10px;
    overflow: hidden;
    background: rgba(255,255,255,.045);
}

.zoom-button,
.zoom-level {
    height: 100%;
    border: 0;
    background: transparent;
    color: #e7eef7;
    cursor: pointer;
}

.zoom-button {
    width: 36px;
    font-size: 20px;
    line-height: 1;
}

.zoom-level {
    min-width: 55px;
    padding: 0 8px;
    border-right: 1px solid rgba(255,255,255,.1);
    border-left: 1px solid rgba(255,255,255,.1);
    color: var(--gold-soft);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .03em;
}

.zoom-button:hover:not(:disabled),
.zoom-level:hover,
.zoom-button:focus-visible,
.zoom-level:focus-visible {
    background: rgba(255,255,255,.09);
    outline: none;
}
.zoom-button:disabled { opacity: .28; cursor: default; }

.brochure-footer {
    position: relative;
    z-index: 10;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px 24px;
    width: min(1540px, calc(100% - 40px));
    margin: 0 auto;
    padding: 6px 0 9px;
    border-top: 1px solid var(--line);
    color: #8192a5;
    font-size: 9px;
}

.brochure-footer a:hover { color: var(--gold-soft); }

.loading-overlay {
    position: fixed;
    z-index: 100;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    background: #07172b;
    color: #dce6f1;
    font-size: 12px;
    letter-spacing: .05em;
    transition: opacity .28s ease, visibility .28s ease;
}

.loading-overlay.hidden { opacity: 0; visibility: hidden; pointer-events: none; }
.loading-spinner {
    width: 36px;
    height: 36px;
    border: 2px solid rgba(255,255,255,.14);
    border-top-color: var(--gold-soft);
    border-radius: 50%;
    animation: brochure-spin .8s linear infinite;
}

@keyframes brochure-spin { to { transform: rotate(360deg); } }

.noscript-message {
    position: fixed;
    z-index: 200;
    inset: 20px;
    display: grid;
    place-items: center;
    padding: 24px;
    background: #07172b;
    color: white;
    text-align: center;
}
.noscript-message a { color: var(--gold-soft); text-decoration: underline; }

@media (max-height: 780px) and (min-width: 901px) {
    .brochure-header { padding-top: 9px; padding-bottom: 8px; }
    .reader-shell { padding-top: 7px; padding-bottom: 6px; }
    .reader-heading { margin-bottom: 3px; }
    .reader-hint { display: none; }
    .desktop-book {
        height: min(75vh, 610px, 48vw);
        height: min(75dvh, 610px, 48vw);
    }
    .reader-controls { margin-top: 4px; }
    .brochure-footer { padding-top: 4px; padding-bottom: 6px; }
}

@media (max-width: 900px) {
    body.brochure-body { overflow-y: auto; }

    .brochure-app { overflow: visible; }

    .brochure-header,
    .reader-shell,
    .brochure-footer { width: min(100% - 20px, 720px); }

    .brochure-header { gap: 8px; padding: 10px 0; }
    .brand { gap: 7px; }
    .brand-focus { font-size: 13px; letter-spacing: .1em; }
    .brand-audit { font-size: 14px; }
    .brand-separator { height: 21px; }
    .button-with-text span { display: none; }
    .header-actions { gap: 4px; }
    .language-switch { gap: 2px; padding: 3px; }
    .language-button { min-width: 30px; padding: 7px 5px; }
    .icon-button { height: 36px; min-width: 36px; padding: 0 7px; border-radius: 9px; }

    .reader-shell { padding: 9px 0 8px; }
    .reader-heading { align-items: start; margin-bottom: 7px; }
    .reader-heading h1 { font-size: 17px; }
    .reader-hint { display: none; }

    .book-stage {
        min-height: 0;
        height: auto;
        flex: none;
        padding: 0;
        perspective: 1500px;
    }

    .book-stage.zoomed { border-radius: 7px; }

    .book-shadow {
        bottom: 1%;
        width: 78vw;
        height: 28px;
        filter: blur(18px);
    }

    .book-stage.single-page .book-shadow { width: 70vw; }

    .desktop-book { display: none; }

    .mobile-book {
        position: relative;
        display: block;
        width: min(91vw, 500px);
        aspect-ratio: 1328 / 1842;
        transform-style: preserve-3d;
        transform-origin: center center;
        transform: translate3d(var(--book-pan-x), var(--book-pan-y), 0) scale(var(--book-zoom));
        transition: transform 280ms cubic-bezier(.22,.61,.36,1);
        filter: drop-shadow(0 18px 26px rgba(0,0,0,.34));
        will-change: transform;
    }

    .mobile-page-frame {
        position: absolute;
        inset: 0;
        overflow: hidden;
        border-radius: 4px;
        background: white;
        transform-origin: center center;
        transform-style: preserve-3d;
        transition: transform .36s cubic-bezier(.22,.61,.36,1), opacity .25s ease;
        box-shadow: inset 0 0 0 1px rgba(0,0,0,.12);
    }

    .mobile-page-frame.turning-next { transform: translateX(-5%) rotateY(-10deg); opacity: .2; }
    .mobile-page-frame.turning-prev { transform: translateX(5%) rotateY(10deg); opacity: .2; }

    .mobile-page-frame img {
        display: block;
        width: 100%;
        height: 100%;
        object-fit: cover;
        pointer-events: none;
    }

    .stage-hotspot { top: 0; bottom: 0; width: 22%; }

    .reader-controls {
        width: 100%;
        margin-top: 10px;
        grid-template-columns: auto 1fr auto;
        gap: 7px;
    }

    .reader-center-controls { gap: 8px; }
    .nav-button { min-height: 40px; padding: 0 9px; }
    .page-status { min-width: 66px; }
    .zoom-controls { height: 34px; }
    .zoom-button { width: 32px; }
    .zoom-level { min-width: 49px; padding: 0 5px; font-size: 9px; }

    .brochure-footer { padding: 8px 0 10px; gap: 4px 12px; }
}

@media (max-width: 520px) {
    .reader-center-controls { flex-direction: column; gap: 4px; }
    .page-status-label { display: none; }
    .page-status { min-width: 72px; }
    .page-status strong { font-size: 11px; }
    .zoom-controls { height: 31px; }
    .zoom-button { width: 29px; font-size: 18px; }
    .zoom-level { min-width: 45px; }
    .nav-button { min-height: 38px; padding: 0 8px; }
    .nav-button svg { width: 15px; height: 15px; }
}

@media (max-width: 420px) {
    .brand-audit { font-size: 12px; }
    .brand-focus { font-size: 11px; }
    .reader-heading h1 { font-size: 15px; }
    .mobile-book { width: min(93vw, 440px); }
    .nav-button span { font-size: 10px; }
    .language-button { min-width: 28px; }
    .icon-button { min-width: 34px; height: 34px; }
}

@media (max-width: 355px) {
    .brand-separator,
    .brand-audit { display: none; }
    .reader-heading { display: none; }
    .reader-shell { padding-top: 6px; }
    .nav-button span { display: none; }
    .nav-button { width: 38px; justify-content: center; }
}

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