:root {
    --xo-blue: #1a7bbd;
    --xo-blue-dark: #146294;
    --xo-blue-light: #e8f4fb;
    --xo-charcoal: #2b2b2b;
    --xo-logo-dark: #222f36;
    --xo-grey: #5c5c5c;
    --xo-border: #d8e3ec;
    --xo-shadow: rgba(26, 123, 189, 0.12);
    --xo-accent-gradient: linear-gradient(135deg, #3a96d4 0%, #1a7bbd 52%, #135a8c 100%);
    --hero-bg: #080808;
    --hero-gold: #C9A96E;
    --hero-gold-dark: #b8944e;
    --hero-steel: #7A9BB5;
    --surface-light: #fbfbfa;
    --surface-card: #ffffff;
    --border-warm: #e5e3dd;
    --text-primary: #1a1a1a;
    --text-muted: #666666;
    --font-display: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
    --font-body: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

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

body {
    font-family: var(--font-body);
    background: linear-gradient(160deg, var(--xo-blue-light) 0%, #d4e8f5 50%, #c5dde9 100%);
    min-height: 100vh;
    color: var(--xo-charcoal);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

body::-webkit-scrollbar {
    display: none;
}

html {
    scroll-behavior: smooth;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

html::-webkit-scrollbar {
    display: none;
}

body.nav-open,
body.cart-open {
    overflow: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 28px 20px 20px;
}

.site-nav {
    position: sticky;
    top: 0;
    z-index: 200;
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--xo-border);
    box-shadow: 0 1px 6px rgba(26, 123, 189, 0.08);
}

.site-nav-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 10px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    position: relative;
}

.site-nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    padding: 10px;
    border: 1px solid var(--xo-border);
    border-radius: 8px;
    background: #fff;
    cursor: pointer;
    transition: background-color 0.15s ease, border-color 0.15s ease;
}

.site-nav-toggle:hover {
    background: var(--xo-blue-light);
    border-color: var(--xo-blue);
}

.site-nav-toggle-bar {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--xo-charcoal);
    border-radius: 1px;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.site-nav.is-open .site-nav-toggle-bar:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.site-nav.is-open .site-nav-toggle-bar:nth-child(2) {
    opacity: 0;
}

.site-nav.is-open .site-nav-toggle-bar:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

.site-nav-panel {
    display: flex;
    align-items: center;
    gap: 20px;
}

.site-nav-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.site-nav-cart {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    padding: 0;
    border: 1px solid var(--xo-border);
    border-radius: 8px;
    background: #fff;
    color: var(--xo-charcoal);
    cursor: pointer;
    transition: background-color 0.15s ease, border-color 0.15s ease;
}

.site-nav-cart svg {
    width: 20px;
    height: 20px;
}

.site-nav-cart:hover {
    background: var(--xo-blue-light);
    border-color: var(--xo-blue);
}

.site-nav-cart-count {
    position: absolute;
    top: -6px;
    right: -6px;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: 999px;
    background: var(--xo-blue);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
    line-height: 18px;
    text-align: center;
}

.site-nav-backdrop {
    display: none;
}

.site-nav-logo img {
    display: block;
    height: 56px;
    width: auto;
}

.site-nav-links {
    display: flex;
    align-items: center;
    gap: 14px;
    list-style: none;
}

.site-nav-links a {
    color: var(--xo-grey);
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.15s ease;
}

.site-nav-links a:hover {
    color: var(--xo-blue-dark);
}

.site-nav-cta {
    display: inline-flex;
    align-items: center;
    padding: 9px 18px;
    border-radius: 8px;
    background: var(--xo-blue);
    color: #fff;
    font-size: 0.88rem;
    font-weight: 600;
    text-decoration: none;
    transition: background-color 0.15s ease;
}

.site-nav-cta:hover {
    background: var(--xo-blue-dark);
}

.site-nav-logout {
    border: 1px solid var(--xo-border);
    border-radius: 8px;
    background: #fff;
    color: var(--xo-grey);
    font: inherit;
    font-size: 0.88rem;
    font-weight: 600;
    padding: 9px 14px;
    cursor: pointer;
    transition: color 0.15s ease, border-color 0.15s ease, background-color 0.15s ease;
}

.site-nav-logout:hover {
    color: var(--xo-charcoal);
    border-color: var(--xo-blue);
    background: var(--xo-blue-light);
}

.site-nav-logout[hidden] {
    display: none;
}

/* ——— Announcement bar (above nav) ——— */
.site-announcement {
    background: #f0f0ee;
    padding: 10px clamp(20px, 4vw, 48px);
    font-family: var(--font-body);
    font-size: 12px;
    line-height: 1.5;
    letter-spacing: 0.03em;
    color: #555555;
}

.site-announcement-inner {
    max-width: 1200px;
    margin-inline: auto;
}

.site-announcement-easter-trigger {
    display: inline;
    cursor: default;
}

.site-easter-egg {
    user-select: none;
}

.site-easter-egg-link {
    display: inline-block;
    margin-left: 0.2em;
    vertical-align: -0.15em;
    line-height: 0;
    opacity: 0;
    transform: translateY(3px);
    transition: opacity 0.2s ease, transform 0.2s ease;
    pointer-events: none;
}

.site-easter-egg--duck-tie {
    display: block;
    width: 18px;
    height: auto;
}

@media (hover: hover) {
    .site-announcement-easter-trigger:hover {
        cursor: default;
    }

    .site-announcement-easter-trigger:hover .site-easter-egg-link {
        opacity: 0.92;
        transform: translateY(0);
        pointer-events: auto;
        cursor: pointer;
    }

    .site-announcement-easter-trigger:hover .site-easter-egg-link:hover {
        opacity: 1;
    }
}

/* ——— Easter egg video popup ——— */
.easter-egg-video-modal {
    position: fixed;
    inset: 0;
    z-index: 500;
    pointer-events: none;
}

.easter-egg-video-modal:not([hidden]) {
    pointer-events: auto;
}

.easter-egg-video-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(8, 8, 8, 0.4);
}

.easter-egg-video-modal-panel {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: min(340px, calc(100vw - 32px));
    aspect-ratio: 16 / 9;
    background: #000;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.45);
}

.easter-egg-video-modal-panel iframe {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 115%;
    height: 115%;
    transform: translate(-50%, -50%);
    border: 0;
    display: block;
    pointer-events: none;
    opacity: 1;
    transition: opacity 0.25s ease;
}

.easter-egg-video-modal-panel.is-pending iframe {
    opacity: 0;
}

.site-announcement-copy {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.35rem 1.25rem;
    margin: 0;
    text-align: center;
}

.site-announcement-message strong {
    color: #1a1a1a;
    font-weight: 600;
    margin-right: 0.35em;
}

.site-announcement-sep {
    color: #888888;
    letter-spacing: 0;
}

.site-announcement a {
    color: #1a1a1a;
    font-weight: 500;
    text-decoration: none;
    white-space: nowrap;
}

.site-announcement a:hover {
    text-decoration: underline;
}

/* ——— Dark header (homepage hero) ——— */
.site-nav--dark {
    background: var(--hero-bg);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: none;
}

.site-nav--dark .site-nav-inner {
    max-width: none;
    padding: 14px clamp(20px, 4vw, 48px);
}

.site-nav--dark .site-nav-logo img {
    height: 60px;
}

.site-nav--dark .site-nav-links a {
    color: rgba(255, 255, 255, 0.5);
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.site-nav--dark .site-nav-links a:hover {
    color: var(--hero-gold);
}

.site-nav--dark .site-nav-cart {
    border-color: rgba(255, 255, 255, 0.15);
    background: transparent;
    color: rgba(255, 255, 255, 0.7);
}

.site-nav--dark .site-nav-cart:hover {
    border-color: rgba(255, 255, 255, 0.35);
    background: rgba(255, 255, 255, 0.06);
    color: #fff;
}

.site-nav--dark .site-nav-cart-count {
    background: var(--hero-gold);
    color: var(--hero-bg);
}

.site-nav--dark .site-nav-cta {
    background: var(--hero-gold);
    color: var(--hero-bg);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    border-radius: 2px;
}

.site-nav--dark .site-nav-cta:hover {
    background: #d4b87e;
}

.site-nav--dark .site-nav-logout {
    border-color: rgba(255, 255, 255, 0.15);
    background: transparent;
    color: rgba(255, 255, 255, 0.6);
}

.site-nav--dark .site-nav-logout:hover {
    border-color: rgba(255, 255, 255, 0.35);
    background: rgba(255, 255, 255, 0.06);
    color: #fff;
}

.site-nav--dark .site-nav-toggle {
    border-color: rgba(255, 255, 255, 0.15);
    background: transparent;
}

.site-nav--dark .site-nav-toggle:hover {
    border-color: rgba(255, 255, 255, 0.35);
    background: rgba(255, 255, 255, 0.06);
}

.site-nav--dark .site-nav-toggle-bar {
    background: rgba(255, 255, 255, 0.85);
}

/* ——— Hero ——— */
.hero--split {
    background: var(--hero-bg);
    overflow: hidden;
    padding: 0;
}

.hero--split .hero-inner {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: center;
    max-width: none;
    width: 100%;
    margin: 0;
    padding: clamp(52px, 7vw, 80px) clamp(32px, 5vw, 56px) clamp(52px, 7vw, 80px);
    text-align: left;
    color: #fff;
    pointer-events: none;
}

.hero--split .hero-inner a {
    pointer-events: auto;
}

.hero--split .hero-inner > .hero-eyebrow,
.hero--split .hero-inner > h1,
.hero--split .hero-inner > .hero-lead,
.hero--split .hero-inner > .hero-stats,
.hero--split .hero-inner > .hero-actions {
    opacity: 0;
    animation: heroFadeUp 0.85s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.hero--split .hero-inner > .hero-eyebrow { animation-delay: 0.1s; }
.hero--split .hero-inner > h1 { animation-delay: 0.25s; }
.hero--split .hero-inner > .hero-lead { animation-delay: 0.4s; }
.hero--split .hero-inner > .hero-actions { animation-delay: 0.55s; }
.hero--split .hero-inner > .hero-stats { animation-delay: 0.7s; }

@media (prefers-reduced-motion: reduce) {
    .hero--split .hero-inner > .hero-eyebrow,
    .hero--split .hero-inner > h1,
    .hero--split .hero-inner > .hero-lead,
    .hero--split .hero-inner > .hero-stats,
    .hero--split .hero-inner > .hero-actions {
        animation: none;
        opacity: 1;
        transform: none;
    }
}

.hero--split .hero-eyebrow {
    margin-bottom: 18px;
    font-size: clamp(11px, 1.1vw, 12px);
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--hero-gold);
    opacity: 1;
}

.hero--split .hero-inner h1 {
    font-family: var(--font-body);
    font-size: clamp(38px, 5vw, 56px);
    font-weight: 500;
    letter-spacing: -0.03em;
    line-height: 1.08;
    margin-bottom: 20px;
    max-width: 20ch;
}

.hero--split .hero-lead {
    margin-bottom: 28px;
    font-size: clamp(16px, 1.6vw, 18px);
    line-height: 1.55;
    color: rgba(255, 255, 255, 0.64);
    opacity: 1;
    max-width: 46ch;
}

.hero-stats {
    display: flex;
    gap: clamp(28px, 4vw, 48px);
    margin: 0;
    padding: 0;
}

.hero-stat {
    margin: 0;
}

.hero-stat-value {
    margin: 0 0 6px;
    font-family: var(--font-body);
    font-size: clamp(24px, 2.8vw, 32px);
    font-weight: 500;
    letter-spacing: -0.02em;
    line-height: 1;
    color: var(--hero-gold);
}

.hero-stat-label {
    margin: 0;
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.45);
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 3px;
    width: 100%;
    min-height: clamp(560px, 78vh, 860px);
    background: var(--hero-bg);
}

.hero-grid-stack {
    display: grid;
    grid-template-rows: 1fr 1fr;
    gap: 3px;
    min-height: 0;
}

.hero-grid-cell {
    position: relative;
    overflow: hidden;
    min-height: 0;
    background: #111;
}

.hero-grid-cell--large::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(
        to right,
        rgba(8, 8, 8, 0.88) 0%,
        rgba(8, 8, 8, 0.62) 42%,
        rgba(8, 8, 8, 0.22) 68%,
        transparent 100%
    );
    pointer-events: none;
}

.hero-grid-cell--large:hover img {
    filter: brightness(0.68);
}

.hero-grid-cell img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    filter: brightness(0.52);
    transition: filter 0.35s ease;
}

.hero-grid-cell:hover img {
    filter: brightness(0.68);
}

.hero--split .hero-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px;
    margin-bottom: 28px;
}

.hero--split .hero-actions .btn-hero-primary {
    background: var(--hero-gold);
    color: var(--hero-bg);
}

.hero--split .hero-actions .btn-hero-primary:hover {
    background: #d4b87e;
}

.hero--split .btn-hero-primary,
.hero--split .btn-hero-ghost {
    font-size: clamp(14px, 1.2vw, 15px);
    font-weight: 600;
    letter-spacing: 0.04em;
    border-radius: 2px;
    padding: 14px 28px;
}

.hero--split .btn-hero-ghost {
    background: linear-gradient(
        180deg,
        rgba(8, 8, 8, 0.5) 0%,
        rgba(8, 8, 8, 0.72) 100%
    );
    color: rgba(255, 255, 255, 0.88);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(6px);
}

.hero--split .btn-hero-ghost:hover {
    background: linear-gradient(
        180deg,
        rgba(8, 8, 8, 0.62) 0%,
        rgba(8, 8, 8, 0.85) 100%
    );
    border-color: rgba(255, 255, 255, 0.18);
    color: #fff;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.btn-hero-primary {
    background: var(--hero-gold);
    color: var(--hero-bg);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.04em;
    border-radius: 2px;
    padding: 13px 24px;
}

.btn-hero-primary:hover {
    background: #d4b87e;
}

.btn-hero-ghost {
    background: linear-gradient(
        180deg,
        rgba(8, 8, 8, 0.5) 0%,
        rgba(8, 8, 8, 0.72) 100%
    );
    color: rgba(255, 255, 255, 0.88);
    border: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 13px;
    font-weight: 500;
    border-radius: 2px;
    padding: 13px 24px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(6px);
}

