:root {
    --brand-red: #b30000; /* Main vibrant red */
    --brand-red-dark: #6e0000;
    --brand-red-deep: #400000;
    --black-base: #050505;
    --black-light: #111111;
    --black-pure: #000000;
    
    --gold-accent: #E5C158; /* Warm festive gold */
    
    --text-primary: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.6);
    --font-main: 'Manrope', sans-serif;
    
    /* Typography System */
    --font-size-h1: clamp(4rem, 10vw, 10rem);
    --font-size-h2: clamp(2.5rem, 5vw, 4rem);
    --font-size-h3: clamp(1.8rem, 2.6vw, 2.1rem);
    --font-size-h4: 1.2rem;
    --font-size-large: clamp(1.2rem, 2vw, 1.5rem);
    --font-size-body: 1.05rem;
    --font-size-small: 0.9rem;
    
    --glass-border: rgba(255, 255, 255, 0.1);
    
    /* Dynamic Radius (One corner rounded) */
    --radius-dynamic: 0 40px 0 0;
    --radius-dynamic-small: 0 20px 0 0;
}

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

html {
    scroll-behavior: initial;
}

body {
    background-color: var(--black-base);
    color: var(--text-primary);
    font-family: var(--font-main);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

.site-wrapper {
    overflow-x: hidden;
    width: 100%;
}

/* Utilities */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.section-padding {
    padding: 140px 0;
}

.text-center {
    text-align: center;
}

.accent {
    color: var(--gold-accent);
    font-weight: 800;
}

.section-title {
    font-size: var(--font-size-h2);
    line-height: 1.1;
    margin-bottom: 24px;
    font-weight: 800;
    letter-spacing: -0.02em;
    text-transform: uppercase;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 24px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
    transition: background 0.4s ease, padding 0.4s ease, border-bottom 0.4s ease;
    border-bottom: 1px solid transparent;
}

.header.scrolled {
    background: rgba(0, 0, 0, 0.95);
    padding: 16px 40px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
}

.logo-img {
    display: block;
    height: 40px; /* Adjust if needed based on the logo proportions */
    width: auto;
}

.main-nav {
    display: flex;
    gap: 32px;
}

.main-nav a {
    color: var(--text-primary);
    text-decoration: none;
    font-size: var(--font-size-small);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: color 0.3s ease;
}

.main-nav a:hover {
    color: var(--brand-red);
}

.header-right {
    display: flex;
    align-items: center;
    gap: 30px;
}

.social-icons {
    display: flex;
    gap: 15px;
}

.social-icons a {
    color: var(--text-primary);
    font-size: 1.1rem;
    transition: color 0.3s ease;
}

.social-icons a:hover {
    color: var(--brand-red);
}

.btn-outline {
    padding: 12px 28px;
    border: 1px solid rgba(255,255,255,0.3);
    border-radius: var(--radius-dynamic-small);
    color: var(--text-primary);
    background: transparent;
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

.btn-outline:hover {
    background: var(--text-primary);
    color: var(--black-base);
    border-color: var(--text-primary);
}

.btn-primary {
    display: inline-block;
    padding: 20px 48px;
    background: var(--black-pure);
    color: var(--text-primary);
    text-decoration: none;
    border-radius: var(--radius-dynamic);
    font-weight: 700;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border: 1px solid var(--black-pure);
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-primary:hover {
    background: var(--brand-red);
    border-color: var(--brand-red);
    color: #fff;
    box-shadow: 0 10px 30px rgba(179, 0, 0, 0.4);
    transform: translateY(-2px);
}

/* Hero Section (Deep Red) */
.hero {
    position: relative;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
    padding: 0 40px 15vh 40px;
    overflow: hidden;
    background-color: var(--brand-red-dark);
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    overflow: hidden;
}

.hero-bg-parallax {
    position: absolute;
    top: -5%;
    left: -2%;
    width: 104%;
    height: 110%;
    background: url('images/2.png') center/cover no-repeat;
    /* We make it slightly larger than 100% so we have room to move it for parallax */
}

.hero-overlay {
    display: none; /* User requested to remove the overlay */
}

.hero-watermark {
    position: absolute;
    top: 48%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 26vw;
    font-weight: 800;
    color: rgba(255, 255, 255, 0.03);
    z-index: 3;
    pointer-events: none;
    user-select: none;
    line-height: 1;
    white-space: nowrap;
}

.hero-content {
    position: relative;
    z-index: 3;
    width: fit-content;
    max-width: 1400px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding-left: 0;
}

.hero-title-wrapper {
    display: flex;
    align-items: center; /* Baseline might offset them awkwardly on some fonts, let's use center or flex-end */
    gap: 20px;
    margin-bottom: 15px;
}

.hero-title-main {
    font-size: var(--font-size-h1);
    font-weight: 800;
    line-height: 0.85;
    letter-spacing: -0.04em;
}

.hero-title-sub {
    font-size: clamp(1.5rem, 3.5vw, 3.5rem);
    font-weight: 300;
    line-height: 1.1;
    text-align: left;
}

.hero-bottom-wrapper {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.hero-subtitle {
    font-size: var(--font-size-body);
    color: var(--text-primary);
    max-width: 580px;
    line-height: 1.5;
    font-weight: 300;
}

.hero-subtitle strong {
    font-weight: 700;
}

.hero-stats {
    position: absolute;
    bottom: 40px;
    left: 40px;
    z-index: 4;
    display: flex;
    gap: 40px;
    font-size: var(--font-size-small);
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-secondary);
}

.hero-stats span strong {
    font-weight: 800;
    font-size: 1.5rem;
    color: var(--text-primary);
    margin-right: 8px;
}

/* Manifesto Section (Solid Black with Gradients) */
.manifesto {
    background-color: var(--black-base);
    position: relative;
    isolation: isolate;
    overflow: hidden;
    padding: 120px 0;
    min-height: 800px;
    display: flex;
    align-items: center;
}

.manifesto-bg-glow {
    position: absolute;
    top: -20%; left: -10%;
    width: 60%; height: 80%;
    background: radial-gradient(circle, rgba(179,0,0,0.15) 0%, transparent 60%);
    z-index: 0;
}

.manifesto-watermark {
    position: absolute;
    bottom: -150px;
    right: -20px;
    font-size: 28vw;
    font-weight: 900;
    color: rgba(179,0,0,0.15);
    line-height: 1;
    z-index: 1;
    pointer-events: none;
    user-select: none;
}

.manifesto-image-absolute {
    position: absolute;
    top: 0;
    left: 0;
    width: 38%;
    height: 100%;
    z-index: 2;
    clip-path: polygon(0 0, 75% 0, 100% 100%, 0% 100%);
}

.manifesto-image-absolute img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: center top;
}

.manifesto-content {
    position: relative;
    z-index: 3;
    padding: 20px 60px 20px 0;
    max-width: 900px;
    margin-left: 40%;
}

.manifesto-text {
    font-size: var(--font-size-large);
    color: var(--text-secondary);
    font-weight: 300;
    line-height: 1.6;
    margin-bottom: 40px;
}

.manifesto-actions {
    display: flex;
    align-items: center;
    gap: 40px;
}

.btn-video {
    background: var(--brand-red);
    color: #fff;
    padding: 28px 56px;
    border-radius: var(--radius-dynamic-small);
    font-weight: 600;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 1.2rem;
    transition: transform 0.3s ease;
}

.btn-video:hover {
    transform: translateY(-3px);
}

.video-thumbnail {
    position: relative;
    width: 360px;
    border-radius: 12px;
    overflow: hidden;
    transform: rotate(-12deg);
    border: 3px solid rgba(255,255,255,0.1);
    box-shadow: 0 20px 40px rgba(0,0,0,0.6);
    cursor: pointer;
    transition: transform 0.3s ease;
}

.video-thumbnail:hover {
    transform: rotate(-8deg) scale(1.05);
}

.video-thumbnail img {
    width: 100%;
    display: block;
}

.yt-play {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90px;
    height: 63px;
    background: #ff0000;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.6rem;
}

/* Approach Section (Deep Dark Red) */
.approach {
    background-color: var(--brand-red-deep);
    position: relative;
    overflow: hidden;
}

.approach-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.approach-desc {
    font-size: var(--font-size-large);
    color: var(--text-secondary);
    font-weight: 300;
    line-height: 1.7;
}

.quote-box {
    background: var(--black-base);
    padding: 50px;
    border-radius: var(--radius-dynamic);
    border-left: 5px solid var(--gold-accent);
}

.quote-icon {
    font-size: 2.5rem;
    color: var(--gold-accent);
    margin-bottom: 24px;
}

.quote-box p {
    font-size: var(--font-size-large);
    font-weight: 400;
    line-height: 1.6;
    color: #fff;
}

/* Formats Section (Black) */
.formats {
    background-color: var(--black-light);
}

.formats-intro {
    max-width: 700px;
    margin-bottom: 60px;
    font-size: var(--font-size-large);
    color: var(--text-secondary);
    font-weight: 300;
}

.formats-highlight {
    color: var(--text-primary);
    font-weight: 600;
    margin-top: 20px;
    font-size: var(--font-size-h3);
}

.formats-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.format-card {
    position: relative;
    height: 450px;
    border-radius: var(--radius-dynamic);
    overflow: hidden;
    display: flex;
    align-items: flex-end;
    padding: 40px 28px;
    cursor: pointer;
}

.format-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: transform 0.8s ease;
    z-index: 1;
}

.format-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0,0,0,0.95) 0%, rgba(0,0,0,0.1) 100%);
    z-index: 2;
    transition: background 0.4s ease;
}

