/* ============================================
   АНКО — Культурная продюсерская студия
   Style Guide: Bold, vibrant, dark
   ============================================ */

:root {
    /* Colors — яркая палитра */
    --bg: #0a0a12;
    --bg-elevated: #0f0f1a;
    --bg-card: #141425;
    --text: #ffffff;
    --text-muted: #b0b0c8;
    --text-dim: #6a6a8a;
    --accent: #b078f7;
    --accent-glow: rgba(176, 120, 247, 0.25);
    --accent-hover: #d4a5ff;

    /* Division colors — насыщенные */
    --events: #FF5252;
    --travel: #00B4FF;
    --wellness: #00E676;
    --taste: #FF8A65;
    --culture: #FFD600;

    /* Spacing */
    --section-gap: 140px;
    --container: 1200px;

    /* Typography */
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-display: 'Cormorant Garamond', Georgia, serif;

    /* Transitions */
    --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

/* Reset & Base */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    color: var(--text);
    background: var(--bg);
    overflow-x: hidden;
}

a {
    color: var(--accent);
    text-decoration: none;
    transition: color 0.3s var(--ease);
}

a:hover {
    color: var(--accent-hover);
}

img {
    max-width: 100%;
    display: block;
}

.container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 24px;
}

/* Section helpers */
.section-label {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 24px;
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(32px, 5vw, 48px);
    font-weight: 400;
    line-height: 1.2;
    margin-bottom: 60px;
    color: var(--text);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 32px;
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.02em;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    transition: all 0.3s var(--ease);
    text-decoration: none;
}

.btn--primary {
    background: linear-gradient(135deg, var(--accent), #8b5cf6);
    color: #fff;
    box-shadow: 0 4px 20px rgba(176, 120, 247, 0.25);
}

.btn--primary:hover {
    background: linear-gradient(135deg, var(--accent-hover), #a78bfa);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(176, 120, 247, 0.45);
}

.btn--ghost {
    background: transparent;
    color: var(--text);
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.btn--ghost:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.btn--lg {
    padding: 18px 40px;
    font-size: 15px;
}

.btn--full {
    width: 100%;
}

/* ============================================
   Navigation
   ============================================ */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 20px 0;
    transition: all 0.4s var(--ease);
}

.nav--scrolled {
    background: rgba(8, 8, 13, 0.9);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.nav__inner {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav__logo {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text);
    font-size: 20px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-decoration: none;
}

.nav__logo:hover {
    color: var(--accent);
}

.nav__logo-icon {
    width: 20px;
    height: 30px;
    color: var(--accent);
}

.nav__menu {
    display: flex;
    align-items: center;
    gap: 36px;
    list-style: none;
}

.nav__menu a {
    color: var(--text-muted);
    font-size: 14px;
    font-weight: 400;
    letter-spacing: 0.01em;
    transition: color 0.3s;
}

.nav__menu a:hover {
    color: var(--text);
}

.nav__cta {
    padding: 8px 20px;
    border: 1px solid rgba(176, 120, 247, 0.4);
    border-radius: 6px;
    color: var(--accent) !important;
}

.nav__cta:hover {
    background: var(--accent);
    color: #fff !important;
    border-color: var(--accent);
}

.nav__toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.nav__toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text);
    transition: all 0.3s var(--ease);
}

/* ============================================
   Hero
   ============================================ */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 120px 0 80px;
    background: radial-gradient(ellipse 80% 60% at 50% 40%, rgba(176, 120, 247, 0.12), transparent),
                radial-gradient(ellipse 50% 40% at 20% 60%, rgba(255, 82, 82, 0.06), transparent),
                radial-gradient(ellipse 50% 40% at 80% 60%, rgba(0, 180, 255, 0.06), transparent),
                var(--bg);
}

