/* ==========================================================================
   CEMI Factory — Main stylesheet
   Structure: reset → base → layout → header → hero → sections → components
              → footer → motion → responsive
   ========================================================================== */

/* ── Reset & base ──────────────────────────────────────────────────────── */

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 88px;   /* sticky header height */
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    font-family: var(--font-body);
    font-size: var(--fs-base);
    line-height: var(--lh-normal);
    color: var(--text-secondary);
    background: var(--surface-page);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

img, svg { max-width: 100%; height: auto; display: block; }

h1, h2, h3, h4 {
    font-family: var(--font-heading);
    color: var(--text-primary);
    line-height: var(--lh-tight);
    letter-spacing: -0.015em;
    margin: 0 0 var(--space-md);
    font-weight: var(--fw-bold);
}

h2 { font-size: clamp(1.75rem, 3.4vw, var(--fs-3xl)); }
h3 { font-size: var(--fs-lg); }

p { margin: 0 0 var(--space-md); }
p:last-child { margin-bottom: 0; }

a { color: var(--text-link); text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
a:hover { color: var(--color-primary-dark); }

ul { margin: 0; padding: 0; list-style: none; }

:focus-visible {
    outline: 2px solid var(--color-ocre);
    outline-offset: 3px;
    border-radius: 2px;
}

.skip-link {
    position: absolute;
    left: var(--space-md);
    top: -100px;
    z-index: var(--z-modal);
    background: var(--color-primary);
    color: var(--text-inverse);
    padding: var(--space-sm) var(--space-lg);
    border-radius: var(--radius-full);
    font-weight: var(--fw-semibold);
    text-decoration: none;
    transition: top var(--transition-fast);
}
.skip-link:focus { top: var(--space-md); color: var(--text-inverse); }

.visually-hidden {
    position: absolute; width: 1px; height: 1px;
    padding: 0; margin: -1px; overflow: hidden;
    clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ── Layout ────────────────────────────────────────────────────────────── */

.container {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--container-padding);
}
.container--narrow { max-width: var(--container-narrow); }

.section { padding: var(--section-padding); }
.section--sand { background: var(--surface-parchment); }
.section--ink {
    background: var(--factory-ink);
    color: var(--text-inverse-muted);
    position: relative;
    overflow: hidden;
}
.section--ink h2,
.section--ink h3 { color: var(--text-inverse); }

/* Blueprint grid — the Factory motif. Fine ruled lines, like a shop drawing. */
.blueprint::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(to right, var(--factory-grid) 1px, transparent 1px),
        linear-gradient(to bottom, var(--factory-grid) 1px, transparent 1px);
    background-size: var(--factory-grid-size) var(--factory-grid-size);
    -webkit-mask-image: radial-gradient(ellipse 90% 70% at 50% 30%, #000 35%, transparent 100%);
            mask-image: radial-gradient(ellipse 90% 70% at 50% 30%, #000 35%, transparent 100%);
    pointer-events: none;
}
.blueprint > * { position: relative; z-index: 1; }

.section-head { max-width: 62ch; margin-bottom: var(--space-2xl); }
.section-head--center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head p {
    font-size: var(--fs-md);
    color: var(--text-muted);
    margin-bottom: 0;
}
.section--ink .section-head p { color: var(--text-inverse-muted); }

.eyebrow {
    display: inline-block;
    font-family: var(--font-body);
    font-size: var(--fs-xs);
    font-weight: var(--fw-semibold);
    letter-spacing: var(--tracking-eyebrow);
    text-transform: uppercase;
    color: var(--color-primary);
    margin-bottom: var(--space-md);
}
.section--ink .eyebrow,
.hero .eyebrow { color: var(--color-ocre); }

/* ── Buttons ───────────────────────────────────────────────────────────── */

.btn {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    padding: 0.85rem 1.6rem;
    border-radius: var(--radius-full);
    font-family: var(--font-body);
    font-size: var(--fs-sm);
    font-weight: var(--fw-semibold);
    letter-spacing: 0.01em;
    text-decoration: none;
    border: 1px solid transparent;
    cursor: pointer;
    transition: transform var(--transition-fast), background var(--transition-fast),
                border-color var(--transition-fast), color var(--transition-fast),
                box-shadow var(--transition-fast);
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn--primary {
    background: var(--color-primary);
    color: var(--text-inverse);
    box-shadow: 0 6px 20px rgba(167, 0, 0, 0.28);
}
.btn--primary:hover {
    background: var(--color-primary-dark);
    color: var(--text-inverse);
    box-shadow: 0 10px 28px rgba(167, 0, 0, 0.36);
}

.btn--ghost {
    background: transparent;
    color: var(--text-primary);
    border-color: rgba(0, 0, 0, 0.18);
}
.btn--ghost:hover { border-color: var(--text-primary); color: var(--text-primary); }

.btn--ghost-light {
    background: transparent;
    color: var(--text-inverse);
    border-color: var(--factory-rule-strong);
}
.btn--ghost-light:hover {
    color: var(--text-inverse);
    border-color: var(--color-ocre);
    background: rgba(217, 164, 65, 0.1);
}

.btn--ocre {
    background: var(--color-ocre);
    color: #241a05;
    box-shadow: 0 6px 20px rgba(217, 164, 65, 0.24);
}
.btn--ocre:hover { background: #e9b757; color: #241a05; }

/* WhatsApp is the primary contact channel, so it gets WhatsApp's own green
   rather than a brand colour — the recognition is the point. */
.btn--whatsapp {
    background: #25D366;
    color: #08240f;
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.22);
}
.btn--whatsapp:hover {
    background: #3ade79;
    color: #08240f;
    box-shadow: 0 10px 28px rgba(37, 211, 102, 0.3);
}

.btn__arrow { transition: transform var(--transition-fast); }
.btn:hover .btn__arrow { transform: translateX(3px); }

/* ── Header ────────────────────────────────────────────────────────────── */

.site-header {
    position: sticky;
    top: 0;
    z-index: var(--z-nav);
    background: rgba(15, 18, 22, 0.72);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid transparent;
    transition: background var(--transition-base), border-color var(--transition-base);
}
.site-header--scrolled {
    background: rgba(15, 18, 22, 0.94);
    border-bottom-color: var(--factory-rule);
}

.site-header__inner {
    display: flex;
    align-items: center;
    gap: var(--space-lg);
    height: 72px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    text-decoration: none;
    margin-right: auto;
    min-width: 0;
}
.brand img { width: 34px; height: auto; flex-shrink: 0; }
.brand__name {
    font-family: var(--font-heading);
    font-weight: var(--fw-bold);
    font-size: var(--fs-md);
    color: var(--text-inverse);
    letter-spacing: -0.01em;
    white-space: nowrap;
}
.brand__name span { color: var(--color-ocre); }

.site-nav { display: flex; align-items: center; gap: var(--space-lg); }
.site-nav a {
    font-size: var(--fs-sm);
    font-weight: var(--fw-medium);
    color: rgba(253, 251, 247, 0.78);
    text-decoration: none;
    white-space: nowrap;
    transition: color var(--transition-fast);
}
.site-nav a:hover { color: var(--color-ocre); }

/* Language switcher */
.lang {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.15rem;
    padding: 0.3rem 0.5rem;
    border: 1px solid var(--factory-rule);
    border-radius: var(--radius-full);
}
.lang a {
    font-size: var(--fs-xs);
    font-weight: var(--fw-semibold);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: rgba(253, 251, 247, 0.6);
    text-decoration: none;
    padding: 0.15rem 0.45rem;
    border-radius: var(--radius-full);
    transition: color var(--transition-fast), background var(--transition-fast);
}
.lang a:hover { color: var(--text-inverse); }
.lang a[aria-current="true"] {
    color: #241a05;
    background: var(--color-ocre);
}

.hamburger {
    display: none;
    width: 42px; height: 42px;
    align-items: center; justify-content: center;
    background: transparent;
    border: 1px solid var(--factory-rule);
    border-radius: var(--radius-md);
    cursor: pointer;
    padding: 0;
}
.hamburger__box { display: block; width: 18px; }
.hamburger__line {
    display: block; height: 2px; width: 100%;
    background: var(--text-inverse);
    border-radius: 2px;
    transition: transform var(--transition-fast), opacity var(--transition-fast);
}
.hamburger__line + .hamburger__line { margin-top: 4px; }
.hamburger[aria-expanded="true"] .hamburger__line:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.hamburger[aria-expanded="true"] .hamburger__line:nth-child(2) { opacity: 0; }
.hamburger[aria-expanded="true"] .hamburger__line:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.mobile-menu {
    display: none;
    background: var(--factory-ink);
    border-top: 1px solid var(--factory-rule);
    padding: var(--space-md) 0 var(--space-xl);
}
.mobile-menu.is-open { display: block; }
.mobile-menu a {
    display: block;
    padding: 0.85rem 0;
    font-size: var(--fs-md);
    font-family: var(--font-heading);
    font-weight: var(--fw-semibold);
    color: var(--text-inverse);
    text-decoration: none;
    border-bottom: 1px solid var(--factory-rule);
}
.mobile-menu a:hover { color: var(--color-ocre); }
.mobile-menu .btn {
    /* display must be restated: `.mobile-menu a` sets block and outranks .btn */
    display: flex;
    margin-top: var(--space-lg);
    width: 100%;
    justify-content: center;
    border-bottom: 0;
}
.mobile-menu .lang { margin-top: var(--space-lg); width: fit-content; }
.mobile-menu .lang a {
    display: inline-block;
    padding: 0.2rem 0.6rem;
    font-family: var(--font-body);
    font-size: var(--fs-sm);
    border-bottom: 0;
}

/* ── Hero ──────────────────────────────────────────────────────────────── */

.hero {
    position: relative;
    background: var(--factory-ink);
    color: var(--text-inverse-muted);
    padding: clamp(4rem, 11vw, 8rem) 0 clamp(3.5rem, 8vw, 6rem);
    overflow: hidden;
}
.hero::after {
    content: "";
    position: absolute;
    top: -18%; left: 50%;
    width: min(900px, 120vw); aspect-ratio: 1;
    transform: translateX(-50%);
    background: radial-gradient(circle, var(--factory-glow) 0%, transparent 62%);
    filter: blur(30px);
    pointer-events: none;
}
.hero > .container { position: relative; z-index: 2; }

.hero__title {
    font-size: clamp(2.4rem, 6.4vw, var(--fs-5xl));
    color: var(--text-inverse);
    margin-bottom: var(--space-lg);
    max-width: 16ch;
}
.hero__title span { display: block; }
.hero__title span:last-child { color: var(--color-ocre); }

.hero__lead {
    font-size: clamp(1.05rem, 1.9vw, var(--fs-lg));
    line-height: var(--lh-normal);
    max-width: 60ch;
    color: var(--text-inverse-muted);
    margin-bottom: var(--space-2xl);
}

.hero__actions { display: flex; flex-wrap: wrap; gap: var(--space-md); }

/* ── Stat band ─────────────────────────────────────────────────────────── */

.stat-band {
    background: var(--factory-ink-alt);
    border-top: 1px solid var(--factory-rule);
    border-bottom: 1px solid var(--factory-rule);
    padding: var(--space-2xl) 0;
}
/* Six stats. Three per row rather than six across — at six columns the longer
   labels ("world-class quality") wrap to three lines and the band loses its
   scannability. */
.stat-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-xl) var(--space-2xl);
}
.stat {
    border-left: 2px solid var(--color-primary);
    padding-left: var(--space-lg);
}
.stat__value {
    font-family: var(--font-heading);
    font-size: clamp(2.2rem, 4.6vw, 3.25rem);
    font-weight: var(--fw-bold);
    line-height: 1;
    color: var(--color-ocre);
}
.stat__label {
    font-size: var(--fs-sm);
    font-weight: var(--fw-semibold);
    color: var(--text-inverse);
    margin-top: var(--space-sm);
}
.stat__hint {
    font-size: var(--fs-xs);
    color: rgba(253, 251, 247, 0.5);
    margin-top: 0.2rem;
    line-height: 1.45;
}

/* ── Intro ─────────────────────────────────────────────────────────────── */

.intro .lead {
    font-size: clamp(1.15rem, 2.2vw, var(--fs-xl));
    font-family: var(--font-heading);
    font-weight: var(--fw-medium);
    line-height: 1.42;
    color: var(--text-primary);
    letter-spacing: -0.01em;
    margin-bottom: var(--space-lg);
}
.intro p { color: var(--text-secondary); }

/* ── Capability grid ───────────────────────────────────────────────────── */

.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--space-lg);
}

