/* Reset and Base Styles */
:root {
    --bg-color: #08080a;
    --text-color: #ffffff;
    --accent-color: #333333;
    --font-primary: 'Outfit', sans-serif;
    --font-heading: 'Syne', sans-serif;
    --cursor-size: 10px;
    --cursor-follower-size: 40px;
}

/* ITcomfort about — selected orbital radar concept. */
.about-orbit-hero {
    position: relative;
    isolation: isolate;
    display: block;
    min-height: clamp(620px, 50vw, 780px);
    margin-bottom: clamp(72px, 10vh, 130px);
    padding: clamp(78px, 7vw, 112px) clamp(36px, 4.5vw, 74px) clamp(60px, 6vw, 92px);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, .2);
    background: #030303;
}

.about-orbit-hero::before {
    content: "";
    position: absolute;
    z-index: -2;
    inset: 0;
    background:
        radial-gradient(circle at 70% 48%, rgba(255, 94, 0, .06), transparent 35%),
        linear-gradient(rgba(255, 255, 255, .018) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, .018) 1px, transparent 1px);
    background-size: auto, 54px 54px, 54px 54px;
    -webkit-mask-image: none;
    mask-image: none;
}

.about-orbit-hero::after {
    content: "";
    position: absolute;
    z-index: 0;
    top: 41%;
    left: 24%;
    width: 33%;
    height: 1px;
    border-radius: 999px;
    background: linear-gradient(90deg, transparent, rgba(255, 94, 0, .8));
    box-shadow: 0 0 12px rgba(255, 94, 0, .45);
    transform: rotate(-8deg);
    transform-origin: right center;
    pointer-events: none;
}

.orbit-corner {
    position: absolute;
    z-index: 6;
    width: 22px;
    height: 22px;
    pointer-events: none;
}

.orbit-corner::before,
.orbit-corner::after {
    content: "";
    position: absolute;
    background: rgba(255, 255, 255, .72);
}

.orbit-corner::before { width: 22px; height: 1px; }
.orbit-corner::after { width: 1px; height: 22px; }
.orbit-corner-tl { top: 26px; left: 26px; }
.orbit-corner-tr { top: 26px; right: 26px; transform: rotate(90deg); }
.orbit-corner-br { right: 26px; bottom: 26px; transform: rotate(180deg); }
.orbit-corner-bl { left: 26px; bottom: 26px; transform: rotate(270deg); }

.about-orbit-topbar {
    position: absolute;
    z-index: 5;
    top: 34px;
    left: clamp(58px, 6vw, 96px);
    right: clamp(58px, 6vw, 96px);
    display: grid;
    grid-template-columns: auto minmax(50px, 1fr) auto;
    align-items: center;
    gap: 18px;
    font-family: var(--font-primary);
    font-size: .68rem;
    font-weight: 700;
    letter-spacing: .16em;
    color: rgba(255, 255, 255, .46);
}

.about-orbit-topbar span:first-child { color: #ff5e00; }
.about-orbit-topbar i {
    height: 1px;
    background: linear-gradient(90deg, #ff5e00 0 28px, rgba(255, 255, 255, .2) 28px 100%);
}

.about-orbit-layout {
    position: relative;
    z-index: 2;
    display: grid;
    min-height: inherit;
    grid-template-columns: minmax(0, 1fr) minmax(360px, 1fr);
    gap: clamp(28px, 4vw, 72px);
    align-items: center;
}

.about-orbit-copy {
    position: relative;
    z-index: 3;
    min-width: 0;
}

.about-orbit-hero .about-title-text {
    width: 100%;
    margin: 0;
    font-size: clamp(3.7rem, 5.8vw, 7rem);
    line-height: .78;
    letter-spacing: -.07em;
}

.about-orbit-hero .about-title-text .line {
    display: block;
    overflow: hidden;
}

.about-orbit-hero .about-title-text .line-inner {
    display: block;
    width: 100%;
    white-space: nowrap;
}

.about-orbit-hero .about-brand,
.about-orbit-hero .about-accent {
    display: inline-block;
    text-transform: none;
}

.about-orbit-hero .about-brand { color: #fff; }
.about-orbit-hero .about-accent {
    color: #ff5e00;
    font-size: .88em;
    font-weight: 700;
}

.about-orbit-intro {
    position: relative;
    max-width: 430px;
    margin: clamp(38px, 5vh, 66px) 0 0;
    padding: 18px 0 0 28px;
    color: rgba(255, 255, 255, .72);
    font-size: clamp(.9rem, 1vw, 1.05rem);
    line-height: 1.55;
}

.about-orbit-intro::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    width: 14px;
    height: 14px;
    border: 1px solid #ff5e00;
    border-radius: 50%;
    box-shadow: 0 0 16px rgba(255, 94, 0, .45);
}

.about-orbit-services {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(12px, 1.6vw, 28px);
    margin-top: clamp(36px, 5vh, 68px);
}

.about-orbit-service {
    position: relative;
    min-width: 0;
    padding: 14px 10px 14px 38px;
    border-bottom: 1px solid rgba(255, 255, 255, .18);
}

.about-orbit-service i {
    position: absolute;
    left: 0;
    top: 14px;
    width: 24px;
    height: 24px;
    border: 1px solid rgba(255, 255, 255, .7);
}

.about-orbit-service i::before,
.about-orbit-service i::after {
    content: "";
    position: absolute;
    background: #ff5e00;
}

.about-orbit-service i::before { left: 5px; right: 5px; top: 11px; height: 1px; }
.about-orbit-service i::after { top: 5px; bottom: 5px; left: 11px; width: 1px; }

.about-orbit-service small {
    display: block;
    margin-bottom: 6px;
    color: #ff5e00;
    font-size: .58rem;
    letter-spacing: .12em;
}

.about-orbit-service strong {
    display: block;
    overflow-wrap: anywhere;
    color: #fff;
    font-family: var(--font-primary);
    font-size: clamp(.62rem, .78vw, .78rem);
    font-weight: 600;
    letter-spacing: .05em;
}

.about-radar {
    position: relative;
    z-index: 2;
    justify-self: end;
    width: min(38vw, 560px);
    aspect-ratio: 1;
    border: 1px solid rgba(255, 255, 255, .24);
    border-radius: 50%;
    background:
        radial-gradient(circle, transparent 0 7%, rgba(255, 255, 255, .12) 7.3% 7.6%, transparent 8%),
        radial-gradient(circle, transparent 0 68%, rgba(255, 255, 255, .05) 68.3% 68.6%, transparent 69%);
    box-shadow: 0 0 80px rgba(255, 94, 0, .05);
}

.about-radar::before {
    content: "";
    position: absolute;
    inset: -13px;
    border-radius: 50%;
    background: repeating-conic-gradient(from 0deg, rgba(255,255,255,.54) 0deg .45deg, transparent .45deg 3.8deg);
    -webkit-mask: radial-gradient(circle, transparent 0 78%, #000 78.5% 81%, transparent 81.5%);
    mask: radial-gradient(circle, transparent 0 78%, #000 78.5% 81%, transparent 81.5%);
    opacity: .72;
}

.about-radar::after {
    content: "";
    position: absolute;
    z-index: 4;
    left: 72%;
    top: 29%;
    width: 31%;
    height: 1px;
    background: #ff5e00;
    transform: rotate(-18deg);
    transform-origin: left center;
    box-shadow: 0 0 12px rgba(255, 94, 0, .55);
}

.radar-ring,
.radar-axis,
.radar-reticle,
.radar-sweep,
.radar-node,
.radar-degree {
    position: absolute;
}

.radar-ring {
    left: 50%;
    top: 50%;
    border: 1px solid rgba(255, 255, 255, .24);
    border-radius: 50%;
    transform: translate(-50%, -50%);
}

.radar-ring-one { width: 72%; height: 72%; }
.radar-ring-two { width: 43%; height: 43%; }
.radar-axis-x { left: 5%; right: 5%; top: 50%; height: 1px; background: rgba(255,255,255,.18); }
.radar-axis-y { top: 5%; bottom: 5%; left: 50%; width: 1px; background: rgba(255,255,255,.18); }

.radar-reticle {
    z-index: 3;
    left: 50%;
    top: 50%;
    width: 38px;
    height: 38px;
    border: 1px solid rgba(255, 255, 255, .72);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    box-shadow: inset 0 0 0 11px #030303;
}

.radar-reticle::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: #fff;
    transform: translate(-50%, -50%);
}

.radar-sweep {
    z-index: 2;
    left: 50%;
    top: 50%;
    width: 43%;
    height: 2px;
    border-radius: 999px;
    background: linear-gradient(90deg, rgba(255,94,0,.12), #ff5e00);
    box-shadow: 0 0 12px rgba(255,94,0,.48);
    transform-origin: 0 50%;
    animation: aboutRadarSweep 8s linear infinite;
}

.radar-node {
    z-index: 6;
    left: 73%;
    top: 28%;
    width: clamp(18px, 2.2vw, 30px);
    height: clamp(18px, 2.2vw, 30px);
    border: 4px solid rgba(255, 255, 255, .12);
    border-radius: 50%;
    background: #ff5e00;
    box-shadow: 0 0 26px rgba(255, 94, 0, .86);
    animation: aboutRadarPulse 2.2s ease-in-out infinite;
}

.radar-degree {
    color: rgba(255, 255, 255, .58);
    font-family: var(--font-primary);
    font-size: .6rem;
}

.radar-degree-top { left: 50%; top: -28px; transform: translateX(-50%); }
.radar-degree-right { right: -36px; top: 50%; transform: translateY(-50%); }
.radar-degree-bottom { left: 50%; bottom: -28px; transform: translateX(-50%); }
.radar-degree-left { left: -38px; top: 50%; transform: translateY(-50%); }

.about-orbit-coordinate {
    position: absolute;
    z-index: 5;
    left: clamp(58px, 6vw, 96px);
    bottom: 26px;
    color: rgba(255,255,255,.42);
    font-family: var(--font-primary);
    font-size: .58rem;
    letter-spacing: .08em;
}

@keyframes aboutRadarSweep {
    to { transform: rotate(360deg); }
}

@keyframes aboutRadarPulse {
    50% { transform: scale(1.18); box-shadow: 0 0 38px rgba(255, 94, 0, 1); }
}

@media (max-width: 900px) {
    .about-orbit-layout {
        grid-template-columns: minmax(0, .9fr) minmax(300px, 1.1fr);
    }

    .about-orbit-services {
        grid-template-columns: minmax(0, 1fr);
        gap: 4px;
    }
}

@media (max-width: 768px) {
    .about-orbit-hero {
        min-height: 830px;
        margin-bottom: 70px;
        padding: 72px 20px 70px;
    }

    .orbit-corner-tl { top: 14px; left: 14px; }
    .orbit-corner-tr { top: 14px; right: 14px; }
    .orbit-corner-br { right: 14px; bottom: 14px; }
    .orbit-corner-bl { left: 14px; bottom: 14px; }

    .about-orbit-topbar {
        top: 22px;
        left: 42px;
        right: 42px;
        gap: 10px;
        font-size: .54rem;
    }

    .about-orbit-layout {
        min-height: 690px;
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        grid-template-rows: auto auto auto auto;
        gap: 24px;
        align-content: start;
    }

    .about-orbit-copy { display: contents; }

    .about-orbit-hero .about-title-text {
        order: 1;
        width: 100%;
        margin-top: 20px;
        font-size: clamp(2.7rem, 12vw, 4.2rem);
        line-height: .82;
    }

    .about-orbit-intro {
        order: 2;
        max-width: 310px;
        margin: 2px 0 4px;
        padding: 14px 0 0 22px;
        font-size: .8rem;
    }

    .about-radar {
        order: 3;
        justify-self: center;
        width: min(76vw, 330px);
        margin: 12px 0 18px;
    }

    .about-radar::after,
    .about-orbit-hero::after {
        display: none;
    }

    .about-orbit-services {
        order: 4;
        width: 100%;
        margin-top: 0;
        grid-template-columns: minmax(0, 1fr);
        gap: 2px;
    }

    .about-orbit-service {
        min-height: 48px;
        padding: 11px 10px 10px 42px;
    }

    .about-orbit-service i { top: 10px; }
    .about-orbit-service small { display: inline; margin-right: 10px; }
    .about-orbit-service strong { display: inline; font-size: .68rem; }

    .radar-degree-right { right: -28px; }
    .radar-degree-left { left: -30px; }

    .about-orbit-coordinate {
        left: 42px;
        bottom: 20px;
        font-size: .5rem;
    }
}

@media (max-width: 390px) {
    .about-orbit-hero {
        min-height: 790px;
        padding-right: 14px;
        padding-left: 14px;
    }

    .about-orbit-hero .about-title-text {
        font-size: clamp(2.45rem, 11.8vw, 3.35rem);
    }

    .about-radar { width: min(72vw, 280px); }
}

@media (prefers-reduced-motion: reduce) {
    .radar-sweep,
    .radar-node {
        animation: none;
    }
}

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

::selection {
    background: #ff5e00;
    color: #ffffff;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-primary);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
    cursor: none; /* Hide default cursor for custom one */
}

/* The home page supports responsive sizing and smooth scrolling to the next page. */
html:has(.home-viewport),
body:has(.home-viewport) {
    width: 100%;
    min-height: 100%;
    overscroll-behavior: none;
}

.home-viewport {
    min-height: 100vh;
}

.home-viewport .hero-container {
    min-height: 100vh;
}

/* Global TV Noise & Glitch Overlay */
/* body::before removed as it was redundant with .noise */

body::after {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.1) 50%), linear-gradient(90deg, rgba(255, 0, 0, 0.02), rgba(0, 255, 0, 0.01), rgba(0, 0, 255, 0.02));
    background-size: 100% 2px, 3px 100%;
    z-index: 9999;
    pointer-events: none;
    opacity: 0.3;
}

@keyframes globalGlitch {
    0% { transform: translate(0); }
    1% { transform: translate(-2px, 1px); }
    2% { transform: translate(2px, -1px); }
    3% { transform: translate(0); }
    100% { transform: translate(0); }
}

/* Custom Cursor */
.cursor {
    position: fixed;
    top: 0;
    left: 0;
    width: var(--cursor-size);
    height: var(--cursor-size);
    background-color: #fff;
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    mix-blend-mode: difference;
    opacity: 0;
    transition: opacity 0.25s ease;
    will-change: transform;
    backface-visibility: hidden;
}

.cursor-follower {
    position: fixed;
    top: 0;
    left: 0;
    width: var(--cursor-follower-size);
    height: var(--cursor-follower-size);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9998;
    opacity: 0;
    transition: width 0.2s, height 0.2s, background-color 0.2s, mix-blend-mode 0.2s, opacity 0.25s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    will-change: transform;
    backface-visibility: hidden;
}

.cursor.is-visible,
.cursor-follower.is-visible {
    opacity: 1;
}

.cursor-text {
    font-family: var(--font-heading);
    font-size: 10px;
    font-weight: 700;
    color: var(--bg-color);
    opacity: 0;
    transition: opacity 0.2s ease;
    letter-spacing: 1px;
}

/* Hover effect */
.cursor-follower.active {
    width: 60px;
    height: 60px;
    background-color: rgba(255, 255, 255, 0.1);
    border-color: transparent;
}

.cursor-follower.view-mode {
    width: 80px;
    height: 80px;
    background-color: #fff;
    border-color: transparent;
    mix-blend-mode: normal;
}

.cursor-follower.view-mode .cursor-text {
    opacity: 1;
}

/* Removed old hover logic */
/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    text-transform: uppercase;
    font-weight: 700;
    line-height: 1.1;
}

a {
    color: var(--text-color);
    text-decoration: none;
}

/* Container */
.container {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 4vw;
    animation: globalGlitch 10s infinite;
}

/* Transitions & Glitch */
.transition-fade {
    opacity: 1;
    transition: 0.6s cubic-bezier(0.23, 1, 0.32, 1);
}

html.is-animating .transition-fade {
    opacity: 0;
    transform: translateY(10px);
}

html.is-changing .transition-fade {
    opacity: 0;
}

/* Preloader */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: var(--bg-color);
    z-index: 10000;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 4vw;
}

.preloader-counter {
    font-family: var(--font-heading);
    font-size: 8vw;
    font-weight: 700;
    line-height: 1;
    margin-bottom: 20px;
}

.preloader-bar {
    width: 0%;
    height: 2px;
    background-color: var(--text-color);
}

/* Navigation */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 2vw 4vw;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    mix-blend-mode: difference;
}

.nav-logo a {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: var(--text-color);
}

.nav-company-name {
    font-family: var(--font-primary);
    font-size: 1.25rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #fff;
    margin-top: 2px;
}

.nav-logo-img {
    height: 32px;
    width: auto;
    object-fit: contain;
    filter: brightness(10); /* Make it white on dark bg */
    opacity: 0.9;
    transition: opacity 0.3s ease;
}

.nav-logo-img:hover {
    opacity: 1;
}

/* Full ITcomfort wordmark supplied for the site header. */
.nav-main-logo {
    display: block;
    width: auto;
    height: clamp(44px, 3.6vw, 54px);
    max-width: min(240px, 32vw);
    object-fit: contain;
    filter: none;
    opacity: 1;
}

.nav-links {
    display: flex;
    gap: 3vw;
}

.nav-link {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    overflow: hidden;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 1px;
    background-color: var(--text-color);
    transform: translateX(-101%);
    transition: transform 0.3s ease;
}

.nav-link:hover::after, .nav-link.active::after {
    transform: translateX(0);
}

/* Swup Transitions */
.transition-fade {
    transition: 0.4s;
    opacity: 1;
}

html.is-animating .transition-fade {
    opacity: 0;
    transform: translateY(20px);
}

html.is-leaving .transition-fade {
    opacity: 0;
    transform: translateY(-20px);
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
}

.hero-content {
    position: relative;
    z-index: 2;
    width: 100%;
}

.hero-subtitle {
    font-family: var(--font-primary);
    font-size: 1rem;
    letter-spacing: 2px;
    margin-bottom: 2vh;
    font-weight: 300;
}

.hero-title {
    font-size: 10vw;
    letter-spacing: -2px;
    margin-bottom: 4vh;
    line-height: 0.9;
}

/* For GSAP Text Reveal */
.line {
    display: block;
    overflow: hidden;
    padding: 0.2em 0.5em;
    margin: -0.2em -0.5em;
}
.line-inner {
    display: inline-block;
    padding-right: 0.15em;
    transition: color 0.4s ease, -webkit-text-stroke 0.4s ease, transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.hero-title:hover .line-inner {
    color: transparent;
    -webkit-text-stroke: 2px var(--text-color);
    transform: skewX(-10deg) scale(1.05);
}

.hero-bottom {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 30px;
    margin-top: 5vh;
}

.hero-text {
    max-width: 400px;
    font-size: 1.1rem;
    font-weight: 300;
    line-height: 1.6;
    color: #ccc;
}

.hero-badge {
    position: absolute;
    top: 15vh;
    right: 4vw;
    width: 140px;
    height: 140px;
    animation: rotateSlow 20s linear infinite;
    z-index: 10;
}

.hero-badge-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
    animation: rotateSlow 20s linear infinite reverse;
}

