/* =========================================================================
   CRISTIANO VAZ · LIGHT DESIGNER — Design Tokens & Components
   Base: Canvas Design System (converted dark → light, brutalist parametric)
   ========================================================================= */

:root {
    /* Surfaces — DARK THEME (stage / LED / neon) */
    --bg: #07070a;              /* deepest body bg */
    --bg-soft: #0d0d12;
    --surface: #0f0f14;         /* card surface */
    --surface-2: #16161e;       /* elevated hover surface */
    --surface-3: #0a0a0f;       /* deeper well */
    --surface-inverse: #050508; /* image well / deepest */

    /* Stage-light colors (moving heads) */
    --stage-orange:  rgba(249, 115, 22, 0.32);
    --stage-cyan:    rgba(6, 182, 212, 0.26);
    --stage-magenta: rgba(217, 70, 239, 0.22);
    --stage-green:   rgba(34, 197, 94, 0.20);
    --stage-blue:    rgba(59, 130, 246, 0.20);

    /* Ink / Text — light on dark */
    --ink: #FFFFFF;
    --ink-2: #E4E4E7;     /* zinc-200 */
    --ink-3: #A1A1AA;     /* zinc-400 */
    --ink-mute: #71717A;  /* zinc-500 */
    --ink-faint: #52525B; /* zinc-600 */
    --ink-ghost: #27272A; /* zinc-800 — faintest visible */

    /* Borders */
    --border: rgba(255, 255, 255, 0.10);
    --border-soft: rgba(255, 255, 255, 0.05);
    --border-strong: rgba(255, 255, 255, 0.22);

    /* Accent (lighting orange — bright for dark) */
    --accent: #F97316;
    --accent-500: #FB923C;
    --accent-soft: rgba(249, 115, 22, 0.14);
    --accent-glow: rgba(249, 115, 22, 0.35);

    /* Shadows (deeper on dark) */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.5);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.55);
    --shadow-lg: 0 16px 36px -10px rgba(0, 0, 0, 0.65);
    --shadow-xl: 0 25px 50px -12px rgba(0, 0, 0, 0.75);
    --shadow-2xl: 0 35px 60px -15px rgba(0, 0, 0, 0.85);
    --shadow-accent: 0 0 32px -2px rgba(249, 115, 22, 0.55);

    /* Typography */
    --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
    --font-display: 'Space Grotesk', 'Inter', sans-serif;
    --font-mono: 'Geist Mono', 'JetBrains Mono', ui-monospace, monospace;
}

/* =========================================================================
   BASE
   ========================================================================= */
* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    background-color: var(--bg);
    color: var(--ink-2);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    overflow-x: hidden;
}

/* =========================================================================
   STAGE LIGHTS (fixed moving-head glows behind content)
   ========================================================================= */
.stage-lights {
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    overflow: hidden;
    background: radial-gradient(ellipse at 50% 120%, #12121a 0%, #07070a 60%);
}

.stage-lights::before {
    /* soft haze / atmosphere */
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 80% 40% at 50% 0%, rgba(255, 255, 255, 0.04), transparent 70%),
        radial-gradient(ellipse 60% 30% at 50% 100%, rgba(255, 255, 255, 0.03), transparent 70%);
    pointer-events: none;
}

.stage-beam {
    position: absolute;
    border-radius: 50%;
    mix-blend-mode: screen;
    will-change: transform, opacity;
}

.stage-beam--orange {
    top: -12%;
    right: -8%;
    width: 55vmax;
    height: 55vmax;
    background: radial-gradient(circle, var(--stage-orange) 0%, transparent 60%);
    filter: blur(90px);
    animation: drift-a 22s ease-in-out infinite alternate;
}

.stage-beam--cyan {
    bottom: -10%;
    left: -10%;
    width: 50vmax;
    height: 50vmax;
    background: radial-gradient(circle, var(--stage-cyan) 0%, transparent 62%);
    filter: blur(100px);
    animation: drift-b 26s ease-in-out infinite alternate;
}

.stage-beam--magenta {
    top: 25%;
    left: 35%;
    width: 42vmax;
    height: 42vmax;
    background: radial-gradient(circle, var(--stage-magenta) 0%, transparent 62%);
    filter: blur(110px);
    animation: drift-c 30s ease-in-out infinite alternate;
}

.stage-beam--green {
    bottom: 12%;
    right: 18%;
    width: 38vmax;
    height: 38vmax;
    background: radial-gradient(circle, var(--stage-green) 0%, transparent 62%);
    filter: blur(100px);
    animation: drift-d 34s ease-in-out infinite alternate;
}

.stage-beam--blue {
    top: 55%;
    left: -8%;
    width: 32vmax;
    height: 32vmax;
    background: radial-gradient(circle, var(--stage-blue) 0%, transparent 65%);
    filter: blur(120px);
    animation: drift-e 38s ease-in-out infinite alternate;
}

/* Conic sweep — lighthouse / moving head rotation */
.stage-sweep {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 160vmax;
    height: 160vmax;
    transform: translate(-50%, -50%);
    background: conic-gradient(
        from 0deg at 50% 50%,
        transparent 0deg,
        rgba(249, 115, 22, 0.045) 18deg,
        transparent 40deg,
        transparent 140deg,
        rgba(6, 182, 212, 0.04) 160deg,
        transparent 185deg,
        transparent 260deg,
        rgba(217, 70, 239, 0.035) 280deg,
        transparent 310deg
    );
    animation: sweep-rotate 50s linear infinite;
    mix-blend-mode: screen;
    filter: blur(30px);
    opacity: 0.9;
}

/* Fine noise/grain (optional — imparts texture to the dark bg) */
.stage-grain {
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='1.2' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%25' height='100%25' filter='url(%23n)' opacity='0.32'/></svg>");
    opacity: 0.12;
    mix-blend-mode: overlay;
    pointer-events: none;
}

