/* ============================================================
   C2PI – LOCKEO · Design System
   Light-industrial "clean room" palette · one cold accent
   All CSS vars in HSL (no hsl() wrapper)
   ============================================================ */

:root {
  --background: 0 0% 96%;
  --foreground: 220 9% 12%;
  --card: 0 0% 100%;
  --card-foreground: 220 9% 12%;
  --primary: 220 9% 12%;
  --primary-foreground: 0 0% 98%;
  --secondary: 220 6% 90%;
  --muted: 220 6% 88%;
  --muted-foreground: 220 5% 42%;
  --accent: 200 95% 45%;
  --accent-foreground: 0 0% 100%;
  --steel: 215 12% 65%;
  --border: 220 6% 82%;
  --ring: 200 95% 45%;
  --grid-line: 220 8% 86%;

  --font-display: "Space Grotesk", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;

  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --maxw: 1440px;
  --gutter: clamp(20px, 5vw, 80px);
}

.dark {
  --background: 220 12% 8%;
  --foreground: 0 0% 95%;
  --card: 220 11% 11%;
  --card-foreground: 0 0% 95%;
  --primary: 0 0% 96%;
  --primary-foreground: 220 12% 8%;
  --secondary: 220 9% 16%;
  --muted: 220 9% 15%;
  --muted-foreground: 220 6% 58%;
  --accent: 200 95% 50%;
  --accent-foreground: 220 12% 8%;
  --steel: 215 10% 50%;
  --border: 220 9% 20%;
  --ring: 200 95% 50%;
  --grid-line: 220 9% 16%;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: hidden; }

body {
  font-family: var(--font-body);
  background: hsl(var(--background));
  color: hsl(var(--foreground));
  overflow-x: hidden;
  transition: background-color 0.6s var(--ease-out-expo), color 0.6s var(--ease-out-expo);
  cursor: none;
}

@media (max-width: 900px) { body { cursor: auto; } }

::selection { background: hsl(var(--accent) / 0.25); }

a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: none; cursor: none; }
img { display: block; max-width: 100%; }

/* ---------- utilities ---------- */
.wrap { max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); width: 100%; }

.mono-label {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: hsl(var(--muted-foreground));
  font-weight: 500;
}

.mono {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.5px;
}

.blueprint-grid {
  background-image:
    linear-gradient(hsl(var(--grid-line)) 1px, transparent 1px),
    linear-gradient(90deg, hsl(var(--grid-line)) 1px, transparent 1px);
  background-size: 40px 40px;
}

.steel-edge {
  border: 1px solid hsl(var(--border));
  box-shadow:
    inset 0 1px 0 hsl(0 0% 100% / 0.6),
    inset 0 0 0 1px hsl(var(--steel) / 0.06);
  background: hsl(var(--card));
}
.dark .steel-edge {
  box-shadow:
    inset 0 1px 0 hsl(0 0% 100% / 0.06),
    inset 0 0 0 1px hsl(var(--steel) / 0.12);
}

.accent-text { color: hsl(var(--accent)); }
.accent-i { font-style: italic; color: hsl(var(--accent)); }

/* ---------- scroll progress ---------- */
#progress {
  position: fixed; top: 0; left: 0; height: 2px; width: 0%;
  background: hsl(var(--accent)); z-index: 9999;
  box-shadow: 0 0 12px hsl(var(--accent) / 0.6);
}

