/* ==========================================================================
   Listen too — styles
   Values come from the Figma file (1440px desktop frame, 1180px content).
   ========================================================================== */

/* ---------- Fonts ----------
   Design fonts: "WT Gothic" (sans) & "Didot" Italic (serif).
   Didot ships with macOS; Bodoni Moda (italic) is the self-hosted fallback. */
@font-face {
    font-family: 'WT Gothic';
    src: url('../fonts/wt-gothic-medium.woff2') format('woff2');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'WT Gothic';
    src: url('../fonts/wt-gothic-semi-bold.woff2') format('woff2');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'WT Gothic';
    src: url('../fonts/wt-gothic-bold.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Bodoni Moda';
    src: url('../fonts/bodoni-moda-italic.woff2') format('woff2');
    font-weight: 400 900;
    font-style: italic;
    font-display: swap;
}

/* ---------- Tokens ----------
   Dark ("nuit") is the default theme; light ("jour") overrides the color
   tokens below. The theme is set on <html data-theme> (see theme.js). */
:root {
    color-scheme: dark;

    --c-bg: #000;
    --c-surface: #1f1f1f; /* cards */
    --c-panel: #000; /* contact card */
    --c-footer: #1f1f1f;
    --c-border: rgba(255, 255, 255, 0.03);
    --c-text: #fff;
    --c-accent: #d3ef9d;
    --c-ink: #000; /* text on accent */
    --c-focus: var(--c-accent);
    --c-link-hover: var(--c-accent);
    --c-giant: rgba(255, 255, 255, 0.09);

    /* form */
    --c-field: #1f1f1f;
    --c-field-border: #8c8c8c; /* 6.2:1 on the panel, 4.9:1 on the field */
    --c-field-hover: #b3b3b3;
    --c-placeholder: #a8a8a8; /* 6.9:1 on the field */
    --c-error: #ff8a80; /* 9.2:1 on the panel */
    --select-arrow: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='%23fff' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M1 1.5 6 6.5l5-5'/%3E%3C/svg%3E");

    /* hero readability */
    --hero-scrim: radial-gradient(
            ellipse 40% 26% at 58% 75%,
            rgb(0 0 0 / 0.45),
            transparent 80%
        ),
        linear-gradient(
            rgb(0 0 0 / 0.1),
            rgb(0 0 0 / 0.45) 18%,
            rgb(0 0 0 / 0.45) 80%,
            rgb(0 0 0 / 0.1)
        );
    --hero-scrim-mobile: linear-gradient(
        to top,
        rgb(0 0 0 / 0.7) 15%,
        rgb(0 0 0 / 0.45) 55%,
        transparent 85%
    );
    --hero-shadow: 0 1px 2px rgb(0 0 0 / 0.35), 0 2px 28px rgb(0 0 0 / 0.45);

    /* monochrome artwork is exported white (dark theme) or lime */
    --img-mono: none; /* white logos & icons */
    --img-lime: none; /* lime artwork (OKTAV, role icons) */

    --f-sans: 'WT Gothic', system-ui, sans-serif;
    --f-serif: 'Didot', 'Bodoni Moda', 'Bodoni 72', serif;

    --container: 1180px;
    --gutter: 20px;
    --section-gap: calc(clamp(96px, 11.8vw, 170px) + 50px);
    --gap: 24px;
    --radius-card: 31px;
    --radius-btn: 16px;

    --fs-hero: clamp(2.25rem, 8.9vw, 8rem); /* 128px */
    --fs-h2: clamp(2rem, 3.5vw, 3.125rem); /* 50px  */
    --fs-h3: clamp(1.5rem, 2.25vw, 2rem); /* 32px  */
    --fs-lead: clamp(1.125rem, 1.7vw, 1.5rem); /* 24px  */
    --fs-body: 1rem; /* 16px  */

    --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

/* Light theme ("jour") — contrasts checked for WCAG AA */
:root[data-theme='light'] {
    color-scheme: light;

    --c-bg: #f4f4ef;
    --c-surface: #fff;
    --c-panel: #fff;
    --c-footer: #e8e8e1;
    --c-border: rgba(0, 0, 0, 0.08);
    --c-text: #111; /* 17.5:1 on the background */
    --c-focus: #111;
    --c-link-hover: #4a6310; /* 6.3:1 on the background */
    --c-giant: rgba(0, 0, 0, 0.06);

    --c-field: #f4f4ef;
    --c-field-border: #767676; /* 4.5:1 on the panel, 4.1:1 on the field */
    --c-field-hover: #4d4d4d;
    --c-placeholder: #666; /* 5.2:1 on the field */
    --c-error: #b3261e; /* 6.5:1 on the panel */
    --select-arrow: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='%23111' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M1 1.5 6 6.5l5-5'/%3E%3C/svg%3E");

    /* dark text reads on the whole light gradient: no scrim needed */
    --hero-scrim: none;
    --hero-scrim-mobile: none;
    --hero-shadow: none;

    --img-mono: invert(1); /* white → black */
    --img-lime: brightness(0); /* lime → black (lime is unreadable on light) */
}

/* Artwork exported in white or lime adapts to the theme (see --img-* tokens) */
.header__logo img,
.footer__brand a > img,
.footer__partners img,
.footer__labels li:first-child img,
.chip img,
.refs__clients img,
.hero__scroll img,
.human__visual > img {
    filter: var(--img-mono);
}

.oktav__logo img,
.role__icon {
    filter: var(--img-lime);
}

[data-theme='light'] .hero {
    background-image: none;
} /* the fallback image is dark */

/* Theme switch transition (View Transitions API, see theme.js):
   the old page stays still while the new theme is revealed on top. */
::view-transition-old(root),
::view-transition-new(root) {
    mix-blend-mode: normal;
}

html.is-theme-switching::view-transition-old(root),
html.is-theme-switching::view-transition-new(root) {
    animation: none;
}

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

* {
    margin: 0;
    padding: 0;
}

html {
    overflow-x: clip;
    -webkit-text-size-adjust: 100%;
    scroll-padding-top: 112px;
}
html:not(.lenis) {
    scroll-behavior: smooth;
} /* Lenis handles it when active */

/* Lenis (smooth scroll) */
html.lenis,
html.lenis body {
    height: auto;
}
.lenis.lenis-stopped {
    overflow: clip;
}
.lenis.lenis-smooth iframe {
    pointer-events: none;
}

body {
    min-height: 100vh;
    background: var(--c-bg);
    color: var(--c-text);
    font-family: var(--f-sans);
    font-size: var(--fs-body);
    font-weight: 600;
    line-height: 1.4;
    -webkit-font-smoothing: antialiased;
    overflow-x: clip;
}

img {
    display: block;
    max-width: 100%;
    height: auto;
}
ul,
ol {
    list-style: none;
}
a {
    color: inherit;
    text-decoration: none;
}
em {
    font-style: normal;
}
address {
    font-style: normal;
}

:focus-visible {
    outline: 2px solid var(--c-focus);
    outline-offset: 3px;
}

/* Lime blocks: the lime focus ring would be invisible there */
.contact :focus-visible {
    outline-color: var(--c-ink);
}

/* ---------- Layout ---------- */
.container {
    width: 100%;
    max-width: calc(var(--container) + var(--gutter) * 2);
    margin-inline: auto;
    padding-inline: var(--gutter);
}

.section {
    padding-top: var(--section-gap);
}

/* ---------- Typography ---------- */
.title {
    font-size: var(--fs-h2);
    font-weight: 600;
    line-height: 1.1;
}

.serif {
    display: block;
    font-family: var(--f-serif);
    font-style: italic;
    font-weight: 400;
    line-height: 1.4;
    letter-spacing: -0.06em;
}

.lead {
    font-size: var(--fs-lead);
    line-height: 1.4;
}

.heading {
    margin-bottom: 25px;
}

/* ---------- Components ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 16px 32px;
    border-radius: var(--radius-btn);
    background: var(--c-accent);
    color: var(--c-ink);
    font-weight: 700;
    line-height: 24px;
    white-space: nowrap;
    transition: transform 0.3s var(--ease), filter 0.3s var(--ease);
}

.btn:hover {
    transform: translateY(-2px);
    filter: brightness(1.06);
}
.btn--light {
    background: #fff;
}

.btn__icon {
    width: 20px;
    height: 20px;
    transition: transform 0.3s var(--ease);
}
.btn:hover .btn__icon {
    transform: translate(2px, -2px);
}

.badge {
    display: inline-block;
    align-self: flex-start;
    padding: 8px 16px;
    border-radius: 32px;
    background: var(--c-accent);
    color: var(--c-ink);
    font-weight: 700;
    line-height: 24px;
    white-space: nowrap;
}

.card {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 40px;
    border: 1px solid var(--c-border);
    border-radius: var(--radius-card);
    background: var(--c-surface);
}

.card__title {
    font-size: var(--fs-lead);
    line-height: 1.4;
}
.card__text {
    font-weight: 500;
    line-height: 24px;
}

/* ==========================================================================
   Header
   ========================================================================== */
.header {
    position: fixed;
    inset: 0 0 auto;
    z-index: 10;
    padding-block: 40px 16px;
    transition: background-color 0.2s;
}

.header.is-scrolled {
    background-color: var(--c-bg);
}

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

.header__logo {
    margin-right: auto;
}
.header__logo img {
    width: 126px;
}

/* Theme switch (nuit / jour) — wired by assets/js/theme.js */
.theme-toggle {
    position: relative;
    z-index: 2; /* stays usable above the mobile menu */
    flex: none;
    margin: -4px;
    padding: 4px;
    border: 0;
    border-radius: 999px;
    background: none;
    color: var(--c-text);
    cursor: pointer;
}

.theme-toggle__track {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 60px;
    height: 32px;
    padding: 0 8px;
    border: 1px solid color-mix(in srgb, var(--c-text) 40%, transparent);
    border-radius: 999px;
    background: color-mix(in srgb, var(--c-text) 8%, transparent);
    transition: border-color 0.3s;
}

.theme-toggle:hover .theme-toggle__track {
    border-color: var(--c-text);
}

.theme-toggle__thumb {
    position: absolute;
    top: 3px;
    left: 3px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--c-accent);
    box-shadow: 0 2px 8px rgb(0 0 0 / 0.3);
    transition: translate 0.5s var(--ease);
}

.theme-toggle[aria-checked='true'] .theme-toggle__thumb {
    translate: 28px 0;
}

.theme-toggle__icon {
    position: relative;
    z-index: 1; /* above the thumb */
    width: 14px;
    height: 14px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    opacity: 0.6;
    transition: color 0.3s, opacity 0.3s, rotate 0.6s var(--ease);
}

.theme-toggle__icon--moon {
    fill: currentColor;
    stroke: none;
}

/* The active icon sits inside the lime thumb */
.theme-toggle[aria-checked='false'] .theme-toggle__icon--moon,
.theme-toggle[aria-checked='true'] .theme-toggle__icon--sun {
    color: var(--c-ink);
    opacity: 1;
}

.theme-toggle[aria-checked='true'] .theme-toggle__icon--sun {
    rotate: 90deg;
}

.nav {
    display: flex;
    gap: 40px;
}

.nav__link {
    position: relative;
    font-weight: 700;
    line-height: 24px;
}

.nav__link::after {
    content: '';
    position: absolute;
    inset: auto 0 0;
    height: 1px;
    background: currentColor;
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.3s var(--ease);
}

.nav__link:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

/* Burger (mobile only) — toggled by assets/js/main.js */
.burger {
    position: relative;
    z-index: 2;
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 8px;
    width: 44px;
    height: 44px;
    margin-right: -10px;
    padding: 10px;
    border: 0;
    background: none;
    cursor: pointer;
}

.burger span {
    display: block;
    height: 2px;
    background: var(--c-text);
    border-radius: 2px;
    transition: transform 0.4s var(--ease);
}

.is-menu-open .burger span:first-child {
    transform: translateY(5px) rotate(45deg);
}
.is-menu-open .burger span:last-child {
    transform: translateY(-5px) rotate(-45deg);
}

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
    position: relative;
    display: flex;
    align-items: center;
    min-height: min(100svh, 957px);
    padding-block: 140px 120px;
    background: var(--c-bg) url('../img/hero-bg.webp') center / cover no-repeat; /* fallback */
    isolation: isolate;
}

