/* Title font: Futura PT Condensed ExtraBold via local system font */
@font-face {
    font-family: 'Futura PT Cond';
    src: local('Futura PT Cond ExtraBold'),
         local('FuturaPT-CondExtraBold'),
         local('Futura PT Condensed ExtraBold'),
         local('FuturaPTCond-ExtraBold');
    font-weight: 800;
    font-style: normal;
    font-display: swap;
}

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

:root {
    --bg: #1E2268;
    --font: 'Futura PT', 'Futura', sans-serif;
    --font-title: 'Futura PT Cond', 'Futura Condensed PT', 'Futura PT', 'Futura', sans-serif;
}

html, body {
    height: 100%;
}

/* Раскрываем страницу, когда основной CSS применился (см. инлайн-стиль в <head>) */
html {
    visibility: visible;
}

body {
    overflow-x: hidden;
}

body {
    font-family: var(--font);
    background: var(--bg);
    color: #fff;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

::selection {
    background: rgba(255, 255, 255, 0.25);
    color: #fff;
}

/* ------------------------------------------------
   Site wrapper — shifts left when menu opens
   ------------------------------------------------ */

/* ------------------------------------------------
   Hero — full viewport
   ------------------------------------------------ */

.hero {
    position: relative;
    width: 100%;
    height: 100vh;
    height: 100dvh;
    overflow: hidden;
    background: #060A22;
}

.moon-container {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: auto;
}

.moon-container canvas {
    display: block;
}

/* ------------------------------------------------
   Logo — FULL MOON wordmark (logo.svg)
   ------------------------------------------------ */

.hero-title {
    position: absolute;
    top: clamp(28px, 4.5vh, 56px);
    left: clamp(28px, 3.5vw, 56px);
    z-index: 2;

    margin: 0;
    line-height: 0;
    pointer-events: none;

    opacity: 0;
    transform: translateY(24px);
    animation: fadeUp 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.15s forwards;
}

.hero-title img {
    display: block;
    width: clamp(150px, 20vw, 300px);
    height: auto;
}

/* ------------------------------------------------
   Bottom text — tagline + description
   Futura PT ExtraBold (800) + Futura PT Book (400)
   ------------------------------------------------ */

.hero-bottom {
    position: absolute;
    bottom: clamp(28px, 5vh, 64px);
    left: clamp(28px, 3.5vw, 56px);
    z-index: 2;
    max-width: min(960px, calc(100vw - 80px));
    pointer-events: none;

    opacity: 0;
    transform: translateY(20px);
    animation: fadeUp 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.45s forwards;
}

.hero-tagline {
    font-family: var(--font);
    font-weight: 800;
    font-size: clamp(20px, 3.2vw, 38px);
    line-height: 1.18;
    letter-spacing: 0.01em;
    text-transform: uppercase;
    color: #fff;
    margin-bottom: clamp(16px, 2.5vh, 32px);
}

.hero-desc {
    font-family: var(--font);
    font-weight: 400;
    font-size: clamp(10px, 1.05vw, 14px);
    line-height: 1.65;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.72);
    max-width: 540px;
}

.hero-lead {
    font-family: var(--font);
    font-weight: 800;
    font-size: clamp(20px, 2.6vw, 34px);
    line-height: 1.2;
    letter-spacing: 0.01em;
    text-transform: uppercase;
    color: #fff;
    margin-bottom: clamp(20px, 3vh, 32px);
    max-width: 720px;
}

.hero-body {
    max-width: 680px;
    margin-bottom: clamp(20px, 3vh, 32px);
}

.hero-body p {
    font-family: var(--font);
    font-weight: 400;
    font-size: clamp(15px, 1.45vw, 21px);
    line-height: 1.5;
    letter-spacing: 0.015em;
    color: rgba(255, 255, 255, 0.82);
    margin-bottom: 0.85em;
}

.hero-body p:last-child {
    margin-bottom: 0;
}

.hero-body a {
    color: #fff;
    text-decoration: underline;
    text-underline-offset: 2px;
    text-decoration-thickness: 1px;
    text-decoration-color: rgba(255, 255, 255, 0.35);
    transition: text-decoration-color 0.25s;
    pointer-events: auto;
}

.hero-body a:hover {
    text-decoration-color: #fff;
}

.hero-contacts {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: clamp(14px, 1.8vw, 28px);
    pointer-events: auto;
}

