@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@500;600;700&family=Sora:wght@300;400;500;600;700&display=swap');

:root {
    --bg: #f6efe6;
    --bg-soft: #fff9f2;
    --surface: rgba(255, 250, 244, 0.76);
    --surface-strong: rgba(255, 250, 244, 0.92);
    --line: rgba(74, 57, 42, 0.12);
    --line-strong: rgba(74, 57, 42, 0.22);
    --ink: #2f241d;
    --muted: #6e6258;
    --accent: #6f9b93;
    --accent-strong: #4e776f;
    --accent-soft: #dfeee9;
    --gold: #d7a162;
    --peach: #d79f81;
    --shadow: 0 22px 80px rgba(90, 69, 51, 0.12);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Sora', sans-serif;
    background:
        radial-gradient(circle at top left, rgba(215, 161, 98, 0.18), transparent 28%),
        radial-gradient(circle at 90% 18%, rgba(111, 155, 147, 0.18), transparent 24%),
        linear-gradient(180deg, #fffaf3 0%, #f6efe6 46%, #efe4d7 100%);
    color: var(--ink);
}

body.menu-open,
body.modal-open {
    overflow: hidden;
}

.display-face {
    font-family: 'Cormorant Garamond', serif;
}

.hero-shell {
    position: relative;
    min-height: 100vh;
    overflow: hidden;
}

.hero-shell::before,
.hero-shell::after {
    content: '';
    position: absolute;
    inset: auto;
    border-radius: 999px;
    filter: blur(40px);
    pointer-events: none;
}

.hero-shell::before {
    width: 24rem;
    height: 24rem;
    top: 6rem;
    left: -6rem;
    background: rgba(215, 161, 98, 0.24);
}

.hero-shell::after {
    width: 28rem;
    height: 28rem;
    right: -8rem;
    bottom: 2rem;
    background: rgba(111, 155, 147, 0.2);
}

.paper-glass {
    background: var(--surface);
    border: 1px solid var(--line);
    backdrop-filter: blur(18px);
    box-shadow: var(--shadow);
}

.paper-strong {
    background: var(--surface-strong);
    border: 1px solid var(--line-strong);
    box-shadow: var(--shadow);
}

.nav-link {
    position: relative;
    color: rgba(47, 36, 29, 0.76);
}

.nav-link::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -0.5rem;
    width: 100%;
    height: 1px;
    transform: scaleX(0);
    transform-origin: left;
    background: var(--accent-strong);
    transition: transform 240ms ease;
}

.nav-link:hover,
.nav-link:focus-visible {
    color: var(--ink);
}

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

#navbar {
    transition: transform 320ms ease, padding 320ms ease, background 320ms ease, box-shadow 320ms ease;
}

#navbar.nav-scrolled {
    background: rgba(255, 249, 242, 0.86);
    backdrop-filter: blur(14px);
    box-shadow: 0 18px 40px rgba(84, 63, 47, 0.08);
    padding-top: 0.9rem;
    padding-bottom: 0.9rem;
}

#mobile-menu {
    display: none;
    opacity: 0;
    transform: translateY(-1.25rem);
    transition: opacity 220ms ease, transform 220ms ease;
}

#mobile-menu.active {
    display: flex;
    opacity: 1;
    transform: translateY(0);
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.6rem 1rem;
    border-radius: 999px;
    border: 1px solid rgba(111, 155, 147, 0.22);
    background: rgba(255, 255, 255, 0.48);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.26em;
    text-transform: uppercase;
    color: var(--accent-strong);
}

.eyebrow::before {
    content: '';
    width: 0.45rem;
    height: 0.45rem;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--gold), var(--accent));
}

.section-kicker {
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.32em;
    text-transform: uppercase;
    color: var(--accent-strong);
}

.hero-title {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 700;
    letter-spacing: -0.045em;
    line-height: 0.86;
}

.hero-title span {
    display: block;
}

.hero-title .accent {
    color: var(--accent-strong);
}

