:root {
    --bg-color: #0f0f0f;
    --surface-color: rgba(255, 255, 255, 0.03);
    --surface-hover: rgba(255, 102, 0, 0.1);
    --border-color: rgba(255, 255, 255, 0.08);
    --accent: #ff6600;
    /* Vibrant Orange */
    --accent-glow: rgba(255, 102, 0, 0.3);
    --text-primary: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.85);
    --glitch-base-color: #ffffff;
    --node-idle-border: rgba(255, 255, 255, 0.1);
    --node-idle-shadow: 0 20px 45px rgba(0, 0, 0, 0.38);
    --node-active-shadow: 0 20px 48px rgba(0, 0, 0, 0.48), 0 0 28px rgba(255, 102, 0, 0.14);
    /* Increased for better visibility */

    --font-heading: 'Poppins', sans-serif;
    --font-body: 'Inter', sans-serif;

    --transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

body {
    width: 100%;
    min-height: 100vh;
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: var(--font-body);
    overflow-x: clip;
    overflow-y: visible;
    scroll-behavior: smooth;
    background: var(--bg-color);
    position: relative;
}

html {
    scrollbar-gutter: stable;
    overflow-x: clip;
    width: 100%;
    color-scheme: dark;
}

/* Modern Scrollbar Styles */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #0f0f0f;
}

::-webkit-scrollbar-thumb {
    background: #333;
    border-radius: 10px;
    border: 3px solid #0f0f0f;
}

::-webkit-scrollbar-thumb:hover {
    background: #666;
    /* Subtle grey on hover */
}

/* Firefox */
* {
    scrollbar-width: thin;
    scrollbar-color: #444 #0f0f0f;
}






#smooth-wrapper {
    position: relative;
    z-index: 10;
    /* Ensure content is above the background overlay */
    width: 100%;
}

/* Final Loader Design - Tech Orange */
.loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000;
    z-index: 10000;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    overflow: hidden;
}

.loader::before {
    content: "";
    position: absolute;
    width: 200%;
    height: 200%;
    background-image:
        linear-gradient(rgba(255, 102, 0, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 102, 0, 0.05) 1px, transparent 1px);
    background-size: 50px 50px;
    background-position: center;
    animation: gridMove 20s linear infinite;
    z-index: 1;
}

@keyframes gridMove {
    0% {
        transform: translateY(0);
    }

    100% {
        transform: translateY(-50px);
    }
}

.loader-vignette {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, transparent 0%, #000 90%);
    z-index: 2;
    pointer-events: none;
}

.curtain {
    position: absolute;
    top: 0;
    width: 50.5%;
    height: 100%;
    background: #000;
    /* Only curtains have the solid color later */
    z-index: 5;
    pointer-events: none;
}

.curtain-left {
    left: 0;
}

.curtain-right {
    right: 0;
}

.loader-inner {
    text-align: center;
    width: 320px;
    z-index: 10;
    position: relative;
}

.loader-logo {
    width: 120px;
    margin-bottom: 40px;
    filter: brightness(0) invert(1) drop-shadow(0 0 15px var(--accent));
}

.loader-status {
    font-family: var(--font-heading);
    color: var(--accent);
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 5px;
    margin-bottom: 25px;
    font-weight: bold;
}

.progress-container {
    width: 250px;
    height: 35px;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid var(--accent);
    position: relative;
    border-radius: 6px;
    padding: 3px;
    margin: 0 auto;
    overflow: hidden;
}

/* Battery Tip */
.progress-container::after {
    content: "";
    position: absolute;
    right: -8px;
    top: 50%;
    transform: translateY(-50%);
    width: 5px;
    height: 15px;
    background: var(--accent);
    border-radius: 0 4px 4px 0;
}

.progress-bar {
    height: 100%;
    background: var(--accent);
    box-shadow: 0 0 15px var(--accent);
    transition: width 0.1s linear;
    border-radius: 2px;
    /* Segmented Effect */
    background-image: linear-gradient(90deg,
            rgba(0, 0, 0, 0.1) 1px,
            transparent 1px);
    background-size: 15px 100%;
}

#progress-text {
    font-family: var(--font-heading);
    color: white;
    font-size: 1.5rem;
    margin-top: 15px;
    font-weight: 900;
    letter-spacing: 2px;
}

.canvas-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    /* Prevent 100vw scrollbar overlap */
    height: 100vh;
    z-index: 1;
    /* Above body background, below content */
    overflow: hidden;
}

/* Tech Background Vignette - Persistent Focus */
.canvas-container::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Darker vignette for a more tech/cinematic look */
    background: radial-gradient(circle at center, transparent 0%, rgba(0, 0, 0, 0.7) 100%);
    pointer-events: none;
    z-index: 2;
}

#hero-canvas {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.8;
    /* Subtle transparency for better blending */
}


.particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

/* Layout */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 80px 0;
    /* Ajustado a 80px */
}

.hero-content {
    padding: 100px 0;
    /* Mantenemos el espaciado original para el Hero */
}

.section {
    min-height: auto;
    /* Permitimos que las secciones estén más cerca */
    display: flex;
    align-items: center;
    position: relative;
    z-index: 10;
    /* Above the canvas */
    background: transparent;
}



.hero-section {
    min-height: 100vh;
    /* El Hero sigue ocupando toda la pantalla */
    overflow: hidden;
    isolation: isolate;
}

.hero-portrait {
    position: absolute;
    top: 0;
    left: 50%;
    height: 100%;
    aspect-ratio: 1448 / 1086;
    max-width: none;
    transform: translateX(-50%);
    z-index: 0;
    --reveal-x: 50%;
    --reveal-y: 42%;
    --mask-drift-x: 0px;
    --mask-drift-y: 0px;
    --blob-core-w: 108px;
    --blob-core-h: 86px;
    --blob-1-x: -68px;
    --blob-1-y: -28px;
    --blob-1-w: 76px;
    --blob-1-h: 48px;
    --blob-2-x: 52px;
    --blob-2-y: -62px;
    --blob-2-w: 54px;
    --blob-2-h: 78px;
    --blob-3-x: 84px;
    --blob-3-y: 18px;
    --blob-3-w: 72px;
    --blob-3-h: 46px;
    --blob-4-x: 42px;
    --blob-4-y: 68px;
    --blob-4-w: 52px;
    --blob-4-h: 72px;
    --blob-5-x: -54px;
    --blob-5-y: 62px;
    --blob-5-w: 82px;
    --blob-5-h: 48px;
    --blob-6-x: -88px;
    --blob-6-y: 14px;
    --blob-6-w: 46px;
    --blob-6-h: 70px;
    animation: hero-portrait-color-glitch 8.9s infinite step-end 1.35s;
}

.hero-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    max-width: none;
    object-fit: contain;
    object-position: 50% 50%;
    user-select: none;
    -webkit-user-drag: none;
}

.hero-image-before {
    z-index: 0;
}

