/*
Theme Name: FariPalette
Theme URI: https://faripalette.com/
Author: FariPalette Studio
Author URI: https://faripalette.com/
Description: A bespoke editorial WordPress theme for FariPalette — luxury hand-painted abstract artwork from Los Angeles. Built from scratch, no framework. Cormorant Garamond display, DM Sans body, gold-on-cream palette.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
License: GPL v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: faripalette
Tags: portfolio, art, gallery, custom-colors, custom-menu, featured-images
*/

/* ==========================================================================
   1. RESET / NORMALIZE (lean, modern)
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; tab-size: 4; }
body { line-height: 1.65; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
img, picture, video, canvas, svg { display: block; max-width: 100%; height: auto; }
input, button, textarea, select { font: inherit; color: inherit; }
button { background: none; border: 0; cursor: pointer; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
h1, h2, h3, h4, h5, h6 { font-weight: 400; line-height: 1.15; }

/* ==========================================================================
   2. DESIGN TOKENS
   ========================================================================== */
:root {
    /* Brand palette */
    --gold:        #C9A84C;
    --gold-light:  #D4B65A;
    --gold-soft:   #E5D29B;
    --gold-deep:   #A88B3D;
    --teal:        #1A5276;
    --teal-deep:   #133E58;
    --cream:       #F5F0E8;
    --cream-warm:  #EDE5D5;
    --paper:       #FAF6EE;
    --soft-black:  #2C3E50;
    --ink:         #1A1F26;
    --ink-soft:    #4A5366;
    --line:        rgba(44, 62, 80, 0.12);
    --line-gold:   rgba(201, 168, 76, 0.4);

    /* Type */
    --font-display: 'Cormorant Garamond', 'Cormorant', Georgia, serif;
    --font-script:  'Cormorant Garamond', 'Cormorant', Georgia, serif;
    --font-body:    'DM Sans', 'Outfit', system-ui, sans-serif;
    --font-mono:    'JetBrains Mono', 'Courier New', monospace;

    /* Spacing scale (8pt rhythm) */
    --s-1: 0.25rem;
    --s-2: 0.5rem;
    --s-3: 0.75rem;
    --s-4: 1rem;
    --s-5: 1.5rem;
    --s-6: 2rem;
    --s-7: 3rem;
    --s-8: 4rem;
    --s-9: 6rem;
    --s-10: 8rem;
    --s-11: 12rem;

    /* Layout */
    --site-max:    1440px;
    --reading-max: 720px;
    --gutter:      clamp(1.25rem, 4vw, 3rem);
    --header-h:    84px;

    /* Easing — silk */
    --ease-silk:  cubic-bezier(0.32, 0.72, 0.34, 1);
    --ease-out:   cubic-bezier(0.22, 1, 0.36, 1);
    --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);

    /* Shadows */
    --shadow-sm: 0 1px 2px rgba(26, 31, 38, 0.06);
    --shadow-md: 0 6px 24px rgba(26, 31, 38, 0.08), 0 2px 6px rgba(26, 31, 38, 0.04);
    --shadow-lg: 0 30px 60px -20px rgba(26, 31, 38, 0.18), 0 12px 28px -8px rgba(26, 31, 38, 0.10);
    --shadow-gold: 0 12px 36px -10px rgba(201, 168, 76, 0.35);
}

/* ==========================================================================
   3. BASE TYPOGRAPHY
   ========================================================================== */
body {
    font-family: var(--font-body);
    font-size: clamp(15px, 0.9vw + 0.55rem, 16.5px);
    font-weight: 350;
    color: var(--ink);
    background: var(--cream);
    background-image:
        radial-gradient(at 20% 0%, rgba(201, 168, 76, 0.05) 0%, transparent 50%),
        radial-gradient(at 80% 100%, rgba(26, 82, 118, 0.04) 0%, transparent 60%);
    background-attachment: fixed;
    overflow-x: hidden;
}

/* Paper grain overlay */
body::before {
    content: '';
    position: fixed; inset: 0;
    pointer-events: none;
    z-index: 1;
    opacity: 0.35;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.78 0 0 0 0 0.66 0 0 0 0 0.30 0 0 0 0.6 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    mix-blend-mode: multiply;
}

h1, h2, h3, h4, .display, .script {
    font-family: var(--font-display);
    color: var(--soft-black);
    letter-spacing: -0.012em;
    font-weight: 400;
}

h1 { font-size: clamp(2.5rem, 6vw, 5rem); }
h2 { font-size: clamp(2rem, 4.2vw, 3.5rem); }
h3 { font-size: clamp(1.5rem, 2.4vw, 2.1rem); }
h4 { font-size: clamp(1.125rem, 1.5vw, 1.35rem); font-weight: 500; }

.eyebrow {
    font-family: var(--font-body);
    font-size: 0.7rem;
    letter-spacing: 0.32em;
    text-transform: uppercase;
    color: var(--gold-deep);
    font-weight: 500;
    display: inline-flex; align-items: center; gap: 0.75rem;
}
.eyebrow::before, .eyebrow.bidir::after {
    content: ''; display: inline-block;
    width: 32px; height: 1px;
    background: linear-gradient(90deg, transparent, var(--gold));
}
.eyebrow.bidir::after { background: linear-gradient(90deg, var(--gold), transparent); }

.script {
    font-style: italic;
    font-weight: 300;
}

p { max-width: 65ch; }
p + p { margin-top: 1em; }
strong, b { font-weight: 600; color: var(--soft-black); }
em, i  { font-style: italic; }

/* selection */
::selection { background: var(--gold); color: var(--cream); }

/* ==========================================================================
   4. LAYOUT PRIMITIVES
   ========================================================================== */
.container {
    width: 100%;
    max-width: var(--site-max);
    margin-inline: auto;
    padding-inline: var(--gutter);
    position: relative;
    z-index: 2;
}

.section {
    padding-block: clamp(4rem, 9vw, 8rem);
    position: relative;
    z-index: 2;
}

.section--tight { padding-block: clamp(3rem, 6vw, 5rem); }

.divider-gold {
    position: relative;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--line-gold) 30%, var(--line-gold) 70%, transparent);
    margin-block: var(--s-7);
}
.divider-gold::after {
    content: '◆';
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    color: var(--gold);
    background: var(--cream);
    padding-inline: 0.75rem;
    font-size: 0.6rem;
}

/* Two-column editorial */
.split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(2rem, 5vw, 5rem);
    align-items: center;
}
.split--reverse { direction: rtl; }
.split--reverse > * { direction: ltr; }

@media (max-width: 800px) {
    .split, .split--reverse { grid-template-columns: 1fr; direction: ltr; }
}

/* ==========================================================================
   5. NAVIGATION
   ========================================================================== */
