/* ══════════════════════════════════════════════════════════════
   AAI MAQUINE / site.css
   Swiss edition: 12-column grid, Founders Grotesk, paper and ink,
   vector line-work held at low opacity. Shared by EN and FR pages.
   ══════════════════════════════════════════════════════════════ */

@font-face { font-family: 'Founders Grotesk'; src: url('../fonts/FoundersGrotesk-Regular.woff2') format('woff2');  font-weight: 400; font-display: swap; }
@font-face { font-family: 'Founders Grotesk'; src: url('../fonts/FoundersGrotesk-Medium.woff2') format('woff2');   font-weight: 500; font-display: swap; }
@font-face { font-family: 'Founders Grotesk'; src: url('../fonts/FoundersGrotesk-Semibold.woff2') format('woff2'); font-weight: 600; font-display: swap; }

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

:root {
  --paper:   #f2f2f0;
  --paper-2: #eaeae7;
  --ink:     #0d0d0d;
  --ink-2:   #3a3a38;
  --ink-3:   #5c5c59;
  --ink-4:   #8e8e8a;
  --rule:    #cdcdc8;

  --sans: 'Founders Grotesk', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, monospace;

  --gut:    clamp(20px, 3.6vw, 64px);
  --max:    1440px;
  --gap:    clamp(16px, 2vw, 32px);
  --rowgap: clamp(56px, 8vw, 128px);
}

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  background: var(--paper); color: var(--ink);
  font-family: var(--sans); font-size: 16px; line-height: 1.5;
  overflow-x: hidden; -webkit-font-smoothing: antialiased;
}
::selection { background: var(--ink); color: var(--paper); }
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--paper); }
::-webkit-scrollbar-thumb { background: var(--rule); }
img { display: block; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }

.skip { position: absolute; left: -9999px; top: 0; z-index: 999; background: var(--ink); color: var(--paper); padding: 12px 18px; font-family: var(--mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; }
.skip:focus { left: 0; }

/* ── STRUCTURAL GRID (drawn at 4.5%) ─────────── */
.grid-field { position: fixed; inset: 0; z-index: 0; pointer-events: none; max-width: var(--max); margin: 0 auto; padding: 0 var(--gut); display: grid; grid-template-columns: repeat(12, 1fr); }
.grid-field i { border-left: 1px solid var(--ink); opacity: .045; }
.grid-field i:last-child { border-right: 1px solid var(--ink); }
@media (max-width: 900px) { .grid-field i:nth-child(n+5) { display: none; } }

/* ── SHELL ───────────────────────────────────── */
.wrap { max-width: var(--max); margin: 0 auto; padding-left: var(--gut); padding-right: var(--gut); position: relative; z-index: 1; }
.g12  { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: var(--gap); }

/* ── TYPE ────────────────────────────────────── */
.display { font-size: clamp(44px, 8.8vw, 136px); font-weight: 600; line-height: .9;  letter-spacing: -.03em; }
.h2      { font-size: clamp(32px, 4.6vw, 72px);  font-weight: 600; line-height: .94; letter-spacing: -.025em; }
.h3      { font-size: clamp(21px, 2vw, 28px);    font-weight: 600; line-height: 1.08; letter-spacing: -.015em; }
.lead    { font-size: clamp(17px, 1.45vw, 21px); line-height: 1.45; color: var(--ink-2); }
.body    { font-size: 16px; line-height: 1.55; color: var(--ink-2); }
.label   { font-family: var(--mono); font-size: 11px; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-3); }
.meta    { font-family: var(--mono); font-size: 11px; letter-spacing: .08em; color: var(--ink-3); }
.rule      { border-top: 1px solid var(--ink); }
.rule-hair { border-top: 1px solid var(--rule); }

/* ── VECTOR LAYERS ───────────────────────────────
   The four line-work patterns. Hairlines stay 0.75 to 0.9px at any size
   (vector-effect inside the SVG), so elegance comes from placement and
   opacity, never from weight. Each layer fades in when its section arrives
   and drifts slower than the page (data-p) so the type reads as printed
   over the drawing rather than glued to it. */
