/* ========================================
   ANNA KOTT — Студия дизайна
   ======================================== */

/* --- Custom Properties --- */
:root {
    --gold: #B5A67B;
    --gold-dark: #96885E;
    --gold-light: #D4C9A8;

    --bg: #FAFAF7;
    --bg-alt: #F0EDE6;
    --text: #2C2C2C;
    --text-secondary: #7A7A7A;
    --text-light: #A0A0A0;
    --dark: #1A1A1A;
    --border: #E5E0D5;
    --white: #FFFFFF;

    --font-heading: 'Cormorant Garamond', Georgia, serif;
    --font-hero: 'Raleway', 'Helvetica Neue', Arial, sans-serif;
    --font-body: 'Inter', -apple-system, 'Segoe UI', sans-serif;

    --container: 1200px;
    --section-pad: 8rem;

    --ease: cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
    --tr: 0.3s var(--ease);
    --tr-slow: 0.6s var(--ease-out);
}

/* --- Reset --- */
*, *::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-weight: 300;
    font-size: 1rem;
    line-height: 1.7;
    color: var(--text);
    background: var(--bg);
    overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; transition: color var(--tr); }
button { border: none; background: none; cursor: pointer; font-family: inherit; }
ul, ol { list-style: none; }
input, textarea { font-family: inherit; font-size: inherit; border: none; outline: none; background: none; }

/* --- Typography --- */
h1, h2, h3, h4 {
    font-family: var(--font-heading);
    font-weight: 400;
    line-height: 1.2;
}
h2 { font-size: clamp(2rem, 4vw, 3.5rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.5rem); }
p { margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }

/* --- Layout --- */
.container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 2rem;
}

.section {
    padding: var(--section-pad) 0;
}

.section--alt {
    background: var(--bg-alt);
}

.section__label {
    display: block;
    font-family: var(--font-body);
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 2rem;
}

.section__title {
    margin-bottom: 1.5rem;
    color: var(--text);
}

.section__subtitle {
    font-size: 1.125rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin-bottom: 4rem;
}

/* --- Buttons --- */
.btn {
    display: inline-block;
    font-family: var(--font-body);
    font-size: 0.875rem;
    font-weight: 400;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 1rem 2.5rem;
    border: 1px solid transparent;
    transition: all var(--tr);
    cursor: pointer;
}

.btn--primary {
    background: var(--gold);
    color: var(--white);
    border-color: var(--gold);
}
.btn--primary:hover {
    background: var(--gold-dark);
    border-color: var(--gold-dark);
}
.btn--full { width: 100%; text-align: center; }
.btn--success {
    background: #4a7c59 !important;
    border-color: #4a7c59 !important;
}
.btn--error {
    background: #b54a4a !important;
    border-color: #b54a4a !important;
}

/* --- Navigation --- */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 1.25rem 0;
    transition: all 0.4s var(--ease);
}

.nav--scrolled {
    background: rgba(250, 250, 247, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 0.875rem 0;
    box-shadow: 0 1px 0 var(--border);
}

.nav__container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav__logo img {
    height: 48px;
    width: auto;
    transition: opacity var(--tr);
}
.nav__logo:hover img { opacity: 0.8; }

.nav__menu {
    display: flex;
    align-items: center;
    gap: 2.5rem;
}

.nav__link {
    font-size: 0.8125rem;
    font-weight: 400;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--white);
    transition: color var(--tr);
    position: relative;
}
.nav--scrolled .nav__link { color: var(--text); }

.nav__link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--gold);
    transition: width var(--tr);
}
.nav__link:hover::after { width: 100%; }

.nav__link--cta {
    padding: 0.5rem 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.4);
    transition: all var(--tr);
}
.nav__link--cta::after { display: none; }
.nav__link--cta:hover {
    background: var(--gold);
    border-color: var(--gold);
    color: var(--white);
}
.nav--scrolled .nav__link--cta {
    border-color: var(--gold);
    color: var(--gold);
}
.nav--scrolled .nav__link--cta:hover {
    background: var(--gold);
    color: var(--white);
}

/* Hamburger */
.nav__toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    padding: 4px;
    z-index: 101;
}
.nav__toggle span {
    display: block;
    width: 24px;
    height: 1.5px;
    background: var(--white);
    transition: all var(--tr);
}
.nav--scrolled .nav__toggle span { background: var(--text); }

.nav__toggle--active span { background: var(--white) !important; }
.nav__toggle--active span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav__toggle--active span:nth-child(2) { opacity: 0; }
.nav__toggle--active span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

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