@keyframes drift-a {
    0%   { transform: translate3d(0, 0, 0) scale(1);      opacity: 0.85; }
    50%  { transform: translate3d(-12vw, 18vh, 0) scale(1.12); opacity: 1; }
    100% { transform: translate3d(6vw, -8vh, 0) scale(0.95);   opacity: 0.8; }
}

@keyframes drift-b {
    0%   { transform: translate3d(0, 0, 0) scale(1);       opacity: 0.75; }
    50%  { transform: translate3d(14vw, -14vh, 0) scale(1.15); opacity: 1; }
    100% { transform: translate3d(-6vw, 8vh, 0) scale(0.9);    opacity: 0.85; }
}

@keyframes drift-c {
    0%   { transform: translate3d(0, 0, 0) scale(1);        opacity: 0.65; }
    50%  { transform: translate3d(-16vw, -10vh, 0) scale(1.2); opacity: 0.95; }
    100% { transform: translate3d(10vw, 14vh, 0) scale(0.88);  opacity: 0.7; }
}

@keyframes drift-d {
    0%   { transform: translate3d(0, 0, 0) scale(1);       opacity: 0.7; }
    50%  { transform: translate3d(10vw, -18vh, 0) scale(1.12); opacity: 0.95; }
    100% { transform: translate3d(-10vw, 6vh, 0) scale(0.96);  opacity: 0.8; }
}

@keyframes drift-e {
    0%   { transform: translate3d(0, 0, 0) scale(1);       opacity: 0.7; }
    50%  { transform: translate3d(18vw, 10vh, 0) scale(1.1);   opacity: 0.9; }
    100% { transform: translate3d(-4vw, -14vh, 0) scale(0.95); opacity: 0.75; }
}

@keyframes sweep-rotate {
    from { transform: translate(-50%, -50%) rotate(0deg); }
    to   { transform: translate(-50%, -50%) rotate(360deg); }
}

/* Reduce motion respectfully */
@media (prefers-reduced-motion: reduce) {
    .stage-beam,
    .stage-sweep { animation: none !important; }
}

::selection {
    background-color: var(--accent-500);
    color: #000;
}

/* Utility to hide scrollbar on horizontal scroll */
.scrollbar-hide {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.scrollbar-hide::-webkit-scrollbar {
    display: none;
}

/* =========================================================================
   TYPOGRAPHY
   ========================================================================= */
.font-mono {
    font-family: var(--font-mono);
}

.font-display {
    font-family: var(--font-display);
}

.display-h1 {
    font-size: clamp(3rem, 9vw, 7.5rem);
    line-height: 0.9;
    font-weight: 500;
    letter-spacing: -0.04em;
    text-transform: uppercase;
    color: var(--ink);
}

.display-h2 {
    font-size: clamp(2.25rem, 6vw, 4.5rem);
    line-height: 0.95;
    font-weight: 400;
    letter-spacing: -0.02em;
    color: var(--ink);
}

.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    line-height: 1;
    font-weight: 400;
    letter-spacing: -0.02em;
    color: var(--ink);
}

.label-mono {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: var(--ink-mute);
}

.label-mono-tiny {
    font-family: var(--font-mono);
    font-size: 0.625rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.22em;
    color: var(--ink-mute);
}

/* Highlight inside body text */
.ink-strong {
    color: var(--ink);
    font-weight: 500;
}

/* =========================================================================
   GRID BACKGROUND (radial-masked 60px grid)
   ========================================================================= */
.grid-bg {
    background-image:
        linear-gradient(to right, rgba(0, 0, 0, 0.045) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(0, 0, 0, 0.045) 1px, transparent 1px);
    background-size: 60px 60px;
    -webkit-mask-image: radial-gradient(ellipse at center, black 40%, transparent 70%);
    mask-image: radial-gradient(ellipse at center, black 40%, transparent 70%);
}

.dot-bg {
    background-image: url("data:image/svg+xml;utf8,<svg width='20' height='20' xmlns='http://www.w3.org/2000/svg'><circle cx='1' cy='1' r='1' fill='rgba(0,0,0,0.08)'/></svg>");
    background-size: 20px 20px;
}

/* =========================================================================
   BEAM BORDERS (traveling light animation)
   ========================================================================= */
.beam-border-v {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    width: 1px;
    background: var(--border);
    overflow: hidden;
    z-index: 10;
}

.beam-border-v::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, transparent, var(--accent-500), transparent);
    transform: translateY(-100%);
    animation: beam-drop 5s cubic-bezier(0.4, 0, 0.2, 1) infinite;
    opacity: 0.9;
}

.beam-border-h {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--border);
    overflow: hidden;
    z-index: 10;
}

.beam-border-h::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, transparent, var(--accent-500), transparent);
    transform: translateX(-100%);
    animation: beam-slide 7s cubic-bezier(0.4, 0, 0.2, 1) infinite;
    animation-delay: 2.5s;
    opacity: 0.9;
}

@keyframes beam-drop {
    0%   { transform: translateY(-100%); opacity: 0; }
    10%  { opacity: 1; }
    90%  { opacity: 1; }
    100% { transform: translateY(100%); opacity: 0; }
}

@keyframes beam-slide {
    0%   { transform: translateX(-100%); opacity: 0; }
    10%  { opacity: 1; }
    90%  { opacity: 1; }
    100% { transform: translateX(100%); opacity: 0; }
}

/* =========================================================================
   SCROLL-TRIGGERED ENTRANCE
   ========================================================================= */
