/* Quicksort · landing pages
   Tokens come from the Figma brand system (01 · Brand system, QS Color / QS Spacing). */

/* Host Grotesk and Martian Mono (variable, 400 to 500), served from the site. SIL Open Font License. */
@font-face { font-family: 'Host Grotesk'; font-style: normal; font-weight: 400 500; font-display: swap; src: url(fonts/host-grotesk-latin-ext.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Host Grotesk'; font-style: normal; font-weight: 400 500; font-display: swap; src: url(fonts/host-grotesk-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Martian Mono'; font-style: normal; font-weight: 400 500; font-display: swap; src: url(fonts/martian-mono-latin-ext.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Martian Mono'; font-style: normal; font-weight: 400 500; font-display: swap; src: url(fonts/martian-mono-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  --ink: #141414;
  --ink-2: #1a1a1a;
  --ink-line: #2a2a2a;
  --ink-line-2: #3a3a3a;
  --ink-muted: #9a968f;
  --ink-faint: #6e6a64;
  --paper: #f3f0e8;
  --paper-2: #faf8f3;
  --stone-600: #55504a;
  --stone-500: #736c61;
  --stone-400: #8e8a83;
  --stone-300: #b8b4ad;
  --stone-200: #e4e1db;
  --lime: #ccff00;

  --font-sans: "Host Grotesk", ui-sans-serif, system-ui, sans-serif;
  --font-mono: "Martian Mono", ui-monospace, monospace;

  --gutter: clamp(20px, 6.67vw, 96px);
  --section: clamp(72px, 9vw, 128px);
  --max: 1440px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 18px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p { margin: 0; }

/* ---------- surfaces ---------- */
.paper { --portrait: var(--stone-200); --bg: var(--paper); --fg: var(--ink); --muted: var(--stone-600); --faint: var(--stone-500); --line: var(--stone-200); --line-2: var(--stone-300); --card: var(--paper-2); background: var(--bg); color: var(--fg); }
.ink   { --portrait: #242424; --bg: var(--ink);   --fg: var(--paper-2); --muted: var(--ink-muted); --faint: var(--ink-faint); --line: var(--ink-line); --line-2: var(--ink-line-2); --card: var(--ink-2); background: var(--bg); color: var(--fg); }
.ink-2 { --bg: var(--ink-2); background: var(--bg); }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: var(--section) 0; }
.rule-top { border-top: 1px solid var(--line); }

/* ---------- type ---------- */
.display { text-wrap: balance; font-weight: 500; font-size: clamp(44px, 6.4vw, 92px); line-height: 0.98; letter-spacing: -0.045em; }
.h1 { text-wrap: balance; font-weight: 500; font-size: clamp(40px, 4.45vw, 64px); line-height: 1.04; letter-spacing: -0.035em; }
.h2 { text-wrap: balance; font-weight: 500; font-size: clamp(32px, 3.9vw, 56px); line-height: 1.06; letter-spacing: -0.03em; }
.h2--sm { font-size: clamp(30px, 3.35vw, 48px); line-height: 1.1; letter-spacing: -0.025em; }
.h3 { font-weight: 500; font-size: clamp(22px, 2.2vw, 32px); line-height: 1.15; letter-spacing: -0.02em; }
.h4 { font-weight: 500; font-size: clamp(20px, 1.8vw, 26px); line-height: 1.2; letter-spacing: -0.01em; }
.lead { font-size: clamp(18px, 1.4vw, 20px); line-height: 1.5; color: var(--muted); }
.body { font-size: 17px; line-height: 1.5; color: var(--muted); }
.small { font-size: 15px; line-height: 1.45; color: var(--muted); }
.quote { font-weight: 500; font-size: 22px; line-height: 1.3; letter-spacing: -0.01em; }
.mono { font-family: var(--font-mono); font-size: 13px; line-height: 1.3; letter-spacing: 0.06em; text-transform: uppercase; color: var(--faint); }
.mono--xs { font-size: 11px; letter-spacing: 0.04em; }
.num { font-family: var(--font-mono); font-weight: 500; font-size: clamp(40px, 4.45vw, 64px); line-height: 1; letter-spacing: -0.06em; margin-left: -0.06em; }
/* numbers inside running text: Martian Mono, sized to sit with Host Grotesk */
.n { font-family: var(--font-mono); font-size: .88em; letter-spacing: -0.02em; font-feature-settings: "tnum"; }
.num--sm { font-size: clamp(32px, 3.4vw, 48px); }
.lime-text { color: var(--lime); }


.balance { text-wrap: balance; }


/* ---------- small parts ---------- */
.eyebrow { display: inline-flex; align-items: center; gap: 12px; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--lime); flex: none; }


/* on paper the lime dot gets an ink edge, like the lime parts of the figures, so it stays visible */
.paper .dot { box-shadow: 0 0 0 1.5px var(--ink); }
.paper .ink .dot { box-shadow: none; }

.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 22px; border-radius: 2px; border: 1px solid transparent;
  font: 500 16px/1.2 var(--font-sans); cursor: pointer; white-space: nowrap;
  transition: background-color .2s ease, color .2s ease, border-color .2s ease, transform .2s ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--fg); color: var(--bg); }
