/* ═══════════════════════════════════════════════════════════════
   ALPINIA WEB CRAFT — SWISS DIGITAL MONOCHROME
   Design system · black / white / typography / space / grid / motion
   ═══════════════════════════════════════════════════════════════ */

/* ───────── 01 · TOKENS ───────── */
:root {
  /* Palette — deliberately reduced */
  --black: #000000;
  --off-black: #0a0a0a;
  --white: #ffffff;
  --off-white: #f5f5f2;
  --grey-100: #e8e8e5;
  --grey-500: #a3a3a0;
  --grey-800: #444441;
  --red: #e3262e;

  /* Semantic — light ground (default).
     Mid Grey stays in the palette for large and decorative type, but the
     muted *text* token is darkened: #A3A3A0 on #F5F5F2 is 2.3:1, and the
     mono metadata is small and genuinely informative. #6E6E6B gives 4.6:1.
     Likewise the accent gets an ink variant — Swiss Red is 4.1:1 on the
     light ground, so small red text uses a deeper cut of the same hue. */
  --bg: var(--off-white);
  --fg: var(--black);
  --fg-dim: var(--grey-800);
  --fg-mute: #6e6e6b;
  --red-ink: #c81420;
  --line: rgba(0, 0, 0, 0.14);
  --line-soft: rgba(0, 0, 0, 0.07);
  --fill: rgba(0, 0, 0, 0.04);

  /* Grid */
  --cols: 12;
  --gutter: clamp(14px, 1.5vw, 26px);
  --pad: clamp(18px, 4.2vw, 60px);
  --maxw: 1720px;

  /* Type */
  --font: "Archivo", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  --t-mega: clamp(3.4rem, 15vw, 15.5rem);
  --t-display: clamp(2.9rem, 10.5vw, 10rem);
  --t-h1: clamp(2.2rem, 7vw, 6.5rem);
  --t-h2: clamp(1.7rem, 4.4vw, 4rem);
  --t-h3: clamp(1.15rem, 1.9vw, 1.9rem);
  --t-lead: clamp(1rem, 1.35vw, 1.35rem);
  --t-body: clamp(0.9rem, 1vw, 1.0625rem);
  --t-small: clamp(0.8rem, 0.85vw, 0.875rem);
  --t-meta: clamp(0.625rem, 0.68vw, 0.6875rem);

  /* Rhythm */
  --sec: clamp(80px, 11vw, 190px);
  --sec-sm: clamp(52px, 7vw, 110px);

  /* Motion */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-io: cubic-bezier(0.65, 0, 0.35, 1);
  --dur: 0.62s;

  --nav-h: clamp(54px, 5vw, 68px);
}

/* Inverted ground — every black section shares one token set.
   On black, Mid Grey is 8.4:1 and Swiss Red 4.6:1, so both run at full
   strength here. */
.inv,
.hero,
.seq,
.foot,
.aia,
.aia-pop {
  --bg: var(--black);
  --fg: var(--off-white);
  --fg-dim: var(--grey-100);
  --fg-mute: var(--grey-500);
  --red-ink: var(--red);
  --line: rgba(255, 255, 255, 0.16);
  --line-soft: rgba(255, 255, 255, 0.08);
  --fill: rgba(255, 255, 255, 0.05);
}
.inv {
  background: var(--bg);
  color: var(--fg);
}

/* ───────── 02 · RESET ───────── */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  /* Anchors clear the fixed nav */
  scroll-padding-top: calc(var(--nav-h) + 12px);
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font);
  font-size: var(--t-body);
  font-weight: 400;
  line-height: 1.5;
  font-variation-settings: "wdth" 100;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

h1, h2, h3, h4, p, figure, blockquote, dl, dd { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
img, video, svg { display: block; max-width: 100%; }
img, video { height: auto; }

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}

input, textarea, select { font: inherit; color: inherit; }

a { color: inherit; text-decoration: none; }

table { border-collapse: collapse; width: 100%; }

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

/* Focus — always visible, never suppressed */
:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 3px;
}

/* ───────── 03 · LAYOUT PRIMITIVES ───────── */
.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--pad);
}

.grid {
  display: grid;
  grid-template-columns: repeat(var(--cols), minmax(0, 1fr));
  gap: var(--gutter);
}

/* Column utilities — mobile first: everything is full width until 900px */
[class*="col-"] { grid-column: 1 / -1; }
@media (min-width: 901px) {
  .col-4 { grid-column: span 4; }
  .col-6 { grid-column: span 6; }
  .col-1-5 { grid-column: 1 / 5; }
  .col-6-13 { grid-column: 6 / 13; }
  .col-1-6 { grid-column: 1 / 6; }
  .col-7-13 { grid-column: 7 / 13; }
}
.grid--2 { --cols: 2; }
@media (max-width: 620px) { .grid--2 { --cols: 1; } }

.sec { padding-block: var(--sec); position: relative; }
.sec--flush-t { padding-top: 0; }

/* Slightly condensed widths on monumental type — Univers, not Arial */
.hero__type h1,
.cta__t,
.foot__mark,
.seq__bg h2,
.mani__lines { font-variation-settings: "wdth" 92; }
.proj__num,
.proc__n { font-variation-settings: "wdth" 88; }

/* Subliminal grid guides */
.guides {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--pad);
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: var(--gutter);
  opacity: 0;
  transition: opacity 0.5s var(--ease);
}
.guides.on { opacity: 1; }
.guides span {
  border-left: 1px solid rgba(128, 128, 128, 0.16);
}
.guides span:last-child { border-right: 1px solid rgba(128, 128, 128, 0.16); }

/* Grain — almost subliminal */
.grain {
  position: fixed;
  inset: -50%;
  z-index: 2;
  pointer-events: none;
  opacity: 0.028;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)'/%3E%3C/svg%3E");
  will-change: transform;
  animation: grainshift 6s steps(6) infinite;
}
@keyframes grainshift {
  0%   { transform: translate(0, 0); }
  16%  { transform: translate(-2%, -3%); }
  33%  { transform: translate(3%, -2%); }
  50%  { transform: translate(-1%, 2%); }
  66%  { transform: translate(2%, 3%); }
  83%  { transform: translate(-3%, 1%); }
  100% { transform: translate(0, 0); }
}

/* ───────── 04 · TYPOGRAPHY ───────── */
/* inline-block, not flex: labels carry <br>, text-align and table captions */
.label {
  font-family: var(--mono);
  font-size: var(--t-meta);
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fg-mute);
  line-height: 1.5;
  display: inline-block;
}
.label--fg { color: var(--fg); }
.label b { font-weight: 500; color: var(--fg); }

.label .tick {
  display: inline-block;
  width: 5px;
  height: 5px;
  border: 1px solid currentColor;
  transform: rotate(45deg);
  margin: 0 0.45em;
  vertical-align: 0.1em;
}
.label .plus { color: var(--red-ink); font-weight: 500; margin-right: 0.25em; }

.idx {
  font-family: var(--mono);
  font-size: var(--t-meta);
  letter-spacing: 0.1em;
  color: var(--red-ink);
  font-weight: 500;
}

.h2, .h3 {
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 0.88;
  text-transform: uppercase;
  text-wrap: balance;
}

.h2 { font-size: var(--t-h2); line-height: 0.94; }
.h3 {
  font-size: var(--t-h3);
  line-height: 1.08;
  letter-spacing: -0.02em;
  font-weight: 500;
}

.lead {
  font-size: var(--t-lead);
  line-height: 1.42;
  letter-spacing: -0.012em;
  color: var(--fg-dim);
  max-width: 46ch;
  text-wrap: pretty;
}

.body { color: var(--fg-dim); text-wrap: pretty; }
.small { font-size: var(--t-small); color: var(--fg-dim); }

.reg { font-size: 0.42em; vertical-align: super; letter-spacing: 0; font-weight: 400; }
.red { color: var(--red); }

/* Section header — index + title, hairline above */
.sechead {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: var(--gutter);
  align-items: start;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}
.sechead__idx { grid-column: 1 / 3; }
.sechead__t { grid-column: 3 / 10; }
.sechead__aside { grid-column: 10 / 13; text-align: right; }

@media (max-width: 860px) {
  .sechead { grid-template-columns: 1fr auto; }
  .sechead__idx { grid-column: 1; }
  .sechead__aside { grid-column: 2; grid-row: 1; }
  .sechead__t { grid-column: 1 / -1; margin-top: 14px; }
}

/* ───────── 05 · MOTION UTILITIES ───────── */
/* Line reveal: authored markup <span class="ln"><i>…</i></span> */
.ln {
  display: block;
  overflow: hidden;
  /* padding keeps descenders/diacritics from being clipped */
  padding-bottom: 0.08em;
  margin-bottom: -0.08em;
}
.ln > i {
  display: block;
  font-style: inherit;
  transform: translateY(105%);
  transition: transform 0.95s var(--ease);
  transition-delay: calc(var(--i, 0) * 85ms);
  will-change: transform;
}
.is-in .ln > i,
.ln.is-in > i { transform: translateY(0); }