.hero__bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}
.hero__bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.1);
}

.hero__overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
}
/* Dark overlay layer (default) */
.hero__overlay::before,
.hero__overlay::after {
    content: '';
    position: absolute;
    inset: 0;
    transition: opacity 0.8s ease;
}
.hero__overlay::before {
    background:
        radial-gradient(ellipse at center, rgba(26, 26, 26, 0.5) 0%, transparent 70%),
        linear-gradient(
            to bottom,
            rgba(26, 26, 26, 0.6) 0%,
            rgba(26, 26, 26, 0.55) 50%,
            rgba(26, 26, 26, 0.7) 100%
        );
    opacity: 1;
}
/* Light overlay layer (hidden by default) */
.hero__overlay::after {
    background:
        radial-gradient(ellipse at center, rgba(255, 255, 255, 0.3) 0%, transparent 70%),
        linear-gradient(
            to bottom,
            rgba(255, 255, 255, 0.55) 0%,
            rgba(255, 255, 255, 0.45) 50%,
            rgba(255, 255, 255, 0.65) 100%
        );
    opacity: 0;
}

.hero__content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: var(--white);
    padding: 0 2rem;
    transition: color 0.8s ease;
}

.hero__logo-wrap {
    margin-bottom: 2rem;
    animation: heroFadeIn 1s var(--ease-out) 0.2s both;
}
.hero__logo {
    width: 200px;
    height: auto;
    margin: 0 auto;
}

.hero__divider {
    width: 60px;
    height: 1px;
    background: var(--gold);
    margin: 0 auto 2rem;
    animation: heroFadeIn 1s var(--ease-out) 0.4s both;
    transition: background 0.8s ease;
}

.hero__tagline {
    font-family: var(--font-hero);
    font-size: clamp(2.25rem, 5vw, 3.75rem);
    font-weight: 300;
    line-height: 1.25;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin-bottom: 1.25rem;
    text-shadow: 0 2px 24px rgba(0, 0, 0, 0.5), 0 1px 4px rgba(0, 0, 0, 0.3);
    animation: heroFadeIn 1s var(--ease-out) 0.6s both;
    transition: text-shadow 0.8s ease;
}

.hero__subtitle {
    font-family: var(--font-hero);
    font-size: clamp(0.875rem, 1.5vw, 1.125rem);
    font-weight: 300;
    color: rgba(255, 255, 255, 0.8);
    letter-spacing: 0.15em;
    text-transform: uppercase;
    margin-bottom: 2.5rem;
    text-shadow: 0 2px 16px rgba(0, 0, 0, 0.5), 0 1px 4px rgba(0, 0, 0, 0.3);
    animation: heroFadeIn 1s var(--ease-out) 0.8s both;
    transition: color 0.8s ease, text-shadow 0.8s ease;
}

.hero__cta {
    animation: heroFadeIn 1s var(--ease-out) 1s both;
    transition: background 0.8s ease, border-color 0.8s ease, color 0.8s ease;
}

.hero__scroll {
    position: absolute;
    bottom: 2rem;
    left: 0;
    right: 0;
    width: fit-content;
    margin: 0 auto;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    animation: heroFadeIn 1s var(--ease-out) 1.2s both;
}
.hero__scroll span {
    font-size: 0.6875rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.5);
    transition: color 0.8s ease;
}
.hero__scroll-line {
    width: 1px;
    height: 40px;
    background: linear-gradient(to bottom, var(--gold), transparent);
    animation: scrollLine 2s ease-in-out infinite;
}

/* Hero toggle button */
.hero__toggle {
    position: absolute;
    bottom: 2rem;
    right: 2rem;
    z-index: 3;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.7);
    transition: background 0.8s ease, border-color 0.8s ease, color 0.8s ease;
    animation: heroFadeIn 1s var(--ease-out) 1.4s both;
}
.hero__toggle:hover {
    background: rgba(255, 255, 255, 0.2);
    color: var(--white);
}
.hero__toggle-icon {
    position: absolute;
    transition: opacity 0.5s ease;
}
.hero__toggle-icon--moon { opacity: 0; }

/* --- Hero LIGHT variant --- */
.hero--light .hero__overlay::before {
    opacity: 0;
}
.hero--light .hero__overlay::after {
    opacity: 1;
}

.hero--light .hero__content {
    color: var(--dark);
}

