/* ==========================================================================
   elaineleigh.com — "The Journey"
   Sublime, contemporary museum-grade white gallery aesthetic with an Irish
   prehistoric undercurrent. Montserrat carries the journey; Cormorant
   Garamond speaks the poetry. All motion is 60fps GPU-accelerated and strictly
   honours prefers-reduced-motion.
   ========================================================================== */

/* ---------- Fonts ---------- */
@font-face {
    font-family: 'Montserrat';
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
    src: url('../fonts/montserrat-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+FEFF, U+FFFD;
}
@font-face {
    font-family: 'Montserrat';
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
    src: url('../fonts/montserrat-latin-ext.woff2') format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0;
}
@font-face {
    font-family: 'Cormorant Garamond';
    font-style: normal;
    font-weight: 300 700;
    font-display: swap;
    src: url('../fonts/cormorant-latin.woff2') format('woff2');
}
@font-face {
    font-family: 'Cormorant Garamond';
    font-style: italic;
    font-weight: 300 700;
    font-display: swap;
    src: url('../fonts/cormorant-italic-latin.woff2') format('woff2');
}

/* ---------- Design Tokens ---------- */
:root {
    --ink:          #0e1012;   /* deepest charcoal carbon */
    --slate:        #2b2f34;   /* refined headings dark   */
    --stone:        #4e5258;   /* section titles          */
    --fog:          #747880;   /* soft labels             */
    --body:         #4a4d52;   /* body text               */
    --mist:         #92969d;   /* muted captions          */
    --bone:         #faf9f7;   /* subtle ivory bg         */
    --chalk:        #f0eee9;   /* alt subtle bg / divider */
    --white:        #ffffff;
    --accent:       #595e66;   /* refined link grey       */
    --gold:         #9a8150;   /* ancient bronze / gold   */
    --gold-light:   rgba(154, 129, 80, 0.12);
    --moss:         #495b4c;   /* peat / bog moss green   */

    --font-sans:    'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-serif:   'Cormorant Garamond', Georgia, serif;

    --container:    1180px;
    --header-height: 92px;
    --header-h:     var(--header-height); /* legacy alias */
    --gutter:       clamp(20px, 4vw, 36px);

    --ease-out:     cubic-bezier(.16, 1, .3, 1);
    --ease-in-out:  cubic-bezier(.65, 0, .35, 1);

    --shadow-card:  0 4px 24px -2px rgba(14, 16, 18, 0.06), 0 2px 8px -2px rgba(14, 16, 18, 0.03);
    --shadow-lift:  0 24px 54px -12px rgba(14, 16, 18, 0.14), 0 8px 20px -4px rgba(14, 16, 18, 0.06);
    --shadow-glow:  0 0 60px -10px rgba(154, 129, 80, 0.22);
}

/* ---------- Base & Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    overflow-x: clip;
    color-scheme: light;
}

body {
    margin: 0;
    font-family: var(--font-sans);
    font-weight: 300;
    font-size: 1rem;
    line-height: 1.75;
    color: var(--body);
    background: var(--white);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

img { max-width: 100%; height: auto; display: block; }
h1, h2, h3, h4 { font-weight: 400; line-height: 1.15; margin: 0 0 .5em; color: var(--slate); letter-spacing: -0.015em; }
a { color: var(--accent); text-decoration: none; transition: color .25s ease; }
a:hover, a:focus-visible { color: var(--ink); }

.serif-italic {
    font-family: var(--font-serif);
    font-style: italic;
    font-weight: 400;
    letter-spacing: 0.01em;
}

.br-desktop { display: none; }
@media (min-width: 768px) { .br-desktop { display: inline; } }

.skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    background: var(--ink);
    color: #fff;
    padding: 12px 24px;
    font-size: .8125rem;
    letter-spacing: .1em;
    text-transform: uppercase;
    z-index: 999;
}
.skip-link:focus { left: 16px; top: 16px; color: #fff; border-radius: 4px; box-shadow: var(--shadow-lift); }

/* --- Selection --- */
::selection      { background: var(--ink); color: #FAF9F7; }
::-moz-selection { background: var(--ink); color: #FAF9F7; }

/* --- Top Scroll Progress --- */
.scroll-progress {
    position: fixed;
    top: 0; left: 0; right: 0;
    height: 2.5px;
    z-index: 150;
    transform: scaleX(var(--sp, 0));
    transform-origin: left center;
    background: linear-gradient(90deg, var(--mist), var(--gold) 60%, var(--ink));
    opacity: 0;
    transition: opacity .4s ease;
    pointer-events: none;
}
.scroll-progress.is-active { opacity: 1; }

/* ==========================================================================
   Motion & Animation Primitives
   ========================================================================== */
.anim {
    opacity: 0;
    transition: opacity 1.1s var(--ease-out), transform 1.1s var(--ease-out);
    transition-delay: var(--delay, 0s);
    will-change: opacity, transform;
}
.fade-in-up    { transform: translate3d(0, 42px, 0); }
.fade-in-left  { transform: translate3d(-52px, 0, 0); }
.fade-in-right { transform: translate3d(52px, 0, 0); }
.anim.is-visible { opacity: 1; transform: translate3d(0, 0, 0); }

.light-speed-in.is-visible {
    animation: lightSpeedIn 1.2s var(--ease-out) both;
    animation-delay: var(--delay, 0s);
    transition: none;
}
@keyframes lightSpeedIn {
    0%   { opacity: 0; transform: translate3d(50%, 0, 0) skewX(-24deg); }
    60%  { opacity: 1; transform: skewX(12deg); }
    80%  { transform: skewX(-3deg); }
    100% { opacity: 1; transform: none; }
}

/* Word reveal */
.split-words .w {
    display: inline-block;
    opacity: 0;
    transform: translate3d(0, 0.85em, 0) rotate(1.5deg);
    transition: opacity .8s ease, transform 1s var(--ease-out);
    transition-delay: calc(var(--wi) * 40ms);
    will-change: opacity, transform;
}
.split-words.is-visible .w { opacity: 1; transform: none; }

/* Cinematic reveal */
.reveal-media {
    transition: clip-path 1.2s var(--ease-out), opacity .9s ease, transform 1.2s var(--ease-out);
    transition-delay: var(--reveal-delay, 0s);
    will-change: clip-path;
}
html.reveal-on .reveal-media {
    clip-path: inset(0 0 100% 0);
    opacity: .001;
}
html.reveal-on .reveal-media.is-visible {
    clip-path: inset(0 0 0 0);
    opacity: 1;
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .anim, .split-words .w, .light-speed-in.is-visible,
    .tri-arm, .fragment, .passage-track, .notes-line-progress,
    .threshold-triskele, .interlude-spiral svg, .footer-spiral svg,
    .reveal-media, .scroll-cue-line::after, .ghost-lights {
        animation: none !important;
        transition: none !important;
        transform: none !important;
        opacity: 1 !important;
        clip-path: none !important;
    }
}

/* ==========================================================================
   Header & Navigation
   ========================================================================== */
.site-header {
    position: absolute;
    inset: 0 0 auto;
    height: var(--header-height);
    z-index: 90;
    transition: background-color .35s ease, backdrop-filter .35s ease, box-shadow .35s ease, border-color .35s ease;
}

.site-header.is-stuck {
    position: fixed;
    background: rgba(255, 255, 255, .88);
    backdrop-filter: blur(18px) saturate(160%);
    -webkit-backdrop-filter: blur(18px) saturate(160%);
    box-shadow: 0 1px 20px rgba(14, 16, 18, .06);
    border-bottom: 1px solid rgba(240, 238, 233, .8);
    animation: headerDrop .4s var(--ease-out);
}
@keyframes headerDrop { from { transform: translateY(-100%); } to { transform: none; } }

.site-header--solid {
    position: sticky;
    top: 0;
    background: rgba(255, 255, 255, .92);
    backdrop-filter: blur(16px) saturate(160%);
    -webkit-backdrop-filter: blur(16px) saturate(160%);
    border-bottom: 1px solid var(--chalk);
}

.header-inner {
    max-width: 1340px;
    height: var(--header-height);
    margin-inline: auto;
    padding-inline: clamp(20px, 4vw, 36px);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 14px;
}
.header-cta-btn {
    display: inline-flex;
    align-items: center;
    padding: 9px 22px;
    font-size: .72rem;
    font-weight: 600;
    letter-spacing: .16em;
    text-transform: uppercase;
    border-radius: 999px;
    background: var(--ink);
    color: #fff;
    box-shadow: 0 4px 14px rgba(14, 16, 18, 0.15);
    border: 1px solid rgba(154, 129, 80, 0.35);
    transition: all .25s var(--ease-out);
}
.header-cta-btn:hover {
    background: var(--slate);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(14, 16, 18, 0.22);
}
@media (max-width: 640px) {
    .header-cta-btn { display: none; }
}

.header-logo {
    display: inline-flex;
    align-items: center;
    transition: opacity .3s ease, transform .3s var(--ease-out);
}
.header-logo:hover { opacity: .82; transform: translateY(-1px); }
.header-logo img { width: 165px; height: auto; }

.nav-menu {
    display: flex;
    align-items: center;
    gap: 2px;
    list-style: none;
    margin: 0;
    padding: 0;
}
.nav-link {
    position: relative;
    display: inline-block;
    padding: 8px 11px;
    font-size: .72rem;
    font-weight: 500;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--stone);
    border-radius: 4px;
    transition: color .3s ease, background-color .3s ease, transform .2s ease;
    white-space: nowrap;
}
.nav-link::after {
    content: '';
    position: absolute;
    left: 12px; right: 12px; bottom: 4px;
    height: 1px;
    background: #C4AA78;
    transform: scaleX(0);
    transform-origin: center;
    transition: transform .35s var(--ease-out);
}
.nav-link:hover { color: var(--ink); }
.nav-link:hover::after, .nav-link:focus-visible::after { transform: scaleX(1); }

/* Navigation Dropdown */
.nav-item-dropdown {
    position: relative;
}
.nav-link--dropdown {
    background: none;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: inherit;
}
.dropdown-chevron {
    transition: transform .25s ease;
    stroke: currentColor;
}
.nav-item-dropdown:hover .dropdown-chevron,
.nav-item-dropdown:focus-within .dropdown-chevron,
.nav-link--dropdown[aria-expanded="true"] .dropdown-chevron {
    transform: rotate(180deg);
}

.nav-dropdown {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(6px);
    min-width: 250px;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid var(--chalk);
    border-radius: 10px;
    padding: 8px;
    list-style: none;
    box-shadow: 0 20px 50px rgba(14, 16, 18, 0.14), 0 0 0 1px rgba(14, 16, 18, 0.04);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity .2s ease, transform .2s cubic-bezier(0.16, 1, 0.3, 1), visibility .2s;
    z-index: 120;
}
/* Invisible bridge to prevent mouse leave gap */
.nav-dropdown::before {
    content: '';
    position: absolute;
    top: -16px;
    left: -12px;
    right: -12px;
    height: 20px;
    background: transparent;
}
.nav-item-dropdown:hover .nav-dropdown,
.nav-item-dropdown:focus-within .nav-dropdown,
.nav-dropdown.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateX(-50%) translateY(0);
}
.dropdown-link {
    display: block;
    padding: 10px 16px;
    border-radius: 6px;
    font-size: .75rem;
    font-weight: 500;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--stone);
    text-decoration: none;
    transition: all .2s ease;
    white-space: nowrap;
}
.dropdown-link:hover {
    background: rgba(154, 129, 80, 0.12);
    color: var(--ink);
    transform: translateX(3px);
}

.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 6px;
    width: 44px;
    height: 44px;
    padding: 10px;
    background: none;
    border: 1px solid var(--chalk);
    border-radius: 50%;
    cursor: pointer;
    transition: border-color .25s ease, background-color .25s ease;
}
.menu-toggle:hover { border-color: var(--slate); background: var(--bone); }
.menu-toggle-bar { height: 1.5px; width: 18px; background: var(--slate); transition: transform .3s var(--ease-out), opacity .3s ease; }
.menu-toggle[aria-expanded="true"] .menu-toggle-bar:nth-child(1) { transform: translateY(3.75px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-toggle-bar:nth-child(2) { transform: translateY(-3.75px) rotate(-45deg); }

/* Mobile nav lives in the Responsive Breakpoints section (max-width: 960px). */

/* ==========================================================================
   Journey Rail (Waypoint Navigator)
   ========================================================================== */
.journey-rail {
    position: fixed;
    right: 28px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 80;
    display: flex;
    flex-direction: column;
    gap: 20px;
    opacity: 0;
    transition: opacity .6s ease;
}
.journey-rail.is-ready { opacity: 1; }
.journey-rail a {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-direction: row-reverse;
    text-decoration: none;
    padding: 4px;
}
.rail-dot {
    width: 7px; height: 7px;
    border-radius: 50%;
    border: 1px solid var(--mist);
    background: transparent;
    transition: background-color .3s ease, transform .35s var(--ease-out), border-color .3s ease, box-shadow .3s ease;
}
.rail-label {
    font-size: .625rem;
    font-weight: 600;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: var(--fog);
    opacity: 0;
    transform: translateX(8px);
    transition: opacity .3s ease, transform .3s var(--ease-out), color .3s ease;
    white-space: nowrap;
}
.journey-rail a:hover .rail-label,
.journey-rail a.is-active .rail-label { opacity: 1; transform: none; color: var(--ink); }
.journey-rail a:hover .rail-dot { border-color: var(--ink); transform: scale(1.3); }
.journey-rail a.is-active .rail-dot {
    background: var(--ink);
    border-color: var(--ink);
    transform: scale(1.5);
    box-shadow: 0 0 10px rgba(14, 16, 18, .2);
}
.journey-rail.on-dark .rail-dot { border-color: rgba(255,255,255,.5); }
.journey-rail.on-dark a.is-active .rail-dot { background: #fff; border-color: #fff; box-shadow: 0 0 12px rgba(255,255,255,.4); }
.journey-rail.on-dark .rail-label { color: rgba(255,255,255,.7); }
.journey-rail.on-dark a:hover .rail-label,
.journey-rail.on-dark a.is-active .rail-label { color: #fff; }

@media (max-width: 1024px) { .journey-rail { display: none; } }

/* ==========================================================================
   I. The Threshold (Hero)
   ========================================================================== */
.threshold {
    position: relative;
    min-height: 100vh;
    min-height: 100svh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: calc(var(--header-height) + 32px) 24px 104px;
    overflow: hidden;
    background:
        radial-gradient(ellipse 80% 65% at 50% 40%, rgba(253, 250, 244, 0.98), rgba(255, 255, 255, 1) 100%),
        var(--white);
}

.threshold-triskele {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    color: var(--ink);
    opacity: .06;
    pointer-events: none;
    z-index: 0;
}
.threshold-triskele svg {
    width: min(88vmin, 780px);
    height: auto;
    animation: slowSpin 240s linear infinite;
}
.tri-arm {
    stroke-dasharray: 640;
    stroke-dashoffset: 640;
    animation: drawArm 4.5s cubic-bezier(.2, .8, .2, 1) forwards;
}
.tri-arm:nth-child(2) { animation-delay: .5s; }
.tri-arm:nth-child(3) { animation-delay: 1s; }
@keyframes drawArm  { to { stroke-dashoffset: 0; } }
@keyframes slowSpin { to { transform: rotate(360deg); } }

.ghost-lights {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
    opacity: 0;
    transition: opacity 2.5s ease;
}
.ghost-lights.is-lit { opacity: 1; }

.threshold-inner {
    position: relative;
    width: 100%;
    min-width: 0;
    max-width: 920px;
    z-index: 2;
}

.threshold-kicker {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 22px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .9);
    border: 1px solid rgba(154, 129, 80, .38);
    box-shadow: 0 4px 16px rgba(154, 129, 80, 0.08);
    font-size: .6875rem;
    font-weight: 600;
    letter-spacing: .3em;
    text-transform: uppercase;
    color: var(--slate);
    margin: 0 0 32px;
}
.kicker-sparkle {
    color: var(--gold);
    font-size: .8rem;
}

.threshold-logo-wrapper {
    position: relative;
    display: inline-block;
    width: 100%;
}
.logo-ambient-glow {
    position: absolute;
    left: 50%; top: 50%;
    transform: translate(-50%, -50%);
    width: min(740px, 95%);
    height: 200px;
    background: radial-gradient(ellipse 60% 50% at 50% 50%, rgba(154, 129, 80, 0.18), transparent 70%);
    filter: blur(36px);
    pointer-events: none;
    z-index: 0;
}
.threshold-logo {
    position: relative;
    z-index: 1;
}
.threshold-logo img {
    width: min(680px, 92%);
    margin-inline: auto;
    filter: drop-shadow(0 12px 28px rgba(14, 16, 18, .05));
}

.threshold-line {
    font-size: clamp(1.5rem, 3vw, 2.1rem);
    line-height: 1.55;
    color: var(--slate);
    margin: 36px 0 24px;
}
.line-gold {
    color: #8c723f;
    font-style: italic;
    font-weight: 500;
}

.threshold-cta {
    margin-top: 36px;
}
.hero-explore-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 16px 40px;
    border-radius: 999px;
    background: var(--ink);
    color: #fff;
    font-size: .8rem;
    font-weight: 600;
    letter-spacing: .22em;
    text-transform: uppercase;
    text-decoration: none;
    box-shadow: 0 10px 30px rgba(14, 16, 18, 0.18), 0 0 0 1px rgba(154, 129, 80, 0.35);
    transition: all .35s var(--ease-out);
}
.hero-explore-btn:hover {
    background: var(--slate);
    color: #fff;
    transform: translateY(-4px);
    box-shadow: 0 18px 40px rgba(14, 16, 18, 0.25), 0 0 30px rgba(154, 129, 80, 0.4);
}
.hero-explore-btn .btn-arrow {
    font-size: 1rem;
    transition: transform .3s ease;
}
.hero-explore-btn:hover .btn-arrow {
    transform: translateY(3px);
}

.hero-divider {
    padding-block: 4px;
    position: relative;
}
.hero-divider span {
    display: block;
    width: 20%;
    max-width: 150px;
    margin-inline: auto;
    height: 1.5px;
    background: linear-gradient(90deg, transparent, rgba(154, 129, 80, .5) 50%, transparent);
}

.threshold-invite {
    margin: 24px 0 0;
    font-size: .95rem;
    color: var(--body);
    line-height: 1.8;
}

.scroll-cue {
    position: absolute;
    left: 50%;
    bottom: 30px;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    z-index: 2;
    transition: opacity .3s ease, transform .3s var(--ease-out);
}
.scroll-cue:hover { transform: translateX(-50%) translateY(3px); }
.scroll-cue-label {
    font-size: .625rem;
    font-weight: 600;
    letter-spacing: .34em;
    text-transform: uppercase;
    color: var(--mist);
}
.scroll-cue-line {
    width: 1.5px;
    height: 48px;
    background: var(--chalk);
    overflow: hidden;
    position: relative;
}
.scroll-cue-line::after {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--ink);
    animation: cueDrop 2.4s cubic-bezier(.65, 0, .35, 1) infinite;
}
@keyframes cueDrop {
    0%   { transform: translateY(-100%); }
    50%  { transform: translateY(0); }
    100% { transform: translateY(100%); }
}

/* ==========================================================================
   II. Prologue
   ========================================================================== */
.prologue {
    position: relative;
    padding: clamp(130px, 18vh, 190px) 24px clamp(110px, 15vh, 160px);
    background: var(--white);
    overflow: hidden;
}
.prologue-inner {
    position: relative;
    max-width: 840px;
    margin-inline: auto;
    text-align: center;
    z-index: 2;
}

.prologue-eyebrow {
    font-size: .6875rem;
    font-weight: 600;
    letter-spacing: .44em;
    text-transform: uppercase;
    color: var(--gold);
    margin: 0 0 24px;
}
.prologue-eyebrow--light { color: rgba(250, 249, 247, .65); }

.prologue-statement {
    font-family: var(--font-serif);
    font-weight: 400;
    font-size: clamp(2.1rem, 5vw, 3.4rem);
    line-height: 1.32;
    color: var(--slate);
    margin: 0 0 38px;
    letter-spacing: -0.01em;
}
.prologue-body {
    font-size: 1.08rem;
    line-height: 1.95;
    margin: 0 auto;
    max-width: 680px;
    color: var(--body);
}

.prologue-stats {
    display: flex;
    justify-content: center;
    gap: clamp(24px, 4vw, 56px);
    margin-top: 80px;
}
.stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 28px 34px;
    border-radius: 8px;
    background: var(--white);
    border: 1px solid rgba(220, 217, 210, .9);
    box-shadow: 0 10px 30px -5px rgba(14, 16, 18, .06);
    transition: transform .35s var(--ease-out), box-shadow .35s ease, border-color .35s ease;
}
.stat:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lift);
    border-color: rgba(154, 129, 80, .4);
}
.stat-badge {
    font-size: .5625rem;
    font-weight: 700;
    letter-spacing: .24em;
    text-transform: uppercase;
    color: var(--gold);
    border: 1px solid rgba(154, 129, 80, 0.35);
    background: rgba(154, 129, 80, 0.06);
    padding: 2px 10px;
    border-radius: 999px;
    margin-bottom: 4px;
}
.stat-number {
    font-family: var(--font-serif);
    font-size: clamp(2.8rem, 5.8vw, 3.8rem);
    line-height: 1;
    color: var(--ink);
    font-variant-numeric: tabular-nums;
}
.stat-label {
    font-size: .6875rem;
    font-weight: 600;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: var(--fog);
    text-align: center;
}

/* Chapters explore link */
.chapter-action {
    margin-top: 26px;
}
.chapter-explore-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 28px;
    border-radius: 999px;
    border: 1px solid var(--slate);
    background: transparent;
    color: var(--ink);
    font-size: .75rem;
    font-weight: 600;
    letter-spacing: .18em;
    text-transform: uppercase;
    text-decoration: none;
    transition: all .3s var(--ease-out);
}
.chapter-explore-link:hover {
    background: var(--ink);
    color: #fff;
    border-color: var(--ink);
    transform: translateX(4px);
    box-shadow: 0 6px 20px rgba(14, 16, 18, 0.16);
}
.chapter-explore-link .link-arrow {
    transition: transform .25s ease;
}
.chapter-explore-link:hover .link-arrow {
    transform: translateX(3px);
}

.prologue-fragments { position: absolute; inset: 0; pointer-events: none; z-index: 1; }
.fragment {
    position: absolute;
    width: clamp(140px, 18vw, 250px);
    padding: 10px;
    background: var(--white);
    border: 1px solid rgba(220, 217, 210, .9);
    box-shadow: 0 16px 40px rgba(14, 16, 18, .12);
    opacity: .75;
    border-radius: 4px;
    will-change: transform;
}
.fragment img { filter: saturate(.85) contrast(1.04); }
.fragment-1 { top: 10%; left: 3%; transform: rotate(-5deg); }
.fragment-2 { bottom: 10%; right: 4%; transform: rotate(4deg); }

/* ==========================================================================
   III. The Chapters (Collections)
   ========================================================================== */
.chapters {
    padding: 130px 0 60px;
    background: var(--white);
    position: relative;
}
.chapters-head {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 52px;
    padding-inline: 24px;
}

.section-title {
    font-size: clamp(2.2rem, 5.2vw, 3.25rem);
    font-weight: 300;
    color: var(--slate);
    margin-bottom: 20px;
    letter-spacing: -0.02em;
}
.chapters-intro {
    font-size: clamp(1.1rem, 2.1vw, 1.4rem);
    color: var(--body);
    line-height: 1.65;
}
.chapters-intro strong {
    font-weight: 600;
    font-style: normal;
    letter-spacing: .03em;
    color: var(--slate);
}

.chapter {
    display: grid;
    grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
    align-items: center;
    gap: clamp(36px, 7vw, 96px);
    max-width: 1260px;
    margin: 0 auto;
    padding: clamp(56px, 9vh, 108px) 32px;
}
.chapter--flip .chapter-media { order: 2; }
.chapter--flip .chapter-text  { order: 1; }

.chapter-media { position: relative; }
.chapter-figure {
    position: relative;
    margin: 0;
    padding: 14px;
    background: var(--white);
    border: 1px solid rgba(220, 217, 210, .7);
    border-radius: 2px;
    box-shadow: var(--shadow-card);
    transform: perspective(900px) rotateX(var(--rx, 0)) rotateY(var(--ry, 0));
    transition: transform .5s var(--ease-out), box-shadow .5s ease, border-color .3s ease;
    will-change: transform;
    overflow: hidden;
}
.chapter-figure:hover {
    box-shadow: var(--shadow-lift);
    border-color: rgba(154, 129, 80, .3);
}
.chapter-figure img {
    width: 100%;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    transform: scale(1.06) translateY(var(--py, 0));
    transition: transform .2s linear;
    will-change: transform;
}

