/* =========================================================
   GLOBAL FOUNDATION
   ========================================================= */

:root {
    --gold: #d99647;
    --ink: #161411;
    --muted: #625c54;
    --dim: #8b8379;
    --black: #080706;
    --charcoal: #2a241e;
    --panel: #ffffff;
    --line: rgba(22, 20, 17, 0.12);
    --warm: #d99647;
    --ember: #d68a38;
    --paper: #f7f3ed;
    --soft: #ebe5dc;
    --radius: 8px;
    --max: 1560px;
}

body.theme-dark {
    --gold: #d99647;
    /* Dark Indigo Theme */
    --ink: #f7f3ed;
    --muted: #9ba0b5;
    --dim: #717894;
    --black: #0a0b18;
    --charcoal: #121426;
    --panel: #1a1c36;
    --line: rgba(255, 255, 255, 0.08);
    --warm: #d99647;
    --ember: #d68a38;
    --paper: #141628;
    --soft: #1a1c32;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--ink);
    background: var(--paper);
    font-family: Aptos, "Segoe UI", Arial, sans-serif;
    font-weight: 400;
    line-height: 1.55;
    font-size: 16px;
}

body.is-intro-locked {
    overflow: hidden;
}

body.is-site-awake {
    overflow: auto;
}

a {
    color: inherit;
    text-decoration: none;
}

.text-center {
    text-align: center;
}

img {
    display: block;
    max-width: 100%;
}

/* =========================================================
   HEADER / NAVIGATION
   ========================================================= */
.site-header {
    position: fixed;
    inset: 0 0 auto 0;
    z-index: 30;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
    padding: 20px clamp(18px, 4vw, 54px);
    background: linear-gradient(180deg, rgba(8, 7, 6, 0.52), rgba(8, 7, 6, 0));
    opacity: 1;
    transform: translateY(0);
    transition: opacity 700ms ease, transform 700ms ease, background 300ms ease;
}

.site-header.is-solid {
    background: var(--paper);
}

body.theme-dark .site-header.is-solid {
    background: var(--paper);
}

.site-logo {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    font-weight: 800;
    letter-spacing: 0;
    color: #b5121b;
}

.site-logo img {
    width: 58px;
    height: 58px;
    object-fit: cover;
}

.site-logo__text {
    display: grid;
    gap: 2px;
    line-height: 1;
}

.site-logo__name {
    color: #b5121b;
    font-size: 26px;
    font-weight: 800;
    margin-bottom: 1px;
}

.site-logo__tagline {
    color: rgba(247, 243, 237, 0.86);
    font-size: 15px;
    font-weight: 800;
}

.site-header.is-solid .site-logo__tagline,
.site-logo--footer .site-logo__tagline {
    color: var(--muted);
}

.site-nav {
    display: flex;
    align-items: center;
    gap: clamp(14px, 2vw, 26px);
    color: rgba(247, 243, 237, 0.82);
    font-size: 13px;
    font-weight: 700;
}

.site-nav a {
    transition: color 180ms ease;
}

.site-nav a:hover {
    color: #b5121b;
}

.site-nav a.is-active {
    color: #b5121b;
}

.site-header.is-solid .site-nav {
    color: var(--muted);
}

.site-header.is-solid .site-nav a:hover {
    color: #b5121b;
}

.site-header.is-solid .site-nav a.is-active {
    color: #b5121b;
}

.nav-toggle {
    width: 44px;
    height: 44px;
    border: 1px solid transparent;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    background: rgba(255, 255, 255, 0.04);
    cursor: pointer;
}

.nav-toggle span {
    width: 3px;
    background: #f7f3ed;
    border-radius: 2px;
    transition: height 0.4s ease;
}

.nav-toggle span:nth-child(1) { height: 12px; }
.nav-toggle span:nth-child(2) { height: 18px; }
.nav-toggle span:nth-child(3) { height: 14px; }

.nav-toggle:hover { border-color: var(--gold); }
.nav-toggle:hover span:nth-child(1) { height: 18px; }
.nav-toggle:hover span:nth-child(2) { height: 12px; }
.nav-toggle:hover span:nth-child(3) { height: 18px; }

/* Continuous equalizer pulse for the hamburger only on the home page */
body.home-page .nav-toggle {
    border-color: rgba(212, 175, 55, 0.4);
}
body.home-page .nav-toggle span:nth-child(1) {
    animation: navBarBounce1 1.4s ease-in-out infinite;
}
body.home-page .nav-toggle span:nth-child(2) {
    animation: navBarBounce2 1.4s ease-in-out infinite 0.2s;
}
body.home-page .nav-toggle span:nth-child(3) {
    animation: navBarBounce3 1.4s ease-in-out infinite 0.4s;
}

@keyframes navBarBounce1 {
    0%, 100% { height: 12px; }
    50% { height: 18px; }
}
@keyframes navBarBounce2 {
    0%, 100% { height: 18px; }
    50% { height: 10px; }
}
@keyframes navBarBounce3 {
    0%, 100% { height: 14px; }
    50% { height: 20px; }
}

.site-header.is-solid .nav-toggle span {
    background: var(--ink);
}

body.is-intro-locked .nav-toggle {
    opacity: 0;
    pointer-events: none;
}

/* Header Control Room Hint next to Hamburger */
.site-header__nav-wrap {
    gap: 14px;
}

.site-header-menu-hint {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
    letter-spacing: 0.02em;
    pointer-events: none;
    opacity: 1;
    transition: opacity 300ms ease;
    white-space: nowrap;
}

.header-hint-arrow {
    color: #ff2a38;
    font-size: 20px;
    font-weight: 900;
    filter: drop-shadow(0 0 6px rgba(255, 42, 56, 0.7));
    animation: hintArrowPulse 1.4s infinite ease-in-out;
}

@keyframes hintArrowPulse {
    0%, 100% { transform: translateX(0); opacity: 0.9; }
    50% { transform: translateX(-5px); opacity: 1; filter: drop-shadow(0 0 10px rgba(255, 42, 56, 0.95)); }
}

body.is-intro-locked .site-header-menu-hint {
    display: none;
    opacity: 0;
}

@media (max-width: 767.98px) {
    .site-header-menu-hint {
        display: none !important;
    }
}

/* Offcanvas Menu Base */
.site-offcanvas-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transition: 0.4s ease;
}

.site-offcanvas-open .site-offcanvas-overlay { 
    background: transparent; 
    backdrop-filter: none;
    opacity: 1; visibility: visible; 
}

.site-offcanvas-menu {
    position: fixed;
    top: 0;
    left: -400px;
    width: 340px;
    max-width: 85vw;
    height: 100vh;
    background: rgba(10, 10, 12, 0.4);
    backdrop-filter: blur(28px) saturate(180%);
    -webkit-backdrop-filter: blur(28px) saturate(180%);
    border-right: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 20px 0 50px rgba(0, 0, 0, 0.5);
    z-index: 9999;
    transition: 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}