.hero-image-after {
    opacity: 0;
    transition: opacity 0.32s ease;
    -webkit-mask:
        radial-gradient(ellipse var(--blob-core-w) var(--blob-core-h) at calc(var(--reveal-x) + var(--mask-drift-x)) calc(var(--reveal-y) + var(--mask-drift-y)),
            #000 62%, rgba(0, 0, 0, 0.82) 70%, transparent 80%),
        radial-gradient(ellipse var(--blob-1-w) var(--blob-1-h) at calc(var(--reveal-x) + var(--mask-drift-x) + var(--blob-1-x)) calc(var(--reveal-y) + var(--mask-drift-y) + var(--blob-1-y)),
            #000 62%, transparent 79%),
        radial-gradient(ellipse var(--blob-2-w) var(--blob-2-h) at calc(var(--reveal-x) + var(--mask-drift-x) + var(--blob-2-x)) calc(var(--reveal-y) + var(--mask-drift-y) + var(--blob-2-y)),
            #000 60%, transparent 79%),
        radial-gradient(ellipse var(--blob-3-w) var(--blob-3-h) at calc(var(--reveal-x) + var(--mask-drift-x) + var(--blob-3-x)) calc(var(--reveal-y) + var(--mask-drift-y) + var(--blob-3-y)),
            #000 61%, transparent 79%),
        radial-gradient(ellipse var(--blob-4-w) var(--blob-4-h) at calc(var(--reveal-x) + var(--mask-drift-x) + var(--blob-4-x)) calc(var(--reveal-y) + var(--mask-drift-y) + var(--blob-4-y)),
            #000 59%, transparent 79%),
        radial-gradient(ellipse var(--blob-5-w) var(--blob-5-h) at calc(var(--reveal-x) + var(--mask-drift-x) + var(--blob-5-x)) calc(var(--reveal-y) + var(--mask-drift-y) + var(--blob-5-y)),
            #000 59%, transparent 79%),
        radial-gradient(ellipse var(--blob-6-w) var(--blob-6-h) at calc(var(--reveal-x) + var(--mask-drift-x) + var(--blob-6-x)) calc(var(--reveal-y) + var(--mask-drift-y) + var(--blob-6-y)),
            #000 59%, transparent 79%);
    -webkit-mask-composite: source-over;
    mask:
        radial-gradient(ellipse var(--blob-core-w) var(--blob-core-h) at calc(var(--reveal-x) + var(--mask-drift-x)) calc(var(--reveal-y) + var(--mask-drift-y)),
            #000 62%, rgba(0, 0, 0, 0.82) 70%, transparent 80%),
        radial-gradient(ellipse var(--blob-1-w) var(--blob-1-h) at calc(var(--reveal-x) + var(--mask-drift-x) + var(--blob-1-x)) calc(var(--reveal-y) + var(--mask-drift-y) + var(--blob-1-y)),
            #000 62%, transparent 79%),
        radial-gradient(ellipse var(--blob-2-w) var(--blob-2-h) at calc(var(--reveal-x) + var(--mask-drift-x) + var(--blob-2-x)) calc(var(--reveal-y) + var(--mask-drift-y) + var(--blob-2-y)),
            #000 60%, transparent 79%),
        radial-gradient(ellipse var(--blob-3-w) var(--blob-3-h) at calc(var(--reveal-x) + var(--mask-drift-x) + var(--blob-3-x)) calc(var(--reveal-y) + var(--mask-drift-y) + var(--blob-3-y)),
            #000 61%, transparent 79%),
        radial-gradient(ellipse var(--blob-4-w) var(--blob-4-h) at calc(var(--reveal-x) + var(--mask-drift-x) + var(--blob-4-x)) calc(var(--reveal-y) + var(--mask-drift-y) + var(--blob-4-y)),
            #000 59%, transparent 79%),
        radial-gradient(ellipse var(--blob-5-w) var(--blob-5-h) at calc(var(--reveal-x) + var(--mask-drift-x) + var(--blob-5-x)) calc(var(--reveal-y) + var(--mask-drift-y) + var(--blob-5-y)),
            #000 59%, transparent 79%),
        radial-gradient(ellipse var(--blob-6-w) var(--blob-6-h) at calc(var(--reveal-x) + var(--mask-drift-x) + var(--blob-6-x)) calc(var(--reveal-y) + var(--mask-drift-y) + var(--blob-6-y)),
            #000 59%, transparent 79%);
    mask-composite: add;
    z-index: 1;
}

.hero-portrait.is-revealing .hero-image-after {
    opacity: 1;
}

.hero-glitch-layer {
    position: absolute;
    inset: 0;
    z-index: 3;
    opacity: 0;
    pointer-events: none;
    will-change: opacity, transform, clip-path, filter;
}

.hero-glitch-layer-a {
    animation: hero-image-glitch-a 6.7s infinite step-end 2.15s;
}

.hero-glitch-layer-b {
    animation: hero-image-glitch-b 9.4s infinite step-end -1.8s;
}

@keyframes hero-portrait-color-glitch {
    0%,
    84%,
    100% {
        filter: none;
    }

    85% {
        filter:
            drop-shadow(-5px 0 rgba(255, 102, 0, 0.7))
            drop-shadow(5px 0 rgba(105, 190, 255, 0.5))
            contrast(1.08);
    }

    86% {
        filter:
            drop-shadow(7px 0 rgba(255, 102, 0, 0.58))
            drop-shadow(-4px 0 rgba(255, 255, 255, 0.38))
            saturate(1.3);
    }

    87% {
        filter: none;
    }

    91% {
        filter:
            drop-shadow(-3px 0 rgba(255, 102, 0, 0.45))
            contrast(1.12);
    }

    92% {
        filter: none;
    }
}

@keyframes hero-image-glitch-a {
    0%,
    73%,
    100% {
        opacity: 0;
        transform: translate(0);
        clip-path: inset(0);
        filter: none;
    }

    74% {
        opacity: 0.82;
        transform: translate(-18px, -5px) skewX(3deg);
        clip-path: inset(18% 0 65% 0);
        filter: drop-shadow(-8px 0 rgba(255, 102, 0, 0.75));
    }

    75% {
        opacity: 0.68;
        transform: translate(15px, 4px) skewX(-4deg);
        clip-path: inset(46% 0 38% 0);
        filter: drop-shadow(7px 0 rgba(115, 202, 255, 0.62));
    }

    76% {
        opacity: 0;
    }

    82% {
        opacity: 0.74;
        transform: translate(-11px, 2px);
        clip-path: inset(68% 0 18% 0);
        filter: drop-shadow(-6px 0 rgba(255, 102, 0, 0.66));
    }

    83% {
        opacity: 0;
    }
}

@keyframes hero-image-glitch-b {
    0%,
    86%,
    100% {
        opacity: 0;
        transform: translate(0);
        clip-path: inset(0);
        filter: none;
    }

    87% {
        opacity: 0.62;
        transform: translate(20px, 7px) skewX(-5deg);
        clip-path: inset(30% 0 52% 0);
        filter: drop-shadow(9px 0 rgba(255, 255, 255, 0.52));
    }

    88% {
        opacity: 0.8;
        transform: translate(-16px, -3px) skewX(4deg);
        clip-path: inset(56% 0 27% 0);
        filter: drop-shadow(-9px 0 rgba(255, 102, 0, 0.72));
    }

    89% {
        opacity: 0.55;
        transform: translate(8px, -8px);
        clip-path: inset(8% 0 78% 0);
        filter:
            drop-shadow(6px 0 rgba(104, 196, 255, 0.6))
            contrast(1.18);
    }

    90% {
        opacity: 0;
    }
}

@property --blob-1-x {
    syntax: '<length>';
    inherits: true;
    initial-value: -105px;
}

@property --blob-1-y {
    syntax: '<length>';
    inherits: true;
    initial-value: -38px;
}

@property --blob-2-x {
    syntax: '<length>';
    inherits: true;
    initial-value: 92px;
}

@property --blob-2-y {
    syntax: '<length>';
    inherits: true;
    initial-value: -88px;
}

@property --blob-3-x {
    syntax: '<length>';
    inherits: true;
    initial-value: 118px;
}

@property --blob-3-y {
    syntax: '<length>';
    inherits: true;
    initial-value: 62px;
}

@property --blob-4-x {
    syntax: '<length>';
    inherits: true;
    initial-value: -76px;
}

@property --blob-4-y {
    syntax: '<length>';
    inherits: true;
    initial-value: 105px;
}

@property --blob-5-x {
    syntax: '<length>';
    inherits: true;
    initial-value: -132px;
}

@property --blob-5-y {
    syntax: '<length>';
    inherits: true;
    initial-value: 34px;
}

@property --blob-core {
    syntax: '<length>';
    inherits: true;
    initial-value: 170px;
}

@property --blob-large {
    syntax: '<length>';
    inherits: true;
    initial-value: 150px;
}

@property --blob-medium {
    syntax: '<length>';
    inherits: true;
    initial-value: 130px;
}

@media (prefers-reduced-motion: reduce) {
    .hero-portrait,
    .hero-glitch-layer,
    .hero-image-after {
        animation: none !important;
    }
}

.section-title {
    font-family: 'Planet Kosmos', sans-serif;
    font-size: 3.5rem;
    font-weight: normal;
    margin-bottom: 60px;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--glitch-base-color);
    transition: all 0.5s cubic-bezier(0.33, 1, 0.68, 1);
    display: inline-block;
}

/* Wrapper-based hover for total stability */
.glitch-wrapper {
    display: inline-block;
    transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.glitch-wrapper:hover {
    transform: scale(1.1);
}

.glitch-wrapper:hover .glitch {
    color: var(--accent) !important;
}

/* Restoration of the 'Damaged TV' Glitch System */
.glitch {
    position: relative;
    display: inline-block;
}

.glitch::before,
.glitch::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: transparent;
    opacity: 0;
    z-index: 5;
    pointer-events: none;
}

/* Glitch Color Cycle on Main Text */
.glitch {
    animation: glitch-color-cycle 4.3s infinite step-end;
}

/* Individual Letter Damage - Aggressive */
.glitch-char {
    display: inline-block;
    animation: glitch-char-damage 7.3s infinite step-end;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes glitch-char-damage {

    0%,
    93% {
        transform: none;
        color: inherit;
    }

    94% {
        transform: translate(-4px, 2px) scale(1.4) rotate(8deg);
        color: var(--accent);
    }

    95% {
        transform: translate(6px, -3px) scale(0.7) rotate(-12deg) skewX(20deg);
        color: var(--glitch-base-color);
    }

    96% {
        transform: translate(-8px, -4px) scale(1.8) rotate(4deg);
        color: var(--accent);
    }

    97% {
        transform: translate(0) scale(1.2) rotate(-5deg);
        color: var(--glitch-base-color);
    }

    98% {
        transform: none;
        color: inherit;
    }
}

@keyframes glitch-color-cycle {

    0%,
    80% {
        color: var(--glitch-base-color);
        transform: translate(0);
    }

    81% {
        color: var(--accent);
        transform: translate(-2px, 1px);
    }

    83% {
        transform: translate(2px, -1px);
    }

    85% {
        color: var(--glitch-base-color);
        transform: translate(0);
    }

    88% {
        color: var(--accent);
        transform: translate(1px, 1px);
    }

    90%,
    100% {
        color: var(--glitch-base-color);
        transform: translate(0);
    }
}

.glitch::before {
    text-shadow: -5px 0 var(--accent);
    animation: glitch-tv-burst 3.1s infinite step-end;
}

.glitch::after {
    text-shadow: 5px 0 var(--glitch-base-color);
    animation: glitch-tv-burst-2 5.7s infinite step-end;
}

@keyframes glitch-tv-burst {

    0%,
    75% {
        opacity: 0;
        transform: translate(0) skew(0);
        clip-path: none;
    }

    76% {
        opacity: 1;
        transform: translate(-30px, -15px) skew(35deg) scale(1.3);
        clip-path: polygon(0 15%, 100% 15%, 100% 25%, 0 25%);
    }

    77% {
        opacity: 1;
        transform: translate(25px, 20px) skew(-35deg) scale(0.9);
        clip-path: polygon(0 45%, 100% 45%, 100% 55%, 0 55%);
    }

    78% {
        opacity: 0;
    }

    82% {
        opacity: 1;
        transform: translate(-25px, 5px) skewX(55deg) scale(1.2);
        clip-path: polygon(0 5%, 100% 5%, 100% 15%, 0 15%);
    }

    85%,
    100% {
        opacity: 0;
    }
}

@keyframes glitch-tv-burst-2 {

    0%,
    85% {
        opacity: 0;
        transform: translate(0);
        clip-path: none;
    }

    86% {
        opacity: 1;
        transform: translate(35px, 15px) skew(-45deg) scale(1.4);
        clip-path: polygon(0 40%, 100% 40%, 100% 50%, 0 50%);
    }

    88% {
        opacity: 1;
        transform: translate(-35px, -10px) rotate(5deg) scale(0.9);
        clip-path: polygon(0 20%, 100% 20%, 100% 35%, 0 35%);
    }

    90% {
        opacity: 1;
        transform: translate(20px, 35px) skewX(-55deg) scale(1.3);
        clip-path: polygon(0 75%, 100% 75%, 100% 90%, 0 90%);
    }

    92% {
        opacity: 1;
        transform: translate(-10px, -30px) scaleY(1.5);
        clip-path: polygon(0 5%, 100% 5%, 100% 15%, 0 15%);
    }

    94%,
    100% {
        opacity: 0;
    }
}

/* Header & Logo */
.main-header {
    position: absolute;
    top: 40px;
    left: 0;
    width: 100%;
    padding: 0 40px;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

@media (min-width: 769px) {
    .header-actions {
        position: fixed;
        top: 40px;
        right: 40px;
        z-index: 1100;
    }
}

.language-toggle {
    --language-shift: 32px;
    position: relative;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    width: 70px;
    height: 36px;
    padding: 0 3px;
    border: 1px solid var(--text-primary);
    border-radius: 999px;
    background: rgba(255, 102, 0, 0.03);
    color: var(--text-primary);
    backdrop-filter: blur(8px);
    cursor: pointer;
    transition: border-color 0.3s ease, background 0.3s ease, box-shadow 0.3s ease;
}

.language-toggle:hover,
.language-toggle:focus-visible {
    border-color: var(--text-primary);
    box-shadow: 0 0 18px rgba(255, 102, 0, 0.16);
    outline: none;
}

.language-toggle-thumb {
    position: absolute;
    top: 3px;
    left: 3px;
    width: 31px;
    height: 28px;
    border-radius: 999px;
    background: linear-gradient(145deg, #ff7b25, var(--accent));
    box-shadow: 0 4px 14px rgba(255, 102, 0, 0.3);
    transition: transform 0.42s cubic-bezier(0.22, 1, 0.36, 1);
}

.language-option {
    position: relative;
    z-index: 1;
    font-family: var(--font-heading);
    font-size: 0.62rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    text-align: center;
    transition: color 0.3s ease, opacity 0.3s ease;
}

.language-es {
    color: #111;
}

.language-en {
    opacity: 0.45;
}

html[data-language="en"] .language-toggle-thumb {
    transform: translateX(var(--language-shift));
}

html[data-language="en"] .language-es {
    color: var(--text-primary);
    opacity: 0.45;
}

html[data-language="en"] .language-en {
    color: #111;
    opacity: 1;
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    transition: var(--transition);
}

.header-btn {
    background: rgba(255, 102, 0, 0.03);
    backdrop-filter: blur(8px);
    border: 1px solid var(--text-primary);
    padding: 10px 25px;
    border-radius: 50px;
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 700;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    position: relative;
    overflow: hidden;
    transition: var(--transition);
    z-index: 10;
}

.header-btn:hover {
    color: #0b0b0b;
    box-shadow: 0 0 15px var(--accent-glow);
}

.header-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0%;
    height: 100%;
    background: var(--accent);
    z-index: -1;
    transition: var(--transition);
}

.header-btn:hover::before {
    width: 100%;
}

.theme-toggle {
    --toggle-shift: 31px;
    position: relative;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    width: 70px;
    height: 36px;
    padding: 0 3px;
    border: 1px solid var(--text-primary);
    border-radius: 999px;
    background: rgba(255, 102, 0, 0.03);
    color: var(--text-primary);
    backdrop-filter: blur(8px);
    cursor: pointer;
    transition: border-color 0.3s ease, background 0.3s ease, box-shadow 0.3s ease;
}

.theme-toggle:hover,
.theme-toggle:focus-visible {
    border-color: var(--text-primary);
    box-shadow: 0 0 18px rgba(255, 102, 0, 0.16);
    outline: none;
}

.theme-toggle-icon {
    position: relative;
    z-index: 2;
    display: grid;
    width: 14px;
    height: 14px;
    justify-self: center;
    place-items: center;
    line-height: 1;
    transition: opacity 0.3s ease, color 0.3s ease;
}

.theme-toggle-icon svg {
    display: block;
    width: 14px;
    height: 14px;
    overflow: visible;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.theme-toggle-moon {
    left: auto;
    color: #111;
    opacity: 1;
    view-transition-name: theme-toggle-moon;
}

.theme-toggle-sun {
    right: auto;
    color: var(--text-primary);
    opacity: 0.45;
    view-transition-name: theme-toggle-sun;
}

.theme-toggle-thumb {
    position: absolute;
    top: 3px;
    left: 4.5px;
    z-index: 1;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: linear-gradient(145deg, #ff7b25, var(--accent));
    box-shadow: 0 4px 14px rgba(255, 102, 0, 0.35);
    transition: transform 0.42s cubic-bezier(0.22, 1, 0.36, 1), background 0.3s ease;
    view-transition-name: theme-toggle-thumb;
}

.logo-img {
    height: 45px;
    /* Adjust based on original SVG size */
    width: auto;
    transition: var(--transition);
    object-fit: contain;
    filter: brightness(0) invert(1);
}

.logo:hover .logo-img {
    transform: scale(1.05);
    /* Subtle scale for image */
    filter: brightness(0) saturate(100%) invert(45%) sepia(99%) saturate(3644%) hue-rotate(3deg) brightness(103%) contrast(102%) drop-shadow(0 0 10px var(--accent-glow));
}

@media (max-width: 768px) {
    .section-title {
        font-size: 2.2rem;
        margin-bottom: 40px;
    }
}

/* Hero Section */
.hero-content {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
    text-align: center;
    width: 100%;
    min-height: 100vh;
    padding: 0 0 clamp(28px, 4.5vh, 54px);
    position: relative;
    z-index: 2;
}

.hero-title {
    font-family: 'Planet Kosmos', sans-serif;
    font-size: clamp(3rem, 7vw, 6rem);
    /* Planet Kosmos needs a bit more restraint at large sizes */
    font-weight: normal;
    line-height: 1.1;
    position: relative;
    top: 0;
    margin-bottom: 20px;
    letter-spacing: 4px;
    color: var(--glitch-base-color);
    text-transform: uppercase;
    transition: all 0.5s cubic-bezier(0.25, 1, 0.5, 1);
}

.hero-title:hover {
    transform: scale(1.05);
    color: var(--accent);
    cursor: default;
}

.hero-subtitle {
    display: flex;
    flex-wrap: nowrap;
    /* Keep on same line */
    justify-content: center;
    gap: 12px;
    margin-top: 34px;
    margin-bottom: 0;
    max-width: 100%;
}

.hero-tag {
    display: inline-block;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 10px 22px;
    border-radius: 50px;
    /* Rounded pill shape */
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--text-primary);
    white-space: nowrap;
    transition: var(--transition);
    cursor: pointer;
}

.hero-tag:hover {
    border-color: var(--accent);
    color: var(--accent);
    background: var(--surface-hover);
    transform: translateY(-6px) scale(1.05) !important;
    box-shadow: 0 10px 20px rgba(255, 102, 0, 0.15), 0 0 15px var(--accent-glow);
}

.dot {
    color: var(--accent);
    margin: 0 10px;
}

.cta-btn {
    display: inline-block;
    padding: 16px 36px;
    border: 1px solid var(--accent);
    border-radius: 50px;
    /* Modern rounded pill look */
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 3px;
    font-size: 0.8rem;
    font-weight: 700;
    text-decoration: none;
    position: relative;
    overflow: hidden;
    transition: var(--transition);
    background: rgba(255, 102, 0, 0.03);
    backdrop-filter: blur(5px);
}

.cta-btn:hover {
    color: #0b0b0b;
    box-shadow: 0 0 25px var(--accent-glow);
}

.cta-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0%;
    height: 100%;
    background: var(--accent);
    z-index: -1;
    transition: var(--transition);
}

.cta-btn:hover {
    color: #0b0b0b;
}

.cta-btn:hover::before {
    width: 100%;
}

/* Glassmorphism */
.glass-panel {
    background: var(--surface-color);
    backdrop-filter: blur(12px);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    /* More rounded */
    padding: 40px;
}

/* Sobre mi */
.about-text strong {
    color: var(--accent);
    font-weight: 700;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.about-text {
    width: 100%;
    max-width: 560px;
    padding: 40px 30px 40px 0;
}

.about-text p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: 20px;
    text-align: justify;
    hyphens: auto;
    text-wrap: pretty;
}

.about-text p:last-child {
    margin-bottom: 0;
}

.about-diagram-container {
    min-width: 0;
    margin-top: 0;
}

/* Connected creative system */
.tech-diagram-container {
    width: 100%;
    min-height: 560px;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.tech-diagram {
    --connection-length: 174px;
    --scan-distance: 350px;
    position: relative;
    width: min(100%, 560px);
    height: 520px;
    isolation: isolate;
}

.tech-diagram::before {
    content: '';
    position: absolute;
    inset: 8% 4%;
    z-index: -2;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
    background-size: 34px 34px;
    -webkit-mask-image: radial-gradient(circle at center, #000 20%, transparent 72%);
    mask-image: radial-gradient(circle at center, #000 20%, transparent 72%);
}

.tech-diagram::after {
    content: '';
    position: absolute;
    top: 16%;
    left: 12%;
    right: 12%;
    height: 1px;
    z-index: -1;
    opacity: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 102, 0, 0.6), transparent);
    box-shadow: 0 0 16px rgba(255, 102, 0, 0.28);
    animation: diagram-scan 6.8s ease-in-out infinite;
}

.diagram-grid {
    position: absolute;
    inset: 12%;
    border: 1px solid rgba(255, 255, 255, 0.035);
    border-radius: 50%;
    background: radial-gradient(circle at center, rgba(255, 102, 0, 0.08), transparent 58%);
    filter: blur(0.2px);
}

.diagram-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
}

.diagram-ring::before,
.diagram-ring::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 12px rgba(255, 102, 0, 0.8);
}

.diagram-ring::before {
    width: 7px;
    height: 7px;
    top: -4px;
    left: 50%;
}

.diagram-ring::after {
    width: 4px;
    height: 4px;
    bottom: 12%;
    right: 10%;
    opacity: 0.7;
}

.diagram-ring-outer {
    width: 356px;
    height: 356px;
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-left-color: rgba(255, 102, 0, 0.42);
    border-right-color: rgba(255, 102, 0, 0.18);
    animation: diagram-spin 26s linear infinite;
}

.diagram-ring-inner {
    width: 222px;
    height: 222px;
    border: 1px dashed rgba(255, 255, 255, 0.13);
    border-top-color: rgba(255, 102, 0, 0.52);
    animation: diagram-spin-reverse 18s linear infinite;
}

.diagram-connection {
    position: absolute;
    top: 50%;
    left: 50%;
    width: var(--connection-length);
    height: 1px;
    z-index: 2;
    transform-origin: left center;
    background: linear-gradient(90deg, rgba(255, 102, 0, 0.65), rgba(255, 255, 255, 0.08));
}

.diagram-connection::before {
    content: '';
    position: absolute;
    inset: -2px 0;
    opacity: 0.35;
    background: inherit;
    filter: blur(4px);
}

.connection-dev {
    transform: rotate(-132deg);
}

.connection-ia {
    transform: rotate(-48deg);
}

.connection-marketing {
    transform: rotate(48deg);
}

.connection-auto {
    transform: rotate(132deg);
}

.diagram-signal {
    position: absolute;
    top: -3px;
    left: 0;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 0 10px var(--accent), 0 0 20px var(--accent);
    animation: diagram-signal 3.8s ease-in-out infinite;
}

.connection-ia .diagram-signal {
    animation-delay: -0.95s;
}

.connection-marketing .diagram-signal {
    animation-delay: -1.9s;
}

.connection-auto .diagram-signal {
    animation-delay: -2.85s;
}

.diagram-center {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 142px;
    height: 142px;
    transform: translate(-50%, -50%);
    z-index: 8;
}

.core-halo {
    position: absolute;
    inset: -9px;
    border-radius: 38px;
    background: conic-gradient(from 45deg, transparent 0 22%, var(--accent) 28%, transparent 34% 70%, rgba(255, 255, 255, 0.35) 76%, transparent 82%);
    -webkit-mask-image: radial-gradient(circle, transparent 66%, #000 68%);
    mask-image: radial-gradient(circle, transparent 66%, #000 68%);
    filter: drop-shadow(0 0 8px rgba(255, 102, 0, 0.55));
    animation: core-halo-spin 8s linear infinite;
}

.core-node {
    position: relative;
    z-index: 2;
    width: 100%;
    height: 100%;
    padding: 16px;
    border: 1px solid rgba(255, 102, 0, 0.5);
    border-radius: 30px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 8px;
    overflow: hidden;
    background:
        linear-gradient(145deg, rgba(255, 102, 0, 0.12), transparent 48%),
        rgba(8, 8, 8, 0.92);
    box-shadow:
        0 24px 70px rgba(0, 0, 0, 0.55),
        inset 0 1px 0 rgba(255, 255, 255, 0.08),
        0 0 34px rgba(255, 102, 0, 0.12);
    backdrop-filter: blur(16px);
}

.core-eyebrow {
    color: rgba(255, 255, 255, 0.46);
    font-size: 0.52rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
}

.core-logo {
    width: 52px;
    height: auto;
    object-fit: contain;
    filter: brightness(0) invert(1);
}

.core-status {
    display: flex;
    align-items: center;
    gap: 6px;
    color: rgba(255, 255, 255, 0.68);
    font-size: 0.58rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.core-status i {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 8px var(--accent);
    animation: core-status-pulse 1.8s ease-in-out infinite;
}

.diagram-node {
    position: absolute;
    z-index: 6;
    width: 198px;
    min-height: 112px;
    padding: 15px 16px 14px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 18px;
    overflow: hidden;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.055), transparent 52%),
        rgba(10, 10, 10, 0.88);
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.38);
    backdrop-filter: blur(14px);
    scale: 1;
    transition: scale 0.24s cubic-bezier(0.22, 1, 0.36, 1);
    animation: none;
}

.diagram-node::before {
    content: '';
    position: absolute;
    inset: 0;
    opacity: 0;
    background: radial-gradient(circle at 85% 10%, rgba(255, 102, 0, 0.2), transparent 46%);
    transition: opacity 0.4s ease;
}

.tech-diagram.is-active .diagram-node {
    animation:
        diagram-node-focus 12s ease-in-out var(--node-delay) infinite,
        diagram-node-float var(--float-duration, 6.4s) ease-in-out 0s infinite;
}

.tech-diagram .diagram-node:hover {
    scale: 1.035;
}

.diagram-node-top {
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.node-index {
    color: rgba(255, 255, 255, 0.34);
    font-size: 0.58rem;
    font-weight: 700;
    letter-spacing: 0.18em;
}

.node-code {
    color: var(--accent);
    font-family: monospace;
    font-size: 0.82rem;
    font-weight: 700;
    text-shadow: 0 0 12px rgba(255, 102, 0, 0.45);
}

.diagram-node h3 {
    position: relative;
    margin: 0 0 4px;
    color: #fff;
    font-family: var(--font-heading);
    font-size: 0.96rem;
    font-weight: 600;
    letter-spacing: 0.01em;
}

.diagram-node p {
    position: relative;
    margin: 0;
    color: rgba(255, 255, 255, 0.48);
    font-size: 0.68rem;
    line-height: 1.4;
}

.node-activity {
    position: absolute;
    right: 15px;
    bottom: 13px;
    display: flex;
    align-items: flex-end;
    gap: 2px;
    height: 13px;
}

.node-activity i {
    width: 2px;
    height: 36%;
    border-radius: 2px;
    background: rgba(255, 102, 0, 0.72);
    transform-origin: bottom;
    animation: node-activity 1.2s ease-in-out infinite alternate;
}

.node-activity i:nth-child(2) {
    height: 80%;
    animation-delay: -0.7s;
}

.node-activity i:nth-child(3) {
    height: 55%;
    animation-delay: -0.35s;
}

.node-activity i:nth-child(4) {
    height: 100%;
    animation-delay: -0.95s;
}

.node-dev {
    --float-x: 16px;
    --float-y: 11px;
    --float-rotation: 0.9deg;
    --float-duration: 5.2s;
    top: 12px;
    left: 0;
}

.node-ia {
    --float-x: -13px;
    --float-y: 16px;
    --float-rotation: -0.8deg;
    --float-duration: 5.8s;
    top: 12px;
    right: 0;
}

.node-marketing {
    --float-x: -17px;
    --float-y: -11px;
    --float-rotation: 0.75deg;
    --float-duration: 5.4s;
    right: 0;
    bottom: 12px;
}

.node-auto {
    --float-x: 14px;
    --float-y: -15px;
    --float-rotation: -0.85deg;
    --float-duration: 6s;
    left: 0;
    bottom: 12px;
}

@keyframes diagram-spin {
    to {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

@keyframes diagram-spin-reverse {
    to {
        transform: translate(-50%, -50%) rotate(-360deg);
    }
}

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

@keyframes diagram-signal {
    0% {
        opacity: 0;
        transform: translateX(0) scale(0.5);
    }

    18%,
    78% {
        opacity: 1;
    }

    100% {
        opacity: 0;
        transform: translateX(calc(var(--connection-length) - 7px)) scale(1);
    }
}

@keyframes diagram-node-focus {
    0%,
    18%,
    100% {
        border-color: var(--node-idle-border);
        box-shadow: var(--node-idle-shadow);
    }

    6%,
    12% {
        border-color: rgba(255, 102, 0, 0.62);
        box-shadow: var(--node-active-shadow);
    }
}

@keyframes diagram-node-float {
    0%,
    100% {
        transform: translate3d(0, 0, 0) rotate(0);
    }

    50% {
        transform: translate3d(var(--float-x), var(--float-y), 0) rotate(var(--float-rotation));
    }
}

@keyframes core-status-pulse {
    50% {
        opacity: 0.35;
        transform: scale(0.72);
    }
}

@keyframes node-activity {
    to {
        transform: scaleY(0.35);
        opacity: 0.4;
    }
}

@keyframes diagram-scan {
    0%,
    12% {
        opacity: 0;
        transform: translateY(0);
    }

    24% {
        opacity: 0.65;
    }

    72% {
        opacity: 0.15;
    }

    84%,
    100% {
        opacity: 0;
        transform: translateY(var(--scan-distance));
    }
}

@media (prefers-reduced-motion: reduce) {
    .tech-diagram::after,
    .diagram-ring,
    .core-halo,
    .core-status i,
    .diagram-signal,
    .diagram-node,
    .node-activity i {
        animation: none !important;
    }
}

/* Projects */
.projects-section {
    display: block;
    height: 500vh;
    height: 500svh;
    min-height: 500vh;
    min-height: 500svh;
}

.projects-sticky {
    position: sticky;
    top: 0;
    width: 100%;
    height: 100vh;
    height: 100svh;
    overflow: hidden;
    background: radial-gradient(circle at 78% 48%, rgba(255, 102, 0, 0.12), transparent 32%);
}

.projects-stage {
    height: 100%;
    padding: clamp(50px, 7vh, 80px) 0 clamp(36px, 5vh, 60px);
    display: flex;
    align-items: center;
    position: relative;
}

.projects-gallery {
    width: 100%;
    height: 100%;
    min-height: 0;
    position: relative;
    perspective: 1200px;
}

.project-card {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border-radius: 34px;
    overflow: hidden;
    isolation: isolate;
    background: #090a0c;
    border: 1px solid rgba(255, 255, 255, 0.12);
    display: block;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    box-shadow:
        0 0 72px rgba(0, 0, 0, 0.18),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
    will-change: transform, opacity;
}

.project-card::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
    opacity: 0.2;
    background: repeating-linear-gradient(
        0deg,
        transparent 0,
        transparent 3px,
        rgba(255, 255, 255, 0.025) 4px
    );
    mix-blend-mode: soft-light;
}

.project-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 8%;
    right: 8%;
    z-index: 5;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent) 28%, var(--accent) 72%, transparent);
    box-shadow: 0 0 20px rgba(255, 102, 0, 0.45);
    opacity: 0.78;
}

.project-card:first-child {
    opacity: 1;
    visibility: visible;
}

.project-card:hover,
.project-card:focus-visible {
    border-color: rgba(255, 102, 0, 0.7);
    box-shadow:
        0 0 78px rgba(0, 0, 0, 0.22),
        0 0 34px rgba(255, 102, 0, 0.13),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
    outline: none;
}

.project-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
    z-index: 1;
}

.project-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(8, 9, 11, 0.03) 0 28%, rgba(8, 9, 11, 0.36) 43%, rgba(8, 9, 11, 0.9) 66%, rgba(8, 9, 11, 0.98) 100%),
        radial-gradient(circle at 24% 45%, transparent 0 20%, rgba(6, 7, 9, 0.18) 54%, rgba(6, 7, 9, 0.56) 100%);
}

.project-card:hover .project-bg {
    transform: scale(1.04);
}

.project-content {
    position: absolute;
    inset: 0 0 0 42%;
    z-index: 4;
    min-width: 0;
    padding: clamp(36px, 4.5vw, 68px) clamp(34px, 5vw, 76px);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.project-tag {
    display: flex;
    align-items: center;
    gap: 9px;
    color: var(--accent);
    font-size: 0.64rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2.8px;
    margin-bottom: 16px;
}

.project-tag::before {
    content: '';
    width: 7px;
    height: 7px;
    flex: 0 0 auto;
    border: 1px solid var(--accent);
    transform: rotate(45deg);
    box-shadow: 0 0 10px rgba(255, 102, 0, 0.5);
}

.project-content h3 {
    font-family: var(--font-heading);
    max-width: 720px;
    font-size: clamp(2rem, 3.65vw, 3.75rem);
    font-weight: 600;
    margin-bottom: 18px;
    line-height: 1.01;
    letter-spacing: -0.035em;
    text-wrap: balance;
}

.project-lead {
    color: var(--text-secondary);
    font-size: clamp(0.88rem, 1.05vw, 1.02rem);
    line-height: 1.68;
    max-width: 560px;
}

.project-details {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0;
    margin-top: clamp(22px, 3.2vh, 36px);
    padding: 18px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.11);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.project-details > div {
    padding: 0 20px;
}

.project-details > div:first-child {
    padding-left: 0;
}

.project-details > div + div {
    border-left: 1px solid rgba(255, 255, 255, 0.1);
}

.project-details span {
    display: block;
    color: var(--accent);
    font-size: 0.58rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 7px;
}

.project-details p {
    color: var(--text-secondary);
    font-size: 0.74rem;
    line-height: 1.58;
}

.project-footer {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 18px;
    margin-top: clamp(18px, 2.7vh, 30px);
}

.project-tech-list {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}

.project-tech-list span {
    padding: 6px 11px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.035);
    color: var(--text-secondary);
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 0.58rem;
    letter-spacing: 0.35px;
}

.project-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding-bottom: 5px;
    color: var(--text-primary);
    border-bottom: 1px solid rgba(255, 102, 0, 0.62);
    font-size: 0.66rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1.6px;
    white-space: nowrap;
    transition: color 0.3s ease, border-color 0.3s ease;
}

.project-cta-icon {
    color: var(--accent);
    margin-left: 0;
    font-size: 0.92rem;
    transition: transform 0.3s ease;
}

.project-card:hover .project-cta-icon {
    transform: translate(3px, -3px);
}

.project-number {
    position: absolute;
    left: clamp(28px, 4vw, 58px);
    bottom: clamp(18px, 3vh, 32px);
    z-index: 3;
    color: rgba(255, 255, 255, 0.12);
    font-family: var(--font-heading);
    font-size: clamp(4rem, 8vw, 8rem);
    font-weight: 700;
    line-height: 0.78;
    letter-spacing: -0.08em;
    text-shadow: 0 0 30px rgba(255, 102, 0, 0.08);
}

.projects-reduced-motion {
    height: auto;
    min-height: 0;
}

.projects-reduced-motion .projects-sticky {
    position: relative;
    height: auto;
    min-height: 100vh;
    overflow: visible;
}

.projects-reduced-motion .projects-stage {
    min-height: 100vh;
}

.projects-reduced-motion .projects-gallery {
    display: grid;
    height: auto;
    gap: 24px;
}

.projects-reduced-motion .project-card {
    position: relative;
    min-height: 520px;
    opacity: 1;
    visibility: visible;
    transform: none;
}

/* Philosophy */
.philosophy-section {
    min-height: clamp(320px, 48vh, 500px);
    align-items: flex-end;
    text-align: center;
}

.philosophy-content {
    max-width: 800px;
}

.philosophy-quote {
    position: relative;
    font-family: var(--font-heading);
    font-size: clamp(1rem, 2.5vw, 1.8rem);
    /* Smaller font overall */
    font-weight: 300;
    font-style: italic;
    line-height: 1.8;
    /* Uniform line height */
    color: var(--text-primary);
    margin-bottom: 30px;
    padding: 0 40px;
    /* Space for quote marks */
    display: inline-block;
}

.philosophy-quote::before {
    content: '"';
    position: absolute;
    left: -10px;
    top: -20px;
    color: var(--accent);
    font-size: 4rem;
    line-height: 1;
    opacity: 0.3;
}

.philosophy-author {
    color: var(--accent);
    font-size: 1.2rem;
    letter-spacing: 2px;
    text-transform: uppercase;
}

/* Process: scroll-driven card deck */
.method-deck-section {
    --method-progress-value: 0;
    position: relative;
    min-height: 360svh;
    overflow: clip;
}

.method-deck-section::before {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        radial-gradient(circle at 74% 44%, rgba(255, 102, 0, 0.085), transparent 25%),
        linear-gradient(180deg, transparent, rgba(255, 102, 0, 0.018) 48%, transparent);
}

.method-deck-sticky {
    position: sticky;
    top: 0;
    z-index: 2;
    display: flex;
    flex-direction: column;
    width: min(90%, 1240px);
    height: 100svh;
    min-height: 650px;
    margin: 0 auto;
    padding: clamp(68px, 8vh, 90px) 0 clamp(42px, 6vh, 64px);
}

.method-deck-layout {
    display: grid;
    grid-template-columns: minmax(280px, 0.72fr) minmax(520px, 1.28fr);
    flex: 1 1 auto;
    gap: clamp(42px, 6vw, 94px);
    align-items: center;
    min-height: 0;
}

.method-deck-intro {
    position: relative;
    align-self: center;
    min-width: 0;
}

.method-code {
    display: block;
    margin-bottom: 18px;
    color: rgba(255, 255, 255, 0.38);
    font-family: var(--font-heading);
    font-size: 0.6rem;
    font-weight: 700;
    letter-spacing: 0.2em;
}

.method-title {
    max-width: 520px;
    margin: 0;
    color: var(--text-primary);
    font-family: var(--font-heading);
    font-size: clamp(3rem, 4.65vw, 4.9rem);
    font-weight: 700;
    line-height: 0.88;
    letter-spacing: -0.065em;
}

.method-title-line,
.method-title-accent {
    display: block;
}

.method-title-accent {
    color: var(--accent);
}

.method-summary {
    max-width: 430px;
    margin: 24px 0 0;
    color: rgba(255, 255, 255, 0.62);
    font-size: clamp(0.9rem, 1.08vw, 1.02rem);
    line-height: 1.7;
}

.method-deck-readout {
    display: grid;
    grid-template-columns: auto minmax(90px, 1fr) auto;
    gap: 13px;
    align-items: center;
    width: min(100%, 360px);
    margin-top: 30px;
    color: rgba(255, 255, 255, 0.34);
    font-family: var(--font-heading);
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.16em;
}

.method-deck-current {
    color: var(--accent);
    font: inherit;
}

.method-deck-progress {
    position: relative;
    height: 1px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.12);
}

.method-deck-progress i {
    position: absolute;
    inset: 0;
    background: var(--accent);
    transform: scaleX(var(--method-progress-value));
    transform-origin: left center;
    will-change: transform;
}

.method-deck-nav {
    display: flex;
    gap: 8px;
    margin-top: 20px;
}

.method-deck-nav button {
    position: relative;
    display: grid;
    place-items: center;
    width: 38px;
    height: 34px;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 999px;
    color: rgba(255, 255, 255, 0.42);
    background: rgba(255, 255, 255, 0.025);
    font-family: var(--font-heading);
    font-size: 0.55rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    cursor: pointer;
    transition:
        width 0.28s cubic-bezier(0.22, 1, 0.36, 1),
        color 0.25s ease,
        border-color 0.25s ease,
        background 0.25s ease;
}

.method-deck-nav button:hover,
.method-deck-nav button:focus-visible,
.method-deck-nav button.is-active {
    width: 56px;
    border-color: rgba(255, 102, 0, 0.72);
    color: var(--accent);
    background: rgba(255, 102, 0, 0.13);
    outline: none;
}

.method-deck-stage {
    position: relative;
    isolation: isolate;
    display: grid;
    place-items: center;
    width: 100%;
    height: min(68vh, 630px);
    min-height: 500px;
    perspective: 1500px;
}

.method-deck-stage::before,
.method-deck-stage::after {
    content: '';
    position: absolute;
    left: 50%;
    top: 50%;
    z-index: -2;
    pointer-events: none;
    transform: translate(-50%, -50%);
}

.method-deck-stage::before {
    width: min(72vw, 690px);
    aspect-ratio: 1;
    border: 1px solid rgba(255, 255, 255, 0.055);
    border-radius: 50%;
    box-shadow:
        0 0 0 70px rgba(255, 255, 255, 0.012),
        0 0 0 140px rgba(255, 255, 255, 0.008);
}

.method-deck-stage::after {
    width: min(90%, 720px);
    height: min(76%, 470px);
    opacity: 0.34;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.055) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.055) 1px, transparent 1px);
    background-size: 42px 42px;
    mask-image: radial-gradient(circle, #000 20%, transparent 72%);
}

.method-deck-stack {
    position: relative;
    width: min(86%, 540px);
    height: clamp(390px, 52vh, 500px);
    transform-style: preserve-3d;
}

.method-deck-card {
    position: absolute;
    inset: 0;
    isolation: isolate;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    padding: clamp(25px, 3vw, 38px);
    border: 1px solid rgba(255, 255, 255, 0.11);
    border-radius: clamp(22px, 2.3vw, 30px);
    color: #fff;
    background:
        radial-gradient(circle at var(--card-glow-x, 15%) 8%, rgba(255, 102, 0, 0.16), transparent 34%),
        linear-gradient(145deg, rgba(25, 25, 25, 0.985), rgba(7, 7, 7, 0.995));
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.055),
        0 24px 70px rgba(0, 0, 0, 0.34);
    opacity: 0.9;
    transform: translate3d(0, 0, 0);
    transform-origin: 50% 86%;
    will-change: transform, opacity;
    backface-visibility: hidden;
}

.method-deck-card:nth-child(1) {
    --card-glow-x: 12%;
    z-index: 4;
}

.method-deck-card:nth-child(2) {
    --card-glow-x: 38%;
    z-index: 3;
}

.method-deck-card:nth-child(3) {
    --card-glow-x: 65%;
    z-index: 2;
}

.method-deck-card:nth-child(4) {
    --card-glow-x: 88%;
    z-index: 1;
}

.method-deck-card::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    opacity: 0.32;
    background:
        repeating-linear-gradient(0deg, transparent 0 7px, rgba(255, 255, 255, 0.018) 8px),
        linear-gradient(120deg, transparent 0 58%, rgba(255, 102, 0, 0.045) 58% 58.4%, transparent 58.4%);
}

.method-deck-card::after {
    content: '';
    position: absolute;
    left: 0;
    top: -12%;
    width: 100%;
    height: 1px;
    pointer-events: none;
    opacity: 0;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
}

.method-deck-card.is-active {
    border-color: rgba(255, 102, 0, 0.48);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.08),
        0 32px 90px rgba(0, 0, 0, 0.44),
        0 0 45px rgba(255, 102, 0, 0.075);
}

.method-deck-card.is-active::after {
    opacity: 0.7;
    animation: method-card-scan 3.8s linear infinite;
}

@keyframes method-card-scan {
    from {
        top: -5%;
    }

    to {
        top: 105%;
    }
}

.method-deck-card-top {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 18px;
    align-items: start;
    padding-bottom: 22px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.085);
}

.method-deck-card-number {
    color: var(--accent);
    font-family: var(--font-heading);
    font-size: clamp(2.5rem, 4.6vw, 4.2rem);
    font-weight: 700;
    line-height: 0.76;
    letter-spacing: -0.08em;
}

.method-deck-card-status {
    margin-top: 3px;
    color: rgba(255, 255, 255, 0.72);
    font-family: var(--font-heading);
    font-size: 0.58rem;
    font-weight: 700;
    line-height: 1.4;
    letter-spacing: 0.17em;
}

.method-deck-card-code {
    display: grid;
    place-items: center;
    min-width: 38px;
    height: 24px;
    padding: 0 8px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 999px;
    color: rgba(255, 255, 255, 0.4);
    font-family: var(--font-heading);
    font-size: 0.48rem;
    font-weight: 700;
    letter-spacing: 0.12em;
}

.method-deck-card-content {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    justify-content: center;
    min-height: 0;
    text-align: left;
}

.method-deck-card-content h3 {
    max-width: 440px;
    margin: 0 0 16px;
    color: #fff;
    font-family: var(--font-heading);
    font-size: clamp(2rem, 3.7vw, 3.25rem);
    font-weight: 600;
    line-height: 0.96;
    letter-spacing: -0.055em;
}

.method-deck-card-content p {
    max-width: 430px;
    margin: 0;
    color: rgba(255, 255, 255, 0.61);
    font-size: clamp(0.78rem, 1vw, 0.9rem);
    line-height: 1.62;
}

.method-deck-card-footer {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.085);
}

.method-card-chip {
    padding: 7px 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 999px;
    color: rgba(255, 255, 255, 0.5);
    background: rgba(255, 255, 255, 0.025);
    font-family: var(--font-heading);
    font-size: 0.52rem;
    font-weight: 600;
    letter-spacing: 0.08em;
}

.method-deck-hint {
    position: absolute;
    right: 2%;
    bottom: 2px;
    display: flex;
    gap: 12px;
    align-items: center;
    margin: 0;
    color: rgba(255, 255, 255, 0.34);
    font-family: var(--font-heading);
    font-size: 0.52rem;
    font-weight: 700;
    letter-spacing: 0.16em;
}

.method-deck-hint i {
    position: relative;
    display: block;
    width: 42px;
    height: 1px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.14);
}