@keyframes fadeSlideIn {
    0% {
        opacity: 0;
        transform: translateY(30px);
        filter: blur(8px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
        filter: blur(0);
    }
}

.animate-on-scroll {
    animation-play-state: paused !important;
}

.animate-on-scroll.animate {
    animation-play-state: running !important;
}

.fade-in     { animation: fadeSlideIn 0.8s ease-out 0s both; }
.fade-in-1   { animation: fadeSlideIn 0.8s ease-out 0.1s both; }
.fade-in-2   { animation: fadeSlideIn 0.8s ease-out 0.2s both; }
.fade-in-3   { animation: fadeSlideIn 0.8s ease-out 0.3s both; }
.fade-in-4   { animation: fadeSlideIn 0.8s ease-out 0.4s both; }
.fade-in-5   { animation: fadeSlideIn 0.8s ease-out 0.5s both; }
.fade-in-6   { animation: fadeSlideIn 0.8s ease-out 0.6s both; }
.fade-in-8   { animation: fadeSlideIn 0.8s ease-out 0.8s both; }
.fade-in-10  { animation: fadeSlideIn 0.8s ease-out 1s both; }

/* =========================================================================
   FLOATING CARDS (hero lifting tiles)
   ========================================================================= */
.floating-card {
    transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                box-shadow 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                border-color 0.3s ease;
    will-change: transform;
    background: var(--surface-inverse);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    position: relative;
}

.floating-card:hover {
    transform: scale(1.08) translateY(-10px);
    z-index: 50;
    box-shadow: var(--shadow-2xl);
    border-color: var(--accent);
}

.floating-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    filter: saturate(0.85) contrast(1.02);
    transition: filter 0.5s ease, transform 0.5s ease;
}

.floating-card:hover img {
    filter: saturate(1.1) contrast(1.05);
}

/* =========================================================================
   BUTTONS
   ========================================================================= */

/* Primary — bordered with corner accents */
.btn-primary {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 1.25rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(15, 15, 20, 0.5);
    color: #fff;
    font-size: 0.875rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    text-decoration: none;
    transition: border-color 0.3s ease, background-color 0.3s ease, color 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.btn-primary:hover {
    border-color: var(--accent);
    background: var(--accent);
    color: #fff;
    box-shadow: 0 0 32px -4px rgba(249, 115, 22, 0.55);
}

.btn-primary .corner {
    position: absolute;
    width: 8px;
    height: 8px;
    opacity: 0;
    transition: all 0.3s ease;
    pointer-events: none;
}

.btn-primary .corner-tl {
    top: 0;
    left: 0;
    border-top: 1px solid var(--accent);
    border-left: 1px solid var(--accent);
    transform: translate(-4px, -4px);
}

.btn-primary .corner-br {
    bottom: 0;
    right: 0;
    border-bottom: 1px solid var(--accent);
    border-right: 1px solid var(--accent);
    transform: translate(4px, 4px);
}

.btn-primary:hover .corner {
    opacity: 1;
    transform: translate(0, 0);
}

.btn-primary .btn-label {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    position: relative;
    z-index: 1;
}

/* Beam button — rotating conic gradient border */
.btn-beam {
    position: relative;
    isolation: isolate;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    overflow: hidden;
    padding: 0.625rem 1.25rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--ink);
    background: transparent;
    text-decoration: none;
    transition: box-shadow 0.3s ease, color 0.3s ease;
    --spread: 90deg;
    --shimmer-color: var(--accent-500);
    --speed: 3s;
    --cut: 1px;
}

.btn-beam:hover {
    box-shadow: var(--shadow-accent);
}

.btn-beam__spinner {
    position: absolute;
    inset: 0;
    overflow: hidden;
    z-index: -20;
}

.btn-beam__spinner-inner {
    position: absolute;
    inset: -100%;
    width: 300%;
    height: 300%;
    animation: spin var(--speed) linear infinite;
}

.btn-beam__spinner-inner::before {
    content: '';
    position: absolute;
    inset: 0;
    background: conic-gradient(
        from calc(270deg - (var(--spread) * 0.5)),
        transparent 0,
        var(--shimmer-color) var(--spread),
        transparent var(--spread)
    );
}

.btn-beam__bg {
    position: absolute;
    inset: var(--cut);
    z-index: -10;
    background: var(--surface);
    transition: background-color 0.3s ease;
}

.btn-beam:hover .btn-beam__bg {
    background: var(--surface-2);
}

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

/* Icon circle (white→accent) */
.btn-icon-circle {
    width: 2rem;
    height: 2rem;
    border-radius: 9999px;
    background: var(--ink);
    color: var(--surface);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: none;
    cursor: pointer;
    flex-shrink: 0;
    transition: background-color 0.3s ease;
}

.btn-icon-circle:hover {
    background: var(--accent);
}

/* Square icon button (carousel arrows) */
.btn-square {
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--ink-mute);
    background: var(--surface);
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-square:hover {
    color: var(--ink);
    background: var(--surface-2);
}

.btn-square + .btn-square {
    border-left: 1px solid var(--border);
}

/* =========================================================================
   INPUTS
   ========================================================================= */

/* Pill input (newsletter) */
.input-pill {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.5rem 0.5rem 0.5rem 1.5rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 9999px;
    box-shadow: var(--shadow-md);
    width: 100%;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.input-pill:hover,
.input-pill:focus-within {
    border-color: var(--accent);
    box-shadow: var(--shadow-lg);
}

.input-pill input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    font-family: var(--font-mono);
    font-size: 0.875rem;
    color: var(--ink);
}

.input-pill input::placeholder {
    color: var(--ink-faint);
}