.btn-primary:hover { background: color-mix(in srgb, var(--fg) 86%, var(--bg)); }
.btn-secondary { border-color: var(--fg); color: var(--fg); }
.btn-secondary:hover { background: var(--fg); color: var(--bg); }
.btn-lime { background: var(--lime); color: var(--ink); }
.btn-lime:hover { background: #d9ff4d; }
.btns { display: flex; flex-wrap: wrap; gap: 12px; }

.link { display: inline-flex; align-items: center; gap: 8px; font-weight: 500; font-size: 16px; line-height: 1.2; }
.link .arrow { transition: transform .2s ease; }
.link:hover .arrow { transform: translateX(3px); }
.link span:first-child { background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size .25s ease; }
.link:hover span:first-child { background-size: 100% 1px; }

.icon { width: 24px; height: 24px; color: var(--fg); flex: none; shape-rendering: crispEdges; }
.icon .acc { color: var(--lime); }
.icon--20 { width: 20px; height: 20px; }
.icon--28 { width: 28px; height: 28px; }
.disc { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; flex: none; }
.disc--line { border: 1px solid var(--line-2); }
.disc--ink { background: var(--ink); --fg: var(--paper-2); }

/* ---------- logo ---------- */
.logo { display: inline-flex; align-items: center; gap: 8px; color: var(--fg); }
.logo svg { width: 25px; height: 24px; }
.logo .wedge { fill: var(--bg); }
.logo .pivot { fill: var(--fg); }
.ink .logo .pivot { fill: var(--lime); }
.logo b { font: 500 15px/1 var(--font-mono); letter-spacing: 0; }
.footer .logo svg { width: 30px; height: 29px; }
.footer .logo b { font-size: 18px; }

.client { color: var(--fg); height: 32px; width: auto; }
.client .ko { fill: var(--bg); }
.client--airbus { height: 26px; }
.client--bnp { height: 34px; }
.client--capgemini { height: 36px; }
.client--clubmed { height: 30px; }


/* ---------- nav ---------- */
.nav { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: saturate(140%) blur(12px); -webkit-backdrop-filter: saturate(140%) blur(12px); }
.nav--line { border-bottom: 1px solid var(--line); }

.nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 96px; }
.nav nav > ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 36px; font-weight: 500; font-size: 15px; }
.nav nav > ul a:not(.btn):hover { opacity: .65; }
.nav-toggle { display: none; }
.menu-btn { display: none; }

/* ---------- section head ---------- */
.head { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; margin-bottom: clamp(40px, 4.5vw, 64px); }
.head > div { display: grid; gap: 20px; max-width: 1080px; }

/* ---------- footer ---------- */
.footer { padding: 80px 0 48px; border-top: 1px solid var(--line); }
.footer-top { display: grid; grid-template-columns: 360px repeat(4, 1fr); gap: 48px; }
.footer-brand { display: grid; gap: 20px; align-content: start; }
.footer-col { display: grid; gap: 14px; align-content: start; font-size: 15px; line-height: 1.4; }
.footer-col .mono { font-size: 12px; margin-bottom: 4px; }
.footer-col a:hover { opacity: .65; }
.footer-bottom { display: flex; justify-content: space-between; gap: 24px; margin-top: 80px; padding-top: 24px; border-top: 1px solid var(--line); }
.footer-bottom .mono { font-size: 12px; letter-spacing: .02em; text-transform: none; }

/* ---------- shared blocks ---------- */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }








