/* =====================================================================
   AL Rénov — Antoine Louviot · Artisan rénovation Toulouse
   v2 : typo lourde (Anton + Barlow), héros avant/après, scroll horizontal,
   frise, carrousel d'avis. Design tokens, sections, responsive, motion.
   ===================================================================== */

:root {
  --bg: #0f0e0c;
  --bg-2: #15130f;
  --bg-3: #1c1915;
  --ink: #f2ede4;
  --ink-2: #d5cfc4;
  --muted: #9a938a;
  --line: rgba(242, 237, 228, 0.12);
  --line-strong: rgba(242, 237, 228, 0.24);

  --accent: #d0603a;
  --accent-2: #e8764d;
  --accent-soft: rgba(208, 96, 58, 0.16);
  --accent-ink: #fff4ec;

  --paper: #f1ece3;
  --paper-2: #e7e0d3;
  --paper-3: #fbf9f5;
  --ink-dark: #15130f;
  --ink-dark-2: #3d3833;
  --muted-dark: #6a635a;
  --line-dark: rgba(21, 19, 15, 0.12);

  --font-display: "Anton", "Arial Narrow", Impact, sans-serif;
  --font-body: "Barlow", system-ui, -apple-system, "Segoe UI", sans-serif;

  --nav-h: 80px;
  --gutter: clamp(20px, 5vw, 72px);
  --max: 1360px;
  --radius: 20px;
  --radius-sm: 12px;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: auto; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--font-body); font-size: 1.0625rem; line-height: 1.65;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  overflow-x: clip; text-rendering: optimizeLegibility;
}
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4, p, figure, blockquote, address { margin: 0; }
address { font-style: normal; }
input, textarea, select { font: inherit; color: inherit; }
::selection { background: var(--accent); color: var(--accent-ink); }
:focus-visible { outline: 2px solid var(--accent-2); outline-offset: 3px; border-radius: 4px; }
strong { font-weight: 700; }

.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: fixed; top: 12px; left: 12px; z-index: 10001; padding: 10px 14px; background: var(--accent); color: var(--accent-ink); border-radius: 8px; transform: translateY(-200%); transition: transform 0.2s; }
.skip:focus { transform: none; }

/* grain overlay */
body::after {
  content: ""; position: fixed; inset: 0; z-index: 9990; pointer-events: none; opacity: 0.05; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.container { width: min(100% - 2 * var(--gutter), var(--max)); margin-inline: auto; }

/* ---------- Typography ---------- */
.eyebrow {
  font-size: 0.8rem; font-weight: 700; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--accent-2); margin-bottom: 20px; display: flex; align-items: center; gap: 14px;
}
.light .eyebrow { color: var(--accent); }
.eyebrow::before { content: ""; width: 34px; height: 2px; background: currentColor; }
.section-title {
  font-family: var(--font-display); font-weight: 400; text-transform: uppercase;
  font-size: clamp(2.4rem, 5vw, 4.4rem); line-height: 0.98; letter-spacing: 0.01em;
  max-width: 17ch; text-wrap: balance;
}
.section-title em { font-style: normal; color: var(--accent-2); }
.light .section-title em { color: var(--accent); }
.section-lead { color: var(--muted); max-width: 54ch; margin-top: 22px; font-size: 1.08rem; }
.light .section-lead { color: var(--muted-dark); }
.section-head { margin-bottom: clamp(44px, 6vw, 76px); }
.section-head--row { display: flex; align-items: flex-end; justify-content: space-between; gap: 32px 64px; flex-wrap: wrap; }
.section-head--row .section-lead { margin-top: 0; max-width: 44ch; padding-bottom: 6px; }

section { position: relative; padding: clamp(84px, 11vw, 150px) 0; }
.light { background: var(--paper); color: var(--ink-dark); }

.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.tags li { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; padding: 7px 11px; border-radius: 999px; border: 1px solid var(--line-strong); color: var(--ink); }
.light .tags li { border-color: rgba(21,19,15,0.18); color: var(--ink-dark-2); }

/* ---------- Buttons ---------- */
.btn {
  --btn-bg: transparent; --btn-fg: var(--ink); --btn-bd: var(--line-strong);
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  min-height: 54px; padding: 0 28px; border-radius: 999px;
  background: var(--btn-bg); color: var(--btn-fg); border: 1.5px solid var(--btn-bd);
  font-weight: 800; font-size: 0.82rem; letter-spacing: 0.14em; text-transform: uppercase; white-space: nowrap;
  cursor: pointer; overflow: hidden; isolation: isolate; touch-action: manipulation;
  transition: color 0.35s var(--ease-out), border-color 0.35s, transform 0.35s var(--ease-out), background-color 0.35s;
}
.btn::before { content: ""; position: absolute; inset: -1px; z-index: -1; border-radius: inherit; background: var(--accent-2); transform: translateY(101%); transition: transform 0.5s var(--ease-out); }
.btn:hover::before, .btn:focus-visible::before { transform: translateY(0); }
.btn:hover { color: var(--accent-ink); border-color: transparent; }
.btn svg { transition: transform 0.4s var(--ease-out); flex: none; }
.btn:hover svg { transform: translateX(4px); }
.btn--primary { --btn-bg: var(--accent); --btn-fg: var(--accent-ink); --btn-bd: transparent; }
.btn--ghost { --btn-bg: rgba(255,255,255,0.03); }
.light .btn--ghost { --btn-fg: var(--ink-dark); --btn-bd: rgba(21,19,15,0.3); --btn-bg: transparent; }
.btn--sm { min-height: 46px; padding: 0 20px; font-size: 0.74rem; }
.btn--lg { min-height: 62px; padding: 0 34px; font-size: 0.86rem; }