.btn-hero-ghost:hover {
    background: linear-gradient(
        180deg,
        rgba(8, 8, 8, 0.62) 0%,
        rgba(8, 8, 8, 0.85) 100%
    );
    border-color: rgba(255, 255, 255, 0.18);
    color: #fff;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

/* Legacy full-bleed hero (unused on homepage) */
.hero {
    position: relative;
    min-height: clamp(420px, 72vh, 640px);
    display: flex;
    align-items: center;
    justify-content: flex-start;
    overflow: hidden;
}

.hero-media {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.hero-media img {
    width: 100%;
    height: calc(100% + 230px);
    object-fit: cover;
    object-position: center top;
    transform: translateY(-190px);
    display: block;
}

@keyframes heroFadeUp {
    from {
        opacity: 0;
        transform: translateY(18px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(
        to right,
        rgba(0, 0, 0, 0.78) 0%,
        rgba(0, 0, 0, 0.65) 38%,
        rgba(0, 0, 0, 0.4) 72%,
        rgba(0, 0, 0, 0.12) 100%
    );
}

.hero-rays {
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
    overflow: hidden;
    mix-blend-mode: screen;
    opacity: 0.52;
}

.hero-rays-source {
    position: absolute;
    top: -14%;
    left: 2%;
    width: min(360px, 38vw);
    height: 48%;
    background: radial-gradient(
        ellipse 85% 65% at 35% 0%,
        rgba(255, 236, 195, 0.36) 0%,
        rgba(255, 220, 160, 0.14) 45%,
        transparent 75%
    );
    filter: blur(22px);
    transform-origin: 20% 0%;
    animation: heroRaysPulse 5.5s ease-in-out infinite;
}

.hero-rays-beams {
    position: absolute;
    top: -28%;
    left: -20%;
    width: 160%;
    height: 150%;
    transform-origin: 12% 0%;
    background: repeating-conic-gradient(
        from 218deg at 10% 0%,
        transparent 0deg 6deg,
        rgba(255, 245, 220, 0.07) 6deg,
        rgba(255, 230, 180, 0.13) 10deg,
        rgba(255, 245, 220, 0.06) 14deg,
        transparent 14deg 32deg
    );
    mask-image: linear-gradient(
        to bottom right,
        rgba(0, 0, 0, 0.85) 0%,
        rgba(0, 0, 0, 0.5) 40%,
        rgba(0, 0, 0, 0.15) 75%,
        transparent 100%
    );
    -webkit-mask-image: linear-gradient(
        to bottom right,
        rgba(0, 0, 0, 0.85) 0%,
        rgba(0, 0, 0, 0.5) 40%,
        rgba(0, 0, 0, 0.15) 75%,
        transparent 100%
    );
    animation: heroRaysDrift 11s ease-in-out infinite;
}

.hero-rays-beams::after {
    content: '';
    position: absolute;
    inset: 0;
    background: repeating-conic-gradient(
        from 232deg at 10% 0%,
        transparent 0deg 14deg,
        rgba(255, 242, 215, 0.05) 14deg,
        rgba(255, 228, 178, 0.09) 17deg,
        rgba(255, 242, 215, 0.04) 20deg,
        transparent 20deg 32deg
    );
    mask-image: inherit;
    -webkit-mask-image: inherit;
}

@keyframes heroRaysDrift {
    0% {
        transform: rotate(-3.5deg) translateX(-18px) scale(1);
    }
    25% {
        transform: rotate(1.5deg) translateX(10px) scale(1.02);
    }
    50% {
        transform: rotate(4deg) translateX(22px) scale(1.025);
    }
    75% {
        transform: rotate(-0.5deg) translateX(-8px) scale(1.015);
    }
    100% {
        transform: rotate(-3.5deg) translateX(-18px) scale(1);
    }
}

@keyframes heroRaysPulse {
    0%, 100% {
        opacity: 0.65;
        transform: translate(0, 0) scale(1);
    }
    33% {
        opacity: 0.9;
        transform: translate(14px, 6px) scale(1.05);
    }
    66% {
        opacity: 0.8;
        transform: translate(-10px, 4px) scale(1.035);
    }
}

.hero-inner {
    position: relative;
    z-index: 3;
    max-width: 820px;
    width: 100%;
    margin: 0;
    margin-left: max(20px, calc((100vw - 1200px) / 2 + 20px));
    padding: 80px 24px 64px 0;
    text-align: left;
    color: #fff;
}

.hero-inner > .hero-eyebrow,
.hero-inner > h1,
.hero-inner > .hero-lead,
.hero-inner > .hero-actions {
    opacity: 0;
    animation: heroFadeUp 0.85s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.hero-inner > .hero-eyebrow { animation-delay: 0.15s; }
.hero-inner > h1 { animation-delay: 0.35s; }
.hero-inner > .hero-lead { animation-delay: 0.55s; }
.hero-inner > .hero-actions { animation-delay: 0.75s; }

@media (prefers-reduced-motion: reduce) {
    .hero-inner > .hero-eyebrow,
    .hero-inner > h1,
    .hero-inner > .hero-lead,
    .hero-inner > .hero-actions {
        animation: none;
        opacity: 1;
        transform: none;
    }

    .hero-rays-source,
    .hero-rays-beams {
        animation: none;
    }
}

.hero-eyebrow {
    margin-bottom: 12px;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    opacity: 0.85;
}

.hero-inner h1 {
    font-family: var(--font-display);
    font-size: clamp(1.85rem, 4vw, 2.75rem);
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 16px;
}

.hero-lead {
    margin-bottom: 28px;
    font-size: clamp(0.95rem, 1.75vw, 1.05rem);
    line-height: 1.65;
    opacity: 0.92;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 12px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 22px;
    border-radius: 8px;
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    border: none;
    transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.hero-actions .btn-primary {
    background: #3a96d4;
}

.hero-actions .btn-primary:hover {
    background: #2b8fcd;
}

.btn-primary {
    background: var(--xo-blue);
    color: #fff;
}

.btn-primary:hover {
    background: var(--xo-blue-dark);
}

.btn-secondary {
    background: #fff;
    color: var(--xo-blue-dark);
    border: 1px solid var(--xo-border);
}

.btn-secondary:hover {
    background: var(--xo-blue-light);
}

.btn-ghost {
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.45);
}

.btn-ghost:hover {
    background: rgba(255, 255, 255, 0.22);
}

.btn-block {
    width: 100%;
}

.btn-sheen {
    position: relative;
    overflow: hidden;
    background: var(--hero-gold);
    color: #1a1a1a;
    font-size: 14px;
    font-weight: 600;
    padding: 13px;
    border-radius: 8px;
    border: none;
}

.btn-sheen::after {
    content: '';
    position: absolute;
    top: 0;
    left: -120%;
    width: 80%;
    height: 100%;
    background: linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.55), transparent);
    transition: left 0.6s ease;
    pointer-events: none;
}

.btn-sheen:hover::after {
    left: 130%;
}

.btn-fill {
    position: relative;
    overflow: hidden;
    z-index: 1;
    background: transparent;
    color: #1a1a1a;
    font-size: 14px;
    font-weight: 600;
    padding: 13px;
    border-radius: 8px;
    border: 1.5px solid var(--hero-gold);
    transition: color 0.3s ease;
}

.btn-fill::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--hero-gold);
    transform: scaleX(0);
    transform-origin: left;
    z-index: -1;
    transition: transform 0.35s ease;
}

.btn-fill:hover::before {
    transform: scaleX(1);
}

@media (prefers-reduced-motion: reduce) {
    .btn-sheen::after {
        display: none;
    }

    .btn-fill::before {
        transition: none;
    }

    .btn-fill:hover::before {
        transform: scaleX(1);
    }
}

.section {
    background: #fff;
    border-radius: 12px;
    padding: 36px 30px;
    margin-bottom: 28px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.section h2 {
    font-family: var(--font-display);
    font-size: 1.85rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--xo-charcoal);
}

.section-lead {
    color: var(--xo-grey);
    margin-bottom: 28px;
    max-width: 680px;
}

.section-lead--flush {
    margin-bottom: 0;
}

.section-header-row {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 28px;
}

/* ——— Homepage story (Problem + Who We Are) ——— */
.home-story-problem {
    background: #fbfbfa;
    padding: clamp(64px, 8vw, 96px) clamp(20px, 4vw, 40px);
}

.home-story-problem-inner {
    display: grid;
    grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
    gap: clamp(40px, 5vw, 72px);
    align-items: center;
    max-width: 1320px;
    margin: 0 auto;
}

.home-story-problem-copy {
    padding-top: 0;
}

.home-problem-pull {
    margin: 0 0 clamp(24px, 3vw, 32px);
    padding-left: clamp(14px, 1.5vw, 18px);
    border-left: 2px solid var(--hero-gold);
    font-family: var(--font-display);
    font-size: clamp(18px, 2vw, 22px);
    font-weight: 500;
    font-style: italic;
    line-height: 1.45;
    color: #1a1a1a;
}

.home-problem-pull strong {
    font-style: normal;
    font-weight: 600;
    color: var(--hero-gold-dark);
}

.home-problem-pains {
    display: grid;
    gap: 12px;
    margin-bottom: clamp(28px, 3vw, 36px);
}

.home-problem-pain-card {
    padding: clamp(16px, 2vw, 20px) clamp(18px, 2vw, 22px);
    border: 1px solid #ece9e2;
    border-radius: 14px;
    background: #ffffff;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
    transition: border-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

.home-problem-pain-card.is-visible {
    animation: home-problem-pain-in 0.55s ease both;
}

.home-problem-pain-card:nth-child(1).is-visible { animation-delay: 0.05s; }
.home-problem-pain-card:nth-child(2).is-visible { animation-delay: 0.15s; }
.home-problem-pain-card:nth-child(3).is-visible { animation-delay: 0.25s; }

@keyframes home-problem-pain-in {
    from {
        opacity: 0;
        transform: translateY(12px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (prefers-reduced-motion: reduce) {
    .home-problem-pain-card.is-visible {
        animation: none;
    }

    .home-problem-pain-card:hover {
        transform: none;
    }
}

@media (hover: hover) and (pointer: fine) {
    .home-problem-pain-card:hover {
        border-color: var(--hero-gold);
        transform: translateY(-2px);
        box-shadow: 0 10px 28px rgba(201, 169, 110, 0.12);
    }
}

.home-problem-pain-kicker {
    margin: 0 0 6px;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--hero-gold-dark);
}

.home-problem-pain-title {
    margin: 0;
    font-size: clamp(14px, 1.35vw, 15px);
    font-weight: 500;
    line-height: 1.45;
    color: #1a1a1a;
}

.home-problem-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 16px 24px;
}

.home-problem-cta-primary {
    flex: 1 1 auto;
    min-width: min(100%, 220px);
    text-align: center;
}

.home-problem-cta-secondary {
    flex-shrink: 0;
    text-transform: none;
    letter-spacing: 0.02em;
    font-size: 14px;
    font-weight: 500;
}

.home-story-eyebrow {
    margin-bottom: 14px;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--hero-gold);
}

.home-story-eyebrow--light {
    color: #b8944e;
}

.home-story-problem-copy h2,
.home-story-about-inner h2 {
    margin-bottom: 20px;
    font-family: var(--font-body);
    font-weight: 500;
    letter-spacing: -0.5px;
    line-height: 1.25;
}

.home-story-problem-copy h2 {
    font-size: clamp(34px, 3.4vw, 42px);
    color: #1a1a1a;
    margin-bottom: 24px;
}

.home-story-problem .home-story-eyebrow {
    margin-bottom: 14px;
    font-size: 13px;
    letter-spacing: 0.18em;
}

.home-story-problem .home-story-body {
    font-size: clamp(15px, 1.45vw, 16px);
    margin-bottom: clamp(18px, 2vw, 24px);
}

.home-story-problem .home-story-figure {
    width: 100%;
    max-width: none;
    margin-left: 0;
}

.home-story-figure--problem .home-story-figure-frame {
    aspect-ratio: auto;
    width: 100%;
    height: clamp(520px, 52vw, 680px);
    min-height: 0;
    border-radius: 16px;
    box-shadow: 0 24px 56px rgba(0, 0, 0, 0.14);
    transition: box-shadow 0.45s ease;
}

.home-story-figure--problem .home-story-figure-image {
    object-fit: cover;
    object-position: center top;
    filter: none;
    transition: filter 0.45s ease;
}

/* Spotlight tuned for LIGHTROOM sign in lightroom-portrait-03.png (~42–50% from top) */
.home-story-figure--problem .home-story-figure-spotlight {
    position: absolute;
    top: 48%;
    left: 50%;
    z-index: 1;
    width: 82%;
    height: 20%;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    background: radial-gradient(
        ellipse at center,
        rgba(255, 250, 240, 0.62) 0%,
        rgba(201, 169, 110, 0.28) 38%,
        rgba(201, 169, 110, 0.08) 58%,
        transparent 72%
    );
    opacity: 0;
    transition: opacity 0.45s ease;
    pointer-events: none;
}

@media (hover: hover) and (pointer: fine) {
    .home-story-figure--problem .home-story-figure-frame:hover {
        box-shadow: 0 28px 64px rgba(0, 0, 0, 0.16);
    }

    .home-story-figure--problem .home-story-figure-frame:hover .home-story-figure-spotlight {
        opacity: 1;
    }

    .home-story-figure--problem .home-story-figure-frame:hover .home-story-figure-image {
        filter: brightness(1.05);
    }
}

@media (prefers-reduced-motion: reduce) {
    .home-story-figure--problem .home-story-figure-frame,
    .home-story-figure--problem .home-story-figure-image,
    .home-story-figure--problem .home-story-figure-spotlight {
        transition: none;
    }
}

.home-story-figure--problem .home-story-figure-bracket {
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    border-top-width: 1px;
    border-right-width: 1px;
    border-color: rgba(201, 169, 110, 0.65);
}

.home-story-problem .home-story-figure-caption {
    padding: clamp(28px, 3vw, 40px) clamp(24px, 2.5vw, 32px) clamp(24px, 2.5vw, 28px);
}

.home-story-problem .home-story-figure-tag {
    margin-bottom: 8px;
    font-size: 11px;
    letter-spacing: 0.14em;
}

.home-story-problem .home-story-figure-text {
    font-size: clamp(17px, 1.8vw, 20px);
    line-height: 1.35;
}

.home-story-about-inner h2 {
    font-size: 28px;
    color: #ffffff;
}

.home-story-body {
    margin-bottom: 16px;
    font-size: 14px;
    line-height: 1.8;
    color: #666666;
}

.home-story-body em {
    font-style: italic;
    color: #1a1a1a;
    font-weight: 500;
}

.home-story-body--dark {
    color: rgba(255, 255, 255, 0.5);
}

.home-story-body--dark em,
.home-story-body--dark strong {
    color: rgba(255, 255, 255, 0.85);
    font-weight: 500;
}

.home-story-pains {
    list-style: none;
    margin: 24px 0 28px;
    padding: 0;
}

.home-story-pains li {
    position: relative;
    padding-left: 24px;
    margin-bottom: 12px;
    font-size: 13px;
    line-height: 1.6;
    color: #555555;
}

.home-story-pains li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.45em;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #b8944e;
    box-shadow: 0 0 0 3px rgba(184, 148, 78, 0.18);
}

.home-story-scroll-cta {
    display: inline-block;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #1a1a1a;
    text-decoration: none;
    border-bottom: 1px solid var(--hero-gold);
    padding-bottom: 2px;
    transition: color 0.2s ease, border-color 0.2s ease;
}

.home-story-scroll-cta:hover {
    color: #b8944e;
    border-color: #b8944e;
}

.home-story-figure {
    margin: 0;
}

.home-story-figure-frame {
    position: relative;
    aspect-ratio: 4 / 5;
    border-radius: 12px;
    background: var(--hero-bg);
    overflow: hidden;
}

.home-story-figure-bracket {
    position: absolute;
    top: 16px;
    right: 16px;
    z-index: 2;
    width: 28px;
    height: 28px;
    border-top: 0.5px solid rgba(201, 169, 110, 0.5);
    border-right: 0.5px solid rgba(201, 169, 110, 0.5);
    pointer-events: none;
}

.home-story-figure-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    filter: brightness(0.7);
    display: block;
}