.hero__bg {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.hero__beam {
    position: absolute;
    width: 2px;
    height: 80vh;
    background: linear-gradient(to bottom, transparent, rgba(176, 120, 247, 0.4), transparent);
    opacity: 0.7;
    filter: blur(1px);
}

.hero__beam--1 {
    left: 20%;
    top: -10%;
    transform: rotate(-15deg);
    animation: beam 8s ease-in-out infinite;
}

.hero__beam--2 {
    right: 25%;
    top: -5%;
    transform: rotate(10deg);
    animation: beam 10s ease-in-out 2s infinite;
}

.hero__beam--3 {
    left: 55%;
    top: -15%;
    transform: rotate(5deg);
    animation: beam 12s ease-in-out 4s infinite;
}

@keyframes beam {
    0%, 100% { opacity: 0.2; }
    50% { opacity: 0.6; }
}

.hero__content {
    position: relative;
    text-align: center;
    z-index: 2;
}

.hero__mark {
    margin: 0 auto 36px;
    opacity: 0.85;
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
}

.hero__title {
    margin-bottom: 24px;
}

.hero__title-accent {
    display: block;
    font-family: var(--font-body);
    font-size: clamp(56px, 12vw, 120px);
    font-weight: 600;
    letter-spacing: 0.18em;
    background: linear-gradient(135deg, #ffffff 0%, #b078f7 50%, #8b5cf6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    margin-bottom: 12px;
    filter: drop-shadow(0 0 40px rgba(176, 120, 247, 0.3));
}

.hero__title-sub {
    display: block;
    font-family: var(--font-display);
    font-size: clamp(18px, 3vw, 28px);
    font-weight: 400;
    font-style: italic;
    color: var(--text-muted);
    letter-spacing: 0.02em;
}

.hero__tagline {
    font-size: clamp(15px, 2vw, 18px);
    color: var(--text-muted);
    max-width: 560px;
    margin: 0 auto 40px;
    line-height: 1.7;
}

.hero__actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    margin-bottom: 60px;
}

.hero__divisions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.hero__div--events { color: var(--events); }
.hero__div--travel { color: var(--travel); }
.hero__div--wellness { color: var(--wellness); }
.hero__div--taste { color: var(--taste); }
.hero__div--culture { color: var(--culture); }
.hero__div-dot { color: var(--text-dim); }

.hero__scroll {
    position: absolute;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
    color: var(--text-dim);
    animation: bounce 2s ease-in-out infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(6px); }
}

/* ============================================
   About
   ============================================ */
.about {
    padding: var(--section-gap) 0;
}

.about__grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 60px;
    margin-bottom: 80px;
    align-items: start;
}

.about__title {
    font-family: var(--font-display);
    font-size: clamp(24px, 3.5vw, 36px);
    font-weight: 400;
    line-height: 1.4;
    color: var(--text);
}

.about__text p {
    color: var(--text-muted);
    margin-bottom: 20px;
    font-size: 15px;
    line-height: 1.8;
}

.about__text em {
    color: var(--accent);
    font-style: normal;
    font-weight: 500;
}

.about__stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    padding-top: 60px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.stat {
    text-align: center;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s var(--ease);
}

.stat.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.stat__number {
    font-size: clamp(36px, 5vw, 56px);
    font-weight: 600;
    background: linear-gradient(135deg, #d4a5ff, #b078f7, #8b5cf6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    margin-bottom: 8px;
}

.stat__label {
    font-size: 13px;
    color: var(--text-muted);
    letter-spacing: 0.02em;
}

/* ============================================
   Directions
   ============================================ */
.directions {
    padding: var(--section-gap) 0;
    background: var(--bg-elevated);
    position: relative;
    overflow: hidden;
}

.directions::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(176, 120, 247, 0.06), transparent 60%);
    pointer-events: none;
}

.directions__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.direction {
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 40px;
    transition: all 0.5s var(--ease);
    opacity: 0;
    transform: translateY(30px);
    position: relative;
    overflow: hidden;
}

.direction::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    border-radius: 16px 16px 0 0;
    opacity: 0.6;
    transition: opacity 0.4s;
}

.direction--events::before { background: linear-gradient(90deg, var(--events), transparent); }
.direction--travel::before { background: linear-gradient(90deg, var(--travel), transparent); }
.direction--wellness::before { background: linear-gradient(90deg, var(--wellness), transparent); }
.direction--taste::before { background: linear-gradient(90deg, var(--taste), transparent); }
.direction--culture::before { background: linear-gradient(90deg, var(--culture), transparent); }