.site-offcanvas-open .site-offcanvas-overlay {
    opacity: 1;
    visibility: visible;
}

.site-offcanvas-open .site-offcanvas-menu {
    left: 0;
}

/* Offcanvas Header & Close */
.site-offcanvas-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2.5rem 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    background-color: rgba(14, 16, 24, 0.9);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100' height='100' opacity='0.03'%3E%3Cpath d='M0,50 Q25,25 50,50 T100,50' fill='none' stroke='%23ffffff' stroke-width='4'/%3E%3Cpath d='M0,50 Q25,75 50,50 T100,50' fill='none' stroke='%23ffffff' stroke-width='1.5'/%3E%3C/svg%3E"), linear-gradient(145deg, rgba(20, 24, 38, 0.95), rgba(8, 10, 16, 0.95));
}

.site-offcanvas-brand {
    font-size: 0.85rem;
    font-weight: 800;
    letter-spacing: 0.15em;
    color: rgba(255, 255, 255, 0.5);
    text-transform: uppercase;
}

.site-offcanvas-close {
    background: none;
    border: none;
    color: #fff;
    font-size: 1.5rem;
    line-height: 1;
    padding: 0;
    cursor: pointer;
    opacity: 0.6;
    transition: 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.site-offcanvas-close:hover {
    opacity: 1;
    color: #ff4a4a;
}

/* Offcanvas Navigation Styles */
.site-offcanvas-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.site-offcanvas-nav>ul {
    padding: 1rem 0;
}

.site-offcanvas-nav li {
    position: relative;
}

.offcanvas-item-wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.site-offcanvas-nav a {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex: 1;
    padding: 1rem 2rem;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 500;
    transition: 0.2s;
}

.offcanvas-sub-toggle {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.5);
    padding: 1rem 2rem;
    cursor: pointer;
    transition: 0.2s;
    font-size: 1.25rem;
    display: grid;
    place-items: center;
}

.offcanvas-item-wrap:hover a,
.site-offcanvas-nav li.is-active>.offcanvas-item-wrap a {
    color: #fff;
}

.offcanvas-item-wrap:hover {
    background: rgba(255, 255, 255, 0.03);
}

.offcanvas-icon {
    font-size: 1.25rem;
    color: var(--ember);
}

/* Offcanvas Submenus */
.site-offcanvas-subs {
    background: rgba(0, 0, 0, 0.2);
    padding: 0.5rem 0;
}

.site-offcanvas-subs a {
    padding: 0.75rem 2rem 0.75rem 4rem;
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.5);
}

.site-offcanvas-subs a:hover {
    color: #fff;
}

/* Hide original top nav */
.site-nav {
    display: none !important;
}

/* Custom Scrollbar for Offcanvas Menu */
.site-offcanvas-menu::-webkit-scrollbar {
    width: 6px;
}

.site-offcanvas-menu::-webkit-scrollbar-track {
    background: transparent;
}

.site-offcanvas-menu::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 10px;
}

.site-offcanvas-menu::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.4);
}

/* Completely hide scrollbar for offcanvas menu but allow scrolling */
.site-offcanvas-menu::-webkit-scrollbar {
    display: none;
}

.site-offcanvas-menu {
    -ms-overflow-style: none;  /* IE and Edge */
    scrollbar-width: none;  /* Firefox */
}

/* =========================================================
   HOME
   ========================================================= */
.cinema-hero[hidden], .home-solutions[hidden] {
    display: none;
}

/* Prevent layout jerk if site is already awake (via head script) */
html.is-site-awake-init #heroIntro {
    display: none !important;
}

html.is-site-awake-init #homeSolutions {
    display: block !important;
}

html.is-site-awake-init body {
    overflow: auto !important;
}

.home-solutions {
    position: relative;
    z-index: 10;
    min-height: 100vh;
    padding-top: 100px;
}

.dashboard-header {
    margin-bottom: 20px;
}

.dashboard-cards {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
    width: 100%;
}

.dash-card {
    display: flex;
    flex-direction: column;
    padding: 28px clamp(24px, 3vw, 44px) clamp(24px, 3vw, 44px);
    background: var(--panel);
    border: 1px solid var(--gold);
    border-radius: var(--radius);
    color: var(--ink);
    
    gap: 8px;
}



.dash-card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 0;
}

.dash-card-header i { font-size: 32px; color: var(--ember); }

.dash-card-header h3 { 
    font-size: 24px; 
    margin: 0; 
    background: linear-gradient(180deg, #fef08a, #ca8a04);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.dash-card p {
    color: var(--muted);
    margin: 0;
    min-height: 48px;
    font-size: 14px;
}

.dash-card img {
    width: 100%;
    height: clamp(270px, 44vh, 430px);
    aspect-ratio: auto;
    object-fit: cover;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    margin-top: auto;
    display: block;
}

.dash-card--compact {
    padding: 24px;
    gap: 12px;
    min-height: auto;
}

.dash-card--compact .dash-card-header {
    margin-bottom: 0;
}

.dash-card--compact h3 {
    font-size: 18px;
    line-height: 1.2;
}

.dash-card--compact p {
    min-height: auto;
    font-size: 14px;
}



/* Home dashboard navigation hint - source order retained. */
.home-dashboard-hint {
    letter-spacing: 0.5px;
}

.home-dashboard-hint-toggle {
    width: 28px;
    height: 28px;
    pointer-events: none;
    margin: 0 8px;
    background: transparent;
    border: 1px solid rgba(255,255,255,0.1);
}

.cinema-hero {
    position: relative;
    min-height: 100vh;
    display: grid;
    place-items: center;
    overflow: hidden;
    background-image: var(--hero-image);
    background-size: cover;
    background-position: center;
}

.cinema-hero__shade {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 50% 78%, rgba(255, 180, 95, 0.12), transparent 20%),
        linear-gradient(180deg, rgba(8, 7, 6, 0.02), rgba(8, 7, 6, 0.3));
}

.cinema-hero__content {
    position: relative;
    z-index: 2;
    width: min(920px, calc(100% - 36px));
    text-align: center;
}

.cinema-hero__text {
    margin-bottom: 60px;
}

.cinema-hero__text h2 {
    font-size: clamp(20px, 3vw, 32px);
    font-weight: 400;
    margin: 0;
    color: #fff;
    text-shadow: 0 4px 12px rgba(0,0,0,0.8);
}

