/* ═══════════════════════════════════════════════════════════════
   DESIGN TOKENS — sourced from क'Laa logo
   Background: warm parchment cream
   Heading: deep espresso brown
   Accent: muted warm gold (arc + lamp)
   ═══════════════════════════════════════════════════════════════ */
:root {
    --cream: #EDE8DF;
    --cream-soft: #F4F0E8;
    --cream-deep: #E4DDD1;
    --espresso: #2C2318;
    --espresso-mid: #4A3D2E;
    --espresso-soft: #6B5A47;
    --gold: #B8924A;
    --gold-light: #D4AE72;
    --gold-pale: #E8D5AC;
    --white: #FFFFFF;
    --ivory: #FDFBF7;

    --font-display: 'Cormorant Garamond', Georgia, serif;
    --font-serif: 'Playfair Display', serif;
    --font-sans: 'Inter', sans-serif;

    --shadow-sm: 0 4px 20px rgba(44, 35, 24, 0.05);
    --shadow-md: 0 12px 50px rgba(44, 35, 24, 0.08);
    --shadow-lg: 0 24px 80px rgba(44, 35, 24, 0.12);

    --ease: cubic-bezier(0.25, 1, 0.5, 1);
    --slow: 0.9s cubic-bezier(0.25, 1, 0.5, 1);
    --mid: 0.45s cubic-bezier(0.25, 1, 0.5, 1);
}

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

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
    width: 100%;
}

body {
    background: var(--cream-soft);
    color: var(--espresso);
    font-family: var(--font-sans);
    line-height: 1.7;
    overflow-x: hidden;
    width: 100%;
    position: relative;
    -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-display);
    font-weight: 400;
    line-height: 1.15;
    color: var(--espresso);
}

p {
    font-size: 1rem;
    font-weight: 300;
    color: var(--espresso-soft);
    line-height: 1.9;
}

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

ul {
    list-style: none;
}

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

/* ─── Layout ─────────────────────────────────────────────────── */
.container {
    max-width: 1340px;
    margin: 0 auto;
    padding: 0 5%;
}

.section-padding {
    padding: 10rem 0;
}

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

.divider {
    height: 1px;
    width: 60px;
    background: linear-gradient(90deg, var(--gold), var(--gold-light) 60%, transparent);
    margin: 1.8rem 0;
}

.divider.center {
    margin: 1.8rem auto;
}

.eyebrow {
    font-family: var(--font-sans);
    font-size: 0.65rem;
    font-weight: 400;
    letter-spacing: 5px;
    text-transform: uppercase;
    color: var(--gold);
    display: block;
    margin-bottom: 1rem;
}

/* ─── Navigation — Glassmorphism Floating Dock ─────────── */
header.liquid-dock {
    position: fixed;
    top: 1.5rem;
    left: 50%;
    transform: translateX(-50%);
    width: max-content;
    z-index: 1000;
    padding: 0.65rem 1.5rem 0.65rem 2rem;
    border-radius: 9999px;
    display: flex;
    align-items: center;
    gap: 2rem;

    /* Glassmorphism Effect */
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(12px) saturate(160%);
    -webkit-backdrop-filter: blur(12px) saturate(160%);

    /* Frosted glass borders */
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow:
        0 8px 32px rgba(31, 38, 135, 0.07),
        inset 0 0 0 1px rgba(255, 255, 255, 0.15);

    transition: all 0.5s cubic-bezier(0.25, 1, 0.5, 1);
}

header.liquid-dock.scrolled {
    top: 1rem;
    background: rgba(255, 255, 255, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow:
        0 8px 32px rgba(31, 38, 135, 0.1),
        inset 0 0 0 1px rgba(255, 255, 255, 0.2);
}

.nav-logo-link {
    display: block;
    line-height: 0;
}

.nav-logo-img {
    height: 22px;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 2px 4px rgba(28, 22, 15, 0.1));
    transition: transform var(--mid);
}

.nav-logo-link:hover .nav-logo-img {
    transform: scale(1.05);
}

.liquid-dock .nav-links {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.dock-item {
    padding: 0.5rem 1.2rem;
    border-radius: 9999px;
    color: var(--espresso);
    text-decoration: none;
    transition: all 0.3s var(--ease);
}

.dock-item span {
    font-family: var(--font-sans);
    font-size: 0.7rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

.dock-item:hover {
    background: rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05), inset 0 1px 1px rgba(255, 255, 255, 0.4);
    transform: translateY(-1px);
}

.dock-item.active {
    background: rgba(107, 90, 71, 0.75);
    /* --espresso-soft with opacity */
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 15px rgba(44, 35, 24, 0.15), inset 0 1px 2px rgba(255, 255, 255, 0.3);
    color: var(--ivory);
}

.dock-item.active span {
    color: var(--ivory);
}

/* ─── Mobile Navigation Drawer & Toggle ────────────────────────── */
.mobile-menu-toggle {
    display: none;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 100;
}

.mobile-menu-toggle .bar {
    display: block;
    width: 25px;
    height: 2px;
    background-color: var(--espresso);
    margin: 5px auto;
    transition: all 0.3s ease-in-out;
}

/* Toggle Active State */
.mobile-menu-toggle.active .bar:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.mobile-menu-toggle.active .bar:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active .bar:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

.mobile-nav-drawer {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    z-index: 90;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s var(--ease);
}

.mobile-nav-drawer.active {
    display: flex;
    opacity: 1;
    pointer-events: auto;
}

.mobile-nav-links {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    text-align: center;
    background: rgba(255, 255, 255, 0);
    padding: 3rem;
    border-radius: 32px;
    border: 1px solid rgba(255, 255, 255, 0.6);
    box-shadow: 0 20px 40px rgba(44, 35, 24, 0.08), inset 0 2px 5px rgba(255, 255, 255, 1);
}

.mobile-dock-item {
    font-family: var(--font-sans);
    font-size: 1.2rem;
    font-weight: 500;
    color: var(--espresso);
    text-transform: uppercase;
    letter-spacing: 2px;
    text-decoration: none;
    padding: 0.8rem 2rem;
    border-radius: 9999px;
    transition: all 0.3s var(--ease);
}

.mobile-dock-item:hover,
.mobile-dock-item:active {
    background: rgba(255, 255, 255, 0.5);
    color: var(--gold);
}

/* ─── Hero ───────────────────────────────────────────────────── */
.hero {
    height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    perspective: 1000px;
}

.hero-layers {
    position: absolute;
    inset: -5%;
    width: 110%;
    height: 110%;
    pointer-events: none;
    transform-style: preserve-3d;
    z-index: 0;
}

.hero-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    /* Restore natural brightness so the logo is legible */
    filter: brightness(0.95) contrast(1.1) sepia(0.1) saturate(1.1);
}

/* Micro-texture simulating lime plaster / honed stone */
.hero-texture {
    position: absolute;
    inset: 0;
    z-index: 1;
    /* SVG Noise Data URI for architectural texture */
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
    opacity: 0.08;
    mix-blend-mode: multiply;
    pointer-events: none;

}

/* Dramatic morning sunbeam entering from upper left */
.hero-sunbeam {
    position: absolute;
    inset: -50%;
    background: linear-gradient(135deg, rgba(255, 235, 195, 0.15) 0%, rgba(255, 235, 195, 0.05) 30%, transparent 60%);
    mix-blend-mode: screen;
    z-index: 3;
    pointer-events: none;
    transform-origin: top left;
    animation: sunbeamShift 45s ease-in-out infinite alternate;
}

/* Warm, downward illumination emitting from the logo's hanging lamp */
.hero-lamp-glow {
    position: absolute;
    /* Aligned perfectly under the lamp in "Kalaa" */
    top: 50%;
    left: 54%;
    width: 300px;
    height: 600px;
    transform-origin: top center;
    transform: translate(-50%, -10%);
    /* Creates a downward spotlight cone effect */
    background: radial-gradient(150px 300px at 50% 0%, rgba(255, 215, 150, 0.4) 0%, rgba(220, 175, 100, 0.1) 40%, transparent 100%);
    mix-blend-mode: screen;
    z-index: 4;
    pointer-events: none;
    animation: lampPulse 25s ease-in-out infinite alternate;
}

/* Final overlay for text contrast and depth */
.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(28, 22, 15, 0.0) 0%, rgba(28, 22, 15, 0.4) 100%);
    z-index: 5;
    pointer-events: none;
}

@keyframes sunbeamShift {
    0% {
        transform: rotate(-2deg) scale(1);
        opacity: 0.8;
    }

    100% {
        transform: rotate(3deg) scale(1.1);
        opacity: 1;
    }
}

@keyframes lampPulse {
    0% {
        opacity: 0.8;
        transform: translate(-50%, -10%) scale(0.98);
    }

    100% {
        opacity: 1;
        transform: translate(-50%, -10%) scale(1.02);
    }
}

.hero-content {
    position: relative;
    z-index: 10;
    /* Above all background layers */
    text-align: center;
    max-width: 680px;
    padding: 0 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    transform-style: preserve-3d;
}

/* Logo image in hero — Animated, transparent PNG, crisp luxury float */
.hero-logo {
    display: block;
    width: clamp(280px, 42vw, 520px);
    height: auto;
    margin-bottom: 0.8rem;
    animation: logoReveal 1.4s cubic-bezier(0.25, 1, 0.5, 1) forwards, logoFloat 10s ease-in-out infinite 1.4s;
    transition: transform var(--slow), filter var(--slow);
    cursor: pointer;
    /* Deep anchoring shadow cast by the sunbeam onto the textured plaster */
    filter: drop-shadow(0 24px 48px rgba(10, 8, 5, 0.65)) drop-shadow(0 4px 12px rgba(10, 8, 5, 0.4));
}

.hero-logo:hover {
    transform: translateY(-2px) scale(1.015);
    filter: drop-shadow(0 32px 64px rgba(10, 8, 5, 0.55)) drop-shadow(0 8px 16px rgba(184, 146, 74, 0.2));
}

@keyframes logoReveal {
    0% {
        opacity: 0;
        transform: translateY(16px) scale(0.97);
        filter: blur(12px) drop-shadow(0 0 0 transparent);
    }

    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
        filter: blur(0px) drop-shadow(0 24px 48px rgba(10, 8, 5, 0.65)) drop-shadow(0 4px 12px rgba(10, 8, 5, 0.4));
    }
}

@keyframes logoFloat {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-2.5px);
    }
}

.hero-rule {
    width: 60px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--gold-light), transparent);
    margin: 1.8rem auto;
    opacity: 0.4;
    /* Dimmed slightly to reduce visual weight */
}

.hero-subtitle {
    font-family: var(--font-display);
    font-size: clamp(1.1rem, 1.8vw, 1.55rem);
    font-style: italic;
    font-weight: 300;
    color: var(--espresso);
    /* Changed to dark brown for legibility on bright backgrounds */
    margin-bottom: 3.5rem;
    letter-spacing: 0.6px;
    line-height: 1.4;
    text-shadow: 0 1px 12px rgba(255, 255, 255, 0.8);
    /* Light glow instead of dark drop shadow */
    animation: subtitleFloat 10s ease-in-out infinite 1.4s;
}

@keyframes subtitleFloat {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-1.5px);
    }
}

.cta-group {
    display: flex;
    gap: 1.2rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    display: inline-block;
    padding: 1.1rem 2.8rem;
    font-family: var(--font-sans);
    font-size: 0.65rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 3.8px;
    border-radius: 9999px;
    border: 1px solid transparent;
    transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    /* Premium easing */
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: linear-gradient(135deg, var(--gold) 0%, #a47f3a 100%);
    color: var(--white);
    border-color: rgba(255, 255, 255, 0.25);
    box-shadow: 0 4px 12px rgba(28, 22, 15, 0.15), 0 1px 2px rgba(255, 255, 255, 0.4) inset;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #a47f3a 0%, var(--espresso) 100%);
    border-color: rgba(184, 146, 74, 0.5);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgba(28, 22, 15, 0.3), 0 4px 8px rgba(184, 146, 74, 0.2), 0 1px 2px rgba(255, 255, 255, 0.2) inset;
}

.btn-outline {
    border-color: rgba(255, 255, 255, 0.4);
    color: var(--ivory);
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(24px) saturate(200%);
    -webkit-backdrop-filter: blur(24px) saturate(200%);
    box-shadow: 0 8px 24px rgba(28, 22, 15, 0.15), 0 1px 1px rgba(255, 255, 255, 0.5) inset;
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.8);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 16px 32px rgba(28, 22, 15, 0.25), 0 1px 2px rgba(255, 255, 255, 0.6) inset;
}