.home-story-figure-caption {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
    padding: 28px 24px 24px;
    background: linear-gradient(180deg, transparent 0%, rgba(8, 8, 8, 0.88) 100%);
}

.home-story-figure-tag {
    display: block;
    margin-bottom: 6px;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--hero-gold);
}

.home-story-figure-text {
    display: block;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.45;
    color: #ffffff;
}

.home-story-about {
    background: var(--hero-bg);
    padding: 64px 40px;
}

.home-story-about-inner {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.92fr);
    gap: clamp(40px, 6vw, 72px);
    align-items: center;
    max-width: 1280px;
    margin: 0 auto;
}

.home-story-about-copy {
    max-width: 620px;
}

.home-story-about-video-frame {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    background: #1a1a1a;
    border: 0.5px solid rgba(255, 255, 255, 0.08);
}

.home-story-about-video {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    vertical-align: middle;
}

.home-story-about-video-frame.is-replayable {
    cursor: pointer;
}

.home-story-about-video-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(8, 8, 8, 0.52);
    opacity: 0;
    transition: opacity 0.45s ease;
}

.home-story-about-video-overlay.is-visible {
    opacity: 1;
}

.home-story-about-video-overlay-copy {
    margin: 0;
    text-align: center;
    font-size: clamp(17px, 2vw, 20px);
    font-weight: 500;
    line-height: 1.5;
    color: #ffffff;
}

.home-story-about-video-overlay-copy a {
    color: var(--hero-gold);
    font-weight: 600;
    text-decoration: none;
    border-bottom: 1px solid rgba(201, 169, 110, 0.45);
    transition: color 0.2s ease, border-color 0.2s ease;
}

.home-story-about-video-overlay-copy a:hover {
    color: #d4b87e;
    border-color: rgba(212, 184, 126, 0.75);
}

#who-we-are {
    scroll-margin-top: 96px;
}

.home-story-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
    margin: 32px 0 0;
    padding: 0 0 28px;
    border-bottom: 0.5px solid rgba(255, 255, 255, 0.08);
}

.home-story-stat {
    margin: 0;
}

.home-story-stat-value {
    margin-bottom: 6px;
    font-size: 26px;
    font-weight: 500;
    line-height: 1.2;
    color: var(--hero-gold);
}

.home-story-stat-label {
    margin: 0;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.4);
}

.home-story-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    list-style: none;
    margin: 28px 0 32px;
    padding: 0;
}

.home-story-pills li {
    padding: 6px 14px;
    border: 0.5px solid rgba(255, 255, 255, 0.12);
    border-radius: 20px;
    font-size: 13px;
    line-height: 1.4;
    color: rgba(255, 255, 255, 0.6);
}

.home-story-cta {
    display: inline-block;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    border-radius: 3px;
    padding: 12px 24px;
}

/* ——— What We Do ——— */
.home-what-we-do {
    background: #fbfbfa;
    padding: clamp(64px, 8vw, 96px) clamp(20px, 4vw, 40px);
}

.home-what-we-do-inner {
    max-width: 1200px;
    margin: 0 auto;
}

.home-what-we-do-header {
    margin-bottom: 32px;
}

.home-what-we-do-header--centered {
    margin-bottom: 2.5rem;
    text-align: center;
}

.home-what-we-do-header--centered .home-what-we-do-lead {
    margin-left: auto;
    margin-right: auto;
}

.home-what-we-do-header h2 {
    margin-bottom: 14px;
    font-family: var(--font-body);
    font-size: 30px;
    font-weight: 500;
    letter-spacing: -0.5px;
    line-height: 1.25;
    color: #1a1a1a;
}

.home-what-we-do-header--centered h2 {
    font-size: clamp(30px, 3.8vw, 42px);
    letter-spacing: -0.8px;
}

.home-what-we-do-lead {
    max-width: 480px;
    font-size: 14px;
    line-height: 1.8;
    color: #666666;
}

.home-what-we-do-header--centered .home-what-we-do-lead {
    font-size: clamp(15px, 1.5vw, 17px);
    line-height: 1.6;
    color: var(--text-muted);
    max-width: min(560px, 52vw);
}

/* Services cascade stack */
.home-services-cascade {
    width: 60vw;
    max-width: 960px;
    margin: 0 auto;
    padding-bottom: clamp(24px, 3vw, 48px);
}

.home-cascade-card {
    position: relative;
    min-height: clamp(220px, 18vw, 320px);
    padding: clamp(32px, 3.5vw, 48px) clamp(36px, 4.5vw, 56px);
    border-radius: clamp(22px, 2.5vw, 32px);
    transform:
        rotate(var(--cascade-rotate, 0deg))
        translateX(var(--cascade-x, 0px))
        translateY(var(--cascade-y, 0px));
    transition:
        transform 0.45s cubic-bezier(0.34, 1.15, 0.64, 1),
        box-shadow 0.45s ease;
    will-change: transform;
}

.home-cascade-card + .home-cascade-card {
    margin-top: clamp(-52px, -4.5vw, -36px);
}

.home-cascade-card:nth-child(1) { z-index: 1; }
.home-cascade-card:nth-child(2) { z-index: 2; }
.home-cascade-card:nth-child(3) { z-index: 3; }
.home-cascade-card:nth-child(4) { z-index: 4; }

@media (hover: hover) and (pointer: fine) {
    .home-cascade-card:hover,
    .home-cascade-card:focus-within {
        transform: rotate(0deg) translateX(0) translateY(-10px) scale(1.025);
        z-index: 10;
        box-shadow: 0 22px 56px rgba(0, 0, 0, 0.16);
    }

    .home-cascade-card:hover .home-cascade-orb,
    .home-cascade-card:focus-within .home-cascade-orb {
        transform: translateY(-50%) scale(1.08);
    }
}

.home-cascade-kicker {
    margin: 0 0 clamp(8px, 1vw, 12px);
    font-size: clamp(11px, 1.05vw, 13px);
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.home-cascade-title {
    margin: 0 0 clamp(12px, 1.4vw, 18px);
    font-family: var(--font-body);
    font-size: clamp(28px, 3.4vw, 40px);
    font-weight: 500;
    letter-spacing: -0.4px;
    line-height: 1.15;
}

.home-cascade-desc {
    max-width: 66%;
    margin: 0;
    font-size: clamp(15px, 1.55vw, 18px);
    line-height: 1.6;
}

.home-cascade-orb {
    position: absolute;
    top: 50%;
    right: clamp(24px, 3vw, 40px);
    display: flex;
    align-items: center;
    justify-content: center;
    width: clamp(88px, 10vw, 124px);
    height: clamp(88px, 10vw, 124px);
    border-radius: clamp(18px, 2vw, 24px);
    transform: translateY(-50%);
    transition: transform 0.45s cubic-bezier(0.34, 1.15, 0.64, 1);
}

.home-cascade-orb svg {
    width: clamp(36px, 4.2vw, 50px);
    height: clamp(36px, 4.2vw, 50px);
}

.home-cascade-card--dark {
    background: #080808;
}

.home-cascade-card--dark .home-cascade-kicker {
    color: var(--hero-gold);
}

.home-cascade-card--dark .home-cascade-title {
    color: #ffffff;
}

.home-cascade-card--dark .home-cascade-desc {
    color: rgba(255, 255, 255, 0.6);
}

.home-cascade-card--dark .home-cascade-orb {
    background: #1c1c1c;
    color: var(--hero-gold);
}

.home-cascade-card--white {
    background: #ffffff;
    border: 1px solid #ece9e2;
}

.home-cascade-card--white .home-cascade-kicker {
    color: #b8944e;
}

.home-cascade-card--white .home-cascade-title {
    color: #1a1a1a;
}

.home-cascade-card--white .home-cascade-desc {
    color: #777777;
}

.home-cascade-card--white .home-cascade-orb {
    background: #f4f1ea;
    color: #b8944e;
}

.home-cascade-card--gold {
    background: var(--hero-gold);
}

.home-cascade-card--gold .home-cascade-kicker {
    color: #6e5a2c;
}

.home-cascade-card--gold .home-cascade-title {
    color: #3a2f17;
}

.home-cascade-card--gold .home-cascade-desc {
    color: #5e4f2c;
}

.home-cascade-card--gold .home-cascade-orb {
    background: rgba(0, 0, 0, 0.12);
    color: #3a2f17;
}

.home-cascade-card--cream {
    background: #f1ead9;
}

.home-cascade-card--cream .home-cascade-kicker {
    color: #9a824e;
}

.home-cascade-card--cream .home-cascade-title {
    color: #1a1a1a;
}

.home-cascade-card--cream .home-cascade-desc {
    color: #6e6450;
}

.home-cascade-card--cream .home-cascade-orb {
    background: rgba(0, 0, 0, 0.06);
    color: #9a824e;
}

@media (prefers-reduced-motion: reduce) {
    .home-cascade-card,
    .home-cascade-orb {
        transition: none;
    }

    .home-cascade-card {
        transform: none;
    }

    .home-cascade-card:hover,
    .home-cascade-card:focus-within {
        box-shadow: none;
    }
}

@media (max-width: 768px) {
    .home-what-we-do {
        padding: 48px 20px;
    }

    .home-what-we-do-header h2 {
        font-size: 26px;
    }

    .home-what-we-do-header--centered h2 {
        font-size: 28px;
        letter-spacing: -0.6px;
    }

    .home-services-cascade {
        width: 92vw;
        max-width: none;
        padding-bottom: 12px;
    }

    .home-cascade-card {
        transform: none;
        min-height: clamp(180px, 52vw, 240px);
        padding: clamp(24px, 6vw, 32px) clamp(20px, 5vw, 28px);
    }

    .home-cascade-card + .home-cascade-card {
        margin-top: clamp(-20px, -5vw, -14px);
    }

    .home-cascade-desc {
        max-width: 100%;
        padding-right: clamp(80px, 22vw, 100px);
        font-size: 15px;
    }

    .home-cascade-orb {
        width: clamp(64px, 18vw, 80px);
        height: clamp(64px, 18vw, 80px);
        right: clamp(16px, 4vw, 24px);
        border-radius: 16px;
    }

    .home-cascade-orb svg {
        width: clamp(28px, 8vw, 36px);
        height: clamp(28px, 8vw, 36px);
    }

    .home-cascade-title {
        font-size: clamp(22px, 6vw, 28px);
        padding-right: clamp(72px, 20vw, 88px);
    }
}

/* ——— Showcase / Our Work ——— */
.home-showcase {
    background: var(--hero-bg);
    padding: clamp(72px, 10vw, 112px) clamp(20px, 4vw, 40px);
}

.home-showcase-inner {
    max-width: 1320px;
    margin: 0 auto;
}

.home-showcase-header {
    max-width: min(640px, 72vw);
    margin: 0 auto clamp(40px, 5vw, 56px);
    text-align: center;
}

.home-showcase-eyebrow {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 18px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--hero-gold);
}

.home-showcase-eyebrow-line {
    flex-shrink: 0;
    width: 28px;
    height: 1px;
    background: var(--hero-gold);
}

.home-showcase-header h2 {
    margin-bottom: 16px;
    font-family: var(--font-body);
    font-size: clamp(32px, 4vw, 44px);
    font-weight: 500;
    letter-spacing: -0.8px;
    line-height: 1.12;
    color: #ffffff;
}

.home-showcase-lead {
    max-width: 540px;
    margin: 0 auto;
    font-size: clamp(15px, 1.5vw, 17px);
    line-height: 1.65;
    color: rgba(255, 255, 255, 0.62);
}

.home-showcase-stage {
    position: relative;
    margin-bottom: clamp(32px, 4vw, 48px);
}

.home-showcase-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    z-index: 0;
    width: min(920px, 90vw);
    height: 75%;
    transform: translate(-50%, -48%);
    background: radial-gradient(ellipse at center, rgba(201, 169, 110, 0.16) 0%, rgba(201, 169, 110, 0.04) 42%, transparent 72%);
    pointer-events: none;
}

.home-showcase-devices {
    --showcase-laptop-width: min(900px, 80vw);
    position: relative;
    z-index: 1;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    min-height: clamp(420px, 42vw, 560px);
    margin-top: 0;
    margin-bottom: 0;
}

.home-showcase-laptop {
    position: relative;
    z-index: 2;
    width: var(--showcase-laptop-width);
    filter: drop-shadow(0 28px 56px rgba(0, 0, 0, 0.48));
}

.home-showcase-laptop-screen {
    aspect-ratio: 16 / 10;
    background: #1a1a1a;
    border: 7px solid #2a2a2a;
    border-radius: 14px 14px 0 0;
    overflow: hidden;
    position: relative;
    transition: opacity 0.32s ease;
}

.home-showcase-laptop-screen.is-switching {
    opacity: 0;
}

.home-showcase-laptop-base {
    position: relative;
    height: clamp(14px, 1.6vw, 18px);
    background: #2a2a2a;
    border-radius: 0 0 12px 12px;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
}

.home-showcase-laptop-notch {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: clamp(80px, 10vw, 110px);
    height: 5px;
    background: #1a1a1a;
    border-radius: 0 0 6px 6px;
}

.home-showcase-phone {
    position: relative;
    z-index: 3;
    width: calc(var(--showcase-laptop-width) * 0.3);
    margin-left: calc(var(--showcase-laptop-width) * -0.11);
    margin-bottom: calc(var(--showcase-laptop-width) * 0.022);
    flex-shrink: 0;
    filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.42));
}

.home-showcase-phone-shell {
    position: relative;
    aspect-ratio: 9 / 19;
    background: #1a1a1a;
    border: 6px solid #2a2a2a;
    border-radius: clamp(18px, 2.2vw, 24px);
    overflow: hidden;
}

