/*
 * Germinator Space — design system of the redesign.
 *
 * Tokens first, then base, then one block per component. The dark tokens are
 * written twice on purpose: once for visitors whose system is dark and who
 * never picked a theme (also the no-JS path), once for an explicit choice.
 */

/* ========================================================================
   Tokens
   ======================================================================== */

:root {
    --bg: #ffffff;
    --bg-glass: rgba(255, 255, 255, .92);
    --card: #f6f8fa;
    --ink: #2c353f;
    --ink-2: #45505b;
    --line: rgba(69, 80, 91, .18);
    --accent: #0563bb;
    --accent-warm: #9a5b2e;
    /* Filled surfaces with white text keep the light brown in both themes:
       the dark theme's #c38752 gives white text 3.1:1, under AA. */
    --warm-solid: #9a5b2e;
    --inv-bg: #0563bb;
    --inv-ink: #ffffff;
    --inv-line: rgba(128, 128, 128, .35);
    --inv-icon: #e9c9a8;
    --tile: #f6f8fa;
    --band-bg: #0f0f0f;
    --band-ink: #f2ebdd;
    --band-muted: #a7a193;
    --busy: #d15d4d;
    --free: #2e9e5b;

    --serif: 'Newsreader', Georgia, 'Times New Roman', serif;
    --sans: 'Manrope', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    --mono: 'JetBrains Mono', ui-monospace, Menlo, Consolas, monospace;

    /* 20px at 390 → 100px at 1440, the two widths of the mockups */
    --gutter: clamp(20px, 7.62vw - 9.7px, 100px);
    --content: 1240px;
    --pad-x: max(var(--gutter), calc((100% - var(--content)) / 2));
    --section-gap: clamp(40px, 6.67vw + 14px, 110px);
    --radius: 10px;

    color-scheme: light;
}

@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) {
        --bg: #12171d;
        --bg-glass: rgba(18, 23, 29, .9);
        --card: #19202a;
        --ink: #e9edf1;
        --ink-2: #a9b3bd;
        --line: rgba(233, 237, 241, .14);
        --accent: #5ea6ef;
        --accent-warm: #c38752;
        color-scheme: dark;
    }
}

:root[data-theme="dark"] {
    --bg: #12171d;
    --bg-glass: rgba(18, 23, 29, .9);
    --card: #19202a;
    --ink: #e9edf1;
    --ink-2: #a9b3bd;
    --line: rgba(233, 237, 241, .14);
    --accent: #5ea6ef;
    --accent-warm: #c38752;
    color-scheme: dark;
}

/* ========================================================================
   Base
   ======================================================================== */

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

html {
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
    scroll-padding-top: 96px;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--ink);
    font: 400 16px/1.6 var(--sans);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6, p, dl, dd, figure, blockquote, ol, ul {
    margin: 0;
}

img {
    display: block;
    max-width: 100%;
}

a {
    color: var(--accent);
    text-decoration: none;
    transition: color .15s ease;
}

a:hover {
    color: var(--ink);
}

button {
    font: inherit;
    color: inherit;
}

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

::selection {
    background: var(--accent);
    color: #fff;
}

[hidden] {
    display: none !important;
}

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

.skip-link {
    position: absolute;
    top: 8px;
    left: 8px;
    z-index: 100;
    padding: 10px 16px;
    border-radius: 999px;
    background: var(--inv-bg);
    color: var(--inv-ink);
    font: 600 14px var(--sans);
    transform: translateY(-160%);
    transition: transform .2s ease;
}

.skip-link:focus {
    color: var(--inv-ink);
    transform: none;
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
    }
}

/* ========================================================================
   Type helpers
   ======================================================================== */

.eyebrow {
    font: 500 12px/1.3 var(--mono);
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--ink-2);
}

.eyebrow--sm {
    font-size: 11px;
    letter-spacing: .08em;
}

.eyebrow--accent {
    color: var(--accent);
}

.caption {
    font: 500 11px/1.4 var(--mono);
    color: var(--ink-2);
}

.dot {
    flex: none;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent-warm);
}

.dot--busy {
    background: var(--busy);
}

.dot--free {
    background: var(--free);
}

/* ========================================================================
   Buttons
   ======================================================================== */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 20px;
    border: 1px solid transparent;
    border-radius: 999px;
    font: 600 14px/1 var(--sans);
    white-space: nowrap;
    cursor: pointer;
    transition: background-color .15s ease, border-color .15s ease, color .15s ease, transform .15s ease;
}

.btn--primary {
    background: var(--inv-bg);
    color: var(--inv-ink);
}

.btn--primary:hover {
    color: var(--inv-ink);
    filter: brightness(.9);
}

.btn--ghost {
    border-color: var(--line);
    background: transparent;
    color: var(--ink);
}

.btn--ghost:hover {
    border-color: var(--ink-2);
    color: var(--ink);
}

.btn--warm {
    background: var(--warm-solid);
    color: #fff;
}

.btn--warm:hover {
    color: #fff;
    filter: brightness(.92);
}

.icon-btn {
    flex: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border: 1px solid var(--line);
    border-radius: 50%;
    background: transparent;
    color: var(--ink);
    font-size: 18px;
    cursor: pointer;
    transition: border-color .15s ease;
}

.icon-btn:hover {
    border-color: var(--ink-2);
}

/* The toggle needs JS: without it there is nothing to switch. */
html:not(.js) .theme-toggle {
    display: none;
}

.theme-toggle .bx-sun,
:root[data-theme="dark"] .theme-toggle .bx-moon {
    display: none;
}

:root[data-theme="dark"] .theme-toggle .bx-sun {
    display: inline-block;
}

/* ========================================================================
   Header
   ======================================================================== */

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    display: flex;
    align-items: center;
    gap: clamp(24px, 6.67vw - 56px, 40px);
    padding: 22px var(--pad-x);
    border-bottom: 1px solid var(--line);
    background: var(--bg-glass);
    -webkit-backdrop-filter: saturate(1.4) blur(12px);
    backdrop-filter: saturate(1.4) blur(12px);
}

.brand {
    flex: none;
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--ink);
}

.brand:hover {
    color: var(--ink);
}

.brand img {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
}

.brand span {
    font: 500 24px/1 var(--serif);
    letter-spacing: -.01em;
}

.site-header__menu {
    display: contents;
}

.site-nav {
    order: 1;
    display: flex;
    align-items: center;
    gap: clamp(20px, 3.33vw - 20px, 28px);
    font: 500 14px/1 var(--sans);
}

.site-nav a {
    color: var(--ink-2);
}

.site-nav a:hover,
.site-nav a[aria-current] {
    color: var(--ink);
}

.site-header__spacer {
    order: 2;
    flex: 1;
}

.site-header__extra {
    order: 3;
    display: flex;
    align-items: center;
    gap: 16px;
}

.site-header .lang-switch {
    order: 4;
}

.site-header .theme-toggle {
    order: 5;
}

.site-header__cta {
    order: 6;
}

.site-header__burger {
    display: none;
    order: 7;
    width: 40px;
    height: 40px;
    margin-right: -8px;
    border: 0;
    background: transparent;
    color: var(--ink);
    font-size: 26px;
    cursor: pointer;
}

.site-header__burger .bx-x,
.nav-open .site-header__burger .bx-menu {
    display: none;
}

.nav-open .site-header__burger .bx-x {
    display: inline-block;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font: 500 14px var(--sans);
    color: var(--ink-2);
}

