/* ============================================
   MONOVUS — Premium One-Pager
   Cool blue-grey cinematic theme
   Worm's-eye skyscraper hero
   ============================================ */

:root {
    /* Palette — muted cool tones from screenshot */
    --bg-primary:    #1a2030;
    --bg-secondary:  #141924;
    --bg-tertiary:   #1e2538;
    --white:         #ffffff;
    --off-white:     #f4f5f7;
    --text-primary:  #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.48);
    --text-muted:    rgba(255, 255, 255, 0.25);
    --text-dark:     #1a1f2e;
    --text-dark-secondary: #6a6f7e;
    --border-light:  rgba(255, 255, 255, 0.10);
    --line-color:    rgba(255, 255, 255, 0.25);

    /* Fonts — all sans-serif to match screenshot */
    --font: 'Inter', -apple-system, 'Helvetica Neue', sans-serif;

    /* Easing */
    --ease-out:    cubic-bezier(0.16, 1, 0.3, 1);
    --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
}

/* ============================================
   RESET
   ============================================ */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font);
    color: var(--text-secondary);
    background: var(--bg-primary);
    overflow-x: hidden;
    line-height: 1.7;
}

body.loading {
    overflow: hidden;
}

a {
    text-decoration: none;
    color: inherit;
}

.container {
    max-width: 1080px;
    margin: 0 auto;
    padding: 0 clamp(24px, 5vw, 48px);
}

/* ============================================
   PRELOADER
   ============================================ */
.intro {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: #12161f;
    display: flex;
    align-items: center;
    justify-content: center;
}

.intro__inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
}

.intro__logo {
    font-family: var(--font);
    font-size: clamp(1.1rem, 2vw, 1.4rem);
    font-weight: 400;
    letter-spacing: 0.45em;
    color: var(--white);
    text-transform: uppercase;
    opacity: 0;
    transform: translateY(12px);
    animation: introFadeUp 0.9s var(--ease-out) 0.3s forwards;
}

.intro__line {
    width: 0;
    height: 1px;
    background: var(--line-color);
    animation: introLineGrow 0.7s var(--ease-out) 0.7s forwards;
}

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

@keyframes introLineGrow {
    to { width: 50px; }
}

.intro.exit {
    animation: introExit 1s var(--ease-in-out) forwards;
}

@keyframes introExit {
    0%   { clip-path: inset(0 0 0 0); }
    100% { clip-path: inset(0 0 100% 0); }
}

/* ============================================
   GRAIN
   ============================================ */
.grain {
    position: fixed;
    inset: 0;
    z-index: 9990;
    pointer-events: none;
    opacity: 0.02;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
    background-repeat: repeat;
    background-size: 180px;
}

/* ============================================
   HERO
   ============================================ */
.hero {
    position: relative;
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

/* Background image — worm's-eye skyscrapers */
.hero__bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero__bg-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    background-image: url('../assets/hero-main.png');
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
}

.hero__bg-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
}

@keyframes heroZoom {
    0%   { transform: scale(1); }
    100% { transform: scale(1.55); }
}

/* Overlay — light tint, buildings clearly visible */
.hero__overlay {
    position: absolute;
    inset: 0;
    z-index: 2;
    background:
        linear-gradient(180deg,
            rgba(18, 25, 40, 0.38) 0%,
            rgba(18, 25, 40, 0.22) 35%,
            rgba(18, 25, 40, 0.28) 65%,
            rgba(14, 20, 34, 0.52) 100%
        ),
        radial-gradient(ellipse 80% 65% at 50% 45%,
            transparent 30%,
            rgba(14, 20, 32, 0.22) 100%
        );
}

/* Fallback */
.hero__bg::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(180deg, #2a3548 0%, #1a2030 100%);
}

/* Content */
.hero__content {
    position: relative;
    z-index: 10;
    text-align: center;
    max-width: 780px;
    padding: 0 24px;
    will-change: transform, opacity;
}