.chapter-numeral {
    position: absolute;
    top: -.55em;
    right: -12px;
    font-family: var(--font-serif);
    font-size: clamp(5.5rem, 12vw, 9.5rem);
    line-height: 1;
    color: transparent;
    -webkit-text-stroke: 1px rgba(14, 16, 18, .12);
    pointer-events: none;
    transition: -webkit-text-stroke-color .4s ease;
}
.chapter:hover .chapter-numeral {
    -webkit-text-stroke-color: rgba(154, 129, 80, .32);
}
.chapter--flip .chapter-numeral { right: auto; left: -12px; }

.chapter-count {
    font-size: .6875rem;
    font-weight: 600;
    letter-spacing: .4em;
    text-transform: uppercase;
    color: var(--mist);
    margin: 0 0 16px;
}
.chapter-title {
    font-size: clamp(2rem, 3.8vw, 2.9rem);
    font-weight: 300;
    color: var(--slate);
    margin: 0 0 12px;
    letter-spacing: -0.02em;
}
.chapter-tagline {
    font-size: clamp(1.2rem, 2.2vw, 1.45rem);
    color: var(--fog);
    margin: 0 0 20px;
    line-height: 1.4;
}
.chapter-desc {
    max-width: 52ch;
    margin: 0 0 30px;
    line-height: 1.85;
}

.strata-label {
    display: block;
    font-size: .625rem;
    font-weight: 600;
    letter-spacing: .32em;
    text-transform: uppercase;
    color: var(--mist);
    margin-bottom: 12px;
}
.strata-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    list-style: none;
    margin: 0;
    padding: 0;
}
.stratum-chip {
    display: inline-flex;
    align-items: center;
    padding: 8px 20px;
    font-size: .75rem;
    font-weight: 500;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--slate);
    background: var(--bone);
    text-decoration: none;
    border: 1px solid var(--chalk);
    border-radius: 999px;
    box-shadow: 0 2px 6px rgba(14, 16, 18, .02);
    transition: border-color .3s ease, background-color .3s ease, color .3s ease, transform .3s var(--ease-out), box-shadow .3s ease;
}
.stratum-chip:hover, .stratum-chip:focus-visible {
    border-color: var(--ink);
    background: var(--ink);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(14, 16, 18, .12);
}

/* ==========================================================================
   III. The Chapters (Collections)
   ========================================================================== */
.chapters {
    padding: clamp(100px, 14vh, 160px) 24px clamp(120px, 16vh, 180px);
    background: var(--white);
    position: relative;
}
.chapters-head {
    text-align: center;
    max-width: 760px;
    margin: 0 auto 90px;
}
.section-title {
    font-family: var(--font-serif);
    font-size: clamp(2.4rem, 5.5vw, 3.8rem);
    font-weight: 400;
    line-height: 1.15;
    color: var(--slate);
    margin: 0 0 18px;
    letter-spacing: -0.015em;
}
.chapters-intro {
    font-size: clamp(1.05rem, 2.2vw, 1.25rem);
    line-height: 1.7;
    color: var(--body);
    margin: 0;
}

.chapter {
    display: grid;
    grid-template-columns: 1.05fr 1fr;
    align-items: center;
    gap: clamp(48px, 7vw, 110px);
    max-width: var(--container);
    margin: 0 auto clamp(90px, 12vh, 140px);
    position: relative;
}
.chapter:last-child { margin-bottom: 0; }
.chapter--flip { grid-template-columns: 1fr 1.05fr; }
.chapter--flip .chapter-media { order: 2; }
.chapter--flip .chapter-text  { order: 1; }

.chapter-media {
    position: relative;
}
.chapter-figure {
    position: relative;
    padding: 18px;
    background: var(--white);
    border: 1px solid rgba(215, 210, 200, 0.85);
    border-radius: 4px;
    box-shadow:
        0 20px 50px -10px rgba(14, 16, 18, 0.12),
        0 0 0 1px rgba(255, 255, 255, 0.9) inset;
    overflow: hidden;
    transform: perspective(1000px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
    transition: transform .4s var(--ease-out), box-shadow .4s ease, border-color .3s ease;
}
.chapter-figure:hover {
    box-shadow:
        0 28px 65px -12px rgba(14, 16, 18, 0.18),
        0 0 0 1px rgba(154, 129, 80, 0.4);
    border-color: rgba(154, 129, 80, 0.5);
}
.chapter-figure img {
    width: 100%;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    display: block;
    border-radius: 2px;
    transform: translateY(var(--py, 0px)) scale(1.02);
    transition: transform .3s ease;
}

.chapter-numeral {
    position: absolute;
    top: -30px;
    right: -24px;
    font-family: var(--font-serif);
    font-size: clamp(6rem, 13vw, 10rem);
    line-height: 1;
    font-weight: 300;
    color: transparent;
    -webkit-text-stroke: 1.5px rgba(154, 129, 80, 0.3);
    opacity: 0.8;
    pointer-events: none;
    /* The figure's perspective transform makes a stacking context, so the
       numeral was painting behind the artwork and reading as a glitch. */
    z-index: 3;
    transition: -webkit-text-stroke-color .4s ease, opacity .4s ease;
}
.chapter:hover .chapter-numeral {
    -webkit-text-stroke-color: rgba(154, 129, 80, 0.6);
    opacity: 1;
}
.chapter--flip .chapter-numeral {
    right: auto;
    left: -24px;
}

.chapter-text {
    position: relative;
    z-index: 2;
}
.chapter-count {
    font-size: .6875rem;
    font-weight: 600;
    letter-spacing: .36em;
    text-transform: uppercase;
    color: var(--gold);
    margin: 0 0 14px;
}
.chapter-title {
    font-family: var(--font-serif);
    font-size: clamp(2rem, 4.2vw, 3rem);
    font-weight: 400;
    line-height: 1.2;
    color: var(--slate);
    margin: 0 0 14px;
    letter-spacing: -0.01em;
}
.chapter-tagline {
    font-size: 1.15rem;
    line-height: 1.6;
    color: var(--body);
    margin: 0 0 18px;
}
.chapter-desc {
    font-size: .95rem;
    line-height: 1.85;
    color: var(--body);
    margin: 0 0 28px;
}

.chapter-strata {
    margin-bottom: 24px;
}
.strata-label {
    display: block;
    font-size: .625rem;
    font-weight: 700;
    letter-spacing: .24em;
    text-transform: uppercase;
    color: var(--mist);
    margin-bottom: 8px;
}
.strata-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    list-style: none;
    margin: 0;
    padding: 0;
}
.stratum-chip {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 999px;
    background: var(--bone);
    border: 1px solid var(--chalk);
    color: var(--slate);
    font-size: .75rem;
    font-weight: 500;
    text-decoration: none;
    transition: all .25s ease;
}
.stratum-chip:hover {
    background: var(--ink);
    color: #fff;
    border-color: var(--ink);
    transform: translateY(-1px);
}

/* ==========================================================================
   IV. The Passage (Horizontal Gallery Showcase)
   ========================================================================== */
.passage {
    position: relative;
    background: var(--bone);
    border-top: 1px solid var(--chalk);
    border-bottom: 1px solid var(--chalk);
}
.passage-sticky {
    position: sticky;
    top: 0;
    min-height: 100vh;
    min-height: 100svh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow: hidden;
    padding-block: 54px;
}
.passage-head {
    text-align: center;
    padding-inline: 24px;
    margin-bottom: 44px;
}
.passage-hint {
    color: var(--fog);
    font-size: 1.1rem;
    margin-top: 6px;
}

.passage-track {
    display: flex;
    align-items: stretch;
    gap: clamp(32px, 4.5vw, 60px);
    padding-inline: max(32px, calc((100vw - var(--container)) / 2));
    width: max-content;
    will-change: transform;
}
.passage-item {
    margin: 0;
    width: clamp(260px, 32vw, 400px);
    flex-shrink: 0;
}
.passage-frame {
    background: var(--white);
    padding: 16px;
    border: 1px solid rgba(220, 217, 210, .7);
    border-radius: 2px;
    box-shadow: var(--shadow-card);
    transition: transform .5s var(--ease-out), box-shadow .5s ease, border-color .3s ease;
}
.passage-item:hover .passage-frame {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lift);
    border-color: rgba(154, 129, 80, .35);
}
.passage-frame img {
    width: 100%;
    aspect-ratio: 4 / 5;
    object-fit: cover;
}
.passage-item figcaption {
    padding: 16px 4px 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.passage-title {
    font-size: 1rem;
    font-weight: 500;
    color: var(--slate);
    letter-spacing: -0.01em;
}
.passage-meta {
    font-size: .78rem;
    letter-spacing: .08em;
    color: var(--mist);
}
.passage-meta em {
    font-style: italic;
    color: var(--fog);
}

.passage-item--end { display: flex; }
.passage-endcard {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 20px;
    width: 100%;
    min-height: 100%;
    background: var(--white);
    border: 1px dashed rgba(180, 175, 168, .8);
    border-radius: 2px;
    text-align: center;
    text-decoration: none;
    color: var(--fog);
    font-size: 1.4rem;
    line-height: 1.45;
    padding: 32px 24px;
    transition: border-color .35s ease, color .35s ease, transform .35s var(--ease-out), box-shadow .35s ease;
}
.passage-endcard:hover {
    border-color: var(--ink);
    color: var(--ink);
    transform: translateY(-6px);
    box-shadow: var(--shadow-card);
}
.passage-endlink {
    font-family: var(--font-sans);
    font-size: .75rem;
    font-weight: 600;
    letter-spacing: .24em;
    text-transform: uppercase;
    color: var(--ink);
}

/* ==========================================================================
   V. The Interlude ("The Dark Beneath")
   ========================================================================== */
.interlude {
    position: relative;
    padding: clamp(130px, 22vh, 220px) 24px;
    background: #0d0e10;
    color: #edebe8;
    text-align: center;
    overflow: hidden;
}
.interlude-spiral {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    color: #edebe8;
    opacity: .07;
    pointer-events: none;
}
.interlude-spiral svg {
    width: min(120vmin, 920px);
    animation: slowSpin 200s linear infinite reverse;
}

.interlude-quote {
    font-family: var(--font-serif);
    font-style: italic;
    font-weight: 400;
    font-size: clamp(1.8rem, 4.4vw, 3.1rem);
    line-height: 1.48;
    max-width: 920px;
    margin: 0 auto;
    color: #edebe8;
    position: relative;
    letter-spacing: -0.01em;
}
.interlude-attr {
    margin: 40px 0 0;
    font-size: .75rem;
    font-weight: 500;
    letter-spacing: .32em;
    text-transform: uppercase;
    color: rgba(237, 235, 232, .55);
    position: relative;
}

/* ==========================================================================
   VI. Field Notes (Chronicle Timeline)
   ========================================================================== */
.field-notes {
    padding: 140px 24px 120px;
    background: var(--white);
    position: relative;
}

.notes-timeline {
    position: relative;
    max-width: 1120px;
    margin: 80px auto 0;
}
.notes-line {
    position: absolute;
    top: 0; bottom: 0;
    left: 50%;
    width: 1.5px;
    background: var(--chalk);
    transform: translateX(-50%);
}
.notes-line-progress {
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 100%;
    background: linear-gradient(180deg, var(--gold) 0%, var(--slate) 100%);
    transform: scaleY(var(--progress, 0));
    transform-origin: top;
    will-change: transform;
}

.note {
    position: relative;
    width: 50%;
    padding: 38px 0;
}
.note--left  { padding-right: clamp(40px, 5.5vw, 72px); }
.note--right { margin-left: 50%; padding-left: clamp(40px, 5.5vw, 72px); }

.note-node {
    position: absolute;
    top: 66px;
    width: 13px; height: 13px;
    border-radius: 50%;
    background: var(--white);
    border: 2px solid var(--slate);
    box-shadow: 0 0 10px rgba(14, 16, 18, .1);
    z-index: 2;
    transition: transform .3s ease, border-color .3s ease;
}
.note:hover .note-node {
    transform: scale(1.3);
    border-color: var(--gold);
}
.note--left  .note-node { right: -7px; }
.note--right .note-node { left: -6px; }

.note-card {
    background: var(--white);
    border: 1px solid rgba(220, 217, 210, .7);
    border-radius: 2px;
    box-shadow: var(--shadow-card);
    overflow: hidden;
    transform: perspective(900px) rotateX(var(--rx, 0)) rotateY(var(--ry, 0));
    transition: transform .5s var(--ease-out), box-shadow .5s ease, border-color .3s ease;
}
.note-card:hover {
    box-shadow: var(--shadow-lift);
    border-color: rgba(154, 129, 80, .35);
}
.note-media { display: block; overflow: hidden; position: relative; background: var(--bone); }
/* The field studies are annotated sketches of varying proportion — cropping
   them to a landscape band cuts the subject out and leaves only margin notes.
   Contain shows the whole plate. */
.note-media img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: contain;
    transition: transform .8s var(--ease-out);
    filter: saturate(.9);
}
.note-card:hover .note-media img {
    transform: scale(1.06);
    filter: saturate(1.02);
}

.note-body { padding: 26px 30px 24px; }
.note-epoch {
    display: inline-block;
    padding: 3px 10px;
    background: rgba(73, 91, 76, .08);
    border-radius: 999px;
    font-size: .625rem;
    font-weight: 600;
    letter-spacing: .24em;
    text-transform: uppercase;
    color: var(--moss);
    margin: 0 0 12px;
}
.note-title {
    font-size: 1.35rem;
    font-weight: 400;
    line-height: 1.4;
    margin: 0 0 12px;
}
.note-title a { color: var(--slate); text-decoration: none; transition: color .25s ease; }
.note-title a:hover { color: var(--ink); }
.note-excerpt { font-size: .925rem; line-height: 1.8; margin: 0 0 18px; color: var(--body); }
.note-foot {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    border-top: 1px solid var(--chalk);
    padding-top: 16px;
}
.note-foot time { font-size: .78rem; color: var(--mist); }

.post-readmore {
    font-size: .72rem;
    font-weight: 600;
    letter-spacing: .2em;
    text-transform: uppercase;
    text-decoration: none;
    color: var(--slate);
    border-bottom: 1px solid transparent;
    transition: color .3s ease, border-color .3s ease;
}
.post-readmore:hover { color: var(--ink); border-bottom-color: currentColor; }

/* ==========================================================================
   VII. Contact & The Studio
   ========================================================================== */
.contact {
    position: relative;
    padding: clamp(120px, 20vh, 180px) 24px;
    text-align: center;
    color: #f0f0f0;
    background:
        linear-gradient(rgba(5, 6, 7, .84), rgba(5, 6, 7, .84)),
        #cbcbcb url('../images/contact-bg.jpg') center / cover no-repeat fixed;
}
@supports (-webkit-touch-callout: none) { .contact { background-attachment: scroll; } }

.contact-inner { max-width: 760px; margin-inline: auto; }
/* Was inheriting the sans stack — the only display heading on the site that
   wasn't Cormorant, which made this section read as a different website. */
.contact-title {
    font-family: var(--font-serif);
    font-size: clamp(2.2rem, 5vw, 3.5rem);
    font-weight: 400;
    color: #f5f4f2;
    letter-spacing: -0.015em;
}
.contact-divider { padding-block: 24px; }
.contact-divider span {
    display: block;
    width: 22%;
    max-width: 160px;
    margin-inline: auto;
    height: 1.5px;
    background: linear-gradient(90deg, transparent, rgba(213, 213, 212, .8) 50%, transparent);
}
.contact-lede {
    font-size: clamp(1.2rem, 2.3vw, 1.45rem);
    color: rgba(245, 244, 242, .88);
    margin-bottom: 22px;
    line-height: 1.55;
}
.contact p { font-size: .95rem; font-weight: 300; margin: .5em 0; color: rgba(245, 244, 242, .8); }

.contact-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 34px;
    padding: 16px 48px;
    font-size: .75rem;
    font-weight: 600;
    letter-spacing: .28em;
    text-transform: uppercase;
    color: var(--ink);
    background: #f5f4f2;
    border-radius: 999px;
    text-decoration: none;
    box-shadow: 0 4px 20px rgba(0, 0, 0, .2);
    transition: background-color .3s ease, color .3s ease, transform .3s var(--ease-out), box-shadow .3s ease;
}
.contact-button:hover, .contact-button:focus-visible {
    background: var(--white);
    color: var(--ink);
    box-shadow: 0 10px 30px rgba(0, 0, 0, .35), 0 0 20px rgba(255, 255, 255, .3);
    transform: translateY(-3px);
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
    padding: 80px 24px 48px;
    text-align: center;
    background: var(--white);
    color: var(--mist);
    font-size: .8125rem;
    border-top: 1px solid var(--chalk);
}
.footer-spiral {
    display: grid;
    place-items: center;
    color: var(--fog);
    margin-bottom: 20px;
}
.footer-spiral svg {
    width: 44px;
    animation: slowSpin 90s linear infinite;
}
.footer-line {
    font-size: 1.35rem;
    color: var(--fog);
    margin: 0 0 30px;
}

.social-icons {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin: 0 0 36px;
    padding: 0;
    list-style: none;
}
.social-icons a {
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: var(--white);
    border: 1px solid var(--chalk);
    box-shadow: 0 2px 10px rgba(14, 16, 18, .06);
    transition: transform .25s var(--ease-out), box-shadow .25s ease, border-color .25s ease;
}
.social-icons svg {
    width: 18px;
    height: 18px;
    fill: #686868;
    transition: fill .25s ease;
}
.social-icons a:hover, .social-icons a:focus-visible {
    transform: translateY(-4px) scale(1.06);
    box-shadow: var(--shadow-card);
    border-color: var(--slate);
}
.social-icons a:hover svg { fill: var(--ink); }

.site-footer p { margin: .4em 0; }
.footer-credit a { color: var(--body); font-weight: 500; text-decoration: none; }
.footer-credit a:hover { color: var(--ink); }

.cookie-settings-btn {
    background: none;
    border: 0;
    padding: 0;
    font-family: inherit;
    font-size: inherit;
    color: var(--fog);
    cursor: pointer;
    text-decoration: underline;
    transition: color .2s ease;
}
.cookie-settings-btn:hover { color: var(--ink); }

/* Scroll to top button */
.scroll-top {
    position: fixed;
    right: 28px; bottom: 28px;
    z-index: 85;
    display: grid;
    place-items: center;
    width: 46px; height: 46px;
    border: 1px solid var(--chalk);
    border-radius: 50%;
    background: var(--white);
    color: var(--slate);
    cursor: pointer;
    opacity: 0; visibility: hidden;
    transform: translateY(14px);
    box-shadow: var(--shadow-card);
    transition: opacity .3s ease, transform .3s var(--ease-out), visibility .3s, background-color .2s ease, color .2s ease, border-color .2s ease;
}
.scroll-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.scroll-top:hover {
    background: var(--ink);
    color: #fff;
    border-color: var(--ink);
    transform: translateY(-3px);
    box-shadow: var(--shadow-lift);
}

/* ==========================================================================
   Inner Pages (Gallery, Artwork, Collections, Writings)
   ========================================================================== */
.crumbs {
    display: flex;
    justify-content: center;
    gap: 10px;
    font-size: .6875rem;
    font-weight: 600;
    letter-spacing: .24em;
    text-transform: uppercase;
    margin-bottom: 36px;
    color: var(--mist);
}
.crumbs a { color: var(--mist); text-decoration: none; transition: color .2s ease; }
.crumbs a:hover { color: var(--ink); }

/* --- Gallery Hall --- */
.gallery-hall {
    max-width: 1280px;
    margin-inline: auto;
    padding: clamp(60px, 9vh, 100px) 32px 70px;
}
.gallery-head {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 52px;
}

.gallery-filters {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-bottom: 56px;
}
.filter-chip {
    padding: 10px 24px;
    font-family: var(--font-sans);
    font-size: .75rem;
    font-weight: 500;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--slate);
    background: var(--bone);
    border: 1px solid var(--chalk);
    border-radius: 999px;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(14, 16, 18, .02);
    transition: border-color .3s ease, background-color .3s ease, color .3s ease, transform .25s var(--ease-out);
}
.filter-chip:hover { border-color: var(--slate); transform: translateY(-1px); }
.filter-chip.is-active {
    background: var(--ink);
    border-color: var(--ink);
    color: var(--white);
    box-shadow: 0 4px 14px rgba(14, 16, 18, .15);
}

.gallery-grid {
    columns: 3 320px;
    column-gap: clamp(28px, 3.5vw, 44px);
}
.gallery-piece {
    display: block;
    width: 100%;
    margin: 0 0 clamp(28px, 3.5vw, 44px);
    padding: 0;
    background: none;
    border: 0;
    cursor: pointer;
    text-align: left;
    break-inside: avoid;
    font: inherit;
}
.gallery-piece.is-hidden { display: none; }

.piece-frame {
    position: relative;
    display: block;
    background: var(--white);
    padding: 14px;
    border: 1px solid rgba(220, 217, 210, .7);
    border-radius: 2px;
    box-shadow: var(--shadow-card);
    transition: transform .5s var(--ease-out), box-shadow .5s ease, border-color .3s ease;
}
.gallery-piece:hover .piece-frame,
.gallery-piece:focus-within .piece-frame {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lift);
    border-color: rgba(154, 129, 80, .35);
}

.piece-hover {
    position: absolute;
    inset: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(14, 16, 18, .6);
    backdrop-filter: blur(4px);
    opacity: 0;
    transition: opacity .35s ease;
}
.gallery-piece:hover .piece-hover,
.gallery-piece:focus-within .piece-hover { opacity: 1; }

.piece-actions { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.piece-action {
    min-width: 160px;
    padding: 12px 26px;
    font-family: var(--font-sans);
    font-size: .6875rem;
    font-weight: 600;
    letter-spacing: .24em;
    text-transform: uppercase;
    text-align: center;
    text-decoration: none;
    white-space: nowrap;
    color: #f5f4f2;
    background: rgba(245, 244, 242, .08);
    border: 1px solid rgba(245, 244, 242, .6);
    border-radius: 999px;
    cursor: pointer;
    opacity: 0;
    transform: translateY(12px);
    transition: opacity .4s ease, transform .5s var(--ease-out),
                background-color .3s ease, color .3s ease, border-color .3s ease;
}
.piece-action--alt { transition-delay: .06s; }
.gallery-piece:hover .piece-action,
.gallery-piece:focus-within .piece-action { opacity: 1; transform: none; }
.piece-action:hover, .piece-action:focus-visible {
    background: #f5f4f2;
    color: var(--ink);
    border-color: #f5f4f2;
}

@media (hover: none) {
    .piece-hover {
        opacity: 1;
        align-items: flex-end;
        justify-content: center;
        padding-bottom: 18px;
        background: linear-gradient(to top, rgba(14, 16, 18, .75), rgba(14, 16, 18, .1) 60%, transparent);
    }
    .piece-action { opacity: 1; transform: none; }
}

.piece-caption {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 14px 4px 0;
}

/* --- The Room (Virtual Wall Viewer) --- */
body.room-open { overflow: hidden; }

.room {
    position: fixed;
    inset: 0;
    z-index: 300;
    display: flex;
    flex-direction: column;
    background: #090a0c;
    opacity: 0;
    transition: opacity .35s ease;
}
.room.is-open { opacity: 1; }
.room[hidden], .room-closeup[hidden] { display: none; }

.room-scene {
    position: relative;
    flex: 1;
    margin: clamp(16px, 3vh, 36px) clamp(16px, 4vw, 64px) 0;
    overflow: hidden;
    border-radius: 4px;
    background: #e8e5df url('../images/room-wall.jpg') center 38% / cover no-repeat;
    box-shadow: 0 30px 80px rgba(0, 0, 0, .6);
}
.room-scene::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(120% 100% at 50% 42%, transparent 45%, rgba(10, 10, 10, .42) 100%);
    pointer-events: none;
}

.room-hang {
    position: absolute;
    left: 50%; top: 47%;
    transform: translate(-50%, -50%);
}
.room-hang.is-hung .room-frame { animation: hangSettle .9s var(--ease-out) both; }
@keyframes hangSettle {
    0%   { opacity: 0; transform: translateY(-18px); }
    60%  { opacity: 1; transform: translateY(2px); }
    100% { opacity: 1; transform: none; }
}

.room-frame {
    margin: 0;
    padding: 0;
    box-shadow:
        0 2px 4px rgba(0, 0, 0, .2),
        0 36px 50px -16px rgba(0, 0, 0, .45),
        0 64px 76px -30px rgba(0, 0, 0, .35);
}
.room-frame img { display: block; object-fit: cover; }

