/* ===== Fonts (self-hosted Manrope, variable 300–700) ===== */
@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url("/assets/fonts/manrope-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url("/assets/fonts/manrope-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* ===== Tokens ===== */
:root {
  --ink: #101014;
  --ink-2: #28282c;
  --text: #3d3d47;
  --muted: #6b6b76;
  --line: #e2e3ea;
  --paper: #ffffff;
  --paper-2: #fafafa;
  --card: #e9ecf2;
  --on-dark-muted: #d0d1db;
  --steel: #a9b4d6;
  --accent: #ff2244;
  --radius: 12px;
  --radius-lg: 16px;
  --gutter: clamp(16px, 5.5vw, 80px);
  --maxw: 1440px;
  color-scheme: light;
}

/* ===== Base ===== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--text);
  background: var(--paper);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { color: var(--ink); margin: 0; font-weight: 500; letter-spacing: -0.02em; line-height: 1.1; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; border-radius: 4px; }
[id] { scroll-margin-top: 24px; }
[hidden] { display: none !important; }

.skip { position: absolute; left: -9999px; top: 8px; z-index: 100; background: #fff; color: var(--ink); padding: 8px 14px; border-radius: 8px; }
.skip:focus { left: 8px; }

.mock-banner { background: #ffd54a; color: var(--ink); font-size: 13px; text-align: center; padding: 8px 16px; line-height: 1.4; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }

.chip { display: inline-block; background: var(--ink-2); color: #fff; font-size: 15px; letter-spacing: .02em; line-height: 1; padding: 6px 12px 7px; border-radius: 999px; }
.chip--dark { background: rgba(255,255,255,.1); }

.section-head { max-width: 680px; margin: 0 auto; text-align: center; display: grid; justify-items: center; gap: 12px; }
.section-head h2 { font-size: clamp(34px, 4.2vw, 52px); }
.section-head p { font-size: clamp(16px, 1.4vw, 20px); font-weight: 300; line-height: 1.65; }
.section-head--dark h2 { color: #fff; }
.section-head--dark p { color: var(--on-dark-muted); }

.grid-bg {
  background-image:
    linear-gradient(rgba(16,16,20,.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(16,16,20,.045) 1px, transparent 1px);
  background-size: 56px 56px;
  background-position: center top;
}

.btn-pill {
  display: inline-flex; align-items: center; gap: 26px;
  padding: 8px 8px 8px 24px;
  background: #fff; color: var(--ink); text-decoration: none; font-size: 16px; font-weight: 500;
  border-radius: 999px; transition: transform .2s;
}
.btn-pill:hover { transform: translateY(-2px); }
.btn-pill__icon { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--ink); color: #fff; transition: transform .25s; }
.btn-pill:hover .btn-pill__icon { transform: rotate(45deg); }
.btn-ghost { display: inline-flex; align-items: center; padding: 14px 22px; color: #fff; text-decoration: none; border: 1px solid rgba(255,255,255,.35); border-radius: 999px; font-size: 16px; transition: background .2s, border-color .2s; }
.btn-ghost:hover { background: rgba(255,255,255,.08); border-color: #fff; }

/* =========================================================
   HERO — du chantier brut à la livraison (scroll-driven)
   ========================================================= */
.hx { position: relative; height: 260vh; background: var(--ink); --p: 0; --r: 0; }
.hx__sticky { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }
.hx__frame { position: absolute; inset: 14px; border-radius: var(--radius-lg); overflow: hidden; background: #1c1c20; }
.hx__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hx__img--before { transform: scale(calc(1.06 - var(--r) * .06)); transform-origin: 30% 50%; }
.hx__after { position: absolute; inset: 0; overflow: hidden; clip-path: inset(0 calc((1 - var(--r)) * 100%) 0 0); }
.hx__img--after { transform: scale(calc(1.12 - var(--r) * .12)); transform-origin: 70% 50%; }
.hx__blueprint { position: absolute; inset: 0; width: 100%; height: 100%; color: rgba(255,255,255,.7); opacity: calc(.9 - var(--r) * 1.6); pointer-events: none; mix-blend-mode: screen; }
.hx__blueprint .bp { stroke-dasharray: 1600; stroke-dashoffset: 1600; animation: draw 2.6s cubic-bezier(.6,0,.2,1) .3s forwards; }
.hx__blueprint .bp[stroke-dasharray] { animation: none; stroke-dashoffset: 0; opacity: 0; animation: fade 1s ease 1.6s forwards; }
.hx__blueprint .bp-txt { opacity: 0; animation: fade 1s ease 2s forwards; font-family: "Manrope", sans-serif; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes fade { to { opacity: 1; } }
.hx__shade { position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(90deg, rgba(16,16,20,.88) 0%, rgba(16,16,20,.55) 38%, rgba(16,16,20,0) 68%),
    linear-gradient(0deg, rgba(16,16,20,.85) 0%, rgba(16,16,20,0) 30%),
    linear-gradient(180deg, rgba(16,16,20,.55) 0%, rgba(16,16,20,0) 18%);
}
.hx__scan { position: absolute; top: 0; bottom: 0; left: calc(var(--r) * 100%); width: 2px; margin-left: -1px; background: #fff; box-shadow: 0 0 24px rgba(255,255,255,.6); opacity: 0; transition: opacity .3s; }
.hx.is-scanning .hx__scan { opacity: 1; }
.hx__scan span { position: absolute; top: 120px; left: 10px; white-space: nowrap; font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--ink); background: #fff; padding: 5px 9px; border-radius: 4px; }

.hx-nav { position: absolute; z-index: 5; top: 34px; left: 44px; right: 44px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.hx-nav__logo img { width: 92px; }
.hx-nav__toggle { display: none; }
.hx-nav__links { display: flex; align-items: center; gap: 36px; }
.hx-nav__links a { color: #fff; text-decoration: none; font-size: 16px; }
.hx-nav__links a:hover { text-decoration: underline; text-underline-offset: 6px; }
.hx-nav__cta a { background: #fff; color: var(--ink); padding: 10px 18px; border-radius: 999px; font-weight: 500; }
.hx-nav__cta a:hover { text-decoration: none; background: var(--card); }

.hx__content { position: absolute; z-index: 4; left: clamp(30px, 5vw, 76px); bottom: clamp(140px, 18vh, 190px); max-width: 640px; color: var(--on-dark-muted); }
.hx__kicker { font-size: 13px; letter-spacing: .18em; text-transform: uppercase; color: var(--steel); margin-bottom: 18px; }
.hx__title { color: #fff; font-size: clamp(42px, 6vw, 88px); font-weight: 400; letter-spacing: -0.035em; line-height: 1.02; }
.hx__title .w { display: inline-block; }
.js .hx__title .w { opacity: 0; transform: translateY(45%); animation: wIn .9s cubic-bezier(.2,.7,.2,1) forwards; animation-delay: calc(var(--i, 0) * 90ms + 150ms); }
@keyframes wIn { to { opacity: 1; transform: none; } }
.hx__accent { color: var(--steel); font-style: italic; font-weight: 300; }
.hx__lead { margin-top: 22px; font-size: clamp(16px, 1.3vw, 19px); font-weight: 300; line-height: 1.6; max-width: 500px; }
.hx__ctas { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }

.hx__timeline { position: absolute; z-index: 4; left: clamp(30px, 5vw, 76px); right: clamp(30px, 5vw, 76px); bottom: 44px; color: rgba(255,255,255,.45); }
.hx__bar { position: relative; height: 12px; margin-bottom: 12px;
  background: repeating-linear-gradient(90deg, rgba(255,255,255,.28) 0 1px, transparent 1px 2.5%) bottom / 100% 6px no-repeat; border-bottom: 1px solid rgba(255,255,255,.28); }
.hx__fill { position: absolute; left: 0; bottom: -1px; height: 2px; width: calc(var(--r) * 100%); background: #fff; }
.hx__timeline ol { display: grid; grid-template-columns: repeat(5, 1fr); font-size: 13px; letter-spacing: .08em; text-transform: uppercase; }
.hx__timeline li { transition: color .3s; }
.hx__timeline li:nth-child(n+2) { text-align: center; }
.hx__timeline li:last-child { text-align: right; }
.hx__timeline li.on { color: #fff; }

.hx__hint { position: absolute; z-index: 4; right: clamp(30px, 5vw, 76px); bottom: 100px; display: flex; align-items: center; gap: 10px; font-size: 13px; color: rgba(255,255,255,.75); transition: opacity .4s; }
.hx__hint .mouse { width: 20px; height: 32px; border: 1.5px solid currentColor; border-radius: 12px; position: relative; }
.hx__hint .mouse::after { content: ""; position: absolute; left: 50%; top: 6px; width: 2px; height: 6px; margin-left: -1px; background: currentColor; border-radius: 2px; animation: wheel 1.6s ease-in-out infinite; }
@keyframes wheel { 0% { transform: translateY(0); opacity: 1; } 70% { transform: translateY(9px); opacity: 0; } 100% { opacity: 0; } }
.hx.is-scrolled .hx__hint { opacity: 0; }

.only-mob, .hx__phase, .hx-nav__meta { display: none; }

/* ===== About + chiffres ===== */
.about { padding: clamp(80px, 11vw, 160px) 0 clamp(80px, 9vw, 150px); }
.about__grid { display: grid; grid-template-columns: 5fr 7fr; gap: 40px 80px; align-items: end; }
.about__title { display: grid; justify-items: start; gap: 10px; }
.about__title h2 { font-size: clamp(34px, 3.6vw, 52px); font-weight: 400; }
.about__text { font-size: clamp(16px, 1.45vw, 21px); font-weight: 300; line-height: 1.6; display: grid; gap: 20px; }
.about__text strong { font-weight: 600; color: var(--ink); }
.about__text h3 { font-size: inherit; font-weight: 600; letter-spacing: 0; line-height: inherit; margin-top: 6px; }
.bullets { display: grid; gap: 4px; padding-left: 26px; list-style: disc; color: var(--ink); }

.stats { margin: clamp(70px, 8vw, 120px) 0 0; display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--ink); }
.stat { padding: 22px 24px 0 0; border-right: 1px solid var(--line); margin-right: 24px; }
.stat:last-child { border-right: 0; margin-right: 0; }
.stat dt { font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.stat dd { margin: 10px 0 0; font-size: clamp(48px, 6vw, 88px); font-weight: 300; letter-spacing: -0.04em; line-height: 1; color: var(--ink); font-variant-numeric: tabular-nums; }
.stat sup { font-size: .45em; vertical-align: top; position: relative; top: .25em; margin-left: 4px; color: var(--muted); }

.marquee { margin-top: clamp(70px, 8vw, 110px); overflow: hidden; }
.marquee__track { display: flex; width: max-content; animation: marquee 45s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__group { display: flex; gap: 32px; padding-right: 32px; }
.marquee__group li { flex: none; height: clamp(280px, 35vw, 500px); }
.marquee__group img { height: 100%; width: auto; object-fit: cover; border-radius: 6px; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ===== Services ===== */
.services { background: var(--paper-2); padding: clamp(80px, 7vw, 110px) 0; }
.svc { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; margin-top: 64px; align-items: start; --dur: 6000ms; }
.svc__stage { position: sticky; top: 30px; aspect-ratio: 610 / 686; border-radius: var(--radius); overflow: hidden; background: var(--ink); }
.svc__slide { position: absolute; inset: 0; margin: 0; clip-path: inset(0 100% 0 0); z-index: 0; }
.svc__slide img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.12); }
.svc__slide.is-prev { clip-path: inset(0); z-index: 1; }
.svc__slide.is-active { clip-path: inset(0); z-index: 2; transition: clip-path 1s cubic-bezier(.7,0,.2,1); }
.svc__slide.is-active img { transform: none; transition: transform 1.6s cubic-bezier(.2,.7,.2,1); }
.svc__stage::after { content: ""; position: absolute; inset: 0; z-index: 3; pointer-events: none; background: linear-gradient(0deg, rgba(16,16,20,.75) 0%, rgba(16,16,20,0) 38%); }
.svc__corners { position: absolute; inset: 18px; z-index: 4; pointer-events: none; --c: rgba(255,255,255,.85);
  background:
    linear-gradient(var(--c), var(--c)) top left / 20px 1.5px, linear-gradient(var(--c), var(--c)) top left / 1.5px 20px,
    linear-gradient(var(--c), var(--c)) top right / 20px 1.5px, linear-gradient(var(--c), var(--c)) top right / 1.5px 20px,
    linear-gradient(var(--c), var(--c)) bottom left / 20px 1.5px, linear-gradient(var(--c), var(--c)) bottom left / 1.5px 20px,
    linear-gradient(var(--c), var(--c)) bottom right / 20px 1.5px, linear-gradient(var(--c), var(--c)) bottom right / 1.5px 20px;
  background-repeat: no-repeat; }
.svc__caption { position: absolute; z-index: 4; left: 34px; right: 34px; bottom: 36px; color: #fff; display: grid; gap: 4px; }
.svc__count { font-size: 13px; letter-spacing: .14em; color: rgba(255,255,255,.75); }
.svc__count b { color: #fff; }
.svc__title { font-size: clamp(30px, 3.2vw, 46px); font-weight: 400; letter-spacing: -0.03em; line-height: 1.05; }
.svc__title.is-changing { animation: titleIn .6s ease; }
@keyframes titleIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.svc__progress { position: absolute; z-index: 4; left: 34px; right: 34px; bottom: 20px; height: 2px; background: rgba(255,255,255,.25); }
.svc__progress span { display: block; height: 100%; width: 0; background: #fff; }
.svc.is-playing .svc__progress span { animation: svcProg var(--dur) linear forwards; }
.svc.is-playing:hover .svc__progress span { animation-play-state: paused; }
@keyframes svcProg { to { width: 100%; } }

.accordion { border-bottom: 1px solid var(--line); }
.acc { border-top: 1px solid var(--line); }
.acc:first-child { border-top: 0; }
.acc h3 { font-size: inherit; }
.acc button {
  all: unset; box-sizing: border-box; cursor: pointer; width: 100%;
  display: flex; align-items: center; gap: 18px;
  padding: 24px 0; font-size: clamp(22px, 2.2vw, 30px); font-weight: 600; color: rgba(16,16,20,.38); letter-spacing: -0.015em;
  transition: color .3s;
}
.acc button:hover, .acc.is-open button { color: var(--ink); }
.acc__t { transition: transform .35s cubic-bezier(.2,.7,.2,1); }
.acc button:hover .acc__t, .acc.is-open .acc__t { transform: translateX(6px); }
.acc__n { font-size: 13px; font-weight: 500; letter-spacing: .1em; color: var(--muted); min-width: 22px; }
.acc button::after {
  content: ""; width: 12px; height: 12px; flex: none; margin: 0 6px 0 auto;
  border-right: 2px solid currentColor; border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translate(-3px, -3px); transition: transform .3s; opacity: .55;
}
.acc.is-open button::after { transform: rotate(-135deg); }
.acc button:focus-visible { outline: 2px solid var(--ink); outline-offset: 4px; }
.acc__panel { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .45s cubic-bezier(.2,.7,.2,1); }
.acc__panel > div { overflow: hidden; padding-left: 46px; }
.acc.is-open .acc__panel { grid-template-rows: 1fr; }
.acc__panel p { font-size: 16px; line-height: 1.7; color: var(--muted); max-width: 560px; }
.acc__img { display: none; }
.acc__tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 20px; }
.acc__tags li { font-size: 13px; font-weight: 500; color: var(--ink); background: #fff; border: 1px solid var(--line); padding: 6px 12px; border-radius: 999px; }
.acc__cta { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 28px; font-size: 15px; font-weight: 600; color: var(--ink); text-decoration: none; border-bottom: 1.5px solid var(--ink); padding-bottom: 2px; }
.acc__cta span { transition: transform .25s; }
.acc__cta:hover span { transform: translateX(4px); }
html:not(.js) .acc__panel { grid-template-rows: 1fr; }

/* ===== Méthode ===== */
.method { background: var(--ink); color: var(--on-dark-muted); padding: clamp(90px, 9vw, 140px) 0; --m: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 56px 56px; }
.steps { position: relative; display: grid; grid-template-columns: repeat(5, 1fr); gap: 32px; margin-top: 80px; }
.steps::before, .steps::after { content: ""; position: absolute; left: 0; right: 0; top: 7px; height: 1px; background: rgba(255,255,255,.18); }
.steps::after { height: 2px; top: 6.5px; background: #fff; transform-origin: left; transform: scaleX(var(--m)); }
.step { position: relative; padding-top: 40px; opacity: .45; transition: opacity .5s; }
.step.on { opacity: 1; }
.step__node { position: absolute; top: 0; left: 0; width: 15px; height: 15px; border-radius: 50%; border: 1.5px solid rgba(255,255,255,.5); background: var(--ink); z-index: 1; transition: background .4s, box-shadow .4s, border-color .4s; }
.step.on .step__node { background: #fff; border-color: #fff; box-shadow: 0 0 0 6px rgba(255,255,255,.12); }
.step__n { display: block; font-size: 13px; letter-spacing: .14em; color: var(--steel); margin-bottom: 12px; }
.step h3 { color: #fff; font-size: 22px; font-weight: 500; margin-bottom: 10px; }
.step p { font-size: 15px; line-height: 1.6; }

/* ===== Réalisations ===== */
.work { padding: clamp(80px, 9vw, 140px) 0 clamp(60px, 6vw, 80px); }
.projects { display: grid; gap: clamp(24px, 8vw, 120px); margin-top: clamp(60px, 8vw, 110px); }
.project {
  display: grid; grid-template-columns: minmax(0, 1.2fr) 1fr; gap: 56px; align-items: center;
  padding: 26px; border-radius: var(--radius); background: var(--card);
  position: sticky; top: 40px; box-shadow: 0 -10px 40px rgba(16,16,20,.06);
}
.project--dark { background: var(--ink); color: var(--on-dark-muted); }
.project--dark h3 { color: #fff; }
.project__media { aspect-ratio: 4 / 3; border-radius: var(--radius); overflow: hidden; }
.project__img { width: 100%; height: 100%; object-fit: cover; }
.project__body { padding: 20px 30px 20px 0; display: flex; flex-direction: column; gap: 20px; }
.project h3 { font-size: clamp(26px, 2.6vw, 38px); font-weight: 400; }
.project p { font-size: 16px; line-height: 1.65; }
.project blockquote { margin: 0; padding-left: 28px; position: relative; font-size: clamp(17px, 1.3vw, 19px); line-height: 1.45; color: var(--ink); }
.project--dark blockquote { color: #fff; }
.project blockquote::before { content: "“"; position: absolute; left: 0; top: -6px; font-size: 34px; font-weight: 800; line-height: 1; font-family: Georgia, serif; }

.spec { display: grid; grid-template-columns: repeat(3, 1fr); margin: 0; border-top: 1px solid rgba(16,16,20,.2); border-bottom: 1px solid rgba(16,16,20,.2); }
.project--dark .spec { border-color: rgba(255,255,255,.18); }
.spec div { padding: 12px 12px 12px 0; }
.spec div + div { padding-left: 14px; border-left: 1px solid rgba(16,16,20,.12); }
.project--dark .spec div + div { border-color: rgba(255,255,255,.12); }
.spec dt { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.project--dark .spec dt { color: var(--steel); }
.spec dd { margin: 2px 0 0; font-size: 16px; font-weight: 600; color: var(--ink); }
.project--dark .spec dd { color: #fff; }

/* Avant / après */
.ba { --pos: 50%; position: relative; aspect-ratio: 4 / 3; border-radius: var(--radius); overflow: hidden; user-select: none; background: #222; }
.ba img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.ba__before { clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.ba__line { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 2px; margin-left: -1px; background: #fff; pointer-events: none; }
.ba__knob { position: absolute; top: 50%; left: 50%; width: 48px; height: 48px; margin: -24px 0 0 -24px; border-radius: 50%; background: #fff; box-shadow: 0 6px 20px rgba(0,0,0,.25); }
.ba__knob::before, .ba__knob::after { content: ""; position: absolute; top: 50%; width: 8px; height: 8px; margin-top: -4px; border-left: 2px solid var(--ink); border-bottom: 2px solid var(--ink); }
.ba__knob::before { left: 13px; transform: rotate(45deg); }
.ba__knob::after { right: 13px; transform: rotate(-135deg); }
.ba__lbl { position: absolute; top: 14px; font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: #fff; background: rgba(16,16,20,.65); backdrop-filter: blur(6px); padding: 5px 10px; border-radius: 999px; pointer-events: none; }
.ba__lbl--b { left: 14px; }
.ba__lbl--a { right: 14px; }
.ba__note { position: absolute; left: 14px; bottom: 12px; font-size: 11px; color: rgba(255,255,255,.85); background: rgba(16,16,20,.5); padding: 3px 8px; border-radius: 4px; pointer-events: none; }
.ba__range { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; -webkit-appearance: none; appearance: none; }
.ba__range:focus-visible + .ba__note, .ba:focus-within .ba__knob { outline: 3px solid var(--steel); outline-offset: 2px; }

/* ===== Contact / wizard ===== */
.contact { padding: clamp(40px, 6vw, 100px) 0 0; }
.contact__inner {
  width: 100%; margin: 0; background-color: var(--ink); color: var(--on-dark-muted);
  border-radius: 28px 28px 0 0;
  padding: clamp(60px, 7vw, 100px) max(var(--gutter), calc((100% - 1280px) / 2));
  background-image:
    linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 56px 56px;
  display: grid; grid-template-columns: 1fr 1.1fr; gap: 40px 90px; align-items: start;
}
.contact__info { display: grid; justify-items: start; gap: 10px; }
.contact h2 { color: #fff; font-size: clamp(36px, 3.8vw, 52px); font-weight: 400; }
.contact__sub { font-size: 19px; font-weight: 300; margin-top: 8px; max-width: 440px; }
.contact__list { width: 100%; margin: 40px 0 0; padding-bottom: 30px; border-bottom: 1px solid rgba(208,209,219,.15); display: grid; gap: 16px; font-size: 18px; }
.contact__list div { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.contact__list dt { color: #fff; font-weight: 600; }
.contact__list dd { margin: 0; font-weight: 300; }
.contact__list a { text-decoration: none; }
.contact__list a:hover { text-decoration: underline; }

.wizard { background: var(--paper-2); color: var(--ink); border-radius: var(--radius); padding: 28px; min-height: 470px; display: flex; flex-direction: column; }
.wizard__head { display: flex; align-items: center; gap: 16px; margin-bottom: 26px; }
.wizard__count { font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); white-space: nowrap; }
.wizard__bar { flex: 1; height: 4px; background: var(--line); border-radius: 4px; overflow: hidden; }
.wizard__bar span { display: block; height: 100%; width: 25%; background: var(--ink); border-radius: 4px; transition: width .4s ease; }
.wz { animation: wzIn .4s ease; }
@keyframes wzIn { from { opacity: 0; transform: translateX(16px); } to { opacity: 1; transform: none; } }
.wz legend { font-size: clamp(22px, 2vw, 28px); font-weight: 500; letter-spacing: -0.02em; margin-bottom: 6px; padding: 0; }
.wz__hint { font-size: 14px; color: var(--muted); margin-bottom: 16px; }
.choices { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 16px 0 6px; }
.choices label { position: relative; cursor: pointer; }
.choices input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.choices span { display: flex; align-items: center; min-height: 52px; padding: 12px 16px; border: 1px solid #dcdce2; border-radius: 8px; background: #fff; font-size: 15px; font-weight: 500; transition: background .2s, color .2s, border-color .2s; }
.choices span::before { content: ""; flex: none; width: 16px; height: 16px; margin-right: 12px; border: 1.5px solid #b9b9c2; border-radius: 4px; transition: inherit; }
.choices--radio span::before { border-radius: 50%; }
.choices input:checked + span { background: var(--ink); color: #fff; border-color: var(--ink); }
.choices input:checked + span::before { background: #fff; border-color: #fff; box-shadow: inset 0 0 0 3px var(--ink); }
.choices input:focus-visible + span { outline: 2px solid var(--ink); outline-offset: 2px; }
.wz__row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.lbl { display: block; font-size: 15px; font-weight: 500; margin: 16px 0 8px; }
.req { color: var(--accent); margin-left: 2px; }
.wizard input[type=text], .wizard input[type=email], .wizard input[type=tel], .wizard select, .wizard textarea {
  width: 100%; font: inherit; font-size: 16px; color: var(--ink);
  background: #fff; border: 1px solid #dcdce2; border-radius: 8px; padding: 13px 14px; transition: border-color .2s;
}
.wizard select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--ink) 50%), linear-gradient(135deg, var(--ink) 50%, transparent 50%); background-position: calc(100% - 20px) 50%, calc(100% - 15px) 50%; background-size: 5px 5px; background-repeat: no-repeat; }
.wizard ::placeholder { color: #a5a5ad; }
.wizard input:focus, .wizard select:focus, .wizard textarea:focus { outline: none; border-color: var(--ink); }
.wizard textarea { resize: vertical; min-height: 110px; }
.wizard [aria-invalid="true"] { border-color: var(--accent) !important; }
.wizard__nav { display: flex; gap: 12px; margin-top: auto; padding-top: 22px; }
.btn-next, .btn-back { border: 0; cursor: pointer; font: inherit; font-size: 16px; font-weight: 500; border-radius: 8px; padding: 15px 22px; transition: background .2s; }
.btn-next { flex: 1; color: #fff; background: var(--ink); }
.btn-next:hover { background: #000; }
.btn-next:disabled { opacity: .6; cursor: progress; }
.btn-back { background: transparent; color: var(--ink); border: 1px solid #dcdce2; }
.btn-back:hover { background: #fff; }
.form__status { font-size: 15px; min-height: 1.4em; margin-top: 12px; }
.form__status.is-ok { color: #157a3c; }
.form__status.is-error { color: #c4122f; }
.hp { position: absolute; left: -9999px; }

/* ===== Footer ===== */
.ft {
  position: relative; overflow: hidden;
  width: 100%; margin: 0;
  padding: 0 max(var(--gutter), calc((100% - 1280px) / 2));
  border-top: 1px solid rgba(255,255,255,.1);
  background-color: var(--ink); color: var(--on-dark-muted);
  border-radius: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 56px 56px;
}
.ft a { text-decoration: none; transition: color .2s; }
.ft a:hover { color: #fff; }
.ft__cta { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px 60px; flex-wrap: wrap; padding: clamp(60px, 7vw, 100px) 0 clamp(50px, 5vw, 70px); border-bottom: 1px solid rgba(255,255,255,.12); }
.ft__kicker { font-size: 13px; letter-spacing: .16em; text-transform: uppercase; color: var(--steel); margin-bottom: 16px; }
.ft__cta h2 { color: #fff; font-size: clamp(42px, 6.2vw, 96px); font-weight: 400; letter-spacing: -0.04em; line-height: 1; }
.ft__cta h2 em { color: var(--steel); font-weight: 300; }
.ft__cta-actions { display: flex; flex-wrap: wrap; gap: 12px; }

.ft__grid { display: grid; grid-template-columns: 1.7fr 1fr 1fr 1.2fr 1.1fr; gap: 40px; padding: clamp(50px, 5vw, 70px) 0 20px; }
.ft__logo img { width: 140px; }
.ft__brand p { margin-top: 20px; font-size: 15px; line-height: 1.65; max-width: 300px; }
.ft__col h3 { color: #fff; font-size: 12px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; margin-bottom: 18px; }
.ft__col ul { display: grid; gap: 10px; }
.ft__col a, .ft__col address { font-size: 16px; }
.ft__col address { font-style: normal; display: grid; gap: 12px; line-height: 1.5; }
.ft__zones { display: flex !important; flex-wrap: wrap; gap: 8px !important; }
.ft__zones li { font-size: 13px; padding: 5px 12px; border: 1px solid rgba(255,255,255,.18); border-radius: 999px; }

.ft__word {
  font-size: clamp(84px, 21.5vw, 300px); font-weight: 600; letter-spacing: -0.05em; line-height: .78;
  text-align: center; margin: clamp(30px, 4vw, 50px) 0 0; user-select: none; white-space: nowrap;
  color: transparent; -webkit-text-stroke: 1px rgba(255,255,255,.16);
  background: linear-gradient(180deg, rgba(255,255,255,.10), rgba(255,255,255,0) 85%); -webkit-background-clip: text; background-clip: text;
}
.js .ft__word.reveal { transform: translateY(40%); opacity: 0; transition: transform 1.4s cubic-bezier(.2,.7,.2,1), opacity 1.4s; }
.js .ft__word.reveal.is-visible { transform: none; opacity: 1; }

.ft__bottom { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 14px 30px; flex-wrap: wrap; padding: 26px 64px 30px 0; border-top: 1px solid rgba(255,255,255,.12); font-size: 14px; }
.ft__legal { display: flex; gap: 22px; }
.ft__top { position: absolute; right: 0; top: 50%; margin-top: -22px; width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; border: 1px solid rgba(255,255,255,.25); color: #fff; transition: background .2s, transform .2s; }
.ft__top:hover { background: #fff; color: var(--ink) !important; transform: translateY(-3px); }

/* ===== Mobile action bar ===== */
.mbar { display: none; }

/* ===== Reveal ===== */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s ease, transform .8s ease; }
.js .reveal.is-visible { opacity: 1; transform: none; }

/* ===== Responsive ===== */
@media (max-width: 1100px) {
  .hx-nav__links { gap: 24px; }
  .project { grid-template-columns: 1fr 1fr; gap: 36px; }
  .project__body { padding: 10px 10px 10px 0; }
  .steps { gap: 20px; }
}

@media (max-width: 900px) {
  /* --- Hero mobile --- */
  .hx { height: 200vh; }
  .hx__frame { inset: 8px; border-radius: 18px; }
  .hx__shade { background:
    linear-gradient(180deg, rgba(16,16,20,.72) 0%, rgba(16,16,20,0) 20%),
    linear-gradient(0deg, rgba(16,16,20,.97) 0%, rgba(16,16,20,.9) 32%, rgba(16,16,20,.4) 60%, rgba(16,16,20,.08) 100%); }
  .hx__blueprint { opacity: calc(.55 - var(--r) * 1.6); }
  .hx.is-scanning .hx__scan { opacity: .5; }
  .hx__blueprint .bp-txt { display: none; }
  .hx__scan span { display: none; }

  .hx-nav { top: 22px; left: 24px; right: 18px; }
  .hx-nav__logo, .hx-nav__toggle { position: relative; z-index: 8; }
  .hx-nav__logo img { width: 62px; }
  .hx-nav__toggle {
    display: inline-flex; align-items: center; gap: 10px; height: 42px; padding: 0 15px 0 17px;
    border-radius: 999px; border: 1px solid rgba(255,255,255,.22);
    background: rgba(16,16,20,.35); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
    color: #fff; font: inherit; font-size: 14px; font-weight: 500; letter-spacing: .02em; cursor: pointer;
    transition: background .3s, border-color .3s;
  }
  .hx-nav__toggle[aria-expanded="true"] { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.3); }
  .hx-nav__toggle-ico { position: relative; width: 18px; height: 10px; }
  .hx-nav__toggle-ico span { position: absolute; left: 0; width: 100%; height: 1.5px; background: currentColor; border-radius: 2px; transition: transform .35s ease, top .35s ease; }
  .hx-nav__toggle-ico span:first-child { top: 0; }
  .hx-nav__toggle-ico span:last-child { top: 8.5px; }
  .hx-nav__toggle[aria-expanded="true"] .hx-nav__toggle-ico span:first-child { top: 4.25px; transform: rotate(45deg); }
  .hx-nav__toggle[aria-expanded="true"] .hx-nav__toggle-ico span:last-child { top: 4.25px; transform: rotate(-45deg); }

  .hx-nav__links {
    position: fixed; inset: 0; z-index: 7; display: flex; flex-direction: column; align-items: stretch; gap: 0;
    padding: 108px 24px 30px; overflow-y: auto; counter-reset: nav;
    background: rgba(16,16,20,.97); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
    opacity: 0; visibility: hidden; transition: opacity .35s ease, visibility .35s;
  }
  .hx-nav__links.is-open { opacity: 1; visibility: visible; }
  .hx-nav__links li { opacity: 0; transform: translateY(18px); transition: opacity .45s ease, transform .55s cubic-bezier(.2,.7,.2,1); }
  .hx-nav__links.is-open li { opacity: 1; transform: none; }
  .hx-nav__links.is-open li:nth-child(2) { transition-delay: .05s; }
  .hx-nav__links.is-open li:nth-child(3) { transition-delay: .1s; }
  .hx-nav__links.is-open li:nth-child(4) { transition-delay: .15s; }
  .hx-nav__links.is-open li:nth-child(5) { transition-delay: .2s; }
  .hx-nav__links.is-open li:nth-child(6) { transition-delay: .25s; }
  .hx-nav__links li:not(.hx-nav__cta):not(.hx-nav__meta) a {
    display: flex; align-items: baseline; gap: 16px; padding: 15px 0;
    font-size: clamp(28px, 8.5vw, 36px); font-weight: 400; letter-spacing: -0.03em; color: #fff;
    border-bottom: 1px solid rgba(255,255,255,.1); counter-increment: nav;
  }
  .hx-nav__links li:not(.hx-nav__cta):not(.hx-nav__meta) a::before { content: counter(nav, decimal-leading-zero); font-size: 12px; letter-spacing: .14em; color: var(--steel); }
  .hx-nav__links a:hover { text-decoration: none; }
  .hx-nav__cta { margin-top: 28px; }
  .hx-nav__cta a { display: block; text-align: center; padding: 17px; font-size: 17px; }
  .hx-nav__meta { display: grid; gap: 8px; margin-top: auto; padding-top: 34px; font-size: 14px; color: var(--on-dark-muted); }
  .hx-nav__meta a { color: #fff; font-size: 17px; }
  html.menu-open { overflow: hidden; }
  html:not(.js) .hx-nav__links { position: static; opacity: 1; visibility: visible; background: none; padding: 12px 0 0; }

  .hx__content { left: 24px; right: 24px; bottom: 100px; }
  .hx__kicker { font-size: 11px; letter-spacing: .16em; margin-bottom: 14px; }
  .hx__title { font-size: clamp(38px, 11.4vw, 54px); }
  .hx__lead { margin-top: 14px; font-size: 16px; max-width: 30ch; }
  .only-desk { display: none; }
  .only-mob { display: inline; }
  .hx__ctas { margin-top: 26px; flex-direction: column; align-items: stretch; gap: 16px; }
  .hx__ctas .btn-pill { justify-content: space-between; padding: 7px 7px 7px 24px; }
  .hx__ctas .btn-ghost { align-self: center; border: 0; padding: 2px 0; border-radius: 0; font-size: 15px; color: rgba(255,255,255,.85); text-decoration: underline; text-underline-offset: 6px; text-decoration-color: rgba(255,255,255,.35); }
  .hx__ctas .btn-ghost:hover { background: none; }

  .hx__timeline { left: 24px; right: 24px; bottom: 32px; }
  .hx__timeline ol { display: none; }
  .hx__phase { display: flex; justify-content: space-between; margin-bottom: 10px; font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: #fff; }
  .hx__phase #hx-day { color: var(--steel); }
  .hx__bar { margin-bottom: 0; }
  .hx__hint { display: none; }

  .about__grid { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr 1fr; }
  .stat { margin-right: 0; padding: 20px 16px 22px 0; border-right: 0; border-bottom: 1px solid var(--line); }
  .stat:nth-child(odd) { border-right: 1px solid var(--line); margin-right: 16px; }

  .svc { grid-template-columns: 1fr; gap: 0; margin-top: 40px; }
  .svc__stage { display: none; }
  .acc button { color: var(--ink); padding: 20px 0; }
  .acc__panel > div { padding-left: 0; }
  .acc__img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 10px; margin-bottom: 16px; }

  .steps { grid-template-columns: 1fr; gap: 36px; margin-top: 56px; padding-left: 36px; }
  .steps::before, .steps::after { left: 7px; right: auto; top: 0; bottom: 0; width: 1px; height: auto; }
  .steps::after { width: 2px; left: 6.5px; transform-origin: top; transform: scaleY(var(--m)); }
  .step { padding-top: 0; }
  .step__node { left: -36px; top: 2px; }

  .project { grid-template-columns: 1fr; gap: 24px; padding: 16px; position: static; box-shadow: none; }
  .project__body { padding: 4px 6px 10px; }

  .contact__inner { grid-template-columns: 1fr; padding: 48px 16px 40px; border-radius: 20px 20px 0 0; }
  .contact__list div { flex-direction: column; gap: 2px; }
  .wizard { padding: 20px 16px; min-height: 0; }
  .choices, .wz__row { grid-template-columns: 1fr; }
  .ft__cta { flex-direction: column; align-items: flex-start; }
  .ft__grid { grid-template-columns: 1fr 1fr; gap: 36px 24px; }
  .ft__brand { grid-column: 1 / -1; }
  .ft__bottom { flex-direction: column; align-items: flex-start; padding-right: 60px; padding-bottom: 30px; }
  .ft__top { top: 26px; margin-top: 0; }

  .mbar { position: fixed; z-index: 50; left: 10px; right: 10px; bottom: 10px; display: grid; grid-template-columns: 1fr 1.3fr; gap: 8px; padding: 8px; background: rgba(16,16,20,.92); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-radius: 14px; box-shadow: 0 10px 30px rgba(0,0,0,.3); transform: translateY(140%); transition: transform .4s ease; }
  .mbar.is-visible { transform: none; }
  .mbar a { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; border-radius: 10px; text-decoration: none; font-weight: 600; font-size: 15px; }
  .mbar__call { color: #fff; border: 1px solid rgba(255,255,255,.25); }
  .mbar__quote { background: #fff; color: var(--ink); }
}

@media (max-width: 900px) and (max-height: 600px) {
  .hx__kicker { display: none; }
  .hx__title { font-size: clamp(34px, 10.4vw, 44px); }
  .hx__content { bottom: 88px; }
  .hx__ctas { margin-top: 20px; gap: 12px; }
  .hx__timeline { bottom: 26px; }
}

@media (max-width: 480px) {
  .marquee__group { gap: 14px; padding-right: 14px; }
  .ft__col a, .ft__col address { font-size: 15px; }
  .spec dd { font-size: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hx { height: auto; }
  .hx__sticky { position: relative; }
  .js .hx__title .w { animation: none; opacity: 1; transform: none; }
  .hx__blueprint { display: none; }
  .marquee__track { animation: none; }
  .marquee { overflow-x: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .acc__panel, .svc__slide, .svc__slide img, .wz { transition: none !important; animation: none; }
}