/* Subtle architectural scroll indicator */
.scroll-indicator {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 1px;
    height: 80px;
    background: linear-gradient(to bottom, transparent, rgba(255, 255, 255, 0.4) 50%, transparent);
    z-index: 10;
    animation: scrollBreathe 3s ease-in-out infinite alternate;
    opacity: 0.6;
}

@keyframes scrollBreathe {
    0% {
        transform: translateX(-50%) translateY(0);
        opacity: 0.3;
    }

    100% {
        transform: translateX(-50%) translateY(10px);
        opacity: 0.8;
    }
}


/* ─── Marquee Strip — Liquid Glass Floating Pill Bar ─────────── */
.marquee-strip {
    background: rgba(244, 240, 232, 0.68);
    backdrop-filter: blur(24px) saturate(190%);
    -webkit-backdrop-filter: blur(24px) saturate(190%);
    border-top: 1px solid rgba(255, 255, 255, 0.8);
    border-bottom: 1px solid rgba(184, 146, 74, 0.18);
    box-shadow: 0 10px 30px rgba(44, 35, 24, 0.05);
    padding: 0.95rem 0;
    overflow: hidden;
    white-space: nowrap;
}

.marquee-track {
    display: inline-flex;
    animation: marqueeScroll 35s linear infinite;
}

.marquee-track span {
    font-family: var(--font-sans);
    font-size: 0.6rem;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: var(--espresso);
    font-weight: 500;
    padding: 0 2.5rem;
}

.marquee-track .dot {
    color: var(--gold);
    padding: 0;
    font-size: 0.45rem;
}

@keyframes marqueeScroll {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-50%);
    }
}

/* ─── About Section — Liquid Frame ───────────────────────────── */
.about {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8rem;
    align-items: center;
}

.about-text h2 {
    font-size: clamp(2.6rem, 4vw, 3.8rem);
    margin-bottom: 2rem;
    line-height: 1.1;
}

.about-text p {
    font-size: 1.06rem;
    margin-bottom: 1.4rem;
}

.studio-logo-dropcap {
    float: left;
    height: 4rem;
    /* increased size */
    margin-right: 0.4rem;
    margin-top: 0.1rem;
    mix-blend-mode: multiply;
    /* removes the beige background of the logo */
    pointer-events: none;
}

.about-text .highlight {
    font-family: var(--font-display);
    font-size: clamp(1.5rem, 2.2vw, 1.85rem);
    color: var(--espresso);
    font-style: italic;
    margin-top: 2.5rem;
    line-height: 1.4;
}

.about-image {
    position: relative;
}

/* Offset liquid glass border frame */
.about-image::before {
    content: '';
    position: absolute;
    top: -18px;
    right: -18px;
    width: 100%;
    height: 100%;
    border: 1px solid rgba(184, 146, 74, 0.35);
    border-radius: 36px;
    z-index: 0;
    pointer-events: none;
}

.about-image img {
    width: 100%;
    height: auto;
    border-radius: 28px;
    box-shadow: 0 20px 50px rgba(44, 35, 24, 0.12), 0 1px 3px rgba(255, 255, 255, 0.6) inset;
    position: relative;
    z-index: 1;
}

/* ─── Stats Bar — Liquid Glass Floating Island ─────────────────── */
.stats-bar {
    background: rgba(44, 35, 24, 0.94);
    backdrop-filter: blur(28px) saturate(190%);
    -webkit-backdrop-filter: blur(28px) saturate(190%);
    padding: 4rem 0;
    margin: 4rem 5%;
    border-radius: 36px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow: 0 24px 60px rgba(44, 35, 24, 0.25), 0 2px 4px rgba(255, 255, 255, 0.1) inset;
}

.stats-inner {
    max-width: 1340px;
    margin: 0 auto;
    padding: 0 5%;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
}

.stat-item {
    text-align: center;
    padding: 1.5rem 2rem;
    border-right: 1px solid rgba(184, 146, 74, 0.18);
}

.stat-item:last-child {
    border-right: none;
}

.stat-number {
    font-family: var(--font-display);
    font-size: 3.5rem;
    font-weight: 300;
    color: var(--cream-soft);
    line-height: 1;
    margin-bottom: 0.4rem;
}

.stat-label {
    font-family: var(--font-sans);
    font-size: 0.6rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--gold);
}

/* ─── Philosophy — cream, NOT dark ───────────────────────────── */
.philosophy {
    background: var(--cream-deep);
    position: relative;
}

.philosophy-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8rem;
    align-items: center;
}

.philosophy-text h2 {
    font-size: clamp(2rem, 4vw, 3.8rem);
    margin-bottom: 1.5rem;
    color: var(--espresso);
    line-height: 1.2;
}

.philosophy-text p {
    font-family: var(--font-display);
    font-size: clamp(1.15rem, 2vw, 1.5rem);
    color: var(--espresso-mid);
    margin-bottom: 0.7rem;
    line-height: 1.5;
}

.philosophy-text p:last-child {
    font-family: var(--font-sans);
    font-size: 0.95rem;
    color: var(--espresso-soft);
    margin-top: 2rem;
    font-weight: 300;
}

.philosophy-image img {
    width: 100%;
    height: auto;
    border-radius: 28px;
    box-shadow: 0 20px 50px rgba(44, 35, 24, 0.12), 0 1px 3px rgba(255, 255, 255, 0.6) inset;
}

/* ─── Process Timeline — Liquid Cards ─────────────────────────── */
.process {
    background: var(--cream-deep);
}

.timeline {
    max-width: 860px;
    margin: 0 auto;
    position: relative;
    padding-left: 68px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 21px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(180deg, transparent, var(--gold) 10%, var(--gold) 90%, transparent);
    opacity: 0.4;
}

.timeline-item {
    position: relative;
    margin-bottom: 3.5rem;
    background: rgba(255, 253, 248, 0.65);
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    padding: 2.2rem 2.8rem;
    border-radius: 28px;
    border: 1px solid rgba(255, 255, 255, 0.75);
    box-shadow: 0 12px 35px rgba(44, 35, 24, 0.06), 0 1px 3px rgba(255, 255, 255, 0.8) inset;
    transition: all var(--slow);
}

.timeline-item:hover {
    background: rgba(255, 255, 255, 0.9);
    transform: translateY(-4px) scale(1.01);
    box-shadow: 0 20px 50px rgba(44, 35, 24, 0.1);
}

.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-number {
    position: absolute;
    left: -47px;
    top: 2rem;
    width: 42px;
    height: 42px;
    background: rgba(255, 253, 248, 0.9);
    backdrop-filter: blur(16px);
    border: 1px solid var(--gold);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-size: 1.05rem;
    font-weight: 500;
    color: var(--gold);
    transform: translateX(-50%);
    transition: all var(--mid);
    box-shadow: 0 6px 20px rgba(184, 146, 74, 0.15), 0 0 0 6px var(--cream-deep);
}

.timeline-item:hover .timeline-number {
    background: var(--gold);
    color: var(--white);
    transform: translateX(-50%) scale(1.1);
}

.timeline-content h3 {
    font-size: 2.1rem;
    margin-bottom: 0.5rem;
}

/* ─── Gallery — Liquid Masonry Tiles ─────────────────────────── */
.gallery-section {
    background: var(--cream-soft);
}

.gallery-grid {
    column-count: 3;
    column-gap: 16px;
    margin-top: 3.5rem;
}

.gallery-item {
    break-inside: avoid;
    margin-bottom: 16px;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    border-radius: 24px;
    box-shadow: 0 14px 35px rgba(44, 35, 24, 0.08);
    transition: box-shadow 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
    transform-style: preserve-3d;
}

.gallery-item img {
    width: 100%;
    display: block;
    border-radius: 24px;
    transition: transform var(--slow);
}

.gallery-item:hover img {
    transform: scale(1.03);
}

.gallery-item:hover {
    box-shadow: 0 25px 55px rgba(44, 35, 24, 0.15);
}

.gallery-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 2.2rem 1.6rem 1.4rem;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(24px) saturate(160%);
    -webkit-backdrop-filter: blur(24px) saturate(160%);
    border-top: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow:
        0 -10px 30px rgba(0, 0, 0, 0.05),
        inset 0 1px 1px rgba(255, 255, 255, 0.8);
    color: var(--espresso);
    font-family: var(--font-display);
    font-style: italic;
    font-size: 1.1rem;
    opacity: 0;
    transform: translateY(8px);
    transition: opacity var(--mid), transform var(--mid);
}

.gallery-item:hover .gallery-caption {
    opacity: 1;
    transform: translateY(0);
}

/* ─── Testimonials — Liquid Glass Cards ──────────────────────── */
.testimonials {
    background: var(--cream-deep);
    position: relative;
    overflow: hidden;
}

/* Decorative large circle echo of the logo arc */
.testimonials::before {
    content: '';
    position: absolute;
    right: -180px;
    top: -180px;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    border: 1px solid rgba(184, 146, 74, 0.12);
    pointer-events: none;
}

.testimonials h2 {
    color: var(--espresso);
}

.testimonials .eyebrow {
    color: var(--gold);
}

.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.8rem;
    margin-top: 3.5rem;
}

.testimonial-card {
    background: rgba(255, 253, 248, 0.68);
    backdrop-filter: blur(28px) saturate(180%);
    -webkit-backdrop-filter: blur(28px) saturate(180%);
    padding: 3rem 2.5rem;
    border-radius: 28px;
    border: 1px solid rgba(255, 255, 255, 0.75);
    box-shadow: 0 14px 40px rgba(44, 35, 24, 0.06), 0 1px 3px rgba(255, 255, 255, 0.8) inset;
    text-align: left;
    position: relative;
    transition: all var(--slow);
}

.testimonial-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--gold), var(--gold-light));
    transition: width var(--slow);
}

.testimonial-card:hover::before {
    width: 100%;
}

.testimonial-card:hover {
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 24px 60px rgba(44, 35, 24, 0.12), 0 0 25px rgba(184, 146, 74, 0.2);
    transform: translateY(-8px) scale(1.015);
}

.stars {
    color: var(--gold);
    margin-bottom: 1.5rem;
    font-size: 0.85rem;
    letter-spacing: 4px;
}

.testimonial-card p {
    color: var(--espresso);
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-style: italic;
    line-height: 1.45;
    margin-bottom: 1.5rem;
}

.testimonial-attribution {
    font-family: var(--font-sans);
    font-size: 0.62rem;
    font-weight: 500;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: var(--gold);
}

/* ─── Contact — Liquid Glass Enclosure & Glass Controls ────────── */
.contact-section {
    background: var(--cream-soft);
}

.contact {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6rem;
    align-items: center;
}

.contact-text h2 {
    font-size: clamp(2.4rem, 3.8vw, 3.4rem);
}

.contact-meta {
    margin-top: 3rem;
    display: flex;
    flex-direction: column;
    gap: 1.4rem;
}

.contact-meta-item {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    background: rgba(255, 253, 248, 0.6);
    backdrop-filter: blur(20px);
    padding: 1.2rem 1.6rem;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.7);
}

.contact-meta-label {
    font-family: var(--font-sans);
    font-size: 0.58rem;
    font-weight: 500;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--gold);
}

.contact-meta-value {
    font-family: var(--font-display);
    font-size: 1.15rem;
    color: var(--espresso);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.4rem;
    background: rgba(255, 253, 248, 0.7);
    backdrop-filter: blur(28px) saturate(180%);
    -webkit-backdrop-filter: blur(28px) saturate(180%);
    padding: 3rem;
    border-radius: 32px;
    border: 1px solid rgba(255, 255, 255, 0.85);
    box-shadow: 0 20px 50px rgba(44, 35, 24, 0.08), 0 1px 4px rgba(255, 255, 255, 0.8) inset;
}

.form-group {
    position: relative;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 1.1rem 1.6rem;
    border: 1px solid rgba(255, 255, 255, 0.8);
    background: rgba(255, 255, 255, 0.65);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-radius: 9999px;
    font-family: var(--font-sans);
    font-size: 0.95rem;
    font-weight: 400;
    color: var(--espresso);
    outline: none;
    box-shadow: 0 2px 8px rgba(44, 35, 24, 0.03) inset;
    transition: all var(--mid);
}