.hero--light .hero__tagline {
    text-shadow: 0 2px 20px rgba(255, 255, 255, 0.4), 0 1px 3px rgba(255, 255, 255, 0.2);
}

.hero--light .hero__subtitle {
    color: rgba(40, 40, 40, 0.7);
    text-shadow: 0 1px 12px rgba(255, 255, 255, 0.4);
}

.hero--light .hero__divider {
    background: var(--gold-dark);
}

.hero--light .hero__cta {
    background: var(--dark);
    border-color: var(--dark);
    color: var(--white);
}
.hero--light .hero__cta:hover {
    background: var(--text);
    border-color: var(--text);
}

.hero--light .hero__scroll span {
    color: rgba(40, 40, 40, 0.45);
}
.hero--light .hero__scroll-line {
    background: linear-gradient(to bottom, var(--gold-dark), transparent);
}

.hero--light .hero__toggle {
    background: rgba(0, 0, 0, 0.08);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-color: rgba(0, 0, 0, 0.12);
    color: rgba(40, 40, 40, 0.5);
}
.hero--light .hero__toggle:hover {
    background: rgba(0, 0, 0, 0.14);
    color: var(--dark);
}
.hero--light .hero__toggle-icon--sun { opacity: 0; }
.hero--light .hero__toggle-icon--moon { opacity: 1; }

/* Nav on light hero (body class set by JS) */
body.hero-light .nav:not(.nav--scrolled) .nav__link {
    color: var(--dark);
}
body.hero-light .nav:not(.nav--scrolled) .nav__link--cta {
    color: var(--dark);
    border-color: rgba(0, 0, 0, 0.25);
}
body.hero-light .nav:not(.nav--scrolled) .nav__link--cta:hover {
    background: var(--gold);
    border-color: var(--gold);
    color: var(--white);
}
body.hero-light .nav:not(.nav--scrolled) .nav__toggle span {
    background: var(--dark);
}

@keyframes scrollLine {
    0%, 100% { opacity: 0; transform: translateY(-10px); }
    50% { opacity: 1; transform: translateY(0); }
}
@keyframes heroFadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* --- About --- */

.about__title {
    font-size: clamp(1.75rem, 3.5vw, 2.75rem);
    margin-bottom: 2rem;
}

.about__text {
    font-size: 1.0625rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.about__spaces {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
}
.about__spaces span {
    font-size: 0.75rem;
    font-weight: 400;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    padding: 0.4rem 0.85rem;
    border: 1px solid var(--border);
    color: var(--text-secondary);
    transition: all var(--tr);
}
.about__spaces span:hover {
    border-color: var(--gold);
    color: var(--gold);
}

.about__stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin: 3rem auto 3rem;
    padding: 2rem 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    text-align: center;
}

.about__stat-number {
    display: block;
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 300;
    color: var(--gold);
    line-height: 1;
    margin-bottom: 0.5rem;
}

.about__stat-label {
    font-size: 0.8125rem;
    color: var(--text-secondary);
    line-height: 1.4;
}

/* --- Parallax Divider (fixed background) --- */
.about + .parallax-divider {
    margin-top: calc(var(--section-pad) * -1);
}

.parallax-img1 {
    background-image: url('../assets/images/divider01.jpg');
}

.parallax-img2 {
    background-image: url('../assets/images/divider02.jpg');
}

.parallax-divider {
    width: 100%;
    height: clamp(240px, 30vw, 400px);
    background-attachment: fixed;
    background-position: center center;
    background-size: cover;
    background-repeat: no-repeat;
}
/* iOS fallback — background-attachment: fixed не поддерживается */
@supports (-webkit-touch-callout: none) {
    .parallax-divider {
        background-attachment: scroll;
    }
}

/* --- Services --- */
.services__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    background: var(--border);
    border: 1px solid var(--border);
}

.service-card {
    background: var(--bg-alt);
    padding: 2.5rem;
    transition: background var(--tr);
}
.service-card:hover {
    background: var(--white);
}

.service-card__number {
    display: block;
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 300;
    color: var(--gold-light);
    line-height: 1;
    margin-bottom: 1.25rem;
}

.service-card__title {
    font-family: var(--font-heading);
    font-size: 1.375rem;
    font-weight: 400;
    margin-bottom: 0.75rem;
}

.service-card__desc {
    font-size: 0.875rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* --- Process --- */
.process__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1px;
    background: var(--border);
    border: 1px solid var(--border);
}