.lang-switch {
    flex: none;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* The current language at full strength, the other one dimmed until
   pointed at, as the ink / ink-2 pair did for the letters. */
.lang-switch a {
    display: flex;
    border-radius: 3px;
    opacity: .45;
    transition: opacity .15s ease;
}

.lang-switch a:hover,
.lang-switch a:focus-visible,
.lang-switch a[aria-current] {
    opacity: 1;
}

/* The ring keeps the white of both flags from melting into a light bar. */
.lang-switch img {
    display: block;
    width: 20px;
    height: 15px;
    border-radius: 3px;
    box-shadow: 0 0 0 1px var(--line);
}

@media (max-width: 1200px) {
    .site-header {
        gap: 12px;
        padding-block: 16px;
    }

    .brand img {
        width: 30px;
        height: 30px;
    }

    .brand span {
        font-size: 20px;
    }

    .brand {
        margin-right: auto;
    }

    .site-header__burger {
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    /* A 20 px flag is a small target: widen what the finger can hit, and
       take the padding back from the gap so the flags stay 10 px apart. */
    .lang-switch {
        gap: 2px;
    }

    .lang-switch a {
        padding: 12px 4px;
    }

    .site-header__menu {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        display: none;
        flex-direction: column;
        align-items: stretch;
        gap: 20px;
        padding: 8px var(--gutter) 28px;
        border-bottom: 1px solid var(--line);
        background: var(--bg);
        box-shadow: 0 24px 40px -24px rgba(0, 0, 0, .25);
        max-height: calc(100dvh - 72px);
        overflow-y: auto;
    }

    .nav-open .site-header__menu {
        display: flex;
    }

    .site-nav {
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        font-size: 18px;
    }

    .site-nav a,
    .site-nav span {
        display: block;
        padding: 14px 0;
        border-bottom: 1px solid var(--line);
    }

    .site-header__spacer {
        display: none;
    }

    .site-header__menu .theme-toggle {
        align-self: flex-start;
    }

    .site-header__cta {
        align-self: stretch;
        padding-block: 16px;
    }
}

/* ========================================================================
   Sections
   ======================================================================== */

.section {
    display: flex;
    flex-direction: column;
    gap: 40px;
    padding: var(--section-gap) var(--pad-x) 0;
}

.section--roomy {
    gap: 48px;
}

.section-head {
    display: flex;
    align-items: baseline;
    gap: 20px;
}

.section-head__num {
    flex: none;
    font: 500 13px var(--mono);
    color: var(--accent);
}

.section-head__title {
    font: 400 clamp(36px, 1.905vw + 28.57px, 56px)/1 var(--serif);
    letter-spacing: -.02em;
}

.section-head__title small {
    font: italic 400 .72em var(--serif);
    color: var(--ink-2);
}

.section-head__rule {
    flex: 1;
    align-self: center;
    height: 1px;
    background: var(--line);
}

.section-head__link {
    flex: none;
    display: flex;
    align-items: center;
    gap: 6px;
    font: 600 14px var(--sans);
}

.lead {
    max-width: 720px;
    font: 400 18px/1.6 var(--sans);
    color: var(--ink-2);
}

@media (max-width: 640px) {
    .section-head {
        gap: 12px;
        flex-wrap: wrap;
    }

    .section-head__num {
        font-size: 11px;
    }

    .section-head__rule {
        display: none;
    }

    .section-head__link {
        flex-basis: 100%;
    }

    .lead {
        font-size: 16px;
    }
}

/* ========================================================================
   Plates (figures with a mono caption)
   ======================================================================== */

.plate {
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-width: 0;
}

.plate img {
    width: 100%;
    height: auto;
    border-radius: 6px;
    object-fit: cover;
}

.plate figcaption {
    display: flex;
    justify-content: space-between;
    gap: 16px;
}

/* ========================================================================
   Home — hero
   ======================================================================== */

.hero {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
    align-items: center;
    gap: 40px;
    padding: 72px var(--pad-x) 40px;
}

.hero__text {
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.hero__eyebrow {
    display: flex;
    align-items: center;
    gap: 10px;
}

.hero__name {
    font: 400 clamp(58px, 5.52vw + 36.5px, 116px)/.92 var(--serif);
    letter-spacing: -.035em;
}

.hero__name span {
    display: block;
}

.hero__tagline {
    font: 400 clamp(21px, .857vw + 17.66px, 30px)/1.3 var(--serif);
    color: var(--ink-2);
}

.hero__tagline em {
    color: var(--ink);
}

.hero__tagline .hero__role {
    display: inline-grid;
    color: var(--accent);
    font-style: italic;
}

.hero__role > span {
    grid-area: 1 / 1;
    justify-self: start;
    border-bottom: 2px solid var(--accent-warm);
    opacity: 0;
    visibility: hidden;
    transition: opacity .25s ease, visibility .25s ease;
}

.hero__role > span.is-active {
    opacity: 1;
    visibility: visible;
}

.hero__ctas {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin-top: 12px;
}

.cta-card {
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 20px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--card);
    color: var(--ink);
    transition: border-color .15s ease, transform .15s ease;
}

.cta-card:hover {
    color: var(--ink);
    border-color: var(--accent);
    transform: translateY(-2px);
}

.cta-card__label {
    font: 600 17px/1.3 var(--sans);
}

.cta-card__icon {
    font-size: 20px;
    color: var(--accent);
}

.cta-card--primary {
    border-color: transparent;
    background: var(--inv-bg);
    color: var(--inv-ink);
}

.cta-card--primary:hover {
    color: var(--inv-ink);
    border-color: transparent;
}

.cta-card--primary .eyebrow {
    color: inherit;
    opacity: .85;
}

.cta-card--primary .cta-card__icon {
    color: var(--inv-icon);
}

.hero__socials {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 18px;
    font-size: 22px;
}

.hero__socials a {
    color: var(--ink-2);
}

.hero__socials a:hover {
    color: var(--accent);
}

.hero__socials .divider {
    width: 1px;
    height: 18px;
    background: var(--line);
}

.hero__socials .hero__email {
    font: 400 14px/1 var(--sans);
}

.hero__portrait {
    position: relative;
    height: 640px;
    margin: 0;
}

.hero__portrait img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 50% 30%;
    -webkit-mask-image: radial-gradient(ellipse 62% 64% at 52% 48%, #000 58%, transparent 80%);
    mask-image: radial-gradient(ellipse 62% 64% at 52% 48%, #000 58%, transparent 80%);
}

.hero__plate {
    position: absolute;
    right: 8px;
    bottom: 18px;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 6px;
}

.status-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--card);
    font: 600 12px/1 var(--sans);
}

.status-pill .dot {
    width: 7px;
    height: 7px;
}

@media (max-width: 980px) {
    .hero {
        grid-template-columns: minmax(0, 1fr);
        gap: 0;
        padding-top: 0;
        padding-bottom: 32px;
    }

    .hero__portrait {
        order: -1;
        justify-self: center;
        width: 100%;
        max-width: 560px;
        height: 520px;
    }

    .hero__portrait img {
        object-position: 50% 28%;
        -webkit-mask-image: radial-gradient(ellipse 70% 62% at 50% 45%, #000 55%, transparent 82%);
        mask-image: radial-gradient(ellipse 70% 62% at 50% 45%, #000 55%, transparent 82%);
    }

    .hero__plate {
        display: none;
    }

    .hero__text {
        position: relative;
        margin-top: -30px;
        gap: 18px;
    }
}

@media (max-width: 640px) {
    /* Phones: the portrait bleeds to both edges, as in the mobile mockup. */
    .hero__portrait {
        width: calc(100% + 2 * var(--gutter));
        max-width: none;
        height: 380px;
        margin-inline: calc(var(--gutter) * -1);
    }

    .hero__eyebrow {
        font-size: 10px;
    }

    .hero__ctas {
        grid-template-columns: minmax(0, 1fr);
        gap: 8px;
        margin-top: 0;
    }

    .cta-card {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        min-height: 52px;
        padding: 0 16px;
    }

    .cta-card .eyebrow {
        display: none;
    }

    .cta-card__label {
        font-size: 15px;
    }
}

/* ========================================================================
   Home — quotes band
   ======================================================================== */

.quotes {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1px;
    border-block: 1px solid var(--line);
    background: var(--line);
}

.quotes blockquote {
    padding: 36px clamp(40px, 6.94vw, 100px) 36px var(--pad-x);
    background: var(--bg);
    font: italic 400 clamp(22px, .571vw + 19.8px, 28px)/1.3 var(--serif);
}

.quotes blockquote + blockquote {
    padding: 36px var(--pad-x) 36px clamp(32px, 4.17vw, 60px);
}

:lang(fr) q {
    quotes: "« " " »";
}

:lang(en) q {
    quotes: "“" "”";
}

@media (max-width: 980px) {
    .quotes {
        grid-template-columns: minmax(0, 1fr);
    }

    .quotes blockquote,
    .quotes blockquote + blockquote {
        padding: 24px var(--gutter);
    }
}

/* ========================================================================
   Home — about
   ======================================================================== */

.about {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr);
    gap: 80px;
}

.about__lead {
    font: 400 clamp(22px, .762vw + 19px, 30px)/1.35 var(--serif);
    text-wrap: pretty;
}

.facts {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 48px;
}

.facts > div {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 16px 0;
    border-top: 1px solid var(--line);
}

.facts dt {
    font: 500 11px/1.3 var(--mono);
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--ink-2);
}

.facts dd {
    font: 500 16px/1.45 var(--sans);
}

@media (max-width: 980px) {
    .about {
        grid-template-columns: minmax(0, 1fr);
        gap: 32px;
    }
}

@media (max-width: 640px) {
    .facts {
        grid-template-columns: minmax(0, 1fr);
    }
}

/* ========================================================================
   Home — services teaser
   ======================================================================== */

.offer-columns {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    border-top: 1px solid var(--ink);
}

.offer-columns > div {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 28px;
    border-right: 1px solid var(--line);
}

.offer-columns > div:first-child {
    padding-left: 0;
}

.offer-columns > div:last-child {
    padding-right: 0;
    border-right: 0;
}

.offer-columns h3 {
    font: 500 30px/1.1 var(--serif);
}

.offer-columns p {
    font: 400 15px/1.55 var(--sans);
    color: var(--ink-2);
}

@media (max-width: 760px) {
    .offer-columns {
        grid-template-columns: minmax(0, 1fr);
    }

    .offer-columns > div,
    .offer-columns > div:first-child,
    .offer-columns > div:last-child {
        padding: 22px 0;
        border-right: 0;
        border-bottom: 1px solid var(--line);
    }

    .offer-columns h3 {
        font-size: 26px;
    }
}

/* ========================================================================
   Home — skills
   ======================================================================== */

.skills {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    column-gap: 40px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.skill {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 18px 0;
    border-top: 1px solid var(--line);
}

.skill__head {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 12px;
}

.skill__name {
    font: 600 16px var(--sans);
}

.skill__value {
    font: 500 12px var(--mono);
    color: var(--ink-2);
}

.skill__bar {
    height: 3px;
    border-radius: 2px;
    background: var(--line);
}

.skill__bar span {
    display: block;
    width: var(--value);
    height: 3px;
    border-radius: 2px;
    background: var(--accent-warm);
}

@media (max-width: 980px) {
    .skills {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        column-gap: 28px;
    }
}

@media (max-width: 640px) {
    .skills {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        column-gap: 20px;
    }

    .skill__name {
        font-size: 15px;
    }
}

/* ========================================================================
   Home — curriculum vitae
   ======================================================================== */

.cv-row {
    display: grid;
    grid-template-columns: 420px minmax(0, 1fr);
    gap: 80px;
}

.cv-row--reverse {
    grid-template-columns: minmax(0, 1fr) 420px;
    align-items: start;
}

.cv-row .plate--tall img {
    height: 600px;
}

.cv-row .plate--square img {
    aspect-ratio: 1;
}

.timeline {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.timeline__title {
    margin-bottom: 6px;
    letter-spacing: .08em;
}

.entry {
    display: grid;
    grid-template-columns: 180px minmax(0, 1fr);
    gap: 24px;
    padding: 22px 0;
    border-top: 1px solid var(--line);
}

.entry__period {
    font: 500 13px/1.5 var(--mono);
    color: var(--accent);
}

.entry__body {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.entry__title {
    font: 500 clamp(22px, .381vw + 20.5px, 26px)/1.15 var(--serif);
}

.entry__org {
    font: 500 14px/1.5 var(--sans);
    color: var(--ink-2);
}

.entry__desc {
    font: 400 15px/1.6 var(--sans);
    color: var(--ink-2);
}

@media (max-width: 1180px) {
    .cv-row {
        grid-template-columns: 320px minmax(0, 1fr);
        gap: 56px;
    }

    .cv-row--reverse {
        grid-template-columns: minmax(0, 1fr) 320px;
    }
}

@media (max-width: 900px) {
    .cv-row,
    .cv-row--reverse {
        grid-template-columns: minmax(0, 1fr);
        gap: 32px;
    }

    .cv-row .plate {
        order: 2;
    }

    .cv-row .plate--tall img {
        height: auto;
        aspect-ratio: 4 / 3;
        object-position: 50% 40%;
    }
}

@media (max-width: 640px) {
    .entry {
        grid-template-columns: minmax(0, 1fr);
        gap: 8px;
        padding: 18px 0;
    }

    .timeline {
        gap: 8px;
    }
}

/* ========================================================================
   Home — motto band
   ======================================================================== */

.motto {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: var(--section-gap);
    background: var(--band-bg);
    color: var(--band-ink);
}

.motto img {
    width: 100%;
    height: 560px;
    object-fit: cover;
    filter: grayscale(1) contrast(1.05);
}

.motto__text {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 28px;
    padding: clamp(24px, 5.33vw + 3.2px, 80px);
}

.motto__text .eyebrow {
    letter-spacing: .08em;
    color: var(--band-muted);
}

.motto__quote {
    max-width: 9.5em;
    font: italic 400 clamp(36px, 3.43vw + 22.6px, 72px)/1 var(--serif);
    letter-spacing: -.02em;
    text-wrap: balance;
}

.motto__desc {
    max-width: 420px;
    font: 400 16px/1.6 var(--sans);
    color: var(--band-muted);
}

@media (max-width: 900px) {
    .motto {
        grid-template-columns: minmax(0, 1fr);
    }

    .motto img {
        height: clamp(260px, 50vw, 420px);
    }

    .motto__text {
        gap: 18px;
        padding-bottom: 32px;
    }
}

/* ========================================================================
   Home — awards
   ======================================================================== */

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

.award {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 24px;
    padding: 32px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--card);
}

.award__year {
    font: 400 clamp(44px, 1.905vw + 36.6px, 64px)/1 var(--serif);
    color: var(--accent);
}

.award__body {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.award h3 {
    font: 500 28px/1.1 var(--serif);
}

.award p {
    font: 400 15px/1.6 var(--sans);
    color: var(--ink-2);
}

@media (max-width: 980px) {
    .awards {
        grid-template-columns: minmax(0, 1fr);
    }
}

@media (max-width: 640px) {
    .award {
        grid-template-columns: minmax(0, 1fr);
        gap: 14px;
        padding: 24px;
    }

    .award h3 {
        font-size: 24px;
    }
}

/* ========================================================================
   Home — outside of code
   ======================================================================== */

.hobbies {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
    gap: 24px;
}

.hobbies .plate:first-child {
    grid-row: span 2;
}

.hobbies .plate:first-child img {
    height: 560px;
}

.hobbies .plate img {
    height: 250px;
}

.hobbies .plate--music img {
    object-position: 50% 40%;
}

.extras {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 48px;
    padding-top: 24px;
    border-top: 1px solid var(--line);
}

.extras > div {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.extras p {
    font: 400 16px/1.6 var(--sans);
}

@media (max-width: 760px) {
    .hobbies {
        grid-template-columns: minmax(0, 1fr);
    }

    .hobbies .plate:first-child {
        grid-row: auto;
    }

    .hobbies .plate:first-child img,
    .hobbies .plate img {
        height: 240px;
    }

    .extras {
        grid-template-columns: minmax(0, 1fr);
        gap: 24px;
    }
}

/* ========================================================================
   Company logos (home + services)
   ======================================================================== */

.logos {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 12px;
}

.logos a {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 120px;
    padding: 24px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--tile);
    transition: border-color .15s ease;
}

.logos a:hover {
    border-color: var(--accent);
}

.logos img {
    max-width: 100%;
    max-height: var(--logo-h, 48px);
    object-fit: contain;
}

@media (max-width: 980px) {
    .logos {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .logos {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .logos a {
        height: 96px;
        padding: 18px;
    }
}

/* ========================================================================
   Home — projects
   ======================================================================== */

.filters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 40px;
    padding: 0 16px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: transparent;
    color: var(--ink);
    font: 600 13px var(--sans);
    white-space: nowrap;
    transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}

.chip:hover {
    color: var(--ink);
    border-color: var(--ink-2);
}

.chip__count {
    font: 500 11px var(--mono);
    opacity: .7;
}

.chip[aria-current="true"] {
    border-color: var(--inv-bg);
    background: var(--inv-bg);
    color: var(--inv-ink);
}

.chip[aria-current="true"] .chip__count {
    opacity: .85;
}

.project-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.project-card {
    display: flex;
    flex-direction: column;
    gap: 14px;
    color: var(--ink);
}

.project-card:hover {
    color: var(--ink);
}

.project-card__media {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 220px;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--tile);
    transition: border-color .15s ease;
}

.project-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .4s ease;
}

.project-card__media--logo img {
    width: var(--logo-w);
    height: auto;
    max-height: 80%;
    object-fit: contain;
}

.project-card:hover .project-card__media {
    border-color: var(--accent);
}

.project-card:hover .project-card__media img {
    transform: scale(1.03);
}

.project-card__title {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 12px;
    font: 500 22px/1.15 var(--serif);
}

.project-card__title i {
    flex: none;
    font-size: 18px;
    color: var(--accent);
    transition: transform .15s ease;
}

.project-card:hover .project-card__title i {
    transform: translateX(3px);
}

.project-card .eyebrow {
    margin-top: -8px;
    font-size: 11px;
}

@media (max-width: 1180px) {
    .project-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 760px) {
    .filters {
        flex-wrap: nowrap;
        margin-inline: calc(var(--gutter) * -1);
        padding-inline: var(--gutter);
        overflow-x: auto;
        scrollbar-width: none;
    }

    .filters::-webkit-scrollbar {
        display: none;
    }

    .chip {
        flex: none;
        min-height: 44px;
        padding: 0 14px;
    }

    .project-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 22px 14px;
    }

    .project-card {
        gap: 8px;
    }

    .project-card__media {
        height: 140px;
    }

    .project-card__title {
        font-size: 18px;
    }

    .project-card__title i {
        display: none;
    }

    .project-card .eyebrow {
        margin-top: 0;
        font-size: 10px;
    }
}

/* ========================================================================
   Footer
   ======================================================================== */

.site-footer {
    display: flex;
    flex-direction: column;
    gap: clamp(32px, 2.67vw + 21.6px, 60px);
    margin-top: 120px;
    padding: clamp(36px, 5.14vw + 16px, 90px) var(--pad-x) 40px;
    background: var(--inv-bg);
    color: var(--inv-ink);
}

.site-footer__grid {
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
    align-items: end;
    gap: 60px;
}

.site-footer__title {
    font: 400 clamp(38px, 4.76vw + 19.4px, 88px)/.95 var(--serif);
    letter-spacing: -.03em;
}

.site-footer__title em {
    display: block;
}

.site-footer__intro {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.site-footer__intro p {
    font: 400 17px/1.5 var(--sans);
    opacity: .85;
}

.contact-list {
    display: flex;
    flex-direction: column;
    margin: 0;
    padding: 0;
    list-style: none;
}

.contact-list a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    min-height: 48px;
    padding: 18px 0;
    border-top: 1px solid var(--inv-line);
    color: var(--inv-ink);
    font: 500 18px/1.3 var(--sans);
}

.contact-list li:last-child a {
    border-bottom: 1px solid var(--inv-line);
}

.contact-list a:hover {
    color: var(--inv-ink);
}

.contact-list a:hover i {
    transform: translateX(-3px);
}

.contact-list i {
    font-size: 20px;
    transition: transform .15s ease;
}

.site-footer__meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    font: 500 12px var(--mono);
    opacity: .85;
}

.site-footer__meta a {
    color: var(--inv-ink);
}

/* "Abidjan —" and the header's switch, flags in place of the letters. */
.site-footer__place {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* On the blue footer, the ring takes the footer's own line. */
.site-footer .lang-switch img {
    box-shadow: 0 0 0 1px var(--inv-line);
}

.site-footer :focus-visible {
    outline-color: var(--inv-ink);
}

@media (max-width: 900px) {
    .site-footer__grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 28px;
    }

    .contact-list a {
        padding: 12px 0;
        font-size: 15px;
    }
}

/* ========================================================================
   Details
   ======================================================================== */

.logos--compact a {
    height: 110px;
}

.facts dd a {
    color: inherit;
}

.facts dd a:hover {
    color: var(--accent);
}

.offer-columns .caption {
    font-size: 12px;
}

/* A wrapped skill name must not push its bar below its neighbours'. */
.skill__bar {
    margin-top: auto;
}

/* Copy the mockups shorten on phones. */
.show-sm {
    display: none;
}

@media (max-width: 640px) {
    .hide-sm {
        display: none;
    }

    .show-sm {
        display: inline;
    }
}

/* ========================================================================
   Header — inner pages on phones: back arrow + page title
   ======================================================================== */

.site-header__back {
    display: none;
    align-items: center;
    gap: 6px;
    margin-right: auto;
    min-width: 0;
    font: 500 20px/1 var(--serif);
}

.site-header__back span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.icon-link {
    flex: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    margin-left: -12px;
    color: var(--ink);
    font-size: 22px;
}

@media (max-width: 640px) {
    .site-header--has-back .brand {
        display: none;
    }

    .site-header--has-back .site-header__back {
        display: flex;
    }
}

.section-head--plain .section-head__title {
    font-size: clamp(28px, 1.14vw + 23.5px, 40px);
}

/* ========================================================================
   Services page
   ======================================================================== */

.svc-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
    align-items: end;
    gap: 80px;
    padding: clamp(32px, 5.52vw + 10.5px, 90px) var(--pad-x) clamp(24px, 4.38vw + 7px, 70px);
    border-bottom: 1px solid var(--line);
}

