/* Cinematic Preloader */

*,
*::before,
*::after {
    border-radius: 0 !important;
}
#preloader {
    position: fixed;
    inset: 0;
    display: grid;
    place-items: center;
    overflow: hidden;
    z-index: 2000;
    perspective: 1600px;
    transform-origin: center;
    --portal-duration: 1.8s;
    --portal-x: 50%;
    --portal-y: 50%;
    clip-path: circle(140% at var(--portal-x) var(--portal-y));
    transition: visibility 0s linear var(--portal-duration);
    will-change: clip-path, transform, filter, opacity;
    --letter-tilt-x: 0deg;
    --letter-tilt-y: 0deg;
    --title-loop: letterLevitate 3.2s ease-in-out infinite;
    --title-exit: none;
}

#preloader::before {
    content: '';
    position: absolute;
    inset: -5%;
    background:
        repeating-linear-gradient(0deg, rgba(214, 207, 199, 0.35) 0 2px, transparent 2px 22px),
        repeating-linear-gradient(90deg, rgba(94, 116, 138, 0.25) 0 2px, transparent 2px 22px);
    opacity: 0.35;
    filter: blur(4px);
    transform: translateZ(-200px);
    pointer-events: none;
    animation: preloaderGridSweep 12s linear infinite;
}

#preloader::after {
    content: '';
    position: absolute;
    inset: -10%;
    background: radial-gradient(circle at var(--portal-x) var(--portal-y), rgba(178, 110, 99, 0.5), rgba(214, 207, 199, 0.25) 60%, transparent 80%);
    mix-blend-mode: screen;
    opacity: 0;
    transform: scale(0.8);
    pointer-events: none;
}
body.is-preloading {
    overflow: hidden;
}

body.is-preloading main,
body.is-preloading .site-header,
body.is-preloading .main-footer {
    visibility: hidden;
}

#preloader.is-hidden {
    animation: portalExit var(--portal-duration) cubic-bezier(0.6, 0.05, 0.1, 1) forwards;
    visibility: hidden;
    pointer-events: none;
    --title-loop: none;
    --title-exit: letterShockwave var(--portal-duration) cubic-bezier(0.6, 0.05, 0.1, 1) forwards;
}

#preloader.is-hidden::after {
    animation: portalFlare 0.9s ease-out forwards;
}

.preloader-core {
    position: relative;
    width: min(1400px, 92vw);
    display: grid;
    grid-template-columns: 1fr;
    gap: clamp(1rem, 3vw, 2rem);
    align-items: center;
    justify-items: center;
    color: var(--text);
    padding: clamp(1.5rem, 5vw, 3rem);
}

.preloader-stack {
    width: min(780px, 90vw);
    aspect-ratio: 4 / 3;
    position: relative;
    perspective: 1200px;
    transform-style: preserve-3d;
    animation: stackDrift 16s ease-in-out infinite alternate;
}

.preloader-stage {
    position: absolute;
    inset: 0;
    border-radius: 32px;
    overflow: hidden;
    transform: rotateX(8deg);
    background: rgba(9, 12, 18, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.25);
    box-shadow:
        inset 0 0 60px rgba(5, 8, 12, 0.25),
        0 45px 120px rgba(0, 0, 0, 0.25);
}

.preloader-halo {
    position: absolute;
    inset: -30%;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.5;
    animation: haloPulse 12s ease-in-out infinite;
}

.preloader-halo--one {
    background: radial-gradient(circle, rgba(249, 247, 244, 0.8), transparent 65%);
}

.preloader-halo--two {
    background: radial-gradient(circle, rgba(178, 110, 99, 0.5), transparent 70%);
    animation-delay: -3s;
}

.preloader-grid {
    position: absolute;
    inset: 6%;
    border-radius: 24px;
    opacity: 0.45;
    mix-blend-mode: multiply;
    animation: gridDrift 14s linear infinite;
}

.preloader-grid--major {
    background: repeating-linear-gradient(90deg, rgba(25, 23, 20, 0.3) 0 2px, transparent 2px 32px);
}

.preloader-grid--minor {
    background: repeating-linear-gradient(0deg, rgba(178, 110, 99, 0.3) 0 1px, transparent 1px 24px);
    animation-direction: reverse;
}

.preloader-orbit {
    position: absolute;
    inset: 18%;
    border-radius: 50%;
    border: 1px solid rgba(25, 23, 20, 0.4);
    box-shadow: 0 0 50px rgba(178, 110, 99, 0.2);
    animation: orbitPulse 10s ease-in-out infinite;
}

.preloader-orbit--inner {
    inset: 34%;
    animation-delay: -2s;
}

.preloader-triad {
    position: absolute;
    inset: 30% 20%;
    display: grid;
    place-items: center;
    transform: translateZ(40px);
}

.triad-layer {
    width: 100%;
    padding-bottom: 86%;
    clip-path: polygon(50% 0%, 96% 80%, 4% 80%);
    border-radius: 6px;
    background: linear-gradient(180deg, rgba(249, 247, 244, 0.85), rgba(214, 207, 199, 0.65));
    border: 1px solid rgba(25, 23, 20, 0.55);
    position: absolute;
    animation: triadBreath 6s ease-in-out infinite;
    box-shadow: inset 0 0 40px rgba(255, 255, 255, 0.2);
    --triad-offset: 0%;
    --triad-scale: 1;
    transform: translateY(var(--triad-offset)) scale(var(--triad-scale));
}

.triad-layer--secondary {
    --triad-offset: 18%;
    --triad-scale: 0.78;
    background: linear-gradient(180deg, rgba(178, 110, 99, 0.4), rgba(94, 116, 138, 0.4));
    border-color: rgba(178, 110, 99, 0.6);
    animation-delay: -1s;
}

.triad-layer--accent {
    --triad-offset: 32%;
    --triad-scale: 0.58;
    background: linear-gradient(180deg, rgba(94, 116, 138, 0.4), rgba(25, 23, 20, 0.4));
    border-color: rgba(94, 116, 138, 0.65);
    animation-delay: -2s;
}

.preloader-spires {
    position: absolute;
    inset: 10% 28% 15%;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    pointer-events: none;
}

.spire {
    width: 1px;
    height: 50%;
    background: linear-gradient(180deg, rgba(25, 23, 20, 0), rgba(25, 23, 20, 0.9));
    position: relative;
    animation: spireRise 7s ease-in-out infinite;
}

.spire::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 8px;
    height: 8px;
    border-radius: 50%;
    border: 1px solid rgba(178, 110, 99, 0.9);
    background: rgba(249, 247, 244, 0.9);
    box-shadow: 0 0 18px rgba(178, 110, 99, 0.6);
}

.spire[data-spire="2"] {
    height: 70%;
    animation-delay: -1s;
}

.spire[data-spire="3"] {
    height: 60%;
    animation-delay: -2s;
}

.preloader-rays {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.preloader-rays span {
    position: absolute;
    width: 140%;
    height: 2px;
    left: -20%;
    top: 50%;
    background: linear-gradient(90deg, rgba(25, 23, 20, 0), rgba(25, 23, 20, 0.85), rgba(25, 23, 20, 0));
    opacity: 0.25;
    transform-origin: 50% 50%;
    animation: raySweep 8s linear infinite;
}

.preloader-rays span[data-ray="2"] {
    transform: rotate(60deg);
    animation-delay: -2s;
}

.preloader-rays span[data-ray="3"] {
    transform: rotate(-60deg);
    animation-delay: -4s;
}

.preloader-constellation {
    position: absolute;
    inset: clamp(0.75rem, 3vw, 1.75rem);
    z-index: 4;
    pointer-events: none;
}

.constellation-triangle {
    position: absolute;
    width: clamp(120px, 20vw, 220px);
    aspect-ratio: 0.866;
    transform: translate(-50%, -50%);
    animation: constellationTriangleFloat var(--triangle-duration, 9s) ease-in-out infinite;
}

.constellation-triangle svg {
    width: 100%;
    height: 100%;
}

.constellation-triangle polygon {
    fill: rgba(249, 247, 244, 0.08);
    stroke: var(--triangle-stroke, rgba(25, 23, 20, 0.85));
    stroke-width: 1.6;
    vector-effect: non-scaling-stroke;
    stroke-dasharray: 8 6;
    animation: triangleStrokePulse 2.8s ease-in-out infinite;
}

.constellation-triangle polygon:nth-child(2) {
    fill: rgba(178, 110, 99, 0.06);
    stroke: rgba(178, 110, 99, 0.8);
    stroke-dasharray: 3 5;
    opacity: 0.85;
}

.constellation-triangle polygon:nth-child(3) {
    fill: rgba(94, 116, 138, 0.05);
    stroke: rgba(94, 116, 138, 0.9);
    stroke-dasharray: 12 8;
    opacity: 0.75;
}

.constellation-node {
    position: absolute;
    width: clamp(7px, 1.4vw, 12px);
    height: clamp(7px, 1.4vw, 12px);
    border-radius: 50%;
    border: 2px solid rgba(25, 23, 20, 0.9);
    background: rgba(249, 247, 244, 0.95);
    box-shadow: 0 0 25px rgba(178, 110, 99, 0.45);
    left: var(--node-x);
    top: var(--node-y);
    transform: translate(-50%, -50%);
    animation: geoNodePulse calc(2.4s + var(--node-index) * 0.2s) ease-in-out infinite;
}

.constellation-link {
    position: absolute;
    left: var(--line-x);
    top: var(--line-y);
    width: calc(var(--line-length) * 1%);
    height: 2px;
    transform-origin: 0 50%;
    transform: rotate(var(--line-angle));
    overflow: hidden;
}

.constellation-link::after {
    content: '';
    display: block;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, rgba(25, 23, 20, 0.95), rgba(178, 110, 99, 0.85));
    transform-origin: left;
    animation: constellationSweep 3.2s ease-in-out infinite;
    animation-delay: var(--line-delay);
}

@media (max-width: 640px) {
    .preloader-core {
        padding: 1rem;
    }

    .preloader-stack {
        width: min(520px, 96vw);
        aspect-ratio: 3 / 4;
    }

    .preloader-stage {
        border-radius: 22px;
    }

    .preloader-triad {
        inset: 32% 18%;
    }

    .preloader-spires {
        inset: 12% 24% 20%;
    }

    .constellation-triangle {
        width: clamp(80px, 40vw, 130px);
    }
}

.site-filter {
    position: fixed;
    inset: 0;
    pointer-events: none;
    opacity: 0;
    transform: scale(0.94);
    transition: opacity 1.2s cubic-bezier(0.2, 0.8, 0.2, 1), transform 1.2s cubic-bezier(0.2, 0.8, 0.2, 1);
    mix-blend-mode: screen;
    z-index: 1200;
}

.site-filter.is-active {
    opacity: 0.85;
    transform: scale(1.02);
}

.site-filter.is-settled {
    opacity: 0.32;
}

.site-filter__glow,
.site-filter__mesh {
    position: absolute;
    inset: 0;
}

.site-filter__glow {
    background:
        radial-gradient(circle at 20% 20%, rgba(214, 207, 199, 0.6), transparent 45%),
        radial-gradient(circle at 80% 10%, rgba(154, 162, 142, 0.4), transparent 40%),
        radial-gradient(circle at 50% 80%, rgba(178, 110, 99, 0.25), transparent 55%);
    filter: blur(40px);
    transform: translateZ(0);
    animation: filterDrift 12s ease-in-out infinite alternate;
}

.site-filter__mesh {
    background:
        repeating-linear-gradient(115deg, rgba(94, 116, 138, 0.15) 0 2px, transparent 2px 28px);
    transform: translateZ(0);
    animation: meshSlide 18s linear infinite;
    opacity: 0.45;
}

.project-immersive {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: clamp(0.5rem, 4vw, 4rem);
    z-index: 3000;
    pointer-events: none;
    opacity: 0;
    visibility: hidden;
    --overlay-origin-x: 50%;
    --overlay-origin-y: 50%;
}

.project-immersive.is-active,
.project-immersive.is-leaving {
    opacity: 1;
    visibility: visible;
}

.project-immersive.is-active {
    pointer-events: auto;
}

.project-immersive.is-leaving {
    pointer-events: none;
}

.project-immersive__backdrop {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at var(--overlay-origin-x) var(--overlay-origin-y),
            rgba(249, 247, 244, 0.95),
            rgba(214, 207, 199, 0.7) 40%,
            rgba(94, 116, 138, 0.45) 75%,
            rgba(18, 28, 36, 0.8) 100%);
    backdrop-filter: blur(12px) saturate(1.15);
    -webkit-backdrop-filter: blur(12px) saturate(1.15);
    opacity: 0;
    animation: none;
}