.soft-divider {
    width: 5rem;
    height: 1px;
    background: linear-gradient(90deg, rgba(111, 155, 147, 0), rgba(111, 155, 147, 0.72), rgba(111, 155, 147, 0));
}

.section-divider {
    display: block;
    width: min(100% - 2.5rem, 42rem);
    margin: 0 auto;
}

.section-divider-line {
    display: block;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, rgba(47, 36, 29, 0), rgba(47, 36, 29, 0.72), rgba(47, 36, 29, 0));
    opacity: 0.94;
}

.section-divider-tight {
    margin-top: 2.4rem;
}

.section-divider-footer {
    margin-bottom: 2rem;
}

.hero-note {
    color: rgba(47, 36, 29, 0.58);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    font-size: 0.78rem;
}

.portrait-panel {
    position: relative;
    overflow: hidden;
    border-radius: 2.5rem;
    --seal-size: clamp(5.1rem, 18%, 6.8rem);
    --seal-inset: 0.65rem;
    --seal-logo-scale: 0.92;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.64), rgba(241, 231, 220, 0.9));
    border: 1px solid rgba(255, 255, 255, 0.6);
    box-shadow: 0 32px 70px rgba(115, 88, 64, 0.16);
}

.portrait-panel > img {
    position: relative;
    z-index: 1;
    display: block;
}

.portrait-panel::before {
    content: '';
    position: absolute;
    left: calc(var(--seal-inset) + (var(--seal-size) * (1 - var(--seal-logo-scale)) / 2) + 3px);
    bottom: calc(var(--seal-inset) + (var(--seal-size) * (1 - var(--seal-logo-scale)) / 2));
    width: calc(var(--seal-size) * var(--seal-logo-scale));
    height: calc(var(--seal-size) * var(--seal-logo-scale));
    background: url('../img/logo/logo_fa_white.png') center center / 85% auto no-repeat;
    opacity: 0.34;
    filter: drop-shadow(0 1px 6px rgba(60, 42, 30, 0.12));
    pointer-events: none;
    z-index: 3;
}

.portrait-panel::after {
    content: '';
    position: absolute;
    left: var(--seal-inset);
    bottom: var(--seal-inset);
    width: var(--seal-size);
    height: var(--seal-size);
    border-radius: 999px;
    background: rgba(171, 152, 136, 0.34);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.28);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.16),
        0 10px 24px rgba(87, 63, 45, 0.12);
    opacity: 1;
    pointer-events: none;
    z-index: 2;
}

.portrait-panel.seal-right::before {
    left: auto;
    right: calc(var(--seal-inset) + (var(--seal-size) * (1 - var(--seal-logo-scale)) / 2) - 3px);
}

.portrait-panel.seal-right::after {
    left: auto;
    right: var(--seal-inset);
}

.portrait-panel.seal-landscape {
    --seal-size: 4.9rem;
}

.image-stack {
    position: relative;
    display: flex;
    align-items: flex-start;
    padding: 0.4rem 3.2rem 4.4rem 0.5rem;
}

.image-stack > .portrait-panel:first-child {
    width: min(100%, 31rem);
    z-index: 1;
}

.image-stack .secondary-card {
    position: absolute;
    right: 0.35rem;
    bottom: 0;
    width: clamp(12rem, 46%, 15.5rem);
    --seal-size: 4.1rem;
    --seal-inset: 0.45rem;
    transform: rotate(5deg);
    transform-origin: bottom right;
    z-index: 2;
}

.story-card,
.trait-card,
.timeline-card,
.catalog-card,
.release-card,
.footer-card {
    border-radius: 2rem;
}

.trait-card-text {
    white-space: pre-line;
}

.story-card:hover,
.trait-card:hover,
.timeline-card:hover,
.catalog-card:hover {
    transform: translateY(-4px);
    border-color: rgba(111, 155, 147, 0.24);
}

.story-card,
.trait-card,
.timeline-card,
.catalog-card,
.release-card {
    transition: transform 260ms ease, border-color 260ms ease, box-shadow 260ms ease;
}