.site-header {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 100;
    transition: background-color 0.45s var(--ease-silk),
                box-shadow 0.45s var(--ease-silk),
                padding 0.4s var(--ease-silk);
    padding-block: 1.5rem;
}
.site-header.is-scrolled {
    background: rgba(245, 240, 232, 0.92);
    backdrop-filter: blur(16px) saturate(120%);
    -webkit-backdrop-filter: blur(16px) saturate(120%);
    box-shadow: 0 1px 0 var(--line);
    padding-block: 0.85rem;
}
.site-header.is-light:not(.is-scrolled) { color: var(--cream); }
.site-header.is-light:not(.is-scrolled) .site-brand,
.site-header.is-light:not(.is-scrolled) .nav-link,
.site-header.is-light:not(.is-scrolled) .menu-toggle { color: var(--cream); }

.nav-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.site-brand {
    font-family: var(--font-display);
    font-size: 1.65rem;
    letter-spacing: -0.012em;
    color: var(--soft-black);
    font-weight: 400;
    line-height: 1;
    display: inline-flex;
    align-items: baseline;
    gap: 0.4rem;
    transition: color 0.3s var(--ease-silk);
}
.site-brand .brand-mark {
    font-style: italic;
    color: var(--gold);
}
.site-brand:hover { color: var(--gold-deep); }

.primary-nav {
    display: flex;
    align-items: center;
    gap: clamp(1.25rem, 2.5vw, 2.25rem);
}
.primary-nav ul {
    display: flex;
    align-items: center;
    gap: clamp(1.25rem, 2.5vw, 2.25rem);
}
.nav-link {
    position: relative;
    font-size: 0.78rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    font-weight: 500;
    padding-block: 0.35rem;
    color: var(--ink);
    transition: color 0.3s var(--ease-silk);
}
.nav-link::after {
    content: '';
    position: absolute;
    left: 0; right: 0; bottom: -2px;
    height: 1px;
    background: var(--gold);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s var(--ease-silk);
}
.nav-link:hover, .nav-link.is-active { color: var(--gold-deep); }
.nav-link:hover::after, .nav-link.is-active::after { transform: scaleX(1); }

.nav-cta {
    display: inline-flex; align-items: center; gap: 0.5rem;
    padding: 0.7rem 1.4rem;
    border: 1px solid var(--gold);
    color: var(--gold-deep);
    font-size: 0.72rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    font-weight: 500;
    transition: all 0.4s var(--ease-silk);
}
.nav-cta:hover {
    background: var(--gold);
    color: var(--cream);
    transform: translateY(-1px);
}

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    width: 32px; height: 32px;
    align-items: flex-end;
    justify-content: center;
    z-index: 110;
}
.menu-toggle span {
    display: block; height: 1px; background: currentColor;
    transition: all 0.4s var(--ease-silk);
}
.menu-toggle span:nth-child(1) { width: 24px; }
.menu-toggle span:nth-child(2) { width: 18px; }
.menu-toggle span:nth-child(3) { width: 22px; }

body.menu-open .menu-toggle span:nth-child(1) { transform: translateY(6px) rotate(45deg); width: 24px; }
body.menu-open .menu-toggle span:nth-child(2) { opacity: 0; }
body.menu-open .menu-toggle span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); width: 24px; }

@media (max-width: 880px) {
    .primary-nav { display: none; }
    .menu-toggle { display: flex; }
}

/* Mobile overlay */
.mobile-menu {
    position: fixed; inset: 0;
    background: var(--cream);
    z-index: 99;
    display: flex; flex-direction: column;
    padding: calc(var(--header-h) + 2rem) var(--gutter) 3rem;
    transform: translateY(-100%);
    transition: transform 0.6s var(--ease-silk);
    overflow-y: auto;
}
body.menu-open .mobile-menu { transform: translateY(0); }
.mobile-menu ul { display: flex; flex-direction: column; gap: 1.5rem; padding-top: 1rem; }
.mobile-menu a {
    font-family: var(--font-display);
    font-size: clamp(2rem, 7vw, 3.5rem);
    color: var(--soft-black);
    transition: color 0.3s var(--ease-silk), padding-left 0.3s var(--ease-silk);
    display: inline-block;
    border-bottom: 1px solid transparent;
}
.mobile-menu a:hover { color: var(--gold-deep); padding-left: 0.8rem; }
.mobile-menu .mobile-extras {
    margin-top: auto;
    padding-top: 2rem;
    border-top: 1px solid var(--line);
    font-size: 0.85rem;
    color: var(--ink-soft);
}
.mobile-menu .mobile-extras a { font-family: var(--font-body); font-size: 0.85rem; display: block; margin-block: 0.4rem; }

/* ==========================================================================
   6. BUTTONS
   ========================================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.65rem;
    padding: 1rem 2rem;
    font-family: var(--font-body);
    font-size: 0.78rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.45s var(--ease-silk);
    border: 1px solid transparent;
    position: relative;
    overflow: hidden;
}
.btn--primary { background: var(--teal); color: var(--cream); }
.btn--primary:hover { background: var(--teal-deep); transform: translateY(-2px); box-shadow: var(--shadow-md); }

.btn--gold { background: var(--gold); color: var(--soft-black); }
.btn--gold:hover { background: var(--gold-light); transform: translateY(-2px); box-shadow: var(--shadow-gold); }

.btn--ghost { border-color: var(--soft-black); color: var(--soft-black); }
.btn--ghost:hover { background: var(--soft-black); color: var(--cream); }

.btn--ghost-light { border-color: var(--cream); color: var(--cream); }
.btn--ghost-light:hover { background: var(--cream); color: var(--soft-black); }

.btn--link {
    padding: 0;
    border: 0;
    background: none;
    color: var(--gold-deep);
    border-bottom: 1px solid var(--gold);
    padding-bottom: 0.3rem;
    transition: all 0.4s var(--ease-silk);
}
.btn--link:hover { gap: 1rem; color: var(--soft-black); border-color: var(--soft-black); }
.btn--link::after { content: '→'; transition: transform 0.4s var(--ease-silk); }
.btn--link:hover::after { transform: translateX(4px); }

/* ==========================================================================
   7. HERO
   ========================================================================== */
.hero {
    position: relative;
    min-height: 100vh;
    min-height: 100svh;
    display: flex;
    align-items: flex-end;
    overflow: hidden;
    color: var(--cream);
    isolation: isolate;
    padding-bottom: clamp(3rem, 8vw, 6rem);
}
.hero__media {
    position: absolute;
    inset: 0;
    z-index: -1;
    overflow: hidden;
}
.hero__media img {
    width: 100%; height: 100%;
    object-fit: cover;
    transform: scale(1.08);
    animation: kenburns 20s var(--ease-silk) forwards;
    filter: saturate(1.05) brightness(0.95);
}
@keyframes kenburns {
    from { transform: scale(1.18) translateY(0); }
    to   { transform: scale(1.02) translateY(-2%); }
}
.hero__media::after {
    content: '';
    position: absolute; inset: 0;
    background:
        linear-gradient(180deg, rgba(26, 31, 38, 0.30) 0%, transparent 30%, transparent 60%, rgba(26, 31, 38, 0.85) 100%),
        linear-gradient(90deg, rgba(26, 31, 38, 0.45) 0%, transparent 50%);
}