/* Brutalist bordered input (form) */
.input-field {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.input-field label {
    font-family: var(--font-mono);
    font-size: 0.625rem;
    text-transform: uppercase;
    letter-spacing: 0.22em;
    color: var(--ink-mute);
}

.input-field input,
.input-field textarea {
    width: 100%;
    padding: 0.875rem 1rem;
    background: rgba(15, 15, 20, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: var(--ink);
    font-family: var(--font-sans);
    font-size: 0.95rem;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
    border-radius: 0;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

.input-field input::placeholder,
.input-field textarea::placeholder {
    color: rgba(255, 255, 255, 0.32);
}

.input-field input:focus,
.input-field textarea:focus {
    border-color: var(--accent);
    background: rgba(15, 15, 20, 0.8);
    box-shadow: 0 0 0 3px var(--accent-soft),
                0 0 24px -4px rgba(249, 115, 22, 0.45);
}

.input-field textarea {
    resize: vertical;
    min-height: 140px;
    font-family: var(--font-sans);
}

/* =========================================================================
   CARDS
   ========================================================================= */

/* System card */
.sys-card {
    background: var(--surface);
    border: 1px solid var(--border-soft);
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.sys-card:hover {
    border-color: var(--border-strong);
    box-shadow: var(--shadow-md);
}

.module-card {
    background: var(--surface);
    border: 1px solid var(--border-soft);
    padding: 0;
    display: flex;
    flex-direction: column;
    transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
    position: relative;
    overflow: hidden;
}

.module-cover {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 10;
    background: var(--surface-inverse);
    overflow: hidden;
}

.module-cover img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94), filter 0.5s ease;
}

.module-card:hover .module-cover img {
    transform: scale(1.05);
    filter: brightness(1.06);
}

.module-cover::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, transparent 40%, rgba(0, 0, 0, 0.65) 100%);
    pointer-events: none;
}

.module-cover__badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    z-index: 2;
    font-family: var(--font-mono);
    font-size: 0.625rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: #fff;
    background: rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    padding: 0.3rem 0.7rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.module-cover__number {
    position: absolute;
    right: 1rem;
    bottom: 1rem;
    z-index: 2;
    font-family: var(--font-mono);
    font-size: 2.5rem;
    font-weight: 300;
    color: #fff;
    letter-spacing: -0.02em;
    line-height: 1;
    opacity: 0.9;
    transition: color 0.3s ease;
}

.module-card:hover .module-cover__number {
    color: var(--accent-500);
}

.module-body {
    padding: 1.75rem 2rem 2rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.module-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: width 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.module-card:hover {
    border-color: var(--border-strong);
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}

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

.module-number {
    font-family: var(--font-mono);
    font-size: 3rem;
    font-weight: 300;
    line-height: 1;
    color: var(--ink-ghost);
    letter-spacing: -0.02em;
    transition: color 0.3s ease;
}

.module-card:hover .module-number {
    color: var(--accent);
}

.module-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.module-list li {
    position: relative;
    padding-left: 1.25rem;
    color: var(--ink-3);
    font-size: 0.9rem;
    line-height: 1.55;
}

.module-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.65rem;
    width: 6px;
    height: 1px;
    background: var(--accent);
}

/* Gallery carousel card */
.gallery-card {
    min-width: 320px;
    flex-shrink: 0;
}

@media (min-width: 768px) {
    .gallery-card { min-width: 380px; }
}

.gallery-card .gallery-frame {
    aspect-ratio: 4 / 3;
    background: var(--surface-2);
    border: 1px solid var(--border);
    position: relative;
    overflow: hidden;
    margin-bottom: 1rem;
    transition: border-color 0.3s ease;
}

.gallery-card:hover .gallery-frame {
    border-color: var(--accent);
}

.gallery-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                filter 0.5s ease;
    filter: saturate(0.9);
}

.gallery-card:hover img {
    transform: scale(1.06);
    filter: saturate(1.1);
}

.gallery-card .fig-label {
    position: absolute;
    bottom: 0.75rem;
    left: 0.75rem;
    background: rgba(10, 10, 15, 0.72);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    padding: 0.3rem 0.75rem;
    border: 1px solid rgba(255, 255, 255, 0.14);
    color: #fff;
}

.tag {
    display: inline-block;
    padding: 0.3rem 0.65rem;
    font-family: var(--font-mono);
    font-size: 0.625rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: rgba(255, 255, 255, 0.8);
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.placeholder-tile {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background:
        linear-gradient(135deg, #16161e 0%, #0a0a0f 100%);
    position: relative;
}

.placeholder-tile::after {
    content: '';
    position: absolute;
    inset: 16px;
    border: 1px dashed rgba(255, 255, 255, 0.1);
}

.placeholder-tile span {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.35);
    text-transform: uppercase;
    letter-spacing: 0.2em;
    position: relative;
    z-index: 1;
}

/* Callout card — "?" */
.callout-card {
    width: 16rem;
    background: var(--surface);
    border: 1px solid var(--border);
    padding: 1rem;
    box-shadow: var(--shadow-xl);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.callout-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-2xl);
}