/* ---------- Loader ---------- */
.loader { position: fixed; inset: 0; z-index: 10000; background: var(--bg); color: var(--accent); display: grid; place-items: center; }
.loader__mark { display: flex; flex-direction: column; align-items: center; gap: 18px; }
.loader__text { font-family: var(--font-display); text-transform: uppercase; font-size: 1.4rem; letter-spacing: 0.08em; color: var(--ink); opacity: 0; animation: fadeIn 0.6s 0.7s var(--ease-out) forwards; }
.loader__stroke { stroke-dasharray: 160; stroke-dashoffset: 160; animation: draw 1s var(--ease-in-out) forwards; }
.loader__stroke--bar { stroke-dasharray: 20; stroke-dashoffset: 20; animation-delay: 0.6s; animation-duration: 0.4s; }
.loader__bar { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: rgba(255,255,255,0.06); }
.loader__bar span { display: block; height: 100%; width: 0; background: var(--accent); animation: bar 1.3s var(--ease-in-out) forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes bar { to { width: 100%; } }
@keyframes fadeIn { to { opacity: 1; } }
.loader.is-done { display: none; }

/* ---------- Nav ---------- */
.nav { position: fixed; top: 0; left: 0; right: 0; z-index: 900; height: var(--nav-h); border-bottom: 1px solid transparent; transition: transform 0.5s var(--ease-out), background-color 0.4s, border-color 0.4s; }
.nav.is-scrolled { background: rgba(15, 14, 12, 0.78); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-color: var(--line); }
.nav.is-hidden { transform: translateY(-100%); }
.nav__inner { width: min(100% - 2 * var(--gutter), var(--max)); margin-inline: auto; height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--ink); }
.brand__mark { color: var(--accent); flex: none; }
.brand__name { font-family: var(--font-display); text-transform: uppercase; font-size: 1.25rem; letter-spacing: 0.06em; line-height: 1; }
.brand--lg .brand__name { display: flex; flex-direction: column; gap: 8px; font-size: 1.7rem; }
.brand--lg small { font-family: var(--font-body); text-transform: none; font-size: 0.82rem; font-weight: 500; color: var(--muted); letter-spacing: 0.04em; }
.nav__links { display: flex; gap: 4px; }
.nav__links a { position: relative; padding: 10px 14px; font-size: 0.78rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-2); transition: color 0.3s; }
.nav__links a::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: 5px; height: 2px; background: var(--accent-2); transform: scaleX(0); transform-origin: right; transition: transform 0.4s var(--ease-out); }
.nav__links a:hover, .nav__links a.is-active { color: var(--ink); }
.nav__links a:hover::after, .nav__links a.is-active::after { transform: scaleX(1); transform-origin: left; }
.nav__actions { display: flex; align-items: center; gap: 10px; }
.nav__phone span { font-weight: 800; letter-spacing: 0.06em; }
.burger { display: none; width: 48px; height: 48px; border-radius: 50%; border: 1.5px solid var(--line-strong); position: relative; }
.burger span { position: absolute; left: 15px; right: 15px; height: 2px; background: var(--ink); transition: transform 0.4s var(--ease-out), top 0.4s var(--ease-out); }
.burger span:first-child { top: 18px; } .burger span:last-child { top: 27px; }
.burger[aria-expanded="true"] span:first-child { top: 23px; transform: rotate(45deg); }
.burger[aria-expanded="true"] span:last-child { top: 23px; transform: rotate(-45deg); }

/* ---------- Mobile menu ---------- */
.menu { position: fixed; inset: 0; z-index: 890; background: var(--bg-2); color: var(--ink); clip-path: circle(0 at calc(100% - 44px) 40px); transition: clip-path 0.7s var(--ease-in-out); visibility: hidden; }
.menu.is-open { clip-path: circle(160% at calc(100% - 44px) 40px); visibility: visible; }
.menu__inner { height: 100%; padding: calc(var(--nav-h) + 24px) var(--gutter) 40px; display: flex; flex-direction: column; justify-content: space-between; overflow: auto; }
.menu__links { display: flex; flex-direction: column; gap: 4px; }
.menu__links a { font-family: var(--font-display); text-transform: uppercase; font-size: clamp(2.2rem, 10vw, 3.4rem); letter-spacing: 0.02em; line-height: 1.1; display: flex; align-items: baseline; gap: 16px; padding: 8px 0; border-bottom: 1px solid var(--line); opacity: 0; transform: translateY(20px); transition: opacity 0.5s var(--ease-out), transform 0.5s var(--ease-out); }
.menu__links a span { font-family: var(--font-body); font-size: 0.8rem; font-weight: 700; color: var(--accent-2); letter-spacing: 0.1em; }
.menu.is-open .menu__links a { opacity: 1; transform: none; }
.menu.is-open .menu__links a:nth-child(1) { transition-delay: 0.25s; } .menu.is-open .menu__links a:nth-child(2) { transition-delay: 0.3s; }
.menu.is-open .menu__links a:nth-child(3) { transition-delay: 0.35s; } .menu.is-open .menu__links a:nth-child(4) { transition-delay: 0.4s; }
.menu.is-open .menu__links a:nth-child(5) { transition-delay: 0.45s; }
.menu__foot { display: flex; flex-direction: column; gap: 14px; padding-top: 32px; }
.menu__foot .btn { align-self: flex-start; }
.menu__line { color: var(--ink-2); font-size: 1rem; font-weight: 500; }