.direction.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.direction:hover {
    transform: translateY(-6px);
}

.direction:hover::before {
    opacity: 1;
}

.direction--events:hover { box-shadow: 0 20px 60px rgba(255, 82, 82, 0.12); border-color: rgba(255, 82, 82, 0.25); }
.direction--travel:hover { box-shadow: 0 20px 60px rgba(0, 180, 255, 0.12); border-color: rgba(0, 180, 255, 0.25); }
.direction--wellness:hover { box-shadow: 0 20px 60px rgba(0, 230, 118, 0.12); border-color: rgba(0, 230, 118, 0.25); }
.direction--taste:hover { box-shadow: 0 20px 60px rgba(255, 138, 101, 0.12); border-color: rgba(255, 138, 101, 0.25); }
.direction--culture:hover { box-shadow: 0 20px 60px rgba(255, 214, 0, 0.12); border-color: rgba(255, 214, 0, 0.25); }

.direction__icon {
    width: 48px;
    height: 48px;
    margin-bottom: 24px;
}

.direction--events .direction__icon { color: var(--events); }
.direction--travel .direction__icon { color: var(--travel); }
.direction--wellness .direction__icon { color: var(--wellness); }
.direction--taste .direction__icon { color: var(--taste); }
.direction--culture .direction__icon { color: var(--culture); }

/* hover colors handled above with box-shadow */

.direction__title {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 6px;
    color: var(--text);
}

.direction__subtitle {
    font-family: var(--font-display);
    font-size: 15px;
    font-style: italic;
    color: var(--text-muted);
    margin-bottom: 16px;
}

.direction__desc {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 20px;
}

.direction__formats {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.direction__formats li {
    font-size: 12px;
    padding: 4px 12px;
    border-radius: 100px;
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-dim);
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.direction--events .direction__formats li { border-color: rgba(255, 107, 107, 0.15); color: rgba(255, 107, 107, 0.7); }
.direction--travel .direction__formats li { border-color: rgba(14, 165, 233, 0.15); color: rgba(14, 165, 233, 0.7); }
.direction--wellness .direction__formats li { border-color: rgba(52, 211, 153, 0.15); color: rgba(52, 211, 153, 0.7); }
.direction--taste .direction__formats li { border-color: rgba(255, 138, 101, 0.15); color: rgba(255, 138, 101, 0.7); }
.direction--culture .direction__formats li { border-color: rgba(245, 158, 11, 0.15); color: rgba(245, 158, 11, 0.7); }

/* ============================================
   Projects
   ============================================ */
.projects {
    padding: var(--section-gap) 0;
}

.projects__group {
    margin-bottom: 80px;
}

.projects__group:last-child {
    margin-bottom: 0;
}

.projects__group-title {
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--text-dim);
    margin-bottom: 32px;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.projects__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.project {
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 32px;
    transition: all 0.5s var(--ease);
    opacity: 0;
    transform: translateY(20px);
}

.project.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.project:hover {
    border-color: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

.project--featured {
    border-color: rgba(0, 230, 118, 0.3);
    background: linear-gradient(135deg, var(--bg-card), rgba(0, 230, 118, 0.06));
    box-shadow: 0 0 40px rgba(0, 230, 118, 0.06);
}

.project__image {
    margin: -32px -32px 20px -32px;
    overflow: hidden;
    border-radius: 16px 16px 0 0;
}

.project__image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

.project__tag {
    display: inline-block;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 3px 10px;
    border-radius: 4px;
    margin-bottom: 16px;
}

.project__tag--events { background: rgba(255, 107, 107, 0.12); color: var(--events); }
.project__tag--travel { background: rgba(14, 165, 233, 0.12); color: var(--travel); }
.project__tag--wellness { background: rgba(52, 211, 153, 0.12); color: var(--wellness); }
.project__tag--culture { background: rgba(245, 158, 11, 0.12); color: var(--culture); }

.project__title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--text);
}