.callout-badge {
    width: 40px;
    height: 40px;
    background: var(--accent);
    color: #fff;
    font-weight: 700;
    font-size: 1.125rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

/* Metric */
.metric {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    cursor: default;
}

.metric__value {
    font-size: clamp(2.5rem, 5vw, 4rem);
    line-height: 1;
    font-weight: 300;
    letter-spacing: -0.04em;
    color: var(--ink);
    transition: color 0.3s ease;
}

.metric:hover .metric__value {
    color: var(--accent);
}

.metric__label {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: var(--ink-mute);
    transition: color 0.3s ease;
    border-left: 2px solid transparent;
    padding-left: 0.5rem;
    transition: border-color 0.3s ease, color 0.3s ease;
}

.metric:hover .metric__label {
    color: var(--ink);
    border-left-color: var(--accent);
}

/* =========================================================================
   NAVIGATION
   ========================================================================= */
.site-nav {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(8, 7, 12, 0.65);
    backdrop-filter: blur(16px) saturate(1.2);
    -webkit-backdrop-filter: blur(16px) saturate(1.2);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    color: #fff;
}

.site-nav .nav-link {
    color: rgba(255, 255, 255, 0.58);
}
.site-nav .nav-link:hover {
    color: #fff;
}
.site-nav .nav-link.active {
    color: var(--accent-500);
}

/* Slightly taller nav to host bigger logo */
.site-nav .container-xl {
    padding-top: 0.9rem;
    padding-bottom: 0.9rem;
}

/* Logo image */
.logo-img {
    height: 72px;
    width: auto;
    transition: filter 0.3s ease, transform 0.3s ease;
    filter: drop-shadow(0 0 36px rgba(249, 115, 22, 0.45));
}

.logo-img:hover {
    transform: scale(1.03);
    filter: drop-shadow(0 0 48px rgba(249, 115, 22, 0.65));
}

@media (max-width: 767px) {
    .logo-img { height: 52px; }
}

/* On dark stage — logo is white PNG, stays white */
.logo-img-light,
.logo-img-dark-panel {
    filter: drop-shadow(0 0 28px rgba(249, 115, 22, 0.4));
}

/* When placed on a light panel (inside lit-panel), invert to black */
.lit-panel .logo-img,
.logo-img-on-panel {
    filter: brightness(0);
}

.logo-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    background: var(--ink);
    color: var(--surface);
    font-family: var(--font-mono);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0;
    flex-shrink: 0;
    position: relative;
    overflow: hidden;
}

.logo-mark::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, transparent 50%, var(--accent) 50%);
    opacity: 0.9;
}

.logo-mark span {
    position: relative;
    z-index: 1;
}

.nav-link {
    color: var(--ink-3);
    font-size: 0.75rem;
    font-family: var(--font-mono);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    text-decoration: none;
    transition: color 0.2s ease;
    position: relative;
}

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

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

/* =========================================================================
   GALLERY MASONRY · "As Luzes" portfolio — despojado pinboard feel
   ========================================================================= */
.gallery-masonry {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 180px;
    grid-auto-flow: dense;
    gap: 1rem;
}

.gallery-tile {
    position: relative;
    overflow: hidden;
    margin: 0;
    cursor: pointer;
    background: var(--surface-inverse);
    border: 1px solid rgba(255, 255, 255, 0.06);
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.4);
    transition: transform 0.45s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                box-shadow 0.45s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                border-color 0.3s ease;
    isolation: isolate;
}

/* Organic rotation — each 3rd child gets a different tilt (despojado pinboard) */
.gallery-tile:nth-child(3n+1) { transform: rotate(-0.6deg); }
.gallery-tile:nth-child(3n+2) { transform: rotate(0.4deg); }
.gallery-tile:nth-child(3n+3) { transform: rotate(-0.2deg); }

.gallery-tile:hover {
    transform: rotate(0deg) scale(1.02);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.65),
                0 0 0 1px rgba(249, 115, 22, 0.4);
    border-color: rgba(249, 115, 22, 0.4);
    z-index: 5;
}

.gallery-tile img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    filter: saturate(0.9) brightness(0.88);
    transition: transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                filter 0.4s ease;
    will-change: transform;
}

.gallery-tile:hover img {
    transform: scale(1.06);
    filter: saturate(1.08) brightness(1);
}

.gallery-tile figcaption {
    position: absolute;
    left: 0; right: 0; bottom: 0;
    padding: 1.25rem 1rem 1rem;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.88) 0%, rgba(0, 0, 0, 0.55) 55%, transparent 100%);
    color: #fff;
    transform: translateY(35%);
    transition: transform 0.45s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    pointer-events: none;
}

.gallery-tile:hover figcaption {
    transform: translateY(0);
}

.gallery-tile__tag {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 0.6rem;
    font-weight: 600;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--accent-500);
    margin-bottom: 0.35rem;
}

.gallery-tile__title {
    font-weight: 500;
    font-size: 0.95rem;
    line-height: 1.3;
    color: #fff;
    margin-bottom: 0.2rem;
}

.gallery-tile__meta {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.65);
    opacity: 0;
    transform: translateY(6px);
    transition: all 0.3s ease 0.1s;
}

.gallery-tile:hover .gallery-tile__meta {
    opacity: 1;
    transform: translateY(0);
}

/* Expand icon appears on hover */
.gallery-tile__zoom {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    width: 34px;
    height: 34px;
    background: rgba(10, 10, 15, 0.7);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: scale(0.85);
    transition: all 0.3s ease;
    pointer-events: none;
    color: #fff;
}

.gallery-tile:hover .gallery-tile__zoom {
    opacity: 1;
    transform: scale(1);
    background: var(--accent);
    border-color: var(--accent);
}

/* Size variants — despojado pinboard variety */
.gallery-tile--big  { grid-column: span 2; grid-row: span 2; }
.gallery-tile--tall { grid-row: span 2; }
.gallery-tile--wide { grid-column: span 2; }

/* Responsive */
@media (max-width: 1023px) {
    .gallery-masonry {
        grid-template-columns: repeat(3, 1fr);
        grid-auto-rows: 160px;
    }
    .gallery-tile--big { grid-column: span 2; grid-row: span 2; }
    .gallery-tile--wide { grid-column: span 2; }
}

@media (max-width: 767px) {
    .gallery-masonry {
        grid-template-columns: repeat(2, 1fr);
        grid-auto-rows: 150px;
        gap: 0.65rem;
    }
    .gallery-tile--big,
    .gallery-tile--wide { grid-column: span 2; }
    .gallery-tile:nth-child(n) { transform: rotate(0deg); } /* skip rotation on mobile */
}