.method-deck-hint i::after {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--accent);
    transform: translateX(calc((var(--method-progress-value) * 100%) - 100%));
}

html[data-theme="light"] .method-deck-section::before {
    background:
        radial-gradient(circle at 74% 44%, rgba(255, 102, 0, 0.1), transparent 25%),
        linear-gradient(180deg, transparent, rgba(255, 102, 0, 0.025) 48%, transparent);
}

html[data-theme="light"] .method-code,
html[data-theme="light"] .method-summary,
html[data-theme="light"] .method-deck-readout,
html[data-theme="light"] .method-deck-hint {
    color: rgba(23, 23, 23, 0.5);
}

html[data-theme="light"] .method-deck-progress,
html[data-theme="light"] .method-deck-hint i {
    background: rgba(23, 23, 23, 0.14);
}

html[data-theme="light"] .method-deck-nav button {
    border-color: rgba(23, 23, 23, 0.14);
    color: rgba(23, 23, 23, 0.48);
    background: rgba(255, 255, 255, 0.4);
}

html[data-theme="light"] .method-deck-nav button:hover,
html[data-theme="light"] .method-deck-nav button:focus-visible,
html[data-theme="light"] .method-deck-nav button.is-active {
    border-color: rgba(255, 102, 0, 0.72);
    color: #c94f00;
    background: rgba(255, 102, 0, 0.1);
}

