/* ============================================================
   custom-IPTech.css
   IPTECH — Cinematic dark theme (Bootstrap 5 companion)
   Plain classes only — no CSS custom properties.
   ============================================================ */

/* ---------- Base / Reset ---------- */
html {
    scroll-behavior: smooth;
}

body.iptech-body {
    background-color: #050509;
    color: #e8eaf2;
    font-family: "Inter", "Segoe UI", -apple-system, BlinkMacSystemFont, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    /* clip (not hidden): overflow-x hidden breaks position:fixed on mobile
       browsers, which kills the fixed navbar and GSAP pinned sections */
    overflow-x: hidden;
    overflow-x: clip;
}

::selection {
    background: rgba(56, 189, 248, 0.35);
    color: #ffffff;
}

/* Accessibility: skip link */
.skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    z-index: 3000;
    background: #0ea5e9;
    color: #ffffff;
    padding: 10px 18px;
    border-radius: 0 0 12px 0;
    text-decoration: none;
}

.skip-link:focus {
    left: 0;
    color: #ffffff;
}

a:focus-visible,
button:focus-visible {
    outline: 2px solid #38bdf8;
    outline-offset: 3px;
    border-radius: 6px;
}

/* ---------- Typography ---------- */
.display-hero {
    font-size: clamp(3rem, 9vw, 7.5rem);
    font-weight: 700;
    letter-spacing: -0.04em;
    line-height: 1.02;
}

.display-section {
    font-size: clamp(2.2rem, 5.5vw, 4.5rem);
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.08;
}

.display-medium {
    font-size: clamp(1.6rem, 3.5vw, 2.6rem);
    font-weight: 650;
    letter-spacing: -0.02em;
    line-height: 1.15;
}

.lead-dim {
    color: #9aa1b5;
    font-size: clamp(1.05rem, 1.6vw, 1.35rem);
    line-height: 1.65;
    font-weight: 400;
}

.text-dim {
    color: #9aa1b5;
}

.text-faint {
    color: #5c6274;
}

.text-accent {
    color: #38bdf8;
}

.text-gradient {
    background: linear-gradient(110deg, #7dd3fc 0%, #38bdf8 35%, #818cf8 75%, #c084fc 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: #38bdf8;
}

.eyebrow::before {
    content: "";
    display: inline-block;
    width: 28px;
    height: 1px;
    background: linear-gradient(90deg, transparent, #38bdf8);
}

/* Word-reveal spans (populated by JS splitting) */
.reveal-word {
    display: inline-block;
    will-change: transform, opacity, filter;
}

/* ---------- Premium spacing ---------- */
.section-pad {
    padding-top: clamp(6rem, 12vw, 11rem);
    padding-bottom: clamp(6rem, 12vw, 11rem);
}

.section-pad-sm {
    padding-top: clamp(4rem, 8vw, 7rem);
    padding-bottom: clamp(4rem, 8vw, 7rem);
}

/* ---------- Navigation ---------- */
.iptech-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1100;
    padding: 18px 0;
    transition: background-color 0.5s ease, backdrop-filter 0.5s ease, padding 0.5s ease, box-shadow 0.5s ease;
    background-color: transparent;
    /* Force a stable compositing layer so the bar (and hamburger) keep painting
       when transformed sections below scroll past — without this, mobile Chrome
       could drop the fixed layer after the animated sections. */
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
    will-change: transform;
}

.iptech-nav.nav-scrolled {
    background-color: rgba(8, 9, 16, 0.72);
    backdrop-filter: blur(18px) saturate(160%);
    -webkit-backdrop-filter: blur(18px) saturate(160%);
    /* padding stays identical to the resting state — changing it made the
       bar visibly shift up a few px on scroll */
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.06), 0 12px 40px rgba(0, 0, 0, 0.45);
}