/* =========================================================================
   LIGHTBOX · click-to-fullscreen gallery viewer
   ========================================================================= */
.lightbox {
    position: fixed;
    inset: 0;
    z-index: 1000;
    background: rgba(5, 5, 8, 0.96);
    backdrop-filter: blur(24px) saturate(1.1);
    -webkit-backdrop-filter: blur(24px) saturate(1.1);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.35s ease;
}

.lightbox.is-open {
    opacity: 1;
    pointer-events: auto;
}

.lightbox__stage {
    position: relative;
    width: 92vw;
    height: 92vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1.25rem;
}

.lightbox__img {
    max-width: 100%;
    max-height: 82vh;
    object-fit: contain;
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: opacity 0.25s ease;
    user-select: none;
    -webkit-user-drag: none;
}

.lightbox.is-loading .lightbox__img {
    opacity: 0.3;
}

.lightbox__caption {
    color: rgba(255, 255, 255, 0.85);
    text-align: center;
    max-width: 80vw;
}

.lightbox__caption-title {
    font-weight: 500;
    font-size: 1rem;
    color: #fff;
    margin-bottom: 0.35rem;
}

.lightbox__caption-tag {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--accent-500);
}

.lightbox__btn {
    position: absolute;
    background: rgba(15, 15, 20, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.14);
    color: rgba(255, 255, 255, 0.85);
    width: 48px;
    height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition: border-color 0.2s ease, background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.lightbox__btn:hover {
    border-color: var(--accent);
    background: rgba(249, 115, 22, 0.22);
    color: #fff;
    transform: scale(1.05);
}

.lightbox__close {
    top: 1.25rem;
    right: 1.25rem;
}

.lightbox__prev {
    left: 1.25rem;
    top: 50%;
    transform: translateY(-50%);
}
.lightbox__prev:hover { transform: translateY(-50%) scale(1.05); }

.lightbox__next {
    right: 1.25rem;
    top: 50%;
    transform: translateY(-50%);
}
.lightbox__next:hover { transform: translateY(-50%) scale(1.05); }

.lightbox__counter {
    position: absolute;
    top: 1.5rem;
    left: 50%;
    transform: translateX(-50%);
    font-family: var(--font-mono);
    font-size: 0.7rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.55);
    background: rgba(15, 15, 20, 0.6);
    padding: 0.5rem 0.9rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(8px);
}

@media (max-width: 767px) {
    .lightbox__btn { width: 40px; height: 40px; }
    .lightbox__close { top: 0.75rem; right: 0.75rem; }
    .lightbox__prev { left: 0.5rem; }
    .lightbox__next { right: 0.5rem; }
}

/* =========================================================================
   PORTRAIT (Cristiano bio photo)
   ========================================================================= */
.portrait {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 5;
    overflow: hidden;
    background: var(--surface-inverse);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-lg);
}

.portrait img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    filter: saturate(0.9) contrast(1.02);
    transition: filter 0.5s ease, transform 0.7s ease;
}

.portrait:hover img {
    filter: saturate(1.1) contrast(1.05);
    transform: scale(1.02);
}

.portrait__tag {
    position: absolute;
    left: 1rem;
    bottom: 1rem;
    background: rgba(10, 10, 15, 0.78);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 0.4rem 0.8rem;
    border: 1px solid rgba(255, 255, 255, 0.14);
    color: #fff;
}

.portrait__mesa {
    position: absolute;
    top: 1rem;
    right: 1rem;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-family: var(--font-mono);
    font-size: 0.6rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: #fff;
    background: rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    padding: 0.3rem 0.6rem;
    border: 1px solid rgba(255, 255, 255, 0.18);
}

.portrait__mesa .dot {
    width: 6px;
    height: 6px;
    background: var(--accent-500);
    border-radius: 9999px;
    box-shadow: 0 0 8px var(--accent-500);
}

/* =========================================================================
   BIO SECTION — Pull quote + Career pillars
   ========================================================================= */
.pull-quote {
    position: relative;
    padding: 0.5rem 0 0.75rem 1.75rem;
    border-left: 3px solid var(--accent);
    margin: 2.5rem 0 3rem;
}

.pull-quote::before {
    content: '"';
    position: absolute;
    left: -0.35rem;
    top: -2.2rem;
    font-family: var(--font-display);
    font-size: 6rem;
    font-weight: 700;
    color: var(--accent);
    opacity: 0.22;
    line-height: 1;
    pointer-events: none;
}

.pull-quote p {
    font-family: var(--font-display);
    font-size: clamp(1.25rem, 1.9vw, 1.65rem);
    font-style: italic;
    font-weight: 400;
    color: #fff;
    line-height: 1.4;
    margin: 0;
    letter-spacing: -0.01em;
}

.pull-quote cite {
    display: block;
    margin-top: 1rem;
    font-style: normal;
    font-family: var(--font-mono);
    font-size: 0.7rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--ink-mute);
}

.career-pillars {
    list-style: none;
    padding: 2rem 0 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0;
    border-top: 1px solid var(--border);
}

.career-pillars li {
    display: flex;
    gap: 1.25rem;
    align-items: flex-start;
    padding: 1.1rem 0;
    border-bottom: 1px solid var(--border-soft);
    transition: border-bottom-color 0.3s ease, padding-left 0.3s ease;
}

.career-pillars li:last-child {
    border-bottom: none;
}

.career-pillars li:hover {
    border-bottom-color: var(--accent);
    padding-left: 0.5rem;
}

