﻿

   :root {
    
    --clr-bg: #060914;
    --clr-surface: rgba(9, 14, 30, 0.84);
    --clr-surface-hover: rgba(94, 242, 255, 0.1);
    --clr-border: rgba(105, 131, 255, 0.26);
    
    --clr-text-main: #eef5ff;
    --clr-text-muted: #9eacc7;
    
    
    --clr-brand-primary: #5ef2ff;
    --clr-brand-accent: #f34cff;
    --clr-noir: #0a1123;
    --clr-psych: #9eff41;
    --clr-warning: #ffd34d;

    
    --orb-1: #5ef2ff;
    --orb-2: #f34cff;
    --orb-3: #9eff41;

    
    --font-heading: 'Space Grotesk', sans-serif;
    --font-body: 'Chakra Petch', sans-serif;

    
    --layout-max-width: 1280px;
    --spacing-section: 120px;
    
    
    --transition-smooth: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}


* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--clr-bg);
    color: var(--clr-text-main);
    font-family: var(--font-body);
    overflow-x: hidden;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    line-height: 1.2;
}

ul { list-style: none; }
a { text-decoration: none; color: inherit; }


.ambient-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    overflow: hidden;
    background-color: #050815;
}

.ambient-background::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(116, 136, 212, 0.12) 1px, transparent 1px),
        linear-gradient(90deg, rgba(116, 136, 212, 0.12) 1px, transparent 1px);
    background-size: 84px 84px;
    opacity: 0.12;
}

.ambient-background::after {
    content: '';
    position: absolute;
    inset: 18px;
    border: 1px solid rgba(126, 150, 255, 0.08);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.02), inset 0 0 100px rgba(2, 5, 14, 0.76);
    pointer-events: none;
}

.electric-overlay {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.electric-flash {
    position: absolute;
    height: 18px;
    opacity: 0;
    transform: translate(-50%, -50%) rotate(var(--flash-rotate, 0deg)) scale(0.72);
    animation: electricFlash var(--flash-duration, 0.9s) ease-out forwards;
    will-change: transform, opacity;
}

.electric-flash::before {
    content: '';
    position: absolute;
    inset: 0;
    background: #f6fdff;
    clip-path: polygon(0 54%, 9% 22%, 17% 42%, 28% 8%, 35% 30%, 47% 0, 55% 34%, 68% 12%, 76% 46%, 89% 20%, 100% 51%, 90% 82%, 79% 60%, 66% 95%, 57% 66%, 45% 100%, 37% 70%, 24% 93%, 16% 60%, 6% 83%);
    box-shadow: 0 0 10px #ffffff, 0 0 20px var(--flash-color, var(--clr-brand-primary)), 0 0 34px var(--flash-color, var(--clr-brand-primary));
}

.electric-flash::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: 2px solid var(--flash-color, var(--clr-brand-primary));
    box-shadow: 0 0 12px var(--flash-color, var(--clr-brand-primary));
    transform: translate(-50%, -50%);
    opacity: 0.7;
}

.glow-orb {
    position: absolute;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.78);
    background: currentColor;
    opacity: 0.94;
    box-shadow: 0 0 10px currentColor, 0 0 28px currentColor, 0 0 0 6px rgba(255, 255, 255, 0.03);
    animation: coilPulse 5.6s infinite ease-in-out;
}

.glow-orb::before,
.glow-orb::after {
    content: '';
    position: absolute;
    inset: 50% auto auto 50%;
    width: 90px;
    height: 2px;
    background: currentColor;
    transform-origin: left center;
    opacity: 0.42;
    box-shadow: 0 0 8px currentColor;
}

.glow-orb::before {
    transform: translate(-10%, -50%) rotate(18deg);
}

.glow-orb::after {
    transform: translate(-10%, -50%) rotate(-38deg);
}

.orb-1 { color: var(--orb-1); top: 16%; left: 10%; animation-delay: 0s; }
.orb-2 { color: var(--orb-2); top: 30%; right: 12%; animation-delay: -1.8s; }
.orb-3 { color: var(--orb-3); bottom: 20%; left: 62%; animation-delay: -3.3s; }

@keyframes coilPulse {
    0%, 100% { transform: scale(0.92); opacity: 0.82; }
    45% { transform: scale(1.08); opacity: 1; }
    70% { transform: scale(0.98); opacity: 0.9; }
}

