/* ==========================================================================
   GRUP PMP — LANDING PAGE
   Design tokens: #E4FE00 lime · #2A2E34 dark · #CFD3D9 light gray · #B7A63A gold
   Fonts: Purista (display) · NeueHaas (body)
   ========================================================================== */

/* --- Font Faces: Purista --- */
@font-face {
    font-family: 'Purista';
    src: url('../fonts/purista/Purista-Light.woff2') format('woff2'),
         url('../fonts/purista/Purista-Light.woff') format('woff');
    font-weight: 300; font-style: normal; font-display: swap;
}
@font-face {
    font-family: 'Purista';
    src: url('../fonts/purista/Purista-LightItalic.woff2') format('woff2'),
         url('../fonts/purista/Purista-LightItalic.woff') format('woff');
    font-weight: 300; font-style: italic; font-display: swap;
}
@font-face {
    font-family: 'Purista';
    src: url('../fonts/purista/Purista-Medium.woff2') format('woff2'),
         url('../fonts/purista/Purista-Medium.woff') format('woff');
    font-weight: 500; font-style: normal; font-display: swap;
}
@font-face {
    font-family: 'Purista';
    src: url('../fonts/purista/Purista-MediumItalic.woff2') format('woff2'),
         url('../fonts/purista/Purista-MediumItalic.woff') format('woff');
    font-weight: 500; font-style: italic; font-display: swap;
}
@font-face {
    font-family: 'Purista';
    src: url('../fonts/purista/Purista-SemiBold.woff2') format('woff2'),
         url('../fonts/purista/Purista-SemiBold.woff') format('woff');
    font-weight: 600; font-style: normal; font-display: swap;
}
@font-face {
    font-family: 'Purista';
    src: url('../fonts/purista/Purista-SemiBoldItalic.woff2') format('woff2'),
         url('../fonts/purista/Purista-SemiBoldItalic.woff') format('woff');
    font-weight: 600; font-style: italic; font-display: swap;
}
@font-face {
    font-family: 'Purista';
    src: url('../fonts/purista/Purista-Bold.woff2') format('woff2'),
         url('../fonts/purista/Purista-Bold.woff') format('woff');
    font-weight: 700; font-style: normal; font-display: swap;
}
@font-face {
    font-family: 'Purista';
    src: url('../fonts/purista/Purista-BoldItalic.woff2') format('woff2'),
         url('../fonts/purista/Purista-BoldItalic.woff') format('woff');
    font-weight: 700; font-style: italic; font-display: swap;
}

/* --- Font Faces: Neue Haas --- */
@font-face {
    font-family: 'NeueHaas';
    src: url('../fonts/neue-haas/NeueHaasDisplayLight.ttf') format('truetype');
    font-weight: 300; font-style: normal; font-display: swap;
}
@font-face {
    font-family: 'NeueHaas';
    src: url('../fonts/neue-haas/NeueHaasDisplayRoman.ttf') format('truetype');
    font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
    font-family: 'NeueHaas';
    src: url('../fonts/neue-haas/NeueHaasDisplayMediu.ttf') format('truetype');
    font-weight: 500; font-style: normal; font-display: swap;
}
@font-face {
    font-family: 'NeueHaas';
    src: url('../fonts/neue-haas/NeueHaasDisplayBold.ttf') format('truetype');
    font-weight: 700; font-style: normal; font-display: swap;
}
@font-face {
    font-family: 'NeueHaas';
    src: url('../fonts/neue-haas/NeueHaasDisplayBlack.ttf') format('truetype');
    font-weight: 900; font-style: normal; font-display: swap;
}

/* --- Font Faces: Atrament --- */
@font-face {
    font-family: 'Atrament';
    src: url('../fonts/atrament/Atrament-RegularItalic.otf') format('opentype');
    font-weight: 400; font-style: italic; font-display: swap;
}

/* --- Design Tokens --- */
:root {
    --c-lime: #E4FE00;
    --c-dark: #2A2E34;
    --c-dark-text: #16181C;
    --c-gray-bg: #D9D9D9;
    --c-gray-text: #CFD3D9;
    --c-gold: #B7A63A;
    --c-white: #FFFFFF;
    --f-display: 'Purista', 'Helvetica Neue', sans-serif;
    --f-body: 'NeueHaas', 'Helvetica Neue', sans-serif;
}

