/* Base overrides not covered by Tailwind utilities */

html {
    scroll-behavior: smooth;
}

body {
    background-color: #0e1012;
    overflow-x: hidden;
    position: relative;
}

/* Fixed grain overlay — breaks up flat digital surfaces */
body::after {
    content: '';
    position: fixed;
    inset: 0;
    z-index: 9000;
    pointer-events: none;
    opacity: 0.035;
    mix-blend-mode: overlay;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

h1, h2, h3, h4 {
    text-wrap: balance;
}

p {
    text-wrap: pretty;
}

::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #0e1012; }
::-webkit-scrollbar-thumb { background: #2a2e33; }
::-webkit-scrollbar-thumb:hover { background: #5b8fb0; }

/* Reveal-on-scroll */
.reveal {
    opacity: 0;
    transform: translateY(36px);
    transition: opacity 0.9s cubic-bezier(0.16,1,0.3,1), transform 0.9s cubic-bezier(0.16,1,0.3,1);
}
.reveal.active { opacity: 1; transform: translateY(0); }
.reveal.delay-1 { transition-delay: 0.1s; }
.reveal.delay-2 { transition-delay: 0.2s; }
.reveal.delay-3 { transition-delay: 0.3s; }
.reveal.delay-4 { transition-delay: 0.4s; }

/* Nav */
.nav-shell {
    background: transparent;
    transition: background-color 0.4s ease, backdrop-filter 0.4s ease, border-color 0.4s ease, padding 0.4s ease;
    border-bottom: 1px solid transparent;
}
.nav-shell.scrolled {
    background: rgba(14, 16, 18, 0.86);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom-color: rgba(255,255,255,0.06);
}
.nav-link {
    position: relative;
}
.nav-link::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 0;
    width: 0;
    height: 1px;
    background: #6fa5c4;
    transition: width 0.25s ease;
}
.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

/* Hero slide crossfade */
.hero-slide {
    opacity: 0;
    visibility: hidden;
    transition: opacity 1.2s ease;
}
.hero-slide.active {
    opacity: 1;
    visibility: visible;
}

/* Horizontal scroll gallery — replaces generic equal-width card grids */
.scroll-gallery {
    display: flex;
    gap: 1.5rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: 1.5rem;
    scrollbar-width: none;
}
.scroll-gallery::-webkit-scrollbar { display: none; }
.scroll-gallery > * {
    scroll-snap-align: start;
    flex: 0 0 auto;
}

/* Vertical timeline — replaces generic centered-icon feature blocks */
.timeline {
    position: relative;
}
.timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.5rem;
    bottom: 0.5rem;
    width: 1px;
    background: rgba(255,255,255,0.14);
}
.timeline.on-light::before {
    background: rgba(14,16,18,0.12);
}
.timeline-item {
    position: relative;
    padding-left: 2.5rem;
}
.timeline-item::before {
    content: '';
    position: absolute;
    left: -4px;
    top: 0.4rem;
    width: 9px;
    height: 9px;
    background: #6fa5c4;
}

/* Process steps — numbered horizontal chain, replaces icon-in-circle triads */
.process-steps {
    display: flex;
    counter-reset: step;
}
.process-step {
    flex: 1;
    position: relative;
    padding-top: 2.5rem;
}
.process-step::before {
    counter-increment: step;
    content: counter(step, decimal-leading-zero);
    position: absolute;
    top: 0;
    left: 0;
    font-family: 'Archivo', sans-serif;
    font-weight: 700;
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    color: #6fa5c4;
}
.process-step::after {
    content: '';
    position: absolute;
    top: 0.55rem;
    left: 2.6rem;
    right: 0;
    height: 1px;
    background: rgba(255,255,255,0.14);
}
.process-step:last-child::after { display: none; }

@media (max-width: 900px) {
    .process-steps { flex-direction: column; gap: 2rem; }
    .process-step::after { display: none; }
}

/* Marquee strip */
.marquee-track {
    display: inline-flex;
    animation: marquee 32s linear infinite;
    white-space: nowrap;
}
@keyframes marquee {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

/* Text mask gradient for hero headline accents */
.text-sheen {
    background: linear-gradient(120deg, #ffffff 10%, #aeb6bd 45%, #ffffff 60%, #7d858c 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