.room-plaque {
    position: absolute;
    right: clamp(20px, 4vw, 56px);
    bottom: clamp(20px, 4vh, 48px);
    display: flex;
    flex-direction: column;
    gap: 4px;
    width: clamp(170px, 18vw, 224px);
    padding: 20px 22px;
    background: rgba(251, 250, 248, .94);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(220, 217, 210, .8);
    box-shadow: 0 16px 36px rgba(0, 0, 0, .3);
    border-radius: 2px;
    font-size: .75rem;
    color: var(--body);
    opacity: 0;
    transform: translateY(8px);
    transition: opacity .5s ease .25s, transform .5s ease .25s;
}
.room-hang.is-hung ~ .room-plaque { opacity: 1; transform: none; }
.plaque-title { font-family: var(--font-serif); font-style: italic; font-size: 1.1rem; color: var(--ink); line-height: 1.3; }
.plaque-meta { color: var(--stone); }
.plaque-dims { color: var(--mist); }
.plaque-price { margin-top: 8px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; font-size: .6875rem; color: var(--slate); }
.plaque-link { margin-top: 14px; font-size: .8125rem; font-weight: 500; color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--ink); display: inline-block; }

.room-closeup {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 20px;
    padding: clamp(16px, 3vh, 36px) clamp(16px, 4vw, 64px) 0;
    min-height: 0;
}
.room-closeup img { max-width: 100%; max-height: 78%; object-fit: contain; box-shadow: 0 24px 60px rgba(0, 0, 0, .5); }
.closeup-caption { font-family: var(--font-serif); font-style: italic; font-size: 1.15rem; color: rgba(245, 244, 242, .8); text-align: center; max-width: 60ch; margin: 0; }

.room-chrome { position: relative; display: flex; align-items: center; justify-content: center; gap: 24px; padding: 18px 80px; }
.room-modes { display: flex; border: 1px solid rgba(255, 255, 255, .25); border-radius: 999px; overflow: hidden; }
.room-mode {
    padding: 9px 24px;
    font-family: var(--font-sans);
    font-size: .6875rem;
    font-weight: 600;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: rgba(245, 244, 242, .7);
    background: none;
    border: 0;
    cursor: pointer;
    transition: background-color .3s ease, color .3s ease;
}
.room-mode.is-active { background: #f5f4f2; color: var(--ink); }
.room-note { margin: 0; font-size: .85rem; color: rgba(245, 244, 242, .5); }

.room-nav, .room-close {
    position: absolute;
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    font-size: 1.2rem;
    color: rgba(245, 244, 242, .85);
    background: none;
    border: 1px solid rgba(255, 255, 255, .25);
    border-radius: 50%;
    cursor: pointer;
    transition: background-color .3s ease, color .3s ease, border-color .3s ease;
}
.room-nav:hover, .room-close:hover { background: #f5f4f2; color: var(--ink); border-color: #f5f4f2; }
.room-nav--prev { left: clamp(16px, 4vw, 64px); }
.room-nav--next { right: clamp(16px, 4vw, 64px); }
.room-close { position: fixed; top: clamp(24px, 4vh, 44px); right: clamp(24px, 4vw, 72px); }

/* --- Single Artwork & Single Field Note (Studies) --- */
.study {
    max-width: 900px;
    margin-inline: auto;
    padding: clamp(60px, 9vh, 100px) 24px 44px;
}
.study-head { text-align: center; max-width: 720px; margin: 0 auto 48px; }
.study-title {
    font-family: var(--font-serif);
    font-weight: 400;
    font-size: clamp(2.1rem, 5.2vw, 3.4rem);
    line-height: 1.2;
    color: var(--slate);
    margin: 0 0 18px;
}
.study-meta {
    font-size: .78rem;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--mist);
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}
.study-site { color: var(--fog); font-weight: 500; }

.study-figure {
    margin: 0 0 54px;
    background: var(--white);
    padding: 16px;
    border: 1px solid rgba(220, 217, 210, .8);
    border-radius: 2px;
    box-shadow: var(--shadow-card);
}
.study-figure img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }

.study-body {
    max-width: 660px;
    margin-inline: auto;
    font-size: 1.08rem;
    line-height: 1.95;
    color: var(--body);
}
.study-body p { margin: 0 0 1.7em; }
.study-body > p:first-of-type::first-letter {
    font-family: var(--font-serif);
    font-size: 3.5em;
    line-height: .8;
    float: left;
    padding: .08em .14em 0 0;
    color: var(--slate);
}

.study-foot { text-align: center; margin-top: 60px; }
.study-foot-line { font-size: 1.35rem; color: var(--fog); margin: 24px 0 16px; }

.study-adjacent {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1px;
    background: var(--chalk);
    border-block: 1px solid var(--chalk);
    margin-top: 54px;
}
.adjacent-card {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: clamp(34px, 5.5vw, 60px);
    background: var(--white);
    text-decoration: none;
    transition: background-color .3s ease;
}
.adjacent-card:hover { background: var(--bone); }
.adjacent-card--next { text-align: right; align-items: flex-end; }
.adjacent-card:only-child { grid-column: 1 / -1; text-align: center; align-items: center; }
.adjacent-label { font-size: .625rem; font-weight: 600; letter-spacing: .3em; text-transform: uppercase; color: var(--mist); }
.adjacent-title { font-size: clamp(1.2rem, 2.5vw, 1.55rem); line-height: 1.35; color: var(--slate); }
.adjacent-card:hover .adjacent-title { color: var(--ink); }

/* --- Artwork Product Page --- */
.product-figure { margin: 0; }
.product-figure img { aspect-ratio: 6 / 5; }
.product-thumbs { display: flex; gap: 12px; margin: 16px 0 54px; flex-wrap: wrap; }
.product-thumb {
    width: 80px; height: 80px;
    padding: 0;
    border: 2px solid transparent;
    border-radius: 2px;
    background: var(--white);
    box-shadow: var(--shadow-card);
    cursor: pointer;
    overflow: hidden;
    transition: border-color .2s ease, transform .2s ease;
}
.product-thumb:hover { transform: translateY(-2px); }
.product-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.product-thumb.is-active { border-color: var(--ink); }
.product-details { display: flex; flex-direction: column; gap: 30px; align-items: center; text-align: center; }
.product-specs {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 22px 36px;
    width: 100%;
    max-width: 540px;
    margin: 0;
    padding: 26px 0;
    border-block: 1px solid var(--chalk);
}
.product-specs dt { font-size: .625rem; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; color: var(--mist); margin: 0 0 4px; }
.product-specs dd { margin: 0; font-size: 1rem; color: var(--slate); }

.product-shipping {
    width: 100%;
    max-width: 540px;
    text-align: left;
    border-top: 1px solid var(--chalk);
    padding-top: 28px;
}
.product-shipping-title { font-size: .6875rem; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; color: var(--mist); margin: 0 0 12px; }
.product-shipping-note { font-size: .925rem; line-height: 1.8; color: var(--body); margin: 0 0 20px; }
.shipping-estimator { display: flex; flex-direction: column; gap: 10px; }
.shipping-label { font-size: .625rem; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; color: var(--mist); }
.shipping-select {
    font-family: var(--font-sans);
    font-size: .95rem;
    color: var(--slate);
    padding: 12px 16px;
    width: 100%;
    background: var(--white);
    border: 1px solid var(--chalk);
    border-radius: 4px;
    cursor: pointer;
    transition: border-color .3s ease;
}
.shipping-select:hover { border-color: var(--fog); }
.shipping-select:focus-visible { outline: 2px solid var(--slate); outline-offset: 2px; border-color: var(--slate); }
.shipping-terms {
    margin: 8px 0 0;
    font-size: .9rem;
    line-height: 1.7;
    color: var(--slate);
    padding: 14px 18px;
    background: var(--bone);
    border-left: 2px solid var(--slate);
    border-radius: 0 4px 4px 0;
}
.shipping-terms strong { letter-spacing: .06em; }
.shipping-terms-note { color: var(--fog); font-size: .84rem; }

.contact-button--dark {
    color: #f5f4f2;
    background: var(--slate);
}
.contact-button--dark:hover, .contact-button--dark:focus-visible {
    background: var(--ink);
    color: #f5f4f2;
    box-shadow: var(--shadow-lift);
}

/* --- Collection Single Page --- */
.chapter-hero {
    display: grid;
    grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
    align-items: center;
    gap: clamp(36px, 7vw, 96px);
    max-width: 1260px;
    margin: 0 auto;
    padding: clamp(60px, 9vh, 100px) 32px;
}
.chapter-hero .crumbs { justify-content: flex-start; margin-bottom: 28px; }
.chapter-hero-title { font-size: clamp(2.3rem, 4.8vw, 3.5rem); font-weight: 300; color: var(--slate); margin: 0 0 14px; }
.chapter-hero-figure {
    margin: 0;
    padding: 14px;
    background: var(--white);
    border: 1px solid rgba(220, 217, 210, .7);
    border-radius: 2px;
    box-shadow: var(--shadow-card);
}
.chapter-hero-figure img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }

.stratum {
    max-width: 1260px;
    margin: 0 auto;
    padding: clamp(44px, 8vh, 80px) 32px;
    border-top: 1px solid var(--chalk);
    scroll-margin-top: calc(var(--header-height) + 20px);
}
.stratum-head { margin-bottom: 38px; }
.stratum-title { font-size: clamp(1.7rem, 3.2vw, 2.3rem); font-weight: 300; color: var(--slate); margin: 0; }
.stratum-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: clamp(28px, 4vw, 48px); }
.stratum-item { width: auto; }
.stratum-empty { font-size: 1.25rem; color: var(--fog); margin: 0; }
.stratum-empty a { color: var(--ink); text-decoration: underline; }

.chapter-onward { text-align: center; padding: clamp(60px, 10vh, 96px) 24px; border-top: 1px solid var(--chalk); }
.chapter-onward-line { font-size: 1.35rem; color: var(--fog); margin: 24px 0 8px; }
.chapter-onward-links { display: flex; flex-direction: column; align-items: center; gap: 24px; }

/* ==========================================================================
   Cookie Consent Banner & Modal
   ========================================================================== */
.cookie-banner {
    position: fixed;
    bottom: 24px;
    right: 24px;
    max-width: 460px;
    width: calc(100% - 48px);
    z-index: 250;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(220, 217, 210, 0.9);
    border-radius: 8px;
    box-shadow: 0 16px 40px rgba(14, 16, 18, 0.16);
    padding: 24px 26px;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity .4s var(--ease-out), transform .4s var(--ease-out);
}
.cookie-banner.is-active {
    opacity: 1;
    transform: none;
}
.cookie-banner-title {
    font-size: .85rem;
    font-weight: 600;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--ink);
    margin: 0 0 8px;
}
.cookie-banner-text {
    font-size: .85rem;
    line-height: 1.65;
    color: var(--body);
    margin: 0 0 18px;
}
.cookie-banner-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
.cookie-btn {
    padding: 9px 18px;
    font-family: var(--font-sans);
    font-size: .72rem;
    font-weight: 600;
    letter-spacing: .14em;
    text-transform: uppercase;
    border-radius: 999px;
    cursor: pointer;
    transition: background-color .25s ease, color .25s ease, border-color .25s ease, transform .2s ease;
}
.cookie-btn--accept {
    background: var(--ink);
    color: #fff;
    border: 1px solid var(--ink);
}
.cookie-btn--accept:hover {
    background: var(--slate);
    transform: translateY(-1px);
}
.cookie-btn--decline {
    background: var(--white);
    color: var(--slate);
    border: 1px solid var(--chalk);
}
.cookie-btn--decline:hover {
    border-color: var(--slate);
    color: var(--ink);
    transform: translateY(-1px);
}
.cookie-btn--settings {
    background: none;
    color: var(--fog);
    border: 1px solid transparent;
}
.cookie-btn--settings:hover {
    color: var(--ink);
    text-decoration: underline;
}
.cookie-btn--save {
    background: var(--ink);
    color: #fff;
    border: 1px solid var(--ink);
}

/* Modal */
body.cookie-modal-open { overflow: hidden; }

.cookie-modal {
    position: fixed;
    inset: 0;
    z-index: 310;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transition: opacity .3s ease, visibility .3s ease;
}
.cookie-modal.is-open {
    opacity: 1;
    visibility: visible;
}
.cookie-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(14, 16, 18, .6);
    backdrop-filter: blur(6px);
}
.cookie-modal-panel {
    position: relative;
    max-width: 580px;
    width: 100%;
    max-height: 88vh;
    overflow-y: auto;
    background: var(--white);
    border: 1px solid var(--chalk);
    border-radius: 8px;
    box-shadow: 0 24px 60px rgba(0, 0, 0, .25);
    padding: 32px;
    z-index: 1;
    transform: scale(.96);
    transition: transform .3s var(--ease-out);
}
.cookie-modal.is-open .cookie-modal-panel { transform: none; }
.cookie-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--chalk);
}
.cookie-modal-title {
    font-size: 1.35rem;
    font-weight: 400;
    color: var(--slate);
    margin: 0;
}
.cookie-modal-close {
    background: none;
    border: 0;
    font-size: 1.5rem;
    color: var(--fog);
    cursor: pointer;
    padding: 4px;
    line-height: 1;
    transition: color .2s ease;
}
.cookie-modal-close:hover { color: var(--ink); }
.cookie-modal-intro {
    font-size: .88rem;
    line-height: 1.7;
    color: var(--body);
    margin: 0 0 24px;
}
.cookie-category {
    padding: 18px 20px;
    background: var(--bone);
    border: 1px solid var(--chalk);
    border-radius: 6px;
    margin-bottom: 16px;
}
.cookie-category-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}
.cookie-category-info { display: flex; flex-direction: column; gap: 2px; }
.cookie-category-name { font-size: .9rem; font-weight: 600; color: var(--slate); }
.cookie-category-status { font-size: .72rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--moss); }
.cookie-category-tag { font-size: .72rem; color: var(--mist); }
.cookie-category-desc { font-size: .84rem; line-height: 1.6; color: var(--fog); margin: 0; }

.cookie-switch {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;
    cursor: pointer;
}
.cookie-switch input { opacity: 0; width: 0; height: 0; }
.cookie-switch-slider {
    position: absolute;
    inset: 0;
    background-color: #ccc;
    border-radius: 24px;
    transition: background-color .3s ease;
}
.cookie-switch-slider::before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    border-radius: 50%;
    transition: transform .3s var(--ease-out);
}
.cookie-switch input:checked + .cookie-switch-slider {
    background-color: var(--ink);
}
.cookie-switch input:checked + .cookie-switch-slider::before {
    transform: translateX(20px);
}

.cookie-modal-footer {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 28px;
    padding-top: 20px;
    border-top: 1px solid var(--chalk);
}

.cookie-toast {
    position: fixed;
    bottom: 28px;
    left: 50%;
    transform: translateX(-50%) translateY(30px);
    background: var(--ink);
    color: #fff;
    padding: 12px 26px;
    border-radius: 999px;
    font-size: .8125rem;
    letter-spacing: .08em;
    box-shadow: var(--shadow-lift);
    opacity: 0;
    pointer-events: none;
    z-index: 350;
    transition: opacity .35s ease, transform .35s var(--ease-out);
}
.cookie-toast.is-visible {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */
@media (max-width: 960px) {
    .menu-toggle { display: flex; }
    .site-nav {
        position: absolute;
        top: var(--header-height);
        left: 0; right: 0;
        background: rgba(255, 255, 255, .98);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        box-shadow: 0 20px 40px rgba(14, 16, 18, .1);
        border-bottom: 1px solid var(--chalk);
        max-height: 0;
        overflow: hidden;
        transition: max-height .4s var(--ease-out);
    }
    .site-nav.is-open {
        max-height: calc(100vh - var(--header-height));
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }
    .site-header { background: rgba(255, 255, 255, .95); }
    .nav-menu { flex-direction: column; align-items: stretch; gap: 0; padding: 12px 0; }
    .nav-link { padding: 16px 32px; border-radius: 0; font-size: .85rem; color: var(--slate); }
    .nav-link::after { display: none; }

    /* Tools submenu is a tap-to-open accordion here; hover/focus-within must
       not reveal it on touch, so display is gated on .is-open alone. */
    .nav-item-dropdown { width: 100%; }
    .nav-link--dropdown { width: 100%; justify-content: space-between; }
    .nav-item-dropdown:hover .nav-dropdown,
    .nav-item-dropdown:focus-within .nav-dropdown,
    .nav-dropdown {
        display: none;
        position: static;
        transform: none;
        min-width: 0;
        width: auto;
        margin: 0 32px 10px;
        padding: 4px;
        background: var(--bone);
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        border: 1px solid var(--chalk);
        border-radius: 8px;
        box-shadow: none;
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
    }
    .nav-item-dropdown .nav-dropdown.is-open {
        display: block;
        transform: none;
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }
    .dropdown-link {
        color: var(--stone);
        padding: 13px 16px;
        white-space: normal;
    }
    .dropdown-link:hover,
    .dropdown-link:focus-visible {
        background: rgba(196, 170, 120, .16);
        color: var(--ink);
        transform: none;
    }

    .chapter { grid-template-columns: 1fr; gap: 36px; }
    .chapter--flip .chapter-media { order: 0; }
    .chapter--flip .chapter-text  { order: 1; }
    .chapter-numeral { right: 8px; }
    .chapter--flip .chapter-numeral { left: 8px; }

    .notes-line { left: 16px; }
    .note, .note--right { width: 100%; margin-left: 0; padding: 26px 0 26px 52px; }
    .note--left { padding-right: 0; }
    .note--left .note-node, .note--right .note-node { left: 10px; right: auto; }

    .prologue-stats { flex-wrap: wrap; gap: 16px; }
    .stat { flex: 1 1 200px; }
    .fragment { opacity: .35; }

    .chapter-hero { grid-template-columns: 1fr; gap: 36px; }
    .study-adjacent { grid-template-columns: 1fr; }
    .adjacent-card--next { text-align: left; align-items: flex-start; }
}

@media (max-width: 640px) {
    .room-hang { top: 40%; }
    .room-plaque {
        left: 16px; right: 16px; bottom: 16px; width: auto;
        flex-direction: row; flex-wrap: wrap; align-items: baseline; column-gap: 12px;
        padding: 12px 16px;
    }
    .room-note { display: none; }
    .room-chrome { padding-inline: 20px; flex-wrap: wrap; justify-content: center; gap: 12px; }
    .room-lighting { order: 2; width: 100%; justify-content: center; }

    .threshold-line { font-size: 1.25rem; }
    .hero-divider span { width: 38%; }
    .passage-item { width: 78vw; }
    .contact { background-attachment: scroll; }
    .cookie-banner { bottom: 16px; right: 16px; left: 16px; width: auto; }
}

/* ==========================================================================
   Fine Art Painter Enhancements
   ========================================================================== */

/* --- Archival 300gsm Cotton Paper & Linen Weave Texture --- */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 1;
    opacity: 0.028;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
    background-repeat: repeat;
    background-size: 180px 180px;
}

/* --- Ambient Spotlight Cursor Glow --- */
.ambient-cursor-glow {
    position: fixed;
    top: 0; left: 0;
    width: 300px; height: 300px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(154, 129, 80, 0.045) 0%, rgba(154, 129, 80, 0.015) 45%, transparent 70%);
    pointer-events: none;
    z-index: 2;
    opacity: 0;
    transition: opacity .6s ease;
    will-change: transform;
}
.ambient-cursor-glow.is-active { opacity: 1; }

/* --- Kildare Pigment Palette Swatches --- */
.chapter-palette, .product-pigments {
    margin-top: 22px;
}
.pigment-list {
    display: flex;
    align-items: center;
    gap: 14px;
    list-style: none;
    margin: 8px 0 0;
    padding: 0;
}
.pigment-item {
    position: relative;
    outline: none;
    cursor: pointer;
}
.pigment-dot {
    display: block;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background-color: var(--swatch, #555);
    border: 2px solid var(--white);
    box-shadow: 0 2px 8px rgba(14, 16, 18, 0.18), inset 0 0 0 1px rgba(0, 0, 0, 0.1);
    transition: transform .3s var(--ease-out), box-shadow .3s ease;
}
.pigment-item:hover .pigment-dot,
.pigment-item:focus-visible .pigment-dot {
    transform: scale(1.35);
    box-shadow: 0 4px 14px rgba(14, 16, 18, 0.28), 0 0 0 3px rgba(154, 129, 80, 0.35);
}

.pigment-tooltip {
    position: absolute;
    bottom: calc(100% + 12px);
    left: 50%;
    transform: translateX(-50%) translateY(8px);
    min-width: 170px;
    max-width: 220px;
    padding: 10px 14px;
    background: var(--ink);
    color: #FAF9F7;
    border-radius: 6px;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.25);
    font-size: .75rem;
    line-height: 1.4;
    text-align: center;
    pointer-events: none;
    opacity: 0;
    visibility: hidden;
    transition: opacity .25s ease, transform .25s var(--ease-out), visibility .25s ease;
    z-index: 100;
}
.pigment-tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 5px solid transparent;
    border-top-color: var(--ink);
}
.pigment-item:hover .pigment-tooltip,
.pigment-item:focus-visible .pigment-tooltip {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}
.pigment-name {
    display: block;
    font-weight: 600;
    letter-spacing: .08em;
    text-transform: uppercase;
    font-size: .6875rem;
    color: #C4AA78;
    margin-bottom: 2px;
}
.pigment-note {
    display: block;
    color: rgba(250, 249, 247, .85);
    font-size: .72rem;
}

/* --- Interactive Studio Loupe Magnifier --- */
.loupe-container {
    position: relative;
    display: inline-block;
    cursor: crosshair;
    overflow: hidden;
}
.product-loupe-container {
    display: block;
    max-width: 100%;
}
.studio-loupe {
    position: absolute;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    pointer-events: none;
    border: 3px solid rgba(255, 255, 255, 0.95);
    box-shadow:
        0 12px 36px rgba(0, 0, 0, 0.4),
        inset 0 0 20px rgba(0, 0, 0, 0.25),
        0 0 0 1px rgba(0, 0, 0, 0.2);
    background-repeat: no-repeat;
    opacity: 0;
    visibility: hidden;
    transform: scale(0.85);
    transition: opacity .2s ease, transform .2s var(--ease-out), visibility .2s ease;
    z-index: 50;
}
.studio-loupe.is-active {
    opacity: 1;
    visibility: visible;
    transform: scale(1);
}
.studio-loupe::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 30%, rgba(255, 255, 255, 0.25) 0%, transparent 60%);
    pointer-events: none;
}
.loupe-hint {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: .88rem;
    color: var(--fog);
    margin: 12px 0 0;
}
.closeup-hint {
    font-size: .88rem;
    color: rgba(245, 244, 242, .6);
    text-align: center;
    margin: 8px 0 0;
}

/* --- Gallery Lighting Simulator (The Room) --- */
.room-lighting {
    display: flex;
    align-items: center;
    gap: 8px;
    border: 1px solid rgba(255, 255, 255, .25);
    border-radius: 999px;
    padding: 3px 12px 3px 14px;
}
.lighting-label {
    font-size: .625rem;
    font-weight: 600;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: rgba(245, 244, 242, .55);
}
.lighting-btn {
    padding: 6px 14px;
    font-family: var(--font-sans);
    font-size: .6875rem;
    font-weight: 500;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: rgba(245, 244, 242, .7);
    background: none;
    border: 0;
    border-radius: 999px;
    cursor: pointer;
    transition: background-color .25s ease, color .25s ease;
}
.lighting-btn:hover { color: #fff; }
.lighting-btn.is-active {
    background: rgba(255, 255, 255, .2);
    color: #fff;
}

/* Warm Spotlight 3000K */
.room.light-warm .room-scene {
    background-color: #E6E1D8;
    filter: brightness(1.02) contrast(1.03);
}
.room.light-warm .room-spotlight {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 65% 55% at 50% 42%, rgba(255, 242, 215, 0.35), transparent 70%);
    pointer-events: none;
    z-index: 1;
    transition: opacity .5s ease;
}

/* Studio Daylight 5500K */
.room.light-day .room-scene {
    background-color: #F0EEE9;
    filter: brightness(1.08) saturate(0.92);
}
.room.light-day .room-spotlight {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 90% 70% at 50% 35%, rgba(230, 242, 255, 0.4), transparent 75%);
    pointer-events: none;
    z-index: 1;
    transition: opacity .5s ease;
}

/* Kildare Half-Light / Dusk 2400K */
.room.light-dusk .room-scene {
    background-color: #35363B;
    filter: brightness(0.82) contrast(1.1);
}
.room.light-dusk .room-spotlight {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 50% 45% at 50% 47%, rgba(255, 205, 140, 0.45), transparent 65%);
    pointer-events: none;
    z-index: 1;
    transition: opacity .5s ease;
}
/* ==========================================================================
   VIII. Gallery Hall (/gallery/)
   ========================================================================== */
.gallery-hall {
    padding: calc(var(--header-height) + 50px) 24px 120px;
    max-width: var(--container);
    margin: 0 auto;
}
.gallery-head {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 50px;
}
.crumbs {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    font-size: .75rem;
    font-weight: 500;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--mist);
    margin-bottom: 24px;
}
.crumbs a { color: var(--stone); text-decoration: none; transition: color .2s ease; }
.crumbs a:hover { color: var(--ink); }