.hero-badge svg {
    display: block;
    width: 100%;
    height: 100%;
    overflow: visible;
}

.scroll-indicator {
    position: absolute;
    bottom: 5vh;
    left: 4vw;
    display: flex;
    align-items: center;
    gap: 15px;
    z-index: 10;
}

.scroll-indicator span {
    font-family: var(--font-primary);
    font-size: 0.8rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: rgba(255,255,255,0.5);
}

.scroll-line {
    width: 40px;
    height: 1px;
    background: rgba(255,255,255,0.2);
    position: relative;
    overflow: hidden;
}

.scroll-line::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 40%;
    height: 100%;
    background: #fff;
    animation: scrollLineMove 2s cubic-bezier(0.65, 0, 0.35, 1) infinite;
}

@keyframes scrollLineMove {
    0% { transform: translateX(-150%); }
    100% { transform: translateX(350%); }
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 15px 30px;
    font-family: var(--font-heading);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: 1px solid var(--text-color);
    border-radius: 30px;
    transition: all 0.3s ease;
    cursor: none; /* due to custom cursor */
}

.btn:hover {
    background-color: var(--text-color);
    color: var(--bg-color);
}

.btn .arrow {
    transition: transform 0.3s ease;
}

.btn:hover .arrow {
    transform: translateX(5px);
}

/* Futuristic Background */
.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

.grid-lines {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 300vw;
    height: 300vh;
    transform-origin: 50% 50%;
    transform: translate(-50%, -50%) perspective(500px) rotateX(55deg);
    background-image: 
        linear-gradient(rgba(255, 255, 255, 0.032) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.032) 1px, transparent 1px);
    background-size: 80px 80px;
    background-position: center center;
    -webkit-mask-image: radial-gradient(circle at 50% 50%, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.4) 65%, transparent 95%);
    mask-image: radial-gradient(circle at 50% 50%, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.4) 65%, transparent 95%);
    animation: gridSpread 20s linear infinite;
}

@keyframes gridSpread {
    0% { background-position: center 0px; }
    100% { background-position: center 80px; }
}

/* Hero Text Background Glow */
.glow-blob,
.hero-bg .glow-blob {
    position: absolute;
    top: 42%;
    left: 45%;
    width: 85vw;
    height: 45vw;
    max-width: 1300px;
    max-height: 680px;
    border-radius: 50%;
    transform: translate(-50%, -50%) scale(1);
    background: radial-gradient(ellipse at center, rgba(255, 255, 255, 0.04) 0%, rgba(255, 255, 255, 0.01) 50%, transparent 75%);
    filter: blur(75px);
    opacity: 0.25;
    pointer-events: none;
    z-index: 1;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.6s ease, filter 0.6s ease, background 0.6s ease;
    will-change: transform, opacity;
}

.hero:hover .glow-blob,
.hero:hover .hero-bg .glow-blob {
    opacity: 0.55;
    filter: blur(65px);
    transform: translate(-50%, -50%) scale(1.2);
    background: radial-gradient(ellipse at center, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.02) 50%, transparent 75%);
}



.noise {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 99999;
    opacity: 0.035;
    background-image: url('data:image/svg+xml,%3Csvg viewBox="0 0 200 200" xmlns="http://www.w3.org/2000/svg"%3E%3Cfilter id="noiseFilter"%3E%3CfeTurbulence type="fractalNoise" baseFrequency="1.65" numOctaves="4" stitchTiles="stitch"/%3E%3C/filter%3E%3Crect width="100%25" height="100%25" filter="url(%23noiseFilter)"/%3E%3C/svg%3E');
    transform: translateZ(0); /* Hardware acceleration for noise */
    will-change: transform;
}

/* Marquee */
.marquee-section {
    padding: 5vh 0 10vh;
    border-top: 1px solid rgba(255,255,255,0.1);
    border-bottom: 1px solid rgba(255,255,255,0.1);
    overflow: hidden;
}

.marquee {
    white-space: nowrap;
    overflow: hidden;
}

.marquee-inner {
    display: inline-block;
    animation: marquee 20s linear infinite;
}

.marquee span {
    font-family: var(--font-heading);
    font-size: 4vw;
    font-weight: 700;
    color: transparent;
    -webkit-text-stroke: 1px rgba(255,255,255,0.3);
    margin-right: 2vw;
}

@keyframes marquee {
    0% { transform: translateX(0%); }
    100% { transform: translateX(-50%); }
}

/* Pages General */
.page-container {
    padding-top: 20vh;
    padding-bottom: 10vh;
    min-height: 100vh;
}

.page-header {
    margin-bottom: 10vh;
}

.page-title {
    font-size: 7vw;
    letter-spacing: -2px;
}

.page-desc {
    font-size: 1.2rem;
    color: #ccc;
    max-width: 500px;
    margin-top: 3vh;
    font-weight: 300;
}

/* Projects Grid */
.projects-horizontal-wrapper {
    overflow: hidden;
    width: 100vw;
    height: 100vh;
    display: flex;
    align-items: center;
    position: relative; /* Needed for the shadow pseudo-element */
}

/* Creative shadow on the right side */
.projects-horizontal-wrapper::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 20vw; /* Width of the shadow fade */
    height: 100%;
    background: linear-gradient(to left, var(--bg-color) 0%, transparent 100%);
    pointer-events: none; /* Crucial so it doesn't block scrolling/clicks */
    z-index: 5; /* Above cards, but below fixed header (z-index: 10) */
}

.fixed-header-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    display: flex;
    align-items: center;
    padding: 0 4vw;
    z-index: 10;
    pointer-events: none; /* Let clicks pass through */
}

.projects-filter-tabs {
    position: absolute;
    top: 11vh; /* Moved slightly higher */
    left: 4vw;
    display: flex;
    gap: 3vw;
    align-items: center;
    pointer-events: auto; /* Buttons need to be clickable */
    transform: translateY(-20px);
    opacity: 0;
    z-index: 100;
}


.filter-tab {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.4);
    font-family: var(--font-primary);
    font-size: clamp(1rem, 2vw, 1.8rem); /* Slightly smaller font */
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    cursor: pointer;
    padding: 10px 0;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
}

.filter-tab:hover {
    color: #ffffff;
    transform: translateY(-3px);
}

.filter-tab-status {
    display: block;
    margin-top: 5px;
    color: #ff5e00;
    font-size: 0.55em;
    font-weight: 800;
    line-height: 1;
    letter-spacing: 0.16em;
}

.filter-tab::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: #ffffff;
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.filter-tab:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

.connections-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 90; /* Below tabs, above cards */
}

.connection-line {
    stroke: rgba(255, 255, 255, 0.88);
    stroke-width: 2.25;
    stroke-linecap: round;
    stroke-dasharray: 10 8;
    fill: none;
    opacity: 0;
    filter: drop-shadow(0 0 7px rgba(255, 255, 255, 0.5));
    transition: opacity 0.4s ease;
}

.connection-line.active {
    opacity: 1;
    animation: projectConnectionFlow 1.35s linear infinite;
}

@keyframes projectConnectionFlow {
    to { stroke-dashoffset: -36; }
}

@media (min-width: 769px) {
    .projects-grid {
        padding-top: 20vh;
    }
}

.filter-tab.active {
    color: #ffffff;
}

.filter-tab.active::after {
    transform: scaleX(1);
    transform-origin: left;
}

.filter-tab.tracking {
    color: #ffffff;
}

.projects-grid {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    width: max-content;
    height: 100%;
    align-items: center;
    padding: 15vh 50vw 0 10vw; /* 50vw on the right to let the last card scroll fully */
    gap: 35vw;
}

.project-item {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2vw;
    text-decoration: none;
    color: inherit;
    position: relative;
    width: 60vw;
    max-width: 800px;
}

.project-img-wrapper {
    width: 100%;
    overflow: hidden;
    position: relative;
    aspect-ratio: 16/10;
    background: rgba(255, 255, 255, 0.03);
    border: 6px solid rgba(255, 255, 255, 0.08);
    padding: 20px;
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 2;
}

/* Background Large Text */
.project-bg-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 15vw;
    font-family: var(--font-heading);
    font-weight: 900;
    -webkit-text-stroke: 1px rgba(255, 255, 255, 0.05);
    text-stroke: 1px rgba(255, 255, 255, 0.05);
    color: transparent;
    pointer-events: none;
    z-index: 1;
    white-space: nowrap;
}

/* Decorative Index on Frame */
.project-img-wrapper::before {
    content: attr(data-index);
    position: absolute;
    top: 10px;
    right: 15px;
    font-family: var(--font-primary);
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.3);
    z-index: 5;
}

/* Decorative Accent on the frame */
.project-img-wrapper::after {
    content: '';
    position: absolute;
    top: -6px;
    left: 30px;
    width: 50px;
    height: 6px;
    background: #ff5e00;
    z-index: 10;
    transition: width 0.5s ease;
}

.project-item:hover .project-img-wrapper {
    border-color: rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.05);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5);
}

.project-item:hover .project-img-wrapper::after {
    width: 100px;
}

.project-img-inner {
    width: 100%;
    height: 100%;
    overflow: hidden;
    position: relative;
    z-index: 1;
}

.project-img {
    width: 100%;
    height: 150%; /* Image is taller for parallax inside the inner container */
    top: -25%; /* Start offset for parallax */
    left: 0;
    position: absolute;
    background-size: cover;
    background-position: center;
    transition: filter 0.8s ease, transform 0.8s ease;
    filter: grayscale(100%) contrast(1.1) brightness(0.6);
}

.project-item:hover .project-img {
    filter: grayscale(0%) contrast(1.1) brightness(1);
    transform: scale(1.05);
}

/* Abstract placeholders for images to look futuristic out of the box */
.placeholder-1 {
    background: linear-gradient(45deg, #111, #333);
    position: relative;
}
.placeholder-1::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image: repeating-linear-gradient(45deg, transparent, transparent 10px, rgba(255,255,255,0.05) 10px, rgba(255,255,255,0.05) 20px);
}

.placeholder-2 {
    background: radial-gradient(circle at center, #222 0%, #050505 100%);
}

.placeholder-3 {
    background: repeating-radial-gradient(circle at 0 0, #111, #111 20px, #222 20px, #222 40px);
}

.project-soon-card {
    cursor: default;
}

.project-soon-panel {
    position: relative;
    display: grid;
    place-items: center;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background:
        radial-gradient(circle at 50% 45%, rgba(255, 94, 0, 0.18), transparent 40%),
        linear-gradient(135deg, #111 0%, #050505 56%, #171717 100%);
}

.project-soon-panel::before {
    content: '';
    position: absolute;
    inset: 0;
    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: 44px 44px;
    mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.85), transparent);
    pointer-events: none;
}

.project-soon-word {
    position: relative;
    z-index: 1;
    font-family: var(--font-heading);
    font-size: clamp(5.5rem, 13vw, 13rem);
    font-weight: 900;
    line-height: 0.8;
    letter-spacing: -0.08em;
    color: transparent;
    -webkit-text-stroke: 1px rgba(255, 255, 255, 0.8);
    transition: color 0.45s ease, -webkit-text-stroke-color 0.45s ease, transform 0.45s ease;
}

.project-soon-card:hover .project-soon-word {
    color: rgba(255, 255, 255, 0.06);
    -webkit-text-stroke-color: #fff;
    transform: scale(1.035);
}

.project-info {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 2vh;
}

.badge {
    padding: 6px 16px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 50px;
    font-size: 0.75rem;
    font-family: var(--font-primary);
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-color);
    background: rgba(255, 255, 255, 0.02);
    transition: all 0.4s ease;
}

.project-item:hover .badge {
    background: var(--text-color);
    color: var(--bg-color);
    border-color: var(--text-color);
}

.project-meta {
    font-family: var(--font-primary);
    font-size: 0.9rem;
    color: #888;
    margin-bottom: 1vh;
}

/* Projects Page Decorations */
.projects-bg-decor {
    position: fixed;
    top: 20vh;
    right: 5vw;
    font-size: 25vw;
    font-family: var(--font-heading);
    font-weight: 800;
    color: rgba(255, 255, 255, 0.03);
    z-index: -1;
    pointer-events: none;
    line-height: 0.8;
}

.projects-side-label {
    position: absolute;
    right: -5vw;
    top: 50%;
    transform: rotate(90deg);
    font-family: var(--font-primary);
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.2);
    letter-spacing: 5px;
}

.projects-grid::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
    background-size: 100px 100px;
    z-index: -1;
    pointer-events: none;
}

.grid-glow {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle 250px at var(--mouse-x, 50vw) var(--mouse-y, 50vh), rgba(255,255,255,0.03) 0%, transparent 70%);
    z-index: -1;
    pointer-events: none;
}

.project-name {
    font-size: clamp(2rem, 3vw, 3rem);
    position: relative;
    display: inline-block;
    word-break: break-word;
}

.project-name::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0%;
    height: 2px;
    background-color: var(--text-color);
    transition: width 0.5s ease;
}

.project-item:hover .project-name::after {
    width: 100%;
}

/* About Page */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 8vw;
    align-items: start;
}

.about-image-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 3/4;
}

.about-image {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    filter: grayscale(100%) contrast(1.1);
    position: relative;
    z-index: 2;
    overflow: hidden;
}

.about-image.itcomfort-visual {
    background: #080604;
    filter: none;
}

.about-image.itcomfort-visual img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.about-image-wrapper:hover .itcomfort-visual img {
    transform: scale(1.025);
}

.scanline {
    position: absolute;
    top: -100%;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, transparent, rgba(255,255,255,0.05), transparent);
    animation: scan 4s linear infinite;
    pointer-events: none;
}

@keyframes scan {
    0% { top: -100%; }
    100% { top: 100%; }
}

.about-bg-decor {
    position: absolute;
    top: 5vh;
    left: -5vw;
    font-size: 30vw;
    font-family: var(--font-heading);
    font-weight: 800;
    color: rgba(255, 255, 255, 0.02);
    z-index: -1;
    pointer-events: none;
    line-height: 0.8;
    transform: translate(var(--parallax-x), var(--parallax-y));
    transition: transform 0.2s ease-out;
}

.about-title-lockup {
    display: flex;
    width: fit-content;
    max-width: 100%;
    align-items: center;
    gap: clamp(18px, 2.4vw, 38px);
}

.about-title-logo {
    display: block;
    width: clamp(82px, 10vw, 150px);
    height: auto;
    flex: 0 0 auto;
    object-fit: contain;
    filter: none;
}

.about-title-wordmark {
    width: clamp(320px, 55vw, 780px);
    max-width: 100%;
    margin: 0;
    line-height: 1;
}

.about-title-text {
    width: min(100%, 1200px);
    max-width: none;
    margin: 0;
    font-family: var(--font-heading);
    font-size: clamp(4.5rem, 8.5vw, 10rem);
    font-weight: 700;
    line-height: 0.86;
    letter-spacing: -0.075em;
}

.about-title-text .line-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.18em;
}

.about-title-text .about-brand {
    color: #ffffff;
    text-shadow: 0 18px 70px rgba(255, 255, 255, 0.08);
}

.about-title-text .about-accent {
    position: relative;
    color: #ff5e00;
    font-weight: 500;
    letter-spacing: -0.055em;
}

.about-title-text .about-accent::after {
    content: "";
    position: absolute;
    left: 0.03em;
    right: -0.03em;
    bottom: -0.09em;
    height: 0.055em;
    border-radius: 999px;
    background: linear-gradient(90deg, #ff5e00, rgba(255, 94, 0, 0.08));
    transform: skewX(-18deg);
    transform-origin: left center;
}

.about-title-wordmark .line,
.about-title-wordmark .line-inner {
    width: 100%;
}

.about-title-main-logo {
    display: block;
    width: 100%;
    max-width: 100%;
    height: auto;
    object-fit: contain;
    filter: none;
}

@media (max-width: 768px) {
    .about-title-lockup {
        gap: 10px;
    }

    .about-title-logo {
        width: clamp(42px, 13vw, 54px);
    }

    .about-title-lockup .page-title {
        font-size: clamp(2.1rem, 10.5vw, 3.15rem);
        letter-spacing: -0.06em;
    }

    .about-title-wordmark {
        width: 100%;
    }

    .about-title-text {
        width: 100%;
        font-size: clamp(3rem, 15vw, 5.3rem);
        line-height: 0.9;
        letter-spacing: -0.07em;
    }

    .about-title-text .line-inner {
        display: grid;
        justify-items: start;
        gap: 0.08em;
    }

    .about-title-text .about-accent {
        width: fit-content;
    }
}

.about-image-decor {
    position: absolute;
    top: -20px;
    left: -20px;
    width: 100%;
    height: 100%;
    border: 1px solid rgba(255,255,255,0.3);
    z-index: 1;
    transition: transform 0.5s ease;
}

.about-image-wrapper:hover .about-image-decor {
    transform: translate(-10px, -10px);
}

.itcomfort-visual::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 3;
    background: linear-gradient(to top, rgba(5, 5, 5, 0.9) 0%, rgba(5, 5, 5, 0.36) 52%, rgba(5, 5, 5, 0.05) 100%);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.about-image-menu {
    position: absolute;
    right: clamp(14px, 2vw, 24px);
    bottom: clamp(14px, 2vw, 24px);
    left: clamp(14px, 2vw, 24px);
    z-index: 5;
    display: flex;
    gap: 10px;
    min-height: 38%;
    opacity: 0;
    pointer-events: none;
    transform: translateY(32px) scale(0.94);
    transform-origin: center bottom;
    transition: opacity 0.38s ease, transform 0.55s cubic-bezier(0.16, 1, 0.3, 1);
}

.about-image-wrapper:hover .itcomfort-visual::after,
.about-image-wrapper:focus-within .itcomfort-visual::after {
    opacity: 1;
}

.about-image-wrapper:hover .about-image-menu,
.about-image-wrapper:focus-within .about-image-menu {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0) scale(1);
}

.about-image-link {
    position: relative;
    isolation: isolate;
    display: flex;
    min-width: 0;
    padding: clamp(14px, 1.8vw, 22px);
    flex: 1 1 0;
    flex-direction: column;
    justify-content: space-between;
    overflow: hidden;
    color: rgba(255, 255, 255, 0.78);
    border: 1px solid rgba(255, 255, 255, 0.13);
    border-radius: 16px;
    background: rgba(10, 10, 10, 0.56);
    box-shadow: 0 18px 38px rgba(0, 0, 0, 0.28);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    transition: flex 0.48s cubic-bezier(0.16, 1, 0.3, 1), transform 0.42s cubic-bezier(0.16, 1, 0.3, 1), color 0.3s ease, border-color 0.3s ease, background 0.3s ease;
}