/* Word reveal — JS split */
.w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: 0.1em; margin-bottom: -0.1em; }
.w > i {
  display: inline-block;
  font-style: inherit;
  transform: translateY(105%);
  transition: transform 0.8s var(--ease);
  transition-delay: calc(var(--i, 0) * 32ms);
  will-change: transform;
}
.is-in .w > i { transform: translateY(0); }

/* Fade + rise */
[data-anim="rise"] {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
  transition-delay: calc(var(--i, 0) * 70ms);
}
[data-anim="rise"].is-in { opacity: 1; transform: none; }

[data-anim="fade"] {
  opacity: 0;
  transition: opacity 0.9s var(--ease);
  transition-delay: calc(var(--i, 0) * 70ms);
}
[data-anim="fade"].is-in { opacity: 1; }

/* Hairline draw */
[data-anim="rule"] {
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 1.1s var(--ease);
}
[data-anim="rule"].is-in { transform: scaleX(1); }

/* Media reveal — a curtain lifts off the frame.
   The target must never clip itself: IntersectionObserver reports ratio 0
   for a self-clipped element, which would deadlock the reveal permanently. */
[data-anim="clip"] {
  position: relative;
  overflow: hidden;
}
[data-anim="clip"]::after {
  content: "";
  position: absolute;
  inset: -1px;
  z-index: 3;
  background: var(--bg);
  transform: translateY(0);
  transition: transform 1.05s var(--ease);
  transition-delay: calc(var(--i, 0) * 90ms);
  pointer-events: none;
}
[data-anim="clip"].is-in::after { transform: translateY(-101%); }

/* ───────── 06 · LOADER ───────── */
#loader {
  position: fixed;
  inset: 0;
  z-index: 300;
  background: var(--black);
  color: var(--off-white);
  transition: opacity 0.7s var(--ease), visibility 0.7s;
}
#loader.done { opacity: 0; visibility: hidden; pointer-events: none; }

.ld {
  display: grid;
  place-items: center;
  gap: 26px;
  text-align: center;
}
.ld__plus {
  font-size: 22px;
  line-height: 1;
  color: var(--red);
  font-weight: 400;
  opacity: 0;
  transform: rotate(-90deg) scale(0.4);
  animation: ldPlus 0.55s var(--ease) 0.06s forwards;
}
@keyframes ldPlus {
  to { opacity: 1; transform: rotate(0) scale(1); }
}

.ld__word {
  font-size: clamp(1.6rem, 6vw, 3.4rem);
  font-weight: 600;
  letter-spacing: -0.04em;
  text-transform: uppercase;
  overflow: hidden;
  padding-bottom: 0.08em;
}
.ld__word > span {
  display: block;
  transform: translateY(105%);
  animation: ldWord 0.85s var(--ease) 0.34s forwards;
}
@keyframes ldWord { to { transform: translateY(0); } }

.ld__bar {
  width: min(190px, 42vw);
  height: 1px;
  background: rgba(255, 255, 255, 0.2);
  position: relative;
  overflow: hidden;
}
.ld__bar i {
  position: absolute;
  inset: 0;
  background: var(--off-white);
  transform: scaleX(0);
  transform-origin: left;
  animation: ldBar 1s var(--ease-io) 0.5s forwards;
}
@keyframes ldBar { to { transform: scaleX(1); } }

.ld__meta { opacity: 0; animation: ldMeta 0.6s var(--ease) 0.72s forwards; }
@keyframes ldMeta { to { opacity: 1; } }

/* Body locked during intro */
body.loading { overflow: hidden; }

/* ───────── 07 · CURSOR ───────── */
.cur {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 250;
  pointer-events: none;
  mix-blend-mode: difference;
  will-change: transform;
  display: none;
}
.cur__ring {
  position: absolute;
  width: 26px;
  height: 26px;
  margin: -13px 0 0 -13px;
  border: 1px solid #fff;
  border-radius: 50%;
  transition: width 0.4s var(--ease), height 0.4s var(--ease),
    margin 0.4s var(--ease), opacity 0.3s var(--ease), border-radius 0.4s var(--ease);
}
.cur__plus {
  position: absolute;
  width: 9px;
  height: 9px;
  margin: -4.5px 0 0 -4.5px;
  opacity: 1;
  transition: opacity 0.3s var(--ease);
}
.cur__plus::before,
.cur__plus::after {
  content: "";
  position: absolute;
  background: #fff;
}
.cur__plus::before { left: 4px; top: 0; width: 1px; height: 9px; }
.cur__plus::after { top: 4px; left: 0; height: 1px; width: 9px; }

.cur__txt {
  position: absolute;
  left: 0;
  top: 0;
  transform: translate(-50%, -50%);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #fff;
  white-space: nowrap;
  opacity: 0;
  transition: opacity 0.3s var(--ease);
}

.cur.is-link .cur__ring { width: 46px; height: 46px; margin: -23px 0 0 -23px; }
.cur.is-link .cur__plus { opacity: 0; }
.cur.is-media .cur__ring { width: 92px; height: 92px; margin: -46px 0 0 -46px; }
.cur.is-media .cur__plus { opacity: 0; }
.cur.is-media .cur__txt { opacity: 1; }

@media (hover: hover) and (pointer: fine) {
  .cur { display: block; }
  body.has-cursor,
  body.has-cursor a,
  body.has-cursor button { cursor: none; }
  /* Text inputs keep a real caret */
  body.has-cursor input,
  body.has-cursor textarea { cursor: text; }
}

/* ───────── 08 · NAVIGATION ───────── */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 200;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  color: var(--off-white);
  transition: color 0.45s var(--ease), transform 0.55s var(--ease), opacity 0.4s var(--ease);
  mix-blend-mode: difference;
}
/* The nav retracts while the cinematic sequence owns the viewport,
   and while the reader is moving down the page */
body.nav-hidden .nav,
body.nav-up .nav { transform: translateY(-110%); opacity: 0; }
/* On light ground the difference blend flips it to black automatically */
.nav__in {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--pad);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  font-size: clamp(0.95rem, 1.15vw, 1.1rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  line-height: 1;
  display: inline-flex;
  align-items: flex-start;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: clamp(18px, 2.4vw, 40px);
}
.nav__links a {
  font-family: var(--mono);
  font-size: var(--t-meta);
  letter-spacing: 0.13em;
  text-transform: uppercase;
  display: inline-flex;
  align-items: baseline;
  gap: 0.55em;
  position: relative;
  padding-block: 6px;
}
.nav__links a sup {
  font-size: 0.78em;
  opacity: 0.5;
  letter-spacing: 0;
}
.nav__links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 2px;
  width: 100%;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.45s var(--ease);
}
.nav__links a:hover::after,
.nav__links a[aria-current="true"]::after { transform: scaleX(1); transform-origin: left; }
/* No accent colour inside the bar: it sits in a difference blend, which
   would turn Swiss Red into pale cyan over the light ground — off-palette
   and low contrast. The underline already carries the active state. */
.nav__links a[aria-current="true"] sup { opacity: 1; }

.nav__cta {
  font-family: var(--mono);
  font-size: var(--t-meta);
  letter-spacing: 0.13em;
  text-transform: uppercase;
  border: 1px solid currentColor;
  padding: 9px 15px;
  display: inline-flex;
  align-items: center;
  gap: 0.7em;
  transition: background 0.4s var(--ease), color 0.4s var(--ease);
}
.nav__cta .arw { transition: transform 0.4s var(--ease); }
.nav__cta:hover .arw { transform: translate(3px, -3px); }

.nav__burger {
  display: none;
  width: 34px;
  height: 34px;
  position: relative;
  margin-right: -6px;
}
.nav__burger span {
  position: absolute;
  left: 6px;
  right: 6px;
  height: 1px;
  background: currentColor;
  transition: transform 0.45s var(--ease), opacity 0.3s var(--ease);
}
.nav__burger span:nth-child(1) { top: 13px; }
.nav__burger span:nth-child(2) { top: 20px; }
body.menu-open .nav__burger span:nth-child(1) { transform: translateY(3.5px) rotate(45deg); }
body.menu-open .nav__burger span:nth-child(2) { transform: translateY(-3.5px) rotate(-45deg); }

@media (max-width: 1000px) {
  .nav__links, .nav__cta { display: none; }
  .nav__burger { display: block; }
}

/* Scroll progress — the only persistent red */
.prog {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  width: 100%;
  z-index: 210;
  background: var(--red);
  transform: scaleX(0);
  transform-origin: left;
  pointer-events: none;
}

/* Mobile menu */
.menu {
  position: fixed;
  inset: 0;
  z-index: 190;
  background: var(--black);
  color: var(--off-white);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: calc(var(--nav-h) + 24px) var(--pad) 32px;
  clip-path: inset(0 0 100% 0);
  transition: clip-path 0.72s var(--ease);
  visibility: hidden;
}
body.menu-open .menu { clip-path: inset(0 0 0 0); visibility: visible; }