/* ---------- custom cursor ---------- */
#cursor-dot, #cursor-ring {
  position: fixed; top: 0; left: 0; pointer-events: none; z-index: 9998;
  border-radius: 50%; transform: translate(-50%, -50%);
  mix-blend-mode: difference;
}
#cursor-dot { width: 6px; height: 6px; background: #fff; }
#cursor-ring {
  width: 36px; height: 36px; border: 1px solid #fff;
  transition: width 0.25s var(--ease-out-expo), height 0.25s var(--ease-out-expo), opacity 0.25s;
  display: grid; place-items: center;
}
#cursor-ring .clabel {
  font-family: var(--font-mono); font-size: 8px; letter-spacing: 1px;
  color: #fff; opacity: 0; text-transform: uppercase; white-space: nowrap;
}
body.cursor-hover #cursor-ring { width: 64px; height: 64px; }
body.cursor-hover #cursor-ring .clabel { opacity: 1; }
@media (max-width: 900px), (pointer: coarse) { #cursor-dot, #cursor-ring { display: none; } }

/* ============================================================
   NAVBAR
   ============================================================ */
#nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  display: flex; align-items: center; justify-content: space-between;
  padding: 22px var(--gutter);
  transition: padding 0.4s var(--ease-out-expo), background-color 0.4s, backdrop-filter 0.4s, border-color 0.4s;
  border-bottom: 1px solid transparent;
}
#nav.scrolled {
  padding: 14px var(--gutter);
  background: hsl(var(--background) / 0.7);
  backdrop-filter: blur(14px) saturate(1.2);
  border-bottom: 1px solid hsl(var(--border));
}
.brand { display: flex; align-items: baseline; gap: 10px; }
.brand .word { font-family: var(--font-display); font-weight: 700; font-size: 1.35rem; letter-spacing: -0.02em; }
.brand .tag {
  font-family: var(--font-mono); font-size: 0.6rem; letter-spacing: 2px;
  color: hsl(var(--muted-foreground)); border: 1px solid hsl(var(--border));
  padding: 2px 5px; border-radius: 3px;
}
.nav-links { display: flex; gap: 30px; }
.nav-links a { position: relative; padding: 4px 0; }
.nav-links a span { font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 2px; text-transform: uppercase; }
.nav-links a::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 1px; width: 0;
  background: hsl(var(--foreground)); transition: width 0.4s var(--ease-out-expo);
}
.nav-links a:hover::after { width: 100%; }
.nav-right { display: flex; align-items: center; gap: 16px; }

.theme-toggle {
  width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center;
  border: 1px solid hsl(var(--border)); transition: border-color 0.3s, transform 0.3s;
}
.theme-toggle:hover { transform: rotate(20deg); border-color: hsl(var(--foreground)); }
.theme-toggle svg { width: 16px; height: 16px; }
.theme-toggle .sun { display: none; }
.dark .theme-toggle .sun { display: block; }
.dark .theme-toggle .moon { display: none; }

.pill {
  font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 2px; text-transform: uppercase;
  background: hsl(var(--foreground)); color: hsl(var(--background));
  padding: 11px 22px; border-radius: 100px; font-weight: 500;
  transition: background-color 0.35s, color 0.35s, transform 0.35s;
}
.pill:hover { background: hsl(var(--accent)); color: hsl(var(--accent-foreground)); }

.menu-btn { display: none; }
@media (max-width: 1080px) {
  .nav-links { display: none; }
  .menu-btn { display: grid; place-items: center; width: 38px; height: 38px; border: 1px solid hsl(var(--border)); border-radius: 8px; }
}
@media (max-width: 560px) { .pill { display: none; } }

/* ============================================================
   HERO
   ============================================================ */