html[data-theme="light"] .method-deck-stage::before {
    border-color: rgba(23, 23, 23, 0.07);
    box-shadow:
        0 0 0 70px rgba(23, 23, 23, 0.018),
        0 0 0 140px rgba(23, 23, 23, 0.01);
}

html[data-theme="light"] .method-deck-stage::after {
    background-image:
        linear-gradient(rgba(23, 23, 23, 0.06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(23, 23, 23, 0.06) 1px, transparent 1px);
}

html[data-theme="light"] .method-deck-card {
    color: #171717;
    border-color: rgba(23, 23, 23, 0.12);
    background:
        radial-gradient(circle at var(--card-glow-x, 15%) 8%, rgba(255, 102, 0, 0.16), transparent 34%),
        linear-gradient(145deg, rgba(255, 253, 249, 0.99), rgba(238, 232, 223, 0.99));
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.92),
        0 24px 60px rgba(64, 46, 28, 0.15);
}

html[data-theme="light"] .method-deck-card.is-active {
    border-color: rgba(255, 102, 0, 0.5);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.94),
        0 30px 70px rgba(64, 46, 28, 0.18),
        0 0 40px rgba(255, 102, 0, 0.07);
}

html[data-theme="light"] .method-deck-card-top,
html[data-theme="light"] .method-deck-card-footer {
    border-color: rgba(23, 23, 23, 0.1);
}