.menu__list a {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding: clamp(12px, 2.4vw, 20px) 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  font-size: clamp(1.9rem, 9vw, 3.4rem);
  font-weight: 600;
  letter-spacing: -0.035em;
  text-transform: uppercase;
  line-height: 1;
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
  transition-delay: calc(var(--i) * 55ms + 0.14s);
}
body.menu-open .menu__list a { opacity: 1; transform: none; }
.menu__list a sup { font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.1em; color: var(--red); }

.menu__foot {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 26px;
  justify-content: space-between;
  align-items: flex-end;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}

/* ───────── 09 · HERO ───────── */
.hero {
  position: relative;
  min-height: 100svh;
  background: var(--black);
  color: var(--off-white);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding-top: calc(var(--nav-h) + 4vh);
  padding-bottom: clamp(18px, 3vh, 32px);
  overflow: hidden;
}

.hero__top {
  position: absolute;
  top: calc(var(--nav-h) + clamp(14px, 3vh, 34px));
  left: 0;
  right: 0;
  z-index: 3;
}
.hero__top .grid { align-items: start; }
.hero__coord { grid-column: 1 / 5; }
.hero__intro { grid-column: 9 / 13; text-align: right; }

@media (max-width: 760px) {
  .hero__top .grid { grid-template-columns: 1fr 1fr; }
  .hero__coord { grid-column: 1; }
  .hero__intro { grid-column: 2; }
}

.hero__type {
  position: relative;
  z-index: 3;
}
.hero__type h1 {
  /* 85% of --t-mega, not the full token: the reveal mask (.ln, overflow:
     hidden) clips whatever doesn't fit on one line, and headline copy is
     editorial content that changes — "Réservations." runs ~13% wider than
     the shorter words this was originally tuned for. Verified empirically
     across 900–1920px; keep the margin if the copy changes again. */
  font-size: calc(var(--t-mega) * 0.85);
  font-weight: 600;
  letter-spacing: -0.048em;
  line-height: 0.82;
  text-transform: uppercase;
  margin: 0;
}
.hero__type h1 .ln > i { transition-duration: 1.15s; }

/* Third line drops to a sub-scale and indents — the big/small contrast
   is the signature, and it keeps the longest line inside the measure. */
.hero__type h1 .ln--sub {
  /* Sized for a longer, wrapping tagline rather than one short word —
     the previous scale/margin were tuned for a single short line and
     collided with the mega block above once this grew to 3 wrapped lines. */
  font-size: clamp(1rem, 2.5vw, 2.5rem);
  line-height: 1.18;
  letter-spacing: -0.02em;
  padding-left: 0.35em;
  margin-top: clamp(18px, 3vh, 38px);
  max-width: 22ch;
}

/* Hero background: hairline topographic contours, generated in JS.
   Explicit size — a canvas is a replaced element and would otherwise
   resolve its width from the intrinsic bitmap, ignoring inset. */
.hero__canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  opacity: 0.55;
  pointer-events: none;
}
.hero__veil {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(180deg, rgba(0,0,0,.72) 0%, rgba(0,0,0,.24) 42%, rgba(0,0,0,.86) 100%);
  pointer-events: none;
}

/* Bottom-centre so it never collides with the chat launcher */
.scrollcue {
  position: absolute;
  left: 50%;
  bottom: clamp(14px, 2.4vh, 26px);
  transform: translateX(-50%);
  z-index: 4;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
@media (max-width: 1000px) { .scrollcue { display: none; } }
.scrollcue i {
  width: 1px;
  height: 34px;
  background: linear-gradient(180deg, rgba(255,255,255,.6), transparent);
  position: relative;
  overflow: hidden;
}
.scrollcue i::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--red);
  animation: cue 1.9s var(--ease-io) infinite;
}
@keyframes cue {
  0% { transform: translateY(-100%); }
  60%, 100% { transform: translateY(100%); }
}

/* CTA — text link with underline motion */
.tlink {
  display: inline-flex;
  align-items: baseline;
  gap: 0.6em;
  font-family: var(--mono);
  font-size: var(--t-meta);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  position: relative;
  padding-bottom: 5px;
}
.tlink::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background: currentColor;
  transform-origin: right;
  transition: transform 0.5s var(--ease);
}
.tlink:hover::after { transform: scaleX(0); }
.tlink .arw { transition: transform 0.45s var(--ease); display: inline-block; }
.tlink:hover .arw { transform: translate(4px, -4px); }

/* Big CTA — contrast inversion */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 1em;
  font-family: var(--mono);
  font-size: clamp(0.68rem, 0.8vw, 0.78rem);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: clamp(15px, 1.5vw, 20px) clamp(22px, 2.2vw, 32px);
  border: 1px solid var(--fg);
  color: var(--fg);
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--fg);
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform 0.5s var(--ease);
  z-index: -1;
}
.btn:hover::before { transform: scaleY(1); }
.btn:hover { color: var(--bg); }
.btn .arw { transition: transform 0.45s var(--ease); }
.btn:hover .arw { transform: translate(4px, -4px); }
.btn--fill { background: var(--fg); color: var(--bg); }
.btn--fill::before { background: var(--bg); }
.btn--fill:hover { color: var(--fg); }

/* ───────── 10 · TICKER ───────── */
.ticker {
  border-block: 1px solid var(--line);
  overflow: hidden;
  padding-block: clamp(11px, 1.1vw, 15px);
  background: var(--bg);
  color: var(--fg);
  /* Edges dissolve instead of being cut — the band reads as continuous */
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}
.ticker__track {
  display: flex;
  width: max-content;
  will-change: transform;
}
.ticker__grp {
  display: flex;
  align-items: center;
  gap: clamp(22px, 3vw, 54px);
  padding-right: clamp(22px, 3vw, 54px);
  flex: none;
}
.ticker span {
  font-family: var(--mono);
  font-size: var(--t-meta);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  white-space: nowrap;
}
.ticker .sep { color: var(--red); }

/* ───────── 11 · CINEMATIC SEQUENCE ───────── */
.seq {
  position: relative;
  background: var(--black);
  color: var(--off-white);
}
.seq__track { height: 420vh; }

.seq__stage {
  position: sticky;
  top: 0;
  height: 100svh;
  overflow: hidden;
  display: grid;
  place-items: center;
  perspective: 1800px;
}

/* Type behind the media */
.seq__bg {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  text-align: center;
  padding-inline: var(--pad);
  z-index: 1;
}
/* Raised above centre so the opening window never swallows the word */
.seq__bg h2 {
  font-size: clamp(2rem, 7.5vw, 7.5rem);
  font-weight: 600;
  letter-spacing: -0.045em;
  line-height: 0.86;
  text-transform: uppercase;
  margin-bottom: clamp(160px, 42vh, 420px);
  white-space: nowrap;
  will-change: transform, opacity;
}

/* ───────── 11b · MACBOOK AIR 3D ─────────
   CSS 3D pur : capot et socle articulés sur une charnière commune.
   Le scroll fait pivoter la machine, ouvre l'écran, puis la caméra
   entre dedans jusqu'à ce que la dalle occupe tout le viewport. */
.mac-scene {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: grid;
  place-items: center;
  perspective: 1500px;
  perspective-origin: 50% 46%;
}
/* Nappe de lumière au sol : sans elle l'aluminium disparaît dans le noir */
.mac-scene::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 56%;
  width: 78vw;
  height: 58vh;
  transform: translate(-50%, -50%);
  background: radial-gradient(ellipse at center, rgba(255,255,255,.09), rgba(255,255,255,.03) 42%, transparent 70%);
  opacity: var(--mac-floor, 1);
  pointer-events: none;
}

.mac {
  position: relative;
  width: min(54vw, 860px);
  aspect-ratio: 16 / 10;
  transform-style: preserve-3d;
  transform:
    scale(var(--mac-s, 0.4))
    rotateX(var(--mac-cx, 16deg))
    rotateY(var(--mac-cy, -52deg));
  will-change: transform;
}

/* ── Capot ── */
.mac__lid {
  position: absolute;
  inset: 0;
  transform-origin: 50% 100%;
  transform: rotateX(var(--mac-open, 90deg));
  transform-style: preserve-3d;
  border-radius: 10px 10px 2px 2px;
  background: linear-gradient(158deg, #5c5c63 0%, #303036 48%, #1a1a1e 100%);
  padding: 1.1%;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.22);
}
/* Dos du capot — visible pendant la rotation */
.mac__lid::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  transform: translateZ(-3px);
  background: linear-gradient(200deg, #6a6a72 0%, #3a3a41 55%, #1e1e22 100%);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.1);
}

.mac__screen {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: 6px 6px 1px 1px;
  background: #000;
  transform: translateZ(1px);
}
.mac__screen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  filter: grayscale(1) contrast(1.05) brightness(0.95);
}
/* Reflet oblique — la dalle capte la lumière pendant la rotation */
.mac__screen::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(112deg, rgba(255, 255, 255, 0.17) 0%, rgba(255, 255, 255, 0.05) 26%, transparent 52%);
  opacity: var(--mac-glare, 1);
}
.mac__notch {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%) translateZ(2px);
  width: 15%;
  height: 3.2%;
  background: #0d0d0f;
  border-radius: 0 0 5px 5px;
  z-index: 2;
}