.hero__inner { position: relative; }
.hero__eyebrow { color: var(--gold-soft); margin-bottom: 1.5rem; }
.hero__eyebrow::before { background: linear-gradient(90deg, transparent, var(--gold-soft)); }
.hero__title {
    font-family: var(--font-display);
    font-size: clamp(3rem, 9vw, 7rem);
    line-height: 0.98;
    color: var(--cream);
    letter-spacing: -0.018em;
    max-width: 900px;
}
.hero__title em {
    font-style: italic;
    color: var(--gold-soft);
    font-weight: 300;
    display: inline-block;
}
.hero__subtitle {
    margin-top: 1.5rem;
    font-size: 1.1rem;
    color: rgba(245, 240, 232, 0.85);
    max-width: 540px;
    font-weight: 350;
    letter-spacing: 0.01em;
}
.hero__actions {
    display: flex; gap: 1rem; flex-wrap: wrap;
    margin-top: 2.5rem;
}

.hero__scroll {
    position: absolute;
    bottom: 2rem; right: var(--gutter);
    color: rgba(245, 240, 232, 0.6);
    font-size: 0.7rem;
    letter-spacing: 0.32em;
    text-transform: uppercase;
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    display: flex; align-items: center; gap: 1rem;
    padding-block: 1rem;
}
.hero__scroll::before {
    content: '';
    display: block;
    width: 1px; height: 60px;
    background: linear-gradient(180deg, transparent, var(--gold) 50%, transparent);
    animation: scrollPulse 2.5s var(--ease-silk) infinite;
}
@keyframes scrollPulse {
    0%, 100% { opacity: 0.3; transform: scaleY(0.7); }
    50%      { opacity: 1; transform: scaleY(1); }
}

@media (max-width: 700px) {
    .hero__scroll { display: none; }
}

/* Aside type — vertical "ESTABLISHED" mark */
.hero__mark {
    position: absolute;
    top: 50%; left: var(--gutter);
    transform: translateY(-50%) rotate(-90deg);
    transform-origin: left center;
    font-size: 0.7rem;
    letter-spacing: 0.45em;
    text-transform: uppercase;
    color: rgba(245, 240, 232, 0.45);
    padding-left: 1rem;
}
@media (max-width: 1100px) { .hero__mark { display: none; } }

/* ==========================================================================
   8. SECTION HEADERS
   ========================================================================== */
.section-head {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 2rem;
    align-items: end;
    margin-bottom: clamp(2.5rem, 5vw, 4rem);
}
.section-head__title {
    font-size: clamp(2rem, 4.5vw, 3.75rem);
    line-height: 1.05;
    color: var(--soft-black);
    max-width: 11ch;
}
.section-head__title em { font-style: italic; color: var(--gold-deep); font-weight: 300; }
.section-head__lead {
    max-width: 380px;
    color: var(--ink-soft);
    font-size: 1.02rem;
}

@media (max-width: 800px) {
    .section-head { grid-template-columns: 1fr; }
}

/* Page hero (interior) */
.page-hero {
    padding-top: calc(var(--header-h) + 4rem);
    padding-bottom: 4rem;
    position: relative;
    z-index: 2;
}
.page-hero__inner {
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    gap: 3rem;
    align-items: end;
}
.page-hero__title {
    font-size: clamp(2.5rem, 6vw, 5.5rem);
    line-height: 1;
    color: var(--soft-black);
    letter-spacing: -0.02em;
}
.page-hero__title em { font-style: italic; color: var(--gold-deep); font-weight: 300; }
.page-hero__intro {
    color: var(--ink-soft);
    font-size: 1.05rem;
    line-height: 1.7;
}
.page-hero__crumbs {
    margin-bottom: 1.25rem;
    font-size: 0.72rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--gold-deep);
}
@media (max-width: 800px) {
    .page-hero__inner { grid-template-columns: 1fr; }
}

/* ==========================================================================
   9. GALLERY (masonry)
   ========================================================================== */
.gallery-filters {
    display: flex; flex-wrap: wrap; gap: 0.5rem;
    justify-content: center;
    margin-bottom: clamp(2.5rem, 5vw, 4rem);
    padding: 0.6rem;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}
.gallery-filter {
    padding: 0.6rem 1.25rem;
    font-size: 0.72rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    font-weight: 500;
    color: var(--ink-soft);
    border-radius: 999px;
    transition: all 0.4s var(--ease-silk);
}
.gallery-filter:hover { color: var(--gold-deep); }
.gallery-filter.is-active {
    background: var(--soft-black);
    color: var(--cream);
}

.masonry {
    column-count: 3;
    column-gap: clamp(1rem, 2vw, 1.75rem);
}
@media (max-width: 1000px) { .masonry { column-count: 2; } }
@media (max-width: 600px)  { .masonry { column-count: 1; } }

.art-card {
    break-inside: avoid;
    margin-bottom: clamp(1rem, 2vw, 1.75rem);
    position: relative;
    cursor: pointer;
    overflow: hidden;
    background: var(--paper);
    transition: transform 0.7s var(--ease-silk), box-shadow 0.7s var(--ease-silk);
    will-change: transform;
}
.art-card__media {
    position: relative;
    overflow: hidden;
    background: var(--cream-warm);
}
.art-card__media img {
    width: 100%;
    transition: transform 1.2s var(--ease-silk), filter 0.6s var(--ease-silk);
    will-change: transform;
}
.art-card:hover .art-card__media img { transform: scale(1.06); filter: brightness(0.85); }

.art-card__frame {
    position: absolute;
    inset: 0;
    border: 1px solid transparent;
    transition: border-color 0.5s var(--ease-silk),
                inset 0.5s var(--ease-silk);
    pointer-events: none;
}
.art-card:hover .art-card__frame {
    border-color: var(--gold);
    inset: 12px;
}

.art-card__overlay {
    position: absolute;
    left: 0; right: 0; bottom: 0;
    padding: 1.5rem 1.5rem 1.25rem;
    color: var(--cream);
    transform: translateY(20px);
    opacity: 0;
    transition: all 0.55s var(--ease-silk);
    z-index: 2;
}
.art-card:hover .art-card__overlay { transform: translateY(0); opacity: 1; }
.art-card__overlay::before {
    content: '';
    position: absolute; inset: 0;
    background: linear-gradient(180deg, transparent, rgba(26, 31, 38, 0.85));
    z-index: -1;
}
.art-card__title {
    font-family: var(--font-display);
    font-size: 1.15rem;
    color: var(--cream);
    line-height: 1.2;
    margin-bottom: 0.25rem;
}
.art-card__meta {
    display: flex; gap: 1rem; align-items: center;
    font-size: 0.72rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--gold-soft);
}
.art-card__price { color: var(--cream); font-weight: 500; }