.process__step {
    background: var(--bg);
    padding: 2.5rem 2rem;
    transition: background var(--tr);
}
.process__step:hover {
    background: var(--white);
}

.process__step-number {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    font-weight: 300;
    color: var(--gold-light);
    line-height: 1;
    margin-bottom: 1.5rem;
}

.process__step-title {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 500;
    margin-bottom: 0.75rem;
}

.process__step-desc {
    font-size: 0.875rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* --- Portfolio --- */
.portfolio__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.portfolio__card--featured {
    grid-column: 1 / -1;
}

.portfolio__card {
    position: relative;
    background: var(--white);
    overflow: hidden;
    transition: box-shadow var(--tr);
}
.portfolio__card:hover {
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.08);
}

.portfolio__card-images {
    position: relative;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    cursor: pointer;
}
.portfolio__card--featured .portfolio__card-images {
    aspect-ratio: 21 / 10;
}

.portfolio__card-images img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.6s ease, transform 0.8s var(--ease-out);
}
.portfolio__card-images img.active {
    opacity: 1;
}
.portfolio__card:hover .portfolio__card-images img.active {
    transform: scale(1.03);
}

/* Card carousel arrows */
.portfolio__card-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 3;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    color: #fff;
    font-size: 1.25rem;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.3s ease, background 0.3s ease;
}
.portfolio__card:hover .portfolio__card-arrow {
    opacity: 1;
}
.portfolio__card-arrow:hover {
    background: rgba(0, 0, 0, 0.55);
}
.portfolio__card-arrow--prev {
    left: 0.75rem;
}
.portfolio__card-arrow--next {
    right: 0.75rem;
}

/* Featured card mobile reset */

.portfolio__card-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem;
}

.portfolio__card-info h3 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 400;
    margin-bottom: 0.25rem;
}

.portfolio__card-meta {
    font-size: 0.8125rem;
    color: var(--text-secondary);
}

.portfolio__card-nav {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.portfolio__card-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--border);
    transition: all var(--tr);
    padding: 0;
}
.portfolio__card-dot.active {
    background: var(--gold);
    width: 24px;
    border-radius: 4px;
}

/* --- Contact --- */
.contact__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

.contact__title {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 1.5rem;
}

.contact__desc {
    font-size: 1.0625rem;
    color: var(--text-secondary);
    margin-bottom: 3rem;
}

.contact__details {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.contact__link {
    font-size: 1rem;
    color: var(--gold-dark);
}
.contact__link:hover {
    color: var(--gold);
}

.contact__form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form__group {
    position: relative;
}

.form__group input,
.form__group textarea {
    width: 100%;
    padding: 1.25rem 0 0.75rem;
    border-bottom: 1px solid var(--border);
    font-size: 1rem;
    font-weight: 300;
    color: var(--text);
    transition: border-color var(--tr);
    background: transparent;
}
.form__group textarea {
    resize: vertical;
    min-height: 100px;
}

.form__group label {
    position: absolute;
    top: 1.25rem;
    left: 0;
    font-size: 1rem;
    font-weight: 300;
    color: var(--text-light);
    pointer-events: none;
    transition: all var(--tr);
}

.form__group input:focus,
.form__group textarea:focus {
    border-bottom-color: var(--gold);
}

.form__group input:focus + label,
.form__group input:not(:placeholder-shown) + label,
.form__group textarea:focus + label,
.form__group textarea:not(:placeholder-shown) + label {
    top: 0;
    font-size: 0.75rem;
    color: var(--gold);
}

/* --- Footer --- */
.footer {
    background: var(--dark);
    color: rgba(255, 255, 255, 0.6);
    padding: 4rem 0 2rem;
}

.footer__grid {
    display: flex;
    justify-content: space-between;
    align-items: start;
    padding-bottom: 3rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 2rem;
}

.footer__logo {
    height: 60px;
    width: auto;
    margin-bottom: 1rem;
    opacity: 0.8;
}

.footer__brand p {
    font-size: 0.875rem;
    max-width: 280px;
}

.footer__nav {
    display: flex;
    gap: 2rem;
}
.footer__nav a {
    font-size: 0.8125rem;
    letter-spacing: 0.05em;
    transition: color var(--tr);
}
.footer__nav a:hover {
    color: var(--gold);
}

.footer__bottom {
    text-align: center;
}
.footer__bottom p {
    font-size: 0.8125rem;
}

/* --- Lightbox --- */
.lightbox {
    position: fixed;
    inset: 0;
    z-index: 200;
    background: rgba(0, 0, 0, 0.92);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
}
.lightbox--active {
    opacity: 1;
    pointer-events: all;
}

.lightbox__content {
    max-width: 90vw;
    max-height: 85vh;
}

.lightbox__img {
    max-width: 90vw;
    max-height: 85vh;
    object-fit: contain;
    transition: opacity 0.3s ease;
}

.lightbox__close {
    position: absolute;
    top: 1.5rem;
    right: 2rem;
    color: white;
    font-size: 2.5rem;
    padding: 0.5rem;
    z-index: 201;
    transition: opacity var(--tr);
    line-height: 1;
}
.lightbox__close:hover { opacity: 0.7; }

.lightbox__prev,
.lightbox__next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: white;
    font-size: 3.5rem;
    padding: 1rem;
    z-index: 201;
    transition: opacity var(--tr);
    line-height: 1;
}
.lightbox__prev:hover,
.lightbox__next:hover { opacity: 0.7; }
.lightbox__prev { left: 1rem; }
.lightbox__next { right: 1rem; }