#hero {
  position: relative; min-height: 100vh; display: flex; align-items: flex-end;
  padding-bottom: clamp(40px, 8vh, 90px); overflow: hidden;
}
#hero .blueprint-grid {
  position: absolute; inset: 0; opacity: 0.5;
  -webkit-mask-image: radial-gradient(ellipse 90% 80% at 70% 40%, #000 30%, transparent 78%);
          mask-image: radial-gradient(ellipse 90% 80% at 70% 40%, #000 30%, transparent 78%);
}
.hero-svg-wrap {
  position: absolute; top: 50%; right: clamp(-80px, -2vw, 0px); transform: translateY(-50%);
  width: min(58vw, 760px); aspect-ratio: 1; pointer-events: none; opacity: 0.92;
}
.hero-svg-wrap svg { width: 100%; height: 100%; overflow: visible; }
.hero-svg-wrap .profile-stroke {
  fill: none; stroke: hsl(var(--foreground)); stroke-width: 1.4;
  stroke-linejoin: round; stroke-linecap: round;
}
.hero-svg-wrap .profile-accent { stroke: hsl(var(--accent)); stroke-width: 1.6; }
.hero-svg-wrap .dim { stroke: hsl(var(--muted-foreground)); stroke-width: 0.6; }
.hero-svg-wrap .dim-text { font-family: var(--font-mono); font-size: 11px; fill: hsl(var(--muted-foreground)); }
.hero-svg-wrap .hatch { stroke: hsl(var(--steel)); stroke-width: 0.5; opacity: 0.5; }

.hero-content { position: relative; z-index: 2; max-width: 980px; }
.hero-eyebrow { margin-bottom: clamp(24px, 5vh, 44px); }
.hero-h1 {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(3.4rem, 11vw, 10rem); line-height: 0.92; letter-spacing: -0.04em;
}
.hero-h1 .line { display: block; overflow: hidden; }
.hero-h1 .word-door {
  display: inline-block; position: relative; color: hsl(var(--accent));
}
.hero-sub {
  margin-top: 30px; max-width: 34rem; font-size: clamp(1rem, 1.3vw, 1.18rem);
  line-height: 1.65; color: hsl(var(--muted-foreground));
}
.hero-cta { display: flex; gap: 16px; margin-top: 40px; flex-wrap: wrap; }
.btn {
  display: inline-flex; align-items: center; gap: 12px; padding: 16px 30px;
  font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 2px; text-transform: uppercase;
  border-radius: 100px; transition: all 0.4s var(--ease-out-expo); font-weight: 500;
  white-space: nowrap;
}
.btn-solid { background: hsl(var(--foreground)); color: hsl(var(--background)); }
.btn-solid:hover { background: hsl(var(--accent)); color: hsl(var(--accent-foreground)); transform: translateY(-2px); }
.btn-ghost { border: 1px solid hsl(var(--border)); color: hsl(var(--foreground)); }
.btn-ghost:hover { border-color: hsl(var(--foreground)); background: hsl(var(--foreground)); color: hsl(var(--background)); }
.btn .arr { transition: transform 0.4s var(--ease-out-expo); }
.btn:hover .arr { transform: translateX(5px); }

.hero-readout {
  position: absolute; left: var(--gutter); bottom: clamp(40px, 8vh, 90px); z-index: 2;
  display: none;
}
@media (min-width: 1080px) { .hero-readout { display: block; } }
.hero-readout .line2 {
  font-family: var(--font-mono); font-size: 0.68rem; color: hsl(var(--muted-foreground));
  letter-spacing: 1px; line-height: 1.8;
}
.hero-readout .blink { color: hsl(var(--accent)); }

.scroll-ind {
  position: absolute; bottom: clamp(40px, 8vh, 90px); left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 10px; z-index: 2;
}
.scroll-ind .txt { font-family: var(--font-mono); font-size: 0.6rem; letter-spacing: 3px; color: hsl(var(--muted-foreground)); }
.scroll-ind .track { width: 1px; height: 56px; background: hsl(var(--border)); position: relative; overflow: hidden; }
.scroll-ind .track::after {
  content: ""; position: absolute; top: 0; left: 0; width: 100%; height: 40%;
  background: hsl(var(--accent)); animation: scrolldrop 2s var(--ease-out-expo) infinite;
}
@keyframes scrolldrop { 0% { transform: translateY(-100%); } 60%,100% { transform: translateY(250%); } }

/* ============================================================
   SECTION SHELL
   ============================================================ */
section { position: relative; }
.section-pad { padding-block: clamp(90px, 14vh, 180px); }
.sec-head { display: flex; flex-direction: column; gap: 22px; margin-bottom: clamp(50px, 8vh, 90px); }
.sec-title {
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(2.2rem, 5.5vw, 4.6rem); line-height: 1.02; letter-spacing: -0.03em; max-width: 18ch;
}
.reveal-line { overflow: hidden; display: block; }

/* ============================================================
   MANIFESTO
   ============================================================ */
#manifesto { background: hsl(var(--card)); }
.manifesto-inner { min-height: 100vh; display: flex; align-items: center; }
.manifesto-text {
  font-family: var(--font-display); font-weight: 500;
  font-size: clamp(1.8rem, 4.2vw, 3.6rem); line-height: 1.28; letter-spacing: -0.02em; max-width: 22ch;
}
.manifesto-text .w { transition: opacity 0.2s linear; }
.manifesto-text .key { font-style: italic; color: hsl(var(--accent)); }

/* ============================================================
   SAVOIR-FAIRE (process panels)
   ============================================================ */
.process-track { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: hsl(var(--border)); border: 1px solid hsl(var(--border)); }
.process-panel {
  background: hsl(var(--card)); padding: clamp(28px, 3vw, 48px); min-height: 460px;
  display: flex; flex-direction: column; justify-content: space-between; position: relative; overflow: hidden;
}
.process-panel::before {
  content: ""; position: absolute; inset: 0; background: hsl(var(--accent)); z-index: 0;
  transform: translateX(-101%); transition: transform 0.6s var(--ease-out-expo);
}
.process-panel:hover::before { transform: translateX(0); }
.process-panel > * { position: relative; z-index: 1; transition: color 0.5s var(--ease-out-expo); }
.process-panel:hover, .process-panel:hover .pp-desc, .process-panel:hover .pp-num { color: hsl(var(--accent-foreground)); }
.process-panel:hover .pp-icon line, .process-panel:hover .pp-icon circle, .process-panel:hover .pp-icon path, .process-panel:hover .pp-icon rect { stroke: hsl(var(--accent-foreground)); }
.pp-num { font-family: var(--font-mono); font-size: 0.75rem; letter-spacing: 3px; color: hsl(var(--muted-foreground)); }
.pp-icon { width: 72px; height: 72px; }
.pp-icon line, .pp-icon circle, .pp-icon path, .pp-icon rect { stroke: hsl(var(--foreground)); stroke-width: 1.2; fill: none; transition: stroke 0.5s; }
.pp-body h3 { font-family: var(--font-display); font-weight: 600; font-size: clamp(1.5rem, 2.4vw, 2.1rem); letter-spacing: -0.02em; margin-bottom: 14px; }
.pp-desc { color: hsl(var(--muted-foreground)); line-height: 1.6; max-width: 30ch; font-size: 0.95rem; }
@media (max-width: 860px) { .process-track { grid-template-columns: 1fr; } .process-panel { min-height: 320px; } }

/* ============================================================
   PRODUITS
   ============================================================ */
.filter-row { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 40px; }
.filter-chip {
  font-family: var(--font-mono); font-size: 0.66rem; letter-spacing: 2px; text-transform: uppercase;
  padding: 9px 16px; border: 1px solid hsl(var(--border)); border-radius: 100px;
  color: hsl(var(--muted-foreground)); transition: all 0.3s var(--ease-out-expo);
  white-space: nowrap;
}
.filter-chip:hover { border-color: hsl(var(--foreground)); color: hsl(var(--foreground)); }
.filter-chip.active { background: hsl(var(--foreground)); color: hsl(var(--background)); border-color: hsl(var(--foreground)); }

.product-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 16px; grid-auto-flow: dense; }
.product-tile {
  position: relative; min-height: 320px; overflow: hidden; display: flex; flex-direction: column;
  justify-content: flex-end; padding: 28px; border-radius: 2px;
}
.product-tile.span-7 { grid-column: span 7; }
.product-tile.span-5 { grid-column: span 5; }
.product-tile.span-6 { grid-column: span 6; }
.product-tile.tall { min-height: 420px; }
.tile-ph { position: absolute; inset: 0; z-index: 0; }
.tile-render {
  position: absolute; inset: 0; z-index: 1;
  clip-path: inset(0 100% 0 0);
  transition: clip-path 0.7s var(--ease-out-expo);
}
.product-tile:hover .tile-render { clip-path: inset(0 0 0 0); }
.tile-overlay { position: absolute; inset: 0; z-index: 2; background: linear-gradient(to top, hsl(var(--foreground) / 0.78), hsl(var(--foreground) / 0.05) 60%, transparent); }
.tile-content { position: relative; z-index: 3; color: #fff; }
.tile-cat { font-family: var(--font-mono); font-size: 0.62rem; letter-spacing: 2px; text-transform: uppercase; opacity: 0.7; }
.tile-content h3 { font-family: var(--font-display); font-weight: 600; font-size: clamp(1.4rem, 2vw, 1.9rem); letter-spacing: -0.02em; margin-top: 8px; }
.tile-spec {
  margin-top: 16px; display: flex; flex-direction: column; gap: 5px;
  max-height: 0; opacity: 0; overflow: hidden; transition: max-height 0.6s var(--ease-out-expo), opacity 0.4s, margin-top 0.4s;
}
.product-tile:hover .tile-spec { max-height: 140px; opacity: 1; }
.tile-spec .row { display: flex; gap: 10px; font-family: var(--font-mono); font-size: 0.66rem; letter-spacing: 0.5px; }
.tile-spec .row .k { color: hsl(var(--accent)); width: 78px; flex-shrink: 0; text-transform: uppercase; }
.tile-spec .row .v { opacity: 0.85; }
@media (max-width: 860px) {
  .product-grid { grid-template-columns: 1fr; }
  .product-tile, .product-tile.span-5, .product-tile.span-6, .product-tile.span-7 { grid-column: 1 / -1; min-height: 300px; }
}

/* ============================================================
   SECTEURS (split doors)
   ============================================================ */
#secteurs { padding: 0; overflow: hidden; }
.split { display: grid; grid-template-columns: 1fr 1fr; min-height: 90vh; position: relative; overflow: hidden; }
.split-panel { position: relative; overflow: hidden; display: flex; align-items: center; padding: clamp(40px, 6vw, 100px); }
.split-panel .sp-bg { position: absolute; inset: 0; z-index: 0; }
.split-panel .sp-inner { position: relative; z-index: 2; max-width: 26rem; }
.split-left { background: hsl(var(--card)); }
.split-right { background: hsl(var(--secondary)); }
.split-left { transform: translateX(0); }
.sp-inner h3 { font-family: var(--font-display); font-weight: 600; font-size: clamp(1.9rem, 3.2vw, 3rem); letter-spacing: -0.03em; margin: 18px 0 18px; }
.sp-inner p { color: hsl(var(--muted-foreground)); line-height: 1.65; }
.sp-inner .sp-link { display: inline-flex; align-items: center; gap: 10px; margin-top: 26px; font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 2px; text-transform: uppercase; white-space: nowrap; }
.sp-inner .sp-link .arr { transition: transform 0.4s var(--ease-out-expo); }
.sp-inner .sp-link:hover .arr { transform: translateX(5px); }
.seam { position: absolute; top: 0; bottom: 0; left: 50%; width: 2px; transform: translateX(-50%); background: hsl(var(--accent)); box-shadow: 0 0 24px hsl(var(--accent) / 0.7); z-index: 3; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } .seam { display: none; } }