.vec {
  position: absolute; z-index: 0; pointer-events: none; opacity: 0;
  background-repeat: no-repeat; background-size: contain; background-position: center;
  object-fit: contain; will-change: transform, opacity;
  transition: opacity 1.4s ease;
  -webkit-mask-image: radial-gradient(ellipse closest-side at 50% 50%, #000 0%, rgba(0,0,0,.9) 40%, rgba(0,0,0,.35) 68%, transparent 88%);
          mask-image: radial-gradient(ellipse closest-side at 50% 50%, #000 0%, rgba(0,0,0,.9) 40%, rgba(0,0,0,.35) 68%, transparent 88%);
}

/* ── NAV ─────────────────────────────────────── */
nav.top { position: fixed; top: 0; left: 0; right: 0; z-index: 90; background: rgba(242,242,240,0); border-bottom: 1px solid transparent; transition: background .32s ease, border-color .32s ease; }
nav.top.scrolled, nav.top.open { background: rgba(242,242,240,.96); border-bottom-color: var(--rule); backdrop-filter: blur(12px); }
.nav-in { max-width: var(--max); margin: 0 auto; padding: 0 var(--gut); height: 64px; display: flex; align-items: center; gap: 32px; }
.mark { display: block; background-color: var(--ink); -webkit-mask: url('../assets/logo-dark.png') no-repeat center / contain; mask: url('../assets/logo-dark.png') no-repeat center / contain; }
.nav-logo { height: 17px; width: 39px; }
.nav-links { display: flex; gap: 22px; flex: 1; }
.nav-link { font-family: var(--mono); font-size: 11px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); text-decoration: none; padding: 3px 0; border-bottom: 1px solid transparent; transition: color .14s, border-color .14s; }
.nav-link:hover { color: var(--ink); border-bottom-color: var(--ink); }
.nav-right { display: flex; align-items: center; gap: 18px; margin-left: auto; }
.lang { display: flex; gap: 0; font-family: var(--mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; border: 1px solid var(--rule); }
.lang a { padding: 6px 9px; text-decoration: none; color: var(--ink-3); }
.lang a[aria-current="true"] { background: var(--ink); color: var(--paper); }
.lang a:not([aria-current]):hover { color: var(--ink); }
.nav-cta { font-family: var(--mono); font-size: 11px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; background: var(--ink); color: var(--paper); padding: 10px 18px; text-decoration: none; transition: background .14s; white-space: nowrap; }
.nav-cta:hover { background: var(--ink-2); }
.nav-toggle { display: none; font-family: var(--mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; background: none; border: 1px solid var(--ink); color: var(--ink); padding: 9px 12px; cursor: pointer; }
.nav-menu { display: none; }
@media (max-width: 900px) {
  .nav-links, .nav-cta { display: none; }
  .nav-toggle { display: inline-block; }
  .nav-menu { display: none; position: absolute; top: 100%; left: 0; right: 0; height: calc(100vh - 64px); height: calc(100dvh - 64px); background: var(--paper); border-top: 1px solid var(--ink); padding: 24px var(--gut); overflow: auto; }
  nav.top.open .nav-menu { display: block; }
  .nav-menu a { display: block; padding: 18px 0; border-bottom: 1px solid var(--rule); text-decoration: none; font-size: clamp(26px, 7vw, 36px); font-weight: 600; letter-spacing: -.02em; }
  .nav-menu a.cta { margin-top: 24px; border: 1px solid var(--ink); background: var(--ink); color: var(--paper); padding: 18px 20px; font-family: var(--mono); font-size: 12px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; }
}

/* ── HERO ────────────────────────────────────── */
.hero { position: relative; padding-top: 124px; padding-bottom: clamp(48px, 6vw, 96px); overflow: hidden; }
.hero-vec { top: -16%; right: -22%; width: min(1240px, 112vw); height: auto; aspect-ratio: 448/468; --o: .78; }
.vec.in, html:not(.js) .vec { opacity: var(--o, .5); }
.hero-meta { display: flex; flex-wrap: wrap; gap: 8px 28px; align-items: baseline; padding-bottom: 14px; }
.hero-meta span { font-family: var(--mono); font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-3); }
.hero-meta span:first-child { color: var(--ink); }
.hero-h1 { margin-top: clamp(40px, 7vw, 96px); max-width: 14ch; }
.hero-h1 em { font-style: normal; color: var(--ink-3); }
.hero-grid { margin-top: clamp(36px, 5vw, 72px); align-items: end; row-gap: 32px; }
.hero-sub { grid-column: 1 / span 5; }
.hero-actions { grid-column: 8 / span 5; display: flex; gap: 10px; flex-wrap: wrap; justify-content: flex-end; }
.btn { font-family: var(--mono); font-size: 11.5px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; padding: 15px 26px; text-decoration: none; display: inline-block; border: 1px solid var(--ink); transition: background .15s, color .15s; cursor: pointer; }
.btn-solid { background: var(--ink); color: var(--paper); }
.btn-solid:hover { background: var(--paper); color: var(--ink); }
.btn-ghost { background: transparent; color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--paper); }

/* ── STAT STRIP ──────────────────────────────── */
.stats { border-top: 1px solid var(--ink); border-bottom: 1px solid var(--ink); }
.stats .g12 { column-gap: 0; }
.stat { grid-column: span 3; padding: 26px var(--gap) 26px 0; border-right: 1px solid var(--rule); }
.stat:last-child { border-right: none; }
.stat + .stat { padding-left: var(--gap); }
.stat b { display: block; font-size: clamp(52px, 6.4vw, 104px); font-weight: 600; line-height: .9; letter-spacing: -.04em; }
.stat b small { font-size: .5em; letter-spacing: -.02em; vertical-align: top; margin-left: .04em; }
.stat span { display: block; margin-top: 14px; font-family: var(--mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); max-width: 26ch; line-height: 1.5; }
@media (max-width: 900px) { .stat { grid-column: span 6; } .stat:nth-child(2) { border-right: none; } .stat:nth-child(3) { padding-left: 0; border-top: 1px solid var(--rule); } .stat:nth-child(4) { border-top: 1px solid var(--rule); } }

/* ── SECTIONS ────────────────────────────────── */
section { position: relative; padding-top: var(--rowgap); padding-bottom: var(--rowgap); }
.sec-head { display: grid; grid-template-columns: repeat(12,1fr); column-gap: var(--gap); row-gap: 20px; padding-top: 18px; }
.sec-head .label { grid-column: 1 / span 2; }
.sec-head .h2   { grid-column: 3 / span 6; }
.sec-head .lead { grid-column: 9 / span 4; align-self: end; }

/* ── SERVICES ────────────────────────────────── */
.svc { display: grid; grid-template-columns: repeat(12,1fr); column-gap: var(--gap); padding: clamp(28px,3.4vw,48px) 0 clamp(36px,4vw,56px); align-items: start; }
.svc-num { grid-column: 1 / span 2; font-size: clamp(64px, 7.4vw, 118px); font-weight: 600; line-height: .8; letter-spacing: -.05em; margin-top: -.04em; margin-left: -.06em; }
.svc-body { grid-column: 3 / span 5; }
.svc-body h3 { margin-bottom: 14px; }
.svc-body .body { max-width: 48ch; }
.svc-spec { grid-column: 9 / span 4; }
.spec { list-style: none; border-top: 1px solid var(--ink); }
.spec li { display: flex; justify-content: space-between; gap: 16px; padding: 9px 0; border-bottom: 1px solid var(--rule); font-family: var(--mono); font-size: 11.5px; letter-spacing: .04em; color: var(--ink-2); }
.spec li i { font-style: normal; color: var(--ink-4); }
.spec-label { display: block; margin-bottom: 10px; }

/* ── APPROACH ────────────────────────────────── */
.approach { background: var(--paper-2); overflow: hidden; }
.approach-vec { top: -22%; right: -18%; width: min(1180px, 120vw); aspect-ratio: 1/1; background-image: url('../assets/bg-flow-lines.svg'); --o: .42; }
.steps { display: grid; grid-template-columns: repeat(12,1fr); column-gap: var(--gap); row-gap: 48px; margin-top: clamp(40px,5vw,72px); }
.step { grid-column: span 4; }
.step-num { font-size: clamp(80px, 13vw, 210px); font-weight: 600; line-height: .74; letter-spacing: -.06em; color: var(--ink); opacity: .14; margin-bottom: 18px; user-select: none; }
.step h3 { margin-bottom: 12px; padding-top: 16px; border-top: 1px solid var(--ink); }
.step ul { list-style: none; margin-top: 18px; display: grid; gap: 7px; }
.step li { font-family: var(--mono); font-size: 11.5px; letter-spacing: .04em; color: var(--ink-3); position: relative; padding-left: 20px; }
.step li::before { content: ''; position: absolute; left: 0; top: 8px; width: 10px; height: 1px; background: var(--ink-4); }

/* ── DATA & AI ───────────────────────────────── */
.dataai { overflow: hidden; border-top: 1px solid var(--ink); }
.dataai-vec { top: 6%; left: -14%; width: min(900px, 96vw); aspect-ratio: 262/280; background-image: url('../assets/bg-mesh.svg'); --o: .5; }
@media (max-width: 1100px) { .dataai-vec { top: 20%; left: -30%; --o: .32; } }
.zero-grid { display: grid; grid-template-columns: repeat(12,1fr); column-gap: var(--gap); row-gap: 40px; margin-top: clamp(40px,5vw,72px); align-items: start; }
.zero { grid-column: 1 / span 4; }
.zero { position: relative; }
.zero b { display: block; font-size: clamp(180px, 27vw, 420px); font-weight: 600; line-height: .78; letter-spacing: -.07em; margin-left: -.04em; }
.zero p { margin-top: 18px; max-width: 26ch; font-size: clamp(17px, 1.45vw, 21px); line-height: 1.35; font-weight: 500; letter-spacing: -.01em; }
.pillars { grid-column: 5 / span 8; display: grid; grid-template-columns: repeat(3, 1fr); column-gap: var(--gap); row-gap: 36px; }
.pillar { border-top: 1px solid var(--ink); padding-top: 18px; }
.pillar .label { display: block; margin-bottom: 14px; }
.pillar h3 { margin-bottom: 12px; font-size: clamp(19px, 1.6vw, 23px); }
.pillar ul { list-style: none; margin-top: 16px; display: grid; gap: 8px; }
.pillar li { font-size: 14.5px; line-height: 1.45; color: var(--ink-2); position: relative; padding-left: 18px; }
.pillar li::before { content: ''; position: absolute; left: 0; top: 10px; width: 9px; height: 1px; background: var(--ink); }
@media (max-width: 1100px) { .zero { grid-column: span 12; } .pillars { grid-column: span 12; } }
@media (max-width: 720px)  { .pillars { grid-template-columns: 1fr; } }

/* ── WHY ─────────────────────────────────────── */
.why { display: grid; grid-template-columns: repeat(12,1fr); column-gap: var(--gap); margin-top: clamp(40px,5vw,72px); border-top: 1px solid var(--ink); }
.why-card { grid-column: span 4; padding: 26px var(--gap) 0 0; border-right: 1px solid var(--rule); }
.why-card:last-child { border-right: none; }
.why-card + .why-card { padding-left: var(--gap); }
.why-card .label { display: block; margin-bottom: 20px; }
.why-card h3 { margin-bottom: 14px; }
@media (max-width: 800px) { .why-card { grid-column: span 12; border-right: none; padding-left: 0; padding-bottom: 26px; border-bottom: 1px solid var(--rule); } .why-card:last-child { border-bottom: none; } }

/* ── TEAM ────────────────────────────────────── */
.team { display: grid; grid-template-columns: repeat(12,1fr); column-gap: var(--gap); row-gap: 48px; margin-top: clamp(40px,5vw,72px); }
.member { grid-column: span 6; border-top: 1px solid var(--ink); padding-top: 22px; display: grid; grid-template-columns: repeat(6,1fr); column-gap: var(--gap); }
.member-num { grid-column: span 1; font-size: clamp(40px, 4vw, 64px); font-weight: 600; line-height: .8; letter-spacing: -.05em; }
.member-main { grid-column: 2 / span 5; }
.member-name { font-size: clamp(28px, 2.8vw, 44px); font-weight: 600; letter-spacing: -.025em; line-height: 1; }
.member-role { margin-top: 10px; }
.member-main .body { margin-top: 20px; max-width: 44ch; }
.member-main .spec { margin-top: 22px; }
@media (max-width: 900px) { .member { grid-column: span 12; } }

/* ── FAQ ─────────────────────────────────────── */
.faq { border-top: 1px solid var(--ink); margin-top: clamp(40px,5vw,72px); }
.faq details { border-bottom: 1px solid var(--rule); }
.faq summary { list-style: none; cursor: pointer; display: grid; grid-template-columns: 44px 1fr 24px; column-gap: var(--gap); align-items: baseline; padding: 20px 0; font-size: clamp(18px, 1.6vw, 23px); font-weight: 500; letter-spacing: -.012em; line-height: 1.2; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .n { font-family: var(--mono); font-size: 11px; letter-spacing: .1em; color: var(--ink-4); }
.faq summary .x { position: relative; width: 14px; height: 14px; justify-self: end; }
.faq summary .x::before, .faq summary .x::after { content: ''; position: absolute; background: var(--ink); left: 0; top: 6.5px; width: 14px; height: 1px; }
.faq summary .x::after { transform: rotate(90deg); transition: transform .2s; }
.faq details[open] summary .x::after { transform: rotate(0); }
.faq .a { padding: 0 0 26px; display: grid; grid-template-columns: 44px 1fr 24px; column-gap: var(--gap); }
.faq .a p { grid-column: 2; max-width: 68ch; }
@media (max-width: 640px) { .faq summary, .faq .a { grid-template-columns: 1fr 24px; } .faq summary .n { display: none; } .faq .a p { grid-column: 1; } }

/* ── CONTACT ─────────────────────────────────── */
.contact { overflow: hidden; border-top: 1px solid var(--ink); }
.contact-vec { bottom: -50%; right: -26%; width: min(1100px, 120vw); aspect-ratio: 1/1; background-image: url('../assets/bg-wave-field.svg'); --o: .46; }
.contact-grid { display: grid; grid-template-columns: repeat(12,1fr); column-gap: var(--gap); row-gap: 56px; margin-top: clamp(36px,4vw,64px); }
.contact-left { grid-column: 1 / span 5; }
.contact-right { grid-column: 7 / span 6; }
.contact-list { margin-top: 36px; border-top: 1px solid var(--rule); }
.contact-item { display: flex; gap: 14px; align-items: baseline; padding: 13px 0; border-bottom: 1px solid var(--rule); font-size: 15px; color: var(--ink-2); }
.contact-item b { font-family: var(--mono); font-size: 10.5px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-4); min-width: 80px; flex-shrink: 0; }
.contact-item a { color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--ink-4); }
.contact-item a:hover { border-bottom-color: var(--ink); }
@media (max-width: 900px) { .contact-left, .contact-right { grid-column: span 12; } }

