:root {
    --bg-primary: #FCFBF9;
    --bg-secondary: #F3F2EE;
    --text-main: #1C1B1A;
    --text-muted: #6C6B69;
    --accent-warm: #C5A059;
    /* Warm metallic / brass */
    --accent-warm-glow: rgba(197, 160, 89, 0.5);
    --border-color: #e5e5e5;

    --font-heading: 'Cormorant Garamond', serif;
    --font-body: 'Jost', sans-serif;

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

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-primary);
    color: var(--text-main);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
.logo {
    font-family: var(--font-heading);
    letter-spacing: -0.03em;
    font-weight: 500;
}

/* Header */
.site-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 5%;
    border-bottom: 1px solid var(--border-color);
    background-color: var(--bg-primary);
    position: sticky;
    top: 0;
    z-index: 100;
}

.logo {
    font-size: 1.3rem;
    font-weight: 700;
    letter-spacing: 0.15em;
}

.main-nav a {
    text-decoration: none;
    color: var(--text-main);
    margin-left: 2.5rem;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 500;
    transition: var(--transition);
}

.main-nav a:hover {
    color: var(--accent-warm);
}

/* Hero Section */
.hero {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 85vh;
    border-bottom: 1px solid var(--border-color);
}

.hero-content {
    padding: 10%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.hero h1 {
    font-size: 4.5rem;
    line-height: 1.05;
    margin-bottom: 1.5rem;
}

.hero .subtitle {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 3rem;
    max-width: 420px;
}

.btn-primary {
    display: inline-block;
    padding: 1rem 2.5rem;
    background-color: var(--text-main);
    color: var(--bg-primary);
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.8rem;
    font-family: var(--font-heading);
    font-weight: 600;
    transition: var(--transition);
    border: 1px solid var(--text-main);
}

.btn-primary:hover {
    background-color: transparent;
    color: var(--text-main);
}

.hero-visual {
    background-color: var(--bg-secondary);
    position: relative;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}

.grid-overlay {
    position: absolute;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(var(--border-color) 1px, transparent 1px),
        linear-gradient(90deg, var(--border-color) 1px, transparent 1px);
    background-size: 40px 40px;
    opacity: 0.5;
}

.light-line {
    position: absolute;
    width: 2px;
    height: 150%;
    background: linear-gradient(to bottom, transparent, var(--accent-warm), transparent);
    animation: drift 10s infinite linear;
    z-index: 2;
    transform-origin: center;
}

.light-line.secondary {
    width: 150%;
    height: 2px;
    background: linear-gradient(to right, transparent, var(--text-main), transparent);
    animation: drift-horizontal 15s infinite linear;
}

@keyframes drift {
    0% {
        transform: translateX(-150px) rotate(15deg);
        opacity: 0;
    }

    50% {
        opacity: 1;
    }

    100% {
        transform: translateX(150px) rotate(15deg);
        opacity: 0;
    }
}

@keyframes drift-horizontal {
    0% {
        transform: translateY(-100px) rotate(-10deg);
        opacity: 0;
    }

    50% {
        opacity: 0.5;
    }

    100% {
        transform: translateY(100px) rotate(-10deg);
        opacity: 0;
    }
}

/* General Sections */
section {
    padding: 8rem 5%;
}

.section-header {
    margin-bottom: 4rem;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.divider {
    height: 3px;
    width: 80px;
    background-color: var(--text-main);
}

.divider.dark {
    background-color: var(--accent-warm);
}

.white-text {
    color: var(--bg-primary);
}

/* Category Grid */
.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.category-card {
    padding: 3rem 2rem;
    border: 1px solid var(--border-color);
    background-color: var(--bg-primary);
    transition: var(--transition);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.category-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: var(--text-main);
    transform: scaleX(0);
    transform-origin: left;
    transition: var(--transition);
}

.category-card:hover {
    border-color: var(--text-main);
}

.category-card:hover::before {
    transform: scaleX(1);
}

.category-card h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.category-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.5;
}

/* Featured / Black Card Section */
.featured-product {
    background-color: var(--text-main);
    color: var(--bg-primary);
}

.black-card-container {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem 0;
}

.black-card {
    position: relative;
    width: 100%;
    max-width: 1000px;
    height: 550px;
    background-color: #050505;
    border: 1px solid #222;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    overflow: hidden;
    cursor: default;
    transition: var(--transition);
}

.card-content {
    position: relative;
    z-index: 2;
    padding: 4rem;
    transition: var(--transition);
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0) 100%);
}