.svc-hero__text {
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.kicker {
    font: 500 12px/1.3 var(--mono);
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--accent);
}

.svc-hero__title {
    font: 400 clamp(46px, 4.76vw + 27.4px, 96px)/.95 var(--serif);
    letter-spacing: -.035em;
}

.svc-hero__title em {
    display: block;
}

.svc-hero__lead {
    max-width: 640px;
    font: 400 clamp(15px, .476vw + 13.1px, 20px)/1.55 var(--sans);
    color: var(--ink-2);
}

.svc-hero__lead strong {
    color: var(--ink);
    font-weight: 600;
}

.svc-hero__work {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.svc-hero__work .eyebrow {
    margin-right: 8px;
}

.stats {
    display: flex;
    flex-direction: column;
}

.stats > div {
    display: flex;
    align-items: baseline;
    gap: 20px;
    padding: 16px 0;
    border-top: 1px solid var(--line);
}

.stats > div:last-child {
    border-bottom: 1px solid var(--line);
}

.stats dt {
    flex: none;
    width: 90px;
    font: 400 48px/1 var(--serif);
}

.stats dd {
    font: 500 15px/1.4 var(--sans);
    color: var(--ink-2);
}

.svc-intro {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* The first section after the services hero sits closer to it. */
.svc-hero + .section {
    padding-top: clamp(40px, 4.76vw + 21.4px, 90px);
}

.offer-list {
    display: flex;
    flex-direction: column;
    gap: 80px;
    margin-top: 16px;
}

.offer {
    display: grid;
    grid-template-columns: 400px minmax(0, 1fr);
    gap: 64px;
    padding-top: 40px;
    border-top: 1px solid var(--ink);
}

.offer .plate img {
    aspect-ratio: 1;
}

.offer__body {
    display: flex;
    flex-direction: column;
    gap: 32px;
    min-width: 0;
}

.offer__head {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.offer__num {
    font: 500 13px var(--mono);
    color: var(--accent);
}

.offer__title {
    font: 400 clamp(32px, 1.14vw + 27.5px, 44px)/1.05 var(--serif);
}

.offer__tagline {
    font: italic 400 clamp(17px, .286vw + 15.9px, 20px)/1.4 var(--serif);
    color: var(--ink-2);
}

.offer__block {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.checklist {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px 32px;
    margin: 0;
    padding: 0;
    list-style: none;
    font: 400 15px/1.5 var(--sans);
}

/* Three stacks read top-down, mobile first, rather than across two columns. */
.checklist--stack {
    grid-template-columns: minmax(0, 1fr);
}

.checklist li {
    display: flex;
    gap: 10px;
}

.checklist i {
    flex: none;
    margin-top: 2px;
    font-size: 18px;
    color: var(--accent);
}

.price-rows > div {
    display: grid;
    grid-template-columns: 220px minmax(0, 1fr) auto;
    align-items: baseline;
    gap: 24px;
    padding: 16px 0;
    border-top: 1px solid var(--line);
}

.price-rows > div:last-child {
    border-bottom: 1px solid var(--line);
}

.price-rows dt {
    font: 600 16px/1.35 var(--sans);
}

.price-rows .desc {
    font: 400 14px/1.45 var(--sans);
    color: var(--ink-2);
}

.price {
    font: 500 15px/1.35 var(--mono);
    color: var(--accent);
    white-space: nowrap;
}

.price-note {
    margin-top: 2px;
    font: 400 14px/1.5 var(--sans);
    color: var(--ink-2);
}

.price-note strong {
    color: var(--ink);
}

.packs {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: stretch;
    gap: 14px;
    margin: 0;
    padding: 12px 0 0;
    list-style: none;
}

.pack {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 26px 22px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--card);
    color: var(--ink);
}

.pack--featured {
    border-color: var(--inv-bg);
    background: var(--inv-bg);
    color: var(--inv-ink);
}

.pack__badge {
    position: absolute;
    top: -11px;
    left: 22px;
    padding: 5px 9px;
    border-radius: 999px;
    background: var(--warm-solid);
    color: #fff;
    font: 600 10px/1.2 var(--mono);
    letter-spacing: .06em;
    text-transform: uppercase;
}

.pack h4 {
    font: 500 26px/1.1 var(--serif);
}

.pack__price {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.pack__price strong {
    font: 500 20px/1.2 var(--mono);
}

.pack__price span {
    font: 400 13px var(--sans);
    opacity: .8;
}

.pack--featured .pack__price span {
    opacity: .9;
}

.pack ul {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
    font: 400 14px/1.45 var(--sans);
}

.pack li {
    padding-top: 8px;
    border-top: 1px solid rgba(128, 128, 128, .25);
}

.addons {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr);
    gap: 80px;
    margin-top: var(--section-gap);
    padding: clamp(40px, 3.81vw + 25px, 80px) var(--pad-x);
    border-block: 1px solid var(--line);
    background: var(--card);
}

.addons__intro {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.addons__intro h2 {
    font: 400 clamp(34px, 1.33vw + 28.8px, 48px)/1 var(--serif);
}

.addons__intro p {
    font: 400 15px/1.6 var(--sans);
    color: var(--ink-2);
}

.addons__intro strong {
    color: var(--ink);
}

.addon-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.addon-list li {
    display: grid;
    grid-template-columns: 32px minmax(0, 1fr) auto;
    align-items: center;
    gap: 16px;
    padding: 18px 0;
    border-top: 1px solid var(--line);
}

.addon-list i {
    font-size: 20px;
    color: var(--accent);
}

.addon-list__label {
    font: 500 16px/1.4 var(--sans);
}

/* What the line covers, set like the descriptions of the price rows. */
.addon-list__note {
    display: block;
    margin-top: 4px;
    font: 400 14px/1.45 var(--sans);
    color: var(--ink-2);
}

.addon-list .price {
    font-size: 14px;
}

.steps {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin: 0;
    padding: 0;
    list-style: none;
    border-top: 1px solid var(--ink);
}

.step {
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 28px 28px 0 0;
}

.step__num {
    font: 400 clamp(48px, 2.29vw + 39px, 72px)/1 var(--serif);
    color: var(--accent);
}

.step h3 {
    font: 500 24px/1.15 var(--serif);
}

.step__badge {
    align-self: flex-start;
    padding: 4px 8px;
    border: 1px solid var(--line);
    border-radius: 4px;
    font: 500 11px/1.3 var(--mono);
    color: var(--ink-2);
}

.step p {
    font: 400 15px/1.6 var(--sans);
    color: var(--ink-2);
}

.faq {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr);
    gap: 80px;
}

.faq__intro {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.faq__list {
    border-bottom: 1px solid var(--line);
}

.faq__item {
    border-top: 1px solid var(--line);
}

.faq__item summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    padding: 22px 0;
    list-style: none;
    cursor: pointer;
    font: 500 clamp(19px, .286vw + 17.9px, 22px)/1.25 var(--serif);
    color: var(--ink);
}

.faq__item summary::-webkit-details-marker {
    display: none;
}

.faq__item summary::after {
    content: '+';
    flex: none;
    font: 300 26px/1 var(--sans);
    color: var(--accent);
}

.faq__item[open] summary::after {
    content: '\2212';
}

.faq__item p {
    padding: 0 60px 24px 0;
    font: 400 16px/1.65 var(--sans);
    color: var(--ink-2);
}

.site-footer__title--sm {
    font-size: clamp(34px, 4.38vw + 16.9px, 80px);
}

.contact-cta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 52px;
    margin-bottom: 10px;
    padding: 20px 22px;
    border-radius: var(--radius);
    background: var(--warm-solid);
    color: #fff;
    font: 600 18px/1.2 var(--sans);
}

.contact-cta:hover {
    color: #fff;
    filter: brightness(.92);
}

.contact-cta i {
    font-size: 22px;
}

/* Three columns hold only at full width, as in the 1440 mockup: any narrower,
   the description gives way to the name and the unbreakable price (30px wide
   at 1000px). The name and its description stack instead, the price beside. */
@media (max-width: 1439px) {
    .price-rows > div {
        grid-template-columns: minmax(0, 1fr) auto;
        gap: 4px 24px;
    }

    .price-rows .desc {
        grid-column: 1;
        grid-row: 2;
    }

    .price-rows .price {
        grid-row: 1 / span 2;
        align-self: center;
    }
}

@media (max-width: 1180px) {
    .offer {
        grid-template-columns: 300px minmax(0, 1fr);
        gap: 48px;
    }
}

@media (max-width: 980px) {
    .svc-hero,
    .addons,
    .faq {
        grid-template-columns: minmax(0, 1fr);
        gap: 32px;
    }

    .offer {
        grid-template-columns: minmax(0, 1fr);
        gap: 28px;
    }

    .offer .plate {
        max-width: 480px;
    }

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

    .step {
        padding-bottom: 24px;
    }
}

@media (max-width: 640px) {
    .svc-hero {
        gap: 20px;
    }

    .svc-hero__text {
        gap: 18px;
    }

    .stats {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        border-block: 1px solid var(--line);
    }

    .stats > div,
    .stats > div:last-child {
        flex-direction: column;
        gap: 4px;
        padding: 12px 0;
        border: 0;
    }

    .stats dt {
        width: auto;
        font-size: 32px;
    }

    .stats dd {
        font-size: 11px;
    }

    .offer {
        padding-top: 24px;
    }

    .offer .plate {
        max-width: none;
        margin-inline: calc(var(--gutter) * -1);
    }

    .offer .plate img {
        aspect-ratio: auto;
        height: 240px;
        border-radius: 0;
    }

    .offer .plate figcaption {
        padding-inline: var(--gutter);
    }

    .checklist {
        grid-template-columns: minmax(0, 1fr);
    }

    .price-rows > div {
        grid-template-columns: minmax(0, 1fr);
        padding: 14px 0;
    }

    .price-rows .desc,
    .price-rows .price {
        grid-row: auto;
        align-self: auto;
    }

    .price {
        font-size: 13px;
        white-space: normal;
    }

    /* Packs scroll sideways, as in the mobile mockup. */
    .packs {
        display: flex;
        margin-inline: calc(var(--gutter) * -1);
        padding: 12px var(--gutter) 4px;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        scroll-padding-inline: var(--gutter);
        scrollbar-width: none;
    }

    .packs::-webkit-scrollbar {
        display: none;
    }

    .pack {
        flex: none;
        width: min(260px, 78vw);
        padding: 20px 18px;
        scroll-snap-align: start;
    }

    .addon-list li {
        grid-template-columns: 28px minmax(0, 1fr);
        gap: 4px 12px;
    }

    .addon-list .price {
        grid-column: 2;
    }

    .steps {
        grid-template-columns: minmax(0, 1fr);
    }

    .step {
        padding-right: 0;
    }

    .faq__item p {
        padding-right: 0;
    }

    .contact-cta {
        padding: 0 18px;
        font-size: 16px;
    }
}

/* ========================================================================
   Project page
   ======================================================================== */

.site-header__crumb,
.crumbs {
    font: 500 13px/1.3 var(--mono);
    color: var(--ink-2);
}

.site-header__crumb {
    font-size: 12px;
}

.crumbs {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.crumbs a {
    color: var(--ink-2);
}

.crumbs [aria-current] {
    color: var(--ink);
}

.project__hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 440px;
    align-items: end;
    gap: 80px;
    padding: clamp(28px, 4.19vw + 11.7px, 72px) var(--pad-x) 0;
}

.project__hero.project__hero--solo {
    grid-template-columns: minmax(0, 1fr);
}

.project__intro {
    display: flex;
    flex-direction: column;
    gap: 22px;
    min-width: 0;
}

.project__meta {
    display: flex;
    align-items: center;
    gap: 14px;
}

.project__logo {
    flex: none;
    width: 64px;
    height: 64px;
    padding: 8px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: var(--tile);
    object-fit: contain;
}

.project__logo--photo {
    padding: 0;
    object-fit: cover;
}

.project__title {
    font: 400 clamp(56px, 4.57vw + 38.2px, 104px)/.92 var(--serif);
    letter-spacing: -.035em;
    overflow-wrap: anywhere;
}

.project__tagline {
    font: italic 400 clamp(20px, 1.14vw + 15.5px, 32px)/1.2 var(--serif);
    color: var(--ink-2);
}

.project__stores {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.store-cta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    padding: 14px 20px;
    border: 1px solid var(--line);
    border-radius: 12px;
    color: var(--ink);
    font: 600 15px/1.3 var(--sans);
    transition: border-color .15s ease, filter .15s ease;
}

.store-cta:hover {
    color: var(--ink);
    border-color: var(--accent);
}

.store-cta i {
    flex: none;
    font-size: 22px;
    color: var(--accent);
}

.store-cta__text {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
}

.store-cta--primary {
    padding: 22px 24px;
    border-color: transparent;
    background: var(--inv-bg);
    color: var(--inv-ink);
}

.store-cta--primary:hover {
    color: var(--inv-ink);
    border-color: transparent;
    filter: brightness(.92);
}

.store-cta--primary .eyebrow {
    color: inherit;
    opacity: .85;
}

.store-cta--primary .store-cta__name {
    font-size: 20px;
}

.store-cta--primary i {
    font-size: 30px;
    color: var(--inv-icon);
}

.project__body {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 440px;
    gap: 80px;
    padding: 56px var(--pad-x) 0;
}

/* Screenshots: a sideways strip by default, a three-up carousel once
   space.js marks the block .is-enhanced (wide screens only). */
.shots {
    display: flex;
    flex-direction: column;
    gap: 18px;
    min-width: 0;
}

.shots__stage {
    display: flex;
    align-items: center;
    gap: 20px;
    height: 640px;
    padding: 40px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--card);
}

.shots__stage img {
    flex: none;
    width: auto;
    height: auto;
    max-width: 80%;
    max-height: 560px;
    border-radius: 22px;
    box-shadow: 0 14px 40px rgba(0, 0, 0, .18);
    scroll-snap-align: center;
}

.shots__controls {
    display: flex;
    align-items: center;
    gap: 16px;
}

.shots:not(.is-enhanced) .shots__controls {
    display: none;
}

.round-btn {
    flex: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border: 1px solid var(--line);
    border-radius: 50%;
    background: transparent;
    color: var(--ink);
    font-size: 22px;
    cursor: pointer;
    transition: border-color .15s ease;
}

.round-btn:hover {
    border-color: var(--ink-2);
}

.shots__pos,
.shots__label {
    flex: none;
    font: 500 13px var(--mono);
    color: var(--ink-2);
}

.shots__label {
    font-size: 12px;
}

.shots__rule {
    flex: 1;
    height: 1px;
    background: var(--line);
}

.shots.is-enhanced .shots__stage {
    justify-content: center;
    gap: 28px;
    padding: 0 24px;
    overflow: hidden;
}

.shots.is-enhanced .shots__stage img {
    display: none;
    transition: opacity .3s ease;
}

.shots.is-enhanced .shots__stage img.is-prev,
.shots.is-enhanced .shots__stage img.is-next {
    display: block;
    max-width: 34%;
    max-height: 440px;
    opacity: .45;
    cursor: pointer;
}

.shots.is-enhanced .shots__stage img.is-prev {
    order: 1;
}

.shots.is-enhanced .shots__stage img.is-current {
    display: block;
    order: 2;
    max-width: 56%;
    max-height: 560px;
}

.shots.is-enhanced .shots__stage img.is-next {
    order: 3;
}

.project__aside {
    display: flex;
    flex-direction: column;
    gap: 40px;
    min-width: 0;
}

.info-list {
    margin-top: 14px;
}

.info-list > div {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 14px 0;
    border-top: 1px solid var(--line);
}

.info-list > div:last-child {
    border-bottom: 1px solid var(--line);
}

.info-list dt {
    flex: none;
    font: 500 14px/1.5 var(--sans);
    color: var(--ink-2);
}

.info-list dd {
    font: 600 14px/1.5 var(--sans);
    text-align: right;
}

.info-list__links a::after {
    content: ' \2197';
}

.project__description {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.prose-project > p {
    font: 400 16px/1.6 var(--sans);
    color: var(--ink-2);
    text-wrap: pretty;
}

.prose-project > p:first-child {
    font: 400 clamp(19px, .286vw + 17.9px, 22px)/1.45 var(--serif);
    color: var(--ink);
}

.prose-project > * + * {
    margin-top: 14px;
}

.prose-project ul {
    padding: 0;
    list-style: none;
    counter-reset: point;
}

/* Not a grid: an item mixes <strong> and bare text ("<strong>Transfert</strong> :
   effectuez…"), and a grid makes each run its own cell, one word per line. */
.prose-project li {
    position: relative;
    padding: 14px 0 14px 36px;
    border-top: 1px solid var(--line);
    font: 500 15px/1.5 var(--sans);
    counter-increment: point;
}

.prose-project li:last-child {
    border-bottom: 1px solid var(--line);
}

.prose-project li::before {
    content: counter(point, decimal-leading-zero);
    position: absolute;
    top: 17px;
    left: 0;
    font: 500 12px/1 var(--mono);
    color: var(--accent);
}

.prose-project strong {
    font-weight: 500;
}

.privacy-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font: 500 13px var(--sans);
    color: var(--ink-2);
}

.pager {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin: var(--section-gap) var(--pad-x) 0;
    border-top: 1px solid var(--ink);
}

.pager__link {
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-width: 0;
    padding: 32px 32px 0 0;
    border-right: 1px solid var(--line);
    color: var(--ink);
}

.pager__link:hover {
    color: var(--ink);
}

.pager__link:hover .pager__name {
    color: var(--accent);
}

.pager__link--next {
    align-items: flex-end;
    padding: 32px 0 0 32px;
    border-right: 0;
    text-align: right;
}

.pager__name {
    font: 400 clamp(26px, 1.33vw + 20.8px, 40px)/1.05 var(--serif);
    transition: color .15s ease;
}

.pager__label {
    font: 500 13px var(--sans);
    color: var(--ink-2);
}

.site-footer--slim {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 24px;
    margin-top: var(--section-gap);
    padding-block: 48px;
}

.site-footer__slim-title {
    font: 400 clamp(26px, .952vw + 22.3px, 36px)/1.1 var(--serif);
}

.btn-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.btn--lg {
    padding: 14px 22px;
    font-size: 15px;
}

.btn--inv-outline {
    border-color: rgba(255, 255, 255, .45);
    color: var(--inv-ink);
}

.btn--inv-outline:hover {
    border-color: var(--inv-ink);
    color: var(--inv-ink);
}

@media (max-width: 1180px) {
    .project__hero,
    .project__body {
        grid-template-columns: minmax(0, 1fr) 360px;
        gap: 48px;
    }
}

@media (max-width: 980px) {
    .project__hero,
    .project__body {
        grid-template-columns: minmax(0, 1fr);
        gap: 28px;
    }

    .project__body {
        padding-top: 32px;
    }
}

/* Phones and small tablets: the strip, whatever the script did. */
@media (max-width: 760px) {
    .shots__stage,
    .shots.is-enhanced .shots__stage {
        justify-content: flex-start;
        gap: 12px;
        height: auto;
        margin-inline: calc(var(--gutter) * -1);
        padding: 20px var(--gutter);
        overflow-x: auto;
        border-inline: 0;
        border-radius: 0;
    }

    .shots__stage img,
    .shots.is-enhanced .shots__stage img,
    .shots.is-enhanced .shots__stage img.is-prev,
    .shots.is-enhanced .shots__stage img.is-current,
    .shots.is-enhanced .shots__stage img.is-next {
        display: block;
        order: 0;
        max-width: 85%;
        max-height: 360px;
        border-radius: 18px;
        opacity: 1;
        box-shadow: 0 10px 24px rgba(0, 0, 0, .15);
    }

    .shots__controls,
    .shots.is-enhanced .shots__controls {
        display: none;
    }

    .pager__link {
        padding-right: 16px;
    }

    .pager__link--next {
        padding-left: 16px;
    }
}

@media (max-width: 640px) {
    .project__logo {
        width: 52px;
        height: 52px;
        border-radius: 13px;
    }

    .project__meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .project__meta .kicker {
        font-size: 10px;
    }

    .store-cta--primary {
        padding: 16px 18px;
    }

    .store-cta--primary .eyebrow {
        display: none;
    }

    .store-cta--primary .store-cta__name {
        font-size: 16px;
    }

    .store-cta--primary i {
        font-size: 24px;
    }

    .site-footer--slim {
        flex-direction: column;
        align-items: stretch;
    }

    .btn-row .btn {
        flex: 1;
    }
}

/* ========================================================================
   Legal pages
   ======================================================================== */

.legal-header {
    position: sticky;
    top: 0;
    z-index: 50;
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 18px var(--pad-x);
    border-bottom: 1px solid var(--line);
    background: var(--bg-glass);
    -webkit-backdrop-filter: saturate(1.4) blur(12px);
    backdrop-filter: saturate(1.4) blur(12px);
}

.legal-by {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-right: auto;
    min-width: 0;
    color: var(--ink-2);
    font: 500 13px/1.3 var(--sans);
}

.legal-by:hover {
    color: var(--ink);
}

.legal-by img {
    flex: none;
    width: 26px;
    height: 26px;
    border-radius: 50%;
}

.legal-by strong {
    color: var(--ink);
    font-weight: 600;
}

.doc-switch {
    display: flex;
    gap: 4px;
    padding: 3px;
    border: 1px solid var(--line);
    border-radius: 999px;
}

.doc-switch a {
    padding: 8px 14px;
    border-radius: 999px;
    color: var(--ink-2);
    font: 600 13px/1.2 var(--sans);
    white-space: nowrap;
}

.doc-switch a:hover {
    color: var(--ink);
}

.doc-switch a[aria-current] {
    background: var(--inv-bg);
    color: var(--inv-ink);
}

.legal-header .theme-toggle {
    width: 36px;
    height: 36px;
    font-size: 17px;
}

.legal-hero {
    display: flex;
    align-items: flex-end;
    gap: 32px;
    padding: clamp(32px, 3.05vw + 20.1px, 64px) var(--pad-x) clamp(24px, 2.29vw + 15.1px, 48px);
    border-bottom: 1px solid var(--line);
}

.legal-hero__logo {
    flex: none;
    width: 112px;
    height: 112px;
    border-radius: 26px;
    background: #fff;
    object-fit: contain;
    box-shadow: 0 12px 32px rgba(0, 0, 0, .14);
}

.legal-hero__text {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 12px;
    min-width: 0;
}

.legal-app {
    display: flex;
    align-items: center;
    gap: 8px;
    font: 500 12px/1.3 var(--mono);
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--app);
}