/* Animated liquid gradient (assets/js/liquid-gradient.js) */
.hero__canvas {
    position: absolute;
    inset: 0;
    z-index: -1;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1.2s var(--ease);
}

.hero__canvas.is-ready {
    opacity: 1;
}

/* Readability scrim: darkens the gradient behind the text only,
   the edges keep the full silk effect. Painted above the canvas. */
.hero::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background: var(--hero-scrim); /* title band + paragraph, see tokens */
}

.hero__title,
.hero__text {
    text-shadow: var(--hero-shadow);
}

.hero__title {
    display: flex;
    flex-direction: column;
    font-size: var(--fs-hero);
    font-weight: 600;
    line-height: 0.95;
}

.hero__line--serif {
    margin-block: 0.02em -0.02em;
    padding-left: 0.586em; /* 75px @128px */
    font-family: var(--f-serif);
    font-style: italic;
    font-weight: 400;
    font-size: 1.133em; /* 145px */
    white-space: nowrap;
}

.hero__line--end {
    align-self: flex-end;
}

.hero__text {
    max-width: 468px;
    margin: 24px 118px 0 auto;
    font-weight: 500;
    line-height: 24px;
}

.hero__scroll {
    position: absolute;
    bottom: 27px;
    left: 50%;
    translate: -50% 0;
    animation: bounce 2.4s var(--ease) infinite;
}