/* Always-visible caption (for grid view, not lightbox) */
.art-card__caption {
    padding: 1rem 0.25rem 0;
    text-align: left;
}
.art-card__caption-title {
    font-family: var(--font-display);
    font-size: 1.1rem;
    color: var(--soft-black);
    line-height: 1.25;
}
.art-card__caption-meta {
    margin-top: 0.35rem;
    font-size: 0.7rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--gold-deep);
    display: flex; gap: 0.75rem;
}

/* Featured strip on home — asymmetric grid */
.featured-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    grid-auto-rows: minmax(120px, auto);
    gap: clamp(0.75rem, 1.5vw, 1.5rem);
}
.featured-grid .art-card:nth-child(1) { grid-column: span 3; grid-row: span 2; }
.featured-grid .art-card:nth-child(2) { grid-column: span 3; grid-row: span 1; }
.featured-grid .art-card:nth-child(3) { grid-column: span 2; grid-row: span 1; }
.featured-grid .art-card:nth-child(4) { grid-column: span 4; grid-row: span 2; }
.featured-grid .art-card:nth-child(5) { grid-column: span 3; grid-row: span 1; }
.featured-grid .art-card:nth-child(6) { grid-column: span 3; grid-row: span 1; }
.featured-grid .art-card { margin-bottom: 0; }
.featured-grid .art-card__media,
.featured-grid .art-card__media img {
    height: 100%;
    object-fit: cover;
    width: 100%;
}

@media (max-width: 800px) {
    .featured-grid { grid-template-columns: 1fr 1fr; }
    .featured-grid .art-card:nth-child(n) { grid-column: span 1; grid-row: span 1; }
    .featured-grid .art-card:first-child  { grid-column: span 2; }
    .featured-grid .art-card__media { aspect-ratio: 4/5; }
}

/* ==========================================================================
   10. LIGHTBOX
   ========================================================================== */
.lightbox {
    position: fixed; inset: 0;
    z-index: 200;
    background: rgba(20, 23, 30, 0.97);
    display: flex; align-items: center; justify-content: center;
    opacity: 0; visibility: hidden;
    transition: opacity 0.5s var(--ease-silk), visibility 0.5s;
    padding: 2rem;
}
.lightbox.is-open { opacity: 1; visibility: visible; }
.lightbox__inner {
    display: grid;
    grid-template-columns: 1fr 360px;
    gap: 2rem;
    width: 100%;
    max-width: 1300px;
    max-height: calc(100vh - 4rem);
}
.lightbox__media {
    background: rgba(0,0,0,0.4);
    display: flex; align-items: center; justify-content: center;
    overflow: hidden;
    position: relative;
}
.lightbox__media img {
    max-width: 100%; max-height: 80vh;
    object-fit: contain;
    transform: scale(0.96);
    opacity: 0;
    transition: all 0.6s var(--ease-silk);
}
.lightbox.is-open .lightbox__media img { transform: scale(1); opacity: 1; }

.lightbox__details {
    color: var(--cream);
    align-self: center;
    border-left: 1px solid rgba(201, 168, 76, 0.3);
    padding-left: 2rem;
}
.lightbox__details .eyebrow { color: var(--gold-soft); margin-bottom: 1rem; }
.lightbox__details h3 {
    font-family: var(--font-display);
    font-size: 2rem;
    color: var(--cream);
    margin-bottom: 1rem;
    line-height: 1.15;
}
.lightbox__meta {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 0.5rem 1rem;
    font-size: 0.85rem;
    margin-block: 1.5rem;
    padding-block: 1.5rem;
    border-top: 1px solid rgba(245, 240, 232, 0.12);
    border-bottom: 1px solid rgba(245, 240, 232, 0.12);
}
.lightbox__meta dt { color: var(--gold-soft); letter-spacing: 0.18em; text-transform: uppercase; font-size: 0.7rem; align-self: center; }
.lightbox__meta dd { color: var(--cream); }
.lightbox__desc { font-size: 0.92rem; color: rgba(245, 240, 232, 0.78); line-height: 1.7; max-width: none; }
.lightbox__cta { margin-top: 1.75rem; }

.lightbox__close, .lightbox__nav {
    position: absolute;
    background: rgba(245, 240, 232, 0.08);
    border: 1px solid rgba(245, 240, 232, 0.18);
    color: var(--cream);
    width: 48px; height: 48px;
    display: inline-flex; align-items: center; justify-content: center;
    transition: all 0.4s var(--ease-silk);
    z-index: 5;
    border-radius: 999px;
}
.lightbox__close { top: 1.5rem; right: 1.5rem; }
.lightbox__close:hover { background: var(--gold); color: var(--soft-black); border-color: var(--gold); }
.lightbox__nav { top: 50%; transform: translateY(-50%); }
.lightbox__nav--prev { left: 1.5rem; }
.lightbox__nav--next { right: 1.5rem; }
.lightbox__nav:hover { background: var(--gold); color: var(--soft-black); border-color: var(--gold); }

@media (max-width: 900px) {
    .lightbox__inner { grid-template-columns: 1fr; gap: 1rem; }
    .lightbox__details { border-left: 0; padding-left: 0; border-top: 1px solid rgba(201, 168, 76, 0.3); padding-top: 1.5rem; max-height: 30vh; overflow-y: auto; }
    .lightbox__nav { top: auto; bottom: 1rem; transform: none; }
    .lightbox__nav--prev { left: 1rem; }
    .lightbox__nav--next { right: 1rem; }
}

/* ==========================================================================
   11. ARTIST / EDITORIAL BLOCKS
   ========================================================================== */
.editorial {
    background: var(--paper);
    position: relative;
    overflow: hidden;
}
.editorial::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(at 100% 0%, rgba(201, 168, 76, 0.07), transparent 50%);
    pointer-events: none;
}
.editorial__image {
    position: relative;
    aspect-ratio: 4/5;
    overflow: hidden;
    background: var(--cream-warm);
}
.editorial__image img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--ease-silk); }
.editorial__image:hover img { transform: scale(1.04); }
.editorial__image::after {
    content: '';
    position: absolute;
    inset: 12px;
    border: 1px solid rgba(201, 168, 76, 0.3);
    pointer-events: none;
}

.editorial__content { padding-block: 1rem; }
.editorial__signature {
    font-family: var(--font-display);
    font-style: italic;
    font-size: 1.5rem;
    color: var(--gold-deep);
    margin-top: 2rem;
}