.format-card:hover .format-bg {
    transform: scale(1.05);
}

.format-card:hover::after {
    background: linear-gradient(to top, rgba(179,0,0,0.9) 0%, rgba(0,0,0,0.2) 100%);
}

.format-card h3 {
    position: relative;
    z-index: 3;
    width: 100%;
    font-size: var(--font-size-h3);
    font-weight: 800;
    text-transform: uppercase;
    /* At 3-column widths (~1300-1400px) a single long word like "НАЦИОНАЛЬНЫЙ"
       can be wider than the card's own inner width — nothing left to wrap at,
       so it silently overflowed past `.format-card`'s overflow:hidden and lost
       its last letter. Breaking inside the word beats clipping it. */
    overflow-wrap: break-word;
    word-break: break-word;
}

/* Why Arriva Section (Vibrant Red) */
.why-arriva {
    /* Was a flat brand-red fill (100% of the section) — pure saturated red at that
       scale fights the gold accents instead of framing them. brand-red now only
       glows in from one corner (same trick as .manifesto-bg-glow) while red-deep/
       red-dark stay dominant underneath — restores 60/30/10 instead of a solid wash,
       and keeps the whole card grid sitting on the calmer base tone. */
    background:
        radial-gradient(ellipse 60% 70% at 88% 10%, rgba(179, 0, 0, 0.55) 0%, transparent 70%),
        linear-gradient(160deg, var(--brand-red-deep) 0%, var(--brand-red-dark) 100%);
    position: relative;
    overflow: hidden;
}