.form-group textarea {
    border-radius: 24px;
    resize: vertical;
    min-height: 120px;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--espresso-soft);
    font-weight: 300;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    background: rgba(255, 255, 255, 0.92);
    border-color: var(--gold);
    box-shadow: 0 0 0 4px rgba(184, 146, 74, 0.18), 0 4px 16px rgba(44, 35, 24, 0.06);
}

.btn-submit {
    background: linear-gradient(135deg, var(--espresso) 0%, #1a140e 100%);
    color: var(--cream-soft);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 9999px;
    padding: 1.2rem;
    margin-top: 0.5rem;
    cursor: pointer;
    font-family: var(--font-sans);
    font-size: 0.62rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 3.5px;
    transition: all var(--mid);
    width: 100%;
    box-shadow: 0 8px 24px rgba(44, 35, 24, 0.2);
}

.btn-submit:hover {
    background: linear-gradient(135deg, var(--gold) 0%, #a47f3a 100%);
    border-color: rgba(255, 255, 255, 0.35);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(184, 146, 74, 0.35);
}

/* ─── Footer — Floating Glass Island ─────────────────────────── */
footer {
    background: rgba(44, 35, 24, 0.95);
    backdrop-filter: blur(32px) saturate(190%);
    -webkit-backdrop-filter: blur(32px) saturate(190%);
    color: var(--cream-soft);
    padding: 5rem 5% 3rem;
    margin: 4rem 3% 2rem;
    border-radius: 36px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow: 0 28px 70px rgba(44, 35, 24, 0.3), 0 2px 4px rgba(255, 255, 255, 0.1) inset;
    text-align: center;
    position: relative;
    overflow: hidden;
}

/* Concentric circles — echoes the logo arc in background */
footer::before,
footer::after {
    content: '';
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    border: 1px solid rgba(184, 146, 74, 0.06);
    pointer-events: none;
}

footer::before {
    width: 600px;
    height: 600px;
}

footer::after {
    width: 400px;
    height: 400px;
}

.footer-top-rule {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(184, 146, 74, 0.3) 40%, rgba(184, 146, 74, 0.3) 60%, transparent);
}

.footer-inner {
    max-width: 560px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

/* Logo image — if present */
.footer-logo-img {
    height: 80px;
    width: auto;
    margin: 0 auto 1.5rem;
    object-fit: contain;
    /* invert to white for dark footer */
    filter: brightness(0) invert(1);
    opacity: 0.7;
}

/* Logo in footer — transparent PNG on dark espresso */
.footer-logo-img {
    height: 120px;
    width: auto;
    max-width: 340px;
    object-fit: contain;
    display: block;
    margin: 0 auto 2rem;
    /* Slight opacity since espresso logo on espresso bg needs lightening */
    filter: brightness(1.35) drop-shadow(0 2px 12px rgba(184, 146, 74, 0.2));
    opacity: 0.85;
}

.footer-tagline {
    font-family: var(--font-display);
    font-style: italic;
    font-size: 1.15rem;
    color: rgba(237, 232, 223, 0.38);
    margin-bottom: 3rem;
    line-height: 1.7;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 1.2rem;
    margin-bottom: 3.5rem;
}

.social-links a {
    font-family: var(--font-sans);
    font-size: 0.6rem;
    font-weight: 500;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: rgba(237, 232, 223, 0.85);
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 0.65rem 1.6rem;
    border-radius: 9999px;
    transition: all var(--mid);
}

.social-links a:hover {
    background: var(--gold);
    color: var(--white);
    border-color: var(--gold);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(184, 146, 74, 0.3);
}

.copyright {
    font-size: 0.65rem;
    color: rgba(237, 232, 223, 0.2);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 2rem;
    letter-spacing: 1px;
}

/* ─── Animations ─────────────────────────────────────────────── */
@keyframes slowZoom {
    from {
        transform: scale(1.06);
    }

    to {
        transform: scale(1.15);
    }
}

/* ─── Loading Overlay ────────────────────────────────────────── */
#loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;

    /* --- EDIT LOADER BACKGROUND TRANSPARENCY HERE --- */
    /* Change the last number (0.9) from 0.0 (fully transparent) to 1.0 (solid color) */
    background: rgba(249, 246, 240, 0.5);
    /* ------------------------------------------------ */

    backdrop-filter: blur(40px) saturate(150%);
    -webkit-backdrop-filter: blur(40px) saturate(150%);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
}

.loader-logo,
.loader-logo-svg {
    /* --- EDIT LOADER LOGO SIZE HERE --- */
    /* You can use a fixed size like "300px" or a responsive size like clamp(...) */
    width: clamp(900px, 25vw, 900px);
    height: auto;
    aspect-ratio: 3 / 2;
    /* ---------------------------------- */

    opacity: 0;
    transform: scale(0.9);
    filter: drop-shadow(0 10px 20px rgba(139, 106, 61, 0.15));
}

/* ─── GSAP Utilities ────────────────────────────────────────── */
/* visibility controlled by JS to prevent conflicts with parent containers */

/* ─── Designer Portfolio ────────────────────────────────────────── */
.designer-portfolio {
    background: url('../assets/images/jygse.jpg') no-repeat center center;
    background-size: cover;
    background-attachment: fixed;
    padding: 8rem 0 10rem 0;
    position: relative;
    z-index: 1;
    /* Keep below the header */
}

.designer-portfolio::before {
    content: '';
    position: absolute;
    inset: 0;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(20px);
    z-index: -1;
}

.designer-portfolio .container {
    position: relative;
    z-index: 1;
}

.portfolio-card {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(28px) saturate(180%);
    -webkit-backdrop-filter: blur(28px) saturate(180%);
    padding: 5rem 4rem;
    border-radius: 36px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow:
        0 30px 60px rgba(0, 0, 0, 0.15),
        inset 0 0 0 1px rgba(255, 255, 255, 0.2),
        inset 0 1px 2px rgba(255, 255, 255, 0.8);
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
    transition: box-shadow 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
    transform-style: preserve-3d;
}

.portfolio-card:hover {
    box-shadow:
        0 45px 80px rgba(0, 0, 0, 0.25),
        inset 0 0 0 1px rgba(255, 255, 255, 0.4),
        inset 0 2px 5px rgba(255, 255, 255, 0.9);
}

.portfolio-content p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    color: var(--espresso-mid);
}

/* ─── Gallery Categories ─────────────────────────────────────── */
.category-item {
    position: relative;
    overflow: hidden;
}

.category-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--slow);
}

.category-item:hover img {
    transform: scale(1.05);
}

/* ─── Unified Educational & Studio Capabilities ──────────────────────── */
/* ─── Interactive Problem & Solution Section ──────────────────────── */
.problem-solution-section {
    position: relative;
    background: var(--cream-soft);
    overflow: hidden;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 8rem 0 4rem 0;
    box-sizing: border-box;
}

/* Background Blueprint Elements */
.ps-bg-blueprint {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 1;
}

.ps-grid-lines {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(44, 35, 24, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(44, 35, 24, 0.04) 1px, transparent 1px);
    background-size: 40px 40px;
    opacity: 0;
    /* Fade in via JS */
}

.ps-radial-light {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.4) 0%, transparent 60%);
}

.ps-editorial-numbering {
    position: absolute;
    top: 4rem;
    right: 4rem;
    font-family: var(--font-serif);
    color: var(--gold);
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 1.2rem;
}

.ps-divider-line {
    width: 60px;
    height: 1px;
    background: rgba(184, 146, 74, 0.4);
}

.ps-watermark {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    opacity: 0.4;
    z-index: 10;
}

.ps-watermark img {
    height: 65px;
    width: auto;
}

.ps-watermark span {
    font-family: var(--font-sans);
    font-size: 0.7rem;
    letter-spacing: 2px;
    color: var(--espresso);
}

/* Header & Controls */
.ps-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 2rem;
    position: relative;
    z-index: 10;
}

.ps-header-left h2 {
    font-size: clamp(2.5rem, 4vw, 3.5rem);
    color: var(--espresso);
    line-height: 1.1;
    margin-top: 1rem;
    margin-bottom: 1rem;
}

.ps-nav-controls {
    position: absolute;
    top: 50%;
    left: -300px;
    right: -300px;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
    pointer-events: none;
    z-index: 10;
}

.ps-btn {
    pointer-events: auto;
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(12px) saturate(120%);
    -webkit-backdrop-filter: blur(12px) saturate(120%);
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 50px;
    padding: 12px 24px;
    color: var(--gold);
    font-family: var(--font-sans);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    transition: all 0.3s var(--ease);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
}

.ps-btn svg {
    width: 20px;
    height: 20px;
    transition: transform 0.3s var(--ease);
}

.ps-btn:hover {
    color: var(--espresso);
}

.ps-btn.ps-prev:hover svg {
    transform: translateX(-2px);
}

.ps-btn.ps-next:hover svg {
    transform: translateX(2px);
}

/* Interactive Area */
.ps-interactive-area {
    position: relative;
    width: 100%;
    height: 600px;
    display: flex;
    justify-content: center;
    align-items: center;
    perspective: 1200px;
    z-index: 10;
}

/* ─── Overlapping Circles New Layout ──────────────────────── */
.ps-new-layout {
    position: relative;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    min-height: 800px;
    display: flex;
    align-items: center;
    perspective: 1200px;
    transform-style: preserve-3d;
}

/* ─── Asymmetric Panels Layout ──────────────────────── */
.ps-asymmetric-layout {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 5;
    margin-top: 2rem;
    perspective: 1000px;
}

.category-pill {
    background: rgba(138, 138, 138, 0.45);
    backdrop-filter: blur(16px) saturate(120%);
    -webkit-backdrop-filter: blur(16px) saturate(120%);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #333333;
    padding: 16px 32px;
    border-radius: 50px;
    font-family: var(--font-sans);
    font-weight: 800;
    font-size: 1.2rem;
    position: relative;
    z-index: 3;
    align-self: flex-start;
    margin-left: max(5%, calc(50% - 400px));
    margin-bottom: -30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15), inset 0 1px 2px rgba(255, 255, 255, 0.4);
}

.asymmetric-grid {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    position: relative;
    width: 100%;
    max-width: 900px;
}

.problem-card {
    width: 460px;
    background-image: url('../assets/images/wood.jpg');
    background-size: cover;
    background-position: center;
    background-blend-mode: multiply;
    border-radius: 20px;
    padding: 60px 140px 60px 50px;
    position: relative;
    z-index: 1;
}

.solution-wrapper {
    position: relative;
    z-index: 2;
    margin-left: -120px;
    margin-top: -40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.circle-bg-watermark {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 400px;
    opacity: 1;
    z-index: -1;
    pointer-events: none;
}

.solution-circle {
    width: 540px;
    height: 540px;
    background: rgba(252, 252, 252, 0.6);
    backdrop-filter: blur(7px) saturate(120%);
    -webkit-backdrop-filter: blur(25px) saturate(120%);
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.8);
    border-right: 1px solid rgba(255, 255, 255, 0.4);
    border-bottom: 1px solid rgba(255, 255, 255, 0.4);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.08), inset 0 1px 10px rgba(255, 255, 255, 0.6);
    overflow: hidden;
}

.mobile-swipe-indicator {
    display: none;
}

@keyframes swipeHint {

    0%,
    100% {
        transform: translateX(0);
    }

    25% {
        transform: translateX(-4px);
    }

    75% {
        transform: translateX(4px);
    }
}

x .solution-watermark {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 70%;
    opacity: 0;
    z-index: 0;
    pointer-events: none;
}

.quote-icon {
    position: absolute;
    top: 70px;
    right: 80px;
    z-index: 1;
    opacity: 0.5;
}

.solution-content {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 340px;
}

/* Shared Typography */
.panel-label {
    font-family: var(--font-sans);
    font-weight: 800;
    font-size: 1.1rem;
    margin-bottom: 0.2rem;
    display: block;
}