/* ── Socle ── */
.mac__base {
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  height: 104%;
  transform-origin: 50% 0;
  transform: rotateX(-90deg);
  border-radius: 2px 2px 12px 12px;
  background: linear-gradient(180deg, #55555d 0%, #313137 38%, #63636c 100%);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.2), 0 40px 90px rgba(0, 0, 0, 0.75);
  overflow: hidden;
}
/* Clavier : rangées de touches en dégradés répétés, pas 78 éléments */
.mac__keys {
  position: absolute;
  left: 6%;
  right: 6%;
  top: 7%;
  height: 46%;
  border-radius: 3px;
  background:
    repeating-linear-gradient(90deg, rgba(255,255,255,.13) 0 1.3%, transparent 1.3% 1.6%),
    repeating-linear-gradient(180deg, rgba(255,255,255,.1) 0 15.4%, transparent 15.4% 17.6%),
    #15151a;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.07);
}
.mac__pad {
  position: absolute;
  left: 31%;
  right: 31%;
  bottom: 7%;
  height: 33%;
  border-radius: 4px;
  background: linear-gradient(180deg, #3d3d45, #26262b);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.16);
}
.mac__lip {
  position: absolute;
  left: 44%;
  right: 44%;
  top: 0;
  height: 1.8%;
  background: #0c0c0e;
  border-radius: 0 0 3px 3px;
}

@media (max-width: 900px) {
  .mac { width: 80vw; }
  .mac-scene { perspective: 900px; }
}

/* Corner metadata pinned to the viewport */
.seq__meta {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  padding: calc(var(--nav-h) + 12px) var(--pad) clamp(18px, 3vh, 34px);
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-content: space-between;
  gap: 12px;
  opacity: 0;
  transition: opacity 0.5s var(--ease);
}
.seq__meta.on { opacity: 1; }
.seq__meta > * { align-self: start; }
.seq__meta > *:nth-child(2),
.seq__meta > *:nth-child(4) { justify-self: end; text-align: right; }
.seq__meta > *:nth-child(3),
.seq__meta > *:nth-child(4) { align-self: end; }

/* Scrub bar */
.seq__bar {
  position: absolute;
  left: var(--pad);
  right: var(--pad);
  bottom: clamp(10px, 2vh, 18px);
  height: 1px;
  z-index: 4;
  background: rgba(255, 255, 255, 0.18);
}
.seq__bar i {
  display: block;
  height: 100%;
  background: var(--red);
  transform: scaleX(0);
  transform-origin: left;
}

/* The wipe that carries black into the next section */
.seq__wipe {
  position: absolute;
  inset: 0;
  z-index: 5;
  background: var(--off-white);
  transform: translate3d(0, 100%, 0);
  will-change: transform;
  pointer-events: none;
}

/* ───────── 11c · SCÈNE RYLIX ─────────
   Portrait monochrome qui s'ouvre, puis bascule sur la vidéo de scène. */
.seq--rylix .seq__track { height: 360vh; }

.rylix-scene {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: grid;
  place-items: center;
  perspective: 1400px;
}
.rylix-card {
  position: relative;
  width: min(30vw, 420px);
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: #000;
  box-shadow: inset 0 0 0 var(--rbw, 1px) rgba(255, 255, 255, 0.3);
  transform: scale(var(--r-s, 1)) rotateY(var(--r-ry, 14deg));
  transform-origin: center;
  will-change: transform;
}
.rylix-card__layer {
  position: absolute;
  inset: 0;
}
.rylix-card__layer img,
.rylix-card__layer video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
/* Le portrait passe du monochrome à la couleur en s'ouvrant */
.rylix-card__portrait img {
  filter: grayscale(1) contrast(1.14) brightness(0.92);
  transform: scale(var(--r-pz, 1.18));
}
/* La vidéo arrive par un volet vertical */
.rylix-card__video {
  clip-path: inset(var(--r-clip, 100%) 0 0 0);
}
.rylix-card__video video { filter: grayscale(1) contrast(1.1) brightness(0.9); }

@media (max-width: 900px) {
  .rylix-card { width: 62vw; }
  .seq--rylix .seq__track { height: 300vh; }
}

/* ───────── 12b · PREUVE CHIFFRÉE ─────────
   Résultats réels du client, en signalétique — jamais des compteurs animés. */
.proof {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  margin-bottom: 24px;
}
.proof > div {
  background: var(--bg);
  padding: 14px 16px;
}
.proof__n {
  font-size: clamp(1.5rem, 2.6vw, 2.3rem);
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1;
  font-variation-settings: "wdth" 92;
}
.proof__n .u { font-size: 0.42em; color: var(--fg-mute); margin-left: 0.25em; letter-spacing: 0; }
.proof__l {
  font-family: var(--mono);
  font-size: var(--t-meta);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fg-mute);
  margin-top: 7px;
  display: block;
}

/* Liste de caractéristiques / résultats */
.feats { border-top: 1px solid var(--line); margin-bottom: 24px; }
.feats li {
  display: flex;
  gap: 0.85em;
  padding: 9px 0;
  border-bottom: 1px solid var(--line-soft);
  font-size: var(--t-small);
  color: var(--fg-dim);
}
.feats .plus { color: var(--red-ink); flex: none; font-family: var(--mono); }

/* ───────── 12 · WORK ───────── */
.work { background: var(--bg); }

.proj {
  position: relative;
  border-top: 1px solid var(--line);
}
.proj__num {
  position: absolute;
  z-index: 0;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%) translateY(var(--py, 0px));
  font-size: clamp(11rem, 40vw, 34rem);
  font-weight: 600;
  letter-spacing: -0.06em;
  line-height: 0.7;
  color: var(--fg);
  opacity: 0.05;
  pointer-events: none;
  user-select: none;
  will-change: transform;
}

.proj__in {
  position: relative;
  z-index: 1;
  padding-block: clamp(40px, 6vw, 90px);
}

.proj__media {
  grid-column: 1 / 8;
  position: relative;
  overflow: hidden;
  background: var(--fill);
  aspect-ratio: 16 / 10;
  display: block;
}
.proj__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  filter: grayscale(1) contrast(1.04);
  transform: scale(1.04);
  transition: transform 1s var(--ease), filter 0.7s var(--ease);
  will-change: transform;
}
.proj:hover .proj__media img { transform: scale(1); filter: grayscale(0) contrast(1); }

.proj__info { grid-column: 9 / 13; align-self: center; }
.proj__title {
  font-size: clamp(2rem, 5.2vw, 4.6rem);
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 0.9;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.dl {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0;
  border-top: 1px solid var(--line);
}
.dl dt,
.dl dd {
  font-family: var(--mono);
  font-size: var(--t-meta);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 11px 0;
  border-bottom: 1px solid var(--line-soft);
}
.dl dt { color: var(--fg-mute); padding-right: 24px; }
.dl dd { color: var(--fg); text-align: right; }

/* Second project block mirrors the grid */
.proj--flip .proj__media { grid-column: 6 / 13; order: 2; }
.proj--flip .proj__info { grid-column: 1 / 5; order: 1; }

@media (max-width: 900px) {
  .proj__media,
  .proj--flip .proj__media { grid-column: 1 / -1; order: 1; }
  .proj__info,
  .proj--flip .proj__info { grid-column: 1 / -1; order: 2; margin-top: 26px; }
}

/* Device triptych — real screenshots, hairline frames */
.devices { display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--gutter); align-items: end; }
.dev { position: relative; border: 1px solid var(--line); background: var(--fill); overflow: hidden; }
.dev img { width: 100%; height: 100%; object-fit: cover; object-position: top center; filter: grayscale(1) contrast(1.04); transition: filter .6s var(--ease); }
.dev:hover img { filter: grayscale(0); }
.dev--d { grid-column: 1 / 8; aspect-ratio: 16 / 10; }
.dev--t { grid-column: 8 / 11; aspect-ratio: 3 / 4; }
.dev--m { grid-column: 11 / 13; aspect-ratio: 9 / 19.5; }
.dev__tag {
  position: absolute;
  left: 0; bottom: 0;
  padding: 7px 10px;
  background: var(--bg);
  border-top: 1px solid var(--line);
  border-right: 1px solid var(--line);
}
@media (max-width: 760px) {
  .dev--d { grid-column: 1 / -1; }
  .dev--t { grid-column: 1 / 8; }
  .dev--m { grid-column: 8 / 13; aspect-ratio: 9 / 16; }
}

/* Next-project slot — a short editorial band, not an empty rectangle */
.slot {
  display: block;
  border-block: 1px solid var(--line);
  position: relative;
  overflow: hidden;
}
.slot::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--fg);
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform 0.6s var(--ease);
}
.slot__in {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: var(--gutter);
  align-items: center;
  padding-block: clamp(30px, 4.5vw, 64px);
  transition: color 0.5s var(--ease);
}
.slot__t {
  font-size: clamp(1.7rem, 4.4vw, 3.8rem);
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 0.95;
  text-transform: uppercase;
  margin-top: 8px;
}
.slot__m { justify-self: center; }
.slot__plus {
  display: block;
  font-size: clamp(2.6rem, 7vw, 6rem);
  font-weight: 400;
  line-height: 1;
  color: var(--red);
  transition: transform 0.7s var(--ease);
}
.slot__r { justify-self: end; text-align: right; }
.slot__r .tlink { display: inline-flex; }

