/* ============================================
   DYNAMIC AUDIO TULSA - Design System
   Luxury Home Audio & Automation
   ============================================ */

/* --- CSS Custom Properties --- */
:root {
    /* Colors — White aesthetic (inverted from dark theme) */
    --black: #ffffff;
    --dark: #f8f8f8;
    --dark-2: #f2f2f2;
    --dark-3: #e0e0e0;
    --dark-4: #d0d0d0;
    --gray-dark: #999999;
    --gray: #666666;
    --gray-light: #555555;
    --white: #1a1a1a;
    --white-pure: #111111;
    --gold: #c9a96e;
    --gold-light: #dfc298;
    --gold-dark: #a68a4b;
    --gold-dim: rgba(201, 169, 110, 0.15);
    --red: #ED1C24;
    --red-dark: #B82026;
    --red-dim: rgba(237, 28, 36, 0.12);

    /* Typography */
    --font-display: 'Playfair Display', 'Georgia', serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-accent: 'Bebas Neue', sans-serif;

    /* Spacing */
    --section-pad: clamp(80px, 12vh, 160px);
    --container-max: 1280px;
    --container-pad: clamp(20px, 4vw, 60px);

    /* Transitions */
    --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-out-quart: cubic-bezier(0.25, 1, 0.5, 1);
    --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);

    /* Border radius */
    --radius: 8px;
    --radius-lg: 16px;
}

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

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

body {
    font-family: var(--font-body);
    font-weight: 300;
    color: var(--white);
    background-color: var(--black);
    line-height: 1.7;
    overflow-x: hidden;
    cursor: none;
}

@media (max-width: 768px) {
    body { cursor: auto; }
}

::selection {
    background: var(--gold);
    color: #ffffff;
}

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

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

.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--container-pad);
}

/* --- Custom Cursor --- */
.cursor-dot,
.cursor-ring {
    pointer-events: none;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 99999;
    border-radius: 50%;
    opacity: 0;
    transition: opacity 0.3s ease;
}

body:hover .cursor-dot,
body:hover .cursor-ring {
    opacity: 1;
}

.cursor-dot {
    width: 6px;
    height: 6px;
    background: var(--gold);
    transform: translate(-50%, -50%);
}

.cursor-ring {
    width: 40px;
    height: 40px;
    border: 1px solid var(--gold);
    transform: translate(-50%, -50%);
    transition: width 0.3s var(--ease-out-expo),
                height 0.3s var(--ease-out-expo),
                border-color 0.3s ease,
                opacity 0.3s ease;
}

.cursor-ring.hover {
    width: 60px;
    height: 60px;
    border-color: var(--gold-light);
}

@media (max-width: 768px) {
    .cursor-dot, .cursor-ring { display: none; }
}

/* --- Page Transitions --- */
body {
    animation: pageFadeIn 0.6s ease both;
}

body.page-exit {
    animation: pageFadeOut 0.35s ease both;
}

@keyframes pageFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes pageFadeOut {
    from { opacity: 1; }
    to { opacity: 0; }
}

/* --- Preloader --- */
#preloader {
    position: fixed;
    inset: 0;
    z-index: 100000;
    background: var(--black);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 1.4s cubic-bezier(0.45, 0, 0.15, 1), visibility 1.4s cubic-bezier(0.45, 0, 0.15, 1);
}

#preloader.loaded {
    opacity: 0;
    visibility: hidden;
}

#preloader.loaded .preloader-inner {
    transform: scale(1.08);
    opacity: 0;
    transition: transform 1.4s cubic-bezier(0.45, 0, 0.15, 1), opacity 1s cubic-bezier(0.45, 0, 0.15, 1);
}

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

.preloader-logo-img {
    width: 280px;
    height: auto;
    margin-bottom: 30px;
    opacity: 0;
    animation: preloaderLogoFade 1s ease forwards 0.3s;
}

@keyframes preloaderLogoFade {
    to { opacity: 1; }
}

.preloader-bar {
    width: 200px;
    height: 1px;
    background: var(--dark-3);
    margin: 0 auto;
    overflow: hidden;
}

.preloader-bar-fill {
    height: 100%;
    background: var(--gold);
    width: 0;
    animation: preloaderFill 1.8s var(--ease-out-expo) forwards;
}

@keyframes drawLine {
    to { stroke-dashoffset: 0; }
}

@keyframes preloaderFill {
    to { width: 100%; }
}

/* --- Navigation --- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 24px 0;
    background: rgba(255, 255, 255, 1);
    transition: all 0.4s var(--ease-out-expo);
}

.navbar.navbar-transparent {
    background: transparent;
}

.navbar.scrolled,
.navbar.navbar-transparent.scrolled {
    padding: 12px 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.nav-container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--container-pad);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.nav-logo {
    flex-shrink: 0;
}

.nav-logo-img,
.nav-logo-svg {
    height: 48px;
    width: auto;
    transition: all 0.4s var(--ease-out-expo);
}

.navbar.navbar-transparent .nav-logo-img,
.navbar.navbar-transparent .nav-logo-svg {
    filter: brightness(0) invert(1);
}

.navbar.scrolled .nav-logo-img,
.navbar.scrolled .nav-logo-svg {
    height: 38px;
    filter: none;
}

.nav-links {
    display: none;
    gap: 24px;
}

.nav-link {
    font-size: 13px;
    font-weight: 400;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--gray-light);
    position: relative;
    padding: 4px 0;
    transition: color 0.3s ease;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--red);
    transition: width 0.4s var(--ease-out-expo);
}

.nav-link:hover {
    color: var(--white);
}

.nav-link:hover::after {
    width: 100%;
}

.nav-link.active {
    color: var(--gold);
}

.nav-link.active::after {
    width: 100%;
    background: var(--gold);
}

.nav-cta {
    display: none;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    font-weight: 400;
    letter-spacing: 1px;
    color: var(--gold);
    padding: 10px 20px;
    border: 1px solid var(--gold-dim);
    border-radius: 100px;
    transition: all 0.3s ease;
    white-space: nowrap;
    flex-shrink: 0;
}

.nav-cta:hover {
    background: var(--gold-dim);
    border-color: var(--gold);
}

.nav-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 1001;
    position: absolute;
    right: var(--container-pad);
    width: 44px;
    height: 44px;
}

.nav-toggle svg {
    width: 36px;
    height: 28px;
}

/* Burger lines */
.nav-toggle .burger-line {
    stroke: var(--white);
    stroke-width: 3;
    stroke-linecap: round;
    transition: all 0.5s cubic-bezier(0.77, 0, 0.18, 1);
    transform-origin: center;
}

.navbar.navbar-transparent .nav-toggle .burger-line {
    stroke: #ffffff;
}

.navbar.scrolled .nav-toggle .burger-line {
    stroke: var(--white);
}

.nav-toggle.active .burger-line-1 {
    opacity: 0;
    transform: translateY(4px);
}

.nav-toggle.active .burger-line-2 {
    opacity: 0;
    transform: scaleX(0);
}

.nav-toggle.active .burger-line-3 {
    opacity: 0;
    transform: translateY(-4px);
}