.panel-title {
    font-family: var(--font-sans);
    font-weight: 800;
    font-size: 1.4rem;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.panel-separator {
    width: 100%;
    height: 1px;
    margin-bottom: 1.5rem;
}

.panel-desc {
    font-family: var(--font-sans);
    font-size: 1rem;
    line-height: 1.6;
    font-weight: 500;
}

/* Problem Specifics */
.problem-label {
    color: rgba(255, 255, 255, 0.7);
}

.problem-title {
    color: #ffffff;
}

.problem-separator {
    background-color: rgba(255, 255, 255, 0.3);
}

.problem-desc {
    color: rgba(255, 255, 255, 0.8);
}

/* Solution Specifics */
.solution-label {
    color: #444444;
}

.solution-title {
    color: #333333;
}

.solution-separator {
    background-color: #D4D4D4;
}

.solution-desc {
    color: #555555;
}


/* ─── Modular vs Traditional Carpentry ──────────────────────── */
/* ─── Modular vs Traditional Carpentry Redesign ──────────────────── */
.modular-vs-manual {
    position: relative;
    overflow: hidden;
    padding-top: 8rem;
    padding-bottom: 8rem;
}

.methodology-bg {
    position: absolute;
    width: 100%;
    height: 100%;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}

.methodology-ka-logo {
    height: 60vh;
    object-fit: contain;
    opacity: 0.60;
    mix-blend-mode: multiply;
    filter: blur(2px);
    pointer-events: none;
    width: 90%;
    height: 90%;
}

.methodology-radial-light {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80vw;
    height: 80vw;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.4) 0%, transparent 70%);
    z-index: -1;
}

.methodology-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    margin-top: 4rem;
    margin-bottom: 4rem;
}

.glass-card {
    position: relative;
    background: rgba(255, 252, 245, 0.15);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 32px;
    box-shadow:
        0 30px 60px rgba(44, 35, 24, 0.05),
        inset 0 0 20px rgba(255, 255, 255, 0.7);
    padding: 3.5rem 3rem 3rem 3rem;
    transition: all 0.5s cubic-bezier(0.25, 1, 0.5, 1);
    opacity: 0;
    transform: translateY(40px);
}

.glass-card:hover {
    transform: translateY(-8px) rotate(1deg) !important;
    box-shadow:
        0 40px 70px rgba(44, 35, 24, 0.08),
        inset 0 0 30px rgba(255, 255, 255, 1);
    border-color: rgba(255, 255, 255, 0.9);
}

.glass-icon-floating {
    position: absolute;
    top: -30px;
    left: -30px;
    width: 90px;
    height: 90px;
    background: rgba(255, 252, 245, 0.7);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    box-shadow: 0 15px 30px rgba(44, 35, 24, 0.06);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gold-dark);
    transition: all 0.5s cubic-bezier(0.25, 1, 0.5, 1);
    opacity: 0;
    transform: scale(0.8);
}

.glass-icon-floating svg {
    width: 40px;
    height: 40px;
}

.glass-card:hover .glass-icon-floating {
    transform: scale(1.05) !important;
}

.card-content h3 {
    font-family: var(--font-serif);
    font-size: 2rem;
    color: var(--espresso);
    margin-bottom: 0.5rem;
}

.compare-desc {
    font-size: 1rem;
    color: var(--espresso);
    opacity: 0.8;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.feature-rows {
    display: flex;
    flex-direction: column;
}

.feature-row {
    display: flex;
    align-items: flex-start;
    gap: 1.2rem;
    padding: 1.5rem 0;
    border-bottom: 1px solid rgba(139, 106, 61, 0.15);
}

.feature-row:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.feature-badge {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.feature-badge svg {
    width: 18px;
    height: 18px;
    color: var(--white);
}

.gold-badge {
    background-color: var(--gold);
    box-shadow: 0 4px 10px rgba(184, 146, 74, 0.3);
}

.bronze-badge {
    background-color: #A08C75;
    box-shadow: 0 4px 10px rgba(160, 140, 117, 0.3);
}

.feature-text {
    font-size: 0.95rem;
    color: var(--espresso);
    line-height: 1.5;
}

.feature-text strong {
    display: inline-block;
    margin-bottom: 0.3rem;
    font-weight: 600;
}

.glass-panel {
    background: rgba(255, 252, 245, 0.15);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 32px;
    box-shadow: 0 30px 60px rgba(44, 35, 24, 0.05), inset 0 0 20px rgba(255, 255, 255, 0.6);
    display: flex;
    align-items: center;
    padding: 3rem 4rem;
    gap: 4rem;
    opacity: 0;
    transform: translateY(40px);
}

.hybrid-left {
    display: flex;
    align-items: center;
    gap: 2rem;
    flex-shrink: 0;
}

.hybrid-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: rgba(255, 252, 245, 0.6);
    border: 1px solid rgba(184, 146, 74, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gold-dark);
}

.hybrid-icon svg {
    width: 36px;
    height: 36px;
}

.hybrid-title-area h3 {
    font-family: var(--font-serif);
    font-size: 2.2rem;
    color: var(--espresso);
    line-height: 1.2;
    margin-bottom: 0.5rem;
}

.hybrid-right p {
    font-size: 1.05rem;
    color: var(--espresso);
    opacity: 0.85;
    line-height: 1.7;
    margin: 0;
}

.studio-capabilities {
    background: var(--white);
    border-top: 1px solid rgba(28, 22, 15, 0.05);
}

/* ─── Horizontal Process Timeline ─────────────────────────────────── */
.horizontal-process-section {
    position: relative;
    background: var(--cream);
    overflow: hidden;
    padding: 0;
}

.h-process-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(rgba(139, 106, 61, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(139, 106, 61, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    z-index: 0;
    pointer-events: none;
}

.h-process-header {
    position: relative;
    z-index: 2;
    text-align: center;
    padding-top: 6rem;
    padding-bottom: 2rem;
}

.h-process-header h2 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    color: var(--espresso);
}

.h-process-header p {
    font-size: 1.1rem;
    color: var(--espresso);
    opacity: 0.8;
}

.h-process-pin-wrapper {
    position: relative;
    width: 100%;
    height: 75vh;
    min-height: 600px;
    overflow: hidden;
    z-index: 1;
}

.h-process-scroll-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 5200px;
    height: 100%;
    display: flex;
    align-items: center;
}

.process-wave-svg {
    position: absolute;
    top: 50%;
    left: 0;
    width: 4800px;
    height: 300px;
    transform: translateY(-50%);
    z-index: 1;
}


.h-process-nodes {
    position: absolute;
    top: 50%;
    left: 0;
    width: 4800px;
    height: 300px;
    transform: translateY(-50%);
    z-index: 2;
}

.h-node-wrapper {
    position: absolute;
    width: 320px;
    transform: translate(-50%, -50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    opacity: 0.4;
    transition: all 0.5s cubic-bezier(0.25, 1, 0.5, 1);
}

.h-node-wrapper.active,
.h-node-wrapper.completed {
    opacity: 1;
}

.h-node-num {
    font-size: 1.1rem;
    color: var(--gold);
    font-family: var(--font-display);
    margin-bottom: 1rem;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.5s 0.1s;
}

.h-node-wrapper.active .h-node-num,
.h-node-wrapper.completed .h-node-num {
    opacity: 1;
    transform: translateY(0);
}

.h-node-circle {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.8);
    box-shadow: 0 10px 30px rgba(139, 106, 61, 0.1), inset 0 0 20px rgba(255, 255, 255, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    color: var(--gold-dark);
    transition: all 0.5s cubic-bezier(0.25, 1, 0.5, 1);
    position: relative;
    cursor: pointer;
}

.h-node-circle svg {
    width: 40px;
    height: 40px;
    transition: all 0.3s;
}

.h-node-wrapper.active .h-node-circle {
    transform: scale(1.1);
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 15px 40px rgba(139, 106, 61, 0.2), inset 0 0 20px rgba(255, 255, 255, 1);
    border-color: var(--gold);
}

.h-node-wrapper.active .h-node-circle::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 150%;
    height: 150%;
    transform: translate(-50%, -50%);
    background: radial-gradient(circle, rgba(139, 106, 61, 0.15) 0%, transparent 70%);
    border-radius: 50%;
    z-index: -1;
    pointer-events: none;
}

.h-node-wrapper.active .h-node-circle svg {
    fill: rgba(139, 106, 61, 0.15);
    stroke-width: 2;
}

.h-node-wrapper:hover .h-node-circle {
    transform: scale(1.05);
}

.h-node-wrapper.active:hover .h-node-circle {
    transform: scale(1.15);
}

.h-node-content h3 {
    font-size: 1.5rem;
    color: var(--espresso);
    margin-bottom: 0.5rem;
    opacity: 0;
    transform: translateY(15px);
    transition: all 0.5s 0.2s;
}

.h-node-content p {
    font-size: 0.95rem;
    color: var(--espresso);
    opacity: 0;
    transform: translateY(15px);
    line-height: 1.6;
    max-width: 280px;
    margin: 0 auto;
    transition: all 0.5s 0.3s;
}

.h-node-wrapper.active .h-node-content h3,
.h-node-wrapper.active .h-node-content p,
.h-node-wrapper.completed .h-node-content h3,
.h-node-wrapper.completed .h-node-content p {
    opacity: 0.8;
    transform: translateY(0);
}

.h-node-wrapper.active .h-node-content h3 {
    opacity: 1;
}

.h-process-footer {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 1000px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.h-scroll-text {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    color: var(--gold-dark);
    font-size: 0.95rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    opacity: 0.9;
}

.h-scroll-text svg {
    animation: h-scroll-hint 2s infinite ease-in-out;
}

@keyframes h-scroll-hint {

    0%,
    100% {
        transform: translateX(0);
    }

    50% {
        transform: translateX(5px);
    }
}

.h-progress-track {
    width: 100%;
    height: 3px;
    background: rgba(139, 106, 61, 0.2);
    position: relative;
    border-radius: 3px;
    overflow: hidden;
}

.h-progress-fill {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 0%;
    background: var(--gold-dark);
}

/* ─── Materials Tab Interface ──────────────────────── */
.materials-tab-container {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 3rem;
    align-items: start;
}

.materials-sidebar {
    background: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: 24px;
    padding: 2rem 1.5rem;
    box-shadow: 0 10px 30px rgba(44, 35, 24, 0.05);
}

.sidebar-category {
    margin-bottom: 2rem;
}

.sidebar-category:last-child {
    margin-bottom: 0;
}

.sidebar-category h4 {
    font-size: 0.85rem;
    font-family: var(--font-sans);
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--gold-dark);
    margin-bottom: 1rem;
    padding-left: 0.5rem;
}

.sidebar-category ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-tab {
    width: 100%;
    text-align: left;
    background: transparent;
    border: none;
    padding: 0.6rem 0.5rem;
    font-size: 1rem;
    color: var(--espresso);
    font-family: var(--font-serif);
    cursor: pointer;
    border-radius: 8px;
    transition: all 0.3s var(--ease);
    opacity: 0.7;
}

.sidebar-tab:hover {
    opacity: 1;
    background: rgba(255, 255, 255, 0.5);
    transform: translateX(5px);
}

.sidebar-tab.active {
    opacity: 1;
    background: rgba(255, 255, 255, 0.8);
    font-weight: 600;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.02);
}

.materials-content-area {
    position: relative;
    border-radius: 36px;
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(255, 255, 255, 0.8);
    padding: 3rem;
    box-shadow: 0 20px 50px rgba(44, 35, 24, 0.08);
    min-height: 600px;
}

.tab-content {
    display: none;
    animation: fadeSlideUp 0.5s var(--ease) forwards;
}

.tab-content.active {
    display: block;
}