.black-card h3 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    color: rgba(255, 255, 255, 0.45);
    transition: color 0.5s ease;
}

.black-card .specs {
    font-family: var(--font-heading);
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.3);
    margin-bottom: 1.5rem;
    letter-spacing: 0.05em;
    transition: color 0.5s ease;
}

.black-card .desc {
    color: rgba(255, 255, 255, 0.3);
    max-width: 500px;
    font-size: 1rem;
    transition: color 0.5s ease;
}

/* Product Silhouette (Luminaire) */
.product-silhouette {
    position: absolute;
    top: 25%;
    left: 10%;
    width: 80%;
    height: 30px;
    background-color: #0a0a0a;
    border: 1px solid #1a1a1a;
    z-index: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    /* geometric details */
    box-shadow: inset 0 2px 5px rgba(255, 255, 255, 0.02);
}

.light-bar {
    width: 98%;
    height: 4px;
    background-color: #111;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: none;
}

.glow-effect {
    position: absolute;
    top: 25%;
    left: 10%;
    width: 80%;
    height: 300px;
    background: radial-gradient(ellipse at top, var(--accent-warm-glow), transparent 70%);
    opacity: 0;
    transition: opacity 0.5s ease;
    z-index: 0;
    pointer-events: none;
}

.black-card:hover {
    border-color: #444;
}

.black-card:hover h3 {
    color: #ffffff;
}

.black-card:hover .specs {
    color: var(--accent-warm);
}

.black-card:hover .desc {
    color: #cccccc;
}

/* Featured card photo */
.featured-product-img {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    object-fit: cover;
    opacity: 1;
    z-index: 0;
    pointer-events: none;
    transition: transform 0.6s ease;
}

.black-card:hover .featured-product-img {
    transform: scale(1.02);
}

/* Engineering Section */
.engineering-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6rem;
    align-items: center;
}

.engineering-text h2 {
    font-size: 3rem;
    margin-bottom: 2rem;
    line-height: 1.1;
}

.engineering-text p {
    color: var(--text-muted);
    margin-bottom: 3rem;
    font-size: 1.1rem;
}

.spec-list {
    list-style: none;
    border-top: 1px solid var(--border-color);
}

.spec-list li {
    padding: 1.5rem 0;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    font-size: 0.95rem;
}

.spec-list span {
    font-family: var(--font-heading);
    font-weight: 500;
    color: var(--text-main);
}

.blueprint-box {
    width: 100%;
    aspect-ratio: 1;
    border: 1px solid var(--border-color);
    background-image:
        linear-gradient(var(--border-color) 1px, transparent 1px),
        linear-gradient(90deg, var(--border-color) 1px, transparent 1px);
    background-size: 20px 20px;
    position: relative;
    background-color: var(--bg-secondary);
}

.blueprint-box::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 60%;
    height: 60%;
    border: 2px solid var(--text-main);
    transform: translate(-50%, -50%) rotate(45deg);
}

.blueprint-box::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 30%;
    height: 30%;
    background-color: var(--text-main);
    transform: translate(-50%, -50%) rotate(45deg);
}

/* Footer */
.site-footer {
    background-color: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    padding: 5rem 5% 2rem;
}

.footer-grid {
    display: flex;
    justify-content: space-between;
    margin-bottom: 5rem;
}

.footer-brand p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-top: 0.5rem;
    font-family: var(--font-heading);
}

.footer-links {
    display: flex;
    gap: 3rem;
}

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.85rem;
    transition: var(--transition);
}

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

.footer-bottom {
    display: flex;
    justify-content: space-between;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
    color: var(--text-muted);
    font-size: 0.8rem;
}