.legal-app .dot {
    background: currentColor;
}

@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) .legal-app {
        color: var(--app-dark);
    }
}

:root[data-theme="dark"] .legal-app {
    color: var(--app-dark);
}

.legal-hero h1 {
    font: 400 clamp(40px, 3.43vw + 26.6px, 76px)/.95 var(--serif);
    letter-spacing: -.03em;
    text-wrap: balance;
}

.legal-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 36px;
    font: 500 12px/1.3 var(--mono);
}

.legal-meta > div {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.legal-meta dt {
    color: var(--ink-2);
}

.legal-layout {
    display: grid;
    grid-template-columns: 260px minmax(0, 760px);
    gap: 100px;
    padding: 56px var(--pad-x) 100px;
}

.legal-toc {
    position: sticky;
    top: 96px;
    align-self: start;
    display: flex;
    flex-direction: column;
    gap: 2px;
    max-height: calc(100vh - 120px);
    overflow-y: auto;
}

.legal-toc .eyebrow {
    margin-bottom: 12px;
}

.legal-toc a {
    display: grid;
    grid-template-columns: 28px minmax(0, 1fr);
    padding: 10px 0 10px 14px;
    border-left: 2px solid var(--line);
    color: var(--ink-2);
    font: 500 14px/1.4 var(--sans);
}

.legal-toc a span {
    font: 500 12px/1.6 var(--mono);
}

.legal-toc a:hover,
.legal-toc a[aria-current] {
    color: var(--ink);
}

.legal-toc a[aria-current] {
    border-left-color: var(--accent);
}

.legal-toc-mobile {
    display: none;
}

.legal-body {
    display: flex;
    flex-direction: column;
    gap: 20px;
    min-width: 0;
    font: 400 17px/1.7 var(--sans);
}

.legal-body h2 {
    display: flex;
    align-items: baseline;
    gap: 16px;
    margin-top: 36px;
    font: 400 clamp(28px, .762vw + 25px, 36px)/1.1 var(--serif);
    scroll-margin-top: 96px;
}

.legal-num {
    flex: none;
    font: 500 14px var(--mono);
    color: var(--accent);
}

.legal-body h3 {
    margin-top: 16px;
    font: 600 18px/1.4 var(--sans);
}

.legal-body hr {
    display: none;
}

.legal-body a {
    text-decoration: underline;
    text-underline-offset: 3px;
}

.legal-body strong {
    font-weight: 600;
}

.legal-body ul,
.legal-body ol {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding-left: 1.4em;
}

.legal-body code {
    padding: .1em .35em;
    border-radius: 4px;
    background: var(--card);
    font: 500 .88em var(--mono);
}

.legal-callout {
    padding: 16px 20px;
    border: 1px solid var(--line);
    border-left: 3px solid var(--accent-warm);
    border-radius: 0 10px 10px 0;
    background: var(--card);
}

.legal-badge {
    align-self: flex-start;
    padding: 4px 8px;
    border-radius: 4px;
    background: var(--warm-solid);
    color: #fff;
    font: 500 11px/1.4 var(--mono);
}

.legal-badge strong {
    font-weight: 500;
}

.legal-table {
    overflow-x: auto;
    border: 1px solid var(--line);
    border-radius: var(--radius);
}

.legal-body table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
    line-height: 1.5;
}