@keyframes fadeSlideUp {
    from {
        opacity: 0;
        transform: translateY(15px);
    }

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

/* ─── Responsive ────────────────────────────────────────────── */

@media (max-width: 1100px) {
    .container {
        padding: 0 4%;
    }
}

@media (max-width: 992px) {

    /* Problem Solution Section Responsive */
    .ps-content-layer {
        flex-direction: column;
        gap: 120px;
        padding: 40px 0;
        align-items: center;
    }

    .ps-problem-block,
    .ps-solution-block {
        width: 100%;
        justify-content: center;
    }

    .ps-decor-layer {
        flex-direction: column;
        gap: -100px;
        /* Vertical overlap */
    }

    /* Removed old circle styles */

    .ps-glass-bg-ka {
        left: 50%;
        top: auto;
        bottom: 10%;
        width: 80%;
    }

    .ps-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 2rem;
    }

    .glass-panel {
        flex-direction: column;
        text-align: center;
        padding: 3rem 2rem;
        gap: 2rem;
    }

    .hybrid-left {
        flex-direction: column;
    }

    .glass-icon-floating {
        top: -20px;
        left: 50%;
        transform: translateX(-50%) !important;
    }

    .glass-card:hover .glass-icon-floating {
        transform: translateX(-50%) scale(1.05) !important;
    }

    .glass-card {
        padding-top: 4rem;
    }

    .about,
    .philosophy-container,
    .problem-row,
    .contact,
    .customisation-layout,
    .methodology-grid,
    .unified-guide-card,
    .materials-tab-container,
    .materials-tab-container.mirrored {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .hero-title {
        font-size: clamp(3.5rem, 6vw, 4.5rem);
    }
}

@media (max-width: 768px) {

    .ps-asymmetric-layout {
        width: 100% !important;
        max-width: 100% !important;
        zoom: normal;
    }

    .category-pill {
        font-size: clamp(0.7rem, 2vw, 0.9rem);
        padding: 8px 16px;
        margin-left: 0;
        margin-bottom: -15px;
        align-self: center;
        text-align: center;
        white-space: nowrap;
    }

    .asymmetric-grid {
        display: flex;
        flex-direction: row;
        width: 100%;
        align-items: center;
        justify-content: center;
    }

    .problem-solution-section {
        padding: 4rem 0 2rem 0;
        min-height: auto;
    }

    .mobile-swipe-indicator {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        margin-top: 2rem;
        margin-bottom: 0;
        color: var(--espresso-soft);
        font-size: 0.85rem;
        font-family: var(--font-sans);
        opacity: 0.8;
    }

    .mobile-swipe-indicator svg {
        width: 20px;
        height: 20px;
        animation: swipeHint 2s infinite ease-in-out;
    }

    .problem-card {
        width: 50%;
        padding: 10% 12% 10% 8%;
    }

    .solution-wrapper {
        width: 62%;
        margin-left: -12%;
        margin-top: -2%;
    }

    .solution-circle {
        width: 100%;
        height: auto;
        aspect-ratio: 1 / 1;
        padding: 18% 12% 18% 18%;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }

    .circle-bg-watermark {
        width: 70%;
    }

    /* Scale internal text fluidly to fit within percentage cards */
    .problem-card .panel-label,
    .solution-circle .panel-label {
        font-size: clamp(0.5rem, 1.8vw, 0.7rem);
        margin-bottom: 0.2rem;
    }

    .problem-card .panel-title,
    .solution-circle .panel-title {
        font-size: clamp(0.75rem, 2.8vw, 1.1rem);
        margin-bottom: 0.4rem;
        line-height: 1.1;
    }

    .problem-card .panel-desc,
    .solution-circle .panel-desc {
        font-size: clamp(0.55rem, 1.9vw, 0.8rem);
        line-height: 1.35;
    }

    .problem-card .panel-separator,
    .solution-circle .panel-separator {
        margin: 0.6rem 0;
    }

    .ps-editorial-numbering {
        top: 2rem;
        right: 2rem;
    }

    header.liquid-dock {
        width: 90%;
        justify-content: space-between;
    }

    .liquid-dock .nav-links {
        display: none;
    }

    .mobile-menu-toggle {
        display: block;
    }

    .gallery-grid {
        column-count: 1;
    }

    .stats-inner {
        grid-template-columns: repeat(2, 1fr);
    }

    .editorial-item {
        flex-direction: column;
        gap: 0.5rem;
        padding-left: 1.5rem;
    }

    .portfolio-card {
        flex-direction: column;
        padding: 2.5rem 1.5rem;
    }

    .materials-sidebar {
        padding: 1.5rem;
    }

    .materials-content-area {
        padding: 1.5rem;
    }

    .horizontal-process-section {
        padding: 4rem 0;
    }

    .h-process-pin-wrapper {
        height: auto;
        min-height: auto;
        overflow: visible;
    }

    .h-process-scroll-container {
        position: relative;
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 3rem;
    }

    .h-process-nodes {
        position: relative;
        width: 100%;
        height: auto;
        transform: none;
        display: flex;
        flex-direction: column;
        gap: 3rem;
    }

    .h-node-wrapper {
        position: relative;
        left: 0 !important;
        top: 0 !important;
        transform: none;
        width: 100%;
        opacity: 1;
    }

    .h-node-num,
    .h-node-content h3,
    .h-node-content p {
        opacity: 1;
        transform: none;
    }

    .h-node-circle {
        transform: scale(1.1);
        background: rgba(255, 255, 255, 0.9);
        box-shadow: 0 15px 40px rgba(139, 106, 61, 0.2), inset 0 0 20px rgba(255, 255, 255, 1);
        border-color: var(--gold);
    }

    .h-process-footer {
        display: none;
    }

    /* GLOBAL SPACING & TYPOGRAPHY */
    .section-padding {
        padding-top: 5rem;
        padding-bottom: 5rem;
    }

    .container {
        padding: 0 1.5rem;
    }

    h2 {
        font-size: 2.2rem;
    }

    .text-center h2 {
        margin-top: 1rem;
        margin-bottom: 2rem;
    }

    h3 {
        font-size: 1.5rem;
    }

    /* HERO SECTION */
    .hero-logo {
        width: 300px;
        margin-bottom: 1.5rem;
    }

    .hero-subtitle {
        font-size: 1rem;
        padding: 0 1rem;
        margin-bottom: 2.5rem;
    }

    .cta-group {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
    }

    .btn {
        width: 100%;
        text-align: center;
    }

    .designer-portfolio {
        padding-bottom: 5rem;
    }

    /* CONTAINER & PADDING OVERRIDES */
    .guide-column {
        padding: 2.5rem 1.5rem;
    }

    .portfolio-card {
        padding: 2.5rem 1.5rem;
    }

    .materials-sidebar {
        padding: 1.5rem;
    }

    .materials-content {
        padding: 1.5rem;
    }

    .nav-logo-img {
        width: 60px;
    }
}

@media (max-width: 576px) {
    .stats-inner {
        grid-template-columns: 1fr;
    }
}

@media (prefers-reduced-motion: reduce) {

    .hero-sunbeam,
    .hero-lamp-glow,
    .hero-logo,
    .hero-subtitle,
    .scroll-indicator,
    .marquee-track,
    .gallery-item {
        animation: none !important;
        transition: none !important;
    }
}

/* ==========================================================================
   MATERIALS LIBRARY REDESIGN
   ========================================================================== */

.library-section {
    position: relative;
    overflow: hidden;
    background: #FDFBF7;
    /* Warm ivory base */
    min-height: 100vh;
}

/* --- Immersive Background --- */
.library-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

.library-radial-light {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120vw;
    height: 120vw;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.6) 0%, transparent 60%);
}

.library-drafting-lines {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(rgba(139, 106, 61, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(139, 106, 61, 0.03) 1px, transparent 1px);
    background-size: 40px 40px;
    opacity: 0.5;
}

/* --- Layout Grid --- */
.library-grid {
    display: grid;
    grid-template-columns: 280px 400px 1fr;
    gap: 3rem;
    align-items: start;
    margin-top: 3rem;
}

/* --- Left: Navigation Panel --- */
.library-nav {
    background: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.8);
    border-radius: 32px;
    padding: 2.5rem 2rem;
    box-shadow:
        0 30px 60px rgba(44, 35, 24, 0.03),
        inset 0 0 20px rgba(255, 255, 255, 0.5);
    position: sticky;
    top: 120px;
}

.nav-category {
    margin-bottom: 2rem;
}

.nav-category:last-child {
    margin-bottom: 0;
}

.nav-category h4 {
    font-family: var(--font-sans);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--gold-dark);
    margin-bottom: 1rem;
    font-weight: 500;
}

.nav-category ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.nav-category li {
    margin-bottom: 0.5rem;
}

.nav-tab {
    background: none;
    border: none;
    width: 100%;
    text-align: left;
    padding: 0.6rem 1rem;
    font-family: var(--font-serif);
    font-size: 1.1rem;
    color: var(--espresso);
    opacity: 0.7;
    cursor: pointer;
    transition: all 0.4s ease;
    border-radius: 12px;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.nav-tab:hover {
    opacity: 1;
    background: rgba(255, 255, 255, 0.5);
}

.nav-tab.active {
    opacity: 1;
    background: #FDFBF7;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.02);
    font-weight: 500;
}

.tab-indicator {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--gold);
    margin-right: 12px;
    opacity: 0;
    transform: scale(0);
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.nav-tab.active .tab-indicator {
    opacity: 1;
    transform: scale(1);
    box-shadow: 0 0 10px rgba(184, 146, 74, 0.5);
}


/* --- Center: Information Card --- */
.library-info {
    background: #F4F1EA;
    border: 1px solid rgba(255, 255, 255, 0.8);
    border-radius: 36px;
    padding: 3.5rem;
    box-shadow:
        0 40px 80px rgba(44, 35, 24, 0.04),
        inset 0 0 30px rgba(255, 255, 255, 0.8);
    position: relative;
    min-height: 700px;
}

/* Speech bubble pointer matching reference */
.library-info::before {
    content: '';
    position: absolute;
    top: 220px;
    left: -14px;
    border-width: 14px 14px 14px 0;
    border-style: solid;
    border-color: transparent #F4F1EA transparent transparent;
}

.info-content {
    position: relative;
}

.info-category {
    font-family: var(--font-sans);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--gold);
    margin-bottom: 0.5rem;
    display: block;
}

.info-title {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: var(--espresso);
    line-height: 1.1;
}

.info-desc {
    font-size: 1.05rem;
    color: var(--espresso);
    opacity: 0.85;
    line-height: 1.6;
    margin-bottom: 2rem;
}

.gold-line-thin {
    height: 1px;
    background: linear-gradient(90deg, rgba(184, 146, 74, 0.3), transparent);
    margin: 2rem 0;
}

.info-section h5 {
    font-family: var(--font-sans);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--gold-dark);
    margin-bottom: 1.5rem;
    font-weight: 500;
}

/* Properties Grid */
.properties-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.property-item {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-size: 0.95rem;
    color: var(--espresso);
}

.property-icon {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gold);
}

/* Performance List */
.performance-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.perf-row {
    display: grid;
    grid-template-columns: 100px 1fr;
    align-items: center;
    gap: 1.5rem;
}

.perf-label {
    font-size: 0.9rem;
    color: var(--espresso);
}

.perf-bar-bg {
    width: 100%;
    height: 4px;
    background: rgba(139, 106, 61, 0.1);
    border-radius: 2px;
    overflow: hidden;
    position: relative;
}

.perf-bar-fill {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    background: linear-gradient(90deg, var(--gold), var(--gold-dark));
    width: 0%;
    /* Animated via JS */
    border-radius: 2px;
}

/* Applications Grid */
.applications-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1rem;
    text-align: center;
}

.app-icon {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.5rem;
    opacity: 0.4;
    transition: all 0.3s ease;
    cursor: help;
}

.app-icon svg {
    width: 32px;
    height: 32px;
    stroke: var(--espresso);
    stroke-width: 1.2;
}

.app-icon span {
    font-size: 0.75rem;
    font-family: var(--font-sans);
    color: var(--espresso);
}

.app-icon.supported {
    opacity: 1;
}

.app-icon.supported svg {
    stroke: var(--gold-dark);
}

.app-icon:hover {
    transform: translateY(-3px);
}

/* --- Right: Interactive Visuals --- */
.library-visuals {
    position: relative;
    height: 100%;
    min-height: 700px;
    display: flex;
    align-items: center;
    justify-content: center;
    perspective: 1500px;
    /* For 3D tilt */
}