/* --- MULTI-PAGE ADDITIONS --- */
.site-header-dark {
    background-color: transparent !important;
    border-bottom: none !important;
    position: absolute;
    width: 100%;
    z-index: 999;
}

.site-header-dark .logo a,
.site-header-dark .main-nav a {
    color: #ffffff !important;
    text-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}

.page-hero-interactive {
    position: relative;
    height: 38vh;
    min-height: 220px;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: var(--bg-secondary);
    border-bottom: 1px solid var(--border-color);
}

.parallax-bg {
    position: absolute;
    top: -5%;
    left: -5%;
    width: 110%;
    height: 110%;
    background-size: cover;
    background-position: center;
    transition: transform 0.1s ease-out;
    z-index: 0;
    opacity: 0.8;
}

/* Category hero backgrounds — light, subtle patterns */
#bg-architectural {
    background: repeating-linear-gradient(45deg, rgba(28,27,26,0.04) 0, rgba(28,27,26,0.04) 1px, transparent 1px, transparent 40px);
    box-shadow: none;
}

#bg-technical {
    background: repeating-radial-gradient(circle at center, rgba(28,27,26,0.04) 0, rgba(28,27,26,0.04) 1px, transparent 2px, transparent 20px);
}

#bg-office {
    background: linear-gradient(rgba(28,27,26,0.05) 1px, transparent 1px), linear-gradient(90deg, rgba(28,27,26,0.05) 1px, transparent 1px);
    background-size: 80px 80px;
    background-color: transparent;
}

#bg-outdoor {
    background: radial-gradient(ellipse at 50% 0%, rgba(197,160,89,0.12) 0%, transparent 70%);
}

#bg-decorative {
    background: repeating-conic-gradient(from 0deg, rgba(28,27,26,0.03) 0deg 10deg, transparent 10deg 20deg);
}

#bg-standing,
#bg-downlights,
#bg-linear,
#bg-tracklights,
#bg-task,
#bg-emergency {
    background: none;
}

.page-hero-interactive .hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    align-items: center;
    pointer-events: none;
}

.page-hero-interactive h1 {
    font-size: 5rem;
    margin-bottom: 0.75rem;
    letter-spacing: -0.05em;
    color: var(--text-main);
    text-shadow: none;
    position: relative;
    padding-left: 0;
    display: inline-block;
}

.page-hero-interactive .subtitle {
    font-size: 1.1rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto;
    text-shadow: none;
}

.hero-vertical-strike {
    position: absolute;
    left: 0;
    top: 5px;
    bottom: calc(1rem + 5px);
    /* Matches typical h1 bottom margin */
    width: 3px;
    background-color: var(--accent-warm);
    box-shadow: 0 0 15px 3px var(--accent-warm-glow);
    border-radius: 2px;
    transform-origin: top;
    animation: vertical-ignition 4s cubic-bezier(0.25, 0.8, 0.25, 1) infinite;
    z-index: 10;
}

@keyframes vertical-ignition {
    0% {
        transform: scaleY(0);
        opacity: 0;
    }

    15% {
        transform: scaleY(1);
        opacity: 1;
    }

    85% {
        transform: scaleY(1);
        opacity: 1;
    }

    100% {
        transform: scaleY(1);
        opacity: 0;
    }
}

.scroll-indicator {
    display: none;
}

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

/* Light-banner overrides: reset dark-themed text-mask animations */
.text-mask-office,
.text-mask-outdoor,
.text-mask-architectural,
.text-mask-technical {
    color: var(--text-main) !important;
    text-shadow: none !important;
    -webkit-mask-image: none !important;
    mask-image: none !important;
    background-image: none !important;
    -webkit-background-clip: initial !important;
    background-clip: initial !important;
    opacity: 1 !important;
    animation: none !important;
}

/* Hide dark decorative elements inside the light category hero */
.page-hero-interactive .arch-eclipse-scene,
.page-hero-interactive .fixture-office-container,
.page-hero-interactive .fixture-tech-4point-container,
.page-hero-interactive .hero-fixture-container {
    display: none;
}