.project__desc {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 20px;
}

.project__meta {
    display: flex;
    gap: 12px;
}

.project__meta span {
    font-size: 11px;
    color: var(--text-dim);
    padding: 3px 10px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 4px;
}

/* Portfolio */
.projects__portfolio {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.portfolio-item {
    display: grid;
    grid-template-columns: 60px 1fr 1.2fr;
    gap: 32px;
    align-items: center;
    padding: 28px 32px;
    border-radius: 12px;
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.03);
    transition: all 0.4s var(--ease);
    opacity: 0;
    transform: translateX(-20px);
}

.portfolio-item.is-visible {
    opacity: 1;
    transform: translateX(0);
}

.portfolio-item:hover {
    background: rgba(176, 120, 247, 0.04);
    border-color: rgba(176, 120, 247, 0.1);
}

.portfolio-item__number {
    font-size: 32px;
    font-weight: 600;
    color: var(--text-dim);
    font-variant-numeric: tabular-nums;
}

.portfolio-item__title {
    font-size: 17px;
    font-weight: 500;
    color: var(--text);
}

.portfolio-item__desc {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.6;
}

/* ============================================
   Team
   ============================================ */
.team {
    padding: var(--section-gap) 0;
    background: var(--bg-elevated);
}

.team__grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 32px;
}

.member {
    text-align: center;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s var(--ease);
}

.member.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.member__photo {
    width: 160px;
    height: 160px;
    border-radius: 50%;
    margin: 0 auto 24px;
    background: var(--bg-card);
    border: 2px solid rgba(176, 120, 247, 0.15);
    background-size: cover;
    background-position: center;
    position: relative;
    overflow: hidden;
}

/* Градиентные заглушки — заменить на реальные фото */
.member__photo--darya {
    background: linear-gradient(135deg, rgba(176, 120, 247, 0.2), rgba(255, 82, 82, 0.1));
}
.member__photo--igor {
    background: linear-gradient(135deg, rgba(0, 180, 255, 0.2), rgba(176, 120, 247, 0.1));
}
.member__photo--marina {
    background: linear-gradient(135deg, rgba(0, 180, 255, 0.2), rgba(255, 82, 82, 0.1));
}
.member__photo--irina {
    background: linear-gradient(135deg, rgba(255, 138, 101, 0.2), rgba(176, 120, 247, 0.1));
}
.member__photo--petr {
    background: linear-gradient(135deg, rgba(0, 230, 118, 0.2), rgba(176, 120, 247, 0.1));
}

.member__name {
    font-size: 20px;
    font-weight: 500;
    margin-bottom: 4px;
    color: var(--text);
}

.member__role {
    font-size: 14px;
    color: var(--accent);
    margin-bottom: 12px;
    font-weight: 400;
}

.member__desc {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.7;
    max-width: 320px;
    margin: 0 auto;
}

/* ============================================
   CTA
   ============================================ */
.cta {
    padding: var(--section-gap) 0;
}

.cta__inner {
    text-align: center;
    padding: 80px 60px;
    border-radius: 24px;
    background: linear-gradient(135deg, rgba(176, 120, 247, 0.15), rgba(139, 92, 246, 0.05), rgba(0, 180, 255, 0.05));
    border: 1px solid rgba(176, 120, 247, 0.2);
    box-shadow: 0 0 80px rgba(176, 120, 247, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.cta__title {
    font-family: var(--font-display);
    font-size: clamp(28px, 4vw, 40px);
    font-weight: 400;
    margin-bottom: 16px;
    color: var(--text);
}

.cta__text {
    font-size: 16px;
    color: var(--text-muted);
    max-width: 520px;
    margin: 0 auto 32px;
    line-height: 1.7;
}

/* ============================================
   Contact
   ============================================ */
.contact {
    padding: var(--section-gap) 0;
    background: var(--bg-elevated);
}

.contact__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
}

.contact__title {
    font-family: var(--font-display);
    font-size: 32px;
    font-weight: 400;
    margin-bottom: 40px;
    color: var(--text);
}

.contact__block {
    margin-bottom: 28px;
}

.contact__block h4 {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--text-dim);
    margin-bottom: 6px;
}