/* Sample Stack (Background) */
.sample-stack {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.sample-item {
    position: absolute;
    border-radius: 4px;
    box-shadow: 20px 30px 60px rgba(44, 35, 24, 0.15);
    background-size: cover;
    background-position: center;
}

.sample-fluted {
    width: 200px;
    height: 400px;
    left: 20%;
    top: 10%;
    background-color: #D2B48C;
    background-image: repeating-linear-gradient(90deg, transparent, transparent 10px, rgba(0, 0, 0, 0.05) 10px, rgba(0, 0, 0, 0.05) 20px);
    transform: rotate(-5deg) translateZ(-100px);
}

.sample-fabric {
    width: 180px;
    height: 250px;
    right: 15%;
    top: 20%;
    background-color: #E8E5E1;
    background-image: url('data:image/svg+xml;utf8,<svg width="20" height="20" xmlns="http://www.w3.org/2000/svg"><path d="M0 10h20M10 0v20" stroke="%23d0c8c0" stroke-width="1" fill="none"/></svg>');
    transform: rotate(8deg) translateZ(-50px);
}

.sample-stone {
    width: 220px;
    height: 180px;
    right: 10%;
    bottom: 25%;
    background-color: #DFDACF;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100"><circle cx="20" cy="20" r="2" fill="%23b8ae9f"/><circle cx="80" cy="40" r="4" fill="%23a09585"/><circle cx="40" cy="80" r="3" fill="%23c8c0b5"/></svg>');
    transform: rotate(-3deg) translateZ(-70px);
}

.sample-dark-wood {
    width: 150px;
    height: 350px;
    left: 30%;
    bottom: 10%;
    background-color: #4A3B32;
    transform: rotate(4deg) translateZ(-120px);
}

/* Material Preview Board (Foreground) */
.visual-preview-board {
    position: relative;
    width: 280px;
    height: 480px;
    z-index: 10;
    transform-style: preserve-3d;
    transition: transform 0.1s ease-out;
    /* Smooth 3D mouse tracking */
    box-shadow:
        0 50px 100px rgba(44, 35, 24, 0.2),
        inset 0 0 0 1px rgba(255, 255, 255, 0.2);
    border-radius: 4px;
}

.board-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 4px;
    background-size: cover;
    background-position: center;
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.05);
}

/* Exploded Layers (Defaults for Plywood) */
.layer-face {
    background-color: #D2B897;
    transform: translateZ(12px);
}

.layer-core-1 {
    background-color: #C1A685;
    transform: translateZ(8px);
}

.layer-resin {
    background-color: #9A7B56;
    transform: translateZ(4px);
    opacity: 0.9;
}

.layer-core-2 {
    background-color: #C1A685;
    transform: translateZ(0px);
}

.layer-back {
    background-color: #D2B897;
    transform: translateZ(-4px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

/* Sweeping light effect */
.board-sweep-light {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.4) 50%, rgba(255, 255, 255, 0) 100%);
    background-size: 200% 200%;
    background-position: -100% -100%;
    pointer-events: none;
    border-radius: 4px;
    transition: background-position 0.5s ease-out;
}

.visual-preview-board:hover .board-sweep-light {
    background-position: 200% 200%;
}

/* Visual Badge */
.visual-badge {
    position: absolute;
    top: -20px;
    right: -20px;
    width: 120px;
    height: 120px;
    animation: rotateText 20s linear infinite;
    z-index: 20;
}

@keyframes rotateText {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

/* Exploded View Connector Lines (Added via JS dynamically or styled globally) */
.connector-line {
    position: absolute;
    width: 1px;
    background: var(--gold);
    left: 50%;
    transform-origin: top;
    opacity: 0;
}

/* --- Responsive Layouts --- */
@media (max-width: 1200px) {
    .library-grid {
        grid-template-columns: 240px 350px 1fr;
        gap: 2rem;
    }
}

@media (max-width: 992px) {
    .library-grid {
        grid-template-columns: 240px 1fr;
    }

    .library-visuals {
        display: none;
        /* Hide 3D on smaller tablets */
    }
}

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

    .library-nav {
        position: relative;
        top: 0;
    }

    .library-info {
        min-height: auto;
    }
}



/* Added utility */
.z-10 {
    position: relative;
    z-index: 10;
}


/* Fix resting state for library glass elements */
.library-nav,
.library-info {
    opacity: 1;
    transform: none;
}

/* Information Card Refinements */
.info-header-container {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.5rem;
}

.info-visual-mark {
    width: 80px;
    opacity: 0.15;
    color: var(--espresso);
}

.info-desc {
    margin-bottom: 2rem;
    /* Add more space below paragraph */
}

.info-section {
    margin-bottom: 2rem;
}

.info-section h5 {
    margin-top: 40px !important;
    margin-bottom: 24px !important;
}

.properties-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem 2rem;
    align-items: center;
}

.property-item {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.property-icon {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--espresso);
}

.property-icon svg {
    width: 100%;
    height: 100%;
}

.applications-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(90px, 1fr));
    gap: 1.5rem 1rem;
    align-items: start;
    justify-items: center;
}

.app-icon {
    display: flex;
    flex-direction: column !important;
    align-items: center;
    justify-content: flex-start;
    gap: 12px !important;
    text-align: center;
    font-size: 0.85rem;
    transition: all 0.3s ease;
}

.app-icon svg {
    width: 28px;
    height: 28px;
    margin-right: 0 !important;
}

.app-icon.supported {
    opacity: 1 !important;
    color: var(--espresso);
}

.app-icon.supported svg {
    color: #D4AF37;
    /* Gold tint for recommended */
}

.app-icon:not(.supported) {
    opacity: 0.5 !important;
    color: #666;
    position: relative;
    cursor: help;
}

.app-icon:not(.supported) svg {
    color: #666;
}

.app-icon:not(.supported):hover {
    opacity: 0.8 !important;
}

.app-icon:not(.supported)::after {
    content: "Not Recommended";
    position: absolute;
    bottom: -30px;
    left: 50%;
    transform: translateX(-50%);
    background: #333;
    color: #fff;
    padding: 4px 8px;
    font-size: 0.75rem;
    border-radius: 4px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s ease;
    z-index: 10;
}

.app-icon:not(.supported):hover::after {
    opacity: 1;
    visibility: visible;
}

/* ==========================================================================
   MATERIALS LIBRARY 3-COLUMN REDESIGN
   ========================================================================== */

.library-grid {
    display: grid !important;
    grid-template-columns: 250px 1fr 400px !important;
    gap: 64px !important;
    max-width: 1500px !important;
    margin: 0 auto !important;
    padding: 0 40px;
}

@media (max-width: 1200px) {
    .library-grid {
        grid-template-columns: 200px 1fr 350px !important;
        gap: 48px !important;
    }
}

@media (max-width: 992px) {
    .library-grid {
        grid-template-columns: 1fr !important;
        gap: 48px !important;
    }
}

.library-nav {
    background: #ffffff !important;
    border-radius: 24px !important;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.05) !important;
    border: 1px solid rgba(0, 0, 0, 0.05) !important;
    padding: 32px 24px !important;
    height: fit-content;
}

.nav-tab {
    border: none !important;
    padding: 12px 16px !important;
    margin-bottom: 8px !important;
    border-radius: 12px !important;
    transition: all 0.3s ease !important;
    display: flex;
    align-items: center;
    background: transparent;
    color: var(--espresso);
}

.nav-tab:hover {
    background: rgba(0, 0, 0, 0.02) !important;
}

.nav-tab.active {
    background: rgba(0, 0, 0, 0.04) !important;
    font-weight: 600 !important;
}

.nav-tab .tab-indicator {
    width: 6px !important;
    height: 6px !important;
    border-radius: 50% !important;
    background: transparent !important;
    margin-right: 12px !important;
    transition: background 0.3s ease;
}

.nav-tab.active .tab-indicator {
    background: #D4AF37 !important;
}

.scroll-explore {
    display: none !important;
}

.library-info.glass-card {
    border-radius: 24px !important;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.05) !important;
    background: #ffffff !important;
    padding: 48px !important;
    border: 1px solid rgba(0, 0, 0, 0.05) !important;
    backdrop-filter: none !important;
}

.properties-grid {
    display: flex !important;
    flex-direction: column !important;
    gap: 1.5rem !important;
}

.property-item {
    font-size: 15px !important;
}

.app-icon {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 16px !important;
    text-align: center;
    font-size: 15px !important;
}

.app-icon .icon-wrap svg {
    width: 32px !important;
    height: 32px !important;
}

.app-status svg {
    width: 20px !important;
    height: 20px !important;
}

.app-icon.supported {
    color: var(--espresso) !important;
    opacity: 1 !important;
}

.app-icon.unsupported {
    color: #999 !important;
    opacity: 1 !important;
}

.app-icon.unsupported .icon-wrap svg {
    opacity: 0.5;
}

.app-icon:not(.supported)::after {
    display: none !important;
}

.library-visuals {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.sample-stack {
    display: none !important;
}

.visual-preview-board {
    position: relative;
    height: 350px !important;
    perspective: 1000px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.board-layer {
    transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1) !important;
}

.visual-preview-board:hover .layer-face {
    transform: rotateX(60deg) rotateZ(-45deg) translateZ(80px) !important;
}

.visual-preview-board:hover .layer-core-1 {
    transform: rotateX(60deg) rotateZ(-45deg) translateZ(60px) !important;
}

.visual-preview-board:hover .layer-resin {
    transform: rotateX(60deg) rotateZ(-45deg) translateZ(40px) !important;
}

.visual-preview-board:hover .layer-core-2 {
    transform: rotateX(60deg) rotateZ(-45deg) translateZ(20px) !important;
}

.visual-preview-board:hover .layer-back {
    transform: rotateX(60deg) rotateZ(-45deg) translateZ(0px) !important;
}

.layer-label {
    position: absolute;
    right: -140px;
    top: 50%;
    transform: translateY(-50%) rotateZ(45deg) rotateX(-60deg);
    display: flex;
    align-items: center;
    gap: 12px;
    opacity: 0;
    transition: opacity 0.3s ease;
    font-size: 12px;
    white-space: nowrap;
    color: var(--espresso);
    pointer-events: none;
}

.visual-preview-board:hover .layer-label {
    opacity: 1;
}

.leader-line {
    width: 40px;
    height: 1px;
    background: rgba(0, 0, 0, 0.15);
}

.performance-card {
    background: #ffffff;
    border-radius: 24px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.05);
    padding: 32px;
}

.perf-row-dots {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.perf-dots {
    display: flex;
    gap: 6px;
}

.perf-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    border: 1.5px solid var(--espresso);
}

.perf-dot.filled {
    background: var(--espresso);
}

.perf-disclaimer {
    margin-top: 24px;
    padding-top: 16px;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    font-size: 12px;
    color: #666;
    line-height: 1.5;
}

.visual-badge {
    position: absolute;
    top: -20px;
    right: -20px;
    z-index: 10;
}


/* ==========================================================================
   COMPACT LAYOUT ADJUSTMENTS FOR SINGLE PAGE FIT
   ========================================================================== */

.library-grid {
    gap: 32px !important;
}

.library-nav {
    padding: 24px 16px !important;
}

.nav-category h4 {
    margin-bottom: 8px !important;
    font-size: 11px !important;
}

.nav-tab {
    padding: 8px 12px !important;
    margin-bottom: 4px !important;
    font-size: 14px !important;
}

.library-info.glass-card {
    padding: 32px !important;
}

.properties-grid {
    gap: 12px !important;
}

.app-icon {
    gap: 8px !important;
}

.app-icon .icon-wrap svg {
    width: 28px !important;
    height: 28px !important;
}

.library-visuals {
    gap: 24px !important;
}

.visual-preview-board {
    height: 260px !important;
}

.performance-card {
    padding: 24px !important;
}

.perf-row-dots {
    margin-bottom: 8px !important;
}

/* --- NEW MATERIALS LAYOUT CSS --- */

:root {
    --bg-base: #f6f1e6;
    --ink: #2c2620;
    --ink-soft: #6b6255;
    --ink-faint: #96897a;
    --gold: #a97c33;
    --gold-deep: #8a611f;
    --gold-line: rgba(169, 124, 51, .45);
    --gold-soft: rgba(169, 124, 51, .15);

    --card: rgba(255, 255, 255, 0.5);
    --card-hover: rgba(255, 255, 255, 0.72);
    --cream-deep: rgba(255, 255, 255, 0.42);
    --line: rgba(140, 105, 50, .20);
    --line-soft: rgba(140, 105, 50, .14);
    --no: rgba(140, 120, 90, .20);

    --shadow: 0 30px 70px -30px rgba(120, 90, 40, 0.28), 0 1px 0 rgba(255, 255, 255, 0.6) inset;
    --blur: blur(22px) saturate(160%);
}





/* ambient floating color orbs, blurred behind the glass panels */
.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(70px);
    pointer-events: none;
    z-index: 0;
    opacity: .8;
}

.orb-1 {
    width: 420px;
    height: 420px;
    top: -120px;
    left: -100px;
    background: radial-gradient(circle, rgba(230, 190, 130, .55), transparent 70%);
}