@keyframes bounce {

    0%,
    100% {
        height: 60px;
        opacity: 1;
        transform: translateY(0);
    }

    50% {
        height: 40px;
        opacity: 0.5;
        transform: translateY(10px);
    }
}

.category-description {
    max-width: 800px;
    margin-bottom: 4rem;
}

.category-description h2 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
}

.category-description p {
    font-size: 1.15rem;
    color: var(--text-muted);
}

.technical-product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 4rem 3rem;
    padding: 2rem 0;
}

.product-item {
    cursor: pointer;
    transition: var(--transition);
}



.product-placeholder {
    width: 100%;
    height: 400px;
    background-color: var(--bg-secondary);
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 1.5rem;
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
    transition: var(--transition);
}

.product-placeholder:hover {
    border-color: var(--text-main);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.05);
}

.product-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.product-item:hover .product-placeholder img {
    transform: scale(1.04);
}

.product-item h4 {
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
    font-family: var(--font-heading);
}

.product-item .specs {
    font-family: var(--font-heading);
    color: var(--text-muted);
    font-size: 0.85rem;
    letter-spacing: 0.05em;
    border-top: 1px solid var(--border-color);
    padding-top: 0.5rem;
    margin-top: 0.5rem;
}

/* Sub-page layouts */
.sub-page-hero {
    height: 50vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    border-bottom: 1px solid var(--border-color);
}

.sub-page-hero h1 {
    font-size: 5rem;
}

/* Responsive */
@media (max-width: 1000px) {

    .hero,
    .engineering-grid {
        grid-template-columns: 1fr;
    }

    .hero-content {
        border-right: none;
        border-bottom: 1px solid var(--border-color);
        padding: 5rem 5%;
    }

    .hero h1 {
        font-size: 3.5rem;
    }

    .hero-visual {
        min-height: 400px;
    }

    .main-nav {
        display: none;
    }

    .footer-grid {
        flex-direction: column;
        gap: 2rem;
    }

    .category-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }
}

@media (max-width: 600px) {
    .hero h1 {
        font-size: 2.5rem;
    }

    .black-card {
        height: 400px;
    }

    .card-content {
        padding: 2rem;
    }
}

/* --- STUDIO & PROJECTS PAGE ADDITIONS --- */