@keyframes electricFlash {
    0% {
        opacity: 0;
        transform: translate(-50%, -50%) rotate(var(--flash-rotate, 0deg)) scale(0.72);
    }
    16% {
        opacity: 1;
    }
    100% {
        opacity: 0;
        transform: translate(-50%, -50%) rotate(var(--flash-rotate, 0deg)) scale(1.08);
    }
}


.reveal-text {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 1s ease, transform 1s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal-text.visible { opacity: 1; transform: translateY(0); }
.delay-1 { transition-delay: 0.2s; }
.delay-2 { transition-delay: 0.4s; }

.glass-panel {
    background: var(--clr-surface);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--clr-border);
    border-radius: 24px;
    box-shadow: 0 28px 60px rgba(0, 0, 0, 0.34), inset 0 0 0 1px rgba(255, 255, 255, 0.03);
    position: relative;
    overflow: hidden;
}

.glass-panel::after,
.home-weird-lab-panel::after,
.gallery-block::after,
.contact-form-wrap::after {
    content: '';
    position: absolute;
    top: 18px;
    right: 18px;
    width: 56px;
    height: 16px;
    border-top: 2px solid rgba(94, 242, 255, 0.58);
    border-right: 2px solid rgba(94, 242, 255, 0.58);
    opacity: 0.72;
    pointer-events: none;
}


.glass-nav {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 100;
    background: rgba(4, 8, 18, 0.82);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(126, 150, 255, 0.14);
    transition: var(--transition-smooth);
}

.glass-nav.scrolled {
    background: rgba(3, 7, 15, 0.96);
    box-shadow: 0 14px 32px rgba(0, 0, 0, 0.46);
}

.nav-container {
    max-width: var(--layout-max-width);
    margin: 0 auto;
    padding: 20px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
    position: relative;
}

.logo {
    display: inline-flex;
    align-items: center;
    font-size: 1.5rem;
    font-weight: 900;
    letter-spacing: 2px;
}
.logo span {
    color: var(--clr-brand-accent);
    font-weight: 300;
}

.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-links a {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--clr-text-muted);
    transition: var(--transition-smooth);
    position: relative;
}

.nav-links a:hover {
    color: var(--clr-brand-primary);
}
.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -4px;
    left: 0;
    background: var(--clr-brand-primary);
    box-shadow: 0 0 10px var(--clr-brand-primary);
    transition: width 0.3s ease;
}
.nav-links a:hover::after { width: 100%; }

.nav-toggle {
    display: none;
    width: 48px;
    height: 48px;
    padding: 0;
    border-radius: 14px;
    border: 1px solid rgba(126, 150, 255, 0.24);
    background: rgba(11, 17, 32, 0.88);
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
}

.nav-toggle span {
    display: block;
    width: 18px;
    height: 2px;
    border-radius: 999px;
    background: var(--clr-text-main);
    transition: transform 0.25s ease, opacity 0.25s ease;
}

.glass-nav.nav-open .nav-toggle span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.glass-nav.nav-open .nav-toggle span:nth-child(2) {
    opacity: 0;
}

.glass-nav.nav-open .nav-toggle span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}


button {
    cursor: pointer;
    font-family: var(--font-heading);
    border: none;
    outline: none;
}

.btn-primary,
.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 52px;
    text-align: center;
}

.btn-primary {
    background: rgba(10, 18, 36, 0.94);
    color: var(--clr-text-main);
    padding: 12px 28px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(94, 242, 255, 0.5);
    box-shadow: 0 14px 32px rgba(0, 0, 0, 0.32), inset 0 0 0 1px rgba(255, 255, 255, 0.04);
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.btn-primary::before {
    content: '';
    position: absolute;
    left: 14px;
    right: 14px;
    top: 8px;
    height: 1px;
    background: rgba(255, 255, 255, 0.24);
}

.btn-primary:hover {
    transform: translateY(-2px);
    border-color: rgba(243, 76, 255, 0.6);
    box-shadow: 0 0 18px rgba(94, 242, 255, 0.18), 0 0 32px rgba(243, 76, 255, 0.12), 0 14px 28px rgba(0, 0, 0, 0.42);
}

.btn-secondary {
    background: rgba(11, 17, 32, 0.76);
    color: var(--clr-text-main);
    border: 1px solid rgba(243, 76, 255, 0.38);
    padding: 12px 28px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.95rem;
    backdrop-filter: blur(10px);
    transition: var(--transition-smooth);
}
.btn-secondary:hover {
    background: rgba(18, 25, 43, 0.92);
    border-color: rgba(243, 76, 255, 0.62);
    box-shadow: 0 0 20px rgba(243, 76, 255, 0.12);
}


.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: var(--layout-max-width);
    margin: 0 auto;
    padding: 0 40px;
    padding-top: 80px;
}