.gallery-filters {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin: 0 auto 50px;
    max-width: 900px;
}
.filter-chip {
    padding: 9px 22px;
    font-family: var(--font-sans);
    font-size: .75rem;
    font-weight: 500;
    letter-spacing: .14em;
    text-transform: uppercase;
    border-radius: 999px;
    background: var(--white);
    border: 1px solid var(--chalk);
    color: var(--stone);
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(14, 16, 18, .04);
    transition: all .25s ease;
}
.filter-chip:hover {
    border-color: var(--slate);
    color: var(--ink);
    transform: translateY(-1px);
}
.filter-chip.is-active {
    background: var(--ink);
    color: #fff;
    border-color: var(--ink);
    box-shadow: 0 4px 14px rgba(14, 16, 18, .18);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: clamp(32px, 4vw, 54px);
    list-style: none;
    padding: 0;
    margin: 0;
}
.gallery-piece {
    position: relative;
    display: flex;
    flex-direction: column;
    cursor: pointer;
    transition: transform .4s var(--ease-out);
}
.gallery-piece.is-hidden { display: none; }
.gallery-piece:hover { transform: translateY(-6px); }

.piece-frame {
    position: relative;
    display: block;
    padding: 16px;
    background: var(--white);
    border: 1px solid rgba(215, 210, 200, .8);
    border-radius: 4px;
    box-shadow:
        0 14px 36px -8px rgba(14, 16, 18, .1),
        0 0 0 1px rgba(255, 255, 255, .8) inset;
    overflow: hidden;
    transition: box-shadow .4s ease, border-color .3s ease;
}
.gallery-piece:hover .piece-frame {
    box-shadow:
        0 24px 50px -10px rgba(14, 16, 18, .18),
        0 0 0 1px rgba(154, 129, 80, .4);
    border-color: rgba(154, 129, 80, .45);
}
.piece-frame img {
    width: 100%;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    display: block;
    border-radius: 2px;
    transition: transform .6s var(--ease-out);
}
.gallery-piece:hover .piece-frame img { transform: scale(1.03); }

.piece-hover {
    position: absolute;
    inset: 16px;
    background: rgba(14, 16, 18, .45);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity .35s ease;
    border-radius: 2px;
    z-index: 5;
}
.gallery-piece:hover .piece-hover { opacity: 1; }

.piece-actions {
    display: flex;
    gap: 12px;
    transform: translateY(8px);
    transition: transform .35s var(--ease-out);
}
.gallery-piece:hover .piece-actions { transform: translateY(0); }

.piece-action {
    padding: 10px 22px;
    font-family: var(--font-sans);
    font-size: .72rem;
    font-weight: 600;
    letter-spacing: .16em;
    text-transform: uppercase;
    border-radius: 999px;
    background: #fff;
    color: var(--ink);
    border: 0;
    cursor: pointer;
    text-decoration: none;
    box-shadow: 0 4px 16px rgba(0, 0, 0, .25);
    transition: all .2s ease;
}
.piece-action:hover {
    background: var(--ink);
    color: #fff;
    transform: scale(1.05);
}
.piece-action--alt {
    background: rgba(255, 255, 255, .2);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, .6);
    backdrop-filter: blur(8px);
}
.piece-action--alt:hover {
    background: #fff;
    color: var(--ink);
    border-color: #fff;
}

.piece-caption {
    padding: 18px 6px 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.piece-title-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 12px;
}
.piece-status-tag {
    font-size: .6875rem;
    font-weight: 600;
    letter-spacing: .1em;
    text-transform: uppercase;
    padding: 3px 10px;
    border-radius: 999px;
    background: var(--bone);
    border: 1px solid var(--chalk);
    color: var(--slate);
}
.piece-status-tag.is-avail {
    color: #8c723f;
    border-color: rgba(154, 129, 80, .35);
    background: rgba(154, 129, 80, .06);
}
.piece-status-tag.is-sold {
    color: var(--mist);
    background: var(--bone);
}

/* ==========================================================================
   IX. The Room (Virtual Scale Viewer & Studio Loupe)
   ========================================================================== */
.room {
    position: fixed;
    inset: 0;
    z-index: 200;
    background: #111215;
    color: #fff;
    display: flex;
    flex-direction: column;
    opacity: 0;
    visibility: hidden;
    transition: opacity .4s ease, visibility .4s ease;
}
.room:not([hidden]) {
    opacity: 1;
    visibility: visible;
}
.room-scene {
    position: relative;
    flex: 1;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center 38%;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color .6s ease, filter .6s ease;
}

.room-hang {
    position: absolute;
    top: 45%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.room-frame {
    position: relative;
    background: #fff;
    padding: clamp(10px, 1.6vmin, 22px);
    box-shadow:
        0 8px 24px rgba(0, 0, 0, .45),
        0 40px 80px -15px rgba(0, 0, 0, .7);
    border-radius: 2px;
}
.room-frame img {
    display: block;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 1px;
}

.room-plaque {
    position: absolute;
    bottom: 32px;
    left: 36px;
    background: rgba(14, 16, 18, .85);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, .15);
    padding: 16px 22px;
    border-radius: 6px;
    color: #fff;
    display: flex;
    flex-direction: column;
    gap: 4px;
    z-index: 20;
    box-shadow: 0 10px 30px rgba(0, 0, 0, .4);
}
.plaque-title { font-family: var(--font-serif); font-size: 1.25rem; font-weight: 400; color: #fff; }
.plaque-meta  { font-size: .78rem; color: rgba(255, 255, 255, .7); letter-spacing: .06em; }
.plaque-dims  { font-size: .75rem; color: rgba(255, 255, 255, .55); }
.plaque-price { font-size: .88rem; font-weight: 600; color: #C4AA78; margin-top: 4px; }

.room-chrome {
    position: absolute;
    top: 24px;
    left: 0; right: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-inline: 36px;
    z-index: 30;
    pointer-events: none;
    gap: 16px;
}
.room-chrome > * { pointer-events: auto; }
.room-modes {
    display: flex;
    gap: 6px;
    background: rgba(14, 16, 18, .75);
    backdrop-filter: blur(10px);
    padding: 4px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, .2);
}
.room-mode {
    padding: 8px 18px;
    font-family: var(--font-sans);
    font-size: .72rem;
    font-weight: 600;
    letter-spacing: .14em;
    text-transform: uppercase;
    border-radius: 999px;
    background: none;
    border: 0;
    color: rgba(255, 255, 255, .7);
    cursor: pointer;
    transition: all .25s ease;
}
.room-mode:hover { color: #fff; }
.room-mode.is-active {
    background: #fff;
    color: var(--ink);
}

.room-close {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(14, 16, 18, .75);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, .25);
    color: #fff;
    font-size: 1.4rem;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all .25s ease;
}
.room-close:hover {
    background: #fff;
    color: var(--ink);
    border-color: #fff;
}

.room-nav {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(14, 16, 18, .75);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, .2);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.1rem;
    transition: all .25s ease;
}
.room-nav:hover { background: #fff; color: var(--ink); border-color: #fff; }

.room-closeup {
    position: absolute;
    inset: 0;
    background: #0f1013;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 80px 24px;
    z-index: 15;
}
.room-closeup[hidden] { display: none; }
#room-loupe-container {
    max-height: 72vh;
    max-width: 85vw;
    display: flex;
    justify-content: center;
    align-items: center;
}
#closeup-img {
    max-height: 72vh;
    max-width: 85vw;
    object-fit: contain;
    border-radius: 2px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, .8);
}
.closeup-caption {
    font-family: var(--font-serif);
    font-size: 1.25rem;
    color: #fff;
    margin: 18px 0 4px;
    text-align: center;
}

/* ==========================================================================
   X. Collection & Artwork Detail Pages
   ========================================================================== */
.chapter-hero {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: clamp(48px, 6vw, 90px);
    max-width: var(--container);
    margin: 0 auto;
    padding: calc(var(--header-height) + 40px) 24px 80px;
}
.chapter-hero-title {
    font-family: var(--font-serif);
    font-size: clamp(2.4rem, 5vw, 4rem);
    font-weight: 400;
    line-height: 1.15;
    color: var(--slate);
    margin: 0 0 16px;
    letter-spacing: -0.015em;
}
.chapter-hero-figure {
    position: relative;
    padding: 18px;
    background: var(--white);
    border: 1px solid rgba(215, 210, 200, .85);
    border-radius: 4px;
    box-shadow: 0 24px 60px -10px rgba(14, 16, 18, .12);
}
.chapter-hero-figure img {
    width: 100%;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    display: block;
    border-radius: 2px;
}

.strata-group {
    max-width: var(--container);
    margin: 0 auto 90px;
    padding-inline: 24px;
}
.strata-head {
    border-bottom: 1px solid var(--chalk);
    padding-bottom: 16px;
    margin-bottom: 36px;
}
.strata-title {
    font-family: var(--font-serif);
    font-size: 1.85rem;
    font-weight: 400;
    color: var(--slate);
    margin: 0 0 4px;
}

.study-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 36px;
    list-style: none;
    padding: 0;
    margin: 0;
}
.study-card {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    transition: transform .35s var(--ease-out);
}
.study-card:hover { transform: translateY(-6px); }
.study-card-frame {
    position: relative;
    padding: 14px;
    background: var(--white);
    border: 1px solid rgba(215, 210, 200, .75);
    border-radius: 3px;
    box-shadow: 0 10px 28px rgba(14, 16, 18, .08);
    overflow: hidden;
    transition: box-shadow .35s ease, border-color .3s ease;
}
.study-card:hover .study-card-frame {
    box-shadow: 0 20px 45px rgba(14, 16, 18, .15);
    border-color: rgba(154, 129, 80, .4);
}
.study-card-frame img {
    width: 100%;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    display: block;
    border-radius: 1px;
}
.study-card-title {
    font-family: var(--font-serif);
    font-size: 1.15rem;
    font-weight: 400;
    color: var(--slate);
    margin: 14px 0 2px;
}
.study-card-meta {
    font-size: .78rem;
    color: var(--fog);
    letter-spacing: .04em;
}

/* Artwork Detail / Product View */
.study-page {
    max-width: var(--container);
    margin: 0 auto;
    padding: calc(var(--header-height) + 40px) 24px 120px;
}
.product-gallery {
    margin-bottom: 40px;
}
.product-figure {
    position: relative;
    padding: 20px;
    background: var(--white);
    border: 1px solid rgba(215, 210, 200, .85);
    border-radius: 4px;
    box-shadow: 0 24px 60px -10px rgba(14, 16, 18, .12);
    display: inline-block;
    max-width: 100%;
}
.product-figure img {
    max-width: 100%;
    height: auto;
    max-height: 78vh;
    object-fit: contain;
    display: block;
    border-radius: 2px;
}
.product-thumbs {
    display: flex;
    gap: 12px;
    margin-top: 18px;
    justify-content: center;
}
.product-thumb {
    width: 72px;
    height: 72px;
    padding: 4px;
    background: var(--white);
    border: 1px solid var(--chalk);
    border-radius: 4px;
    cursor: pointer;
    transition: border-color .2s ease, transform .2s ease;
}
.product-thumb.is-active, .product-thumb:hover {
    border-color: var(--ink);
    transform: scale(1.05);
}
.product-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 2px;
}

.product-specs {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 18px;
    background: var(--bone);
    border: 1px solid var(--chalk);
    padding: 24px;
    border-radius: 6px;
    margin: 28px 0;
}
.product-specs dt {
    font-size: .6875rem;
    font-weight: 600;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: var(--fog);
    margin-bottom: 4px;
}
.product-specs dd {
    font-size: .95rem;
    color: var(--ink);
    margin: 0;
    font-weight: 500;
}
.product-specs dd a { color: var(--ink); text-decoration: underline; }

.chapter-onward {
    text-align: center;
    padding: 80px 24px 100px;
    max-width: 700px;
    margin: 0 auto;
}
.chapter-onward-line {
    font-size: 1.4rem;
    color: var(--slate);
    margin: 24px 0 28px;
}

/* ==========================================================================
   XI. Refinement Layer
   Appended deliberately. Several component blocks above are declared twice —
   a legacy pass and a later one that silently overrides it — so editing them
   in place is ambiguous. Everything below is last-wins and is the source of
   truth for the components it names. Its own breakpoints live at the bottom
   of this block so they aren't outranked by the earlier media queries.
   ========================================================================== */

/* ---------- Prologue: a ledger, not three SaaS cards ---------- */
.prologue-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0;
    margin-top: clamp(70px, 11vh, 124px);
    border-top: 1px solid rgba(14, 16, 18, .82);
    text-align: left;
}
.stat {
    align-items: flex-start;
    gap: 0;
    padding: 30px clamp(16px, 2.4vw, 40px) 36px 0;
    background: none;
    border: 0;
    border-left: 1px solid var(--chalk);
    border-radius: 0;
    box-shadow: none;
    transition: none;
}
.stat:first-child { border-left: 0; }
.stat + .stat { padding-left: clamp(20px, 3vw, 48px); }
.stat:hover { transform: none; box-shadow: none; border-color: var(--chalk); }

/* The gold capsule badge was the loudest "template" signal in the section. */
.stat-badge {
    margin: 0 0 clamp(20px, 3.5vh, 38px);
    padding: 0;
    background: none;
    border: 0;
    border-radius: 0;
    font-size: .5625rem;
    font-weight: 600;
    letter-spacing: .3em;
    color: var(--mist);
}
.stat-number {
    font-size: clamp(3rem, 7vw, 5.2rem);
    line-height: .86;
    letter-spacing: -0.04em;
    margin-bottom: 16px;
}
.stat-label {
    max-width: 20ch;
    text-align: left;
    text-transform: none;
    letter-spacing: .01em;
    font-size: .8rem;
    font-weight: 300;
    line-height: 1.7;
    color: var(--fog);
}

/* ---------- Prologue fragments: plates, not scrapbook polaroids ---------- */
.fragment {
    width: clamp(170px, 21vw, 300px);
    padding: 0;
    background: none;
    border: 0;
    border-radius: 0;
    box-shadow: 0 30px 70px -18px rgba(14, 16, 18, .28);
    opacity: .9;
}
.fragment img { filter: saturate(.82) contrast(1.03); }
.fragment-1 { top: 8%; left: 2%; }
.fragment-2 { bottom: 8%; right: 3%; }

/* ---------- Strata: a set index, not grey pills ---------- */
.stratum-chip {
    display: inline-block;
    padding: 5px 0;
    background: none;
    border: 0;
    border-bottom: 1px solid rgba(14, 16, 18, .16);
    border-radius: 0;
    box-shadow: none;
    font-size: .8rem;
    font-weight: 400;
    letter-spacing: .02em;
    text-transform: none;
    color: var(--stone);
    transition: color .35s var(--ease-out), border-color .35s var(--ease-out);
}
.stratum-chip:hover, .stratum-chip:focus-visible {
    background: none;
    color: var(--ink);
    border-bottom-color: var(--ink);
    transform: none;
    box-shadow: none;
}
.strata-list { gap: 10px 26px; }

/* ---------- Pigment study: name the colours ---------- */
/* Four unlabelled dots read as a colour-picker widget; a hover tooltip means
   the information is invisible until you happen to find it. */
.pigment-list {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    align-items: start;
    gap: 0 clamp(12px, 1.6vw, 24px);
    margin-top: 12px;
}
.pigment-item { cursor: default; }
.pigment-dot {
    width: 100%;
    height: 4px;
    border-radius: 0;
    border: 0;
    box-shadow: none;
    margin-bottom: 10px;
}
.pigment-item:hover .pigment-dot,
.pigment-item:focus-visible .pigment-dot { transform: none; box-shadow: none; }

.pigment-tooltip {
    position: static;
    display: block;
    min-width: 0;
    max-width: none;
    padding: 0;
    background: none;
    border-radius: 0;
    box-shadow: none;
    text-align: left;
    opacity: 1;
    visibility: visible;
    transform: none;
    pointer-events: auto;
}
.pigment-tooltip::after { display: none; }
.pigment-item:hover .pigment-tooltip,
.pigment-item:focus-visible .pigment-tooltip { transform: none; }
.pigment-name {
    font-size: .5625rem;
    font-weight: 600;
    letter-spacing: .16em;
    color: var(--stone);
    margin-bottom: 3px;
}
.pigment-note {
    font-size: .6875rem;
    font-weight: 300;
    line-height: 1.5;
    color: var(--mist);
}

/* ---------- Journey rail: measured ticks, not radio buttons ---------- */
.rail-dot {
    width: 16px;
    height: 1px;
    border-radius: 0;
    border: 0;
    background: rgba(14, 16, 18, .26);
    transition: width .55s var(--ease-out), background-color .4s ease;
}
.journey-rail a:hover .rail-dot { transform: none; background: var(--ink); border: 0; }
.journey-rail a.is-active .rail-dot {
    width: 34px;
    transform: none;
    background: var(--ink);
    border: 0;
    box-shadow: none;
}
.journey-rail.on-dark .rail-dot { background: rgba(255, 255, 255, .3); border: 0; }
.journey-rail.on-dark a:hover .rail-dot,
.journey-rail.on-dark a.is-active .rail-dot { background: #fff; border: 0; box-shadow: none; }
.rail-label { font-size: .5625rem; letter-spacing: .26em; }

/* ---------- Buttons: keep the silhouette, add the mechanism ---------- */
/* A fill that sweeps up from the bottom edge on hover, rather than a colour
   swap and a nudge. .btn-face wraps the label so it paints above the sweep. */
.hero-explore-btn,
.contact-button,
.chapter-explore-link,
.piece-action,
.header-cta-btn {
    position: relative;
    overflow: hidden;
    isolation: isolate;
}
.hero-explore-btn > *,
.contact-button > *,
.chapter-explore-link > *,
.piece-action > *,
.header-cta-btn > * { position: relative; z-index: 1; }

.hero-explore-btn::before,
.contact-button::before,
.chapter-explore-link::before,
.header-cta-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 0;
    transform: translateY(101%);
    transition: transform .62s var(--ease-out);
}
.hero-explore-btn:hover::before,
.hero-explore-btn:focus-visible::before,
.contact-button:hover::before,
.contact-button:focus-visible::before,
.chapter-explore-link:hover::before,
.chapter-explore-link:focus-visible::before,
.header-cta-btn:hover::before,
.header-cta-btn:focus-visible::before { transform: translateY(0); }

/* Dark buttons sweep light */
.hero-explore-btn::before,
.header-cta-btn::before { background: #f5f4f2; }
.hero-explore-btn:hover,
.hero-explore-btn:focus-visible {
    background: var(--ink);
    color: var(--ink);
    transform: none;
    box-shadow: 0 14px 34px rgba(14, 16, 18, .2);
}
.header-cta-btn:hover {
    background: var(--ink);
    color: var(--ink);
    transform: none;
}

/* Light buttons sweep dark */
.contact-button::before { background: var(--ink); }
.contact-button:hover,
.contact-button:focus-visible {
    background: #f5f4f2;
    color: #f5f4f2;
    transform: none;
    box-shadow: 0 14px 34px rgba(0, 0, 0, .3);
}
.contact-button--dark::before { background: #f5f4f2; }
.contact-button--dark:hover,
.contact-button--dark:focus-visible {
    background: var(--slate);
    color: var(--ink);
    box-shadow: 0 14px 34px rgba(14, 16, 18, .22);
}

/* Outlined chapter link */
.chapter-explore-link::before { background: var(--ink); }
.chapter-explore-link:hover,
.chapter-explore-link:focus-visible {
    background: transparent;
    color: #fff;
    border-color: var(--ink);
    transform: none;
    box-shadow: 0 10px 26px rgba(14, 16, 18, .16);
}

/* ---------- Rhythm: close the dead space ---------- */
/* The image column is much taller than the text column; centring both left a
   200–400px void under every chapter. Aligning tops reads as a set grid. */
.chapter { align-items: start; }
.chapter-text { padding-top: clamp(4px, 1.2vw, 22px); }
.chapters { padding-bottom: clamp(80px, 11vh, 130px); }
.chapter { margin-bottom: clamp(70px, 10vh, 118px); }

/* The timeline spine ran past the final card into empty space. */
.notes-line { bottom: clamp(70px, 9vh, 118px); }
.field-notes { padding-bottom: clamp(80px, 11vh, 130px); }

/* Ghost lights read as dust at full strength; hold them back so they behave
   like air rather than smudges on the glass. */
.ghost-lights.is-lit { opacity: .55; }

/* ---------- Refinement breakpoints ---------- */
@media (max-width: 960px) {
    .prologue-stats {
        grid-template-columns: 1fr;
        margin-top: clamp(52px, 8vh, 84px);
    }
    .stat {
        border-left: 0;
        border-top: 1px solid var(--chalk);
        padding: 26px 0 30px;
    }
    .stat + .stat { padding-left: 0; }
    .stat:first-child { border-top: 0; }
    .stat-badge { margin-bottom: 16px; }
    .stat-label { max-width: none; }
    .fragment { opacity: .3; }
}

@media (max-width: 700px) {
    .pigment-list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 18px; }
}

/* Numeral sits above the plate rather than across the artwork. */
.chapter-numeral {
    top: -.62em;
    right: -8px;
    font-size: clamp(5rem, 10vw, 8rem);
    -webkit-text-stroke-width: 1px;
}
.chapter--flip .chapter-numeral { right: auto; left: -8px; }

/* ==========================================================================
   XII. Motion Layer
   Styles for assets/js/motion.js. Every selector here is inert until that
   script adds its hook class, so the page is unaffected if it never runs.
   ========================================================================== */

/* ---------- Loading sequence ---------- */
html.is-loading, html.is-loading body { overflow: hidden; }

.veil {
    position: fixed;
    inset: 0;
    z-index: 400;
    display: grid;
    place-items: center;
    background: var(--white);
    transition: opacity .9s var(--ease-out), visibility .9s;
}
.veil.is-gone { opacity: 0; visibility: hidden; pointer-events: none; }

/* A single rule that draws itself across, then parts. */
.veil-mark {
    position: absolute;
    left: 50%;
    top: 50%;
    width: min(280px, 42vw);
    height: 1px;
    margin-left: calc(min(280px, 42vw) / -2);
    background: var(--chalk);
    overflow: hidden;
}
.veil-mark::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent, var(--gold) 45%, var(--ink));
    transform: scaleX(0);
    transform-origin: left center;
    animation: veilDraw 2.6s cubic-bezier(.16, 1, .3, 1) forwards;
}
@keyframes veilDraw { to { transform: scaleX(1); } }

.veil-count {
    position: absolute;
    left: 50%;
    top: calc(50% + 26px);
    transform: translateX(-50%);
    font-family: var(--font-sans);
    font-size: .625rem;
    font-weight: 600;
    letter-spacing: .34em;
    color: var(--mist);
    font-variant-numeric: tabular-nums;
}
.veil-count i { font-style: normal; }
.veil-count::after { content: '%'; margin-left: 2px; }

/* ---------- Page transitions ---------- */
.curtain {
    position: fixed;
    inset: 0;
    z-index: 380;
    background: var(--ink);
    pointer-events: none;
    opacity: 0;
    transform: translateY(100%);
    transition: transform .52s cubic-bezier(.65, 0, .35, 1), opacity .1s linear;
}
.curtain.is-drawn { opacity: 1; transform: translateY(0); }

/* ---------- Inertial scrolling ---------- */
/* Native smooth scrolling would fight the eased position. */
html.has-inertia { scroll-behavior: auto; }

/* ---------- Custom cursor ---------- */
html.has-cursor,
html.has-cursor a,
html.has-cursor button,
html.has-cursor .gallery-piece,
html.has-cursor .loupe-container { cursor: none; }
/* Text entry keeps a real caret. */
html.has-cursor input,
html.has-cursor textarea,
html.has-cursor select { cursor: auto; }

/* The bloom is painted to a canvas; the core and caption are DOM so they
   can use difference blending and stay legible on paper and on black. */
.wisp-canvas {
    position: fixed;
    inset: 0;
    z-index: 388;
    pointer-events: none;
    opacity: 0;
    transition: opacity .6s ease;
}
.wisp-canvas.is-on { opacity: 1; }

.cur-core, .cur-cap {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 390;
    pointer-events: none;
    opacity: 0;
    transition: opacity .35s ease;
    will-change: transform;
}
.cur-core.is-on { opacity: 1; }

.cur-core {
    width: 4px;
    height: 4px;
    margin: -2px 0 0 -2px;
    border-radius: 50%;
    background: #ffffff;
    mix-blend-mode: difference;
}

.cur-cap {
    margin-left: 0;
    transform-origin: center top;
    font-family: var(--font-sans);
    font-size: .5625rem;
    font-weight: 600;
    letter-spacing: .24em;
    text-transform: uppercase;
    white-space: nowrap;
    color: #ffffff;
    mix-blend-mode: difference;
    translate: -50% 0;
}
.cur-cap.is-on { opacity: 1; }

/* Difference blending means the cursor inverts itself against whatever is
   under it — legible on the paper sections and on the black ones, with no
   need to track which section the pointer is over. */