.legal-body th {
    padding: 12px 18px;
    background: var(--inv-bg);
    color: var(--inv-ink);
    font: 500 11px/1.4 var(--mono);
    letter-spacing: .06em;
    text-align: left;
    text-transform: uppercase;
}

.legal-body td {
    padding: 13px 18px;
    border-top: 1px solid var(--line);
    color: var(--ink-2);
    vertical-align: top;
}

.legal-body td:first-child {
    color: var(--ink);
}

.legal-changelog {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--card);
}

.legal-changelog summary {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 18px 22px;
    list-style: none;
    cursor: pointer;
    color: var(--ink);
    font: 600 15px/1.4 var(--sans);
}

.legal-changelog summary::-webkit-details-marker {
    display: none;
}

.legal-changelog summary .bx-history {
    font-size: 20px;
    color: var(--accent);
}

.legal-changelog summary span {
    flex: 1;
}

.legal-changelog__chevron {
    font-size: 20px;
    transition: transform .2s ease;
}

.legal-changelog[open] .legal-changelog__chevron {
    transform: rotate(180deg);
}

.legal-changelog > :not(summary) {
    margin: 0 22px 16px 56px;
    color: var(--ink-2);
    font-size: 15px;
    line-height: 1.6;
}

.legal-changelog strong {
    color: var(--ink);
}