.home-showcase-phone-notch {
    position: absolute;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 4;
    width: clamp(40px, 5vw, 52px);
    height: 6px;
    background: #2a2a2a;
    border-radius: 4px;
}

.home-showcase-phone-screen {
    position: absolute;
    inset: 0;
    overflow: hidden;
    transition: opacity 0.32s ease;
}

.home-showcase-phone-screen.is-switching {
    opacity: 0;
}

.showcase-screen-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    display: block;
}

.showcase-screen {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
}

.showcase-screen-nav {
    display: flex;
    align-items: center;
    height: 12%;
    padding: 0 8%;
    background: #0d0d0d;
}

.showcase-screen--phone .showcase-screen-nav {
    height: 14%;
}

.showcase-screen-logo {
    display: block;
    width: 22%;
    height: 30%;
    border-radius: 2px;
    background: var(--showcase-accent);
    transition: background-color 0.5s ease;
}

.showcase-screen-hero {
    position: relative;
    flex: 1;
    background: var(--showcase-hero-grad);
    transition: background 0.5s ease;
}

.showcase-screen-hero-line {
    position: absolute;
    left: 8%;
    border-radius: 2px;
}

.showcase-screen-hero-line--wide {
    bottom: 32%;
    width: 45%;
    height: 9%;
    background: rgba(255, 255, 255, 0.25);
}

.showcase-screen-hero-line--accent {
    bottom: 16%;
    width: 25%;
    height: 7%;
    background: var(--showcase-accent);
    transition: background-color 0.5s ease;
}

.showcase-screen--phone .showcase-screen-hero-line--wide {
    bottom: 30%;
    width: 55%;
    height: 6%;
}

.showcase-screen--phone .showcase-screen-hero-line--accent {
    bottom: 16%;
    width: 35%;
    height: 5%;
}

.showcase-screen-grid {
    display: grid;
    grid-template-columns: repeat(var(--showcase-cols, 3), 1fr);
    gap: 4px;
    height: 26%;
    padding: 6px;
    background: #0d0d0d;
}

.showcase-screen--phone .showcase-screen-grid {
    height: 28%;
}

.showcase-screen-cell {
    display: block;
    border-radius: 3px;
    background: #2a2a2a;
}

.home-showcase-tag {
    margin: 0 0 10px;
    text-align: center;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    transition: color 0.4s ease;
}

.home-showcase-name {
    margin: 0;
    text-align: center;
    font-family: var(--font-body);
    font-size: clamp(22px, 2.8vw, 28px);
    font-weight: 500;
    letter-spacing: -0.35px;
    line-height: 1.2;
    color: #ffffff;
    transition: opacity 0.32s ease;
}

.home-showcase-name.is-switching {
    opacity: 0;
}

.home-showcase-project {
    margin-bottom: clamp(24px, 3vw, 36px);
}

.home-showcase-tabs {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
}

.home-showcase-tab {
    padding: 12px 24px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 24px;
    background: transparent;
    color: rgba(255, 255, 255, 0.55);
    font-family: inherit;
    font-size: 14px;
    font-weight: 400;
    cursor: pointer;
    transition: background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease, transform 0.2s ease;
}

.home-showcase-tab.is-active {
    font-weight: 500;
    color: #0a0a0a;
}

.home-showcase-tab:hover:not(.is-active) {
    border-color: rgba(255, 255, 255, 0.35);
    color: rgba(255, 255, 255, 0.82);
    transform: translateY(-1px);
}

@media (max-width: 768px) {
    .home-showcase {
        padding: 56px 20px;
    }

    .home-showcase-header h2 {
        font-size: clamp(28px, 7vw, 34px);
    }

    .home-showcase-devices {
        --showcase-laptop-width: min(560px, 94vw);
        flex-direction: column;
        align-items: center;
        min-height: 0;
    }

    .home-showcase-laptop {
        width: var(--showcase-laptop-width);
    }

    .home-showcase-phone {
        width: calc(var(--showcase-laptop-width) * 0.34);
        margin-left: 0;
        margin-top: calc(var(--showcase-laptop-width) * -0.09);
        margin-bottom: 0;
        align-self: flex-end;
        margin-right: 6%;
    }

    .home-showcase-glow {
        width: 100%;
        height: 65%;
    }

    .home-showcase-tab {
        padding: 10px 18px;
        font-size: 13px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .home-showcase-laptop-screen,
    .home-showcase-phone-screen,
    .home-showcase-name {
        transition: none;
    }

    .home-showcase-tab {
        transition: background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease;
    }

    .home-showcase-tab:hover:not(.is-active) {
        transform: none;
    }
}

@media (max-width: 768px) {
    .home-story-problem {
        padding: 48px 20px 64px;
    }

    .home-story-problem-inner {
        grid-template-columns: 1fr;
        gap: 36px;
    }

    .home-story-problem-copy h2 {
        font-size: clamp(28px, 7vw, 34px);
    }

    .home-story-figure--problem {
        order: -1;
    }

    .home-story-figure--problem .home-story-figure-frame {
        height: clamp(380px, 105vw, 480px);
    }

    .home-story-problem .home-story-figure-text {
        font-size: 16px;
    }

    .home-problem-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .home-problem-cta-secondary {
        text-align: center;
    }
    .home-story-about {
        padding: 48px 20px;
    }

    .home-story-about-inner {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .home-story-about-copy {
        max-width: none;
    }

    .home-story-about-inner h2 {
        font-size: 24px;
    }

    .home-story-stats {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .home-story-stat-value {
        font-size: 22px;
    }
}

/* ——— Templates ——— */
.template-grid,
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    align-items: stretch;
}

.template-card,
.pricing-card {
    position: relative;
    display: flex;
    flex-direction: column;
    padding: 22px;
    border: 1px solid var(--xo-border);
    border-radius: 12px;
    background: #fff;
}

.template-card-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: auto;
}

.template-card--showroom {
    text-align: center;
    padding-top: 34px;
}

.template-card--featured,
.pricing-card--featured {
    border-color: var(--xo-blue);
    box-shadow: 0 8px 28px var(--xo-shadow);
}

.template-badge {
    position: absolute;
    top: -11px;
    left: 50%;
    transform: translateX(-50%);
    padding: 4px 12px;
    border-radius: 999px;
    background: var(--xo-blue);
    color: #fff;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    white-space: nowrap;
}

.template-preview {
    margin-bottom: 18px;
    border-radius: 8px;
    overflow: hidden;
    background: var(--xo-blue-light);
}

.template-preview--showroom {
    background: transparent;
}

.showroom-editor-quicklinks {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 10px 12px;
    margin-bottom: 12px;
    padding: 10px 12px;
    border: 1px solid var(--xo-border);
    border-radius: 10px;
    background: #f7fafc;
}

.showroom-editor-quicklinks-label {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--xo-grey);
}

.showroom-editor-quicklinks-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.showroom-editor-quicklink {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 96px;
    padding: 8px 14px;
    border: 1px solid var(--xo-blue);
    border-radius: 999px;
    background: #fff;
    color: var(--xo-blue-dark);
    font-size: 0.82rem;
    font-weight: 700;
    text-decoration: none;
    transition: background-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}

.showroom-editor-quicklink:hover {
    background: var(--xo-blue);
    color: #fff;
    box-shadow: 0 4px 14px var(--xo-shadow);
}

.showroom-editor-quicklink:focus-visible {
    outline: 2px solid var(--xo-blue);
    outline-offset: 2px;
}

.showroom-editor-quicklinks--spotlight {
    justify-content: flex-start;
    margin-bottom: 10px;
    background: #fff;
}

.showroom-design-tabs {
    display: flex;
    gap: 6px;
    margin-bottom: 10px;
    justify-content: center;
}

.showroom-design-tabs--bottom {
    margin-top: 14px;
    margin-bottom: 0;
}

.showroom-design-note {
    margin: 0 0 12px;
    font-size: 0.85rem;
    line-height: 1.5;
    color: var(--xo-grey);
    text-align: center;
}

.template-tier-note {
    margin: 0 0 12px;
    font-size: 12.5px;
    line-height: 1.6;
    font-style: italic;
    color: #888888;
    text-align: center;
}

.template-toggle-spacer {
    margin-top: 14px;
    min-height: 38px;
}

.showroom-design-tab {
    flex: 1;
    max-width: 108px;
    padding: 7px 10px;
    border: 1px solid var(--xo-border);
    border-radius: 999px;
    background: #fff;
    color: var(--xo-grey);
    font-family: var(--font-body);
    font-size: 0.78rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.showroom-design-tab:hover {
    border-color: var(--xo-blue);
    color: var(--xo-blue-dark);
}

.showroom-design-tab.is-active {
    background: var(--xo-blue);
    border-color: var(--xo-blue);
    color: #fff;
}

.showroom-design-tab:focus-visible {
    outline: 2px solid var(--xo-blue);
    outline-offset: 2px;
}

.showroom-design-views {
    border-radius: 8px;
    overflow: hidden;
    background: var(--xo-blue-light);
}

.showroom-design-view[hidden] {
    display: none;
}

.designer-design-views {
    border-radius: 8px;
    overflow: hidden;
    background: var(--xo-blue-light);
}

.designer-design-view[hidden] {
    display: none;
}

.template-browser {
    border: 1px solid var(--xo-border);
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
}

.template-browser-bar {
    display: flex;
    gap: 5px;
    padding: 8px 10px;
    background: #eef3f7;
    border-bottom: 1px solid var(--xo-border);
}

.template-browser-bar span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #c5d3de;
}

.template-browser-body {
    display: block;
    padding: 10px;
    min-height: 120px;
    text-decoration: none;
    color: inherit;
}

.template-browser-body--link {
    cursor: pointer;
    transition: background-color 0.15s ease;
}

.template-browser-body--link:hover {
    background: #f8fbfd;
}

.template-browser-body--link:focus-visible {
    outline: 2px solid var(--xo-blue);
    outline-offset: -2px;
}

.mock-hero {
    border-radius: 4px;
    margin-bottom: 8px;
    overflow: hidden;
}

.mock-hero--compact {
    display: grid;
    grid-template-columns: 563fr 854fr;
    gap: 3px;
    height: 72px;
    align-items: stretch;
}

.mock-hero-left {
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-height: 0;
}

.mock-hero-product {
    flex: 0 0 38px;
    background: #efeeeb;
    border-radius: 2px;
}

.mock-hero-copy {
    flex: 1 1 auto;
    min-height: 0;
    background: #5a3d2b;
    border-radius: 2px;
}

.mock-hero-feature {
    background: #d8e2ea;
    border-radius: 2px;
}