/* ============================================================
   PRESTATIONS (accordion)
   ============================================================ */
.accordion { border-top: 1px solid hsl(var(--border)); }
.acc-item { border-bottom: 1px solid hsl(var(--border)); }
.acc-head { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: clamp(24px, 3.5vh, 40px) 0; text-align: left; transition: padding-left 0.4s var(--ease-out-expo); }
.acc-item:hover .acc-head { padding-left: 18px; }
.acc-head .left { display: flex; align-items: baseline; gap: 24px; }
.acc-head .anum { font-family: var(--font-mono); font-size: 0.72rem; color: hsl(var(--muted-foreground)); letter-spacing: 2px; }
.acc-head h3 { font-family: var(--font-display); font-weight: 500; font-size: clamp(1.4rem, 3vw, 2.4rem); letter-spacing: -0.02em; transition: color 0.3s; }
.acc-item:hover h3, .acc-item.open h3 { color: hsl(var(--accent)); }
.acc-plus { position: relative; width: 22px; height: 22px; flex-shrink: 0; }
.acc-plus::before, .acc-plus::after { content: ""; position: absolute; background: hsl(var(--foreground)); transition: transform 0.4s var(--ease-out-expo); }
.acc-plus::before { top: 50%; left: 0; width: 100%; height: 1.5px; transform: translateY(-50%); }
.acc-plus::after { left: 50%; top: 0; width: 1.5px; height: 100%; transform: translateX(-50%); }
.acc-item.open .acc-plus::after { transform: translateX(-50%) scaleY(0); }
.acc-body { height: 0; overflow: hidden; }
.acc-body-inner { padding: 0 0 clamp(24px, 3.5vh, 40px) 64px; max-width: 60ch; color: hsl(var(--muted-foreground)); line-height: 1.7; }
@media (max-width: 600px) { .acc-body-inner { padding-left: 0; } .acc-head .left { gap: 14px; } }