/* DA logo paths — stroke draw */
.nav-toggle .da-path {
    fill: none;
    stroke: #ED1C24;
    stroke-width: 3;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-dasharray: 500;
    stroke-dashoffset: 500;
    opacity: 0;
    transition: stroke-dashoffset 0.5s cubic-bezier(0.77, 0, 0.18, 1), opacity 0.2s ease 0.25s, fill 0.01s ease 0s;
}

.nav-toggle.active .da-path {
    stroke-dashoffset: 0;
    opacity: 1;
    fill: #ED1C24;
    transition: stroke-dashoffset 1.4s cubic-bezier(0.77, 0, 0.18, 1) 0.15s, opacity 0.15s ease, fill 0.3s ease 1.3s;
}

.nav-toggle.active .da-path-a {
    transition-delay: 0.4s, 0.1s, 1.5s;
}

/* Burger lines — timing for open/close */
.nav-toggle .burger-line {
    transition: all 0.4s cubic-bezier(0.77, 0, 0.18, 1) 0.2s;
}

.nav-toggle.active .burger-line {
    transition: all 0.3s cubic-bezier(0.77, 0, 0.18, 1);
}

/* Mobile Menu — Slide-in Side Panel */
.mobile-menu-backdrop {
    position: fixed;
    inset: 0;
    z-index: 998;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s var(--ease-out-expo), visibility 0.4s;
}

.mobile-menu-backdrop.active {
    opacity: 1;
    visibility: visible;
}

.mobile-menu {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: 75%;
    max-width: 380px;
    z-index: 999;
    background: var(--white);
    display: flex;
    flex-direction: column;
    padding: 100px 32px 40px;
    transform: translateX(100%);
    transition: transform 0.5s var(--ease-out-expo);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.mobile-menu.active {
    transform: translateX(0);
}

.mobile-menu-close {
    display: none;
    position: absolute;
    top: 24px;
    right: 24px;
    background: none;
    border: none;
    color: var(--gold);
    cursor: pointer;
    padding: 8px;
    transition: opacity 0.3s ease;
}

.mobile-menu-close:hover {
    opacity: 0.7;
}

.mobile-menu-inner {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.mobile-link {
    display: block;
    font-family: var(--font-display);
    font-size: clamp(22px, 5vw, 28px);
    color: var(--black);
    padding: 16px 0;
    border-bottom: 1px solid var(--gold-dim);
    text-decoration: none;
    opacity: 0;
    transform: translateX(30px);
    transition: opacity 0.4s var(--ease-out-expo),
                transform 0.4s var(--ease-out-expo),
                color 0.3s ease;
}

.mobile-link:first-child {
    border-top: 1px solid var(--gold-dim);
}

.mobile-link:hover,
.mobile-link:focus {
    color: var(--gold);
}

.mobile-link.active {
    color: var(--gold);
}

.mobile-menu.active .mobile-link {
    opacity: 1;
    transform: translateX(0);
}

.mobile-menu.active .mobile-link:nth-child(1) { transition-delay: 0.15s; }
.mobile-menu.active .mobile-link:nth-child(2) { transition-delay: 0.2s; }
.mobile-menu.active .mobile-link:nth-child(3) { transition-delay: 0.25s; }
.mobile-menu.active .mobile-link:nth-child(4) { transition-delay: 0.3s; }
.mobile-menu.active .mobile-link:nth-child(5) { transition-delay: 0.35s; }
.mobile-menu.active .mobile-link:nth-child(6) { transition-delay: 0.4s; }
.mobile-menu.active .mobile-link:nth-child(7) { transition-delay: 0.45s; }

.mobile-menu-footer {
    margin-top: auto;
    padding-top: 32px;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.4s var(--ease-out-expo) 0.4s,
                transform 0.4s var(--ease-out-expo) 0.4s;
}

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

.mobile-phone {
    display: block;
    font-family: var(--font-accent);
    font-size: 22px;
    color: var(--gold);
    letter-spacing: 2px;
    margin-bottom: 8px;
    text-decoration: none;
}

.mobile-phone:hover {
    color: var(--gold-light);
}

.mobile-address {
    font-size: 13px;
    color: var(--gray);
    line-height: 1.5;
}

/* nav-links, nav-cta hidden and nav-toggle shown at all breakpoints */

@media (max-width: 768px) {
    .nav-container {
        justify-content: flex-start;
    }
}

/* --- Hero Section --- */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow-x: hidden;
    overflow-y: visible;
    padding: 180px 0 200px;
    background: url('../assets/projects/storefront-hero.webp') center center / cover no-repeat;
    color: #ffffff;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 300px;
    background: linear-gradient(to bottom, transparent 0%, rgba(255,255,255,0.05) 30%, rgba(255,255,255,0.3) 60%, var(--black) 100%);
    z-index: 2;
    pointer-events: none;
}

.hero .title-word:not(.title-italic) {
    color: #ffffff;
}

.hero .hero-subtitle {
    color: rgba(255, 255, 255, 0.8);
}

.hero .btn-ghost {
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.3);
}

.hero .btn-ghost:hover {
    border-color: var(--gold);
    color: var(--gold);
}

.hero .hero-partners-label {
    color: rgba(255, 255, 255, 0.6);
}

.hero .hero-partner-logo {
    filter: brightness(0) invert(1) grayscale(20%);
}

.hero .hero-partner-logo:hover {
    filter: brightness(0) invert(1) grayscale(0%);
}

.hero .hero-partners-divider {
    background: rgba(255, 255, 255, 0.3);
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-gradient {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 80% 60% at 50% 40%, rgba(237, 28, 36, 0.04) 0%, transparent 60%),
        radial-gradient(ellipse 60% 80% at 20% 80%, rgba(201, 169, 110, 0.04) 0%, transparent 50%),
        radial-gradient(ellipse 40% 40% at 80% 20%, rgba(237, 28, 36, 0.03) 0%, transparent 50%),
        linear-gradient(180deg, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.55) 50%, rgba(0,0,0,0.75) 100%);
}

.hero-noise {
    position: absolute;
    inset: 0;
    opacity: 0.03;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='1'/%3E%3C/svg%3E");
    background-size: 256px;
}

.hero-grid-overlay {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(201, 169, 110, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(201, 169, 110, 0.03) 1px, transparent 1px);
    background-size: 80px 80px;
    mask-image: radial-gradient(ellipse 70% 70% at 50% 50%, black 20%, transparent 70%);
    -webkit-mask-image: radial-gradient(ellipse 70% 70% at 50% 50%, black 20%, transparent 70%);
}

.hero-particles {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 0 var(--container-pad);
    max-width: 900px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 16px;
    font-size: 12px;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 32px;
}

.badge-line {
    display: block;
    width: 40px;
    height: 1px;
    background: var(--gold);
    opacity: 0.5;
}

.hero-title {
    font-family: var(--font-display);
    font-weight: 400;
    line-height: 1.1;
    margin-bottom: 28px;
}

.title-line {
    display: block;
    overflow: hidden;
    padding-bottom: 0.25em;
}

.title-word {
    display: inline-block;
    font-size: clamp(48px, 8vw, 96px);
    margin-right: 16px;
}

.title-italic {
    font-style: italic;
    color: var(--gold);
}