.pull-quote {
    font-family: var(--font-display);
    font-size: clamp(1.4rem, 2.4vw, 2rem);
    font-style: italic;
    line-height: 1.4;
    color: var(--soft-black);
    padding-left: 2rem;
    border-left: 2px solid var(--gold);
    margin-block: 2rem;
    max-width: none;
}

/* ==========================================================================
   12. TESTIMONIALS
   ========================================================================== */
.testimonials {
    background: linear-gradient(180deg, var(--cream) 0%, var(--paper) 100%);
}
.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: clamp(1.5rem, 3vw, 2.5rem);
}
.testimonial {
    padding: 2.5rem;
    background: var(--cream);
    border: 1px solid var(--line);
    position: relative;
    transition: all 0.5s var(--ease-silk);
}
.testimonial::before {
    content: '"';
    position: absolute;
    top: -10px; left: 1.5rem;
    font-family: var(--font-display);
    font-size: 5rem;
    line-height: 1;
    color: var(--gold);
    background: var(--cream);
    padding-inline: 0.5rem;
}
.testimonial:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--gold);
}
.testimonial__stars {
    color: var(--gold);
    letter-spacing: 0.1em;
    margin-bottom: 1rem;
    font-size: 0.95rem;
}
.testimonial__text {
    font-family: var(--font-display);
    font-style: italic;
    font-size: 1.15rem;
    line-height: 1.5;
    color: var(--soft-black);
    margin-bottom: 1.25rem;
    max-width: none;
}
.testimonial__author {
    font-size: 0.78rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--gold-deep);
    font-weight: 500;
}
.testimonial__source {
    display: block;
    margin-top: 0.25rem;
    font-size: 0.7rem;
    color: var(--ink-soft);
    letter-spacing: 0.05em;
    text-transform: none;
}

@media (max-width: 880px) { .testimonial-grid { grid-template-columns: 1fr; } }

/* Featured testimonial — single hero quote, gallery-card treatment */
.testimonial--featured {
    max-width: 920px;
    margin: 0 auto clamp(2.5rem, 5vw, 4rem);
    padding: clamp(2.5rem, 5vw, 4.5rem) clamp(2rem, 5vw, 5rem);
    background: var(--cream);
    border: 1px solid var(--line-gold);
    position: relative;
    text-align: center;
    box-shadow: var(--shadow-md);
}
.testimonial--featured::before,
.testimonial--featured::after {
    position: absolute;
    font-family: var(--font-display);
    font-size: clamp(5rem, 10vw, 9rem);
    line-height: 1;
    color: var(--gold);
    background: var(--cream);
    padding-inline: 0.75rem;
}
.testimonial--featured::before { content: '\201C'; top: -0.5rem; left: 1.5rem; }
.testimonial--featured::after  { content: '\201D'; bottom: -1.75rem; right: 1.5rem; }
.testimonial--featured .testimonial__stars {
    font-size: 1.15rem;
    letter-spacing: 0.2em;
    margin-bottom: 1.5rem;
    color: var(--gold);
}
.testimonial--featured .testimonial__text {
    font-family: var(--font-display);
    font-style: italic;
    font-size: clamp(1.15rem, 1.7vw, 1.55rem);
    line-height: 1.6;
    color: var(--soft-black);
    margin-inline: auto;
    margin-bottom: 2rem;
    max-width: 64ch;
}
.testimonial--featured .testimonial__author {
    font-size: 0.78rem;
    letter-spacing: 0.32em;
    text-transform: uppercase;
    color: var(--gold-deep);
    font-weight: 500;
    display: inline-flex; align-items: center; gap: 0.85rem;
    flex-wrap: wrap; justify-content: center;
}
.testimonial--featured .testimonial__author::before,
.testimonial--featured .testimonial__author::after {
    content: '';
    display: inline-block;
    width: 36px; height: 1px;
    background: linear-gradient(90deg, transparent, var(--gold));
}
.testimonial--featured .testimonial__author::after {
    background: linear-gradient(90deg, var(--gold), transparent);
}
.testimonial--featured .testimonial__source {
    display: block;
    margin-top: 0.6rem;
    font-size: 0.7rem;
    color: var(--ink-soft);
    letter-spacing: 0.05em;
    text-transform: none;
    font-style: italic;
    font-family: var(--font-display);
}

/* Smaller card variant for the row beneath the featured quote */
.testimonial--card {
    padding: 2rem 1.75rem;
    text-align: left;
}
.testimonial--card .testimonial__text {
    font-size: 1rem;
    font-family: var(--font-display);
    font-style: italic;
    line-height: 1.55;
}
.testimonial--card .testimonial__source { display: block; margin-top: 0.4rem; font-style: normal; font-family: var(--font-body); }

/* ==========================================================================
   13. SHOP / PRODUCT CARDS
   ========================================================================== */
.shop-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: clamp(1.5rem, 3vw, 2.5rem);
}
.product-card {
    background: var(--paper);
    transition: transform 0.6s var(--ease-silk);
    position: relative;
}
.product-card:hover { transform: translateY(-6px); }
.product-card__media {
    position: relative;
    aspect-ratio: 4/5;
    overflow: hidden;
    background: var(--cream-warm);
}
.product-card__media img {
    width: 100%; height: 100%; object-fit: cover;
    transition: transform 1.2s var(--ease-silk);
}
.product-card:hover .product-card__media img { transform: scale(1.06); }
.product-card__media::after {
    content: '';
    position: absolute; inset: 8px;
    border: 1px solid transparent;
    transition: border-color 0.5s var(--ease-silk);
    pointer-events: none;
}
.product-card:hover .product-card__media::after { border-color: var(--gold); }

.product-card__body { padding: 1.25rem 0.5rem; }
.product-card__title {
    font-family: var(--font-display);
    font-size: 1.15rem;
    color: var(--soft-black);
    line-height: 1.3;
    margin-bottom: 0.5rem;
    min-height: 2.6em;
}
.product-card__row {
    display: flex; justify-content: space-between; align-items: center;
    margin-top: 0.5rem;
}
.product-card__price {
    font-family: var(--font-display);
    font-size: 1.4rem;
    color: var(--gold-deep);
    font-weight: 400;
}
.product-card__price small { font-size: 0.7rem; color: var(--ink-soft); }
.product-card__buy {
    font-size: 0.7rem; letter-spacing: 0.22em; text-transform: uppercase;
    color: var(--soft-black);
    border-bottom: 1px solid var(--gold);
    padding-bottom: 2px;
    transition: all 0.3s var(--ease-silk);
}
.product-card__buy:hover { color: var(--gold-deep); border-color: var(--soft-black); }

/* ==========================================================================
   14. SINGLE ARTWORK PAGE
   ========================================================================== */