@media (hover: hover) {
  .slot:hover::before { transform: scaleY(1); transform-origin: top; }
  .slot:hover .slot__in { color: var(--bg); }
  .slot:hover .slot__plus { transform: perspective(700px) rotateY(180deg) rotate(90deg); }
}
@media (max-width: 760px) {
  .slot__in { grid-template-columns: 1fr auto; row-gap: 18px; }
  .slot__r { grid-column: 1 / -1; justify-self: start; text-align: left; }
}

/* ───────── 13 · MANIFESTO ───────── */
.mani {
  background: var(--black);
  color: var(--off-white);
  padding-block: clamp(100px, 16vw, 260px);
}
.mani__lines {
  font-size: clamp(1.9rem, 6.6vw, 6.4rem);
  font-weight: 600;
  letter-spacing: -0.042em;
  line-height: 0.96;
  text-transform: uppercase;
}
.mani__lines .ln > i {
  color: rgba(245, 245, 242, 0.16);
  transition: transform 0.95s var(--ease), color 0.6s var(--ease);
}
.mani__lines .ln.lit > i { color: var(--off-white); }
.mani__lines .sp { display: block; height: clamp(22px, 4vw, 60px); }
.mani__lines em { font-style: normal; color: var(--red); }

/* ───────── 14 · SERVICES ───────── */
.srv { border-top: 1px solid var(--line); position: relative; }
.srv__row {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: var(--gutter);
  align-items: baseline;
  padding-block: clamp(22px, 2.6vw, 40px);
  border-bottom: 1px solid var(--line);
  position: relative;
  transition: color 0.5s var(--ease);
}
.srv__row::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--fg);
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform 0.55s var(--ease);
  z-index: 0;
}
@media (hover: hover) {
  .srv__row:hover::before { transform: scaleY(1); transform-origin: top; }
  .srv__row:hover { color: var(--bg); }
  .srv__row:hover .srv__n,
  .srv__row:hover .srv__d { color: inherit; opacity: 0.72; }
  .srv__row:hover .srv__t { transform: translateX(clamp(10px, 1.4vw, 26px)); }
  .srv__row:hover .srv__plus { opacity: 1; transform: rotate(0); }
}
.srv__row > * { position: relative; z-index: 1; }
.srv__n { grid-column: 1 / 2; font-family: var(--mono); font-size: var(--t-meta); letter-spacing: .1em; color: var(--fg-mute); transition: color .5s var(--ease), opacity .5s var(--ease); }
.srv__t {
  grid-column: 2 / 7;
  font-size: clamp(1.4rem, 3.4vw, 3rem);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 0.95;
  text-transform: uppercase;
  transition: transform 0.55s var(--ease);
}
.srv__d { grid-column: 8 / 12; font-size: var(--t-small); color: var(--fg-dim); transition: color .5s var(--ease), opacity .5s var(--ease); max-width: 40ch; }
.srv__plus {
  grid-column: 12 / 13;
  justify-self: end;
  font-size: 1.1rem;
  line-height: 1;
  opacity: 0;
  transform: rotate(-90deg);
  transition: opacity .5s var(--ease), transform .5s var(--ease);
}

@media (max-width: 860px) {
  .srv__row { grid-template-columns: auto 1fr auto; row-gap: 10px; align-items: center; }
  .srv__n { grid-column: 1; }
  .srv__t { grid-column: 2; }
  .srv__plus { grid-column: 3; opacity: 1; transform: none; color: var(--fg-mute); }
  .srv__d { grid-column: 1 / -1; }
}

/* Cursor-tracked preview */
.srv__peek {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 120;
  width: clamp(190px, 17vw, 280px);
  aspect-ratio: 4 / 3;
  overflow: hidden;
  pointer-events: none;
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.86);
  transition: opacity 0.4s var(--ease), transform 0.5s var(--ease);
  border: 1px solid rgba(255, 255, 255, 0.3);
  will-change: transform;
}
.srv__peek.on { opacity: 1; transform: translate(-50%, -50%) scale(1); }
.srv__peek img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.1); }
@media (hover: none) { .srv__peek { display: none; } }

/* ───────── 15 · PROCESS ───────── */
.proc__step {
  min-height: 78svh;
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: var(--gutter);
  align-items: center;
  border-top: 1px solid var(--line);
  padding-block: clamp(40px, 6vw, 80px);
}
.proc__n {
  grid-column: 1 / 7;
  font-size: clamp(7rem, 24vw, 20rem);
  font-weight: 600;
  letter-spacing: -0.06em;
  line-height: 0.72;
  color: transparent;
  -webkit-text-stroke: 1px var(--fg);
  transition: color 0.7s var(--ease);
  transform: translateY(var(--py, 0px));
  will-change: transform;
}
.proc__step.is-in .proc__n { color: var(--fg); }
.proc__body { grid-column: 8 / 13; }

@media (max-width: 860px) {
  .proc__step { min-height: 0; grid-template-columns: 1fr; }
  .proc__n { grid-column: 1; font-size: clamp(5rem, 30vw, 9rem); }
  .proc__body { grid-column: 1; margin-top: 8px; }
}

/* ───────── 16 · OFFERS ───────── */
.offers { border-top: 1px solid var(--line); }
.offer {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: var(--gutter);
  padding-block: clamp(26px, 3vw, 48px);
  border-bottom: 1px solid var(--line);
  align-items: start;
  position: relative;
}
.offer__n { grid-column: 1 / 2; }
.offer__head { grid-column: 2 / 5; }
.offer__name {
  font-size: clamp(1.5rem, 2.8vw, 2.5rem);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 0.95;
  text-transform: uppercase;
}
.offer__feats { grid-column: 5 / 10; }
.offer__feats li {
  display: flex;
  gap: 0.85em;
  padding: 8px 0;
  border-bottom: 1px solid var(--line-soft);
  font-size: var(--t-small);
  color: var(--fg-dim);
}
.offer__feats li:last-child { border-bottom: 0; }
.offer__feats .plus { color: var(--red-ink); flex: none; font-family: var(--mono); }
.offer__price { grid-column: 10 / 13; text-align: right; }
.offer__amt {
  font-size: clamp(1.7rem, 3.4vw, 3rem);
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 0.92;
  white-space: nowrap;
}
.offer__amt sup { font-family: var(--mono); font-size: 0.28em; letter-spacing: .1em; vertical-align: super; font-weight: 400; color: var(--fg-mute); }
.offer__was { text-decoration: line-through; color: var(--fg-mute); font-family: var(--mono); font-size: var(--t-meta); letter-spacing: .08em; }
.offer--best .offer__name::after {
  content: "★";
  color: var(--red);
  font-size: 0.4em;
  vertical-align: super;
  margin-left: 0.4em;
}

@media (max-width: 900px) {
  .offer { grid-template-columns: auto 1fr; row-gap: 14px; }
  .offer__n { grid-column: 1; }
  .offer__head { grid-column: 2; }
  .offer__price { grid-column: 1 / -1; text-align: left; order: 3; }
  .offer__feats { grid-column: 1 / -1; order: 4; }
}

/* ───────── 17 · COMPARE ───────── */
.cmp { width: 100%; font-size: var(--t-small); table-layout: fixed; }
.cmp caption { caption-side: top; text-align: left; }
.cmp col.c-k { width: 24%; }
.cmp col.c-v { width: 38%; }
.cmp th, .cmp td { text-align: left; padding: clamp(12px, 1.4vw, 18px) 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.cmp thead th {
  font-family: var(--mono);
  font-size: var(--t-meta);
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--fg-mute);
  font-weight: 400;
  border-bottom-color: var(--fg);
}
.cmp tbody th { font-weight: 500; color: var(--fg); width: 26%; }
.cmp td:last-child { color: var(--fg); }
.cmp td:nth-child(2) { color: var(--fg-mute); }
.cmp .u { display: block; font-family: var(--mono); font-size: var(--t-meta); letter-spacing: .08em; color: var(--fg-mute); margin-top: 4px; text-transform: uppercase; }
.cmp-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.cmp-scroll table { min-width: 620px; }

/* ───────── 18 · STUDIO ───────── */
.studio__img {
  position: relative;
  overflow: hidden;
  background: var(--black);
  color: var(--off-white);
  aspect-ratio: 4 / 5;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  --sp: clamp(18px, 1.8vw, 28px);
  padding: var(--sp);
}
/* Hairline register marks — the grid made visible, quietly */
.studio__img::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.07) 1px, transparent 1px);
  background-size: 25% 12.5%;
  pointer-events: none;
}
.studio__img:has(.studio__photo)::before { opacity: 0.35; }
.studio__img > * { position: relative; z-index: 1; }
.studio__img .label { color: var(--grey-500); }
.studio__mark {
  display: block;
  max-width: 100%;
  overflow-wrap: break-word;
  font-size: clamp(2.4rem, 5.2vw, 4.6rem);
  font-weight: 600;
  letter-spacing: -0.05em;
  line-height: 0.85;
  text-transform: uppercase;
  font-variation-settings: "wdth" 92;
  color: var(--off-white);
}