.hero-contacts a {
    font-family: var(--font);
    font-weight: 500;
    font-size: clamp(12px, 1.05vw, 14px);
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: #fff;
    text-decoration: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.35);
    padding-bottom: 2px;
    transition: border-color 0.25s;
}

.hero-contacts a:hover {
    border-color: #fff;
}

/* ------------------------------------------------
   Brands — portfolio grid
   ------------------------------------------------ */

.brands {
    width: 100%;
    background: #F0EDDF;
    padding: clamp(40px, 5vh, 72px) clamp(28px, 3.5vw, 56px) clamp(32px, 4vh, 56px);
}

.brands-inner {
    max-width: 1200px;
    margin: 0 auto;
}

.brands-title {
    font-family: var(--font-title);
    font-weight: 800;
    font-size: clamp(28px, 4vw, 52px);
    line-height: 1.1;
    letter-spacing: 0.01em;
    text-transform: uppercase;
    color: var(--bg);
    max-width: 700px;
    margin-bottom: clamp(28px, 4vh, 48px);
}

.brands-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: auto auto;
    gap: 20px;
}

.brand-card {
    display: flex;
    flex-direction: column;
}

.brand-card--tall {
    grid-row: span 2;
}

.brand-card--empty {
    visibility: hidden;
}

.brand-img {
    width: 100%;
    border-radius: 4px;
    overflow: hidden;
}

.brand-card--tall .brand-img {
    height: 100%;
    min-height: 300px;
}

.brand-card:not(.brand-card--tall) .brand-img {
    aspect-ratio: 4 / 3;
}

.brand-tags {
    font-family: var(--font);
    font-weight: 400;
    font-size: 10px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--bg);
    margin-top: 10px;
    opacity: 0.6;
}

.brands-author {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    margin-top: 24px;
    font-family: var(--font);
    font-weight: 400;
    font-size: 13px;
    font-style: italic;
    color: var(--bg);
    opacity: 0.5;
}

/* ------------------------------------------------
   Manifest — second block
   ------------------------------------------------ */

.manifest {
    width: 100%;
    min-height: 100vh;
    background: var(--bg);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: clamp(40px, 8vh, 100px) clamp(28px, 6vw, 120px);
}

.manifest-text {
    font-family: var(--font);
    font-weight: 400;
    font-size: clamp(28px, 4.2vw, 56px);
    line-height: 1.25;
    text-transform: uppercase;
    color: #fff;
    text-align: center;
    max-width: 900px;
}

.manifest-text strong {
    font-weight: 800;
}

.hero-credit {
    position: absolute;
    bottom: clamp(28px, 5vh, 64px);
    right: clamp(28px, 3.5vw, 56px);
    z-index: 2;

    font-family: var(--font);
    font-weight: 400;
    font-size: 12px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.5);

    opacity: 0;
    transform: translateY(20px);
    animation: fadeUp 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.6s forwards;
}

.hero-credit a {
    color: rgba(255, 255, 255, 0.5);
    text-decoration: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.25);
    padding-bottom: 1px;
    transition: color 0.25s, border-color 0.25s;
}

.hero-credit a:hover {
    color: #fff;
    border-bottom-color: #fff;
}

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

/* ------------------------------------------------
   Responsive
   ------------------------------------------------ */

@media (max-width: 768px) {
    .manifest-text {
        font-size: clamp(22px, 6vw, 36px);
    }

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

    .brand-card--tall {
        grid-row: span 1;
    }

    .brand-card--tall .brand-img {
        min-height: auto;
        aspect-ratio: 4 / 3;
    }

    .brand-card--empty {
        display: none;
    }

    .hero-title {
        top: 20px;
        left: 20px;
    }

    .hero-title img {
        width: clamp(130px, 34vw, 220px);
    }

    .hero-bottom {
        bottom: 56px;
        left: 20px;
        right: 20px;
        max-width: none;
    }

    .hero-credit {
        bottom: 22px;
        left: 20px;
        right: auto;
    }

    .hero-tagline {
        font-size: clamp(18px, 5vw, 28px);
    }

    .hero-desc {
        font-size: 11px;
    }
}

@media (max-width: 480px) {
    .hero-title img {
        width: clamp(120px, 40vw, 180px);
    }

    .hero-tagline {
        font-size: clamp(16px, 5vw, 22px);
        margin-bottom: 14px;
    }

    .hero-desc {
        font-size: 10px;
        line-height: 1.55;
    }
}