/* Horizontal "fan" accordion — 8 collapsed strips, one expands at a time to
   reveal its photo; the label rotates from a vertical spine to a horizontal
   headline. Classic flex-grow accordion (each panel flex:1, the open one
   flex:6) — no JS needed for the animation itself, only for pinning the
   active panel on touch devices that have no :hover. */
.fan-accordion {
    display: flex;
    align-items: stretch;
    gap: 6px;
    height: 480px;
    margin-top: 60px;
    border-radius: var(--radius-dynamic);
    overflow: hidden;
}

.fan-panel {
    position: relative;
    flex: 1 1 0%;
    min-width: 64px;
    background-size: cover;
    background-position: center;
    cursor: pointer;
    overflow: hidden;
    display: flex;
    align-items: flex-end;
    outline: none;
    transition: flex-grow 0.65s cubic-bezier(0.22, 1, 0.36, 1);
}

.fan-panel.active,
.fan-panel:focus-visible {
    flex-grow: 6;
}

@media (hover: hover) {
    .fan-panel:hover {
        flex-grow: 6;
    }
}

.fan-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(5, 5, 5, 0.25) 0%, rgba(5, 5, 5, 0.55) 55%, rgba(5, 5, 5, 0.95) 100%);
    filter: saturate(0.7);
    transition: background 0.5s ease, filter 0.5s ease;
}