/* ============================================================
   RÉALISATIONS (horizontal gallery)
   ============================================================ */
#gallery { overflow: hidden; }
.gallery-viewport { height: 100vh; display: flex; align-items: center; }
.gallery-track { display: flex; gap: 40px; padding-inline: var(--gutter); will-change: transform; }
.gframe { flex: 0 0 auto; width: clamp(300px, 42vw, 560px); }
.gframe .gimg { position: relative; aspect-ratio: 4/3; overflow: hidden; border-radius: 2px; }
.gframe .gimg .par { position: absolute; inset: -12% 0; z-index: 0; will-change: transform; }
.gframe .gcap { display: flex; justify-content: space-between; margin-top: 16px; font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 1px; color: hsl(var(--muted-foreground)); }
.gframe .gcap .gt { color: hsl(var(--foreground)); }
@media (max-width: 860px) {
  .gallery-viewport { height: auto; display: block; }
  .gallery-track { flex-direction: column; transform: none !important; }
  .gframe { width: 100%; }
}

/* ============================================================
   STATS
   ============================================================ */
#stats { background: hsl(var(--foreground)); color: hsl(var(--background)); }
#stats .blueprint-grid { position: absolute; inset: 0; opacity: 0.12; }
.dark #stats { background: hsl(var(--card)); color: hsl(var(--foreground)); }
.stats-grid { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; }
.stat { padding: clamp(30px, 5vh, 60px) 20px; text-align: center; }
.stat .num { font-family: var(--font-display); font-weight: 600; font-size: clamp(3rem, 7vw, 6rem); letter-spacing: -0.04em; line-height: 1; }
.stat .num .suf { color: hsl(var(--accent)); }
.stat .lbl { font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 2px; text-transform: uppercase; opacity: 0.6; margin-top: 16px; }
@media (max-width: 760px) { .stats-grid { grid-template-columns: 1fr; gap: 1px; } .stat { padding-block: 40px; } }