.project-immersive.is-active:not(.is-leaving) .project-immersive__backdrop {
    animation: backdropEnter 0.95s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.project-immersive.is-leaving .project-immersive__backdrop {
    animation: backdropExit 0.55s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.project-immersive__shell {
    position: relative;
    width: min(1280px, 100%);
    max-height: 92vh;
    padding: clamp(1rem, 2.5vw, 3rem);
    background:
        linear-gradient(140deg, rgba(249, 247, 244, 0.96), rgba(230, 222, 214, 0.94), rgba(214, 207, 199, 0.92)) border-box;
    border: 1px solid rgba(178, 110, 99, 0.22);
    box-shadow:
        0 45px 120px rgba(0, 0, 0, 0.35),
        inset 0 1px 0 rgba(255, 255, 255, 0.6),
        inset 0 0 80px rgba(178, 110, 99, 0.18);
    backdrop-filter: blur(26px) saturate(1.3);
    -webkit-backdrop-filter: blur(26px) saturate(1.3);
    transform-origin: var(--overlay-origin-x) var(--overlay-origin-y);
    transform: perspective(2400px) rotateX(0deg) scale(1) translateY(0);
    opacity: 0;
    animation: none;
    overflow: hidden;
    isolation: isolate;
}

.project-immersive__shell::after {
    content: '';
    position: absolute;
    inset: 0;
    background:
        linear-gradient(115deg, rgba(178, 110, 99, 0.28), transparent 55%),
        radial-gradient(circle at 20% 0%, rgba(154, 162, 142, 0.35), transparent 60%);
    opacity: 0.42;
    mix-blend-mode: screen;
    pointer-events: none;
    animation: glassRipple 14s ease-in-out infinite;
}

.project-immersive__shell::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 80% 0%, rgba(255, 255, 255, 0.25), transparent 35%),
        linear-gradient(180deg, rgba(214, 207, 199, 0.4), transparent 70%);
    opacity: 0.55;
    pointer-events: none;
    mix-blend-mode: soft-light;
}

.project-immersive.is-active:not(.is-leaving) .project-immersive__shell {
    animation: shellEnter 0.6s cubic-bezier(0.3, 0.8, 0.2, 1) forwards;
}

.project-immersive.is-leaving .project-immersive__shell {
    animation: shellExit 0.45s cubic-bezier(0.76, 0, 0.24, 1) forwards;
}

.project-immersive__chrome {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: clamp(1rem, 2vw, 1.5rem);
    gap: 1rem;
}

.project-immersive__controls {
    display: flex;
    gap: 0.5rem;
}

.project-immersive__close,
.project-immersive__nav {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(150, 140, 135, 0.45);
    background: transparent;
    color: var(--text);
    cursor: pointer;
    transition: border-color 0.3s ease, color 0.3s ease, transform 0.3s ease;
}

.project-immersive__close:hover,
.project-immersive__close:focus-visible,
.project-immersive__nav:hover,
.project-immersive__nav:focus-visible {
    border-color: var(--accent);
    color: var(--accent);
    transform: translateY(-2px);
}

.project-immersive__close {
    gap: 0.4rem;
    padding: 0.35rem 0.85rem;
    font-size: 0.85rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.project-immersive__nav {
    padding: 0.35rem;
    width: 2.5rem;
    height: 2.5rem;
}

.project-immersive__close svg,
.project-immersive__nav svg {
    width: 1rem;
    height: 1rem;
    stroke: currentColor;
    stroke-width: 1.5;
    fill: none;
}

.project-immersive__content {
    display: flex;
    flex-direction: column;
    height: calc(92vh - clamp(4rem, 7vw, 6rem));
}

.project-immersive__stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 0.8rem 1.4rem;
    margin-top: 0.75rem;
}

.project-immersive__stats dt {
    font-size: 0.75rem;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--muted);
}

.project-immersive__stats dd {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text);
}

.project-immersive__viewport {
    position: relative;
    flex: 1;
    overflow: hidden;
    height: 100%;
}

.project-immersive__viewport::after,
.project-immersive__viewport::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: clamp(1.5rem, 5vw, 4rem);
    pointer-events: none;
    z-index: 2;
}

.project-immersive__viewport::before {
    left: 0;
    background: linear-gradient(90deg, rgba(249, 247, 244, 0.9), transparent);
}

.project-immersive__viewport::after {
    right: 0;
    background: linear-gradient(270deg, rgba(249, 247, 244, 0.9), transparent);
}

.project-immersive__gallery {
    position: relative;
    display: flex;
    column-gap: clamp(1rem, 2.4vw, 2.5rem);
    row-gap: 0;
    overflow: hidden;
    padding: 0 clamp(0.5rem, 2vw, 2rem) 0;
    scroll-snap-type: x mandatory;
    scroll-padding: clamp(2rem, 6vw, 5rem);
    scrollbar-width: thin;
    scrollbar-color: rgba(150, 140, 135, 0.5) transparent;
    overscroll-behavior-x: contain;
    height: 100%;
    align-items: center;
    perspective: 1800px;
    transform-style: preserve-3d;
    isolation: isolate;
    touch-action: pan-y;
}

.project-immersive__gallery::before {
    content: '';
    position: absolute;
    inset: 10% 4%;
    border-radius: 40px;
    background:
        radial-gradient(circle at 0% 0%, rgba(214, 207, 199, 0.8), transparent 60%),
        radial-gradient(circle at 100% 100%, rgba(178, 110, 99, 0.35), transparent 55%),
        linear-gradient(120deg, rgba(154, 162, 142, 0.25), rgba(94, 116, 138, 0.18));
    filter: blur(32px);
    opacity: 0.35;
    z-index: 0;
    animation: glassFlow 24s ease-in-out infinite;
    pointer-events: none;
}

.project-immersive__gallery::-webkit-scrollbar {
    height: 6px;
}

.project-immersive__gallery::-webkit-scrollbar-thumb {
    background: rgba(150, 140, 135, 0.5);
}

.immersive-slide {
    --slide-default-width: min(1180px, 96vw);
    position: relative;
    flex: 0 0 auto;
    width: var(--slide-width, var(--slide-default-width));
    min-height: clamp(420px, 68vh, 720px);
    scroll-snap-align: center;
    border: 1px solid rgba(178, 110, 99, 0.25);
    background:
        linear-gradient(135deg, rgba(249, 247, 244, 0.96), rgba(237, 230, 224, 0.94)),
        radial-gradient(circle at 14% 12%, rgba(178, 110, 99, 0.22), transparent 45%),
        radial-gradient(circle at 85% 6%, rgba(154, 162, 142, 0.25), transparent 55%);
    color: var(--text);
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow: hidden;
    --slide-shift-x: 0px;
    --slide-shift-y: 0px;
    --slide-tilt-x: 0deg;
    --slide-tilt-y: 0deg;
    transform: translate3d(var(--slide-shift-x), var(--slide-shift-y), 0) rotateX(var(--slide-tilt-y)) rotateY(var(--slide-tilt-x)) scale(1);
    filter: drop-shadow(0 35px 90px rgba(0, 0, 0, 0.25));
    backdrop-filter: blur(14px) saturate(1.05);
    -webkit-backdrop-filter: blur(14px) saturate(1.05);
    z-index: 1;
    will-change: transform, filter;
    transform-style: preserve-3d;
}

.immersive-slide::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 18% 18%, rgba(178, 110, 99, 0.3), transparent 55%),
        radial-gradient(circle at 82% 80%, rgba(94, 116, 138, 0.28), transparent 60%);
    opacity: 0.65;
    mix-blend-mode: multiply;
    animation: glassFlow 18s ease-in-out infinite alternate;
    pointer-events: none;
}

.immersive-slide::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.6), transparent 60%);
    opacity: 0.35;
    pointer-events: none;
}

.immersive-slide.is-media {
    background:
        linear-gradient(135deg, rgba(249, 247, 244, 0.92), rgba(214, 207, 199, 0.92));
}

.immersive-slide.is-text {
    padding: clamp(1.6rem, 3.8vw, 3.2rem);
    justify-content: space-between;
    gap: 1.2rem;
}

/* Optional collapse animation removed to keep slides static size */

.slide-media {
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    margin: 0;
}

.slide-media::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(178, 110, 99, 0.4), rgba(214, 207, 199, 0.05));
    opacity: 0.55;
    transition: opacity 0.5s ease;
    pointer-events: none;
}

.slide-media img {
    width: 100%;
    height: auto;
    object-fit: contain;
    max-width: 100%;
    max-height: 85vh;
    filter: saturate(1.12);
    transform: none;
    transition: filter 0.8s ease;
}

.slide-media figcaption {
    position: absolute;
    inset: auto 2rem 1.5rem 2rem;
    font-size: 0.82rem;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: var(--text);
    background: rgba(249, 247, 244, 0.75);
    padding: 0.35rem 0.9rem;
    border-radius: 999px;
    border: 1px solid rgba(178, 110, 99, 0.22);
}

.immersive-slide.is-intro {
    padding: clamp(2rem, 6vw, 4.5rem);
    justify-content: center;
    gap: 1rem;
    background: transparent;
}

.slide-intro {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: clamp(1.2rem, 3vw, 3rem);
    align-items: stretch;
    height: 100%;
    position: relative;
    isolation: isolate;
}

.slide-intro__copy {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    padding: clamp(1.5rem, 3vw, 3rem);
    border-radius: 28px;
    border: 1px solid rgba(178, 110, 99, 0.3);
    background:
        linear-gradient(130deg, rgba(249, 247, 244, 0.96), rgba(237, 230, 224, 0.93)),
        radial-gradient(circle at 0% 0%, rgba(178, 110, 99, 0.2), transparent 65%);
    box-shadow:
        inset 0 0 40px rgba(178, 110, 99, 0.08),
        0 25px 60px rgba(0, 0, 0, 0.18);
    color: var(--text);
    position: relative;
    z-index: 2;
}

.slide-intro__copy .intro-eyebrow {
    font-size: 0.85rem;
    letter-spacing: 0.4em;
    text-transform: uppercase;
    color: var(--muted);
}

.slide-intro__copy h2 {
    font-size: clamp(2.2rem, 6vw, 4.6rem);
    line-height: 0.95;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text);
}

.slide-intro__copy p {
    font-size: 1.05rem;
    color: rgba(45, 42, 38, 0.82);
    max-width: 38ch;
}

.has-architect-stage .slide-intro {
    grid-template-columns: minmax(240px, 0.9fr) minmax(300px, 1.1fr);
}

.architect-stage {
    position: relative;
    border-radius: 32px;
    overflow: hidden;
    border: 1px solid rgba(178, 110, 99, 0.28);
    background:
        radial-gradient(circle at 30% 20%, rgba(249, 247, 244, 0.95), rgba(214, 207, 199, 0.88)),
        linear-gradient(140deg, rgba(214, 207, 199, 0.95), rgba(212, 217, 211, 0.8));
    box-shadow:
        inset 0 0 100px rgba(255, 255, 255, 0.35),
        0 20px 60px rgba(0, 0, 0, 0.25);
    min-height: clamp(260px, 45vh, 420px);
    isolation: isolate;
    z-index: 1;
}

.architect-stage__grid {
    position: absolute;
    inset: 0;
    background-image:
        repeating-linear-gradient(60deg, rgba(94, 116, 138, 0.25) 0 1px, transparent 1px 28px),
        repeating-linear-gradient(-60deg, rgba(154, 162, 142, 0.25) 0 1px, transparent 1px 28px);
    opacity: 0.45;
    filter: drop-shadow(0 15px 30px rgba(0, 0, 0, 0.25));
    animation: architectGrid 22s linear infinite;
    z-index: 0;
}

.architect-stage__glass {
    position: absolute;
    inset: 10%;
    border-radius: 26px;
    background: linear-gradient(120deg, rgba(255, 255, 255, 0.45), rgba(255, 255, 255, 0.05));
    filter: blur(18px);
    opacity: 0.8;
    mix-blend-mode: screen;
    animation: glassRipple 18s ease-in-out infinite;
    z-index: 0;
}