.fan-panel.active .fan-overlay,
.fan-panel:focus-visible .fan-overlay {
    background: linear-gradient(180deg, rgba(5, 5, 5, 0.05) 0%, rgba(5, 5, 5, 0.35) 60%, rgba(5, 5, 5, 0.88) 100%);
    filter: saturate(1);
}
@media (hover: hover) {
    .fan-panel:hover .fan-overlay {
        background: linear-gradient(180deg, rgba(5, 5, 5, 0.05) 0%, rgba(5, 5, 5, 0.35) 60%, rgba(5, 5, 5, 0.88) 100%);
        filter: saturate(1);
    }
}

.fan-icon {
    position: absolute;
    top: 28px;
    left: 24px;
    z-index: 2;
    font-size: 1.4rem;
    color: var(--gold-accent);
    opacity: 0;
    transform: translateY(-8px);
    transition: opacity 0.35s ease 0.15s, transform 0.35s ease 0.15s;
}

.fan-panel.active .fan-icon,
.fan-panel:focus-visible .fan-icon {
    opacity: 1;
    transform: translateY(0);
}
@media (hover: hover) {
    .fan-panel:hover .fan-icon {
        opacity: 1;
        transform: translateY(0);
    }
}

.fan-label {
    position: relative;
    z-index: 2;
    margin: 0;
    padding: 24px 0 24px 20px;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    white-space: nowrap;
    writing-mode: vertical-rl;
    transform: rotate(180deg);
}

.fan-panel.active .fan-label,
.fan-panel:focus-visible .fan-label {
    writing-mode: horizontal-tb;
    transform: none;
    max-width: 78%;
    white-space: normal;
    font-size: var(--font-size-h4);
    padding: 0 24px 32px 28px;
}
@media (hover: hover) {
    .fan-panel:hover .fan-label {
        writing-mode: horizontal-tb;
        transform: none;
        max-width: 78%;
        white-space: normal;
        font-size: var(--font-size-h4);
        padding: 0 24px 32px 28px;
    }
}

@media (max-width: 900px) {
    .fan-accordion {
        flex-direction: column;
        height: auto;
    }
    .fan-panel {
        flex: none;
        height: 70px;
        min-width: 0;
        transition: height 0.5s ease;
    }
    .fan-panel.active {
        height: 240px;
    }
    .fan-icon {
        top: 20px;
    }
    .fan-label {
        writing-mode: horizontal-tb;
        transform: none;
        white-space: normal;
        padding: 0 20px 18px;
        font-size: 0.95rem;
    }
    .fan-panel.active .fan-label {
        font-size: var(--font-size-h4);
        padding: 0 20px 22px;
    }
}

/* Team Section (Black) */
.team {
    background-color: var(--black-base);
}

.team-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 80px;
}

/* Words injected by the kinetic-heading script (script.js) — inline-block so
   each one can carry its own filter/opacity without breaking line wrapping.
   Scoped to the three "statement" headings it's applied to. */
.team-header .section-title .word,
.approach-left .section-title .word,
.cta-title .word {
    display: inline-block;
    will-change: opacity, filter;
}

.team-desc {
    font-size: var(--font-size-large);
    color: var(--text-secondary);
    font-weight: 300;
}

/* Team bento — one lead tile (founder/host) plus four equal satellites laid
   out with named grid-areas. The size contrast alone reads as "this is a
   team, and here's who leads it" — no interaction required to see it. */
.bento-team {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(2, 260px);
    grid-template-areas:
        "gabit gabit maksat bolat"
        "gabit gabit arsen daniyal";
    gap: 16px;
    margin-top: 60px;
}

.c-gabit   { grid-area: gabit; }
.c-maksat  { grid-area: maksat; }
.c-bolat   { grid-area: bolat; }
.c-arsen   { grid-area: arsen; }
.c-daniyal { grid-area: daniyal; }

.bento-card {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-dynamic-small);
    background: var(--black-light);
    border: 1px solid rgba(255, 255, 255, 0.05);
    cursor: pointer;
    outline: none;
    transition: border-color 0.3s ease;
}

.bento-card:hover,
.bento-card:focus-visible {
    border-color: rgba(255, 255, 255, 0.2);
}

.bento-photo, .bento-photo-smile {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center top;
    transition: transform 0.6s ease, opacity 0.5s ease;
}

.bento-photo-smile {
    opacity: 0;
}

.bento-card:hover .bento-photo,
.bento-card:focus-visible .bento-photo {
    transform: scale(1.04);
}