/* ───────── 18b · PORTRAIT FONDATEUR ─────────
   La photo devient la plaque ; le globe filaire flotte au-dessus. */
.studio__img .studio__photo {
  position: absolute;
  inset: calc(var(--sp, 0px) * -1);
  z-index: 0;
}
.studio__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 66%;
  filter: grayscale(1) contrast(1.16) brightness(0.9);
}
.studio__photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,.62) 0%, rgba(0,0,0,.1) 38%, rgba(0,0,0,.2) 60%, rgba(0,0,0,.82) 100%);
}
.studio__img .studio__globe {
  mix-blend-mode: screen;
  opacity: 0.5;
}

/* ───────── 19 · FAQ ───────── */
.faq details {
  border-bottom: 1px solid var(--line);
}
.faq summary {
  list-style: none;
  cursor: pointer;
  padding: clamp(18px, 2vw, 28px) 0;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 22px;
  font-size: clamp(1rem, 1.6vw, 1.45rem);
  font-weight: 500;
  letter-spacing: -0.018em;
  transition: color 0.35s var(--ease);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--red); }
.faq summary .sign { font-family: var(--mono); flex: none; transition: transform 0.4s var(--ease); }
.faq details[open] summary .sign { transform: rotate(45deg); }
.faq details[open] summary { color: var(--fg); }
.faq__a { padding-bottom: clamp(18px, 2vw, 28px); max-width: 62ch; color: var(--fg-dim); }

/* ───────── 20 · CTA FINAL ───────── */
.cta {
  background: var(--black);
  color: var(--off-white);
  padding-block: clamp(110px, 18vw, 300px);
  position: relative;
  overflow: hidden;
}
.cta__t {
  font-size: clamp(2.6rem, 12vw, 12rem);
  font-weight: 600;
  letter-spacing: -0.05em;
  line-height: 0.84;
  text-transform: uppercase;
}
.cta__foot {
  margin-top: clamp(40px, 6vw, 90px);
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  display: flex;
  flex-wrap: wrap;
  gap: 18px 32px;
  align-items: center;
  justify-content: space-between;
}

/* ───────── 21 · CONTACT ───────── */
.form { display: grid; gap: 0; }
.fg { border-bottom: 1px solid var(--line); padding-block: 6px 10px; }
.fg label {
  display: block;
  font-family: var(--mono);
  font-size: var(--t-meta);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fg-mute);
  margin-bottom: 4px;
}
.fg input,
.fg textarea {
  width: 100%;
  background: none;
  border: 0;
  padding: 6px 0;
  font-size: clamp(0.95rem, 1.2vw, 1.15rem);
  letter-spacing: -0.01em;
  color: var(--fg);
  resize: vertical;
}
.fg input::placeholder,
.fg textarea::placeholder { color: var(--fg-mute); opacity: 0.65; }
.fg input:focus,
.fg textarea:focus { outline: none; }
.fg:focus-within { border-bottom-color: var(--red); }
.fg textarea { min-height: 92px; }

.steps { display: flex; align-items: center; gap: 10px; margin-bottom: 26px; }
.steps i {
  flex: 1;
  height: 1px;
  background: var(--line);
  position: relative;
  overflow: hidden;
}
.steps i::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--red);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.6s var(--ease);
}
.steps i.on::after { transform: scaleX(1); }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  font-family: var(--mono);
  font-size: var(--t-meta);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border: 1px solid var(--line);
  padding: 10px 14px;
  transition: border-color 0.35s var(--ease), background 0.35s var(--ease), color 0.35s var(--ease);
}
.chip:hover { border-color: var(--fg); }
.chip[aria-pressed="true"] { background: var(--fg); color: var(--bg); border-color: var(--fg); }

.panel { display: none; }
.panel.on { display: block; animation: panelIn 0.5s var(--ease); }
@keyframes panelIn { from { opacity: 0; transform: translateY(10px); } }

.f-msg {
  font-family: var(--mono);
  font-size: var(--t-meta);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 12px 0;
}
.f-msg.err { color: var(--red); }

.recap { border-top: 1px solid var(--line); margin-bottom: 22px; }
.recap div {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line-soft);
  font-family: var(--mono);
  font-size: var(--t-meta);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.recap span:first-child { color: var(--fg-mute); }
.recap span:last-child { text-align: right; }

/* ───────── 22 · FOOTER ───────── */
.foot {
  background: var(--black);
  color: var(--off-white);
  padding-block: clamp(40px, 5vw, 72px) clamp(22px, 3vw, 34px);
  border-top: 1px solid rgba(255, 255, 255, 0.16);
}
.foot a:hover { color: var(--red); }
.foot__grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 32px var(--gutter); }
.foot__brand { grid-column: 1 / 5; }
.foot__c1 { grid-column: 6 / 8; }
.foot__c2 { grid-column: 8 / 10; }
.foot__c3 { grid-column: 10 / 13; }
.foot__col li { padding: 5px 0; }
.foot__col a, .foot__col span {
  font-family: var(--mono);
  font-size: var(--t-meta);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: color 0.3s var(--ease);
}
.foot__bot {
  margin-top: clamp(36px, 5vw, 64px);
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  display: flex;
  flex-wrap: wrap;
  gap: 10px 26px;
  justify-content: space-between;
}
@media (max-width: 860px) {
  .foot__grid { grid-template-columns: repeat(2, 1fr); }
  .foot__brand { grid-column: 1 / -1; }
  .foot__c1, .foot__c2, .foot__c3 { grid-column: auto; }
}

.foot__mark {
  font-size: clamp(3rem, 15vw, 13rem);
  font-weight: 600;
  letter-spacing: -0.05em;
  line-height: 0.8;
  text-transform: uppercase;
  margin-top: clamp(36px, 6vw, 90px);
  color: rgba(245, 245, 242, 0.1);
  user-select: none;
}

/* ───────── 23 · CHAT ───────── */
/* Stays out of the way until the hero is behind you — the first screen
   is a composition, not a place for a floating widget. */