.architect-stage__triangles {
    position: relative;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.architect-stage__triangle {
    position: absolute;
    width: clamp(90px, 11vw, 160px);
    aspect-ratio: 0.866;
    clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
    background: linear-gradient(150deg, rgba(255, 255, 255, 0.85), var(--triangle-color, var(--accent)));
    border: 1px solid rgba(255, 255, 255, 0.35);
    opacity: var(--triangle-opacity, 0.65);
    filter:
        drop-shadow(0 20px 30px rgba(0, 0, 0, 0.2))
        blur(var(--triangle-blur, 0px))
        hue-rotate(var(--triangle-hue, 0deg));
    top: 50%;
    left: 50%;
    transform:
        translate3d(-50%, -50%, 0)
        translate3d(var(--triangle-orbit-x, 0), var(--triangle-orbit-y, 0), 0)
        scale(var(--triangle-scale, 1))
        rotate(var(--triangle-rotation, 0deg));
    animation: triangleGlide var(--triangle-duration, 10s) cubic-bezier(0.42, 0, 0.28, 1) infinite;
    animation-delay: calc(var(--triangle-index, 0) * -0.45s);
    mix-blend-mode: multiply;
}

.architect-stage__triangle::before,
.architect-stage__triangle::after {
    content: '';
    position: absolute;
    inset: 8%;
    clip-path: inherit;
    border-radius: inherit;
    pointer-events: none;
}

.architect-stage__triangle::before {
    background: linear-gradient(160deg, rgba(255, 255, 255, 0.9), transparent 60%);
    opacity: 0.4;
    transform: scale(1.05);
    mix-blend-mode: screen;
    animation: triangleSpark 4s ease-in-out infinite;
    animation-delay: var(--triangle-shimmer-delay, 0s);
}

.architect-stage__triangle::after {
    border: 1px solid rgba(255, 255, 255, 0.5);
    opacity: 0.2;
    mix-blend-mode: screen;
    transform: scale(0.92);
}

.architect-stage__markers {
    position: absolute;
    inset: auto 1.5rem 1.5rem 1.5rem;
    display: flex;
    justify-content: space-between;
    gap: 0.75rem;
    flex-wrap: wrap;
    font-size: 0.65rem;
    letter-spacing: 0.4em;
    text-transform: uppercase;
    color: rgba(45, 42, 38, 0.75);
    z-index: 2;
}

.architect-stage__markers span {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    background: rgba(255, 255, 255, 0.5);
    padding: 0.2rem 0.85rem;
    border-radius: 999px;
    border: 1px solid rgba(178, 110, 99, 0.25);
    color: var(--text);
}

.architect-stage__markers span::before {
    content: '';
    width: 1.6rem;
    height: 1px;
    background: rgba(178, 110, 99, 0.6);
}

.slide-text {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    height: 100%;
    padding: clamp(1.4rem, 3vw, 3rem);
    border-radius: 28px;
    border: 1px solid rgba(178, 110, 99, 0.28);
    background:
        linear-gradient(135deg, rgba(249, 247, 244, 0.95), rgba(237, 230, 224, 0.92)),
        radial-gradient(circle at 86% 0%, rgba(178, 110, 99, 0.2), transparent 40%);
    box-shadow:
        inset 0 0 45px rgba(178, 110, 99, 0.08),
        0 18px 45px rgba(0, 0, 0, 0.18);
}

.slide-text .segment-label {
    font-size: 0.78rem;
    letter-spacing: 0.38em;
    text-transform: uppercase;
    color: var(--muted);
}

.slide-text .page-copy {
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
}

.slide-text .page-copy p {
    font-size: clamp(1.05rem, 2.2vw, 1.35rem);
    line-height: 1.7;
    color: rgba(45, 42, 38, 0.9);
}

.slide-text .project-immersive__stats {
    margin-top: 1rem;
    border-top: 1px solid rgba(178, 110, 99, 0.2);
    padding-top: 1rem;
    color: var(--text);
}

.slide-text .project-immersive__stats dt {
    color: rgba(154, 162, 142, 0.9);
}

.slide-text .project-immersive__stats dd {
    color: rgba(45, 42, 38, 0.92);
}

body.is-project-overlay {
    overflow: hidden;
}

body.is-project-overlay .site-header,
body.is-project-overlay main,
body.is-project-overlay .main-footer {
    filter: none;
    transform: none;
    transition: none;
}

@media (prefers-reduced-motion: reduce) {
    .project-immersive,
    .project-immersive__shell,
    .project-immersive__backdrop,
    .immersive-slide {
        transition-duration: 0.01ms !important;
        animation: none !important;
    }
}

@media (max-width: 960px) {
    .project-immersive__content {
        height: auto;
        max-height: none;
    }

    .project-immersive__viewport {
        min-height: 60vh;
    }

    .immersive-slide {
        --slide-default-width: 90%;
        min-height: clamp(360px, 65vh, 560px);
        height: auto;
    }
}

@media (max-width: 640px) {
    .project-immersive__shell {
        padding: 1rem;
    }

    .project-immersive__chrome {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .project-immersive__controls {
        align-self: flex-end;
    }
    
    .project-immersive__close span {
        display: none;
    }

    .project-immersive__gallery {
        padding-inline: 0;
        scroll-padding-inline: 0;
    }

    .project-immersive__viewport {
        min-height: auto;
        height: auto;
        max-height: 78vh;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    .immersive-slide {
        --slide-default-width: 90%;
        min-height: auto;
        height: auto;
    }

    .slide-media {
        overflow: visible;
        height: auto;
        min-height: unset;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 0.75rem;
    }

    .slide-media img {
        height: auto;
        width: 100%;
        max-height: 70vh;
    }

    .slide-media figcaption {
        position: static;
        inset: unset;
        text-align: center;
        letter-spacing: 0.2em;
        font-size: 0.75rem;
    }

}













@keyframes noise-shift {
    0% { transform: translate3d(0, 0, 0); }
    100% { transform: translate3d(-10%, 10%, 0); }
}

@keyframes scanline {
    0% { transform: translateY(-100%); }
    100% { transform: translateY(100%); }
}

@keyframes progress-glint {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

@keyframes title-fracture {
    0% { transform: translateY(0) skewX(0deg); opacity: 1; }
    100% { transform: translateY(-60px) skewX(-10deg) scaleY(0.6); opacity: 0; }
}

@keyframes portalExit {
    0% {
        clip-path: circle(140% at var(--portal-x) var(--portal-y));
        opacity: 1;
        transform: translateZ(0) scale(1) rotateX(0deg);
        filter: blur(0px) saturate(1);
    }
    45% {
        clip-path: circle(90% at var(--portal-x) var(--portal-y));
        transform: translateY(-6vh) scale(1.08) rotateX(14deg);
        filter: blur(3px) saturate(1.2);
    }
    75% {
        clip-path: circle(35% at var(--portal-x) var(--portal-y));
        transform: translateY(-14vh) scale(1.14) rotateX(32deg);
        filter: blur(9px) saturate(1.45);
    }
    100% {
        clip-path: circle(0% at var(--portal-x) var(--portal-y));
        opacity: 0;
        transform: translateY(-28vh) scale(1.28) rotateX(58deg);
        filter: blur(16px) saturate(1.65);
    }
}

@keyframes letterShockwave {
    0% {
        opacity: 1;
        transform: translateZ(0) rotateX(0deg) rotateY(0deg) scale(1);
    }
    40% {
        opacity: 1;
        transform: translateZ(30px) rotateX(6deg) rotateY(-5deg) scale(1.05);
    }
    100% {
        opacity: 0;
        transform: translate3d(var(--scatter-x, 0), var(--scatter-y, -60px), var(--scatter-z, 140px)) rotateX(28deg) rotateY(-18deg) scale(1.15);
    }
}
@keyframes portalFlare {
    0% { opacity: 0; transform: scale(0.5); }
    25% { opacity: 0.9; transform: scale(1.4); }
    70% { opacity: 0.25; transform: scale(2.6); }
    100% { opacity: 0; transform: scale(3); }
}

@keyframes letterLevitate {
    0% {
        transform: translateZ(0) rotateX(-4deg) rotateY(0deg);
        filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.35));
    }
    50% {
        transform: translateZ(12px) rotateX(3deg) rotateY(-3deg);
        filter: drop-shadow(0 10px 18px rgba(0, 0, 0, 0.4));
    }
    100% {
        transform: translateZ(0) rotateX(-4deg) rotateY(0deg);
        filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.35));
    }
}

@keyframes letterGlow {
    0% { transform: translateZ(-40px) scale(0); opacity: 0; }
    30% { transform: translateZ(-20px) scale(0.8); opacity: 0.35; }
    60% { transform: translateZ(-30px) scale(1); opacity: 0.15; }
    100% { transform: translateZ(-40px) scale(0); opacity: 0; }
}

@keyframes preloaderGridSweep {
    0% { transform: translate3d(0, 0, 0); }
    100% { transform: translate3d(6%, 8%, 0); }
}

@keyframes blueprintGrid {
    0% { transform: translate3d(0, 0, 0); opacity: 0.2; }
    50% { opacity: 0.35; }
    100% { transform: translate3d(20px, 18px, 0); opacity: 0.2; }
}

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

@keyframes stackDrift {
    0% { transform: rotateX(0deg) rotateY(0deg) translate3d(0, 0, 0); }
    100% { transform: rotateX(8deg) rotateY(-6deg) translate3d(0, -14px, 0); }
}

@keyframes gridParallax {
    0% { transform: translate3d(0, 0, 0); }
    100% { transform: translate3d(40px, 20px, 0); }
}

@keyframes glowPulse {
    0% { opacity: 0.4; }
    50% { opacity: 0.75; }
    100% { opacity: 0.4; }
}

@keyframes nodeBlink {
    0%, 100% { opacity: 0.6; transform: translate3d(0, 0, 0); }
    50% { opacity: 1; transform: translate3d(4px, -6px, 0); }
}

@keyframes haloPulse {
    0% { transform: scale(0.9) translate3d(-2%, -2%, 0); opacity: 0.35; }
    50% { transform: scale(1.1) translate3d(2%, 2%, 0); opacity: 0.65; }
    100% { transform: scale(0.9) translate3d(-2%, -2%, 0); opacity: 0.35; }
}

@keyframes gridDrift {
    0% { transform: translate3d(0, 0, 0); }
    100% { transform: translate3d(20px, 18px, 0); }
}

@keyframes orbitPulse {
    0% { transform: scale(0.95); opacity: 0.35; }
    50% { transform: scale(1.05); opacity: 0.85; }
    100% { transform: scale(0.95); opacity: 0.35; }
}

@keyframes triadBreath {
    0% {
        transform: translateY(var(--triad-offset)) scale(var(--triad-scale));
        box-shadow: inset 0 0 20px rgba(255, 255, 255, 0.15);
    }
    50% {
        transform: translateY(calc(var(--triad-offset) - 4%)) scale(calc(var(--triad-scale) * 1.05));
        box-shadow: inset 0 0 60px rgba(255, 255, 255, 0.4);
    }
    100% {
        transform: translateY(var(--triad-offset)) scale(var(--triad-scale));
        box-shadow: inset 0 0 20px rgba(255, 255, 255, 0.15);
    }
}

@keyframes spireRise {
    0% { transform: scaleY(0.8); opacity: 0.5; }
    50% { transform: scaleY(1.05); opacity: 1; }
    100% { transform: scaleY(0.8); opacity: 0.5; }
}

@keyframes raySweep {
    0% { opacity: 0; transform: scaleX(0); }
    20% { opacity: 0.4; transform: scaleX(1); }
    100% { opacity: 0; transform: scaleX(0); }
}

@keyframes geoNodePulse {
    0%, 100% { transform: translate(-50%, -50%) scale(0.9); opacity: 0.4; }
    50% { transform: translate(-50%, -50%) scale(1.2); opacity: 1; }
}

@keyframes constellationTriangleFloat {
    0% { transform: translate(-50%, -50%) rotate(var(--triangle-rotation, 12deg)) scale(0.85); opacity: 0.4; }
    50% { transform: translate(calc(-50% + 4%), calc(-50% + 3%)) rotate(calc(var(--triangle-rotation, 12deg) + 8deg)) scale(1.05); opacity: 0.9; }
    100% { transform: translate(-50%, -50%) rotate(var(--triangle-rotation, 12deg)) scale(0.85); opacity: 0.4; }
}

@keyframes triangleStrokePulse {
    0%, 100% { stroke-width: 1.6; stroke-dashoffset: 0; }
    50% { stroke-width: 2.6; stroke-dashoffset: 12; }
}

@keyframes constellationSweep {
    0% { transform: scaleX(0); opacity: 0; }
    45% { transform: scaleX(1); opacity: 1; }
    100% { transform: scaleX(0); opacity: 0; }
}

@keyframes glassRipple {
    0% { transform: scale(0.98) translate3d(-3%, -2%, 0); opacity: 0.35; }
    50% { transform: scale(1.05) translate3d(2%, 1%, 0); opacity: 0.6; }
    100% { transform: scale(0.98) translate3d(-3%, -2%, 0); opacity: 0.35; }
}

@keyframes glassFlow {
    0% { transform: translate3d(-6%, -4%, 0) scale(0.96); opacity: 0.4; }
    50% { transform: translate3d(4%, 6%, 0) scale(1.04); opacity: 0.7; }
    100% { transform: translate3d(-6%, -4%, 0) scale(0.96); opacity: 0.4; }
}

@keyframes architectGrid {
    0% { transform: rotateX(0deg) rotateY(0deg) translate3d(0, 0, 0); opacity: 0.55; }
    50% { transform: rotateX(6deg) rotateY(-6deg) translate3d(12px, -6px, 0); opacity: 0.35; }
    100% { transform: rotateX(0deg) rotateY(0deg) translate3d(0, 0, 0); opacity: 0.55; }
}