/* ============================================================
   CONTACT
   ============================================================ */
.contact-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(40px, 6vw, 100px); }
.contact-left h2 { font-family: var(--font-display); font-weight: 600; font-size: clamp(2rem, 4.5vw, 3.6rem); letter-spacing: -0.03em; line-height: 1.02; margin-bottom: 40px; }
.form-field { position: relative; margin-bottom: 34px; }
.form-field input, .form-field select, .form-field textarea {
  width: 100%; background: transparent; border: none; border-bottom: 1px solid hsl(var(--border));
  padding: 12px 0 10px; font-family: var(--font-body); font-size: 1rem; color: hsl(var(--foreground));
  outline: none; border-radius: 0;
}
.form-field textarea { resize: vertical; min-height: 80px; }
.form-field label {
  position: absolute; left: 0; top: 12px; font-family: var(--font-mono); font-size: 0.72rem;
  letter-spacing: 1px; text-transform: uppercase; color: hsl(var(--muted-foreground));
  pointer-events: none; transition: all 0.35s var(--ease-out-expo);
}
.form-field input:focus + label, .form-field input.filled + label,
.form-field textarea:focus + label, .form-field textarea.filled + label,
.form-field select:focus + label, .form-field select.filled + label {
  top: -12px; font-size: 0.6rem; color: hsl(var(--accent));
}
.form-field .underline { position: absolute; left: 0; bottom: 0; height: 1.5px; width: 0; background: hsl(var(--accent)); transition: width 0.4s var(--ease-out-expo); }
.form-field input:focus ~ .underline, .form-field textarea:focus ~ .underline, .form-field select:focus ~ .underline { width: 100%; }
.form-field select { cursor: none; appearance: none; }
.contact-info { display: flex; flex-direction: column; gap: 30px; }
.info-block .info-line { font-family: var(--font-mono); font-size: 0.82rem; line-height: 2; letter-spacing: 0.5px; }
.info-block .info-line .accent-text { font-weight: 500; }
.map-ph { aspect-ratio: 16/10; border-radius: 2px; overflow: hidden; position: relative; }
.social-row { display: flex; gap: 12px; }
.social-btn { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; transition: transform 0.3s, border-color 0.3s; }
.social-btn:hover { transform: translateY(-3px); border-color: hsl(var(--accent)); }
.social-btn svg { width: 18px; height: 18px; fill: hsl(var(--foreground)); }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }

/* ============================================================
   FOOTER
   ============================================================ */