/* --- Reset --- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    font-family: var(--f-body);
    font-weight: 500;
    font-size: 16px;
    line-height: 1.375;
    color: var(--c-dark-text);
    background: transparent;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
::selection { background: var(--c-lime); color: var(--c-dark-text); }


/* ==========================================================================
   NAV
   ========================================================================== */
.nav {
    position: fixed; top: 0; left: 0; width: 100%; z-index: 100;
    padding: 1.4rem 3rem;
    display: flex; justify-content: space-between; align-items: center;
    transition: background .4s ease, padding .4s ease;
}
.nav--scrolled {
    padding: .8rem 3rem;
}
.nav__logo { display: flex; align-items: center; text-decoration: none; }
.nav__logo-img {
    height: 32px;
    filter: brightness(0) saturate(100%) invert(92%) sepia(69%) saturate(1000%) hue-rotate(10deg) brightness(105%) contrast(104%);
    transition: filter .4s ease;
}

.nav--dark .nav__logo-img {
    filter: brightness(0);
}
.nav__links { display: flex; gap: 2.2rem; list-style: none; }
.nav__links a {
    font-family: var(--f-display); font-size: .68rem; font-weight: 600;
    letter-spacing: .18em; text-transform: uppercase;
    color: rgba(255,255,255,.55); text-decoration: none;
    transition: color .25s;
}
.nav__links a:hover { color: var(--c-lime); }

.nav__burger {
    display: none; flex-direction: column; gap: 5px;
    cursor: pointer; padding: 4px; z-index: 1001;
}
.nav__burger span {
    width: 22px; height: 2px; background: #fff;
    transition: transform .35s ease, opacity .25s;
    transform-origin: center;
}
.nav__burger--open span:nth-child(1) { transform: rotate(45deg) translate(3.5px,3.5px); }
.nav__burger--open span:nth-child(2) { opacity: 0; }
.nav__burger--open span:nth-child(3) { transform: rotate(-45deg) translate(3.5px,-3.5px); }


/* ==========================================================================
   MOBILE MENU
   ========================================================================== */
.mmenu {
    position: fixed; inset: 0; background: var(--c-dark); z-index: 999;
    display: flex; flex-direction: column; justify-content: center; align-items: center;
    opacity: 0; pointer-events: none; transition: opacity .35s;
    gap: 2rem;
}
.mmenu--open { opacity: 1; pointer-events: all; }
.mmenu a {
    font-family: var(--f-display); font-size: clamp(1.6rem,5vw,3rem);
    font-weight: 700; text-transform: uppercase; line-height: 1.6;
    color: #fff; text-decoration: none; transition: color .25s;
}
.mmenu a:hover { color: var(--c-lime); }
.mmenu__close {
    position: absolute; top: 1.4rem; right: 3rem;
    width: 40px; height: 40px; display: grid; place-items: center;
    background: none; border: 2px solid var(--c-lime); color: var(--c-lime);
    font-size: 1.3rem; cursor: pointer; transition: background .25s, color .25s;
}
.mmenu__close:hover { background: var(--c-lime); color: var(--c-dark-text); }


/* ==========================================================================
   HERO
   ========================================================================== */
.hero {
    position: relative;
    min-height: 100vh;
    background: transparent;
    overflow: visible;
    z-index: 1;
}

/* Background stays fixed behind everything */
.hero__bg {
    position: fixed;
    inset: 0;
    overflow: hidden;
    z-index: -1;
}

.hero__bg img,
.hero__bg video {
    width: 100%; height: 100%;
    object-fit: cover;
    filter: brightness(1) contrast(1.05);
}

/* Diagonal accent line — per-section SVG segments */
.diagonal-segment {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
}

.factory .diagonal-segment {
    z-index: 2;
}

.contact .diagonal-segment {
    bottom: -100vh;
}