/* MONOVUS — wide-tracked sans-serif */
.hero__logo {
    font-family: var(--font);
    font-size: clamp(1.4rem, 2.5vw, 1.85rem);
    font-weight: 400;
    letter-spacing: 0.42em;
    color: var(--white);
    text-transform: uppercase;
    margin-bottom: 36px;
    display: block;
}

/* Thin divider line */
.hero__divider {
    width: 40px;
    height: 1px;
    background: rgba(255, 255, 255, 0.35);
    margin: 0 auto 36px;
}

/* Main headline — slogan */
.hero__headline {
    font-family: var(--font);
    font-size: clamp(1.6rem, 3.2vw, 2.4rem);
    font-weight: 300;
    line-height: 1.4;
    color: var(--white);
    letter-spacing: 0.02em;
    margin-bottom: 28px;
}

/* Subtitle */
.hero__sub {
    font-size: clamp(1rem, 1.3vw, 1.15rem);
    font-weight: 300;
    line-height: 1.9;
    color: rgba(255, 255, 255, 0.78);
    margin-bottom: 40px;
}

/* Tagline — small uppercase spaced */
.hero__tagline {
    font-size: clamp(0.75rem, 0.95vw, 0.88rem);
    font-weight: 400;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.55);
}

/* Staggered animation base */
.anim-line {
    display: block;
    overflow: hidden;
}

.anim,
.anim-line {
    opacity: 0;
    transform: translateY(30px);
}

.hero__divider.anim {
    opacity: 0;
    transform: scaleX(0);
    transform-origin: center;
}

/* Scroll indicator */
.hero__scroll {
    position: absolute;
    bottom: 36px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.hero__scroll-text {
    font-size: 0.58rem;
    font-weight: 400;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--text-muted);
}

.hero__scroll-line {
    width: 1px;
    height: 52px;
    position: relative;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.06);
}

.hero__scroll-line::after {
    content: '';
    position: absolute;
    top: -52px;
    left: 0;
    width: 1px;
    height: 52px;
    background: linear-gradient(to bottom, transparent, rgba(255, 255, 255, 0.4));
    animation: scrollDown 2.6s ease-in-out infinite;
}

@keyframes scrollDown {
    0%   { top: -52px; }
    100% { top: 52px; }
}

/* ============================================
   SCROLL REVEAL
   ============================================ */
.reveal-up {
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 1s var(--ease-out), transform 1s var(--ease-out);
}

.reveal-up.visible {
    opacity: 1;
    transform: translateY(0);
}

.reveal-scale {
    opacity: 0;
    transform: scaleX(0);
    transform-origin: center;
    transition: opacity 0.8s var(--ease-out), transform 1s var(--ease-out);
}

.reveal-scale.visible {
    opacity: 1;
    transform: scaleX(1);
}

/* ============================================
   SECTION 2 — About
   ============================================ */
.section-about {
    padding: clamp(100px, 14vw, 200px) 0;
    background: var(--off-white);
}

.about__content {
    max-width: 740px;
    margin: 0 auto;
    text-align: center;
}

.about__text {
    font-weight: 300;
    line-height: 2;
}

.about__text--primary {
    font-size: clamp(1.25rem, 1.8vw, 1.55rem);
    font-weight: 300;
    color: var(--text-dark);
    line-height: 1.8;
}

.about__separator {
    width: 44px;
    height: 1px;
    background: rgba(26, 32, 48, 0.18);
    margin: 48px auto;
}

.about__text--secondary {
    font-size: clamp(0.95rem, 1.15vw, 1.05rem);
    color: var(--text-dark-secondary);
    line-height: 2;
}

/* ============================================
   SECTION 3 — Approach
   ============================================ */
.section-approach {
    padding: clamp(36px, 5vw, 56px) 0;
    background: #EAEAEA;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.approach__title {
    font-family: var(--font);
    font-size: clamp(0.72rem, 0.85vw, 0.8rem);
    font-weight: 400;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: rgba(0, 0, 0, 0.3);
    text-align: center;
    margin-bottom: clamp(24px, 4vw, 40px);
}

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