.capability {
    background: var(--surface-card);
    border: var(--border-sand);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    transition: transform var(--transition-base), box-shadow var(--transition-base),
                border-color var(--transition-base);
}
.capability:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
    border-color: var(--color-clay);
}
/* Icon sits on the same line as the title, not stacked above it. */
.capability__head {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    margin-bottom: var(--space-md);
}
.capability__icon {
    width: 44px; height: 44px;
    flex: 0 0 44px;
    display: grid; place-items: center;
    border-radius: var(--radius-md);
    background: rgba(167, 0, 0, 0.07);
    color: var(--color-primary);
}
.capability__title {
    margin-bottom: 0;
    font-size: var(--fs-md);
    /* Titles run to two lines at some widths; keep them optically centred
       against the icon rather than riding high. */
    align-self: center;
}
.capability__desc {
    font-size: var(--fs-sm);
    color: var(--text-muted);
    line-height: var(--lh-normal);
}

/* ── Proof callout (initiatives count, under the capability grid) ──────── */

.proof {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--space-lg) var(--space-2xl);
    margin-top: var(--space-2xl);
    padding: var(--space-xl);
    background: var(--surface-card);
    border: var(--border-sand);
    border-left: 3px solid var(--color-primary);
    border-radius: var(--radius-lg);
}
.proof__figure {
    display: flex;
    align-items: baseline;
    gap: var(--space-sm);
    flex-shrink: 0;
}
.proof__value {
    font-family: var(--font-heading);
    font-size: clamp(2.2rem, 4vw, 3rem);
    font-weight: var(--fw-bold);
    line-height: 1;
    color: var(--color-primary);
}
.proof__label {
    font-family: var(--font-heading);
    font-size: var(--fs-lg);
    font-weight: var(--fw-semibold);
    color: var(--text-primary);
}
.proof__hint {
    flex: 1 1 260px;
    margin: 0;
    font-size: var(--fs-sm);
    color: var(--text-muted);
}
.proof__link {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    font-size: var(--fs-sm);
    font-weight: var(--fw-semibold);
    text-decoration: none;
    white-space: nowrap;
}
.proof__link:hover .btn__arrow { transform: translateX(3px); }