.diagonal-segment svg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.hero__content {
    position: relative; z-index: 1;
    min-height: 100vh;
    padding: 8rem 3.5rem 4rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.hero__tagline {
    position: absolute;
    right: var(--diag-tagline-right, 55%);
    top: 40%;
    font-family: var(--f-display);
    font-weight: 600;
    font-size: 32px;
    line-height: 33px;
    color: var(--c-lime);
    text-transform: uppercase;
    text-align: right;
}

.hero__title {
    position: absolute;
    left: var(--diag-title-left, 48%);
    top: 48%;
    font-family: 'Atrament', var(--f-display);
    font-weight: 400;
    font-style: italic;
    font-size: 56px;
    line-height: 48px;
    color: var(--c-lime);
    text-transform: uppercase;
    max-width: 450px;
}

.hero__desc-box {
    background: rgba(42, 46, 52, .7);
    clip-path: polygon(6% 0%, 100% 0%, 94% 100%, 0% 100%);
    padding: 3rem 4rem 3rem 4.5rem;
    max-width: 550px;
    margin-left: 46%;
}
.hero__desc {
    font-family: var(--f-body);
    font-weight: 300;
    font-size: 1.05rem;
    line-height: 1.2;
    color: var(--c-white);
}

/* Entrance animations */
.hero__tagline, .hero__title, .hero__desc-box {
    opacity: 0; transform: translateY(28px);
    animation: heroReveal .9s cubic-bezier(.16,1,.3,1) forwards;
}
.hero__tagline  { animation-delay: .15s; }
.hero__title    { animation-delay: .4s; }
.hero__desc-box { animation-delay: .65s; }

@keyframes heroReveal {
    to { opacity: 1; transform: none; }
}

/* Decorative yellow blocks pattern - bottom left of hero */
.hero__blocks-pattern {
    position: absolute;
    bottom: 0; left: 0;
    z-index: 2;
    pointer-events: none;
    opacity: .9;
}


/* ==========================================================================
   BLOCKS DIVIDER — between hero and companies
   ========================================================================== */
.blocks-divider {
    position: absolute;
    top: -180px;
    left: 2.5rem;
    pointer-events: none;
    z-index: 15;
}
.blocks-divider__img {
    width: 219px;
    height: auto;
}


/* ==========================================================================
   INTRO
   ========================================================================== */
.intro {
    background: var(--c-gray-bg);
    position: relative;
    z-index: 10;
    padding: 8rem 8rem 20rem;
}

.intro__inner {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.intro__text {
    font-family: var(--f-display);
    font-weight: 600;
    font-size: clamp(1.1rem, 1.8vw, 2rem);
    line-height: 1.1;
    text-transform: uppercase;
    color: var(--c-dark-text);
    text-align: right;
}


/* ==========================================================================
   COMPANIES — Stack animated carousel with parallax
   ========================================================================== */
.companies {
    background: var(--c-gray-bg);
    position: relative;
    z-index: 10;
    overflow: visible;
}

.companies__heading {
    position: fixed;
    top: 4rem;
    left: 2%;
    width: 22%;
    z-index: 20;
    opacity: 0;
    transition: opacity .5s;
}
.companies__heading--visible {
    opacity: 1;
}

.companies__title {
    font-family: var(--f-display);
    font-weight: 600;
    font-size: clamp(1.1rem, 1.8vw, 2rem);
    line-height: 1.1;
    text-transform: uppercase;
    color: var(--c-dark-text);
    text-align: right;
}

/* Stack carousel: pinned section, cards stack on scroll */
.stack-carousel {
    position: relative;
    overflow: visible;
    height: calc(65vh + 660px + 100vh);
}

.stack-carousel__sticky {
    position: sticky;
    top: 0;
    height: 100vh;
    overflow: visible;
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    padding-top: 2rem;
    padding-left: 38vw;
    z-index: 16;
}

.stack-carousel__cards {
    position: relative;
    width: 60vw;
    max-width: 620px;
    height: 65vh;
    max-height: 580px;
}

/* Individual card */
.stack-card {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--c-lime);
    padding: 2rem 5.5rem 2rem 6.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    transition: transform .6s cubic-bezier(.4, 0, 0, 1),
                opacity .5s cubic-bezier(.4, 0, 0, 1);
    will-change: transform, opacity;
    filter: drop-shadow(20px 28px 40px rgba(0, 0, 0, .7));
}

/* Active card: centered position */
.stack-card[data-state="active"] {
    transform: translateX(0) translateY(0) scale(1);
    opacity: 1;
    z-index: 10;
}

/* Queued cards: staggered diagonal offset to the right and down */
.stack-card[data-state="queued-1"] {
    transform: translateX(220px) translateY(220px) scale(0.95);
    opacity: 0.75;
    z-index: 3;
}

.stack-card[data-state="queued-2"] {
    transform: translateX(440px) translateY(440px) scale(0.90);
    opacity: 0.55;
    z-index: 2;
}

.stack-card[data-state="queued-3"] {
    transform: translateX(660px) translateY(660px) scale(0.85);
    opacity: 0.4;
    z-index: 1;
}

/* Done cards: exit up-left with scale down */
.stack-card[data-state="done"] {
    transform: translateX(-80px) translateY(-60px) scale(0.8);
    opacity: 0;
    z-index: 0;
}

/* Card content */
.stack-card__gold-line {
    width: 120px;
    height: 5px;
    background: var(--c-gold);
    border-radius: 2px;
    margin-bottom: 2rem;
}

.stack-card__logo {
    height: 36px;
    width: auto;
    max-width: 100%;
    margin-bottom: 2.5rem;
    object-fit: contain;
    object-position: left;
}

.stack-card[data-index="1"] .stack-card__logo,
.stack-card[data-index="2"] .stack-card__logo,
.stack-card[data-index="3"] .stack-card__logo {
    height: 48px;
}

.stack-card__name {
    font-family: var(--f-display);
    font-weight: 700;
    font-size: 1.4rem;
    text-transform: uppercase;
    color: var(--c-dark-text);
    margin-bottom: 2.5rem;
}

.stack-card__body {
    font-family: var(--f-body);
    font-weight: 600;
    font-size: 1.05rem;
    line-height: 1.45;
    color: var(--c-dark-text);
    max-width: 420px;
}

.stack-card__cta {
    display: inline-block;
    font-family: var(--f-body);
    font-weight: 700;
    font-size: .85rem;
    color: var(--c-gold);
    text-decoration: underline;
    margin-top: 1rem;
    transition: opacity .25s;
}
.stack-card__cta:hover { opacity: .7; }

/* Progress dots */
.stack-carousel__dots {
    position: absolute;
    right: 3.5rem;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: .6rem;
}

.stack-carousel__dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--c-dark);
    opacity: .2;
    transition: opacity .3s, transform .3s;
}