form { display: grid; gap: 22px; }
.f-row { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
@media (max-width: 560px) { .f-row { grid-template-columns: 1fr; } }
.field { display: grid; gap: 7px; }
.field label { font-family: var(--mono); font-size: 10.5px; font-weight: 500; letter-spacing: .15em; text-transform: uppercase; color: var(--ink-3); }
.field input, .field select, .field textarea { font-family: var(--sans); font-size: 16px; color: var(--ink); background: transparent; border: none; border-bottom: 1px solid var(--ink-4); padding: 9px 0; outline: none; border-radius: 0; transition: border-color .15s; }
.field select { font-family: var(--mono); font-size: 13px; }
.field input::placeholder, .field textarea::placeholder { color: var(--ink-4); }
.field input:focus, .field select:focus, .field textarea:focus { border-bottom-color: var(--ink); border-bottom-width: 2px; padding-bottom: 8px; outline: none; }
.field textarea { resize: vertical; min-height: 92px; line-height: 1.5; }
.hp { position: absolute; left: -9999px; }
.consent { display: flex; gap: 12px; align-items: flex-start; cursor: pointer; }
.consent input[type=checkbox] { appearance: none; -webkit-appearance: none; width: 15px; height: 15px; flex-shrink: 0; margin-top: 3px; border: 1px solid var(--ink-3); background: transparent; cursor: pointer; position: relative; }
.consent input[type=checkbox]:checked { background: var(--ink); border-color: var(--ink); }
.consent input[type=checkbox]:checked::after { content: ''; position: absolute; left: 4px; top: .5px; width: 4px; height: 9px; border: solid var(--paper); border-width: 0 1.5px 1.5px 0; transform: rotate(45deg); }
.consent span { font-size: 12.5px; line-height: 1.5; color: var(--ink-3); }
.consent a { color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--ink-4); }
.form-status { font-family: var(--mono); font-size: 11.5px; letter-spacing: .06em; color: var(--ink-2); min-height: 1.2em; }
.form-status.err { color: var(--ink); border-left: 2px solid var(--ink); padding-left: 10px; }