.artwork-detail {
    padding-top: calc(var(--header-h) + 2rem);
}
.artwork-detail__inner {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: clamp(2rem, 5vw, 5rem);
    align-items: start;
}
.artwork-detail__media {
    position: sticky; top: calc(var(--header-h) + 1rem);
}
.artwork-detail__media img {
    width: 100%;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--line-gold);
}
.artwork-detail__sidebar {
    padding-block: 1rem;
}
.artwork-detail h1 {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 1rem;
    line-height: 1.05;
}
.artwork-detail__price {
    font-family: var(--font-display);
    font-size: 2.25rem;
    color: var(--gold-deep);
    margin-block: 1.5rem;
}
.artwork-detail__meta {
    display: grid;
    grid-template-columns: max-content 1fr;
    gap: 0.65rem 1.5rem;
    padding-block: 2rem;
    border-block: 1px solid var(--line);
    margin-block: 2rem;
}
.artwork-detail__meta dt {
    font-size: 0.7rem; letter-spacing: 0.22em; text-transform: uppercase;
    color: var(--gold-deep); font-weight: 500;
    align-self: center;
}
.artwork-detail__meta dd { font-size: 0.95rem; color: var(--soft-black); }
.artwork-detail__description {
    font-size: 1rem;
    line-height: 1.75;
    color: var(--ink-soft);
    margin-bottom: 2rem;
}

@media (max-width: 900px) {
    .artwork-detail__inner { grid-template-columns: 1fr; }
    .artwork-detail__media { position: static; }
}

/* ==========================================================================
   15. CONTACT
   ========================================================================== */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(2rem, 5vw, 5rem);
    align-items: start;
}
.contact-form { display: flex; flex-direction: column; gap: 1.25rem; }
.contact-form .form-row { display: grid; gap: 0.4rem; }
.contact-form label {
    font-size: 0.7rem; letter-spacing: 0.22em; text-transform: uppercase;
    color: var(--gold-deep); font-weight: 500;
}
.contact-form input,
.contact-form textarea,
.contact-form select {
    background: transparent;
    border: 0;
    border-bottom: 1px solid var(--line);
    padding: 0.85rem 0;
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--soft-black);
    transition: border-color 0.4s var(--ease-silk);
}
.contact-form input:focus,
.contact-form textarea:focus,
.contact-form select:focus { outline: none; border-color: var(--gold); }
.contact-form textarea { resize: vertical; min-height: 130px; }

/* CF7 styling override — match the editorial form aesthetic */
.wpcf7 .wpcf7-form { display: flex; flex-direction: column; gap: 1.25rem; }
.wpcf7 .wpcf7-form p { margin: 0; }
.wpcf7 .wpcf7-form label {
    display: block;
    font-size: 0.7rem; letter-spacing: 0.22em; text-transform: uppercase;
    color: var(--gold-deep); font-weight: 500;
    margin-bottom: 0.4rem;
}
.wpcf7 .wpcf7-form-control-wrap { display: block; }
.wpcf7 .wpcf7-text,
.wpcf7 .wpcf7-textarea,
.wpcf7 .wpcf7-select,
.wpcf7 input[type="text"],
.wpcf7 input[type="email"],
.wpcf7 input[type="url"],
.wpcf7 input[type="tel"],
.wpcf7 textarea,
.wpcf7 select {
    width: 100%;
    background: transparent;
    border: 0;
    border-bottom: 1px solid var(--line);
    padding: 0.85rem 0;
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--soft-black);
    transition: border-color 0.4s var(--ease-silk);
    box-sizing: border-box;
}
.wpcf7 .wpcf7-text:focus,
.wpcf7 .wpcf7-textarea:focus,
.wpcf7 .wpcf7-select:focus,
.wpcf7 input:focus,
.wpcf7 textarea:focus,
.wpcf7 select:focus { outline: none; border-color: var(--gold); }
.wpcf7 .wpcf7-textarea { resize: vertical; min-height: 130px; }
.wpcf7 .wpcf7-submit {
    display: inline-flex;
    align-items: center; justify-content: center;
    padding: 1rem 2rem;
    background: var(--teal);
    color: var(--cream);
    font-family: var(--font-body);
    font-size: 0.78rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    font-weight: 500;
    border: 0;
    cursor: pointer;
    transition: all 0.45s var(--ease-silk);
    margin-top: 1rem;
}
.wpcf7 .wpcf7-submit:hover { background: var(--teal-deep); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.wpcf7 .wpcf7-spinner { display: inline-block; vertical-align: middle; }
.wpcf7-response-output {
    border: 1px solid var(--gold) !important;
    color: var(--gold-deep) !important;
    padding: 0.75rem 1rem !important;
    margin-top: 1rem !important;
    font-size: 0.9rem;
    background: var(--paper);
}

.contact-info > * + * { margin-top: 1.75rem; }
.contact-info__label {
    font-size: 0.7rem; letter-spacing: 0.22em; text-transform: uppercase;
    color: var(--gold-deep); font-weight: 500;
    margin-bottom: 0.4rem;
}
.contact-info__value {
    font-family: var(--font-display);
    font-size: 1.4rem;
    color: var(--soft-black);
    line-height: 1.3;
}
.contact-info__value a:hover { color: var(--gold-deep); }

@media (max-width: 800px) { .contact-grid { grid-template-columns: 1fr; } }

/* ==========================================================================
   16. PRESS / EXHIBITIONS
   ========================================================================== */
.press-list { border-top: 1px solid var(--line); }
.press-item {
    display: grid;
    grid-template-columns: 130px 1fr auto;
    gap: 2rem;
    padding-block: 2rem;
    border-bottom: 1px solid var(--line);
    align-items: center;
    transition: background 0.4s var(--ease-silk), padding-inline 0.4s var(--ease-silk);
}
.press-item:hover { background: var(--paper); padding-inline: 1rem; }
.press-item__date {
    font-size: 0.78rem; letter-spacing: 0.22em; text-transform: uppercase;
    color: var(--gold-deep); font-weight: 500;
}
.press-item__title {
    font-family: var(--font-display);
    font-size: 1.5rem;
    color: var(--soft-black);
}
.press-item__title em { color: var(--gold-deep); font-style: italic; font-weight: 300; }
.press-item__meta {
    margin-top: 0.35rem;
    color: var(--ink-soft);
    font-size: 0.92rem;
}
.press-item__status {
    font-size: 0.7rem; letter-spacing: 0.22em; text-transform: uppercase;
    padding: 0.4rem 0.85rem;
    border: 1px solid var(--line);
    color: var(--ink-soft);
}
.press-item__status--active { border-color: var(--gold); color: var(--gold-deep); }

@media (max-width: 700px) {
    .press-item { grid-template-columns: 1fr; gap: 0.5rem; }
    .press-item__status { justify-self: start; }
}

/* ==========================================================================
   17. BLOG
   ========================================================================== */
.post-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: clamp(2rem, 4vw, 3rem);
}
.post-card { transition: transform 0.5s var(--ease-silk); }
.post-card:hover { transform: translateY(-4px); }
.post-card__media {
    aspect-ratio: 4/3;
    overflow: hidden;
    background: var(--cream-warm);
    margin-bottom: 1.25rem;
    position: relative;
}
.post-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease-silk); }
.post-card:hover .post-card__media img { transform: scale(1.06); }
.post-card__date {
    font-size: 0.7rem; letter-spacing: 0.22em; text-transform: uppercase;
    color: var(--gold-deep);
    margin-bottom: 0.65rem;
}
.post-card__title {
    font-family: var(--font-display);
    font-size: 1.35rem;
    line-height: 1.25;
    color: var(--soft-black);
    margin-bottom: 0.5rem;
    transition: color 0.3s var(--ease-silk);
}
.post-card:hover .post-card__title { color: var(--gold-deep); }
.post-card__excerpt { font-size: 0.95rem; color: var(--ink-soft); line-height: 1.6; }