.stack-carousel__dot--active {
    opacity: 1;
    background: var(--c-lime);
    transform: scale(1.3);
}

.companies__layout {
    display: grid;
    grid-template-columns: 340px 1fr;
    padding: 5rem 0 8rem;
    position: relative;
    z-index: 2;
}

.companies__heading-col {
    padding: 0 2rem 0 3.5rem;
    display: flex; align-items: flex-start;
    padding-top: 2rem;
}

.companies__section-title {
    font-family: var(--f-display);
    font-weight: 600;
    font-size: clamp(1.25rem, 1.8vw, 2rem);
    line-height: 1.03;
    text-transform: uppercase;
    color: var(--c-dark-text);
    text-align: right;
}

.companies__cards-col {
    position: relative;
    padding-bottom: 4rem;
}

/* --- Company Cards (trapezoid shape) --- */
.company-card {
    position: relative;
    width: 100%;
    max-width: 640px;
    margin-bottom: -80px;
}

.company-card:last-child { margin-bottom: 0; }

.company-card__shape {
    clip-path: polygon(15% 0%, 100% 0%, 85% 100%, 0% 100%);
    background: var(--c-lime);
    padding: 5rem 3.5rem 5rem 5rem;
    position: relative;
    min-height: 380px;
}

.company-card--offset-1 { margin-left: 0; }
.company-card--offset-2 { margin-left: clamp(3rem, 8vw, 7rem); }
.company-card--offset-3 { margin-left: clamp(6rem, 16vw, 14rem); }

.company-card__gold-line {
    width: 137px; height: 6px;
    background: var(--c-gold);
    border-radius: 3px;
    margin-bottom: 2.5rem;
}

.company-card__logo {
    height: 40px;
    margin-bottom: 1rem;
}

.company-card__logo-svg {
    margin-bottom: 1rem;
}

.company-card__body {
    font-family: var(--f-body);
    font-weight: 500;
    font-size: 1rem;
    line-height: 1.375;
    color: var(--c-dark-text);
    max-width: 340px;
}

.company-card__cta {
    display: inline-block;
    font-family: var(--f-body);
    font-weight: 700;
    font-size: 1rem;
    color: var(--c-gold);
    text-decoration: underline;
    margin-top: .5rem;
    transition: opacity .25s;
}
.company-card__cta:hover { opacity: .75; }