.about-image-link:hover,
.about-image-link:focus-visible {
    flex: 1.38 1 0;
    color: #fff;
    border-color: rgba(255, 94, 0, 0.55);
    background: rgba(255, 94, 0, 0.14);
    transform: translateY(-6px);
    outline: none;
}

.about-image-link-index {
    position: relative;
    z-index: 2;
    align-self: flex-end;
    color: rgba(255, 255, 255, 0.44);
    font-size: 0.68rem;
    letter-spacing: 0.16em;
}

.about-image-link-glyph {
    position: absolute;
    top: 50%;
    left: 50%;
    z-index: -1;
    color: rgba(255, 255, 255, 0.055);
    font-family: var(--font-heading);
    font-size: clamp(4rem, 8vw, 7rem);
    font-weight: 800;
    transform: translate(-50%, -50%);
    transition: color 0.4s ease, transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.about-image-link:hover .about-image-link-glyph,
.about-image-link:focus-visible .about-image-link-glyph {
    color: rgba(255, 94, 0, 0.18);
    transform: translate(-50%, -50%) scale(1.18) rotate(-5deg);
}

.about-image-link-name {
    position: relative;
    z-index: 2;
    font-family: var(--font-heading);
    font-size: clamp(0.82rem, 1.2vw, 1.15rem);
    font-weight: 700;
    line-height: 1;
    letter-spacing: -0.02em;
}

.about-image-link-arrow {
    position: absolute;
    right: 14px;
    bottom: 12px;
    z-index: 2;
    color: #ff5e00;
    font-size: 1rem;
    transform: translate(-5px, 5px);
    opacity: 0;
    transition: opacity 0.3s ease, transform 0.35s ease;
}

.about-image-link:hover .about-image-link-arrow,
.about-image-link:focus-visible .about-image-link-arrow {
    opacity: 1;
    transform: translate(0, 0);
}

@media (max-width: 768px) {
    .itcomfort-visual::after {
        opacity: 0.72;
    }

    .about-image-menu {
        right: 12px;
        bottom: 12px;
        left: 12px;
        min-height: 112px;
        gap: 7px;
        opacity: 1;
        pointer-events: auto;
        transform: none;
    }

    .about-image-link {
        min-height: 112px;
        padding: 12px;
        border-radius: 13px;
        background: rgba(8, 8, 8, 0.68);
    }

    .about-image-link:hover,
    .about-image-link:focus-visible {
        flex: 1 1 0;
        transform: none;
    }

    .about-image-link-name {
        max-width: calc(100% - 20px);
        font-size: clamp(0.72rem, 3.6vw, 0.92rem);
        overflow-wrap: anywhere;
    }

    .about-image-link-glyph {
        font-size: 3.8rem;
    }

    .about-image-link-arrow {
        right: 10px;
        bottom: 9px;
        opacity: 1;
        transform: none;
    }
}

.cursor.active {
    transform: translate(-50%, -50%) scale(0.5);
}

.cursor.held {
    background: #ff0000 !important;
    box-shadow: 0 0 15px #ff0000;
}

.about-content {
    display: flex;
    flex-direction: column;
    gap: 8vh;
}

.about-text-wrapper {
    max-width: 900px;
}

.about-text-large {
    font-family: var(--font-heading);
    font-size: 2.5vw;
    line-height: 1.4;
    text-transform: none;
    margin-bottom: 4vh;
}

.about-text-small {
    font-size: 1.2rem;
    color: #ccc;
    line-height: 1.8;
    max-width: 600px;
    font-weight: 300;
    margin-bottom: 4vh;
}

.about-core-info {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 5vh;
    padding-top: 3vh;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.core-item {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.core-label {
    font-family: var(--font-primary);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #888;
}

.core-value {
    font-size: 1rem;
    font-weight: 500;
}

.experience-timeline {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 5vh;
}

.section-heading-small {
    font-size: 1.5rem;
    margin-bottom: 4vh;
    color: #888;
}

.timeline-item {
    display: flex;
    gap: 5vw;
    margin-bottom: 4vh;
    padding-bottom: 4vh;
    border-bottom: 1px dashed rgba(255,255,255,0.1);
}

.timeline-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.timeline-meta {
    font-family: var(--font-primary);
    font-size: 1rem;
    color: #888;
    flex: 0 0 120px;
}

.timeline-info h4 {
    font-size: 1.2rem;
    margin-bottom: 1vh;
    text-transform: none;
}

.timeline-info p {
    font-size: 1rem;
    color: #ccc;
    font-weight: 300;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 5vw;
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 5vh;
}

.skill-category h3 {
    font-size: 1.2rem;
    margin-bottom: 3vh;
    color: #888;
}

.skill-category ul {
    list-style: none;
}

.skill-category li {
    font-size: 1.2rem;
    margin-bottom: 1.5vh;
    padding-bottom: 1.5vh;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

/* Decorative Elements */
.decor {
    position: fixed;
    font-family: var(--font-primary);
    font-size: clamp(1.2rem, 1.7vw, 2.2rem);
    color: rgba(255, 255, 255, 0.075);
    z-index: -1;
    pointer-events: none;
    letter-spacing: 3px;
    font-weight: 500;
}

.decor-tl { top: 4vw; left: 4vw; animation: floatY 4s ease-in-out infinite; }
.decor-tr { top: 4vw; right: 4vw; animation: floatY 4s ease-in-out infinite reverse; }
.decor-bl { bottom: 4vw; left: 4vw; animation: rotateSlow 10s linear infinite; }
.decor-br { bottom: 4vw; right: 4vw; animation: rotateSlow 15s linear infinite reverse; }

/* Site Pet */
.site-pet {
    position: fixed;
    bottom: 0;
    right: 5vw;
    width: 120px;
    height: 120px;
    z-index: 1000;
    pointer-events: all;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.pet-skull {
    position: relative;
    z-index: 2;
    filter: drop-shadow(0 0 10px rgba(255,255,255,0.1));
}

.pet-hand-wrapper.left {
    position: absolute;
    left: 12px;
    bottom: -43px;
    z-index: 3;
    transform-origin: top center;
}

.pet-hand-wrapper.right {
    position: absolute;
    left: 96px;
    bottom: -46px;
    z-index: 3;
    transform: scaleX(-1);
    transform-origin: top center;
}

.pet-skull {
    position: absolute;
    bottom: 44px;
    left: 0;
    z-index: 4;
}

.pet-ribcage {
    position: absolute;
    bottom: 0;
    left: 0;
    z-index: 1;
}

/* Idle animation for pet - Isolate movement in inner wrapper */
@keyframes petFloat {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(10px, -8px); }
}

.pet-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transform-origin: bottom center;
}

.site-pet:not(.is-shattered) .pet-inner {
    animation: petFloat 4s ease-in-out infinite;
}

@keyframes idleHandL {
    0%, 100% { transform: rotate(0deg); }
    50% { transform: rotate(-25deg); }
}

@keyframes idleHandR {
    0%, 100% { transform: scaleX(-1) rotate(0deg); }
    50% { transform: scaleX(-1) rotate(-25deg); }
}

.site-pet:not(.is-shattered) .pet-hand-wrapper.left:not(.wave) {
    animation: idleHandL 5s ease-in-out infinite;
}

.site-pet:not(.is-shattered) .pet-hand-wrapper.right:not(.wave) {
    animation: idleHandR 6s ease-in-out infinite;
}

.pet-upper-arm {
    transform-origin: 6px 4px;
}

.pet-forearm {
    transform-origin: 6px 4px;
}

.pet-speech-bubble {
    position: absolute;
    bottom: 100%;
    right: 50%;
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255,255,255,0.2);
    color: #fff;
    padding: 8px 12px;
    border-radius: 8px 8px 0 8px;
    font-family: var(--font-primary);
    font-size: 0.9rem;
    letter-spacing: 2px;
    white-space: nowrap;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
    pointer-events: none;
    margin-bottom: 10px;
}

.pet-speech-bubble.show {
    opacity: 1;
    transform: translateY(0);
}

@keyframes waveUpper {
    0% { transform: rotate(0deg); }
    15% { transform: rotate(45deg); }
    30% { transform: rotate(15deg); }
    45% { transform: rotate(45deg); }
    60% { transform: rotate(15deg); }
    75% { transform: rotate(45deg); }
    100% { transform: rotate(0deg); }
}

@keyframes waveForearm {
    0% { transform: rotate(0deg); }
    15% { transform: rotate(70deg); }
    30% { transform: rotate(20deg); }
    45% { transform: rotate(70deg); }
    60% { transform: rotate(20deg); }
    75% { transform: rotate(70deg); }
    100% { transform: rotate(0deg); }
}

.pet-hand-wrapper.wave .pet-upper-arm {
    animation: waveUpper 2.5s ease-in-out;
}

.pet-hand-wrapper.wave .pet-forearm {
    animation: waveForearm 2.5s ease-in-out;
}

@keyframes floatY {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

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

/* Project Details Page */
.project-hero {
    position: relative;
    width: 100%;
    height: 80vh;
    overflow: hidden;
    display: flex;
    align-items: flex-end;
    padding: 10vh 4vw;
}

.project-hero-bg {
    position: absolute;
    inset: 0;
    z-index: 1;
    background-size: cover;
    background-position: center;
    filter: grayscale(100%);
    opacity: 0.7;
}

.project-hero-content {
    position: relative;
    z-index: 2;
}

.project-title-large {
    font-size: 10vw;
    line-height: 0.9;
    letter-spacing: -2px;
}

.project-category {
    font-family: var(--font-primary);
    font-size: 1.2rem;
    color: #ccc;
    margin-top: 2vh;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.project-details-container {
    padding-top: 10vh;
}

.project-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 5vw;
    border-top: 1px solid rgba(255,255,255,0.1);
    border-bottom: 1px solid rgba(255,255,255,0.1);
    padding: 5vh 0;
    margin-bottom: 10vh;
}

.info-block h4 {
    font-family: var(--font-heading);
    font-size: 0.9rem;
    color: #888;
    margin-bottom: 1.5vh;
}

.info-block p, .btn-text {
    font-family: var(--font-primary);
    font-size: 1.1rem;
    line-height: 1.6;
}

.btn-text {
    display: inline-block;
    margin-bottom: 1vh;
    position: relative;
}

.btn-text::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background-color: var(--text-color);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.3s ease;
}

.btn-text:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

.section-heading {
    font-size: 3vw;
    margin-bottom: 5vh;
}

.desc-content {
    display: flex;
    flex-direction: column;
    gap: 3vh;
    margin-bottom: 10vh;
}

.project-gallery {
    display: flex;
    flex-direction: column;
    gap: 5vh;
    margin-bottom: 10vh;
}

.gallery-item {
    width: 100%;
    height: 60vh;
    background-size: cover;
    background-position: center;
    filter: grayscale(100%);
}

.next-project-wrapper {
    display: flex;
    justify-content: center;
    padding-top: 5vh;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.project-hero {
    height: 80vh;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: flex-end;
    padding: 0 4vw 8vh;
}

.project-hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 120%; /* Height for parallax */
    background-size: cover;
    background-position: center;
    z-index: -1;
    filter: brightness(0.6);
}

/* Responsive */
@media (max-width: 768px) {
    /* Global Mobile Typography */
    html { font-size: 14px; }
    
    .nav {
        padding: 5vw 6vw;
        background: rgba(10, 10, 10, 0.8);
        backdrop-filter: blur(15px);
        border-bottom: 1px solid rgba(255,255,255,0.05);
    }
    .nav-logo { font-size: 1.1rem; }
    .nav-links { gap: 15px; }
    .nav-links a { font-size: 0.8rem; }

    /* Home Page Hero */
    .hero-title {
        font-size: 14vw;
        letter-spacing: -2px;
    }
    .hero-bottom {
        flex-direction: column;
        gap: 20px;
    }
    .hero-text {
        font-size: 0.95rem;
        width: 100%;
    }

    /* Projects Page - Vertical Column for Mobile */
    .projects-container {
        padding-top: 12vh;
        padding-bottom: 5vh !important;
    }
    .projects-grid {
        display: flex !important;
        flex-direction: column !important;
        gap: 7vh !important;
        padding: 0 6vw 40px;
    }
    
    .project-item {
        flex: auto !important;
        flex-direction: column !important;
        background: transparent;
        padding: 0;
        border: none;
        gap: 20px !important;
    }
    .project-info {
        flex: 0 0 100px !important;
        padding: 10px 0 0 !important;
    }
    .project-img-wrapper {
        width: 100% !important;
        height: 40vh !important;
        margin: 0 !important;
    }
    .project-name {
        font-size: 1.8rem !important;
        margin-bottom: 10px;
    }
    .project-category {
        font-size: 0.8rem;
    }

    /* About & Detail Pages */
    .about-text-large {
        font-size: 1.5rem !important;
        line-height: 1.4;
    }
    .section-heading {
        font-size: 1.6rem !important;
    }
    .about-grid, .project-info-grid {
        grid-template-columns: 1fr !important;
        gap: 30px !important;
    }
    .about-text, .info-block p, .desc-content p {
        font-size: 0.9rem !important;
        line-height: 1.6;
    }
    .about-image-wrapper {
        aspect-ratio: 1/1 !important; /* Square and smaller on mobile */
        width: 80% !important;
        margin: 0 auto;
    }

    /* Restore Marquee as requested */
    .hero-scroll, .decor, .hero-badge {
        display: none !important;
    }

    /* Pet Adjustment */
    .site-pet {
        display: flex;
        transform: scale(0.65); /* Increased size */
        right: 15vw;
        bottom: -10px;
        transform-origin: bottom right;
    }

    /* Detail Page Fixes */
    .project-details-container {
        padding-top: 10vh;
    }
    .gallery-item {
        height: 35vh;
    }
    .next-project-wrapper {
        padding-bottom: 80px;
    }

    .cursor, .cursor-follower {
        display: none;
    }
    body {
        cursor: auto;
    }
}

/* Projects filters: underline only the SOON status on direct hover */
.projects-filter-tabs .filter-tab,
.projects-filter-tabs .filter-tab:hover,
.projects-filter-tabs .filter-tab.active,
.projects-filter-tabs .filter-tab.tracking {
    text-decoration: none;
}

.projects-filter-tabs .filter-tab::after,
.projects-filter-tabs .filter-tab:hover::after,
.projects-filter-tabs .filter-tab.active::after,
.projects-filter-tabs .filter-tab.tracking::after {
    display: none !important;
    transform: none !important;
}

.projects-filter-tabs .filter-tab-status {
    position: relative;
    width: max-content;
    margin-right: auto;
    margin-left: auto;
    padding-bottom: 4px;
    text-decoration: none;
}

.projects-filter-tabs .filter-tab-status::after {
    content: '';
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    height: 1px;
    background: rgba(255, 94, 0, 0.62);
    box-shadow: 0 0 8px rgba(255, 94, 0, 0.34);
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.25s ease;
}

.projects-filter-tabs .filter-tab-status:hover::after {
    transform: scaleX(1);
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 18vw;
    }
    .project-name {
        font-size: 10vw;
    }
    .site-pet {
        transform: scale(0.45);
    }
}

/* Project Details Gallery */
.project-gallery {
    display: flex;
    flex-direction: column;
    gap: 5vh;
    margin-top: 10vh;
}

.gallery-item {
    width: 100%;
    height: 70vh;
    background-size: cover;
    background-position: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: filter 0.5s ease, transform 0.5s ease;
}

.gallery-item:hover {
    filter: grayscale(0%) brightness(80%) contrast(1.1) !important;
    transform: scale(1.02);
}

.next-project-wrapper {
    margin-top: 10vh;
    padding-bottom: 15vh;
    display: flex;
    justify-content: center;
}

/* ============================================
   TAB HOVER PREVIEW PANEL
   ============================================ */
.tab-preview-panel {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 5000;
    pointer-events: none;
    transform: translateY(100%);
    will-change: transform;
}

.tab-preview-panel.is-visible {
    pointer-events: all;
}

.tab-preview-inner {
    background: rgba(8, 8, 8, 0.92);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 28px 4vw 24px;
    position: relative;
}

.tab-preview-inner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
}

.tab-preview-header {
    display: flex;
    align-items: center;
    gap: 3vw;
    margin-bottom: 20px;
}

.tab-preview-meta {
    display: flex;
    align-items: baseline;
    gap: 16px;
    flex-shrink: 0;
}