.hero-content {
    flex: 1;
    max-width: 600px;
}

.hero-title {
    font-size: 4.5rem;
    font-weight: 900;
    margin-bottom: 24px;
    color: var(--clr-text-main);
    text-shadow: 0 0 18px rgba(94, 242, 255, 0.1);
    line-height: 1.1;
}

.hero-title span {
    color: var(--clr-brand-primary);
    text-shadow: 0 0 16px rgba(94, 242, 255, 0.22), 0 0 34px rgba(243, 76, 255, 0.1);
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--clr-text-muted);
    margin-bottom: 40px;
    max-width: 80%;
}

.hero-cta {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.hero-cta > * {
    min-width: 190px;
}

.hero-visual {
    flex: 1;
    display: flex;
    justify-content: flex-end;
    opacity: 0;
    transform: scale(0.9);
    transition: opacity 1.2s ease, transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}
.hero-visual.visible {
    opacity: 1;
    transform: scale(1);
}

.showcase-card {
    width: 380px;
    height: 550px;
    border-radius: 20px;
    background: rgba(8, 13, 27, 0.92);
    border: 1px solid rgba(126, 150, 255, 0.26);
    box-shadow: 0 30px 60px rgba(0,0,0,0.55), inset 0 0 0 1px rgba(255,255,255,0.04);
    position: relative;
    overflow: hidden;
    transform-style: preserve-3d;
}

.showcase-card::before {
    content: '';
    position: absolute;
    top: 16px;
    right: 16px;
    width: 62px;
    height: 18px;
    border-top: 2px solid rgba(243, 76, 255, 0.72);
    border-right: 2px solid rgba(243, 76, 255, 0.72);
    opacity: 0.84;
}

.card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: translateZ(30px); 
    transition: transform 0.3s;
}

.card-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 30px;
    background: rgba(4, 9, 18, 0.9);
    border-top: 1px solid rgba(94, 242, 255, 0.14);
    transform: translateZ(50px);
}
.card-overlay h3 { font-size: 1.5rem; margin-bottom: 5px; }
.card-overlay p { color: var(--clr-brand-accent); font-size: 0.9rem; font-weight: 600; }


.gallery-section {
    padding: var(--spacing-section) 40px;
    max-width: var(--layout-max-width);
    margin: 0 auto;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}
.section-header h2 {
    font-size: 3rem;
    margin-bottom: 10px;
}
.section-header p {
    color: var(--clr-text-muted);
    font-size: 1.1rem;
    max-width: 760px;
    margin: 0 auto;
}

.home-weird-lab-section {
    padding-top: 40px;
}

.home-weird-lab-panel {
    display: grid;
    grid-template-columns: minmax(280px, 1fr) minmax(300px, 1.4fr);
    gap: 30px;
    padding: 34px;
    border: 1px solid rgba(126, 150, 255, 0.18);
    border-radius: 24px;
    background: rgba(8, 13, 27, 0.88);
    box-shadow: 0 26px 48px rgba(0,0,0,0.32), inset 0 0 0 1px rgba(255,255,255,0.03);
    position: relative;
    overflow: hidden;
}

.home-weird-lab-copy h2 {
    font-size: 2.4rem;
    margin-bottom: 12px;
}

.home-weird-lab-copy p {
    color: var(--clr-text-muted);
    max-width: 560px;
    margin-bottom: 22px;
}

.home-weird-lab-cta {
    min-width: 220px;
}

.home-weird-lab-gifs {
    display: grid;
    grid-template-columns: repeat(3, minmax(120px, 1fr));
    gap: 16px;
    align-items: stretch;
}

.home-weird-lab-gif {
    margin: 0;
    border-radius: 18px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.13);
    background: rgba(4, 8, 18, 0.88);
    box-shadow: 0 20px 34px rgba(0,0,0,0.35);
}

.home-weird-lab-gif img {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 260px;
    object-fit: cover;
}