/* ---------- Lantern ----------
   A brighter, warmer reading of the artwork, masked to a soft disc that
   follows the pointer. --lantern is set to the image URL by motion.js on
   enter; --lx/--ly track the pointer as percentages of the plate.
   The inset on each rule matches that component's mat padding so the
   overlay lands exactly on the image, not the frame. */
.chapter-figure, .passage-frame, .piece-frame, .chapter-hero-figure { position: relative; }

.chapter-figure::after,
.passage-frame::after,
.piece-frame::after,
.chapter-hero-figure::after {
    content: "";
    position: absolute;
    z-index: 1;
    background-image: var(--lantern, none);
    background-size: cover;
    background-position: center;
    filter: brightness(1.16) saturate(1.22) contrast(1.04);
    opacity: 0;
    pointer-events: none;
    transition: opacity .45s var(--ease-out);
    -webkit-mask-image: radial-gradient(circle 128px at var(--lx, 50%) var(--ly, 50%),
        #000 0%, rgba(0, 0, 0, .55) 46%, transparent 72%);
    mask-image: radial-gradient(circle 128px at var(--lx, 50%) var(--ly, 50%),
        #000 0%, rgba(0, 0, 0, .55) 46%, transparent 72%);
}
.chapter-figure::after      { inset: 18px; }
.chapter-hero-figure::after { inset: 18px; }
.passage-frame::after       { inset: 16px; }
.piece-frame::after         { inset: 16px; }

.chapter-figure.is-lit::after,
.passage-frame.is-lit::after,
.piece-frame.is-lit::after,
.chapter-hero-figure.is-lit::after { opacity: 1; }

/* The gallery hover scrim has to stay above the lantern. */
.piece-hover { z-index: 5; }

@media (prefers-reduced-motion: reduce), (hover: none), (pointer: coarse) {
    .chapter-figure::after, .passage-frame::after,
    .piece-frame::after, .chapter-hero-figure::after { display: none; }
}

/* ---------- Hero choreography ---------- */
.threshold-inner, .threshold-triskele { will-change: transform, opacity; }

/* ---------- Motion layer: reduced-motion and touch ---------- */
@media (prefers-reduced-motion: reduce) {
    .veil, .curtain, .wisp-canvas, .cur-core, .cur-cap { display: none !important; }
    html.is-loading, html.is-loading body { overflow: auto; }
}
@media (hover: none), (pointer: coarse) {
    .wisp-canvas, .cur-core, .cur-cap { display: none !important; }
    html.has-cursor, html.has-cursor a, html.has-cursor button,
    html.has-cursor .gallery-piece, html.has-cursor .loupe-container { cursor: auto; }
}

/* ---------- Line reveals ----------
   Once motion.js has regrouped the words into measured lines, the per-word
   float is retired and each line slides out from behind its own edge. */
.split-words.has-lines .w {
    opacity: 1;
    transform: none;
    transition: none;
}
.split-words.has-lines .ln {
    display: block;
    overflow: hidden;
    /* Descenders and italic overhang would otherwise be clipped. */
    padding-bottom: .06em;
    margin-bottom: -.06em;
}
.split-words.has-lines .ln-i {
    display: block;
    transform: translate3d(0, 106%, 0);
    transition: transform 1.15s var(--ease-out);
    transition-delay: calc(var(--li) * 95ms);
    will-change: transform;
}
.split-words.has-lines.is-visible .ln-i { transform: none; }

@media (prefers-reduced-motion: reduce) {
    .split-words.has-lines .ln-i { transform: none !important; transition: none !important; }
}

/* ==========================================================================
   XIII. Depth & Scroll Presence

   Blocks arrive tilted back in Z and settle flat as they enter, then fall
   away again as they leave — so scrolling reads as moving through a space
   rather than past a list.

   Primary path is CSS scroll-driven animation (`animation-timeline: view()`),
   which runs off the main thread entirely. motion.js supplies an equivalent
   rAF fallback for engines without it. The two are mutually exclusive: the
   fallback checks CSS.supports first.
   ========================================================================== */

@keyframes plate3d {
    0% {
        opacity: 0;
        transform: perspective(1300px) translate3d(0, 52px, -96px) rotateX(6.5deg);
    }
    17% {
        opacity: 1;
        transform: perspective(1300px) translate3d(0, 0, 0) rotateX(0deg);
    }
    80% {
        opacity: 1;
        transform: perspective(1300px) translate3d(0, 0, 0) rotateX(0deg);
    }
    100% {
        opacity: 0;
        transform: perspective(1300px) translate3d(0, -38px, -64px) rotateX(-4.5deg);
    }
}

@supports (animation-timeline: view()) {
    @media (prefers-reduced-motion: no-preference) {
        /* Deliberately NOT applied to .split-words statements — those have
           their own line reveal — nor to the hero, which keeps its staged
           intro timing. */
        .chapter-media,
        .chapter-text,
        .note,
        .stat,
        .gallery-piece,
        .stratum-item,
        .prologue-body,
        .chapters-head,
        .passage-head,
        .study-figure,
        .adjacent-card,
        .interlude-attr,
        .contact-inner {
            animation: plate3d linear both;
            animation-timeline: view();
            animation-range: entry 0% exit 100%;
            will-change: transform, opacity;
        }
    }
}

/* rAF fallback writes inline transform/opacity; this only marks the element. */
.has-presence { will-change: transform, opacity; }

/* ---------- Depth-layered plates ----------
   The frame tilts toward the pointer while the artwork inside shifts very
   slightly against it, so the image sits behind the mat rather than being
   painted on it. Done with 2D counter-translation rather than translateZ,
   because these plates need overflow:hidden to clip the scaled artwork and
   that forces transform-style back to flat. */
.piece-frame,
.passage-frame,
.chapter-hero-figure {
    transform: perspective(1000px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
    transition: transform .55s var(--ease-out), box-shadow .4s ease, border-color .3s ease;
    will-change: transform;
}

/* --mx/--my are percentages of the plate, set by the tilt handler. */
.chapter-figure img,
.piece-frame img,
.passage-frame img,
.chapter-hero-figure img {
    transform:
        translate(calc((var(--mx, 50%) - 50%) * -0.11), calc((var(--my, 50%) - 50%) * -0.11))
        translateY(var(--py, 0px))
        scale(1.06);
    transition: transform .5s var(--ease-out);
}
.chapter-figure:hover img,
.piece-frame:hover img,
.passage-frame:hover img,
.chapter-hero-figure:hover img { transition-duration: .18s; }

@media (prefers-reduced-motion: reduce), (hover: none), (pointer: coarse) {
    .piece-frame, .passage-frame, .chapter-hero-figure { transform: none; }
    .chapter-figure img, .piece-frame img,
    .passage-frame img, .chapter-hero-figure img {
        transform: translateY(var(--py, 0px)) scale(1.02);
    }
}

/* The legacy hover rules declare a bare translateY, which at equal-or-higher
   specificity would replace the tilt just as the pointer arrives. Recombine
   both transforms explicitly. */
.gallery-piece:hover .piece-frame,
.gallery-piece:focus-within .piece-frame,
.passage-item:hover .passage-frame {
    transform:
        perspective(1000px)
        rotateX(var(--rx, 0deg))
        rotateY(var(--ry, 0deg))
        translateY(-6px);
}

/* ==========================================================================
   XIV. Signature mark
   The gold signature is near-square (aspect 0.93) where the wordmarks it
   replaces were wide (4.0 and 3.7), so both placements size by HEIGHT and
   let width follow. Constrained with max-* rather than a fixed height, so
   the aspect is never squashed on narrow viewports.
   ========================================================================== */
.header-logo img {
    width: auto;
    height: 56px;
    max-width: none;
}

.threshold-logo img {
    width: auto;
    height: auto;
    /* .threshold clips overflow, so the mark must never push the CTA and
       scroll cue past the fold on a short viewport. */
    max-height: clamp(170px, 26vh, 300px);
    max-width: 72vw;
    margin-inline: auto;
    filter: drop-shadow(0 14px 30px rgba(138, 116, 72, .16));
}

/* The ambient glow was a wide, shallow ellipse sized for a wordmark. */
.logo-ambient-glow {
    width: min(440px, 78%);
    height: min(420px, 46vh);
    background: radial-gradient(ellipse 55% 55% at 50% 50%, rgba(154, 129, 80, .20), transparent 70%);
}

@media (max-width: 640px) {
    .header-logo img { height: 46px; }
}

/* Reclaim vertical room around the signature so it can carry the hero
   without pushing the CTA and scroll cue into the clipped overflow. */
.threshold-kicker { margin-bottom: 24px; }
.threshold-line { margin-top: 22px; }
.threshold-logo img { max-height: clamp(190px, 30vh, 330px); }
.header-logo img { height: 62px; }
@media (max-width: 640px) { .header-logo img { height: 48px; } }

/* The hero is a fixed 100vh box that clips its overflow, and the signature
   is now the tallest thing in it. On short viewports everything tightens so
   the CTA and scroll cue stay above the fold instead of being cut off. */
@media (max-height: 900px) {
    /* The scroll cue is absolutely positioned 30px off the bottom edge, so
       the padding has to reserve its full height or the centred content
       block runs straight through it. */
    .threshold { padding-bottom: 118px; }
    .threshold-logo img { max-height: 21vh; }
    .threshold-kicker { margin-bottom: 16px; }
    .threshold-line { margin-top: 16px; font-size: clamp(1.15rem, 2.3vw, 1.55rem); }
    .threshold-invite { margin-top: 16px; font-size: .85rem; }
    .threshold-cta { margin-top: 26px; }
}
@media (max-height: 620px) {
    .threshold-logo img { max-height: 19vh; }
    .scroll-cue { display: none; }
}

/* ==========================================================================
   XV. Study & Field Note Articles (/writings/ & /gallery/<slug>/)
   ========================================================================== */
.study {
    max-width: 860px;
    margin: 0 auto;
    padding: calc(var(--header-height) + 50px) 24px 120px;
}
.study.product {
    max-width: 1040px;
}
.study-head {
    text-align: center;
    max-width: 760px;
    margin: 0 auto 44px;
}
.study-title {
    font-family: var(--font-serif);
    font-size: clamp(2.2rem, 5vw, 3.6rem);
    font-weight: 400;
    line-height: 1.18;
    color: var(--slate);
    margin: 12px 0 16px;
    letter-spacing: -0.015em;
}
.study-meta {
    font-size: .8125rem;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--mist);
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
}
.study-site { color: var(--stone); font-weight: 500; }
.study-meta-sep { color: var(--chalk); }

.study-figure {
    position: relative;
    padding: 16px;
    background: var(--white);
    border: 1px solid rgba(215, 210, 200, .85);
    border-radius: 4px;
    box-shadow: 0 20px 50px -10px rgba(14, 16, 18, .12);
    margin: 0 0 48px;
}
.study-figure img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 2px;
}

.study-body {
    font-size: 1.1rem;
    line-height: 1.95;
    color: var(--body);
    margin: 0 auto 60px;
}
.study-body p { margin: 0 0 1.6em; }
.study-body h2 {
    font-family: var(--font-serif);
    font-size: 1.8rem;
    font-weight: 400;
    color: var(--slate);
    margin: 2em 0 .8em;
}
.study-body blockquote {
    font-family: var(--font-serif);
    font-style: italic;
    font-size: 1.35rem;
    line-height: 1.6;
    color: var(--slate);
    border-left: 2px solid var(--gold);
    padding-left: 24px;
    margin: 2em 0;
}

.study-foot {
    text-align: center;
    padding-top: 40px;
    margin-bottom: 80px;
}
.study-foot-line {
    font-size: 1.25rem;
    color: var(--slate);
    margin: 20px 0 18px;
}

.study-adjacent {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    max-width: 860px;
    margin: 0 auto 100px;
    padding-inline: 24px;
}
.adjacent-card {
    display: flex;
    flex-direction: column;
    padding: 24px 28px;
    background: var(--white);
    border: 1px solid var(--chalk);
    border-radius: 6px;
    text-decoration: none;
    box-shadow: 0 4px 14px rgba(14, 16, 18, .04);
    transition: all .3s var(--ease-out);
}
.adjacent-card:hover {
    border-color: var(--slate);
    transform: translateY(-3px);
    box-shadow: 0 10px 24px rgba(14, 16, 18, .08);
}
.adjacent-card--next { text-align: right; align-items: flex-end; }
.adjacent-label {
    font-size: .625rem;
    font-weight: 600;
    letter-spacing: .22em;
    text-transform: uppercase;
    color: var(--mist);
    margin-bottom: 6px;
}
.adjacent-title {
    font-size: 1.1rem;
    color: var(--slate);
    line-height: 1.4;
}

/* 404 Lost Page */
.lost {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
    padding: calc(var(--header-height) + 100px) 24px 140px;
}
.lost-title {
    font-size: clamp(2rem, 4.5vw, 3rem);
    color: var(--slate);
    margin: 16px 0 20px;
}
.lost-body {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--body);
    margin-bottom: 36px;
}

/* ==========================================================================
   XVI. High-End Studio Features & Collector Concierge
   ========================================================================== */

/* --- Collector Visualizer & Wall Simulator (artwork.php) --- */
.collector-visualizer-controls {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 14px;
    margin: 0 0 16px;
    padding: 12px 20px;
    background: var(--bone);
    border: 1px solid var(--chalk);
    border-radius: 8px;
}
.wall-selector {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}
.ctrl-label {
    font-size: .6875rem;
    font-weight: 600;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--mist);
    margin-right: 4px;
}
.wall-btn {
    padding: 6px 14px;
    font-family: var(--font-sans);
    font-size: .6875rem;
    font-weight: 500;
    letter-spacing: .08em;
    border-radius: 999px;
    background: var(--white);
    border: 1px solid var(--chalk);
    color: var(--stone);
    cursor: pointer;
    transition: all .2s ease;
}
.wall-btn:hover { border-color: var(--slate); color: var(--ink); }
.wall-btn.is-active {
    background: var(--ink);
    color: #fff;
    border-color: var(--ink);
}

.scale-toggle-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    font-family: var(--font-sans);
    font-size: .6875rem;
    font-weight: 600;
    letter-spacing: .1em;
    text-transform: uppercase;
    border-radius: 999px;
    background: var(--white);
    border: 1px solid var(--chalk);
    color: var(--stone);
    cursor: pointer;
    transition: all .25s ease;
}
.scale-toggle-btn:hover { border-color: var(--slate); color: var(--ink); }
.scale-toggle-btn.is-active {
    background: #9A8150;
    color: #fff;
    border-color: #9A8150;
    box-shadow: 0 2px 10px rgba(154, 129, 80, .3);
}

/* Wall Finish Backgrounds */
.product-gallery {
    transition: background-color .5s ease, padding .5s ease;
    border-radius: 8px;
    padding: 24px;
    background: transparent;
}
.product-gallery.wall-gallery {
    background-color: #FAF9F7;
}
.product-gallery.wall-plaster {
    background-color: #DCD6C9;
    box-shadow: inset 0 0 60px rgba(0, 0, 0, .05);
}
.product-gallery.wall-linen {
    background-color: #C8BEAF;
    background-image: repeating-linear-gradient(45deg, rgba(0, 0, 0, .015) 0, rgba(0, 0, 0, .015) 2px, transparent 0, transparent 4px);
}
.product-gallery.wall-charcoal {
    background-color: #26282C;
    color: #fff;
}
.product-gallery.wall-charcoal .loupe-hint { color: rgba(255, 255, 255, .7); }
.product-gallery.wall-charcoal .product-figure {
    border-color: rgba(255, 255, 255, .15);
    box-shadow: 0 30px 80px rgba(0, 0, 0, .6);
}

/* Living Scale Guide Overlay */
.scale-living-guide {
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: 0;
    visibility: hidden;
    transition: opacity .4s ease, visibility .4s ease;
    z-index: 10;
}
.scale-living-guide.is-active {
    opacity: 1;
    visibility: visible;
}
.scale-credenza {
    position: absolute;
    bottom: -32px;
    left: 50%;
    transform: translateX(-50%);
    width: min(540px, 94%);
    height: 38px;
    background: rgba(40, 35, 30, .85);
    border-radius: 3px 3px 0 0;
    border-top: 2px solid rgba(200, 180, 140, .4);
    box-shadow: 0 8px 24px rgba(0, 0, 0, .3);
}
.scale-figure-silhouette {
    position: absolute;
    bottom: -32px;
    right: 4%;
    width: 32px;
    height: 120px;
    background: rgba(14, 16, 18, .4);
    border-radius: 12px 12px 0 0;
    backdrop-filter: blur(2px);
}

/* Collector Inquiry Trigger Box */
.product-inquiry-box {
    margin: 0 0 36px;
    padding: 24px 28px;
    background: var(--bone);
    border: 1px solid var(--chalk);
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.acq-trigger-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 16px 36px;
    background: var(--ink);
    color: #fff;
    font-family: var(--font-sans);
    font-size: .8rem;
    font-weight: 600;
    letter-spacing: .2em;
    text-transform: uppercase;
    border-radius: 999px;
    border: 1px solid rgba(154, 129, 80, .4);
    cursor: pointer;
    box-shadow: 0 6px 20px rgba(14, 16, 18, .18);
    transition: all .3s var(--ease-out);
}
.acq-trigger-btn:hover {
    background: var(--slate);
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(14, 16, 18, .28);
}
.acq-trigger-btn .btn-arrow { transition: transform .25s ease; }
.acq-trigger-btn:hover .btn-arrow { transform: translateX(4px); }
.inquiry-subtext {
    font-size: .88rem;
    color: var(--fog);
    text-align: center;
    margin: 0;
}

/* --- Slide-Over Private Collector Acquisition Drawer --- */
.acquisition-drawer {
    position: fixed;
    inset: 0;
    z-index: 360;
    display: flex;
    justify-content: flex-end;
    opacity: 0;
    visibility: hidden;
    transition: opacity .35s ease, visibility .35s ease;
}
.acquisition-drawer.is-open {
    opacity: 1;
    visibility: visible;
}
.acquisition-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(14, 16, 18, .65);
    backdrop-filter: blur(8px);
}
.acquisition-panel {
    position: relative;
    width: min(560px, 92vw);
    height: 100%;
    background: var(--white);
    box-shadow: -20px 0 60px rgba(0, 0, 0, .3);
    z-index: 2;
    overflow-y: auto;
    padding: clamp(28px, 4vw, 44px);
    transform: translateX(100%);
    transition: transform .4s var(--ease-out);
    display: flex;
    flex-direction: column;
}
.acquisition-drawer.is-open .acquisition-panel {
    transform: translateX(0);
}
.acquisition-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--chalk);
    margin-bottom: 24px;
}
.acq-eyebrow {
    font-size: .625rem;
    font-weight: 700;
    letter-spacing: .24em;
    text-transform: uppercase;
    color: #9A8150;
    margin: 0 0 4px;
}
.acquisition-title {
    font-family: var(--font-serif);
    font-size: 1.8rem;
    font-weight: 400;
    color: var(--slate);
    margin: 0;
}
.acquisition-close {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--bone);
    border: 1px solid var(--chalk);
    font-size: 1.4rem;
    line-height: 1;
    color: var(--stone);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all .2s ease;
}
.acquisition-close:hover { background: var(--ink); color: #fff; }

.acq-piece-card {
    display: flex;
    gap: 16px;
    align-items: center;
    padding: 16px;
    background: var(--bone);
    border: 1px solid var(--chalk);
    border-radius: 6px;
    margin-bottom: 28px;
}
.acq-piece-thumb {
    width: 68px;
    height: 68px;
    flex-shrink: 0;
    border-radius: 3px;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, .08);
}
.acq-piece-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.acq-piece-title {
    font-family: var(--font-serif);
    font-size: 1.15rem;
    font-weight: 400;
    color: var(--slate);
    margin: 0 0 2px;
}
.acq-piece-meta {
    font-size: .75rem;
    color: var(--fog);
    margin: 0 0 4px;
}
.acq-piece-price {
    font-size: .88rem;
    font-weight: 600;
    color: #9A8150;
    margin: 0;
}

.acquisition-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}
.acq-intent-group {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-bottom: 8px;
}
.acq-intent-chip {
    position: relative;
    cursor: pointer;
}
.acq-intent-chip input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}
.acq-intent-chip span {
    display: block;
    padding: 10px 14px;
    font-size: .72rem;
    font-weight: 600;
    letter-spacing: .08em;
    text-transform: uppercase;
    text-align: center;
    border: 1px solid var(--chalk);
    border-radius: 6px;
    background: var(--bone);
    color: var(--stone);
    transition: all .2s ease;
}
.acq-intent-chip input:checked + span {
    background: var(--ink);
    color: #fff;
    border-color: var(--ink);
}
.acq-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.acq-field label {
    font-size: .6875rem;
    font-weight: 600;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--slate);
}
.acq-field input, .acq-field textarea {
    padding: 12px 14px;
    border: 1px solid var(--chalk);
    border-radius: 6px;
    background: var(--white);
    color: var(--ink);
    font-family: var(--font-sans);
    font-size: .88rem;
    transition: border-color .2s ease;
}
.acq-field input:focus, .acq-field textarea:focus {
    outline: none;
    border-color: var(--ink);
}
.acq-submit-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px 28px;
    background: var(--ink);
    color: #fff;
    font-family: var(--font-sans);
    font-size: .78rem;
    font-weight: 600;
    letter-spacing: .18em;
    text-transform: uppercase;
    border-radius: 999px;
    border: 0;
    cursor: pointer;
    margin-top: 10px;
    transition: all .25s ease;
}
.acq-submit-btn:hover {
    background: var(--slate);
    transform: translateY(-1px);
    box-shadow: var(--shadow-card);
}
.acq-note {
    font-size: .72rem;
    line-height: 1.5;
    color: var(--mist);
    text-align: center;
    margin: 12px 0 0;
}

/* Plaque action button inside The Room */
.plaque-actions {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-top: 8px;
}
.plaque-inquire-btn {
    padding: 6px 14px;
    font-family: var(--font-sans);
    font-size: .6875rem;
    font-weight: 600;
    letter-spacing: .12em;
    text-transform: uppercase;
    border-radius: 999px;
    background: #9A8150;
    color: #fff;
    border: 0;
    cursor: pointer;
    transition: background-color .2s ease;
}
.plaque-inquire-btn:hover { background: #C4AA78; color: var(--ink); }

/* --- Fullscreen Exhibition Cinema Mode --- */
.gallery-controls-bar {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 16px;
    margin: 0 auto 50px;
    max-width: 960px;
}
.cinema-trigger-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 22px;
    font-family: var(--font-sans);
    font-size: .75rem;
    font-weight: 600;
    letter-spacing: .16em;
    text-transform: uppercase;
    border-radius: 999px;
    background: var(--ink);
    color: #fff;
    border: 1px solid rgba(154, 129, 80, .4);
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(14, 16, 18, .18);
    transition: all .25s ease;
}
.cinema-trigger-btn:hover {
    background: var(--slate);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(14, 16, 18, .28);
}

.cinema-modal {
    position: fixed;
    inset: 0;
    z-index: 380;
    background: #090A0C;
    color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity .5s ease, visibility .5s ease;
}
.cinema-modal.is-open {
    opacity: 1;
    visibility: visible;
}
.cinema-stage {
    position: relative;
    width: 100vw;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.cinema-figure {
    position: relative;
    max-width: 86vw;
    max-height: 82vh;
    display: flex;
    align-items: center;
    justify-content: center;
}
.cinema-img {
    max-width: 86vw;
    max-height: 82vh;
    object-fit: contain;
    border-radius: 2px;
    box-shadow: 0 30px 100px rgba(0, 0, 0, .8);
    transform: scale(0.98);
    opacity: 0;
    transition: transform 6.5s cubic-bezier(.2, .8, .2, 1), opacity .8s ease;
}
.cinema-img.is-active {
    transform: scale(1.03);
    opacity: 1;
}

.cinema-plaque {
    position: absolute;
    bottom: 40px;
    left: 48px;
    background: rgba(14, 16, 18, .8);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, .15);
    padding: 18px 26px;
    border-radius: 6px;
    z-index: 10;
    max-width: 420px;
}
.cinema-count {
    font-size: .625rem;
    font-weight: 700;
    letter-spacing: .24em;
    text-transform: uppercase;
    color: #9A8150;
    margin: 0 0 4px;
}
.cinema-title {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    font-weight: 400;
    color: #fff;
    margin: 0 0 4px;
}
.cinema-meta {
    font-size: .78rem;
    color: rgba(255, 255, 255, .7);
    margin: 0 0 4px;
}
.cinema-price {
    font-size: .95rem;
    font-weight: 600;
    color: #C4AA78;
    margin: 0;
}