/* Breadcrumbs — shown above interior page heroes */
.breadcrumbs {
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
    font-size: 0.7rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}
.breadcrumbs ol {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.4rem;
    list-style: none;
    padding: 0; margin: 0;
}
.breadcrumbs li { display: inline-flex; align-items: center; gap: 0.4rem; }
.breadcrumbs a {
    color: var(--gold-deep);
    transition: color 0.3s var(--ease-silk);
}
.breadcrumbs a:hover { color: var(--soft-black); }
.breadcrumbs span[aria-current] { color: var(--ink-soft); }
.breadcrumbs .sep { color: var(--line-gold); margin-inline: 0.15rem; }

/* Search form — header + page */
.search-form {
    display: flex;
    align-items: center;
    border-bottom: 1px solid var(--line-gold);
    max-width: 480px;
}
.search-form input {
    flex: 1;
    background: transparent;
    border: 0;
    padding: 0.85rem 0;
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--soft-black);
    outline: none;
}
.search-form input::placeholder { color: var(--ink-soft); font-style: italic; }
.search-form button {
    background: none;
    color: var(--gold-deep);
    padding: 0.5rem 1rem;
    font-size: 1.2rem;
    transition: color 0.3s var(--ease-silk), transform 0.3s var(--ease-silk);
    cursor: pointer;
    border: 0;
}
.search-form button:hover { color: var(--soft-black); transform: translateX(3px); }

/* Cookie notice — bottom-right floating, dismissible */
.cookie-notice {
    position: fixed;
    bottom: 1.25rem; right: 1.25rem; left: auto;
    max-width: 380px;
    background: var(--soft-black);
    color: var(--cream);
    padding: 1.1rem 1.25rem 1rem;
    box-shadow: var(--shadow-lg);
    z-index: 150;
    border-left: 2px solid var(--gold);
    font-size: 0.85rem;
    line-height: 1.5;
    display: grid; gap: 0.75rem;
}
.cookie-notice[hidden] { display: none !important; }
.cookie-notice p { color: rgba(245, 240, 232, 0.85); margin: 0; max-width: none; }
.cookie-notice a { color: var(--gold-soft); border-bottom: 1px solid var(--gold-soft); padding-bottom: 1px; }
.cookie-notice__btn {
    justify-self: end;
    background: var(--gold);
    color: var(--soft-black);
    border: 0;
    padding: 0.55rem 1.1rem;
    font-size: 0.7rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.3s var(--ease-silk);
}
.cookie-notice__btn:hover { background: var(--gold-light); }
@media (max-width: 500px) {
    .cookie-notice { left: 1rem; right: 1rem; max-width: none; }
}

/* Pagination — used on Journal index */
.pagination {
    margin-top: clamp(3rem, 6vw, 5rem);
    padding-top: 2.5rem;
    border-top: 1px solid var(--line-gold);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.25rem;
}
.pagination__meta {
    font-size: 0.7rem;
    letter-spacing: 0.32em;
    text-transform: uppercase;
    color: var(--gold-deep);
    font-weight: 500;
}
.pagination__list {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    flex-wrap: wrap;
    justify-content: center;
}
.pagination__list a,
.pagination__list span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    height: 44px;
    padding: 0 0.85rem;
    font-family: var(--font-body);
    font-size: 0.85rem;
    color: var(--soft-black);
    border: 1px solid transparent;
    transition: all 0.4s var(--ease-silk);
    text-decoration: none;
}
.pagination__list a:hover {
    background: var(--gold);
    color: var(--cream);
    border-color: var(--gold);
}
.pagination__list .current {
    background: var(--soft-black);
    color: var(--cream);
    border-color: var(--soft-black);
}
.pagination__list .dots {
    color: var(--ink-soft);
    border: 0;
}
.pagination__list .prev,
.pagination__list .next {
    font-style: italic;
    font-family: var(--font-display);
    font-size: 1rem;
    color: var(--gold-deep);
    border: 1px solid var(--line-gold);
}
.pagination__list .prev:hover,
.pagination__list .next:hover {
    background: var(--gold);
    color: var(--cream);
}

/* Single post */
.single-post-content {
    max-width: var(--reading-max);
    margin-inline: auto;
    font-size: 1.08rem;
    line-height: 1.8;
    color: var(--ink-soft);
}
.single-post-content > * + * { margin-top: 1.25em; }
.single-post-content h2, .single-post-content h3 {
    margin-top: 2em;
    color: var(--soft-black);
}
.single-post-content img {
    margin-block: 2rem;
    border: 1px solid var(--line-gold);
}
.single-post-content blockquote {
    border-left: 2px solid var(--gold);
    padding-left: 1.5rem;
    font-style: italic;
    font-family: var(--font-display);
    font-size: 1.3rem;
    color: var(--soft-black);
}
.single-post-content a {
    color: var(--gold-deep);
    border-bottom: 1px solid var(--line-gold);
}
.single-post-content a:hover { color: var(--soft-black); border-bottom-color: var(--soft-black); }

/* ==========================================================================
   18. STATS RIBBON
   ========================================================================== */
.stats-ribbon {
    background: var(--soft-black);
    color: var(--cream);
    padding-block: clamp(3rem, 6vw, 5rem);
    position: relative;
    overflow: hidden;
}
.stats-ribbon::before, .stats-ribbon::after {
    content: '';
    position: absolute;
    width: 60vw; height: 60vw;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(201, 168, 76, 0.08), transparent 60%);
    pointer-events: none;
}
.stats-ribbon::before { top: -30vw; left: -20vw; }
.stats-ribbon::after  { bottom: -30vw; right: -20vw; background: radial-gradient(circle, rgba(26, 82, 118, 0.12), transparent 60%); }

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    text-align: center;
    position: relative; z-index: 2;
}
.stat__value {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 5vw, 4rem);
    color: var(--gold-soft);
    line-height: 1;
    font-weight: 300;
}
.stat__label {
    margin-top: 0.6rem;
    font-size: 0.7rem; letter-spacing: 0.32em; text-transform: uppercase;
    color: rgba(245, 240, 232, 0.7);
}
@media (max-width: 700px) { .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 2.5rem; } }