.orb-2 {
    width: 460px;
    height: 460px;
    top: 10%;
    right: -140px;
    background: radial-gradient(circle, rgba(214, 168, 140, .5), transparent 70%);
}

.orb-3 {
    width: 380px;
    height: 380px;
    bottom: -140px;
    left: 20%;
    background: radial-gradient(circle, rgba(200, 150, 90, .45), transparent 70%);
}

.orb-4 {
    width: 300px;
    height: 300px;
    bottom: 6%;
    right: 12%;
    background: radial-gradient(circle, rgba(180, 190, 150, .35), transparent 70%);
}

@media (prefers-reduced-motion: no-preference) {
    .orb-1 {
        animation: floatA 22s ease-in-out infinite;
    }

    .orb-2 {
        animation: floatB 26s ease-in-out infinite;
    }

    .orb-3 {
        animation: floatC 24s ease-in-out infinite;
    }
}

@keyframes floatA {

    0%,
    100% {
        transform: translate(0, 0);
    }

    50% {
        transform: translate(30px, 40px);
    }
}

@keyframes floatB {

    0%,
    100% {
        transform: translate(0, 0);
    }

    50% {
        transform: translate(-25px, 30px);
    }
}

@keyframes floatC {

    0%,
    100% {
        transform: translate(0, 0);
    }

    50% {
        transform: translate(20px, -30px);
    }
}

.wrap {
    max-width: 1360px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

/* ---------- HEADER ---------- */
.materials-header {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    position: relative;
    text-align: center;
    margin-bottom: 32px;
}

.eyebrow {
    letter-spacing: .28em;
    font-size: 11px;
    font-weight: 600;
    color: var(--gold-deep);
    margin-bottom: 10px;
}

h1.page-title {
    font-family: 'Playfair Display', serif;
    font-weight: 500;
    font-size: 2.6rem;
    margin: 0 0 14px;
    background: linear-gradient(100deg, #6b4a1c 0%, #2c2620 35%, var(--gold) 70%, #2c2620 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.rule {
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
    margin: 0 auto;
    border-radius: 2px;
}

.badge {
    position: absolute;
    right: 4px;
    top: -6px;
    width: 78px;
    height: 78px;
    filter: drop-shadow(0 0 12px rgba(234, 187, 112, .25));
}

.badge svg {
    width: 100%;
    height: 100%;
    display: block;
}

@media (prefers-reduced-motion: no-preference) {
    .badge-spin {
        animation: spin 26s linear infinite;
        transform-origin: 50% 50%;
    }
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* ---------- LAYOUT ---------- */
.layout {
    display: grid;
    grid-template-columns: 260px 1fr 380px;
    gap: 22px;
    align-items: start;
}

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

/* ---------- GLASS PANEL CORE ---------- */
.panel {
    background:
        linear-gradient(155deg, rgba(255, 255, 255, .55), rgba(255, 255, 255, 0) 45%),
        var(--card);
    -webkit-backdrop-filter: var(--blur);
    backdrop-filter: var(--blur);
    border: 1px solid var(--line);
    border-radius: 26px;
    box-shadow: var(--shadow);
    position: relative;
    isolation: isolate;
}

.panel::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 26px;
    padding: 1px;
    background: linear-gradient(160deg, rgba(255, 255, 255, .85), rgba(255, 255, 255, 0) 30%, rgba(255, 255, 255, 0) 70%, rgba(169, 124, 51, .25));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
    z-index: 2;
}

/* ---------- SIDEBAR ---------- */
.sidebar {
    padding: 22px 18px;
}

@media (max-width: 1080px) {
    .sidebar {
        display: flex;
        overflow-x: auto;
        gap: 24px;
        padding: 16px 20px;
        -webkit-overflow-scrolling: touch;
    }

    .sidebar::-webkit-scrollbar {
        display: none;
        /* Hide scrollbar for cleaner look */
    }
}

.cat-group {
    margin-bottom: 22px;
}

@media (max-width: 1080px) {
    .cat-group {
        display: flex;
        align-items: center;
        gap: 10px;
        margin-bottom: 0;
        flex-shrink: 0;
    }
    
    .cat-items {
        display: flex;
        align-items: center;
        gap: 8px;
    }
}

.cat-group:last-child {
    margin-bottom: 0;
}

.cat-label {
    font-size: 11px;
    letter-spacing: .18em;
    font-weight: 700;
    color: var(--ink-soft);
    margin: 0 0 8px 6px;
    white-space: nowrap;
}

@media (max-width: 1080px) {
    .cat-label {
        margin: 0 8px 0 0;
    }
}

.mat-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 10px;
    border-radius: 12px;
    font-size: 14.5px;
    color: var(--ink-soft);
    cursor: pointer;
    border: 1px solid transparent;
    transition: background .18s ease, color .18s ease, border-color .18s ease, transform .1s ease, box-shadow .18s ease;
    user-select: none;
    white-space: nowrap;
}

.mat-item:hover {
    background: var(--card-hover);
    color: var(--ink);
}

.mat-item .dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: transparent;
    flex-shrink: 0;
    transition: background .15s ease, box-shadow .15s ease;
}

.mat-item.active {
    background: linear-gradient(100deg, rgba(234, 187, 112, .20), rgba(234, 187, 112, .03) 120%);
    color: var(--ink);
    font-weight: 600;
    border-color: var(--gold-line);
    box-shadow: 0 6px 18px -8px rgba(234, 187, 112, .35), 0 0 0 1px rgba(234, 187, 112, .06) inset;
}

.mat-item.active .dot {
    background: var(--gold);
    box-shadow: 0 0 8px rgba(234, 187, 112, .9);
}

.mat-item:active {
    transform: scale(.99);
}

/* ---------- MAIN DETAIL PANEL ---------- */
.detail {
    padding: 32px 40px 26px;
    position: relative;
}

.nav-arrow {
    position: absolute;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(155deg, rgba(255, 255, 255, .14), rgba(255, 255, 255, 0)), var(--card-hover);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
    border: 1px solid var(--line);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--gold);
    box-shadow: 0 8px 20px -8px rgba(0, 0, 0, .45);
    transition: background .15s ease, transform .15s ease, box-shadow .15s ease;
    z-index: 3;
}

.nav-arrow:hover {
    background: linear-gradient(155deg, rgba(234, 187, 112, .28), rgba(234, 187, 112, .05));
    transform: translateY(-50%) scale(1.08);
    box-shadow: 0 10px 24px -8px rgba(234, 187, 112, .4);
}

.nav-prev {
    left: 8px;
    top: 50%;
    transform: translateY(-50%);
}

.nav-next {
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
}

.nav-arrow svg {
    width: 14px;
    height: 14px;
}

.sprig {
    position: absolute;
    top: 14px;
    right: 26px;
    width: 150px;
    opacity: .4;
    pointer-events: none;
}

.detail-eyebrow {
    font-size: 11px;
    letter-spacing: .2em;
    font-weight: 700;
    color: var(--gold);
    margin-bottom: 8px;
}

.detail-title {
    font-family: 'Playfair Display', serif;
    font-weight: 500;
    font-size: 2rem;
    line-height: 1.15;
    margin: 0 0 14px;
    max-width: 80%;
    color: var(--ink);
}

.detail-desc {
    font-size: 14.5px;
    line-height: 1.65;
    color: var(--ink-soft);
    max-width: 520px;
    margin: 0 0 22px;
}

.divider {
    height: 1px;
    background: linear-gradient(90deg, var(--line), transparent);
    margin: 18px 0;
}

.section-label {
    font-size: 11px;
    letter-spacing: .16em;
    font-weight: 700;
    color: var(--ink-soft);
    margin: 0 0 14px;
}

.prop-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px 22px;
    margin-bottom: 8px;
}

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

    .detail {
        padding: 24px 20px 20px;
    }
}

.prop-item {
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.prop-icon {
    width: 36px;
    height: 36px;
    flex-shrink: 0;
    border-radius: 11px;
    background: linear-gradient(155deg, rgba(255, 255, 255, .12), rgba(255, 255, 255, 0)), var(--cream-deep);
    border: 1px solid var(--line-soft);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gold);
    box-shadow: 0 4px 12px -6px rgba(0, 0, 0, .4);
}

.prop-icon svg {
    width: 18px;
    height: 18px;
}

.prop-text {
    font-size: 13.8px;
    line-height: 1.35;
    padding-top: 5px;
    color: var(--ink);
}

.fact-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 10px;
    margin-bottom: 6px;
}

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

.fact-card {
    background: linear-gradient(155deg, rgba(255, 255, 255, .08), rgba(255, 255, 255, 0) 60%), var(--cream-deep);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border: 1px solid var(--line-soft);
    border-radius: 15px;
    padding: 14px 10px;
    text-align: center;
    transition: transform .18s ease, border-color .18s ease;
}

.fact-card:hover {
    transform: translateY(-2px);
    border-color: var(--gold-line);
}

.fact-icon {
    color: var(--gold);
    margin-bottom: 8px;
}

.fact-icon svg {
    width: 20px;
    height: 20px;
}

.fact-label {
    font-size: 11px;
    color: var(--ink-faint);
    margin-bottom: 4px;
    line-height: 1.25;
}

.fact-value {
    font-size: 13px;
    font-weight: 700;
    color: var(--ink);
}

.app-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 10px;
}