.legal-footer {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    padding: 28px var(--pad-x);
    border-top: 1px solid var(--line);
    color: var(--ink-2);
    font: 500 12px var(--mono);
}

.legal-footer a {
    color: var(--ink-2);
}

@media (max-width: 1100px) {
    .legal-layout {
        grid-template-columns: 220px minmax(0, 1fr);
        gap: 56px;
    }
}

@media (max-width: 900px) {
    .legal-hero {
        flex-direction: column;
        align-items: flex-start;
        gap: 18px;
    }

    .legal-hero__logo {
        width: 72px;
        height: 72px;
        border-radius: 18px;
    }

    .legal-layout {
        grid-template-columns: minmax(0, 1fr);
        gap: 24px;
        padding-top: 24px;
    }

    .legal-toc {
        display: none;
    }

    .legal-toc-mobile {
        display: block;
        border: 1px solid var(--line);
        border-radius: var(--radius);
        background: var(--card);
    }

    .legal-toc-mobile summary {
        display: flex;
        justify-content: space-between;
        align-items: center;
        min-height: 48px;
        padding: 0 16px;
        list-style: none;
        cursor: pointer;
        font: 600 14px var(--sans);
    }

    .legal-toc-mobile summary::-webkit-details-marker {
        display: none;
    }

    .legal-toc-mobile summary i {
        font-size: 20px;
        transition: transform .2s ease;
    }

    .legal-toc-mobile[open] summary i {
        transform: rotate(180deg);
    }

    .legal-toc-mobile ol {
        margin: 0;
        padding: 0 16px 14px 36px;
        font: 500 14px/1.4 var(--sans);
    }

    .legal-toc-mobile li {
        padding: 6px 0;
    }

    .legal-toc-mobile a {
        color: var(--ink);
    }

    .legal-body {
        font-size: 16px;
        line-height: 1.65;
    }

    .legal-body h2 {
        margin-top: 20px;
    }

    .legal-changelog > :not(summary) {
        margin-left: 22px;
    }
}

@media (max-width: 640px) {
    .legal-header {
        gap: 10px;
        padding-block: 12px;
    }

    /* The logo alone says whose app it is; the switch needs the room. */
    .legal-by span {
        display: none;
    }

    .doc-switch {
        overflow-x: auto;
        scrollbar-width: none;
    }

    .doc-switch a {
        padding: 8px 11px;
        font-size: 12px;
    }
}