/* Layout & Reveal Observers */
.two-column {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.three-column {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
}

@media(max-width: 900px) {

    .two-column,
    .three-column {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 1s cubic-bezier(0.25, 1, 0.5, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Studio Stats */
.stat-number {
    font-family: var(--font-heading);
    color: var(--accent-warm);
    font-size: 4rem;
    line-height: 1;
    margin-bottom: 0.5rem;
}

.stat-label {
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.15em;
    color: var(--text-muted);
}

/* Project Cards */
.project-card {
    display: flex;
    gap: 4rem;
    align-items: center;
    margin-bottom: 8rem;
}

.project-card.reversed {
    flex-direction: row-reverse;
}

@media(max-width: 900px) {

    .project-card,
    .project-card.reversed {
        flex-direction: column;
        gap: 2rem;
        margin-bottom: 4rem;
    }
}

.project-image {
    flex: 1.2;
    position: relative;
    border-radius: 2px;
    overflow: hidden;
    background-color: var(--border-color);
    aspect-ratio: 16 / 10;
    display: flex;
    align-items: center;
    justify-content: center;
}

.project-info {
    flex: 1;
}

.project-obj-label {
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    margin-bottom: 1rem;
    display: block;
}

.project-header-title {
    font-size: 2.2rem;
    font-family: var(--font-heading);
    margin-bottom: 1.5rem;
}

.project-desc {
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 2rem;
}

.fixtures-wrap {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.fixtures-label {
    font-size: 0.9rem;
    color: var(--text-main);
    font-weight: 500;
}

.fixture-tag {
    font-size: 0.8rem;
    padding: 0.4rem 1rem;
    border: 1px solid var(--accent-warm);
    color: var(--accent-warm);
    border-radius: 20px;
    text-decoration: none;
    transition: var(--transition);
}

.fixture-tag:hover {
    background-color: var(--accent-warm);
    color: #fff;
}

/* --- PHYSICS-BASED HERO FIXTURE ANIMATIONS --- */
.hero-fixture-container {
    position: absolute;
    top: -80px;
    left: 0;
    width: 100%;
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    pointer-events: none;
}

/* 1. TECHNICAL: 4-Corner Precision Spotlights */
.fixture-tech-4point-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    pointer-events: none;
    z-index: 1;
    overflow: hidden;
}

.tech-fixture-wrapper {
    position: absolute;
    width: 140px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.tech-pillar-source {
    width: 40px;
    height: 15px;
    background: #111;
    border: 2px solid #333;
    border-radius: 4px;
    box-shadow: inset 0 -2px 5px rgba(255, 255, 255, 0.1);
    position: relative;
    z-index: 2;
}

.tech-pillar-source::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 7px;
    width: 22px;
    height: 6px;
    background: #fff;
    box-shadow: 0 0 15px #fff;
    opacity: 0;
}

.tech-pillar-beam {
    width: 140px;
    height: 1200px;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.12) 0%, transparent 100%);
    clip-path: polygon(30% 0, 70% 0, 100% 100%, 0% 100%);
    margin-top: -5px;
    opacity: 0;
    transform-origin: top center;
}

/* Positions & Rotations (Aiming at center) */
.tech-fixture-wrapper.tl {
    top: 80px;
    left: 10%;
    transform: rotate(-55deg);
    transform-origin: top center;
}

.tech-fixture-wrapper.tr {
    top: 80px;
    right: 10%;
    transform: rotate(55deg);
    transform-origin: top center;
}

.tech-fixture-wrapper.bl {
    top: calc(100vh - 120px);
    left: 10%;
    transform: rotate(-125deg);
    transform-origin: top center;
}

.tech-fixture-wrapper.br {
    top: calc(100vh - 120px);
    right: 10%;
    transform: rotate(125deg);
    transform-origin: top center;
}

/* Beam & Lens Animations */
/* TL fires instantly and lasts 4s before cut */
.tech-fixture-wrapper.tl .tech-pillar-beam {
    animation: beam-tl 4s step-end forwards;
    animation-delay: 0.5s;
}

.tech-fixture-wrapper.tl .tech-pillar-source::after {
    animation: lens-progression 4s step-end forwards;
    animation-delay: 0.5s;
}

/* TR fires 1s in, lasts 3s before cut */
.tech-fixture-wrapper.tr .tech-pillar-beam {
    animation: beam-tr 4s step-end forwards;
    animation-delay: 0.5s;
}

.tech-fixture-wrapper.tr .tech-pillar-source::after {
    animation: lens-progression-tr 4s step-end forwards;
    animation-delay: 0.5s;
}

/* BL fires 2s in, lasts 2s before cut */
.tech-fixture-wrapper.bl .tech-pillar-beam {
    animation: beam-bl 4s step-end forwards;
    animation-delay: 0.5s;
}

.tech-fixture-wrapper.bl .tech-pillar-source::after {
    animation: lens-progression-bl 4s step-end forwards;
    animation-delay: 0.5s;
}

/* BR fires 3s in, lasts 1s before cut */
.tech-fixture-wrapper.br .tech-pillar-beam {
    animation: beam-br 4s step-end forwards;
    animation-delay: 0.5s;
}

.tech-fixture-wrapper.br .tech-pillar-source::after {
    animation: lens-progression-br 4s step-end forwards;
    animation-delay: 0.5s;
}

/* Beams stay on permanently */
@keyframes beam-tl {

    0%,
    24.9% {
        opacity: 1;
        filter: brightness(2);
    }

    25%,
    100% {
        opacity: 1;
        filter: brightness(1.2);
    }
}

@keyframes beam-tr {

    0%,
    24.9% {
        opacity: 0;
    }

    25%,
    49.9% {
        opacity: 1;
        filter: brightness(2);
    }

    50%,
    100% {
        opacity: 1;
        filter: brightness(1.2);
    }
}

@keyframes beam-bl {

    0%,
    49.9% {
        opacity: 0;
    }

    50%,
    74.9% {
        opacity: 1;
        filter: brightness(2);
    }

    75%,
    100% {
        opacity: 1;
        filter: brightness(1.2);
    }
}

@keyframes beam-br {

    0%,
    74.9% {
        opacity: 0;
    }

    75%,
    99.9% {
        opacity: 1;
        filter: brightness(2);
    }

    100% {
        opacity: 1;
        filter: brightness(1.2);
    }
}

/* Lens progresses then snaps to smaller pinpoint at 100% */
@keyframes lens-progression {
    0% {
        opacity: 1;
        filter: drop-shadow(0 0 20px rgba(255, 255, 255, 1));
    }

    100% {
        opacity: 1;
        filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.8));
    }
}