.nav-brand {
    font-weight: 700;
    font-size: 1.25rem;
    letter-spacing: -0.02em;
    color: #ffffff;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.nav-brand:hover,
.nav-brand:focus {
    color: #ffffff;
}

.nav-brand .brand-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: linear-gradient(135deg, #38bdf8, #818cf8);
    box-shadow: 0 0 14px rgba(56, 189, 248, 0.8);
}

.iptech-nav .nav-link {
    color: #b6bccd;
    font-size: 0.92rem;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: 999px;
    transition: color 0.3s ease, background-color 0.3s ease;
}

.iptech-nav .nav-link:hover {
    color: #ffffff;
    background-color: rgba(255, 255, 255, 0.06);
}

.iptech-nav .nav-link.active {
    color: #ffffff;
    background-color: rgba(56, 189, 248, 0.12);
}

.iptech-nav .navbar-toggler {
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    padding: 8px 12px;
    /* Solid backing so the hamburger is always legible, independent of the
       nav's translucent/backdrop-filter background. */
    background-color: rgba(10, 11, 20, 0.6);
}

.iptech-nav .navbar-toggler-icon {
    background-image: url("data:image/svg+xml;charset=utf8,%3Csvg viewBox='0 0 30 30' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath stroke='rgba(255,255,255,0.85)' stroke-width='2' stroke-linecap='round' d='M4 8h22M4 15h22M4 22h22'/%3E%3C/svg%3E");
}

@media (max-width: 991.98px) {
    .iptech-nav .navbar-collapse {
        background-color: rgba(10, 11, 20, 0.95);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        border: 1px solid rgba(255, 255, 255, 0.08);
        border-radius: 20px;
        padding: 16px;
        margin-top: 12px;
    }
}

.nav-cta {
    background: linear-gradient(120deg, #0ea5e9, #6366f1);
    color: #ffffff;
    font-size: 0.9rem;
    font-weight: 600;
    padding: 9px 22px;
    border-radius: 999px;
    text-decoration: none;
    display: inline-block;
    transition: box-shadow 0.35s ease, transform 0.35s ease;
    box-shadow: 0 4px 18px rgba(14, 165, 233, 0.35);
}

.nav-cta:hover {
    color: #ffffff;
    box-shadow: 0 6px 28px rgba(14, 165, 233, 0.55);
    transform: translateY(-1px);
}

/* ---------- Cursor glow ---------- */
.cursor-glow {
    position: fixed;
    top: 0;
    left: 0;
    width: 520px;
    height: 520px;
    margin: -260px 0 0 -260px;
    pointer-events: none;
    z-index: 2;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(56, 189, 248, 0.09) 0%, rgba(99, 102, 241, 0.05) 35%, transparent 70%);
    will-change: transform;
}

@media (hover: none), (max-width: 767.98px) {
    .cursor-glow {
        display: none;
    }
}

/* ---------- Particles canvas ---------- */
.particles-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

/* ---------- Aurora backgrounds ---------- */
.aurora-wrap {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
    z-index: 0;
}

.aurora-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(90px);
    opacity: 0.5;
    will-change: transform;
}

.aurora-1 {
    width: 55vw;
    height: 55vw;
    top: -18vw;
    left: -12vw;
    background: radial-gradient(circle, rgba(14, 165, 233, 0.45), transparent 65%);
    animation: aurora-drift-a 26s ease-in-out infinite alternate;
}

.aurora-2 {
    width: 45vw;
    height: 45vw;
    bottom: -15vw;
    right: -10vw;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.4), transparent 65%);
    animation: aurora-drift-b 32s ease-in-out infinite alternate;
}

.aurora-3 {
    width: 30vw;
    height: 30vw;
    top: 35%;
    left: 55%;
    background: radial-gradient(circle, rgba(192, 132, 252, 0.25), transparent 65%);
    animation: aurora-drift-c 38s ease-in-out infinite alternate;
}

@keyframes aurora-drift-a {
    0%   { transform: translate3d(0, 0, 0) scale(1); }
    100% { transform: translate3d(9vw, 7vh, 0) scale(1.18); }
}

@keyframes aurora-drift-b {
    0%   { transform: translate3d(0, 0, 0) scale(1.1); }
    100% { transform: translate3d(-8vw, -6vh, 0) scale(0.95); }
}