.rows > * { border-top: 1px solid var(--line-2); }
.rows > *:last-child { border-bottom: 1px solid var(--line-2); }
.insight-row { display: grid; grid-template-columns: 200px 1fr auto; gap: 24px; align-items: center; padding: 28px 0; transition: padding .25s ease; }
.insight-row:hover { padding-left: 12px; }
.insight-row .h4 { font-size: clamp(20px, 1.8vw, 26px); }







/* ---------- reveal ---------- */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal { opacity: 0; transform: translateY(16px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.7,.2,1); }
  .js .reveal.is-in { opacity: 1; transform: none; }
}

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .footer-top { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; max-width: 420px; }
  
  
}
@media (max-width: 900px) {
  .nav .wrap { height: 72px; }
  .menu-btn { display: inline-flex; font: 500 15px/1 var(--font-sans); cursor: pointer; }
  .nav nav > ul { display: none; position: absolute; top: 72px; left: 0; right: 0; flex-direction: column; align-items: flex-start; gap: 20px; padding: 24px var(--gutter) 32px; background: var(--bg); border-bottom: 1px solid var(--line); }
  .nav-toggle:checked ~ ul { display: flex; }
  .grid-3 { grid-template-columns: 1fr; }
  .head { flex-direction: column; align-items: flex-start; }
  .insight-row { grid-template-columns: 1fr auto; }
  .insight-row .mono { grid-column: 1 / -1; }
}
@media (max-width: 600px) {
  
  .footer-top { grid-template-columns: 1fr; }
  /* copyright, legal links and language on one line */
  .footer-bottom { flex-wrap: wrap; align-items: center; gap: 10px; }
  .footer-bottom .foot-r { gap: 6px; flex-wrap: wrap; }
  .footer-bottom .mono { white-space: nowrap; }
  .footer-bottom .foot-r a { padding: 10px 3px; }
}

/* ---------- figures: draw in, then the dot becomes the pivot ---------- */
.fig { width: 100%; height: auto; overflow: visible; shape-rendering: geometricPrecision; }
.fig .dot-drop { fill: var(--lime); }
.js .fig .ln:not(.dash) { stroke-dasharray: 1; stroke-dashoffset: 1; fill-opacity: 0; }
.js .fig .ln.dash { opacity: 0; }
.js .fig .pv { opacity: 0; transform-box: fill-box; transform-origin: 50% 100%; }
.js .fig.is-drawn .ln:not(.dash) {
  stroke-dashoffset: 0; fill-opacity: 1;
  transition: stroke-dashoffset .9s cubic-bezier(.4,0,.2,1) calc(var(--i) * 28ms), fill-opacity .6s ease calc(var(--i) * 28ms + .45s);
}
.js .fig.is-drawn .ln.dash { opacity: 1; transition: opacity .6s ease calc(var(--i) * 28ms + .3s); }
.js .fig.is-landed .pv { opacity: 1; animation: pivot-land .7s cubic-bezier(.34,1.56,.64,1) backwards; }
/* once settled, drop every animation property so the figure renders as plain, crisp vectors */
.js .fig.is-done .ln:not(.dash) { stroke-dasharray: none; transition: none; }
.js .fig.is-done .ln.dash { transition: none; }
.js .fig.is-done .pv { animation: none; transform: none; }
@keyframes pivot-land { from { transform: scale(.2); } to { transform: none; } }
.fig .dot-drop { transform-box: fill-box; transform-origin: center; }
@media (prefers-reduced-motion: reduce) {
  .js .fig .ln:not(.dash), .js .fig .pv, .js .fig .ln.dash { stroke-dasharray: none; stroke-dashoffset: 0; fill-opacity: 1; opacity: 1; transition: none; animation: none; }
}

/* ---------- headings rise in word by word ---------- */
.js [data-split] .w { display: inline-block; opacity: 0; transform: translateY(.35em); transition: opacity .6s ease, transform .7s cubic-bezier(.2,.7,.2,1); transition-delay: calc(var(--w) * 45ms); }
.js [data-split].is-in .w { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .js [data-split] .w { opacity: 1; transform: none; transition: none; } }

/* ---------- nav hides on the way down ---------- */
.nav { transition: transform .35s ease, background-color .3s ease; }
.nav.is-hidden { transform: translateY(-100%); }