/* =====================================================================
   HERO
   ===================================================================== */
.hero { padding: calc(var(--nav-h) + clamp(40px, 6vw, 80px)) 0 0; min-height: 100svh; display: flex; flex-direction: column; justify-content: space-between; overflow: hidden; isolation: isolate; }
.hero__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -3; filter: saturate(0.7); }
.hero__veil { position: absolute; inset: 0; z-index: -2; background: linear-gradient(90deg, rgba(15,14,12,0.96) 0%, rgba(15,14,12,0.9) 45%, rgba(15,14,12,0.78) 100%), linear-gradient(180deg, rgba(15,14,12,0.6) 0%, rgba(15,14,12,0.2) 40%, var(--bg) 100%); }
.hero__plan { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none; }
.hero__plan .plan__ink { color: rgba(242,237,228,0.16); }
.hero__plan .plan__accent { color: rgba(232,118,77,0.55); }
.hero__inner { display: grid; grid-template-columns: minmax(0, 1.18fr) minmax(0, 0.82fr); align-items: center; gap: clamp(28px, 5vw, 72px); }
.hero__title { display: flex; flex-direction: column; gap: 24px; }
.hero__kicker { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; font-family: var(--font-body); font-size: 0.8rem; font-weight: 700; letter-spacing: 0.22em; text-transform: uppercase; color: var(--accent-2); }
.hero__kicker::before { content: ""; width: 34px; height: 2px; background: currentColor; }
.hero__display { display: block; font-family: var(--font-display); text-transform: uppercase; font-size: clamp(3rem, 5.7vw, 5.6rem); line-height: 0.96; letter-spacing: 0.01em; }
.hero__display .line { display: block; overflow: hidden; padding-bottom: 0.06em; margin-bottom: -0.06em; }
.hero__display .line__in { display: block; }
.hero__display em { font-style: normal; color: var(--accent-2); }
.hero__lead { margin-top: 30px; max-width: 52ch; color: var(--ink-2); font-size: 1.12rem; line-height: 1.7; }
.hero__lead strong { color: var(--ink); }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.hero__trust { display: flex; align-items: center; gap: 12px; margin-top: 26px; color: var(--muted); font-size: 0.95rem; }
.hero__trust strong { color: var(--ink); }
.hero__trust-dots { display: inline-flex; gap: 4px; }
.hero__trust-dots i { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.hero__trust-dots i:nth-child(2) { opacity: 0.7; } .hero__trust-dots i:nth-child(3) { opacity: 0.4; }

.hero__visual { position: relative; perspective: 1400px; }
.hero__visual .ba { transform: rotateY(-7deg) rotateX(3deg); transform-origin: left center; transition: transform 1.2s var(--ease-out); }
.hero__visual:hover .ba { transform: rotateY(-3deg) rotateX(1deg); }
.hero__pill { position: absolute; left: 24px; bottom: -22px; display: inline-flex; align-items: center; gap: 10px; padding: 12px 18px; border-radius: 999px; background: rgba(15,14,12,0.85); border: 1px solid var(--line-strong); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); font-size: 0.74rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink); white-space: nowrap; }
.hero__pill i { width: 8px; height: 8px; border-radius: 50%; background: var(--accent-2); box-shadow: 0 0 0 4px var(--accent-soft); animation: blink 2s infinite; }
@keyframes blink { 50% { opacity: 0.35; } }

.hero__stats { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); margin-top: clamp(56px, 8vw, 96px); padding: 0; }
.stat { display: flex; flex-direction: column; gap: 8px; padding: 30px 28px 34px 0; border-right: 1px solid var(--line); margin-right: 28px; }
.stat:last-child { border-right: 0; margin-right: 0; }
.stat__num { font-family: var(--font-display); font-size: clamp(2.6rem, 4.6vw, 4.2rem); line-height: 1; letter-spacing: 0.01em; font-variant-numeric: tabular-nums; }
.stat__num small { font-size: 0.5em; color: var(--accent-2); margin-left: 2px; vertical-align: top; position: relative; top: 0.12em; }
.stat__label { color: var(--muted); font-size: 0.95rem; font-weight: 500; max-width: 22ch; }