/* àPARTS logo inline */
.aparts-logo { height: 82px; }

/* Pret-a-porter image panel */
.companies__photo-panel {
    position: relative;
    width: 100%;
    height: 540px;
    overflow: hidden;
    margin-top: 2rem;
}
.companies__photo-panel img {
    width: 100%; height: 100%;
    object-fit: cover;
    mix-blend-mode: multiply;
}

/* Decorative blocks */
.companies__blocks-left {
    position: absolute;
    left: 0; top: 0;
    pointer-events: none;
    z-index: 1;
}
.companies__blocks-right {
    position: absolute;
    right: 0; bottom: 80px;
    pointer-events: none;
    z-index: 1;
}


/* ==========================================================================
   KHANVIAN
   ========================================================================== */
.khanvian {
    background: var(--c-gray-bg);
    position: relative;
    overflow: hidden;
    z-index: 11;
    opacity: 0;
    transition: opacity .3s ease;
}

.khanvian__header {
    position: absolute;
    top: 4rem;
    left: 2%;
    width: 22%;
    z-index: 3;
    text-align: right;
}

.khanvian__logo-main {
    display: inline-block;
    margin-bottom: 2rem;
}

.khanvian__title {
    font-family: var(--f-display);
    font-weight: 600;
    font-size: clamp(1.25rem, 1.8vw, 2rem);
    line-height: 1.03;
    text-transform: uppercase;
    color: var(--c-dark-text);
    text-align: right;
}

.khanvian__visual {
    position: relative;
    width: 100%;
}

.khanvian__photo {
    width: 100%;
    display: block;
    mix-blend-mode: multiply;
}