.cinema-controls {
    position: absolute;
    top: 32px;
    right: 48px;
    display: flex;
    gap: 12px;
    z-index: 20;
}
.cinema-btn {
    padding: 8px 18px;
    font-family: var(--font-sans);
    font-size: .6875rem;
    font-weight: 600;
    letter-spacing: .16em;
    text-transform: uppercase;
    border-radius: 999px;
    background: rgba(14, 16, 18, .75);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, .25);
    color: #fff;
    cursor: pointer;
    transition: all .2s ease;
}
.cinema-btn:hover { background: #fff; color: var(--ink); }
.cinema-btn--close { border-color: rgba(154, 129, 80, .5); }
.cinema-btn--close:hover { background: #9A8150; color: #fff; }

@media (max-width: 768px) {
    .cinema-plaque { left: 20px; right: 20px; bottom: 20px; max-width: none; }
    .cinema-controls { top: 20px; right: 20px; }
}

/* ==========================================================================
   XVII. 3D Fine Art Suite & The Ogham Journey Pillar
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. 🪨 The Ogham Journey Pillar (Standing Stone Scroll Tracker)
   -------------------------------------------------------------------------- */
.ogham-pillar-wrap {
    position: fixed;
    right: 28px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 90;
    pointer-events: none;
    transition: opacity .4s ease, filter .4s ease;
}
.ogham-stone-pillar {
    position: relative;
    width: 44px;
    height: 480px;
    background: linear-gradient(135deg, #42464D 0%, #2A2D32 55%, #1D1F23 100%);
    border-radius: 8px 8px 12px 12px;
    box-shadow: 
        -4px 6px 20px rgba(0, 0, 0, .28),
        inset 1px 2px 4px rgba(255, 255, 255, .15),
        inset -2px -2px 6px rgba(0, 0, 0, .45);
    border: 1px solid rgba(255, 255, 255, .08);
    transform-style: preserve-3d;
    transition: transform .15s ease-out;
    pointer-events: auto;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 24px 0;
}
.ogham-stone-texture {
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background-image: 
        radial-gradient(circle at 30% 20%, rgba(200, 180, 140, .1) 0, transparent 40%),
        radial-gradient(circle at 70% 80%, rgba(80, 100, 80, .15) 0, transparent 45%);
    pointer-events: none;
}
.ogham-stone-cap {
    position: absolute;
    top: -8px;
    left: 4px;
    right: 4px;
    height: 12px;
    background: #3A3D42;
    border-radius: 6px 6px 0 0;
    border-top: 1px solid rgba(255, 255, 255, .25);
}
.ogham-lichen-spot {
    position: absolute;
    top: 2px;
    left: 8px;
    width: 6px;
    height: 6px;
    background: rgba(155, 131, 82, .6);
    border-radius: 50%;
    filter: blur(1px);
}

/* Central Ogham Stemline (Druim) */
.ogham-druim-stem {
    position: absolute;
    top: 28px;
    bottom: 28px;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    background: rgba(0, 0, 0, .5);
    box-shadow: inset 0 0 2px rgba(0, 0, 0, .8), 0 0 1px rgba(255, 255, 255, .15);
    border-radius: 1px;
}
.ogham-druim-fill {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 8%;
    background: linear-gradient(to bottom, #C4AA78, #9A8150);
    box-shadow: 0 0 8px rgba(196, 170, 120, .8);
    transition: height .3s cubic-bezier(.16, 1, .3, 1);
    border-radius: 1px;
}

/* Ogham Notch Stations */
.ogham-notches {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
    padding: 0 4px;
}
.ogham-notch {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 38px;
    text-decoration: none;
    outline: none;
}
.ogham-strokes {
    font-family: var(--font-serif);
    font-size: .85rem;
    color: rgba(255, 255, 255, .3);
    letter-spacing: .05em;
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    transition: all .25s ease;
    user-select: none;
    text-shadow: 0 1px 2px rgba(0, 0, 0, .6);
}
.ogham-station-dot {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .2);
    transition: all .25s ease;
}

/* Active & Carved Ogham Runes */
.ogham-notch.is-carved .ogham-strokes {
    color: rgba(214, 190, 140, .75);
}
.ogham-notch.is-active .ogham-strokes {
    color: #C4AA78;
    text-shadow: 0 0 10px rgba(196, 170, 120, .9), 0 0 20px rgba(154, 129, 80, .5);
    transform: rotate(180deg) scale(1.18);
}
.ogham-notch.is-active .ogham-station-dot {
    background: #C4AA78;
    box-shadow: 0 0 10px #C4AA78;
    transform: translate(-50%, -50%) scale(1.6);
}

/* Luxury Archaeological Tooltip */
.ogham-tooltip {
    position: absolute;
    right: 56px;
    top: 50%;
    transform: translateY(-50%) translateX(6px);
    background: rgba(14, 16, 18, .92);
    border: 1px solid rgba(196, 170, 120, .35);
    border-radius: 6px;
    padding: 8px 14px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: all .25s var(--ease-out);
    box-shadow: 0 8px 24px rgba(0, 0, 0, .4);
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.ogham-tooltip::after {
    content: "";
    position: absolute;
    right: -5px;
    top: 50%;
    transform: translateY(-50%);
    border-width: 5px 0 5px 5px;
    border-style: solid;
    border-color: transparent transparent transparent rgba(14, 16, 18, .92);
}
.ogham-label {
    font-size: .6875rem;
    font-weight: 600;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: #fff;
}
.ogham-sub {
    font-size: .625rem;
    color: #C4AA78;
    letter-spacing: .08em;
}
.ogham-notch:hover .ogham-tooltip,
.ogham-notch:focus-visible .ogham-tooltip {
    opacity: 1;
    transform: translateY(-50%) translateX(0);
}

@media (max-width: 1024px) {
    .ogham-pillar-wrap { display: none; }
}

/* --------------------------------------------------------------------------
   2. 🖼️ Interactive 3D Canvas Orbit & Stretcher-Bar Inspection (artwork.php)
   -------------------------------------------------------------------------- */
.visualizer-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}
.orbit-3d-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    font-family: var(--font-sans);
    font-size: .6875rem;
    font-weight: 600;
    letter-spacing: .1em;
    text-transform: uppercase;
    border-radius: 999px;
    background: var(--white);
    border: 1px solid var(--chalk);
    color: var(--stone);
    cursor: pointer;
    transition: all .25s ease;
}
.orbit-3d-btn:hover { border-color: var(--slate); color: var(--ink); }
.orbit-3d-btn.is-active {
    background: var(--ink);
    color: #fff;
    border-color: var(--ink);
    box-shadow: 0 4px 14px rgba(14, 16, 18, .25);
}

/* 3D Canvas Orbit Stage */
.canvas-3d-stage {
    position: relative;
    width: 100%;
    min-height: 540px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
}
.canvas-3d-scene {
    position: relative;
    width: min(680px, 90vw);
    height: min(540px, 70vh);
    perspective: 1400px;
    cursor: grab;
    user-select: none;
    display: flex;
    align-items: center;
    justify-content: center;
}
.canvas-3d-scene.is-grabbing { cursor: grabbing; }

.canvas-3d-object {
    position: relative;
    width: 80%;
    height: 80%;
    transform-style: preserve-3d;
    transform: rotateX(0deg) rotateY(0deg);
}

/* Canvas Faces (Front, Sides, Back) */
.canvas-face {
    position: absolute;
    inset: 0;
    backface-visibility: visible;
}
.canvas-face--front {
    transform: translateZ(19px);
    background: #fff;
    box-shadow: 0 20px 60px rgba(0, 0, 0, .2);
    border-radius: 2px;
    overflow: hidden;
}
.canvas-face--front img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.canvas-glaze-sheen {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, .2) 0%, transparent 40%, rgba(255, 255, 255, .05) 100%);
    pointer-events: none;
}

/* Stretcher Back Face */
.canvas-face--back {
    transform: rotateY(180deg) translateZ(19px);
    background: #C4B9A8;
    background-image: repeating-linear-gradient(45deg, rgba(0, 0, 0, .02) 0, rgba(0, 0, 0, .02) 2px, transparent 0, transparent 4px);
    border: 1px solid #A89D8C;
    box-shadow: 0 20px 60px rgba(0, 0, 0, .25);
    border-radius: 2px;
    overflow: hidden;
    padding: 24px;
}
.stretcher-wood {
    position: absolute;
    background: #D4B98E;
    background-image: repeating-linear-gradient(to right, rgba(0, 0, 0, .03) 0, rgba(0, 0, 0, .03) 8px, transparent 0, transparent 16px);
    box-shadow: inset 0 0 6px rgba(0, 0, 0, .2);
}
.stretcher-top    { top: 0; left: 0; right: 0; height: 32px; }
.stretcher-bottom { bottom: 0; left: 0; right: 0; height: 32px; }
.stretcher-left   { top: 0; bottom: 0; left: 0; width: 32px; }
.stretcher-right  { top: 0; bottom: 0; right: 0; width: 32px; }
.stretcher-cross  { top: 50%; left: 0; right: 0; height: 26px; transform: translateY(-50%); }

.stretcher-canvas-back {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 28px;
}
.stretcher-seal {
    align-self: flex-start;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    background: rgba(154, 129, 80, .9);
    color: #fff;
    border-radius: 4px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, .2);
}
.seal-mark { font-family: var(--font-serif); font-weight: 700; font-size: 1.1rem; }
.seal-text { font-size: .625rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; }

.stretcher-inscription {
    align-self: center;
    text-align: center;
    background: rgba(255, 255, 255, .7);
    backdrop-filter: blur(4px);
    padding: 16px 24px;
    border-radius: 4px;
    border: 1px dashed rgba(0, 0, 0, .2);
}
.insc-title { font-family: var(--font-serif); font-size: 1.25rem; font-style: italic; color: #1E2024; margin: 0 0 4px; }
.insc-meta { font-size: .75rem; color: #4A4E56; margin: 0 0 6px; }
.insc-signature { font-family: var(--font-serif); font-size: 1.1rem; color: #1E2024; margin: 0 0 2px; }
.insc-archival { font-size: .5625rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: #9A8150; margin: 0; }

/* 38mm Gallery Wrapped Edges */
.canvas-face--left {
    width: 38px;
    transform: rotateY(-90deg) translateZ(19px);
    left: -19px;
    background: #8A7E70;
    box-shadow: inset 0 0 10px rgba(0, 0, 0, .3);
}
.canvas-face--right {
    width: 38px;
    transform: rotateY(90deg) translateZ(calc(100% - 19px));
    right: -19px;
    background: #8A7E70;
    box-shadow: inset 0 0 10px rgba(0, 0, 0, .3);
}
.canvas-face--top {
    height: 38px;
    transform: rotateX(90deg) translateZ(19px);
    top: -19px;
    background: #A09485;
    box-shadow: inset 0 0 10px rgba(0, 0, 0, .2);
}
.canvas-face--bottom {
    height: 38px;
    transform: rotateX(-90deg) translateZ(calc(100% - 19px));
    bottom: -19px;
    background: #6D6357;
    box-shadow: inset 0 0 10px rgba(0, 0, 0, .4);
}

/* 3D Orbit Presets & Controls */
.canvas-3d-presets {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin-top: 24px;
}
.preset-btn {
    padding: 6px 14px;
    font-family: var(--font-sans);
    font-size: .6875rem;
    font-weight: 500;
    letter-spacing: .08em;
    border-radius: 999px;
    background: var(--white);
    border: 1px solid var(--chalk);
    color: var(--stone);
    cursor: pointer;
    transition: all .2s ease;
}
.preset-btn:hover { border-color: var(--slate); color: var(--ink); }
.preset-btn.is-active {
    background: var(--ink);
    color: #fff;
    border-color: var(--ink);
}
.canvas-3d-hint {
    font-size: .88rem;
    color: var(--fog);
    text-align: center;
    margin-top: 12px;
}

/* Dynamic Specular Reflex on 2D Figure */
.canvas-glaze-reflex {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: radial-gradient(circle at var(--glaze-x, 50%) var(--glaze-y, 30%), rgba(255, 255, 255, .32) 0%, rgba(255, 255, 255, 0) 55%);
    mix-blend-mode: overlay;
    transition: opacity .3s ease;
}

/* Shop Under Construction Notices */
.shop-notice-banner {
    max-width: 820px;
    margin: 28px auto 0;
    padding: 16px 24px;
    background: #FAF8F2;
    border: 1px solid rgba(196, 170, 120, .45);
    border-radius: 8px;
    display: flex;
    align-items: flex-start;
    gap: 16px;
    text-align: left;
    box-shadow: 0 4px 16px rgba(14, 16, 18, .04);
}
.shop-notice-tag {
    flex-shrink: 0;
    padding: 4px 10px;
    font-size: .5625rem;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    background: #141619;
    color: #C4AA78;
    border-radius: 4px;
    margin-top: 2px;
}
.shop-notice-body {
    flex: 1;
}
.shop-notice-title {
    display: block;
    font-size: .8125rem;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--ink);
    margin-bottom: 4px;
}
.shop-notice-desc {
    font-size: .8125rem;
    line-height: 1.55;
    color: var(--slate);
    margin: 0;
}
.artwork-shop-notice {
    background: #FAF8F2;
    border: 1px solid rgba(196, 170, 120, .4);
    border-radius: 6px;
    padding: 12px 16px;
    margin-bottom: 16px;
    text-align: left;
}
.artwork-shop-notice .shop-notice-tag {
    display: inline-block;
    margin-bottom: 6px;
}
.artwork-shop-notice .shop-notice-text {
    font-size: .78rem;
    color: var(--slate);
    margin: 0;
    line-height: 1.45;
}

/* --------------------------------------------------------------------------
   3. 🏛️ 3D Infinite Depth Perspective Corridor (gallery.php)
   -------------------------------------------------------------------------- */
.gallery-mode-toggles {
    display: flex;
    align-items: center;
    gap: 8px;
}
.gallery-view-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    font-family: var(--font-sans);
    font-size: .6875rem;
    font-weight: 600;
    letter-spacing: .12em;
    text-transform: uppercase;
    border-radius: 999px;
    background: var(--bone);
    border: 1px solid var(--chalk);
    color: var(--stone);
    cursor: pointer;
    transition: all .2s ease;
}
.gallery-view-btn:hover { border-color: var(--slate); color: var(--ink); }
.gallery-view-btn.is-active {
    background: var(--ink);
    color: #fff;
    border-color: var(--ink);
}

.gallery-3d-corridor {
    position: relative;
    width: 100%;
    height: 80vh;
    min-height: 560px;
    max-height: 840px;
    background: radial-gradient(ellipse at 50% 40%, #16181D 0%, #0A0B0D 100%);
    border: 1px solid rgba(196, 170, 120, .3);
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 60px;
    box-shadow: 0 30px 80px rgba(0, 0, 0, .5);
    cursor: grab;
    user-select: none;
    outline: none;
}
.gallery-3d-corridor:active {
    cursor: grabbing;
}
.corridor-viewport {
    position: relative;
    width: 100%;
    height: 100%;
    perspective: 900px;
    perspective-origin: 50% 48%;
    overflow: hidden;
    transform-style: preserve-3d;
}
.corridor-tunnel {
    position: absolute;
    inset: 0;
    transform-style: preserve-3d;
}
.corridor-floor {
    position: absolute;
    bottom: 0;
    left: -100%;
    right: -100%;
    height: 3000px;
    background: linear-gradient(to top, rgba(20, 22, 26, .98) 0%, rgba(8, 9, 11, 1) 100%);
    transform: rotateX(90deg) translateZ(-280px);
    border-top: 1px solid rgba(196, 170, 120, .15);
}
.corridor-floor-grid {
    width: 100%;
    height: 100%;
    background-image: linear-gradient(rgba(196, 170, 120, .08) 1px, transparent 1px), linear-gradient(90deg, rgba(196, 170, 120, .08) 1px, transparent 1px);
    background-size: 80px 80px;
}
.corridor-ceiling {
    position: absolute;
    top: 0;
    left: -100%;
    right: -100%;
    height: 3000px;
    background: linear-gradient(to bottom, #07080A, #121418);
    transform: rotateX(-90deg) translateZ(-280px);
    border-bottom: 1px solid rgba(255, 255, 255, .04);
}
.corridor-wall--left {
    position: absolute;
    top: -100%;
    bottom: -100%;
    left: 0;
    width: 3000px;
    background: linear-gradient(to right, #1A1D24 0%, #0D0E12 100%);
    transform: rotateY(90deg) translateZ(-420px);
    border-right: 1px solid rgba(196, 170, 120, .12);
}
.corridor-wall--right {
    position: absolute;
    top: -100%;
    bottom: -100%;
    right: 0;
    width: 3000px;
    background: linear-gradient(to left, #1A1D24 0%, #0D0E12 100%);
    transform: rotateY(-90deg) translateZ(-420px);
    border-left: 1px solid rgba(196, 170, 120, .12);
}

.corridor-pieces-track {
    position: absolute;
    inset: 0;
    transform-style: preserve-3d;
    transform: translateZ(0px);
}
.corridor-hanging {
    position: absolute;
    top: 50%;
    width: 320px;
    cursor: pointer;
    transform-style: preserve-3d;
    transition: filter .25s ease;
}
.corridor-hanging--left {
    left: 12%;
    transform: translateY(-50%) translateZ(var(--hang-z, 0px)) rotateY(22deg);
}
.corridor-hanging--right {
    right: 12%;
    transform: translateY(-50%) translateZ(var(--hang-z, 0px)) rotateY(-22deg);
}
.corridor-hanging:hover {
    filter: brightness(1.2);
}
.corridor-spotlight {
    position: absolute;
    top: -120px;
    left: 50%;
    transform: translateX(-50%);
    width: 280px;
    height: 160px;
    background: radial-gradient(ellipse at 50% 0%, rgba(252, 210, 105, .32) 0%, rgba(252, 210, 105, 0) 75%);
    pointer-events: none;
}
.corridor-frame {
    background: #181A1E;
    border: 1px solid rgba(196, 170, 120, .35);
    border-radius: 6px;
    padding: 12px;
    box-shadow: 0 25px 60px rgba(0, 0, 0, .85), 0 0 30px rgba(196, 170, 120, .12);
    display: flex;
    flex-direction: column;
    transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}
.corridor-hanging:hover .corridor-frame {
    transform: scale(1.04);
    border-color: #C4AA78;
    box-shadow: 0 30px 80px rgba(0, 0, 0, .95), 0 0 50px rgba(196, 170, 120, .35);
}
.corridor-img-wrap {
    width: 100%;
    height: 280px;
    overflow: hidden;
    background: #0A0B0D;
    border-radius: 3px;
}
.corridor-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .4s ease;
}
.corridor-hanging:hover .corridor-img-wrap img {
    transform: scale(1.05);
}
.corridor-hanging-plaque {
    padding-top: 10px;
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    border-top: 1px solid rgba(196, 170, 120, .2);
    margin-top: 10px;
}
.plaque-title {
    font-family: var(--font-serif);
    font-size: 1.05rem;
    font-weight: 400;
    color: #FFFFFF;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 190px;
}
.plaque-price {
    font-size: .75rem;
    font-weight: 700;
    color: #C4AA78;
    letter-spacing: .06em;
}

/* Corridor HUD */
.corridor-hud {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 24px 28px 20px;
    background: linear-gradient(to top, rgba(10, 11, 13, .95) 0%, rgba(10, 11, 13, 0) 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    pointer-events: none;
    z-index: 20;
}
.corridor-station-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 6px 18px;
    border-radius: 999px;
    background: rgba(18, 20, 24, .92);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(196, 170, 120, .35);
    pointer-events: auto;
    box-shadow: 0 8px 20px rgba(0,0,0,.4);
}
.badge-station {
    font-size: .625rem;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: #C4AA78;
}
.badge-title {
    font-family: var(--font-serif);
    font-size: .95rem;
    color: #FFFFFF;
    font-weight: 400;
}
.corridor-controls {
    display: flex;
    align-items: center;
    gap: 10px;
    pointer-events: auto;
}
.corridor-nav-btn {
    padding: 8px 18px;
    font-family: var(--font-sans);
    font-size: .6875rem;
    font-weight: 600;
    letter-spacing: .1em;
    text-transform: uppercase;
    border-radius: 999px;
    background: #141619;
    border: 1px solid rgba(196, 170, 120, .4);
    color: #C4AA78;
    cursor: pointer;
    transition: all .2s ease;
}
.corridor-nav-btn:hover {
    background: #C4AA78;
    color: #141619;
    border-color: #C4AA78;
    transform: translateY(-2px);
}
.corridor-tip {
    color: rgba(255, 255, 255, .6);
    font-size: .78rem;
    margin: 0;
    text-align: center;
}

/* --------------------------------------------------------------------------
   4. 🔬 3D Geological Mineral Strata Explorer (index.php)
   -------------------------------------------------------------------------- */
.strata-3d-block {
    margin: 48px auto 0;
    max-width: 780px;
    padding: 28px;
    background: var(--bone);
    border: 1px solid var(--chalk);
    border-radius: 8px;
}
.strata-3d-heading {
    font-size: .6875rem;
    font-weight: 700;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: #9A8150;
    margin: 0 0 20px;
    text-align: center;
}
.strata-3d-layers {
    display: flex;
    flex-direction: column;
    gap: 12px;
    perspective: 900px;
}
.strata-layer {
    position: relative;
    padding: 16px 20px;
    border-radius: 6px;
    cursor: pointer;
    transform: rotateX(4deg);
    transform-style: preserve-3d;
    transition: all .35s var(--ease-out);
    border: 1px solid transparent;
}
.strata-layer--turf    { background: #556052; color: #fff; border-color: #697865; }
.strata-layer--peat    { background: #2A2624; color: #fff; border-color: #3D3835; }
.strata-layer--ochre   { background: #967848; color: #fff; border-color: #AC8C56; }
.strata-layer--bedrock { background: #454950; color: #fff; border-color: #5A5F68; }

.strata-layer:hover,
.strata-layer.is-expanded {
    transform: rotateX(0deg) translateZ(18px) scale(1.02);
    box-shadow: 0 12px 30px rgba(0, 0, 0, .22);
}
.strata-face--front {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
}
.strata-layer-depth {
    font-size: .625rem;
    font-weight: 700;
    letter-spacing: .16em;
    text-transform: uppercase;
    opacity: .75;
}
.strata-layer-title {
    font-family: var(--font-serif);
    font-size: 1.15rem;
    font-weight: 400;
}
.strata-layer-pigment {
    font-size: .75rem;
    opacity: .9;
}
.strata-3d-hint {
    font-size: .85rem;
    color: var(--fog);
    text-align: center;
    margin: 16px 0 0;
}

/* ==========================================================================
   XVIII. Ogham Transliterator & Photorealistic Stone Carving Studio
   ========================================================================== */

.ogham-page {
    background: var(--snow);
    min-height: 100vh;
    padding-bottom: 120px;
}

.ogham-hero {
    padding: calc(var(--header-height) + 54px) var(--gutter) 48px;
    border-bottom: 1px solid var(--chalk);
    text-align: center;
}
.ogham-hero-inner {
    max-width: 840px;
    margin: 0 auto;
}
.ogham-hero .crumbs {
    justify-content: center;
    margin-bottom: 20px;
}

/* Workbench Card */
.ogham-workbench-section {
    max-width: 1200px;
    margin: 48px auto 100px;
    padding: 0 var(--gutter);

.ogham-workbench-card {
    background: var(--white);
    border: 1px solid var(--chalk);
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(14, 16, 18, .06);
    padding: 36px;
}

    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--chalk);
    margin-bottom: 28px;
}
.toolbar-group {
    display: flex;
    align-items: center;
    gap: 12px;
}
.toolbar-label {
    font-size: .75rem;
    font-weight: 600;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--stone);
}
.trans-select {
    padding: 8px 16px;
    font-family: var(--font-sans);
    font-size: .8125rem;
    color: var(--ink);
    background: var(--bone);
    border: 1px solid var(--chalk);
    border-radius: 6px;
    outline: none;
    cursor: pointer;
    transition: border-color .2s ease;
}
.trans-select:focus {
    border-color: var(--slate);
}

.toolbar-options {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 20px;
}
.toggle-control {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: .78rem;
    font-weight: 500;
    color: var(--slate);
    cursor: pointer;
    user-select: none;
}
.toggle-control input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}
.toggle-box {
    width: 16px;
    height: 16px;
    border: 1px solid var(--chalk);
    border-radius: 3px;
    background: var(--bone);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all .2s ease;
}
.toggle-control input:checked + .toggle-box {
    background: var(--ink);
    border-color: var(--ink);
}
.toggle-control input:checked + .toggle-box::after {
    content: "✓";
    font-size: .65rem;
    color: #fff;
    font-weight: bold;
}

/* Split Grid */
.transliterator-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 28px;
    margin-bottom: 40px;
}
@media (max-width: 900px) {
    .transliterator-grid { grid-template-columns: 1fr; }
}

.trans-pane {
    display: flex;
    flex-direction: column;
    background: var(--bone);
    border: 1px solid var(--chalk);
    border-radius: 8px;
    padding: 20px;
}
.pane-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}
.pane-title {
    font-size: .6875rem;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--stone);
}
.pane-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}
.pane-action-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    font-family: var(--font-sans);
    font-size: .6875rem;
    font-weight: 600;
    letter-spacing: .06em;
    border-radius: 4px;
    background: var(--white);
    border: 1px solid var(--chalk);
    color: var(--stone);
    cursor: pointer;
    transition: all .2s ease;
}
.pane-action-btn:hover {
    border-color: var(--slate);
    color: var(--ink);
}
.pane-action-btn--gold {
    background: #141619;
    border-color: #141619;
    color: #C4AA78;
}
.pane-action-btn--gold:hover {
    background: #9A8150;
    border-color: #9A8150;
    color: #fff;
}

/* Input Area */
.trans-textarea {
    width: 100%;
    min-height: 140px;
    background: var(--white);
    border: 1px solid var(--chalk);
    border-radius: 6px;
    padding: 16px;
    font-family: var(--font-sans);
    font-size: 1.15rem;
    font-weight: 500;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--ink);
    resize: vertical;
    outline: none;
    transition: border-color .2s ease;
}
.trans-textarea:focus {
    border-color: #9A8150;
}
.input-char-count {
    font-size: .6875rem;
    color: var(--fog);
    text-align: right;
    margin-top: 6px;
}