html[data-theme="light"] .method-deck-card-status {
    color: rgba(23, 23, 23, 0.65);
}

html[data-theme="light"] .method-deck-card-code,
html[data-theme="light"] .method-card-chip {
    border-color: rgba(23, 23, 23, 0.12);
    color: rgba(23, 23, 23, 0.52);
    background: rgba(23, 23, 23, 0.025);
}

html[data-theme="light"] .method-deck-card-content h3 {
    color: #171717;
}

html[data-theme="light"] .method-deck-card-content p {
    color: rgba(23, 23, 23, 0.62);
}

@media (max-width: 900px) {
    .method-deck-sticky {
        width: min(94%, 760px);
    }

    .method-deck-layout {
        grid-template-columns: minmax(230px, 0.7fr) minmax(420px, 1.3fr);
        gap: 28px;
    }

    .method-deck-stack {
        width: min(92%, 490px);
    }
}

@media (max-width: 768px) {
    .method-deck-sticky {
        width: 100%;
        height: 100svh;
        min-height: 0;
        padding: 62px 14px 28px;
    }

    .method-deck-layout {
        grid-template-columns: 1fr;
        grid-template-rows: auto minmax(0, 1fr);
        gap: 8px;
        align-items: stretch;
    }

    .method-deck-intro {
        align-self: auto;
        text-align: center;
    }

    .method-code {
        display: none;
    }

    .method-title {
        margin-inline: auto;
        font-size: clamp(2rem, 9.8vw, 2.8rem);
        line-height: 0.86;
    }

    .method-summary {
        max-width: 360px;
        margin: 10px auto 0;
        font-size: 0.72rem;
        line-height: 1.48;
    }

    .method-deck-readout {
        width: min(100%, 250px);
        margin: 12px auto 0;
    }

    .method-deck-nav {
        justify-content: center;
        margin-top: 10px;
    }

    .method-deck-nav button {
        width: 34px;
        height: 30px;
        font-size: 0.5rem;
    }

    .method-deck-nav button:hover,
    .method-deck-nav button:focus-visible,
    .method-deck-nav button.is-active {
        width: 46px;
    }

    .method-deck-stage {
        height: auto;
        min-height: 0;
    }

    .method-deck-stage::before {
        width: min(118vw, 470px);
        box-shadow:
            0 0 0 42px rgba(255, 255, 255, 0.012),
            0 0 0 84px rgba(255, 255, 255, 0.008);
    }

    .method-deck-stage::after {
        width: 100%;
        height: 90%;
        background-size: 32px 32px;
    }

    .method-deck-stack {
        width: min(calc(100% - 42px), 370px);
        height: clamp(310px, 44svh, 390px);
    }

    .method-deck-card {
        padding: 20px 18px;
        border-radius: 22px;
    }

    .method-deck-card-top {
        gap: 10px;
        padding-bottom: 14px;
    }

    .method-deck-card-number {
        font-size: clamp(2rem, 11vw, 2.8rem);
    }

    .method-deck-card-status {
        margin-top: 1px;
        font-size: 0.48rem;
        letter-spacing: 0.12em;
    }

    .method-deck-card-code {
        min-width: 32px;
        height: 21px;
        font-size: 0.42rem;
    }

    .method-deck-card-content h3 {
        margin-bottom: 10px;
        font-size: clamp(1.55rem, 7vw, 2rem);
    }

    .method-deck-card-content p {
        font-size: 0.7rem;
        line-height: 1.48;
    }

    .method-deck-card-footer {
        gap: 5px;
        padding-top: 13px;
    }

    .method-card-chip {
        padding: 6px 8px;
        font-size: 0.46rem;
    }

    .method-deck-hint {
        display: none;
    }
}

@media (max-width: 768px) and (max-height: 700px) {
    .method-deck-sticky {
        padding-top: 56px;
    }

    .method-summary {
        display: none;
    }

    .method-deck-readout {
        margin-top: 8px;
    }

    .method-deck-nav {
        margin-top: 7px;
    }

    .method-deck-stack {
        height: clamp(286px, 46svh, 330px);
    }
}

@media (prefers-reduced-motion: reduce) {
    .method-deck-section {
        min-height: 0;
        padding: 100px 5%;
        overflow: visible;
    }

    .method-deck-sticky {
        position: relative;
        width: min(90%, 1000px);
        height: auto;
        min-height: 0;
        padding: 0;
    }

    .method-deck-layout {
        grid-template-columns: 1fr;
    }

    .method-deck-stage {
        height: auto;
        min-height: 0;
    }

    .method-deck-stack {
        display: grid;
        width: 100%;
        height: auto;
        gap: 16px;
    }

    .method-deck-card {
        position: relative;
        min-height: 360px;
        opacity: 1 !important;
        transform: none !important;
    }

    .method-deck-card.is-active::after {
        animation: none;
    }

    .method-deck-readout,
    .method-deck-nav,
    .method-deck-hint,
    .method-deck-stage::before,
    .method-deck-stage::after {
        display: none;
    }
}

/* FAQ */
.faq-section {
    padding: 50px 0 110px;
    overflow: hidden;
}

.faq-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: clamp(34px, 5vw, 58px);
    position: relative;
}

.faq-heading {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    padding: 0;
    text-align: center;
}

.faq-heading .section-title {
    margin-bottom: 24px;
}

.faq-heading p {
    max-width: 560px;
    margin: 0 auto;
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.7;
    text-align: center;
}

.faq-list {
    display: grid;
    width: 100%;
    max-width: 960px;
    gap: 12px;
    counter-reset: faq-counter;
}

.faq-item {
    position: relative;
    counter-increment: faq-counter;
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.025);
    overflow: hidden;
    transition: border-color 0.35s ease, background 0.35s ease, box-shadow 0.35s ease;
}

.faq-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 2px;
    height: 100%;
    background: var(--accent);
    transform: scaleY(0);
    transform-origin: center;
    box-shadow: 0 0 15px var(--accent-glow);
    transition: transform 0.35s ease;
}

.faq-item:hover,
.faq-item[open] {
    border-color: rgba(255, 102, 0, 0.48);
    background:
        linear-gradient(90deg, rgba(255, 102, 0, 0.06), transparent 44%),
        rgba(255, 255, 255, 0.035);
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.18);
}

.faq-item:hover::before,
.faq-item[open]::before {
    transform: scaleY(1);
}

.faq-item summary {
    position: relative;
    min-height: 88px;
    padding: 22px 24px;
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr) 34px;
    align-items: center;
    gap: 24px;
    color: var(--glitch-base-color);
    font-family: var(--font-heading);
    font-size: clamp(0.95rem, 1.5vw, 1.2rem);
    line-height: 1.35;
    cursor: pointer;
    list-style: none;
    transition: color 0.3s ease;
}

.faq-item summary::before {
    content: counter(faq-counter, decimal-leading-zero);
    position: static;
    grid-column: 1;
    justify-self: start;
    color: var(--accent);
    font-family: var(--font-heading);
    font-size: 0.68rem;
    letter-spacing: 1.5px;
    opacity: 0.85;
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item summary:hover,
.faq-item[open] summary {
    color: var(--accent);
}

.faq-item summary > span:first-of-type {
    grid-column: 2;
    text-align: center;
}

.faq-icon {
    grid-column: 3;
    justify-self: end;
    position: relative;
    width: 30px;
    height: 30px;
    flex: 0 0 30px;
    border: 1px solid rgba(255, 102, 0, 0.45);
    border-radius: 50%;
    color: var(--accent);
    background: rgba(255, 102, 0, 0.05);
    transition: background 0.3s ease, transform 0.3s ease;
}

.faq-item[open] .faq-icon {
    background: var(--accent);
    color: #080808;
    transform: rotate(180deg);
}

.faq-icon::before,
.faq-icon::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 14px;
    height: 1px;
    background: currentColor;
    transform: translate(-50%, -50%);
    transition: transform 0.3s ease;
}

.faq-icon::after {
    transform: translate(-50%, -50%) rotate(90deg);
}

.faq-item[open] .faq-icon::after {
    transform: translate(-50%, -50%) rotate(0deg);
}

.faq-answer {
    padding: 0 76px 28px;
    text-align: center;
    animation: faq-reveal 0.35s ease both;
}

.faq-answer p {
    max-width: 680px;
    margin: 0 auto;
    color: var(--text-secondary);
    font-size: 0.92rem;
    line-height: 1.75;
}

@keyframes faq-reveal {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }

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

/* Footer Simple */
.site-footer {
    position: relative;
    width: 100%;
    padding: 100px 0 50px;
    background: transparent;
    z-index: 10;
}

.footer-reveal-content {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.footer-card {
    width: 90%;
    max-width: 700px;
    background: rgba(10, 10, 10, 0.9);
    /* Mayor contraste oscuro frente al nuevo background */
    backdrop-filter: blur(30px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 30px;
    padding: 40px 30px;
    text-align: center;
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.6);
    pointer-events: auto;
    transition: var(--transition);
}

.footer-card:hover {
    transform: translateY(-8px);
    border-color: rgba(255, 102, 0, 0.3);
    /* Restore orange border */
    box-shadow: 0 50px 120px rgba(0, 0, 0, 1);
}

.footer-info {
    margin-bottom: 30px;
}

.footer-name {
    font-family: 'Planet Kosmos', sans-serif;
    font-size: 1.1rem;
    /* Mucho más pequeño para que quepa en una línea */
    font-weight: normal;
    margin-bottom: 5px;
    color: white;
    letter-spacing: 2px;
    transition: var(--transition);
}

.footer-card:hover .footer-name {
    transform: scale(1.05);
    color: var(--accent);
    /* Turn orange on hover */
    filter: drop-shadow(0 0 10px rgba(255, 102, 0, 0.3));
}

.footer-phrase {
    color: var(--text-secondary);
    font-size: 0.9rem;
    letter-spacing: 0.5px;
    opacity: 0.8;
    transition: var(--transition);
}

.footer-card:hover .footer-phrase {
    opacity: 1;
    color: white;
}

.footer-links {
    display: flex;
    gap: 15px;
    /* Menor gap */
    margin-bottom: 30px;
    justify-content: center;
    flex-wrap: wrap;
}

.footer-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: var(--transition);
}

.footer-btn svg {
    padding: 10px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 10px;
    width: 40px;
    /* Un poco más pequeños */
    height: 40px;
    color: var(--text-secondary);
    transition: var(--transition);
}

.footer-btn:hover {
    transform: translateY(-3px);
}

.footer-btn:hover svg {
    color: var(--accent);
    background: rgba(255, 102, 0, 0.1);
    box-shadow: 0 0 25px rgba(255, 102, 0, 0.2);
    border: 1px solid var(--accent);
}

.footer-copy {
    color: var(--text-secondary);
    /* Color más claro para legibilidad */
    font-size: 0.7rem;
    letter-spacing: 0.5px;
    margin-top: 30px;
    text-align: center;
    opacity: 0.6;
}

/* Modal System */
.project-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(5px);
}

.modal-window {
    position: relative;
    width: 90%;
    max-width: 800px;
    max-height: 80vh;
    padding: 60px 40px;
    z-index: 2;
    overflow-y: auto;
    transform: translateY(30px);
    opacity: 0;
    scrollbar-width: thin;
    scrollbar-color: #444 transparent;
}

.modal-window::-webkit-scrollbar {
    width: 6px;
}

.modal-window::-webkit-scrollbar-thumb {
    background: #444;
    /* Grey thumb */
    border-radius: 10px;
}

.modal-window::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.03);
}

.modal-loader {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(255, 102, 0, 0.1);
    border-top: 3px solid var(--accent);
    border-radius: 50%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: modal-spin 1s linear infinite;
    display: none;
}

@keyframes modal-spin {
    from { transform: translate(-50%, -50%) rotate(0deg); }
    to { transform: translate(-50%, -50%) rotate(360deg); }
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: transparent;
    border: none;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    line-height: 1;
    transition: var(--transition);
}

.modal-close:hover {
    color: var(--accent);
    transform: rotate(90deg);
}

.modal-content-inner h1,
.modal-content-inner h2,
.modal-content-inner h3 {
    font-family: var(--font-heading);
    color: var(--accent);
    margin-bottom: 30px;
    line-height: 1.2;
}

.modal-content-inner h1 {
    font-size: 3rem;
}

.modal-content-inner h2 {
    font-size: 2.5rem;
}

.modal-content-inner h3 {
    font-size: 1.5rem;
}

.modal-body {
    color: var(--text-secondary);
    line-height: 1.8;
    font-size: 1.1rem;
}

.modal-body p {
    margin-bottom: 25px;
}

.modal-body p:last-child {
    margin-bottom: 0;
}

.modal-body ul {
    margin-top: 20px;
    list-style: none;
}