.tab-preview-label {
    font-family: var(--font-heading);
    font-size: clamp(1.2rem, 2.5vw, 2rem);
    font-weight: 700;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.tab-preview-count {
    font-family: var(--font-primary);
    font-size: 0.8rem;
    color: rgba(255,255,255,0.4);
    text-transform: uppercase;
    letter-spacing: 2px;
    border: 1px solid rgba(255,255,255,0.15);
    padding: 3px 10px;
    border-radius: 20px;
}

.tab-preview-desc {
    font-family: var(--font-primary);
    font-size: 0.9rem;
    color: rgba(255,255,255,0.4);
    flex: 1;
    letter-spacing: 0.5px;
}

.tab-preview-close {
    background: none;
    border: 1px solid rgba(255,255,255,0.2);
    color: rgba(255,255,255,0.5);
    width: 34px;
    height: 34px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.25s ease;
    flex-shrink: 0;
    margin-left: auto;
}

.tab-preview-close:hover {
    background: rgba(255,255,255,0.1);
    color: #fff;
    border-color: rgba(255,255,255,0.4);
}

.tab-preview-cards {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    padding-bottom: 4px;
    scrollbar-width: none;
}

.tab-preview-cards::-webkit-scrollbar { display: none; }

.tab-mini-card {
    flex: 0 0 auto;
    width: 160px;
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 6px;
    overflow: hidden;
    background: rgba(255,255,255,0.03);
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    cursor: pointer;
    position: relative;
}

.tab-mini-card:hover {
    border-color: rgba(255,255,255,0.25);
    background: rgba(255,255,255,0.07);
    transform: translateY(-4px);
}

.tab-mini-card-img {
    width: 100%;
    height: 90px;
    background-size: cover;
    background-position: center;
    filter: grayscale(80%) brightness(0.5);
    transition: filter 0.4s ease;
}

.tab-mini-card:hover .tab-mini-card-img {
    filter: grayscale(0%) brightness(0.8);
}

.tab-mini-card-body {
    padding: 10px 12px;
}

.tab-mini-card-name {
    font-family: var(--font-heading);
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #fff;
    margin-bottom: 6px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.tab-mini-card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}

.tab-mini-tag {
    font-family: var(--font-primary);
    font-size: 0.55rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: rgba(255,255,255,0.5);
    border: 1px solid rgba(255,255,255,0.15);
    padding: 2px 6px;
    border-radius: 20px;
}

.tab-preview-hint {
    font-family: var(--font-primary);
    font-size: 0.65rem;
    color: rgba(255,255,255,0.2);
    letter-spacing: 3px;
    text-align: right;
    margin-top: 16px;
    text-transform: uppercase;
}

/* ============================================
   TAB EXPANDED FULLSCREEN OVERLAY
   ============================================ */
.tab-expanded-overlay {
    position: fixed;
    inset: 0;
    z-index: 6000;
    background: rgba(5, 5, 5, 0.97);
    backdrop-filter: blur(40px);
    -webkit-backdrop-filter: blur(40px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(255,255,255,0.1) transparent;
}

.tab-expanded-overlay.is-open {
    opacity: 1;
    pointer-events: all;
}

.tab-expanded-inner {
    padding: 8vh 4vw 10vh;
    max-width: 1400px;
    margin: 0 auto;
    transform: translateY(40px);
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.tab-expanded-overlay.is-open .tab-expanded-inner {
    transform: translateY(0);
}

.tab-expanded-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 6vh;
    padding-bottom: 4vh;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.tab-expanded-title {
    font-family: var(--font-heading);
    font-size: clamp(3rem, 7vw, 7rem);
    font-weight: 800;
    color: #fff;
    letter-spacing: -2px;
    line-height: 0.9;
    text-transform: uppercase;
}

.tab-expanded-desc {
    font-family: var(--font-primary);
    font-size: 1rem;
    color: rgba(255,255,255,0.4);
    margin-top: 2vh;
    letter-spacing: 0.5px;
}

.tab-expanded-close {
    background: none;
    border: 1px solid rgba(255,255,255,0.2);
    color: rgba(255,255,255,0.6);
    width: 52px;
    height: 52px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    flex-shrink: 0;
    margin-top: 8px;
}

.tab-expanded-close:hover {
    background: rgba(255,255,255,0.08);
    color: #fff;
    border-color: rgba(255,255,255,0.5);
    transform: rotate(90deg);
}

.tab-expanded-stats {
    display: flex;
    gap: 3vw;
    margin-bottom: 6vh;
    flex-wrap: wrap;
}

.expanded-stat {
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex: 0 0 auto;
}

.expanded-stat-value {
    font-family: var(--font-heading);
    font-size: clamp(2.5rem, 5vw, 5rem);
    font-weight: 800;
    color: #fff;
    line-height: 1;
    -webkit-text-stroke: 1px rgba(255,255,255,0.2);
}

.expanded-stat-label {
    font-family: var(--font-primary);
    font-size: 0.75rem;
    color: rgba(255,255,255,0.3);
    text-transform: uppercase;
    letter-spacing: 2px;
}

.tab-expanded-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 20px;
}

.tab-expanded-card {
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 8px;
    overflow: hidden;
    background: rgba(255,255,255,0.02);
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    text-decoration: none;
    color: inherit;
    display: block;
}

.tab-expanded-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background: rgba(255,255,255,0.15);
    transition: width 0.4s ease, background 0.4s ease;
}

.tab-expanded-card:hover::before {
    width: 80px;
    background: #fff;
}

.tab-expanded-card:hover {
    border-color: rgba(255,255,255,0.2);
    background: rgba(255,255,255,0.05);
    transform: translateY(-6px);
    box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}

.tab-expanded-card-img {
    width: 100%;
    height: 180px;
    background-size: cover;
    background-position: center;
    filter: grayscale(60%) brightness(0.6);
    transition: filter 0.5s ease;
}

.tab-expanded-card:hover .tab-expanded-card-img {
    filter: grayscale(0%) brightness(0.85);
}

.tab-expanded-card-body {
    padding: 20px;
}

.tab-expanded-card-index {
    font-family: var(--font-primary);
    font-size: 0.7rem;
    color: rgba(255,255,255,0.2);
    letter-spacing: 2px;
    margin-bottom: 8px;
}

.tab-expanded-card-name {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 700;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
}

.tab-expanded-card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.tab-expanded-tag {
    font-family: var(--font-primary);
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: rgba(255,255,255,0.5);
    border: 1px solid rgba(255,255,255,0.15);
    padding: 3px 10px;
    border-radius: 20px;
    transition: all 0.3s ease;
}

.tab-expanded-card:hover .tab-expanded-tag {
    border-color: rgba(255,255,255,0.3);
    color: rgba(255,255,255,0.8);
}

/* No results state */
.tab-empty-state {
    grid-column: 1 / -1;
    text-align: center;
    padding: 10vh 0;
    color: rgba(255,255,255,0.2);
    font-family: var(--font-heading);
    font-size: 2rem;
    text-transform: uppercase;
    letter-spacing: 4px;
}

/* Projects Scroll Outro */
.projects-outro {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding-left: 10vw;
    height: 100%;
    margin-right: 2vw;
}

.outro-line {
    font-family: var(--font-heading);
    font-size: 13vw;
    font-weight: 900;
    line-height: 0.9;
    text-transform: uppercase;
    color: transparent;
    -webkit-text-stroke: 2px rgba(255, 255, 255, 0.3);
    white-space: nowrap;
    will-change: transform, opacity;
}

.outro-line:nth-child(2) {
    color: #ffffff;
    -webkit-text-stroke: 0;
    margin-left: 8vw;
    font-style: italic;
}

.outro-line:nth-child(3) {
    margin-left: 12vw;
    font-size: clamp(3.2rem, 10.5vw, 11.5rem);
    letter-spacing: -.03em;
}

/* --- NEW REACH OUT FOOTER --- */
.projects-footer {
    position: relative;
    z-index: 5;
    background: #050505;
    color: #fff;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    padding: 10vh 5vw;
}

.footer-container {
    width: 100%;
    max-width: 1600px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10vw;
    position: relative;
    z-index: 2;
}

/* Services Column */
.footer-services {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.footer-label-wrap {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 2rem;
}

.footer-label {
    font-family: var(--font-primary);
    font-size: 0.75rem;
    color: rgba(255,255,255,0.3);
    letter-spacing: 4px;
}

.footer-label-line {
    flex: 1;
    height: 1px;
    background: rgba(255,255,255,0.05);
}

.services-bento {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    width: 100%;
}

.service-item {
    background: rgba(255,255,255,0.02);
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 16px;
    padding: 1.5rem;
    aspect-ratio: 1; /* Make them perfect squares */
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    z-index: 2; /* Keep above the flying GIFs */
    overflow: hidden;
    backdrop-filter: blur(8px); /* Glassmorphism effect over GIFs */
}

.service-item:hover {
    background: rgba(255,255,255,0.06);
    border-color: rgba(255,255,255,0.2);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.service-num {
    font-family: var(--font-primary);
    font-size: 1rem;
    color: rgba(255,255,255,0.3);
    align-self: flex-end; /* Top right */
    transition: color 0.4s ease;
    position: relative;
    z-index: 1;
}

.service-glyph {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-family: 'Inter', sans-serif; /* Clean font for kanji */
    font-size: 6rem;
    font-weight: 900;
    color: rgba(255,255,255,0.03);
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    pointer-events: none;
    z-index: 0;
    white-space: nowrap;
}

.service-name {
    font-family: var(--font-heading);
    font-size: clamp(1.2rem, 1.8vw, 2rem);
    font-weight: 500;
    text-transform: uppercase;
    line-height: 1.2;
    letter-spacing: 1px;
    color: rgba(255,255,255,0.7);
    transition: color 0.4s ease;
    position: relative;
    z-index: 1;
}

.service-item:hover .service-num,
.service-item:hover .service-name {
    color: #fff;
}

.service-item:hover .service-glyph {
    color: rgba(255,255,255,0.08);
    transform: translate(-50%, -50%) scale(1.15);
    letter-spacing: 10px;
}

/* Background Hover Marquee */
.footer-bg-marquee {
    position: absolute;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    width: 100vw;
    overflow: hidden;
    pointer-events: none;
    z-index: 0;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.marquee-track {
    display: flex;
    white-space: nowrap;
}

.marquee-text {
    font-family: var(--font-heading);
    font-size: 15vw;
    font-weight: 900;
    color: transparent;
    -webkit-text-stroke: 2px rgba(255, 255, 255, 0.05);
    padding-right: 5vw;
    line-height: 1;
    text-transform: uppercase;
}

/* Ambient Floating Orbs */
.ambient-orb {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255,255,255,0.05) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
    filter: blur(40px);
}

.orb-1 {
    width: 40vw;
    height: 40vw;
    top: 10%;
    left: -10vw;
    animation: floatOrb 20s infinite alternate ease-in-out;
}

.orb-2 {
    width: 60vw;
    height: 60vw;
    bottom: -20vh;
    right: 20vw;
    background: radial-gradient(circle, rgba(255,255,255,0.03) 0%, transparent 70%);
    animation: floatOrb 25s infinite alternate-reverse ease-in-out;
}

@keyframes floatOrb {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(10vw, -10vh) scale(1.1); }
}

/* Hover Image Reveal (Cursor Mode) */
.hover-image-reveal {
    position: fixed;
    top: 0;
    left: 0;
    width: 320px;
    height: 320px;
    background-size: cover;
    background-position: center;
    border-radius: 20px;
    pointer-events: none;
    z-index: 1; /* Behind the text (which is inside z-index 2 container) */
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.8) rotate(-5deg);
    transition: opacity 0.3s ease, transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), background-image 0.2s ease;
    box-shadow: 0 20px 40px rgba(0,0,0,0.5);
}

.hover-image-reveal.is-active {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1) rotate(0deg);
}

/* Contact Column */
.footer-contact {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-end;
    text-align: right;
}

.footer-heading {
    font-family: var(--font-heading);
    font-size: 6vw;
    font-weight: 900;
    color: transparent;
    -webkit-text-stroke: 1px rgba(255, 255, 255, 0.8);
    margin-bottom: 3rem;
    line-height: 0.9;
}

.email-container {
    margin-bottom: 4rem;
    position: relative;
}

.email-wrapper {
    cursor: pointer;
    position: relative;
    display: inline-block;
}

.email-text {
    font-family: var(--font-primary);
    font-size: clamp(1.5rem, 3vw, 3rem);
    font-weight: 400;
    color: #fff;
    transition: opacity 0.3s ease;
}

.email-wrapper:hover .email-text {
    opacity: 0.5;
}

.copy-notification {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.8);
    font-family: var(--font-heading);
    font-size: clamp(1rem, 2vw, 2rem);
    font-weight: 800;
    color: #00ff88;
    background: rgba(0,255,136,0.1);
    padding: 10px 20px;
    border-radius: 50px;
    opacity: 0;
    pointer-events: none;
    white-space: nowrap;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.email-subtext {
    font-family: var(--font-primary);
    font-size: 0.8rem;
    color: rgba(255,255,255,0.3);
    margin-top: 1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* Social Links */
.social-links {
    display: flex;
    gap: 3rem;
}

.magnetic-wrap {
    display: inline-block;
    padding: 20px; /* Padding creates a larger magnetic area */
    margin: -20px;
}

.magnetic-inner {
    display: inline-block;
    font-family: var(--font-primary);
    font-size: 1rem;
    color: #fff;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 2px;
    position: relative;
}

.magnetic-inner::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 1px;
    background: #fff;
    transition: width 0.3s ease;
}

.magnetic-wrap:hover .magnetic-inner::after {
    width: 100%;
}