.chat {
  position: fixed;
  right: var(--pad);
  bottom: 22px;
  z-index: 150;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.45s var(--ease), transform 0.45s var(--ease), visibility 0.45s;
}
.chat.on { opacity: 1; visibility: visible; transform: none; }
body.nav-hidden .chat.on { opacity: 0; pointer-events: none; }
.chat__btn {
  width: 46px;
  height: 46px;
  border: 1px solid var(--white);
  background: var(--black);
  color: var(--off-white);
  display: grid;
  place-items: center;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.06em;
  transition: background 0.4s var(--ease), color 0.4s var(--ease);
}
.chat__btn:hover { background: var(--off-white); color: var(--black); }
.chat__panel {
  position: absolute;
  right: 0;
  bottom: 58px;
  width: min(340px, calc(100vw - 2 * var(--pad)));
  background: var(--black);
  color: var(--off-white);
  border: 1px solid rgba(255, 255, 255, 0.22);
  display: flex;
  flex-direction: column;
  max-height: min(460px, 66svh);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.4s var(--ease), transform 0.4s var(--ease), visibility 0.4s;
}
.chat__panel.on { opacity: 1; visibility: visible; transform: none; }
.chat__hd {
  padding: 13px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.chat__msgs { padding: 14px; overflow-y: auto; display: grid; gap: 10px; font-size: 0.82rem; line-height: 1.45; }
.chat__msgs p { padding: 9px 11px; border: 1px solid rgba(255, 255, 255, 0.16); max-width: 90%; }
.chat__msgs p.me { margin-left: auto; background: var(--off-white); color: var(--black); border-color: var(--off-white); }
.chat__in { display: flex; border-top: 1px solid rgba(255, 255, 255, 0.18); }
.chat__in input { flex: 1; background: none; border: 0; padding: 12px 14px; font-size: 0.82rem; color: inherit; }
.chat__in input:focus { outline: none; }
.chat__in button { padding: 0 15px; border-left: 1px solid rgba(255, 255, 255, 0.18); }
.chat__in button:hover { background: var(--off-white); color: var(--black); }

/* ───────── 24 · MOBILE STICKY BAR ───────── */
.dock {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 140;
  display: none;
  background: var(--black);
  color: var(--off-white);
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  transform: translateY(100%);
  transition: transform 0.5s var(--ease);
}
.dock.on { transform: none; }
.dock a {
  flex: 1;
  text-align: center;
  padding: 14px 8px;
  font-family: var(--mono);
  font-size: var(--t-meta);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.dock a + a { border-left: 1px solid rgba(255, 255, 255, 0.2); }
.dock a.pri { background: var(--off-white); color: var(--black); }
@media (max-width: 1000px) {
  .dock { display: flex; }
  /* The dock already carries WhatsApp and the quote request — a second
     floating launcher would only cover content on a small screen. */
  .chat { display: none; }
}

/* ───────── 24b · 3D ─────────
   Filaire, monochrome, jamais ombré : la 3D obéit à la même règle que
   le reste du site — un trait de 1px et rien d'autre. */

/* Globe du studio */
.studio__globe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

/* Inclinaison au curseur — médias et plaques.
   --rx/--ry : tilt souris (lissé en JS). --sy/--tz : scrub de scroll
   (la galerie s'expose comme des panneaux dans l'espace).
   Pas de transition CSS : tout est lissé par lerp en JS. */
[data-tilt] {
  transform: perspective(1100px) rotateX(var(--rx, 0deg))
    rotateY(calc(var(--ry, 0deg) + var(--sy, 0deg)))
    translateZ(var(--tz, 0px));
  transform-style: preserve-3d;
  will-change: transform;
}

/* Triptyque : chaque appareil pivote le long du scroll */
.devices { perspective: 1500px; }
.dev {
  transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateZ(var(--tz, 0px));
  transform-style: preserve-3d;
  transition: transform 0.15s linear;
}

/* Numéros de méthode : bascule 3D à l'apparition, puis rotation continue
   pilotée par le scroll via --pr (lissée par la transition — effet inertie) */
.proc__n {
  transform-origin: 50% 100%;
  transform: perspective(900px) rotateX(78deg) rotateY(var(--pr, 0deg)) translateY(var(--py, 0px));
  opacity: 0;
  transition: transform 1.05s var(--ease), opacity 0.7s var(--ease), color 0.7s var(--ease);
}
.proc__step.is-in .proc__n {
  transform: perspective(900px) rotateX(0deg) rotateY(var(--pr, 0deg)) translateY(var(--py, 0px));
  opacity: 1;
}

/* Le + des services tourne dans l'espace */
.srv__plus {
  transform-style: preserve-3d;
  transform: perspective(600px) rotateY(-90deg);
}
@media (hover: hover) {
  .srv__row:hover .srv__plus { transform: perspective(600px) rotateY(0deg); }
}

/* Anneau typographique — un cylindre, un mot par facette */
.ring {
  background: var(--black);
  overflow: hidden;
  padding-block: clamp(50px, 9vw, 130px);
  perspective: 1300px;
  perspective-origin: 50% 50%;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 14%, #000 86%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 14%, #000 86%, transparent);
}
.ring__stage {
  position: relative;
  height: clamp(60px, 11vw, 150px);
  transform-style: preserve-3d;
}
.ring__in {
  position: absolute;
  inset: 0;
  transform-style: preserve-3d;
  transform: translateZ(calc(var(--r, 300px) * -1));
}
.ring__in span {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%) rotateY(var(--a, 0deg)) translateZ(var(--r, 300px));
  backface-visibility: hidden;
  white-space: nowrap;
  font-size: clamp(1.8rem, 6.5vw, 6.5rem);
  font-weight: 600;
  letter-spacing: -0.045em;
  line-height: 1;
  text-transform: uppercase;
  font-variation-settings: "wdth" 92;
  color: transparent;
  -webkit-text-stroke: 1px rgba(245, 245, 242, 0.6);
}
.ring__in span.solid {
  color: var(--off-white);
  -webkit-text-stroke: 0;
}
.ring__in span .red { color: var(--red); -webkit-text-stroke: 0; }

/* ───────── 24c · COUCHE CINÉMATIQUE ─────────
   Profondeur pilotée par alpinia-cine.js. Chaque règle a un défaut
   neutre : sans JS ou en reduced-motion, rien ne bouge, tout se lit. */

/* Hero — plans à vitesses différentes */
.hero__canvas, .hero__top, .hero__type { will-change: transform; }
.hero__floats {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
}
.hero__floats span {
  position: absolute;
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.12em;
  color: rgba(245, 245, 242, 0.45);
  will-change: transform;
}
.hero__floats .f1 { left: 11%; top: 26%; font-size: 18px; }
.hero__floats .f2 { left: 80%; top: 17%; color: var(--red); font-size: 15px; }
.hero__floats .f3 { left: 66%; top: 60%; }
.hero__floats .f4 { left: 20%; top: 72%; font-size: 10px; color: rgba(245, 245, 242, 0.3); }
@media (max-width: 900px) { .hero__floats { display: none; } }

/* Entrée en profondeur — remplace le simple rise sur les scènes clés */
.grid--deep { perspective: 1100px; }
[data-anim="deep"] {
  opacity: 0;
  transform: rotateX(16deg) translateY(46px) translateZ(-110px);
  transform-origin: top center;
  transition: opacity 0.9s var(--ease), transform 1.05s var(--ease);
  transition-delay: calc(var(--i, 0) * 110ms);
}
[data-anim="deep"].is-in { opacity: 1; transform: none; }

/* Galerie Work — perspective sur la grille des projets */
.proj .grid { perspective: 1600px; }

/* Manifeste — les lignes convergent depuis la profondeur */
.mani__lines { perspective: 900px; }
.mani__lines .ln { transform-style: preserve-3d; }
.mani__lines .ln.is-in > i {
  transform: translateY(0) translateZ(var(--lz, 0px)) rotateX(var(--lr, 0deg));
}

/* Scènes noires — la caméra entre (scale+opacity écrits par JS) */
.mani .wrap, .cta .wrap {
  will-change: transform, opacity;
  transform-origin: 50% 65%;
}

/* Métadonnées de la séquence — arrivée étagée des quatre coins */
.seq__meta > * {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.55s var(--ease), transform 0.55s var(--ease);
}
.seq__meta > *:nth-child(2) { transition-delay: 0.07s; }
.seq__meta > *:nth-child(3) { transition-delay: 0.14s; }
.seq__meta > *:nth-child(4) { transition-delay: 0.21s; }
.seq__meta.on > * { opacity: 1; transform: none; }

/* Offres — lumière qui suit le curseur, presque subliminale */
@media (hover: hover) and (pointer: fine) {
  .offer::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.45s var(--ease);
    background: radial-gradient(340px circle at var(--lx, 50%) var(--ly, 50%),
      rgba(0, 0, 0, 0.05), transparent 70%);
  }
  .offer:hover::after { opacity: 1; }
}

/* CTA magnétiques — transform écrit par JS, aucun style au repos */
.btn, .nav__cta { will-change: transform; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  .ln > i, .w > i { transform: none !important; }
  [data-anim] { opacity: 1 !important; transform: none !important; }
  [data-anim="clip"]::after { display: none; }
  .grain { animation: none; }
  .cur { display: none !important; }
  body.has-cursor, body.has-cursor a, body.has-cursor button { cursor: auto; }
  .seq__track { height: auto; }
  .seq__stage { position: static; height: auto; padding-block: 80px; }
  .mani__lines .ln > i { color: var(--off-white); }
  .proc__step { min-height: 0; }
  /* 3D : on garde la forme, on retire le mouvement */
  .proc__n { color: var(--fg); opacity: 1; transform: translateY(var(--py, 0px)) !important; }
  [data-tilt], .dev { transform: none !important; }
  .srv__plus { transform: none; }
  .ring__in { position: static; transform: none !important; display: flex; gap: clamp(20px, 3vw, 60px); align-items: center; justify-content: center; flex-wrap: wrap; }
  .ring__in span { position: static; transform: none !important; backface-visibility: visible; }
  .ring__stage { height: auto; }
  .ring { padding-block: clamp(30px, 5vw, 60px); }
  .hero__floats { display: none; }
  [data-anim="deep"] { opacity: 1 !important; transform: none !important; }
  .seq__meta > * { opacity: 1; transform: none; }
  .mani .wrap, .cta .wrap { transform: none !important; opacity: 1 !important; }
  /* Les scènes se figent sur une pose lisible plutôt qu'à l'état fermé */
  .mac-scene, .rylix-scene { position: static; display: grid; place-items: center; padding-block: 40px; }
  .mac { --mac-s: 0.74; --mac-cx: 8deg; --mac-cy: 0deg; --mac-open: -6deg; --mac-glare: 0.25; }
  .mac__base { opacity: 1; }
  .rylix-card { --r-s: 1; --r-ry: 0deg; --r-clip: 0%; --r-pz: 1; }
}

/* No-JS: nothing may stay hidden */
.no-js .ln > i,
.no-js .w > i { transform: none; }
.no-js [data-anim] { opacity: 1; transform: none; }
.no-js [data-anim="clip"]::after { display: none; }
.no-js #loader { display: none; }
.no-js .seq__track { height: auto; }
.no-js .seq__stage { position: static; height: auto; padding-block: 80px; }
.no-js .mani__lines .ln > i { color: var(--off-white); }
.no-js .panel { display: block; }
.no-js .proc__n { opacity: 1; transform: none; }
.no-js [data-tilt], .no-js .dev { transform: none; }
.no-js .ring__in { position: static; transform: none; display: flex; gap: 40px; justify-content: center; flex-wrap: wrap; }
.no-js .ring__in span { position: static; transform: none; }
.no-js .ring__stage { height: auto; }