.modal-body li {
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.modal-body li::before {
    content: '→';
    color: var(--accent);
}

/* Legal Pages Styling */
.legal-page {
    background-color: var(--bg-color);
}

.legal-container {
    max-width: 900px;
    margin: 80px auto;
    padding: 60px;
}

.legal-container h1 {
    font-family: var(--font-heading);
    color: var(--accent);
    margin-bottom: 40px;
}

.legal-container h2 {
    margin: 30px 0 15px;
    font-size: 1.4rem;
    color: white;
}

.legal-container p {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 20px;
}

.back-link {
    display: inline-block;
    color: var(--text-secondary);
    text-decoration: none;
    margin-bottom: 40px;
    transition: var(--transition);
}

.back-link:hover {
    color: var(--accent);
}

.footer-legal {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 15px;
}

.footer-legal a {
    color: rgba(255, 255, 255, 0.4);
    text-decoration: none;
    font-size: 0.75rem;
    transition: var(--transition);
}

.footer-legal a:hover {
    color: var(--accent);
}

/* Modal Tables & Grid */
.modal-info-table {
    width: 100%;
    border-collapse: collapse;
    margin: 40px 0;
    font-size: 0.95rem;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 12px;
    overflow: hidden;
}

.modal-info-table th,
.modal-info-table td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.modal-info-table th {
    background: rgba(255, 102, 0, 0.05);
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.8rem;
}

.modal-info-table tr:last-child td {
    border-bottom: none;
}

.modal-info-table td strong {
    color: white;
}

.tech-tag-container {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}

.tech-tag {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 0.8rem;
    color: var(--text-secondary);
}

/* Logo Marquee */
.logo-marquee-section {
    width: 100%;
    overflow: hidden;
    padding: 60px 0;
    background: transparent;
    position: relative;
    z-index: 10;
}

.logo-marquee-container {
    display: flex;
    white-space: nowrap;
    width: 100%;
}

.logo-marquee-track {
    display: flex;
    /* Remove gap to prevent 50% translate desync */
    justify-content: flex-start;
    animation: scroll 40s linear infinite;
    align-items: center;
}

.logo-marquee-track img {
    height: 40px;
    width: auto;
    margin-right: 80px;
    /* Binds spacing to images to synchronize the 50% loop mathematically */
    filter: brightness(0) invert(1);
    /* Pure white */
    opacity: 0.7;
    /* Aumentada opacidad */
    transition: var(--transition);
}

.logo-marquee-track img:hover {
    opacity: 1;
    transform: scale(1.1);
    /* Reduced to prevent overlapping hitboxes */
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

@keyframes scroll-reverse {
    0% {
        transform: translateX(-50%);
    }

    100% {
        transform: translateX(0);
    }
}

.logo-marquee-track.reverse {
    animation: scroll-reverse 25s linear infinite;
}

.logo-marquee-track.reverse img {
    margin-right: 80px;
    /* Unified margin for perfect speed sync */
}

/* Special adjustments for closely related sections */
.philosophy-section .container {
    padding-top: 30px;
    /* Reducimos por encima de la frase */
    padding-bottom: 20px;
}

.contact-section {
    padding: 20px 0 100px;
    /* Reducimos por arriba de contacto */
    position: relative;
    z-index: 10;
}

.contact-section h3 {
    color: white;
    /* Changed from gradient to white */
}

/* Utilities for GSAP */
.fade-up {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

/* Responsive */
@media (max-width: 900px) {
    .about-grid {
        grid-template-columns: 1fr;
    }

    .about-text {
        max-width: 680px;
        margin: 0 auto;
        padding: 0 24px;
    }

    .footer-links {
        flex-direction: row;
        gap: 12px;
        justify-content: center;
        flex-wrap: wrap;
    }

    .footer-btn {
        width: auto;
        justify-content: center;
    }

    .tech-diagram-container {
        min-height: 520px;
    }

    .tech-diagram {
        width: min(100%, 520px);
        height: 490px;
    }

    .legal-container {
        padding: 40px 20px;
        margin: 40px 10px;
    }
}

@media (max-width: 768px) {

    html,
    body {
        max-width: 100% !important;
        /* NEVER use 100vw because it causes horizontal scroll if a vertical one exists! */
        overflow-x: clip !important;
        position: relative;
    }

    #smooth-wrapper,
    #smooth-content {
        overflow: visible !important;
        width: 100% !important;
        max-width: 100% !important;
        position: relative !important;
        left: 0;
    }

    /* Wrap the hero physically to avoid glitch overflow */
    .hero-section {
        overflow: hidden;
        max-width: 100%;
        width: 100%;
        position: relative;
    }

    .container {
        padding: 50px 0;
        overflow-x: hidden;
    }

    /* Elevar el contenedor para que la caja del Glitch no golpee el borde inferior (100vh) */
    .hero-content {
        justify-content: flex-end;
        min-height: 100svh;
        margin-top: 0;
        padding: 90px 0 98px;
    }

    .hero-portrait {
        top: calc(10svh - 20px);
        height: 80svh;
    }

    .hero-section {
        touch-action: pan-y;
    }

    .main-header {
        padding: 0 20px;
        top: 20px;
    }

    .header-actions {
        gap: 8px;
    }

    .theme-toggle {
        --toggle-shift: 27px;
        width: 62px;
        height: 32px;
    }

    .language-toggle {
        --language-shift: 28px;
        width: 62px;
        height: 32px;
        padding-inline: 3px;
    }

    .language-toggle-thumb {
        width: 27px;
        height: 24px;
    }

    .language-option {
        font-size: 0.56rem;
    }

    .theme-toggle-thumb {
        top: 3px;
        left: 4.5px;
        width: 24px;
        height: 24px;
    }

    .theme-toggle-icon {
        font-size: 0.68rem;
    }

    .theme-toggle-moon {
        left: auto;
    }

    .theme-toggle-sun {
        right: auto;
    }

    .header-btn {
        padding: 8px 15px;
        font-size: 0.65rem;
    }

    .logo-img {
        height: 35px;
    }

    .glitch-wrapper {
        display: block;
        width: 100%;
        text-align: center;
        padding: 5px 0;
    }

    .glitch::before {
        animation: glitch-tv-burst-mobile 3.1s infinite step-end;
    }

    .glitch::after {
        animation: glitch-tv-burst-2-mobile 5.7s infinite step-end;
    }

    .glitch {
        animation: glitch-color-cycle-mobile 4.3s infinite step-end;
    }

    .glitch-char {
        animation: glitch-char-damage-mobile 7.3s infinite step-end;
    }

    .hero-title {
        font-size: 2.2rem;
        letter-spacing: 2px;
        line-height: 1.1;
        display: inline-block;
        margin: 0 auto;
        white-space: pre-line;
        /* CRITICAL: Allows data-text \n to break perfectly */
    }

    .hero-title>span {
        text-align: center;
    }

    /* The space span is empty but has white-space: pre-wrap, causing a huge gap in flex-col. Hide it cleanly */
    .hero-title>span[style*="pre"] {
        display: none !important;
    }

    /* Ocultar cards de IA, automatizacion debajo del titulo en movil */
    .hero-subtitle {
        display: none !important;
    }

    .glass-panel {
        padding: 20px 15px;
    }

    .tech-diagram-container {
        min-height: 460px;
        display: flex;
        justify-content: center;
        align-items: center;
        width: 100%;
        margin-top: 20px;
    }

    .tech-diagram {
        --connection-length: 118px;
        --scan-distance: 286px;
        width: min(100%, 410px);
        height: 440px;
        max-width: 100%;
    }

    .diagram-ring-outer {
        width: 270px;
        height: 270px;
    }

    .diagram-ring-inner {
        width: 178px;
        height: 178px;
    }

    .diagram-center {
        width: 116px;
        height: 116px;
    }

    .core-node {
        padding: 12px;
        border-radius: 25px;
        gap: 6px;
    }

    .core-halo {
        inset: -7px;
        border-radius: 31px;
    }

    .core-logo {
        width: 42px;
    }

    .core-eyebrow {
        font-size: 0.43rem;
    }

    .core-status {
        font-size: 0.48rem;
    }

    .diagram-node {
        width: calc(50% - 10px);
        min-height: 104px;
        padding: 13px 13px 12px;
        border-radius: 16px;
    }

    .diagram-node h3 {
        font-size: 0.82rem;
    }

    .diagram-node p {
        max-width: calc(100% - 18px);
        font-size: 0.6rem;
    }

    .node-activity {
        right: 12px;
        bottom: 12px;
    }

    .node-dev,
    .node-ia {
        top: 2px;
    }

    .node-marketing,
    .node-auto {
        bottom: 2px;
    }

    /* Reducir ancho específico de las citas e interludios */
    .philosophy-section {
        min-height: auto;
        align-items: center;
        padding: 36px 0 0;
    }

    .philosophy-section .container {
        padding-top: 0;
        padding-bottom: 10px;
    }

    .philosophy-quote,
    .contact-section h3 {
        max-width: 80% !important;
        margin-left: auto !important;
        margin-right: auto !important;
        text-align: center;
    }

    .philosophy-quote {
        padding: 0 10px;
        font-size: 1rem;
        /* Slightly smaller for tighter layout */
    }

    .philosophy-quote::before {
        left: -15px;
        font-size: 2.5rem;
    }

    .faq-section {
        padding: 20px 0 35px;
    }

    .tools-marquee {
        padding: 22px 0 16px;
    }

    .tools-marquee + .site-footer {
        padding-top: 36px;
    }

    .faq-container {
        gap: 24px;
    }

    .faq-heading {
        margin: 0;
        padding: 0 10px;
    }

    .faq-heading .section-title {
        margin-bottom: 18px;
    }

    .faq-heading p {
        font-size: 0.85rem;
    }

    .faq-list {
        margin: 0 6px;
        gap: 9px;
    }

    .faq-item summary {
        min-height: 76px;
        padding: 17px 14px;
        grid-template-columns: 25px minmax(0, 1fr) 27px;
        gap: 10px;
        font-size: 0.9rem;
    }

    .faq-item summary::before {
        font-size: 0.58rem;
    }

    .faq-icon {
        width: 27px;
        height: 27px;
    }

    .faq-answer {
        padding: 0 42px 22px;
    }

    .faq-answer p {
        font-size: 0.82rem;
        line-height: 1.65;
    }

    /* Scroll narrativo de proyectos */
    .projects-stage {
        width: 92%;
        padding: 44px 0 28px;
        overflow: visible;
    }

    .projects-gallery {
        width: 100%;
        height: clamp(560px, 72svh, 610px);
        flex: 0 0 auto;
        padding: 0;
        overflow: visible;
    }

    .project-card {
        display: grid;
        width: 100%;
        max-width: none;
        height: 100%;
        margin: 0;
        padding: 0;
        background: #000;
        grid-template-columns: 1fr;
        grid-template-rows: minmax(170px, 38%) minmax(0, 62%);
        border-radius: 24px;
    }

    .project-card::before {
        opacity: 0.14;
    }

    .project-card::after {
        left: 12%;
        right: 12%;
    }

    .project-bg {
        position: relative;
        inset: auto;
        width: 100%;
        background-color: #000;
        background-size: cover;
        background-position: center 54%;
    }

    .project-bg::after {
        background: linear-gradient(180deg, transparent 62%, #090a0c 100%);
    }

    .project-content {
        position: relative;
        inset: auto;
        padding: 19px 20px 18px;
        justify-content: flex-start;
    }

    .project-tag {
        font-size: 0.56rem;
        gap: 7px;
        margin-bottom: 9px;
        letter-spacing: 2px;
    }

    .project-tag::before {
        width: 6px;
        height: 6px;
    }

    .project-content h3 {
        font-size: clamp(1.3rem, 6.2vw, 1.82rem);
        margin-bottom: 10px;
        line-height: 1.04;
    }

    .project-lead {
        font-size: 0.78rem;
        line-height: 1.48;
    }

    .project-details {
        gap: 0;
        margin-top: 13px;
        padding: 12px 0;
    }

    .project-details > div {
        padding: 0 10px;
    }

    .project-details > div:first-child {
        padding-left: 0;
    }

    .project-details > div + div {
        padding-right: 0;
    }

    .project-details span {
        font-size: 0.52rem;
        margin-bottom: 5px;
    }

    .project-details p {
        font-size: 0.65rem;
        line-height: 1.42;
    }

    .project-footer {
        align-items: center;
        margin-top: auto;
        padding-top: 12px;
    }

    .project-tech-list {
        gap: 5px;
    }

    .project-tech-list span {
        padding: 4px 7px;
        font-size: 0.52rem;
    }

    .project-cta {
        display: flex;
        align-items: center;
        justify-content: center;
        flex: 0 0 32px;
        width: 32px;
        height: 32px;
        padding: 0;
        gap: 0;
        letter-spacing: 0;
        border: 1px solid rgba(255, 102, 0, 0.58);
        border-radius: 50%;
        font-size: 0;
        line-height: 1;
        overflow: hidden;
    }

    .project-cta-label {
        display: none;
    }

    .project-cta > .project-cta-icon {
        position: relative;
        display: block;
        width: 12px;
        height: 12px;
        font-size: 0;
        margin-left: 0;
        transform: translate(0, 0.25px) !important;
    }

    .project-cta > .project-cta-icon::before,
    .project-cta > .project-cta-icon::after {
        content: '';
        position: absolute;
        display: block;
    }

    .project-cta > .project-cta-icon::before {
        top: calc(50% - 0.8px);
        left: 0;
        width: 13px;
        height: 1.6px;
        border-radius: 999px;
        background: var(--accent);
        transform: rotate(-45deg);
        transform-origin: center;
    }

    .project-cta > .project-cta-icon::after {
        top: 0;
        right: 0;
        width: 6px;
        height: 6px;
        border-top: 1.6px solid var(--accent);
        border-right: 1.6px solid var(--accent);
    }

    .project-card:hover .project-cta > .project-cta-icon {
        transform: translate(0, 0.25px);
    }

    .project-number {
        top: 15px;
        bottom: auto;
        left: 17px;
        color: rgba(255, 255, 255, 0.72);
        font-size: 0.7rem;
        line-height: 1;
        letter-spacing: 0.14em;
        text-shadow: 0 0 12px rgba(0, 0, 0, 0.75);
    }

    .logo-marquee-track {
        animation-duration: 15s;
    }

    .logo-marquee-track img {
        height: 25px;
        margin-right: 30px;
        /* Mobile safe-gap */
    }

    .logo-marquee-track.reverse {
        animation-duration: 12s;
    }

    .logo-marquee-track.reverse img {
        margin-right: 30px;
    }

    .footer-card {
        padding: 30px 15px;
    }

    .footer-legal {
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        width: 100%;
        max-width: 260px;
        margin: 15px auto 0;
        gap: 12px;
    }

    .footer-legal a {
        justify-self: center;
        text-align: center;
        white-space: nowrap;
    }

    .footer-name {
        font-size: 1rem !important;
        /* Force to fit on one line */
        width: 100%;
        margin: 0 auto;
        word-break: normal;
        white-space: nowrap;
        /* Disallow wrapping for the footer */
        line-height: 1.2;
    }

    .footer-phrase {
        margin-top: 15px;
        /* Adds requested separation from the footer name */
        margin-bottom: 25px;
    }

    .modal-window {
        padding: 30px 15px;
        width: 95%;
        max-height: 90vh;
    }

    .modal-content-inner h1 {
        font-size: 1.6rem;
    }

    .modal-content-inner h2 {
        font-size: 1.6rem;
    }

    .modal-content-inner h3 {
        font-size: 1.2rem;
    }

    .modal-content-inner iframe {
        min-height: 60vh;
    }
}

/* Mobile Specific Glitch Keyframes (defined globally to prevent iOS Safari bug) */
@keyframes glitch-char-damage-mobile {

    0%,
    93% {
        transform: none;
        color: inherit;
    }

    94% {
        transform: translate(-1px, 1px) rotate(2deg);
        color: var(--accent);
    }

    95% {
        transform: translate(2px, -2px) rotate(-2deg) skewX(5deg);
        color: var(--glitch-base-color);
    }

    96% {
        transform: translate(-2px, -1px) rotate(1deg);
        color: var(--accent);
    }

    97% {
        transform: translate(0) rotate(-1deg);
        color: var(--glitch-base-color);
    }

    98% {
        transform: none;
        color: inherit;
    }
}

@keyframes glitch-tv-burst-mobile {

    0%,
    75% {
        opacity: 0;
        transform: translate(0) skew(0);
        clip-path: none;
    }

    76% {
        opacity: 1;
        transform: translate(-5px, -2px) skew(5deg);
        clip-path: polygon(0 15%, 100% 15%, 100% 25%, 0 25%);
    }

    77% {
        opacity: 1;
        transform: translate(5px, 5px) skew(-5deg);
        clip-path: polygon(0 45%, 100% 45%, 100% 55%, 0 55%);
    }

    78% {
        opacity: 0;
    }

    82% {
        opacity: 1;
        transform: translate(-5px, 2px) skewX(10deg);
        clip-path: polygon(0 5%, 100% 5%, 100% 15%, 0 15%);
    }

    85%,
    100% {
        opacity: 0;
    }
}

@keyframes glitch-tv-burst-2-mobile {

    0%,
    85% {
        opacity: 0;
        transform: translate(0);
        clip-path: none;
    }

    86% {
        opacity: 1;
        transform: translate(5px, 3px) skew(-10deg);
        clip-path: polygon(0 40%, 100% 40%, 100% 50%, 0 50%);
    }

    88% {
        opacity: 1;
        transform: translate(-5px, -2px) rotate(2deg);
        clip-path: polygon(0 20%, 100% 20%, 100% 35%, 0 35%);
    }

    90% {
        opacity: 1;
        transform: translate(5px, 8px) skewX(-10deg);
        clip-path: polygon(0 75%, 100% 75%, 100% 90%, 0 90%);
    }

    92% {
        opacity: 1;
        transform: translate(-2px, -8px);
        clip-path: polygon(0 5%, 100% 5%, 100% 15%, 0 15%);
    }

    94%,
    100% {
        opacity: 0;
    }
}

@keyframes glitch-color-cycle-mobile {

    0%,
    80% {
        color: var(--glitch-base-color);
        transform: translate(0);
    }

    81% {
        color: var(--accent);
        transform: translate(-1px, 1px);
    }

    83% {
        transform: translate(1px, -1px);
    }

    85% {
        color: var(--glitch-base-color);
        transform: translate(0);
    }

    88% {
        color: var(--accent);
        transform: translate(1px, 0);
    }

    90%,
    100% {
        color: var(--glitch-base-color);
        transform: translate(0);
    }
}

/* Light theme */
html[data-theme="light"] {
    --bg-color: #f3f0ea;
    --surface-color: rgba(255, 255, 255, 0.68);
    --surface-hover: rgba(255, 102, 0, 0.09);
    --border-color: rgba(24, 24, 24, 0.12);
    --accent-glow: rgba(255, 102, 0, 0.2);
    --text-primary: #171717;
    --text-secondary: rgba(23, 23, 23, 0.72);
    --glitch-base-color: #171717;
    --node-idle-border: rgba(20, 20, 20, 0.13);
    --node-idle-shadow: 0 18px 42px rgba(58, 45, 31, 0.12);
    --node-active-shadow: 0 20px 46px rgba(58, 45, 31, 0.15), 0 0 28px rgba(255, 102, 0, 0.11);
    color-scheme: light;
}

html[data-theme="light"] body {
    background: #f3f0ea;
}

html[data-theme="light"] ::-webkit-scrollbar-track {
    background: #ece7df;
}

html[data-theme="light"] ::-webkit-scrollbar-thumb {
    background: #b9b1a7;
    border-color: #ece7df;
}

html[data-theme="light"] * {
    scrollbar-color: #aaa198 #ece7df;
}

html[data-theme="light"] .loader,
html[data-theme="light"] .curtain {
    background: #f3f0ea;
}

html[data-theme="light"] .loader-vignette {
    background: radial-gradient(circle at center, transparent 0%, rgba(226, 219, 209, 0.86) 90%);
}

html[data-theme="light"] .loader-logo {
    filter: brightness(0) drop-shadow(0 0 15px var(--accent));
}

html[data-theme="light"] .progress-container {
    background: rgba(20, 20, 20, 0.035);
}

html[data-theme="light"] #progress-text {
    color: #171717;
}

html[data-theme="light"] .canvas-container::after {
    background: radial-gradient(circle at center, transparent 0%, rgba(226, 219, 209, 0.76) 100%);
}

html[data-theme="light"] #hero-canvas {
    opacity: 0.62;
}

html[data-theme="light"] .theme-toggle {
    background: rgba(255, 255, 255, 0.68);
    border-color: var(--text-primary);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9), 0 8px 24px rgba(58, 45, 31, 0.08);
}