.mock-hero--editorial { height: 48px; background: linear-gradient(135deg, #2b3a42 30%, #7a9eb5 100%); }
.mock-hero--curator { height: 44px; background: linear-gradient(120deg, #3d4a3e 25%, #8fa888 100%); }
.mock-hero--canvas { height: 52px; background: linear-gradient(160deg, #4a3d52 20%, #b8a0c4 90%); }
.mock-hero--woolf { height: 50px; background: linear-gradient(100deg, #081525 0%, #0d2137 50%, #1a3d6b 80%, #004fa3 100%); }
.mock-hero--luxury { height: 56px; background: linear-gradient(135deg, #1a252b 20%, #c9a962 80%); }

.mock-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 4px;
}

.mock-grid span {
    height: 32px;
    border-radius: 3px;
    background: #e4eef5;
}

.mock-showroom {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.mock-showroom--gallery .mock-gallery-nav {
    display: block;
    height: 10px;
    border-radius: 2px;
    background: #eef3f7;
}

.mock-showroom--gallery .mock-gallery-hero {
    display: block;
    height: 44px;
    border-radius: 3px;
    background: linear-gradient(90deg, #d8e2ea 0%, #e4eef5 55%, #c5d3de 100%);
}

.mock-showroom--gallery .mock-gallery-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 4px;
}

.mock-showroom--gallery .mock-gallery-row span {
    height: 34px;
    border-radius: 3px;
    background: #e4eef5;
}

.mock-showroom--spotlight .mock-spotlight-banner {
    display: block;
    height: 8px;
    border-radius: 2px;
    background: #2b2b2b;
}

.mock-showroom--spotlight .mock-spotlight-hero {
    position: relative;
    height: 52px;
    border-radius: 3px;
    background: #d8e2ea;
    overflow: hidden;
}

.mock-showroom--spotlight .mock-spotlight-copy {
    position: absolute;
    left: 50%;
    bottom: 8px;
    transform: translateX(-50%);
    width: 42%;
    height: 12px;
    border-radius: 2px;
    background: #5a3d2b;
}

.mock-showroom--spotlight .mock-spotlight-strip {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 4px;
}

.mock-showroom--spotlight .mock-spotlight-strip span {
    height: 28px;
    border-radius: 3px;
    background: #e4eef5;
}

.mock-collections {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4px;
}

.mock-collections span {
    height: 40px;
    border-radius: 3px;
    background: #dde8f0;
}

.mock-collections--triple span {
    height: 36px;
}

.mock-designer-canvas {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.mock-designer-canvas span {
    display: block;
    height: 14px;
    border-radius: 3px;
    background: #ebe6ef;
}

.mock-designer-canvas span:nth-child(1) { width: 100%; }
.mock-designer-canvas span:nth-child(2) { width: 85%; }
.mock-designer-canvas span:nth-child(3) { width: 60%; height: 22px; }

.mock-woolf-layout {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 4px;
}

.mock-woolf-layout span {
    display: block;
    height: 38px;
    border-radius: 3px;
}

.mock-woolf-prose {
    background: linear-gradient(180deg, #0f2540 0%, #0d2137 100%);
}

.mock-woolf-aside {
    background: linear-gradient(180deg, #1a3a5c 0%, #c5d3de 100%);
}

.mock-story span {
    display: block;
    height: 14px;
    margin-bottom: 4px;
    border-radius: 3px;
    background: #e8eef3;
}

.mock-story span:first-child { width: 70%; }
.mock-story span:last-child { width: 45%; }

.template-card h3,
.pricing-card h3 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    margin-bottom: 4px;
}

.template-tier {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--xo-grey);
}

.template-tagline,
.pricing-audience {
    font-size: 0.9rem;
    color: var(--xo-grey);
    margin-bottom: 14px;
}

.template-desc {
    font-size: 0.88rem;
    color: var(--xo-grey);
    line-height: 1.55;
    margin: -6px 0 14px;
}

.template-features,
.pricing-features {
    list-style: none;
    margin: 0 0 16px;
    padding: 0;
    flex: 1;
}

.template-features li,
.pricing-features li {
    position: relative;
    padding-left: 18px;
    margin-bottom: 8px;
    font-size: 0.88rem;
    color: var(--xo-grey);
}

.template-features li::before,
.pricing-features li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.55em;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--xo-blue);
}

.template-from {
    margin-bottom: 14px;
    font-size: 0.9rem;
    color: var(--xo-grey);
}

.template-from strong {
    color: var(--xo-charcoal);
    font-size: 1.05rem;
}

.template-from strong::after,
.pricing-amount .pricing-period::after,
.design-price::after {
    content: '*';
    font-weight: 600;
    margin-left: 1px;
}

/* ——— Pricing ——— */
.billing-toggle {
    display: inline-flex;
    padding: 4px;
    border-radius: 10px;
    background: var(--xo-blue-light);
    border: 1px solid var(--xo-border);
}

.billing-toggle-btn {
    padding: 8px 16px;
    border: none;
    border-radius: 7px;
    background: transparent;
    color: var(--xo-grey);
    font-family: var(--font-body);
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.15s ease, color 0.15s ease;
}

.billing-toggle-btn.is-active {
    background: #fff;
    color: var(--xo-blue-dark);
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
}

.pricing-amount {
    margin-bottom: 4px;
}

.pricing-price {
    font-family: var(--font-display);
    font-size: 2.4rem;
    font-weight: 600;
    color: var(--xo-charcoal);
}

.pricing-period {
    font-size: 1rem;
    color: var(--xo-grey);
}

.pricing-savings {
    margin: 0 0 6px;
    font-size: 0.88rem;
    font-weight: 600;
    color: #2e7d4a;
}

.pricing-note {
    margin-bottom: 18px;
    font-size: 0.82rem;
    color: var(--xo-grey);
}

/* ——— Homepage template editor spotlight ——— */
.editor-spotlight {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(26, 123, 189, 0.22);
    background: linear-gradient(135deg, #ffffff 0%, #f3f9fd 58%, #e8f4fb 100%);
    box-shadow: 0 14px 40px rgba(26, 123, 189, 0.14);
}

.editor-spotlight::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--xo-accent-gradient);
}

.editor-spotlight-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    gap: 36px;
    align-items: center;
}

.editor-spotlight-badge {
    display: inline-block;
    margin-bottom: 14px;
    padding: 5px 12px;
    border-radius: 999px;
    background: var(--xo-blue);
    color: #fff;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.editor-spotlight-lead {
    margin-top: 12px;
    margin-bottom: 20px;
    max-width: 540px;
}

.editor-spotlight-list {
    margin-bottom: 26px;
}

.editor-spotlight-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.editor-spotlight-actions .btn-ghost {
    background: #fff;
    color: var(--xo-blue-dark);
    border: 1px solid var(--xo-border);
}

.editor-spotlight-actions .btn-ghost:hover {
    background: var(--xo-blue-light);
    border-color: var(--xo-blue);
    color: var(--xo-blue-dark);
}

.editor-spotlight-demo {
    min-width: 0;
}

.editor-mock {
    display: grid;
    grid-template-columns: 118px minmax(0, 1fr);
    gap: 10px;
    padding: 12px;
    border: 1px solid var(--xo-border);
    border-radius: 12px;
    background: #f7fafc;
    box-shadow: 0 10px 28px rgba(26, 123, 189, 0.12);
}

.editor-mock-sidebar {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 10px 8px;
    border-radius: 8px;
    background: #fff;
    border: 1px solid var(--xo-border);
}

.editor-mock-sidebar-title {
    margin-bottom: 4px;
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--xo-grey);
}

.editor-mock-nav-item {
    padding: 6px 8px;
    border-radius: 6px;
    font-size: 0.68rem;
    font-weight: 600;
    color: var(--xo-grey);
    background: #f4f8fb;
}

.editor-mock-nav-item.is-active {
    color: #fff;
    background: var(--xo-blue);
}

.editor-mock-export {
    margin-top: auto;
    padding: 8px 6px;
    border-radius: 6px;
    text-align: center;
    font-size: 0.62rem;
    font-weight: 700;
    color: #fff;
    background: linear-gradient(135deg, #3a96d4 0%, #1a7bbd 100%);
}

.editor-mock-workspace {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 0;
}

.editor-mock-browser {
    border-color: #c5d9e8;
}

.editor-mock-preview-header {
    height: 18px;
    margin-bottom: 8px;
    border-radius: 4px;
    background: linear-gradient(90deg, #2b3a42 0%, #3d5160 100%);
}

.editor-mock-preview-hero {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 6px;
    margin-bottom: 8px;
}

.editor-mock-preview-copy {
    height: 54px;
    border-radius: 4px;
    background: linear-gradient(180deg, #e6eef4 0%, #d2e0ea 100%);
}

.editor-mock-preview-image {
    height: 54px;
    border-radius: 4px;
    background: linear-gradient(135deg, #b8cfe0 0%, #8eb3ca 100%);
}

.editor-mock-preview-tiles {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 4px;
}

.editor-mock-preview-tiles span {
    height: 22px;
    border-radius: 3px;
    background: linear-gradient(180deg, #6a8fa8 0%, #4f7289 100%);
}

.editor-mock-caption {
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    color: var(--xo-blue-dark);
    text-align: center;
}

/* ——— Campaigns ——— */
.split-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    align-items: center;
}

.check-list {
    list-style: none;
    margin: 0 0 24px;
    padding: 0;
}

.check-list li {
    position: relative;
    padding-left: 26px;
    margin-bottom: 10px;
    font-size: 0.95rem;
    color: var(--xo-grey);
}

.check-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--xo-blue);
    font-weight: 700;
}

.campaign-demo-site {
    position: relative;
    border: 1px solid var(--xo-border);
    border-radius: 12px;
    overflow: hidden;
    background: #f4f8fb;
    min-height: 260px;
}

.campaign-demo-header {
    height: 28px;
    background: #fff;
    border-bottom: 1px solid var(--xo-border);
}

.campaign-demo-hero {
    height: 100px;
    background: linear-gradient(135deg, #dce8f0, #b8cfe0);
}

.campaign-popup {
    position: absolute;
    top: 48px;
    right: 16px;
    width: 72px;
    height: 120px;
    border-radius: 6px;
    background: linear-gradient(180deg, var(--xo-blue) 0%, var(--xo-blue-dark) 100%);
    color: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    font-size: 0.65rem;
    font-weight: 600;
    box-shadow: 0 8px 20px rgba(26, 123, 189, 0.35);
}

.campaign-popup-size {
    opacity: 0.8;
    font-weight: 400;
}

.campaign-banner {
    position: absolute;
    bottom: 20px;
    left: 12px;
    right: 12px;
    height: 28px;
    border-radius: 4px;
    background: linear-gradient(90deg, #2b3a42, #1a7bbd);
    display: flex;
    align-items: center;
    padding-left: 10px;
    color: #fff;
    font-size: 0.65rem;
    font-weight: 600;
}

/* ——— Design services ——— */
.design-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 16px;
}

.design-card {
    position: relative;
    padding: 20px;
    border: 1px solid var(--xo-border);
    border-radius: 12px;
    background: var(--xo-blue-light);
    display: flex;
    flex-direction: column;
}

.design-card--featured {
    border-color: var(--xo-blue);
    background: #fff;
    box-shadow: 0 6px 20px var(--xo-shadow);
}

.design-card h3 {
    font-size: 1.05rem;
    margin-bottom: 6px;
    color: var(--xo-blue-dark);
}

.design-card p {
    font-size: 0.88rem;
    color: var(--xo-grey);
    margin-bottom: 12px;
    flex: 1;
}

.design-price {
    font-family: var(--font-display);
    font-size: 1.75rem;
    font-weight: 600;
    margin-bottom: 14px;
    color: var(--xo-charcoal);
}

.design-note {
    margin-top: 20px;
    margin-bottom: 0;
    font-size: 0.88rem;
    color: var(--xo-grey);
    text-align: center;
}

/* ——— Catalog ——— */
.catalog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.catalog-step {
    padding: 20px;
    border-radius: 12px;
    border: 1px solid var(--xo-border);
    background: var(--xo-blue-light);
}

.catalog-step h3 {
    font-size: 1.05rem;
    margin-bottom: 8px;
}

.catalog-step p {
    font-size: 0.92rem;
    color: var(--xo-grey);
}

/* ——— Cart drawer ——— */
.cart-drawer {
    position: fixed;
    top: 0;
    right: 0;
    z-index: 300;
    width: min(380px, 100vw);
    height: 100dvh;
    background: #fff;
    box-shadow: -8px 0 32px rgba(0, 0, 0, 0.12);
    transform: translateX(100%);
    transition: transform 0.25s ease;
    display: flex;
    flex-direction: column;
    padding: 24px 20px;
}

body.cart-open .cart-drawer {
    transform: translateX(0);
}

.cart-backdrop {
    position: fixed;
    inset: 0;
    z-index: 299;
    background: rgba(43, 43, 43, 0.45);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
}

body.cart-open .cart-backdrop {
    opacity: 1;
    pointer-events: auto;
}

.cart-drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.cart-drawer-header h2 {
    font-family: var(--font-display);
    font-size: 1.5rem;
}

.cart-close {
    width: 36px;
    height: 36px;
    border: none;
    border-radius: 8px;
    background: var(--xo-blue-light);
    font-size: 1.4rem;
    line-height: 1;
    cursor: pointer;
    color: var(--xo-charcoal);
}

.cart-empty {
    color: var(--xo-grey);
    font-size: 0.95rem;
}

.cart-items {
    list-style: none;
    margin: 0;
    padding: 0;
    flex: 1;
    overflow-y: auto;
}

.cart-item {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 0;
    border-bottom: 1px solid var(--xo-border);
}

.cart-item-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    font-size: 0.88rem;
}

.cart-item-info strong {
    font-size: 0.92rem;
}

.cart-item-note {
    font-size: 0.78rem;
    color: var(--xo-grey);
}

.cart-item-price {
    font-weight: 600;
    color: var(--xo-blue-dark);
}

.cart-item-actions {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}

.cart-qty-btn,
.cart-remove {
    width: 28px;
    height: 28px;
    border: 1px solid var(--xo-border);
    border-radius: 6px;
    background: #fff;
    font-size: 0.9rem;
    cursor: pointer;
    line-height: 1;
}

.cart-qty {
    min-width: 20px;
    text-align: center;
    font-size: 0.88rem;
    font-weight: 600;
}

.cart-remove {
    color: var(--xo-grey);
    font-size: 1.1rem;
}

.cart-footer {
    padding-top: 16px;
    border-top: 1px solid var(--xo-border);
}

.cart-subtotal-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-size: 1rem;
}

.cart-stripe-note {
    margin-bottom: 14px;
    font-size: 0.78rem;
    color: var(--xo-grey);
    text-align: center;
}

.cart-stripe-note.is-error {
    color: #c0392b;
}

/* ——— Thank you page ——— */
.thank-you-page {
    padding-bottom: 48px;
}

.thank-you-state {
    max-width: 640px;
    margin: 0 auto;
}

.thank-you-hero {
    text-align: center;
    padding: 40px 20px 28px;
}

.thank-you-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    margin-bottom: 16px;
    border-radius: 50%;
    background: var(--xo-blue);
    color: #fff;
    font-size: 1.5rem;
    font-weight: 700;
}

.thank-you-hero h1 {
    font-family: var(--font-display);
    font-size: clamp(1.75rem, 4vw, 2.25rem);
    margin-bottom: 10px;
}

.thank-you-sub {
    color: var(--xo-grey);
    font-size: 1rem;
}

.thank-you-card {
    margin-bottom: 20px;
}

.thank-you-card--error {
    text-align: center;
}

.thank-you-card h2 {
    font-family: var(--font-display);
    font-size: 1.35rem;
    margin-bottom: 12px;
}

.thank-you-order-id {
    font-size: 0.88rem;
    color: var(--xo-grey);
    margin-bottom: 16px;
}

.thank-you-items {
    list-style: none;
    margin: 0 0 16px;
    padding: 0;
    border-top: 1px solid var(--xo-border);
}

.thank-you-items li {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid var(--xo-border);
    font-size: 0.92rem;
}

.thank-you-total {
    text-align: right;
    font-size: 1.05rem;
}

.thank-you-steps {
    margin: 0;
    padding-left: 20px;
    color: var(--xo-grey);
    font-size: 0.92rem;
    line-height: 1.75;
}

.thank-you-steps a {
    color: var(--xo-blue);
    font-weight: 600;
}

.thank-you-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    margin-top: 8px;
}

.thank-you-test-note {
    margin-top: 24px;
    text-align: center;
    font-size: 0.82rem;
    color: var(--xo-grey);
}

/* ——— Creative brief ——— */
.brief-form {
    margin-top: 20px;
}

.brief-field {
    margin-bottom: 16px;
}

.brief-field label {
    display: block;
    margin-bottom: 6px;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--xo-charcoal);
}

.brief-field input,
.brief-field textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--xo-border);
    border-radius: 8px;
    font-family: var(--font-body);
    font-size: 0.95rem;
}

.brief-field input:focus,
.brief-field textarea:focus {
    outline: none;
    border-color: var(--xo-blue);
}

.brief-form-msg {
    margin-top: 12px;
    font-size: 0.9rem;
    text-align: center;
}

.brief-form-msg.is-success {
    color: var(--xo-blue-dark);
}

.contact-field select {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    font-family: var(--font-body);
    font-size: 0.95rem;
}

.contact-field select option {
    color: var(--xo-charcoal);
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.feature-card {
    padding: 22px;
    border: 1px solid var(--xo-border);
    border-radius: 12px;
    background: var(--xo-blue-light);
}

.feature-card h3 {
    font-size: 1.05rem;
    margin-bottom: 8px;
    color: var(--xo-blue-dark);
}

.feature-card p {
    font-size: 0.92rem;
    color: var(--xo-grey);
}

.steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.step {
    padding: 20px;
    border-radius: 12px;
    border: 1px solid var(--xo-border);
}

.step-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    margin-bottom: 12px;
    border-radius: 50%;
    background: var(--xo-blue);
    color: #fff;
    font-size: 0.85rem;
    font-weight: 700;
}

/* ——— Homepage CTA closer ——— */
.home-cta-closer {
    background: var(--hero-bg);
    padding: 64px 40px;
    margin-top: 0;
}

.home-cta-closer-inner {
    max-width: 1200px;
    margin: 0 auto;
}

.home-cta-closer-header {
    margin-bottom: 40px;
}

.home-cta-closer-eyebrow {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--hero-gold);
}

.home-cta-closer-eyebrow-line {
    flex-shrink: 0;
    width: 24px;
    height: 1px;
    background: var(--hero-gold);
}

.home-cta-closer-header h2 {
    margin-bottom: 12px;
    font-family: var(--font-body);
    font-size: 30px;
    font-weight: 500;
    letter-spacing: -0.5px;
    line-height: 1.25;
    color: #ffffff;
}

.home-cta-closer-lead {
    max-width: 440px;
    font-size: 13px;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.4);
}