/* ── Method list ───────────────────────────────────────────────────────── */

.method {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--space-xl) var(--space-2xl);
    counter-reset: method;
}
.method__item {
    counter-increment: method;
    border-top: 2px solid var(--color-sand);
    padding-top: var(--space-lg);
}
.method__item::before {
    content: counter(method, decimal-leading-zero);
    display: block;
    font-family: var(--font-mono);
    font-size: var(--fs-xs);
    letter-spacing: 0.1em;
    color: var(--color-clay);
    margin-bottom: var(--space-sm);
}
.method__item h3 { margin-bottom: var(--space-sm); }
.method__item p { font-size: var(--fs-sm); color: var(--text-muted); }

/* ── Trial ─────────────────────────────────────────────────────────────── */

.trial__title {
    font-size: clamp(1.6rem, 3.6vw, var(--fs-3xl));
    max-width: 22ch;
}
.trial__lead {
    font-size: var(--fs-md);
    max-width: 58ch;
    color: var(--text-inverse-muted);
}

.steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--space-xl);
    margin: var(--space-3xl) 0;
    counter-reset: step;
}
.step { counter-increment: step; position: relative; padding-top: var(--space-xl); }
.step::before {
    content: counter(step);
    position: absolute;
    top: 0; left: 0;
    width: 34px; height: 34px;
    display: grid; place-items: center;
    border-radius: var(--radius-full);
    border: 1px solid var(--color-ocre);
    color: var(--color-ocre);
    font-family: var(--font-heading);
    font-weight: var(--fw-bold);
    font-size: var(--fs-sm);
}
.step h3 { font-size: var(--fs-md); margin: var(--space-lg) 0 var(--space-sm); }
.step p { font-size: var(--fs-sm); color: var(--text-inverse-muted); }