/* ---------- team ---------- */
.member { margin: 0; display: grid; gap: 14px; align-content: start; min-width: 0; }
.member .photo { overflow: hidden; border-radius: 2px; background: var(--portrait); aspect-ratio: 5 / 7; }
.member img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 0; transition: transform 1s cubic-bezier(.2,.7,.2,1), filter .6s ease; }
.member:hover img { transform: scale(1.04); }
.member figcaption { display: grid; gap: 6px; }
.member .name { font-weight: 500; font-size: 20px; line-height: 1.25; }
.member .role { font-size: 11px; color: var(--faint); }
.member .bio { font-size: 15px; line-height: 1.45; color: var(--muted); }
.member--lead .photo { aspect-ratio: 4 / 4.6; }
.member--lead .name { font-size: 24px; letter-spacing: -0.01em; }


.member--md .photo { aspect-ratio: 1 / 1; }
.member--md .name { font-size: 18px; }
.member--md .bio { font-size: 14px; }
.team-leads { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }










/* ---------- photo parallax ---------- */
[data-parallax] { will-change: transform; }

@media (max-width: 700px) {
  .team-leads { grid-template-columns: 1fr; }
  
  
}

/* team: leads by default, the rest opens in place */
button.link { background: none; border: 0; padding: 0; color: inherit; cursor: pointer; font-family: var(--font-sans); }






/* Event cover: one template for every event (option H), a wide ink ticket; sizes in cqi scale with the card */
.ev-cover { container-type: inline-size; position: relative; aspect-ratio: 2 / 1; overflow: hidden; border-radius: 2px; background: var(--ink); }
.ev-in { position: absolute; inset: 0; display: grid; grid-template-columns: 1fr 30%; }
.ev-cover .mono { font-size: max(1.5cqi, 9px); }
.ev-main { display: grid; grid-template-rows: auto 1fr; padding: 4.5cqi; }
.ev-row { display: flex; justify-content: space-between; align-items: center; gap: 2cqi; }
.ev-row .logo svg { width: max(3cqi, 16px); height: auto; }
.ev-row .logo b { font-size: max(1.9cqi, 11px); }
.ev-title { font-weight: 500; font-size: max(5.4cqi, 18px); line-height: 1; letter-spacing: -0.04em; color: var(--paper-2); text-wrap: balance; align-self: end; }
.ev-stub { display: grid; grid-template-rows: auto 1fr auto; padding: 4.5cqi 3.5cqi; border-left: 1px dashed var(--ink-line-2); background: var(--ink-2); }
.ev-date { display: grid; align-content: center; }
.ev-date b { font: 500 13cqi/0.85 var(--font-mono); letter-spacing: -0.06em; color: var(--paper-2); }
.ev-date span { font: 500 max(2.4cqi, 10px)/1 var(--font-mono); text-transform: uppercase; color: var(--lime); margin-top: 1.4cqi; }
.ev-meta { display: grid; gap: 1cqi; }
.ev-meta b { font: 500 max(1.7cqi, 9px)/1.2 var(--font-mono); text-transform: uppercase; letter-spacing: .04em; color: var(--paper-2); }






.dhead-r { display: inline-flex; align-items: center; gap: 20px; }

/* language menu: round flag, drop-down */
.lang-li { position: relative; }
.lang-dd { position: relative; }
.lang-dd summary { list-style: none; display: inline-flex; align-items: center; gap: 7px; cursor: pointer; padding: 4px; border-radius: 999px; }
.lang-dd summary::-webkit-details-marker { display: none; }
.lang-dd summary:hover .flag, .lang-dd[open] summary .flag { box-shadow: 0 0 0 1.5px var(--fg); }
.lang-dd .flag { display: inline-block; width: 18px; height: 18px; border-radius: 50%; box-shadow: 0 0 0 1px var(--line-2); flex: none; overflow: hidden; }
.lang-dd .flag svg { width: 100%; height: 100%; display: block; }
.lang-dd .code { font: 500 12px/1 var(--font-mono); letter-spacing: .06em; }
.lang-dd .chev { width: 6px; height: 6px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: translateY(-2px) rotate(45deg); opacity: .6; transition: transform .2s ease; }
.lang-dd[open] .chev { transform: translateY(1px) rotate(225deg); }
.lang-dd ul { position: absolute; right: 0; top: calc(100% + 10px); min-width: 180px; margin: 0; padding: 6px; list-style: none; display: grid; gap: 2px; background: var(--paper-2); color: var(--ink); border: 1px solid var(--stone-200); border-radius: 10px; box-shadow: 0 12px 32px rgba(20, 20, 20, .12); z-index: 30; }
.lang-dd ul a { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 6px; font-size: 15px; font-weight: 500; opacity: 1 !important; }
.lang-dd ul a:hover { background: var(--paper); }
.lang-dd ul a[aria-current]::after { content: ""; margin-left: auto; width: 8px; height: 8px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 0 1.5px var(--ink); }
.lang-dd ul .flag { width: 20px; height: 20px; }
.nav ul .lang-li { margin-left: -12px; }
@media (max-width: 900px) { .nav ul .lang-li { margin-left: 0; } .lang-dd ul { right: auto; left: 0; } }