/* Formula Chips */
.formula-chips-wrap {
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px dashed var(--chalk);
}
.formula-label {
    font-size: .6875rem;
    font-weight: 600;
    color: var(--stone);
    display: block;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: .08em;
}
.formula-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}
.formula-chip {
    padding: 4px 10px;
    font-size: .6875rem;
    font-weight: 500;
    border-radius: 999px;
    background: var(--white);
    border: 1px solid var(--chalk);
    color: var(--slate);
    cursor: pointer;
    transition: all .2s ease;
}
.formula-chip:hover {
    border-color: #9A8150;
    color: #9A8150;
    background: #FAF8F2;
}

/* Result Output Box */
.ogham-result-box {
    position: relative;
    width: 100%;
    min-height: 140px;
    background: #141619;
    border: 1px solid rgba(255, 255, 255, .1);
    border-radius: 6px;
    padding: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow-x: auto;
    overflow-y: hidden;
}
.ogham-text-display {
    font-family: var(--font-serif);
    font-size: 2.5rem;
    letter-spacing: .08em;
    color: #C4AA78;
    text-shadow: 0 0 12px rgba(196, 170, 120, .6), 0 0 24px rgba(154, 129, 80, .35);
    white-space: nowrap;
    user-select: all;
    line-height: 1.2;
}

/* Breakdown Summary Bar */
.ogham-breakdown-summary {
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px dashed var(--chalk);
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
}
.summary-kicker {
    font-size: .6875rem;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: #9A8150;
}
.summary-details {
    font-size: .75rem;
    color: var(--stone);
    font-family: var(--font-sans);
    font-weight: 500;
}

/* ==========================================================================
   XIX. Celtic Birth Tree & 13-Moon Calendar Studio
   ========================================================================== */

.tree-calendar-page {
    background: var(--snow);
    min-height: 100vh;
    padding-bottom: 120px;
}

.tree-hero {
    padding: calc(var(--header-height) + 54px) var(--gutter) 48px;
    background: linear-gradient(180deg, #F3F1EC 0%, var(--snow) 100%);
    border-bottom: 1px solid var(--chalk);
    text-align: center;
}
.tree-hero-inner {
    max-width: 860px;
    margin: 0 auto;
}
.tree-hero .crumbs {
    justify-content: center;
    margin-bottom: 20px;
}

/* Calculator Section */
.tree-calculator-section {
    max-width: 1200px;
    margin: 48px auto 90px;
    padding: 0 var(--gutter);
}

.tree-calc-card {
    background: var(--white);
    border: 1px solid var(--chalk);
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(14, 16, 18, .06);
    padding: 36px;
}

/* Input Controls */
.tree-calc-controls {
    padding-bottom: 28px;
    border-bottom: 1px solid var(--chalk);
    margin-bottom: 32px;
}
.calc-inputs-group {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
}
.calc-label {
    font-size: .8125rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--ink);
}
.date-selects-wrap {
    display: flex;
    gap: 10px;
}
.tree-date-select {
    padding: 10px 18px;
    font-family: var(--font-sans);
    font-size: .9375rem;
    font-weight: 500;
    color: var(--ink);
    background: var(--bone);
    border: 1px solid var(--chalk);
    border-radius: 6px;
    outline: none;
    cursor: pointer;
    transition: all .2s ease;
}
.tree-date-select:focus {
    border-color: #9A8150;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(154, 129, 80, .15);
}

/* Festival Chips */
.tree-festival-chips {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
}
.festival-chips-label {
    font-size: .6875rem;
    font-weight: 600;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--stone);
}
.festival-chips-list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}
.festival-chip {
    padding: 4px 12px;
    font-size: .6875rem;
    font-weight: 500;
    border-radius: 999px;
    background: var(--bone);
    border: 1px solid var(--chalk);
    color: var(--slate);
    cursor: pointer;
    transition: all .2s ease;
}
.festival-chip:hover {
    border-color: #9A8150;
    color: #9A8150;
    background: #FAF8F2;
}

/* Talisman Stage (Split Card) */
.tree-talisman-stage {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 32px;
    align-items: stretch;
}
@media (max-width: 960px) {
    .tree-talisman-stage {
        grid-template-columns: 1fr;
    }
}

/* Left: Identity Card */
.tree-identity-card {
    background: var(--bone);
    border: 1px solid var(--chalk);
    border-radius: 10px;
    padding: 32px;
    display: flex;
    flex-direction: column;
}
.tree-card-header {
    display: flex;
    align-items: center;
    gap: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--chalk);
    margin-bottom: 20px;
}
.tree-rune-glow {
    font-family: var(--font-serif);
    font-size: 3.5rem;
    line-height: 1;
    color: #C4AA78;
    text-shadow: 0 0 16px rgba(196, 170, 120, .6), 0 0 30px rgba(154, 129, 80, .3);
    background: #141619;
    padding: 12px 18px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, .1);
}
.tree-titles {
    flex: 1;
}
.tree-moon-epoch {
    font-size: .6875rem;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: #9A8150;
    display: block;
    margin-bottom: 4px;
}
.tree-name-heading {
    font-family: var(--font-serif);
    font-size: 1.85rem;
    font-weight: 400;
    color: var(--ink);
    margin: 0 0 6px;
    line-height: 1.15;
}
.tree-archetype-badge {
    display: inline-block;
    font-size: .75rem;
    font-weight: 600;
    color: var(--slate);
    background: var(--white);
    padding: 3px 10px;
    border-radius: 4px;
    border: 1px solid var(--chalk);
}

/* Kenning Banner */
.tree-kenning-banner {
    background: #FAF8F2;
    border-left: 3px solid #C4AA78;
    padding: 14px 18px;
    border-radius: 0 6px 6px 0;
    margin-bottom: 24px;
    position: relative;
}
.kenning-quote-mark {
    display: none;
}
.kenning-text {
    font-size: .9375rem;
    color: #5A4E38;
    margin: 0;
    line-height: 1.45;
}

/* Attributes Grid */
.tree-attributes-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 24px;
}
.tree-attr-item {
    background: var(--white);
    border: 1px solid var(--chalk);
    border-radius: 6px;
    padding: 12px 14px;
}
.attr-label {
    display: block;
    font-size: .625rem;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--stone);
    margin-bottom: 2px;
}
.attr-val {
    font-size: .8125rem;
    color: var(--ink);
}

/* Lore Body */
.tree-lore-body {
    flex: 1;
    margin-bottom: 24px;
}
.lore-subhead {
    font-size: .6875rem;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--stone);
    margin: 0 0 8px;
}
.lore-text {
    font-size: .875rem;
    line-height: 1.6;
    color: var(--slate);
    margin: 0;
}

/* Action Bar */
.tree-talisman-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding-top: 20px;
    border-top: 1px solid var(--chalk);
    margin-top: auto;
}
.tree-act-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    font-family: var(--font-sans);
    font-size: .75rem;
    font-weight: 600;
    letter-spacing: .06em;
    border-radius: 6px;
    background: var(--white);
    border: 1px solid var(--chalk);
    color: var(--slate);
    text-decoration: none;
    cursor: pointer;
    transition: all .2s ease;
}
.tree-act-btn:hover {
    border-color: var(--slate);
    color: var(--ink);
    transform: translateY(-1px);
}
.tree-act-btn--gold {
    background: #141619;
    border-color: #141619;
    color: #C4AA78;
}
.tree-act-btn--gold:hover {
    background: #9A8150;
    border-color: #9A8150;
    color: #fff;
}

/* Right: Artwork Card */
.tree-artwork-card {
    background: var(--white);
    border: 1px solid var(--chalk);
    border-radius: 10px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    box-shadow: 0 8px 24px rgba(14, 16, 18, .04);
}
.artwork-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}
.artwork-match-badge {
    font-size: .625rem;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: #9A8150;
}
.artwork-collection-tag {
    font-size: .6875rem;
    color: var(--stone);
    font-style: italic;
}

.artwork-preview-frame {
    position: relative;
    width: 100%;
    aspect-ratio: 4/3;
    background: #181A1D;
    border-radius: 6px;
    overflow: hidden;
    margin-bottom: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, .15);
}
.art-match-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .4s ease;
}
.artwork-preview-frame:hover .art-match-img {
    transform: scale(1.03);
}
.artwork-matting-overlay {
    position: absolute;
    inset: 0;
    box-shadow: inset 0 0 20px rgba(0, 0, 0, .4);
    pointer-events: none;
}

.artwork-info-pane {
    flex: 1;
    display: flex;
    flex-direction: column;
}
.art-match-title {
    font-family: var(--font-serif);
    font-size: 1.35rem;
    font-weight: 400;
    color: var(--ink);
    margin: 0 0 4px;
}
.art-match-medium {
    font-size: .78rem;
    color: var(--stone);
    margin: 0 0 12px;
}
.art-match-reason {
    font-size: .8125rem;
    line-height: 1.5;
    color: var(--slate);
    margin: 0 0 20px;
}
.art-match-actions {
    display: flex;
    gap: 10px;
    margin-top: auto;
}
.art-btn {
    flex: 1;
    text-align: center;
    padding: 9px 14px;
    font-family: var(--font-sans);
    font-size: .6875rem;
    font-weight: 600;
    letter-spacing: .08em;
    text-transform: uppercase;
    border-radius: 4px;
    text-decoration: none;
    cursor: pointer;
    transition: all .2s ease;
}
.art-btn--solid {
    background: var(--ink);
    color: #fff;
    border: 1px solid var(--ink);
}
.art-btn--solid:hover {
    background: #2D3035;
}
.art-btn--outline {
    background: transparent;
    color: var(--slate);
    border: 1px solid var(--chalk);
}
.art-btn--outline:hover {
    border-color: #9A8150;
    color: #9A8150;
}

/* Almanac Section */
.tree-almanac-section {
    padding: 80px var(--gutter);
    background: var(--bone);
    border-top: 1px solid var(--chalk);
}
.tree-almanac-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 16px;
    margin-top: 40px;
}
.almanac-card {
    background: var(--white);
    border: 1px solid var(--chalk);
    border-radius: 8px;
    padding: 20px;
    display: flex;
    align-items: flex-start;
    gap: 16px;
    cursor: pointer;
    transition: all .25s ease;
}
.almanac-card:hover {
    border-color: #9A8150;
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(14, 16, 18, .06);
}
.almanac-card.is-active {
    border-color: #9A8150;
    background: #FAF8F2;
    box-shadow: 0 0 0 2px #C4AA78;
}
.almanac-rune {
    font-family: var(--font-serif);
    font-size: 2.2rem;
    color: #9A8150;
    line-height: 1;
    background: #141619;
    padding: 8px 12px;
    border-radius: 6px;
}
.almanac-info {
    flex: 1;
}
.almanac-dates {
    font-size: .625rem;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--stone);
    display: block;
    margin-bottom: 2px;
}
.almanac-tree-name {
    font-family: var(--font-serif);
    font-size: 1.1rem;
    font-weight: 400;
    color: var(--ink);
    margin: 0 0 2px;
}
.almanac-archetype {
    display: block;
    font-size: .72rem;
    font-weight: 500;
    color: var(--slate);
    margin-bottom: 4px;
}
.almanac-element {
    font-size: .6875rem;
    color: var(--fog);
    display: block;
}

/* ==========================================================================
   XX. The Celtic Wheel of the Year & Solstice Almanac Studio
   ========================================================================== */

.wheel-page {
    background: var(--snow);
    min-height: 100vh;
    padding-bottom: 120px;
}

.wheel-hero {
    padding: calc(var(--header-height) + 54px) var(--gutter) 48px;
    background: linear-gradient(180deg, #F3F1EC 0%, var(--snow) 100%);
    border-bottom: 1px solid var(--chalk);
    text-align: center;
}
.wheel-hero-inner {
    max-width: 880px;
    margin: 0 auto;
}
.wheel-hero .crumbs {
    justify-content: center;
    margin-bottom: 20px;
}

/* Main Workbench Stage */
.wheel-stage-section {
    max-width: 1240px;
    margin: 48px auto 90px;
    padding: 0 var(--gutter);
}

.wheel-workbench-card {
    background: var(--white);
    border: 1px solid var(--chalk);
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(14, 16, 18, .06);
    padding: 36px;
}

/* Live Seasonal Status Bar */
.wheel-live-status-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 16px 20px;
    background: #141619;
    border-radius: 8px;
    border: 1px solid rgba(196, 170, 120, .3);
    margin-bottom: 32px;
}
.status-live-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, .08);
    padding: 5px 12px;
    border-radius: 999px;
}
.live-dot {
    width: 8px;
    height: 8px;
    background: #38C757;
    border-radius: 50%;
    box-shadow: 0 0 8px #38C757;
    animation: livePulse 2s infinite;
}
@keyframes livePulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: .4; transform: scale(0.85); }
}
.live-title {
    font-size: .6875rem;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: #C4AA78;
}
.status-meta-text {
    flex: 1;
    min-width: 240px;
    display: flex;
    flex-direction: column;
}
.status-season-name {
    font-family: var(--font-serif);
    font-size: 1.15rem;
    color: #FFF;
}
.status-countdown {
    font-size: .75rem;
    color: rgba(255, 255, 255, .65);
}
.wheel-quick-btn {
    padding: 6px 14px;
    font-family: var(--font-sans);
    font-size: .6875rem;
    font-weight: 600;
    letter-spacing: .08em;
    text-transform: uppercase;
    background: var(--white);
    border: 1px solid var(--chalk);
    color: var(--ink);
    border-radius: 4px;
    cursor: pointer;
    transition: all .2s ease;
}
.wheel-quick-btn:hover {
    background: #C4AA78;
    border-color: #C4AA78;
    color: #141619;
}

/* Interactive Split Grid */
.wheel-interactive-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 40px;
    align-items: center;
}
@media (max-width: 960px) {
    .wheel-interactive-grid {
        grid-template-columns: 1fr;
    }
}

/* Dial Pane */
.wheel-dial-pane {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}
.wheel-svg-container {
    width: 100%;
    max-width: 480px;
    aspect-ratio: 1;
    position: relative;
}
.celestial-dial-svg {
    width: 100%;
    height: 100%;
    display: block;
    overflow: visible;
}
.dial-instruction-hint {
    font-size: .8rem;
    color: var(--fog);
    margin-top: 14px;
    text-align: center;
}

/* SVG Node Styles */
.node-aura {
    fill: transparent;
    transition: fill .25s ease;
}
.node-core {
    fill: #1B1E22;
    stroke: #C4AA78;
    stroke-width: 2px;
    transition: all .25s ease;
}
.node-label {
    fill: #9B9487;
    font-size: 11px;
    font-family: -apple-system, BlinkMacSystemFont, "Montserrat", sans-serif;
    font-weight: 600;
    letter-spacing: .08em;
    text-transform: uppercase;
    transition: fill .25s ease;
}
.dial-node-group:hover .node-core {
    fill: #C4AA78;
    stroke: #FFF;
}
.dial-node-group:hover .node-aura {
    fill: rgba(252, 210, 105, 0.2);
}
.dial-node-group.is-active .node-core {
    fill: #FCD269;
    stroke: #FFFFFF;
    r: 20px;
    filter: drop-shadow(0 0 10px rgba(252, 210, 105, 0.8));
}
.dial-node-group.is-active .node-aura {
    fill: rgba(252, 210, 105, 0.28);
}
.dial-node-group.is-active .node-label {
    fill: #141619;
    font-weight: 700;
}

/* Detail Pane */
.wheel-detail-pane {
    background: var(--bone);
    border: 1px solid var(--chalk);
    border-radius: 10px;
    padding: 32px;
    display: flex;
    flex-direction: column;
}
.festival-header-badge-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
}
.festival-type-tag {
    font-size: .625rem;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: #9A8150;
    background: #FAF8F2;
    padding: 3px 8px;
    border-radius: 4px;
    border: 1px solid rgba(154, 129, 80, .25);
}
.festival-epoch-tag {
    font-size: .6875rem;
    color: var(--stone);
    font-style: italic;
}
.festival-name {
    font-family: var(--font-serif);
    font-size: 1.85rem;
    font-weight: 400;
    color: var(--ink);
    margin: 0 0 4px;
    line-height: 1.2;
}
.festival-dates {
    font-size: .875rem;
    color: var(--stone);
    margin: 0 0 18px;
}

/* Quote Banner */
.festival-lore-quote {
    background: #FAF8F2;
    border-left: 3px solid #C4AA78;
    padding: 14px 18px;
    border-radius: 0 6px 6px 0;
    margin-bottom: 22px;
}
.fest-quote-text {
    font-size: .9375rem;
    color: #5A4E38;
    margin: 0;
    line-height: 1.45;
}

/* Attributes Grid */
.fest-attributes-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 22px;
}
.fest-attr-item {
    background: var(--white);
    border: 1px solid var(--chalk);
    border-radius: 6px;
    padding: 10px 12px;
}
.fest-attr-label {
    display: block;
    font-size: .6rem;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--stone);
    margin-bottom: 2px;
}
.fest-attr-val {
    font-size: .78rem;
    color: var(--ink);
    line-height: 1.3;
}

/* Story Body */
.festival-story-body {
    margin-bottom: 24px;
}
.story-subhead {
    font-size: .6875rem;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--stone);
    margin: 0 0 6px;
}
.story-text {
    font-size: .875rem;
    line-height: 1.6;
    color: var(--slate);
    margin: 0;
}

/* Curated Seasonal Art Card */
.fest-artwork-pairing-card {
    background: var(--white);
    border: 1px solid var(--chalk);
    border-radius: 8px;
    padding: 18px;
    box-shadow: 0 4px 14px rgba(14, 16, 18, .04);
}
.fest-art-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}
.fest-art-kicker {
    font-size: .625rem;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: #9A8150;
}
.fest-art-collection {
    font-size: .6875rem;
    color: var(--stone);
    font-style: italic;
}
.fest-art-body {
    display: flex;
    gap: 16px;
    align-items: center;
}
@media (max-width: 600px) {
    .fest-art-body {
        flex-direction: column;
        align-items: flex-start;
    }
}
.fest-art-thumb {
    width: 120px;
    height: 90px;
    flex-shrink: 0;
    border-radius: 4px;
    overflow: hidden;
    background: #141619;
}
.fest-art-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.fest-art-meta {
    flex: 1;
}
.fest-art-title {
    font-family: var(--font-serif);
    font-size: 1.15rem;
    font-weight: 400;
    color: var(--ink);
    margin: 0 0 2px;
}
.fest-art-medium {
    font-size: .75rem;
    color: var(--stone);
    margin: 0 0 6px;
}
.fest-art-desc {
    font-size: .78rem;
    line-height: 1.45;
    color: var(--slate);
    margin: 0 0 10px;
}
.fest-art-link-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: .6875rem;
    font-weight: 600;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: #9A8150;
    text-decoration: none;
    transition: color .2s ease;
}
.fest-art-link-btn:hover {
    color: var(--ink);
}

/* Almanac Grid */
.wheel-almanac-section {
    padding: 80px var(--gutter);
    background: var(--bone);
    border-top: 1px solid var(--chalk);
}
.wheel-almanac-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 16px;
    margin-top: 40px;
}
.wheel-card {
    background: var(--white);
    border: 1px solid var(--chalk);
    border-radius: 8px;
    padding: 20px;
    cursor: pointer;
    transition: all .25s ease;
}
.wheel-card:hover {
    border-color: #9A8150;
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(14, 16, 18, .06);
}
.wheel-card.is-active {
    border-color: #9A8150;
    background: #FAF8F2;
    box-shadow: 0 0 0 2px #C4AA78;
}
.wheel-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}
.wheel-card-type {
    font-size: .5625rem;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: #9A8150;
}
.wheel-card-dates {
    font-size: .625rem;
    color: var(--stone);
    font-weight: 600;
}
.wheel-card-title {
    font-family: var(--font-serif);
    font-size: 1.2rem;
    font-weight: 400;
    color: var(--ink);
    margin: 0 0 4px;
}
.wheel-card-epoch {
    font-size: .78rem;
    color: var(--stone);
    margin: 0 0 12px;
}
.wheel-card-meta {
    font-size: .6875rem;
    color: var(--slate);
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding-top: 10px;
    border-top: 1px dashed var(--chalk);
}

/* ==========================================================================
   XXI. Prehistoric Petroglyph & Spiral Studio
   ========================================================================== */

.petroglyph-page {
    background: var(--snow);
    min-height: 100vh;
    padding-bottom: 120px;
}

.petroglyph-hero {
    padding: calc(var(--header-height) + 54px) var(--gutter) 48px;
    background: linear-gradient(180deg, #F3F1EC 0%, var(--snow) 100%);
    border-bottom: 1px solid var(--chalk);
    text-align: center;
}
.petroglyph-hero-inner {
    max-width: 880px;
    margin: 0 auto;
}
.petroglyph-hero .crumbs {
    justify-content: center;
    margin-bottom: 20px;
}

/* Main Workbench Stage */
.petroglyph-stage-section {
    max-width: 1240px;
    margin: 48px auto 90px;
    padding: 0 var(--gutter);
}

.petroglyph-workbench-card {
    background: var(--white);
    border: 1px solid var(--chalk);
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(14, 16, 18, .06);
    padding: 36px;
}

/* Motif Selector Bar */
.motif-selector-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    margin-bottom: 32px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--chalk);
}
.motif-bar-label {
    font-size: .6875rem;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--stone);
}
.motif-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.motif-chip {
    padding: 6px 14px;
    font-family: var(--font-sans);
    font-size: .75rem;
    font-weight: 600;
    background: var(--bone);
    border: 1px solid var(--chalk);
    border-radius: 999px;
    color: var(--slate);
    cursor: pointer;
    transition: all .2s ease;
}
.motif-chip:hover {
    border-color: #9A8150;
    color: var(--ink);
}
.motif-chip.is-active {
    background: #141619;
    border-color: #141619;
    color: #C4AA78;
    box-shadow: 0 4px 12px rgba(0, 0, 0, .15);
}

/* Studio Split Grid */
.petroglyph-studio-grid {
    display: grid;
    grid-template-columns: 1fr 1.15fr;
    gap: 40px;
    align-items: center;
}
@media (max-width: 960px) {
    .petroglyph-studio-grid {
        grid-template-columns: 1fr;
    }
}

/* Canvas Pane */
.petroglyph-canvas-pane {
    display: flex;
    flex-direction: column;
    align-items: center;
}
.canvas-frame-wrap {
    width: 100%;
    max-width: 500px;
    aspect-ratio: 1;
    border-radius: 12px;
    overflow: hidden;
    background: #101214;
    border: 1px solid rgba(196, 170, 120, .3);
    box-shadow: 0 16px 40px rgba(0, 0, 0, .35), inset 0 0 40px rgba(0, 0, 0, .6);
    position: relative;
}
#petroglyph-canvas {
    width: 100%;
    height: 100%;
    display: block;
}
.canvas-quick-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 20px;
    width: 100%;
    max-width: 500px;
    justify-content: center;
}
.canvas-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    font-family: var(--font-sans);
    font-size: .6875rem;
    font-weight: 600;
    letter-spacing: .08em;
    text-transform: uppercase;
    background: var(--bone);
    border: 1px solid var(--chalk);
    color: var(--ink);
    border-radius: 6px;
    cursor: pointer;
    transition: all .2s ease;
}
.canvas-btn:hover {
    background: var(--white);
    border-color: #9A8150;
    transform: translateY(-1px);
}
.canvas-btn--gold {
    background: #141619;
    color: #C4AA78;
    border-color: rgba(196, 170, 120, .4);
}
.canvas-btn--gold:hover {
    background: #C4AA78;
    color: #141619;
    border-color: #C4AA78;
}