.badge-pill {
    display: inline-flex;
    align-items: center;
    padding: 0.6rem 0.9rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.64);
    border: 1px solid rgba(111, 155, 147, 0.18);
    color: var(--ink);
    font-size: 0.78rem;
}

.release-card {
    position: relative;
    overflow: hidden;
    background: rgba(255, 249, 242, 0.72);
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
}

.release-card::before {
    content: '';
    position: absolute;
    inset: 0;
    opacity: 0.75;
    pointer-events: none;
}

.release-card[data-accent='sage']::before {
    background: linear-gradient(145deg, rgba(111, 155, 147, 0.18), transparent 56%);
}

.release-card[data-accent='gold']::before {
    background: linear-gradient(145deg, rgba(215, 161, 98, 0.22), transparent 56%);
}

.release-card[data-accent='peach']::before {
    background: linear-gradient(145deg, rgba(215, 159, 129, 0.2), transparent 56%);
}

.release-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 34px 90px rgba(90, 69, 51, 0.16);
}

.release-cover {
    aspect-ratio: 1;
    border-radius: 1.5rem;
    overflow: hidden;
    box-shadow: 0 22px 40px rgba(101, 77, 58, 0.14);
}

.icon-button {
    width: 3rem;
    height: 3rem;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(74, 57, 42, 0.12);
    background: rgba(255, 255, 255, 0.7);
    color: var(--ink);
    transition: transform 220ms ease, color 220ms ease, border-color 220ms ease, background 220ms ease;
}

.icon-button:hover,
.icon-button:focus-visible {
    transform: translateY(-2px);
    color: var(--accent-strong);
    border-color: rgba(111, 155, 147, 0.4);
    background: rgba(255, 255, 255, 0.96);
}

.primary-button,
.secondary-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 3.5rem;
    padding: 0.9rem 1.35rem;
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    transition: transform 220ms ease, box-shadow 220ms ease, background 220ms ease, color 220ms ease, border-color 220ms ease;
}

.primary-button {
    background: var(--accent-strong);
    color: #fffdf9;
    box-shadow: 0 18px 34px rgba(78, 119, 111, 0.24);
}

.primary-button:hover,
.primary-button:focus-visible {
    transform: translateY(-2px);
    background: #41675f;
}

.secondary-button {
    color: var(--ink);
    border: 1px solid rgba(74, 57, 42, 0.12);
    background: rgba(255, 255, 255, 0.6);
}

.secondary-button:hover,
.secondary-button:focus-visible {
    transform: translateY(-2px);
    border-color: rgba(111, 155, 147, 0.4);
    color: var(--accent-strong);
    background: rgba(255, 255, 255, 0.92);
}

.timeline-number {
    font-family: 'Cormorant Garamond', serif;
    font-size: 3rem;
    font-weight: 700;
    line-height: 1;
    color: rgba(111, 155, 147, 0.42);
}

.catalog-row {
    display: grid;
    grid-template-columns: minmax(6rem, 7rem) minmax(0, 1fr) auto;
    gap: 1rem;
    align-items: baseline;
    padding: 0.9rem 0;
    border-bottom: 1px solid rgba(74, 57, 42, 0.08);
}

.catalog-row:last-child {
    border-bottom: 0;
}

.gallery-shell {
    --gallery-visible: 4;
    --gallery-gap: 1rem;
    --gallery-surface: rgba(248, 241, 231, 0.94);
    position: relative;
    overflow: visible;
    border-radius: 2rem;
    background: var(--gallery-surface) !important;
    border: 0 !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
}

.gallery-shell::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 2rem;
    background: var(--gallery-surface);
    border: 1px solid var(--line);
    box-shadow: 0 22px 60px rgba(90, 69, 51, 0.08);
    pointer-events: none;
    z-index: 0;
}

.gallery-shell > * {
    position: relative;
    z-index: 1;
}