.home-cta-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.home-cta-card {
    position: relative;
    display: flex;
    flex-direction: column;
    padding: 28px 24px;
    border-radius: 12px;
    background: #111111;
    border: 0.5px solid rgba(255, 255, 255, 0.08);
    text-decoration: none;
    color: inherit;
    overflow: hidden;
    transition: border-color 0.3s ease;
}

.home-cta-card:hover,
.home-cta-card:focus-visible {
    border-color: rgba(201, 169, 110, 0.35);
    outline: none;
}

.home-cta-card:focus-visible {
    box-shadow: 0 0 0 2px rgba(201, 169, 110, 0.5);
}

.home-cta-card-accent {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--hero-gold);
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform 0.4s ease;
}

.home-cta-card--featured .home-cta-card-accent {
    background: rgba(0, 0, 0, 0.2);
}

.home-cta-card:hover .home-cta-card-accent,
.home-cta-card:focus-visible .home-cta-card-accent {
    transform: scaleX(1);
}

.home-cta-card--featured {
    background: var(--hero-gold);
    border-color: var(--hero-gold);
}

.home-cta-card--featured:hover,
.home-cta-card--featured:focus-visible {
    border-color: #b8944e;
}

.home-cta-card-badge {
    position: absolute;
    top: 16px;
    right: 16px;
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.15);
    font-size: 9px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #0a0a0a;
}

.home-cta-card-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    margin-bottom: 20px;
    border: 0.5px solid rgba(201, 169, 110, 0.3);
    border-radius: 8px;
    color: var(--hero-gold);
}

.home-cta-card-icon svg {
    width: 20px;
    height: 20px;
}

.home-cta-card--featured .home-cta-card-icon {
    border-color: rgba(0, 0, 0, 0.2);
    background: rgba(0, 0, 0, 0.1);
    color: #0a0a0a;
}

.home-cta-card-title {
    margin-bottom: 10px;
    font-size: 16px;
    font-weight: 500;
    color: #ffffff;
}

.home-cta-card--featured .home-cta-card-title {
    color: #0a0a0a;
}

.home-cta-card-desc {
    flex: 1;
    margin-bottom: 20px;
    font-size: 13px;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.4);
}

.home-cta-card--featured .home-cta-card-desc {
    color: rgba(0, 0, 0, 0.6);
}

.home-cta-card-action {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--hero-gold);
}

.home-cta-card--featured .home-cta-card-action {
    color: #0a0a0a;
}

.home-cta-card-arrow {
    display: inline-block;
    transition: transform 0.2s ease;
}

.home-cta-card:hover .home-cta-card-arrow,
.home-cta-card:focus-visible .home-cta-card-arrow {
    transform: translateX(4px);
}

@media (prefers-reduced-motion: reduce) {
    .home-cta-card,
    .home-cta-card-accent,
    .home-cta-card-arrow {
        transition: none;
    }
}

@media (max-width: 768px) {
    .home-cta-closer {
        padding: 48px 20px;
    }

    .home-cta-closer-header h2 {
        font-size: 26px;
    }

    .home-cta-grid {
        grid-template-columns: 1fr;
    }
}

/* ——— Quote request page ——— */
.quote-page {
    background: var(--hero-bg);
    min-height: calc(100vh - 72px);
    padding: 48px 20px 64px;
}

.quote-page-inner {
    max-width: 560px;
    margin: 0 auto;
}

.quote-page-header {
    margin-bottom: 32px;
}

.quote-page-eyebrow {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--hero-gold);
}

.quote-page-eyebrow-line {
    flex-shrink: 0;
    width: 24px;
    height: 1px;
    background: var(--hero-gold);
}

.quote-page-header h1 {
    margin-bottom: 12px;
    font-family: var(--font-body);
    font-size: 30px;
    font-weight: 500;
    letter-spacing: -0.5px;
    color: #ffffff;
}

.quote-page-lead {
    font-size: 13px;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.4);
}

.site-nav-back-link {
    margin-left: auto;
    font-size: 13px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.55);
    text-decoration: none;
    transition: color 0.2s ease;
}

.site-nav-back-link:hover {
    color: var(--hero-gold);
}

.contact-form--quote {
    max-width: none;
    margin: 0;
    text-align: left;
}

.contact-form--quote .contact-field label {
    display: block;
    margin-bottom: 6px;
    font-size: 12px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.55);
}

.contact-form--quote .contact-field input,
.contact-form--quote .contact-field select,
.contact-form--quote .contact-field textarea {
    background: #111111;
    border: 0.5px solid rgba(255, 255, 255, 0.12);
    color: #ffffff;
}

.contact-form--quote .contact-field input::placeholder,
.contact-form--quote .contact-field textarea::placeholder {
    color: rgba(255, 255, 255, 0.3);
}

.contact-form--quote .contact-field input:focus,
.contact-form--quote .contact-field select:focus,
.contact-form--quote .contact-field textarea:focus {
    border-color: rgba(201, 169, 110, 0.45);
    outline: none;
    box-shadow: 0 0 0 2px rgba(201, 169, 110, 0.15);
}

.contact-form--quote .contact-submit {
    width: 100%;
    margin-top: 8px;
}

.contact-form--quote .contact-form-msg.is-success {
    color: var(--hero-gold);
}

.contact-form--quote .contact-form-msg.is-error {
    color: #f0a0a0;
}

.cta-band {
    text-align: center;
    background: var(--xo-accent-gradient);
    color: #fff;
    padding: 48px 30px;
    border-radius: 12px;
    margin-bottom: 28px;
}

.cta-band h2 {
    font-family: var(--font-display);
    font-size: 2rem;
    margin-bottom: 12px;
    color: #fff;
}

.cta-band p {
    margin-bottom: 24px;
    opacity: 0.95;
}

.cta-band .btn-secondary {
    border-color: rgba(255, 255, 255, 0.35);
}

.contact-form {
    max-width: 520px;
    margin: 0 auto;
    text-align: left;
}

.contact-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.contact-field {
    margin-bottom: 12px;
}

.contact-field input,
.contact-field textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    font-family: var(--font-body);
    font-size: 0.95rem;
    transition: border-color 0.15s ease, background-color 0.15s ease;
}

.contact-field input::placeholder,
.contact-field textarea::placeholder {
    color: rgba(255, 255, 255, 0.65);
}

.contact-field input:focus,
.contact-field textarea:focus {
    outline: none;
    border-color: #fff;
    background: rgba(255, 255, 255, 0.18);
}

.contact-field textarea {
    resize: vertical;
    min-height: 88px;
}

.contact-submit {
    width: 100%;
    margin-top: 4px;
}

.contact-form-msg {
    margin-top: 12px;
    font-size: 0.9rem;
    text-align: center;
}

.contact-form-msg.is-success {
    color: #b8f0d4;
}

.contact-form-msg.is-error {
    color: #ffd0d0;
}

.contact-alt {
    margin-top: 20px;
    margin-bottom: 0;
    font-size: 0.9rem;
    opacity: 0.9;
}

.contact-alt a {
    color: #fff;
    font-weight: 600;
}

@media (max-width: 900px) {
    .feature-grid,
    .steps,
    .template-grid,
    .pricing-grid,
    .catalog-grid {
        grid-template-columns: 1fr 1fr;
    }

    .split-section,
    .editor-spotlight-grid {
        grid-template-columns: 1fr;
    }

    .editor-spotlight-demo {
        order: -1;
    }
}

@media (max-width: 768px) {
    .site-announcement {
        padding: 10px 16px;
        font-size: 11px;
        letter-spacing: 0.025em;
    }

    .site-announcement-inner {
        gap: 0;
    }

    .site-easter-egg--duck-tie {
        width: 16px;
    }

    .site-announcement-copy {
        gap: 0.35rem 0.85rem;
    }

    .site-announcement a {
        white-space: normal;
    }

    .site-nav-toggle {
        display: flex;
        z-index: 210;
    }

    .site-nav-panel {
        position: fixed;
        top: 0;
        right: 0;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        width: min(320px, 88vw);
        height: 100dvh;
        padding: 72px 24px 32px;
        background: #fff;
        box-shadow: -8px 0 32px rgba(26, 123, 189, 0.15);
        transform: translateX(100%);
        transition: transform 0.25s ease;
        z-index: 205;
        overflow-y: auto;
    }

    .site-nav.is-open .site-nav-panel {
        transform: translateX(0);
    }

    .site-nav-backdrop {
        display: block;
        position: fixed;
        inset: 0;
        background: rgba(43, 43, 43, 0.45);
        z-index: 204;
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.25s ease;
    }

    .site-nav.is-open .site-nav-backdrop {
        opacity: 1;
        pointer-events: auto;
    }

    .site-nav-links {
        flex-direction: column;
        align-items: stretch;
        gap: 0;
    }

    .site-nav-links a {
        display: block;
        padding: 14px 0;
        font-size: 1rem;
        border-bottom: 1px solid var(--xo-border);
    }

    .site-nav-cta {
        justify-content: center;
        margin-top: 20px;
        padding: 14px 18px;
        font-size: 1rem;
    }

    .site-nav-actions {
        flex-direction: column;
        width: 100%;
        margin-top: 16px;
    }

    .site-nav-cart {
        width: 100%;
        height: 44px;
    }

    .site-nav-logout {
        width: 100%;
        padding: 12px 18px;
    }

    .section {
        padding: 28px 20px;
    }

    .section-header-row {
        flex-direction: column;
        align-items: stretch;
    }

    .contact-form-row {
        grid-template-columns: 1fr;
    }

    .hero-inner {
        margin-left: 20px;
        padding: 64px 20px 48px 0;
    }

    .hero--split {
        padding: 0;
    }

    .hero--split .hero-inner {
        padding: clamp(40px, 10vw, 56px) clamp(20px, 5vw, 28px) clamp(40px, 10vw, 56px);
    }

    .hero--split .hero-inner h1 {
        font-size: clamp(28px, 7.5vw, 40px);
        max-width: 18ch;
        margin-bottom: 16px;
    }

    .hero--split .hero-lead {
        max-width: none;
        font-size: clamp(15px, 3.8vw, 17px);
        margin-bottom: 22px;
    }

    .hero--split .hero-eyebrow {
        margin-bottom: 14px;
        font-size: 10px;
    }

    .hero--split .hero-actions {
        margin-bottom: 22px;
        gap: 10px;
    }

    .hero--split .btn-hero-primary,
    .hero--split .btn-hero-ghost {
        padding: 12px 20px;
        font-size: 13px;
    }

    .hero-stats {
        gap: 24px;
    }

    .hero-stat-value {
        font-size: 22px;
    }

    .hero-grid {
        grid-template-columns: 1fr;
        min-height: auto;
    }

    .hero-grid-cell--large {
        min-height: clamp(420px, 105vw, 540px);
    }

    .hero-grid-cell--large::after {
        background: linear-gradient(
            to top,
            rgba(8, 8, 8, 0.92) 0%,
            rgba(8, 8, 8, 0.5) 45%,
            rgba(8, 8, 8, 0.15) 100%
        );
    }

    .hero-grid-stack {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: none;
        min-height: clamp(140px, 32vw, 200px);
    }

    .site-nav--dark .site-nav-panel {
        background: var(--hero-bg);
        box-shadow: -8px 0 32px rgba(0, 0, 0, 0.45);
    }

    .site-nav--dark .site-nav-links a {
        font-size: 13px;
        color: rgba(255, 255, 255, 0.65);
        border-bottom-color: rgba(255, 255, 255, 0.1);
    }

    .site-nav--dark .site-nav-links a:hover {
        color: var(--hero-gold);
    }
}

@media (max-width: 640px) {
    .container {
        padding: 16px;
    }

    .feature-grid,
    .steps,
    .template-grid,
    .pricing-grid,
    .catalog-grid {
        grid-template-columns: 1fr;
    }

    .hero-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .hero--split .hero-actions {
        flex-direction: row;
        align-items: center;
    }

    .hero-actions .btn {
        width: 100%;
    }

    .hero--split .hero-actions .btn {
        width: auto;
        flex: 1 1 auto;
        min-width: 0;
    }

    .hero--split .hero-inner {
        padding-top: clamp(32px, 10vw, 44px);
        padding-bottom: clamp(32px, 10vw, 44px);
    }

    .hero-grid-cell--large {
        min-height: clamp(440px, 120vw, 560px);
    }

    .editor-spotlight-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .editor-mock {
        grid-template-columns: 1fr;
    }

    .editor-mock-sidebar {
        flex-direction: row;
        flex-wrap: wrap;
        align-items: center;
    }

    .editor-mock-sidebar-title {
        width: 100%;
    }

    .editor-mock-export {
        margin-top: 0;
        margin-left: auto;
    }

    .cta-band {
        padding: 36px 20px;
    }

    .cta-band h2 {
        font-size: 1.65rem;
    }
}


/* ——— Homepage legacy sections (unified with new brand) ——— */
body.home-page {
    background: var(--surface-light);
    color: var(--text-primary);
}

body.home-page .container {
    padding: 64px 40px 48px;
}

body.home-page .section {
    background: var(--surface-card);
    border: 0.5px solid var(--border-warm);
    border-radius: 12px;
    padding: 36px 32px;
    margin-bottom: 20px;
    box-shadow: none;
}

body.home-page .section h2,
body.home-page .design-services h2 {
    font-family: var(--font-body);
    font-size: 30px;
    font-weight: 500;
    letter-spacing: -0.5px;
    line-height: 1.25;
    color: var(--text-primary);
}

body.home-page .section-lead,
body.home-page .design-note,
body.home-page .showroom-design-note {
    color: var(--text-muted);
    font-size: 14px;
    line-height: 1.8;
}

body.home-page .btn-primary {
    background: var(--hero-gold);
    color: #0a0a0a;
    font-weight: 600;
}

body.home-page .btn-primary:hover {
    background: #d4b87e;
}

body.home-page .btn-secondary {
    background: var(--surface-card);
    color: var(--text-primary);
    border: 0.5px solid var(--border-warm);
}

body.home-page .btn-secondary:hover {
    background: #f4f1ea;
    border-color: var(--hero-gold);
    color: var(--text-primary);
}

body.home-page .check-list li {
    color: #555555;
    font-size: 14px;
}

body.home-page .check-list li::before {
    content: '';
    position: absolute;
    left: 0;
    width: 6px;
    height: 6px;
    top: 0.55em;
    border-radius: 50%;
    background: var(--hero-gold-dark);
    box-shadow: 0 0 0 3px rgba(184, 148, 78, 0.18);
    font-weight: 400;
}

body.home-page .editor-spotlight {
    border: 0.5px solid var(--border-warm);
    background: var(--surface-card);
    box-shadow: none;
}