.hero-subtitle {
    font-size: clamp(16px, 2vw, 20px);
    font-weight: 300;
    color: var(--gray-light);
    line-height: 1.8;
    margin-bottom: 48px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hide-mobile {
    display: inline;
}

@media (max-width: 768px) {
    .hide-mobile { display: none; }
}

.hero-ctas {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 16px 36px;
    font-family: var(--font-body);
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 2px;
    text-transform: uppercase;
    border: none;
    border-radius: 100px;
    cursor: pointer;
    transition: all 0.4s var(--ease-out-expo);
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: var(--gold);
    color: #111111;
}

.btn-primary::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--gold-light);
    transform: translateX(-100%);
    transition: transform 0.5s var(--ease-out-expo);
    border-radius: inherit;
}

.btn-primary:hover::before {
    transform: translateX(0);
}

.btn-primary span,
.btn-primary svg {
    position: relative;
    z-index: 1;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 40px rgba(237, 28, 36, 0.2), 0 4px 20px rgba(201, 169, 110, 0.15);
}

.btn-primary svg {
    transition: transform 0.3s var(--ease-out-expo);
}

.btn-primary:hover svg {
    transform: translateX(4px);
}

.btn-ghost {
    background: transparent;
    color: var(--white);
    border: 1px solid rgba(0, 0, 0, 0.15);
}

.btn-ghost:hover {
    border-color: var(--gold);
    color: var(--gold);
    transform: translateY(-2px);
}

.btn-full {
    width: 100%;
    justify-content: center;
}

/* Hero Partner Logos */
.hero-partners {
    margin-top: 48px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.hero-partners-label {
    font-size: 11px;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: var(--gray-dark);
}

.hero-partners-logos {
    display: flex;
    align-items: center;
    gap: 32px;
}

.hero-partner-logo {
    height: 36px;
    width: auto;
    opacity: 0.7;
    transition: opacity 0.4s ease, transform 0.4s var(--ease-out-expo);
    filter: grayscale(20%);
}

.hero-partner-logo:hover {
    opacity: 1;
    transform: scale(1.08);
    filter: grayscale(0%);
}

.hero-partners-divider {
    width: 1px;
    height: 28px;
    background: var(--dark-4);
}

@media (max-width: 480px) {
    .hero-partners-logos { gap: 20px; }
    .hero-partner-logo { height: 28px; }
}

/* Scroll indicator */
.hero-scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    z-index: 2;
}

.scroll-line {
    width: 1px;
    height: 60px;
    background: linear-gradient(to bottom, var(--red), transparent);
    animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
    0%, 100% { opacity: 1; transform: scaleY(1); }
    50% { opacity: 0.5; transform: scaleY(0.6); transform-origin: top; }
}

.hero-scroll-indicator span {
    font-size: 10px;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--gray);
    writing-mode: vertical-rl;
}

/* Soundwave decoration */
.hero-soundwave {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60px;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: 4px;
    padding-bottom: 0;
    z-index: 1;
    opacity: 0.15;
}

.wave-bar {
    width: 3px;
    background: var(--red);
    border-radius: 2px 2px 0 0;
    animation: waveAnim 1.5s ease-in-out infinite;
    animation-delay: calc(var(--i) * 0.1s);
}

@keyframes waveAnim {
    0%, 100% { height: 10px; }
    50% { height: calc(15px + var(--i) * 3px); }
}

/* --- Section Styles --- */
.section {
    padding: var(--section-pad) 0;
    position: relative;
}

main > .section:first-child {
    padding-top: calc(var(--section-pad) + 50px);
}

.section-header {
    text-align: center;
    margin-bottom: clamp(48px, 6vh, 80px);
}

.section-tag {
    display: inline-block;
    font-size: 12px;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 20px;
    position: relative;
}

.section-tag::before,
.section-tag::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 30px;
    height: 1px;
    background: var(--gold);
    opacity: 0.4;
}

.section-tag::before {
    right: calc(100% + 16px);
}

.section-tag::after {
    left: calc(100% + 16px);
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(36px, 5vw, 64px);
    font-weight: 400;
    line-height: 1.15;
    color: var(--white);
}

.section-title em {
    color: var(--gold);
    font-style: italic;
}

.section-subtitle {
    font-size: clamp(15px, 1.5vw, 18px);
    color: var(--gray);
    max-width: 600px;
    margin: 20px auto 0;
    line-height: 1.8;
}

/* --- About Section --- */
.about-image-feature {
    margin-bottom: 60px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    position: relative;
    max-height: 400px;
}

.about-feature-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 40%;
    filter: brightness(0.8);
}

.about-image-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 16px 24px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.6), transparent);
    font-size: 13px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #c9a96e;
}

.about {
    background:
        radial-gradient(ellipse 50% 50% at 0% 50%, rgba(201, 169, 110, 0.03) 0%, transparent 50%),
        var(--black);
}

.about-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 60px;
    align-items: start;
    margin-bottom: 80px;
}

@media (max-width: 768px) {
    .about-grid {
        grid-template-columns: 1fr;
        gap: 40px;
        margin-bottom: 60px;
    }
}

.about-split {
    display: grid;
    grid-template-columns: 1fr 1.8fr;
    gap: 0;
    align-items: stretch;
    margin: 0 calc(-1 * var(--container-pad));
    min-height: 350px;
}

.about-left {
    padding: 60px var(--container-pad) 60px var(--container-pad);
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    z-index: 1;
}

.about-left .about-stats {
    margin-top: 40px;
}

.about-right {
    position: relative;
}

.about-right::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    width: 120px;
    background: linear-gradient(to right, var(--black), transparent);
    z-index: 2;
    pointer-events: none;
}

.about-slideshow {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 350px;
    overflow: hidden;
}