.gallery-viewport {
    overflow: hidden;
    line-height: 0;
    background: var(--gallery-surface) !important;
}

.gallery-track {
    display: flex;
    gap: var(--gallery-gap);
    transition: transform 420ms cubic-bezier(0.22, 1, 0.36, 1);
    will-change: transform;
    background: var(--gallery-surface) !important;
}

.gallery-slide {
    appearance: none;
    -webkit-appearance: none;
    margin: 0;
    flex: 0 0 calc((100% - (var(--gallery-visible) - 1) * var(--gallery-gap)) / var(--gallery-visible));
    aspect-ratio: 4 / 5;
    overflow: hidden;
    border-radius: 1.75rem;
    border: 1px solid rgba(74, 57, 42, 0.06);
    box-shadow: none;
    background: var(--gallery-surface);
    display: grid;
    width: 100%;
    padding: 0;
    line-height: 0;
    cursor: zoom-in;
    transition: border-color 220ms ease;
}

.gallery-slide:hover,
.gallery-slide:focus-visible {
    border-color: rgba(111, 155, 147, 0.34);
}

.gallery-slide img {
    display: block;
    width: 100%;
    height: 100%;
    transition: transform 260ms ease;
    transform-origin: center center;
}

.gallery-slide:hover img,
.gallery-slide:focus-visible img {
    transform: scale(1.045);
}

.gallery-lightbox-image {
    display: block;
    width: 100%;
    max-height: calc(100vh - 8rem);
    object-fit: contain;
    border-radius: 1.5rem;
}

.gallery-lightbox-shell {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 1rem;
}

.gallery-lightbox-stage {
    min-width: 0;
}

.gallery-lightbox-nav {
    width: 3rem;
    height: 3rem;
    border-radius: 999px;
    border: 1px solid rgba(74, 57, 42, 0.12);
    background: rgba(255, 255, 255, 0.84);
    color: var(--ink);
    transition: background 200ms ease, transform 200ms ease, border-color 200ms ease;
}

.gallery-lightbox-nav:hover,
.gallery-lightbox-nav:focus-visible {
    background: #fff;
    border-color: rgba(111, 155, 147, 0.34);
    transform: translateY(-1px);
}

.gallery-nav {
    width: 3rem;
    height: 3rem;
    border-radius: 999px;
    border: 1px solid rgba(74, 57, 42, 0.12);
    background: rgba(255, 255, 255, 0.82);
    color: var(--ink);
    transition: transform 220ms ease, background 220ms ease, color 220ms ease, border-color 220ms ease;
}

.gallery-nav:hover,
.gallery-nav:focus-visible {
    transform: translateY(-2px);
    color: var(--accent-strong);
    border-color: rgba(111, 155, 147, 0.34);
    background: rgba(255, 255, 255, 0.98);
}

.label-logo-transparent {
    mix-blend-mode: multiply;
}

#cookie-banner {
    transform: translateY(150%);
    transition: transform 520ms cubic-bezier(0.23, 1, 0.32, 1);
}

#cookie-banner.active {
    transform: translateY(0);
}

.lightbox-overlay {
    display: none;
    position: fixed;
    inset: 0;
    padding: 1rem;
    align-items: center;
    justify-content: center;
    background: rgba(52, 39, 30, 0.28);
    backdrop-filter: blur(16px);
    z-index: 1000;
}

.lightbox-overlay.active {
    display: flex;
}

.lightbox-shell {
    position: relative;
    width: min(100%, 58rem);
    max-height: calc(100vh - 2rem);
    overflow: hidden;
    border-radius: 2rem;
    background: rgba(255, 249, 242, 0.98);
    border: 1px solid rgba(74, 57, 42, 0.12);
    box-shadow: 0 28px 80px rgba(68, 51, 38, 0.2);
}

.close-button {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 999px;
    border: 1px solid rgba(74, 57, 42, 0.12);
    background: rgba(255, 255, 255, 0.8);
    color: var(--ink);
    transition: background 200ms ease, transform 200ms ease;
}