.catalog-status {
    color: var(--clr-text-muted);
    font-size: 1.02rem;
    padding: 18px 6px;
}

.hero-lab-visual {
    flex: 0.86;
}

.lab-story-card {
    width: 100%;
    min-height: 420px;
    height: auto;
    display: block;
    padding: 28px;
}

.lab-story-content {
    display: flex;
    height: 100%;
    flex-direction: column;
    justify-content: center;
    gap: 14px;
    text-align: left;
}

.lab-story-content h3 {
    font-size: 2.1rem;
    margin: 0;
    color: var(--clr-brand-accent);
}

.lab-story-content p {
    margin: 0;
    color: var(--clr-text-muted);
    font-size: 1.04rem;
    line-height: 1.65;
}

.lab-story-content .lab-story-tag {
    margin-top: 10px;
    color: var(--clr-text-main);
    font-family: var(--font-heading);
    font-size: 1.16rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.page-weirdmedicology .ambient-background {
    opacity: 0.62;
}

.lab-svg-background {
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    overflow: hidden;
}

.lab-svg {
    position: absolute;
    mix-blend-mode: screen;
    opacity: 0.2;
    filter: saturate(1.1) hue-rotate(-12deg) drop-shadow(0 0 24px rgba(33, 201, 255, 0.12));
    animation: labDrift 22s ease-in-out infinite alternate;
}

.lab-svg-a {
    width: min(37vw, 420px);
    left: -4vw;
    top: 13vh;
}

.lab-svg-b {
    width: min(35vw, 390px);
    right: -3vw;
    top: 54vh;
    animation-delay: -6s;
}

.lab-svg-c {
    width: min(50vw, 560px);
    left: 34vw;
    top: 3vh;
    opacity: 0.14;
    animation-delay: -12s;
}

@keyframes labDrift {
    0% {
        transform: translate3d(0, 0, 0) rotate(0deg);
    }
    100% {
        transform: translate3d(0, -14px, 0) rotate(1.2deg);
    }
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
}

.gallery-stack {
    display: flex;
    flex-direction: column;
    gap: 48px;
}

.gallery-block {
    padding: 32px;
    border: 1px solid rgba(126, 150, 255, 0.16);
    border-radius: 24px;
    background: rgba(9, 13, 27, 0.82);
    backdrop-filter: blur(14px);
    box-shadow: 0 26px 54px rgba(0, 0, 0, 0.28), inset 0 0 0 1px rgba(255, 255, 255, 0.02);
    position: relative;
    overflow: hidden;
}

.gallery-block-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 24px;
    margin-bottom: 28px;
    flex-wrap: wrap;
}

.gallery-kicker {
    display: inline-block;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 0.22em;
    font-size: 0.78rem;
    color: var(--clr-brand-accent);
    text-shadow: 0 0 10px rgba(243, 76, 255, 0.3);
}

.gallery-block-header h3 {
    font-size: 2rem;
    margin: 0;
}

.gallery-block-header p {
    max-width: 640px;
    flex: 1 1 420px;
    margin: 0;
    color: var(--clr-text-muted);
    line-height: 1.7;
}

.variant-switcher {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 28px;
}

.variant-btn {
    background: rgba(11, 17, 34, 0.9);
    color: var(--clr-text-main);
    border: 1px solid var(--clr-border);
    border-radius: 999px;
    padding: 10px 18px;
    font-size: 0.9rem;
    font-weight: 600;
    transition: var(--transition-smooth);
}

.variant-btn:hover,
.variant-btn.active {
    background: rgba(243, 76, 255, 0.14);
    border-color: rgba(243, 76, 255, 0.54);
    color: white;
    box-shadow: inset 0 0 0 1px rgba(243, 76, 255, 0.12), 0 0 18px rgba(243, 76, 255, 0.08);
}