@keyframes bounce {
    50% {
        transform: translateY(8px);
    }
}

/* ==========================================================================
   Accroche
   ========================================================================== */
.hook {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
    max-width: 985px;
}

.hook .btn {
    margin-top: 8px;
}

/* ==========================================================================
   Piliers
   ========================================================================== */
.pillars {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    align-items: start;
}

.pillars__intro {
    display: grid;
    gap: 24px;
}

.pillar {
    display: flex;
    flex-direction: column;
    padding-block: 32px;
    border-bottom: 1px solid var(--c-text);
}

.pillar:first-child {
    padding-top: 0;
}

.pillar__name {
    margin-top: 16px;
    font-family: var(--f-serif);
    font-style: italic;
    font-weight: 400;
    font-size: var(--fs-h2);
    line-height: 1.4;
    letter-spacing: -0.06em;
}

.pillar__subtitle {
    margin-top: 4px;
    font-size: var(--fs-lead);
}

.pillar__text {
    margin-top: 24px;
    font-weight: 500;
    line-height: 24px;
}

/* ==========================================================================
   Collectif
   ========================================================================== */
.roles {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--gap);
}

.role {
    min-height: 364px;
}

.role__icon {
    width: 80px;
    height: 80px;
}

/* ==========================================================================
   CX is human
   ========================================================================== */