.guarantee {
    border: 1px solid var(--factory-rule-strong);
    border-left: 3px solid var(--color-ocre);
    border-radius: var(--radius-md);
    background: rgba(217, 164, 65, 0.05);
    padding: var(--space-xl);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--space-lg) var(--space-2xl);
}
.guarantee__body { flex: 1 1 340px; }
.guarantee__label {
    font-size: var(--fs-xs);
    font-weight: var(--fw-semibold);
    text-transform: uppercase;
    letter-spacing: var(--tracking-eyebrow);
    color: var(--color-ocre);
    margin-bottom: var(--space-sm);
}
.guarantee__text {
    font-family: var(--font-heading);
    font-size: clamp(1.05rem, 2vw, var(--fs-lg));
    font-weight: var(--fw-medium);
    line-height: 1.45;
    color: var(--text-inverse);
    margin: 0;
}
.guarantee__cta { flex: 0 1 auto; }
.guarantee__cta-label {
    font-family: var(--font-heading);
    font-size: var(--fs-base);
    font-weight: var(--fw-semibold);
    color: var(--text-inverse);
    margin-bottom: var(--space-md);
}
.guarantee__actions {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-sm);
}
.guarantee__actions .btn { white-space: nowrap; }

/* ── Why / points ──────────────────────────────────────────────────────── */