@keyframes lens-progression-tr {
    0% {
        opacity: 0;
    }

    25% {
        opacity: 1;
        filter: drop-shadow(0 0 20px rgba(255, 255, 255, 1));
    }

    100% {
        opacity: 1;
        filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.8));
    }
}

@keyframes lens-progression-bl {
    0% {
        opacity: 0;
    }

    50% {
        opacity: 1;
        filter: drop-shadow(0 0 20px rgba(255, 255, 255, 1));
    }

    100% {
        opacity: 1;
        filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.8));
    }
}

@keyframes lens-progression-br {
    0% {
        opacity: 0;
    }

    75% {
        opacity: 1;
        filter: drop-shadow(0 0 20px rgba(255, 255, 255, 1));
    }

    100% {
        opacity: 1;
        filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.8));
    }
}

/* Single Text Mask */
.text-mask-technical {
    position: relative;
    display: inline-block;
    color: transparent;
    -webkit-background-clip: text;
    background-clip: text;
    background-image:
        radial-gradient(ellipse at 20% 10%, rgba(255, 255, 255, 0.4) 0%, transparent 60%),
        radial-gradient(ellipse at 80% 10%, rgba(255, 255, 255, 0.4) 0%, transparent 60%),
        radial-gradient(ellipse at 20% 90%, rgba(255, 255, 255, 0.4) 0%, transparent 60%),
        radial-gradient(ellipse at 80% 90%, rgba(255, 255, 255, 0.4) 0%, transparent 60%);
    background-size: 0% 0%, 0% 0%, 0% 0%, 0% 0%;
    background-position: 20% 10%, 80% 10%, 20% 90%, 80% 90%;
    background-repeat: no-repeat;
    animation: text-reveal-4steps 4s step-end forwards;
    animation-delay: 0.5s;
    z-index: 5;
}

@keyframes text-reveal-4steps {
    0% {
        background-size: 150% 150%, 0% 0%, 0% 0%, 0% 0%;
        color: transparent;
        text-shadow: none;
    }

    25% {
        background-size: 150% 150%, 150% 150%, 0% 0%, 0% 0%;
        color: transparent;
        text-shadow: none;
    }

    50% {
        background-size: 150% 150%, 150% 150%, 150% 150%, 0% 0%;
        color: transparent;
        text-shadow: none;
    }

    75% {
        background-size: 150% 150%, 150% 150%, 150% 150%, 150% 150%;
        color: transparent;
        text-shadow: none;
    }

    100% {
        color: #fff;
        text-shadow: 0 0 25px rgba(255, 255, 255, 0.8);
        background-size: 0% 0%;
    }
}

/* 2. OFFICE: Recessed Slot with Background Glow (Moved from Architectural) */
.fixture-office-container {
    width: 100%;
    position: absolute;
    top: -40px;
    left: 0;
    display: flex;
    justify-content: center;
}

.fixture-office-slot {
    width: 150%;
    max-width: 800px;
    height: 10px;
    background: #0a0a0a;
    border: 1px solid #222;
    border-radius: 4px;
    position: relative;
    overflow: hidden;
    box-shadow: inset 0 2px 5px #000;
    animation: slot-flicker-glow 1.5s step-end forwards;
    animation-delay: 0.5s;
}