@keyframes triangleGlide {
    0% {
        opacity: 0.35;
        transform:
            translate3d(-50%, -50%, 0)
            translate3d(var(--triangle-orbit-x, 0), var(--triangle-orbit-y, 0), 0)
            scale(var(--triangle-scale, 1))
            rotate(var(--triangle-rotation, 0deg));
    }
    55% {
        opacity: 0.85;
        transform:
            translate3d(-48%, -52%, 0)
            translate3d(var(--triangle-orbit-x-end, 0), var(--triangle-orbit-y-end, 0), 0)
            scale(calc(var(--triangle-scale, 1) * 1.08))
            rotate(calc(var(--triangle-rotation, 0deg) + var(--triangle-tilt, 12deg)));
    }
    100% {
        opacity: 0.35;
        transform:
            translate3d(-50%, -50%, 0)
            translate3d(var(--triangle-orbit-x, 0), var(--triangle-orbit-y, 0), 0)
            scale(var(--triangle-scale, 1))
            rotate(var(--triangle-rotation, 0deg));
    }
}

@keyframes triangleSpark {
    0%, 80%, 100% { opacity: 0.1; transform: scale(1.05); }
    30% { opacity: 0.7; transform: scale(1.15); }
}

@keyframes parametricDraw {
    0% { stroke-dashoffset: 0; }
    100% { stroke-dashoffset: -980; }
}

@keyframes morphTrace {
    0% { stroke-dashoffset: 1200; }
    50% { stroke-dashoffset: 0; }
    100% { stroke-dashoffset: -1200; }
}

@keyframes canvasPulse {
    0%, 100% { transform: scale(0.9); opacity: 0.25; }
    50% { transform: scale(1.2); opacity: 0.45; }
}

@keyframes canvasRotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes canvasDrift {
    0% { transform: translate(0, -20px) scale(0.95); }
    50% { transform: translate(10px, 20px) scale(1.05); }
    100% { transform: translate(0, -20px) scale(0.95); }
}

@keyframes filterDrift {
    0% { transform: translate3d(-5%, -5%, 0) scale(1); opacity: 0.8; }
    50% { transform: translate3d(4%, 2%, 0) scale(1.05); opacity: 0.9; }
    100% { transform: translate3d(-3%, 6%, 0) scale(0.96); opacity: 0.75; }
}

@keyframes meshSlide {
    0% { transform: translate3d(0, 0, 0) skewX(0deg); }
    100% { transform: translate3d(30%, 0, 0) skewX(6deg); }
}

@keyframes headerGlint {
    0% {
        background-position:
            0% 0%,
            -40% 0%,
            0 0;
    }
    100% {
        background-position:
            100% 0%,
            80% 0%,
            100% 0;
    }
}

@keyframes gridShift {
    0% { transform: translate3d(0, 0, 0); }
    100% { transform: translate3d(12%, 0, 0); }
}

@keyframes heroEnergy {
    0% { transform: translate3d(-5%, -5%, 0) scale(1); opacity: 0.75; }
    50% { transform: translate3d(4%, 3%, 0) scale(1.05); opacity: 0.9; }
    100% { transform: translate3d(-3%, 6%, 0) scale(0.96); opacity: 0.7; }
}

@keyframes orbitRotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes nodeDrift {
    0% { transform: translate3d(0, 0, 0); }
    50% { transform: translate3d(8px, -6px, 0); }
    100% { transform: translate3d(0, 0, 0); }
}

@keyframes nodeDriftCenter {
    0% { transform: translateX(-50%) translate3d(0, 0, 0); }
    50% { transform: translateX(-50%) translate3d(6px, 6px, 0); }
    100% { transform: translateX(-50%) translate3d(0, 0, 0); }
}

@keyframes shellEnter {
    0% {
        opacity: 0;
        transform: perspective(2400px) rotateX(26deg) scale(0.86) translateY(90px);
    }
    60% {
        opacity: 1;
        transform: perspective(2400px) rotateX(6deg) scale(1.03) translateY(-12px);
    }
    100% {
        opacity: 1;
        transform: perspective(2400px) rotateX(0deg) scale(1) translateY(0);
    }
}

@keyframes shellExit {
    0% {
        opacity: 1;
        transform: perspective(2400px) rotateX(0deg) scale(1) translateY(0);
    }
    40% {
        opacity: 0.9;
        transform: perspective(2400px) rotateX(-12deg) scale(0.92) translateY(45px);
    }
    100% {
        opacity: 0;
        transform: perspective(2400px) rotateX(-26deg) scale(0.82) translateY(140px);
    }
}

@keyframes backdropEnter {
    0% { opacity: 0; }
    100% { opacity: 1; }
}

@keyframes backdropExit {
    0% { opacity: 1; }
    100% { opacity: 0; }
}


:root {
    --bg: #ffffff;
    --bg-2: #f4efe9;
    --surface: #f9f7f4;
    --surface-strong: #ede6df;
    --text: #2d2a26;
    --muted: rgba(154, 162, 142, 0.9);
    --line: rgba(150, 140, 135, 0.45);
    --accent: #b26e63;
    --accent-olive: #9aa28e;
    --accent-steel: #5e748a;
    --accent-beige: #d6cfc7;
    --glass-bg: rgba(214, 207, 199, 0.6);
    --glass-border: rgba(94, 116, 138, 0.35);
    --blur: 18px;
    --scroll-progress: 0;
}

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

body {
    font-family: 'Space Grotesk', 'Saira', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
    background:
        radial-gradient(circle at 20% 20%, rgba(214, 207, 199, 0.6), transparent 45%),
        radial-gradient(circle at 80% 0%, rgba(154, 162, 142, 0.25), transparent 50%),
        var(--bg);
    color: var(--text);
    min-height: 100vh;
    padding: 2rem clamp(1rem, 4vw, 4rem) 4rem;
    overflow-x: hidden;
    transition: background 0.4s ease;
}

body::after {
    content: '';
    position: fixed;
    inset: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--accent), transparent);
    transform-origin: left;
    transform: scaleX(var(--scroll-progress));
    mix-blend-mode: screen;
    pointer-events: none;
    z-index: 2000;
}

main {
    display: flex;
    flex-direction: column;
    gap: clamp(3rem, 6vw, 5rem);
    margin-top: var(--main-margin-top, clamp(0.5rem, 2vh, 1.25rem));
}

.login-page {
    --main-margin-top: 0;
}

.glass-panel {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(var(--blur));
    -webkit-backdrop-filter: blur(var(--blur));
    box-shadow:
        0 25px 60px rgba(17, 24, 31, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

.site-header {
    position: sticky;
    top: 1.5rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
    gap: 1rem;
    padding: 1.25rem clamp(1rem, 3vw, 2rem);
    z-index: 100;
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.56), rgba(214, 207, 199, 0.18)),
        linear-gradient(315deg, rgba(94, 116, 138, 0.16), rgba(255, 255, 255, 0.05));
    border: 1px solid rgba(255, 255, 255, 0.45);
    backdrop-filter: blur(34px) saturate(1.35);
    -webkit-backdrop-filter: blur(34px) saturate(1.35);
    box-shadow:
        0 35px 70px rgba(17, 24, 31, 0.12),
        inset 0 1px 0 rgba(255, 255, 255, 0.95),
        inset 0 -1px 0 rgba(178, 110, 99, 0.25);
    overflow: hidden;
}

.site-header::before,
.site-header::after {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.site-header::before {
    background:
        radial-gradient(circle at 15% 30%, rgba(214, 207, 199, 0.75), transparent 60%),
        radial-gradient(circle at 90% 10%, rgba(154, 162, 142, 0.4), transparent 55%),
        linear-gradient(120deg, rgba(255, 255, 255, 0.3), transparent 70%);
    mix-blend-mode: screen;
    filter: blur(26px);
    opacity: 0.6;
}

.site-header::after {
    background:
        linear-gradient(130deg, rgba(255, 255, 255, 0.65), transparent 55%),
        linear-gradient(300deg, rgba(255, 255, 255, 0.4), transparent 65%),
        repeating-linear-gradient(90deg, rgba(94, 116, 138, 0.08) 0 1px, transparent 1px 10px);
    background-size: auto, 140% 140%, 8px 100%;
    mix-blend-mode: screen;
    opacity: 0.55;
    filter: blur(1px);
    animation: headerGlint 16s ease-in-out infinite alternate;
}

.header-block {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    font-size: 0.85rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(31, 28, 24, 0.85);
}

.logo {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
}

.logo img {
    display: block;
    height: 32px;
    width: auto;
}

.brand-mantra {
    font-size: 0.7rem;
    letter-spacing: 0.32em;
    text-transform: uppercase;
    color: rgba(25, 23, 20, 0.75);
    white-space: nowrap;
}

.nav-links {
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
}

.nav-links a {
    color: rgba(25, 23, 20, 0.95);
    text-decoration: none;
    font-weight: 500;
    position: relative;
    padding-bottom: 0.2rem;
    text-shadow: 0 8px 20px rgba(255, 255, 255, 0.5);
}

.nav-links a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 1px;
    background: var(--accent);
    transition: width 0.3s ease;
}

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

.nav-lang-toggle {
    border: 1px solid rgba(25, 23, 20, 0.25);
    background: transparent;
    color: rgba(25, 23, 20, 0.85);
    letter-spacing: 0.28em;
    text-transform: uppercase;
    padding: 0.35rem 0.9rem;
    border-radius: 999px;
    cursor: pointer;
    font-size: 0.7rem;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
}

.nav-lang-toggle:hover,
.nav-lang-toggle:focus-visible {
    border-color: var(--accent);
    color: var(--accent);
    outline: none;
}

.nav-lang-toggle__divider {
    opacity: 0.55;
}

.status {
    align-items: flex-end;
    justify-content: center;
    text-align: right;
}

.status-dot {
    width: 0.55rem;
    height: 0.55rem;
    background: var(--accent);
    display: inline-flex;
    margin: 0 0.25rem;
}

.innovation-hero {
    position: relative;
    overflow: hidden;
    padding: clamp(1.5rem, 5vw, 3.5rem);
    margin-top: clamp(1.5rem, 4vw, 3rem);
    border: 1px solid rgba(255, 255, 255, 0.35);
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.92), rgba(214, 207, 199, 0.4)),
        radial-gradient(circle at 20% 20%, rgba(154, 162, 142, 0.25), transparent 55%);
    box-shadow: 0 45px 120px rgba(17, 24, 31, 0.12);
}

.innovation-hero__energy {
    position: absolute;
    inset: -30% -10% 10% -10%;
    background:
        radial-gradient(circle at 20% 20%, rgba(178, 110, 99, 0.45), transparent 55%),
        radial-gradient(circle at 70% 10%, rgba(94, 116, 138, 0.35), transparent 60%),
        linear-gradient(120deg, rgba(255, 255, 255, 0.2), transparent 70%);
    opacity: 0.8;
    filter: blur(60px);
    animation: heroEnergy 18s ease-in-out infinite alternate;
}

.innovation-hero__grid {
    position: relative;
    display: grid;
    grid-template-columns: minmax(280px, 1.1fr) minmax(280px, 0.9fr);
    gap: clamp(2rem, 4vw, 4.5rem);
    align-items: stretch;
}

.innovation-hero__copy {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    position: relative;
    z-index: 2;
}

.innovation-hero__eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.4em;
    font-size: 0.75rem;
    color: var(--accent-olive);
}

.innovation-hero__headline {
    font-size: clamp(2.8rem, 6vw, 4.8rem);
    font-weight: 500;
    line-height: 1.05;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.innovation-hero__headline span {
    color: var(--accent);
}

.innovation-hero__lead {
    font-size: 1.15rem;
    line-height: 1.8;
    color: var(--accent-steel);
    max-width: 48ch;
}

.innovation-hero__cta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.innovation-hero__signals {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1rem;
}

.innovation-hero__signal {
    padding: 1rem 1.25rem;
    border: 1px solid rgba(150, 140, 135, 0.35);
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.signal-label {
    font-size: 0.65rem;
    letter-spacing: 0.35em;
    text-transform: uppercase;
    color: var(--accent-olive);
}

.signal-value {
    font-size: 2rem;
    font-weight: 600;
    color: var(--accent);
}

.signal-detail {
    font-size: 0.85rem;
    color: var(--accent-steel);
}

.innovation-hero__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}

.innovation-hero__tag {
    border: 1px solid rgba(150, 140, 135, 0.35);
    padding: 0.45rem 0.9rem;
    font-size: 0.75rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--accent-steel);
    background: rgba(249, 247, 244, 0.8);
}