body.home-page .editor-spotlight::before {
    height: 3px;
    background: var(--hero-gold);
}

body.home-page .editor-spotlight-badge {
    background: rgba(201, 169, 110, 0.15);
    color: var(--hero-gold-dark);
    font-size: 10px;
    letter-spacing: 0.12em;
}

body.home-page .editor-spotlight-actions .btn-ghost {
    color: var(--text-muted);
    border-color: var(--border-warm);
    background: transparent;
}

body.home-page .editor-spotlight-actions .btn-ghost:hover {
    background: #f4f1ea;
    border-color: var(--hero-gold);
    color: var(--text-primary);
}

body.home-page .showroom-editor-quicklinks {
    border-color: var(--border-warm);
    background: #f4f1ea;
}

body.home-page .showroom-editor-quicklink:hover {
    background: var(--hero-gold);
    color: #0a0a0a;
    box-shadow: none;
}

body.home-page .showroom-editor-quicklink:focus-visible {
    outline-color: var(--hero-gold);
}

body.home-page .showroom-design-tab:hover {
    border-color: var(--hero-gold);
    color: var(--hero-gold-dark);
}

body.home-page .showroom-design-tab.is-active {
    background: var(--hero-gold);
    border-color: var(--hero-gold);
    color: #0a0a0a;
}

body.home-page .showroom-design-tab:focus-visible {
    outline-color: var(--hero-gold);
}

body.home-page .showroom-design-views,
body.home-page .designer-design-views {
    background: #f4f1ea;
}

body.home-page .template-card,
body.home-page .pricing-card {
    border: 0.5px solid var(--border-warm);
    background: var(--surface-card);
    transition: border-color 0.25s ease, transform 0.25s ease;
}

body.home-page .template-card:hover,
body.home-page .pricing-card:hover {
    border-color: var(--hero-gold);
    transform: translateY(-2px);
}

body.home-page .template-card--featured,
body.home-page .pricing-card--featured {
    border: 1.5px solid var(--hero-gold);
    box-shadow: 0 8px 30px rgba(201, 169, 110, 0.12);
}

body.home-page .template-badge {
    position: static;
    transform: none;
    left: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    margin: 0 0 14px;
    padding: 0;
    border-radius: 0;
    background: none;
    color: var(--hero-gold-dark);
    font-family: var(--font-body);
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    text-align: center;
}

body.home-page .template-badge::before,
body.home-page .template-badge::after {
    content: "—";
    letter-spacing: 0;
    font-weight: 400;
    line-height: 1;
}

body.home-page .template-badge--pick {
    position: absolute;
    top: clamp(10px, 1.2vw, 14px);
    right: clamp(14px, 1.8vw, 20px);
    z-index: 2;
    display: inline-flex;
    width: auto;
    margin: 0;
    padding: 6px 14px;
    border: none;
    border-radius: 999px;
    background: var(--hero-gold);
    color: #1a1a1a;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-align: right;
    box-shadow: 0 4px 14px rgba(201, 169, 110, 0.45);
    overflow: hidden;
    isolation: isolate;
}

body.home-page .template-badge--pick::before {
    content: '';
    position: absolute;
    top: 0;
    left: -120%;
    width: 80%;
    height: 100%;
    background: linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.5), transparent);
    transform: none;
    transition: left 0.55s ease;
    pointer-events: none;
}

body.home-page .home-page-templates .template-card--featured:hover .template-badge--pick::before {
    left: 130%;
}

body.home-page .template-badge--pick::after {
    content: none;
}

body.home-page .template-card--showroom {
    padding-top: 22px;
}

body.home-page .template-preview {
    background: #f4f1ea;
}

body.home-page .feature-card h3,
body.home-page .catalog-step h3,
body.home-page .step h3 {
    font-family: var(--font-body);
    font-size: 17px;
    font-weight: 500;
    color: var(--text-primary);
}

body.home-page .template-card h3 {
    font-family: var(--font-body);
    font-size: 22px;
    font-weight: 600;
    color: #1a1a1a;
}

body.home-page #templates .template-tagline {
    color: #999999;
    font-size: 13px;
}

body.home-page #templates .template-desc {
    color: #666666;
    font-size: 13.5px;
    line-height: 1.7;
}

body.home-page #templates .template-tier-note {
    color: #888888;
    font-size: 12.5px;
    line-height: 1.6;
    font-style: italic;
}

body.home-page .template-desc,
body.home-page .template-tagline,
body.home-page .feature-card p,
body.home-page .catalog-step p,
body.home-page .step p {
    color: #777777;
    font-size: 13px;
    line-height: 1.7;
}

body.home-page .feature-card,
body.home-page .catalog-step {
    border: 0.5px solid var(--border-warm);
    background: var(--surface-card);
}

body.home-page .feature-card h3 {
    color: var(--text-primary);
}

body.home-page .step {
    border: 0.5px solid var(--border-warm);
    background: var(--surface-card);
}

body.home-page .step-num {
    background: var(--hero-gold);
    color: #0a0a0a;
    font-weight: 600;
}

body.home-page .design-card {
    border: 0.5px solid var(--border-warm);
    background: var(--surface-card);
}

body.home-page .design-card--featured {
    border-color: var(--hero-gold);
    background: var(--surface-card);
    box-shadow: 0 8px 28px rgba(201, 169, 110, 0.12);
}

body.home-page .design-card h3 {
    font-family: var(--font-body);
    font-size: 17px;
    font-weight: 500;
    color: var(--text-primary);
}

body.home-page .design-card p {
    color: #777777;
    font-size: 13px;
    line-height: 1.7;
}

body.home-page .design-price {
    font-family: var(--font-body);
    font-size: 1.5rem;
    font-weight: 500;
    color: var(--hero-gold-dark);
}

body.home-page .pricing-features li::before,
body.home-page .template-features li::before {
    background: var(--hero-gold-dark);
}

body.home-page .home-page-templates {
    padding: clamp(72px, 10vw, 112px) clamp(20px, 4vw, 40px);
    background: var(--surface-light);
}

body.home-page .home-templates-section {
    max-width: 1320px;
    margin: 0 auto;
}

body.home-page .home-templates-header {
    max-width: min(640px, 72vw);
    margin: 0 auto clamp(40px, 5vw, 56px);
    text-align: center;
}

body.home-page .home-templates-eyebrow {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 18px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--hero-gold);
}

body.home-page .home-templates-eyebrow-line {
    flex-shrink: 0;
    width: 28px;
    height: 1px;
    background: var(--hero-gold);
}

body.home-page .home-templates-header h2 {
    margin-bottom: 16px;
    font-family: var(--font-body);
    font-size: clamp(32px, 4vw, 44px);
    font-weight: 500;
    letter-spacing: -0.8px;
    line-height: 1.12;
    color: #1a1a1a;
}

body.home-page .home-templates-lead {
    max-width: 540px;
    margin: 0 auto;
    font-size: clamp(15px, 1.5vw, 17px);
    line-height: 1.65;
    color: #777777;
}

/* Templates section — hero imagery + sign-in gate */
#templatesContent[hidden],
#templatesWelcomeBar[hidden],
#templatesAccessGate[hidden] {
    display: none !important;
}

.home-templates-gate {
    margin-bottom: clamp(40px, 5vw, 56px);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.1);
}

.home-templates-gate-inner {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(300px, 0.95fr);
    min-height: clamp(360px, 48vw, 520px);
}

.home-templates-hero {
    position: relative;
    min-height: clamp(360px, 48vw, 520px);
    overflow: hidden;
    background: #0f2433;
    margin-bottom: 0;
    border-radius: 0;
    box-shadow: none;
}

.home-templates-hero-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 30%;
    display: block;
    opacity: 0;
    transition: opacity 0.8s ease;
}

.home-templates-hero-image.is-active {
    opacity: 1;
}

.home-templates-hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(
        180deg,
        rgba(8, 18, 28, 0.35) 0%,
        rgba(8, 18, 28, 0.2) 38%,
        rgba(8, 18, 28, 0.55) 68%,
        rgba(8, 18, 28, 0.92) 100%
    );
}

.home-templates-hero-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: clamp(24px, 4vw, 40px);
    min-height: inherit;
    height: 100%;
    padding: clamp(32px, 5vw, 56px);
    box-sizing: border-box;
}

.home-templates-hero-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1 1 auto;
    min-height: 0;
    padding: clamp(12px, 2vw, 24px) 0;
}

.home-templates-hero-logo img {
    display: block;
    width: min(300px, 72%);
    max-height: min(28vh, 120px);
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 12px 40px rgba(0, 0, 0, 0.45));
}

.home-templates-hero-brand {
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.home-templates-hero-quote {
    position: relative;
    margin: 0;
    max-width: 36ch;
    padding: 18px 20px 16px;
    border-radius: 12px;
    background: linear-gradient(
        135deg,
        rgba(8, 18, 28, 0.88) 0%,
        rgba(8, 18, 28, 0.72) 100%
    );
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    box-shadow: 0 10px 36px rgba(0, 0, 0, 0.28);
}

.home-templates-hero-quote p {
    font-family: var(--font-display);
    font-size: clamp(1.05rem, 2vw, 1.35rem);
    font-style: italic;
    font-weight: 500;
    line-height: 1.45;
    color: #fff;
    margin: 0;
}

.home-templates-hero-quote cite {
    display: block;
    margin-top: 10px;
    font-family: var(--font-body);
    font-size: 0.75rem;
    font-style: normal;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.78);
}

.home-templates-hero-tagline {
    font-family: var(--font-display);
    font-size: clamp(1.05rem, 2vw, 1.35rem);
    font-style: italic;
    color: rgba(255, 255, 255, 0.92);
    max-width: 22ch;
    margin: 0;
}

.home-templates-login-panel {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: clamp(28px, 5vw, 56px);
    background: #fff;
}

.home-templates-login-panel h3 {
    font-family: var(--font-display);
    font-size: 1.75rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--xo-charcoal, #1a1a1a);
}

.home-templates-login-lead {
    margin: 0 0 24px;
    font-size: 0.95rem;
    line-height: 1.65;
    color: #666;
}

.home-templates-login-resume {
    margin: 0 0 16px;
    padding: 12px 14px;
    border-radius: 8px;
    background: #fff8e6;
    border: 1px solid #f0dfa8;
    color: #6b4f00;
    font-size: 0.875rem;
    line-height: 1.45;
}

.home-templates-login-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.home-templates-login-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.home-templates-login-field label {
    font-size: 0.8125rem;
    font-weight: 600;
    color: #444;
}

.home-templates-login-field input {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font: inherit;
    font-size: 0.9375rem;
    color: #1a1a1a;
    background: #fff;
    box-sizing: border-box;
}