/* ==========================================================================
   19. FOOTER
   ========================================================================== */
.site-footer {
    background: var(--soft-black);
    color: var(--cream);
    padding-block: clamp(4rem, 6vw, 6rem) 2rem;
    position: relative;
    overflow: hidden;
}
.site-footer::before {
    content: '';
    position: absolute; inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.85 0 0 0 0 0.7 0 0 0 0 0.3 0 0 0 0.15 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    opacity: 0.4;
    pointer-events: none;
    mix-blend-mode: overlay;
}

.footer-top {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.4fr;
    gap: 3rem;
    padding-bottom: 3rem;
    margin-bottom: 2rem;
    border-bottom: 1px solid rgba(245, 240, 232, 0.12);
    position: relative;
}
.footer-brand {
    font-family: var(--font-display);
    font-size: 2rem;
    color: var(--cream);
    line-height: 1;
    margin-bottom: 1rem;
}
.footer-brand em { color: var(--gold); font-style: italic; }
.footer-tagline { color: rgba(245, 240, 232, 0.7); font-size: 0.95rem; max-width: 32ch; line-height: 1.6; }

.footer-col h4 {
    color: var(--gold-soft);
    font-family: var(--font-body);
    font-size: 0.7rem;
    letter-spacing: 0.32em;
    text-transform: uppercase;
    margin-bottom: 1.25rem;
    font-weight: 500;
}
.footer-col ul { display: flex; flex-direction: column; gap: 0.7rem; }
.footer-col a {
    color: rgba(245, 240, 232, 0.78);
    font-size: 0.92rem;
    transition: color 0.3s var(--ease-silk), padding-left 0.3s var(--ease-silk);
}
.footer-col a:hover { color: var(--gold-soft); padding-left: 0.4rem; }

.newsletter-form {
    display: flex;
    border-bottom: 1px solid rgba(245, 240, 232, 0.25);
    margin-top: 0.5rem;
}
.newsletter-form input {
    flex: 1;
    background: transparent;
    border: 0;
    padding: 0.85rem 0;
    color: var(--cream);
    font-size: 0.95rem;
}
.newsletter-form input::placeholder { color: rgba(245, 240, 232, 0.4); }
.newsletter-form input:focus { outline: none; }
.newsletter-form button {
    background: none;
    color: var(--gold-soft);
    padding: 0.5rem 1rem;
    font-size: 1.2rem;
    transition: color 0.3s var(--ease-silk), transform 0.3s var(--ease-silk);
}
.newsletter-form button:hover { color: var(--gold); transform: translateX(4px); }

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 2rem;
    font-size: 0.78rem;
    color: rgba(245, 240, 232, 0.55);
    border-top: 1px solid rgba(245, 240, 232, 0.08);
    flex-wrap: wrap;
    gap: 1rem;
    position: relative;
}
.footer-bottom .made-in {
    font-family: var(--font-display);
    font-style: italic;
    color: var(--gold-soft);
    font-size: 0.95rem;
}

@media (max-width: 800px) {
    .footer-top { grid-template-columns: 1fr 1fr; }
    .footer-brand-col { grid-column: 1 / -1; }
}
@media (max-width: 500px) {
    .footer-top { grid-template-columns: 1fr; }
}

/* ==========================================================================
   20. SCROLL ANIMATIONS
   ========================================================================== */
[data-reveal] {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 1s var(--ease-silk), transform 1s var(--ease-silk);
    transition-delay: var(--reveal-delay, 0ms);
}
[data-reveal].is-revealed {
    opacity: 1;
    transform: translateY(0);
}
[data-reveal="fade"] { transform: none; }
[data-reveal="rise"] { transform: translateY(50px); }
[data-reveal="slide-r"] { transform: translateX(-30px); }
[data-reveal="slide-l"] { transform: translateX(30px); }
[data-reveal].is-revealed[data-reveal="slide-r"],
[data-reveal].is-revealed[data-reveal="slide-l"] { transform: translateX(0); }

/* Stagger child reveals */
[data-stagger] > * {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.9s var(--ease-silk), transform 0.9s var(--ease-silk);
}
[data-stagger].is-revealed > * { opacity: 1; transform: translateY(0); }
[data-stagger].is-revealed > *:nth-child(1) { transition-delay: 0ms; }
[data-stagger].is-revealed > *:nth-child(2) { transition-delay: 80ms; }
[data-stagger].is-revealed > *:nth-child(3) { transition-delay: 160ms; }
[data-stagger].is-revealed > *:nth-child(4) { transition-delay: 240ms; }
[data-stagger].is-revealed > *:nth-child(5) { transition-delay: 320ms; }
[data-stagger].is-revealed > *:nth-child(6) { transition-delay: 400ms; }
[data-stagger].is-revealed > *:nth-child(7) { transition-delay: 480ms; }
[data-stagger].is-revealed > *:nth-child(8) { transition-delay: 560ms; }

/* ==========================================================================
   21. CUSTOM SCROLLBAR
   ========================================================================== */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--cream); }
::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--gold) 0%, var(--gold-deep) 100%);
    border: 2px solid var(--cream);
    border-radius: 999px;
}
::-webkit-scrollbar-thumb:hover { background: var(--gold-deep); }
html { scrollbar-color: var(--gold) var(--cream); scrollbar-width: thin; }

/* ==========================================================================
   22. UTILITIES
   ========================================================================== */
.text-center { text-align: center; }
.center-x    { display: flex; justify-content: center; }
.sr-only {
    position: absolute; width: 1px; height: 1px; padding: 0;
    margin: -1px; overflow: hidden; clip: rect(0,0,0,0);
    white-space: nowrap; border: 0;
}
.no-pad-top { padding-top: 0 !important; }

.skip-link {
    position: absolute; top: -100px; left: 0;
    background: var(--soft-black); color: var(--cream);
    padding: 0.75rem 1.25rem;
    z-index: 999;
    font-size: 0.85rem;
    transition: top 0.3s var(--ease-silk);
}
.skip-link:focus { top: 0; }

/* ==========================================================================
   23. ACCESSIBILITY: REDUCED MOTION
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    .hero__media img { animation: none; transform: none; }
    [data-reveal], [data-stagger] > * { opacity: 1 !important; transform: none !important; }
}

/* ==========================================================================
   24. PRINT
   ========================================================================== */
@media print {
    body { background: white; color: black; }
    body::before, .site-header, .site-footer, .menu-toggle, .lightbox, .nav-cta { display: none !important; }
    .hero { min-height: auto; color: black; }
    .hero__media { display: none; }
    a { color: black; text-decoration: underline; }
    .section { padding-block: 1rem; page-break-inside: avoid; }
    img { max-width: 80%; }
}