.innovation-hero__experience {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.studio-hero-page {
    position: relative;
    margin: 0;
    padding: clamp(1.5rem, 5vw, 4rem);
    border: 1px solid rgba(94, 116, 138, 0.25);
    background: radial-gradient(circle at 20% 20%, rgba(214, 207, 199, 0.25), transparent 60%), var(--surface);
    overflow: hidden;
    border-radius: 28px;
    --canvas-x: 50%;
    --canvas-y: 40%;
    isolation: isolate;
}

.studio-hero__glow {
    position: absolute;
    inset: -15% -5% 0 -5%;
    background:
        radial-gradient(circle at 25% 20%, rgba(178, 110, 99, 0.4), transparent 55%),
        radial-gradient(circle at 70% 0%, rgba(94, 116, 138, 0.35), transparent 65%);
    filter: blur(60px);
    opacity: 0.7;
    animation: glowPulse 12s ease-in-out infinite;
}


.canvas-layer {
    position: absolute;
    inset: -15%;
    opacity: 0.35;
    pointer-events: none;
}

.canvas-layer--pulse {
    background: radial-gradient(circle at var(--canvas-x) var(--canvas-y), rgba(178, 110, 99, 0.25), transparent 70%);
    animation: canvasPulse 10s ease-in-out infinite;
}

.canvas-layer--grid {
    background:
        repeating-linear-gradient(0deg, rgba(94, 116, 138, 0.15) 0 1px, transparent 1px 18px),
        repeating-linear-gradient(90deg, rgba(94, 116, 138, 0.15) 0 1px, transparent 1px 18px);
    transform-origin: center;
    animation: canvasRotate 28s linear infinite;
    opacity: 0.25;
}

.canvas-layer--ring {
    background: radial-gradient(circle at var(--canvas-x) var(--canvas-y), rgba(255, 255, 255, 0.4) 0%, rgba(255, 255, 255, 0.05) 35%, transparent 70%);
    animation: canvasDrift 18s ease-in-out infinite;
}

.studio-morph {
    position: absolute;
    inset: -10%;
    width: 120%;
    height: 120%;
    opacity: 0.65;
}

.studio-morph__path {
    fill: none;
    stroke: rgba(255, 255, 255, 0.5);
    stroke-width: 1.2;
    stroke-dasharray: 1200;
    animation: morphTrace 18s linear infinite;
}

.studio-morph__path--inner {
    stroke: rgba(255, 255, 255, 0.35);
    animation-duration: 12s;
}

.studio-matrix {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.studio-matrix span {
    position: absolute;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(178, 110, 99, 0.85);
    box-shadow: 0 0 12px rgba(178, 110, 99, 0.7);
    transform: translate(-50%, -50%);
    transition: left 1.2s ease, top 1.2s ease;
    animation: nodeBlink 4s ease-in-out infinite;
}

.studio-hero__grid {
    position: relative;
    display: grid;
    grid-template-columns: minmax(320px, 1.1fr) minmax(260px, 0.9fr);
    gap: clamp(1.5rem, 4vw, 4rem);
    z-index: 1;
}

.studio-hero__intro h1 {
    font-size: clamp(2rem, 4.5vw, 3.6rem);
    margin-bottom: 1rem;
}

.studio-hero__intro p {
    font-size: 1.05rem;
    line-height: 1.75;
    color: var(--accent-steel);
}

.studio-hero__insights {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.studio-hero__capabilities {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    font-size: 0.95rem;
    color: var(--text);
}

.studio-hero__capabilities li {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    letter-spacing: 0.02em;
}

.studio-hero__capabilities li::before {
    content: '';
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 50%;
    margin-top: 0.45rem;
    background: var(--accent);
    flex-shrink: 0;
}

.studio-hero__intro {
    position: relative;
    padding: clamp(1rem, 3vw, 1.5rem);
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid rgba(150, 140, 135, 0.25);
    box-shadow: 0 25px 60px rgba(17, 24, 31, 0.1);
}

.studio-hero__intro::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(120deg, rgba(214, 207, 199, 0.4), transparent 45%);
    pointer-events: none;
}

.studio-hero__cta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 1.5rem;
}

.studio-hero__stack {
    position: relative;
    min-height: 320px;
    transform-style: preserve-3d;
    --studio-tilt-x: 0deg;
    --studio-tilt-y: 0deg;
    --studio-depth: 0px;
    animation: stackDrift 14s ease-in-out infinite alternate;
    transform: perspective(1800px) rotateX(var(--studio-tilt-y)) rotateY(var(--studio-tilt-x)) translateZ(var(--studio-depth));
    transition: box-shadow 0.6s ease;
}

.studio-hero__stack.is-pointer-active {
    box-shadow: 0 40px 80px rgba(17, 24, 31, 0.2);
}

.studio-layer {
    position: absolute;
    inset: 0;
    border-radius: 18px;
    overflow: hidden;
}

.studio-layer--grid {
    border: 1px solid rgba(94, 116, 138, 0.35);
    background:
        repeating-linear-gradient(0deg, rgba(94, 116, 138, 0.3) 0 1px, transparent 1px 24px),
        repeating-linear-gradient(90deg, rgba(94, 116, 138, 0.3) 0 1px, transparent 1px 24px);
    animation: gridParallax 18s linear infinite;
    filter: drop-shadow(0 30px 60px rgba(0, 0, 0, 0.45));
}

.studio-layer--mesh {
    background: radial-gradient(circle at 50% 30%, rgba(178, 110, 99, 0.5), transparent 60%);
    transform: translateZ(-40px) scale(1.05);
    animation: glowPulse 8s ease-in-out infinite;
    opacity: 0.65;
}

.studio-layer--overlay {
    border: 1px solid rgba(255, 255, 255, 0.15);
    mix-blend-mode: screen;
    transform: translateZ(40px);
    pointer-events: none;
}

.studio-layer--frame {
    position: absolute;
    inset: 12%;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    display: grid;
    place-items: center;
    letter-spacing: 0.4em;
    color: rgba(255, 255, 255, 0.85);
    background: rgba(9, 14, 22, 0.65);
    transform: translateZ(25px);
    text-transform: uppercase;
}

.studio-layer--nodes {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    gap: 0.75rem;
    padding: 1rem;
    transform: translateZ(40px);
}

.studio-layer--nodes span {
    border: 1px solid rgba(255, 255, 255, 0.35);
    padding: 0.35rem 0.9rem;
    border-radius: 999px;
    font-size: 0.75rem;
    letter-spacing: 0.25em;
    color: rgba(214, 222, 234, 0.9);
    background: rgba(9, 14, 22, 0.6);
    animation: nodeBlink 5s ease-in-out infinite;
}

.studio-layer--nodes span[data-node="02"] {
    justify-self: end;
    animation-delay: 0.6s;
}

.studio-layer--nodes span[data-node="03"] {
    justify-self: start;
    animation-delay: 1.2s;
}

.studio-parametric {
    position: absolute;
    inset: 6%;
    transform: translateZ(60px);
    pointer-events: none;
}

.parametric-web {
    width: 100%;
    height: 100%;
}

.parametric-path {
    fill: none;
    stroke: rgba(255, 255, 255, 0.65);
    stroke-width: 1.2;
    stroke-dasharray: 980;
    animation: parametricDraw 12s linear infinite;
    filter: drop-shadow(0 0 20px rgba(178, 110, 99, 0.4));
}

.parametric-path--inner {
    stroke: rgba(255, 255, 255, 0.4);
    animation-duration: 9s;
}

.parametric-node {
    fill: rgba(178, 110, 99, 0.9);
    filter: drop-shadow(0 0 12px rgba(178, 110, 99, 0.8));
    animation: nodeBlink 5s ease-in-out infinite;
}

.parametric-caption {
    position: absolute;
    bottom: -1.5rem;
    width: 100%;
    display: flex;
    justify-content: space-between;
    font-size: 0.7rem;
    letter-spacing: 0.25em;
    color: rgba(214, 222, 234, 0.9);
    text-transform: uppercase;
}

.studio-hero__stats {
    position: relative;
    z-index: 1;
    margin-top: clamp(1.5rem, 4vw, 3rem);
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 1rem;
}

.studio-hero__stats article {
    border: 1px solid rgba(150, 140, 135, 0.35);
    background: rgba(255, 255, 255, 0.75);
    padding: 1rem 1.25rem;
}

.studio-hero__stats article p {
    font-size: 2rem;
    margin: 0 0 0.2rem;
    color: var(--text);
}

.studio-methods {
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    padding: clamp(1.5rem, 4vw, 2.5rem);
}

.studio-methods__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
    padding-top: 0.5rem;
}

.studio-methods__header h2 {
    font-size: clamp(1.6rem, 3vw, 2.2rem);
}

.studio-methods__header p {
    max-width: 60ch;
    color: var(--accent-steel);
}

.methodology-shell {
    margin-top: 1rem;
    display: grid;
    grid-template-columns: minmax(220px, 0.5fr) minmax(320px, 1fr);
    gap: clamp(1rem, 3vw, 2.5rem);
}

.methodology-track {
    position: relative;
    padding: 1.5rem 1rem;
    border: 1px solid rgba(94, 116, 138, 0.25);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.8);
    display: flex;
    flex-direction: column;
    gap: 1rem;
    overflow: hidden;
}

.methodology-track__beam,
.methodology-track__glow {
    position: absolute;
    left: calc(1.5rem);
    top: 1rem;
    width: 2px;
    height: calc(100% - 2rem);
    border-radius: 999px;
    pointer-events: none;
}

.methodology-track__beam {
    background: linear-gradient(180deg, rgba(94, 116, 138, 0.4), rgba(178, 110, 99, 0.7));
}

.methodology-track__glow {
    width: 80px;
    height: 80px;
    background: radial-gradient(circle, rgba(178, 110, 99, 0.4), transparent 68%);
    transform: translateX(-39px);
    opacity: 0.2;
    transition: transform 0.6s ease;
}

.method-node {
    position: relative;
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 1rem;
    align-items: center;
    padding: 0.6rem 0.75rem 0.6rem 2.5rem;
    border: none;
    background: transparent;
    text-align: left;
    cursor: pointer;
    transition: color 0.3s ease;
}

.method-node::before {
    content: '';
    position: absolute;
    left: 1.1rem;
    top: 50%;
    width: 0.65rem;
    height: 0.65rem;
    border-radius: 50%;
    background: rgba(94, 116, 138, 0.5);
    transform: translateY(-50%);
    transition: transform 0.4s ease, background 0.4s ease, box-shadow 0.4s ease;
}

.method-node.is-active::before {
    background: var(--accent);
    transform: translateY(-50%) scale(1.5);
    box-shadow: 0 0 12px rgba(178, 110, 99, 0.75);
}

.method-node__index {
    font-size: 0.75rem;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: rgba(94, 116, 138, 0.7);
}

.method-node__title {
    font-size: 1rem;
    margin: 0;
    color: var(--text);
}

.method-node__meta {
    margin: 0;
    font-size: 0.85rem;
    color: var(--accent-steel);
}

.method-node.is-active .method-node__index,
.method-node.is-active .method-node__title {
    color: var(--accent);
}

.methodology-detail {
    border: 1px solid rgba(94, 116, 138, 0.25);
    border-radius: 18px;
    padding: clamp(1.5rem, 3vw, 2.5rem);
    background: radial-gradient(circle at 30% 20%, rgba(214, 207, 199, 0.45), rgba(255, 255, 255, 0.9));
    min-height: 360px;
    position: relative;
    overflow: hidden;
}

.method-panel {
    display: none;
    flex-direction: column;
    gap: 0.75rem;
    color: var(--accent-steel);
    line-height: 1.65;
    animation: panelFade 0.6s ease forwards;
}

.method-panel.is-active {
    display: flex;
}

.method-panel__header span {
    font-size: 0.75rem;
    letter-spacing: 0.35em;
    text-transform: uppercase;
    color: rgba(94, 116, 138, 0.8);
}

.method-panel__header h3 {
    margin: 0.25rem 0 0.5rem;
    font-size: 1.35rem;
    color: var(--text);
}

.method-panel ul {
    margin: 0;
    padding-left: 1.1rem;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.method-panel li::marker {
    color: var(--accent);
}

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

.studio-note {
    margin: 0;
    padding: clamp(1.5rem, 4vw, 2.5rem);
    display: flex;
    flex-direction: column;
    gap: 1rem;
    line-height: 1.8;
    color: var(--accent-steel);
}

.studio-note h2 {
    text-transform: uppercase;
    letter-spacing: 0.4em;
    font-size: clamp(1.2rem, 2vw, 1.6rem);
    color: var(--text);
}

.studio-gallery-info {
    position: relative;
    z-index: 2;
    padding: clamp(1.75rem, 4vw, 2.75rem);
    overflow: hidden;
    margin: 0;
}

.studio-gallery-info::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 20% 20%, rgba(214, 207, 199, 0.45), transparent 65%),
        radial-gradient(circle at 80% 0%, rgba(154, 162, 142, 0.3), transparent 60%);
    opacity: 0.7;
    pointer-events: none;
}