.home-templates-login-field input:focus {
    outline: 2px solid var(--hero-gold, #c9a96e);
    outline-offset: 1px;
    border-color: var(--hero-gold, #c9a96e);
}

.home-templates-password-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.home-templates-password-wrap input {
    padding-right: 44px;
}

.home-templates-password-toggle {
    position: absolute;
    right: 4px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    padding: 0;
    border: none;
    border-radius: 6px;
    background: transparent;
    color: #777;
    cursor: pointer;
    transition: color 0.15s ease, background-color 0.15s ease;
}

.home-templates-password-toggle:hover {
    color: #1a1a1a;
    background: rgba(0, 0, 0, 0.04);
}

.home-templates-password-toggle:focus-visible {
    outline: 2px solid var(--hero-gold, #c9a96e);
    outline-offset: 1px;
}

.home-templates-password-icon {
    width: 18px;
    height: 18px;
}

.home-templates-password-icon--hide {
    display: none;
}

.home-templates-password-toggle[aria-pressed="true"] .home-templates-password-icon--show {
    display: none;
}

.home-templates-password-toggle[aria-pressed="true"] .home-templates-password-icon--hide {
    display: block;
}

.home-templates-login-submit {
    margin-top: 4px;
    width: 100%;
}

.home-templates-login-msg {
    margin: 0;
    font-size: 0.875rem;
    line-height: 1.5;
}

.home-templates-login-msg.is-error {
    color: #b42318;
}

.home-templates-login-msg.is-success {
    color: #067647;
}

.home-templates-gate--unlocked .home-templates-login-panel {
    display: none;
}

.home-templates-welcome {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: clamp(24px, 3vw, 32px);
    padding: 16px 24px;
    border: none;
    border-radius: 12px;
    background: linear-gradient(110deg, #c9a96e 0%, #e2c27d 45%, #b8944e 100%);
    background-size: 200% 100%;
    box-shadow: 0 2px 12px rgba(180, 140, 60, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.25);
    animation: welcome-shimmer 6s ease-in-out infinite;
    position: relative;
    overflow: hidden;
}

.home-templates-welcome::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(105deg, transparent 30%, rgba(255, 255, 255, 0.18) 50%, transparent 70%);
    transform: translateX(-100%);
    animation: welcome-sheen 6s ease-in-out infinite;
    pointer-events: none;
}

@keyframes welcome-shimmer {
    0%, 100% { background-position: 0% 50%; }
    50%       { background-position: 100% 50%; }
}

@keyframes welcome-sheen {
    0%        { transform: translateX(-100%); }
    40%, 100% { transform: translateX(200%); }
}

.home-templates-welcome-text {
    margin: 0;
    font-size: 0.9375rem;
    font-weight: 600;
    color: #1a1a1a;
    letter-spacing: 0.01em;
}

.home-templates-welcome-text strong {
    color: #0d0d0d;
    font-weight: 700;
}

.home-templates-logout {
    padding: 8px 18px;
    border: 1.5px solid rgba(0, 0, 0, 0.3);
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.08);
    font: inherit;
    font-size: 0.8125rem;
    font-weight: 700;
    color: #1a1a1a;
    cursor: pointer;
    white-space: nowrap;
    flex-shrink: 0;
    transition: background 0.18s ease, border-color 0.18s ease, transform 0.12s ease;
}

.home-templates-logout:hover {
    background: rgba(0, 0, 0, 0.16);
    border-color: rgba(0, 0, 0, 0.5);
    transform: translateY(-1px);
}

.home-templates-logout:active {
    transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
    .home-templates-welcome {
        animation: none;
        background-position: 0% 50%;
    }
    .home-templates-welcome::before {
        animation: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .home-templates-hero-image {
        transition: none;
    }
}

@media (max-width: 860px) {
    .home-templates-gate-inner {
        grid-template-columns: 1fr;
        grid-template-rows: auto auto;
        min-height: 0;
    }

    .home-templates-hero {
        min-height: clamp(360px, 72vw, 440px);
    }

    .home-templates-gate--unlocked .home-templates-hero {
        min-height: clamp(300px, 58vw, 360px);
    }

    .home-templates-hero-content {
        padding: clamp(24px, 5vw, 32px);
        gap: 20px;
    }

    .home-templates-login-panel {
        padding: clamp(24px, 5vw, 32px);
    }

    .home-templates-hero-logo img {
        width: min(240px, 84%);
        max-height: 96px;
    }

    .home-templates-hero-overlay {
        background: linear-gradient(
            180deg,
            rgba(8, 18, 28, 0.4) 0%,
            rgba(8, 18, 28, 0.25) 42%,
            rgba(8, 18, 28, 0.88) 100%
        );
    }

    .home-templates-hero-quote {
        max-width: none;
        padding: 14px 16px 12px;
    }

    .home-templates-hero-quote p {
        font-size: clamp(0.9rem, 3.2vw, 1.05rem);
    }

    .home-templates-welcome {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
        gap: 12px;
    }

    .home-templates-logout {
        align-self: center;
    }
}

body.home-page .home-templates-grid {
    grid-template-columns: 1fr 1.08fr 1fr;
    gap: clamp(20px, 2.5vw, 28px);
    align-items: stretch;
}

/* ── Showroom spotlight — full-width feature card above the gate ── */

body.home-page .home-templates-showroom-spotlight {
    display: grid;
    grid-template-columns: 1.15fr 1fr;
    gap: clamp(32px, 4vw, 56px);
    align-items: center;
    background: #fdf9f4;
    border: 1px solid #e8e5df;
    border-left: 3px solid var(--hero-gold);
    border-radius: 16px;
    padding: clamp(28px, 3.5vw, 44px);
    margin-bottom: clamp(36px, 4.5vw, 52px);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.04);
}

body.home-page .home-templates-showroom-preview {
    position: relative;
}

body.home-page .home-templates-showroom-preview .template-preview-frame {
    position: relative;
}

body.home-page .home-templates-showroom-preview .showroom-design-views {
    border-radius: 12px;
    overflow: hidden;
}

body.home-page .home-templates-showroom-preview .template-browser {
    border: 1px solid #e8e5df;
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

body.home-page .home-templates-showroom-preview .template-browser-bar {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: clamp(10px, 1.2vw, 12px) clamp(12px, 1.4vw, 14px);
    background: #f0ebe3;
    border-bottom: 1px solid #e8e5df;
}

body.home-page .home-templates-showroom-preview .template-browser-bar span {
    display: block;
    width: clamp(8px, 1vw, 10px);
    height: clamp(8px, 1vw, 10px);
    border-radius: 50%;
    background: #d8d0c6;
}

body.home-page .home-templates-showroom-preview .template-browser-body {
    min-height: clamp(200px, 24vw, 280px);
    padding: clamp(12px, 1.5vw, 16px);
}

body.home-page .home-templates-showroom-preview .showroom-design-tabs {
    border-radius: 0 0 8px 8px;
    margin-top: 0;
}

body.home-page .home-templates-showroom-body {
    display: flex;
    flex-direction: column;
    gap: 0;
}

body.home-page .home-templates-showroom-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 12px;
    border-radius: 20px;
    background: rgba(201, 169, 110, 0.12);
    border: 1px solid rgba(201, 169, 110, 0.35);
    color: #9a7835;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    margin-bottom: 16px;
    align-self: flex-start;
}

body.home-page .home-templates-showroom-badge::before {
    content: '';
    display: block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--hero-gold);
}

body.home-page .home-templates-showroom-heading {
    font-family: var(--font-body);
    font-size: clamp(26px, 3vw, 34px);
    font-weight: 700;
    color: #0d0d0d;
    line-height: 1.1;
    margin: 0 0 12px;
}

body.home-page .home-templates-showroom-tagline {
    font-size: clamp(14px, 1.4vw, 16px);
    color: #555;
    line-height: 1.55;
    margin: 0 0 24px;
}

body.home-page .home-templates-showroom-body .template-tier-note {
    color: #888;
    font-size: clamp(12px, 1.1vw, 13px);
    margin: 0 0 14px;
}

body.home-page .home-templates-showroom-body .btn {
    align-self: stretch;
}

/* ── Premium tiers divider ── */

body.home-page .home-templates-premium-divider {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 clamp(32px, 4vw, 44px);
    color: #aaa;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

body.home-page .home-templates-premium-divider::before,
body.home-page .home-templates-premium-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #e8e5df;
}

body.home-page .home-templates-premium-divider svg {
    flex-shrink: 0;
    color: #c5c0b8;
}

/* ── Premium grid: 2-column (Designer + Signature) ── */

body.home-page .home-templates-grid--premium {
    grid-template-columns: 1fr 1fr;
    gap: clamp(20px, 2.5vw, 28px);
}

body.home-page .home-page-templates .template-card {
    padding: clamp(24px, 2.5vw, 32px) clamp(20px, 2vw, 28px);
    border: 1px solid #e8e5df;
    border-radius: 16px;
    overflow: hidden;
    transition: border-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

body.home-page .home-page-templates .template-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 48px rgba(0, 0, 0, 0.08);
}

body.home-page .home-page-templates .template-card--featured {
    position: relative;
    border: 1.5px solid var(--hero-gold);
    box-shadow: 0 16px 40px rgba(201, 169, 110, 0.14);
}

body.home-page .home-page-templates .template-card--featured:hover {
    box-shadow: 0 24px 56px rgba(201, 169, 110, 0.2);
}

body.home-page .home-page-templates .template-card--signature {
    background: linear-gradient(180deg, #ffffff 0%, #faf8f4 100%);
}

body.home-page .home-page-templates .template-preview {
    margin-bottom: clamp(20px, 2.5vw, 28px);
    border-radius: 12px;
    background: #f4f1ea;
}

body.home-page .home-page-templates .template-preview--signature {
    background: #1a1a1a;
}

body.home-page .template-preview-frame {
    position: relative;
}

body.home-page .home-page-templates .showroom-design-views,
body.home-page .home-page-templates .designer-design-views {
    border-radius: 12px;
    overflow: hidden;
    background: #f4f1ea;
    transition: opacity 0.28s ease;
}

body.home-page .home-page-templates .showroom-design-views.is-switching,
body.home-page .home-page-templates .designer-design-views.is-switching {
    opacity: 0.4;
}

body.home-page .home-page-templates .template-browser {
    border: 1px solid #e8e5df;
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    transition: box-shadow 0.3s ease;
}

body.home-page .home-page-templates .template-card:hover .template-browser {
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.1);
}

body.home-page .home-page-templates .template-browser-bar {
    padding: clamp(10px, 1.2vw, 12px) clamp(12px, 1.4vw, 14px);
    background: #f0ebe3;
    border-bottom: 1px solid #e8e5df;
}

body.home-page .home-page-templates .template-browser-bar span {
    width: clamp(8px, 1vw, 10px);
    height: clamp(8px, 1vw, 10px);
    background: #d4cfc4;
}

body.home-page .home-page-templates .template-browser-body {
    min-height: clamp(200px, 24vw, 280px);
    padding: clamp(12px, 1.5vw, 16px);
}

body.home-page .home-page-templates .mock-hero--compact {
    height: clamp(108px, 13vw, 152px);
}

body.home-page .home-page-templates .mock-hero-product {
    flex: 0 0 clamp(52px, 6vw, 72px);
}

body.home-page .home-page-templates .mock-grid span {
    height: clamp(40px, 5vw, 56px);
}

body.home-page .home-page-templates .mock-showroom--gallery .mock-gallery-hero {
    height: clamp(64px, 8vw, 88px);
}

body.home-page .home-page-templates .mock-showroom--gallery .mock-gallery-row span {
    height: clamp(48px, 6vw, 64px);
}

body.home-page .home-page-templates .mock-showroom--spotlight .mock-spotlight-hero {
    height: clamp(72px, 9vw, 100px);
}

body.home-page .home-page-templates .mock-showroom--spotlight .mock-spotlight-strip span {
    height: clamp(40px, 5vw, 52px);
}

/* ── Showroom spotlight mock — accurate template palette overrides ── */

/* McQueen (Classic): black top-banner + warm ivory body */
#showroom-design-classic .template-browser-body {
    background: linear-gradient(to bottom, #000 0px, #000 8px, #f8f5f0 8px);
}

#showroom-design-classic .mock-hero-product {
    background: #efeeeb;
}

#showroom-design-classic .mock-hero-copy {
    background: #5a3d2b;
}

#showroom-design-classic .mock-hero-feature {
    background: linear-gradient(135deg, #b8c8d4 0%, #d8e2ea 55%, #c5d3de 100%);
}

#showroom-design-classic .mock-grid span {
    background: #dce8f0;
}

/* Gallery: warm cream nav bar + cool-blue photo hero gradient */
#showroom-design-gallery .template-browser-body {
    background: #f4f1ea;
}

#showroom-design-gallery .mock-showroom--gallery .mock-gallery-nav {
    background: #ede8df;
    border-bottom: 1px solid #ddd8cf;
}

#showroom-design-gallery .mock-showroom--gallery .mock-gallery-hero {
    background: linear-gradient(105deg, #c0cdd8 0%, #d8e4ec 40%, #c8d8e4 70%, #b8c8d4 100%);
}

#showroom-design-gallery .mock-showroom--gallery .mock-gallery-row span {
    background: #d4e0ea;
}

/* Spotlight: steel-blue banner + dark-navy hero */
#showroom-design-spotlight .template-browser-body {
    background: #0f1c28;
}

#showroom-design-spotlight .mock-showroom--spotlight .mock-spotlight-banner {
    background: #254155;
    height: 9px;
}

#showroom-design-spotlight .mock-showroom--spotlight .mock-spotlight-hero {
    background: linear-gradient(135deg, #081525 0%, #0d2137 50%, #162d48 100%);
}

#showroom-design-spotlight .mock-showroom--spotlight .mock-spotlight-copy {
    background: rgba(255, 255, 255, 0.16);
    border-radius: 2px;
}

#showroom-design-spotlight .mock-showroom--spotlight .mock-spotlight-strip span {
    background: #1a3550;
}

body.home-page .home-page-templates .mock-hero--editorial,
body.home-page .home-page-templates .mock-hero--curator,
body.home-page .home-page-templates .mock-hero--canvas,
body.home-page .home-page-templates .mock-hero--woolf {
    height: clamp(72px, 9vw, 100px);
}

body.home-page .home-page-templates .mock-collections span {
    height: clamp(52px, 6.5vw, 72px);
}

body.home-page .home-page-templates .mock-woolf-layout span {
    height: clamp(52px, 6.5vw, 72px);
}

body.home-page .home-page-templates .mock-hero--luxury {
    height: clamp(88px, 11vw, 120px);
}

body.home-page .home-page-templates .mock-story span {
    height: clamp(18px, 2.2vw, 24px);
}

body.home-page .showroom-design-tabs--overlay {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 3;
    margin: 0;
    padding: clamp(28px, 4vw, 40px) clamp(10px, 1.5vw, 14px) clamp(12px, 1.5vw, 14px);
    background: linear-gradient(to top, rgba(251, 251, 250, 0.98) 55%, rgba(251, 251, 250, 0));
    justify-content: center;
    gap: 8px;
}

body.home-page .showroom-design-tabs--overlay .showroom-design-tab {
    flex: 1 1 0;
    min-width: 0;
    max-width: none;
    padding: clamp(8px, 1vw, 10px) clamp(8px, 1.2vw, 14px);
    font-size: clamp(10px, 1vw, 13px);
    border: 1px solid #e8e5df;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(6px);
}

body.home-page .template-card-body {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
}

body.home-page .home-page-templates .template-card h3 {
    font-size: clamp(22px, 2.4vw, 26px);
}

body.home-page #templates .template-tagline {
    font-size: clamp(13px, 1.2vw, 14px);
    margin-bottom: 10px;
}

body.home-page #templates .template-desc {
    font-size: clamp(13px, 1.25vw, 15px);
    line-height: 1.65;
    margin-bottom: clamp(16px, 2vw, 20px);
}

body.home-page #templates .template-tier-note {
    font-size: clamp(12px, 1.1vw, 13px);
    margin-bottom: 12px;
}

body.home-page .home-page-templates .section {
    background: transparent;
    border: none;
    border-radius: 0;
    padding: 0;
    margin-bottom: 0;
    box-shadow: none;
}

body.home-page .home-page-templates #templates-title {
    font-size: clamp(32px, 4vw, 44px);
    font-weight: 500;
    letter-spacing: -0.8px;
    color: #1a1a1a;
}

body.home-page .home-page-templates .section-lead {
    color: #777777;
    font-size: clamp(15px, 1.5vw, 17px);
    line-height: 1.65;
    max-width: 540px;
}

body.home-page .template-card-actions {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin-top: auto;
    width: 100%;
}

@media (max-width: 1024px) {
    body.home-page .home-templates-grid {
        grid-template-columns: 1fr 1fr;
    }

    body.home-page .home-templates-grid .template-card--signature {
        grid-column: 1 / -1;
        max-width: min(560px, 100%);
        margin: 0 auto;
        width: 100%;
    }

    body.home-page .home-templates-showroom-spotlight {
        grid-template-columns: 1fr;
        gap: clamp(24px, 3vw, 36px);
    }

    body.home-page .home-templates-grid--premium {
        grid-template-columns: 1fr 1fr;
    }
}

body.home-page .home-page-templates .template-preview--signature .template-browser-bar {
    background: #2a2a2a;
    border-bottom-color: #333333;
}

body.home-page .home-page-templates .template-preview--signature .template-browser-bar span {
    background: #4a4a4a;
}

@media (prefers-reduced-motion: reduce) {
    body.home-page .home-page-templates .template-card:hover {
        transform: none;
    }

    body.home-page .home-page-templates .showroom-design-views,
    body.home-page .home-page-templates .designer-design-views {
        transition: none;
    }

    body.home-page .template-badge--pick::before {
        display: none;
    }
}

body.home-page .home-cta-closer + .container {
    padding-top: 64px;
}

@media (max-width: 768px) {
    body.home-page .container {
        padding: 48px 20px 32px;
    }

    body.home-page .home-page-templates {
        padding: 56px 20px;
    }

    body.home-page .home-templates-header h2 {
        font-size: clamp(28px, 7vw, 34px);
    }

    body.home-page .home-templates-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    body.home-page .home-templates-grid--premium {
        grid-template-columns: 1fr;
    }

    body.home-page .home-templates-showroom-spotlight {
        grid-template-columns: 1fr;
        border-left-width: 1px;
        border-top: 3px solid var(--hero-gold);
        border-radius: 12px;
        padding: clamp(20px, 5vw, 28px);
    }

    body.home-page .home-page-templates .template-browser-body {
        min-height: clamp(180px, 52vw, 240px);
    }

    body.home-page .section h2,
    body.home-page .design-services h2 {
        font-size: 26px;
    }
}