.khanvian__overlay {
    position: absolute;
    top: 30%;
    left: 0;
    right: 0;
    margin: 0 auto;
    width: fit-content;
    z-index: 2;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.khanvian__logo-main {
    height: 80px;
    width: auto;
    object-fit: contain;
    object-position: left;
}

.khanvian__textbox {
    background: rgba(42, 46, 52, .7);
    width: 42vw;
    aspect-ratio: 627 / 374;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem 6rem;
}

.khanvian__text {
    font-family: var(--f-body);
    font-weight: 500;
    font-size: 16px;
    line-height: 22px;
    color: var(--c-lime);
    word-wrap: break-word;
    max-width: 320px;
}

.khanvian__blocks-divider {
    position: absolute;
    bottom: -2rem;
    right: 2.5rem;
    z-index: 3;
    pointer-events: none;
    transform: scaleX(-1);
}

.khanvian__blocks-img {
    width: 219px;
    height: auto;
}


/* ==========================================================================
   FACTORY
   ========================================================================== */
.factory {
    background: var(--c-gray-bg);
    position: relative;
    z-index: 12;
    margin-top: 0;
}

.factory__header {
    position: absolute;
    top: 3rem;
    left: 17rem;
    z-index: 3;
}

.factory__header-row {
    display: flex;
    align-items: flex-start;
    gap: 3rem;
    margin-top: 1rem;
}

.factory__logo {
    max-width: 500px;
    height: auto;
}

.factory__eyebrow {
    font-family: var(--f-display);
    font-weight: 600;
    font-size: clamp(1.25rem, 1.8vw, 2rem);
    line-height: 1.03;
    text-transform: uppercase;
    color: var(--c-dark-text);
    margin-bottom: 1.5rem;
}

.factory__lime-line {
    width: 461px;
    height: 8px;
    background: var(--c-lime);
    max-width: 100%;
    margin-bottom: 1rem;
}

.factory__logo-wrap {
    padding: 0 3.5rem 2rem;
    position: relative;
    z-index: 2;
}

.factory__visual {
    position: relative;
    overflow: hidden;
}

.factory__photo {
    width: 100%;
    display: block;
    position: relative;
    z-index: 1;
    margin-top: -10rem;
}

.factory__overlay-content {
    position: absolute;
    bottom: 4rem;
    right: 3.5rem;
    z-index: 2;
}

.factory__textbox {
    background: rgba(42, 46, 52, .7);
    clip-path: polygon(9% 0%, 100% 0%, 91% 100%, 0% 100%);
    padding: 4rem 6rem;
    max-width: 560px;
}

.factory__text {
    font-family: var(--f-body);
    font-weight: 500;
    font-size: 16px;
    line-height: 22px;
    color: var(--c-lime);
    word-wrap: break-word;
    margin-bottom: 1.5rem;
}
.factory__text:last-child { margin-bottom: 0; }

.factory__blocks-strip {
    width: 100%;
    height: 219px;
    margin-top: -110px;
    margin-bottom: -110px;
    position: relative;
    z-index: 14;
    background: url('../assets/blocks-pattern-h.svg') repeat-x left top;
    background-size: 386px 219px;
}

.factory__blocks-strip img {
    display: none;
}

.factory__blocks-strip img {
    display: none;
}

/* Decorative yellow bars strip */
.factory__bars-strip {
    width: 100%;
    overflow: hidden;
    line-height: 0;
}
.factory__bars-strip img {
    width: 100%;
    display: block;
}


/* ==========================================================================
   CONTACT
   ========================================================================== */
.contact {
    background: var(--c-dark);
    padding: 15rem 3.5rem 8rem;
    position: relative;
    z-index: 13;
    box-shadow: 0 100vh 0 100vh var(--c-dark);
    overflow: hidden;
}

.contact__grid {
    display: grid;
    grid-template-columns: 45% 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 1;
}

.contact__title {
    font-family: 'Atrament', var(--f-display);
    font-weight: 400;
    font-style: italic;
    font-size: 56px;
    line-height: 48px;
    color: var(--c-lime);
    text-transform: uppercase;
    word-wrap: break-word;
    max-width: 450px;
    margin-left: auto;
}

.contact__display-title {
    font-family: var(--f-display);
    font-weight: 700; font-style: italic;
    font-size: clamp(2.4rem, 3.9vw, 3.5rem);
    line-height: 1;
    text-transform: uppercase;
    color: var(--c-lime);
}

.contact__info {
    font-family: var(--f-display);
    font-weight: 600;
    font-size: 32px;
    line-height: 33px;
    color: var(--c-lime);
    text-transform: uppercase;
    word-wrap: break-word;
}

.contact__info a {
    color: inherit;
    text-decoration: none;
    transition: opacity .25s;
}

.contact__info a:hover {
    opacity: .75;
}

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

.contact__phone-email {
    font-family: var(--f-display);
    font-weight: 600;
    font-size: clamp(1rem, 1.5vw, 1.3rem);
    line-height: 1.03;
    text-transform: uppercase;
    color: var(--c-lime);
}
.contact__phone-email a {
    color: inherit; text-decoration: none;
    transition: opacity .25s;
}
.contact__phone-email a:hover { opacity: .75; }

.contact__cta {
    font-family: var(--f-body);
    font-weight: 500;
    font-size: 16px;
    line-height: 22px;
    color: var(--c-gray-text);
    word-wrap: break-word;
    margin-top: 1.5rem;
    max-width: 500px;
}

.contact__cta a {
    color: inherit; text-decoration: none;
    border-bottom: 1px solid var(--c-gray-text);
    transition: color .25s, border-color .25s;
}

.contact__cta a:hover {
    color: var(--c-lime); border-bottom-color: var(--c-lime);
}


/* ==========================================================================
   FOOTER
   ========================================================================== */
.footer {
    background: var(--c-dark);
    padding: 1.5rem 3.5rem;
    position: relative;
    z-index: 13;
}

.footer__inner {
    display: flex; justify-content: space-between; align-items: center;
    gap: 1rem;
}

.footer__copy {
    font-family: var(--f-body);
    font-size: .75rem;
    color: rgba(255,255,255,.3);
}

.footer__cities {
    display: flex; gap: 1.4rem; flex-wrap: wrap;
}

.footer__city {
    font-family: var(--f-display);
    font-size: .65rem; font-weight: 600;
    letter-spacing: .14em; text-transform: uppercase;
    color: rgba(255,255,255,.2);
    position: relative;
}
.footer__city::after {
    content: ''; position: absolute;
    right: -.75rem; top: 50%;
    width: 3px; height: 3px; border-radius: 50%;
    background: var(--c-lime);
    transform: translateY(-50%);
}
.footer__city:last-child::after { display: none; }


/* ==========================================================================
   SCROLL REVEAL
   ========================================================================== */
.sr {
    opacity: 0; transform: translateY(22px);
    transition: opacity .75s cubic-bezier(.4,0,0,1),
                transform .75s cubic-bezier(.4,0,0,1);
}
.sr--visible { opacity: 1; transform: none; }
.sr--d1 { transition-delay: .1s; }
.sr--d2 { transition-delay: .2s; }
.sr--d3 { transition-delay: .35s; }
.sr--d4 { transition-delay: .5s; }

/* Fade from left */
.sr--left {
    opacity: 0; transform: translateX(-40px);
    transition: opacity 1s cubic-bezier(.4,0,0,1),
                transform 1s cubic-bezier(.4,0,0,1);
}

/* Fade from right */
.sr--right {
    opacity: 0; transform: translateX(40px);
    transition: opacity 1s cubic-bezier(.4,0,0,1),
                transform 1s cubic-bezier(.4,0,0,1);
}

/* Slow fade up */
.sr--slow {
    opacity: 0; transform: translateY(35px);
    transition: opacity 1.2s cubic-bezier(.4,0,0,1),
                transform 1.2s cubic-bezier(.4,0,0,1);
}

/* Scale fade */
.sr--scale {
    opacity: 0; transform: scale(0.95);
    transition: opacity 1s cubic-bezier(.4,0,0,1),
                transform 1s cubic-bezier(.4,0,0,1);
}


/* ==========================================================================
   RESPONSIVE — Narrow desktop (≤1200px)
   ========================================================================== */
@media (max-width: 1200px) {
    /* --- Stack carousel: reduce offsets --- */
    .stack-carousel__sticky {
        padding-left: 30vw;
    }
    .stack-carousel__cards {
        width: 55vw;
        max-width: 520px;
    }
    .stack-card {
        padding: 2rem 3rem 2rem 4rem;
    }
    .stack-card[data-state="queued-1"] { transform: translateX(80px) translateY(80px) scale(0.95); }
    .stack-card[data-state="queued-2"] { transform: translateX(160px) translateY(160px) scale(0.90); }
    .stack-card[data-state="queued-3"] { transform: translateX(240px) translateY(240px) scale(0.85); }

    /* --- Companies heading --- */
    .companies__heading {
        width: 26%;
    }

    /* --- Khanvian --- */
    .khanvian__header {
        width: 26%;
    }
    .khanvian__textbox {
        width: 38vw;
        padding: 2rem 4rem;
    }

    /* --- Factory --- */
    .factory__header {
        left: 3rem;
        right: 3rem;
    }
    .factory__header-row {
        flex-direction: row;
        justify-content: space-between;
        align-items: flex-start;
        gap: 2rem;
    }
    .factory__logo { max-width: 300px; }
    .factory__textbox {
        clip-path: none;
        padding: 2rem 2.5rem;
        max-width: 420px;
    }
    .factory__photo {
        margin-top: 0;
        position: absolute;
        bottom: 0;
        left: 0;
        width: 100%;
    }
    .factory__visual {
        min-height: 75vh;
    }

    /* --- Contact --- */
    .contact__grid { grid-template-columns: 1fr; gap: 2.5rem; }
    .contact__title { margin-left: 0; }
}

/* ==========================================================================
   RESPONSIVE — Tablet & Mobile (≤999px)
   ========================================================================== */
@media (max-width: 999px) {
    .nav__links { display: none; }
    .nav__burger { display: flex; }
    .footer { padding: 1.2rem 2rem; }
    .footer__inner { flex-direction: column; gap: .75rem; text-align: center; }
    .footer__cities { justify-content: center; }
}

/* ==========================================================================
   RESPONSIVE — Tablet portrait & Mobile (≤820px)
   No scroll effects, no sticky carousel, no diagonal lines, no clip-paths.
   Clean vertical layout.
   ========================================================================== */
@media (max-width: 900px) {
    /* --- Nav --- */
    .nav { padding: 1rem 1.5rem; }
    .nav--scrolled { padding: .7rem 1.5rem; }
    .mmenu__close { right: 1.5rem; }
    .nav--dark .nav__logo-img { opacity: 0; pointer-events: none; }

    /* --- Diagonal line — hide --- */
    .diagonal-segment { display: none; }

    /* --- Hero --- */
    .hero__content {
        padding: 6rem 1.5rem 2rem;
    }
    .hero__tagline {
        position: static;
        font-size: clamp(1rem, 5vw, 1.4rem);
        text-align: center;
        margin-bottom: 1rem;
    }
    .hero__tagline br { display: inline; font-size: 0; line-height: 0; }
    .hero__tagline br::before { content: ' '; font-size: 1rem; }
    .hero__title {
        position: static;
        font-size: clamp(2rem, 8vw, 2.8rem);
        line-height: 1;
        max-width: 100%;
        text-align: center;
        margin-bottom: 1.5rem;
    }
    .hero__desc-box {
        margin-left: 0;
        max-width: 100%;
        clip-path: none;
        padding: 2rem 1.5rem;
    }
    .hero__blocks-pattern { display: none; }
    .blocks-divider { display: none; }

    /* --- Intro --- */
    .intro { padding: 3rem 1.5rem 4rem; }
    .intro__inner { max-width: 100%; }
    .intro__text {
        text-align: left;
        font-size: clamp(1rem, 4vw, 1.3rem);
    }

    /* --- Companies --- */
    .companies__heading {
        position: static;
        width: 100%;
        padding: 2rem 1.5rem;
        text-align: center;
        opacity: 1;
    }
    .companies__heading--visible { opacity: 1; }
    .companies__title {
        text-align: center;
    }

    /* --- Stack Carousel — vertical column --- */
    .stack-carousel { height: auto !important; }
    .stack-carousel__sticky {
        position: relative;
        height: auto;
        padding: 0 1.5rem 2rem;
        flex-direction: column;
    }
    .stack-carousel__cards {
        position: relative;
        width: 100%;
        max-width: 100%;
        height: auto;
        max-height: none;
        display: flex;
        flex-direction: column;
        gap: 1.5rem;
    }
    .stack-card {
        position: relative;
        top: auto;
        left: auto;
        width: 100%;
        height: auto;
        opacity: 1;
        transform: none;
        clip-path: none;
        filter: none;
        padding: 2rem 1.5rem;
    }
    .stack-card[data-state="active"],
    .stack-card[data-state="queued-1"],
    .stack-card[data-state="queued-2"],
    .stack-card[data-state="queued-3"],
    .stack-card[data-state="done"] {
        transform: none;
        opacity: 1;
    }
    .stack-carousel__dots { display: none; }

    /* --- Khanvian --- */
    .khanvian { opacity: 1 !important; }
    .khanvian__header {
        position: relative;
        top: auto;
        left: auto;
        width: 100%;
        padding: 2rem 1.5rem;
        text-align: center;
    }
    .khanvian__logo-main {
        margin: 0 auto 1.5rem;
    }
    .khanvian__title {
        text-align: center;
    }
    .khanvian__visual {
        position: relative;
    }
    .khanvian__overlay {
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        right: auto;
        margin: 0;
        width: 90%;
        max-width: 500px;
        padding: 0;
    }
    .khanvian__textbox {
        width: 100%;
        aspect-ratio: auto;
        clip-path: none;
        padding: 2rem 1.5rem;
    }
    .khanvian__blocks-divider { display: none; }

    /* --- Factory --- */
    .factory__visual {
        display: flex;
        flex-direction: column;
        overflow: visible;
    }
    .factory__header {
        position: relative;
        top: auto;
        left: auto;
        right: auto;
        padding: 2rem 2.5rem;
        order: -1;
        z-index: 3;
    }
    .factory__photo {
        order: 1;
    }
    .factory__header-row {
        flex-direction: column;
        gap: 1.5rem;
        align-items: flex-start;
    }
    .factory__logo { max-width: 280px; }
    .factory__textbox {
        clip-path: none;
        padding: 2rem 1.5rem;
        max-width: 100%;
        text-align: center;
        margin: 0 auto;
        position: relative;
        top: 5rem;
    }
    .factory__lime-line { width: 100%; }
    .factory__blocks-strip { display: none; }

    /* --- Contact --- */
    .contact { padding: 4rem 1.5rem; }
    .contact__grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    .contact__title {
        font-size: clamp(2rem, 8vw, 3rem);
        margin-left: 0;
    }
    .contact__info { font-size: clamp(1.2rem, 5vw, 1.8rem); }

    /* --- Footer --- */
    .footer { padding: 1rem 1.5rem; }
}