/* Background Glow */
.footer-glow {
    position: absolute;
    bottom: -20vh;
    right: -10vw;
    width: 50vw;
    height: 50vw;
    background: radial-gradient(circle, rgba(255,255,255,0.03) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
    z-index: 1;
}

@media (max-width: 768px) {
    .tab-preview-panel { display: none; }
    .tab-expanded-overlay { display: none; }
}

/* ============================
   IT COMFORT BRANDING STYLES
   ============================ */

/* Hide skeleton pet company-wide */
.site-pet { display: none !important; }

/* Badge Logo Image */
.badge-logo-img {
    width: 36px;
    height: 36px;
    object-fit: contain;
    filter: brightness(10);
    opacity: 0.9;
}

.hero-badge-center {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ============================
   SERVICES PAGE
   ============================ */

.services-page-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin: 4rem 0 5rem;
    position: relative;
    z-index: 1;
}

.svc-card {
    background: rgba(255,255,255,0.02);
    border: 1px solid rgba(255,255,255,0.07);
    border-radius: 20px;
    padding: 2.5rem 2rem;
    position: relative;
    overflow: hidden;
    transition: background 0.4s ease, border-color 0.4s ease, transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    backdrop-filter: blur(4px);
}

.svc-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.svc-card:hover {
    background: rgba(255,255,255,0.05);
    border-color: rgba(255,255,255,0.15);
    transform: translateY(-6px);
}

.svc-card:hover::before {
    opacity: 1;
}

.svc-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.svc-num {
    font-family: var(--font-primary);
    font-size: 0.75rem;
    color: rgba(255,255,255,0.25);
    letter-spacing: 2px;
}

.svc-icon {
    font-size: 1.5rem;
    color: rgba(255,255,255,0.2);
    transition: color 0.4s ease, transform 0.5s ease;
}

.svc-card:hover .svc-icon {
    color: rgba(255,255,255,0.7);
    transform: rotate(90deg) scale(1.2);
}

.svc-title {
    font-family: var(--font-heading);
    font-size: clamp(1.3rem, 2vw, 2rem);
    font-weight: 700;
    text-transform: uppercase;
    color: rgba(255,255,255,0.85);
    letter-spacing: 1px;
    margin-bottom: 1rem;
    transition: color 0.4s ease;
}

.svc-card:hover .svc-title {
    color: #fff;
}

.svc-desc {
    font-family: var(--font-primary);
    font-size: 0.9rem;
    line-height: 1.7;
    color: rgba(255,255,255,0.45);
    margin-bottom: 1.5rem;
    transition: color 0.4s ease;
}

.svc-card:hover .svc-desc {
    color: rgba(255,255,255,0.65);
}

.svc-tags {
    list-style: none;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.svc-tags li {
    font-family: var(--font-primary);
    font-size: 0.7rem;
    color: rgba(255,255,255,0.35);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 20px;
    padding: 0.25rem 0.75rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: color 0.3s ease, border-color 0.3s ease;
}

.svc-card:hover .svc-tags li {
    color: rgba(255,255,255,0.6);
    border-color: rgba(255,255,255,0.15);
}

.services-cta {
    text-align: center;
    padding: 5rem 0;
    border-top: 1px solid rgba(255,255,255,0.05);
}

/* ============================================
   MOBILE LAYOUT — desktop styles stay intact
   ============================================ */
@media (max-width: 768px) {
    html {
        font-size: 15px;
        overflow-x: hidden;
    }

    body {
        padding-bottom: 0;
        overflow-x: hidden;
        cursor: auto;
    }

    .container {
        width: 100%;
        max-width: 100%;
        padding-left: 18px;
        padding-right: 18px;
        animation: none;
    }

    .noise {
        opacity: 0.025;
    }

    .preloader {
        padding: 24px 18px 104px;
    }

    .preloader-counter {
        font-size: 18vw;
    }

    /* Mobile brand row with page navigation directly underneath */
    .nav {
        min-height: 116px;
        padding: 10px 14px 12px;
        flex-direction: column;
        justify-content: center;
        gap: 8px;
        background: rgba(5, 5, 5, 0.94);
        border-bottom: 1px solid rgba(255,255,255,0.08);
        backdrop-filter: blur(16px);
        -webkit-backdrop-filter: blur(16px);
        mix-blend-mode: normal;
    }

    .nav-logo,
    .nav-logo a {
        min-width: 0;
        display: flex;
        align-items: center;
        visibility: visible;
        opacity: 1;
    }

    .nav-logo {
        position: relative;
        z-index: 1002;
    }

    .nav-logo a {
        gap: 0.55rem;
    }

    .nav-logo-img {
        display: block;
        height: 32px;
        width: auto;
        opacity: 1;
    }

    .nav-company-name {
        font-size: 0.92rem;
        letter-spacing: 1.4px;
        white-space: nowrap;
    }

    .nav-links {
        position: relative;
        z-index: 1001;
        left: auto;
        right: auto;
        bottom: auto;
        width: 100%;
        max-width: 520px;
        display: grid;
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 4px;
        padding: 5px;
        border: 1px solid rgba(255,255,255,0.12);
        border-radius: 18px;
        background: rgba(10,10,10,0.96);
        box-shadow: 0 14px 34px rgba(0,0,0,0.45);
        backdrop-filter: blur(18px);
        -webkit-backdrop-filter: blur(18px);
    }

    .nav-links .nav-link {
        min-width: 0;
        min-height: 38px;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 0 4px;
        border-radius: 13px;
        overflow: visible;
        font-size: 0.68rem;
        line-height: 1;
        letter-spacing: 0.04em;
        text-align: center;
    }

    .nav-link::after {
        display: none;
    }

    .nav-links .nav-link.active {
        color: #050505;
        background: #fff;
    }

    .btn {
        width: 100%;
        min-height: 52px;
        justify-content: center;
        padding: 14px 22px;
        cursor: pointer;
    }

    .cursor,
    .cursor-follower,
    .decor,
    .hero-badge,
    .scroll-indicator {
        display: none !important;
    }

    /* Home */
    .hero {
        height: auto;
        min-height: calc(100svh - 116px);
        padding: 146px 0 76px;
        align-items: center;
    }

    .hero-subtitle {
        max-width: 260px;
        margin-bottom: 20px;
        font-size: 0.78rem;
        line-height: 1.45;
    }

    .hero-title {
        margin-bottom: 28px;
        font-size: clamp(3.35rem, 17vw, 5.25rem);
        line-height: 0.86;
        letter-spacing: -0.045em;
    }

    .line {
        margin: 0;
        padding: 0.06em 0.02em;
    }

    .hero-bottom {
        align-items: stretch;
        gap: 22px;
        margin-top: 0;
    }

    .hero-text {
        max-width: 34rem;
        font-size: 1rem;
        line-height: 1.6;
    }

    .grid-lines {
        background-size: 58px 58px;
    }

    .glow-blob {
        width: 120vw;
        height: 120vw;
    }

    .marquee-section {
        padding: 34px 0 38px;
    }

    .marquee span {
        margin-right: 18px;
        font-size: 10vw;
    }

    /* Shared inner pages */
    .page-container {
        min-height: auto;
        padding-top: 146px;
        padding-bottom: 54px;
    }

    .page-header {
        margin-bottom: 48px;
    }

    .page-title {
        max-width: 100%;
        font-size: clamp(2.65rem, 13.5vw, 4.2rem);
        line-height: 0.9;
        letter-spacing: -0.06em;
    }

    .page-desc {
        max-width: 30rem;
        margin-top: 18px;
        font-size: 0.98rem;
        line-height: 1.55;
    }

    .about-bg-decor,
    .projects-bg-decor,
    .projects-side-label,
    .connections-layer,
    .grid-glow {
        display: none !important;
    }

    /* Team */
    .about-grid {
        grid-template-columns: 1fr !important;
        gap: 48px !important;
    }

    .about-image-wrapper {
        width: 100% !important;
        max-width: 420px;
        aspect-ratio: 4 / 5 !important;
        margin: 0 auto;
    }

    .about-image-decor {
        top: -10px;
        left: -10px;
    }

    .about-content {
        gap: 48px;
    }

    .about-text-large {
        margin-bottom: 24px;
        font-size: 1.45rem !important;
        line-height: 1.38;
    }

    .about-text-small,
    .info-block p,
    .desc-content p {
        font-size: 1rem !important;
        line-height: 1.7;
    }

    .about-core-info {
        grid-template-columns: 1fr;
        gap: 0;
        margin-top: 34px;
        padding-top: 0;
    }

    .core-item {
        padding: 16px 0;
        border-bottom: 1px solid rgba(255,255,255,0.08);
    }

    .skills-grid {
        grid-template-columns: 1fr;
        gap: 38px;
    }

    .skill-category li {
        min-height: 42px;
        font-size: 1rem;
    }

    .timeline-item {
        flex-direction: column;
        gap: 8px;
    }

    .timeline-meta {
        flex: none;
        font-size: 0.85rem;
    }

    /* Services */
    .services-page-grid {
        grid-template-columns: 1fr;
        gap: 12px;
        margin: 32px 0 52px;
    }

    .svc-card {
        padding: 24px 20px;
        border-radius: 18px;
    }

    .svc-card-header {
        margin-bottom: 20px;
    }

    .svc-title {
        font-size: 1.45rem;
    }

    .svc-desc {
        font-size: 0.95rem;
        line-height: 1.65;
    }

    .svc-tags {
        gap: 7px;
    }

    .svc-tags li {
        padding: 6px 10px;
        font-size: 0.66rem;
    }

    .services-cta {
        padding: 48px 0 24px;
    }

    /* Projects: replace desktop pinned horizontal scene with a mobile list */
    .projects-horizontal-wrapper {
        width: 100%;
        height: auto;
        min-height: 0;
        display: block;
        overflow: visible;
    }

    .projects-horizontal-wrapper::after {
        display: none;
    }

    .fixed-header-overlay {
        position: relative;
        width: 100%;
        height: auto;
        display: block;
        padding: 146px 18px 20px;
    }

    .fixed-header-overlay .page-header {
        margin-bottom: 30px !important;
    }

    .projects-filter-tabs {
        position: relative;
        top: auto;
        left: auto;
        width: 100%;
        display: grid !important;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 7px;
        padding: 8px;
        overflow: visible;
        border: 1px solid rgba(255,255,255,0.12);
        border-radius: 16px;
        background: rgba(255,255,255,0.045);
        opacity: 1 !important;
        transform: none !important;
    }

    .filter-tab {
        min-width: 0;
        min-height: 42px;
        padding: 8px 4px;
        border: 1px solid rgba(255,255,255,0.1);
        border-radius: 11px;
        background: rgba(0,0,0,0.25);
        color: rgba(255,255,255,0.66);
        font-size: 0.7rem;
        line-height: 1;
        cursor: pointer;
    }

    .filter-tab-status {
        margin-top: 4px;
        font-size: 0.62em;
    }

    .filter-tab::after {
        display: none;
    }

    .filter-tab:hover,
    .filter-tab.active {
        color: #050505;
        background: #fff;
        border-color: #fff;
        transform: none;
    }

    .projects-filter-tabs.is-filtering {
        position: fixed !important;
        top: 124px;
        right: 18px;
        left: 18px;
        z-index: 950;
        width: auto;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        padding: 7px;
        background: rgba(7, 7, 7, 0.92);
        box-shadow: 0 16px 36px rgba(0, 0, 0, 0.42);
        backdrop-filter: blur(18px);
        -webkit-backdrop-filter: blur(18px);
    }

    .projects-filter-tabs.is-filtering .filter-tab {
        display: none;
    }

    .projects-filter-tabs.is-filtering .filter-tab[data-filter="all"],
    .projects-filter-tabs.is-filtering .filter-tab.active {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 7px;
    }

    .projects-filter-tabs.is-filtering .filter-tab[data-filter="all"] {
        color: #fff;
        border-color: rgba(255, 94, 0, 0.5);
        background: rgba(255, 94, 0, 0.12);
    }

    .projects-filter-tabs.is-filtering .filter-tab[data-filter="all"]::before {
        content: '←';
        color: #ff5e00;
        font-size: 1rem;
    }

    .projects-filter-tabs.is-filtering .filter-tab-status {
        margin-top: 0;
    }

    .project-item.is-filter-target .project-img-wrapper {
        border-color: #fff;
        box-shadow: 0 0 0 4px rgba(255,255,255,0.12), 0 22px 50px rgba(0,0,0,0.35);
    }

    .projects-grid {
        width: 100%;
        height: auto;
        display: flex !important;
        flex-direction: column !important;
        align-items: stretch;
        gap: 48px !important;
        padding: 18px 18px 68px !important;
    }

    .project-item {
        width: 100%;
        max-width: none;
        flex: none !important;
        gap: 0 !important;
        will-change: transform, opacity;
    }

    .project-img-wrapper {
        width: 100% !important;
        height: auto !important;
        aspect-ratio: 16 / 10;
        margin: 0 !important;
        padding: 8px;
        border-width: 2px;
        will-change: transform, clip-path;
    }

    .project-img {
        top: 0;
        height: 100%;
        will-change: transform;
    }

    .project-bg-text {
        display: none;
    }

    .project-info {
        width: 100%;
        flex: none !important;
        padding: 17px 2px 0 !important;
        will-change: transform, opacity;
    }

    .project-tags {
        gap: 7px;
        margin-bottom: 12px;
    }

    .badge {
        padding: 5px 11px;
        font-size: 0.66rem;
    }

    .project-name {
        margin: 0;
        font-size: clamp(1.75rem, 9vw, 2.6rem) !important;
        line-height: 1;
    }

    .project-soon-card {
        width: 100%;
        overflow: hidden;
    }

    .project-soon-card .project-img-wrapper {
        aspect-ratio: 4 / 3;
    }

    .project-soon-panel {
        min-width: 0;
        min-height: 0;
        background:
            radial-gradient(circle at 50% 45%, rgba(255, 94, 0, 0.2), transparent 42%),
            linear-gradient(145deg, #111 0%, #050505 58%, #171717 100%);
    }

    .project-soon-word {
        max-width: 100%;
        font-size: clamp(3.7rem, 22vw, 6.25rem);
        line-height: 0.82;
        letter-spacing: -0.075em;
        -webkit-text-stroke-width: 1px;
    }

    .projects-outro {
        width: 100%;
        height: auto;
        margin: 8px 0 0;
        padding: 34px 0 6px;
        overflow: hidden;
    }

    .outro-line {
        max-width: 100%;
        margin-left: 0 !important;
        font-size: clamp(2.5rem, 12.5vw, 4rem);
        line-height: 0.92;
        white-space: normal;
        will-change: transform, opacity;
    }

    /* Projects footer */
    .projects-footer {
        min-height: auto;
        padding: 64px 18px;
        align-items: stretch;
    }

    .footer-container {
        grid-template-columns: 1fr;
        gap: 64px;
    }

    .services-bento {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .service-item {
        min-height: 150px;
        padding: 17px;
        aspect-ratio: auto;
        border-radius: 16px;
        cursor: default;
    }

    .service-glyph {
        font-size: 3.4rem;
    }

    .service-name {
        font-size: 1rem;
    }

    .footer-contact {
        align-items: flex-start;
        text-align: left;
    }

    .footer-heading {
        margin-bottom: 28px;
        font-size: clamp(3rem, 16vw, 5rem);
    }

    .email-container {
        width: 100%;
        margin-bottom: 30px;
    }

    .email-text {
        font-size: clamp(1.25rem, 6vw, 1.8rem);
        overflow-wrap: anywhere;
    }

    .social-links {
        flex-wrap: wrap;
        gap: 4px 18px;
    }

    .magnetic-wrap {
        margin: 0;
        padding: 12px 0;
    }

    .hover-image-reveal,
    .footer-bg-marquee {
        display: none;
    }

    /* Project details */
    .project-hero {
        height: 68svh;
        min-height: 500px;
        padding: 0 18px 54px;
    }

    .project-hero-bg {
        height: 100%;
    }

    .project-title-large {
        max-width: 100%;
        font-size: clamp(3rem, 16vw, 5rem);
        line-height: 0.9;
        letter-spacing: -0.045em;
        overflow-wrap: anywhere;
    }

    .project-category {
        margin-top: 14px;
        font-size: 0.82rem;
        line-height: 1.45;
    }

    .project-details-container {
        padding-top: 48px;
        padding-bottom: 36px;
    }

    .project-info-grid {
        grid-template-columns: 1fr !important;
        gap: 0 !important;
        margin-bottom: 56px;
        padding: 8px 0;
    }

    .info-block {
        padding: 18px 0;
        border-bottom: 1px solid rgba(255,255,255,0.08);
    }

    .info-block:last-child {
        border-bottom: 0;
    }

    .info-block h4 {
        margin-bottom: 8px;
    }

    .section-heading {
        margin-bottom: 24px;
        font-size: 2rem !important;
    }

    .desc-content {
        gap: 20px;
        margin-bottom: 52px;
    }

    .project-gallery {
        gap: 18px;
        margin: 0 0 54px;
    }

    .gallery-item {
        height: auto;
        aspect-ratio: 16 / 10;
        background-position: center top;
    }

    .next-project-wrapper {
        margin-top: 0;
        padding: 32px 0 30px;
    }
}

@media (max-width: 480px) {
    .nav-company-name {
        font-size: 0.82rem;
        letter-spacing: 1px;
    }

    .nav-links .nav-link {
        font-size: 0.62rem;
    }

    .hero-title {
        font-size: clamp(3.15rem, 17vw, 4.5rem);
    }

    .services-bento {
        grid-template-columns: 1fr;
    }

    .service-item {
        min-height: 132px;
    }
}

@media (max-width: 768px) and (hover: none) {
    .hero-title:hover .line-inner {
        color: inherit;
        -webkit-text-stroke: 0;
        transform: none;
    }

    .svc-card:hover,
    .project-item:hover .project-img-wrapper,
    .service-item:hover {
        transform: none;
    }
}

/* Scroll-to-next-page transition */
.next-page-pull {
    position: relative;
    isolation: isolate;
    display: flex;
    min-height: 100vh;
    width: 100%;
    padding: clamp(32px, 5vw, 72px);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    color: #f5f5f5;
    text-align: center;
    background: #090909;
}

.next-page-pull::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -2;
    opacity: 0.42;
    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: 72px 72px;
    mask-image: radial-gradient(circle at center, #000 25%, transparent 78%);
}

.next-page-kicker,
.next-page-dest {
    position: relative;
    z-index: 2;
    margin: 0;
    font-family: var(--font-primary);
    font-size: clamp(0.72rem, 1vw, 0.95rem);
    font-weight: 600;
    letter-spacing: 0.24em;
    text-transform: uppercase;
}

.next-page-kicker {
    margin-bottom: clamp(24px, 4vh, 48px);
    color: #ff5e00;
}

.next-page-title {
    position: relative;
    z-index: 2;
    margin: 0;
    color: transparent;
    font-family: var(--font-heading);
    font-size: clamp(4.5rem, 11.5vw, 11rem);
    font-weight: 900;
    line-height: 0.76;
    letter-spacing: -0.075em;
    -webkit-text-stroke: 1px rgba(255, 255, 255, 0.82);
}

.next-page-progress {
    position: relative;
    z-index: 2;
    width: min(620px, 68vw);
    height: 3px;
    margin: clamp(34px, 6vh, 64px) 0 22px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.14);
}

.next-page-progress span {
    display: block;
    width: 100%;
    height: 100%;
    background: #ff5e00;
    box-shadow: 0 0 24px rgba(255, 94, 0, 0.7);
    transform: scaleX(0);
    transform-origin: left center;
}

.next-page-dest {
    color: rgba(255, 255, 255, 0.62);
}

.next-page-orb {
    position: absolute;
    left: 50%;
    bottom: -46%;
    z-index: -1;
    width: min(52vw, 720px);
    aspect-ratio: 1;
    border: 1px solid rgba(255, 94, 0, 0.68);
    border-radius: 50%;
    opacity: 0.16;
    background: radial-gradient(circle at 50% 35%, rgba(255, 94, 0, 0.25), rgba(255, 94, 0, 0.02) 54%, transparent 72%);
    box-shadow: 0 0 130px rgba(255, 94, 0, 0.2), inset 0 0 90px rgba(255, 94, 0, 0.12);
    transform: translateX(-50%);
}

.next-page-curtain {
    position: absolute;
    inset: 0;
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: clamp(12px, 2vh, 24px);
    pointer-events: none;
    background: #ff5e00;
    transform: scaleY(0);
    transform-origin: bottom center;
}

.next-page-curtain-kicker {
    color: rgba(5, 5, 5, 0.58);
    font-family: var(--font-primary);
    font-size: clamp(0.75rem, 1.1vw, 1rem);
    font-weight: 700;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    opacity: 0;
}

.next-page-curtain-title {
    max-width: 92%;
    color: #050505;
    font-family: var(--font-heading);
    font-size: clamp(4rem, 10.5vw, 10rem);
    font-weight: 900;
    line-height: 0.82;
    letter-spacing: -0.075em;
    text-align: center;
    text-transform: uppercase;
    overflow-wrap: anywhere;
    opacity: 0;
}

/* Projects: keep the single SOON card fitted and soften tab statuses */
.project-soon-word {
    max-width: 88%;
    font-size: clamp(4rem, 8vw, 9rem);
    letter-spacing: -0.065em;
}

.filter-tab-status {
    color: rgba(255, 94, 0, 0.42);
    font-size: 0.48em;
    font-weight: 600;
    letter-spacing: 0.14em;
}

/* Projects contact: centered and more polished */
.projects-footer .footer-container {
    max-width: 1180px;
}

.projects-footer .footer-contact {
    align-items: center;
    text-align: center;
}

.projects-footer .footer-heading {
    position: relative;
    margin-bottom: clamp(42px, 6vh, 70px);
    font-size: clamp(4.5rem, 9vw, 9rem);
    line-height: 0.82;
    letter-spacing: -0.065em;
    -webkit-text-stroke: 1px rgba(255, 255, 255, 0.9);
    text-shadow: 0 0 70px rgba(255, 94, 0, 0.12);
}

.projects-footer .footer-heading::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: -22px;
    width: clamp(70px, 10vw, 140px);
    height: 3px;
    background: #ff5e00;
    box-shadow: 0 0 24px rgba(255, 94, 0, 0.65);
    transform: translateX(-50%);
}

.projects-footer .email-container {
    text-align: center;
}

.projects-footer .social-links {
    justify-content: center;
}

/* Projects contact: heading on the left, contact details stacked on the right */
.projects-footer .footer-contact {
    display: grid;
    width: 100%;
    grid-template-columns: minmax(0, 1.2fr) minmax(300px, 0.8fr);
    grid-template-areas:
        "heading email"
        "heading social";
    gap: 30px 6vw;
    align-items: end;
    text-align: left;
}

.projects-footer .footer-heading {
    grid-area: heading;
    align-self: center;
    justify-self: start;
    max-width: 100%;
    margin: 0;
    font-size: clamp(3.6rem, 6.2vw, 7rem);
    white-space: nowrap;
}

.projects-footer .footer-heading::after {
    right: auto;
    left: 0;
    transform: none;
}

.projects-footer .email-container {
    grid-area: email;
    align-self: end;
    justify-self: end;
    max-width: 100%;
    margin: 0 0 22px;
    text-align: right;
}

.projects-footer .social-links {
    grid-area: social;
    justify-self: end;
    justify-content: flex-end;
}

@media (max-width: 768px) {
    .next-page-pull {
        min-height: 100svh;
        padding: 28px 20px;
    }

    .next-page-pull::before {
        background-size: 42px 42px;
    }

    .next-page-title {
        width: 100%;
        max-width: 100%;
        font-size: clamp(1.85rem, 9.4vw, 3.2rem);
        line-height: 0.88;
        letter-spacing: -0.055em;
        text-align: center;
    }

    .next-page-progress {
        width: min(84vw, 440px);
        margin-top: 42px;
    }

    .next-page-orb {
        bottom: -20vw;
        width: 96vw;
    }

    .next-page-curtain-title {
        max-width: 92%;
        font-size: clamp(2rem, 10vw, 3.3rem);
        line-height: 0.9;
        overflow-wrap: anywhere;
    }

    .project-soon-word {
        max-width: 82%;
        font-size: clamp(2.75rem, 15.5vw, 5rem);
    }

    .filter-tab-status {
        opacity: 0.62;
        font-size: 0.56em;
    }

    .projects-footer .footer-contact {
        grid-template-columns: minmax(0, 1fr);
        grid-template-areas:
            "heading"
            "email"
            "social";
        gap: 46px;
        align-items: start;
        text-align: left;
    }

    .projects-footer .footer-heading {
        width: 100%;
        max-width: 100%;
        justify-self: start;
        font-size: clamp(1.9rem, 10.8vw, 3.05rem);
        line-height: 0.9;
        letter-spacing: -0.075em;
        white-space: nowrap;
    }

    .projects-footer .email-container {
        justify-self: end;
        margin: 0;
        text-align: right;
    }

    .projects-footer .social-links {
        width: 100%;
        justify-self: stretch;
        justify-content: flex-end;
        text-align: right;
    }
}

/* Platform-colored social links */
.projects-footer .social-links .magnetic-wrap:nth-child(1) {
    --social-rgb: 34, 158, 217;
}

.projects-footer .social-links .magnetic-wrap:nth-child(2) {
    --social-rgb: 110, 84, 148;
}

.projects-footer .social-links .magnetic-wrap:nth-child(3) {
    --social-rgb: 10, 102, 194;
}

.projects-footer .social-links .magnetic-inner {
    padding: 3px 1px;
    border: 0;
    color: rgba(255, 255, 255, 0.9);
    background: transparent;
    box-shadow: none;
    isolation: isolate;
    transition: color 0.3s ease;
}

.projects-footer .social-links .magnetic-inner::before {
    content: '';
    position: absolute;
    z-index: -1;
    top: 50%;
    left: 50%;
    width: calc(100% + 46px);
    height: 42px;
    border-radius: 50%;
    background: radial-gradient(ellipse at center,
        rgba(var(--social-rgb), 0.3) 0%,
        rgba(var(--social-rgb), 0.14) 44%,
        transparent 76%);
    filter: blur(8px);
    opacity: 0.72;
    transform: translate(-50%, -50%) scale(0.92);
    pointer-events: none;
    transition: opacity 0.3s ease, transform 0.35s ease;
}

.projects-footer .social-links .magnetic-inner::after {
    display: none;
}

.projects-footer .social-links .magnetic-wrap:hover .magnetic-inner {
    color: #fff;
    background: transparent;
    box-shadow: none;
}

.projects-footer .social-links .magnetic-wrap:hover .magnetic-inner::before {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.08);
}

@media (max-width: 768px) {
    .projects-footer .social-links {
        gap: 10px;
    }

    .projects-footer .social-links .magnetic-inner {
        padding: 3px 1px;
        font-size: 0.78rem;
        letter-spacing: 1.2px;
    }
}

/* Final mobile fit pass: prevent long Uzbek labels and media from escaping the viewport. */
@media (max-width: 768px) {
    html,
    body,
    main,
    section,
    .container,
    .page-container,
    .hero-content,
    .about-content,
    .footer-container,
    .footer-contact,
    .email-container,
    .projects-footer .footer-contact {
        min-width: 0;
        max-width: 100%;
    }

    img,
    video,
    canvas {
        max-width: 100%;
        height: auto;
    }

    .nav .nav-main-logo {
        width: auto;
        height: 36px;
        max-width: min(170px, 66vw);
        filter: none;
        opacity: 1;
    }

    .page-title,
    .project-title-large,
    .project-name,
    .svc-title,
    .about-text-large,
    .section-heading,
    .section-heading-small,
    .skill-category h3,
    .timeline-info h4,
    .service-name,
    .footer-heading,
    .next-page-title,
    .next-page-curtain-title,
    .email-text {
        max-width: 100%;
        overflow-wrap: anywhere;
        word-break: normal;
    }

    p,
    li,
    a,
    button,
    span {
        word-break: normal;
    }

    /* Keep the non-scrolling home screen complete even on short phones. */
    .home-viewport .hero {
        min-height: calc(100vh - 120px);
        height: auto;
        padding: 124px 0 30px;
    }

    .home-viewport .hero-subtitle {
        max-width: 100%;
        margin-bottom: 12px;
        font-size: clamp(0.68rem, 2.8vw, 0.8rem);
        letter-spacing: 0.12em;
    }

    .home-viewport .hero-title {
        max-width: 100%;
        margin-bottom: 16px;
        font-size: clamp(2.65rem, 14.5vw, 4.25rem);
        line-height: 0.84;
        letter-spacing: -0.05em;
    }

    .home-viewport .hero-bottom {
        gap: 12px;
    }

    .home-viewport .hero-text {
        max-width: 100%;
        font-size: clamp(0.82rem, 3.4vw, 0.95rem);
        line-height: 1.42;
    }

    .home-viewport .btn {
        min-height: 44px;
        padding: 10px 18px;
    }

    /* Shared page titles and IT Comfort logo lockup. */
    .page-title {
        font-size: clamp(2.25rem, 11.8vw, 3.65rem);
        line-height: 0.88;
        text-wrap: balance;
    }

    .about-title-lockup {
        width: 100%;
        min-width: 0;
        gap: 8px;
    }

    .about-title-logo {
        width: clamp(40px, 12vw, 52px);
    }

    .about-title-lockup .page-title {
        min-width: 0;
        font-size: clamp(1.85rem, 9.8vw, 2.85rem);
    }

    .about-image-wrapper,
    .about-image,
    .about-image.itcomfort-visual,
    .project-img-wrapper,
    .gallery-item {
        max-width: 100%;
    }

    .core-item,
    .timeline-item,
    .timeline-info,
    .skill-category,
    .svc-card,
    .svc-tags,
    .svc-tags li {
        min-width: 0;
        max-width: 100%;
    }

    .core-value,
    .timeline-info p,
    .skill-category li,
    .svc-desc,
    .svc-tags li,
    .services-cta .about-text-large {
        overflow-wrap: anywhere;
    }

    .services-cta .about-text-large {
        font-size: clamp(1.35rem, 6.8vw, 2rem) !important;
        line-height: 1.12;
        text-wrap: balance;
    }

    /* Projects filters, card and contact section. */
    .projects-filter-tabs,
    .projects-grid,
    .project-item,
    .project-soon-card,
    .project-info,
    .projects-outro,
    .projects-footer {
        min-width: 0;
        max-width: 100%;
    }

    .filter-tab {
        overflow-wrap: anywhere;
    }

    .projects-footer .footer-contact {
        width: 100%;
        grid-template-columns: minmax(0, 1fr);
    }

    .projects-footer .footer-heading {
        width: 100%;
        max-width: 100%;
        font-size: clamp(2rem, 10vw, 2.85rem);
        line-height: 0.9;
        letter-spacing: -0.055em;
        white-space: normal;
        text-wrap: balance;
    }

    .projects-footer .email-wrapper,
    .projects-footer .email-text {
        max-width: 100%;
    }

    .projects-footer .email-wrapper {
        display: block;
    }

    .projects-footer .email-text {
        display: inline;
        font-size: clamp(1.05rem, 5.4vw, 1.55rem);
    }

    .projects-footer .social-links {
        max-width: 100%;
        flex-wrap: wrap;
        row-gap: 12px;
    }

    /* Scroll-to-next screen labels stay centered and readable at 320px. */
    .next-page-pull {
        width: 100%;
        max-width: 100%;
        padding-right: 18px;
        padding-left: 18px;
    }

    .next-page-kicker,
    .next-page-dest,
    .next-page-curtain-kicker {
        max-width: 100%;
        font-size: clamp(0.64rem, 3vw, 0.78rem);
        line-height: 1.35;
        letter-spacing: 0.12em;
        overflow-wrap: anywhere;
        text-align: center;
    }

    .next-page-title {
        font-size: clamp(1.75rem, 8.8vw, 2.9rem);
        line-height: 0.9;
        letter-spacing: -0.045em;
        text-wrap: balance;
    }

    .next-page-curtain-title {
        max-width: calc(100% - 28px);
        font-size: clamp(1.8rem, 9vw, 3rem);
        line-height: 0.92;
        letter-spacing: -0.045em;
        overflow-wrap: normal;
        text-wrap: balance;
    }
}

@media (max-width: 360px) {
    .nav {
        padding-right: 10px;
        padding-left: 10px;
    }

    .nav-links .nav-link {
        padding-right: 2px;
        padding-left: 2px;
        font-size: 0.58rem;
        letter-spacing: 0.01em;
    }

    .home-viewport .hero-title {
        font-size: clamp(2.45rem, 13.8vw, 3.1rem);
    }

    .projects-filter-tabs {
        gap: 5px;
        padding: 6px;
    }

    .filter-tab {
        padding-right: 2px;
        padding-left: 2px;
        font-size: 0.64rem;
    }
}

@media (max-width: 768px) and (max-height: 680px) {
    .home-viewport .hero {
        padding-top: 118px;
        padding-bottom: 8px;
    }

    .home-viewport .hero-title {
        margin-bottom: 10px;
        font-size: clamp(2.35rem, 12.8vw, 3.25rem);
    }

    .home-viewport .hero-bottom {
        gap: 8px;
    }

    .home-viewport .hero-text {
        font-size: 0.78rem;
        line-height: 1.32;
    }

    .home-viewport .btn {
        min-height: 40px;
        padding: 8px 16px;
    }
}

/* Final responsive lock for the ITcomfort about title. */
@media (max-width: 768px) {
    .about-title-lockup .about-title-text {
        width: 100%;
        font-size: clamp(3rem, 15vw, 5.3rem);
        line-height: 0.9;
        letter-spacing: -0.07em;
    }
}

/* Projects contact: compact heading at top-left, details aligned right. */
.projects-footer .footer-contact {
    grid-template-columns: minmax(190px, 0.55fr) minmax(420px, 1.45fr);
    grid-template-areas:
        "heading email"
        ". social";
    gap: 26px clamp(36px, 7vw, 110px);
    align-items: start;
}

.projects-footer .footer-heading {
    align-self: start;
    justify-self: start;
    margin: 0;
    font-size: clamp(2rem, 3.2vw, 3.8rem);
    line-height: 0.92;
    letter-spacing: -0.055em;
    white-space: nowrap;
}

.projects-footer .footer-heading::after {
    bottom: -15px;
    width: clamp(50px, 5vw, 82px);
    height: 2px;
}

.projects-footer .email-container {
    align-self: start;
    justify-self: end;
    margin: 0;
    text-align: right;
}

.projects-footer .social-links {
    justify-self: end;
    justify-content: flex-end;
    text-align: right;
}

@media (max-width: 768px) {
    .projects-footer .footer-contact {
        grid-template-columns: minmax(105px, 0.42fr) minmax(0, 1fr);
        grid-template-areas:
            "heading email"
            ". social";
        gap: 28px 14px;
        align-items: start;
    }

    .projects-footer .footer-heading {
        width: auto;
        font-size: clamp(1.2rem, 5.2vw, 1.65rem);
        line-height: 1;
        letter-spacing: -0.045em;
        white-space: nowrap;
    }

    .projects-footer .footer-heading::after {
        bottom: -10px;
        width: 42px;
    }

    .projects-footer .email-container {
        min-width: 0;
        justify-self: stretch;
        text-align: right;
    }

    .projects-footer .email-text {
        font-size: clamp(1rem, 4.5vw, 1.35rem);
    }

    .projects-footer .social-links {
        width: 100%;
        justify-self: stretch;
        justify-content: flex-end;
        gap: 3px 14px;
    }
}

/* ITcomfort about page: image-free creative composition. */
.about-creative-header {
    position: relative;
    isolation: isolate;
    min-height: clamp(460px, 52vw, 690px);
    display: flex;
    align-items: center;
    overflow: hidden;
    margin-bottom: clamp(72px, 10vh, 130px);
    padding: clamp(100px, 12vw, 170px) 0 clamp(82px, 9vw, 120px);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.about-creative-header::before {
    content: "";
    position: absolute;
    z-index: -2;
    inset: 0;
    background:
        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: clamp(42px, 5vw, 78px) clamp(42px, 5vw, 78px);
    -webkit-mask-image: linear-gradient(90deg, #000 0%, rgba(0,0,0,.7) 64%, transparent 100%);
    mask-image: linear-gradient(90deg, #000 0%, rgba(0,0,0,.7) 64%, transparent 100%);
}

.about-creative-header::after {
    content: "";
    position: absolute;
    z-index: -1;
    right: -10%;
    top: 8%;
    width: min(58vw, 760px);
    aspect-ratio: 1;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255,94,0,.2) 0%, rgba(255,94,0,.07) 34%, transparent 70%);
    filter: blur(18px);
}

.about-creative-header .about-title-lockup {
    position: relative;
    z-index: 2;
    width: 100%;
}

.about-creative-header .about-title-text {
    width: 100%;
    font-size: clamp(4.7rem, 9.2vw, 11rem);
}

.about-creative-meta {
    position: absolute;
    z-index: 3;
    top: clamp(24px, 4vw, 54px);
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-between;
    color: rgba(255,255,255,.45);
    font-size: clamp(.65rem, .75vw, .82rem);
    font-weight: 600;
    letter-spacing: .2em;
}

.about-creative-meta span:first-child {
    color: #ff5e00;
}

.about-creative-orbit {
    position: absolute;
    z-index: 1;
    right: clamp(8px, 4vw, 72px);
    top: 50%;
    width: clamp(190px, 28vw, 430px);
    aspect-ratio: 1;
    border: 1px solid rgba(255,255,255,.16);
    border-radius: 50%;
    transform: translateY(-50%);
    box-shadow: 0 0 0 clamp(18px, 3vw, 46px) rgba(255,255,255,.018), 0 0 90px rgba(255,94,0,.08);
}

.about-creative-orbit::before {
    content: "";
    position: absolute;
    inset: 13%;
    border: 1px dashed rgba(255,94,0,.5);
    border-radius: 50%;
    animation: aboutOrbitSpin 18s linear infinite;
}

.about-creative-orbit i {
    position: absolute;
    top: 8%;
    left: 50%;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #ff5e00;
    box-shadow: 0 0 24px rgba(255,94,0,.9);
    transform: translateX(-50%);
}

.about-creative-orbit b {
    position: absolute;
    left: 50%;
    top: 50%;
    color: rgba(255,255,255,.14);
    font-family: var(--font-heading);
    font-size: clamp(3.6rem, 8vw, 8rem);
    font-weight: 700;
    transform: translate(-50%, -50%);
}

.about-creative-strip {
    position: absolute;
    z-index: 3;
    left: 0;
    bottom: clamp(24px, 3vw, 44px);
    display: flex;
    align-items: center;
    gap: clamp(12px, 1.8vw, 26px);
    color: rgba(255,255,255,.48);
    font-size: clamp(.64rem, .72vw, .8rem);
    font-weight: 600;
    letter-spacing: .16em;
}

.about-creative-strip i {
    width: 26px;
    height: 1px;
    background: #ff5e00;
}

.about-grid-copy-only {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
}

.about-grid-copy-only .about-content {
    width: 100%;
    gap: clamp(60px, 8vh, 100px);
}

.about-grid-copy-only .about-text-wrapper {
    max-width: none;
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(300px, .85fr);
    gap: 36px clamp(48px, 8vw, 130px);
    align-items: start;
}

.about-grid-copy-only .about-text-large,
.about-grid-copy-only .about-text-small {
    max-width: none;
    margin: 0;
}

.about-grid-copy-only .about-core-info {
    grid-column: 1 / -1;
}

.about-grid-copy-only .skills-grid {
    width: 100%;
    grid-template-columns: minmax(0, 1fr);
    margin-left: 0;
}

.about-grid-copy-only .skills-grid .skill-category {
    display: grid;
    width: 100%;
    grid-template-columns: minmax(210px, .34fr) minmax(0, 1fr);
    gap: clamp(34px, 6vw, 100px);
    align-items: start;
}

.about-grid-copy-only .skills-grid .skill-category h3 {
    margin: 0;
    color: #fff;
    font-size: clamp(1.45rem, 2.4vw, 2.4rem);
    line-height: 1;
}

.about-grid-copy-only .skills-grid .skill-category ul {
    display: grid;
    width: 100%;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: clamp(26px, 4vw, 70px);
}

@keyframes aboutOrbitSpin {
    to { transform: rotate(360deg); }
}

@media (max-width: 768px) {
    .about-creative-header {
        min-height: 520px;
        margin-bottom: 70px;
        padding: 118px 0 92px;
    }

    .about-creative-header .about-title-text {
        font-size: clamp(3.2rem, 16vw, 5.6rem);
    }

    .about-creative-meta {
        top: 25px;
        font-size: .59rem;
        letter-spacing: .14em;
    }

    .about-creative-orbit {
        right: -82px;
        width: 280px;
        opacity: .68;
    }

    .about-creative-strip {
        right: 0;
        bottom: 27px;
        flex-wrap: wrap;
        gap: 9px 12px;
        font-size: .58rem;
        letter-spacing: .12em;
    }

    .about-creative-strip i {
        width: 14px;
    }

    .about-grid-copy-only .about-text-wrapper {
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        gap: 28px;
    }

    .about-grid-copy-only .about-core-info {
        grid-column: auto;
    }

    .about-grid-copy-only .skills-grid {
        width: 100%;
    }

    .about-grid-copy-only .skills-grid .skill-category {
        grid-template-columns: minmax(0, 1fr);
        gap: 22px;
    }

    .about-grid-copy-only .skills-grid .skill-category ul {
        grid-template-columns: minmax(0, 1fr);
    }
}

@media (prefers-reduced-motion: reduce) {
    .about-creative-orbit::before { animation: none; }
}

/* Alfa Connect project preview */
.project-live-card {
    cursor: pointer;
}

.alfa-preview-link {
    position: absolute;
    inset: 0;
    z-index: 1;
    display: block;
    color: inherit;
    text-decoration: none;
}

.alfa-project-info-link {
    color: inherit;
    text-decoration: none;
}

.alfa-preview-carousel {
    --drag-x: 0px;
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background: #002627;
    cursor: grab;
    touch-action: pan-y;
    user-select: none;
    -webkit-user-select: none;
}

.alfa-preview-carousel.is-dragging {
    cursor: grabbing;
}

.alfa-connect-preview {
    position: absolute;
    inset: 0;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: center center;
    transform-origin: center center;
    opacity: 0;
    z-index: 0;
    transform: scale(1.035);
    filter: saturate(.82) brightness(.76) contrast(1.04);
    transition: opacity .75s ease, transform 3.6s ease, filter .8s ease;
    pointer-events: none;
    -webkit-user-drag: none;
}

.alfa-connect-preview.is-active {
    z-index: 1;
    opacity: 1;
    transform: scale(1);
}

.project-live-card:hover .alfa-connect-preview.is-active,
.project-live-card:focus-visible .alfa-connect-preview.is-active {
    filter: saturate(1) brightness(1) contrast(1);
    transform: scale(1.025);
}

.alfa-preview-carousel.is-dragging .alfa-connect-preview.is-active {
    transition: none;
    transform: translateX(var(--drag-x)) scale(.99);
}

.alfa-preview-dots {
    position: absolute;
    z-index: 4;
    left: 50%;
    bottom: 14px;
    display: flex;
    gap: 7px;
    padding: 7px 9px;
    border: 1px solid rgba(80, 214, 226, .25);
    border-radius: 999px;
    background: rgba(0, 24, 26, .66);
    backdrop-filter: blur(9px);
    transform: translateX(-50%);
    pointer-events: none;
}

.alfa-preview-dots span {
    width: 6px;
    height: 6px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .36);
    transition: width .35s ease, background-color .35s ease;
}

.alfa-preview-dots span.is-active {
    width: 22px;
    background: #50d6e2;
}

.alfa-preview-arrow {
    position: absolute;
    z-index: 8;
    top: 50%;
    display: grid;
    width: 46px;
    height: 46px;
    padding: 0;
    place-items: center;
    border: 1px solid rgba(80, 214, 226, .45);
    border-radius: 50%;
    background: rgba(0, 25, 27, .78);
    color: #fff;
    font: 700 1.25rem/1 var(--font-primary);
    opacity: .5;
    backdrop-filter: blur(12px);
    box-shadow: 0 10px 28px rgba(0, 0, 0, .3);
    transform: translateY(-50%) scale(.94);
    transition: opacity .25s ease, transform .25s ease, background-color .25s ease;
    cursor: pointer;
}

.alfa-preview-prev {
    left: 14px;
}

.alfa-preview-next {
    right: 14px;
}

.project-live-card:hover .alfa-preview-arrow,
.alfa-preview-arrow:focus-visible {
    opacity: 1;
    transform: translateY(-50%) scale(1);
}

.alfa-preview-arrow:hover,
.alfa-preview-arrow:focus-visible {
    border-color: #50d6e2;
    outline: none;
    background: #087d86;
}

.project-live-card:focus-visible {
    outline: 2px solid #ff5e00;
    outline-offset: 8px;
}

.project-live-mark {
    position: absolute;
    z-index: 3;
    top: 18px;
    left: 18px;
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 9px 13px;
    border: 1px solid rgba(80, 214, 226, .5);
    border-radius: 999px;
    background: rgba(0, 27, 29, .78);
    color: #58dbe6;
    font-family: var(--font-primary);
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .14em;
    line-height: 1;
    backdrop-filter: blur(12px);
}

.project-live-mark b {
    color: #fff;
    font-size: .9rem;
}

@media (max-width: 768px) {
    .alfa-preview-arrow {
        width: 38px;
        height: 38px;
        font-size: 1rem;
        opacity: .92;
    }

    .alfa-preview-prev {
        left: 8px;
    }

    .alfa-preview-next {
        right: 8px;
    }

    .alfa-preview-dots {
        bottom: 9px;
        gap: 5px;
        padding: 5px 7px;
    }

    .alfa-preview-dots span {
        width: 5px;
        height: 5px;
    }

    .alfa-preview-dots span.is-active {
        width: 17px;
    }

    .project-live-mark {
        top: 12px;
        left: 12px;
        padding: 8px 11px;
        font-size: .64rem;
    }

    /* Projects contact: heading first, details stacked below on the right. */
    .projects-footer .footer-contact {
        display: grid;
        width: 100%;
        grid-template-columns: minmax(0, 1fr);
        grid-template-areas:
            "heading"
            "email"
            "social";
        gap: 30px;
        align-items: start;
        text-align: left;
    }

    .projects-footer .footer-heading {
        grid-area: heading;
        width: auto;
        max-width: 100%;
        margin: 0 0 14px;
        justify-self: start;
        text-align: left;
        font-size: clamp(1.75rem, 8.8vw, 2.55rem);
        line-height: .94;
        letter-spacing: -.045em;
        white-space: nowrap;
        overflow-wrap: normal;
    }

    .projects-footer .footer-heading::after {
        bottom: -14px;
        width: 64px;
    }

    .projects-footer .email-container {
        grid-area: email;
        width: min(100%, 350px);
        margin: 0;
        justify-self: end;
        text-align: right;
    }

    .projects-footer .social-links {
        grid-area: social;
        width: min(100%, 350px);
        margin-left: auto;
        justify-self: end;
        justify-content: flex-end;
        text-align: right;
    }
}

@media (prefers-reduced-motion: reduce) {
    .alfa-connect-preview {
        transition: none;
    }
}

/* Orbital hero cascade lock: keep the selected concept above legacy about styles. */
.about-creative-header.about-orbit-hero {
    display: block;
    min-height: clamp(620px, 50vw, 780px);
    margin-bottom: clamp(72px, 10vh, 130px);
    padding: clamp(78px, 7vw, 112px) clamp(36px, 4.5vw, 74px) clamp(60px, 6vw, 92px);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, .2);
    background: #030303;
}