.approach__item {
    text-align: center;
    padding: 32px 16px;
    position: relative;
    cursor: default;
}

.approach__item + .approach__item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 1px;
    height: 28px;
    background: rgba(0, 0, 0, 0.12);
}

.approach__word {
    font-size: clamp(0.76rem, 0.92vw, 0.86rem);
    font-weight: 400;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: rgba(0, 0, 0, 0.55);
    position: relative;
    display: inline-block;
    transition: color 0.4s ease, transform 0.4s var(--ease-out);
}

.approach__word::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 1px;
    background: #1a1f2e;
    transition: width 0.5s var(--ease-out);
}

.approach__item:hover .approach__word {
    color: #1a1f2e;
    transform: translateY(-2px);
}

.approach__item:hover .approach__word::after {
    width: 100%;
}

/* ============================================
   CLOSING
   ============================================ */
.section-closing {
    padding: clamp(80px, 12vw, 140px) 0;
    background: var(--bg-primary);
    border-top: 1px solid var(--border-light);
}

.closing__content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
}

.closing__logo {
    font-family: var(--font);
    font-size: clamp(1.1rem, 1.8vw, 1.4rem);
    font-weight: 400;
    letter-spacing: 0.45em;
    text-transform: uppercase;
    color: var(--white);
    margin-bottom: 40px;
}

.closing__slogan {
    display: flex;
    align-items: center;
    gap: clamp(16px, 3vw, 32px);
}

.closing__slogan-line {
    width: clamp(40px, 8vw, 80px);
    height: 1px;
    background: rgba(255, 255, 255, 0.15);
    flex-shrink: 0;
}

.closing__slogan-text {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: clamp(1.2rem, 2.2vw, 1.7rem);
    font-weight: 400;
    font-style: italic;
    color: rgba(255, 255, 255, 0.55);
    letter-spacing: 0.04em;
    white-space: nowrap;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
    padding: clamp(64px, 10vw, 100px) 0;
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-light);
}

.footer__content {
    text-align: center;
}

.footer__logo {
    display: block;
    font-family: var(--font);
    font-size: clamp(0.9rem, 1.4vw, 1.1rem);
    font-weight: 500;
    letter-spacing: 0.4em;
    text-transform: uppercase;
    color: var(--white);
    margin-bottom: 16px;
}

.footer__slogan {
    font-family: var(--font);
    font-size: clamp(0.85rem, 1.1vw, 0.95rem);
    font-weight: 300;
    font-style: italic;
    color: rgba(255, 255, 255, 0.35);
    letter-spacing: 0.02em;
    margin-bottom: 32px;
}

.footer__divider {
    width: 40px;
    height: 1px;
    background: rgba(255, 255, 255, 0.2);
    margin: 0 auto 32px;
}

.footer__legal,
.footer__disclaimer {
    font-size: 0.75rem;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.5);
    line-height: 1.8;
    margin-bottom: 24px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.footer__email {
    display: inline-block;
    font-size: 0.95rem;
    font-weight: 400;
    letter-spacing: 0.06em;
    color: rgba(255, 255, 255, 0.7);
    border-bottom: 1px solid rgba(255, 255, 255, 0.35);
    padding-bottom: 5px;
    margin-top: 32px;
    transition: color 0.3s ease, border-color 0.3s ease;
    cursor: pointer;
}

.footer__email:hover {
    color: var(--white);
    border-bottom-color: rgba(255, 255, 255, 0.6);
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
    .hero__sub .anim-line {
        display: inline;
    }

    .approach__grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0;
    }

    .approach__item + .approach__item::before {
        display: none;
    }

    .approach__item {
        padding: 36px 16px;
    }

    .hero__scroll {
        display: none;
    }

    .footer__email {
        font-size: 0.78rem;
        padding-bottom: 5px;
        border-bottom-width: 1px;
    }
}