@media (max-width: 768px) {
    .about-split {
        grid-template-columns: 1fr;
        margin: 0;
    }

    .about-left {
        padding: 40px var(--container-pad);
    }

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

    .about-left .about-stats {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .about-right {
        padding: 0 var(--container-pad);
    }

    .about-right::before {
        display: none;
    }

    .about-slideshow {
        min-height: 300px;
        height: 300px;
        border-radius: var(--radius-lg);
        border: 1px solid var(--dark-3);
    }

    .about-left .section-header {
        text-align: center !important;
    }
}

.about-lead {
    font-size: clamp(18px, 2vw, 22px);
    font-weight: 400;
    line-height: 1.7;
    color: var(--white);
    margin-bottom: 24px;
}

.about-text p {
    color: var(--gray-light);
    margin-bottom: 20px;
    font-size: 16px;
}

.about-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.stat-card {
    padding: 32px;
    background: var(--dark-2);
    border: 1px solid var(--dark-3);
    border-radius: var(--radius);
    text-align: center;
    transition: all 0.4s var(--ease-out-expo);
}

.stat-card:hover {
    border-color: var(--gold-dim);
    transform: translateY(-4px);
}

.stat-number {
    font-family: var(--font-accent);
    font-size: 48px;
    color: var(--red);
    line-height: 1;
}

.stat-suffix {
    font-family: var(--font-accent);
    font-size: 32px;
    color: var(--red);
}

.stat-label {
    display: block;
    font-size: 12px;
    letter-spacing: 1px;
    color: var(--gray);
    margin-top: 8px;
    text-transform: uppercase;
}

.stat-text-value {
    font-family: var(--font-display);
    font-size: 24px;
    font-style: italic;
    color: var(--gold);
    line-height: 1.2;
    display: block;
}

/* Philosophy quote */
.about-philosophy {
    text-align: center;
    padding: 60px 40px;
    background: var(--dark-2);
    border: 1px solid var(--dark-3);
    border-radius: var(--radius-lg);
    position: relative;
}

.philosophy-icon {
    margin-bottom: 24px;
}

.philosophy-quote {
    font-family: var(--font-display);
    font-size: clamp(20px, 2.5vw, 28px);
    font-style: italic;
    line-height: 1.6;
    color: var(--white);
    max-width: 700px;
    margin: 0 auto 20px;
}

.philosophy-cite {
    font-size: 14px;
    color: var(--gold);
    letter-spacing: 2px;
    font-style: normal;
}

/* --- Storefront Section --- */
.storefront-section {
    padding: 0 0 40px;
}

.storefront-image-wrapper {
    max-width: 80%;
    margin: 0 auto;
    text-align: center;
}

.storefront-img {
    width: 100%;
    border-radius: var(--radius-lg);
    border: 1px solid var(--dark-3);
    object-fit: cover;
}

.storefront-caption {
    display: block;
    margin-top: 14px;
    font-family: var(--font-body);
    font-size: 11px;
    font-weight: 400;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: #c9a96e;
}

@media (max-width: 768px) {
    .storefront-image-wrapper {
        max-width: 100%;
    }
}

/* --- Services Section --- */
.services {
    background:
        radial-gradient(ellipse 60% 40% at 100% 0%, rgba(201, 169, 110, 0.04) 0%, transparent 50%),
        var(--dark);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

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

.service-card {
    position: relative;
}

.service-card-inner {
    padding: 48px 40px;
    background: var(--dark-2);
    border: 1px solid var(--dark-3);
    border-radius: var(--radius-lg);
    height: 100%;
    position: relative;
    overflow: hidden;
    transition: all 0.5s var(--ease-out-expo);
    display: flex;
    flex-direction: column;
}

.service-card:hover .service-card-inner {
    border-color: rgba(237, 28, 36, 0.25);
    transform: translateY(-4px);
}

.service-card-glow {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at center, rgba(237, 28, 36, 0.05) 0%, transparent 50%);
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
}

.service-card:hover .service-card-glow {
    opacity: 1;
}

.service-icon {
    width: 64px;
    height: 64px;
    color: var(--gold);
    margin-bottom: 24px;
}

.service-number {
    font-family: var(--font-accent);
    font-size: 64px;
    color: var(--dark-3);
    position: absolute;
    top: 24px;
    right: 32px;
    line-height: 1;
    transition: color 0.5s ease;
}

.service-card:hover .service-number {
    color: var(--dark-4);
}

.service-title {
    font-family: var(--font-display);
    font-size: 28px;
    font-weight: 500;
    margin-bottom: 16px;
    color: var(--white);
}

.service-desc {
    font-size: 15px;
    color: var(--gray-light);
    line-height: 1.8;
    margin-bottom: 24px;
    flex-grow: 1;
}

.service-features {
    list-style: none;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 24px;
}

.service-features li {
    font-size: 13px;
    color: var(--gray);
    padding-left: 16px;
    position: relative;
}

.service-features li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 8px;
    width: 6px;
    height: 1px;
    background: var(--red);
}

@media (max-width: 480px) {
    .service-features {
        grid-template-columns: 1fr;
    }
    .service-card-inner {
        padding: 32px 24px;
    }
}

/* Service partner logos */
.service-partner-logos {
    margin-top: auto;
    padding-top: 20px;
    border-top: 1px solid var(--dark-3);
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    gap: 20px 36px;
    justify-content: center;
    min-height: 62px;
}

.service-logo-img {
    width: auto;
    max-width: 110px;
    height: 28px;
    object-fit: contain;
    opacity: 0.45;
    flex-shrink: 1;
    transition: opacity 0.3s ease;
}

.service-card:hover .service-logo-img {
    opacity: 0.75;
}

.service-logo-kaleidescape {
    max-width: 110px;
    height: 36px;
}

/* Brand logo size overrides */
img[alt="Aragon"].brand-logo-img {
    position: relative;
    top: 3px;
}

img[alt="Acurus"].brand-logo-img {
    width: 100px;
    height: 40px;
}

img[alt="No. 8 Lighting"].brand-logo-img {
    width: 140px;
    height: 56px;
}

img[alt="No. 8 Lighting"].service-logo-img {
    height: 44px;
}

img[alt="Sonance"].service-logo-img {
    max-width: 140px;
}

img[alt="Draper"].service-logo-img {
    max-width: 120px;
    height: 36px;
}

img[alt="Draper"].brand-logo-img {
    width: 120px;
    height: 50px;
}

/* --- Video Hero Background --- */
.hero-video-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.hero-video-bg.is-playing {
    opacity: 1;
}

/* --- Outdoor Page Hero --- */
.outdoor-page-hero {
    background: #1a1a1a url('../assets/outdoor/outdoor-hero-poster.webp') center center / cover no-repeat;
}

/* --- AI Automation (Services) Page Hero --- */
.services-page-hero {
    background: #1a1a1a url('../assets/services/josh-hero-poster.webp') center center / cover no-repeat;
}

/* --- Contact Page Hero --- */
.contact-page-hero {
    background: url('../assets/projects/contact-hero.webp') center center / cover no-repeat;
}

/* --- Projects Page Hero --- */
.projects-page-hero {
    background: url('../assets/projects/projects-hero.webp') center center / cover no-repeat;
}

/* --- Careers Page --- */
.careers-page-hero {
    background: url('../assets/projects/careers-hero.webp') center 60% / cover no-repeat;
}

.careers-content {
    background: var(--black);
    padding: 80px 0 120px;
    text-align: center;
}

.careers-body {
    max-width: 860px;
    margin: 0 auto;
}

.careers-body p {
    font-family: var(--font-body);
    font-size: 1.15rem;
    line-height: 1.8;
    color: var(--gray);
    margin-bottom: 24px;
}

.careers-email {
    color: var(--gold);
    font-style: italic;
    font-weight: 500;
    text-decoration: none;
    border-bottom: 1px solid var(--gold-dim);
    padding-bottom: 1px;
    transition: color 0.3s ease, border-color 0.3s ease;
}

.careers-email:hover {
    color: var(--gold-light);
    border-bottom-color: var(--gold-light);
}

/* --- Home Audio Section --- */
/* --- Audio Page Hero --- */
.audio-page-hero {
    background: #1a1a1a url('../assets/services/bw-hero-poster.webp') center center / cover no-repeat;
}

.home-audio {
    background:
        radial-gradient(ellipse 50% 40% at 100% 50%, rgba(201, 169, 110, 0.03) 0%, transparent 50%),
        var(--dark);
}

.audio-brands-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
    max-width: 900px;
    margin: 0 auto;
}

@media (max-width: 768px) {
    .audio-brands-grid { grid-template-columns: repeat(3, 1fr); gap: 20px; }
}