.fixture-office-glow {
    position: absolute;
    top: 2px;
    left: 0;
    width: 100%;
    height: 4px;
    background: #fff;
    box-shadow: 0 0 15px #fff, 0 0 50px var(--accent-warm);
    transform: scaleX(1);
    opacity: 0;
    animation: office-flicker-on 1.5s step-end forwards;
    animation-delay: 0.5s;
}

.beam-office {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%) scale(1, 1);
    width: 1400px;
    height: 800px;
    background: radial-gradient(ellipse at top center, rgba(255, 255, 255, 0.18) 0%, transparent 75%);
    opacity: 0;
    animation: office-flicker-on 1.5s step-end forwards;
    animation-delay: 0.5s;
    z-index: -1;
    pointer-events: none;
}

.text-mask-office {
    color: #fff !important;
    text-shadow: 0 0 30px rgba(255, 255, 255, 0.7) !important;
    -webkit-mask-image: radial-gradient(ellipse at 50% 0%, #000 0%, transparent 80%);
    mask-image: radial-gradient(ellipse at 50% 0%, #000 0%, transparent 80%);
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-position: center top;
    mask-position: center top;
    -webkit-mask-size: 300% 300%;
    mask-size: 300% 300%;
    animation: office-flicker-on 1.5s step-end forwards;
    animation-delay: 0.5s;
    opacity: 0;
}

@keyframes line-power-on {
    0% {
        transform: scaleX(0);
    }

    100% {
        transform: scaleX(1);
    }
}

@keyframes office-flicker-on {
    0% {
        opacity: 0;
    }

    10% {
        opacity: 1;
    }

    15% {
        opacity: 0;
    }

    40% {
        opacity: 1;
    }

    100% {
        opacity: 1;
    }
}

@keyframes slot-flicker-glow {
    0% {
        box-shadow: inset 0 2px 5px #000;
        background: #0a0a0a;
        border-color: #222;
    }

    10% {
        box-shadow: inset 0 2px 5px #000, 0 0 50px rgba(197, 160, 89, 0.25);
        background: #1a1a1a;
        border-color: #444;
    }

    15% {
        box-shadow: inset 0 2px 5px #000;
        background: #0a0a0a;
        border-color: #222;
    }

    40% {
        box-shadow: inset 0 2px 5px #000, 0 0 60px rgba(197, 160, 89, 0.35);
        background: #1a1a1a;
        border-color: #444;
    }

    100% {
        box-shadow: inset 0 2px 5px #000, 0 0 60px rgba(197, 160, 89, 0.35);
        background: #1a1a1a;
        border-color: #444;
    }
}

/* 3. OUTDOOR: Dual Foggy Bollards */
.fixture-outdoor {
    width: 25px;
    height: 120px;
    background: linear-gradient(to right, #111, #333, #111);
    position: absolute;
    bottom: -150px;
    transform: translateX(-50%);
    border-top: 8px solid #050505;
    border-radius: 2px 2px 0 0;
}

.fixture-outdoor.left {
    left: 5%;
}

.fixture-outdoor.right {
    left: 95%;
}

.beam-outdoor {
    position: absolute;
    bottom: -150px;
    transform: translateX(-50%);
    width: 1000px;
    height: 1000px;
    background: radial-gradient(circle at center bottom, rgba(197, 160, 89, 0.4) 0%, transparent 60%);
    opacity: 0;
    animation: bollard-fade 4s ease forwards;
    animation-delay: 0.5s;
    z-index: -1;
    pointer-events: none;
}

.beam-outdoor.left {
    left: 5%;
}

.beam-outdoor.right {
    left: 95%;
}

.text-mask-outdoor {
    color: #fff !important;
    text-shadow: none !important;
    animation: fog-reveal 4s ease forwards;
    animation-delay: 1.1s;
    opacity: 0;
}

@keyframes bollard-fade {
    0% {
        opacity: 0;
    }

    100% {
        opacity: 1;
        filter: blur(10px);
    }
}

@keyframes fog-reveal {
    0% {
        opacity: 0;
        color: #050505 !important;
        text-shadow: 0 0 30px #000;
        letter-spacing: -0.1em;
        filter: blur(15px);
    }

    1% {
        opacity: 1;
    }

    100% {
        opacity: 1;
        color: #fff !important;
        text-shadow: 0 0 25px rgba(197, 160, 89, 0.8);
        letter-spacing: -0.05em;
        filter: blur(0px);
    }
}

/* 4. ARCHITECTURAL: Monolithic Eclipse */
.arch-eclipse-scene {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100vh;
    display: flex; justify-content: center; align-items: center;
    pointer-events: none;
    z-index: 1;
    overflow: hidden;
}
.eclipse-core {
    position: absolute;
    width: 600px; height: 600px;
    border-radius: 50%;
    background: #050505;
    box-shadow: inset -10px -10px 40px rgba(0,0,0,0.8);
    z-index: 3;
    opacity: 0;
    transform: scale(0.9);
    animation: eclipse-reveal 2.5s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
    animation-delay: 0.2s;
}
.eclipse-corona {
    position: absolute;
    width: 600px; height: 600px;
    border-radius: 50%;
    background: transparent;
    z-index: 2;
    box-shadow: 0 0 150px 40px rgba(197, 160, 89, 0.5), 0 0 400px 80px rgba(197, 160, 89, 0.2);
    opacity: 0;
    transform: scale(0.95);
    animation: corona-ignition 4.5s ease-out forwards;
    animation-delay: 1.5s;
    will-change: opacity, transform;
}

@keyframes eclipse-reveal {
    0% { opacity: 0; transform: scale(0.9); }
    100% { opacity: 1; transform: scale(1); }
}
@keyframes corona-ignition {
    0% { opacity: 0; transform: scale(0.95); }
    100% { opacity: 1; transform: scale(1); }
}

.text-mask-architectural {
    color: #fff !important;
    text-shadow: 0 0 30px rgba(197,160,89,0.8) !important;
    animation: arch-text-fade 4s ease forwards;
    animation-delay: 2.0s;
    opacity: 0;
    z-index: 10;
    position: relative;
    letter-spacing: 0.05em;
}
@keyframes arch-text-fade {
    0% { opacity: 0; transform: scale(0.97); }
    100% { opacity: 1; transform: scale(1); }
}

/* --- PRODUCT PAGE ADDITIONS --- */
.gallery-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-top: 2rem;
}

.gallery-item.large {
    grid-column: 1 / -1;
    height: 600px;
}

.gallery-item {
    height: 400px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    background-color: var(--bg-secondary);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.25, 0.8, 0.25, 1);
}

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

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

    .gallery-item.large,
    .gallery-item {
        height: 350px;
    }
}