/* --- Reveal Animation --- */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}
.reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger grid children */
.services__grid .reveal:nth-child(2) { transition-delay: 0.1s; }
.services__grid .reveal:nth-child(3) { transition-delay: 0.2s; }
.services__grid .reveal:nth-child(4) { transition-delay: 0.05s; }
.services__grid .reveal:nth-child(5) { transition-delay: 0.15s; }
.services__grid .reveal:nth-child(6) { transition-delay: 0.25s; }
.services__grid .reveal:nth-child(7) { transition-delay: 0.1s; }
.services__grid .reveal:nth-child(8) { transition-delay: 0.2s; }
.services__grid .reveal:nth-child(9) { transition-delay: 0.3s; }

.process__grid .reveal:nth-child(2) { transition-delay: 0.1s; }
.process__grid .reveal:nth-child(3) { transition-delay: 0.2s; }
.process__grid .reveal:nth-child(4) { transition-delay: 0.3s; }
.process__grid .reveal:nth-child(5) { transition-delay: 0.05s; }
.process__grid .reveal:nth-child(6) { transition-delay: 0.15s; }
.process__grid .reveal:nth-child(7) { transition-delay: 0.25s; }
.process__grid .reveal:nth-child(8) { transition-delay: 0.35s; }

/* --- Responsive: Tablet --- */
@media (max-width: 1024px) {
    :root {
        --section-pad: 6rem;
    }

    .about__grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

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

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

    .contact__grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
}

/* --- Responsive: Mobile --- */
@media (max-width: 768px) {
    :root {
        --section-pad: 4rem;
    }

    /* Nav mobile */
    .nav__toggle {
        display: flex;
    }

    .nav__menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background: var(--dark);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 2rem;
        transition: right 0.4s var(--ease);
    }
    .nav__menu--open {
        right: 0;
    }
    .nav__menu--open .nav__link {
        color: var(--white) !important;
    }
    .nav__link--cta {
        border-color: var(--gold) !important;
    }

    /* Services & Process: single column */
    .services__grid {
        grid-template-columns: 1fr;
    }
    .process__grid {
        grid-template-columns: 1fr;
    }

    /* Portfolio: single column */
    .portfolio__grid {
        grid-template-columns: 1fr;
    }
    .portfolio__card--featured .portfolio__card-images {
        aspect-ratio: 16 / 10;
    }

    .portfolio__card-bottom {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
        padding: 1.25rem 1.5rem;
    }

    /* About stats */
    .about__stats {
        grid-template-columns: repeat(3, 1fr);
        gap: 1rem;
    }
    .about__stat-number {
        font-size: 2rem;
    }

    /* Footer */
    .footer__grid {
        flex-direction: column;
        gap: 2rem;
    }
    .footer__nav {
        flex-wrap: wrap;
        gap: 1rem;
    }

    /* Hero */
    .hero__logo {
        width: 150px;
    }

    /* Lightbox arrows */
    .lightbox__prev,
    .lightbox__next {
        font-size: 2rem;
        padding: 0.5rem;
    }

    /* Service card padding */
    .service-card {
        padding: 2rem 1.5rem;
    }
    .process__step {
        padding: 2rem 1.5rem;
    }
}

@media (max-width: 480px) {
    .about__stats {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .about__stat-number {
        font-size: 2.5rem;
    }
    .hero__logo {
        width: 120px;
    }
}