#footer { padding-top: clamp(60px, 10vh, 120px); padding-bottom: 40px; border-top: 1px solid hsl(var(--border)); overflow: hidden; }
.footer-word {
  font-family: var(--font-display); font-weight: 700; letter-spacing: -0.04em; line-height: 0.8;
  font-size: clamp(4rem, 21vw, 19rem); text-align: center;
  -webkit-text-stroke: 1.5px hsl(var(--foreground)); color: transparent;
  background: linear-gradient(hsl(var(--foreground)), hsl(var(--foreground))) no-repeat;
  background-size: 0% 100%; -webkit-background-clip: text; background-clip: text;
  transition: background-size 1.4s var(--ease-out-expo);
}
.footer-word.filled { background-size: 100% 100%; }
.footer-meta { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 20px; margin-top: 50px; padding-top: 30px; border-top: 1px solid hsl(var(--border)); }
.footer-meta .col { display: flex; gap: 24px; flex-wrap: wrap; }
.footer-meta a, .footer-meta span { font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 1px; color: hsl(var(--muted-foreground)); }
.footer-meta a { transition: color 0.3s; }
.footer-meta a:hover { color: hsl(var(--accent)); }
.footer-tag { text-align: center; margin-top: 30px; font-family: var(--font-mono); font-size: 0.66rem; letter-spacing: 3px; color: hsl(var(--muted-foreground)); }

/* ---------- placeholder texture ---------- */
.ph-stripe {
  width: 100%; height: 100%;
  background-color: hsl(var(--muted));
  background-image: repeating-linear-gradient(45deg, hsl(var(--steel) / 0.18) 0, hsl(var(--steel) / 0.18) 1px, transparent 1px, transparent 11px);
  display: grid; place-items: center;
}
.ph-stripe .ph-tag { font-family: var(--font-mono); font-size: 0.66rem; letter-spacing: 2px; text-transform: uppercase; color: hsl(var(--muted-foreground)); background: hsl(var(--background) / 0.7); padding: 5px 10px; border-radius: 3px; }
.ph-dark { background-color: hsl(220 12% 16%); }
.ph-dark .ph-tag { color: hsl(220 6% 70%); background: hsl(0 0% 0% / 0.4); }

/* ---------- reveal defaults (JS-gated) ---------- */
[data-reveal] .reveal-inner { display: inline-block; }

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; }
}

/* ============================================================
   MOBILE MENU OVERLAY  — full screen, above everything
   ============================================================ */
#mobile-menu {
  position: fixed; inset: 0; z-index: 1002; pointer-events: none; isolation: isolate;
}
#mobile-menu[aria-hidden="false"] { pointer-events: all; }

/* no separate backdrop — the panel IS the full screen */
.mm-backdrop { display: none; }

.mm-panel {
  position: absolute; inset: 0;
  background: hsl(var(--background));
  display: flex; flex-direction: column;
  padding: 28px clamp(20px, 6vw, 40px);
  transform: translateY(-100%);
  transition: transform 0.7s var(--ease-out-expo);
  overflow: hidden;
}
#mobile-menu[aria-hidden="false"] .mm-panel { transform: translateY(0); }

/* vertical accent seam — mirrors the secteurs design */
.mm-seam {
  position: absolute; top: 0; left: 0; bottom: 0; width: 2px;
  background: linear-gradient(to bottom, transparent, hsl(var(--accent)), transparent);
  box-shadow: 0 0 18px hsl(var(--accent) / 0.55);
  transform: scaleY(0); transform-origin: 50% 50%;
  transition: transform 0.9s var(--ease-out-expo) 0.25s;
}
#mobile-menu[aria-hidden="false"] .mm-seam { transform: scaleY(1); }

.mm-top {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 40px; flex-shrink: 0;
  padding-top: 6px;
}
.mm-brand { pointer-events: none; }

.mm-close {
  width: 40px; height: 40px; border-radius: 50%; flex-shrink: 0;
  border: 1px solid hsl(var(--border)); display: grid; place-items: center;
  cursor: pointer; transition: transform 0.4s var(--ease-out-expo), border-color 0.3s;
}
.mm-close:hover { transform: rotate(90deg); border-color: hsl(var(--foreground)); }

/* links */
.mm-nav { flex: 1; display: flex; flex-direction: column; border-top: 1px solid hsl(var(--border)); overflow: hidden; }

.mm-link {
  display: flex; align-items: center; gap: 16px;
  padding: 0 4px; border-bottom: 1px solid hsl(var(--border));
  flex: 1;
  text-decoration: none; color: hsl(var(--foreground));
  opacity: 0; transform: translateX(28px);
  transition: color 0.25s, opacity 0s linear, transform 0s linear;
  position: relative; overflow: hidden;
}
/* hover ink sweep */
.mm-link::before {
  content: ""; position: absolute; inset: 0;
  background: hsl(var(--accent) / 0.07);
  transform: translateX(-101%); transition: transform 0.4s var(--ease-out-expo);
}
.mm-link:hover::before { transform: translateX(0); }
.mm-link:hover { color: hsl(var(--accent)); }
.mm-link:hover .mm-arr { opacity: 1; transform: translateX(0); }