.pillar-dot {
    width: 8px;
    height: 8px;
    background: var(--accent);
    border-radius: 50%;
    margin-top: 0.55rem;
    flex-shrink: 0;
    box-shadow: 0 0 12px rgba(249, 115, 22, 0.7),
                0 0 2px rgba(255, 255, 255, 0.5);
    transition: transform 0.3s ease;
}

.career-pillars li:hover .pillar-dot {
    transform: scale(1.3);
}

.pillar-title {
    display: block;
    color: #fff;
    font-weight: 500;
    font-size: 1.02rem;
    letter-spacing: -0.005em;
    line-height: 1.3;
}

.pillar-note {
    display: block;
    color: var(--ink-mute);
    font-size: 0.85rem;
    margin-top: 0.2rem;
    font-weight: 300;
}

/* =========================================================================
   SIGNATURE CARD (orange CTA)
   ========================================================================= */
.cta-card {
    background: var(--accent);
    color: #fff;
    padding: 2rem;
    position: relative;
    overflow: hidden;
    transition: transform 0.5s ease, box-shadow 0.5s ease;
    max-width: 28rem;
}

.cta-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-2xl);
}

.cta-card__deco {
    position: absolute;
    top: -1rem;
    right: -1rem;
    color: rgba(255, 255, 255, 0.15);
    font-size: 9rem;
    line-height: 1;
    transform: rotate(12deg);
    pointer-events: none;
}

.cta-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 1rem;
    color: #fff;
}

.cta-card p {
    font-size: 0.875rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.55;
    margin-bottom: 2rem;
}

.cta-card__foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-top: 1rem;
    font-family: var(--font-mono);
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.22em;
    color: #fff;
}

/* =========================================================================
   WATERMARK
   ========================================================================= */
.watermark {
    font-family: var(--font-display);
    font-size: 20vw;
    font-weight: 700;
    line-height: 0.85;
    letter-spacing: -0.05em;
    color: rgba(0, 0, 0, 0.05);
    text-align: center;
    text-transform: uppercase;
    pointer-events: none;
    user-select: none;
    white-space: nowrap;
}

/* =========================================================================
   HERO STAGE BACKDROP (cinematic full-bleed show photo)
   ========================================================================= */
.hero-stage {
    position: relative;
    overflow: hidden;
    isolation: isolate;
}

.hero-stage__bg {
    position: absolute;
    inset: 0;
    z-index: -1;
    overflow: hidden;
    /* parallax translate set via JS on scroll */
    will-change: transform;
}

/* Organic Mosaic — asymmetric grid of show photos filling the hero backdrop */
.hero-mosaic {
    position: absolute;
    inset: 0;
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    grid-template-rows: repeat(6, 1fr);
    grid-template-areas:
        "a a a b b c c c"
        "a a a b b c c c"
        "a a a d d c c c"
        "e e d d d g g g"
        "e e f f f g g g"
        "e e f f f h h h";
    gap: 8px;
    padding: 8px;
}

.hero-mosaic__tile {
    position: relative;
    overflow: hidden;
    background: #0a0a0f;
    transform: rotate(var(--rot, 0deg));
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.04);
    will-change: transform;
}

.hero-mosaic__tile img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: saturate(1.12) contrast(1.08) brightness(0.55);
    animation: hero-zoom 28s ease-in-out infinite alternate;
    will-change: transform;
}

/* Grid area placement + organic rotation per tile */
.hero-mosaic__tile--a { grid-area: a; --rot: -1.1deg; }
.hero-mosaic__tile--b { grid-area: b; --rot:  0.9deg; }
.hero-mosaic__tile--c { grid-area: c; --rot: -0.6deg; }
.hero-mosaic__tile--d { grid-area: d; --rot:  1.4deg; }
.hero-mosaic__tile--e { grid-area: e; --rot: -1.8deg; }
.hero-mosaic__tile--f { grid-area: f; --rot:  0.6deg; }
.hero-mosaic__tile--g { grid-area: g; --rot: -0.8deg; }
.hero-mosaic__tile--h { grid-area: h; --rot:  1.2deg; }

/* Staggered ken-burns so the wall breathes organically */
.hero-mosaic__tile--a img { animation-delay:  0s; }
.hero-mosaic__tile--b img { animation-delay:  3s; }
.hero-mosaic__tile--c img { animation-delay:  6s; }
.hero-mosaic__tile--d img { animation-delay:  9s; }
.hero-mosaic__tile--e img { animation-delay:  2s; }
.hero-mosaic__tile--f img { animation-delay:  5s; }
.hero-mosaic__tile--g img { animation-delay:  8s; }
.hero-mosaic__tile--h img { animation-delay: 11s; }

@media (max-width: 767px) {
    .hero-mosaic {
        grid-template-columns: repeat(3, 1fr);
        grid-template-rows: repeat(3, 1fr);
        grid-template-areas:
            "a a b"
            "a a c"
            "d d c";
        gap: 6px;
        padding: 6px;
    }
    .hero-mosaic__tile--e,
    .hero-mosaic__tile--f,
    .hero-mosaic__tile--g,
    .hero-mosaic__tile--h { display: none; }
}

@media (prefers-reduced-motion: reduce) {
    .hero-mosaic__tile img { animation: none !important; }
}

/* Darkening overlay — gradient + vignette */
.hero-stage__bg::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        linear-gradient(to right, rgba(7, 7, 10, 0.92) 0%, rgba(7, 7, 10, 0.55) 45%, rgba(7, 7, 10, 0.35) 100%),
        linear-gradient(to bottom, rgba(7, 7, 10, 0.3) 0%, transparent 30%, transparent 60%, rgba(7, 7, 10, 0.85) 100%);
    z-index: 1;
    pointer-events: none;
}

/* Radial vignette on top for cinematic feel */
.hero-stage__bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at center, transparent 30%, rgba(7, 7, 10, 0.75) 100%);
    z-index: 2;
    pointer-events: none;
    mix-blend-mode: multiply;
}