.studio-gallery-info__grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
    gap: clamp(2rem, 5vw, 3.5rem);
    align-items: start;
}

.studio-gallery__intro h2 {
    font-size: clamp(1.6rem, 3vw, 2.4rem);
}

.studio-gallery__intro p {
    max-width: 60ch;
    color: var(--accent-steel);
    line-height: 1.7;
}

.studio-gallery__badge {
    display: inline-flex;
    padding: 0.5rem 1.25rem;
    border-radius: 999px;
    border: 1px solid rgba(178, 110, 99, 0.45);
    color: var(--accent);
    font-size: 0.85rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    margin: 1rem 0;
    background: rgba(178, 110, 99, 0.08);
}

.studio-gallery__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    margin-bottom: 1.5rem;
}

.studio-gallery__tags span {
    padding: 0.45rem 0.9rem;
    border-radius: 0.85rem;
    background: rgba(94, 116, 138, 0.12);
    color: var(--accent-steel);
    font-size: 0.85rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.studio-gallery__stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 1rem;
}

.studio-gallery__stats article {
    padding: 1rem 1.25rem;
    border-radius: 1rem;
    background: rgba(255, 255, 255, 0.35);
    border: 1px solid rgba(94, 116, 138, 0.25);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

.studio-gallery__stats p {
    margin: 0;
    font-size: 1.8rem;
    letter-spacing: 0.1em;
    color: var(--text);
}

.studio-gallery__stats span {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: rgba(94, 116, 138, 0.8);
}

.studio-gallery-showcase {
    position: relative;
    z-index: 1;
    margin: 0;
}

.studio-gallery-showcase .studio-gallery {
    margin: 0;
}

.studio-gallery {
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    padding: clamp(1.5rem, 4vw, 2.5rem);
}

.studio-gallery--standalone {
    margin: 0;
}

.studio-gallery__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.gallery-pod {
    position: relative;
    padding: 1.1rem 1.25rem 1.1rem 2.75rem;
    border-radius: 1.2rem;
    border: 1px solid rgba(94, 116, 138, 0.25);
    background:
        linear-gradient(120deg, rgba(214, 207, 199, 0.25), rgba(255, 255, 255, 0.75));
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.45),
        0 18px 40px rgba(17, 24, 31, 0.08);
}

.gallery-pod__index {
    position: absolute;
    left: 1rem;
    top: 1rem;
    font-size: 0.75rem;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: rgba(94, 116, 138, 0.7);
}

.gallery-pod h3 {
    margin: 0 0 0.4rem;
    font-size: 1.1rem;
    color: var(--text);
}

.gallery-pod p {
    margin: 0;
    color: var(--accent-steel);
    line-height: 1.6;
}

.studio-gallery__intro,
.studio-gallery__grid {
    position: relative;
    z-index: 1;
}

.studio-gallery__stage {
    position: relative;
    height: clamp(340px, 70vh, 540px);
    perspective: 2000px;
    --gallery-tilt-x: 0deg;
    --gallery-tilt-y: 0deg;
    border-radius: 26px;
    overflow: visible;
}

.studio-gallery__track {
    position: absolute;
    inset: 0;
    transform-style: preserve-3d;
    transition: transform 0.6s ease;
    transform: rotateX(var(--gallery-tilt-y)) rotateY(var(--gallery-tilt-x));
}

.studio-gallery__slide {
    position: absolute;
    inset: 0;
    border-radius: 26px;
    background-size: cover;
    background-position: center;
    box-shadow: 0 35px 80px rgba(5, 10, 20, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.15);
    display: flex;
    align-items: flex-end;
    padding: 1.25rem;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    overflow: hidden;
    opacity: 0;
    transform: translateZ(-200px);
    transition: transform 0.9s cubic-bezier(0.19, 1, 0.22, 1), opacity 0.6s ease, filter 0.6s ease;
}

.studio-gallery__slide::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0) 20%, rgba(0, 0, 0, 0.75) 100%);
    z-index: 0;
}

.studio-gallery__overlay {
    position: relative;
    z-index: 1;
}

.studio-gallery__overlay span {
    display: block;
    font-size: 0.85rem;
    letter-spacing: 0.35em;
}

.studio-gallery__overlay p {
    margin: 0.35rem 0 0;
    text-transform: none;
    letter-spacing: 0.05em;
    font-size: 1rem;
}

.studio-gallery__slide[data-position="0"] {
    opacity: 1;
    transform: translateZ(220px);
    filter: saturate(1.05);
}

.studio-gallery__slide[data-position="1"] {
    opacity: 0.75;
    transform: translate3d(45%, 0, -60px) rotateY(-18deg) scale(0.9);
}

.studio-gallery__slide[data-position="2"] {
    opacity: 0.75;
    transform: translate3d(-45%, 0, -60px) rotateY(18deg) scale(0.9);
}

.studio-gallery__slide[data-position="3"],
.studio-gallery__slide[data-position="4"],
.studio-gallery__slide[data-position="5"],
.studio-gallery__slide[data-position="6"],
.studio-gallery__slide[data-position="7"] {
    opacity: 0;
    pointer-events: none;
}

@media (max-width: 960px) {
    .studio-gallery__stage {
        height: clamp(280px, 60vh, 420px);
    }

    .studio-hero__intro {
        padding: 1rem;
    }

    .studio-gallery-info__grid {
        grid-template-columns: 1fr;
    }

    .studio-gallery__slide[data-position="1"],
    .studio-gallery__slide[data-position="2"] {
        transform: translate3d(0, 0, -80px) scale(0.85);
        opacity: 0.4;
    }
}

@media (max-width: 640px) {
    .studio-gallery__stats {
        grid-template-columns: 1fr;
    }

    .studio-gallery__grid {
        grid-template-columns: 1fr;
    }
}

.studio-canvas {
    margin: 0;
    padding: clamp(1.5rem, 4vw, 2.5rem);
    border-radius: 30px;
    overflow: hidden;
}

.studio-canvas__inner {
    position: relative;
    min-height: clamp(320px, 65vh, 520px);
    border-radius: 26px;
    overflow: hidden;
    background:
        radial-gradient(circle at 25% 30%, rgba(178, 110, 99, 0.25), transparent 45%),
        radial-gradient(circle at 80% 10%, rgba(94, 116, 138, 0.25), transparent 55%),
        linear-gradient(180deg, rgba(18, 20, 28, 0.85), rgba(35, 44, 58, 0.95));
    box-shadow: inset 0 0 50px rgba(0, 0, 0, 0.65);
    --canvas-x: 60%;
    --canvas-y: 40%;
}

.studio-canvas__inner::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(110deg, rgba(255, 255, 255, 0.1), transparent 45%);
    pointer-events: none;
}

.studio-canvas__label {
    position: absolute;
    bottom: 1.5rem;
    left: 1.5rem;
    right: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    color: rgba(255, 255, 255, 0.95);
    text-transform: uppercase;
    letter-spacing: 0.3em;
    font-size: 0.8rem;
    pointer-events: none;
    text-shadow: 0 6px 12px rgba(3, 5, 11, 0.65);
}

.studio-canvas__label span {
    letter-spacing: 0.2em;
    font-size: 0.7rem;
}

.hero-orbit {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    border: 1px solid rgba(94, 116, 138, 0.25);
    border-radius: 999px;
    --orbit-tilt-x: 0deg;
    --orbit-tilt-y: 0deg;
    --orbit-scale: 1;
    --orbit-shadow: 0 25px 60px rgba(17, 24, 31, 0.15);
    --orbit-focus-x: 30%;
    --orbit-focus-y: 30%;
    background:
        radial-gradient(circle, rgba(94, 116, 138, 0.3), transparent 68%),
        radial-gradient(circle at var(--orbit-focus-x) var(--orbit-focus-y), rgba(178, 110, 99, 0.35), transparent 60%);
    overflow: hidden;
    cursor: pointer;
    transform-style: preserve-3d;
    transition: transform 0.85s cubic-bezier(0.19, 1, 0.22, 1), box-shadow 0.85s ease, background-position 0.6s ease;
    transform: perspective(1400px) rotateX(var(--orbit-tilt-y)) rotateY(var(--orbit-tilt-x)) scale(var(--orbit-scale));
    box-shadow: var(--orbit-shadow);
}

.hero-orbit::before,
.hero-orbit::after {
    content: '';
    position: absolute;
    inset: 12%;
    border-radius: 32px;
    pointer-events: none;
}

.hero-orbit::before {
    border: 1px dashed rgba(94, 116, 138, 0.4);
    opacity: 0.35;
    transform: scale(0.85) rotate(4deg);
    transition: opacity 0.6s ease, transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.hero-orbit::after {
    border: 1px solid rgba(255, 255, 255, 0.35);
    box-shadow: 0 0 40px rgba(178, 110, 99, 0.35);
    opacity: 0;
    transform: scale(0.7) rotate(-6deg);
    transition: opacity 0.6s ease, transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.hero-orbit__grid {
    position: absolute;
    inset: 0;
    opacity: 0.4;
    mix-blend-mode: multiply;
    animation: gridShift 18s linear infinite;
}

.hero-orbit__grid--vertical {
    background: repeating-linear-gradient(90deg, rgba(94, 116, 138, 0.25) 0 1px, transparent 1px 22px);
}

.hero-orbit__grid--horizontal {
    background: repeating-linear-gradient(0deg, rgba(214, 207, 199, 0.25) 0 1px, transparent 1px 22px);
    animation-direction: reverse;
}

.hero-orbit__ring {
    position: absolute;
    inset: 10%;
    border: 1px solid rgba(214, 207, 199, 0.5);
    border-radius: 50%;
    animation: orbitRotate 24s linear infinite;
}

.hero-orbit__ring--middle {
    inset: 22%;
    animation-duration: 18s;
    border-color: rgba(178, 110, 99, 0.5);
}

.hero-orbit__ring--inner {
    inset: 34%;
    animation-duration: 12s;
    border-color: rgba(94, 116, 138, 0.5);
}

.hero-orbit__core {
    position: absolute;
    inset: 38%;
    border-radius: 16px;
    background: var(--accent);
    color: var(--bg);
    display: grid;
    place-items: center;
    font-size: 0.7rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    text-align: center;
    padding: 0.85rem;
    line-height: 1.3;
    box-shadow: 0 0 45px rgba(178, 110, 99, 0.65);
    transition: transform 0.6s ease, box-shadow 0.6s ease;
}

.hero-orbit__node {
    position: absolute;
    padding: 0.4rem 0.9rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.35);
    background: rgba(255, 255, 255, 0.85);
    font-size: 0.7rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--accent-steel);
    box-shadow: 0 10px 25px rgba(17, 24, 31, 0.12);
    animation: nodeDrift 14s ease-in-out infinite;
    transition: border-color 0.5s ease, background 0.5s ease, box-shadow 0.5s ease;
}

.hero-orbit__node--design {
    top: 12%;
    left: 50%;
    transform: translateX(-50%);
    animation-name: nodeDriftCenter;
}

.hero-orbit__node--data {
    bottom: 18%;
    left: 12%;
    animation-delay: 2s;
}

.hero-orbit__node--human {
    bottom: 10%;
    right: 8%;
    animation-delay: 4s;
}

.hero-orbit__node--sustainability {
    top: 22%;
    right: 8%;
    transform: translateY(-20%);
    animation-delay: 6s;
}

.hero-orbit:hover {
    --orbit-scale: 1.04;
    --orbit-shadow:
        0 45px 90px rgba(17, 24, 31, 0.22),
        0 0 80px rgba(178, 110, 99, 0.35);
}

.hero-orbit:hover::before {
    opacity: 0.7;
    transform: scale(1) rotate(0deg);
}

.hero-orbit:hover::after {
    opacity: 0.8;
    transform: scale(1.05) rotate(-2deg);
}

.hero-orbit:hover .hero-orbit__grid {
    opacity: 0.75;
}

.hero-orbit:hover .hero-orbit__ring {
    border-color: rgba(255, 255, 255, 0.6);
    animation-duration: 14s;
}

.hero-orbit:hover .hero-orbit__ring--middle {
    animation-duration: 10s;
    border-color: rgba(178, 110, 99, 0.6);
}

.hero-orbit:hover .hero-orbit__ring--inner {
    animation-duration: 8s;
    border-color: rgba(94, 116, 138, 0.75);
}

.hero-orbit:hover .hero-orbit__core {
    box-shadow:
        0 0 55px rgba(178, 110, 99, 0.8),
        0 0 0 1px rgba(255, 255, 255, 0.45);
    transform: translateZ(24px) scale(1.05);
}