.human {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 80px;
    padding-block: 80px;
}

.human__content {
    display: grid;
    gap: 24px;
    max-width: 770px;
}

.human__visual {
    flex: none;
    width: 330px;
}

/* Interactive particles (assets/js/text-particles.js) replace the image */
.human__visual.is-live {
    position: relative;
}
.human__visual.is-live img {
    display: none;
}
.text-particles {
    position: absolute;
    pointer-events: none;
}

/* ==========================================================================
   OKTAV
   ========================================================================== */
.oktav__head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
}

.oktav__logo {
    width: 627px;
    max-width: 70%;
}
.oktav__head .btn {
    margin-top: 33px;
}

.oktav__intro {
    display: grid;
    gap: 1.4em;
    max-width: 543px;
    margin: 50px 0 0 auto;
}

.steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    margin-top: 80px;
}

.step__title {
    font-family: var(--f-serif);
    font-style: italic;
    font-weight: 400;
    font-size: min(var(--fs-h2), 3vw);
    line-height: 1.4;
    letter-spacing: -0.06em;
}

.step__text {
    margin-top: 4px;
    line-height: 1.6;
}

/* ==========================================================================
   Équipe
   ========================================================================== */
.team {
    display: grid;
    grid-template-columns: minmax(0, 380fr) minmax(0, 376fr) minmax(0, 376fr);
    gap: var(--gap);
    margin-top: 7px;
}