@media (max-width: 480px) {
    .audio-brands-grid { grid-template-columns: repeat(2, 1fr); }
}

.audio-brand-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 24px 16px;
    border-radius: var(--radius);
    transition: transform 0.3s ease, background 0.3s ease;
}

.audio-brand-item:hover {
    transform: translateY(-4px);
    background: var(--dark-2);
}

.audio-brand-item .brand-logo-img {
    width: 120px;
    height: 45px;
    object-fit: contain;
}

.brand-sub {
    font-size: 10px;
    letter-spacing: 1px;
    color: var(--gray-dark);
    margin-top: -6px;
}

/* --- Brands Section --- */
.brands {
    background: var(--black);
}

.brands-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 28px;
    max-width: 1000px;
    margin: 0 auto;
}

@media (max-width: 900px) {
    .brands-grid { grid-template-columns: repeat(4, 1fr); }
}

@media (max-width: 680px) {
    .brands-grid { grid-template-columns: repeat(3, 1fr); gap: 16px; }
}

@media (max-width: 440px) {
    .brands-grid { grid-template-columns: repeat(2, 1fr); }
}

.brand-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 20px 12px;
    border-radius: var(--radius);
    transition: transform 0.3s ease, background 0.3s ease;
}

.brand-item:hover {
    transform: translateY(-4px);
    background: var(--dark-2);
}

.brand-logo-img {
    width: 100px;
    height: 40px;
    object-fit: contain;
    opacity: 0.55;
    transition: opacity 0.3s ease;
}

.brand-item:hover .brand-logo-img {
    opacity: 1;
}

.brand-name {
    display: none;
}

/* --- Marquee --- */
.marquee-section {
    padding: 40px 0;
    overflow: hidden;
    border-top: 1px solid var(--dark-3);
    border-bottom: 1px solid var(--dark-3);
    background: var(--dark);
}

.marquee-track {
    display: flex;
    width: max-content;
    animation: marquee 25s linear infinite;
}

.marquee-content {
    display: flex;
    align-items: center;
    gap: 40px;
    padding-right: 40px;
    white-space: nowrap;
}

.marquee-content span {
    font-family: var(--font-accent);
    font-size: clamp(24px, 4vw, 48px);
    letter-spacing: 4px;
    color: #c0c0c0;
    transition: color 0.3s ease;
}

.marquee-content span:hover {
    color: var(--gold);
}

.marquee-dot {
    width: 8px !important;
    height: 8px;
    background: var(--red);
    border-radius: 50%;
    display: inline-block;
    font-size: 0 !important;
    flex-shrink: 0;
}

@keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* --- Outdoor Services Section --- */
.outdoor-services {
    background:
        radial-gradient(ellipse 50% 40% at 0% 50%, rgba(201, 169, 110, 0.03) 0%, transparent 50%),
        var(--dark);
}

.outdoor-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

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

.outdoor-cards {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.outdoor-card {
    display: flex;
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--dark-3);
    background: var(--dark-2);
    transition: border-color 0.4s ease;
    height: 400px;
}

.outdoor-card:hover {
    border-color: var(--gold);
}

.outdoor-card-image {
    flex: 0 0 45%;
    overflow: hidden;
    border-radius: inherit;
}

.outdoor-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s var(--ease-out-expo), opacity 2.5s ease-in-out;
}

.outdoor-card:hover .outdoor-card-image img {
    transform: scale(1.05);
}

.outdoor-card-content {
    flex: 1;
    padding: 32px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow: hidden;
}

.outdoor-card-content .service-number {
    font-family: var(--font-accent);
    font-size: 14px;
    letter-spacing: 3px;
    color: var(--gold);
    margin-bottom: 8px;
}

.outdoor-card-content .service-title {
    font-family: var(--font-display);
    font-size: 24px;
    font-weight: 500;
    color: var(--white);
    margin-bottom: 12px;
}

.outdoor-card-content .service-desc {
    font-size: 15px;
    line-height: 1.7;
    color: var(--gray-2);
    margin-bottom: 16px;
}

.outdoor-card-content .service-features {
    list-style: none;
    padding: 0;
    margin: 0 0 16px 0;
}

.outdoor-card-content .service-features li {
    position: relative;
    padding-left: 16px;
    font-size: 14px;
    color: var(--gray-2);
    margin-bottom: 6px;
}

.outdoor-card-content .service-features li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 8px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--gold);
}

.outdoor-card-content .service-partner-logos {
    display: flex;
    gap: 36px;
    align-items: center;
    margin-top: auto;
}

@media (max-width: 768px) {
    .outdoor-card {
        flex-direction: column;
    }

    .outdoor-card {
        height: auto;
    }

    .outdoor-card-image {
        flex: none;
        height: 200px;
    }

    .outdoor-card-content {
        padding: 24px;
    }
}

/* --- Projects Section --- */
.projects {
    background:
        radial-gradient(ellipse 50% 40% at 0% 100%, rgba(201, 169, 110, 0.04) 0%, transparent 50%),
        var(--black);
}

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

.project-card {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    aspect-ratio: 4/3;
    cursor: pointer;
    border: 1px solid var(--dark-3);
    transition: border-color 0.4s ease;
}

.project-card:hover {
    border-color: rgba(237, 28, 36, 0.3);
}

.project-card.project-large {
    grid-column: span 2;
}

.project-image {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.project-image img,
.project-image video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s var(--ease-out-expo), filter 0.7s ease;
    filter: brightness(0.7) saturate(0.9);
}

/* Crestron Home UI Showcase */
.crestron-showcase {
    padding: 100px 0 120px;
    background: linear-gradient(180deg, #f8f8f8 0%, #ffffff 30%, #ffffff 70%, #f8f8f8 100%);
    overflow: hidden;
}

.crestron-showcase .section-header {
    margin-bottom: 48px;
}

/* --- App Download Button (slide-down store reveal) --- */
.app-download-wrap {
    display: flex;
    justify-content: center;
    margin: 0 0 64px;
}

.app-download {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 250px;
    height: 60px;
    padding: 0 44px;
    background: #111111;
    border-radius: 100px;
    overflow: hidden;
    cursor: pointer;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18);
    transition: transform 0.4s var(--ease-out-expo), box-shadow 0.4s var(--ease-out-expo);
}

@media (hover: hover) {
    .app-download:hover {
        transform: translateY(-2px);
        box-shadow: 0 16px 44px rgba(0, 0, 0, 0.25);
    }
}

.app-download-label {
    font-family: var(--font-body);
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #ffffff;
    white-space: nowrap;
    pointer-events: none;
}

.app-download-stores {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: stretch;
    background: var(--gold);
    transform: translateY(-100%);
    transition: transform 0.45s var(--ease-out-expo);
    pointer-events: none;
}

.app-download.is-open .app-download-stores {
    transform: translateY(0);
    pointer-events: auto;
}

@media (hover: hover) {
    .app-download:hover .app-download-stores {
        transform: translateY(0);
        pointer-events: auto;
    }
}

.app-store-link {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #111111;
    transition: background 0.25s ease, color 0.25s ease;
}

.app-store-link + .app-store-link {
    border-left: 1px solid rgba(17, 17, 17, 0.18);
}