.contact__block p {
    font-size: 16px;
    color: var(--text);
    line-height: 1.6;
}

.contact__block a {
    color: var(--text);
    transition: color 0.3s;
}

.contact__block a:hover {
    color: var(--accent);
}

/* Form */
.contact__form {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding-top: 8px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 14px 18px;
    font-family: var(--font-body);
    font-size: 15px;
    color: var(--text);
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    outline: none;
    transition: all 0.3s var(--ease);
    resize: vertical;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-dim);
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(176, 120, 247, 0.1);
}

/* ============================================
   Footer
   ============================================ */
.footer {
    padding: 40px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.footer__logo {
    font-size: 18px;
    font-weight: 600;
    letter-spacing: 0.1em;
    color: var(--text);
    margin-bottom: 4px;
}

.footer__copy {
    font-size: 13px;
    color: var(--text-dim);
}

.footer__links {
    display: flex;
    gap: 24px;
}

.footer__links a {
    font-size: 14px;
    color: var(--text-muted);
}

.footer__links a:hover {
    color: var(--accent);
}

/* ============================================
   Animations (appear on scroll)
   ============================================ */
.about__manifesto,
.about__text {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.7s var(--ease);
}

.about__manifesto.is-visible,
.about__text.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.about__text.is-visible {
    transition-delay: 0.15s;
}

/* Stagger delays for grid items */
.direction:nth-child(2).is-visible { transition-delay: 0.1s; }
.direction:nth-child(3).is-visible { transition-delay: 0.2s; }
.direction:nth-child(4).is-visible { transition-delay: 0.3s; }

.stat:nth-child(2).is-visible { transition-delay: 0.1s; }
.stat:nth-child(3).is-visible { transition-delay: 0.2s; }
.stat:nth-child(4).is-visible { transition-delay: 0.3s; }

.project:nth-child(2).is-visible { transition-delay: 0.1s; }
.project:nth-child(3).is-visible { transition-delay: 0.2s; }

.portfolio-item:nth-child(2).is-visible { transition-delay: 0.08s; }
.portfolio-item:nth-child(3).is-visible { transition-delay: 0.16s; }
.portfolio-item:nth-child(4).is-visible { transition-delay: 0.24s; }
.portfolio-item:nth-child(5).is-visible { transition-delay: 0.32s; }

.member:nth-child(2).is-visible { transition-delay: 0.1s; }
.member:nth-child(3).is-visible { transition-delay: 0.2s; }
.member:nth-child(4).is-visible { transition-delay: 0.3s; }
.member:nth-child(5).is-visible { transition-delay: 0.4s; }

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 1024px) {
    :root {
        --section-gap: 100px;
    }

    .about__grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .about__stats {
        grid-template-columns: repeat(2, 1fr);
    }

    .directions__grid {
        grid-template-columns: 1fr;
    }

    .projects__grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .portfolio-item {
        grid-template-columns: 50px 1fr;
    }

    .portfolio-item__desc {
        grid-column: 1 / -1;
    }

    .contact__grid {
        grid-template-columns: 1fr;
        gap: 48px;
    }
}