@keyframes aurora-drift-c {
    0%   { transform: translate3d(0, 0, 0); }
    100% { transform: translate3d(-10vw, 10vh, 0); }
}

/* ---------- Hero ---------- */
.hero-cinematic {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background-color: #050509;
}

.hero-media {
    position: absolute;
    inset: -6%;
    z-index: 0;
    will-change: transform;
}

.hero-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.38;
}

.hero-vignette {
    position: absolute;
    inset: 0;
    z-index: 1;
    background:
        radial-gradient(ellipse at center, transparent 0%, rgba(5, 5, 9, 0.55) 68%, rgba(5, 5, 9, 0.95) 100%),
        linear-gradient(to bottom, rgba(5, 5, 9, 0.65) 0%, transparent 30%, transparent 62%, #050509 100%);
}

.hero-content {
    position: relative;
    z-index: 3;
    text-align: center;
    padding: 0 24px;
    max-width: 1100px;
}

.hero-sub {
    color: #9aa1b5;
    font-size: clamp(1.05rem, 1.8vw, 1.4rem);
    max-width: 620px;
    margin: 28px auto 44px;
    line-height: 1.7;
}

.scroll-hint {
    position: absolute;
    bottom: 34px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    color: #6b7188;
    font-size: 0.72rem;
    letter-spacing: 0.3em;
    text-transform: uppercase;
}

.scroll-hint .scroll-line {
    width: 1px;
    height: 46px;
    background: linear-gradient(to bottom, #38bdf8, transparent);
    animation: scroll-pulse 2.2s ease-in-out infinite;
}

@keyframes scroll-pulse {
    0%, 100% { transform: scaleY(0.4); opacity: 0.4; transform-origin: top; }
    50%      { transform: scaleY(1); opacity: 1; transform-origin: top; }
}

/* ---------- Buttons ---------- */
.btn-cine {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 15px 36px;
    border-radius: 999px;
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    border: 0;
    cursor: pointer;
    transition: box-shadow 0.4s cubic-bezier(0.22, 1, 0.36, 1), background-color 0.4s ease, color 0.3s ease;
    will-change: transform;
}

.btn-cine-primary {
    background: linear-gradient(120deg, #0ea5e9 0%, #6366f1 100%);
    color: #ffffff;
    box-shadow: 0 8px 32px rgba(14, 165, 233, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

.btn-cine-primary:hover {
    color: #ffffff;
    box-shadow: 0 12px 48px rgba(14, 165, 233, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

.btn-cine-ghost {
    background: rgba(255, 255, 255, 0.05);
    color: #e8eaf2;
    border: 1px solid rgba(255, 255, 255, 0.14);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.btn-cine-ghost:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.25);
}

/* ---------- Glass cards ---------- */
.glass-card {
    position: relative;
    z-index: 0;
    overflow: hidden;
    background: linear-gradient(160deg, rgba(255, 255, 255, 0.07) 0%, rgba(255, 255, 255, 0.02) 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 28px;
    backdrop-filter: blur(18px) saturate(150%);
    -webkit-backdrop-filter: blur(18px) saturate(150%);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.09);
    padding: clamp(1.8rem, 3vw, 2.8rem);
    transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.5s ease, box-shadow 0.5s ease;
    height: 100%;
}

/* keep card content above the orbiting-glow layers */
.glass-card > * {
    position: relative;
    z-index: 2;
}

/* rotating conic light source (revealed only at the rim by the panel below) */
.glass-card::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 200%;
    height: 200%;
    transform: translate(-50%, -50%);
    background: conic-gradient(from 0deg, transparent 0deg, transparent 235deg, rgba(56, 189, 248, 0.12) 268deg, #38bdf8 312deg, #a5b4fc 336deg, #38bdf8 350deg, transparent 360deg);
    opacity: 0;
    transition: opacity 0.45s ease;
    z-index: 0;
    pointer-events: none;
}

/* inner panel masks the centre so only a thin border band shows the glow */
.glass-card::after {
    content: "";
    position: absolute;
    inset: 1.5px;
    border-radius: inherit;
    background: linear-gradient(160deg, rgba(255, 255, 255, 0.07) 0%, rgba(255, 255, 255, 0.02) 100%), #0a0b14;
    z-index: 1;
    pointer-events: none;
}

.glass-card:hover {
    transform: translateY(-6px);
    border-color: rgba(56, 189, 248, 0.4);
    box-shadow: 0 32px 80px rgba(0, 0, 0, 0.55), 0 0 40px rgba(56, 189, 248, 0.16), inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.glass-card:hover::before {
    opacity: 1;
    animation: perimeter-orbit 3.4s linear infinite;
}

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

.glass-card h3 {
    font-size: 1.3rem;
    font-weight: 650;
    letter-spacing: -0.01em;
    margin-bottom: 0.75rem;
}

.glass-card p {
    color: #9aa1b5;
    line-height: 1.65;
    margin-bottom: 0;
}

.card-icon {
    width: 54px;
    height: 54px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1.4rem;
    background: linear-gradient(135deg, rgba(56, 189, 248, 0.18), rgba(129, 140, 248, 0.18));
    border: 1px solid rgba(56, 189, 248, 0.25);
    box-shadow: 0 0 24px rgba(56, 189, 248, 0.15);
}

.card-icon svg {
    width: 26px;
    height: 26px;
    stroke: #38bdf8;
    fill: none;
    stroke-width: 1.6;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* ---------- Sticky / stacked peel cards ---------- */
.stack-section {
    position: relative;
}

.stack-card {
    position: sticky;
    top: 12vh;
    margin-bottom: 6vh;
    border-radius: 32px;
    overflow: hidden;
    min-height: 66vh;
    display: flex;
    align-items: center;
    background: linear-gradient(160deg, #0c0e18 0%, #090a12 100%);
    border: 1px solid rgba(255, 255, 255, 0.09);
    box-shadow: 0 -20px 60px rgba(0, 0, 0, 0.6);
    will-change: transform;
}

.stack-card-media {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.stack-card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.22;
    will-change: transform;
}

.stack-card-body {
    position: relative;
    z-index: 1;
    padding: clamp(2.2rem, 5vw, 4.5rem);
    max-width: 720px;
}

.stack-number {
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.25em;
    color: #38bdf8;
    margin-bottom: 1rem;
}

/* Extra scroll distance during which the sticky cards gather and explode.
   Height stays 0 without JS / with reduced motion. */
.stack-finale-space {
    height: 0;
}

/* On mobile the peel/burst animation is skipped — read the cards as a
   simple vertical list so nothing overlaps or flies over the nav. */
@media (max-width: 767.98px) {
    .stack-card {
        position: static;
        top: auto;
        min-height: auto;
        margin-bottom: 1.25rem;
        opacity: 1;
        transform: none;
    }
    .stack-card-body {
        padding: 2rem 1.5rem;
    }
}

/* ---------- Parallax figures ---------- */
.parallax-figure {
    border-radius: 28px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 30px 90px rgba(0, 0, 0, 0.55);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.parallax-figure img {
    width: 100%;
    height: 120%;
    object-fit: cover;
    will-change: transform;
    display: block;
}

/* Progressive mask reveal (clip-path animated by JS) */
.mask-reveal {
    will-change: clip-path;
}

/* ---------- Overlapping sections ---------- */
.overlap-up {
    position: relative;
    z-index: 5;
    margin-top: -10vh;
    border-radius: 40px 40px 0 0;
    background: linear-gradient(to bottom, #0a0b14 0%, #050509 100%);
    box-shadow: 0 -30px 80px rgba(0, 0, 0, 0.6);
}

.bg-morph-a {
    background: linear-gradient(180deg, #050509 0%, #071018 50%, #0a0b1a 100%);
}

.bg-morph-b {
    background: linear-gradient(180deg, #0a0b1a 0%, #0d0a1c 55%, #050509 100%);
}

/* ---------- Marquee ---------- */
.marquee-band {
    overflow: hidden;
    padding: 3.2rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    position: relative;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
    mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}

.marquee-track {
    display: flex;
    gap: 5rem;
    width: max-content;
    animation: marquee-scroll 36s linear infinite;
    align-items: center;
}

.marquee-band:hover .marquee-track {
    animation-play-state: paused;
}

.marquee-item {
    font-size: 1.35rem;
    font-weight: 600;
    letter-spacing: -0.01em;
    color: #757c92;
    white-space: nowrap;
    transition: color 0.3s ease;
}

.marquee-item:hover {
    color: #e8eaf2;
}

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

/* ---------- Logo cinema (pinned, scroll-scrubbed client logos) ---------- */
.logo-cinema {
    position: relative;
    overflow: hidden;
    background: linear-gradient(180deg, #050509 0%, #08101c 55%, #0a0b1a 100%);
}

.logo-cinema-pin {
    min-height: 100vh; /* anchor for the desktop scroll-pinned helix */
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow: hidden;
    padding: 6rem 0;
}

.logo-cinema-inner {
    will-change: transform, opacity, filter;
}

.logo-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 32px;
    border-radius: 999px;
    background: rgba(248, 250, 255, 0.96);
    border: 1px solid rgba(255, 255, 255, 0.7);
    box-shadow: 0 16px 44px rgba(0, 0, 0, 0.45), 0 0 24px rgba(56, 189, 248, 0.12);
    white-space: nowrap;
    will-change: transform, opacity;
}

.logo-chip img {
    height: 36px;
    width: auto;
}

/* DNA helix — two strands twisting around a vertical axis.
   JS scrubs the rotation; positions below are the static no-JS fallback. */
.helix-stage {
    position: relative;
    height: 700px;
    max-width: 680px;
    margin: 0 auto;
}

.helix-rung {
    position: absolute;
    left: 0;
    right: 0;
    height: 0;
}

.helix-rung:nth-child(1)  { top: 4%; }
.helix-rung:nth-child(2)  { top: 12%; }
.helix-rung:nth-child(3)  { top: 20%; }
.helix-rung:nth-child(4)  { top: 28%; }
.helix-rung:nth-child(5)  { top: 36%; }
.helix-rung:nth-child(6)  { top: 44%; }
.helix-rung:nth-child(7)  { top: 52%; }
.helix-rung:nth-child(8)  { top: 60%; }
.helix-rung:nth-child(9)  { top: 68%; }
.helix-rung:nth-child(10) { top: 76%; }
.helix-rung:nth-child(11) { top: 84%; }
.helix-rung:nth-child(12) { top: 92%; }

.helix-line {
    position: absolute;
    left: 50%;
    top: 0;
    height: 1px;
    width: 0;
    transform: translateX(-50%);
    background: linear-gradient(90deg, transparent, rgba(56, 189, 248, 0.45), transparent);
}

.helix-node {
    position: absolute;
    left: 50%;
    top: 0;
    width: 10px;
    height: 10px;
    margin: -5px 0 0 -5px;
    border-radius: 50%;
    background: #38bdf8;
    box-shadow: 0 0 14px rgba(56, 189, 248, 0.9);
    will-change: transform, opacity;
}

.helix-chip {
    position: absolute;
    left: 50%;
    top: 0;
    transform: translate(-50%, -50%);
}

@media (max-width: 575.98px) {
    .helix-stage {
        height: 540px;
    }
    .logo-chip {
        padding: 10px 18px;
    }
    .logo-chip img {
        height: 22px;
    }
}


/* ---------- Client overview (modern logo grid) ---------- */
.client-cinema {
    position: relative;
    overflow: hidden;
    background: linear-gradient(180deg, #050509 0%, #08101c 55%, #0a0b1a 100%);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.client-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
    max-width: 900px;
    margin: 0 auto;
}

.client-logo {
    position: relative;
    z-index: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 104px;
    padding: 10px 14px;
    overflow: hidden;
    border-radius: 18px;
    /* light chip keeps client brand colours true and legible on the dark scene */
    background: rgba(248, 250, 255, 0.96);
    border: 1px solid rgba(255, 255, 255, 0.7);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.6);
    transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.5s ease;
}

.client-logo img {
    position: relative;
    z-index: 2;
}

.client-logo::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 200%;
    height: 200%;
    transform: translate(-50%, -50%);
    background: conic-gradient(from 0deg, transparent 0deg, transparent 235deg, rgba(56, 189, 248, 0.12) 268deg, #38bdf8 312deg, #6366f1 336deg, #38bdf8 350deg, transparent 360deg);
    opacity: 0;
    transition: opacity 0.45s ease;
    z-index: 0;
    pointer-events: none;
}

.client-logo::after {
    content: "";
    position: absolute;
    inset: 1.5px;
    border-radius: inherit;
    background: #f8faff;
    z-index: 1;
    pointer-events: none;
}

.client-logo:hover {
    transform: translateY(-6px);
    box-shadow: 0 30px 72px rgba(0, 0, 0, 0.55), 0 0 34px rgba(56, 189, 248, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.client-logo:hover::before {
    opacity: 1;
    animation: perimeter-orbit 3.4s linear infinite;
}

.client-logo img {
    max-height: 64px;
    max-width: 100%;
    width: auto;
    object-fit: contain;
    transform: scale(2);
    transform-origin: center;
}

.client-caption {
    color: #757c92;
    font-size: 0.95rem;
    letter-spacing: 0.01em;
}

@media (max-width: 991.98px) {
    .client-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 16px;
    }
    .client-logo {
        min-height: 96px;
        padding: 10px 12px;
    }
}

@media (max-width: 575.98px) {
    .client-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
        max-width: 460px;
    }
    .client-logo {
        min-height: 84px;
        padding: 8px 10px;
        border-radius: 15px;
    }
    .client-logo img {
        max-height: 54px;
        transform: scale(1.75);
    }
    .client-caption {
        font-size: 0.85rem;
    }
}

/* ---------- Stats ---------- */
.stat-value {
    font-size: clamp(2.6rem, 5vw, 4.2rem);
    font-weight: 700;
    letter-spacing: -0.03em;
    background: linear-gradient(120deg, #ffffff, #7dd3fc);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.stat-label {
    color: #757c92;
    font-size: 0.85rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    margin-top: 6px;
}

/* ---------- Speed delivery timeline (services) ---------- */
.speed-pin {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Horizontal viewport for the day-run; the track glides across it on small screens */
.speed-scroll {
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
}

.speed-track {
    position: relative;
    width: 100%;
    will-change: transform;
}

.speedline {
    position: relative;
    height: 4px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 999px;
    margin-top: 4.5rem;
}

.speedline-fill {
    position: absolute;
    inset: 0;
    border-radius: 999px;
    background: linear-gradient(90deg, #0ea5e9 0%, #6366f1 55%, #c084fc 100%);
    box-shadow: 0 0 18px rgba(56, 189, 248, 0.55);
    transform: scaleX(0);
    transform-origin: left center;
    will-change: transform;
}

.speed-milestones {
    display: flex;
    justify-content: space-between;
    gap: 0.75rem;
    margin-top: -8px;
    margin-bottom: 3rem;
}

.speed-milestone {
    flex: 1;
    text-align: center;
    min-width: 0;
}

.speed-milestone .speed-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #38bdf8;
    box-shadow: 0 0 12px rgba(56, 189, 248, 0.9);
    margin: 0 auto 12px;
}

.speed-time {
    font-weight: 700;
    color: #ffffff;
    font-size: 0.95rem;
    letter-spacing: 0.02em;
}

.speed-label {
    color: #757c92;
    font-size: 0.8rem;
    line-height: 1.4;
    margin-top: 2px;
}

@media (max-width: 767.98px) {
    /* No pin on mobile — present the record run as a clean vertical timeline. */
    .speed-pin {
        min-height: 0;
        display: block;
    }
    .speed-scroll {
        overflow: visible;
    }
    .speed-track {
        width: 100%;
        transform: none;
    }
    /* Hide the horizontal bar; a vertical connector runs through the dots. */
    .speedline {
        display: none;
    }
    .speed-milestones {
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        margin: 2.5rem 0 0;
        padding-left: 0;
        position: relative;
    }
    .speed-milestones::before {
        content: "";
        position: absolute;
        left: 5px;
        top: 6px;
        bottom: 6px;
        width: 2px;
        background: linear-gradient(180deg, #0ea5e9 0%, #6366f1 55%, #c084fc 100%);
        box-shadow: 0 0 12px rgba(56, 189, 248, 0.45);
    }
    .speed-milestone {
        flex: none;
        text-align: left;
        opacity: 1;
        transform: none;
        padding: 0 0 1.75rem 26px;
        position: relative;
    }
    .speed-milestone:last-child {
        padding-bottom: 0;
    }
    .speed-milestone .speed-dot {
        position: absolute;
        left: 0;
        top: 3px;
        margin: 0;
    }
    .speed-time {
        font-size: 0.9rem;
    }
    .speed-label {
        font-size: 0.78rem;
    }
    /* Compact the stage so headline and stats read well */
    .speed-pin .display-section {
        font-size: clamp(1.7rem, 7.5vw, 2.6rem);
    }
    .speed-pin .lead-dim {
        font-size: 0.95rem;
    }
    .speed-stats .stat-value {
        font-size: 1.5rem;
    }
    .speed-stats .stat-label {
        font-size: 0.6rem;
        letter-spacing: 0.08em;
    }
}

/* ---------- Feature list rows ---------- */
.feature-row {
    display: flex;
    gap: 18px;
    padding: 22px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.feature-row:last-child {
    border-bottom: 0;
}

.feature-check {
    color: #38bdf8;
    font-size: 1.1rem;
    line-height: 1.6;
}

.feature-check svg {
    width: 14px;
    height: 14px;
    fill: #38bdf8;
    stroke: none;
    display: inline-block;
    vertical-align: -1px;
}

/* ---------- Page hero (inner pages) ---------- */
.page-hero {
    position: relative;
    padding: clamp(11rem, 20vw, 15rem) 0 clamp(4rem, 8vw, 7rem);
    overflow: hidden;
    background-color: #050509;
}

/* ---------- Scroll reveal (inner pages, IntersectionObserver) ---------- */
.fade-up {
    opacity: 0;
    transform: translateY(36px);
    transition: opacity 0.9s cubic-bezier(0.22, 1, 0.36, 1), transform 0.9s cubic-bezier(0.22, 1, 0.36, 1);
}

.fade-up.in-view {
    opacity: 1;
    transform: translateY(0);
}

.delay-1 { transition-delay: 0.12s; }
.delay-2 { transition-delay: 0.24s; }
.delay-3 { transition-delay: 0.36s; }

/* ---------- Media cards ---------- */
.media-card-img {
    border-radius: 20px 20px 0 0;
    overflow: hidden;
    margin: calc(clamp(1.8rem, 3vw, 2.8rem) * -1);
    margin-bottom: 1.6rem;
}

.media-card-img img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    transition: transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.glass-card:hover .media-card-img img {
    transform: scale(1.05);
}

.media-meta {
    font-size: 0.82rem;
    color: #757c92;
    letter-spacing: 0.05em;
}

/* ---------- Forms ---------- */
.form-cine .form-label {
    color: #b6bccd;
    font-size: 0.88rem;
    font-weight: 500;
    letter-spacing: 0.03em;
}

.form-cine .form-control,
.form-cine .form-select {
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 14px;
    color: #e8eaf2;
    padding: 13px 18px;
    transition: border-color 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
}

.form-cine .form-control::placeholder {
    color: #5c6274;
}

.form-cine .form-control:focus,
.form-cine .form-select:focus {
    background-color: rgba(255, 255, 255, 0.07);
    border-color: rgba(56, 189, 248, 0.6);
    box-shadow: 0 0 0 4px rgba(56, 189, 248, 0.12);
    color: #ffffff;
}

.form-cine .form-select option {
    background-color: #0c0e18;
    color: #e8eaf2;
}

/* ---------- Office cards / contact ---------- */
.office-map {
    width: 100%;
    height: 280px;
    border: 0;
    border-radius: 20px;
    filter: grayscale(1) invert(0.92) contrast(0.9);
    display: block;
}

/* ---------- CTA band ---------- */
.cta-band {
    position: relative;
    border-radius: 36px;
    overflow: hidden;
    padding: clamp(3.5rem, 7vw, 6.5rem) clamp(1.8rem, 5vw, 5rem);
    background: linear-gradient(150deg, #0b1220 0%, #0d0f22 60%, #120d24 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

/* ---------- Footer ---------- */
.iptech-footer {
    background: #030306;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    padding: clamp(3.5rem, 6vw, 5.5rem) 0 2rem;
    color: #9aa1b5;
    position: relative;
    z-index: 6;
}

.iptech-footer h5 {
    color: #ffffff;
    font-size: 0.95rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin-bottom: 1.2rem;
}

.iptech-footer a {
    color: #9aa1b5;
    text-decoration: none;
    transition: color 0.3s ease;
}

.iptech-footer a:hover {
    color: #7dd3fc;
}

.footer-links li {
    margin-bottom: 0.6rem;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    margin-top: 3rem;
    padding-top: 1.6rem;
    font-size: 0.85rem;
    color: #5c6274;
}

/* ---------- Timeline (about) ---------- */
.timeline-item {
    position: relative;
    padding-left: 42px;
    padding-bottom: 3rem;
    border-left: 1px solid rgba(255, 255, 255, 0.12);
    margin-left: 8px;
}

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

.timeline-item::before {
    content: "";
    position: absolute;
    left: -7px;
    top: 4px;
    width: 13px;
    height: 13px;
    border-radius: 50%;
    background: #38bdf8;
    box-shadow: 0 0 16px rgba(56, 189, 248, 0.8);
}

.timeline-year {
    color: #38bdf8;
    font-weight: 700;
    font-size: 0.9rem;
    letter-spacing: 0.15em;
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    .aurora-blob,
    .marquee-track,
    .scroll-hint .scroll-line,
    .glass-card:hover::before,
    .client-logo:hover::before {
        animation: none;
    }
    .fade-up {
        opacity: 1;
        transform: none;
        transition: none;
    }
    .cursor-glow,
    .particles-canvas {
        display: none;
    }
}

/* ---------- Responsive tweaks ---------- */
@media (max-width: 991.98px) {
    /* Pinned on mobile too — compact so heading + helix fit one viewport */
    .logo-cinema-pin {
        padding: 4.5rem 0 2rem;
    }
    .helix-stage {
        height: 500px;
    }
}

@media (max-width: 767.98px) {
    .stack-card {
        min-height: 72vh;
        top: 9vh;
    }
    .stack-card-body {
        padding: 1.7rem 1.4rem;
        max-width: 100%;
    }
    .stack-card .display-medium {
        font-size: 1.45rem;
    }
    .stack-card .lead-dim {
        font-size: 0.98rem;
    }
    .stack-number {
        font-size: 0.72rem;
        letter-spacing: 0.18em;
    }
    .btn-cine {
        padding: 12px 26px;
        font-size: 0.92rem;
    }
    .hero-sub {
        margin-bottom: 32px;
    }
    .display-hero {
        font-size: clamp(2.6rem, 12vw, 4rem);
    }
    .glass-card {
        padding: 1.5rem 1.3rem;
    }
    .cta-band {
        border-radius: 24px;
    }
}

@media (max-width: 575.98px) {
    /* Keep the pinned speed stage within one small-phone viewport */
    .speed-pin .lead-dim {
        display: none;
    }
    /* Keep the pinned helix stage within one small-phone viewport */
    .logo-cinema .lead-dim {
        display: none;
    }
    .logo-cinema .display-medium {
        font-size: 1.5rem;
    }
    .logo-cinema-pin {
        padding: 4rem 0 1.5rem;
    }
    .helix-stage {
        height: 400px;
    }
}
