/* ==========================================================================
   Structure Moderne — shared stylesheet

   Desktop keeps the symmetric four-card / two-column grid.
   Mobile is treated as its own layout: shorter sections, smaller type,
   list-style process, compact trust strip and a sticky quote CTA.
   ========================================================================== */

:root{
  --bg:#090909;
  --bg-2:#0c0c0c;
  --panel:#111;
  --text:#f5f5f2;
  --muted:#a9a9a2;
  --dim:#8a8a83;
  --line:rgba(255,255,255,.12);
  --line-soft:rgba(255,255,255,.07);

  --r:24px;
  --r-sm:14px;
  --pill:999px;

  --max:1360px;
  --pad:clamp(20px,3.2vw,44px);

  /* Applied top AND bottom, so section-to-section is double this.
     390px → 64px · 768px → 84px · 1440px → 116px */
  --sp-section:clamp(32px,4vw,58px);
  --gap:clamp(16px,1.9vw,26px);
  --head-gap:clamp(24px,3.2vw,48px);

  --card-pad:clamp(18px,1.7vw,22px);

  --ease:cubic-bezier(.22,.7,.3,1);
  --hdr:84px;
}

*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  /* Column layout so a short page (the thank-you and 404 pages) still puts
     the footer on the bottom edge instead of leaving it floating with
     empty space beneath it. */
  min-height:100svh;display:flex;flex-direction:column;
  margin:0;background:var(--bg);color:var(--text);
  font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  -webkit-font-smoothing:antialiased;
  overflow-x:hidden;
}
main{flex:1 0 auto}
footer{flex:none}
a{color:inherit;text-decoration:none}
img{display:block;width:100%;height:100%;object-fit:cover}
button,input,textarea,select{font:inherit}
h1,h2,h3,h4,p{margin:0}

.wrap{width:min(var(--max),calc(100% - 2*var(--pad)));margin:auto}
section{padding:var(--sp-section) 0}
section[id]{scroll-margin-top:calc(var(--hdr) + 14px)}