@media (max-width: 768px) {
    :root {
        --section-gap: 72px;
    }

    .container {
        padding: 0 20px;
    }

    /* Mobile Nav */
    .nav__toggle {
        display: flex;
        z-index: 101;
        padding: 10px;
        -webkit-tap-highlight-color: transparent;
    }

    .nav__menu {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(8, 8, 13, 0.97);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        flex-direction: column;
        justify-content: center;
        gap: 28px;
        opacity: 0;
        visibility: hidden;
        transition: all 0.4s var(--ease);
    }

    .nav--open .nav__menu {
        opacity: 1;
        visibility: visible;
    }

    .nav--open .nav__toggle span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .nav--open .nav__toggle span:nth-child(2) {
        opacity: 0;
    }

    .nav--open .nav__toggle span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }

    .nav__menu a {
        font-size: 22px;
        color: var(--text) !important;
    }

    .nav__menu li {
        text-align: center;
    }

    .nav__cta {
        display: inline-block;
        padding: 12px 28px !important;
        font-size: 18px !important;
    }

    /* Hero mobile */
    .hero {
        padding: 100px 0 60px;
        min-height: calc(100vh - env(safe-area-inset-bottom));
    }

    .hero__mark svg {
        width: 64px;
        height: 72px;
    }

    .hero__title-accent {
        font-size: 52px;
        letter-spacing: 0.1em;
    }

    .hero__title-sub {
        font-size: 17px;
    }

    .hero__tagline {
        font-size: 15px;
        padding: 0 8px;
        margin-bottom: 32px;
    }

    .hero__actions {
        flex-direction: column;
        align-items: center;
        gap: 12px;
    }

    .hero__actions .btn {
        width: 100%;
        max-width: 280px;
        padding: 16px 32px;
        font-size: 15px;
    }

    .hero__divisions {
        flex-wrap: wrap;
        gap: 6px 14px;
        font-size: 12px;
    }

    .hero__scroll {
        bottom: 20px;
    }

    /* About mobile */
    .about__title {
        font-size: 22px;
    }

    .about__text p {
        font-size: 14px;
    }

    .about__stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 28px;
        padding-top: 40px;
    }

    .stat__number {
        font-size: 36px;
    }

    /* Directions mobile */
    .section-title {
        font-size: 28px;
        margin-bottom: 40px;
    }

    .direction {
        padding: 28px 24px;
    }

    .direction__title {
        font-size: 19px;
    }

    .direction__formats {
        gap: 6px;
    }

    .direction__formats li {
        font-size: 11px;
        padding: 4px 10px;
    }

    /* Projects mobile */
    .projects__grid {
        grid-template-columns: 1fr;
    }

    .project {
        padding: 24px 20px;
    }

    .project__title {
        font-size: 18px;
    }

    .portfolio-item {
        grid-template-columns: 1fr;
        gap: 6px;
        padding: 20px;
    }

    .portfolio-item__number {
        font-size: 13px;
        font-weight: 700;
        color: var(--accent);
    }

    .portfolio-item__title {
        font-size: 16px;
    }

    .portfolio-item__desc {
        font-size: 13px;
    }

    /* Team mobile */
    .team__grid {
        grid-template-columns: 1fr 1fr;
        gap: 32px;
    }

    .member__photo {
        width: 120px;
        height: 120px;
    }

    .member__name {
        font-size: 18px;
    }

    /* CTA mobile */
    .cta__inner {
        padding: 40px 20px;
        border-radius: 16px;
    }

    .cta__title {
        font-size: 24px;
    }

    .cta__text {
        font-size: 14px;
    }

    .btn--lg {
        width: 100%;
        padding: 16px 32px;
    }

    /* Contact mobile */
    .contact__title {
        font-size: 26px;
        margin-bottom: 28px;
    }

    .contact__block p {
        font-size: 15px;
    }

    .form-group input,
    .form-group textarea {
        padding: 16px;
        font-size: 16px; /* prevents iOS zoom */
    }

    .btn--full {
        padding: 16px;
        font-size: 16px;
    }

    /* Footer mobile */
    .footer__inner {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }

    .footer__links {
        gap: 20px;
    }
}

@media (max-width: 380px) {
    .hero__title-accent {
        font-size: 42px;
        letter-spacing: 0.06em;
    }

    .hero__title-sub {
        font-size: 15px;
    }

    .about__stats {
        grid-template-columns: 1fr 1fr;
        gap: 20px;
    }

    .stat__number {
        font-size: 30px;
    }

    .direction {
        padding: 24px 20px;
    }

    .project {
        padding: 20px 16px;
    }
}

/* Safe area for notched phones */
@supports (padding: env(safe-area-inset-bottom)) {
    .footer {
        padding-bottom: calc(40px + env(safe-area-inset-bottom));
    }

    .nav {
        padding-top: calc(20px + env(safe-area-inset-top));
    }
}