/* Controls Pane */
.petroglyph-controls-pane {
    background: var(--bone);
    border: 1px solid var(--chalk);
    border-radius: 10px;
    padding: 32px;
    display: flex;
    flex-direction: column;
}
.controls-header {
    margin-bottom: 22px;
}
.controls-kicker {
    display: block;
    font-size: .625rem;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: #9A8150;
    margin-bottom: 4px;
}
.controls-title {
    font-family: var(--font-serif);
    font-size: 1.85rem;
    font-weight: 400;
    color: var(--ink);
    margin: 0 0 6px;
    line-height: 1.2;
}
.controls-desc {
    font-size: .875rem;
    color: var(--slate);
    margin: 0;
    line-height: 1.5;
}

/* Sliders Group */
.sliders-group {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 24px;
    background: var(--white);
    border: 1px solid var(--chalk);
    border-radius: 8px;
    padding: 18px 20px;
}
.slider-control {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.slider-label-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.slider-label {
    font-size: .75rem;
    font-weight: 600;
    color: var(--ink);
}
.slider-val {
    font-size: .75rem;
    color: #9A8150;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}
.petro-range {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 4px;
    border-radius: 2px;
    background: #E5E0D5;
    outline: none;
}
.petro-range::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #C4AA78;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0, 0, 0, .2);
    transition: transform .15s ease;
}
.petro-range::-webkit-slider-thumb:hover {
    transform: scale(1.2);
}

/* Material Finish Options */
.material-finish-box {
    margin-bottom: 24px;
}
.finish-label {
    display: block;
    font-size: .6875rem;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--stone);
    margin-bottom: 8px;
}
.finish-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
    gap: 8px;
}
.finish-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background: var(--white);
    border: 1px solid var(--chalk);
    border-radius: 6px;
    font-family: var(--font-sans);
    font-size: .72rem;
    font-weight: 600;
    color: var(--slate);
    cursor: pointer;
    transition: all .2s ease;
}
.finish-btn:hover {
    border-color: #9A8150;
    color: var(--ink);
}
.finish-btn.is-active {
    border-color: #9A8150;
    background: #FAF8F2;
    box-shadow: 0 0 0 2px #C4AA78;
    color: var(--ink);
}
.swatch {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    display: inline-block;
    flex-shrink: 0;
}
.swatch--gold { background: linear-gradient(135deg, #FFF2C2 0%, #C4AA78 100%); }
.swatch--chiseled { background: linear-gradient(135deg, #E6E8EB 0%, #626873 100%); }
.swatch--ochre { background: linear-gradient(135deg, #FFE6CC 0%, #B8581B 100%); }
.swatch--silver { background: linear-gradient(135deg, #FFFFFF 0%, #8EAFCE 100%); }

/* Art Pairing Card */
.petro-art-pairing-card {
    background: var(--white);
    border: 1px solid var(--chalk);
    border-radius: 8px;
    padding: 16px;
}
.petro-art-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}
.petro-art-kicker {
    font-size: .625rem;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: #9A8150;
}
.petro-art-coll {
    font-size: .6875rem;
    color: var(--stone);
    font-style: italic;
}
.petro-art-body {
    display: flex;
    gap: 14px;
    align-items: center;
}
.petro-art-thumb {
    width: 80px;
    height: 60px;
    flex-shrink: 0;
    border-radius: 4px;
    overflow: hidden;
    background: #141619;
}
.petro-art-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.petro-art-info {
    flex: 1;
}
.petro-art-title {
    font-family: var(--font-serif);
    font-size: 1.05rem;
    font-weight: 400;
    color: var(--ink);
    margin: 0 0 2px;
}
.petro-art-medium {
    font-size: .72rem;
    color: var(--stone);
    margin: 0 0 6px;
}
.petro-art-link {
    font-size: .6875rem;
    font-weight: 600;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: #9A8150;
    text-decoration: none;
}
.petro-art-link:hover {
    color: var(--ink);
}

/* Almanac Grid */
.petro-almanac-section {
    padding: 80px var(--gutter);
    background: var(--bone);
    border-top: 1px solid var(--chalk);
}
.petro-almanac-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 16px;
    margin-top: 40px;
}
.petro-card {
    background: var(--white);
    border: 1px solid var(--chalk);
    border-radius: 8px;
    padding: 20px;
    cursor: pointer;
    transition: all .25s ease;
}
.petro-card:hover {
    border-color: #9A8150;
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(14, 16, 18, .06);
}
.petro-card.is-active {
    border-color: #9A8150;
    background: #FAF8F2;
    box-shadow: 0 0 0 2px #C4AA78;
}
.petro-card-head {
    margin-bottom: 6px;
}
.petro-card-origin {
    font-size: .5625rem;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: #9A8150;
}
.petro-card-title {
    font-family: var(--font-serif);
    font-size: 1.15rem;
    font-weight: 400;
    color: var(--ink);
    margin: 0 0 4px;
}
.petro-card-meaning {
    font-size: .78rem;
    color: var(--slate);
    line-height: 1.45;
    margin: 0 0 10px;
}
.petro-card-coll {
    font-size: .6875rem;
    color: var(--stone);
    display: block;
    padding-top: 8px;
    border-top: 1px dashed var(--chalk);
}

/* ==========================================================================
   XXII. Celtic Sacred Beast Quiz
   ========================================================================== */

.totem-page {
    background: var(--snow);
    min-height: 100vh;
    padding-bottom: 120px;
}
.totem-hero {
    padding: calc(var(--header-height) + 54px) var(--gutter) 48px;
    background: linear-gradient(180deg, #F3F1EC 0%, var(--snow) 100%);
    border-bottom: 1px solid var(--chalk);
    text-align: center;
}
.totem-hero-inner {
    max-width: 880px;
    margin: 0 auto;
}
.totem-hero .crumbs {
    justify-content: center;
    margin-bottom: 20px;
}
.totem-stage-section {
    max-width: 1100px;
    margin: 48px auto 90px;
    padding: 0 var(--gutter);
}
.totem-workbench-card {
    background: var(--white);
    border: 1px solid var(--chalk);
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(14, 16, 18, .06);
    padding: 40px;
}

/* Quiz Flow Container */
.totem-quiz-container {
    max-width: 760px;
    margin: 0 auto;
}
.quiz-progress-bar {
    width: 100%;
    height: 4px;
    background: #EAE6DC;
    border-radius: 2px;
    overflow: hidden;
    margin-bottom: 24px;
}
.quiz-progress-fill {
    height: 100%;
    background: #C4AA78;
    transition: width .3s ease;
}
.quiz-step-header {
    text-align: center;
    margin-bottom: 32px;
}
.quiz-step-num {
    display: block;
    font-size: .6875rem;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: #9A8150;
    margin-bottom: 8px;
}
.quiz-question-title {
    font-family: var(--font-serif);
    font-size: 1.85rem;
    font-weight: 400;
    color: var(--ink);
    margin: 0;
    line-height: 1.25;
}
.quiz-options-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 24px;
}
.quiz-option-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 24px;
    background: var(--bone);
    border: 1px solid var(--chalk);
    border-radius: 8px;
    font-family: var(--font-sans);
    font-size: .9375rem;
    color: var(--ink);
    text-align: left;
    cursor: pointer;
    transition: all .2s ease;
}
.quiz-option-card:hover {
    background: #FAF8F2;
    border-color: #C4AA78;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(14, 16, 18, .06);
}
.opt-arrow {
    color: #9A8150;
    font-weight: 700;
    transition: transform .2s ease;
}
.quiz-option-card:hover .opt-arrow {
    transform: translateX(4px);
}
.quiz-nav-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 12px;
}
.quiz-back-btn {
    background: none;
    border: none;
    font-size: .75rem;
    font-weight: 600;
    color: var(--stone);
    cursor: pointer;
}
.quiz-hint-text {
    font-size: .75rem;
    color: var(--fog);
}

/* Result Card */
.totem-result-header {
    text-align: center;
    margin-bottom: 32px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--chalk);
}
.totem-badge-kicker {
    font-size: .625rem;
    font-weight: 700;
    letter-spacing: .15em;
    text-transform: uppercase;
    color: #9A8150;
    display: block;
    margin-bottom: 6px;
}
.totem-title {
    font-family: var(--font-serif);
    font-size: 2.2rem;
    font-weight: 400;
    color: var(--ink);
    margin: 0 0 4px;
}
.totem-archetype {
    font-size: .9375rem;
    color: var(--stone);
    margin: 0;
}
.totem-card-split {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 36px;
    align-items: center;
}
@media (max-width: 800px) {
    .totem-card-split { grid-template-columns: 1fr; }
}
.totem-emblem-wrap {
    background: #141619;
    border: 1px solid rgba(196, 170, 120, .35);
    border-radius: 12px;
    padding: 32px 20px;
    text-align: center;
    margin-bottom: 20px;
    box-shadow: 0 12px 30px rgba(0,0,0,.2);
}
.totem-large-icon {
    font-size: 5rem;
    display: block;
    margin-bottom: 12px;
}
.totem-ogham-rune {
    font-family: var(--font-serif);
    font-size: 1.25rem;
    color: #C4AA78;
    display: block;
}
.totem-traits-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.trait-item {
    background: var(--bone);
    border: 1px solid var(--chalk);
    border-radius: 6px;
    padding: 10px 14px;
}
.trait-label {
    display: block;
    font-size: .5625rem;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--stone);
    margin-bottom: 2px;
}
.trait-val {
    font-size: .8rem;
    color: var(--ink);
}
.totem-story-box {
    background: #FAF8F2;
    border-left: 3px solid #C4AA78;
    padding: 16px 20px;
    border-radius: 0 8px 8px 0;
    margin-bottom: 24px;
}
.story-heading {
    font-size: .6875rem;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: #9A8150;
    margin: 0 0 6px;
}
.story-desc {
    font-size: .875rem;
    line-height: 1.6;
    color: #5A4E38;
    margin: 0;
}
.totem-art-pairing {
    display: flex;
    gap: 16px;
    align-items: center;
    background: var(--bone);
    border: 1px solid var(--chalk);
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 24px;
}
.totem-art-thumb {
    width: 90px;
    height: 70px;
    flex-shrink: 0;
    border-radius: 4px;
    overflow: hidden;
    background: #141619;
}
.totem-art-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.totem-art-info { flex: 1; }
.art-pair-kicker {
    font-size: .5625rem;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: #9A8150;
    display: block;
}
.art-pair-title {
    font-family: var(--font-serif);
    font-size: 1.1rem;
    font-weight: 400;
    color: var(--ink);
    margin: 2px 0;
}
.art-pair-medium {
    font-size: .72rem;
    color: var(--stone);
    margin: 0 0 4px;
}
.totem-art-link {
    font-size: .6875rem;
    font-weight: 600;
    color: #9A8150;
    text-decoration: none;
}
.totem-action-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
.totem-act-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    font-family: var(--font-sans);
    font-size: .6875rem;
    font-weight: 600;
    letter-spacing: .08em;
    text-transform: uppercase;
    background: var(--bone);
    border: 1px solid var(--chalk);
    border-radius: 6px;
    color: var(--ink);
    cursor: pointer;
    transition: all .2s ease;
}
.totem-act-btn--gold {
    background: #141619;
    border-color: rgba(196, 170, 120, .4);
    color: #C4AA78;
}
.totem-act-btn--gold:hover {
    background: #C4AA78;
    color: #141619;
    border-color: #C4AA78;
}

/* Almanac Bestiary Grid */
.totem-almanac-section {
    padding: 80px var(--gutter);
    background: var(--bone);
    border-top: 1px solid var(--chalk);
}
.totem-almanac-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 16px;
    margin-top: 40px;
}
.totem-card {
    background: var(--white);
    border: 1px solid var(--chalk);
    border-radius: 8px;
    padding: 20px;
    display: flex;
    gap: 16px;
    align-items: center;
    cursor: pointer;
    transition: all .25s ease;
}
.totem-card:hover {
    border-color: #9A8150;
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(14, 16, 18, .06);
}
.totem-card-icon {
    font-size: 2.2rem;
    background: #141619;
    padding: 10px;
    border-radius: 8px;
}
.totem-card-body { flex: 1; }
.totem-card-gaelic {
    font-size: .5625rem;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: #9A8150;
    display: block;
}
.totem-card-name {
    font-family: var(--font-serif);
    font-size: 1.15rem;
    font-weight: 400;
    color: var(--ink);
    margin: 2px 0;
}
.totem-card-arch {
    font-size: .72rem;
    color: var(--stone);
    margin: 0 0 4px;
}
.totem-card-ogham {
    font-size: .6875rem;
    color: var(--fog);
}

/* ==========================================================================
   XXIII. Megalithic Solstice Sunbeam Simulator
   ========================================================================== */

.solstice-page {
    background: var(--snow);
    min-height: 100vh;
    padding-bottom: 120px;
}
.solstice-hero {
    padding: calc(var(--header-height) + 54px) var(--gutter) 48px;
    background: linear-gradient(180deg, #F3F1EC 0%, var(--snow) 100%);
    border-bottom: 1px solid var(--chalk);
    text-align: center;
}
.solstice-hero-inner {
    max-width: 880px;
    margin: 0 auto;
}
.solstice-hero .crumbs {
    justify-content: center;
    margin-bottom: 20px;
}
.solstice-stage-section {
    max-width: 1240px;
    margin: 48px auto 90px;
    padding: 0 var(--gutter);
}
.solstice-workbench-card {
    background: var(--white);
    border: 1px solid var(--chalk);
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(14, 16, 18, .06);
    padding: 36px;
}
.solstice-season-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--chalk);
}
.season-bar-label {
    font-size: .6875rem;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--stone);
}
.season-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.season-chip {
    padding: 6px 14px;
    font-family: var(--font-sans);
    font-size: .75rem;
    font-weight: 600;
    background: var(--bone);
    border: 1px solid var(--chalk);
    border-radius: 999px;
    color: var(--slate);
    cursor: pointer;
    transition: all .2s ease;
}
.season-chip:hover {
    border-color: #9A8150;
    color: var(--ink);
}
.season-chip.is-active {
    background: #141619;
    border-color: #141619;
    color: #C4AA78;
}
.solstice-studio-grid {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 40px;
    align-items: center;
}
@media (max-width: 960px) {
    .solstice-studio-grid { grid-template-columns: 1fr; }
}
.solstice-canvas-wrap {
    width: 100%;
    aspect-ratio: 16/10;
    border-radius: 10px;
    overflow: hidden;
    background: #0B0D11;
    border: 1px solid rgba(196, 170, 120, .3);
    box-shadow: 0 16px 40px rgba(0,0,0,.35);
}
#solstice-canvas {
    width: 100%;
    height: 100%;
    display: block;
}
.solstice-playback-bar {
    display: flex;
    gap: 10px;
    margin-top: 18px;
}
.solstice-play-btn {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 18px;
    background: #141619;
    border: 1px solid rgba(196, 170, 120, .4);
    border-radius: 6px;
    color: #C4AA78;
    font-family: var(--font-sans);
    font-size: .75rem;
    font-weight: 600;
    letter-spacing: .06em;
    text-transform: uppercase;
    cursor: pointer;
    transition: all .2s ease;
}
.solstice-play-btn:hover {
    background: #C4AA78;
    color: #141619;
    border-color: #C4AA78;
}
.solstice-quick-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 16px;
    background: var(--bone);
    border: 1px solid var(--chalk);
    border-radius: 6px;
    font-family: var(--font-sans);
    font-size: .6875rem;
    font-weight: 600;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--ink);
    cursor: pointer;
    transition: all .2s ease;
}
.solstice-controls-pane {
    background: var(--bone);
    border: 1px solid var(--chalk);
    border-radius: 10px;
    padding: 30px;
}
.telemetry-kicker {
    font-size: .625rem;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: #9A8150;
    display: block;
    margin-bottom: 4px;
}
.telemetry-title {
    font-family: var(--font-serif);
    font-size: 1.85rem;
    font-weight: 400;
    color: var(--ink);
    margin: 0 0 4px;
}
.telemetry-status {
    font-size: .875rem;
    color: #C4AA78;
    margin: 0 0 20px;
}
.time-slider-box {
    background: var(--white);
    border: 1px solid var(--chalk);
    border-radius: 8px;
    padding: 16px 20px;
    margin-bottom: 20px;
}
.time-label-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}
.time-label {
    font-size: .75rem;
    font-weight: 600;
    color: var(--ink);
}
.time-val {
    font-size: .8rem;
    color: #9A8150;
}
.solstice-range {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 4px;
    border-radius: 2px;
    background: #E5E0D5;
    outline: none;
}
.solstice-range::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #C4AA78;
    cursor: pointer;
}
.time-ticks {
    display: flex;
    justify-content: space-between;
    font-size: .625rem;
    color: var(--stone);
    margin-top: 6px;
}
.telemetry-metrics-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 20px;
}
.metric-card {
    background: var(--white);
    border: 1px solid var(--chalk);
    border-radius: 6px;
    padding: 10px 12px;
}
.metric-label {
    display: block;
    font-size: .5625rem;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--stone);
    margin-bottom: 2px;
}
.metric-val {
    font-size: .85rem;
    color: var(--ink);
}
.solstice-lore-card {
    background: #FAF8F2;
    border-left: 3px solid #C4AA78;
    padding: 14px 18px;
    border-radius: 0 6px 6px 0;
    margin-bottom: 20px;
}
.lore-heading {
    font-size: .625rem;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: #9A8150;
    margin: 0 0 4px;
}
.lore-desc {
    font-size: .8125rem;
    line-height: 1.5;
    color: #5A4E38;
    margin: 0;
}
.solstice-art-pairing {
    display: flex;
    gap: 14px;
    align-items: center;
    background: var(--white);
    border: 1px solid var(--chalk);
    border-radius: 8px;
    padding: 14px;
}
.solstice-art-thumb {
    width: 80px;
    height: 60px;
    border-radius: 4px;
    overflow: hidden;
    background: #141619;
    flex-shrink: 0;
}
.solstice-art-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.solstice-art-info { flex: 1; }
.art-kicker {
    font-size: .5625rem;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: #9A8150;
    display: block;
}
.art-title {
    font-family: var(--font-serif);
    font-size: 1.05rem;
    font-weight: 400;
    color: var(--ink);
    margin: 2px 0;
}
.art-medium {
    font-size: .6875rem;
    color: var(--stone);
    margin: 0 0 4px;
}
.art-link {
    font-size: .6875rem;
    font-weight: 600;
    color: #9A8150;
    text-decoration: none;
}

/* ==========================================================================
   XXIV. Insular Celtic Monogram & Initial Illuminator
   ========================================================================== */

.monogram-page {
    background: var(--snow);
    min-height: 100vh;
    padding-bottom: 120px;
}
.monogram-hero {
    padding: calc(var(--header-height) + 54px) var(--gutter) 48px;
    background: linear-gradient(180deg, #F3F1EC 0%, var(--snow) 100%);
    border-bottom: 1px solid var(--chalk);
    text-align: center;
}
.monogram-hero-inner {
    max-width: 880px;
    margin: 0 auto;
}
.monogram-hero .crumbs {
    justify-content: center;
    margin-bottom: 20px;
}
.monogram-stage-section {
    max-width: 1240px;
    margin: 48px auto 90px;
    padding: 0 var(--gutter);
}
.monogram-workbench-card {
    background: var(--white);
    border: 1px solid var(--chalk);
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(14, 16, 18, .06);
    padding: 36px;
}
.monogram-studio-grid {
    display: grid;
    grid-template-columns: 1fr 1.15fr;
    gap: 40px;
    align-items: center;
}
@media (max-width: 960px) {
    .monogram-studio-grid { grid-template-columns: 1fr; }
}
.monogram-canvas-wrap {
    width: 100%;
    max-width: 500px;
    aspect-ratio: 1;
    border-radius: 12px;
    overflow: hidden;
    background: #101214;
    border: 1px solid rgba(196, 170, 120, .3);
    box-shadow: 0 16px 40px rgba(0,0,0,.35);
}
#monogram-canvas {
    width: 100%;
    height: 100%;
    display: block;
}
.canvas-actions-row {
    display: flex;
    gap: 10px;
    margin-top: 18px;
    max-width: 500px;
}
.monogram-btn {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 14px;
    font-family: var(--font-sans);
    font-size: .6875rem;
    font-weight: 600;
    letter-spacing: .08em;
    text-transform: uppercase;
    background: var(--bone);
    border: 1px solid var(--chalk);
    border-radius: 6px;
    color: var(--ink);
    cursor: pointer;
    transition: all .2s ease;
}
.monogram-btn--gold {
    background: #141619;
    border-color: rgba(196, 170, 120, .4);
    color: #C4AA78;
}
.monogram-btn--gold:hover {
    background: #C4AA78;
    color: #141619;
    border-color: #C4AA78;
}
.monogram-controls-pane {
    background: var(--bone);
    border: 1px solid var(--chalk);
    border-radius: 10px;
    padding: 32px;
}
.mono-kicker {
    font-size: .625rem;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: #9A8150;
    display: block;
    margin-bottom: 4px;
}
.mono-title {
    font-family: var(--font-serif);
    font-size: 1.85rem;
    font-weight: 400;
    color: var(--ink);
    margin: 0 0 4px;
}
.mono-desc {
    font-size: .875rem;
    color: var(--slate);
    margin: 0 0 20px;
}
.mono-input-box {
    background: var(--white);
    border: 1px solid var(--chalk);
    border-radius: 8px;
    padding: 14px 18px;
    margin-bottom: 18px;
}
.mono-input-label {
    display: block;
    font-size: .6875rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--stone);
    margin-bottom: 8px;
}
.mono-input-row {
    display: flex;
    align-items: center;
    gap: 12px;
}
.mono-text-input {
    width: 60px;
    height: 48px;
    font-family: var(--font-serif);
    font-size: 1.6rem;
    font-weight: 700;
    text-align: center;
    text-transform: uppercase;
    background: var(--bone);
    border: 1px solid var(--chalk);
    border-radius: 6px;
    color: #9A8150;
    outline: none;
}
.mono-text-input:focus {
    border-color: #C4AA78;
    background: #FAF8F2;
}
.quick-initial-chips {
    display: flex;
    gap: 6px;
}
.init-chip {
    width: 34px;
    height: 34px;
    font-family: var(--font-serif);
    font-size: 1rem;
    font-weight: 600;
    background: var(--bone);
    border: 1px solid var(--chalk);
    border-radius: 4px;
    color: var(--slate);
    cursor: pointer;
    transition: all .2s ease;
}
.init-chip:hover {
    border-color: #9A8150;
    color: var(--ink);
}
.mono-sliders-group {
    display: flex;
    flex-direction: column;
    gap: 14px;
    background: var(--white);
    border: 1px solid var(--chalk);
    border-radius: 8px;
    padding: 16px 18px;
    margin-bottom: 18px;
}
.slider-label-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 4px;
}
.slider-title {
    font-size: .75rem;
    font-weight: 600;
    color: var(--ink);
}
.slider-stat {
    font-size: .75rem;
    color: #9A8150;
    font-weight: 700;
}
.mono-range {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 4px;
    border-radius: 2px;
    background: #E5E0D5;
    outline: none;
}
.mono-range::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #C4AA78;
    cursor: pointer;
}
.mono-palette-box {
    margin-bottom: 18px;
}
.mono-pal-label {
    display: block;
    font-size: .6875rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--stone);
    margin-bottom: 8px;
}
.mono-pal-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}
.mono-pal-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background: var(--white);
    border: 1px solid var(--chalk);
    border-radius: 6px;
    font-family: var(--font-sans);
    font-size: .72rem;
    font-weight: 600;
    color: var(--slate);
    cursor: pointer;
    transition: all .2s ease;
}
.mono-pal-btn:hover {
    border-color: #9A8150;
    color: var(--ink);
}
.mono-pal-btn.is-active {
    border-color: #9A8150;
    background: #FAF8F2;
    box-shadow: 0 0 0 2px #C4AA78;
    color: var(--ink);
}
.pal-swatches {
    display: flex;
    gap: 2px;
}
.pal-swatches span {
    width: 8px;
    height: 14px;
    border-radius: 2px;
}
.mono-art-card {
    display: flex;
    gap: 12px;
    align-items: center;
    background: var(--white);
    border: 1px solid var(--chalk);
    border-radius: 8px;
    padding: 12px 14px;
}
.mono-art-thumb {
    width: 70px;
    height: 50px;
    border-radius: 4px;
    overflow: hidden;
    background: #141619;
    flex-shrink: 0;
}
.mono-art-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.mono-art-meta { flex: 1; }
.mono-art-kicker {
    font-size: .5625rem;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: #9A8150;
    display: block;
}
.mono-art-title {
    font-family: var(--font-serif);
    font-size: .95rem;
    font-weight: 400;
    color: var(--ink);
    margin: 1px 0;
}
.mono-art-desc {
    font-size: .6875rem;
    color: var(--stone);
    margin: 0 0 2px;
}
.mono-art-link {
    font-size: .625rem;
    font-weight: 600;
    color: #9A8150;
    text-decoration: none;
}