.team__wide {
    grid-column: span 2;
}
.team__tall {
    grid-row: span 2;
}

.quote {
    gap: 24px;
    min-height: 234px;
}

/* Long job titles wrap inside the badge instead of widening the card */
.quote .badge {
    max-width: 100%;
    white-space: normal;
}
.quote .card__title + .card__text {
    margin-top: -16px;
} /* name → quote: 8px */

.join {
    gap: 24px;
}

.join__title {
    font-size: var(--fs-h3);
    line-height: 1.1;
}

.join__list {
    display: grid;
    gap: 16px;
}

.join__item {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.join__icon {
    flex: none;
    width: 44px;
    height: 44px;
    border-radius: 16px;
    background: var(--c-accent);
}

.join__label {
    font-size: 18px;
    font-weight: 700;
    line-height: 24px;
    margin-bottom: 4px;
}

/* ==========================================================================
   Références (secteurs + clients)
   ========================================================================== */
.refs__text {
    line-height: 1.1;
}

.marquee {
    --duration: 40s;
    display: flex;
    overflow: hidden;
}

.marquee__track {
    display: flex;
    flex: none;
    align-items: center;
    gap: var(--track-gap, 24px);
    padding-right: var(--track-gap, 24px);
    animation: marquee var(--duration) linear infinite;
}

.marquee--reverse .marquee__track {
    animation-direction: reverse;
}
.marquee:hover .marquee__track {
    animation-play-state: paused;
}

@keyframes marquee {
    to {
        transform: translateX(-100%);
    }
}

.refs__sectors {
    margin-top: 74px;
}

.chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 16px 40px;
    border: 2px solid var(--c-text);
    border-radius: 81px;
    font-size: var(--fs-lead);
    white-space: nowrap;
}

.chip img {
    width: 24px;
    height: 24px;
}

.refs__clients {
    --track-gap: 60px;
    margin-top: 15px;
}
.refs__clients .marquee__track {
    min-height: 64px;
}

/* ==========================================================================
   Contact
   ========================================================================== */
.contact {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
    padding: 60px;
    border-radius: 32px;
    background: var(--c-accent);
    color: var(--c-ink);
}

/* ==========================================================================
   Footer
   ========================================================================== */
.footer {
    overflow: hidden;
    margin-top: var(--section-gap);
    background: var(--c-footer);
}

.footer__top {
    display: flex;
    justify-content: space-between;
    gap: 24px;
    padding-block: 72px 132px;
}

.footer__brand {
    display: grid;
    gap: 32px;
    justify-items: start;
}

.footer__slogan {
    margin-top: 8px;
}

.footer__partners,
.footer__labels {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 24px;
}

.footer__labels {
    gap: 12px;
}

/* Compensate the asset's 28px transparent left inset at its 74px display size. */
.footer__labels li:first-child img {
    transform: translateX(-14px);
}