.app-store-link:hover {
    background: var(--gold-light);
    color: #000000;
}

.app-store-link svg {
    width: 26px;
    height: 26px;
    fill: currentColor;
}

.crestron-showcase-layout {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 400px;
}

/* The UI screenshot tile */
.crestron-ui-tile {
    position: relative;
    max-width: 520px;
    width: 100%;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.12), 0 8px 20px rgba(0, 0, 0, 0.08);
    transition: transform 0.6s var(--ease-out-expo), box-shadow 0.6s ease;
}

.crestron-ui-tile:hover {
    transform: translateY(-4px);
    box-shadow: 0 32px 80px rgba(0, 0, 0, 0.16), 0 12px 28px rgba(0, 0, 0, 0.1);
}

.crestron-ui-tile img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 16px;
}

/* Overlay card highlighting automation control */
.crestron-overlay-card {
    position: absolute;
    right: -40px;
    bottom: -32px;
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 16px;
    padding: 32px 36px;
    max-width: 320px;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.1), 0 4px 12px rgba(0, 0, 0, 0.06);
    z-index: 2;
    transition: transform 0.6s var(--ease-out-expo), box-shadow 0.6s ease;
}

.crestron-overlay-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 24px 56px rgba(0, 0, 0, 0.14), 0 6px 16px rgba(0, 0, 0, 0.08);
}

.crestron-overlay-tag {
    font-family: var(--font-body);
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 12px;
    display: block;
}

.crestron-overlay-title {
    font-family: var(--font-heading);
    font-size: 22px;
    font-weight: 500;
    color: #1a1a1a;
    margin-bottom: 12px;
    line-height: 1.3;
}

.crestron-overlay-desc {
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 300;
    color: #666;
    line-height: 1.6;
    margin-bottom: 20px;
}

.crestron-overlay-features {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.crestron-overlay-features li {
    font-family: var(--font-body);
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.5px;
    color: #555;
    background: #f5f5f5;
    padding: 6px 12px;
    border-radius: 20px;
}

@media (max-width: 768px) {
    .crestron-showcase {
        padding: 72px 0 80px;
    }

    .crestron-showcase-layout {
        flex-direction: column;
        min-height: auto;
    }

    .crestron-ui-tile {
        max-width: 100%;
    }

    .crestron-overlay-card {
        position: relative;
        right: auto;
        bottom: auto;
        margin-top: -40px;
        max-width: 100%;
    }
}

/* --- Josh.ai App Showcase --- */
.josh-showcase {
    padding: 48px 0 120px;
    background: linear-gradient(180deg, #f8f8f8 0%, #ffffff 35%, #ffffff 100%);
    overflow: hidden;
}

.josh-showcase .app-download-wrap {
    margin: 0 0 72px;
}

.josh-showcase-layout {
    position: relative;
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 56px;
}

.josh-app-unit {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.josh-phone-tile {
    position: relative;
    z-index: 1;
    flex-shrink: 0;
    width: 100%;
    max-width: 235px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.14), 0 8px 20px rgba(0, 0, 0, 0.08);
    transition: transform 0.6s var(--ease-out-expo), box-shadow 0.6s ease;
}

.josh-phone-tile:hover {
    transform: translateY(-4px);
    box-shadow: 0 32px 80px rgba(0, 0, 0, 0.18), 0 12px 28px rgba(0, 0, 0, 0.1);
}

.josh-phone-video {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 20px;
}

.josh-overlay-card {
    position: relative;
    z-index: 2;
    margin-left: -16px;
    width: 290px;
    min-height: 424px;
    display: flex;
    flex-direction: column;
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 16px;
    padding: 32px 36px;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.1), 0 4px 12px rgba(0, 0, 0, 0.06);
    transition: transform 0.6s var(--ease-out-expo), box-shadow 0.6s ease;
}

.josh-overlay-card .crestron-overlay-features {
    margin-top: auto;
}

.josh-overlay-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 24px 56px rgba(0, 0, 0, 0.14), 0 6px 16px rgba(0, 0, 0, 0.08);
}

@media (max-width: 768px) {
    .josh-showcase {
        padding: 24px 0 80px;
    }

    .josh-showcase-layout {
        gap: 64px;
    }

    .josh-app-unit {
        flex-direction: column;
    }

    .josh-phone-tile {
        max-width: 240px;
    }

    .josh-overlay-card {
        margin-left: 0;
        margin-top: -40px;
        width: auto;
        max-width: 90%;
        min-height: 0;
    }
}

.project-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.35) 50%, transparent 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 32px;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.5s var(--ease-out-expo);
}

.project-card:hover .project-overlay {
    opacity: 1;
    transform: translateY(0);
}

.project-card:hover .project-image img,
.project-card:hover .project-image video {
    transform: scale(1.08);
    filter: brightness(0.4) saturate(1);
}

.project-category {
    font-size: 11px;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 8px;
}

.project-title {
    font-family: var(--font-display);
    font-size: 22px;
    font-weight: 500;
    margin-bottom: 8px;
    color: #f5f5f0;
}

.project-desc {
    font-size: 14px;
    color: #aaaaaa;
    line-height: 1.6;
}

@media (max-width: 768px) {
    .projects-grid {
        grid-template-columns: 1fr;
    }
    .project-card.project-large {
        grid-column: span 1;
    }
    .project-overlay {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- Testimonial Section --- */
.testimonial-section {
    background: var(--dark);
    padding: 80px 0;
}

.testimonial-card {
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
    padding: 60px 40px;
    position: relative;
}

.testimonial-quote-mark {
    font-family: var(--font-display);
    font-size: 120px;
    color: var(--gold);
    opacity: 0.2;
    line-height: 1;
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
}

.testimonial-text {
    font-family: var(--font-display);
    font-size: clamp(20px, 2.5vw, 28px);
    font-style: italic;
    line-height: 1.6;
    color: var(--white);
    margin-bottom: 24px;
    position: relative;
}

.testimonial-text em {
    color: var(--gold);
}

.testimonial-author {
    font-size: 14px;
    color: var(--gold);
    letter-spacing: 2px;
    font-style: normal;
    display: block;
    margin-bottom: 16px;
}

.testimonial-stars {
    display: flex;
    gap: 4px;
    justify-content: center;
}

/* --- Contact Section --- */
.contact {
    background:
        radial-gradient(ellipse 60% 50% at 100% 100%, rgba(201, 169, 110, 0.04) 0%, transparent 50%),
        var(--black);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: start;
}

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

.contact-info .section-tag {
    text-align: left;
}

.contact-info .section-tag::before {
    display: none;
}

.contact-info .section-title {
    text-align: left;
    margin-bottom: 20px;
}

.contact-text {
    font-size: 16px;
    color: var(--gray-light);
    line-height: 1.8;
    margin-bottom: 40px;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 28px;
}

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

.contact-icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    background: var(--dark-2);
    border: 1px solid var(--dark-3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gold);
}

.contact-item strong {
    font-weight: 600;
    display: block;
    margin-bottom: 4px;
    color: var(--gold);
}

.contact-item p {
    font-size: 14px;
    color: var(--gray-light);
    line-height: 1.6;
}

.contact-item .contact-highlight {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--white-pure);
    font-family: var(--font-display);
    letter-spacing: 0.02em;
    line-height: 1.5;
}