@media (max-width: 720px) {
    .app-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.app-card {
    border: 1px solid var(--line-soft);
    border-radius: 15px;
    padding: 14px 8px 10px;
    text-align: center;
    position: relative;
    transition: opacity .15s ease, transform .18s ease, border-color .18s ease;
}

.app-card.rec {
    background: linear-gradient(155deg, rgba(234, 187, 112, .14), rgba(234, 187, 112, .02) 70%);
    border-color: rgba(234, 187, 112, .3);
}

.app-card.rec:hover {
    transform: translateY(-2px);
}

.app-card.not-rec {
    opacity: .4;
}

.app-icon {
    color: var(--ink);
    margin-bottom: 8px;
}

.app-card.not-rec .app-icon {
    color: var(--ink-faint);
}

.app-icon svg {
    width: 22px;
    height: 22px;
}

.app-name {
    font-size: 11.5px;
    color: var(--ink);
    margin-bottom: 8px;
}

.app-card.not-rec .app-name {
    color: var(--ink-faint);
}

.app-mark {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.app-mark.yes {
    background: linear-gradient(155deg, #f2dcae, var(--gold-deep));
    color: #3a2a10;
    box-shadow: 0 0 10px rgba(169, 124, 51, .35);
}

.app-mark.no {
    background: var(--no);
    color: var(--ink-faint);
}

.app-mark svg {
    width: 9px;
    height: 9px;
}

.legend {
    display: flex;
    gap: 22px;
    justify-content: center;
    margin-top: 20px;
    font-size: 12px;
    color: var(--ink-soft);
}

.legend span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.legend .lg-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.legend .lg-dot.yes {
    background: linear-gradient(155deg, #f2dcae, var(--gold-deep));
}

.legend .lg-dot.no {
    background: var(--no);
}

/* ---------- RIGHT PANEL ---------- */
.right-col {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.illustration {
    padding: 26px 24px 10px;
}

.illustration svg:not(.accordion-chevron) {
    width: 140%;
    height: 300px;
    display: block;
}

@media (max-width: 1080px) {
    .illustration svg:not(.accordion-chevron) {
        width: 100%;
        height: auto;
        min-height: 18px;
    }
}

.perf {
    padding: 24px 26px 26px;
}

.perf-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
    margin-bottom: 20px;
}

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

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

.perf-icon {
    color: var(--gold);
    margin-bottom: 10px;
    filter: drop-shadow(0 0 6px rgba(234, 187, 112, .35));
}

.perf-icon svg {
    width: 22px;
    height: 22px;
}

.perf-label {
    font-size: 12px;
    color: var(--ink);
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 8px;
    min-height: 32px;
}

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

.stars svg {
    width: 13px;
    height: 13px;
}

.star-fill {
    color: var(--gold);
    filter: drop-shadow(0 0 3px rgba(234, 187, 112, .6));
}

.star-empty {
    color: var(--line);
}

.note-box {
    background: linear-gradient(155deg, rgba(255, 255, 255, .07), rgba(255, 255, 255, 0) 60%), var(--cream-deep);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border: 1px solid var(--line-soft);
    border-radius: 16px;
    padding: 16px 18px;
    display: flex;
    gap: 14px;
    align-items: flex-start;
}

.note-icon {
    width: 32px;
    height: 32px;
    border-radius: 10px;
    background: var(--card-hover);
    border: 1px solid var(--line-soft);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gold);
    flex-shrink: 0;
}

.note-icon svg {
    width: 16px;
    height: 16px;
}

.note-text {
    font-size: 13px;
    line-height: 1.55;
    color: var(--ink-soft);
}

/* fade transition for content swap */
.fade-swap {
    animation: fadeIn .28s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(4px);
    }

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

::selection {
    background: var(--gold-soft);
    color: #241a0c;
}

a.mat-item:focus-visible,
.nav-arrow:focus-visible,
.mat-item:focus-visible {
    outline: 2px solid var(--gold);
    outline-offset: 2px;
}

/* --- PC Accordion Fallback --- */
.accordion-chevron {
    display: none;
}

@media (max-width: 900px) {
    .layout {
        display: flex;
        flex-direction: column;
        gap: 12px;
        padding: 0 10px;
    }

    .detail,
    .right-col {
        display: contents;
    }

    #sidebar,
    .detail-eyebrow,
    .detail-title,
    .detail-desc,
    .mobile-features-layout {
        grid-column: 1 / -1;
    }

    .detail>.divider {
        display: none;
    }

    #illustrationPanel,
    #perfPanel {
        grid-column: 1 / -1;
        background: none;
        border: none;
        box-shadow: none;
        backdrop-filter: none;
        padding: 0;
    }

    .illustration svg:not(.accordion-chevron) {
        min-height: auto;
    }

    .perf-grid {
        grid-template-columns: repeat(4, 1fr) !important;
        gap: 4px !important;
        margin-bottom: 12px !important;
    }

    .perf-label {
        font-size: 8px !important;
        min-height: 20px !important;
    }

    .perf-icon svg {
        width: 14px !important;
        height: 14px !important;
    }

    .stars svg {
        width: 8px !important;
        height: 8px !important;
    }

    .note-box {
        background: #FFFFFF;
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        border: 1px solid rgba(234, 187, 112, 0.2);
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
        padding: 10px;
        border-radius: 12px;
        align-items: center;
    }

    .note-icon {
        width: 24px;
        height: 24px;
        border-radius: 6px;
    }

    .note-icon svg {
        width: 12px;
        height: 12px;
    }

    .note-text {
        font-size: 10px;
        line-height: 1.4;
    }

    .app-grid {
        display: flex !important;
        flex-direction: column;
        gap: 12px;
        padding-bottom: 10px;
    }

    .app-card {
        background: #FFF9F2;
        border: 1px solid rgba(234, 187, 112, 0.2) !important;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
        border-radius: 14px !important;
        padding: 10px 4px 14px !important;
        opacity: 1 !important;
        position: relative !important;
        overflow: visible !important;
    }

    .app-card.not-rec {
        opacity: 0.5 !important;
        background: #FFFFFF;
    }

    .app-card.not-rec .app-icon,
    .app-card.not-rec .app-name {
        color: var(--ink-faint) !important;
    }

    .app-icon svg {
        width: 16px !important;
        height: 16px !important;
    }

    .app-name {
        font-size: 10px !important;
        margin-bottom: 0 !important;
    }

    .app-mark {
        width: 16px !important;
        height: 16px !important;
        position: absolute !important;
        bottom: -8px !important;
        left: 50% !important;
        transform: translateX(-50%) !important;
        box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15) !important;
    }

    .app-mark svg {
        width: 8px !important;
        height: 8px !important;
    }

    .nav-arrow {
        display: none;
    }

    .mobile-features-layout {
        display: flex;
        flex-direction: column;
        gap: 12px;
        margin-top: 10px;
    }

    .mobile-features-layout .feat-divider {
        display: none;
    }

    .desktop-only {
        display: none !important;
    }

    /* --- MOBILE ACCORDION STYLES --- */
    .accordion-section {
        background: linear-gradient(155deg, rgba(255, 255, 255, .55), rgba(255, 255, 255, 0) 45%), var(--card);
        backdrop-filter: var(--blur);
        -webkit-backdrop-filter: var(--blur);
        border: 1px solid var(--line);
        border-radius: 20px;
        overflow: hidden;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
    }

    .accordion-header {
        display: flex !important;
        align-items: center;
        justify-content: space-between;
        padding: 16px 20px;
        margin: 0 !important;
        cursor: pointer;
        user-select: none;
        background: transparent;
        transition: background 0.3s ease;
    }

    .accordion-header:active {
        background: rgba(255, 255, 255, 0.4);
    }

    .accordion-chevron {
        display: block;
        width: 18px;
        height: 18px;
        color: var(--gold-deep);
        transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    }

    .accordion-section.expanded .accordion-chevron {
        transform: rotate(180deg);
    }

    .accordion-content {
        display: grid;
        grid-template-rows: 0fr;
        transition: grid-template-rows 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    }

    .accordion-section.expanded .accordion-content {
        grid-template-rows: 1fr;
    }

    .accordion-content>.accordion-inner {
        min-height: 0;
        overflow: hidden;
        opacity: 0;
        transition: opacity 0.3s ease;
        padding: 0 20px;
    }

    .accordion-section.expanded .accordion-content>.accordion-inner {
        opacity: 1;
        padding-bottom: 20px;
    }

    .feat-left .prop-grid {
        display: flex;
        flex-direction: column;
        gap: 10px;
        margin-bottom: 0;
    }

    .feat-left .prop-item {
        background: #FFFFFF;
        border-radius: 12px;
        padding: 8px 12px;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
        display: flex;
        align-items: center;
        gap: 10px;
        border: 1px solid rgba(234, 187, 112, 0.2);
        width: 100%;
    }

    .feat-left .prop-icon {
        background: none;
        width: 20px;
        height: 20px;
        border: none;
        padding: 0;
        box-shadow: none;
    }

    .feat-left .prop-text {
        font-size: 11px;
        font-weight: 500;
        color: #5C5042;
        margin-bottom: 0;
    }

    .feat-right .fact-grid {
        display: flex;
        flex-direction: column;
        gap: 10px;
        margin-bottom: 0;
    }

    .feat-right .fact-card {
        background: #FFFFFF;
        border: 1px solid rgba(234, 187, 112, 0.2);
        border-radius: 12px;
        padding: 10px;
        display: grid;
        grid-template-columns: 18px 1fr;
        grid-template-rows: auto auto;
        gap: 2px 8px;
        align-items: center;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
        text-align: left;
    }

    .feat-right .fact-icon {
        grid-column: 1;
        grid-row: 1 / 3;
        color: var(--gold);
        margin: 0;
    }

    .feat-right .fact-icon svg {
        width: 16px;
        height: 16px;
    }

    .feat-right .fact-label {
        grid-column: 2;
        grid-row: 1;
        font-size: 9px;
        text-transform: uppercase;
        color: #A69B8D;
        margin: 0;
    }

    .feat-right .fact-value {
        grid-column: 2;
        grid-row: 2;
        font-size: 11px;
        font-weight: 700;
        color: #2C2318;
    }
}

/* --- EXTRA SAFETY FOR NEW MATERIALS LAYOUT --- */
#materials {
    position: relative;
    overflow: hidden;
    /* Ensure the ambient orbs don't leak out of the section */
}


/* ==========================================================================
   METHODOLOGY CARDS HOVER ANIMATIONS
   ========================================================================== */

.problem-card {
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: transform;
}

.problem-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 32px 64px rgba(0, 0, 0, 0.15);
}

.solution-circle {
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: transform;
}

.solution-circle:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.12), inset 0 2px 20px rgba(255, 255, 255, 0.4);
}

/* ═══════════════════════════════════════════════════════════════
   QUESTIONNAIRE JOURNEY
   ═══════════════════════════════════════════════════════════════ */
.contact-journey-wrapper {
    position: relative;
    width: 100%;
    min-height: 600px;
}

.journey-step {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 1s var(--ease), transform 1s var(--ease);
    transform: translateY(20px);
}

.journey-step.active {
    position: relative;
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Transition Section */
.transition-content,
.thank-you-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 8rem 2rem;
}

.transition-title {
    font-size: 3.5rem;
    line-height: 1.2;
    margin-bottom: 2rem;
    color: var(--espresso);
}

.transition-desc {
    font-size: 1.2rem;
    color: var(--espresso-soft);
    max-width: 600px;
    margin: 0 auto 3rem;
}

.transition-meta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    font-size: 0.9rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.meta-dot {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background-color: var(--gold);
}

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

/* Questionnaire Shell */
#journey-questionnaire {
    max-width: 1000px;
    margin: 0 auto;
    padding: 4rem 0;
}

.q-progress-container {
    margin-bottom: 5rem;
}

.q-progress-text {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1rem;
    font-family: var(--font-sans);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--espresso-soft);
}

.q-progress-bar-bg {
    width: 100%;
    height: 1px;
    background-color: rgba(184, 146, 74, 0.2);
    position: relative;
}

.q-progress-bar-fill {
    position: absolute;
    top: -1px;
    left: 0;
    height: 3px;
    background-color: var(--gold);
    width: 0%;
    transition: width 1s var(--ease);
}

.q-sections-wrapper {
    position: relative;
    min-height: 450px;
}

.q-section {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.8s var(--ease), transform 0.8s var(--ease), filter 0.8s var(--ease);
    transform: translateY(15px);
    filter: blur(4px);
}

.q-section.active {
    position: relative;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
    filter: blur(0);
}

.q-header {
    margin-bottom: 4rem;
    text-align: center;
}

.q-header h2 {
    font-size: 2.8rem;
    margin: 1rem 0;
}

.q-header p {
    color: var(--espresso-soft);
    font-size: 1.1rem;
}

.q-body {
    margin-bottom: 4rem;
}

.q-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(44, 35, 24, 0.05);
}

/* Inputs & Cards */
.q-input-group.floating {
    position: relative;
    margin-bottom: 2.5rem;
}

.q-input {
    width: 100%;
    background: var(--ivory);
    border: 1px solid rgba(184, 146, 74, 0.2);
    border-radius: 8px;
    padding: 1.8rem 1.5rem 0.6rem;
    font-family: var(--font-sans);
    font-size: 1.1rem;
    color: var(--espresso);
    transition: all 0.4s var(--ease);
}

.q-input:focus {
    outline: none;
    border-color: var(--gold);
    box-shadow: 0 0 0 4px rgba(184, 146, 74, 0.1);
    background: var(--white);
}

.q-input-group.floating label {
    position: absolute;
    left: 1.5rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.1rem;
    color: var(--espresso-soft);
    pointer-events: none;
    transition: all 0.4s var(--ease);
}

textarea.q-input+label {
    top: 1.8rem;
    transform: none;
}

.q-input:focus+label,
.q-input:not(:placeholder-shown)+label {
    top: 0.6rem;
    font-size: 0.75rem;
    color: var(--gold);
    font-weight: 500;
}

.q-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.q-card {
    cursor: pointer;
    position: relative;
    display: block;
}

.q-card input {
    display: none;
}

.q-card-inner {
    background: var(--cream);
    border: 1px solid rgba(184, 146, 74, 0.15);
    border-radius: 12px;
    padding: 2.5rem 2rem;
    height: 100%;
    transition: all 0.6s var(--ease);
    box-shadow: var(--shadow-sm);
}

.q-card:hover .q-card-inner {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    background: var(--ivory);
}

.q-card input:checked+.q-card-inner {
    border-color: var(--gold);
    box-shadow: 0 0 0 1px var(--gold), var(--shadow-md);
    background: var(--white);
}

.q-card-inner h4 {
    font-family: var(--font-display);
    font-size: 1.6rem;
    margin-bottom: 0.8rem;
    color: var(--espresso);
}

.q-card-inner p {
    font-size: 1rem;
    color: var(--espresso-soft);
    margin: 0;
    line-height: 1.6;
}

@media (max-width: 768px) {
    .transition-title {
        font-size: 2.2rem;
    }

    .q-header h2 {
        font-size: 2.2rem;
    }

    .q-cards-grid {
        grid-template-columns: 1fr;
    }

    .transition-content,
    .thank-you-content {
        padding: 4rem 1rem;
    }
}