.cinema-hero__text h1 {
    font-size: clamp(36px, 5vw, 68px);
    font-weight: 600;
    margin: -10px 0 10px;
    color: #eab308;
    background: linear-gradient(180deg, #fef08a, #ca8a04);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 4px 12px rgba(0,0,0,0.8));
}

.cinema-hero__text p {
    font-size: clamp(20px, 3vw, 32px);
    color: #fff;
    margin: 0;
    text-shadow: 0 4px 12px rgba(0,0,0,0.8);
}

.cinema-hero__actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.power-button-text {
    color: #fff;
    font-size: 14px;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-weight: 600;
    text-shadow: 0 2px 4px rgba(0,0,0,0.8);
}

.cinema-hero h1 {
    margin: 0 auto 38px;
    max-width: 920px;
    font-size: clamp(48px, 8vw, 108px);
    line-height: 0.96;
    font-weight: 800;
}

.power-button {
    width: 76px;
    height: 76px;
    border: 1px solid rgba(255, 180, 95, 0.48);
    border-radius: 50%;
    display: inline-grid;
    place-items: center;
    background: rgba(8, 7, 6, 0.48);
    box-shadow: 0 0 28px rgba(217, 150, 71, 0.38), inset 0 0 18px rgba(255, 180, 95, 0.1);
    cursor: pointer;
    transition: transform 220ms ease, border-color 220ms ease;
    animation: powerPulse 1.8s ease-in-out infinite, powerVibrate 4s linear infinite;
}

.power-button:hover {
    transform: scale(1.06);
    border-color: rgba(255, 180, 95, 0.9);
    animation-play-state: paused;
}

.power-button__icon {
    position: relative;
    width: 31px;
    height: 31px;
    border: 3px solid var(--ember);
    border-top-color: transparent;
    border-radius: 50%;
}

.power-button__icon::before {
    content: "";
    position: absolute;
    left: 50%;
    top: -8px;
    width: 3px;
    height: 18px;
    transform: translateX(-50%);
    background: var(--ember);
    border-radius: 2px;
}

.is-site-awake .power-button {
    animation: none;
    opacity: 0;
    pointer-events: none;
}

@keyframes powerPulse {

    0%,
    100% {
        box-shadow: 0 0 18px rgba(217, 150, 71, 0.28), inset 0 0 18px rgba(255, 180, 95, 0.08);
    }

    50% {
        box-shadow: 0 0 46px rgba(217, 150, 71, 0.64), inset 0 0 22px rgba(255, 180, 95, 0.16);
    }
}

@keyframes powerVibrate {
    0%, 80%, 100% {
        transform: translate(0);
    }
    82%, 86%, 90%, 94%, 98% {
        transform: translate(-2px, 2px);
    }
    84%, 88%, 92%, 96% {
        transform: translate(2px, -2px);
    }
}

/* =========================================================
   GLOBAL LAYOUT
   ========================================================= */
.section-shell,
.site-footer,
.inner-hero {
    width: min(var(--max), calc(100% - 90px));
    margin: 0 auto;
}

.section-shell--soft {
    width: 100%;
    max-width: none;
    padding-top: 64px;
    padding-bottom: 64px;
    padding-left: max(18px, calc((100vw - var(--max)) / 2));
    padding-right: max(18px, calc((100vw - var(--max)) / 2));
    background: #eee8df;
    border-block: 1px solid var(--line);
}

/* Above-footer CTA blocks */
.above-footer-cta-blocks {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.above-footer-cta-blocks--single {
    grid-template-columns: minmax(0, calc((100% - 30px) / 2));
    justify-content: center;
}

.above-footer-cta-block {
    display: flex;
    align-items: center;
    gap: 24px;
    padding: 36px 40px;
    background: #0f0f11; /* Deep charcoal */
    border: 1px solid rgba(217, 150, 71, 0.2); /* Subtle gold border */
    color: #fff;
    border-radius: var(--radius);
    text-decoration: none;
    transition: transform 200ms ease, box-shadow 200ms ease, border-color 200ms ease;
}

.above-footer-cta-block--alt {
    background: #141417; /* Slightly lighter charcoal */
}

.above-footer-cta-block:hover,
.above-footer-cta-block--alt:hover {
    transform: translateY(-4px);
    border-color: rgba(217, 150, 71, 0.5); /* Highlight gold on hover */
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
    color: #fff;
}

.above-footer-cta-block i {
    font-size: 3.5rem;
    color: var(--warm); /* Gold icon */
    opacity: 0.9;
}

.above-footer-cta-text h3 {
    margin: 0 0 8px;
    font-size: 22px;
    font-weight: 700;
    color: #fffaf2;
    letter-spacing: -0.2px;
}

.above-footer-cta-text p {
    margin: 0;
    font-size: 15px;
    color: var(--muted);
    line-height: 1.5;
}

@media (max-width: 900px) {
    .above-footer-cta-blocks {
        grid-template-columns: 1fr;
    }
}


/* =========================================================
   SHARED COMPONENTS
   ========================================================= */
.section-kicker {
    margin: 0 0 14px;
    color: var(--warm);
    font-size: 12px;
    font-weight: 800;
}

.page-identifier {
    color: var(--ink) !important;
    background-color: #b5121b;
    background-image: url('../../images/page-id-bg.jpg');
    background-size: cover;
    background-position: right center;
    background-repeat: no-repeat;
    /*color: var(--ember) !important;*/
    text-transform: uppercase;
    font-size: 14px;
    letter-spacing: 2px;
    /*background: #292E48;*/
    border-radius: var(--radius);
    display: inline-block;
    padding: 8px 18px;
    margin-bottom: 6px;
}

.text-gradient-gold {
    background: linear-gradient(180deg, #fef08a, #ca8a04);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.content-divider {
    width: min(var(--max), calc(100% - 90px));
    margin: 0 auto;
    border: 0;
    border-top: 1px solid rgba(217, 150, 71, 0.45);    
    opacity: 1;
}

.max-heading-line {
    display: block;
    line-height: 1.1;
    color: #fff;
    font-size: calc(1em - 2px);
}

.max-heading-emphasis {
    color: var(--warm);
    font-size: 1em;
    display: block;
    font-weight: inherit;
    margin-top: 6px;
    line-height: 1.2;
}

.max-rich-text.max-rich-text--justify p {
    text-align: justify !important;
}

/* Signature bands - source order retained. */
.max-signature-band {
    width: min(1400px, calc(100% - 90px));
    max-width: none;
    margin: 0 auto;
    background: var(--charcoal);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-top: 1px solid rgba(159, 104, 45, 0.4);
    border-radius: var(--radius);
    text-align: center;
    padding: 24px 20px;
    font-size: clamp(24px, 3vw, 32px);
    font-weight: 500;
    color: var(--warm);
}

.max-signature-band--guidance {
    text-align: left;
    font-size: inherit;
    color: inherit;
}

.max-signature-band--guidance h2 {
    margin: 0 0 16px;
    font-size: 22px;
    font-weight: 600;
    color: var(--warm);
}

.max-signature-lead {
    color: var(--warm);
    text-align: center;
    font-size: clamp(24px, 3vw, 32px);
    font-weight: 500;
    margin-bottom: 8px;
}

.max-signature-copy {
    color: var(--ink);
    text-align: center;
    font-size: 20px;
    font-style: normal;
    font-weight: 400;
    margin-bottom: 0;
}

.max-signature-band--split p:first-of-type {
    color: var(--warm);
    text-align: center;
    font-size: clamp(24px, 3vw, 32px);
    font-weight: 500;
    margin-bottom: 8px;
    line-height: 1.15;
}

.max-signature-band--split p:nth-of-type(2) {
    color: var(--ink);
    text-align: center;
    font-size: 20px;
    font-weight: 400;
    font-style: normal;
    margin-bottom: 0;
    line-height: 1.2;
}

/* Rich text */
.max-rich-text p {
    margin-bottom: 1.5rem;
}

.max-rich-text p:last-child {
    margin-bottom: 0;
}

.max-rich-text a {
    color: var(--ember);
    text-decoration: underline;
}

.max-rich-text a:hover {
    color: var(--charcoal);
}

.max-rich-text ul, .max-rich-text ol {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
}

.max-rich-text li {
    margin-bottom: 0.5rem;
}

.max-rich-text strong, .max-rich-text b {
    font-weight: 600;
}

.max-rich-text em, .max-rich-text i {
    font-style: italic;
}

.img-profile-match {
    width: 100%;
    object-fit: cover;
    border-radius: 5px;
}

@media (min-width: 992px) {
    .img-profile-match {
        position: absolute;
        top: 0;
        left: 0;
        height: 100%;
    }
}

@media (max-width: 991.98px) {
    .img-profile-match {
        height: 400px;
        position: relative;
    }
}

/* Section Head Stuff */
.section-head {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(280px, 0.7fr);
    gap: 34px;
    align-items: end;
    margin-bottom: 34px;
}

.section-head--stacked {
    display: block;
    text-align: left;
    max-width: 800px;
}

.section-head--stacked p {
    text-align: left;
    max-width: 100%;
}

.section-head h2,
.bottom-closing-band h2,
.inner-hero h1,
.page-hero h1 {
    margin: 0;
    font-size: clamp(30px, 3.8vw, 54px);
    line-height: 1.02;
    font-weight: 800;
}

.inner-hero h1,
.page-hero h1,
.section-head h2,
.section-shell h2,
.product-card__body h3 {
    font-family: Fraunces, Georgia, serif;
}
.section-head h2 {
    font-size: clamp(28px, 3.1vw, 42px);
    line-height: 1.12;
}

.section-head--stacked h2 {
    font-size: clamp(24px, 3vw, 28px);
    margin: 0 0 16px 0;
    color: var(--warm);
}

.section-head p,
.bottom-closing-band p,
.inner-hero p,
.page-hero p {
    color: var(--muted);
    font-size: 17px;
}

/* =========================================================
   BOTTOM CLOSING BAND
   ========================================================= */

.bottom-closing-band {
    width: calc(100% - 30px);
    max-width: 1290px;
    margin: 10px auto 32px;
    padding: 20px;
    border-radius: var(--radius);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    text-align: center;
    gap: 30px;
    background:
        linear-gradient(135deg, rgba(217, 150, 71, 0.9), rgba(255, 180, 95, 0.68)),
        #d99647;
    color: #160f09;
}

.bottom-closing-band .section-kicker,
.bottom-closing-band p {
    color: rgba(22, 15, 9, 0.72);
    line-height: 1.35;
    margin-bottom: 0;
}

.bottom-closing-band .bottom-closing-band__content {
    max-width: 1200px;
    margin: 0 auto;
}

.bottom-closing-band h2 {
    font-size: clamp(22px, 3vw, 36px);
    margin: 0 0 8px 0;
}

.bottom-closing-band .button--wide {
    padding: 18px 56px;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.bottom-closing-band .button--wide:hover {
    background-color: var(--warm);
    color: #000;
    transform: translateY(-2px);
}



.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 18px;
    border: 1px solid rgba(217, 150, 71, 0.55);
    border-radius: var(--radius);
    color: var(--ink);
    font-weight: 800;
    background: rgba(217, 150, 71, 0.08);
    transition: background 180ms ease, transform 180ms ease;
}

.button:hover {
    background: rgba(217, 150, 71, 0.18);
    transform: translateY(-1px);
}

.button--light {
    color: #160f09;
    background: var(--ember);
    border-color: var(--ember);
}

/* =========================================================
   BRANDS
   ========================================================= */

/* Brands Page Layouts */
.brands-partner-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    max-width: 900px;
    margin: 0 auto 60px;
}
.brands-ondemand-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 12px;
}
.brands-logo-tile {
    display: flex;
    align-items: center;
    justify-content: center;
}
.brands-logo-panel {
    width: 100%;
    background: #fff;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 18px;
}

.brands-logo-panel--partner {
    min-height: 110px;
}

.brands-logo-panel--ondemand {
    min-height: 110px;
    padding: 18px;
}

.brands-logo-tile img {
    max-width: 100%;
    height: auto;
    width: auto;
    object-fit: contain;
    aspect-ratio: auto;
    filter: grayscale(0.15);
    margin: 0; /* override dash-card img margin */
}

.brand-detail-shell {
    width: min(var(--max, 1560px), calc(100% - 90px));
    max-width: none;
    margin: 0 auto;
    padding: 0;
}
.brands-partner-grid .brands-logo-tile img {
    max-height: 70px;
}
.brands-ondemand-grid .brands-logo-tile img {
    max-height: 70px;
}
@media (max-width: 992px) {
    .brands-partner-grid { grid-template-columns: repeat(2, 1fr); }
    .brands-ondemand-grid { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 620px) {
    .brands-partner-grid { grid-template-columns: 1fr; }
    .brands-ondemand-grid { grid-template-columns: repeat(2, 1fr); }
}

/* Section layout modifiers - source order retained. */
.brand-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}

.brand-card {
    min-height: 132px;
    border: 1px solid var(--gold);
    border-radius: var(--radius);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 20px;
    background: #fffdf9;
    transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
    
}

.brand-card:hover,
.product-card:hover {
    transform: translateY(-3px);
    border-color: rgba(159, 104, 45, 0.38);
}

.brand-card__logo {
    min-height: 58px;
    display: flex;
    align-items: center;
    color: var(--ink);
    font-size: 22px;
    font-weight: 800;
}

.brand-card__logo img {
    max-width: 140px;
    max-height: 58px;
    object-fit: contain;
    filter: grayscale(0.15);
    
}

.brand-card__meta,
.product-card__body p,
.article-grid span {
    color: var(--dim);
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
}

.product-card__body p {
    margin: 0;
}

/* =========================================================
   PRODUCTS
   ========================================================= */

.brand-chip-grid {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
    max-width: 1200px;
    margin: 0 auto;
}

.brand-chip {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 120px;
    height: 60px;
    padding: 0.5rem 1.5rem;
    background: transparent;
    border: 1px solid var(--paper-border, #333);
    border-radius: 10px;
    color: var(--ink);
    text-decoration: none;
    transition: all 0.2s ease;
}

.brand-chip:hover {
    border-color: var(--gold);
    background: rgba(255, 255, 255, 0.05);
}

.brand-chip.active {
    border-color: var(--gold);
    background: var(--paper-border, #333);
}

.brand-logo {
    max-height: 40px;
    max-width: 100px;
    object-fit: contain;
}
/* Shared page heroes - source order retained. */

.product-grid,
.feature-grid,
.article-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

/* Centered layout when total items is 1 or 2 */
.product-grid.product-grid--count-1 {
    display: flex;
    justify-content: center;
}
.product-grid.product-grid--count-1 > .product-card {
    width: min(100%, 420px);
}

.product-grid.product-grid--count-2 {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}
.product-grid.product-grid--count-2 > .product-card {
    width: min(calc(50% - 12px), 440px);
}

/* Orphan last row items centering in 3-column grid */
@media (min-width: 993px) {
    /* If exactly 1 item in the last row of a 3-col grid (e.g., 4th item out of 4, 7th out of 7, 10th out of 10) */
    .product-grid > .product-card:nth-child(3n + 1):last-child {
        grid-column: 2;
    }
}

.article-grid {
    padding-top: 18px;
}

/* Product cards - retained among shared rules for cascade safety. */
.product-card {
    border: 1px solid var(--gold);
    border-radius: var(--radius);
    overflow: hidden;
    background: #ffffff;
    transition: transform 180ms ease, border-color 180ms ease;
}

.product-card__image {
    display: block;
    aspect-ratio: 4 / 3;
    padding: 20px;
    background: linear-gradient(180deg, #ffffff, #f1ece4);
}

.product-card__image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background-color: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    border-radius: 4px;
    padding: 12px;
}

.product-card__body {
    padding: 16px 20px;
    background: var(--panel);
    display: flex;
    flex-direction: column;
}

.product-card__body h3 {
    margin: 4px 0 7px;
    font-size: 24px;
}
.product-card__body span,
.feature-grid p,
.article-grid p,
.text-measure p {
    color: var(--muted);
}

.product-card__link {
    display: inline-flex;
    margin-top: 16px;
    color: var(--warm);
    font-size: 13px;
    font-weight: 800;
}


.page-hero {
    min-height: 78vh;
    display: grid;
    align-items: end;
    position: relative;
    overflow: hidden;
    padding: 160px max(18px, calc((100vw - var(--max)) / 2)) 80px;
    isolation: isolate;
}

.page-hero img {
    position: absolute;
    inset: 0;
    z-index: -2;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.page-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(90deg, rgba(8, 7, 6, 0.88), rgba(8, 7, 6, 0.28)), linear-gradient(180deg, rgba(8, 7, 6, 0.1), rgba(8, 7, 6, 0.9));
}

.page-hero div {
    max-width: 760px;
}

.inner-hero {
    padding: 100px 0 58px;
    max-width: 940px;
/*    text-align: left;
*/}

.product-hero {
    max-width: var(--max);
}

.product-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 28px;
}

.product-tabs a,
.brand-chip-grid a {
    display: inline-flex;
    align-items: center;
    min-height: 42px;
    padding: 0 16px;
    border: 1px solid var(--gold);
    border-radius: var(--radius);
    background: #fffdf9;
    color: var(--ink);
    font-size: 13px;
    font-weight: 800;
    transition: border-color 180ms ease, transform 180ms ease;
}

.product-tabs a:hover,
.brand-chip-grid a:hover,
.category-card:hover {
    border-color: rgba(159, 104, 45, 0.45);
    transform: translateY(-2px);
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

.category-card {
    min-height: 178px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 24px;
    padding: 22px;
    border: 1px solid var(--gold);
    border-radius: var(--radius);
    background: #fffdf9;
    transition: border-color 180ms ease, transform 180ms ease;
}

.category-card span {
    font-size: 24px;
    font-weight: 800;
}

.category-card p {
    margin: 0;
    color: var(--muted);
}

.brand-chip-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.system-paths {
    width: min(var(--max), calc(100% - 36px));
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

.system-paths article {
    padding: 22px;
    border: 1px solid var(--gold);
    border-radius: var(--radius);
    background: #fffdf9;
}

.system-paths span {
    color: var(--warm);
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
}

.system-paths h2 {
    margin: 18px 0 8px;
    font-size: 25px;
    line-height: 1.08;
}

.system-paths p {
    margin: 0;
    color: var(--muted);
}

/* Product Detail */
.product-detail-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    text-align: left;

}
.product-detail-header h1,
.product-detail-header p {
    margin: 0;
}
.product-detail-hero {
    width: min(var(--max), calc(100% - 90px));
    margin: 0 auto;
    padding: 10px 0 32px;
    display: grid;
    grid-template-columns: 5fr 7fr;
    gap: clamp(24px, 4vw, 40px);
    align-items: stretch;
}

/* Panel Containers (Desktop/Laptop) */
@media (min-width: 621px) {
    .product-detail-hero {
        background: var(--panel);
        border: 1px solid rgba(255, 255, 255, 0.05);
        border-top: 1px solid rgba(159, 104, 45, 0.4);
        border-radius: var(--radius);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
        margin: 10px auto 32px;
        padding: 0;
    }
    
    .product-gallery,
    .product-detail-copy {
        padding: clamp(8px, 1.5vw, 16px) clamp(24px, 4vw, 40px);
        display: flex;
        flex-direction: column;
    }
    .product-gallery {
        align-items: center;
        justify-content: center;
    }
}

/* Gallery */
.product-gallery__main {
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 1 / 1;
    padding: 24px;
    width: 100%;
    max-width: 500px;
    background: linear-gradient(180deg, #f6f3ed, #e6dcd0);
    border-radius: 8px;
}

.product-gallery__main img {
    width: 100%;
    height: 100%;
    max-height: 100%;
    display: block;
    object-fit: contain;
    background: #ffffff;
    border: 2px solid #9f682d;
    border-radius: 6px;
    padding: 16px;
    box-sizing: border-box;
}

.product-gallery__thumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 12px;
    width: 100%;
}

.product-gallery__thumbs button {
    width: 64px;
    height: 64px;
    padding: 2px;
    border: 2px solid #ded9d0;
    border-radius: 6px;
    background: #ffffff;
    cursor: pointer;
    transition: all 0.15s ease;
}

.product-gallery__thumbs button:hover {
    border-color: #9f682d;
    transform: translateY(-1px);
    box-shadow: 0 3px 8px rgba(159, 104, 45, 0.18);
}

.product-gallery__thumbs button.is-active {
    border-color: #9f682d;
    box-shadow: 0 0 0 2px rgba(159, 104, 45, 0.35);
}

.product-gallery__thumbs img {
    aspect-ratio: 1;
    width: 100%;
    height: 100%;
    padding: 4px;
    object-fit: contain;
}

.back-link {
    display: inline-flex;
    margin-bottom: 28px;
    color: var(--muted);
    font-size: 13px;
    font-weight: 800;
}

.breadcrumb-line {
    width: min(var(--max), calc(100% - 36px));
    margin: 0 auto;
    padding-top: 132px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--muted);
    font-size: 13px;
    font-weight: 800;
}

.breadcrumb-line a {
    color: var(--warm);
}

.breadcrumb-line a::after {
    content: "/";
    margin-left: 10px;
    color: var(--dim);
}

.product-detail-copy h1 {
    margin: 0;
    max-width: 100%;
    font-size: clamp(24px, 3vw, 38px);
    line-height: 1.12;
    white-space: nowrap;
    overflow-wrap: normal;
}

.product-brand-mark {
    width: fit-content;
    min-width: 112px;
    min-height: 46px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 18px;
    background: #ffffff;
    padding: 10px 16px;
    border-radius: 4px;
}

.product-brand-mark img {
    max-width: 160px;
    max-height: 42px;
    object-fit: contain;
    filter: grayscale(0.15);
}

.product-brand-mark strong {
    color: var(--dim);
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    margin: 0;
}

.product-subtitle {
    color: var(--muted);
    font-size: 20px;
}

.best-for {
    margin: 28px 0;
    padding: 20px;
    border: 1px solid var(--gold);
    border-radius: var(--radius);
    background: #fffdf9;
}

.best-for span {
    color: var(--dim);
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
}

.best-for div {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

.best-for strong {
    padding: 8px 10px;
    border-radius: var(--radius);
    background: #eee8df;
    font-size: 13px;
}

.product-story {
    width: min(var(--max), calc(100% - 36px));
    margin: 0 auto;
    padding: 56px 0;
    display: grid;
    grid-template-columns: minmax(0, 0.8fr) minmax(300px, 1fr);
    gap: 46px;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.product-story h2 {
    margin: 0;
    font-size: clamp(30px, 4vw, 52px);
    line-height: 1.05;
}

.product-story>p {
    margin: 0;
    color: var(--muted);
    font-size: 19px;
}

/* Specifications */
.spec-table {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    border: 1px solid var(--gold);
    border-radius: var(--radius);
    overflow: hidden;
    background: #fffdf9;
}

.spec-table div {
    display: grid;
    gap: 6px;
    padding: 10px;
    border-right: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.spec-table span {
    color: var(--dim);
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
}

.spec-table strong {
    font-weight: 700;
    color: #000;
}

/* Shared content grids - source order retained. */
.feature-grid article,
.article-grid article,
.split-list article {
    padding: 24px;
    border: 1px solid var(--gold);
    border-radius: var(--radius);
    background: #fffdf9;
}

.feature-grid span {
    color: var(--warm);
    font-weight: 800;
}

.feature-grid h3,
.article-grid h2,
.split-list h3 {
    margin: 12px 0 8px;
}

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

.text-measure {
    max-width: 760px;
}

/* =========================================================
   RESPONSIVE
   ========================================================= */
/* These queries retain their position before later component overrides. */
@media (max-width: 900px) {
    .site-nav {
        position: fixed;
        top: 76px;
        left: 18px;
        right: 18px;
        display: none;
        grid-template-columns: 1fr;
        gap: 0;
        padding: 14px;
        border: 1px solid var(--gold);
        border-radius: var(--radius);
        background: rgba(247, 243, 237, 0.98);
    }

    .site-nav.is-open {
        display: grid;
    }

    .site-nav a {
        padding: 13px 8px;
        border-bottom: 1px solid var(--line);
    }

    .site-nav a:last-child {
        border-bottom: 0;
    }

    .section-head,
    .site-footer {
        grid-template-columns: 1fr;
    }

    .brand-grid,
    .product-grid,
    .feature-grid,
    .article-grid {
        align-items: flex-start;
        flex-direction: column;
    }

    .split-list,
    .system-paths,
    .category-grid,
    .product-story {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

}

@media (max-width: 620px) {
    .brand-detail-shell {
        width: 100%;
    }

    .brand-detail-shell > div:first-child {
        padding: 18px 16px !important;
    }

    .product-grid.product-grid--count-1,
    .product-grid.product-grid--count-2 {
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        gap: 16px;
    }

    .product-grid.product-grid--count-1 > .product-card,
    .product-grid.product-grid--count-2 > .product-card {
        width: 100%;
        max-width: none;
        min-width: 0;
    }

    .product-gallery__main {
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
    }
    
    .product-detail-hero {
        display: flex;
        flex-direction: column;
    }
    
    .product-detail-copy {
        display: contents;
    }

    .product-brand-title { justify-content: space-between; text-align: left; width: 100%; }
    .product-brand-title h1 { margin-right: auto !important; margin-left: 0 !important; text-align: left; order: -1; }
    .product-navigation { justify-content: center; width: 100%; margin-top: 16px; margin-bottom: 16px; }

    .product-subtitle { order: 1; text-align: center; margin-bottom: 16px !important; line-height: 1.35; }
    .product-gallery { order: 2; }
    .product-gallery__thumbs { 
        order: 3; 
        justify-content: center;
        margin-top: 16px;
        margin-bottom: 12px;
    }
    .product-description-box { order: 4; }
    .product-brand-mark { order: 5; }
    .best-for { order: 6; }

    .cinema-hero h1 {
        font-size: 44px;
    }

    .brand-grid,
    .product-grid,
    .feature-grid,
    .article-grid,
    .split-list,
    .system-paths,
    .category-grid,
    .product-story,
    .spec-table {
        grid-template-columns: 1fr;
    }

    .page-hero {
        min-height: 68vh;
    }
}

/* ==========================================
   HOME CINEMA
   ========================================== */
.home-cinema-lead {
    line-height: 1.25;
    padding-bottom: 6px;
    font-weight: 400 !important;
}

.home-cinema-essentials-head {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.home-cinema-essentials-head h4,
.home-cinema-essentials-head p {
    margin: 0;
}

/* =========================================================
   MAX HARMONICS
   ========================================================= */
.mh-static-compare {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--gold);
}

.mh-static-compare__panel {
    padding: clamp(32px, 5vw, 64px);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.mh-static-compare__before {
    background: linear-gradient(135deg, #1a1018 0%, #1c1420 100%);
    border-right: 1px solid rgba(255,255,255,0.05);
}

.mh-static-compare__after {
    background: linear-gradient(135deg, #0c1018 0%, #0a1420 100%);
}

.mh-static-compare__label {
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 24px;
}

.mh-static-compare__before .mh-static-compare__label {
    color: #c0392b;
}

.mh-static-compare__after .mh-static-compare__label {
    color: var(--ember);
}

.mh-static-compare__list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.mh-static-compare__list li {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: clamp(14px, 1.5vw, 17px);
    font-weight: 500;
    color: var(--dim);
}

.mh-static-compare__before .mh-static-compare__list li i {
    color: #e55353;
    font-size: 20px;
}

.mh-static-compare__after .mh-static-compare__list li {
    color: #fff;
}

.mh-static-compare__after .mh-static-compare__list li i {
    color: #43b581;
    font-size: 20px;
}

.mh-outcome-icon {
    color: var(--warm);
    font-size: 24px;
    flex-shrink: 0;
}

.mh-outcome-title {
    color: var(--ink);
    font-size: 18px;
    display: block;
    margin-bottom: 4px;
}

.mh-outcome-copy {
    color: var(--dim);
    font-size: 15px;
    line-height: 1.5;
}

.mh-measurement-gallery {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}

.mh-measurement-gallery__item {
    min-width: 0;
    margin: 0;
    text-align: center;
}

.mh-measurement-gallery__frame {
    padding: 4px;
    border: 1px solid rgba(159, 104, 45, 0.5);
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.02);
    overflow: hidden;
}

.mh-measurement-gallery__frame img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 700 / 377;
    object-fit: cover;
    border-radius: 3px;
}

.mh-measurement-gallery__item figcaption {
    margin-top: 6px;
    color: #fff;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.3;
}

@media (max-width: 991px) {
    .mh-measurement-gallery {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 575px) {
    .mh-measurement-gallery {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 800px) {
    .mh-static-compare {
        grid-template-columns: 1fr;
    }
    .mh-static-compare__before {
        border-right: none;
        border-bottom: 1px solid rgba(255,255,255,0.05);
    }
}

/* Max Harmonics asymmetric layout */
.mh-asymmetric-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}


/* Max Harmonics - 900px minimum width */
@media (min-width: 900px) {
    .mh-asymmetric-grid {
        grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
    }
    .mh-asymmetric-grid.is-reversed {
        grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
    }
}

/* =========================================================
   ACOUSTICS
   ========================================================= */
.acoustics-room-image {
    width: 100%;
    max-height: 320px;
    object-fit: cover;
}

.acoustics-treatment-image {
    width: 100%;
    max-width: 480px;
    height: auto;
    object-fit: contain;
}

.acoustics-brand-band {
    width: min(900px, calc(100% - 90px));
    margin-left: auto;
    margin-right: auto;
    background: #fff;
    border-radius: var(--radius);
    padding: 12px 24px;
}

.acoustics-brand-logo-wrap {
    min-height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.acoustics-brand-logo-wrap img {
    display: block;
    width: auto;
    max-width: 160px;
    max-height: 58px;
    object-fit: contain;
}

/* =========================================================
   CONTACT
   ========================================================= */
.contact-hero {
    max-width: var(--max);
    padding-bottom: 24px;
}

.contact-hero h1 {
    font-size: clamp(24px, 3vw, 28px);
}

.contact-panel-dark {
    width: min(var(--max), calc(100% - 36px));
    margin: 40px auto 80px;
    display: grid;
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
    gap: 60px;
}

.contact-detail-item {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.contact-detail-item i {
    font-size: 24px;
    color: var(--warm);
    margin-top: 2px;
}

.contact-detail-item p {
    margin: 0;
    color: var(--muted);
    font-size: 16px;
    line-height: 1.6;
}

.contact-detail-item a {
    color: var(--muted);
    text-decoration: none;
    transition: color 200ms ease;
}

.contact-detail-item a:hover {
    color: var(--warm);
}

.contact-form-col {
    background: #0f0f11;
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--radius);
    padding: 40px;
}

.form-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding-bottom: 15px;
}

.tab-btn {
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.5);
    font-size: 15px;
    font-weight: 600;
    padding: 8px 16px;
    cursor: pointer;
    border-radius: 4px;
    transition: all 200ms ease;
}

.tab-btn:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.03);
}

.tab-btn.is-active {
    color: var(--warm);
    background: rgba(217, 150, 71, 0.1);
}

.dark-form .form-group {
    margin-bottom: 24px;
}

.dark-form label {
    display: block;
    margin-bottom: 8px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.5px;
    color: var(--dim);
}

.dark-form input:not([type="checkbox"]),
.dark-form textarea {
    width: 100%;
    background: #16161a;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 6px;
    padding: 14px 16px;
    color: #fff;
    font-family: inherit;
    font-size: 15px;
    transition: border-color 200ms ease, box-shadow 200ms ease;
}

.dark-form input:focus,
.dark-form textarea:focus {
    outline: none;
    border-color: rgba(217, 150, 71, 0.5);
    box-shadow: 0 0 0 2px rgba(217, 150, 71, 0.1);
}

.button--gold {
    background: var(--warm);
    color: #160f09;
    border-color: var(--warm);
}

.button--gold:hover {
    background: #e8a655;
    border-color: #e8a655;
}

@media (max-width: 800px) {
    .contact-panel-dark {
        grid-template-columns: 1fr;
        gap: 40px;
        margin-top: 10px;
    }
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 28px;
}
.contact-map {
    margin-top: 60px;
    aspect-ratio: 16/9;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
}
.contact-map iframe {
    border: 0;
}
.max-form-check-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 10px;
    margin-bottom: 20px;
}
.max-form-check-input {
    margin: 0;
    width: auto;
    height: auto;
}
.dark-form .max-form-check-label {
    color: #bbb;
    font-size: 0.9em;
    font-weight: normal;
    margin: 0;
    padding: 0;
    text-transform: none;
}

/* =========================================================
   FOOTER
   ========================================================= */
.site-footer {
    display: grid;
    grid-template-columns: minmax(0, 0.7fr) minmax(280px, 0.6fr);
    gap: 40px;
    padding: 70px 0 42px;
    border-top: 1px solid var(--line);
    color: var(--muted);
}

@media (max-width: 900px) {
    .site-footer {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 30px;
        padding: 40px 0 40px;
    }
}

.site-logo--footer {
    color: var(--ink);
}

.footer-meta {
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-items: flex-end;
    text-align: right;
}

@media (max-width: 900px) {
    .footer-left,
    .footer-meta {
        display: contents; /* Allows children to participate in flex column */
    }
    
    .footer-brand { order: 1; }
    .social-icons { order: 2; justify-content: center; }
    .footer-legal { order: 3; text-align: center; }
    .footer-credit { order: 4; text-align: center; }
}


.footer-legal p {
    margin-bottom: 5px;
    font-size: 0.85rem;
}

.footer-credit {
    font-size: 0.9rem;
    font-weight: 500;
}

.footer-social-link {
    color: #ffffff;
    font-size: 24px;
    transition: color 0.2s ease;
    opacity: 0.75;
}

.footer-social-link:hover {
    color: #b5121b;
    opacity: 1;
}

.footer-credit a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 700;
}

.footer-credit a:hover {
    text-decoration: underline;
}

/* Category Grid Header Layout */
.category-header-layout {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 8px;
    text-align: left;
    flex-wrap: wrap;
    gap: 16px;
}

.category-header-filter {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    margin-left: 24px;
}

@media (max-width: 768px) {
    .category-header-layout {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .category-header-filter {
        margin-left: 0;
    }
}


/*Product Images in Stereo Listening Page*/
.white-product-card {
    background: #fff;
    border-radius: 8px;
    border: 1px solid var(--gold);
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    height: 220px;
    padding: 15px;
    margin-bottom: 8px;
    width: 100%;
}

/* =========================================================
   Projectors Page
   ========================================================= */
.projector-hover-wrapper {
    position: relative;
    background: linear-gradient(180deg, #f6f3ed, #e6dcd0);
    border: 2px solid var(--gold);
    border-radius: 8px;
    padding: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 1/1;
    cursor: pointer;
}

.projector-hover-large {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 600px;
    max-width: 90vw;
    max-height: 90vh;
    background: linear-gradient(180deg, #f6f3ed, #e6dcd0);
    border: 2px solid var(--gold);
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.6);
    z-index: 9999;
}

.projector-hover-wrapper:hover .projector-hover-large {
    display: flex;
    align-items: center;
    justify-content: center;
}

.projector-hover-large img {
    object-fit: contain;
    width: 100%;
    height: 100%;
}

.proj-specs {
    color: var(--grey-light);
    font-size: 13px;
    margin-bottom: 0;
    margin-top: auto;
}
.proj-specs ul {
    padding-left: 16px;
    margin-bottom: 0;
}
.proj-specs li {
    margin-bottom: 4px;
}

/* Projector product cards — full-bleed image */
.proj-card {
    display: flex;
    flex-direction: column;
    border-radius: var(--radius, 10px);
    overflow: hidden;
    background: var(--panel, #1a1c36);
    transition: transform 180ms ease, box-shadow 180ms ease;
}
.proj-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 32px rgba(0,0,0,0.45);
}

/* Full-bleed image area — fills full card width, full natural image height */
.proj-card__image {
    width: 100%;
    overflow: hidden;
    background: linear-gradient(180deg, #f6f3ed, #e6dcd0);
    flex-shrink: 0;
}
.proj-card__image img {
    width: 100%;
    height: auto;
    object-fit: contain;
    display: block;
}

/* Text content below image */
.proj-card__body {
    padding: 20px 18px 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex: 1;
}
.proj-card__body h3 {
    font-size: 17px;
    font-weight: 600;
    margin: 0;
}
.proj-card__desc {
    color: #aaa;
    font-size: 13px;
    line-height: 1.5;
}

/* Flagship badge */
.proj-card__flagship-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: var(--gold, #d99647);
    color: #0e0e1a;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 3px 10px;
    border-radius: 20px;
    z-index: 2;
}

.product-share {
    position: relative;
    display: inline-flex;
    flex: 0 0 auto;
}

.product-share--mobile {
    display: none;
}

.product-navigation {
    flex-wrap: wrap;
}

.product-subtitle-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    min-height: 34px;
    margin-top: 10px;
}

.product-subtitle-row .product-subtitle {
    min-width: 0;
}

.product-share__trigger {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 11px;
    border: 1px solid rgba(217, 150, 71, 0.55);
    border-radius: 6px;
    color: var(--gold);
    background: transparent;
    font: inherit;
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
    text-transform: uppercase;
    cursor: pointer;
    transition: border-color 180ms ease, background 180ms ease;
}

.product-share__trigger:hover,
.product-share__trigger:focus-visible {
    border-color: var(--gold);
    background: rgba(217, 150, 71, 0.1);
}

.product-share__menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    z-index: 40;
    min-width: 180px;
    padding: 6px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--panel);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
}

.product-share__menu[hidden] {
    display: none;
}

.product-share__menu a,
.product-share__menu button {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 9px 10px;
    border: 0;
    border-radius: 5px;
    color: var(--ink);
    background: transparent;
    font: inherit;
    font-size: 14px;
    text-align: left;
    cursor: pointer;
}

.product-share__menu a:hover,
.product-share__menu a:focus-visible,
.product-share__menu button:hover,
.product-share__menu button:focus-visible {
    background: rgba(217, 150, 71, 0.12);
    color: var(--gold);
}

.product-share__menu i {
    width: 18px;
    font-size: 18px;
}

.product-share__status {
    margin: 0;
    padding: 0 10px;
    color: var(--gold);
    font-size: 12px;
}


/* ==========================================
   GLOBAL MOBILE OVERRIDES
   ========================================== */
@media (max-width: 991.98px) {
    .product-share--desktop {
        display: none;
    }

    .product-share--mobile {
        display: inline-flex;
    }

    .product-share__trigger span {
        display: none;
    }

    .product-share__trigger {
        justify-content: center;
        width: 34px;
        height: 34px;
        padding: 0;
    }

    .section-shell,
    .site-footer,
    .inner-hero,
    .max-signature-band,
    .product-detail-hero,
    .contact-panel-dark {
        width: 100% !important;
        max-width: 100% !important;
        padding-left: 18px !important;
        padding-right: 18px !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }
    
    .content-divider {
        width: calc(100% - 36px) !important;
        max-width: 1290px !important;
    }
    
    .contact-form-col {
        padding: 24px !important;
    }
    
    .contact-form-col .form-tabs {
        flex-wrap: wrap;
        gap: 8px;
    }
    
    .contact-form-col .tab-btn {
        flex: 1;
        text-align: center;
        padding: 8px 12px;
        font-size: 14px;
    }
    
    .dashboard-cards { 
        grid-template-columns: 1fr; 
        width: 100%;
    }

    /* Reduce overly large text and line-heights on mobile */
    .inner-hero h1,
    .page-hero h1,
    .contact-hero h1 {
        font-size: clamp(22px, 5vw, 28px) !important;
        line-height: 1.15 !important;
    }

    /* Make home-cinema-lead much smaller on mobile */
    .inner-hero h1.home-cinema-lead {
        font-size: 16px !important;
        line-height: 1.2 !important;
        font-weight: 400 !important;
    }

    .max-rich-text p {
        line-height: 1.5 !important;
    }
}