.contact-item .contact-highlight a {
    color: var(--white-pure);
    text-decoration: none;
    border-bottom: 1px solid var(--gold-dim);
    padding-bottom: 1px;
    transition: color 0.3s ease, border-color 0.3s ease;
}

.contact-item .contact-highlight a:hover {
    color: var(--gold);
    border-bottom-color: var(--gold);
}

.contact-item a {
    color: var(--gold);
    transition: color 0.3s ease;
}

.contact-item a:hover {
    color: var(--gold-light);
}

.contact-showroom-img {
    margin-top: 32px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    position: relative;
    border: 1px solid var(--dark-3);
    transition: border-color 0.4s ease;
}

.contact-showroom-img:hover {
    border-color: rgba(237, 28, 36, 0.3);
}

.contact-showroom-img img {
    width: 100%;
    height: 140px;
    object-fit: cover;
    filter: brightness(0.7) saturate(0.9);
    transition: transform 0.7s var(--ease-out-expo), filter 0.7s ease;
}

.contact-showroom-img:hover img {
    transform: scale(1.08);
    filter: brightness(0.4) saturate(1);
}

.contact-showroom-img span {
    position: absolute;
    bottom: 12px;
    left: 16px;
    font-family: var(--font-body);
    font-size: 11px;
    font-weight: 400;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: #c9a96e;
    z-index: 1;
}

/* Contact Form */
.contact-form-wrapper {
    background: var(--dark-2);
    border: 1px solid var(--dark-3);
    border-radius: var(--radius-lg);
    padding: 48px;
}

@media (max-width: 480px) {
    .contact-form-wrapper {
        padding: 32px 24px;
    }
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.form-group {
    position: relative;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    background: transparent;
    border: none;
    border-bottom: 1px solid var(--dark-4);
    padding: 16px 0 12px;
    font-family: var(--font-body);
    font-size: 15px;
    font-weight: 300;
    color: var(--white);
    outline: none;
    transition: border-color 0.3s ease;
}

.form-group select {
    appearance: none;
    cursor: pointer;
}

.form-group select option {
    background: #ffffff;
    color: #1a1a1a;
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.form-group label {
    position: absolute;
    left: 0;
    top: 16px;
    font-size: 14px;
    color: var(--gray);
    pointer-events: none;
    transition: all 0.3s var(--ease-out-expo);
}

.form-group input:focus ~ label,
.form-group input:not(:placeholder-shown) ~ label,
.form-group textarea:focus ~ label,
.form-group textarea:not(:placeholder-shown) ~ label,
.form-group select:focus ~ label,
.form-group select:valid ~ label {
    top: -4px;
    font-size: 11px;
    color: var(--gold);
    letter-spacing: 1px;
    text-transform: uppercase;
}

.form-line {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--red);
    transition: width 0.4s var(--ease-out-expo);
}

.form-group input:focus ~ .form-line,
.form-group textarea:focus ~ .form-line,
.form-group select:focus ~ .form-line {
    width: 100%;
}

/* --- Family (Dogs) Section --- */
.family-section {
    background: var(--dark);
}

.dogs-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
    max-width: 500px;
    margin: 0 auto;
}

@media (max-width: 768px) {
    .dogs-grid { grid-template-columns: repeat(2, 1fr); }
}

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

.dog-photo {
    border-radius: var(--radius-lg);
    overflow: hidden;
    aspect-ratio: 1;
    margin-bottom: 16px;
    border: 1px solid var(--dark-3);
}

.dog-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s var(--ease-out-expo);
}

.dog-card:hover .dog-photo img {
    transform: scale(1.05);
}

.dog-name {
    font-family: var(--font-display);
    font-size: 22px;
    font-weight: 500;
    color: var(--white);
    margin-bottom: 4px;
}

.dog-status {
    font-size: 13px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--gold);
}

.dog-title {
    font-size: 12px;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--gold);
    margin-top: 2px;
}

.dog-memorial .dog-photo {
    opacity: 0.8;
}

.dog-memorial .dog-photo img {
    filter: grayscale(30%) brightness(0.9);
}

/* --- Footer --- */
/* --- Newsletter Signup --- */
/* Hidden Constant Contact relay form — present in the DOM (so CC's widget renders
   and its JS can run) but never seen; the custom gold field is the only visible UI. */
.ctct-offscreen {
    position: absolute;
    left: -9999px;
    top: 0;
    width: 1px;
    height: 1px;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
}

.newsletter {
    position: relative;
    padding: 100px 0;
    background: var(--dark);
}

.newsletter-tile {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
    padding: 84px 40px;
    background: var(--white);
    border-radius: 28px;
    overflow: hidden;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.18);
}

.newsletter-tile::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 70% 90% at 50% 0%, rgba(201, 169, 110, 0.12) 0%, transparent 60%),
        radial-gradient(ellipse 60% 70% at 50% 100%, rgba(201, 169, 110, 0.06) 0%, transparent 55%);
    pointer-events: none;
}

.newsletter-inner {
    position: relative;
    max-width: 640px;
    margin: 0 auto;
    text-align: center;
}

.newsletter-title {
    font-family: var(--font-display);
    font-size: clamp(2.2rem, 5vw, 3.4rem);
    font-weight: 500;
    color: #ffffff;
    line-height: 1.1;
    margin: 18px 0 20px;
}

.newsletter-title em {
    font-style: italic;
    color: var(--gold);
}

.newsletter-sub {
    font-family: var(--font-body);
    font-size: 1.05rem;
    font-weight: 300;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.7);
    margin: 0 auto 40px;
    max-width: 520px;
}

.newsletter-control {
    position: relative;
    display: flex;
    justify-content: center;
    min-height: 62px;
}

.newsletter-pill {
    position: relative;
    height: 62px;
    width: 210px;
    background: var(--gold);
    border-radius: 100px;
    overflow: hidden;
    box-shadow: 0 14px 40px rgba(201, 169, 110, 0.25);
    transition: width 0.55s var(--ease-out-expo), opacity 0.45s ease, transform 0.45s var(--ease-out-expo);
}

.newsletter-form.is-expanded .newsletter-pill {
    width: 460px;
    max-width: 100%;
}

.newsletter-form.is-success .newsletter-pill {
    opacity: 0;
    transform: scale(0.92);
    pointer-events: none;
    visibility: hidden;
    transition: opacity 0.4s ease, transform 0.4s var(--ease-out-expo), visibility 0s linear 0.4s;
}

.newsletter-trigger {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    cursor: pointer;
    font-family: var(--font-body);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #111111;
    white-space: nowrap;
    transition: opacity 0.3s ease;
}

.newsletter-form.is-expanded .newsletter-trigger {
    opacity: 0;
    pointer-events: none;
}

.newsletter-expand {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0 7px 0 26px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease 0.18s;
}

.newsletter-form.is-expanded .newsletter-expand {
    opacity: 1;
    pointer-events: auto;
}

.newsletter-input {
    flex: 1;
    min-width: 0;
    height: 100%;
    background: transparent;
    border: none;
    outline: none;
    font-family: var(--font-body);
    font-size: 15px;
    color: #111111;
}