.footer__partners a {
    display: block;
    transition: opacity 0.2s;
}
.footer__partners a:hover {
    opacity: 0.7;
}

.footer__offices {
    display: flex;
    gap: 24px;
}

.footer__city {
    font-size: var(--fs-body);
    font-weight: 700;
    margin-bottom: 8px;
}

.footer__bottom {
    display: flex;
    justify-content: space-between;
    gap: 24px;
    padding-block: 32px;
}

.footer__giant {
    margin-top: clamp(-72px, -5vw, -24px);
    margin-bottom: 0;
    padding-bottom: 24px;
    font-family: var(--f-serif);
    font-style: italic;
    font-weight: 400;
    font-size: clamp(4rem, 16.25vw, 14.625rem); /* 234px */
    line-height: 1.4;
    letter-spacing: -0.06em;
    text-align: center;
    white-space: nowrap;
    color: var(--c-giant);
    user-select: none;
}

/* ==========================================================================
   Contact page (contact.html)
   ========================================================================== */
.contact-page {
    position: relative;
    padding-block: 160px 40px;
    isolation: isolate;
}

.contact-page .hero__canvas {
    height: min(100svh, 960px);
    mask-image: linear-gradient(#000 55%, transparent);
}

.contact-card {
    position: relative;
    max-width: 740px;
    margin-inline: auto;
    padding: 32px;
    border-radius: 24px;
    background: var(--c-panel);
}

.contact-card__title {
    padding-right: 44px;
    font-size: clamp(2.5rem, 4.5vw, 3.125rem);
    line-height: 1.1;
}

.contact-card__intro {
    margin-top: 4px;
    font-weight: 500;
}

.contact-card__close {
    position: absolute;
    top: 16px;
    right: 16px;
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border-radius: 8px;
}

.contact-card__close svg {
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
}

.form__asterisk {
    color: var(--c-error);
}

.form {
    margin-top: 24px;
}

.form__required {
    margin-bottom: 20px;
    font-weight: 500;
}

.form__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px 20px;
}

.form__field {
    display: grid;
    align-content: start;
    gap: 10px;
}
.form__field--full {
    grid-column: 1 / -1;
}

.form__field label {
    font-size: 1rem;
}

/* Field colors meet WCAG AA in both themes (see tokens) */
.form__field input,
.form__field select,
.form__field textarea {
    width: 100%;
    min-height: 44px;
    padding: 10px 12px;
    border: 1px solid var(--c-field-border);
    border-radius: 8px;
    background: var(--c-field);
    color: var(--c-text);
    font: 500 0.9375rem/1.4 var(--f-sans);
    transition: border-color 0.2s, box-shadow 0.2s;
}

.form__field textarea {
    min-height: 100px;
    resize: vertical;
}

.form__field select {
    appearance: none;
    padding-right: 36px;
    background: var(--c-field) var(--select-arrow) no-repeat right 14px center;
    cursor: pointer;
}

.form__field select:invalid {
    color: var(--c-placeholder);
} /* placeholder option */
.form__field select option {
    color: var(--c-text);
    background: var(--c-field);
}

.form__field ::placeholder {
    color: var(--c-placeholder);
    opacity: 1;
}

.form__field :is(input, select, textarea):hover {
    border-color: var(--c-field-hover);
}

/* Focus: 2px ring (lime on dark, ink on light) */
.form__field :is(input, select, textarea):focus {
    outline: none;
    border-color: var(--c-focus);
    box-shadow: 0 0 0 1px var(--c-focus);
}

.form__field [aria-invalid='true'] {
    border-color: var(--c-error);
    box-shadow: 0 0 0 1px var(--c-error);
}

/* Error message under a field (created by assets/js/main.js) — 9.2:1 on black */
.form__error {
    display: flex;
    gap: 6px;
    color: var(--c-error);
    font-size: 0.9375rem;
    font-weight: 500;
    line-height: 1.35;
}