html[data-theme="light"] .language-toggle {
    background: rgba(255, 255, 255, 0.68);
    border-color: var(--text-primary);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9), 0 8px 24px rgba(58, 45, 31, 0.08);
}

html[data-theme="light"] .language-es,
html[data-theme="light"][data-language="en"] .language-es {
    color: #111;
}

html[data-theme="light"][data-language="en"] .language-en {
    color: #111;
}

html[data-theme="light"] .theme-toggle-thumb {
    transform: translateX(var(--toggle-shift));
    background: linear-gradient(145deg, #ff7b25, var(--accent));
    box-shadow: 0 4px 14px rgba(255, 102, 0, 0.35);
}

html[data-theme="light"] .theme-toggle-moon {
    color: #111;
    opacity: 0.45;
}

html[data-theme="light"] .theme-toggle-sun {
    color: #111;
    opacity: 1;
}

html[data-theme="light"] .logo-img,
html[data-theme="light"] .core-logo {
    filter: brightness(0);
}

html[data-theme="light"] .logo:hover .logo-img {
    filter: brightness(0) saturate(100%) invert(45%) sepia(99%) saturate(3644%) hue-rotate(3deg) brightness(103%) contrast(102%) drop-shadow(0 0 10px var(--accent-glow));
}

html[data-theme="light"] .header-btn {
    background: rgba(255, 255, 255, 0.38);
}

html[data-theme="light"] .hero-title {
    -webkit-text-stroke: 4px var(--accent);
    paint-order: stroke fill;
    text-shadow: 0 0 16px rgba(255, 102, 0, 0.14);
}

html[data-theme="light"] .tech-diagram::before {
    background-image:
        linear-gradient(rgba(20, 20, 20, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(20, 20, 20, 0.05) 1px, transparent 1px);
}

html[data-theme="light"] .diagram-grid {
    border-color: rgba(20, 20, 20, 0.07);
    background: radial-gradient(circle at center, rgba(255, 102, 0, 0.09), transparent 58%);
}

html[data-theme="light"] .diagram-ring-outer {
    border-color: rgba(20, 20, 20, 0.14);
    border-left-color: rgba(255, 102, 0, 0.55);
    border-right-color: rgba(255, 102, 0, 0.22);
}

html[data-theme="light"] .diagram-ring-inner {
    border-color: rgba(20, 20, 20, 0.18);
    border-top-color: rgba(255, 102, 0, 0.58);
}

html[data-theme="light"] .diagram-connection {
    background: linear-gradient(90deg, rgba(255, 102, 0, 0.76), rgba(20, 20, 20, 0.13));
}

html[data-theme="light"] .diagram-signal {
    background: #171717;
}

html[data-theme="light"] .core-halo {
    background: conic-gradient(from 45deg, transparent 0 22%, var(--accent) 28%, transparent 34% 70%, rgba(20, 20, 20, 0.35) 76%, transparent 82%);
}

html[data-theme="light"] .core-node {
    background:
        linear-gradient(145deg, rgba(255, 102, 0, 0.12), transparent 48%),
        rgba(255, 255, 255, 0.9);
    box-shadow:
        0 22px 55px rgba(58, 45, 31, 0.16),
        inset 0 1px 0 rgba(255, 255, 255, 0.95),
        0 0 32px rgba(255, 102, 0, 0.1);
}

html[data-theme="light"] .core-eyebrow,
html[data-theme="light"] .node-index {
    color: rgba(23, 23, 23, 0.48);
}

html[data-theme="light"] .core-status {
    color: rgba(23, 23, 23, 0.68);
}

html[data-theme="light"] .diagram-node {
    background: #f5f1ea;
    border-color: var(--node-idle-border);
    box-shadow: var(--node-idle-shadow);
}

html[data-theme="light"] .diagram-node h3 {
    color: #171717;
}

html[data-theme="light"] .diagram-node p {
    color: rgba(23, 23, 23, 0.58);
}

html[data-theme="light"] .projects-sticky {
    background: radial-gradient(circle at 78% 48%, rgba(255, 102, 0, 0.12), transparent 32%);
}

html[data-theme="light"] .project-card {
    background: #f5f1ea;
    border-color: rgba(20, 20, 20, 0.14);
    box-shadow:
        0 0 64px rgba(58, 45, 31, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

html[data-theme="light"] .project-card::before {
    mix-blend-mode: multiply;
    opacity: 0.08;
}

html[data-theme="light"] .project-bg {
    filter: none;
}

html[data-theme="light"] .project-bg::after {
    background: none;
}

@media (min-width: 769px) {
    html[data-theme="light"] .project-card::before {
        opacity: 1;
        mix-blend-mode: normal;
        background:
            repeating-linear-gradient(
                0deg,
                transparent 0,
                transparent 3px,
                rgba(20, 20, 20, 0.012) 4px
            ),
            linear-gradient(
                90deg,
                transparent 0 30%,
                rgba(245, 241, 234, 0.3) 43%,
                rgba(245, 241, 234, 0.9) 62%,
                #f5f1ea 78% 100%
            );
    }
}

html[data-theme="light"] .project-details {
    border-top-color: rgba(20, 20, 20, 0.12);
    border-bottom-color: rgba(20, 20, 20, 0.1);
}

html[data-theme="light"] .project-details > div + div {
    border-left-color: rgba(20, 20, 20, 0.1);
}

html[data-theme="light"] .project-details span {
    color: var(--accent);
}

html[data-theme="light"] .project-cta {
    color: #171717;
}

html[data-theme="light"] .project-tech-list span {
    border-color: rgba(20, 20, 20, 0.13);
    background: rgba(20, 20, 20, 0.035);
}

html[data-theme="light"] .project-number {
    color: rgba(20, 20, 20, 0.12);
}

html[data-theme="light"] .faq-item {
    border-color: rgba(20, 20, 20, 0.11);
    background: rgba(255, 255, 255, 0.42);
}

html[data-theme="light"] .faq-item:hover,
html[data-theme="light"] .faq-item[open] {
    background:
        linear-gradient(90deg, rgba(255, 102, 0, 0.07), transparent 44%),
        rgba(255, 255, 255, 0.62);
    box-shadow: 0 18px 42px rgba(58, 45, 31, 0.1);
}

html[data-theme="light"] .faq-item summary {
    color: #171717;
}

html[data-theme="light"] .footer-card {
    background: #f5f1ea;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    border-color: rgba(20, 20, 20, 0.1);
    box-shadow: 0 36px 84px rgba(58, 45, 31, 0.16);
}

html[data-theme="light"] .footer-card:hover {
    box-shadow: 0 42px 96px rgba(58, 45, 31, 0.2);
}

html[data-theme="light"] .footer-name,
html[data-theme="light"] .footer-card:hover .footer-phrase,
html[data-theme="light"] .contact-section h3,
html[data-theme="light"] .legal-container h2,
html[data-theme="light"] .modal-info-table td strong {
    color: #171717;
}

html[data-theme="light"] .footer-btn svg {
    background: rgba(20, 20, 20, 0.035);
}

html[data-theme="light"] .footer-legal a {
    color: rgba(23, 23, 23, 0.52);
}

html[data-theme="light"] .footer-legal a:hover,
html[data-theme="light"] .footer-legal a:focus-visible {
    color: var(--accent);
}

html[data-theme="light"] .logo-marquee-track img {
    filter: brightness(0);
    opacity: 1;
}

html[data-theme="light"] .logo-marquee-track img:hover {
    filter: brightness(0) saturate(100%) invert(45%) sepia(99%) saturate(3644%) hue-rotate(3deg) brightness(103%) contrast(102%);
    opacity: 1;
}

html[data-theme="light"] .modal-overlay {
    background: rgba(224, 217, 207, 0.72);
}

html[data-theme="light"] .modal-window {
    scrollbar-color: #aaa198 transparent;
}

html[data-theme="light"] .modal-window::-webkit-scrollbar-thumb {
    background: #aaa198;
}

html[data-theme="light"] .modal-window::-webkit-scrollbar-track,
html[data-theme="light"] .modal-info-table,
html[data-theme="light"] .tech-tag {
    background: rgba(20, 20, 20, 0.035);
}

html[data-theme="light"] .modal-close {
    color: #171717;
}

html[data-theme="light"] .modal-info-table th,
html[data-theme="light"] .modal-info-table td {
    border-bottom-color: rgba(20, 20, 20, 0.08);
}

html[data-theme="light"] .tech-tag {
    border-color: rgba(20, 20, 20, 0.12);
}

@media (max-width: 768px) {
    html[data-theme="light"] .hero-title {
        -webkit-text-stroke-width: 3px;
    }

    html[data-theme="light"] .project-bg::after {
        background: linear-gradient(180deg, transparent 62%, #f5f1ea 100%);
    }

    html[data-theme="light"] .project-bg {
        mix-blend-mode: normal;
    }

    html[data-theme="light"] .project-card {
        background: #f5f1ea;
    }

    html[data-theme="light"] .project-number {
        color: rgba(20, 20, 20, 0.66);
        text-shadow: 0 0 12px rgba(255, 255, 255, 0.8);
    }
}

/* Circular theme reveal shared with the CRM */
::view-transition-image-pair(root) {
    isolation: auto;
}

::view-transition-old(root),
::view-transition-new(root) {
    animation: none;
    mix-blend-mode: normal;
}

::view-transition-old(root) {
    z-index: 1;
}

::view-transition-new(root) {
    z-index: 2;
    animation: reveal-theme 450ms cubic-bezier(0.4, 0, 0.2, 1) both;
}

@keyframes reveal-theme {
    from {
        clip-path: circle(20px at 50% 50%);
    }

    to {
        clip-path: circle(120% at 50% 50%);
    }
}

.no-transitions *:not(.theme-toggle-thumb),
.no-transitions *::before,
.no-transitions *::after {
    transition: none !important;
    animation: none !important;
}

::view-transition-group(theme-toggle-thumb) {
    z-index: 1101;
    animation-duration: 0.42s;
    animation-timing-function: cubic-bezier(0.22, 1, 0.36, 1);
}

::view-transition-old(theme-toggle-thumb),
::view-transition-new(theme-toggle-thumb) {
    opacity: 1;
    animation: none;
    mix-blend-mode: normal;
}

::view-transition-group(theme-toggle-moon),
::view-transition-group(theme-toggle-sun) {
    z-index: 1102;
    animation: none;
}

::view-transition-old(theme-toggle-moon),
::view-transition-old(theme-toggle-sun) {
    animation: theme-toggle-icon-out 0.3s linear both;
    mix-blend-mode: normal;
}

::view-transition-new(theme-toggle-moon),
::view-transition-new(theme-toggle-sun) {
    animation: theme-toggle-icon-in 0.3s linear both;
    mix-blend-mode: normal;
}

@keyframes theme-toggle-icon-out {
    from {
        opacity: 1;
    }

    to {
        opacity: 0;
    }
}

@keyframes theme-toggle-icon-in {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@media (prefers-reduced-motion: reduce) {
    ::view-transition-new(root) {
        animation: none;
    }

    ::view-transition-group(theme-toggle-thumb),
    ::view-transition-group(theme-toggle-moon),
    ::view-transition-group(theme-toggle-sun) {
        animation: none;
    }

    ::view-transition-old(theme-toggle-moon),
    ::view-transition-old(theme-toggle-sun),
    ::view-transition-new(theme-toggle-moon),
    ::view-transition-new(theme-toggle-sun) {
        animation: none;
    }
}

/* 404 hero */
.error-page {
    min-height: 100svh;
    overflow: hidden;
}

.error-page .canvas-container {
    opacity: 0.78;
}

.error-header {
    position: fixed;
}

.error-hero {
    width: 100%;
    min-height: 100svh;
}

.error-hero::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background:
        linear-gradient(rgba(5, 5, 5, 0.46), rgba(5, 5, 5, 0.46)),
        linear-gradient(180deg, rgba(15, 15, 15, 0.16), transparent 28%),
        radial-gradient(circle at 50% 34%, transparent 0 24%, rgba(15, 15, 15, 0.2) 72%, rgba(15, 15, 15, 0.38) 100%);
}

.error-hero-content {
    position: relative;
    z-index: 5;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 100svh;
    padding: 0 24px;
    text-align: center;
}

.error-message {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 760px;
    text-align: center;
}

.error-message .glitch-wrapper {
    --error-optical-shift: clamp(-36px, -2.2vw, -18px);
    display: block;
    width: 100%;
    text-align: center;
    transform: translateX(var(--error-optical-shift));
}

.error-message .glitch-wrapper:hover {
    transform: translateX(var(--error-optical-shift)) scale(1.1);
}

.error-eyebrow {
    margin-bottom: 10px;
    color: var(--accent);
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.32em;
}

.error-code {
    display: block;
    width: fit-content;
    margin: 0 auto;
    font-family: 'Planet Kosmos', sans-serif;
    font-size: clamp(7rem, 15vw, 13.5rem);
    font-weight: normal;
    line-height: 0.82;
    letter-spacing: 0;
    text-align: center;
    color: var(--glitch-base-color);
    text-shadow:
        0 0 40px rgba(255, 102, 0, 0.16),
        0 0 1px var(--text-primary);
}

.error-heading {
    margin-top: clamp(14px, 2.4vh, 26px);
    color: var(--text-primary);
    font-family: var(--font-heading);
    font-size: clamp(1.15rem, 2.2vw, 1.85rem);
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.error-description {
    max-width: 520px;
    margin-top: 10px;
    color: var(--text-secondary);
    font-size: clamp(0.82rem, 1.2vw, 0.98rem);
    line-height: 1.7;
    text-wrap: balance;
}

.error-home-link {
    position: absolute;
    bottom: clamp(32px, 5vh, 54px);
    left: 50%;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    z-index: 6;
    transform: translateX(-50%);
}

.error-home-link > span:last-child {
    font-size: 1rem;
    transition: transform 0.3s ease;
}

.error-home-link:hover > span:last-child {
    transform: translate(3px, -3px);
}

.error-home-link:hover {
    transform: translateX(-50%);
}

html[data-theme="light"] .error-hero::after {
    background:
        linear-gradient(rgba(243, 240, 234, 0.42), rgba(243, 240, 234, 0.42)),
        linear-gradient(180deg, rgba(243, 240, 234, 0.12), transparent 28%),
        radial-gradient(circle at 50% 34%, transparent 0 24%, rgba(243, 240, 234, 0.13) 72%, rgba(243, 240, 234, 0.28) 100%);
}

html[data-theme="light"] .error-code {
    -webkit-text-stroke: 4px var(--accent);
    paint-order: stroke fill;
    text-shadow: 0 0 22px rgba(255, 102, 0, 0.16);
}

html[data-theme="light"] .error-heading {
    color: var(--accent);
    text-shadow: 0 0 18px rgba(255, 102, 0, 0.14);
}

@media (max-width: 768px) {
    .error-page {
        overflow-y: auto;
    }

    .error-header {
        position: absolute;
    }

    .error-hero-content {
        padding: 0 20px;
    }

    .error-eyebrow {
        font-size: 0.57rem;
        letter-spacing: 0.23em;
    }

    .error-code {
        font-size: clamp(6.2rem, 35vw, 9rem);
    }

    .error-heading {
        max-width: 300px;
        font-size: 1.05rem;
    }

    .error-description {
        max-width: 320px;
        font-size: 0.78rem;
    }

    .error-home-link {
        bottom: 26px;
        padding: 13px 25px;
        font-size: 0.68rem;
        white-space: nowrap;
    }

    html[data-theme="light"] .error-code {
        -webkit-text-stroke-width: 3px;
    }
}

/* Success confirmation hero */
.success-page {
    min-height: 100svh;
    overflow: hidden;
}

.success-page .canvas-container {
    opacity: 0.78;
}

.success-header {
    position: fixed;
}

.success-hero {
    width: 100%;
    min-height: 100svh;
}

.success-hero::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background:
        linear-gradient(rgba(5, 5, 5, 0.46), rgba(5, 5, 5, 0.46)),
        linear-gradient(180deg, rgba(15, 15, 15, 0.16), transparent 28%),
        radial-gradient(circle at 50% 44%, transparent 0 22%, rgba(15, 15, 15, 0.22) 68%, rgba(15, 15, 15, 0.4) 100%);
}

.success-hero-content {
    position: relative;
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 100svh;
    padding: 0 24px;
    text-align: center;
}

.success-message {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: min(100%, 900px);
}

.success-signal {
    position: relative;
    display: grid;
    place-items: center;
    width: 62px;
    height: 62px;
    margin-bottom: 16px;
    border: 1px solid rgba(255, 102, 0, 0.8);
    border-radius: 50%;
    background: rgba(255, 102, 0, 0.08);
    box-shadow: 0 0 28px rgba(255, 102, 0, 0.18);
}

.success-signal::before,
.success-signal::after {
    content: '';
    position: absolute;
    inset: -1px;
    border: 1px solid rgba(255, 102, 0, 0.46);
    border-radius: inherit;
    animation: success-signal-pulse 2.8s ease-out infinite;
}

.success-signal::after {
    animation-delay: 1.4s;
}

.success-signal i {
    width: 22px;
    height: 12px;
    border-left: 2px solid var(--accent);
    border-bottom: 2px solid var(--accent);
    transform: translateY(-2px) rotate(-45deg);
}

@keyframes success-signal-pulse {
    0% {
        opacity: 0.7;
        transform: scale(0.92);
    }

    75%,
    100% {
        opacity: 0;
        transform: scale(1.65);
    }
}

.success-eyebrow {
    margin-bottom: 12px;
    color: var(--accent);
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.3em;
}

.success-message .glitch-wrapper {
    display: block;
    width: 100%;
    text-align: center;
}

.success-title {
    max-width: 100%;
    font-family: 'Planet Kosmos', sans-serif;
    font-size: clamp(3.2rem, 8vw, 7.4rem);
    font-weight: normal;
    line-height: 0.94;
    letter-spacing: 0.02em;
    color: var(--glitch-base-color);
    text-align: center;
    text-wrap: balance;
    text-shadow:
        0 0 42px rgba(255, 102, 0, 0.18),
        0 0 1px var(--text-primary);
}

.success-description {
    max-width: 590px;
    margin-top: clamp(20px, 3vh, 30px);
    color: var(--text-secondary);
    font-size: clamp(0.84rem, 1.2vw, 1rem);
    line-height: 1.75;
    text-wrap: balance;
}

.success-meta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 18px;
    padding: 7px 13px;
    border: 1px solid var(--border-color);
    border-radius: 999px;
    background: var(--surface-color);
    color: var(--text-secondary);
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    backdrop-filter: blur(8px);
}

.success-meta i {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 10px var(--accent);
}

.success-home-link {
    position: absolute;
    bottom: clamp(32px, 5vh, 54px);
    left: 50%;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    z-index: 6;
    transform: translateX(-50%);
}

.success-home-link > span:last-child {
    font-size: 1rem;
    transition: transform 0.3s ease;
}

.success-home-link:hover,
.success-home-link:focus-visible {
    transform: translateX(-50%);
}

.success-home-link:hover > span:last-child {
    transform: translate(3px, -3px);
}

html[data-theme="light"] .success-hero::after {
    background:
        linear-gradient(rgba(243, 240, 234, 0.42), rgba(243, 240, 234, 0.42)),
        linear-gradient(180deg, rgba(243, 240, 234, 0.12), transparent 28%),
        radial-gradient(circle at 50% 44%, transparent 0 22%, rgba(243, 240, 234, 0.13) 68%, rgba(243, 240, 234, 0.3) 100%);
}

html[data-theme="light"] .success-title {
    -webkit-text-stroke: 4px var(--accent);
    paint-order: stroke fill;
    text-shadow: 0 0 22px rgba(255, 102, 0, 0.16);
}

html[data-theme="light"] .success-meta {
    border-color: rgba(20, 20, 20, 0.16);
    background: rgba(255, 255, 255, 0.55);
}

@media (max-width: 768px) {
    .success-page {
        overflow-y: auto;
    }

    .success-header {
        position: absolute;
    }

    .success-hero-content {
        padding: 0 20px;
    }

    .success-message {
        transform: translateY(-2vh);
    }

    .success-signal {
        width: 52px;
        height: 52px;
        margin-bottom: 14px;
    }

    .success-title {
        max-width: 340px;
        font-size: clamp(2.65rem, 14vw, 4.4rem);
        line-height: 1;
    }

    .success-eyebrow {
        font-size: 0.55rem;
        letter-spacing: 0.22em;
    }

    .success-description {
        max-width: 330px;
        font-size: 0.78rem;
        line-height: 1.62;
    }

    .success-meta {
        max-width: 310px;
        justify-content: center;
        font-size: 0.54rem;
        line-height: 1.35;
    }

    .success-home-link {
        bottom: 26px;
        padding: 13px 25px;
        font-size: 0.68rem;
        white-space: nowrap;
    }

    html[data-theme="light"] .success-title {
        -webkit-text-stroke-width: 3px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .success-signal::before,
    .success-signal::after {
        animation: none;
        opacity: 0;
    }
}