.close-button:hover,
.close-button:focus-visible {
    background: #fff;
    transform: translateY(-1px);
}

.custom-scroll {
    scrollbar-width: thin;
    scrollbar-color: rgba(111, 155, 147, 0.58) rgba(74, 57, 42, 0.08);
}

.custom-scroll::-webkit-scrollbar {
    width: 8px;
}

.custom-scroll::-webkit-scrollbar-track {
    background: rgba(74, 57, 42, 0.08);
}

.custom-scroll::-webkit-scrollbar-thumb {
    background: rgba(111, 155, 147, 0.58);
    border-radius: 999px;
}

.select-text {
    user-select: text !important;
}

.media-placeholder {
    display: grid;
    gap: 1.25rem;
    justify-items: start;
}

.media-placeholder .hint {
    padding: 0.8rem 1rem;
    border-radius: 999px;
    background: rgba(111, 155, 147, 0.12);
    color: var(--accent-strong);
    font-size: 0.74rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    font-weight: 600;
}

input[type='range'] {
    -webkit-appearance: none;
    appearance: none;
    background: transparent;
    cursor: pointer;
}

input[type='range']::-webkit-slider-runnable-track {
    background: rgba(74, 57, 42, 0.14);
    height: 4px;
    border-radius: 999px;
}

input[type='range']::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    margin-top: -4px;
    width: 12px;
    height: 12px;
    border-radius: 999px;
    background: var(--accent-strong);
}

input[type='range']:focus-visible::-webkit-slider-thumb {
    outline: 2px solid rgba(111, 155, 147, 0.28);
    outline-offset: 2px;
}

#bg-audio {
    display: none;
}

@media (max-width: 1024px) {
    .image-stack {
        display: block;
        padding: 0;
    }

    .image-stack > .portrait-panel:first-child {
        width: 100%;
    }

    .image-stack .secondary-card {
        position: relative;
        right: auto;
        bottom: auto;
        width: 100%;
        margin-top: 1rem;
        transform: none;
    }
}

@media (max-width: 767px) {
    #navbar {
        padding-top: 0.75rem;
        padding-bottom: 0.75rem;
    }

    #navbar > div {
        padding: 0.7rem 1rem;
        gap: 1rem;
    }

    #nav-logo {
        height: 3.35rem !important;
    }

    #menu-btn {
        margin-top: 0;
        align-self: center;
    }

    .hero-shell {
        min-height: auto;
        padding-top: 7.75rem;
    }

    .image-stack {
        max-width: 20.5rem;
        margin-inline: auto;
        padding: 0.5rem 1rem 4rem 0.35rem;
    }

    .image-stack > .portrait-panel:first-child {
        width: 82%;
        transform: rotate(-2.5deg);
        transform-origin: top left;
    }

    .image-stack .secondary-card {
        position: absolute;
        right: 0;
        bottom: 0.35rem;
        width: 48%;
        margin-top: 0;
        --seal-size: 3.5rem;
        --seal-inset: 0.35rem;
        transform: rotate(6deg);
    }

    .portrait-panel {
        --seal-size: clamp(4.35rem, 20%, 5.2rem);
        --seal-inset: 0.45rem;
    }

    .portrait-panel.seal-landscape {
        --seal-size: 4.35rem;
    }

    .catalog-row {
        grid-template-columns: 1fr;
        gap: 0.25rem;
    }

    .gallery-shell {
        --gallery-visible: 2;
    }

    .section-divider {
        width: min(100% - 2rem, 28rem);
    }

    .gallery-lightbox-shell {
        grid-template-columns: 1fr;
    }

    .gallery-lightbox-nav {
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        z-index: 2;
    }

    .gallery-lightbox-nav-prev {
        left: 0.5rem;
    }

    .gallery-lightbox-nav-next {
        right: 0.5rem;
    }

    .gallery-lightbox-nav:hover,
    .gallery-lightbox-nav:focus-visible {
        transform: translateY(calc(-50% - 1px));
    }
}