/* right-click menu on the header logo */
.logo-menu { position: fixed; z-index: 60; min-width: 260px; padding: 6px; display: grid; gap: 2px; background: var(--paper-2); color: var(--ink); border: 1px solid var(--stone-200); border-radius: 10px; box-shadow: 0 12px 32px rgba(20, 20, 20, .14); }
.logo-menu[hidden] { display: none; }
.logo-menu button, .logo-menu a { display: flex; align-items: center; gap: 12px; width: 100%; padding: 10px 12px; border: 0; border-radius: 6px; background: none; color: inherit; font: 500 15px/1.2 var(--font-sans); text-align: left; cursor: pointer; }
.logo-menu button:hover, .logo-menu a:hover, .logo-menu button:focus-visible, .logo-menu a:focus-visible { background: var(--paper); outline: none; }
.logo-menu svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.logo-menu hr { border: 0; border-top: 1px solid var(--stone-200); margin: 4px 0; }
.logo-toast { position: fixed; left: 50%; bottom: 32px; transform: translateX(-50%) translateY(20px); opacity: 0; transition: .25s ease; background: var(--ink); color: var(--paper-2); font: 500 12px/1 var(--font-mono); letter-spacing: .06em; text-transform: uppercase; padding: 12px 16px; border-radius: 999px; pointer-events: none; z-index: 61; }
.logo-toast.on { opacity: 1; transform: translateX(-50%); }

/* phones */
@media (max-width: 700px) {
  /* team portraits: a swipeable row that bleeds to the screen edges */
  .team-leads { display: grid; grid-auto-flow: column; grid-template-columns: none; grid-auto-columns: 76%; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; margin: 0 calc(-1 * var(--gutter)); padding: 0 var(--gutter) 8px; scroll-padding: 0 var(--gutter); scrollbar-width: none; }
  .team-leads::-webkit-scrollbar { display: none; }
  .team-leads > * { scroll-snap-align: start; }
  /* comfortable tap targets in the footer */
  .footer-col { gap: 0 !important; }
  .footer-col a { display: block; padding: 9px 0; }
  .foot-r a, .foot-r .lang-switch a { display: inline-block; padding: 10px 6px; }
}

@media (max-width: 700px) {
  /* the ticket gets taller on phones so its labels have room */
  .ev-cover { aspect-ratio: 16 / 11; }
  .ev-main, .ev-stub { padding: 16px; }
  /* design pages: logo mark only, so the Studio / Toolkit switch and the language menu fit */
  .dhead .logo b { display: none; }
  .dhead .tabs a { padding: 9px 12px; }
  .dhead-r { gap: 10px; }
}
/* small tickets: the partner name is listed under the ticket, so it leaves the top row */
@container (max-width: 460px) { .ev-row .mono { display: none; } }

/* phone menu: full screen, large links, the main button full width, language at the bottom */
@media (max-width: 900px) {
  .nav nav > ul { position: fixed; top: 72px; bottom: 0; left: 0; right: 0; height: calc(100dvh - 72px); gap: 0; padding: 8px var(--gutter) calc(24px + env(safe-area-inset-bottom)); overflow-y: auto; border-bottom: 0; flex-wrap: nowrap; }
  .nav nav > ul li { width: 100%; }
  .nav nav > ul li a:not(.btn) { display: block; padding: 18px 0; font-size: 30px; line-height: 1.1; letter-spacing: -0.02em; border-bottom: 1px solid var(--line); }
  .nav nav > ul .btn { display: flex; justify-content: center; width: 100%; margin-top: 28px; padding: 18px 20px; font-size: 17px; }
  .nav ul .lang-li { margin-top: auto; padding-top: 28px; }
  .nav ul .lang-dd ul { position: absolute; top: auto; bottom: calc(100% + 10px); left: 0; right: auto; height: auto; padding: 6px; overflow: visible; border: 1px solid var(--stone-200); }
  .nav ul .lang-dd ul li a { font-size: 17px !important; padding: 12px !important; border-bottom: 0 !important; display: flex !important; }
  .nav ul .lang-dd summary { padding: 10px 4px; }
  html:has(.nav-toggle:checked) { overflow: hidden; }
}
/* design pages: the language menu opens towards the left edge of its button */
.dhead .lang-dd ul { left: auto !important; right: 0 !important; }