/* ---------- Before / after ---------- */
.ba__frame { position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 3; background: var(--bg-3); isolation: isolate; user-select: none; -webkit-user-select: none; box-shadow: 0 40px 80px -30px rgba(0,0,0,0.8), 0 0 0 1px var(--line); }
.ba__frame img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ba__before { position: absolute; inset: 0; clip-path: inset(0 50% 0 0); will-change: clip-path; }
.ba__before img { filter: grayscale(0.85) sepia(0.4) brightness(0.55) contrast(0.92) saturate(0.7); }
.ba__grime { position: absolute; inset: 0; opacity: 0.55; mix-blend-mode: multiply;
  background: radial-gradient(40% 30% at 20% 20%, rgba(60,40,20,0.5), transparent 70%), radial-gradient(50% 40% at 80% 70%, rgba(40,30,20,0.6), transparent 70%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.55' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.6'/%3E%3C/svg%3E"); }
.ba__handle { position: absolute; top: 0; bottom: 0; left: 50%; width: 2px; background: rgba(255,255,255,0.9); transform: translateX(-50%); pointer-events: none; box-shadow: 0 0 20px rgba(0,0,0,0.4); }
.ba__knob { position: absolute; top: 50%; left: 50%; width: 56px; height: 56px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); display: grid; place-items: center; transform: translate(-50%, -50%); box-shadow: 0 10px 30px rgba(0,0,0,0.45); }
.ba__range { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; -webkit-appearance: none; appearance: none; touch-action: pan-y; z-index: 2; }
.ba__range::-webkit-slider-thumb { -webkit-appearance: none; width: 80px; height: 100%; }
.ba__range::-moz-range-thumb { width: 80px; height: 100%; border: 0; }
.ba__label { position: absolute; top: 16px; padding: 8px 12px; border-radius: 999px; font-size: 0.7rem; font-weight: 800; letter-spacing: 0.16em; text-transform: uppercase; background: rgba(15,14,12,0.65); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); color: var(--ink); pointer-events: none; }
.ba__label--before { left: 16px; } .ba__label--after { right: 16px; background: var(--accent); color: var(--accent-ink); }

/* =====================================================================
   INTRO
   ===================================================================== */
.intro { padding-top: clamp(70px, 9vw, 120px); }
.intro__grid { display: grid; grid-template-columns: minmax(0, 0.28fr) minmax(0, 0.72fr); gap: 32px; align-items: start; }
.intro__statement { font-family: var(--font-body); font-weight: 600; font-size: clamp(1.45rem, 2.7vw, 2.2rem); line-height: 1.35; letter-spacing: -0.01em; max-width: 34ch; text-wrap: pretty; }
.intro__statement .w { display: inline-block; opacity: 0.16; }

/* =====================================================================
   SERVICES — cards with visuals
   ===================================================================== */
.grid-services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.job { position: relative; display: flex; flex-direction: column; border-radius: var(--radius); overflow: hidden; background: var(--paper-3); border: 1px solid var(--line-dark); transition: transform 0.5s var(--ease-out), box-shadow 0.5s var(--ease-out); }
.job:hover { transform: translateY(-6px); box-shadow: 0 30px 60px -30px rgba(21, 19, 15, 0.4); }
.job__media { position: relative; aspect-ratio: 3 / 2; overflow: hidden; background: var(--paper-2); }
.job__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--ease-out); }
.job:hover .job__media img { transform: scale(1.05); }
.job__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(15,14,12,0) 55%, rgba(15,14,12,0.35) 100%); pointer-events: none; }
.job__num { position: absolute; top: 14px; left: 14px; z-index: 1; font-family: var(--font-display); font-size: 1rem; letter-spacing: 0.06em; color: var(--ink); background: rgba(15,14,12,0.75); padding: 6px 10px; border-radius: 8px; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.job__body { display: flex; flex-direction: column; gap: 12px; padding: 24px 26px 28px; flex: 1; }
.job h3 { font-family: var(--font-display); text-transform: uppercase; font-weight: 400; font-size: 1.45rem; line-height: 1.05; letter-spacing: 0.02em; }
.job p { color: var(--muted-dark); font-size: 0.98rem; flex: 1; }
.job--feature { grid-column: span 2; flex-direction: row; }
.job--feature .job__media { flex: 0 0 56%; aspect-ratio: auto; min-height: 340px; }
.job--feature .job__body { justify-content: flex-end; padding: 30px 32px; }
.job--feature h3 { font-size: 2rem; }

/* =====================================================================
   WORKS — horizontal scroll
   ===================================================================== */
.works { padding: 0; background: var(--bg); }
.works__pin { min-height: 100svh; display: flex; flex-direction: column; justify-content: center; padding: clamp(84px, 10vw, 120px) 0 clamp(48px, 6vw, 80px); overflow: hidden; }
.works__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; flex-wrap: wrap; margin-bottom: clamp(32px, 4vw, 56px); }
.works__meta { display: flex; align-items: center; gap: 18px; padding-bottom: 8px; }
.works__count { font-family: var(--font-display); font-size: 1.4rem; letter-spacing: 0.06em; color: var(--muted); }
.works__count b { font-weight: 400; color: var(--ink); }
.works__progress { width: 180px; height: 2px; background: var(--line); overflow: hidden; border-radius: 2px; }
.works__progress span { display: block; height: 100%; width: 100%; background: var(--accent); transform: scaleX(0); transform-origin: left; }
.works__hint { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }
.works__track { display: flex; gap: 22px; padding-left: max(var(--gutter), calc((100vw - var(--max)) / 2)); padding-right: var(--gutter); will-change: transform; width: max-content; }
.work { position: relative; flex: 0 0 auto; width: min(62vw, 780px); aspect-ratio: 16 / 10; border-radius: var(--radius); overflow: hidden; background: var(--bg-3); isolation: isolate; }
.work img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease-out); }
.work:hover img { transform: scale(1.04); }
.work__body { position: absolute; left: 0; right: 0; bottom: 0; padding: clamp(20px, 3vw, 36px); background: linear-gradient(180deg, transparent, rgba(15,14,12,0.9) 65%); display: grid; gap: 10px; }
.work__index { font-family: var(--font-display); font-size: 1rem; letter-spacing: 0.1em; color: var(--accent-2); }
.work h3 { font-family: var(--font-display); text-transform: uppercase; font-weight: 400; font-size: clamp(1.4rem, 2.4vw, 2.2rem); line-height: 1; letter-spacing: 0.02em; max-width: 22ch; }
.work p { color: var(--ink-2); max-width: 56ch; font-size: 0.97rem; }
.work--cta { width: min(40vw, 420px); display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 18px; padding: 36px; background: var(--accent); color: var(--accent-ink); font-family: var(--font-display); text-transform: uppercase; font-size: 1.8rem; line-height: 1.05; letter-spacing: 0.02em; transition: background-color 0.4s; }
.work--cta:hover { background: var(--accent-2); }
.work__arrow { font-size: 2.6rem; margin-top: auto; transition: transform 0.4s var(--ease-out); }
.work--cta:hover .work__arrow { transform: translateX(10px); }