.bento-card:hover .bento-photo-smile,
.bento-card:focus-visible .bento-photo-smile {
    opacity: 1;
}

.bento-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background: linear-gradient(180deg, transparent 45%, rgba(5, 5, 5, 0.92) 100%);
}

.bento-info {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2;
    padding: 20px;
}

.bento-role {
    display: block;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--gold-accent);
    margin-bottom: 4px;
}

.bento-info h3 {
    font-size: 1.3rem;
    font-weight: 800;
    text-transform: uppercase;
    color: var(--text-primary);
    margin: 0;
}

.bento-bio {
    max-height: 0;
    margin: 0;
    opacity: 0;
    overflow: hidden;
    font-size: 0.85rem;
    font-weight: 300;
    line-height: 1.5;
    color: var(--text-secondary);
    transition: max-height 0.4s ease, opacity 0.3s ease, margin-top 0.4s ease;
}

.bento-card:hover .bento-bio,
.bento-card:focus-visible .bento-bio {
    max-height: 140px;
    opacity: 1;
    margin-top: 8px;
}

.c-gabit .bento-role { font-size: 0.8rem; }
.c-gabit .bento-info h3 { font-size: 2rem; }
.c-gabit .bento-bio { font-size: 0.95rem; }

/* Gallery Section */
.gallery {
    background-color: var(--black-base);
}

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

.gallery-item {
    position: relative;
    border-radius: var(--radius-dynamic);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s ease, opacity 0.3s ease;
}

.gallery-item:hover img {
    transform: scale(1.08);
    opacity: 0.8;
}

.gallery-item:nth-child(1) { grid-column: span 2; grid-row: span 2; }
.gallery-item:nth-child(2) { grid-column: span 2; grid-row: span 1; }
.gallery-item:nth-child(3) { grid-column: span 1; grid-row: span 1; }
.gallery-item:nth-child(4) { grid-column: span 1; grid-row: span 1; }
.gallery-item:nth-child(5) { grid-column: span 2; grid-row: span 1; }
.gallery-item:nth-child(6) { grid-column: span 2; grid-row: span 1; }

/* Footer / CTA Section (Pure Black) */
.cta-footer {
    position: relative;
    background: var(--black-pure);
    border-top: 1px solid rgba(255,255,255,0.05);
}

.cta-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.cta-title {
    margin-bottom: 60px;
    max-width: 900px;
    font-size: var(--font-size-h2);
    font-weight: 800;
    text-transform: uppercase;
    line-height: 1.1;
}

.contact-form {
    background: var(--black-light);
    border: 1px solid rgba(255,255,255,0.05);
    padding: 60px 50px;
    border-radius: var(--radius-dynamic);
    width: 100%;
    max-width: 500px;
}

.form-title {
    font-size: var(--font-size-h4);
    margin-bottom: 40px;
    color: var(--text-secondary);
    font-weight: 300;
}

.form-group {
    position: relative;
    margin-bottom: 30px;
}

.form-group input {
    width: 100%;
    padding: 18px 20px;
    background: var(--black-pure);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-dynamic-small);
    color: var(--text-primary);
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.3s ease;
}

.form-group input:focus {
    outline: none;
    border-color: var(--brand-red);
    background: #0a0000; /* Extremely faint red tint */
}

.form-group label {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-secondary);
    transition: all 0.3s ease;
    pointer-events: none;
    font-weight: 500;
}

.form-group input:focus + label,
.form-group input:not(:placeholder-shown) + label {
    top: -12px;
    left: 15px;
    font-size: 0.8rem;
    background: var(--brand-red);
    padding: 2px 8px;
    color: #fff;
    font-weight: 700;
    text-transform: uppercase;
}

.form-submit {
    width: 100%;
    margin-top: 10px;
    border: none;
    background: var(--brand-red);
}

.form-submit:hover {
    background: var(--text-primary);
    color: var(--black-pure);
    box-shadow: none;
}