/* play button over a video still, for phones and reduced motion */
.vplay { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 64px; height: 64px; border-radius: 50%; border: 0; display: grid; place-items: center; background: var(--lime); color: var(--ink); box-shadow: 0 0 0 1.5px var(--ink), 0 8px 24px rgba(0,0,0,.25); cursor: pointer; z-index: 2; }
.vplay svg { width: 24px; height: 24px; fill: currentColor; margin-left: 3px; }
.vplay:active { transform: translate(-50%, -50%) scale(.94); }

/* phone type and spacing: tuned for a 390px screen rather than scaled down from desktop */
@media (max-width: 600px) {
  :root { --gutter: 20px; --section: 64px; }
  body { font-size: 16px; }
  .display { font-size: 42px; line-height: 1; letter-spacing: -0.04em; }
  .h1 { font-size: 34px; line-height: 1.06; letter-spacing: -0.03em; }
  .hero h1.h1 { font-size: 40px; line-height: 1.02; }
  .h2 { font-size: 28px; line-height: 1.1; letter-spacing: -0.025em; }
  .h2--sm { font-size: 26px; }
  .h3 { font-size: 22px; line-height: 1.2; }
  .h4 { font-size: 19px; line-height: 1.25; }
  .lead { font-size: 17px; line-height: 1.5; }
  .body { font-size: 16px; line-height: 1.55; }
  .small { font-size: 14px; }
  .mono { font-size: 11.5px; }
  .head { margin-bottom: 32px; gap: 16px; }
  .head > div { gap: 14px; }
  .wrap.hero { padding-top: 40px; padding-bottom: 36px; gap: 18px; }
  .btns { width: 100%; }
  .btns .btn { flex: 1 1 auto; justify-content: center; }
}
/* phones: headlines appear at once instead of word by word, so the largest text paints immediately */
@media (max-width: 700px) {
  .js [data-split] .w { opacity: 1 !important; transform: none !important; transition: none !important; }
}

/* phones: sticky call to action */
.cta-bar { display: none; }
@media (max-width: 700px) {
  .cta-bar { display: block; position: fixed; left: 0; right: 0; bottom: 0; z-index: 25; padding: 12px var(--gutter) calc(12px + env(safe-area-inset-bottom)); background: color-mix(in srgb, var(--paper) 92%, transparent); backdrop-filter: saturate(140%) blur(12px); -webkit-backdrop-filter: saturate(140%) blur(12px); border-top: 1px solid var(--stone-200); transform: translateY(110%); transition: transform .3s ease; }
  .cta-bar.on { transform: none; }
  .cta-bar .btn { display: flex; justify-content: center; width: 100%; padding: 16px 20px; }
}
/* swipe rows: position dots */
.swipe-dots { display: none; }
@media (max-width: 700px) {
  .swipe-dots { display: flex; justify-content: center; gap: 4px; margin-top: 14px; }
  .swipe-dots[hidden] { display: none; }
  .swipe-dots button { width: 22px; height: 22px; padding: 0; border: 0; background: none; display: grid; place-items: center; cursor: pointer; }
  .swipe-dots button::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--line-2); transition: width .2s ease, background .2s ease; }
  .swipe-dots button[aria-current]::before { width: 18px; border-radius: 4px; background: var(--lime); box-shadow: 0 0 0 1.5px var(--ink); }
  .ink .swipe-dots button[aria-current]::before { box-shadow: none; }
}
/* the logo: no system callout on long press */
header .logo { -webkit-touch-callout: none; -webkit-user-select: none; user-select: none; }

/* footer: the same language menu, opening upwards on the dark ground */
.foot-r { display: inline-flex; align-items: center; gap: 18px; }
.footer .lang-dd summary { color: var(--paper-2); }
.footer .lang-dd .flag { box-shadow: 0 0 0 1px var(--ink-line-2); }
.footer .lang-dd ul { top: auto; bottom: calc(100% + 10px); right: 0; left: auto; }