/* =====================================================================
   PROCESS — frise horizontale
   ===================================================================== */
.frise { --p: 0; position: relative; padding-top: 34px; }
.frise__bar { position: absolute; left: 0; right: 0; top: 34px; height: 3px; background: rgba(21,19,15,0.14); border-radius: 3px; overflow: hidden; }
.frise__fill { position: absolute; inset: 0; background: var(--accent); transform: scaleX(var(--p)); transform-origin: left; }
.frise__steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(20px, 3vw, 44px); }
.frise__step { position: relative; padding-top: 34px; }
.frise__dot { position: absolute; top: -8px; left: 0; width: 18px; height: 18px; border-radius: 50%; background: var(--paper); border: 3px solid rgba(21,19,15,0.25); transform: translateY(-50%); transition: background-color 0.4s, border-color 0.4s, box-shadow 0.4s, transform 0.4s var(--ease-out); }
.frise__step.is-active .frise__dot { background: var(--accent); border-color: var(--accent); box-shadow: 0 0 0 8px rgba(208,96,58,0.16); transform: translateY(-50%) scale(1.15); }
.frise__num { display: block; font-family: var(--font-display); font-size: 2.6rem; line-height: 1; letter-spacing: 0.02em; color: rgba(21,19,15,0.18); transition: color 0.4s; margin-bottom: 14px; }
.frise__step.is-active .frise__num { color: var(--accent); }
.frise__step h3 { font-family: var(--font-display); text-transform: uppercase; font-weight: 400; font-size: 1.45rem; line-height: 1.05; letter-spacing: 0.02em; margin-bottom: 12px; }
.frise__step p { color: var(--muted-dark); font-size: 0.98rem; }

/* =====================================================================
   REVIEWS — carousel
   ===================================================================== */
.reviews { background: var(--bg-2); }
.reviews__nav { display: flex; align-items: center; gap: 12px; padding-bottom: 8px; }
.reviews__btn { width: 54px; height: 54px; border-radius: 50%; border: 1.5px solid var(--line-strong); display: grid; place-items: center; color: var(--ink); transition: background-color 0.3s, border-color 0.3s, color 0.3s, transform 0.3s var(--ease-out); }
.reviews__btn:hover { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.reviews__btn:active { transform: scale(0.94); }
.reviews__btn[disabled] { opacity: 0.35; pointer-events: none; }
.reviews__count { font-family: var(--font-display); font-size: 1.3rem; letter-spacing: 0.06em; color: var(--muted); padding: 0 8px; }
.reviews__count b { font-weight: 400; color: var(--ink); }
.reviews__viewport { overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; scrollbar-width: none; -ms-overflow-style: none; -webkit-overflow-scrolling: touch; margin: 0 calc(-1 * var(--gutter)); padding: 0 var(--gutter); }
.reviews__viewport::-webkit-scrollbar { display: none; }
.reviews__track { display: flex; gap: 18px; }
.review { flex: 0 0 min(100%, 640px); scroll-snap-align: start; display: flex; flex-direction: column; gap: 22px; padding: clamp(26px, 3vw, 40px); border-radius: var(--radius); border: 1px solid var(--line); background: linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0.01)); min-height: 300px; }
.review blockquote { font-size: clamp(1.1rem, 1.6vw, 1.35rem); line-height: 1.55; font-weight: 500; color: var(--ink); flex: 1; }
.review--placeholder blockquote { color: var(--muted); font-style: italic; }
.review__stars { display: flex; gap: 4px; }
.review__stars i { width: 18px; height: 18px; background: var(--accent-2); clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%); }
.review__author { display: flex; align-items: center; gap: 14px; color: var(--muted); font-size: 0.92rem; }
.review__author strong { color: var(--ink); font-weight: 700; }
.review__avatar { width: 48px; height: 48px; border-radius: 50%; background: var(--accent-soft); color: var(--accent-2); display: grid; place-items: center; font-weight: 800; font-size: 0.85rem; letter-spacing: 0.05em; flex: none; }