.why__body { max-width: 66ch; }
.why__body p { color: var(--text-secondary); }

.points {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: var(--space-lg);
    margin-top: var(--space-2xl);
}
.point {
    border-left: 2px solid var(--color-ocre);
    padding-left: var(--space-lg);
}
.point h3 { font-size: var(--fs-base); margin-bottom: 0.35rem; }
.point p { font-size: var(--fs-sm); color: var(--text-muted); }

/* ── Ecosystem ─────────────────────────────────────────────────────────── */

/* Five cards: a 320px floor would strand two on the last row at common widths.
   280px lets three sit comfortably per row on desktop, two on tablet. */
.eco-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--space-lg);
}
.eco-card {
    display: flex;
    flex-direction: column;
    background: var(--surface-card);
    border: var(--border-sand);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    transition: transform var(--transition-base), box-shadow var(--transition-base);
}
.eco-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.eco-card__role {
    font-size: var(--fs-xs);
    font-weight: var(--fw-semibold);
    text-transform: uppercase;
    letter-spacing: var(--tracking-eyebrow);
    color: var(--color-clay);
    margin-bottom: var(--space-sm);
}
.eco-card__name {
    font-size: var(--fs-xl);
    margin-bottom: var(--space-md);
}
.eco-card__desc {
    font-size: var(--fs-sm);
    color: var(--text-muted);
    margin-bottom: var(--space-lg);
    flex: 1;
}
.eco-card__link {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    font-size: var(--fs-sm);
    font-weight: var(--fw-semibold);
    text-decoration: none;
    align-self: flex-start;
}
.eco-card__link:hover .btn__arrow { transform: translateX(3px); }

/* ── Contact ───────────────────────────────────────────────────────────── */

.contact { text-align: center; }
.contact p { color: var(--text-inverse-muted); }
.contact__lead {
    font-size: var(--fs-md);
    max-width: 58ch;
    margin: 0 auto var(--space-2xl);
}
.contact__actions {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-md);
    justify-content: center;
}
.contact__alt {
    font-size: var(--fs-sm);
    margin-top: var(--space-xl);
    color: rgba(253, 251, 247, 0.55);
}
.contact__alt a { color: var(--color-ocre); }

/* ── Footer ────────────────────────────────────────────────────────────── */