.site-footer {
    padding: 40px 0;
    text-align: center;
    border-top: 1px solid rgba(255,255,255,0.05);
    background: var(--black-pure);
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.footer-content p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* GSAP Initial States */
.gsap-reveal, .gsap-up, .gsap-fade-right, .gsap-fade-left {
    visibility: hidden;
}

/* Festive Sparks */
.spark {
    position: absolute;
    width: 4px;
    height: 4px;
    background: var(--gold-accent);
    border-radius: 50%;
    box-shadow: 0 0 15px var(--gold-accent), 0 0 30px var(--gold-accent);
    z-index: 2;
    animation: floatUp 8s infinite ease-in;
    opacity: 0;
}

.spark-1 { left: 20%; bottom: -10%; animation-delay: 0s; animation-duration: 7s; }
.spark-2 { left: 50%; bottom: -10%; animation-delay: 2s; animation-duration: 9s; }
.spark-3 { left: 80%; bottom: -10%; animation-delay: 4s; animation-duration: 6s; }
.spark-4 { left: 35%; bottom: -10%; animation-delay: 1s; animation-duration: 8s; }
.spark-5 { left: 70%; bottom: -10%; animation-delay: 3s; animation-duration: 7s; }

@keyframes floatUp {
    0% { transform: translateY(0) scale(1); opacity: 0; }
    20% { opacity: 0.8; }
    80% { opacity: 0.8; }
    100% { transform: translateY(-100vh) scale(0.5); opacity: 0; }
}

/* Decorative Triangles */
.deco-triangle {
    position: absolute;
    pointer-events: none;
    z-index: 0;
}

.deco-1 {
    width: 500px;
    height: 500px;
    top: auto;
    bottom: -130px;
    right: -140px;
    transform: rotate(15deg);
}

.deco-2 {
    width: 600px;
    height: 600px;
    bottom: -250px;
    left: -150px;
    transform: rotate(-35deg);
}

.deco-3 {
    width: 1000px;
    height: 1000px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(45deg);
}

.deco-4 {
    width: 700px;
    height: 700px;
    top: -150px;
    left: -100px;
    transform: rotate(-15deg);
}

/* Responsive */
@media (max-width: 992px) {
    .approach-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .main-nav {
        display: none;
    }
    .bento-team {
        grid-template-columns: 1fr;
        grid-template-rows: none;
        grid-template-areas:
            "gabit"
            "maksat"
            "bolat"
            "arsen"
            "daniyal";
    }
    .bento-card {
        height: 260px;
    }
    .c-gabit {
        height: 340px;
    }
    /* No hover on touch — bios stay visible so nothing requires a tap to read. */
    .bento-bio {
        max-height: 140px;
        opacity: 1;
        margin-top: 8px;
    }
    .manifesto-content {
        margin-left: 0;
        max-width: 100%;
        padding: 40px 24px 0;
    }

    .manifesto-actions {
        flex-direction: column;
        align-items: flex-start;
    }

    /* Fixed at 360px + rotate(-12deg), the thumbnail's rotated bounding box
       runs past 400px wide — wider than the phone itself. */
    .video-thumbnail {
        width: 220px;
    }
    .yt-play {
        width: 55px;
        height: 39px;
    }

    .manifesto-image-absolute {
        position: relative;
        width: 100%;
        height: 500px;
        clip-path: polygon(0 0, 100% 0, 100% 100%, 0% 100%);
    }

    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-auto-rows: 200px;
    }
    .gallery-item:nth-child(n) {
        grid-column: span 1;
        grid-row: span 1;
    }
    .gallery-item:nth-child(1) { grid-column: span 2; grid-row: span 2; }
}

@media (max-width: 768px) {
    .header {
        padding: 20px;
    }
    .section-padding {
        padding: 80px 0;
    }
    .hero-content {
        width: 100%;
        max-width: 100%;
    }
    /* Was a row flex on all breakpoints — "БОЛЬШЕ" and "ЧЕМ ВЕДУЩИЕ" side by
       side never fit a phone width, so both edges got clipped by
       .site-wrapper's overflow-x:hidden instead of wrapping. */
    .hero-title-wrapper {
        flex-direction: column;
        align-items: flex-start;
        gap: 0;
    }
    .hero-title-main {
        font-size: 4.5rem;
    }
    .hero-title-sub {
        font-size: 2rem;
    }
    .hero-bottom-wrapper {
        flex-direction: column;
        text-align: center;
    }
    .hero-watermark {
        font-size: 35vw;
    }
    .hero-stats {
        flex-direction: column;
        gap: 10px;
        bottom: 20px;
    }
    .contact-form {
        padding: 40px 20px;
    }
}