.form__error::before {
    content: '⚠' / '';
    flex: none;
} /* icon hidden from screen readers */

.form__honeypot {
    position: absolute;
    left: -9999px;
}

.form__submit {
    width: 100%;
    min-height: 56px;
    margin-top: 24px;
    border: 0;
    border-radius: 12px;
    background: var(--c-accent);
    color: var(--c-ink);
    font: 600 1rem var(--f-sans);
    cursor: pointer;
    transition: filter 0.2s;
}

.form__submit:hover {
    filter: brightness(1.06);
}

.form__legal {
    margin-top: 24px;
    font-weight: 500;
    line-height: 1.25;
}

.form__legal a {
    text-decoration: underline;
    text-underline-offset: 2px;
}

.form__success {
    display: grid;
    gap: 12px;
    justify-items: start;
    margin-top: 32px;
}
.form__success[hidden] {
    display: none;
}
.form__success-title {
    font-size: var(--fs-lead);
}
.form__success .btn {
    margin-top: 12px;
}

/* ==========================================================================
   Legal page (mentions-legales.html)
   ========================================================================== */
.legal {
    max-width: calc(820px + var(--gutter) * 2);
    padding-top: 180px;
    font-weight: 500;
    line-height: 1.6;
}

.legal__title {
    margin-bottom: 32px;
    font-size: var(--fs-h2);
    font-weight: 600;
    line-height: 1.1;
}

.legal__title--h2 {
    margin-top: 80px;
}

.legal__block {
    display: grid;
    gap: 16px;
}
.legal__block + .legal__block {
    margin-top: 40px;
}

.legal h3 {
    font-size: var(--fs-lead);
    font-weight: 600;
    line-height: 1.3;
}

.legal a {
    text-decoration: underline;
    text-underline-offset: 3px;
}
.legal a:hover {
    color: var(--c-link-hover);
}

.legal__list {
    display: grid;
    gap: 6px;
    padding-left: 1.2em;
    list-style: disc;
}

