/* ==========================================================================
   Owen Le Morvan — Portfolio motion design
   V2 — anglais, palette brun/doré (reprise du portfolio Webflow #B28955),
   hero au scroll façon Mistral, section 3D « assemblage », devis simplifié.
   Règle : tout le visuel passe par les tokens de :root.
   ========================================================================== */

@font-face { font-family: 'Inter Tight'; src: url('../fonts/InterTight-var.woff2') format('woff2'); font-weight: 100 900; font-display: swap; }
@font-face { font-family: 'Space Mono'; src: url('../fonts/SpaceMono-400.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Space Mono'; src: url('../fonts/SpaceMono-700.woff2') format('woff2'); font-weight: 700; font-display: swap; }

:root {
  /* COULEURS — surfaces */
  --bg: #FBFBF8;
  --surface: #FFFFFF;
  --surface-2: #F5F3EF;
  --surface-3: #ECE9E2;
  --border: #E4E3DF;
  --border-strong: #CFCBC2;

  /* COULEURS — encre */
  --ink: #18181B;
  --ink-muted: #52545B;
  --ink-faint: #818083;
  --ink-invert: #FBFBF8;
  --ink-invert-muted: #9A9A9E;
  --night: #0F1012;
  --night-2: #1A1B1F;

  /* COULEURS — marque (dégradé doré → brun) */
  --amber: #E4C99A;
  --orange: #CDAA74;
  --primary: #B28955;
  --red: #8A6639;
  --flame: #5A4226;
  --rec: #D2452F;

  /* TYPOGRAPHIE */
  --font-display: 'Inter Tight', 'Helvetica Neue', Arial, sans-serif;
  --font-body: 'Inter Tight', 'Helvetica Neue', Arial, sans-serif;
  --font-mono: 'Space Mono', 'SFMono-Regular', Consolas, monospace;
  --fs-display: clamp(3rem, 7.4vw, 8.25rem);
  --fs-h2: clamp(2.1rem, 4.4vw, 4rem);
  --fs-h3: clamp(1.6rem, 2.6vw, 2.5rem);
  --fs-h4: clamp(1.3rem, 1.9vw, 1.9rem);
  --fs-h5: clamp(1.1rem, 1.4vw, 1.35rem);
  --fs-large: clamp(1.1rem, 1.35vw, 1.3rem);
  --fs-body: 1.0625rem;
  --fs-small: 0.9375rem;
  --fs-mono: 0.8125rem;
  --fs-mono-s: 0.6875rem;
  --fs-price: clamp(2.6rem, 5vw, 4.25rem);
  --lh-display: 0.94;
  --lh-title: 1.05;
  --lh-body: 1.55;
  --track-display: -0.045em;
  --track-title: -0.03em;
  --track-mono: 0.04em;

  /* ESPACEMENT & RYTHME */
  --container: 1728px;
  --gutter: clamp(1rem, 2.5vw, 2.5rem);
  --section-gap: clamp(4rem, 9vw, 10rem);
  --gap: clamp(1rem, 1.6vw, 1.5rem);
  --pad-card: clamp(1rem, 1.8vw, 1.75rem);
  --nav-h: 48px;
  --cell: clamp(10rem, 17vw, 17rem);

  /* FORMES */
  --radius: 0px;
  --radius-btn: 6px;
  --radius-card: 10px;
  --radius-chip: 3px;
  --line: 1px;

  /* EFFETS */
  --shadow-box: 4px 4px 0 rgba(24, 24, 27, 0.92);
  --shadow-soft: 0 24px 60px rgba(24, 24, 27, 0.12);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --dur-fast: 150ms;
  --dur: 300ms;
  --dur-slow: 600ms;

  /* 3D — assemblage (largeur du cadre vidéo) */
  --fw: min(50rem, 80vw, calc((100dvh - var(--nav-h) - 17rem) * 1.7778));
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  background: var(--bg); color: var(--ink);
  font-family: var(--font-body); font-size: var(--fs-body); line-height: var(--lh-body);
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img, svg, video, iframe { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; color: inherit; }
button { background: none; border: 0; cursor: pointer; }
::selection { background: var(--primary); color: var(--ink-invert); }
:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }

.mono { font-family: var(--font-mono); font-size: var(--fs-mono); text-transform: uppercase; letter-spacing: var(--track-mono); }
.mono--s { font-size: var(--fs-mono-s); }
.muted { color: var(--ink-muted); }
.frame { max-width: var(--container); margin-inline: auto; border-inline: var(--line) solid var(--border); }
.wrap { max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.px-icon { width: 1.25rem; height: 1.25rem; shape-rendering: crispEdges; flex-shrink: 0; }

/* ---------- boutons (hover Mistral : icône qui entre, texte qui glisse) ---------- */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: space-between; gap: 0.5rem;
  height: 3rem; padding-inline: 1rem; overflow: hidden; border-radius: var(--radius-btn);
  font-family: var(--font-display); font-weight: 500; font-size: var(--fs-body); letter-spacing: -0.01em;
  background: var(--surface-3); color: var(--ink); transition: background var(--dur) var(--ease);
  white-space: nowrap;
}
.btn:hover { background: var(--border); }
.btn--dark { background: var(--ink); color: var(--ink-invert); }
.btn--dark:hover { background: var(--night-2); }
.btn--light { background: var(--ink-invert); color: var(--ink); }
.btn--light:hover { background: var(--surface-2); }
.btn--sq { width: 2.5rem; height: 2.5rem; padding: 0; justify-content: center; }
.btn__in, .btn__out { display: inline-flex; transition: transform var(--dur) var(--ease); }
.btn__in { position: absolute; left: 1rem; transform: translateX(-2.5rem); }
.btn__txt { transition: transform var(--dur) var(--ease); }
.btn:hover .btn__in { transform: translateX(0); }
.btn:hover .btn__txt { transform: translateX(1.75rem); }
.btn:hover .btn__out { transform: translateX(2.5rem); }
.btn--sq .btn__in { left: auto; }
.btn--sq:hover .btn__out { transform: translateX(2.5rem); }

.chip {
  display: inline-block; padding: 0.25rem 0.5rem; border-radius: var(--radius-chip);
  background: var(--surface-2); color: var(--ink);
  font-family: var(--font-mono); font-size: var(--fs-mono-s); text-transform: uppercase; letter-spacing: var(--track-mono);
}
.chip--dark { background: var(--night-2); color: var(--ink-invert); }

/* ---------- nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 60; height: var(--nav-h);
  background: var(--bg); border-bottom: var(--line) solid var(--border);
  transition: background var(--dur) var(--ease);
}
.nav__in { display: flex; height: 100%; max-width: var(--container); margin-inline: auto; border-inline: var(--line) solid var(--border); }
.nav__cell { display: flex; align-items: center; gap: 0.5rem; padding-inline: 1rem; border-right: var(--line) solid var(--border); font-size: var(--fs-small); font-weight: 500; transition: background var(--dur-fast); }
.nav__cell:hover { background: var(--surface-2); }
.nav__logo { padding-inline: 0.75rem; }
.nav__logo svg { width: 1.6rem; height: 1.6rem; }
.nav__brand { font-weight: 600; letter-spacing: -0.01em; }
.nav__spacer { flex: 1; }
.nav__cell--right { border-right: 0; border-left: var(--line) solid var(--border); }
.nav__cell--lang { border-left: var(--line) solid var(--border); letter-spacing: 0.08em; }
.nav__cell--lang + .nav__cell--right { border-left: 0; }
.i18n-hide body { visibility: hidden; }
.nav__cta { display: flex; align-items: center; gap: 0.6rem; padding-inline: 1rem; background: var(--ink); color: var(--ink-invert); font-size: var(--fs-small); font-weight: 500; transition: background var(--dur-fast); }
.nav__cta:hover { background: var(--night-2); }

/* ---------- hero ---------- */
.hero { padding-top: var(--nav-h); }
.hero__row { display: flex; }
.hero__top { min-height: calc(60dvh - var(--nav-h)); }
.hero__bottom { height: 40dvh; min-height: 18rem; }
.hero__title { width: 70%; display: flex; flex-direction: column; justify-content: flex-end; padding: 0 2.5rem 2.5rem; }
.hero__eyebrow { color: var(--ink-faint); margin-bottom: 1.25rem; display: flex; align-items: center; gap: 0.5rem; }
.hero__dot { width: 0.5rem; height: 0.5rem; background: var(--primary); animation: blink 1.2s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.hero h1 { font-family: var(--font-display); font-weight: 500; font-size: var(--fs-display); line-height: var(--lh-display); letter-spacing: var(--track-display); }
.hero h1 .line { display: block; white-space: nowrap; }
.hero h1 .ch { display: inline-block; }
.hero h1 .wd { display: inline-block; white-space: nowrap; }
.hero h1 em { font-style: normal; color: var(--primary); }
.hero__aside {
  position: relative; width: 30%; display: flex; flex-direction: column; justify-content: flex-end; padding: 2.75rem;
  background: var(--surface-2); border-left: var(--line) solid var(--border); border-bottom: var(--line) solid var(--border);
}
.hero__aside p { font-family: var(--font-display); font-size: var(--fs-h5); line-height: 1.22; letter-spacing: -0.02em; font-weight: 500; }
.hero__aside-meta { display: flex; gap: 1.5rem; margin-top: 1.75rem; color: var(--ink-muted); }

.hero__mosaic { position: relative; width: 70%; overflow: hidden; }
.mosaic { position: absolute; inset: 0; display: grid; }
.mosaic i { display: block; box-shadow: inset 0 0 0 0.5px rgba(15, 16, 18, 0.14); }

/* boîte de sélection façon logiciel d'animation */
.selbox { position: absolute; inset: 22% 18% 26% 13%; border: var(--line) solid rgba(15, 16, 18, 0.55); pointer-events: none; }
.selbox__h { position: absolute; width: 8px; height: 8px; background: var(--ink); }
.selbox__h:nth-child(1) { top: -4px; left: -4px; } .selbox__h:nth-child(2) { top: -4px; right: -4px; }
.selbox__h:nth-child(3) { bottom: -4px; left: -4px; } .selbox__h:nth-child(4) { bottom: -4px; right: -4px; }
.selbox__lbl { position: absolute; color: var(--ink); }
.selbox__lbl--a { left: -0.75rem; bottom: -2rem; transform: translateX(-100%) translateY(-2.6rem); }
.selbox__lbl--b { right: 0.75rem; top: 0.9rem; }
.selbox__path { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.keyframe-sprite { position: absolute; right: 2rem; bottom: 0; width: clamp(3rem, 5vw, 4.5rem); }

.hero__feed { width: 30%; display: flex; flex-direction: column; justify-content: space-between; padding: 2.5rem; border-left: var(--line) solid var(--border); }
.arrows { display: flex; flex-direction: column; gap: 0.5rem; }
.arrows svg { width: 1rem; height: 1rem; animation: arrowfade 1.8s var(--ease) infinite; }
.arrows svg:nth-child(2) { animation-delay: 0.2s; } .arrows svg:nth-child(3) { animation-delay: 0.4s; }
@keyframes arrowfade { 0%, 100% { opacity: 0.2; } 30% { opacity: 1; } }

.feat { position: relative; display: flex; flex-direction: column; gap: 0.5rem; }
.feat__bar { position: absolute; top: -0.75rem; left: 0; height: 3px; width: 0; background: var(--amber); }
.feat__label { color: var(--ink-faint); }
.feat__box { display: flex; border: var(--line) solid var(--border); border-radius: var(--radius-btn); background: var(--bg); overflow: hidden; }
.feat__item { display: flex; align-items: center; gap: 1rem; padding: 0.5rem; flex: 1; min-width: 0; text-align: left; }
.feat__thumb { width: 4rem; height: 4rem; flex-shrink: 0; border-radius: var(--radius-btn); overflow: hidden; background: var(--surface-3); }
.feat__thumb img { width: 100%; height: 100%; object-fit: cover; }
.feat__title { font-size: var(--fs-small); font-weight: 500; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.feat__nav { display: flex; flex-direction: column; border-left: var(--line) solid var(--border); }
.feat__nav button { width: 2.5rem; flex: 1; display: grid; place-items: center; transition: background var(--dur-fast); }
.feat__nav button:hover { background: var(--surface-2); }
.feat__nav button + button { border-top: var(--line) solid var(--border); }

/* ---------- bande de cellules (stats + disciplines) ---------- */
.cells { overflow: hidden; border-block: var(--line) solid var(--border); }
.cells__track { display: flex; width: max-content; }
.cell {
  width: var(--cell); aspect-ratio: 1; flex-shrink: 0; margin-left: calc(var(--line) * -1);
  border: var(--line) solid var(--border); border-block: 0;
  display: flex; flex-direction: column; justify-content: space-between; padding: 1.25rem;
  transition: background var(--dur) var(--ease);
}
.cell:hover { background: var(--surface-2); }
.cell__big { font-family: var(--font-display); font-size: var(--fs-h3); font-weight: 500; letter-spacing: var(--track-title); line-height: 1; }
.cell__big sup { color: var(--primary); font-size: 0.55em; vertical-align: top; }
.cell__word { font-family: var(--font-display); font-size: var(--fs-h5); font-weight: 500; letter-spacing: -0.02em; line-height: 1.15; }
.cell__px { display: grid; grid-template-columns: repeat(4, 0.5rem); gap: 0; }
.cell__px i { width: 0.5rem; height: 0.5rem; }

/* ---------- en-têtes éditoriaux ---------- */
.headline { padding-block: var(--section-gap) 2.5rem; }
.headline--center { text-align: center; }
.headline h2 { font-family: var(--font-display); font-weight: 500; font-size: var(--fs-h2); line-height: var(--lh-title); letter-spacing: var(--track-title); }
.headline .mono { color: var(--ink-faint); display: block; margin-bottom: 1.25rem; }
.headline p { max-width: 42rem; margin-top: 1.25rem; font-size: var(--fs-large); color: var(--ink-muted); }
.headline--center p { margin-inline: auto; }
.headline__row { display: flex; align-items: flex-end; justify-content: space-between; gap: 2rem; flex-wrap: wrap; }

/* ---------- galerie ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 0.5rem; justify-content: center; margin-top: 2rem; }
.filter { height: 2.25rem; padding-inline: 0.9rem; border: var(--line) solid var(--border); border-radius: var(--radius-btn); background: var(--bg); transition: background var(--dur-fast), color var(--dur-fast); }
.filter:hover { background: var(--surface-2); }
.filter[aria-pressed="true"] { background: var(--ink); color: var(--ink-invert); border-color: var(--ink); }
.gallery { display: grid; grid-template-columns: repeat(12, 1fr); border-top: var(--line) solid var(--border); }
.work {
  position: relative; display: flex; flex-direction: column; text-align: left;
  border-right: var(--line) solid var(--border); border-bottom: var(--line) solid var(--border);
  padding: var(--pad-card); gap: 1rem; transition: background var(--dur) var(--ease);
}
.work:hover { background: var(--surface-2); }
.work.is-hidden { display: none; }
.work:nth-child(4n+1) { grid-column: span 7; } .work:nth-child(4n+2) { grid-column: span 5; }
.work:nth-child(4n+3) { grid-column: span 5; } .work:nth-child(4n+4) { grid-column: span 7; }
.gallery.is-filtered .work { grid-column: span 6; }
.work__media { position: relative; aspect-ratio: 16 / 9; overflow: hidden; border-radius: var(--radius-card); background: var(--surface-3); }
.work__media img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--dur-slow) var(--ease); }
.work:hover .work__media img { transform: scale(1.04); }
.work__play {
  position: absolute; left: 1rem; bottom: 1rem; display: flex; align-items: center; gap: 0.5rem;
  height: 2.5rem; padding-inline: 0.85rem; border-radius: var(--radius-btn);
  background: var(--ink-invert); color: var(--ink); transform: translateY(0.5rem); opacity: 0;
  transition: transform var(--dur) var(--ease), opacity var(--dur) var(--ease);
}
.work:hover .work__play, .work:focus-visible .work__play { transform: translateY(0); opacity: 1; }
.work__meta { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; }
.work__title { display: block; font-family: var(--font-display); font-size: var(--fs-h5); font-weight: 500; letter-spacing: -0.02em; line-height: 1.2; }
.work__sub { display: block; color: var(--ink-muted); font-size: var(--fs-small); margin-top: 0.25rem; }
.work__idx { color: var(--ink-faint); }

/* lightbox */
.lightbox { border: 0; padding: 0; background: transparent; max-width: none; max-height: none; width: 100vw; height: 100dvh; }
.lightbox::backdrop { background: rgba(15, 16, 18, 0.88); }
.lightbox__in { width: 100%; height: 100%; display: grid; place-items: center; padding: var(--gutter); }
.lightbox__box { width: min(100%, 72rem); }
.lightbox__video { position: relative; aspect-ratio: 16 / 9; background: var(--night); }
.lightbox__video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.lightbox__bar { display: flex; justify-content: space-between; align-items: center; color: var(--ink-invert); padding-top: 1rem; gap: 1rem; }

/* ---------- process ---------- */
.process { border-top: var(--line) solid var(--border); }
.process__grid { display: grid; grid-template-columns: repeat(10, 1fr); }
.process__side { grid-column: span 2; position: sticky; top: var(--nav-h); height: calc(100dvh - var(--nav-h)); display: flex; flex-direction: column; justify-content: flex-end; gap: 1.5rem; padding: 2.5rem 1rem 1.5rem; }
.process__side .mono { color: var(--ink-faint); }
.process__steps { display: flex; flex-direction: column; gap: 0.5rem; }
.step-btn { display: flex; align-items: center; gap: 0.75rem; color: var(--ink-faint); transition: color var(--dur); }
.step-btn__n { width: 2.25rem; height: 2.25rem; display: grid; place-items: center; border-radius: var(--radius-btn); background: var(--surface-3); font-family: var(--font-mono); font-size: var(--fs-mono); transition: background var(--dur), color var(--dur); }
.step-btn.is-active { color: var(--ink); }
.step-btn.is-active .step-btn__n { background: var(--ink); color: var(--ink-invert); }
.step-btn__t { font-size: var(--fs-small); font-weight: 500; }
.process__cards { grid-column: span 8; border-left: var(--line) solid var(--border); }
.step { border-bottom: var(--line) solid var(--border); background: var(--bg); }
.step:last-child { border-bottom: 0; }
.step__head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.5rem; min-height: 6.5rem; }
.step__head h3 { font-family: var(--font-display); font-size: var(--fs-h3); font-weight: 500; letter-spacing: var(--track-title); line-height: 1.05; }
.step__head h3 span { color: var(--ink-faint); font-family: var(--font-mono); font-size: var(--fs-mono); letter-spacing: var(--track-mono); vertical-align: middle; margin-right: 0.75rem; }
.step__body { display: flex; flex-direction: column; gap: 1.5rem; padding: 1.5rem; border-top: var(--line) solid var(--border); }
.step__body > p { font-size: var(--fs-large); max-width: 52rem; }
.step__visual { position: relative; aspect-ratio: 2400 / 1000; display: grid; place-items: center; overflow: hidden; border-radius: var(--radius-card); background-color: var(--surface-2); background-image: linear-gradient(var(--border) var(--line), transparent var(--line)), linear-gradient(90deg, var(--border) var(--line), transparent var(--line)); background-size: 2rem 2rem; }
.pixmap { display: grid; --px: clamp(0.6rem, 1.9vw, 1.75rem); }
.pixmap i { width: var(--px); height: var(--px); }
.step__tag { position: absolute; color: var(--ink-muted); }
.step__tag--tl { top: 1rem; left: 1rem; } .step__tag--br { bottom: 1rem; right: 1rem; }
.step__chips { display: flex; flex-wrap: wrap; gap: 0.5rem; }

/* ---------- devis ---------- */
.quote { border-top: var(--line) solid var(--border); }
.quote__grid { display: grid; grid-template-columns: 7fr 5fr; border-top: var(--line) solid var(--border); }
.quote__form { border-right: var(--line) solid var(--border); }
.q-block { padding: 2rem var(--gutter); border-bottom: var(--line) solid var(--border); }
.q-block:last-child { border-bottom: 0; }
.q-block legend, .q-block__label { display: flex; justify-content: space-between; width: 100%; margin-bottom: 1rem; color: var(--ink-faint); }
.q-block fieldset { border: 0; }
.q-block__val { color: var(--ink); }
.q-opts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.5rem; }
.q-opts--3 { grid-template-columns: repeat(3, 1fr); }
.q-opt { position: relative; }
.q-opt input { position: absolute; opacity: 0; pointer-events: none; }
.q-opt label {
  display: flex; flex-direction: column; gap: 0.25rem; height: 100%; padding: 1rem; cursor: pointer;
  border: var(--line) solid var(--border); border-radius: var(--radius-btn); background: var(--bg);
  transition: border-color var(--dur-fast), background var(--dur-fast), box-shadow var(--dur-fast);
}
.q-opt label:hover { background: var(--surface-2); }
.q-opt input:checked + label { border-color: var(--ink); box-shadow: var(--shadow-box); background: var(--surface); }
.q-opt input:focus-visible + label { outline: 2px solid var(--primary); outline-offset: 2px; }
.q-opt__t { font-weight: 600; }
.q-opt__d { font-size: var(--fs-small); color: var(--ink-muted); line-height: 1.35; }
.q-opt__p { margin-top: auto; padding-top: 0.5rem; color: var(--primary); }
.q-check label { flex-direction: row; align-items: center; gap: 0.75rem; }
.q-check__box { width: 1.1rem; height: 1.1rem; flex-shrink: 0; border: var(--line) solid var(--border-strong); display: grid; place-items: center; transition: background var(--dur-fast); }
.q-check input:checked + label .q-check__box { background: var(--primary); border-color: var(--primary); }
.q-check__txt { flex: 1; }
.q-check .q-opt__p { margin: 0; padding: 0; }

.range { width: 100%; -webkit-appearance: none; appearance: none; height: 2.5rem; background: transparent; cursor: pointer; }
.range::-webkit-slider-runnable-track { height: 4px; background: linear-gradient(90deg, var(--primary) var(--fill, 30%), var(--border) var(--fill, 30%)); }
.range::-moz-range-track { height: 4px; background: var(--border); }
.range::-moz-range-progress { height: 4px; background: var(--primary); }
.range::-webkit-slider-thumb { -webkit-appearance: none; width: 1.25rem; height: 1.25rem; margin-top: -0.5rem; background: var(--ink); border: 3px solid var(--bg); box-shadow: 0 0 0 1px var(--ink); }
.range::-moz-range-thumb { width: 1rem; height: 1rem; background: var(--ink); border: 3px solid var(--bg); border-radius: 0; box-shadow: 0 0 0 1px var(--ink); }
.range__scale { display: flex; justify-content: space-between; color: var(--ink-faint); }

.stepper { display: inline-flex; align-items: center; border: var(--line) solid var(--border); border-radius: var(--radius-btn); overflow: hidden; }
.stepper button { width: 2.75rem; height: 2.75rem; font-size: var(--fs-h5); transition: background var(--dur-fast); }
.stepper button:hover { background: var(--surface-2); }
.stepper output { min-width: 3rem; text-align: center; font-family: var(--font-mono); border-inline: var(--line) solid var(--border); line-height: 2.75rem; }
.q-row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }

.quote__sum { position: relative; }
.sum { position: sticky; top: var(--nav-h); padding: 2rem var(--gutter); display: flex; flex-direction: column; gap: 1.5rem; }
.sum__card { background: var(--night); color: var(--ink-invert); border-radius: var(--radius-card); padding: 1.75rem; display: flex; flex-direction: column; gap: 1.25rem; overflow: hidden; position: relative; }
.sum__card .mono { color: var(--ink-invert-muted); }
.sum__total { font-family: var(--font-display); font-size: var(--fs-price); font-weight: 500; letter-spacing: var(--track-display); line-height: 1; }
.sum__total small { font-size: 0.35em; letter-spacing: 0; color: var(--ink-invert-muted); margin-left: 0.4rem; }
.sum__range { color: var(--ink-invert-muted); font-size: var(--fs-small); }
.sum__lines { list-style: none; display: flex; flex-direction: column; border-top: var(--line) solid var(--night-2); }
.sum__lines li { display: flex; justify-content: space-between; gap: 1rem; padding-block: 0.6rem; border-bottom: var(--line) solid var(--night-2); font-size: var(--fs-small); }
.sum__lines li span:last-child { font-family: var(--font-mono); font-size: var(--fs-mono); white-space: nowrap; }
.sum__meta { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; }
.sum__meta div { background: var(--night-2); padding: 0.9rem; border-radius: var(--radius-btn); }
.sum__meta strong { display: block; font-size: var(--fs-h5); font-weight: 500; margin-top: 0.25rem; }
.sum__bar { position: absolute; top: 0; left: 0; right: 0; height: 4px; display: flex; }
.sum__bar i { flex: 1; }
.sum__actions { display: flex; flex-direction: column; gap: 0.5rem; }
.sum__actions .btn { width: 100%; }
.sum__note { font-size: var(--fs-small); color: var(--ink-muted); }

/* ---------- CTA + footer ---------- */
.cta { background: var(--red); color: var(--ink-invert); position: relative; overflow: hidden; }
.cta__in { display: flex; justify-content: space-between; align-items: flex-end; gap: 3rem; min-height: 24rem; padding-block: 2.5rem 5rem; flex-wrap: wrap; }
.cta__txt { max-width: 44rem; display: flex; flex-direction: column; gap: 1.25rem; position: relative; z-index: 1; }
.cta__txt h2 { font-family: var(--font-display); font-weight: 500; font-size: var(--fs-h3); letter-spacing: var(--track-title); line-height: 1.08; }
.cta__btns { display: flex; gap: 0.75rem; flex-wrap: wrap; position: relative; z-index: 1; }
.cta__noise { position: absolute; inset: 0; opacity: 0.18; mix-blend-mode: soft-light; background-image: repeating-linear-gradient(0deg, var(--ink) 0 1px, transparent 1px 3px); }
.foot { position: relative; height: 16rem; overflow: hidden; }
.foot__bands { position: absolute; inset: 0; display: flex; flex-direction: column; }
.foot__bands i { flex: 1; }
.foot__bands i:nth-child(1) { background: var(--orange); } .foot__bands i:nth-child(2) { background: var(--primary); }
.foot__bands i:nth-child(3) { background: var(--red); } .foot__bands i:nth-child(4) { background: var(--flame); }
.foot__grid { position: absolute; inset: 0 3rem; border-inline: var(--line) solid rgba(15, 16, 18, 0.12); display: flex; flex-direction: column; }
.foot__grid i { flex: 1; border-bottom: var(--line) solid rgba(15, 16, 18, 0.12); }
.foot__arc { position: absolute; right: 3rem; top: 0; height: 100%; aspect-ratio: 1; overflow: hidden; }
.foot__arc::before { content: ''; position: absolute; left: 0; top: 0; width: 200%; height: 200%; border-radius: 50% 0 0 0; border-left: var(--line) solid rgba(15, 16, 18, 0.12); border-top: var(--line) solid rgba(15, 16, 18, 0.12); }
.foot__kf { position: absolute; left: 50%; bottom: 25%; width: 3.5rem; transform: translateX(-50%); }
.foot__legal { position: absolute; left: 0; right: 0; bottom: 0; display: flex; justify-content: space-between; padding: 0.75rem 3.75rem; color: var(--ink-invert); gap: 1rem; flex-wrap: wrap; }

/* ==========================================================================
   V2 — ajouts
   ========================================================================== */

/* ---------- hero : phrase qui se recentre au scroll (Mistral) ---------- */
.hero__stmt { position: relative; }
.hero__icons { position: absolute; left: 0; bottom: calc(100% + 1rem); display: flex; gap: 0.5rem; }
.hero__icons span { width: 1.75rem; height: 1.75rem; display: grid; place-items: center; background: var(--c); color: var(--ink-invert); border-radius: 4px; opacity: 0; }
.hero__icons svg { width: 0.85rem; height: 0.85rem; shape-rendering: crispEdges; }
.hero__mosaic { will-change: clip-path, transform; }

/* ---------- process : illustrations ---------- */
.step__visual .ill { position: absolute; inset: 0; width: 100%; height: 100%; }
.ill .paper { fill: var(--surface); }
.ill .stroke { stroke: var(--border-strong); stroke-width: 2; }
.ill .ink { fill: var(--ink); }
.ill .inv { fill: var(--ink-invert); }
.ill .inv-mut { fill: var(--ink-invert-muted); }
.ill .mut { fill: var(--ink-faint); }
.ill .g1 { fill: var(--amber); } .ill .g2 { fill: var(--orange); } .ill .g3 { fill: var(--primary); }
.ill .g4 { fill: var(--red); } .ill .g5 { fill: var(--flame); }
.ill .night { fill: var(--night); } .ill .night2 { fill: var(--night-2); }
.ill .surface2 { fill: var(--surface-2); } .ill .surface3 { fill: var(--surface-3); }
.ill .ink-stroke { stroke: var(--ink); }
.ill .g1-stroke { stroke: var(--amber); }
.ill .line { stroke: var(--border-strong); stroke-width: 2; }
.ill .line-dark { stroke: #2A2B30; stroke-width: 2; }
.ill .beat-lines line { stroke: rgba(205, 170, 116, 0.25); stroke-width: 2; stroke-dasharray: 4 6; }
.ill .t-mono { font-family: var(--font-mono); font-size: 15px; letter-spacing: 0.04em; }
.ill .t-disp { font-family: var(--font-display); font-size: 24px; font-weight: 500; letter-spacing: -0.02em; }
.ill .wv { fill: var(--orange); } .ill .wv.beat { fill: var(--amber); }

/* ---------- méthode : assemblage 3D ---------- */
.assemble { border-top: var(--line) solid var(--border); background: var(--bg); }
.assemble__in {
  position: relative; display: grid; grid-template-rows: auto 1fr auto; height: 100dvh; padding-top: var(--nav-h); overflow: hidden;
  background-color: var(--bg); background-image: radial-gradient(var(--border-strong) var(--line), transparent var(--line)); background-size: 1.5rem 1.5rem;
}
.assemble__top { position: relative; z-index: 3; display: flex; justify-content: space-between; align-items: flex-start; gap: 2rem; padding: 2rem 2.5rem 0; }
.assemble__head .mono { display: block; margin-bottom: 0.75rem; }
.assemble__head h2 { font-family: var(--font-display); font-weight: 500; font-size: var(--fs-h3); line-height: var(--lh-title); letter-spacing: var(--track-title); }
.assemble__head h2 .muted { color: var(--ink-faint); }
.assemble__legend { list-style: none; display: flex; flex-wrap: wrap; gap: 0.5rem; }
.assemble__legend li {
  display: flex; align-items: center; gap: 0.5rem; padding: 0.45rem 0.75rem; border: var(--line) solid var(--border); border-radius: var(--radius-btn);
  background: var(--bg); color: var(--ink-faint); font-size: var(--fs-small); font-weight: 500; transition: color var(--dur), border-color var(--dur), box-shadow var(--dur);
}
.assemble__legend li b { width: 0.6rem; height: 0.6rem; background: var(--border-strong); transition: background var(--dur); }
.assemble__legend li.is-on { color: var(--ink); border-color: var(--ink); box-shadow: var(--shadow-box); }
.assemble__legend li.is-on b { background: var(--sw); }

.scene-wrap { position: relative; z-index: 1; min-height: 0; display: grid; place-items: center; perspective: 1800px; perspective-origin: 50% 40%; }
.scene { transform-style: preserve-3d; }
.vframe { position: relative; width: var(--fw); aspect-ratio: 16 / 9; transform-style: preserve-3d; }
.vframe__bg { position: absolute; inset: 0; background: var(--surface); border: var(--line) solid var(--border-strong); border-radius: var(--radius-card); box-shadow: var(--shadow-soft); opacity: 0; }

.piece { position: absolute; transform-style: preserve-3d; }
.piece__face { position: absolute; inset: 0; overflow: hidden; border-radius: calc(var(--fw) * 0.012); box-shadow: 0 calc(var(--fw) * 0.025) calc(var(--fw) * 0.06) rgba(24, 24, 27, 0.18); }
.piece__tag {
  position: absolute; left: 0; bottom: calc(100% + 0.5rem); display: flex; align-items: center; gap: 0.4rem; white-space: nowrap;
  padding: 0.2rem 0.45rem; border: var(--line) solid var(--border); border-radius: var(--radius-chip); background: var(--bg); color: var(--ink);
  font-family: var(--font-mono); font-size: var(--fs-mono-s); text-transform: uppercase; letter-spacing: var(--track-mono);
}
.piece__tag b { width: 0.55rem; height: 0.55rem; background: var(--sw); }

/* 01 — marketing : message + CTA + courbe */
.piece--mkt { left: 5%; top: 7%; width: 52%; height: 52%; }
.mkt { display: flex; flex-direction: column; justify-content: space-between; padding: 6% 7%; background: var(--surface-2); border: var(--line) solid var(--border); }
.mkt__lbl { font-family: var(--font-mono); font-size: calc(var(--fw) * 0.0135); text-transform: uppercase; letter-spacing: var(--track-mono); color: var(--red); }
.mkt__h { font-family: var(--font-display); font-weight: 600; font-size: calc(var(--fw) * 0.044); line-height: 1.02; letter-spacing: -0.035em; }
.mkt__row { display: flex; align-items: flex-end; justify-content: space-between; gap: 4%; }
.mkt__cta {
  position: relative; display: inline-block; padding: 0.55em 0.9em; border-radius: calc(var(--fw) * 0.006);
  background: var(--ink); color: var(--ink-invert); font-size: calc(var(--fw) * 0.017); font-weight: 500; white-space: nowrap; animation: ctaPulse 2.4s var(--ease) infinite;
}
.mkt__cursor { position: absolute; right: -0.5em; bottom: -1em; width: calc(var(--fw) * 0.02); animation: cursorClick 2.4s var(--ease) infinite; }
.mkt__chart { display: flex; align-items: flex-end; gap: 6%; width: 30%; height: calc(var(--fw) * 0.085); }
.mkt__chart i { flex: 1; transform-origin: bottom; animation: grow 2.4s var(--ease) infinite; }
.mkt__chart i:nth-child(1) { background: var(--amber); } .mkt__chart i:nth-child(2) { background: var(--orange); animation-delay: 0.08s; }
.mkt__chart i:nth-child(3) { background: var(--primary); animation-delay: 0.16s; } .mkt__chart i:nth-child(4) { background: var(--red); animation-delay: 0.24s; }
.mkt__chart i:nth-child(5) { background: var(--flame); animation-delay: 0.32s; }
@keyframes cursorClick { 0%, 55%, 100% { transform: translate(0, 0) scale(1); } 64% { transform: translate(-3px, -3px) scale(0.85); } }
@keyframes ctaPulse { 0%, 60%, 100% { box-shadow: 0 0 0 0 rgba(178, 137, 85, 0); } 68% { box-shadow: 0 0 0 5px rgba(178, 137, 85, 0.55); } }
@keyframes grow { 0%, 62% { transform: scaleY(1); } 70% { transform: scaleY(0.6); } 85% { transform: scaleY(1.04); } }

/* logo 3D : losange-keyframe extrudé */
.piece--logo { left: 63%; top: 8%; width: 29%; aspect-ratio: 1; }
.gem { --s: calc(var(--fw) * 0.2); --d: calc(var(--fw) * 0.05); position: absolute; left: 50%; top: 50%; width: var(--s); height: var(--s); margin: calc(var(--s) / -2) 0 0 calc(var(--s) / -2); transform-style: preserve-3d; animation: gemFloat 7s ease-in-out infinite; }
.gem__box { position: absolute; inset: 0; transform-style: preserve-3d; transform: rotate(45deg); }
.gem__box i { position: absolute; backface-visibility: hidden; }
.gem__f { inset: 0; display: grid; place-items: center; transform: translateZ(calc(var(--d) / 2)); background: linear-gradient(135deg, var(--amber), var(--primary) 55%, var(--red)); box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.25); }
.gem__b { inset: 0; transform: rotateY(180deg) translateZ(calc(var(--d) / 2)); background: var(--flame); }
.gem__t, .gem__bo { left: 0; right: 0; height: var(--d); top: calc(50% - var(--d) / 2); }
.gem__t { transform: rotateX(90deg) translateZ(calc(var(--s) / 2)); background: var(--orange); }
.gem__bo { transform: rotateX(-90deg) translateZ(calc(var(--s) / 2)); background: var(--flame); }
.gem__l, .gem__r { top: 0; bottom: 0; width: var(--d); left: calc(50% - var(--d) / 2); }
.gem__l { transform: rotateY(-90deg) translateZ(calc(var(--s) / 2)); background: var(--primary); }
.gem__r { transform: rotateY(90deg) translateZ(calc(var(--s) / 2)); background: var(--red); }
.gem__play { width: 34%; aspect-ratio: 1; background: var(--night); clip-path: polygon(22% 8%, 22% 92%, 92% 50%); transform: rotate(-45deg); }
@keyframes gemFloat { 0%, 100% { transform: rotateY(-24deg) rotateX(10deg) translateY(-2%); } 50% { transform: rotateY(24deg) rotateX(-8deg) translateY(2%); } }

/* 02 — motion design : timeline à keyframes */
.piece--motion { left: 5%; top: 63%; width: 90%; height: 22%; }
.tl { display: flex; flex-direction: column; justify-content: space-around; padding: 1.4% 2%; background: var(--night); }
.tl__row { display: grid; grid-template-columns: 12% 1fr; align-items: center; color: var(--ink-invert-muted); font-family: var(--font-mono); font-size: calc(var(--fw) * 0.0125); text-transform: uppercase; }
.tl__track { position: relative; height: calc(var(--fw) * 0.014); }
.tl__bar { position: absolute; top: 22%; height: 56%; background: var(--flame); border-radius: 2px; }
.tl__kf { position: absolute; top: 50%; width: calc(var(--fw) * 0.012); aspect-ratio: 1; background: var(--orange); transform: translate(-50%, -50%) rotate(45deg); }
.tl__head { position: absolute; top: 0; bottom: 0; width: 2px; background: var(--amber); animation: playhead 4s linear infinite; }
@keyframes playhead { from { left: 14%; } to { left: 98%; } }

/* 03 — rythme : forme d'onde + BPM */
.piece--rhythm { left: 5%; top: 88.5%; width: 90%; height: 8%; }
.rh { display: flex; align-items: center; gap: 2%; padding: 0 2%; background: var(--surface); border: var(--line) solid var(--border); }
.rh__bpm { display: flex; align-items: center; gap: 0.45em; white-space: nowrap; font-family: var(--font-mono); font-size: calc(var(--fw) * 0.0125); }
.rh__pulse { width: 0.7em; height: 0.7em; border-radius: 50%; background: var(--red); animation: beat 0.5s steps(1) infinite; }
@keyframes beat { 50% { opacity: 0.2; } }
.rh__wave { flex: 1; height: 72%; display: flex; align-items: center; gap: 1px; }
.rh__wave i { flex: 1; min-height: 2px; background: var(--orange); animation: eq 1s ease-in-out infinite; animation-delay: var(--d, 0s); }
.rh__wave i.beat { background: var(--red); }
@keyframes eq { 50% { transform: scaleY(0.45); } }

/* habillage du cadre (apparaît à la fin) */
.vframe__corner { position: absolute; width: 4%; aspect-ratio: 1; border: 0 solid var(--ink); opacity: 0; }
.vframe__corner:nth-of-type(1) { top: 3%; left: 2%; border-top-width: 2px; border-left-width: 2px; }
.vframe__corner:nth-of-type(2) { top: 3%; right: 2%; border-top-width: 2px; border-right-width: 2px; }
.vframe__corner:nth-of-type(3) { bottom: 3%; left: 2%; border-bottom-width: 2px; border-left-width: 2px; }
.vframe__corner:nth-of-type(4) { bottom: 3%; right: 2%; border-bottom-width: 2px; border-right-width: 2px; }
.vframe__tc { position: absolute; top: 2.2%; left: 50%; transform: translateX(-50%); display: flex; align-items: center; gap: 0.4rem; font-size: calc(var(--fw) * 0.014); opacity: 0; }
.vframe__rec { width: 0.6em; height: 0.6em; border-radius: 50%; background: var(--rec); animation: blink 1s steps(1) infinite; }

.assemble__title { padding: 0 var(--gutter) 2.5rem; text-align: center; font-family: var(--font-display); font-weight: 500; font-size: var(--fs-h2); line-height: var(--lh-title); letter-spacing: var(--track-title); }
.assemble__title .line { display: block; }
.assemble__title .w { display: inline-block; }
.assemble__title em { font-style: normal; color: var(--primary); }

/* ---------- devis V2 ---------- */
.q-included { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.q-inc { display: inline-flex; align-items: center; gap: 0.65rem; padding: 0.8rem 1rem; border: var(--line) solid var(--ink); border-radius: var(--radius-btn); background: var(--surface); box-shadow: var(--shadow-box); font-weight: 600; }
.q-check__box.is-on { background: var(--primary); border-color: var(--primary); }
.q-check__txt { display: flex; flex-direction: column; gap: 0.15rem; }
.q-opt--soon label { cursor: not-allowed; border-style: dashed; background: var(--surface-2); }
.q-opt--soon label:hover { background: var(--surface-2); }
.q-opt--soon label > *:not(.soon) { opacity: 0.4; filter: grayscale(1); }
.soon { padding: 0.25rem 0.55rem; border-radius: var(--radius-chip); background: var(--ink); color: var(--ink-invert); }
.sum__total--custom { font-size: calc(var(--fs-price) * 0.8); }

/* ---------- animations d'apparition ---------- */
.reveal { opacity: 0; transform: translateY(2rem); }

/* ---------- hero : boutons sous le titre ---------- */
.hero__ctas { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 2rem; }

/* ---------- WhatsApp ---------- */
:root { --wa: #25D366; --wa-ink: #0B3D1E; }
.btn--wa { background: var(--wa); color: var(--wa-ink); }
.btn--wa:hover { background: #1FBE5B; }
.wa {
  position: fixed; z-index: 70; right: 1rem; bottom: calc(1rem + env(safe-area-inset-bottom, 0px));
  display: flex; align-items: center; gap: 0.6rem; height: 3.25rem; padding: 0 1.1rem 0 0.9rem;
  border-radius: 999px; background: var(--wa); color: var(--wa-ink);
  font-weight: 600; font-size: var(--fs-small); box-shadow: var(--shadow-box);
  transition: transform var(--dur) var(--ease);
}
.wa svg { width: 1.6rem; height: 1.6rem; }
.wa:hover { transform: translateY(-2px); }
@media (max-width: 520px) { .wa { padding: 0; width: 3.25rem; justify-content: center; } .wa__lbl { display: none; } }

/* ---------- popup devis ---------- */
.qm { border: 0; padding: 0; background: transparent; max-width: none; max-height: none; width: 100vw; height: 100dvh; }
.qm::backdrop { background: rgba(15, 16, 18, 0.72); }
.qm__in { width: 100%; height: 100%; display: grid; place-items: center; padding: var(--gutter); overflow-y: auto; }
.qm__box {
  width: min(100%, 44rem); background: var(--surface); color: var(--ink);
  border: var(--line) solid var(--ink); border-radius: var(--radius-card); box-shadow: var(--shadow-box);
  padding: var(--pad-card); display: grid; gap: 1.5rem;
}
.qm__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; }
.qm__head h2 { font-family: var(--font-display); font-weight: 500; font-size: var(--fs-h4); letter-spacing: var(--track-title); line-height: var(--lh-title); margin-top: 0.4rem; text-wrap: balance; }
.qm__form { display: grid; gap: 1.1rem; }
.qm__row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
.qm__f { display: grid; gap: 0.45rem; border: 0; min-width: 0; }
.qm__f > span, .qm__f legend { color: var(--ink-muted); }
.qm__f legend { margin-bottom: 0.45rem; }
.qm input[type="text"], .qm input[type="email"], .qm input[type="tel"], .qm select, .qm textarea {
  width: 100%; padding: 0.7rem 0.8rem; border: var(--line) solid var(--border-strong); border-radius: var(--radius-btn);
  background: var(--bg); font: inherit; font-size: var(--fs-small); color: var(--ink);
}
.qm textarea { resize: vertical; min-height: 5.5rem; }
.qm input:focus, .qm select:focus, .qm textarea:focus { outline: 2px solid var(--primary); outline-offset: 0; border-color: var(--primary); }
.qm [aria-invalid="true"] { border-color: var(--rec); }
.qm__chips { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.qm__chips label { position: relative; }
.qm__chips input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.qm__chips span {
  display: inline-block; padding: 0.5rem 0.8rem; border: var(--line) solid var(--border-strong); border-radius: var(--radius-btn);
  font-size: var(--fs-small); background: var(--bg); transition: background var(--dur-fast), color var(--dur-fast);
}
.qm__chips input:checked + span { background: var(--ink); color: var(--ink-invert); border-color: var(--ink); }
.qm__chips input:focus-visible + span { outline: 2px solid var(--primary); outline-offset: 2px; }
.qm__err { color: var(--rec); font-size: var(--fs-small); }
.qm__err a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.qm__hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.qm [type="submit"][disabled] { opacity: 0.6; pointer-events: none; }
.qm__foot { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem 1rem; }
.qm__note { color: var(--ink-faint); font-size: var(--fs-small); }
.qm__done { display: grid; gap: 1.1rem; }
.qm__form[hidden], .qm__done[hidden], .qm__err[hidden], .qm__quote[hidden] { display: none; }
.qm__quote { background: var(--night); color: var(--ink-invert); border-radius: var(--radius-card); padding: 1rem 1.25rem; display: grid; gap: 0.75rem; }
.qm__quote-head { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; }
.qm__quote-head .mono { color: var(--ink-invert-muted); }
.qm__quote-head strong { font-family: var(--font-display); font-size: var(--fs-h4); font-weight: 500; letter-spacing: var(--track-title); }
.qm__quote-note { display: inline-flex; align-items: center; gap: 0.45rem; font-size: var(--fs-small); color: var(--ink-invert-muted); }
.qm__lead { font-size: var(--fs-body); max-width: 60ch; }
.qm__recap {
  margin: 0; padding: 1rem; background: var(--surface-2); border-radius: var(--radius-btn);
  font-family: var(--font-mono); font-size: var(--fs-mono); line-height: 1.6; white-space: pre-wrap; word-break: break-word;
  max-height: 16rem; overflow: auto;
}
.qm__num { font-family: var(--font-mono); color: var(--ink); user-select: all; }
.qm__back { text-decoration: underline; text-underline-offset: 3px; color: var(--ink-muted); font-size: inherit; }
@media (max-width: 600px) { .qm__row { grid-template-columns: 1fr; } .qm__foot .btn { width: 100%; } }

/* lightbox sans embed (hébergement qui bloque les iframes) */
.lightbox__link { position: absolute; inset: 0; display: grid; place-items: center; }
.lightbox__link img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0.55; }
.lightbox__link span { position: relative; display: inline-flex; align-items: center; gap: 0.6rem; padding: 0.9rem 1.2rem; border-radius: var(--radius-btn); background: var(--ink-invert); color: var(--ink); font-weight: 500; }

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .nav__links { display: none; }
  .process__grid { grid-template-columns: 1fr; }
  .process__side { display: none; }
  .process__cards { grid-column: auto; border-left: 0; }
  .quote__grid { grid-template-columns: 1fr; }
  .quote__form { border-right: 0; border-bottom: var(--line) solid var(--border); }
}
@media (max-width: 900px) {
  .hero__row { flex-direction: column; }
  .hero__top { min-height: 0; }
  .hero__title { width: 100%; padding: 4rem var(--gutter) 1.75rem; }
  .hero__aside { width: 100%; border-left: 0; padding: 1.75rem var(--gutter); border-top: var(--line) solid var(--border); }
  .hero__bottom { height: auto; }
  .hero__mosaic { width: 100%; aspect-ratio: 16 / 10; }
  .hero__feed { width: 100%; border-left: 0; padding: 2rem var(--gutter); }
  .arrows { display: none; }
  .hero h1 .line { white-space: normal; }
  .gallery .work { grid-column: span 12 !important; border-right: 0; }
  .q-opts, .q-opts--3 { grid-template-columns: 1fr; }
  .foot__grid, .foot__arc { display: none; }
  .foot__legal { padding-inline: var(--gutter); }
  .nav__brand { display: none; }
  :root { --fw: min(88vw, calc((100dvh - var(--nav-h) - 17rem) * 1.7778)); }
  .assemble__top { flex-direction: column; gap: 1rem; padding: 1.5rem var(--gutter) 0; }
}
@media (max-width: 520px) {
  .nav__cell--right { display: none; }
  .selbox__lbl--a { display: none; }
  .piece__tag { display: none; }
  .assemble__legend li { font-size: var(--fs-mono-s); padding: .3rem .5rem; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}