/* ───────── 25 · MISC ───────── */
.skip {
  position: absolute;
  left: -9999px;
  z-index: 400;
  background: var(--black);
  color: var(--white);
  padding: 12px 18px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.skip:focus { left: var(--pad); top: 12px; }

/* ───────── 26 · ALPINIA — VISITE GUIDÉE IA ─────────
   alpinIA : prend tout l'écran, révélée par un rideau de cascade
   filaire (même moteur canvas que le hero — aucune librairie 3D). */
.aia-sec {
  position: relative;
  padding-block: clamp(56px, 8vw, 120px);
  text-align: center;
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}
.aia-sec__cv { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0.5; pointer-events: none; }
.aia-sec .wrap { position: relative; }
.aia-sec__in { max-width: 640px; margin-inline: auto; display: flex; flex-direction: column; align-items: center; }
.aia-sec .idx { margin-bottom: 14px; }

/* Popup — teaser, bottom-left, mirrors the sales chat widget's restraint */
.aia-pop {
  position: fixed;
  left: var(--pad);
  bottom: 22px;
  z-index: 149;
  width: min(300px, calc(100vw - 2 * var(--pad)));
  background: var(--black);
  color: var(--off-white);
  border: 1px solid rgba(255, 255, 255, 0.22);
  padding: 16px 18px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.45s var(--ease), transform 0.45s var(--ease), visibility 0.45s;
}
.aia-pop.on { opacity: 1; visibility: visible; transform: none; }
body.nav-hidden .aia-pop.on { opacity: 0; pointer-events: none; }
.aia-pop__close {
  position: absolute;
  top: 8px;
  right: 10px;
  color: var(--grey-500);
  font-size: 11px;
}
.aia-pop__close:hover { color: var(--off-white); }
.aia-pop__hd { display: flex; align-items: center; gap: 10px; }
.aia-pop .body { color: var(--grey-100); font-size: 0.82rem; }
.aia-pop__actions { display: flex; align-items: center; gap: 14px; margin-top: 14px; flex-wrap: wrap; }
.aia-pop__no { color: var(--grey-500); text-decoration: underline; text-underline-offset: 3px; }
.aia-pop__no:hover { color: var(--off-white); }

/* Avatar chip — shared by popup and fullscreen header */
.aia-av {
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  background: var(--red);
  color: var(--white);
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.02em;
}
.aia-av--lg { width: 38px; height: 38px; font-size: 12px; }

/* ───── PLEIN ÉCRAN ───── */
/* Le fond noir apparaît/disparaît sans fondu : c'est le rideau + le
   clip-path de .aia__in qui doivent seuls "révéler" le contenu — un
   fondu d'opacité sur le fond laisserait la page transparaître dessous
   pendant la transition et casserait l'effet. À la fermeture, le fond
   reste visible le temps que .aia__in ait fini de se refermer. */
.aia {
  position: fixed;
  inset: 0;
  z-index: 500;
  background: var(--black);
  color: var(--off-white);
  visibility: hidden;
  transition: visibility 0s linear 0.85s;
}
.aia.on { visibility: visible; transition-delay: 0s; }
body.aia-lock { overflow: hidden; }

.aia__cv { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0.55; pointer-events: none; }

/* Rideau de cascade — traits filaires qui tombent et révèlent le chat,
   même logique que .guides (spans générés en JS) : transform/opacity seuls. */
.aia__curtain {
  position: absolute;
  inset: 0;
  z-index: 1;
  overflow: hidden;
  opacity: 0;
  transition: opacity 0.55s var(--ease-io) 0.35s;
  pointer-events: none;
}
.aia.aia--reveal .aia__curtain { opacity: 1; transition-delay: 0s; }
.aia__curtain i {
  position: absolute;
  top: -20%;
  left: var(--x);
  width: 1px;
  height: 46%;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.75) 40%, var(--red) 85%, rgba(227, 38, 46, 0));
  transform: translateY(-40%);
  animation: aiaFall var(--d, 0.9s) var(--dl, 0s) cubic-bezier(0.55, 0, 0.85, 0.35) forwards;
}
@keyframes aiaFall {
  0% { transform: translateY(-60%); opacity: 0; }
  15% { opacity: 1; }
  100% { transform: translateY(230%); opacity: 0; }
}

.aia__in {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  flex-direction: column;
  clip-path: circle(0% at var(--ox, 50%) var(--oy, 90%));
  opacity: 0;
  transition: clip-path 0.85s var(--ease-io), opacity 0.35s var(--ease);
}
.aia.on .aia__in { clip-path: circle(150% at var(--ox, 50%) var(--oy, 90%)); opacity: 1; }
.no-js .aia__in, .aia.aia--static .aia__in { clip-path: none !important; opacity: 1 !important; }

.aia__hd {
  flex-shrink: 0;
  padding: 16px var(--pad);
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.aia__hd-id { display: flex; align-items: center; gap: 12px; }
.aia__name { font-size: 0.9rem; letter-spacing: 0.02em; }
.aia__status { display: flex; align-items: center; gap: 6px; color: var(--grey-500); font-size: 10px; margin-top: 3px; white-space: nowrap; }
.aia__dot {
  width: 6px; height: 6px; border-radius: 50%; background: #3ecf6e; display: inline-block;
  animation: aiaPulse 1.8s infinite ease-in-out;
}
.aia__sep { opacity: 0.5; margin-left: 6px; }
.aia__close { display: flex; align-items: center; gap: 8px; color: var(--grey-500); }
.aia__close:hover { color: var(--off-white); }
.aia__esc { border: 1px solid rgba(255, 255, 255, 0.22); padding: 2px 6px; font-size: 9px; }

.aia__msgs {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: clamp(20px, 4vw, 48px) var(--pad);
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.aia__msgs::after { content: ""; }
.aia__msg {
  max-width: min(640px, 82%);
  margin-inline: auto;
  width: 100%;
  animation: aiaMsgIn 0.45s var(--ease) both;
}
.aia__msg--ai { margin-right: auto; }
.aia__msg--me { margin-left: auto; }
.aia__msg p {
  padding: 13px 16px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  font-size: 0.92rem;
  line-height: 1.6;
  white-space: pre-line;
  width: fit-content;
  max-width: 100%;
}
.aia__msg--me p { margin-left: auto; background: var(--off-white); color: var(--black); border-color: var(--off-white); }
.aia__src { display: flex; flex-wrap: wrap; gap: 8px 14px; margin-top: 8px; font-family: var(--mono); font-size: 10px; letter-spacing: 0.03em; }
.aia__src a { color: var(--grey-500); text-decoration: underline; text-underline-offset: 3px; }
.aia__src a:hover { color: var(--off-white); }
.aia__typing { display: inline-flex; align-items: center; gap: 4px; padding: 14px 16px !important; }
.aia__typing i { width: 5px; height: 5px; border-radius: 50%; background: var(--grey-500); animation: aiaBlink 1.1s infinite ease-in-out; }
.aia__typing i:nth-child(2) { animation-delay: 0.15s; }
.aia__typing i:nth-child(3) { animation-delay: 0.3s; }

.aia__in-bar {
  flex-shrink: 0;
  display: flex;
  margin: 0 var(--pad);
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.03);
}
.aia__in-bar input { flex: 1; background: none; border: 0; padding: 16px 18px; font-size: 0.92rem; color: inherit; }
.aia__in-bar input:focus { outline: none; }
.aia__send { padding: 0 20px; border-left: 1px solid rgba(255, 255, 255, 0.18); transition: background 0.3s var(--ease), color 0.3s var(--ease); }
.aia__send:hover { background: var(--off-white); color: var(--black); }
.aia__foot { text-align: center; color: var(--grey-500); font-size: 9px; padding: 14px var(--pad) clamp(16px, 3vw, 28px); }
.aia__foot-dot { opacity: 0.5; margin-inline: 0.4em; }
.aia__foot-link { text-decoration: underline; text-underline-offset: 3px; }
.aia__foot-link:hover { color: var(--off-white); }

@keyframes aiaPulse { 0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(62, 207, 110, 0.5); } 50% { opacity: 0.7; box-shadow: 0 0 0 4px rgba(62, 207, 110, 0); } }
@keyframes aiaBlink { 0%, 60%, 100% { opacity: 0.25; transform: translateY(0); } 30% { opacity: 1; transform: translateY(-2px); } }
@keyframes aiaMsgIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
  .aia__in { transition: opacity 0.3s var(--ease) !important; clip-path: none !important; }
  .aia__msg { animation: none; }
  .aia__dot { animation: none; }
  .aia__curtain { display: none; }
}

@media (max-width: 640px) {
  .aia-pop { left: 12px; right: 12px; width: auto; }
  .aia__hd { padding: 14px 16px; }
  .aia__msgs { padding: 20px 16px; }
  .aia__msg { max-width: 96%; }
  .aia__in-bar { margin: 0 16px; }
  .aia__foot { padding: 12px 16px 18px; }
}

@media (max-width: 420px) {
  .aia__net { display: none; }
}