.kicker{font-size:10.5px;letter-spacing:.17em;text-transform:uppercase;color:#8f8f88}
.copy{font-size:clamp(15px,1.15vw,16.5px);line-height:1.65;color:var(--muted);max-width:52ch}

/* 390 → 44px · 430 → 47px · 768 → 84px · 1440 → 104px */
h1{font-size:clamp(44px,11vw,104px);line-height:.96;letter-spacing:-.045em;max-width:14ch}
/* 390 → 34px · 768 → 44px · 1440 → 56px */
h2{font-size:clamp(34px,4.2vw,56px);line-height:1.02;letter-spacing:-.04em;max-width:15ch}
h3{letter-spacing:-.03em}

/* --------------------------------------------------------------------------
   THE divider — one separation system, used between every section
   -------------------------------------------------------------------------- */
.divider{position:relative;display:flex;align-items:center;gap:14px}
.divider-ref{
  font-size:9.5px;letter-spacing:.16em;color:#5f5f59;
  font-variant-numeric:tabular-nums;white-space:nowrap;flex:none;
}
.divider-line{position:relative;flex:1;height:1px;background:var(--line-soft)}
.divider-line::before{content:"";position:absolute;inset:0;background:rgba(255,255,255,.26);transform-origin:left}
.js .divider-line::before{transform:scaleX(0);transition:transform 1.3s var(--ease)}
.js .divider.in .divider-line::before{transform:scaleX(1)}
.divider-line::after{content:"";position:absolute;top:-4px;right:0;width:1px;height:9px;background:rgba(255,255,255,.4)}
.js .divider-line::after{opacity:0;transition:opacity .5s var(--ease) .9s}
.js .divider.in .divider-line::after{opacity:1}

/* --------------------------------------------------------------------------
   Section heading
   -------------------------------------------------------------------------- */
.head{display:grid;grid-template-columns:1fr 1fr;gap:var(--gap);align-items:end;margin-bottom:var(--head-gap)}
.head h2{margin-top:12px}
.head .copy{padding-bottom:4px;justify-self:start}

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */
.btn{
  display:inline-flex;align-items:center;justify-content:center;gap:9px;
  padding:14px 22px;border-radius:var(--pill);border:1px solid var(--line);
  font-size:11px;letter-spacing:.12em;text-transform:uppercase;
  background:rgba(255,255,255,.04);color:#fff;cursor:pointer;white-space:nowrap;
  transition:background .3s var(--ease),border-color .3s var(--ease);
}
.btn:hover{background:rgba(255,255,255,.1)}
.btn.light{background:#f4f4ef;color:#090909;border-color:#f4f4ef}
.btn.light:hover{background:#fff}
.btn.arrow::after{content:"\2192";transition:transform .3s var(--ease)}
.btn.arrow:hover::after{transform:translateX(5px)}

/* ==========================================================================
   Header
   ========================================================================== */
/* A full-width bar that sits on the photograph and only takes on a
   background once the hero has scrolled away. */
/* --------------------------------------------------------------------------
   Header.

   Two stacked layers sit behind the navigation and cross-fade as you scroll,
   driven by --nav-p (0 at the top of the page, 1 once past NAV_DIST in
   js/anim.js). Only `opacity` is animated, so the whole transition runs on
   the compositor: no repaint, no layout, and no jitter during iOS momentum
   scrolling. The blur and colours themselves never change value, which is
   what keeps the crossfade from flickering on mobile Safari.

     .nav-scrim  visible at the top — a soft gradient that guarantees the
                 logo and links stay readable over a bright photograph while
                 the bar itself still reads as transparent.
     .nav-panel  visible once scrolled — translucent, blurred, with a hairline
                 and a very soft shadow for separation without a heavy bar.

   The header never changes height, so nothing below it can shift.
   -------------------------------------------------------------------------- */
header{
  --nav-p:0;
  position:fixed;z-index:60;top:0;left:0;right:0;
  background:transparent;border:0;
}
.nav-scrim,.nav-panel{
  position:absolute;inset:0;pointer-events:none;
  /* A short transition smooths the steps between coarse scroll events
     without making the bar feel like it is lagging behind the page. */
  transition:opacity .22s linear;
  will-change:opacity;
}
.nav-scrim{
  background:linear-gradient(180deg,
    rgba(6,6,6,.62) 0%,
    rgba(6,6,6,.34) 46%,
    rgba(6,6,6,0) 100%);
  opacity:calc(1 - var(--nav-p));
}
.nav-panel{
  background:rgba(10,10,10,.72);
  -webkit-backdrop-filter:saturate(140%) blur(18px);
  backdrop-filter:saturate(140%) blur(18px);
  box-shadow:
    inset 0 -1px 0 rgba(242,241,237,.09),
    0 10px 30px -18px rgba(0,0,0,.9);
  opacity:var(--nav-p);
}
/* Behind the full-screen mobile panel both layers are redundant. */
body.nav-open .nav-scrim,body.nav-open .nav-panel{opacity:0}

/* Browsers without backdrop-filter get a more opaque panel instead, so the
   navigation is never left floating unreadably over a photograph. */
@supports not ((backdrop-filter:blur(1px)) or (-webkit-backdrop-filter:blur(1px))){
  .nav-panel{background:rgba(10,10,10,.93)}
}

@media(prefers-reduced-motion:reduce){
  .nav-scrim,.nav-panel{transition:none}
}
.nav{
  position:relative;
  display:flex;align-items:center;justify-content:space-between;gap:24px;
  height:var(--hdr);padding:0;border:0;border-radius:0;background:none;backdrop-filter:none;
}

/* The links are centred on the header, not merely spaced between the two
   sides. justify-content:space-between equalises the gaps, so once the
   wordmark came out of the brand the 36px mark no longer balanced the 293px
   right-hand group and the links sat 129px left of centre. A 1fr/auto/1fr grid
   centres the middle column whatever the two sides weigh.

   Only above 1040px: below that the links are hidden and a two-item flex row
   is the correct behaviour. */
@media(min-width:1041px){
  .nav{display:grid;grid-template-columns:1fr auto 1fr}
  .nav > .brand{justify-self:start}
  .nav > nav.links{justify-self:center}
  .nav > .right{justify-self:end}
}

.brand{display:flex;align-items:center;gap:11px;min-width:0}
.brand img{width:36px;height:36px;object-fit:contain;filter:brightness(1.3)}
/* The mark carries the name — the wordmark beside it was a repeat. The whole
   text block goes, so the 11px flex gap after the logo goes with it. */
.brand>div{display:none}

nav.links{display:flex;gap:30px}
nav.links a{font-size:11.5px;letter-spacing:.14em;text-transform:uppercase;color:rgba(242,241,237,.68);transition:color .3s var(--ease)}
nav.links a:hover,nav.links a.current{color:#fff}

.right{display:flex;align-items:center;gap:18px}
/* Plain FR / EN, no pill */
.lang{display:flex;align-items:center;gap:7px;padding:0;border:0;border-radius:0;flex:none}
.lang button{
  border:0;background:none;padding:0;cursor:pointer;
  font-size:11.5px;letter-spacing:.1em;color:rgba(242,241,237,.45);
  transition:color .3s var(--ease);
}
.lang button:hover{color:rgba(242,241,237,.8)}
.lang button.active{background:none;color:#fff}
.right .btn{min-height:40px;padding:0 20px;font-size:11px}

/* Menu button — two rules that fold into a cross. Only `transform` animates,
   so the morph is a compositor job and stays smooth on a phone. */
.btn.menu{display:none;align-items:center;justify-content:center;width:46px;min-height:40px;padding:0}
.burger{position:relative;display:block;width:17px;height:11px}
.burger i{
  position:absolute;left:0;right:0;height:1.5px;border-radius:1px;background:currentColor;
  transition:transform .42s cubic-bezier(.76,0,.24,1);
}
.burger i:first-child{top:0}
.burger i:last-child{bottom:0}
body.nav-open .burger i:first-child{transform:translateY(4.75px) rotate(45deg)}
body.nav-open .burger i:last-child{transform:translateY(-4.75px) rotate(-45deg)}

.progress{position:absolute;left:0;right:0;bottom:0;height:1px;overflow:hidden;border-radius:0}
.progress i{display:block;height:100%;width:100%;background:#fff;opacity:.45;transform:scaleX(0);transform-origin:left}

/* ==========================================================================
   Desktop navigation — one floating capsule

   Above 1040px the header stops being a full-width bar. Everything lives in
   a single glass capsule centred at the top of the page: mark, four section
   links, one language switch, one action. Compared with the bar it replaces:

     · the Contact link is gone (the button beside it goes to the same place)
     · FR / EN becomes a single switch showing the language you can change to
     · the scroll-progress hairline is gone
     · the full-width scrim and panel layers are off: the capsule carries its
       own background, so nothing spans the page

   CSS only, so projets, projet, merci and 404 get the same bar with no
   markup change. Phones and tablets keep the existing header untouched.
   ========================================================================== */
@media(min-width:1041px){
  header{top:16px;pointer-events:none}
  .nav-scrim,.nav-panel,.progress{display:none}
  header .nav{
    pointer-events:auto;
    width:min(1020px,calc(100% - 2*var(--pad)));
    height:58px;padding:0 9px;gap:20px;   /* symmetric, so 1fr/auto/1fr centres the links on the capsule */
    border-radius:var(--pill);
    border:1px solid rgba(255,255,255,.1);
    background:rgba(17,17,17,.66);
    -webkit-backdrop-filter:saturate(140%) blur(20px);
    backdrop-filter:saturate(140%) blur(20px);
    box-shadow:0 18px 44px -26px rgba(0,0,0,.95);
  }
  .brand{margin-left:13px}
  .brand img{width:30px;height:30px}
  nav.links{gap:clamp(20px,2.2vw,32px)}
  nav.links a{font-size:11px;letter-spacing:.13em;color:rgba(242,241,237,.62)}
  nav.links a[href$="#contact"]{display:none}
  .right{gap:6px}
  .lang button.active{display:none}
  .lang button{
    display:grid;place-items:center;width:40px;height:40px;border-radius:50%;
    font-size:11px;letter-spacing:.08em;color:rgba(242,241,237,.7);
    transition:background .3s var(--ease),color .3s var(--ease);
  }
  .lang button:hover{background:rgba(255,255,255,.08);color:#fff}
  .right .btn{min-height:40px;padding:0 18px;font-size:10.5px;letter-spacing:.11em}
}
@supports not ((backdrop-filter:blur(1px)) or (-webkit-backdrop-filter:blur(1px))){
  @media(min-width:1041px){ header .nav{background:rgba(14,14,14,.95)} }
}

/* ==========================================================================
   Full-screen mobile menu

   Everything that moves is a transform or an opacity, so the whole sequence
   runs on the compositor — no layout, no repaint, no stutter during the
   open on mobile Safari. The panel is never display:none (that would kill
   the transition); it is made inert with visibility + pointer-events, which
   also takes the links out of the tab order while closed.

   Opening staggers; closing does not. The delays live only in the .open
   state, so letting go collapses the menu briskly instead of replaying the
   stagger backwards.

   Three quiet references to the trade, for anyone who looks twice:
     · a drafting grid behind the type
     · a measurement rule with tick marks down the left margin
     · a dimension line across the foot, annotated with the RBQ licence
   ========================================================================== */
.mobile{
  position:fixed;z-index:59;inset:0;
  background:none;border:0;border-radius:0;max-height:none;overflow:auto;
  padding:calc(var(--hdr) + 28px) var(--pad) calc(var(--pad) + 20px);
  display:flex;flex-direction:column;
  visibility:hidden;pointer-events:none;
  transition:visibility 0s linear .52s;
}
.mobile.open{visibility:visible;pointer-events:auto;transition-delay:0s}

/* The panel itself drops from under the header like a sheet being pulled down. */
.m-panel{
  position:absolute;inset:0;background:#0a0a0a;
  transform:scaleY(0);transform-origin:top;
  transition:transform .40s cubic-bezier(.76,0,.24,1) .10s;
  will-change:transform;
}
.mobile.open .m-panel{transform:scaleY(1);transition:transform .56s cubic-bezier(.76,0,.24,1) 0s}

/* Drafting grid. Masked away towards the foot so it never competes with the type. */
.m-grid{
  position:absolute;inset:0;opacity:0;pointer-events:none;
  background-image:
    linear-gradient(rgba(242,241,237,.05) 1px,transparent 1px),
    linear-gradient(90deg,rgba(242,241,237,.05) 1px,transparent 1px);
  background-size:38px 38px;
  -webkit-mask-image:linear-gradient(180deg,#000 0%,transparent 76%);
          mask-image:linear-gradient(180deg,#000 0%,transparent 76%);
  transition:opacity .45s linear;
}
.mobile.open .m-grid{opacity:1;transition:opacity .9s linear .18s}

/* Measurement rule down the margin, drawn downward as the menu opens. */
/* The rule lives inside the nav now, so it spans exactly the links it marks
   off rather than running on into the empty foot of the panel. */
.m-rule{
  position:absolute;left:-11px;top:14px;bottom:14px;
  width:1px;background:rgba(242,241,237,.17);
  transform:scaleY(0);transform-origin:top;
  transition:transform .34s cubic-bezier(.76,0,.24,1);
  will-change:transform;
}
.mobile.open .m-rule{transform:scaleY(1);transition:transform .72s cubic-bezier(.76,0,.24,1) .12s}
.m-rule i{position:absolute;left:0;width:6px;height:1px;background:rgba(242,241,237,.3)}

.m-nav{position:relative;z-index:2}
.mobile a{
  display:block;padding:12px 0;border-bottom:0;
  font-size:clamp(28px,8.5vw,40px);line-height:1.25;letter-spacing:-.035em;
}
/* Each link is its own mask: the word rises into view from behind the line. */
.m-nav a{display:flex;align-items:baseline;gap:13px;overflow:hidden}
.m-nav a em{
  flex:none;font-style:normal;font-size:10px;letter-spacing:.16em;
  color:rgba(242,241,237,.3);transform:translateY(140%);
  transition:transform .3s var(--ease);
}
.m-nav a span{display:block;transform:translateY(115%);transition:transform .3s var(--ease)}
.mobile.open .m-nav a span{
  transform:none;
  transition:transform .64s cubic-bezier(.22,.61,.36,1) calc(150ms + var(--i,0)*62ms);
}
.mobile.open .m-nav a em{
  transform:none;
  transition:transform .5s cubic-bezier(.22,.61,.36,1) calc(210ms + var(--i,0)*62ms);
}



/* iOS will happily scroll the page behind a fixed overlay, so the body is
   pinned outright and its offset restored on close. */
body.nav-open{position:fixed;left:0;right:0;width:100%;overflow:hidden}

@media(prefers-reduced-motion:reduce){
  .m-panel,.m-rule{transform:none;transition:opacity .2s linear}
  .m-nav a span,.m-nav a em{transform:none;transition:opacity .2s linear}
  .mobile.open .m-nav a span,.mobile.open .m-nav a em{transition:none}
  .burger i{transition:none}
}

/* Card hover lives behind (hover:hover): on a touch screen :hover sticks
   after a tap, leaving a card zoomed and outlined once you come back. */
@media(hover:hover){
  .proj-card.is-linked:hover{border-color:rgba(255,255,255,.28)}
  .proj-card.is-linked:hover .proj-cover img{transform:scale(1.04)}
  .proj-card.is-linked:hover .proj-check{opacity:1;transform:none}
  .proj-card.is-linked:hover .proj-link::after{transform:translateX(4px)}
}

/* ==========================================================================
   Sticky mobile quote CTA — appears once the hero is behind you
   ========================================================================== */
.sticky-cta{
  display:none;position:fixed;z-index:58;
  left:var(--pad);right:var(--pad);bottom:calc(14px + env(safe-area-inset-bottom,0px));
  align-items:center;justify-content:center;min-height:50px;padding:0 20px;
  border-radius:var(--pill);background:#f4f4ef;color:#090909;
  border:1px solid #f4f4ef;box-shadow:0 8px 28px rgba(0,0,0,.45);
  font-size:11px;letter-spacing:.12em;text-transform:uppercase;text-align:center;
  opacity:0;transform:translateY(120%);
  transition:opacity .35s var(--ease),transform .35s var(--ease);
  pointer-events:none;
}
.sticky-cta.show{opacity:1;transform:none;pointer-events:auto}

/* ==========================================================================
   Hero — one photograph, minimal copy, anchored to the lower edge.
   ========================================================================== */
/* ==========================================================================
   Hero

   The photograph is the first screen, edge to edge, and every word sits on
   it: a small descriptor, the slogan, and the two actions, centred under the
   subject. The desktop and tablet crops stop just above the frame's black
   lower band, which has a hard edge; the darkening behind the type is one
   long, eased gradient that settles onto the page colour, so there is no
   line anywhere and the hero runs into the next section without an edge.
   The photograph itself carries no grade.
   ========================================================================== */
.hero{
  position:relative;min-height:100svh;
  display:flex;align-items:flex-end;justify-content:center;
  padding:calc(var(--hdr) + 24px) 0 clamp(28px,4.4svh,44px);
  overflow:hidden;isolation:isolate;
}
.hero-media{position:absolute;inset:0;z-index:-2;display:block}
/* 6% of overscan above the frame gives js/anim.js room to drift the image
   down as the page scrolls. Anchored to the bottom so the dark band stays. */
.hero-media img{
  position:absolute;left:0;top:-6%;width:100%;height:106%;
  object-position:50% 100%;will-change:transform;
}
.hero::after{
  content:"";position:absolute;inset:0;z-index:-1;pointer-events:none;
  background:linear-gradient(180deg,
    rgba(9,9,9,0) 38%,rgba(9,9,9,.07) 50%,rgba(9,9,9,.22) 62%,rgba(9,9,9,.44) 74%,
    rgba(9,9,9,.68) 86%,rgba(9,9,9,.9) 96%,#090909 100%);
}

.hero-body{
  margin-block:0;
  display:flex;flex-direction:column;align-items:center;text-align:center;
}
.hero-kicker{
  display:flex;align-items:center;gap:14px;
  font-size:10.5px;letter-spacing:.24em;text-transform:uppercase;
  color:rgba(245,245,242,.82);text-shadow:0 1px 14px rgba(0,0,0,.7);
}
.hero-kicker::before,.hero-kicker::after{
  content:"";width:clamp(18px,2.4vw,34px);height:1px;background:currentColor;opacity:.5;
}
.hero-title{
  max-width:none;margin:clamp(12px,1.2vw,16px) 0 clamp(20px,2vw,26px);
  text-shadow:0 2px 30px rgba(0,0,0,.35);
  font-size:clamp(40px,5.6vw,88px);line-height:1;letter-spacing:-.045em;
}
.hero-title .ht{display:inline-block;overflow:hidden;padding-bottom:.12em;margin-bottom:-.12em;vertical-align:bottom}
.hero-title .ht i{display:block;font-style:normal}
.hero-title .at{color:rgba(245,245,242,.62)}
.hero-cta{display:flex;align-items:center;justify-content:center;gap:10px;flex-wrap:wrap}
/* The ghost button sits on a photograph here, so it gets a little glass. */
.hero-cta .btn:not(.light){
  background:rgba(9,9,9,.4);border-color:rgba(255,255,255,.22);
  -webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);
}
.hero-cta .btn:not(.light):hover{background:rgba(255,255,255,.14)}

/* --- arrival -------------------------------------------------------------
   Resting state is the finished state, so if the animation never runs the
   hero is simply there. The photograph's reveal runs on the <picture>, never
   on the <img>: js/anim.js owns the image's transform for the scroll drift. */
.js .hero-media{animation:heroIn 1.8s var(--ease) both}
.js .hero-kicker{animation:heroFade .9s var(--ease) both;animation-delay:.35s}
.js .hero-title .ht i{animation:heroRise 1.05s var(--ease) both}
.js .hero-title .ht:nth-child(1) i{animation-delay:.45s}
.js .hero-title .ht:nth-child(2) i{animation-delay:.57s}
.js .hero-cta{animation:heroFade .9s var(--ease) both;animation-delay:.85s}
@keyframes heroIn  {from{opacity:0;transform:scale(1.05)} to{opacity:1;transform:none}}
@keyframes heroRise{from{transform:translateY(110%)} to{transform:none}}
@keyframes heroFade{from{opacity:0;transform:translateY(10px)} to{opacity:1;transform:none}}

@media(prefers-reduced-motion:reduce){
  .js .hero-media,.js .hero-kicker,.js .hero-title .ht i,.js .hero-cta{animation:none}
}

/* ==========================================================================
   Services
   ========================================================================== */
.services{display:grid;grid-template-columns:repeat(4,1fr);gap:var(--gap);align-items:stretch}
.service{
  display:flex;flex-direction:column;
  border:1px solid var(--line);border-radius:var(--r);overflow:hidden;background:var(--panel);
  transition:border-color .35s var(--ease);
}
.service:hover{border-color:rgba(255,255,255,.26)}
.service-img{position:relative;aspect-ratio:4/3;overflow:hidden;flex:none}
.service-img img{filter:brightness(.8) contrast(1.02);transition:transform 1s var(--ease)}
.service:hover .service-img img{transform:scale(1.04)}
.service-body{padding:var(--card-pad);display:flex;flex-direction:column;gap:8px;flex:1}
.service-body h3{font-size:clamp(20px,1.6vw,22px);line-height:1.2}
.service-body p{color:var(--muted);font-size:clamp(14px,1.05vw,14.5px);line-height:1.55}

/* ==========================================================================
   Confiance — one rounded panel. Values share a fixed-height box so text and
   the APCHQ artwork sit on the same optical line.
   ========================================================================== */
.trust{
  position:relative;overflow:hidden;
  border:1px solid rgba(255,255,255,.18);border-radius:var(--r);
  background:linear-gradient(180deg,rgba(255,255,255,.055),rgba(255,255,255,.02));
  padding:clamp(22px,3.2vw,48px);
}
.trust::before{
  content:"";position:absolute;inset:0;pointer-events:none;
  background-image:
    linear-gradient(rgba(255,255,255,.028) 1px,transparent 1px),
    linear-gradient(90deg,rgba(255,255,255,.028) 1px,transparent 1px);
  background-size:60px 60px;
  mask-image:linear-gradient(270deg,#000,transparent 65%);
}
.trust-inner{position:relative;display:grid;grid-template-columns:1fr 1.15fr;gap:clamp(24px,3.4vw,56px);align-items:center}
.trust-lead h3{font-size:clamp(22px,2.6vw,34px);letter-spacing:-.035em;line-height:1.1;margin-top:10px}
.trust-lead p{margin-top:12px;max-width:40ch;color:var(--muted);line-height:1.6;font-size:15px}
.trust-items{display:grid;grid-template-columns:repeat(3,1fr);gap:clamp(16px,2.4vw,34px);align-items:start}
.trust-item{display:flex;flex-direction:column;gap:8px}
.trust-value{display:flex;align-items:center;min-height:clamp(34px,3.4vw,48px)}
.trust-value b{font-size:clamp(26px,3vw,42px);line-height:1;letter-spacing:-.045em;font-weight:600}
.trust-value b.num{font-variant-numeric:tabular-nums;font-size:clamp(16px,1.5vw,20px);letter-spacing:-.01em;font-weight:500}
.trust-label{font-size:10.5px;letter-spacing:.13em;text-transform:uppercase;color:var(--dim);line-height:1.5}
/* Real APCHQ asset rendered solid white; alpha and proportions untouched. */
.apchq{display:block;height:clamp(26px,2.6vw,36px);width:auto}
.apchq img{width:auto;height:100%;object-fit:contain;filter:brightness(0) invert(1)}

/* ==========================================================================
   Projects
   ========================================================================== */
.proj-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:var(--gap)}
.proj-card{
  position:relative;display:flex;flex-direction:column;overflow:hidden;
  border:1px solid var(--line);border-radius:var(--r);background:var(--panel);
  transition:border-color .35s var(--ease);
}
.proj-cover{position:relative;aspect-ratio:4/3;overflow:hidden;background:#141414;display:block}
.proj-cover img{filter:brightness(.92);transition:transform 1s var(--ease)}
.proj-tag{
  position:absolute;z-index:2;top:12px;left:12px;
  padding:5px 9px;border-radius:var(--pill);
  background:rgba(9,9,9,.72);border:1px solid rgba(255,255,255,.14);backdrop-filter:blur(6px);
  font-size:9.5px;letter-spacing:.14em;text-transform:uppercase;color:rgba(255,255,255,.76);
  font-variant-numeric:tabular-nums;
}
.proj-check{
  position:absolute;z-index:2;top:12px;right:12px;width:24px;height:24px;border-radius:50%;
  display:flex;align-items:center;justify-content:center;
  background:rgba(9,9,9,.72);border:1px solid rgba(255,255,255,.14);
  font-size:11px;color:rgba(255,255,255,.8);opacity:0;transform:scale(.85);
  transition:opacity .3s var(--ease),transform .3s var(--ease);
}
.proj-body{padding:var(--card-pad);display:flex;flex-direction:column;gap:7px;flex:1}
.proj-meta{display:flex;gap:9px;flex-wrap:wrap;font-size:10px;letter-spacing:.14em;text-transform:uppercase;color:var(--dim);font-variant-numeric:tabular-nums}
.proj-meta span:not(:last-child)::after{content:" \00B7";margin-left:9px}
.proj-body h3{font-size:clamp(20px,1.6vw,22px)}
.proj-body p{color:var(--muted);line-height:1.55;font-size:14px;max-width:38ch;flex:1}
.proj-link{display:inline-flex;align-items:center;gap:8px;margin-top:2px;font-size:11px;letter-spacing:.13em;text-transform:uppercase;color:#fff}
.proj-link::after{content:"\2192";transition:transform .3s var(--ease)}

.proj-cover.is-placeholder{
  display:flex;align-items:center;justify-content:center;
  background:repeating-linear-gradient(45deg,#121212,#121212 11px,#161616 11px,#161616 22px);
}
.proj-cover.is-placeholder span{font-size:10px;letter-spacing:.16em;text-transform:uppercase;color:#69695f;text-align:center;padding:0 18px}
.section-cta{display:flex;justify-content:center;margin-top:clamp(22px,2.6vw,40px)}

/* ==========================================================================
   Process — cards on desktop, a connected list on mobile
   ========================================================================== */
.rail{position:relative;height:1px;background:var(--line-soft);margin-bottom:clamp(18px,2.4vw,32px)}
.rail-line{position:absolute;inset:0;background:rgba(255,255,255,.34);transform-origin:left}
.js .rail-line{transform:scaleX(0);transition:transform 1.6s var(--ease)}
.js .rail.in .rail-line{transform:scaleX(1)}
.rail-ticks{position:absolute;inset:0;display:grid;grid-template-columns:repeat(4,1fr)}
.rail-tick{position:relative}
.rail-tick::before{content:"";position:absolute;top:-4px;left:0;width:1px;height:9px;background:rgba(255,255,255,.45)}
.rail::after{content:"";position:absolute;top:-4px;right:0;width:1px;height:9px;background:rgba(255,255,255,.45)}
.js .rail-tick::before,.js .rail::after{opacity:0;transition:opacity .5s var(--ease)}
.js .rail.in .rail-tick::before,.js .rail.in::after{opacity:1}
.js .rail.in .rail-tick:nth-child(1)::before{transition-delay:.15s}
.js .rail.in .rail-tick:nth-child(2)::before{transition-delay:.45s}
.js .rail.in .rail-tick:nth-child(3)::before{transition-delay:.75s}
.js .rail.in .rail-tick:nth-child(4)::before{transition-delay:1.05s}
.js .rail.in::after{transition-delay:1.35s}

.proc-line{display:none}   /* mobile-only; must never become a grid item */
.process{display:grid;grid-template-columns:repeat(4,1fr);gap:var(--gap);align-items:stretch}
.step{border:1px solid var(--line);border-radius:var(--r);overflow:hidden;background:var(--panel);display:flex;flex-direction:column}
.step-img{position:relative;aspect-ratio:4/3;overflow:hidden;flex:none}
.step-img img{filter:brightness(.8) contrast(1.02)}
.step-num{
  position:absolute;z-index:2;top:12px;left:12px;
  padding:5px 9px;border-radius:var(--pill);
  background:rgba(9,9,9,.72);border:1px solid rgba(255,255,255,.14);backdrop-filter:blur(6px);
  font-size:9.5px;letter-spacing:.13em;color:rgba(255,255,255,.78);font-variant-numeric:tabular-nums;
}
.step-body{padding:var(--card-pad);display:flex;flex-direction:column;gap:7px;flex:1}
.step-body h3{font-size:clamp(17px,1.4vw,19px)}
.step-body p{color:var(--muted);font-size:14px;line-height:1.55}

/* ==========================================================================
   Founders + team — two deliberately different treatments, separated by the
   site's standard divider. Founders is editorial (image + copy); the team
   is text-led inside one wide panel, with no photograph.
   ========================================================================== */

/* Shared figure styling (also used by the project detail gallery) */
.figure{position:relative;overflow:hidden;border-radius:var(--r);border:1px solid var(--line);background:#131313;margin:0}
.figure img{filter:brightness(.88)}
.figure.is-placeholder{
  display:flex;align-items:center;justify-content:center;
  background:repeating-linear-gradient(45deg,#111,#111 11px,#151515 11px,#151515 22px);
}
.figure.is-placeholder span{font-size:10px;letter-spacing:.16em;text-transform:uppercase;color:#69695f;text-align:center;padding:0 22px;line-height:1.9}

/* --- Founders: editorial, image-led ------------------------------------- */
.founders{display:grid;grid-template-columns:1.05fr .95fr;gap:clamp(24px,3.4vw,60px);align-items:center}
.founders-figure{aspect-ratio:4/5}
.founders-copy h2{margin-top:14px;font-size:clamp(30px,4vw,54px);max-width:12ch}
.founders-copy p{margin-top:18px;max-width:44ch;color:var(--muted);line-height:1.68;font-size:16px}
.founders-meta{display:grid;grid-template-columns:1fr 1fr;gap:var(--gap);margin-top:24px;border-top:1px solid var(--line-soft);padding-top:18px}
.founders-meta small{display:block;font-size:10px;letter-spacing:.14em;text-transform:uppercase;color:var(--dim);margin-bottom:5px}
.founders-meta b{font-size:14px;font-weight:500}

/* --- The break between the two ------------------------------------------ */
.divider.team-divider{margin:clamp(34px,4vw,64px) 0}

/* --- Team: one wide panel, typography only ------------------------------ */
.team-panel{
  position:relative;overflow:hidden;
  border:1px solid var(--line);border-radius:var(--r);
  background:linear-gradient(180deg,rgba(255,255,255,.04),rgba(255,255,255,.015));
  padding:clamp(24px,3.2vw,52px);
}
/* Faint drafting grid, masked so it fades rather than stopping abruptly */
.team-panel::before{
  content:"";position:absolute;inset:0;pointer-events:none;
  background-image:
    linear-gradient(rgba(255,255,255,.03) 1px,transparent 1px),
    linear-gradient(90deg,rgba(255,255,255,.03) 1px,transparent 1px);
  background-size:58px 58px;
  mask-image:linear-gradient(200deg,#000,transparent 70%);
}
.team-panel-inner{position:relative;display:grid;grid-template-columns:1fr 1fr;gap:clamp(22px,3vw,54px);align-items:start}
.team-lead h3{margin-top:12px;font-size:clamp(24px,3vw,40px);letter-spacing:-.04em;line-height:1.08;max-width:14ch}
.team-body p{color:var(--muted);line-height:1.68;font-size:16px;max-width:46ch}

/* ==========================================================================
   Contact
   ========================================================================== */
.contact-grid{display:grid;grid-template-columns:1fr 1fr;gap:clamp(22px,3vw,52px);align-items:start}
.contact-list{display:grid;gap:0;border-top:1px solid var(--line-soft)}
.contact-row{display:block;padding:14px 0;border-bottom:1px solid var(--line-soft);transition:color .25s}
a.contact-row:hover{color:#fff}
.contact-row small{display:block;font-size:10px;letter-spacing:.14em;text-transform:uppercase;color:var(--dim);margin-bottom:5px}
.contact-row b{font-size:16.5px;font-weight:500;letter-spacing:-.01em}

.panel{border:1px solid var(--line);border-radius:var(--r);background:linear-gradient(180deg,rgba(255,255,255,.035),rgba(255,255,255,.015));padding:clamp(20px,2.4vw,34px)}
form{display:grid;grid-template-columns:1fr 1fr;gap:11px}
input,textarea,select{width:100%;border:1px solid var(--line);background:#0d0d0d;color:#fff;border-radius:var(--r-sm);padding:14px 15px;outline:none;transition:border-color .3s;font-size:16px}
input:focus,textarea:focus,select:focus{border-color:rgba(255,255,255,.32)}

/* Budget — a native select, restyled to sit level with the text fields. The
   chevron is inlined rather than loaded, and the placeholder option reads dim
   like the others until a real bracket is chosen (:invalid holds while the
   empty option is selected, because the field is required). */
select{
  appearance:none;-webkit-appearance:none;
  padding-right:42px;cursor:pointer;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5 6 6.5 11 1.5' fill='none' stroke='%23f2f1ed' stroke-opacity='.55' stroke-width='1.3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat:no-repeat;
  background-position:right 16px center;
}
select:invalid{color:#6f6f68}
select option{background:#0d0d0d;color:#f2f1ed}
select option[disabled]{color:#6f6f68}
textarea{min-height:130px;resize:vertical}
.full{grid-column:1/-1}
.submit{cursor:pointer;justify-self:start}

/* ==========================================================================
   Social icons
   ========================================================================== */
.social{display:flex;align-items:center;gap:10px}
.social a{
  display:inline-flex;align-items:center;justify-content:center;
  width:40px;height:40px;flex:none;
  border:1px solid var(--line);border-radius:var(--r-sm);
  background:rgba(255,255,255,.03);color:#fff;
  transition:background .25s var(--ease),border-color .25s var(--ease),transform .25s var(--ease);
}
.social a:hover{background:rgba(255,255,255,.1);border-color:rgba(255,255,255,.3);transform:translateY(-2px)}
.social svg{width:17px;height:17px;display:block;fill:currentColor}
.social-label{font-size:10px;letter-spacing:.14em;text-transform:uppercase;color:var(--dim);margin-bottom:10px;display:block}
.contact-social{margin-top:24px}

/* ==========================================================================
   Footer
   ========================================================================== */
footer{padding:0 0 36px}
.footer{padding:20px 22px;display:flex;align-items:center;justify-content:space-between;gap:18px;flex-wrap:wrap;border:1px solid var(--line);border-radius:var(--r);background:var(--bg-2)}
.footer-brand{display:flex;align-items:center;gap:11px}
.footer-brand img{width:44px;height:44px;object-fit:contain;filter:brightness(1.25)}
.footer-right{display:flex;align-items:center;gap:clamp(14px,2vw,28px);flex-wrap:wrap}
.footer-links{display:flex;gap:16px;flex-wrap:wrap}
.footer-links a{font-size:10.5px;letter-spacing:.12em;text-transform:uppercase;color:#c2c2bb;transition:color .25s}
.footer-links a:hover{color:#fff}
.footer .social a{width:34px;height:34px}
.footer .social svg{width:15px;height:15px}

/* ==========================================================================
   Projects index + detail pages
   ========================================================================== */
.page-head{padding:calc(var(--hdr) + clamp(36px,5vw,82px)) 0 0}
.page-head h1{font-size:clamp(40px,6.4vw,84px);margin-top:12px}
.page-head .copy{margin-top:18px}
.head-top{display:flex;align-items:baseline;gap:12px}
.ref{font-size:9.5px;letter-spacing:.14em;color:#5f5f59;font-variant-numeric:tabular-nums;white-space:nowrap}

.p-hero{position:relative;min-height:62svh;display:flex;align-items:flex-end;overflow:hidden;padding:calc(var(--hdr) + 48px) 0 clamp(36px,4vw,60px)}
.p-hero-media{position:absolute;inset:0;overflow:hidden}
.p-hero-media img{position:absolute;inset:-6% 0;height:112%;filter:brightness(.6);will-change:transform}
.p-hero::after{content:"";position:absolute;inset:0;background:linear-gradient(0deg,rgba(0,0,0,.9),transparent 64%)}
.p-hero-inner{position:relative;z-index:2;margin-top:auto;margin-bottom:0}
.p-hero h1{font-size:clamp(34px,5.4vw,76px);margin-top:10px}
.p-kicker{margin-bottom:14px;color:rgba(242,241,237,.72)}
/* auto-fit, not a fixed 3 columns: with one or two facts a rigid 3-up grid
   left a lone tile stranded in the first column. The -28px tuck under the
   hero only reads correctly as a full-width row, so it is applied by the
   row itself rather than assumed. */
.p-facts{
  display:grid;grid-template-columns:repeat(auto-fit,minmax(190px,1fr));
  gap:var(--gap);margin-top:-28px;position:relative;z-index:3;
}
.fact{padding:18px;border:1px solid var(--line);border-radius:var(--r-sm);background:var(--panel)}
.fact small{display:block;font-size:10px;letter-spacing:.14em;text-transform:uppercase;color:var(--dim);margin-bottom:7px}
.fact b{font-size:16px;font-weight:500}
.p-desc{max-width:54ch;font-size:16px;line-height:1.68;color:var(--muted)}

.gallery{display:grid;grid-template-columns:repeat(2,1fr);gap:var(--gap)}
.gallery figure{margin:0;position:relative;overflow:hidden;border-radius:var(--r);border:1px solid var(--line);aspect-ratio:4/3;background:#131313}
.gallery img{filter:brightness(.94);transition:transform 1s var(--ease)}
.gallery figure:hover img{transform:scale(1.03)}
.gallery figure.wide{grid-column:1/-1;aspect-ratio:21/9}
.gallery .is-placeholder{display:flex;align-items:center;justify-content:center;background:repeating-linear-gradient(45deg,#121212,#121212 11px,#161616 11px,#161616 22px)}
.gallery .is-placeholder span{font-size:10px;letter-spacing:.16em;text-transform:uppercase;color:#69695f;text-align:center;padding:0 20px}

.credits{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:20px}
.credits div small{display:block;font-size:10px;letter-spacing:.14em;text-transform:uppercase;color:var(--dim);margin-bottom:6px}

.prevnext{display:grid;grid-template-columns:1fr 1fr;gap:var(--gap)}
.pn{padding:clamp(18px,2.2vw,28px);border:1px solid var(--line);border-radius:var(--r);background:var(--panel);transition:border-color .3s}
.pn:hover{border-color:rgba(255,255,255,.28)}
.pn small{display:block;font-size:10px;letter-spacing:.14em;text-transform:uppercase;color:var(--dim);margin-bottom:8px}
.pn b{font-size:18px;letter-spacing:-.025em;font-weight:500}
.pn.next{text-align:right}
.pn.disabled{opacity:.3;pointer-events:none}

/* ==========================================================================
   Scroll reveals
   ========================================================================== */
.js [data-reveal]{opacity:0;transform:translateY(14px);transition:opacity .8s var(--ease),transform .8s var(--ease)}
.js [data-reveal].in{opacity:1;transform:none}
.js [data-clip]{clip-path:inset(0 0 100% 0);transition:clip-path 1s var(--ease)}
.js [data-clip].in{clip-path:inset(0 0 0 0)}

/* ==========================================================================
   Reduced motion
   ========================================================================== */
@media(prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
  .js [data-reveal],.js [data-reveal].in{opacity:1;transform:none;transition:none}
  .js [data-clip],.js [data-clip].in{clip-path:none;transition:none}
  .js .divider-line::before,.js .divider.in .divider-line::before{transform:scaleX(1);transition:none}
  .js .divider-line::after,.js .divider.in .divider-line::after{opacity:1;transition:none}
  .js .rail-line,.js .rail.in .rail-line{transform:scaleX(1);transition:none}
  .js .rail-tick::before,.js .rail.in .rail-tick::before,
  .js .rail::after,.js .rail.in::after{opacity:1;transition:none}
  .js .proc-line span{transform:scaleY(1)!important;transition:none}
  .progress i{transform:scaleX(0)!important}
  .hero-media img,.p-hero-media img{transform:none!important}
  .service:hover .service-img img,.proj-card.is-linked:hover .proj-cover img,.gallery figure:hover img{transform:none}
  .social a:hover{transform:none}
  .sticky-cta{transition:none}
  header,header.compact,.nav,header.compact .nav,.brand img{transition:none}
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media(max-width:1180px){
  nav.links{gap:18px}
  nav.links a{font-size:11px}
  .services{grid-template-columns:repeat(2,1fr)}
}

/* ---- Tablet ---- */
@media(max-width:1040px){
  :root{--hdr:78px}
  /* 11vw suits phones but overshoots badly at tablet widths */
  h1{font-size:clamp(44px,6.4vw,64px)}
  nav.links{display:none}
  .btn.menu{display:inline-flex}
  .right>a.btn{display:none}
  .head,.founders,.team-panel-inner,.contact-grid,.trust-inner{grid-template-columns:1fr}
  .hero-title .ht{display:block}
  /* This photograph has a sunlit radiator and window in its top-right corner,
     right behind FR / EN and the menu button. A short shade at the top keeps
     them readable; desktop does not need it, the capsule has its own ground. */
  .hero::before{
    content:"";position:absolute;left:0;right:0;top:0;height:24%;z-index:-1;pointer-events:none;
    background:linear-gradient(180deg,rgba(9,9,9,.62),rgba(9,9,9,.3) 45%,rgba(9,9,9,0));
  }
  .head .copy,.founders-copy p,.team-body p,.trust-lead p{max-width:60ch}
  .process{grid-template-columns:repeat(2,1fr)}
  .proj-grid{grid-template-columns:repeat(2,1fr)}
  .rail-ticks{grid-template-columns:repeat(2,1fr)}
  .js .rail.in .rail-tick:nth-child(3)::before,
  .js .rail.in .rail-tick:nth-child(4)::before{transition-delay:.45s}
  .p-facts{grid-template-columns:1fr 1fr;margin-top:22px}
  .founders-figure{order:-1}
  /* Source is 4:5 portrait; a landscape crop would cut heads and feet. */
  .founders-figure{aspect-ratio:4/5}
  .trust-items{grid-template-columns:repeat(3,1fr)}
  /* The header quote button is hidden at this width, so surface the sticky one */
  .sticky-cta{display:flex}
}

/* ==========================================================================
   MOBILE — its own layout, not a stacked desktop
   ========================================================================== */
@media(max-width:680px){
  :root{
    --hdr: 86px;   /* measured header height at this width */
    --sp-section:30px;      /* 60px between sections */
    --gap:16px;
    --card-pad:18px;
    --head-gap:22px;
  }

  /* Header ---------------------------------------------------------------- */
  .brand img{width:32px;height:32px}
  .nav{gap:10px}
  .btn.menu{min-height:38px;padding:0 14px}
  .proj-tag,.step-num{backdrop-filter:none}

  /* Sticky quote CTA ------------------------------------------------------ */
  .sticky-cta{display:flex}

  /* Phone hero: the slogan breaks onto two lines and the buttons go full
     width, as the site's other mobile actions do. The gradient starts higher
     because the type block is taller than the photograph's own dark band. */
  .hero{padding-bottom:clamp(22px,4svh,34px)}
  .hero::after{background:linear-gradient(180deg,
    rgba(9,9,9,0) 46%,rgba(9,9,9,.2) 60%,rgba(9,9,9,.46) 74%,rgba(9,9,9,.76) 90%,#090909 100%)}
  .hero-title .at{color:rgba(245,245,242,.72)}
  .hero-kicker{font-size:9.5px;letter-spacing:.2em}
  .hero-title{font-size:clamp(38px,11.4vw,50px);margin:14px 0 24px}
  .hero-cta{width:100%;gap:8px}
  .hero-cta .btn{flex:1 1 100%;min-height:48px}

  /* One column everywhere ------------------------------------------------- */
  .services,.proj-grid,form,.gallery,.prevnext,.founders-meta,.p-facts{grid-template-columns:1fr}

  /* Services — shorter cards, 16:9 imagery */
  .service-img{aspect-ratio:4/3}
  .service-body{gap:6px}
  .service-body h3{font-size:22px}
  .service-body p{font-size:14.5px}

  /* Projects — image, title, meta. Description is desktop-only. ----------- */
  .proj-cover{aspect-ratio:4/3}
  .proj-body p{display:none}
  .proj-body{gap:6px}
  .proj-body h3{font-size:22px}

  /* Confiance — compact rows inside the single panel ---------------------- */
  .trust{padding:20px}
  .trust-inner{gap:18px}
  .trust-lead h3{font-size:24px;margin-top:8px}
  .trust-lead p{font-size:14.5px;margin-top:10px}
  .trust-items{grid-template-columns:1fr;gap:0}
  .trust-item{
    flex-direction:row;align-items:center;justify-content:space-between;gap:16px;
    padding:13px 0;border-bottom:1px solid var(--line-soft);
  }
  .trust-item:last-child{border-bottom:0;padding-bottom:0}
  .trust-item:first-child{padding-top:0}
  .trust-value{min-height:0;flex:none;order:2}
  .trust-value b{font-size:22px}
  .trust-value b.num{font-size:15px}
  .trust-label{order:1;flex:1;font-size:10px}
  .apchq{height:24px}

  /* Process — a connected list, not four stacked cards -------------------- */
  .rail{display:none}
  .process{display:block;position:relative;padding-left:30px}
  /* Height is set by js/anim.js so the line terminates on the last dot
     rather than running past Finalisation. */
  .proc-line{display:block;position:absolute;left:8px;top:0;height:0;width:1px;background:var(--line-soft)}
  .proc-line span{display:block;height:100%;background:rgba(255,255,255,.34);transform:scaleY(0);transform-origin:top;transition:transform 1.4s var(--ease)}
  .js .process.in .proc-line span{transform:scaleY(1)}
  .step{
    display:block;border:0;border-radius:0;background:none;overflow:visible;
    padding:0 0 18px;position:relative;
  }
  .step:last-child{padding-bottom:0}
  .step::before{
    content:"";position:absolute;left:-26px;top:7px;width:7px;height:7px;border-radius:50%;
    background:#f4f4ef;
  }
  .step-img{display:none}          /* imagery lives in Services on mobile */
  .step-body{padding:0;gap:4px}
  .step-body h3{font-size:17px}
  .step-body h3::before{content:attr(data-num) " — ";color:var(--dim);font-variant-numeric:tabular-nums}
  .step-body p{font-size:14px}

  /* Founders + team ------------------------------------------------------- */
  .founders{gap:18px}
  .founders-copy h3{font-size:28px;margin-top:10px}
  .founders-copy p{font-size:15px;margin-top:12px}
  .founders-meta{margin-top:16px;padding-top:14px;gap:12px}
  .team-block{margin-top:30px}
.founders{gap:18px}
.founders-copy h2{font-size:30px;margin-top:10px}
.founders-copy p{font-size:15px;margin-top:14px}
.founders-meta{margin-top:18px;padding-top:14px}
.team-panel{padding:20px}
.team-panel-inner{gap:16px}
.team-lead h3{font-size:24px;max-width:none}
.team-body p{font-size:15px}
  .figure.portrait{aspect-ratio:4/3}
  .figure.wide{aspect-ratio:16/10}

  /* Contact --------------------------------------------------------------- */
  .social-label{display:none}
  .contact-social{margin-top:22px}
  .social{justify-content:flex-start}
  .contact-grid{gap:22px}
  .contact-row{padding:13px 0}
  .contact-row b{font-size:16px}
  .contact-social{margin-top:20px}
  .submit{width:100%;justify-self:stretch;min-height:50px}
  /* Room for the sticky CTA so it never covers the form or footer */
  #contact{padding-bottom:16px}
  footer{padding-bottom:22px}
  /* Only the page that actually carries the floating quote button needs
     to reserve room for it. */
  .sticky-cta ~ footer{padding-bottom:82px}

  /* Footer — a quiet line at the foot of the page, not a second menu. No panel,
     no border, no fill: a hairline, small links, the accounts and the licence.
     The mark and company name are already in the header, so they are left out
     rather than repeated. Kept short so a page like the confirmation ends at
     the fold instead of scrolling on into empty black. */
  .footer{
    flex-direction:column;align-items:stretch;gap:13px;
    padding:15px 0 0;background:none;border:0;border-radius:0;
    border-top:1px solid var(--line-soft);
  }
  .footer-brand{order:3;padding:0;gap:0;pointer-events:none}
  .footer-brand img,.footer-brand b{display:none}
  .footer-brand > div > div{margin-top:0;font-size:10px;letter-spacing:.05em;line-height:1.5}

  .footer-right{flex-direction:column;align-items:stretch;gap:13px;width:100%}
  .footer-links{display:flex;flex-wrap:wrap;gap:10px 18px;border:0}
  .footer-links a{display:inline;min-height:0;padding:0;border:0;font-size:10.5px;letter-spacing:.13em}
  .footer .social{justify-content:flex-start;gap:9px;padding:0;border:0}
  .footer .social a{width:30px;height:30px}
  .footer .social svg{width:13px;height:13px}
  .pn.next{text-align:left}
  .gallery figure.wide{grid-column:auto;aspect-ratio:4/3}
  .full{grid-column:auto}
}

/* Very small phones — keep the headline from eating the screen */
@media(max-width:400px){
  h1{font-size:44px}
}


/* Reserved slot for the team photograph. Deliberately wide, so it reads as a
   different gesture from the founders' tall portrait above. */
.team-figure{aspect-ratio:16/9;margin-top:clamp(22px,2.6vw,36px)}
@media(max-width:680px){
  /* Full 3:2 on a phone so no one at the edges gets cropped. */
  .team-figure{aspect-ratio:3/2;margin-top:18px}
}

/* --------------------------------------------------------------------------
   Additions from the cleanup pass
   -------------------------------------------------------------------------- */
/* Heading blocks with no supporting paragraph take the full content width. */
.head.solo{grid-template-columns:1fr}

/* Supporting line under the team paragraph (replaced the keyword chips). */
.team-note{margin-top:14px;color:var(--dim);line-height:1.6;font-size:14.5px;max-width:46ch}




/* Netlify Forms honeypot — never shown to a person. */
.hp{display:none}

/* Form success page ------------------------------------------------------ */
/* ==========================================================================
   Confirmation / message pages (merci, 404)

   The section keeps .wrap's width so the type starts on the same vertical
   line as the logo above it and the footer below it — the earlier version
   capped the section itself at 760px, which centred it and left it floating
   out of step with the rest of the page.
   ========================================================================== */
/* The message pages mark their own <main> so this section can take the space
   between the header and the footer and centre its content in it, instead of
   sitting at the top with a gap underneath. Scoped by class rather than
   :has(), so it cannot reach the three content pages. */
main.page-message{display:flex;flex-direction:column}
.thanks{
  flex:1 0 auto;
  display:flex;flex-direction:column;align-items:flex-start;justify-content:center;
  padding:calc(var(--hdr) + clamp(40px,6vw,88px)) 0 clamp(44px,6vw,88px);
}
.thanks > *{max-width:46ch}
.thanks h1{margin-top:14px;max-width:14ch}
.thanks .copy{margin-top:18px;color:var(--dim)}

/* Each line rises in turn. `both` holds the opening frame through the delay,
   and the resting style stays visible, so if animation never runs the page
   simply appears — it can never be left blank. */
.thanks > *{animation:riseIn .72s cubic-bezier(.22,.61,.36,1) both}
.thanks > *:nth-child(1){animation-delay:.28s}
.thanks > *:nth-child(2){animation-delay:.36s}
.thanks > *:nth-child(3){animation-delay:.44s}
.thanks > *:nth-child(4){animation-delay:.54s}
.thanks > *:nth-child(5){animation-delay:.64s}
.thanks > *:nth-child(6){animation-delay:.74s}
@keyframes riseIn{from{opacity:0;transform:translateY(16px)}to{opacity:1;transform:none}}

/* The seal: a ring and a tick, drawn rather than dropped in. */
.seal{display:block;width:clamp(46px,5vw,58px);height:clamp(46px,5vw,58px);margin-bottom:clamp(20px,2.6vw,30px)}
.seal svg{width:100%;height:100%;display:block;overflow:visible}
.seal circle,.seal path{fill:none;stroke:var(--text);stroke-width:1.25;stroke-linecap:round;stroke-linejoin:round}
.seal circle{opacity:.32;stroke-dasharray:189;stroke-dashoffset:189;animation:draw 1.05s cubic-bezier(.22,.61,.36,1) .18s both}
.seal path{stroke-dasharray:42;stroke-dashoffset:42;animation:draw .52s cubic-bezier(.22,.61,.36,1) .82s both}
@keyframes draw{to{stroke-dashoffset:0}}

/* Carried over from the previous hero: merci.html and 404.html both use
   .hero-link for their secondary link. The homepage hero no longer has one,
   so the rule lives here, beside the pages that still rely on it. */
.hero-link{
  display:inline-flex;align-items:center;gap:12px;
  font-size:clamp(10.5px,0.84vw,11.5px);letter-spacing:.16em;text-transform:uppercase;
  color:rgba(245,245,242,.74);
  transition:color .4s var(--ease);
}
@media(hover:hover){ .hero-link:hover{color:#fff} }

.thanks-actions{display:flex;align-items:center;gap:clamp(18px,3vw,32px);margin-top:clamp(28px,4vw,42px);flex-wrap:wrap;max-width:none}

/* A drawing's title block, the same device the mobile menu closes with. */
.thanks-dim{
  display:flex;align-items:center;gap:12px;width:100%;max-width:none;
  margin-top:clamp(40px,6vw,76px);
}
.thanks-dim i{position:relative;flex:1;height:1px;background:var(--line-soft);font-style:normal}
.thanks-dim i::before,.thanks-dim i::after{
  content:"";position:absolute;top:-3px;width:1px;height:7px;background:rgba(242,241,237,.3);
}
.thanks-dim i::before{left:0}
.thanks-dim i::after{right:0}
.thanks-dim span{font-size:9.5px;letter-spacing:.19em;text-transform:uppercase;color:rgba(242,241,237,.42);white-space:nowrap}

@media(max-width:680px){
    /* Tighter on a phone: the header is shorter and the footer lighter, so
       the block needs less breathing room above and below. */
    .thanks{
      justify-content:center;
      padding:calc(var(--hdr) + 20px) 0 28px;
      padding:calc(var(--hdr) + 20px) 0 28px;
  }
  .thanks > *,.thanks h1{max-width:none}
  .thanks h1{margin-top:10px}
  .thanks .copy{margin-top:14px;font-size:15px}
  .seal{width:44px;height:44px;margin-bottom:18px}
  .thanks-actions{flex-direction:column;align-items:stretch;width:100%;gap:16px;margin-top:28px}
  .thanks-actions .btn{width:100%;min-height:54px}
  .thanks-actions .hero-link{justify-content:center}
  .thanks-dim{margin-top:30px}
}

@media(prefers-reduced-motion:reduce){
  .thanks > *,.seal circle,.seal path{animation:none}
  .seal circle,.seal path{stroke-dashoffset:0}
}

/* Contact form status line — only visible once the form has been submitted. */
.form-status{margin:2px 0 0;font-size:13px;line-height:1.55;color:var(--dim)}
.form-status.is-error{color:#f2f1ed}

/* ==========================================================================
   Page transition

   An overlay on body::after, so no extra element is needed and a page with
   scripting disabled never sees it. The resting state is invisible: the
   entrance animation runs 1 → 0, so if animation is unavailable the page is
   simply visible rather than hidden behind a sheet that never lifts.
   ========================================================================== */
.js body::after{
  content:"";position:fixed;inset:0;z-index:120;
  background:var(--bg);opacity:0;visibility:hidden;pointer-events:none;
  animation:pageIn .5s cubic-bezier(.22,.61,.36,1);
}
@keyframes pageIn{from{opacity:1;visibility:visible}to{opacity:0;visibility:hidden}}
html.is-leaving body::after{animation:pageOut .36s cubic-bezier(.76,0,.24,1) forwards}
@keyframes pageOut{from{opacity:0;visibility:visible}to{opacity:1;visibility:visible}}

/* ==========================================================================
   Contact form — submit states

   Sending draws a measure line back and forth along the button's edge;
   sending succeeds by drawing a tick. Both are transform/opacity only.
   ========================================================================== */
.btn.submit{position:relative;overflow:hidden}
.submit-label{transition:opacity .28s cubic-bezier(.22,.61,.36,1)}
.btn.submit::after{
  content:"";position:absolute;left:0;bottom:0;height:2px;width:100%;
  background:currentColor;opacity:.22;transform:scaleX(0);transform-origin:left;
}
.btn.submit.is-sending::after{animation:measure 1.25s cubic-bezier(.65,0,.35,1) infinite}
@keyframes measure{
  0%  {transform:scaleX(0);transform-origin:left}
  45% {transform:scaleX(1);transform-origin:left}
  55% {transform:scaleX(1);transform-origin:right}
  100%{transform:scaleX(0);transform-origin:right}
}
.submit-check{
  position:absolute;left:50%;top:50%;width:19px;height:19px;
  transform:translate(-50%,-50%);opacity:0;pointer-events:none;
  transition:opacity .2s linear;
}
.submit-check path{
  fill:none;stroke:currentColor;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round;
  stroke-dasharray:30;stroke-dashoffset:30;
}
.btn.submit.is-sent .submit-label{opacity:0}
.btn.submit.is-sent .submit-check{opacity:1}
.btn.submit.is-sent .submit-check path{animation:draw .42s cubic-bezier(.22,.61,.36,1) .06s forwards}
.btn.submit.is-sent::after{animation:none;transform:scaleX(1);transform-origin:left;opacity:.3}
.btn.submit[disabled]{cursor:default}

@media(prefers-reduced-motion:reduce){
  .js body::after,html.is-leaving body::after{animation:none}
  .btn.submit.is-sending::after{animation:none;transform:scaleX(1);opacity:.22}
  .btn.submit.is-sent .submit-check path{animation:none;stroke-dashoffset:0}
}