/* ── FOOTER ──────────────────────────────────── */
footer { border-top: 1px solid var(--ink); }
.foot { display: flex; flex-wrap: wrap; gap: 24px 40px; align-items: center; justify-content: space-between; padding: 26px 0; }
.foot-left { display: flex; align-items: center; gap: 18px; }
.foot-logo { height: 14px; width: 32px; }
.foot-links { display: flex; flex-wrap: wrap; gap: 22px; }
.foot-links a { font-family: var(--mono); font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); text-decoration: none; transition: color .14s; }
.foot-links a:hover { color: var(--ink); }

/* ── TOAST ───────────────────────────────────── */
#toast { position: fixed; bottom: 24px; right: 24px; max-width: 320px; z-index: 200; background: var(--ink); color: var(--paper); padding: 16px 20px; transform: translateY(90px); opacity: 0; transition: all .38s cubic-bezier(.16,1,.3,1); }
#toast.show { transform: none; opacity: 1; }
#toast b { font-size: 14px; display: block; margin-bottom: 4px; }
#toast span { font-family: var(--mono); font-size: 10.5px; letter-spacing: .06em; color: var(--ink-4); }

/* ── REVEAL ──────────────────────────────────── */
/* ── MOTION ───────────────────────────────────────
   Sober: opacity and transform only, 0.6 to 1s, one easing curve,
   everything gated on html.js and on prefers-reduced-motion. */