.hero-orbit:hover .hero-orbit__node {
    border-color: rgba(178, 110, 99, 0.4);
    background: rgba(255, 255, 255, 0.95);
    animation-duration: 9s;
    box-shadow: 0 18px 35px rgba(17, 24, 31, 0.2);
}

@media (max-width: 960px) {
    .innovation-hero__grid {
        grid-template-columns: 1fr;
    }

    .innovation-hero__experience {
        order: -1;
    }
}

@media (max-width: 640px) {
    .innovation-hero {
        padding: 1.5rem;
    }

    .innovation-hero__cta {
        flex-direction: column;
        align-items: stretch;
    }

    .hero-orbit {
        max-width: 310px;
        margin: 1.25rem auto 0;
    }

    .hero-orbit__core {
        inset: 35%;
        padding: 0.5rem;
        font-size: 0.7rem;
        letter-spacing: 0.2em;
        display: grid;
        place-items: center;
        text-align: center;
        word-break: break-word;
    }

    .hero-orbit__node {
        font-size: 0.6rem;
        letter-spacing: 0.2em;
        padding: 0.25rem 0.6rem;
        border-radius: 999px;
        border-width: 1px;
    }

    .hero-orbit__node--design {
        top: 5%;
        left: 50%;
        transform: translateX(-50%);
    }

    .hero-orbit__node--data {
        bottom: 25%;
        left: 2%;
    }

    .hero-orbit__node--human {
        bottom: 5%;
        right: 50%;
        transform: translateX(50%);
    }

    .hero-orbit__node--sustainability {
        top: 25%;
        right: 2%;
        transform: translateX(0);
    }
}
}

.meta-label {
    font-size: 0.7rem;
    letter-spacing: 0.35em;
    text-transform: uppercase;
    color: var(--accent-olive);
    display: block;
    margin-bottom: 0.4rem;
}

.projects-section {
    padding-top: 2rem;
}

.projects-lede {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    border-bottom: 1px solid var(--line);
    padding-bottom: 1rem;
    margin-bottom: 1.5rem;
}

.projects-lede h2 {
    font-size: clamp(1.8rem, 3vw, 2.4rem);
    font-weight: 500;
}

.section-label {
    text-transform: uppercase;
    letter-spacing: 0.35em;
    font-size: 0.7rem;
    color: var(--accent-olive);
    margin-bottom: 0.6rem;
}

.projects-count {
    text-align: right;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    color: var(--muted);
}

.count-number {
    font-size: 2rem;
    font-weight: 600;
    color: var(--text);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(1.5rem, 4vw, 3rem);
    margin-top: clamp(1rem, 3vw, 2rem);
}

.projects-column {
    display: flex;
    flex-direction: column;
    gap: clamp(2rem, 5vw, 4rem);
}

.projects-column[data-column="right"] {
    margin-top: clamp(2rem, 5vw, 4rem);
}

.grid-card {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    isolation: isolate;
    border: 1px solid rgba(150, 140, 135, 0.42);
    background-color: var(--surface-strong);
    --card-translate: 0px;
    --card-scale: 1;
    --card-tilt: 0deg;
    will-change: transform, opacity;
    transform: translate3d(0, var(--card-translate), 0) scale(var(--card-scale)) rotateX(var(--card-tilt));
    transition: border-color 0.3s ease;
}

.grid-card:hover,
.grid-card:focus-visible {
    border-color: rgba(178, 110, 99, 0.6);
    --card-scale: 1.02;
}

.grid-card-media {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    filter: saturate(1.15) contrast(1.05);
    transition: transform 0.6s cubic-bezier(0.19, 1, 0.22, 1);
    z-index: 1;
}

.grid-card:hover .grid-card-media,
.grid-card:focus-visible .grid-card-media {
    transform: scale(1.05);
}

.grid-card-noise {
    position: absolute;
    inset: 0;
    background-image: linear-gradient(120deg, rgba(94, 116, 138, 0.55), transparent 70%);
    opacity: 0.6;
    z-index: 2;
}

.grid-card-frame {
    position: absolute;
    inset: 12px;
    border: 1px solid rgba(214, 207, 199, 0.6);
    mix-blend-mode: screen;
    z-index: 3;
}

.grid-card-content {
    position: absolute;
    inset: 0;
    padding: clamp(1.5rem, 3vw, 2rem);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    gap: 1rem;
    z-index: 4;
    background: linear-gradient(0deg, rgba(32, 44, 54, 0.9) 0%, rgba(32, 44, 54, 0.35) 60%, transparent);
}

.grid-card-eyebrow {
    display: flex;
    justify-content: space-between;
    text-transform: uppercase;
    letter-spacing: 0.25em;
    font-size: 0.7rem;
    color: rgba(214, 207, 199, 0.95);
}

.grid-card-content h3 {
    font-size: clamp(1.6rem, 2.5vw, 2.1rem);
    font-weight: 500;
    color: #fffdf7;
}

.grid-card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    font-size: 0.9rem;
    color: rgba(242, 238, 233, 0.9);
}

.studio-panel {
    padding: clamp(1.5rem, 4vw, 2.5rem);
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    line-height: 1.7;
    color: var(--text);
}

.studio-panel h3 {
    font-size: clamp(1.4rem, 2.8vw, 2rem);
    font-weight: 500;
}