/* =====================================================================
   PROMISE
   ===================================================================== */
.promise__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.promise__item { padding: 28px; border: 1px solid var(--line); border-radius: var(--radius); display: flex; flex-direction: column; gap: 14px; background: linear-gradient(180deg, rgba(255,255,255,0.025), transparent); transition: border-color 0.4s, transform 0.5s var(--ease-out); }
.promise__item:hover { border-color: var(--line-strong); transform: translateY(-4px); }
.promise__item .icon { width: 40px; height: 40px; color: var(--accent-2); }
.promise__item h3 { font-family: var(--font-display); text-transform: uppercase; font-weight: 400; font-size: 1.4rem; line-height: 1.05; letter-spacing: 0.02em; }
.promise__item p { color: var(--muted); font-size: 0.95rem; }
.draw-icon path, .draw-icon rect, .draw-icon circle { stroke-dasharray: 1; stroke-dashoffset: 1; }

/* =====================================================================
   ZONE — radar
   ===================================================================== */
.zone { background: var(--bg); overflow: hidden; padding-top: clamp(32px, 4vw, 56px); }
.zone__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 96px); align-items: center; }
.zone__list { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 30px; }
.zone__list li { font-size: 0.78rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; padding: 9px 13px; border-radius: 999px; border: 1px solid var(--line); color: var(--ink-2); }
.zone__list li:first-child { background: var(--accent); border-color: transparent; color: var(--accent-ink); }
.radar { position: relative; color: var(--ink); }
.radar__svg { width: 100%; height: auto; }
.radar__sweep { opacity: 0.9; }
.radar__pulse { fill: none; stroke: var(--accent); stroke-width: 1.5; transform-origin: 0 0; animation: pulse 3s ease-out infinite; }
.radar__pulse--2 { animation-delay: 1.5s; }
@keyframes pulse { 0% { transform: scale(0.6); opacity: 0.9; } 100% { transform: scale(5); opacity: 0; } }
.radar .dot { transform-box: fill-box; transform-origin: center; }
.radar .dot circle { fill: var(--ink); }
.radar .dot text { fill: var(--ink-2); }

/* =====================================================================
   FAQ
   ===================================================================== */
.faq__grid { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.faq .section-head { margin-bottom: 0; position: sticky; top: calc(var(--nav-h) + 24px); }
.faq__item { border-top: 1px solid var(--line-dark); }
.faq__item:last-child { border-bottom: 1px solid var(--line-dark); }
.faq__item summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 22px 0; font-weight: 700; font-size: 1.15rem; line-height: 1.3; }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__plus { position: relative; flex: none; width: 36px; height: 36px; border-radius: 50%; border: 1.5px solid rgba(21,19,15,0.25); transition: background-color 0.3s, border-color 0.3s, transform 0.4s var(--ease-out); }
.faq__plus::before, .faq__plus::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 2px; background: currentColor; transform: translate(-50%, -50%); }
.faq__plus::after { transform: translate(-50%, -50%) rotate(90deg); }
.faq__item[open] .faq__plus { background: var(--accent); border-color: var(--accent); color: #fff; transform: rotate(45deg); }
.faq__body { padding: 0 0 24px; color: var(--muted-dark); max-width: 60ch; animation: fadeUp 0.45s var(--ease-out); }
@keyframes fadeUp { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* =====================================================================
   CONTACT
   ===================================================================== */
.contact { background: var(--bg-2); }
.contact__grid { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(40px, 7vw, 110px); align-items: start; }
.contact__list { display: grid; grid-template-columns: 1fr 1fr; gap: 26px 24px; margin-top: 36px; padding-top: 30px; border-top: 1px solid var(--line); }
.contact__list li { display: grid; gap: 8px; min-width: 0; }
.contact__list a, .contact__list address { overflow-wrap: anywhere; }
.contact__k { font-size: 0.72rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.contact__list a { font-size: 1.15rem; font-weight: 700; position: relative; justify-self: start; }
.contact__list a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px; background: var(--accent-2); transform: scaleX(0); transform-origin: right; transition: transform 0.4s var(--ease-out); }
.contact__list a:hover::after { transform: scaleX(1); transform-origin: left; }
.form { display: grid; gap: 18px; padding: clamp(22px, 3vw, 40px); border-radius: var(--radius); border: 1px solid var(--line); background: linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0.01)); }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: grid; gap: 8px; }
.field label { font-size: 0.78rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-2); }
.field label span { color: var(--accent-2); }
.field input, .field textarea, .field select { width: 100%; min-height: 54px; padding: 14px 16px; border-radius: 12px; background: rgba(255,255,255,0.04); border: 1px solid var(--line); color: var(--ink); transition: border-color 0.3s, background-color 0.3s, box-shadow 0.3s; }
.field textarea { resize: vertical; min-height: 140px; }
.field input::placeholder, .field textarea::placeholder { color: rgba(154,147,138,0.7); }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--accent-2); box-shadow: 0 0 0 4px var(--accent-soft); background: rgba(255,255,255,0.06); }
.field.is-invalid input, .field.is-invalid textarea { border-color: #e3684d; }
.field__error { font-size: 0.85rem; font-weight: 500; color: #f08a70; }
.field__error:empty { display: none; }
.select { position: relative; }
.select select { appearance: none; -webkit-appearance: none; padding-right: 44px; cursor: pointer; }
.select::after { content: ""; position: absolute; right: 18px; top: 50%; width: 8px; height: 8px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: translateY(-70%) rotate(45deg); pointer-events: none; }
.select option { color: #111; }
.field--check { grid-template-columns: auto 1fr; align-items: start; gap: 12px; }
.field--check input { width: 20px; height: 20px; min-height: 0; padding: 0; margin-top: 3px; accent-color: var(--accent); }
.field--check label { font-weight: 500; font-size: 0.88rem; letter-spacing: 0; text-transform: none; color: var(--muted); }
.field--check label a { color: var(--ink-2); text-decoration: underline; text-underline-offset: 3px; }
.field--check .field__error { grid-column: 1 / -1; }
.form__submit { justify-self: start; }
.form__status { font-size: 0.95rem; font-weight: 500; color: var(--ink-2); }
.form__status:empty { display: none; }
.form.is-sent .form__submit { pointer-events: none; opacity: 0.5; }

/* =====================================================================
   FOOTER
   ===================================================================== */
.footer { position: relative; padding: clamp(60px, 8vw, 100px) 0 0; border-top: 1px solid var(--line); overflow: hidden; background: var(--bg); }
.footer__top { display: flex; justify-content: space-between; align-items: flex-start; gap: 32px; flex-wrap: wrap; }
.footer__nav { display: flex; flex-wrap: wrap; gap: 6px 24px; font-size: 0.78rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-2); }
.footer__nav a:hover { color: var(--ink); }
.footer__bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 48px; padding: 24px 0 150px; border-top: 1px solid var(--line); font-size: 0.85rem; color: var(--muted); }
.footer__bottom a { color: var(--ink-2); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--line-strong); }
.footer__bottom a:hover { color: var(--ink); }
.footer__big { position: absolute; left: 50%; bottom: -0.2em; transform: translateX(-50%); pointer-events: none; font-family: var(--font-display); font-size: clamp(10rem, 34vw, 32rem); line-height: 1; letter-spacing: 0.02em; color: transparent; -webkit-text-stroke: 1px rgba(242,237,228,0.1); white-space: nowrap; }