.site-footer {
    background: var(--factory-ink);
    color: var(--text-inverse-muted);
    border-top: 1px solid var(--factory-rule);
    padding: var(--space-3xl) 0 var(--space-xl);
}
.footer-grid {
    display: grid;
    grid-template-columns: 1.6fr 1fr 1fr 1fr;
    gap: var(--space-2xl) var(--space-xl);
}
.footer-brand img { width: 40px; margin-bottom: var(--space-md); }
.footer-brand__name {
    font-family: var(--font-heading);
    font-weight: var(--fw-bold);
    font-size: var(--fs-md);
    color: var(--text-inverse);
}
.footer-brand__name span { color: var(--color-ocre); }
.footer-brand p {
    font-size: var(--fs-sm);
    color: rgba(253, 251, 247, 0.55);
    margin-top: var(--space-sm);
    max-width: 34ch;
}
.footer-col h2 {
    font-family: var(--font-body);
    font-size: var(--fs-xs);
    font-weight: var(--fw-semibold);
    text-transform: uppercase;
    letter-spacing: var(--tracking-eyebrow);
    color: var(--color-ocre);
    margin-bottom: var(--space-md);
}
.footer-col li { margin-bottom: 0.6rem; }
.footer-col a {
    font-size: var(--fs-sm);
    color: rgba(253, 251, 247, 0.72);
    text-decoration: none;
    transition: color var(--transition-fast);
}
.footer-col a:hover { color: var(--color-ocre); }

.footer-base {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: var(--space-md);
    margin-top: var(--space-3xl);
    padding-top: var(--space-lg);
    border-top: 1px solid var(--factory-rule);
    font-size: var(--fs-xs);
    color: rgba(253, 251, 247, 0.45);
}
.footer-base a { color: rgba(253, 251, 247, 0.6); text-decoration: none; }
.footer-base a:hover { color: var(--color-ocre); }

/* ── Motion ────────────────────────────────────────────────────────────── */

/* Reveals are opt-in: the hidden state only applies once the inline head
   script has confirmed JS is running. Without it every .reveal stays visible,
   so no-JS visitors and non-rendering crawlers still get the full page. */
.js .reveal {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 600ms ease, transform 600ms ease;
}
.js .reveal.is-visible { opacity: 1; transform: none; }

.js .hero .reveal { transition-duration: 700ms; }
.js .hero__title.reveal  { transition-delay: 60ms; }
.js .hero__lead.reveal   { transition-delay: 150ms; }
.js .hero__actions.reveal{ transition-delay: 240ms; }

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    .js .reveal { opacity: 1; transform: none; }
    .btn:hover, .capability:hover, .eco-card:hover { transform: none; }
}

/* ── 404 ───────────────────────────────────────────────────────────────── */

.notfound {
    min-height: 70vh;
    display: grid;
    place-items: center;
    text-align: center;
    background: var(--factory-ink);
    color: var(--text-inverse-muted);
    padding: var(--space-4xl) var(--container-padding);
}
.notfound img { width: 84px; margin: 0 auto var(--space-xl); opacity: 0.9; }
.notfound h1 { color: var(--text-inverse); font-size: var(--fs-3xl); }
.notfound__code {
    font-family: var(--font-mono);
    font-size: var(--fs-sm);
    letter-spacing: 0.2em;
    color: var(--color-ocre);
    margin-bottom: var(--space-md);
}
.notfound__links { display: flex; flex-wrap: wrap; gap: var(--space-md); justify-content: center; margin-top: var(--space-xl); }

/* ── Responsive ────────────────────────────────────────────────────────── */

@media (max-width: 1024px) {
    .stat-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .proof { gap: var(--space-md) var(--space-xl); }
}

@media (max-width: 860px) {
    /* Header collapses to brand + hamburger; nav, language switcher and CTA
       all move inside the panel so nothing overlaps the wordmark. */
    .site-nav,
    .site-header__inner > .lang,
    .site-header__inner > .btn { display: none; }
    .hamburger { display: flex; }
    .site-header__inner { height: 64px; }
    html { scroll-padding-top: 76px; }
}

@media (max-width: 560px) {
    :root { --section-padding: 3.5rem 0; --container-padding: 1.25rem; }
    .stat-grid { grid-template-columns: 1fr; gap: var(--space-lg); }
    .footer-grid { grid-template-columns: 1fr; }
    .hero__actions .btn { width: 100%; justify-content: center; }
    .guarantee { padding: var(--space-lg); }
    .guarantee__actions { flex-direction: column; align-items: stretch; }
    .guarantee__actions .btn { justify-content: center; }
    .proof__link { white-space: normal; }
}