/* Technical Drawer */
.drawer-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(5px);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
}

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

.tech-drawer {
    position: fixed;
    top: 0;
    right: 0;
    width: 75%;
    height: 100%;
    background-color: var(--bg-primary);
    z-index: 1001;
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.1);
    transform: translateX(100%);
    transition: transform 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
    display: flex;
    flex-direction: column;
}

.tech-drawer.active {
    transform: translateX(0);
}

@media (max-width: 800px) {
    .tech-drawer {
        width: 100%;
    }
}

.drawer-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem 5%;
    border-bottom: 1px solid var(--border-color);
}

.drawer-header h3 {
    margin: 0;
    font-size: 1.5rem;
}

.drawer-close {
    background: none;
    border: none;
    font-size: 2.5rem;
    font-weight: 300;
    color: var(--text-main);
    cursor: pointer;
    line-height: 1;
    transition: color 0.3s;
}

.drawer-close:hover {
    color: var(--accent-warm);
}

.drawer-content {
    flex-grow: 1;
    padding: 2rem 5%;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #faf9f7;
}

.drawer-content img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.blueprint-label {
    position: absolute;
    bottom: 2rem;
    right: 2rem;
    font-family: var(--font-heading);
    color: var(--text-main);
    background: var(--bg-primary);
    padding: 0.5rem 1rem;
    border: 1px solid var(--border-color);
    font-size: 0.9rem;
    letter-spacing: 0.05em;
}