#mobile-menu[aria-hidden="false"] .mm-link {
  opacity: 1; transform: translateX(0);
  transition: color 0.25s,
              opacity  0.55s var(--ease-out-expo),
              transform 0.55s var(--ease-out-expo);
}
#mobile-menu[aria-hidden="false"] .mm-link:nth-child(1) { transition-delay: 0s,    0.18s, 0.18s; }
#mobile-menu[aria-hidden="false"] .mm-link:nth-child(2) { transition-delay: 0s,    0.24s, 0.24s; }
#mobile-menu[aria-hidden="false"] .mm-link:nth-child(3) { transition-delay: 0s,    0.30s, 0.30s; }
#mobile-menu[aria-hidden="false"] .mm-link:nth-child(4) { transition-delay: 0s,    0.36s, 0.36s; }
#mobile-menu[aria-hidden="false"] .mm-link:nth-child(5) { transition-delay: 0s,    0.42s, 0.42s; }

.mm-num  { font-family: var(--font-mono); font-size: 0.58rem; letter-spacing: 2px; color: hsl(var(--muted-foreground)); flex-shrink: 0; margin-top: 3px; }
.mm-name { font-family: var(--font-display); font-size: clamp(2rem, 9vw, 3rem); font-weight: 600; letter-spacing: -0.03em; flex: 1; }
.mm-arr  { font-family: var(--font-mono); font-size: 0.8rem; color: hsl(var(--accent)); opacity: 0; transform: translateX(-8px); transition: opacity 0.3s, transform 0.3s var(--ease-out-expo); }

/* footer */
.mm-footer {
  margin-top: 28px; flex-shrink: 0;
  display: flex; flex-direction: column; gap: 18px;
  opacity: 0; transform: translateY(14px);
  transition: opacity 0.5s var(--ease-out-expo) 0.5s, transform 0.5s var(--ease-out-expo) 0.5s;
}
#mobile-menu[aria-hidden="false"] .mm-footer { opacity: 1; transform: translateY(0); }
.mm-cta { width: 100%; justify-content: center; border-radius: 6px; }
.mm-meta { display: flex; justify-content: space-between; align-items: center; }
.mm-status { font-family: var(--font-mono); font-size: 0.6rem; letter-spacing: 2px; color: hsl(var(--accent)); display: flex; gap: 5px; align-items: center; }
.mm-status .blink { animation: pulse-dot 2s ease-in-out infinite; }
@keyframes pulse-dot { 0%,100% { opacity: 1; } 50% { opacity: 0.2; } }

/* menu-btn cursor fix on mobile */
@media (max-width: 900px) {
  button { cursor: pointer; }
  .form-field select { cursor: pointer; }
}

/* ============================================================
   HERO · MOBILE FIXES
   ============================================================ */
@media (max-width: 860px) {
  /* SVG behind content — fade out on mobile so text is always legible */
  .hero-svg-wrap {
    width: min(80vw, 340px);
    right: -15%;
    top: 10%;
    transform: none;
    opacity: 0.15;
    pointer-events: none;
  }
  /* use dvh so the hero fits between address bar and content */
  #hero { min-height: 100svh; padding-bottom: clamp(80px, 18vw, 130px); }
  .hero-h1 { font-size: clamp(3rem, 14vw, 5.5rem); }
  .scroll-ind { display: none; }
}

@media (max-width: 480px) {
  .hero-svg-wrap { opacity: 0.08; }
  .hero-cta { flex-direction: column; align-items: flex-start; }
  .hero-cta .btn { width: 100%; justify-content: center; }
  /* manifesto text smaller on small screens */
  .manifesto-text { font-size: clamp(1.5rem, 6.5vw, 2.2rem); }
  /* process panels */
  .process-panel { min-height: 260px; }
  /* stat numbers */
  .stat .num { font-size: clamp(2.4rem, 13vw, 4rem); }
  /* contact */
  .contact-left h2 { font-size: clamp(1.8rem, 8vw, 2.6rem); }
  /* footer word */
  .footer-word { -webkit-text-stroke-width: 1px; }
}

/* split doors — stack on mobile */
@media (max-width: 860px) {
  .split-left, .split-right { min-height: 50vmax; }
}