.studio-links {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.concept-note {
    margin-top: clamp(1.5rem, 4vw, 3rem);
    padding: clamp(1.5rem, 4vw, 2.5rem);
    display: flex;
    flex-direction: column;
    gap: 1rem;
    line-height: 1.75;
    color: var(--accent-steel);
}

.concept-note h3 {
    font-size: clamp(1.3rem, 2.5vw, 1.8rem);
    font-weight: 500;
    color: var(--text);
    text-transform: uppercase;
    letter-spacing: 0.25em;
}

.main-footer {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 1rem;
    padding-top: 2rem;
    border-top: 1px solid var(--line);
    font-size: 0.85rem;
    color: var(--muted);
}

@media (max-width: 900px) {
    body {
        padding: 1.5rem;
    }

    .site-header {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .nav-links {
        justify-content: center;
        flex-wrap: wrap;
    }

    .projects-lede {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .projects-grid {
        grid-template-columns: 1fr;
    }

    .projects-column[data-column='right'] {
        margin-top: 0;
    }

    .grid-card {
        aspect-ratio: 4 / 5;
    }

    .grid-card-eyebrow {
        flex-direction: column;
        gap: 0.35rem;
    }

    .grid-card-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.25rem;
    }
}

@media (hover: none), (pointer: coarse) {
    .grid-card {
        --card-scale: 1 !important;
    }
}

@media (max-width: 600px) {
    body {
        padding: 0.85rem;
    }

    main {
        gap: 2rem;
    }

    .glass-panel {
        border-radius: 22px;
    }

    .site-header {
        position: static;
        top: auto;
        grid-template-columns: 1fr;
        padding: 1rem;
        gap: 0.6rem;
        border-radius: 24px;
    }

    .header-block {
        text-align: left;
    }

    .nav-links {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.35rem;
    }

    .nav-links a {
        font-size: 0.95rem;
        letter-spacing: 0.18em;
    }

    .innovation-hero {
        padding: 1.2rem;
        border-radius: 24px;
    }

    .innovation-hero__eyebrow {
        font-size: 0.6rem;
        letter-spacing: 0.25em;
    }

    .innovation-hero__headline {
        font-size: clamp(2rem, 8vw, 2.6rem);
        gap: 0.15rem;
    }

    .innovation-hero__lead {
        font-size: 1rem;
        line-height: 1.6;
    }

    .innovation-hero__signals {
        grid-template-columns: 1fr;
    }

    .innovation-hero__signal {
        padding: 0.85rem 1rem;
    }

    .innovation-hero__tags {
        flex-direction: column;
        align-items: stretch;
    }

    .hero-orbit {
        max-width: 320px;
        margin: 0 auto;
    }

    .projects-lede {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.4rem;
    }

    .projects-count {
        text-align: left;
    }

    .projects-grid {
        gap: 1.25rem;
    }

    .grid-card {
        border-radius: 24px;
        aspect-ratio: 3 / 4;
    }

    .grid-card-content {
        padding: 1.2rem;
    }

    .grid-card-content h3 {
        font-size: 1.45rem;
    }

    .grid-card-eyebrow {
        font-size: 0.62rem;
        letter-spacing: 0.18em;
    }

    .studio-panel,
    .studio-methods,
    .studio-gallery-info,
    .studio-canvas {
        padding: 1.25rem;
        border-radius: 22px;
    }

    .studio-hero-page {
        padding: 1.25rem;
        border-radius: 24px;
    }

    .studio-hero__grid {
        grid-template-columns: 1fr;
    }

    .studio-hero__cta {
        flex-direction: column;
        align-items: stretch;
    }

    .studio-hero__stack {
        min-height: 280px;
    }

    .studio-hero__stats {
        grid-template-columns: 1fr;
    }

    .studio-gallery__stage {
        height: clamp(220px, 55vh, 320px);
    }

    .studio-gallery__slide {
        border-radius: 18px;
    }

    .studio-gallery__stats article {
        text-align: center;
    }

    .section-label {
        letter-spacing: 0.25em;
    }

    .project-immersive__shell {
        padding: 1rem;
        border-radius: 28px;
    }

    .project-immersive__chrome {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .project-immersive__gallery {
        padding: 0 0.75rem;
    }

    .project-immersive__viewport {
        min-height: auto;
        height: auto;
        max-height: 78vh;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    .project-immersive__viewport::before,
    .project-immersive__viewport::after {
        display: none;
    }

    .immersive-slide {
        --slide-default-width: 94vw;
        min-height: auto;
        height: auto;
    }

    .slide-intro {
        display: flex;
        flex-direction: column;
        gap: 0.85rem;
    }

    .slide-intro__copy {
        order: 1;
        padding: 1.05rem;
        gap: 1rem;
    }

    .slide-intro__copy .intro-eyebrow {
        font-size: 0.58rem;
        letter-spacing: 0.28em;
    }

    .slide-intro__copy h2 {
        font-size: clamp(1.8rem, 7vw, 2.4rem);
    }

    .slide-intro__copy p {
        font-size: 0.95rem;
        line-height: 1.5;
    }

    .architect-stage {
        order: 2;
        min-height: clamp(200px, 48vh, 300px);
        border-radius: 22px;
        box-shadow:
            inset 0 0 60px rgba(255, 255, 255, 0.35),
            0 20px 50px rgba(0, 0, 0, 0.22);
    }

    .architect-stage__triangle {
        width: clamp(60px, 28vw, 110px);
    }

    .architect-stage__markers {
        position: static;
        inset: auto;
        margin-top: 0.85rem;
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
        gap: 0.45rem 0.75rem;
        padding: 0.15rem 0;
    }

    .architect-stage__markers span {
        justify-content: flex-start;
        padding: 0.35rem 0.75rem;
    }

    .architect-stage__markers span::before {
        display: none;
    }

    .main-footer {
        flex-direction: column;
        text-align: left;
    }

    .methodology-shell {
        grid-template-columns: 1fr;
    }
}
.preloader-noise {
    position: absolute;
    inset: -10%;
    background-image:
        repeating-linear-gradient(0deg, rgba(255,255,255,0.015) 0 2px, transparent 2px 4px),
        repeating-linear-gradient(90deg, rgba(255,255,255,0.02) 0 2px, transparent 2px 4px);
    mix-blend-mode: screen;
    opacity: 0.25;
    animation: noise-shift 1.8s steps(2) infinite;
}

.preloader-scanline {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(255,255,255,0.12) 50%, rgba(0,0,0,0) 100%);
    mix-blend-mode: soft-light;
    opacity: 0.35;
    animation: scanline 3s linear infinite;
}
[data-hero-line] {
    display: inline-block;
    will-change: transform, opacity;
    transform: translateZ(0);
    transition: transform 0.2s ease, opacity 0.2s ease;
}
/* Login Page Styles */
.login-page-container {
    display: grid;
    place-items: center;
    min-height: 80vh;
    padding: 2rem;
}

.login-panel {
    width: 100%;
    max-width: 420px;
    padding: clamp(1.5rem, 4vw, 2.5rem);
    display: flex;
    flex-direction: column;
}

#login-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-field {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

/* Custom styles for form elements to match theme */
.form-control {
    background-color: rgba(214, 207, 199, 0.35); /* Slightly visible background */
    border: 1px solid rgba(150, 140, 135, 0.45); /* Use existing glass border */
    color: var(--text); /* Text color */
    padding: 0.7rem 1rem;
    font-size: 1rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-control:focus {
    border-color: var(--accent); /* Accent color on focus */
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 0 0 0.2rem rgba(178, 110, 99, 0.22); /* Soft glow with accent color */
    color: var(--text);
}

.form-control::placeholder {
    color: var(--muted); /* Muted placeholder text */
    opacity: 1;
}

select.form-control {
    appearance: none;
    background-color: rgba(214, 207, 199, 0.4);
    background-image:
        linear-gradient(transparent, transparent),
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='10' viewBox='0 0 14 10'%3E%3Cpath fill='%23b26e63' d='M7 10L0 0h14z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 3rem;
}

select.form-control:focus {
    background-color: rgba(255, 255, 255, 0.95);
}

input[type="file"] {
    position: relative;
    cursor: pointer;
    padding: 0.4rem 1rem;
    color: var(--muted);
}

input[type="file"]::file-selector-button,
input[type="file"]::-webkit-file-upload-button {
    background: transparent;
    color: var(--text);
    border: 1px solid rgba(150, 140, 135, 0.45);
    text-transform: uppercase;
    letter-spacing: 0.2em;
    padding: 0.45rem 1rem;
    margin-right: 1rem;
    cursor: pointer;
    transition: border-color 0.3s ease, color 0.3s ease, background 0.3s ease;
}

input[type="file"]::file-selector-button:hover,
input[type="file"]::-webkit-file-upload-button:hover {
    border-color: var(--accent);
    color: var(--accent);
    background: rgba(178, 110, 99, 0.08);
}

textarea.form-control {
    min-height: 140px;
    line-height: 1.5;
    resize: vertical;
}

.summary-textarea {
    min-height: 220px;
    font-size: 1rem;
    line-height: 1.7;
}

.btn {
    padding: 0.7rem 1.8rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    font-size: 0.75rem;
    text-decoration: none;
    border: none;
    transition: opacity 0.3s ease, transform 0.3s ease;
    cursor: pointer;
    display: inline-block;
}

.btn-primary {
    color: var(--bg); /* Text color from background variable */
    background: var(--accent); /* Accent color for button */
}

.btn-secondary {
    background: transparent;
    color: var(--text);
    border: 1px solid rgba(150, 140, 135, 0.55);
}

.btn-secondary:hover,
.btn-secondary:focus {
    background: rgba(154, 162, 142, 0.15);
    border-color: rgba(150, 140, 135, 0.85);
}

.btn-ghost {
    background: transparent;
    color: var(--text);
    border: 1px solid rgba(150, 140, 135, 0.45);
}

.btn-ghost:hover,
.btn-ghost:focus {
    border-color: var(--accent);
    color: var(--accent);
}

.btn-minimal {
    background: transparent;
    color: var(--muted);
    border: 1px solid rgba(150, 140, 135, 0.35);
    padding: 0.45rem 0.9rem;
    font-size: 0.7rem;
    letter-spacing: 0.2em;
}

.btn-minimal:hover,
.btn-minimal:focus {
    color: var(--accent);
    border-color: var(--accent);
}

.btn:hover,
.btn:focus {
    opacity: 0.85;
    transform: translateY(-2px); /* Slight lift on hover/focus */
    box-shadow: none; /* Remove default focus shadow */
}

.btn-primary:hover,
.btn-primary:focus {
    color: var(--bg); /* Ensure text color remains consistent */
    background: var(--accent); /* Ensure background color remains consistent */
}

.text-danger {
    color: #c65c50 !important; /* A soft red for error messages */
    font-size: 0.85rem;
    margin-top: 0.25rem;
    display: block;
}

.form-check {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Custom styles for Bootstrap form-check */
.form-check-input {
    width: 1.2em;
    height: 1.2em;
    background-color: rgba(214, 207, 199, 0.4);
    border: 1px solid var(--glass-border);
    float: none;
    margin-left: 0;
    flex-shrink: 0; /* Prevent shrinking in flex container */
    -webkit-appearance: none; /* Hide default checkbox */
    -moz-appearance: none;
    appearance: none;
    cursor: pointer;
    position: relative;
}

.form-check-input:checked {
    background-color: var(--accent);
    border-color: var(--accent);
}

.form-check-input:checked::before {
    content: '✔'; /* Checkmark character */
    display: block;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 0.8em;
    color: var(--bg); /* Dark color for checkmark */
}

.form-check-input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 0.2rem rgba(178, 110, 99, 0.22);
    outline: 0;
}

.form-check-label {
    color: var(--text);
    font-size: 0.9rem;
    cursor: pointer;
}

.admin-panel {
    margin-top: 10rem;
    margin-bottom: 10rem;
}

/* Admin project editor */
.admin-editor-shell {
    margin-block: clamp(6rem, 12vh, 10rem);
    padding: clamp(2rem, 4vw, 3rem);
}

.editor-header {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: clamp(2rem, 5vw, 3.5rem);
}

.editor-subtitle {
    color: var(--muted);
    max-width: 42ch;
}

.editor-grid {
    display: grid;
    grid-template-columns: minmax(260px, 1fr) minmax(520px, 2fr);
    gap: clamp(1.5rem, 3vw, 3.5rem);
}

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

.project-metadata-stack {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.meta-field {
    border: 1px solid rgba(150, 140, 135, 0.35);
    background: rgba(244, 239, 233, 0.75);
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.meta-field__labels {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 1rem;
}

.meta-field__hint {
    color: var(--muted);
    font-size: 0.8rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.micro-label {
    text-transform: uppercase;
    letter-spacing: 0.3em;
    font-size: 0.65rem;
    color: var(--muted);
}

.meta-field__two-col {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
    align-items: flex-start;
}

@media (max-width: 900px) {
    .meta-field__two-col {
        grid-template-columns: 1fr;
    }
}

.media-preview {
    border: 1px dashed rgba(150, 140, 135, 0.5);
    padding: 0.75rem;
    min-height: 160px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(214, 207, 199, 0.2);
}

.media-preview img {
    max-width: 100%;
    max-height: 240px;
    object-fit: cover;
    display: block;
}

.media-upload-block {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.media-preview-img.is-hidden {
    display: none;
}

.media-preview-empty.is-hidden {
    display: none;
}

.intro-editor-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.25rem;
    align-items: stretch;
}

.intro-editor-column {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.intro-preview-panel {
    border: 1px solid rgba(150, 140, 135, 0.45);
    padding: 1.25rem;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.9), rgba(244, 239, 233, 0.85));
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.intro-preview-body {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.intro-preview-tag {
    font-size: 0.8rem;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--muted);
}

.slide-deck {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.slide-deck-headline {
    display: flex;
    justify-content: space-between;
    gap: 1.5rem;
    align-items: flex-start;
}

.slide-deck-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}


.slide-card {
    border: 1px solid rgba(150, 140, 135, 0.35);
    background: rgba(249, 247, 244, 0.85);
    box-shadow: 0 25px 60px rgba(17, 24, 31, 0.12);
    display: flex;
    flex-direction: column;
}

.slide-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid rgba(150, 140, 135, 0.35);
}

.slide-card-header__identity {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.slide-card-header__actions {
    display: flex;
    gap: 0.75rem;
    align-items: center;
}

.slide-index-tag {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.2rem;
    letter-spacing: 0.2em;
}

.slide-card-labels {
    display: flex;
    flex-direction: column;
}

.slide-card-label {
    font-size: 1.1rem;
    letter-spacing: 0.04em;
}

.slide-type-chip {
    font-size: 0.75rem;
    letter-spacing: 0.2em;
    color: var(--muted);
    text-transform: uppercase;
}

.slide-card-body {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.slide-meta-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1rem;
    align-items: end;
}

.slide-fields {
    border: 1px solid rgba(150, 140, 135, 0.35);
    padding: 1rem;
    background: rgba(214, 207, 199, 0.25);
    display: none;
    flex-direction: column;
    gap: 1rem;
}

.slide-fields.is-active {
    display: flex;
}

.slide-field-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
}

.stats-container {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.stat-block {
    border: 1px solid rgba(150, 140, 135, 0.35);
    padding: 1rem;
    display: grid;
    grid-template-columns: 1fr 1fr auto;
    gap: 0.75rem;
    align-items: end;
}

.stat-block input {
    width: 100%;
}

.drag-handle {
    cursor: grab;
    font-size: 1.1rem;
    letter-spacing: 0.3em;
    color: var(--muted);
}

.drag-handle:hover {
    color: var(--accent);
}

.sortable-ghost {
    opacity: 0.6;
    border: 1px dashed rgba(150, 140, 135, 0.55);
}

.empty-slide-state {
    border: 1px dashed rgba(150, 140, 135, 0.45);
    padding: 2.5rem;
    text-align: center;
    color: var(--muted);
    letter-spacing: 0.1em;
}

.editor-actions {
    margin-top: 3rem;
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.editor-actions__add {
    margin-left: auto;
}

/* Contact modal */

.contact-modal {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: clamp(1rem, 4vw, 3rem);
    z-index: 1300;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.contact-modal.is-visible {
    opacity: 1;
    visibility: visible;
}

.contact-modal__backdrop {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top, rgba(249, 247, 244, 0.08), rgba(11, 13, 18, 0.85));
    backdrop-filter: blur(22px);
}

.contact-modal__panel {
    position: relative;
    width: min(960px, 100%);
    background: rgba(11, 13, 18, 0.72);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 32px;
    padding: clamp(1.5rem, 4vw, 3rem);
    box-shadow:
        0 40px 120px rgba(0, 0, 0, 0.45),
        inset 0 0 40px rgba(255, 255, 255, 0.03);
    overflow: hidden;
    max-height: calc(100vh - 2.5rem);
    overflow-y: auto;
}

.contact-modal__halo {
    position: absolute;
    inset: 8%;
    background: radial-gradient(circle, rgba(178, 110, 99, 0.35), transparent 70%);
    filter: blur(30px);
    opacity: 0.6;
    pointer-events: none;
    z-index: 0;
}

.contact-modal__body {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contact-modal__close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: rgba(253, 252, 249, 0.92);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    cursor: pointer;
    padding: 0.45rem 0.75rem;
    border-radius: 999px;
    backdrop-filter: blur(12px);
    z-index: 2;
}

.contact-modal__close svg {
    width: 1.25rem;
    height: 1.25rem;
    stroke: currentColor;
    stroke-width: 1.5;
    fill: none;
}

.contact-modal__intro h2 {
    font-size: clamp(1.8rem, 4vw, 2.6rem);
    margin-bottom: 0.5rem;
    color: #fdfcf9;
}

.contact-modal__intro p {
    color: rgba(249, 247, 244, 0.75);
    max-width: 560px;
}

.contact-modal__eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.4em;
    font-size: 0.8rem;
    color: rgba(249, 247, 244, 0.5);
}

.contact-modal__form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-modal__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.2rem;
}

.floating-input {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    font-size: 0.85rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(249, 247, 244, 0.7);
}

.floating-input input,
.floating-input select,
.floating-input textarea {
    width: 100%;
    padding: 0.85rem 1rem;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(7, 9, 13, 0.65);
    color: inherit;
    font: inherit;
    outline: none;
    transition: border-color 0.2s ease, transform 0.2s ease;
}

.floating-input select {
    appearance: none;
    background-image: linear-gradient(45deg, transparent 50%, rgba(249, 247, 244, 0.7) 50%), linear-gradient(135deg, rgba(249, 247, 244, 0.7) 50%, transparent 50%);
    background-position: calc(100% - 1.5rem) calc(50% - 0.2rem), calc(100% - 1rem) calc(50% - 0.2rem);
    background-size: 0.5rem 0.5rem;
    background-repeat: no-repeat;
}

.floating-input textarea {
    resize: vertical;
    min-height: 140px;
}

.floating-input input:focus,
.floating-input select:focus,
.floating-input textarea:focus {
    border-color: rgba(178, 110, 99, 0.8);
    transform: translateY(-2px);
}

.floating-input--textarea span {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.contact-modal__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem;
    justify-content: space-between;
}

.contact-modal__status {
    min-height: 1.5rem;
    font-size: 0.85rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(249, 247, 244, 0.6);
}

.contact-modal__status.is-success {
    color: rgba(168, 238, 174, 0.9);
}

.contact-modal__status.is-error {
    color: rgba(255, 158, 143, 0.9);
}

.contact-modal__status.is-loading {
    color: rgba(249, 247, 244, 0.8);
}

body.contact-modal-open {
    overflow: hidden;
}

@supports (height: 100dvh) {
    .contact-modal__panel {
        max-height: calc(100dvh - 2.5rem);
    }
}

@media (max-width: 720px) {
    .contact-modal {
        align-items: flex-start;
        padding: 1.25rem 1rem 1.75rem;
    }

    .contact-modal__panel {
        width: 100%;
        border-radius: 20px;
        padding: 1.25rem 1rem 1.5rem;
        max-height: none;
    }

    .contact-modal__body {
        gap: 1.5rem;
    }

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

    .contact-modal__intro h2 {
        font-size: 1.8rem;
    }

    .contact-modal__close span {
        display: none;
    }
}