/* pixel icons that sort themselves into place in a loop, like the algorithm: scattered pixels arrive in one
   left-to-right pass, the lime pixels land last with a small bounce, the icon holds, then drifts apart */
.disc:has(.icon--anim) { overflow: hidden; }
@media (prefers-reduced-motion: no-preference) {
  .icon--anim rect { transform-box: fill-box; transform-origin: center; animation: px-sort 5.6s cubic-bezier(.16, .84, .3, 1) infinite backwards;
    animation-delay: calc(var(--d, 0s) + var(--i) * 1.3s / var(--n)); }
  .icon--anim rect.acc { animation-name: px-land; animation-timing-function: linear; }
  .svc:nth-child(2) .icon--anim { --d: .7s; }
  .svc:nth-child(3) .icon--anim { --d: 1.4s; }
}
@keyframes px-sort {
  0% { opacity: 0; transform: translate(calc(var(--dx) * 1px), calc(var(--dy) * 1px)) scale(.4); }
  20% { opacity: 1; transform: none; }
  74% { opacity: 1; transform: none; }
  90%, 100% { opacity: 0; transform: translate(calc(var(--dx) * -.5px), calc(var(--dy) * -.5px)) scale(.4); }
}
@keyframes px-land {
  0%, 8% { opacity: 0; transform: translateY(-7px); }
  16% { opacity: 1; transform: translateY(0); animation-timing-function: ease-out; }
  19% { transform: translateY(-1.5px); }
  22% { transform: translateY(0); }
  74% { opacity: 1; transform: none; }
  90%, 100% { opacity: 0; transform: translateY(-4px); }
}

/* phone menu button: a burger that turns into a cross when the menu is open */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
@media (max-width: 900px) {
  .menu-btn { width: 44px; height: 44px; margin-right: -10px; align-items: center; justify-content: center; border-radius: 50%; -webkit-tap-highlight-color: transparent; }
  .burger { position: relative; width: 22px; height: 14px; display: block; }
  .burger i { position: absolute; left: 0; width: 100%; height: 1.5px; border-radius: 2px; background: var(--fg); transition: transform .3s cubic-bezier(.2,.7,.2,1), opacity .2s ease, top .3s cubic-bezier(.2,.7,.2,1); }
  .burger i:nth-child(1) { top: 0; }
  .burger i:nth-child(2) { top: 6.25px; width: 70%; left: 30%; }
  .burger i:nth-child(3) { top: 12.5px; }
  .nav-toggle:checked + .menu-btn .burger i:nth-child(1) { top: 6.25px; transform: rotate(45deg); }
  .nav-toggle:checked + .menu-btn .burger i:nth-child(2) { opacity: 0; transform: translateX(6px); }
  .nav-toggle:checked + .menu-btn .burger i:nth-child(3) { top: 6.25px; transform: rotate(-45deg); }
  .nav-toggle:focus-visible + .menu-btn { outline: 2px solid var(--fg); outline-offset: 2px; }
}

/* language menu in the header bar on phones, just before the burger (the one inside the menu is for larger screens) */
.lang-top { display: none; }
@media (max-width: 900px) {
  .nav nav { display: flex; align-items: center; gap: 6px; }
  .lang-top { display: block; }
  .nav ul .lang-li { display: none; }
  .lang-top .lang-dd ul { top: calc(100% + 12px); bottom: auto; left: auto; right: 0; }
}

/* client logos: one row on larger screens; on phones a 2 × 2 grid of equal cells divided by a thin cross */
.client-cell { display: inline-flex; align-items: center; justify-content: center; }
@media (max-width: 700px) {
  .logos .row { display: grid !important; grid-template-columns: 1fr 1fr; gap: 0 !important; }
  .logos .client-cell { height: 92px; }
  .logos .client-cell:nth-child(odd) { border-right: 1px solid var(--line); }
  .logos .client-cell:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .logos .client { max-width: 72%; }
  .logos .client--airbus { height: 22px; }
  .logos .client--bnp { height: 28px; }
  .logos .client--capgemini { height: 30px; }
  .logos .client--clubmed { height: 25px; }
  .logos .wrap > .mono, .logos .wrap > p { text-align: center; }
}