html.js .rv { opacity: 0; transform: translateY(18px); transition: opacity .8s cubic-bezier(.2,.7,.2,1), transform .8s cubic-bezier(.2,.7,.2,1); }
html.js .rv.rv-x { transform: translateX(-22px); }
html.js .rv.rv-s { transform: translateY(24px) scale(.96); }
html.js .rv.in { opacity: 1; transform: none; }
html.js .d1 { transition-delay: 80ms } html.js .d2 { transition-delay: 160ms } html.js .d3 { transition-delay: 240ms }
html.js [data-stagger] > * { opacity: 0; transform: translateY(14px); transition: opacity .7s cubic-bezier(.2,.7,.2,1), transform .7s cubic-bezier(.2,.7,.2,1); }
html.js [data-stagger].in > * { opacity: 1; transform: none; }

/* rules draw themselves from the left when their block arrives */
html.js .rule, html.js .rule-hair { position: relative; border-top-color: transparent; }
html.js .rule::before, html.js .rule-hair::before { content: ''; position: absolute; left: 0; right: 0; top: -1px; height: 1px; background: var(--ink); transform: scaleX(0); transform-origin: left center; transition: transform 1.1s cubic-bezier(.2,.7,.2,1); }
html.js .rule-hair::before { background: var(--rule); }
html.js .rule.in::before, html.js .rule-hair.in::before { transform: scaleX(1); }