.legal__list li::marker {
    color: var(--c-link-hover);
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1100px) {
    .roles {
        grid-template-columns: repeat(2, 1fr);
    }

    .team {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .team__wide {
        grid-column: auto;
    }
    .team__tall {
        grid-row: span 2;
    }

    .hero__text {
        margin-right: 0;
    }

    .footer__top {
        flex-direction: column;
        gap: 48px;
        padding-bottom: 72px;
    }
}

@media (max-width: 860px) {
    :root {
        --gap: 16px;
    }

    .pillars,
    .steps {
        grid-template-columns: 1fr;
    }

    .pillars {
        gap: 48px;
    }

    .human {
        flex-direction: column;
        align-items: flex-start;
        padding-block: 0;
        gap: 48px;
    }
    .human__visual {
        align-self: center;
        width: min(330px, 80%);
    }

    .oktav__head {
        flex-direction: column;
        gap: 32px;
    }
    .oktav__logo {
        max-width: 100%;
    }
    .oktav__head .btn {
        margin-top: 0;
    }
    .oktav__intro {
        margin-left: 0;
    }
    .steps {
        margin-top: 56px;
        gap: 24px;
    }
    .step__title {
        font-size: var(--fs-h2);
    }

    .refs__sectors {
        margin-top: 48px;
    }
}

@media (max-width: 640px) {
    html {
        scroll-padding-top: 96px;
    }
    .header {
        padding-block: 24px 12px;
    }
    .header__inner {
        gap: 20px;
    }
    .header__logo {
        position: relative;
        z-index: 2;
    }

    /* Burger menu: full-screen panel */
    .burger {
        display: flex;
    }

    .nav {
        position: fixed;
        inset: 0;
        z-index: 1;
        flex-direction: column;
        justify-content: center;
        gap: 24px;
        padding: 96px var(--gutter) 48px;
        background: var(--c-bg);
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.4s var(--ease), visibility 0.4s;
    }

    .nav__link {
        font-size: 2rem;
        line-height: 1.2;
        translate: 0 16px;
        transition: translate 0.5s var(--ease);
    }

    .nav__link::after {
        display: none;
    }

    .is-menu-open .nav {
        opacity: 1;
        visibility: visible;
    }
    .is-menu-open .nav__link {
        translate: none;
    }
    .is-menu-open .nav__link + .nav__link {
        transition-delay: 0.06s;
    }

    /* Hero: bigger title, text anchored to the bottom */
    .hero {
        align-items: flex-end;
        min-height: 100svh;
        padding-block: 120px 104px;
        background-position: 60% center;
    }

    /* Text sits at the bottom on mobile: darken from the bottom up */
    .hero::after {
        background: var(--hero-scrim-mobile);
    }

    .hero__title {
        font-size: 10.6vw;
        line-height: 1;
    }
    .hero__line--serif {
        padding-left: 0;
        margin-block: 0.06em 0;
    }
    .hero__line--end {
        align-self: flex-start;
        margin-top: 0.04em;
    } /* all lines left-aligned */

    .hero__scroll {
        left: calc(var(--gutter) - 8px);
        translate: none;
    } /* the icon has an 8px inset */

    .hero__text {
        max-width: none;
        margin: 28px 0 0;
        font-size: 1.0625rem;
        line-height: 1.5;
    }

    .card {
        padding: 32px 24px;
    }
    .roles,
    .team {
        grid-template-columns: 1fr;
    }
    .role {
        min-height: 0;
    }
    .team__tall {
        grid-row: auto;
    }
    .quote {
        min-height: 0;
    }

    .chip {
        padding: 12px 28px;
    }
    .refs__clients {
        --track-gap: 40px;
    }

    .contact {
        padding: 40px 24px;
    }

    .contact-page {
        padding-top: 104px;
    }
    .legal {
        padding-top: 120px;
    }
    .legal__title--h2 {
        margin-top: 56px;
    }
    .contact-card {
        padding: 28px 20px;
    }
    .form__grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .form__field :is(input, select, textarea) {
        font-size: 1rem;
    } /* no iOS zoom on focus */

    .footer__offices {
        flex-direction: column;
    }
    .footer__bottom {
        flex-direction: column;
    }
}

/* ==========================================================================
   Motion (assets/js/motion.js)
   ========================================================================== */
@media (prefers-reduced-motion: no-preference) {
    /* Scroll reveals — the .reveal class is only added by JS */
    .reveal {
        opacity: 0;
    }

    .reveal.is-revealed {
        animation: reveal 1.1s var(--ease) var(--reveal-delay, 0ms) both;
    }

    /* Hero intro, played on load */
    .header,
    .hero__line,
    .hero__text,
    .hero__scroll img {
        animation: intro-rise 1.2s var(--ease) both;
    }

    .header {
        animation-name: intro-fade;
        animation-delay: 0.6s;
    }
    .hero__line:nth-child(1) {
        animation-delay: 0.15s;
    }
    .hero__line:nth-child(2) {
        animation-delay: 0.3s;
    }
    .hero__line:nth-child(3) {
        animation-delay: 0.45s;
    }
    .hero__text {
        animation-delay: 0.7s;
    }
    .hero__scroll img {
        animation-delay: 0.9s;
    }
}

/* `translate` (not `transform`) so hover transforms keep working */
@keyframes reveal {
    from {
        opacity: 0;
        translate: 0 48px;
    }
    to {
        opacity: 1;
        translate: none;
    }
}

@keyframes intro-rise {
    from {
        opacity: 0;
        translate: 0 60px;
    }
}

@keyframes intro-fade {
    from {
        opacity: 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    *,
    *::before,
    *::after {
        animation: none !important;
        transition: none !important;
    }
}