.about-creative-header.about-orbit-hero::before {
    inset: 0;
    background:
        radial-gradient(circle at 70% 48%, rgba(255, 94, 0, .06), transparent 35%),
        linear-gradient(rgba(255, 255, 255, .018) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, .018) 1px, transparent 1px);
    background-size: auto, 54px 54px, 54px 54px;
    -webkit-mask-image: none;
    mask-image: none;
}

.about-creative-header.about-orbit-hero::after {
    top: 41%;
    left: 24%;
    right: auto;
    width: 33%;
    height: 1px;
    aspect-ratio: auto;
    border-radius: 999px;
    background: linear-gradient(90deg, transparent, rgba(255, 94, 0, .8));
    box-shadow: 0 0 12px rgba(255, 94, 0, .45);
    filter: none;
    transform: rotate(-8deg);
    transform-origin: right center;
}

.about-creative-header.about-orbit-hero .about-title-text {
    width: 100%;
    margin: 0;
    font-size: clamp(3.7rem, 5.8vw, 7rem);
    line-height: .78;
    letter-spacing: -.07em;
}

@media (max-width: 768px) {
    .about-creative-header.about-orbit-hero {
        display: block;
        min-height: 830px;
        margin-bottom: 70px;
        padding: 72px 20px 70px;
    }

    .about-creative-header.about-orbit-hero::after {
        display: none;
    }

    .about-creative-header.about-orbit-hero .about-title-text {
        width: 100%;
        margin-top: 20px;
        font-size: clamp(2.7rem, 12vw, 4.2rem);
        line-height: .82;
    }
}