.newsletter-input::placeholder {
    color: rgba(17, 17, 17, 0.5);
}

.newsletter-submit {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    border: none;
    border-radius: 50%;
    background: #111111;
    color: var(--gold);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s var(--ease-out-expo), background 0.3s ease;
}

.newsletter-submit:hover {
    transform: scale(1.06);
    background: #000000;
}

.newsletter-submit svg {
    width: 18px;
    height: 18px;
}

.newsletter-form.is-invalid .newsletter-pill {
    animation: nlShake 0.4s ease;
    box-shadow: 0 14px 40px rgba(237, 28, 36, 0.28);
}

@keyframes nlShake {
    0%, 100% { transform: translateX(0); }
    20% { transform: translateX(-8px); }
    40% { transform: translateX(8px); }
    60% { transform: translateX(-5px); }
    80% { transform: translateX(5px); }
}

.newsletter-success {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    opacity: 0;
    transform: translateY(10px);
    pointer-events: none;
}

.newsletter-form.is-success .newsletter-success {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.5s ease 0.3s, transform 0.55s var(--ease-out-expo) 0.3s;
}

.newsletter-success-icon {
    width: 30px;
    height: 30px;
    flex-shrink: 0;
    color: var(--gold);
}

.newsletter-success span {
    font-family: var(--font-display);
    font-style: italic;
    font-size: 1.35rem;
    color: #ffffff;
}

@media (max-width: 600px) {
    .newsletter { padding: 64px 0; }
    .newsletter-tile { padding: 56px 24px; border-radius: 20px; }
    .newsletter-success { flex-direction: column; gap: 8px; }
    .newsletter-success span { font-size: 1.1rem; }
}

.footer {
    background: var(--dark);
    border-top: 1px solid var(--dark-3);
    padding: 80px 0 40px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 60px;
    margin-bottom: 60px;
}

@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }
}

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

.footer-logo-img {
    height: 40px;
    width: auto;
    margin-bottom: 44px;
    opacity: 0.7;
}

.footer-tagline {
    font-size: 14px;
    color: var(--gray);
    line-height: 1.7;
    max-width: 280px;
}

.footer-links h4,
.footer-contact h4 {
    font-family: var(--font-body);
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--white);
    margin-bottom: 20px;
}

.footer-links a {
    display: block;
    font-size: 14px;
    color: var(--gray);
    padding: 6px 0;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--gold);
}

.footer-contact p {
    font-size: 14px;
    color: var(--gray);
    line-height: 1.7;
    margin-bottom: 8px;
}

.footer-contact a {
    color: var(--gold);
    transition: color 0.3s ease;
}

.footer-contact a:hover {
    color: var(--gold-light);
}

.footer-bottom {
    padding-top: 30px;
    border-top: 1px solid var(--dark-3);
    text-align: center;
}

.footer-bottom p {
    font-size: 13px;
    color: var(--gray-dark);
    letter-spacing: 1px;
}

/* --- Reveal Animations --- */
.reveal-up {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s var(--ease-out-expo),
                transform 0.8s var(--ease-out-expo);
    transition-delay: var(--delay, 0s);
}

.reveal-up.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* --- Utility --- */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

/* --- Smooth scrollbar styling --- */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: #f5f5f5;
}

::-webkit-scrollbar-thumb {
    background: #cccccc;
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--red-dark);
}

/* --- Tile Gallery (Cycling Images + Ken Burns) --- */
.tile-gallery {
    position: relative;
    cursor: pointer;
    overflow: hidden;
}

.tile-gallery-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    opacity: 0;
    transition: opacity 2.5s ease-in-out;
    will-change: opacity, transform;
}

.tile-gallery-img.active {
    opacity: 1;
}

/* Luxury editorial filter — all tile galleries */
.tile-gallery .tile-gallery-img {
    filter: saturate(0.65) contrast(1.1) brightness(0.95);
}
.tile-gallery::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.15) 0%, transparent 50%);
    pointer-events: none;
    z-index: 2;
    border-radius: inherit;
}

/* Ken Burns: each image gets a unique animation via data-kb attribute */
.tile-gallery-img.active[data-kb="pan-down"] {
    animation: kbPanDown 8s ease-in-out forwards;
}

.tile-gallery-img.active[data-kb="pan-up"] {
    animation: kbPanUp 8s ease-in-out forwards;
}

.tile-gallery-img.active[data-kb="zoom-in"] {
    animation: kbZoomIn 8s ease-in-out forwards;
}

.tile-gallery-img.active[data-kb="zoom-out"] {
    animation: kbZoomOut 8s ease-in-out forwards;
}

.tile-gallery-img.active[data-kb="pan-right"] {
    animation: kbPanRight 8s ease-in-out forwards;
}

.tile-gallery-img.active[data-kb="pan-left"] {
    animation: kbPanLeft 8s ease-in-out forwards;
}

@keyframes kbPanDown {
    0%   { transform: scale(1.15) translateY(-4%); }
    100% { transform: scale(1.15) translateY(4%); }
}

@keyframes kbPanUp {
    0%   { transform: scale(1.2) translateY(8%); }
    100% { transform: scale(1.2) translateY(-8%); }
}

@keyframes kbZoomIn {
    0%   { transform: scale(1.0); }
    100% { transform: scale(1.12); }
}

@keyframes kbZoomOut {
    0%   { transform: scale(1.15); }
    100% { transform: scale(1.02); }
}

@keyframes kbPanRight {
    0%   { transform: scale(1.15) translateX(-3%); }
    100% { transform: scale(1.15) translateX(3%); }
}

@keyframes kbPanLeft {
    0%   { transform: scale(1.15) translateX(3%); }
    100% { transform: scale(1.15) translateX(-3%); }
}

/* --- Lightbox Modal --- */
.lightbox-overlay {
    position: fixed;
    inset: 0;
    z-index: 10000;
    background: rgba(0, 0, 0, 0.92);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.lightbox-overlay.active {
    opacity: 1;
    visibility: visible;
}

.lightbox-content {
    position: relative;
    max-width: 90vw;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.lightbox-img {
    max-width: 90vw;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 4px;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.5);
}

.lightbox-counter {
    margin-top: 16px;
    font-family: var(--font-body);
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
    letter-spacing: 2px;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 24px;
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.7);
    font-size: 40px;
    cursor: pointer;
    z-index: 10001;
    transition: color 0.2s ease;
    line-height: 1;
}

.lightbox-close:hover {
    color: #ffffff;
}

.lightbox-prev,
.lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.7);
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease;
    z-index: 10001;
}

.lightbox-prev:hover,
.lightbox-next:hover {
    background: rgba(255, 255, 255, 0.15);
    color: #ffffff;
}

.lightbox-prev {
    left: 24px;
}

.lightbox-next {
    right: 24px;
}

@media (max-width: 768px) {
    .lightbox-prev,
    .lightbox-next {
        width: 40px;
        height: 40px;
    }

    .lightbox-prev { left: 12px; }
    .lightbox-next { right: 12px; }

    .lightbox-close {
        top: 12px;
        right: 16px;
        font-size: 32px;
    }

    .lightbox-img {
        max-width: 95vw;
        max-height: 75vh;
    }
}