/* hero headline: each line rises out of its own clip */
.hero-h1 .l { display: block; overflow: hidden; padding: .06em 0 .14em; margin: -.06em 0 -.14em; }
.hero-h1 .l > span { display: block; }
html.js .hero-h1 .l > span { transform: translateY(108%); transition: transform 1s cubic-bezier(.2,.7,.2,1); }
html.js .hero-h1 .l:nth-child(2) > span { transition-delay: 90ms; }
html.js .hero-h1.in .l > span { transform: none; }

/* reading progress, one hairline at the very top */
.progress { position: fixed; top: 0; left: 0; width: 100%; height: 2px; background: var(--ink); transform: scaleX(0); transform-origin: left center; z-index: 95; pointer-events: none; }

/* language hint, shown once to French browsers on the English page */
.lang-hint { position: fixed; left: 50%; bottom: 20px; transform: translateX(-50%); z-index: 96; display: flex; gap: 14px; align-items: center; background: var(--ink); color: var(--paper); padding: 12px 14px 12px 18px; font-size: 14px; max-width: calc(100vw - 32px); }
.lang-hint a { color: var(--paper); text-decoration: none; border-bottom: 1px solid var(--ink-4); }
.lang-hint button { background: none; border: 1px solid var(--ink-4); color: var(--paper); font-family: var(--mono); font-size: 11px; letter-spacing: .1em; padding: 6px 10px; cursor: pointer; }
.lang-hint[hidden] { display: none; }

@media (prefers-reduced-motion: reduce) {
  html.js .rv, html.js [data-stagger] > *, html.js .hero-h1 .l > span { opacity: 1; transform: none; transition: none; }
  html.js .rule::before, html.js .rule-hair::before { transform: none; transition: none; }
  .vec { transition: none; }
}

/* ── RESPONSIVE ──────────────────────────────── */
@media (max-width: 900px) {
  .hero-h1 { max-width: none; }
  .hero-sub, .hero-actions { grid-column: span 12; justify-content: flex-start; }
  .sec-head .label, .sec-head .h2, .sec-head .lead { grid-column: span 12; }
  .svc { row-gap: 18px; }
  .svc-num, .svc-body, .svc-spec { grid-column: span 12; }
  .step { grid-column: span 12; }
}

/* ── PRINT ───────────────────────────────────── */
@media print {
  .vec, .grid-field, nav.top, #toast, .nav-menu { display: none !important; }
  body { background: #fff; color: #000; }
  .approach { background: #fff; }
  .step-num { opacity: .35; }
  a { text-decoration: none; }
  .faq details { break-inside: avoid; }
}