@media (max-width: 390px) {
    .about-creative-header.about-orbit-hero {
        min-height: 790px;
        padding-right: 14px;
        padding-left: 14px;
    }

    .about-creative-header.about-orbit-hero .about-title-text {
        font-size: clamp(2.45rem, 11.8vw, 3.35rem);
    }
}

/* ITcomfort about: editorial typography hero */
.about-type-hero {
    position: relative;
    isolation: isolate;
    display: grid;
    min-height: clamp(590px, 50vw, 760px);
    margin-bottom: clamp(72px, 10vh, 130px);
    padding: clamp(104px, 9vw, 142px) clamp(30px, 5vw, 82px) clamp(86px, 7vw, 112px);
    align-content: center;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, .18);
    background:
        radial-gradient(circle at 86% 28%, rgba(255, 94, 0, .1), transparent 27%),
        #030303;
}

.about-type-hero::before {
    content: "";
    position: absolute;
    z-index: -2;
    inset: 0;
    pointer-events: none;
    background:
        linear-gradient(rgba(255, 255, 255, .022) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, .022) 1px, transparent 1px);
    background-size: 72px 72px;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 20%, #000 82%, transparent);
    mask-image: linear-gradient(90deg, transparent, #000 20%, #000 82%, transparent);
}

.about-type-hero::after {
    content: "01";
    position: absolute;
    z-index: -1;
    right: clamp(-28px, -1vw, -8px);
    bottom: clamp(-96px, -5vw, -48px);
    color: transparent;
    font-family: var(--font-secondary);
    font-size: clamp(18rem, 36vw, 42rem);
    font-weight: 800;
    line-height: .72;
    letter-spacing: -.12em;
    -webkit-text-stroke: 1px rgba(255, 255, 255, .045);
    pointer-events: none;
}

.about-type-meta {
    position: absolute;
    top: clamp(26px, 3vw, 44px);
    right: clamp(24px, 4vw, 64px);
    left: clamp(24px, 4vw, 64px);
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: rgba(255, 255, 255, .47);
    font-family: var(--font-primary);
    font-size: .72rem;
    font-weight: 600;
    letter-spacing: .18em;
}

.about-type-meta span:first-child {
    color: var(--accent);
}

.about-type-stage {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) minmax(235px, .5fr);
    gap: clamp(54px, 8vw, 140px);
    align-items: end;
}

.about-type-copy {
    padding-right: clamp(32px, 4vw, 68px);
}

.about-type-title {
    display: flex;
    flex-direction: column;
    gap: clamp(14px, 2.5vw, 36px);
    width: 100%;
    margin: 0;
    color: #fff;
    line-height: 1;
    letter-spacing: 0;
    text-transform: none;
}

.about-type-title .line {
    display: block;
    padding: .1em 0 .15em;
    overflow: hidden;
}

.about-type-brand {
    display: block;
    color: #fff;
    font-family: var(--font-secondary);
    font-size: clamp(4.5rem, 8.5vw, 9.7rem);
    font-weight: 700;
    line-height: .98;
    letter-spacing: -.075em;
    text-transform: none;
    white-space: nowrap;
}

.about-type-script {
    display: block;
    width: fit-content;
    margin-left: clamp(18px, 4vw, 72px);
    color: var(--accent);
    font-family: "Cormorant Garamond", Georgia, serif;
    font-size: clamp(6rem, 12vw, 13.2rem);
    font-style: italic;
    font-weight: 600;
    line-height: .95;
    letter-spacing: -.055em;
    text-transform: lowercase;
}

.about-type-note {
    position: relative;
    max-width: 310px;
    margin-bottom: clamp(20px, 3vw, 44px);
    padding: 0 0 4px 30px;
    color: rgba(255, 255, 255, .72);
    font-family: var(--font-primary);
    font-size: clamp(.95rem, 1.2vw, 1.15rem);
    line-height: 1.55;
}

.about-type-note::before {
    content: "";
    position: absolute;
    top: 8px;
    bottom: 5px;
    left: 7px;
    width: 1px;
    background: linear-gradient(var(--accent), rgba(255, 94, 0, 0));
}

.about-type-note p {
    margin: 0;
}

.about-type-dot {
    position: absolute;
    top: 4px;
    left: 3px;
    width: 9px;
    height: 9px;
    border: 1px solid var(--accent);
    border-radius: 50%;
    box-shadow: 0 0 16px rgba(255, 94, 0, .65);
}

.about-type-services {
    position: absolute;
    right: clamp(24px, 4vw, 64px);
    bottom: clamp(26px, 3vw, 44px);
    left: clamp(24px, 4vw, 64px);
    display: flex;
    gap: clamp(22px, 4vw, 68px);
    align-items: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, .13);
    color: rgba(255, 255, 255, .82);
    font-family: var(--font-primary);
    font-size: .78rem;
    font-weight: 600;
    letter-spacing: .14em;
}

.about-type-services span {
    display: inline-flex;
    gap: 11px;
    align-items: center;
    white-space: nowrap;
}

.about-type-services b {
    color: var(--accent);
    font-size: .65rem;
    font-weight: 600;
}

.about-type-rail {
    position: absolute;
    top: 18%;
    right: clamp(18px, 2vw, 34px);
    width: 1px;
    height: 42%;
    background: linear-gradient(transparent, rgba(255, 94, 0, .72), transparent);
}

.about-type-rail::before,
.about-type-rail::after {
    content: "";
    position: absolute;
    left: -3px;
    width: 7px;
    height: 1px;
    background: var(--accent);
}

.about-type-rail::before {
    top: 28%;
}

.about-type-rail::after {
    bottom: 18%;
}

@media (max-width: 768px) {
    .about-type-hero {
        min-height: 690px;
        margin-bottom: 68px;
        padding: 94px 20px 152px;
        align-content: center;
        background:
            radial-gradient(circle at 84% 22%, rgba(255, 94, 0, .12), transparent 29%),
            #030303;
    }

    .about-type-hero::before {
        background-size: 44px 44px;
    }

    .about-type-hero::after {
        right: -16px;
        bottom: 24px;
        font-size: clamp(13rem, 62vw, 18rem);
    }

    .about-type-meta {
        top: 24px;
        right: 20px;
        left: 20px;
        font-size: .58rem;
        letter-spacing: .12em;
    }

    .about-type-meta span:last-child {
        display: none;
    }

    .about-type-stage {
        grid-template-columns: minmax(0, 1fr);
        gap: 40px;
        align-items: start;
    }

    .about-type-brand {
        font-size: clamp(2.75rem, 13vw, 4.75rem);
        letter-spacing: -.07em;
        white-space: normal;
    }

    .about-type-script {
        margin-left: 0;
        font-size: clamp(5rem, 23vw, 7.6rem);
        line-height: .72;
    }

    .about-type-note {
        max-width: 270px;
        margin: 0;
        font-size: .96rem;
    }

    .about-type-services {
        right: 20px;
        bottom: 24px;
        left: 20px;
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 15px 18px;
        padding-top: 18px;
        font-size: .68rem;
        letter-spacing: .08em;
    }

    .about-type-services span:last-child {
        grid-column: 1 / -1;
    }

    .about-type-rail {
        display: none;
    }
}

@media (max-width: 390px) {
    .about-type-hero {
        min-height: 650px;
        padding-right: 16px;
        padding-left: 16px;
    }

    .about-type-meta,
    .about-type-services {
        right: 16px;
        left: 16px;
    }

    .about-type-brand {
        font-size: clamp(2.35rem, 12.5vw, 3.35rem);
    }

    .about-type-script {
        font-size: clamp(4.4rem, 21vw, 6.25rem);
    }

    .about-type-services {
        grid-template-columns: minmax(0, 1fr);
        gap: 11px;
    }

    .about-type-services span:last-child {
        grid-column: auto;
    }
}

/* ITcomfort about: clean, unboxed heading */
.about-type-hero {
    display: flex;
    min-height: clamp(430px, 43vw, 620px);
    margin-bottom: clamp(64px, 9vh, 112px);
    padding: clamp(96px, 8vw, 132px) 0 clamp(54px, 6vw, 84px);
    align-items: center;
    overflow: visible;
    border: 0;
    background: transparent;
}

.about-type-hero::before,
.about-type-hero::after {
    display: none;
}

.about-type-stage {
    display: flex;
    width: 100%;
    flex-direction: column;
    gap: clamp(28px, 4vw, 54px);
    align-items: flex-start;
}

.about-type-title {
    width: 100%;
}

.about-type-title .line {
    padding: .03em 0 .1em;
}

.about-type-brand {
    font-size: clamp(4.5rem, 8vw, 9.3rem);
    line-height: .98;
    letter-spacing: -.075em;
    white-space: normal;
}

.about-type-script {
    margin-left: 0;
    font-size: clamp(5.5rem, 10.5vw, 12rem);
    line-height: .95;
    letter-spacing: -.04em;
    text-transform: uppercase;
}

.about-type-note {
    max-width: 600px;
    margin: 0;
    padding: 0;
    color: rgba(255, 255, 255, .64);
    font-size: clamp(1rem, 1.4vw, 1.3rem);
    line-height: 1.5;
}

.about-type-note::before {
    display: none;
}

@media (max-width: 768px) {
    .about-type-hero {
        min-height: auto;
        margin-bottom: 56px;
        padding: 92px 0 54px;
        background: transparent;
    }

    .about-type-stage {
        gap: 28px;
    }

    .about-type-brand {
        font-size: clamp(2.65rem, 13.6vw, 4.7rem);
        letter-spacing: -.065em;
    }

    .about-type-script {
        font-size: clamp(4.1rem, 20vw, 7rem);
        line-height: .72;
    }

    .about-type-note {
        max-width: 100%;
        padding: 0;
        font-size: clamp(.96rem, 4.6vw, 1.12rem);
    }
}

@media (max-width: 390px) {
    .about-type-hero {
        min-height: auto;
        padding: 82px 0 46px;
    }

    .about-type-brand {
        font-size: clamp(2.3rem, 12.7vw, 3.25rem);
    }

    .about-type-script {
        font-size: clamp(3.65rem, 18.8vw, 5.35rem);
    }
}

/* About heading and contact share the first view without a surrounding box. */
.about-type-stage {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(380px, .95fr);
    gap: clamp(30px, 4vw, 68px);
    align-items: center;
}

.about-type-copy {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: clamp(28px, 4vw, 54px);
}

.about-type-brand {
    font-size: clamp(3.9rem, 6.1vw, 7.1rem);
}

.about-type-script {
    font-size: clamp(5rem, 8.3vw, 9.4rem);
}

.about-hero-contact {
    position: relative;
    display: flex;
    min-width: 0;
    padding-left: clamp(36px, 3.5vw, 60px);
    align-items: flex-start;
    justify-content: flex-start;
    text-align: left;
}

.about-hero-contact::before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    width: 1px;
    background: linear-gradient(transparent, rgba(255, 94, 0, .82), transparent);
}

.about-hero-contact .footer-heading {
    margin: 0 0 clamp(28px, 4vw, 50px);
    color: var(--accent);
    max-width: 100%;
    font-size: clamp(2.3rem, 3.1vw, 4rem);
    line-height: .9;
    letter-spacing: -.065em;
    white-space: nowrap;
    -webkit-text-stroke: 0;
}

.about-hero-contact .email-container {
    max-width: 100%;
    margin: 0 0 32px;
    text-align: left;
}

.about-hero-contact .email-wrapper,
.about-hero-contact .email-text {
    max-width: 100%;
}

.about-hero-contact .email-text {
    font-size: clamp(1.15rem, 1.9vw, 1.75rem);
    overflow-wrap: anywhere;
}

.about-hero-contact .social-links {
    display: flex;
    max-width: 100%;
    gap: 12px 22px;
    flex-wrap: wrap;
    justify-content: flex-start;
}

.about-hero-contact .magnetic-wrap {
    margin: 0;
    padding: 0;
}

.about-hero-contact .social-links .magnetic-inner {
    font-size: .78rem;
    letter-spacing: .12em;
}

.about-hero-contact .social-links .magnetic-wrap:nth-child(1) .magnetic-inner {
    color: #59c6ff;
    text-shadow: 0 0 22px rgba(41, 169, 235, .45);
}

.about-hero-contact .social-links .magnetic-wrap:nth-child(2) .magnetic-inner {
    color: #e1306c;
    text-shadow: 0 0 22px rgba(225, 48, 108, .45);
}

.about-hero-contact .social-links .magnetic-wrap:nth-child(3) .magnetic-inner {
    color: #1877f2;
    text-shadow: 0 0 22px rgba(24, 119, 242, .45);
}

.about-hero-contact .social-links .magnetic-wrap:nth-child(4) .magnetic-inner {
    color: #fff;
    text-shadow: 0 0 22px rgba(255, 255, 255, .24);
}

@media (max-width: 1080px) {
    .about-type-stage {
        grid-template-columns: minmax(0, 1fr);
        gap: 54px;
    }

    .about-hero-contact {
        width: 100%;
        padding: 34px 0 0;
    }

    .about-hero-contact::before {
        top: 0;
        right: 0;
        bottom: auto;
        width: 100%;
        height: 1px;
        background: linear-gradient(90deg, rgba(255, 94, 0, .82), transparent 72%);
    }
}

@media (max-width: 768px) {
    .about-type-hero {
        padding-bottom: 72px;
    }

    .about-type-stage {
        gap: 44px;
    }

    .about-type-copy {
        gap: 26px;
    }

    .about-hero-contact .footer-heading {
        margin-bottom: 28px;
        width: max-content;
        max-width: 100%;
        font-size: clamp(1.65rem, 8.4vw, 2.75rem);
        letter-spacing: -.075em;
        white-space: nowrap;
    }

    .about-hero-contact .email-text {
        display: inline;
        font-size: clamp(1.05rem, 5.5vw, 1.45rem);
    }

    .about-hero-contact .social-links {
        row-gap: 18px;
    }
}