/* Warm orange haze layered on top (matches accent + stage-beams) */
.hero-stage__haze {
    position: absolute;
    inset: 0;
    z-index: 0;
    background:
        radial-gradient(ellipse 80% 60% at 75% 30%, rgba(249, 115, 22, 0.22) 0%, transparent 55%),
        radial-gradient(ellipse 60% 40% at 20% 80%, rgba(6, 182, 212, 0.12) 0%, transparent 55%);
    mix-blend-mode: screen;
    pointer-events: none;
    animation: hero-haze 18s ease-in-out infinite alternate;
}

@keyframes hero-zoom {
    0%   { transform: scale(1.08) translate(0, 0); }
    100% { transform: scale(1.18) translate(-2%, -1.5%); }
}

@keyframes hero-haze {
    0%   { opacity: 0.85; }
    50%  { opacity: 1; }
    100% { opacity: 0.7; }
}

@media (prefers-reduced-motion: reduce) {
    .hero-stage__bg img,
    .hero-stage__haze { animation: none !important; }
}

/* =========================================================================
   ON-STAGE VARIANTS (content sitting on the dark stage)
   ========================================================================= */
.on-stage {
    color: #fff;
}

.on-stage .display-h1,
.on-stage .display-h2,
.on-stage .section-title {
    color: #fff;
}

.on-stage .ink-strong {
    color: #fff;
}

.on-stage p,
.on-stage .text-neutral-400,
.on-stage .manifesto-dim {
    color: rgba(255, 255, 255, 0.72);
}

.on-stage .label-mono,
.on-stage .label-mono-tiny {
    color: rgba(255, 255, 255, 0.55);
}

.on-stage .metric__value {
    color: #fff;
}
.on-stage .metric__label {
    color: rgba(255, 255, 255, 0.5);
}
.on-stage .metric:hover .metric__label {
    color: #fff;
}

.on-stage .btn-primary {
    background: transparent;
    border-color: rgba(255, 255, 255, 0.25);
    color: #fff;
}
.on-stage .btn-primary:hover {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
}

.on-stage .btn-beam {
    color: #fff;
}
.on-stage .btn-beam__bg {
    background: rgba(8, 7, 12, 0.85);
}
.on-stage .btn-beam:hover .btn-beam__bg {
    background: rgba(15, 14, 22, 0.92);
}

.on-stage .callout-card {
    background: rgba(15, 14, 22, 0.8);
    border-color: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}
.on-stage .callout-card p {
    color: rgba(255, 255, 255, 0.9) !important;
}
.on-stage .callout-card .text-\[color\:var\(--ink-mute\)\] {
    color: rgba(255, 255, 255, 0.55) !important;
}

/* Footer social / link hover on stage */
.on-stage a.footer-link {
    color: rgba(255, 255, 255, 0.65);
}
.on-stage a.footer-link:hover {
    color: var(--accent-500);
}

/* Watermark on stage — tinted white */
.on-stage .watermark {
    color: rgba(255, 255, 255, 0.05);
}

/* =========================================================================
   AMBIENT GLOW
   ========================================================================= */
.ambient-glow {
    position: absolute;
    width: 40vw;
    height: 40vw;
    border-radius: 9999px;
    filter: blur(120px);
    pointer-events: none;
    z-index: 0;
}

.ambient-glow--warm {
    background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
}

.ambient-glow--soft {
    background: radial-gradient(circle, rgba(0, 0, 0, 0.04) 0%, transparent 70%);
}

/* =========================================================================
   LAYOUT HELPERS
   ========================================================================= */
.container-xl {
    max-width: 90rem;
    margin-left: auto;
    margin-right: auto;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

@media (min-width: 1024px) {
    .container-xl {
        padding-left: 3rem;
        padding-right: 3rem;
    }
}

.section {
    padding-top: 6rem;
    padding-bottom: 6rem;
    position: relative;
}

.section-sep {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

/* Illuminated panel — dark content surface with LED accent line */
.lit-panel {
    background: rgba(12, 12, 18, 0.78);
    backdrop-filter: blur(18px) saturate(1.2);
    -webkit-backdrop-filter: blur(18px) saturate(1.2);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.06),
        inset 0 -1px 0 rgba(255, 255, 255, 0.03),
        0 40px 100px -30px rgba(0, 0, 0, 0.85);
    position: relative;
    z-index: 2;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

/* LED accent line at the top of each panel */
.lit-panel::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    max-width: 640px;
    height: 1px;
    background: linear-gradient(to right,
        transparent,
        rgba(249, 115, 22, 0.1) 20%,
        rgba(249, 115, 22, 0.8) 50%,
        rgba(249, 115, 22, 0.1) 80%,
        transparent);
    box-shadow: 0 0 32px rgba(249, 115, 22, 0.6),
                0 0 8px rgba(249, 115, 22, 0.9);
    pointer-events: none;
    z-index: 3;
}


/* Stage-exposed section (hero/footer): content sits directly on the dark stage */
.on-stage {
    position: relative;
    z-index: 1;
}

/* =========================================================================
   ICON SIZING (Iconify)
   ========================================================================= */
.iconify-sm { font-size: 1rem; }
.iconify-md { font-size: 1.25rem; }
.iconify-lg { font-size: 1.5rem; }
.iconify-xl { font-size: 2rem; }
.iconify-2xl { font-size: 2.5rem; }

/* =========================================================================
   RESPONSIVE TWEAKS
   ========================================================================= */
@media (max-width: 767px) {
    .section {
        padding-top: 4rem;
        padding-bottom: 4rem;
    }

    .display-h1 {
        letter-spacing: -0.03em;
    }
}