.grid-card {
    margin: 0;
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.flip-card {
    perspective: 1600px;
    cursor: pointer;
}

.flip-card-shell {
    position: relative;
    width: 100%;
    aspect-ratio: 1000 / 1580;
}

.flip-card-inner {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    transition: transform 0.65s cubic-bezier(0.22, 1, 0.36, 1), filter var(--transition-smooth);
    filter: drop-shadow(0 18px 28px rgba(0, 0, 0, 0.28));
    will-change: transform;
}

.flip-card:hover .flip-card-inner,
.flip-card:focus-visible .flip-card-inner {
    transform: translateY(-10px) rotateX(3deg) rotateZ(-0.4deg);
    filter: drop-shadow(0 24px 40px rgba(0, 0, 0, 0.34));
}

.flip-card.is-flipped:hover .flip-card-inner,
.flip-card.is-flipped:focus-visible .flip-card-inner {
    transform: translateY(-10px) rotateX(3deg) rotateZ(0.4deg);
}

.flip-face {
    position: absolute;
    inset: 0;
    border-radius: 18px;
    overflow: hidden;
    background: rgba(6, 11, 22, 0.96);
    border: 1px solid rgba(255,255,255,0.08);
    box-shadow: inset 0 0 0 1px rgba(255,255,255,0.04);
    transition: opacity 0.35s ease, transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
    transform-origin: center center;
    will-change: transform, opacity;
}

.front-face {
    opacity: 1;
    transform: rotateY(0deg);
    z-index: 2;
}

.flip-face.back-face {
    opacity: 0;
    transform: rotateY(180deg);
    z-index: 1;
}

.flip-card.is-flipped .front-face {
    opacity: 0;
    transform: rotateY(-180deg);
    z-index: 1;
}

.flip-card.is-flipped .back-face {
    opacity: 1;
    transform: rotateY(0deg);
    z-index: 2;
}

.card-media {
    position: relative;
    width: 100%;
    height: 100%;
    isolation: isolate;
}

.card-media img,
.card-media video {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    transform: translateZ(0);
}

.kinetic-preview {
    position: relative;
    width: 100%;
    height: 100%;
}

.kinetic-preview img,
.kinetic-preview video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.kinetic-preview video {
    display: none;
}

.kinetic-preview.is-playing video {
    display: block;
}

.kinetic-preview.is-playing img {
    opacity: 0;
}

.motion-toggle {
    position: absolute;
    left: 50%;
    bottom: 20px;
    transform: translateX(-50%);
    z-index: 3;
    min-width: 124px;
    min-height: 46px;
    padding: 0 22px;
    border-radius: 999px;
    border: 1px solid rgba(94, 242, 255, 0.58);
    background: rgba(8, 15, 30, 0.96);
    color: #ffffff;
    font-size: 0.92rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    box-shadow: 0 16px 34px rgba(4, 8, 18, 0.4), inset 0 0 0 1px rgba(255,255,255,0.04);
}

.motion-toggle:hover {
    background: rgba(14, 22, 42, 0.98);
    border-color: rgba(243, 76, 255, 0.7);
    box-shadow: 0 0 20px rgba(94, 242, 255, 0.14), 0 0 28px rgba(243, 76, 255, 0.12), 0 16px 34px rgba(4, 8, 18, 0.4);
}

.card-label {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    padding: 0 6px;
}

.card-meta-copy {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.card-code {
    display: inline-block;
    color: var(--clr-text-main);
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    line-height: 1.25;
}

.card-variant {
    display: inline-block;
    color: var(--clr-text-muted);
    font-size: 0.84rem;
    text-align: right;
    max-width: 45%;
    line-height: 1.3;
    padding-top: 2px;
}

.card-flip-hint {
    position: absolute;
    top: 0;
    right: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 54px;
    height: 34px;
    padding: 0 12px;
    border: 1px solid rgba(255,255,255,0.18);
    border-radius: 999px;
    background: rgba(6, 10, 18, 0.72);
    color: var(--clr-text-main);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    box-shadow: 0 10px 20px rgba(0,0,0,0.18);
    z-index: 3;
}

.flip-card.is-flipped .card-flip-hint {
    opacity: 1;
}


.spotlight-section {
    padding: var(--spacing-section) 40px;
    max-width: var(--layout-max-width);
    margin: 0 auto;
}

.spotlight-container {
    display: flex;
    flex-direction: column;
    padding: 60px;
    gap: 40px;
}

.vibe-selector {
    display: flex;
    align-items: center;
    gap: 20px;
    border-bottom: 1px solid var(--clr-border);
    padding-bottom: 20px;
}
.vibe-selector h3 {
    font-size: 1.2rem;
    color: var(--clr-text-muted);
}
.vibe-buttons { display: flex; gap: 10px; }
.vibe-btn {
    background: transparent;
    border: 1px solid var(--clr-border);
    color: var(--clr-text-main);
    padding: 8px 24px;
    border-radius: 8px;
    font-size: 0.9rem;
    transition: var(--transition-smooth);
}
.vibe-btn:hover, .vibe-btn.active {
    background: var(--clr-text-main);
    color: var(--clr-bg);
    border-color: var(--clr-text-main);
}

.spotlight-content {
    display: flex;
    gap: 60px;
    align-items: center;
}

.spotlight-text { flex: 1; }
.dr-title {
    font-size: 4rem;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 2px;
}
.dr-desc {
    font-size: 1.1rem;
    color: var(--clr-text-muted);
    margin-bottom: 30px;
    line-height: 1.8;
}

.dr-stats {
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.dr-stats li {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.dr-stats span {
    font-family: var(--font-heading);
    font-size: 0.9rem;
    letter-spacing: 1px;
    text-transform: uppercase;
}
.stat-bar {
    width: 100%;
    height: 6px;
    background: rgba(255,255,255,0.1);
    border-radius: 3px;
    overflow: hidden;
}
.stat-bar .fill {
    height: 100%;
    background: var(--clr-brand-accent);
    border-radius: 3px;
    transition: width 1s ease-out, background 0.5s ease;
}

.spotlight-visual {
    flex: 1;
    display: flex;
    justify-content: center;
    perspective: 1000px;
}

.dr-dray-hologram {
    width: 350px;
    height: 450px;
    background: rgba(8, 13, 28, 0.84);
    border: 1px solid var(--clr-border);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    box-shadow: 0 0 50px rgba(0,0,0,0.5), inset 0 0 0 1px rgba(255,255,255,0.03);
    transition: box-shadow 0.5s, border-color 0.5s;
}

.lab-lead-card {
    position: absolute;
    inset: 24px 22px 0;
    width: calc(100% - 44px);
    height: calc(100% - 24px);
    object-fit: contain;
    object-position: center bottom;
    z-index: 1;
    filter: drop-shadow(0 18px 34px rgba(0, 0, 0, 0.46));
}

.holo-glitch {
    font-family: var(--font-heading);
    font-size: 3rem;
    font-weight: 900;
    color: rgba(255,255,255,0.1);
    letter-spacing: 5px;
    transform: rotate(-90deg);
    position: absolute;
    left: -80px;
    z-index: 3;
}

.holo-rings {
    width: 200px;
    height: 200px;
    border: 2px dashed rgba(255,255,255,0.2);
    border-radius: 50%;
    animation: spin 20s linear infinite;
    z-index: 2;
}

@keyframes spin { 100% { transform: rotate(360deg); } }

@media (max-width: 1200px) {
    .hero-section {
        gap: 48px;
    }
    .hero-title {
        font-size: 4rem;
    }
    .hero-subtitle {
        max-width: 100%;
    }
    .lab-story-card {
        min-height: 380px;
        padding: 24px;
    }
    .lab-story-content h3 {
        font-size: 1.95rem;
    }
}


.glass-footer {
    text-align: center;
    padding: 40px;
    border-top: 1px solid var(--clr-border);
    margin-top: 80px;
    color: var(--clr-text-muted);
    background: rgba(7, 11, 24, 0.7);
}


@media (max-width: 968px) {
    .reveal-text,
    .reveal-visual {
        opacity: 1;
        transform: none;
        transition: none;
    }
    .nav-container {
        padding: 18px 32px;
    }
    .nav-links {
        gap: 1rem;
    }
    .logo {
        font-size: 1.25rem;
    }
    .hero-section {
        flex-direction: column;
        text-align: center;
        padding: 136px 32px 28px;
        gap: 52px;
    }
    .hero-content {
        max-width: 100%;
    }
    .hero-title {
        font-size: 3.5rem;
    }
    .hero-subtitle {
        max-width: 100%;
        margin-inline: auto;
    }
    .hero-cta { justify-content: center; }
    .hero-visual { justify-content: center; margin-bottom: 24px; }
    .gallery-section,
    .spotlight-section {
        padding: 88px 32px;
    }
    .lab-story-card {
        min-height: 360px;
        padding: 24px;
    }
    .lab-story-content h3 {
        font-size: 1.9rem;
    }
    .lab-svg-a {
        width: min(48vw, 420px);
    }
    .lab-svg-b {
        width: min(46vw, 400px);
    }
    .lab-svg-c {
        width: min(66vw, 560px);
        left: 24vw;
    }
    .home-weird-lab-panel {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    .home-weird-lab-copy h2 {
        font-size: 2.1rem;
    }
    .home-weird-lab-gifs {
        grid-template-columns: repeat(2, minmax(140px, 1fr));
    }
    .gallery-block {
        padding: 24px;
    }
    .gallery-block-header h3 {
        font-size: 1.7rem;
    }
    .spotlight-container {
        padding: 42px 32px;
    }
    .spotlight-content {
        flex-direction: column;
        gap: 36px;
    }
    .vibe-selector {
        flex-wrap: wrap;
        justify-content: center;
    }
    .dr-title { font-size: 3rem; }
    .dr-dray-hologram {
        width: min(100%, 340px);
        height: 400px;
    }
    .holo-glitch {
        left: auto;
        top: 22px;
        transform: none;
        font-size: 1.75rem;
        letter-spacing: 3px;
    }
}

@media (max-width: 760px) {
    .nav-container {
        padding: 16px 20px;
    }
    .nav-toggle {
        display: inline-flex;
    }
    .nav-links {
        display: none;
        position: absolute;
        top: calc(100% + 10px);
        left: 20px;
        right: 20px;
        flex-direction: column;
        gap: 0;
        padding: 10px;
        border-radius: 20px;
        background: rgba(4, 13, 20, 0.95);
        border: 1px solid rgba(255,255,255,0.08);
        box-shadow: 0 18px 40px rgba(0,0,0,0.35);
    }
    .glass-nav.nav-open .nav-links {
        display: flex;
    }
    .nav-links li + li {
        border-top: 1px solid rgba(255,255,255,0.06);
    }
    .nav-links a {
        display: block;
        padding: 14px 12px;
    }
    .hero-section {
        padding: 128px 20px 24px;
        gap: 40px;
    }
    .hero-title { font-size: 3rem; }
    .hero-subtitle {
        font-size: 1.05rem;
    }
    .hero-cta {
        flex-direction: column;
    }
    .hero-cta > * {
        width: 100%;
        min-width: 0;
    }
    .showcase-card {
        width: 100%;
        max-width: 340px;
        height: 470px;
    }
    .lab-story-card {
        max-width: 100%;
        min-height: 330px;
        height: auto;
        padding: 20px 18px;
    }
    .lab-story-content {
        text-align: center;
    }
    .lab-story-content h3 {
        font-size: 1.6rem;
    }
    .lab-story-content p {
        font-size: 0.95rem;
    }
    .lab-story-content .lab-story-tag {
        font-size: 0.98rem;
        letter-spacing: 0.02em;
    }
    .lab-svg {
        opacity: 0.15;
    }
    .lab-svg-a {
        width: min(82vw, 420px);
        left: -24vw;
        top: 18vh;
    }
    .lab-svg-b {
        width: min(84vw, 420px);
        right: -34vw;
        top: 60vh;
    }
    .lab-svg-c {
        width: min(95vw, 560px);
        left: 6vw;
        top: 6vh;
    }
    .gallery-section,
    .spotlight-section {
        padding: 72px 20px;
    }
    .home-weird-lab-section {
        padding-top: 24px;
    }
    .home-weird-lab-panel {
        padding: 22px;
    }
    .home-weird-lab-copy h2 {
        font-size: 1.95rem;
    }
    .home-weird-lab-copy p {
        margin-bottom: 16px;
    }
    .home-weird-lab-cta {
        width: 100%;
        min-width: 0;
    }
    .home-weird-lab-gifs {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    .home-weird-lab-gif img {
        min-height: 220px;
    }
    .section-header {
        margin-bottom: 40px;
    }
    .section-header h2 {
        font-size: 2.35rem;
    }
    .gallery-block {
        padding: 20px;
    }
    .gallery-block-header {
        margin-bottom: 20px;
    }
    .variant-switcher {
        gap: 10px;
    }
    .variant-btn {
        flex: 1 1 140px;
    }
    .card-grid { grid-template-columns: 1fr; gap: 20px; }
    .card-label {
        flex-direction: column;
        align-items: flex-start;
    }
    .card-variant {
        max-width: 100%;
        text-align: left;
    }
    .card-flip-hint {
        top: 0;
        right: 14px;
    }
    .motion-toggle {
        min-width: 112px;
        bottom: 14px;
    }
    .spotlight-container { padding: 30px 20px; }
    .vibe-selector h3 {
        width: 100%;
        text-align: center;
    }
    .vibe-buttons {
        width: 100%;
        justify-content: center;
        flex-wrap: wrap;
    }
    .vibe-btn {
        flex: 1 1 120px;
    }
    .dr-title { font-size: 2.4rem; }
    .dr-desc { font-size: 1rem; }
    .dr-dray-hologram { height: 300px; }
    .holo-glitch {
        top: 18px;
        font-size: 1.35rem;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2.45rem;
    }
    .showcase-card {
        height: 430px;
    }
    .lab-story-card {
        height: auto;
        min-height: 320px;
    }
    .section-header h2,
    .gallery-block-header h3 {
        font-size: 2rem;
    }
    .logo {
        font-size: 1.05rem;
        letter-spacing: 1px;
    }
}


.contact-lab-shell {
    max-width: 1120px;
    margin: 0 auto;
    padding: 42px;
    display: grid;
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
    gap: 32px;
    position: relative;
    overflow: hidden;
}

.contact-lab-shell::before {
    content: '';
    position: absolute;
    top: 18px;
    right: 18px;
    width: 122px;
    height: 18px;
    border-top: 2px solid rgba(243, 76, 255, 0.74);
    border-right: 2px solid rgba(243, 76, 255, 0.74);
    pointer-events: none;
    opacity: 0.84;
}

.contact-lab-copy,
.contact-form-wrap {
    position: relative;
    z-index: 1;
}

.contact-lab-copy h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    margin: 14px 0 18px;
}

.contact-lab-copy p {
    color: var(--clr-text-muted);
    max-width: 52ch;
}

.contact-lab-copy p a,
.contact-direct-line a {
    color: var(--clr-brand-accent);
}

.contact-direct-line {
    margin-top: 28px;
    padding: 16px 18px;
    border-radius: 18px;
    border: 1px solid rgba(126, 150, 255, 0.16);
    background: rgba(255, 255, 255, 0.02);
    display: inline-flex;
    flex-direction: column;
    gap: 4px;
}

.contact-direct-label {
    font-family: var(--font-heading);
    font-size: 0.78rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--clr-brand-primary);
}

.contact-form-wrap {
    padding: 24px;
    border-radius: 26px;
    border: 1px solid rgba(126, 150, 255, 0.14);
    background: rgba(8, 13, 27, 0.88);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

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

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

.form-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-field span {
    font-family: var(--font-heading);
    font-size: 0.85rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--clr-text-main);
}

.contact-input {
    width: 100%;
    border-radius: 16px;
    border: 1px solid rgba(73, 179, 201, 0.3);
    background: rgba(255, 255, 255, 0.04);
    color: var(--clr-text-main);
    padding: 14px 16px;
    font: inherit;
    transition: border-color 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.contact-input:focus {
    outline: none;
    border-color: rgba(33, 201, 255, 0.85);
    box-shadow: 0 0 0 3px rgba(33, 201, 255, 0.16);
    background: rgba(255, 255, 255, 0.06);
}

.contact-input::placeholder {
    color: rgba(231, 248, 255, 0.4);
}

.contact-textarea {
    min-height: 180px;
    resize: vertical;
}

.contact-submit {
    align-self: flex-start;
    min-width: 210px;
}

.contact-feedback {
    display: none;
    margin-bottom: 18px;
    padding: 14px 16px;
    border-radius: 16px;
    border: 1px solid transparent;
    font-family: var(--font-heading);
    font-size: 0.92rem;
}

.contact-feedback:target {
    display: block;
}

.contact-feedback-success {
    color: #dffcf4;
    background: rgba(0, 212, 164, 0.16);
    border-color: rgba(0, 212, 164, 0.34);
}

.contact-feedback-error {
    color: #ffe6ee;
    background: rgba(255, 95, 143, 0.14);
    border-color: rgba(255, 95, 143, 0.34);
}

.contact-honeypot {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

@media (max-width: 968px) {
    .contact-lab-shell {
        grid-template-columns: 1fr;
        padding: 32px 24px;
    }

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

    .contact-form-wrap {
        padding: 20px;
    }
}

@media (max-width: 640px) {
    .contact-lab-shell {
        padding: 26px 18px;
        border-radius: 22px;
    }

    .contact-submit {
        width: 100%;
    }
}