@media (max-width: 390px) {
    .about-type-stage {
        gap: 38px;
    }

    .about-hero-contact {
        padding-top: 28px;
    }

    .about-hero-contact .footer-heading {
        font-size: clamp(1.55rem, 8.2vw, 2.25rem);
        white-space: nowrap;
    }
}

/* Retired about decorations must stay removed on desktop and mobile. */
.about-type-meta,
.about-type-services,
.about-type-rail,
.about-orbit-topbar,
.about-orbit-services,
.about-orbit-coordinate {
    display: none !important;
}

/* Projects outro ends at the Z, then the orange ITcomfort curtain opens. */
.projects-outro[data-direct-next] {
    box-sizing: border-box;
    margin-right: clamp(280px, 34vw, 640px);
    padding-right: 6vw;
}

.projects-direct-curtain {
    position: fixed;
    z-index: 12000;
    inset: 0;
    display: flex;
    visibility: hidden;
    padding: clamp(28px, 6vw, 96px);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: #ff5e00;
    color: #080808;
    pointer-events: none;
    transform: scaleY(0);
    transform-origin: bottom center;
}

.projects-direct-curtain::before {
    content: "";
    position: absolute;
    inset: clamp(18px, 2.5vw, 42px);
    border: 1px solid rgba(0, 0, 0, .24);
}

.projects-direct-kicker,
.projects-direct-title {
    position: relative;
    z-index: 1;
}

.projects-direct-kicker {
    margin-bottom: clamp(20px, 3vw, 42px);
    font-family: var(--font-primary);
    font-size: clamp(.7rem, 1vw, .92rem);
    font-weight: 600;
    letter-spacing: .24em;
}

.projects-direct-title {
    max-width: 100%;
    font-family: var(--font-heading);
    font-size: clamp(3rem, 8.5vw, 10rem);
    font-weight: 800;
    line-height: .84;
    letter-spacing: -.075em;
    text-align: center;
    text-transform: uppercase;
}

.projects-direct-title em {
    display: block;
    font-family: "Cormorant Garamond", Georgia, serif;
    font-size: 1.28em;
    font-weight: 600;
    line-height: .75;
}

@media (max-width: 768px) {
    .projects-outro[data-direct-next] {
        margin: 8px 0 0;
        /* Keep roughly 6–7 scroll steps after the last word before leaving. */
        padding: 34px 0 clamp(420px, 82vh, 720px);
    }

    .projects-direct-curtain {
        padding: 24px;
    }

    .projects-direct-curtain::before {
        inset: 14px;
    }

    .projects-direct-kicker {
        font-size: .64rem;
        letter-spacing: .16em;
    }

    .projects-direct-title {
        font-size: clamp(2.35rem, 15vw, 5rem);
        line-height: .88;
    }
}

/* Keep the longer Russian about title on one visible line at every size. */
.about-type-title .about-type-brand,
.about-type-title .about-type-script {
    max-width: 100%;
    font-family: var(--font-heading);
    font-style: normal;
    font-weight: 800;
    white-space: nowrap;
}

html[lang="ru"] .about-type-script {
    max-width: 100%;
    font-size: clamp(2.7rem, 5.1vw, 6.2rem);
    letter-spacing: -.055em;
    white-space: nowrap;
}

html[lang="en"] .about-type-script {
    max-width: 100%;
    font-size: clamp(2.6rem, 4.6vw, 5.4rem);
    letter-spacing: -.075em;
    white-space: nowrap;
}

@media (max-width: 768px) {
    html[lang="ru"] .about-type-script {
        font-size: clamp(1.8rem, 10.2vw, 3.4rem);
        letter-spacing: -.045em;
    }

    html[lang="en"] .about-type-script {
        font-size: clamp(1.8rem, 10.2vw, 3.6rem);
        letter-spacing: -.065em;
    }
}

/* 1600x900 and short desktop screens: preserve clear header/hero spacing. */
@media (min-width: 1200px) and (max-height: 950px) {
    .home-viewport .hero {
        padding: clamp(108px, 13vh, 128px) 0 24px;
    }

    .home-viewport .hero-title {
        margin-bottom: 2.5vh;
        font-size: clamp(7rem, 8.6vw, 8.75rem);
    }

    .home-viewport .hero-subtitle {
        margin-bottom: 1.5vh;
    }

    .home-viewport .hero-bottom {
        margin-top: 3vh;
    }

    .projects-filter-tabs {
        top: clamp(88px, 10.5vh, 102px);
    }

    .projects-grid {
        padding-top: clamp(186px, 22vh, 214px);
    }

    .project-item {
        width: min(54vw, 720px);
    }

    .project-img-wrapper {
        padding: 14px;
        border-width: 4px;
    }
}

/* Tablet/iPad safeguards without changing the desktop composition. */
@media (min-width: 769px) and (max-width: 1180px) {
    .nav {
        padding-right: clamp(24px, 3.5vw, 40px);
        padding-left: clamp(24px, 3.5vw, 40px);
    }

    .nav-main-logo {
        height: clamp(38px, 4.4vw, 48px);
        max-width: min(210px, 27vw);
    }

    .nav-links {
        gap: clamp(14px, 2.4vw, 26px);
    }

    .nav-link {
        font-size: clamp(.72rem, 1.25vw, .88rem);
        letter-spacing: .06em;
    }

    .page-container {
        padding-top: clamp(140px, 18vh, 180px);
    }

    .projects-filter-tabs {
        right: 3vw;
        left: 3vw;
        justify-content: space-between;
        gap: clamp(8px, 1.4vw, 18px);
    }

    .filter-tab {
        font-size: clamp(.76rem, 1.65vw, 1.08rem);
    }

    .project-item {
        width: min(68vw, 680px);
    }
}

/* The header remains readable after Swup transitions, including Services. */
.nav .nav-links,
.nav .nav-link {
    visibility: visible;
    opacity: 1;
}

body:has(.services-page-grid) .nav {
    mix-blend-mode: normal;
}

body:has(.services-page-grid) .nav-link {
    color: #fff;
}

/* Next-page transition must be one complete viewport on every device. */
.next-page-pull {
    min-height: 100svh;
    height: 100svh;
}

.next-page-curtain {
    position: fixed;
    z-index: 12001;
    width: 100vw;
    height: 100svh;
}

.next-page-pull.is-navigating {
    z-index: 12000;
}

.about-hero-contact .copy-contact-wrap {
    position: relative;
    cursor: pointer;
}

.about-hero-contact .contact-phone-text {
    z-index: 0;
    padding: 4px 2px;
    color: #fff;
    white-space: nowrap;
    isolation: isolate;
    text-shadow:
        0 0 18px rgba(0, 153, 204, .42),
        0 0 22px rgba(30, 181, 58, .3);
}

.about-hero-contact .contact-phone-text::before {
    content: '';
    position: absolute;
    z-index: -1;
    top: 50%;
    left: 50%;
    width: calc(100% + 52px);
    height: 48px;
    border-radius: 50%;
    background:
        radial-gradient(ellipse at 18% 42%, rgba(0, 153, 204, .48) 0%, rgba(0, 153, 204, .18) 34%, transparent 65%),
        radial-gradient(ellipse at 52% 48%, rgba(255, 255, 255, .28) 0%, rgba(206, 17, 38, .11) 38%, transparent 67%),
        radial-gradient(ellipse at 82% 58%, rgba(30, 181, 58, .46) 0%, rgba(30, 181, 58, .16) 36%, transparent 68%);
    filter: blur(8px);
    opacity: .8;
    transform: translate(-50%, -50%) scale(.94);
    pointer-events: none;
    transition: opacity .3s ease, transform .35s ease;
}

.about-hero-contact .copy-contact-wrap:hover .contact-phone-text::before,
.about-hero-contact .copy-contact-wrap:focus-visible .contact-phone-text::before {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.08);
}

/* Telegram and phone share one compact Uzbekistan-coloured glow. */
.about-hero-contact .social-links {
    position: relative;
    isolation: isolate;
    padding: 8px 14px;
    flex-wrap: nowrap;
}

.about-hero-contact .social-links::before {
    content: '';
    position: absolute;
    z-index: -1;
    inset: -5px -13px;
    border-radius: 999px;
    background:
        radial-gradient(ellipse at 13% 45%, rgba(0, 153, 204, .45), transparent 44%),
        radial-gradient(ellipse at 50% 50%, rgba(255, 255, 255, .2), rgba(206, 17, 38, .08) 38%, transparent 64%),
        radial-gradient(ellipse at 87% 55%, rgba(30, 181, 58, .42), transparent 46%);
    filter: blur(8px);
    opacity: .76;
    transform: scale(.97);
    transition: opacity .3s ease, transform .35s ease;
    pointer-events: none;
}

.about-hero-contact .social-links:hover::before,
.about-hero-contact .social-links:focus-within::before {
    opacity: 1;
    transform: scale(1.025);
}

.about-hero-contact .contact-phone-text::before {
    display: none;
}

/* Header language selector — compact, technical, and native to the site. */
.nav-links {
    align-items: center;
}

.site-language-switcher {
    position: relative;
    z-index: 1400;
    flex: 0 0 auto;
    font-family: var(--font-primary);
}

.site-language-toggle {
    min-width: 78px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 0 11px;
    border: 1px solid rgba(255, 255, 255, .16);
    border-radius: 999px;
    color: #fff;
    background: rgba(8, 8, 8, .76);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .02);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    cursor: pointer;
    transition: border-color .25s ease, background .25s ease, box-shadow .25s ease;
}

.site-language-current-flag,
.site-language-flag {
    display: inline-block;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, .22);
    border-radius: 3px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .3);
    line-height: 0;
    filter: saturate(.94) contrast(1.04);
}

.site-language-current-flag {
    width: 20px;
    height: 14px;
}

.site-flag-uz {
    background: linear-gradient(to bottom,
        #0099b5 0 29%,
        #ce1126 29% 34%,
        #fff 34% 63%,
        #ce1126 63% 68%,
        #1eb53a 68% 100%);
}

.site-flag-ru {
    position: relative;
    background: #111;
    border-color: rgba(255, 255, 255, .16);
    box-shadow: 0 2px 8px rgba(0, 0, 0, .42), inset 0 0 0 1px rgba(0, 0, 0, .5);
}

.site-flag-ru::before {
    content: '';
    position: absolute;
    inset: 1px;
    border-radius: 2px;
    background: linear-gradient(to bottom,
        #eef1f5 0 33.333%,
        #1c57a7 33.333% 66.666%,
        #d52b1e 66.666% 100%);
}

.site-flag-en {
    background-color: #012169;
    background-image:
        linear-gradient(33deg, transparent 42%, #fff 42% 47%, #c8102e 47% 51%, #fff 51% 56%, transparent 56%),
        linear-gradient(-33deg, transparent 42%, #fff 42% 47%, #c8102e 47% 51%, #fff 51% 56%, transparent 56%),
        linear-gradient(to right, transparent 40%, #fff 40% 60%, transparent 60%),
        linear-gradient(to bottom, transparent 35%, #fff 35% 65%, transparent 65%),
        linear-gradient(to right, transparent 46%, #c8102e 46% 54%, transparent 54%),
        linear-gradient(to bottom, transparent 43%, #c8102e 43% 57%, transparent 57%);
}

.site-language-current-code {
    font-size: .66rem;
    font-weight: 700;
    letter-spacing: .08em;
}

.site-language-chevron {
    width: 6px;
    height: 6px;
    border-right: 1px solid #ff5e00;
    border-bottom: 1px solid #ff5e00;
    transform: translateY(-2px) rotate(45deg);
    transition: transform .25s ease;
}

.site-language-switcher.is-open .site-language-chevron {
    transform: translateY(2px) rotate(225deg);
}

.site-language-toggle:hover,
.site-language-switcher.is-open .site-language-toggle {
    border-color: rgba(255, 94, 0, .68);
    background: rgba(255, 94, 0, .08);
    box-shadow: 0 0 24px rgba(255, 94, 0, .13), inset 0 0 0 1px rgba(255, 94, 0, .08);
}

.site-language-menu {
    position: absolute;
    top: calc(100% + 11px);
    left: 50%;
    width: 178px;
    padding: 7px;
    border: 1px solid rgba(255, 255, 255, .15);
    border-radius: 16px;
    background:
        linear-gradient(145deg, rgba(20, 20, 20, .98), rgba(5, 5, 5, .98)),
        #080808;
    box-shadow: 0 20px 60px rgba(0, 0, 0, .62), 0 0 0 1px rgba(255, 94, 0, .04);
    backdrop-filter: blur(22px);
    -webkit-backdrop-filter: blur(22px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translate(-50%, -8px) scale(.97);
    transform-origin: top center;
    transition: opacity .22s ease, visibility .22s ease, transform .28s cubic-bezier(.16, 1, .3, 1);
}

.site-language-menu::before {
    content: '';
    position: absolute;
    top: 0;
    left: 18px;
    width: 38px;
    height: 1px;
    background: #ff5e00;
    box-shadow: 0 0 16px rgba(255, 94, 0, .6);
}

.site-language-switcher.is-open .site-language-menu {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translate(-50%, 0) scale(1);
}

.site-language-option {
    position: relative;
    width: 100%;
    min-height: 46px;
    display: grid;
    grid-template-columns: 30px minmax(0, 1fr);
    align-items: center;
    gap: 9px;
    padding: 6px 10px;
    border: 0;
    border-radius: 11px;
    color: rgba(255, 255, 255, .68);
    background: transparent;
    text-align: left;
    cursor: pointer;
    transition: color .2s ease, background .2s ease, transform .2s ease;
}

.site-language-option + .site-language-option {
    margin-top: 2px;
}

.site-language-flag {
    width: 28px;
    height: 19px;
    border-radius: 4px;
}

.site-language-option-copy {
    min-width: 0;
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 8px;
}

.site-language-option-copy strong {
    color: inherit;
    font-size: .7rem;
    letter-spacing: .12em;
}

.site-language-option-copy small {
    overflow: hidden;
    color: rgba(255, 255, 255, .3);
    font-size: .62rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.site-language-option:hover,
.site-language-option:focus-visible {
    color: #fff;
    background: rgba(255, 255, 255, .055);
    outline: none;
    transform: translateX(2px);
}

.site-language-option.is-active {
    color: #fff;
    background: rgba(255, 94, 0, .12);
    box-shadow: inset 2px 0 #ff5e00;
}

@media (max-width: 768px) {
    .nav-links {
        grid-template-columns: repeat(5, minmax(0, 1fr));
    }

    .site-language-switcher {
        width: 100%;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .site-language-toggle {
        width: 100%;
        min-width: 0;
        height: 38px;
        gap: 4px;
        padding: 0 3px;
    }

    .site-language-current-flag {
        width: 18px;
        height: 12px;
    }

    .site-language-current-code {
        font-size: .56rem;
        letter-spacing: .035em;
    }

    .site-language-menu {
        top: calc(100% + 9px);
        right: 0;
        left: auto;
        width: min(174px, 72vw);
        transform: translate(0, -8px) scale(.97);
        transform-origin: top right;
    }

    .site-language-switcher.is-open .site-language-menu {
        transform: translate(0, 0) scale(1);
    }

    .nav-links .nav-link {
        padding-right: 2px;
        padding-left: 2px;
        font-size: clamp(.5rem, 2vw, .64rem);
        letter-spacing: .01em;
    }

    .about-hero-contact .social-links {
        max-width: 100%;
        gap: 9px 14px;
        padding: 7px 8px;
    }

    .about-hero-contact .social-links::before {
        inset: -4px -7px;
    }
}

/* The normal mobile outro must fit even after direct navigation was removed. */
@media (max-width: 768px) {
    .projects-outro {
        align-items: center;
        padding-right: 10px;
        padding-left: 10px;
        overflow: visible;
        text-align: center;
    }

    .projects-outro .outro-line {
        width: 100%;
        max-width: 100%;
        margin-left: 0 !important;
        font-size: clamp(1.65rem, 8.4vw, 2.8rem);
        line-height: .94;
        letter-spacing: -.045em;
        text-align: center;
        white-space: nowrap;
        overflow: visible;
    }

    .projects-outro #outro-line-3 {
        font-size: clamp(1.15rem, 5.5vw, 1.85rem);
        letter-spacing: -.055em;
    }

    .next-page-pull {
        min-height: 100svh;
        height: 100svh;
    }

    .about-hero-contact .social-links {
        align-items: center;
    }

    .about-hero-contact .contact-phone-text {
        font-size: clamp(.68rem, 3.4vw, .82rem);
        letter-spacing: .08em;
    }
}

/* About page: same soft mouse-following background light as inner pages. */
.about-grid-glow {
    z-index: 0;
    opacity: .82;
    background: radial-gradient(
        circle 290px at var(--mouse-x, 50vw) var(--mouse-y, 42vh),
        rgba(255, 255, 255, .07) 0%,
        rgba(255, 255, 255, .025) 36%,
        transparent 72%
    );
}

.about-type-hero,
.about-grid-copy-only {
    position: relative;
    z-index: 1;
}

@media (max-width: 768px), (hover: none) {
    .about-grid-glow {
        display: none;
    }
}

/* Mobile projects outro: every letter must fit before the transition. */
@media (max-width: 768px) {
    .projects-outro[data-direct-next] {
        align-items: center;
        padding-right: 10px;
        padding-left: 10px;
        text-align: center;
    }

    .projects-outro[data-direct-next] .outro-line {
        width: 100%;
        max-width: 100%;
        margin-left: 0 !important;
        font-size: clamp(2rem, 10vw, 3.4rem);
        line-height: .94;
        letter-spacing: -.045em;
        text-align: center;
        white-space: nowrap;
        overflow: visible;
    }
}

/* Cookie Consent Banner */
.cookie-banner {
    position: fixed;
    bottom: 24px;
    right: 24px;
    max-width: 420px;
    width: calc(100% - 48px);
    background: rgba(18, 18, 22, 0.94);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    padding: 20px;
    z-index: 9999;
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.5);
    transition: opacity 0.4s ease, transform 0.4s ease;
}
.cookie-banner-hidden {
    opacity: 0;
    transform: translateY(20px);
    pointer-events: none;
}
.cookie-content p {
    font-family: var(--font-primary, sans-serif);
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.75);
    line-height: 1.5;
    margin-bottom: 14px;
}
.cookie-link {
    color: #fff;
    text-decoration: underline;
    transition: opacity 0.2s ease;
}
.cookie-link:hover {
    opacity: 0.8;
}
.cookie-accept-btn {
    padding: 8px 18px;
    font-size: 0.8rem;
    letter-spacing: 0.05em;
    width: auto;
}
@media (max-width: 576px) {
    .cookie-banner {
        bottom: 16px;
        right: 16px;
        left: 16px;
        width: auto;
        padding: 16px;
    }
}