/* =====================================================================
   REVEAL STATES (only when JS runs)
   ===================================================================== */
.js [data-reveal], .js [data-reveal-stagger] > * { opacity: 0; transform: translateY(28px); }
.js [data-line] { opacity: 0; }
.js .hero__plan .draw { stroke-dasharray: 1; stroke-dashoffset: 1; }

/* =====================================================================
   RESPONSIVE
   ===================================================================== */
@media (max-width: 1180px) {
  .nav__phone span { display: none; }
  .nav__phone { width: 46px; padding: 0; justify-content: center; }
}
@media (max-width: 1024px) {
  .hero__inner { grid-template-columns: 1fr; gap: 44px; }
  .hero__visual { max-width: 640px; }
  .hero__visual .ba { transform: none; }
  .hero__display { font-size: clamp(3rem, 10vw, 5.8rem); }
  .hero__stats { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(2) { border-right: 0; }
  .intro__grid { grid-template-columns: 1fr; gap: 8px; }
  .grid-services { grid-template-columns: repeat(2, 1fr); }
  .job--feature { flex-direction: column; }
  .job--feature .job__media { flex: none; aspect-ratio: 16 / 9; min-height: 0; }
  .promise__grid { grid-template-columns: repeat(2, 1fr); }
  .zone__grid, .faq__grid, .contact__grid { grid-template-columns: 1fr; }
  .faq .section-head { position: static; margin-bottom: 8px; }
  .radar { max-width: 560px; margin: 0 auto; }
  .frise__steps { grid-template-columns: repeat(2, 1fr); row-gap: 40px; }
}
@media (max-width: 900px) {
  .nav__links { display: none; }
  .burger { display: block; }
  .nav__phone { display: none; }
  /* Works: native horizontal scroll instead of pinned scrub */
  .works__pin { min-height: 0; padding: clamp(72px, 10vw, 100px) 0; }
  .works__track { overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-left: var(--gutter); scrollbar-width: none; -webkit-overflow-scrolling: touch; width: auto; padding-left: var(--gutter); }
  .works__track::-webkit-scrollbar { display: none; }
  .work { scroll-snap-align: start; width: min(82vw, 560px); aspect-ratio: 4 / 5; }
  .work--cta { width: min(70vw, 360px); }
  .works__hint { display: none; }
  /* Frise: vertical on small screens */
  .frise { padding-top: 0; padding-left: 40px; }
  .frise__bar { left: 8px; right: auto; top: 0; bottom: 0; width: 3px; height: auto; }
  .frise__fill { transform: scaleY(var(--p)); transform-origin: top; }
  .frise__steps { grid-template-columns: 1fr; gap: 40px; }
  .frise__step { padding-top: 0; }
  .frise__dot { top: 6px; left: -40px; transform: none; }
  .frise__step.is-active .frise__dot { transform: scale(1.15); }
}
@media (max-width: 640px) {
  :root { --nav-h: 68px; --radius: 16px; }
  body { font-size: 1rem; }
  .btn { min-height: 52px; padding: 0 22px; }
  .btn--sm { min-height: 44px; padding: 0 16px; }
  .btn--lg { min-height: 56px; padding: 0 26px; font-size: 0.8rem; }
  .hero { padding-top: calc(var(--nav-h) + 28px); }
  .hero__inner { gap: 36px; }
  .hero__title { gap: 18px; }
  .hero__kicker { font-size: 0.72rem; letter-spacing: 0.18em; }
  .hero__kicker-sep { display: none; }
  .hero__kicker-place { display: block; width: 100%; }
  .hero__display { font-size: clamp(2.8rem, 14vw, 4.2rem); }
  .hero__lead { margin-top: 20px; font-size: 1.02rem; }
  .hero__cta { margin-top: 24px; }
  .hero__cta .btn { flex: 1 1 100%; }
  .hero__trust { font-size: 0.88rem; flex-wrap: wrap; }
  .hero__pill { left: 12px; bottom: -18px; font-size: 0.66rem; padding: 10px 14px; }
  .hero__stats { margin-top: 56px; }
  .stat { padding: 22px 16px 24px 0; margin-right: 16px; }
  .stat__label { font-size: 0.85rem; }
  .intro__statement { font-size: clamp(1.3rem, 6vw, 1.7rem); }
  .grid-services { grid-template-columns: 1fr; }
  .job--feature { grid-column: span 1; }
  .job--feature h3 { font-size: 1.7rem; }
  .job__body { padding: 20px 20px 24px; }
  .works__meta { width: 100%; }
  .works__progress { flex: 1; width: auto; }
  .work p { display: none; }
  .review { flex-basis: 88%; min-height: 0; }
  .reviews__nav { width: 100%; justify-content: flex-start; }
  .promise__grid { grid-template-columns: 1fr; }
  .contact__list { gap: 22px 16px; }
  .contact__list a { font-size: 1rem; }
  .form__row { grid-template-columns: 1fr; }
  .form__submit { justify-self: stretch; }
  .footer__bottom { padding-bottom: 110px; }
  .radar .dot text { font-size: 15px; }
  .radar__ringlabels text { font-size: 14px; }
  .radar__home text { font-size: 17px; }
}
/* Mobile: hero centred, swipe hint on the projects rail */
.works__stage { position: relative; }
.works__swipe { display: none; }
@media (max-width: 900px) {
  .hero__copy { text-align: center; }
  .hero__kicker { justify-content: center; }
  .hero__kicker::before { display: none; }
  .hero__lead { margin-left: auto; margin-right: auto; }
  .hero__cta, .hero__trust { justify-content: center; }
  .hero__visual { margin: 0 auto; }
  .hero__pill { left: 50%; transform: translateX(-50%); }
  .hero__stats { text-align: center; }
  .stat { align-items: center; margin-right: 0; padding-left: 12px; padding-right: 12px; }
  .stat__label { max-width: none; }

  .works__swipe {
    display: flex; align-items: center; justify-content: center; gap: 12px; margin-top: 22px; height: 16px;
    font-size: 0.62rem; font-weight: 700; letter-spacing: 0.22em; text-transform: uppercase; color: var(--muted);
    transition: opacity 0.6s var(--ease-out);
  }
  .works__swipe.is-hidden { opacity: 0; }
  .works__swipe-rail { position: relative; width: 56px; height: 1px; background: var(--line-strong); overflow: visible; }
  .works__swipe-rail i { position: absolute; top: 50%; left: 0; width: 6px; height: 6px; margin-top: -3px; border-radius: 50%; background: var(--accent-2); animation: swipeDot 1.8s var(--ease-in-out) infinite; }
  @keyframes swipeDot { 0%, 100% { transform: translateX(0); } 50% { transform: translateX(50px); } }
  /* lighter compositing on touch screens */
  body::after { display: none; }
  .hero__bg { filter: none; }
  .nav.is-scrolled { backdrop-filter: none; -webkit-backdrop-filter: none; background: rgba(15, 14, 12, 0.94); }
}
/* Hero centred on every stacked layout (also covers tablets in portrait) */
@media (max-width: 1024px) {
  .hero__copy, .hero__title, .hero__kicker, .hero__display, .hero__lead { text-align: center; }
  .hero__kicker { justify-content: center; }
  .hero__kicker::before { display: none; }
  .hero__lead { margin-left: auto; margin-right: auto; }
  .hero__cta, .hero__trust { justify-content: center; }
  .hero__stats { text-align: center; }
  .stat { align-items: center; margin-right: 0; padding-left: 12px; padding-right: 12px; }
  .stat__label { max-width: none; margin-inline: auto; }
}
@media (max-width: 380px) {
  .hero__display { font-size: 2.6rem; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
  .js [data-reveal], .js [data-reveal-stagger] > *, .js [data-line] { opacity: 1; transform: none; }
  .js .hero__plan .draw { stroke-dashoffset: 0; }
  .intro__statement .w { opacity: 1; }
  .draw-icon path, .draw-icon rect, .draw-icon circle { stroke-dashoffset: 0; }
  .hero__visual .ba { transform: none; }
  .works__progress span { transform: scaleX(1); }
  .frise { --p: 1; }
}
