/* ==========================================================================
   EVOSER MAROC — Cinematic Design System (LIGHT THEME)
   Light premium tech aesthetic · Moroccan gold accents
   --------------------------------------------------------------------------
   Author: EVOSER Engineering
   Stack:  Vanilla CSS + Tailwind CDN (utility) + GSAP/Three/Lenis (JS)
   ========================================================================== */

/* --------------------------------------------------------------------------
   0. Design Tokens
   -------------------------------------------------------------------------- */
:root {
  /* Brand palette — light */
  --bg:            #f5f6fa;   /* page background (soft light)     */
  --bg-soft:       #ffffff;   /* raised surfaces                  */
  --bg-elevated:   #ffffff;   /* cards / panels                   */
  --surface:       #eceef4;   /* inset surfaces                   */
  --gold:          #c9a44a;   /* Moroccan gold accent (fills)     */
  --gold-bright:   #e6c878;   /* gold highlight                   */
  --gold-deep:     #806323;   /* gold for TEXT on light (AA)      */
  --blue:          #1e3a5f;   /* deep tech blue                   */
  --blue-bright:   #3a6ea5;   /* blue highlight                   */
  --ink:           #0d0f14;   /* darkest ink                      */
  --text:          #16181f;   /* primary text                    */
  --text-soft:     #4a4f5c;   /* secondary text                  */
  --text-mute:     #868c99;   /* muted text                      */
  --danger:        #c8403b;   /* validation error                */
  --success:       #1f9d57;   /* validation success              */

  /* Glassmorphism (light) */
  --glass-bg:      rgba(255, 255, 255, 0.62);
  --glass-border:  rgba(30, 58, 95, 0.14);
  --glass-blur:    16px;

  /* Typography */
  --font-head: "Space Grotesk", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;

  /* Layout */
  --nav-h: 72px;
  --maxw: 1280px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);

  /* Z-index scale */
  --z-canvas: 0;
  --z-scene: 10;
  --z-progress: 40;
  --z-nav: 50;
  --z-overlay: 60;
}

/* --------------------------------------------------------------------------
   1. Reset & Base
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

* { margin: 0; padding: 0; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth; /* fallback when Lenis disabled */
}

html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, picture, canvas, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; background: none; border: none; }
ul { list-style: none; }

h1, h2, h3, h4 { font-family: var(--font-head); font-weight: 700; line-height: 1.05; letter-spacing: -0.02em; color: var(--ink); }

::selection { background: var(--gold); color: #16181f; }

/* Custom scrollbar */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--surface); }
::-webkit-scrollbar-thumb { background: var(--gold); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--gold-deep); }

/* --------------------------------------------------------------------------
   2. Accessibility helpers
   -------------------------------------------------------------------------- */
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

.skip-link {
  position: fixed; top: -100px; left: 16px; z-index: var(--z-overlay);
  background: var(--gold); color: #16181f; padding: 12px 20px;
  border-radius: 8px; font-weight: 600; transition: top 0.25s var(--ease);
}
.skip-link:focus { top: 16px; }

:focus-visible {
  outline: 2px solid var(--gold-deep);
  outline-offset: 3px;
  border-radius: 4px;
}

/* --------------------------------------------------------------------------
   3. Global utility shells
   -------------------------------------------------------------------------- */
.brand-gradient-text {
  background: linear-gradient(120deg, var(--blue), var(--gold-deep) 70%, var(--gold));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--gold-deep);
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
}
.eyebrow::before {
  content: "";
  width: 28px; height: 1px;
  background: var(--gold-deep);
  display: inline-block;
}

.btn-magnetic, .btn-portal {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-family: var(--font-head);
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 1rem 2.2rem;
  border-radius: 100px;
  color: #16181f;
  background: linear-gradient(120deg, var(--gold-bright), var(--gold));
  box-shadow: 0 12px 34px -12px rgba(201,164,74,0.7), inset 0 0 0 1px rgba(255,255,255,0.4);
  transition: transform 0.25s var(--ease), box-shadow 0.35s var(--ease);
  will-change: transform;
  overflow: hidden;
}
.btn-magnetic:hover, .btn-portal:hover {
  box-shadow: 0 18px 48px -10px rgba(201,164,74,0.85), inset 0 0 0 1px rgba(255,255,255,0.6);
}
.btn-magnetic::after, .btn-portal::after {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(circle at var(--mx,50%) var(--my,50%), rgba(255,255,255,0.6), transparent 60%);
  opacity: 0; transition: opacity 0.3s var(--ease);
}
.btn-magnetic:hover::after, .btn-portal:hover::after { opacity: 1; }

/* --------------------------------------------------------------------------
   4. WebGL canvas (Three.js background)
   -------------------------------------------------------------------------- */
#webgl {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  z-index: var(--z-canvas);
  pointer-events: none;
}

/* Loading overlay */
#loader {
  position: fixed; inset: 0; z-index: var(--z-overlay);
  background: var(--bg);
  display: grid; place-content: center; gap: 1.4rem;
  transition: opacity 0.8s var(--ease), visibility 0.8s;
}
#loader.hidden { opacity: 0; visibility: hidden; pointer-events: none; }
.loader-logo {
  font-family: var(--font-head); font-weight: 700; font-size: clamp(2rem,6vw,4rem);
  letter-spacing: 0.04em; text-align: center;
}
.loader-bar {
  width: min(320px, 60vw); height: 3px; background: rgba(30,58,95,0.12);
  border-radius: 2px; overflow: hidden; margin: 0 auto;
}
.loader-bar span {
  display: block; height: 100%; width: 0%;
  background: linear-gradient(90deg, var(--gold-deep), var(--gold-bright));
  transition: width 0.3s linear;
}
.loader-status {
  font-family: var(--font-mono); font-size: 0.75rem; color: var(--text-mute);
  letter-spacing: 0.2em; text-align: center; text-transform: uppercase;
}

/* --------------------------------------------------------------------------
   5. Navigation (glassmorphism, light)
   -------------------------------------------------------------------------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  z-index: var(--z-nav);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 clamp(1.2rem, 4vw, 3rem);
  background: rgba(255,255,255,0.7);
  backdrop-filter: blur(var(--glass-blur)) saturate(140%);
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(140%);
  border-bottom: 1px solid var(--glass-border);
  color: var(--text);
  transition: background 0.5s var(--ease), box-shadow 0.5s var(--ease);
}
.nav.scrolled { box-shadow: 0 8px 30px -16px rgba(30,58,95,0.3); }

.nav-brand { display: flex; align-items: center; gap: 0.7rem; }
.nav-logo-img { height: 38px; width: auto; }

.nav-menu { display: flex; gap: 2rem; align-items: center; }
.nav-link {
  font-family: var(--font-head); font-size: 0.85rem; font-weight: 500;
  letter-spacing: 0.08em; color: var(--text-soft);
  position: relative; padding: 4px 0; transition: color 0.3s var(--ease);
}
.nav-link::after {
  content: ""; position: absolute; left: 0; bottom: -2px; height: 2px; width: 0;
  background: var(--gold-deep); transition: width 0.3s var(--ease);
}
.nav-link:hover { color: var(--gold-deep); }
.nav-link:hover::after, .nav-link.active::after { width: 100%; }
.nav-cta { color: var(--gold-deep); font-weight: 600; }

.nav-toggle { display: none; flex-direction: column; gap: 5px; padding: 8px; }
.nav-toggle span { width: 24px; height: 2px; background: var(--ink); border-radius: 2px; transition: 0.3s var(--ease); }

/* --------------------------------------------------------------------------
   6. Scroll progress indicator (vertical, right)
   -------------------------------------------------------------------------- */
.progress {
  position: fixed;
  right: clamp(0.6rem, 2vw, 1.6rem);
  top: 50%;
  transform: translateY(-50%);
  z-index: var(--z-progress);
  display: flex; flex-direction: column; align-items: flex-end; gap: 1rem;
}
.progress-track {
  position: absolute; right: 4px; top: 6px; bottom: 6px; width: 2px;
  background: rgba(30,58,95,0.15); border-radius: 2px;
}
.progress-fill {
  position: absolute; right: 4px; top: 6px; width: 2px;
  background: linear-gradient(var(--gold-bright), var(--gold-deep));
  border-radius: 2px; height: 0; box-shadow: 0 0 8px rgba(201,164,74,0.6);
  transition: height 0.1s linear;
}
.progress-dot {
  display: flex; align-items: center; gap: 0.7rem;
  cursor: pointer; position: relative; z-index: 1;
}
.progress-dot .label {
  font-family: var(--font-mono); font-size: 0.62rem; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--text-mute);
  opacity: 0; transform: translateX(8px);
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease), color 0.3s;
  white-space: nowrap;
}
.progress-dot .pip {
  width: 9px; height: 9px; border-radius: 50%;
  border: 1px solid var(--text-mute); background: var(--bg);
  transition: 0.3s var(--ease);
}
.progress-dot:hover .label,
.progress-dot.active .label { opacity: 1; transform: translateX(0); }
.progress-dot.active .label { color: var(--gold-deep); }
.progress-dot:hover .pip { border-color: var(--gold-deep); }
.progress-dot.active .pip {
  background: var(--gold); border-color: var(--gold-deep);
  box-shadow: 0 0 10px rgba(201,164,74,0.7); transform: scale(1.25);
}

/* --------------------------------------------------------------------------
   7. Scene scaffolding
   -------------------------------------------------------------------------- */
main { position: relative; z-index: var(--z-scene); }

.scene {
  position: relative;
  min-height: 100vh;
  width: 100%;
  display: flex;
  align-items: center;
  padding: calc(var(--nav-h) + 2rem) clamp(1.2rem, 6vw, 6rem) 3rem;
  overflow: hidden;
}
.scene-inner { width: 100%; max-width: var(--maxw); margin: 0 auto; position: relative; z-index: 2; }

/* Parallax depth layers (min 5 per scene). Set --depth 1..5 in markup. */
.layer { position: absolute; inset: 0; pointer-events: none; will-change: transform; }
.layer[data-depth] { z-index: 1; }

/* Cinematic images rendered as a soft framed visual on a light page */
.scene-bg-img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; opacity: 0; z-index: 0;
  transition: opacity 1.2s var(--ease);
}
.scene-bg-img.loaded { opacity: 0.16; }
.scene-bg-img.dim.loaded { opacity: 0.1; }

/* light gradient veil for legibility */
.scene::before {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: radial-gradient(ellipse at 30% 35%, rgba(245,246,250,0.35), rgba(245,246,250,0.82) 78%);
}

.section-title {
  font-size: clamp(2rem, 6vw, 4.6rem);
  line-height: 1.02;
  margin: 1rem 0 1.4rem;
  max-width: 18ch;
}
.section-lead {
  font-size: clamp(1rem, 1.6vw, 1.25rem);
  color: var(--text-soft);
  max-width: 56ch;
}

/* --------------------------------------------------------------------------
   8. Scene 1 — HERO
   -------------------------------------------------------------------------- */
#scene-hero { text-align: center; align-items: center; justify-content: center; }
#scene-hero .scene-inner { display: grid; place-items: center; gap: 1.4rem; }
.hero-logo {
  font-size: clamp(3.4rem, 16vw, 12rem);
  letter-spacing: 0.02em;
  line-height: 0.9;
  will-change: transform;
  color: var(--ink);
}
.hero-logo .dot { color: var(--gold-deep); }
.hero-scan {
  font-family: var(--font-mono);
  font-size: clamp(0.8rem, 2.4vw, 1.1rem);
  letter-spacing: 0.22em;
  color: var(--gold-deep);
  min-height: 1.6em;
}
.hero-scan .caret {
  display: inline-block; width: 0.6ch; background: var(--gold-deep);
  margin-left: 2px; animation: blink 1s steps(1) infinite;
}
@keyframes blink { 50% { opacity: 0; } }
.hero-sub { color: var(--text-soft); max-width: 50ch; }
.scroll-cue {
  position: absolute; bottom: 2.2rem; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 0.5rem;
  font-family: var(--font-mono); font-size: 0.66rem; letter-spacing: 0.24em;
  color: var(--text-mute); text-transform: uppercase;
}
.scroll-cue .mouse {
  width: 22px; height: 36px; border: 1px solid var(--text-mute); border-radius: 12px;
  position: relative;
}
.scroll-cue .mouse::after {
  content: ""; position: absolute; top: 6px; left: 50%; transform: translateX(-50%);
  width: 3px; height: 7px; border-radius: 2px; background: var(--gold-deep);
  animation: scrollwheel 1.6s var(--ease) infinite;
}
@keyframes scrollwheel { 0% { opacity:0; transform: translate(-50%,0);} 40%{opacity:1;} 80%{opacity:0; transform: translate(-50%,12px);} 100%{opacity:0;} }

/* --------------------------------------------------------------------------
   9. Scene 2 — PARADIGM (split screen)
   -------------------------------------------------------------------------- */
#scene-paradigm { padding-block: 0; }
.paradigm-wrap { display: grid; grid-template-columns: 1fr 1fr; min-height: 100vh; width: 100%; position: relative; z-index: 2; }
.paradigm-half {
  padding: clamp(5rem,10vh,8rem) clamp(1.4rem,5vw,4rem);
  display: flex; flex-direction: column; justify-content: center; gap: 1.2rem;
  position: relative; overflow: hidden;
}
.paradigm-half.chaos {
  background: linear-gradient(135deg, #2a2d36, #3a2226);
  color: #d9dbe2;
}
.paradigm-half.chaos h3 { color: #f08a86; }
.paradigm-half.chaos .eyebrow { color: #f08a86; }
.paradigm-half.chaos .eyebrow::before { background: #f08a86; }
.paradigm-half.chaos::before {
  content: ""; position: absolute; inset: 0;
  background-image:
    repeating-linear-gradient(35deg, rgba(224,82,77,0.1) 0 2px, transparent 2px 9px),
    repeating-linear-gradient(-12deg, rgba(255,255,255,0.05) 0 1px, transparent 1px 14px);
  opacity: 0.8;
}
.paradigm-half.order {
  background: linear-gradient(135deg, #ffffff, #eef2f9);
  color: var(--text);
}
.paradigm-half.order h3 { color: var(--gold-deep); }
.paradigm-half.order::before {
  content: ""; position: absolute; inset: 0;
  background-image: radial-gradient(circle, rgba(201,164,74,0.22) 1px, transparent 1.4px);
  background-size: 26px 26px;
}
.paradigm-half h3 { font-size: clamp(1.4rem,3vw,2.4rem); position: relative; }
.paradigm-half ul { display: grid; gap: 0.7rem; position: relative; }
.paradigm-half li { display: flex; gap: 0.6rem; align-items: flex-start; font-size: 0.95rem; }
.paradigm-half li .ic { flex: 0 0 auto; margin-top: 2px; }
.paradigm-center {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%,-50%);
  z-index: 3; text-align: center; pointer-events: none; width: min(90vw, 720px);
}
.paradigm-quote {
  font-family: var(--font-head); font-weight: 700;
  font-size: clamp(1.3rem, 3.4vw, 2.8rem); line-height: 1.1;
  background: #ffffff; color: var(--ink);
  display: inline-block; padding: 1rem 1.6rem; border-radius: 14px;
  box-shadow: 0 30px 80px -24px rgba(13,15,20,0.35), 0 0 0 1px var(--glass-border);
}
.paradigm-quote em { color: var(--gold-deep); font-style: normal; }

/* --------------------------------------------------------------------------
   10. Scene 3 — SERVICES ORBIT
   -------------------------------------------------------------------------- */
#scene-services .scene-inner { display: grid; gap: 2.4rem; }
.orbit-stage {
  position: relative; width: 100%; aspect-ratio: 16/9; max-height: 70vh;
  display: grid; place-items: center; margin-top: 1rem;
}
.orbit-core {
  width: clamp(120px, 16vw, 200px); aspect-ratio: 1; border-radius: 50%;
  display: grid; place-items: center; text-align: center;
  background: radial-gradient(circle at 40% 35%, var(--blue-bright), var(--blue) 60%, #16273d);
  box-shadow: 0 24px 50px -16px rgba(30,58,95,0.5), inset 0 0 40px rgba(0,0,0,0.35);
  color: #fff; font-family: var(--font-head); font-weight: 700; letter-spacing: 0.1em;
}
.orbit-core span { font-size: 0.7rem; color: var(--gold-bright); letter-spacing: 0.3em; display: block; }
.orbit-ring {
  position: absolute; border: 1px dashed rgba(201,164,74,0.4); border-radius: 50%;
  animation: spin 40s linear infinite;
}
.orbit-ring.r1 { width: 58%; aspect-ratio: 1; }
.orbit-ring.r2 { width: 84%; aspect-ratio: 1; animation-duration: 64s; animation-direction: reverse; }
@keyframes spin { to { transform: rotate(360deg); } }

.svc-card {
  position: absolute; width: clamp(150px, 18vw, 230px);
  background: var(--bg-elevated);
  border: 1px solid var(--glass-border);
  border-radius: 16px; padding: 1rem 1.1rem;
  box-shadow: 0 20px 44px -24px rgba(30,58,95,0.35);
  will-change: transform, opacity;
}
.svc-card h4 { font-size: 1rem; color: var(--gold-deep); margin-bottom: 0.35rem; }
.svc-card p { font-size: 0.78rem; color: var(--text-soft); line-height: 1.45; }
.svc-card .num { font-family: var(--font-mono); font-size: 0.66rem; color: var(--text-mute); letter-spacing: 0.2em; }
.svc-pos-1 { top: 4%; left: 4%; }
.svc-pos-2 { top: 4%; right: 4%; }
.svc-pos-3 { bottom: 4%; left: 4%; }
.svc-pos-4 { bottom: 4%; right: 4%; }

.subservices {
  display: flex; flex-wrap: wrap; gap: 0.6rem; justify-content: center; max-width: 60ch; margin: 0 auto;
}
.chip {
  font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.06em;
  padding: 0.45rem 0.9rem; border-radius: 100px;
  border: 1px solid var(--glass-border); color: var(--text-soft);
  background: var(--bg-soft); transition: 0.3s var(--ease);
}
.chip:hover { border-color: var(--gold); color: var(--gold-deep); transform: translateY(-2px); box-shadow: 0 8px 20px -12px rgba(201,164,74,0.6); }

/* --------------------------------------------------------------------------
   11. Scene 4 — INVENTORY PROTOCOL
   -------------------------------------------------------------------------- */
#scene-inventory { background: linear-gradient(180deg, #eef1f7, #f5f6fa); }
.protocol-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem; margin-top: 2.4rem; }
.protocol-step {
  position: relative; padding: 1.6rem 1.3rem 1.4rem; border-radius: 16px;
  background: var(--bg-elevated);
  border: 1px solid var(--glass-border);
  box-shadow: 0 18px 40px -28px rgba(30,58,95,0.3);
  overflow: hidden; will-change: transform, opacity;
}
.protocol-step::after {
  content: ""; position: absolute; left: 0; top: 0; height: 3px; width: 100%;
  background: linear-gradient(90deg, var(--gold), transparent);
  transform: scaleX(0); transform-origin: left; transition: transform 0.6s var(--ease);
}
.protocol-step.in::after { transform: scaleX(1); }
.protocol-step .step-n {
  font-family: var(--font-mono); font-size: 2.4rem; font-weight: 800;
  color: transparent; -webkit-text-stroke: 1px var(--gold); line-height: 1;
}
.protocol-step h4 { margin: 0.6rem 0 0.5rem; font-size: 1.05rem; color: var(--ink); }
.protocol-step p { font-size: 0.82rem; color: var(--text-soft); }
.protocol-step .tag {
  display: inline-block; margin-top: 0.8rem; font-family: var(--font-mono);
  font-size: 0.62rem; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--gold-deep); border: 1px solid var(--glass-border); padding: 0.25rem 0.6rem; border-radius: 6px;
}

/* --------------------------------------------------------------------------
   12. Scene 5 — TECH MATRIX (dark code cards on light page = intentional)
   -------------------------------------------------------------------------- */
#scene-matrix { background: linear-gradient(180deg, #f5f6fa, #eceef4); }
.matrix-stage { position: relative; width: 100%; min-height: 60vh; perspective: 1200px; margin-top: 1.6rem; }
.code-card {
  position: relative; margin: 0 auto;
  max-width: 720px;
  background: #0d1422;
  border: 1px solid rgba(201,164,74,0.25);
  border-radius: 14px; overflow: hidden;
  box-shadow: 0 30px 70px -30px rgba(13,20,34,0.6), 0 0 0 1px rgba(30,58,95,0.08);
  will-change: transform, opacity;
}
.code-card + .code-card { margin-top: 1.6rem; }
.code-head {
  display: flex; align-items: center; gap: 0.5rem; padding: 0.7rem 1rem;
  background: rgba(255,255,255,0.04); border-bottom: 1px solid rgba(255,255,255,0.07);
  font-family: var(--font-mono); font-size: 0.72rem; color: #8a93a6;
}
.code-head .dot { width: 10px; height: 10px; border-radius: 50%; }
.code-head .dot.r { background: #ff5f56; } .code-head .dot.y { background: #ffbd2e; } .code-head .dot.g { background: #27c93f; }
.code-head .fname { margin-left: auto; }
pre.code-body {
  margin: 0; padding: 1.1rem 1.3rem; overflow-x: auto;
  font-family: var(--font-mono); font-size: clamp(0.72rem, 1vw, 0.85rem); line-height: 1.65;
  color: #cdd6e4;
}
.code-body .kw { color: #c792ea; }   /* keyword  */
.code-body .fn { color: #82aaff; }   /* function */
.code-body .st { color: #c3e88d; }   /* string   */
.code-body .cm { color: #5c6370; font-style: italic; } /* comment */
.code-body .nm { color: #f78c6c; }   /* number   */
.code-body .cl { color: var(--gold-bright); } /* class */

/* --------------------------------------------------------------------------
   13. Scene 6 — TRUST (3D card grid)
   -------------------------------------------------------------------------- */
.trust-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1rem; margin-top: 2.2rem; perspective: 1000px;
}
.trust-card {
  aspect-ratio: 5/3; display: grid; place-items: center; text-align: center;
  border-radius: 14px; padding: 1rem;
  background: var(--bg-elevated);
  border: 1px solid var(--glass-border);
  box-shadow: 0 16px 40px -28px rgba(30,58,95,0.3);
  font-family: var(--font-head); font-weight: 600; letter-spacing: 0.04em;
  color: var(--text-soft); will-change: transform;
  transition: transform 0.4s var(--ease), color 0.4s, border-color 0.4s, box-shadow 0.4s;
}
.trust-card:hover { color: var(--gold-deep); border-color: var(--gold); transform: translateZ(30px) scale(1.03); box-shadow: 0 22px 50px -24px rgba(201,164,74,0.5); }
.trust-stats { display: flex; flex-wrap: wrap; gap: 2.4rem; margin-top: 2.6rem; }
.stat .n { font-family: var(--font-head); font-weight: 800; font-size: clamp(2rem,5vw,3.4rem); color: var(--gold-deep); }
.stat .l { font-size: 0.85rem; color: var(--text-soft); }

/* --------------------------------------------------------------------------
   14. Scene 7 — CTA PORTAL
   -------------------------------------------------------------------------- */
#scene-cta { text-align: center; }
#scene-cta .scene-inner { display: grid; place-items: center; gap: 1.6rem; }
.portal {
  position: relative; width: clamp(200px, 30vw, 360px); aspect-ratio: 1; margin-bottom: 0.4rem;
  display: grid; place-items: center;
}
.portal-ring {
  position: absolute; inset: 0; border-radius: 50%;
  border: 2px solid transparent;
  background: conic-gradient(from 0deg, var(--gold-bright), var(--blue-bright), var(--gold-bright)) border-box;
  -webkit-mask: linear-gradient(#000 0 0) padding-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  animation: spin 14s linear infinite;
  box-shadow: 0 0 60px -10px rgba(201,164,74,0.6), inset 0 0 50px -10px rgba(58,110,165,0.5);
}
.portal-ring.r2 { inset: 14%; animation-duration: 9s; animation-direction: reverse; opacity: 0.7; }
.portal-core {
  width: 56%; aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle, rgba(58,110,165,0.35), rgba(245,246,250,0.9) 72%);
  box-shadow: inset 0 0 40px rgba(58,110,165,0.4);
}
.cta-contact { display: flex; flex-wrap: wrap; gap: 1.6rem 2.4rem; justify-content: center; margin-top: 0.6rem; }
.cta-contact a, .cta-contact span { display: inline-flex; align-items: center; gap: 0.55rem; color: var(--text-soft); font-size: 0.92rem; }
.cta-contact .ic { color: var(--gold-deep); }
.cta-contact a:hover { color: var(--gold-deep); }
.cta-footnote { font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.18em; color: var(--text-mute); margin-top: 2rem; text-transform: uppercase; }

/* ==========================================================================
   15. FORMULAIRE PAGE
   ========================================================================== */
body.page-form {
  display: grid; place-items: center; min-height: 100vh;
  padding: calc(var(--nav-h) + 2rem) 1.2rem 3rem;
  background:
    linear-gradient(rgba(245,246,250,0.86), rgba(245,246,250,0.94)),
    url("../images/form-bg.webp") center / cover fixed no-repeat, var(--bg);
}
.form-shell {
  position: relative; z-index: var(--z-scene);
  width: min(680px, 100%);
  background: rgba(255,255,255,0.78);
  border: 1px solid var(--glass-border);
  border-radius: 24px;
  padding: clamp(1.6rem, 4vw, 3rem);
  backdrop-filter: blur(22px) saturate(140%);
  -webkit-backdrop-filter: blur(22px) saturate(140%);
  box-shadow: 0 40px 100px -40px rgba(30,58,95,0.4), inset 0 0 0 1px rgba(255,255,255,0.6);
}
.form-shell.shake { animation: shake 0.4s var(--ease); }
@keyframes shake {
  0%,100% { transform: translateX(0); }
  20% { transform: translateX(-9px); } 40% { transform: translateX(8px); }
  60% { transform: translateX(-6px); } 80% { transform: translateX(4px); }
}
.form-head { text-align: center; margin-bottom: 2rem; }
.form-head h1 { font-size: clamp(1.8rem, 5vw, 2.8rem); margin: 0.6rem 0; }
.form-head p { color: var(--text-soft); font-size: 0.95rem; }

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.3rem 1.2rem; }
.field { position: relative; display: flex; flex-direction: column; }
.field.col-span { grid-column: 1 / -1; }

/* Floating label inputs */
.field input, .field select, .field textarea {
  width: 100%;
  background: #ffffff;
  border: 1px solid rgba(30,58,95,0.18);
  border-radius: 12px;
  padding: 1.25rem 1rem 0.55rem;
  color: var(--text);
  font-family: var(--font-body); font-size: 0.95rem;
  transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease), background 0.3s;
  appearance: none;
}
.field textarea { min-height: 120px; resize: vertical; padding-top: 1.5rem; }
.field select { cursor: pointer; background-image: linear-gradient(45deg, transparent 50%, var(--gold-deep) 50%), linear-gradient(135deg, var(--gold-deep) 50%, transparent 50%); background-position: right 1.1rem center, right 0.85rem center; background-size: 6px 6px, 6px 6px; background-repeat: no-repeat; }
.field select option { background: #ffffff; color: var(--text); }

.field label.float {
  position: absolute; left: 1rem; top: 1rem;
  font-size: 0.95rem; color: var(--text-mute);
  pointer-events: none; transform-origin: left center;
  transition: 0.22s var(--ease);
}
.field input:focus + label.float,
.field input:not(:placeholder-shown) + label.float,
.field textarea:focus + label.float,
.field textarea:not(:placeholder-shown) + label.float,
.field select:focus + label.float,
.field.has-value label.float {
  transform: translateY(-0.7rem) scale(0.78);
  color: var(--gold-deep);
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(201,164,74,0.22);
  background: #fffdf7;
}
.field .req { color: var(--gold-deep); }
.field .err-msg {
  font-size: 0.72rem; color: var(--danger); margin-top: 0.35rem; min-height: 1em;
  opacity: 0; transform: translateY(-3px); transition: 0.25s var(--ease);
}
.field.invalid input, .field.invalid select, .field.invalid textarea {
  border-color: var(--danger); box-shadow: 0 0 0 3px rgba(200,64,59,0.14);
}
.field.invalid .err-msg { opacity: 1; transform: translateY(0); }
.field.invalid.shake input, .field.invalid.shake select, .field.invalid.shake textarea { animation: shake 0.4s var(--ease); }
.field.valid input, .field.valid select, .field.valid textarea { border-color: rgba(31,157,87,0.55); }

/* RGPD checkbox */
.field-check { grid-column: 1/-1; display: flex; gap: 0.75rem; align-items: flex-start; }
.field-check input { width: 20px; height: 20px; accent-color: var(--gold-deep); margin-top: 2px; flex: 0 0 auto; cursor: pointer; }
.field-check label { font-size: 0.82rem; color: var(--text-soft); cursor: pointer; }
.field-check a { color: var(--gold-deep); text-decoration: underline; }
.field-check.invalid label { color: var(--danger); }

.char-count { font-family: var(--font-mono); font-size: 0.66rem; color: var(--text-mute); margin-top: 0.3rem; text-align: right; }

.form-actions { grid-column: 1/-1; display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-top: 0.6rem; flex-wrap: wrap; }
.form-status { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.08em; color: var(--text-mute); }
.form-status.error { color: var(--danger); }
.form-status.ok { color: var(--success); }

.btn-magnetic[disabled] { opacity: 0.5; pointer-events: none; }
.btn-magnetic .spin {
  width: 16px; height: 16px; border: 2px solid rgba(22,24,31,0.3); border-top-color: #16181f;
  border-radius: 50%; animation: rot 0.7s linear infinite; display: none;
}
.btn-magnetic.loading .spin { display: inline-block; }
.btn-magnetic.loading .txt { opacity: 0.6; }
@keyframes rot { to { transform: rotate(360deg); } }

/* Success state */
#form-success { display: none; text-align: center; }
#form-success.show { display: grid; place-items: center; gap: 1rem; animation: fadeUp 0.6s var(--ease); }
#success-canvas { position: fixed; inset: 0; z-index: var(--z-canvas); pointer-events: none; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: translateY(0); } }
.success-check {
  width: 84px; height: 84px; border-radius: 50%;
  display: grid; place-items: center;
  background: radial-gradient(circle, rgba(31,157,87,0.16), transparent 70%);
  border: 2px solid var(--success);
  box-shadow: 0 0 36px -6px rgba(31,157,87,0.6);
}
.success-check svg { width: 40px; height: 40px; stroke: var(--success); }
.success-lead-id { font-family: var(--font-mono); color: var(--gold-deep); letter-spacing: 0.1em; }

/* --------------------------------------------------------------------------
   16. Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 900px) {
  .nav-menu {
    position: fixed; inset: var(--nav-h) 0 auto 0; flex-direction: column; gap: 0;
    background: rgba(255,255,255,0.97); backdrop-filter: blur(20px);
    transform: translateY(-120%); transition: transform 0.4s var(--ease);
    padding: 1.2rem; border-bottom: 1px solid var(--glass-border);
  }
  .nav-menu.open { transform: translateY(0); }
  .nav-menu .nav-link { padding: 1rem 0; width: 100%; }
  .nav-toggle { display: flex; }
  .paradigm-wrap { grid-template-columns: 1fr; }
  .paradigm-center { position: relative; left: auto; top: auto; transform: none; margin: 2rem auto; }
  .paradigm-quote { box-shadow: 0 20px 50px -20px rgba(13,15,20,0.3), 0 0 0 1px var(--glass-border); }
  .protocol-steps { grid-template-columns: repeat(2, 1fr); }
  .svc-card { position: relative; width: 100%; }
  .orbit-stage { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; aspect-ratio: auto; max-height: none; place-items: stretch; }
  .orbit-ring, .orbit-core { display: none; }
  .svc-pos-1,.svc-pos-2,.svc-pos-3,.svc-pos-4 { position: relative; inset: auto; }
  .progress { display: none; }
}
@media (max-width: 560px) {
  .form-grid { grid-template-columns: 1fr; }
  .protocol-steps { grid-template-columns: 1fr; }
  .orbit-stage { grid-template-columns: 1fr; }
  .scene { padding-left: 1.2rem; padding-right: 1.2rem; }
}

/* --------------------------------------------------------------------------
   17. Reduced motion — disable heavy animation, keep content visible
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  .orbit-ring, .portal-ring { animation: none !important; }
  .scene-bg-img { opacity: 0.14 !important; }
  .hero-scan .caret { animation: none; }
  [data-reveal] { opacity: 1 !important; transform: none !important; }
}

/* No-JS fallback: reveal everything */
.no-js [data-reveal] { opacity: 1 !important; transform: none !important; }
.no-js #loader { display: none !important; }

/* ==========================================================================
   18. ULTRA-MODERN CREATIVE EXTENSIONS + CONTENT-RICH SECTIONS
   ========================================================================== */

/* ---- 18.1 Atmosphere: animated mesh gradient + film grain --------------- */
.mesh {
  position: fixed; inset: -10%; z-index: 0; pointer-events: none; overflow: hidden;
}
.mesh span {
  position: absolute; border-radius: 50%; filter: blur(90px); opacity: 0.5;
  will-change: transform;
}
.mesh .b1 { width: 46vw; height: 46vw; left: -8vw; top: -6vw;
  background: radial-gradient(circle, rgba(201,164,74,0.45), transparent 70%);
  animation: drift1 26s ease-in-out infinite; }
.mesh .b2 { width: 40vw; height: 40vw; right: -6vw; top: 18vh;
  background: radial-gradient(circle, rgba(58,110,165,0.4), transparent 70%);
  animation: drift2 32s ease-in-out infinite; }
.mesh .b3 { width: 38vw; height: 38vw; left: 30vw; bottom: -12vw;
  background: radial-gradient(circle, rgba(201,164,74,0.3), transparent 70%);
  animation: drift1 38s ease-in-out infinite reverse; }
@keyframes drift1 { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(6vw,4vh) scale(1.12); } }
@keyframes drift2 { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(-5vw,-3vh) scale(1.08); } }

.grain {
  position: fixed; inset: 0; z-index: 1; pointer-events: none; opacity: 0.05;
  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='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  mix-blend-mode: multiply;
}

/* ---- 18.2 Content sections (natural height, info-dense) ----------------- */
.section {
  position: relative; z-index: var(--z-scene);
  padding: clamp(4.5rem, 11vh, 9rem) clamp(1.2rem, 6vw, 6rem);
  overflow: hidden;
}
.section-inner { width: 100%; max-width: var(--maxw); margin: 0 auto; position: relative; z-index: 2; }
.section-head { max-width: 62ch; margin-bottom: clamp(2rem, 5vh, 3.4rem); }
.section-head .section-title { margin-bottom: 0.8rem; }
.section.tint { background: linear-gradient(180deg, rgba(255,255,255,0.5), rgba(236,238,244,0.6)); }

/* Big kinetic index numeral */
.kicker-num {
  font-family: var(--font-head); font-weight: 700;
  font-size: clamp(3rem, 9vw, 7rem); line-height: 0.9;
  background: linear-gradient(120deg, var(--gold), var(--blue));
  -webkit-background-clip: text; background-clip: text; color: transparent;
  opacity: 0.25; letter-spacing: -0.03em;
}

/* Animated gradient border wrapper */
.glow-border { position: relative; border-radius: 20px; }
.glow-border::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px;
  background: linear-gradient(130deg, var(--gold), transparent 40%, transparent 60%, var(--blue-bright));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude; pointer-events: none;
}

/* ---- 18.3 Hero stats strip ---------------------------------------------- */
.stats-strip {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 1.4rem 2.8rem;
  margin-top: 1.4rem; padding-top: 1.6rem; border-top: 1px solid var(--glass-border);
}
.stats-strip .s { display: grid; gap: 0.1rem; text-align: center; }
.stats-strip .s b { font-family: var(--font-head); font-weight: 800; font-size: clamp(1.5rem,3.4vw,2.4rem); color: var(--gold-deep); line-height: 1; }
.stats-strip .s span { font-size: 0.74rem; color: var(--text-mute); letter-spacing: 0.05em; }

/* ---- 18.4 Marquee ticker ------------------------------------------------ */
.marquee {
  position: relative; overflow: hidden; width: 100%;
  border-top: 1px solid var(--glass-border); border-bottom: 1px solid var(--glass-border);
  padding: 1.1rem 0; background: rgba(255,255,255,0.4);
  -webkit-mask: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee-track { display: flex; gap: 3rem; width: max-content; animation: scrollx 38s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track span {
  font-family: var(--font-head); font-weight: 600; letter-spacing: 0.04em;
  font-size: clamp(0.95rem, 2vw, 1.4rem); color: var(--text-soft); display: inline-flex; align-items: center; gap: 3rem;
}
.marquee-track span::after { content: "◆"; color: var(--gold); font-size: 0.7em; }
@keyframes scrollx { to { transform: translateX(-50%); } }

/* ---- 18.5 Service detail list (rich) ------------------------------------ */
.svc-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 1.2rem; margin-top: 1rem; }
.svc-item {
  position: relative; padding: 1.6rem; border-radius: 18px;
  background: var(--bg-elevated); border: 1px solid var(--glass-border);
  box-shadow: 0 18px 44px -30px rgba(30,58,95,0.4); transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
  will-change: transform;
}
.svc-item:hover { transform: translateY(-6px); box-shadow: 0 30px 60px -34px rgba(30,58,95,0.5); }
.svc-item .ico { font-size: 1.5rem; }
.svc-item h4 { margin: 0.7rem 0 0.5rem; font-size: 1.15rem; color: var(--ink); }
.svc-item p { font-size: 0.88rem; color: var(--text-soft); }
.svc-item ul { margin-top: 0.8rem; display: grid; gap: 0.4rem; }
.svc-item li { font-size: 0.82rem; color: var(--text-soft); padding-left: 1.1rem; position: relative; }
.svc-item li::before { content: "▸"; position: absolute; left: 0; color: var(--gold-deep); }

/* ---- 18.6 Modules bento grid -------------------------------------------- */
.bento { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; margin-top: 1rem; }
.bento-card {
  background: var(--bg-elevated); border: 1px solid var(--glass-border);
  border-radius: 18px; padding: 1.4rem; display: flex; flex-direction: column; gap: 0.5rem;
  box-shadow: 0 16px 40px -30px rgba(30,58,95,0.4);
  transition: transform 0.45s var(--ease), box-shadow 0.45s var(--ease), border-color 0.45s;
  will-change: transform; transform-style: preserve-3d;
}
.bento-card:hover { border-color: rgba(201,164,74,0.5); box-shadow: 0 30px 60px -32px rgba(201,164,74,0.45); }
.bento-card .tag { font-family: var(--font-mono); font-size: 0.62rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--gold-deep); }
.bento-card h4 { font-size: 1.1rem; color: var(--ink); }
.bento-card p { font-size: 0.84rem; color: var(--text-soft); line-height: 1.5; }
.bento-card.span-2 { grid-column: span 2; }
.bento-card.row-2 { grid-row: span 2; }
.bento-card.feature {
  grid-column: span 2; grid-row: span 2;
  background: linear-gradient(150deg, #16273d, #1e3a5f);
  color: #fff; justify-content: space-between;
}
.bento-card.feature h4, .bento-card.feature .big { color: #fff; }
.bento-card.feature p { color: rgba(255,255,255,0.78); }
.bento-card.feature .tag { color: var(--gold-bright); }
.bento-card .big { font-family: var(--font-head); font-weight: 800; font-size: clamp(1.6rem,4vw,2.6rem); line-height: 1; }

/* ---- 18.7 Architecture cards -------------------------------------------- */
.arch-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 1.1rem; margin-top: 1rem; }
.arch-card { padding: 1.5rem; border-radius: 18px; background: var(--bg-elevated); border: 1px solid var(--glass-border); box-shadow: 0 16px 40px -30px rgba(30,58,95,0.4); }
.arch-card h4 { font-size: 1.05rem; color: var(--gold-deep); margin-bottom: 0.7rem; }
.arch-card ul { display: grid; gap: 0.45rem; }
.arch-card li { font-size: 0.85rem; color: var(--text-soft); display: flex; gap: 0.5rem; }
.arch-card li code { font-family: var(--font-mono); font-size: 0.78rem; background: var(--surface); padding: 0.05rem 0.4rem; border-radius: 5px; color: var(--blue); }

/* ---- 18.8 Methodology timeline ------------------------------------------ */
.timeline { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; margin-top: 1.4rem; position: relative; }
.timeline::before { content: ""; position: absolute; top: 22px; left: 6%; right: 6%; height: 2px; background: linear-gradient(90deg, var(--gold), var(--blue)); opacity: 0.4; }
.tl-step { position: relative; padding: 0 1rem; }
.tl-step .dot { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; margin: 0 auto 1rem; background: var(--bg); border: 2px solid var(--gold); color: var(--gold-deep); font-family: var(--font-head); font-weight: 700; position: relative; z-index: 1; box-shadow: 0 0 0 6px var(--bg); }
.tl-step h4 { font-size: 1rem; text-align: center; color: var(--ink); margin-bottom: 0.5rem; }
.tl-step p { font-size: 0.82rem; color: var(--text-soft); text-align: center; }

/* ---- 18.9 Testimonial --------------------------------------------------- */
.testimonial {
  margin-top: 2rem; padding: clamp(1.6rem, 4vw, 2.6rem); border-radius: 22px;
  background: var(--bg-elevated); border: 1px solid var(--glass-border);
  box-shadow: 0 24px 60px -34px rgba(30,58,95,0.4);
}
.testimonial blockquote { font-family: var(--font-head); font-weight: 500; font-size: clamp(1.1rem, 2.6vw, 1.7rem); line-height: 1.4; color: var(--ink); }
.testimonial blockquote::before { content: "“"; color: var(--gold); font-size: 2.4em; line-height: 0; vertical-align: -0.35em; margin-right: 0.1em; }
.testimonial cite { display: block; margin-top: 1rem; font-style: normal; font-size: 0.85rem; color: var(--text-mute); letter-spacing: 0.05em; }
.testimonial cite b { color: var(--gold-deep); }

/* ---- 18.10 Free-audit badge (form page) --------------------------------- */
.free-badge {
  display: inline-flex; align-items: center; gap: 0.6rem; margin: 0 auto 1.2rem;
  padding: 0.5rem 1.1rem; border-radius: 100px;
  background: linear-gradient(120deg, rgba(201,164,74,0.18), rgba(58,110,165,0.14));
  border: 1px solid rgba(201,164,74,0.45);
  font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold-deep);
}
.free-badge .pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--success); box-shadow: 0 0 0 0 rgba(31,157,87,0.6); animation: pulse 2s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(31,157,87,0.5); } 70% { box-shadow: 0 0 0 9px rgba(31,157,87,0); } 100% { box-shadow: 0 0 0 0 rgba(31,157,87,0); } }
.free-options { display: flex; flex-wrap: wrap; gap: 0.8rem; justify-content: center; margin-bottom: 1.6rem; }
.free-options .opt { display: inline-flex; align-items: center; gap: 0.5rem; font-size: 0.82rem; color: var(--text-soft); background: rgba(255,255,255,0.6); border: 1px solid var(--glass-border); padding: 0.5rem 0.9rem; border-radius: 12px; }
.free-options .opt b { color: var(--ink); }

/* ---- 18.11 Responsive for new components -------------------------------- */
@media (max-width: 900px) {
  .bento { grid-template-columns: repeat(2, 1fr); }
  .bento-card.feature, .bento-card.span-2 { grid-column: span 2; }
  .bento-card.feature { grid-row: span 1; }
  .timeline { grid-template-columns: 1fr 1fr; gap: 1.6rem 0; }
  .timeline::before { display: none; }
}
@media (max-width: 560px) {
  .bento { grid-template-columns: 1fr; }
  .bento-card.feature, .bento-card.span-2 { grid-column: span 1; }
  .timeline { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .mesh span, .marquee-track, .free-badge .pulse { animation: none !important; }
}

/* ==========================================================================
   19. SERVICES-FIRST STRUCTURE (hero overview + per-service detail)
   ========================================================================== */
.ic-svg { width: 24px; height: 24px; display: inline-block; vertical-align: middle; }

/* ---- 19.1 Hero ---------------------------------------------------------- */
.hero2 {
  position: relative; z-index: var(--z-scene); min-height: 100vh;
  display: flex; align-items: center;
  padding: calc(var(--nav-h) + 2.5rem) clamp(1.2rem, 5vw, 5rem) 4rem; overflow: hidden;
}
.hero2 .scene-bg-img { z-index: 0; }
.hero2::before { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: radial-gradient(ellipse at 70% 30%, rgba(245,246,250,0.2), rgba(245,246,250,0.7) 80%); }
.hero2-inner {
  width: 100%; max-width: var(--maxw); margin: 0 auto; position: relative; z-index: 2;
  display: grid; grid-template-columns: 1.02fr 0.98fr; gap: clamp(2rem, 5vw, 4rem); align-items: center;
}
.hero2-title { font-size: clamp(2.3rem, 6vw, 4.6rem); line-height: 1.02; margin: 0.7rem 0 1.1rem; }
.hero2-sub { color: var(--text-soft); font-size: clamp(1rem, 1.5vw, 1.18rem); max-width: 54ch; }
.hero2-actions { display: flex; flex-wrap: wrap; gap: 0.9rem; align-items: center; margin: 1.6rem 0 1.4rem; }
.btn-ghost {
  display: inline-flex; align-items: center; gap: 0.55rem;
  padding: 0.95rem 1.5rem; border-radius: 100px;
  border: 1px solid var(--glass-border); background: rgba(255,255,255,0.7); color: var(--ink);
  font-family: var(--font-head); font-weight: 600; transition: 0.3s var(--ease);
}
.btn-ghost:hover { border-color: #25D366; color: #128C4B; transform: translateY(-2px); box-shadow: 0 12px 28px -16px rgba(37,211,102,0.7); }
.btn-ghost .ic-svg { width: 20px; height: 20px; color: #25D366; }

/* Services overview grid */
.hero2-orbit { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.9rem; perspective: 1000px; }
.svc-tile {
  position: relative; padding: 1.2rem; border-radius: 18px;
  background: var(--bg-elevated); border: 1px solid var(--glass-border);
  box-shadow: 0 18px 44px -32px rgba(30,58,95,0.45);
  display: flex; flex-direction: column; gap: 0.35rem;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease), border-color 0.4s;
  transform-style: preserve-3d; will-change: transform; color: inherit;
}
.svc-tile:hover { box-shadow: 0 30px 60px -30px rgba(201,164,74,0.5); border-color: rgba(201,164,74,0.45); }
.svc-tile-ic { width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center;
  color: #fff; background: var(--c, var(--blue)); box-shadow: 0 10px 22px -10px var(--c, var(--blue)); }
.svc-tile-ic .ic-svg { width: 24px; height: 24px; }
.svc-tile h3 { font-size: 1.02rem; color: var(--ink); margin-top: 0.3rem; }
.svc-tile p { font-size: 0.78rem; color: var(--text-soft); }

/* ---- 19.2 Manifesto ----------------------------------------------------- */
.manifesto { position: relative; z-index: var(--z-scene); padding: clamp(3rem, 7vh, 5rem) clamp(1.2rem, 5vw, 5rem); text-align: center; }
.manifesto-quote { font-family: var(--font-head); font-weight: 700; font-size: clamp(1.5rem, 4vw, 3rem); line-height: 1.15; max-width: 24ch; margin: 0 auto 1rem; color: var(--ink); }
.manifesto-quote em { color: var(--gold-deep); font-style: normal; }
.manifesto-sub { color: var(--text-soft); max-width: 62ch; margin: 0 auto; }

/* ---- 19.3 Service detail ------------------------------------------------ */
.svc-detail { position: relative; z-index: var(--z-scene); padding: clamp(4rem, 9vh, 7rem) clamp(1.2rem, 5vw, 5rem); overflow: hidden; }
.svc-detail.tint { background: linear-gradient(180deg, rgba(255,255,255,0.55), rgba(236,238,244,0.6)); }
.svc-detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.svc-detail.reverse .svc-media { order: -1; }
.svc-badge { width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; color: #fff;
  background: var(--c, var(--blue)); box-shadow: 0 12px 28px -10px var(--c, var(--blue)); margin-bottom: 1rem; }
.svc-badge .ic-svg { width: 28px; height: 28px; }
.svc-title { font-size: clamp(1.8rem, 4vw, 3rem); margin: 0.5rem 0 1rem; }
.svc-text { color: var(--text-soft); font-size: clamp(1rem, 1.4vw, 1.12rem); max-width: 52ch; }
.feat-list { display: grid; gap: 0.55rem; margin: 1.2rem 0; }
.feat-list li { display: flex; gap: 0.6rem; align-items: flex-start; color: var(--text-soft); font-size: 0.92rem; }
.feat-list .fk { color: var(--success); font-weight: 700; flex: 0 0 auto; }
.feat-list code, .svc-text code { font-family: var(--font-mono); font-size: 0.85em; background: var(--surface); padding: 0.05rem 0.4rem; border-radius: 5px; color: var(--blue); }
.mini-steps { display: flex; flex-wrap: wrap; gap: 0.55rem; margin: 1.2rem 0; }
.mini-step { font-size: 0.78rem; color: var(--text-soft); background: var(--bg-soft); border: 1px solid var(--glass-border); border-radius: 10px; padding: 0.5rem 0.8rem; display: inline-flex; gap: 0.45rem; align-items: center; }
.mini-step b { color: var(--gold-deep); font-family: var(--font-mono); }
.mini-step.gold { border-color: rgba(201,164,74,0.5); background: linear-gradient(120deg, rgba(201,164,74,0.14), transparent); color: var(--ink); }

.svc-media { position: relative; border-radius: 22px; overflow: hidden; aspect-ratio: 4 / 3;
  border: 1px solid var(--glass-border); background: #0d1422; box-shadow: 0 30px 70px -34px rgba(30,58,95,0.5); }
.svc-media img { width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 0.9s var(--ease); }
.svc-media img.loaded { opacity: 0.94; }
.svc-media figcaption { position: absolute; inset: auto 0 0 0; padding: 1rem 1.2rem; color: #fff;
  font-family: var(--font-mono); font-size: 0.78rem; letter-spacing: 0.03em;
  background: linear-gradient(transparent, rgba(13,20,34,0.88)); }

/* ---- 19.4 Responsive ---------------------------------------------------- */
@media (max-width: 940px) {
  .hero2-inner { grid-template-columns: 1fr; gap: 2.2rem; }
  .hero2-orbit { grid-template-columns: repeat(3, 1fr); }
  .svc-detail-grid { grid-template-columns: 1fr; }
  .svc-detail.reverse .svc-media { order: 0; }
  .svc-media { aspect-ratio: 16 / 10; }
}
@media (max-width: 600px) {
  .hero2-orbit { grid-template-columns: repeat(2, 1fr); }
  .hero2-actions { width: 100%; }
  .hero2-actions .btn-magnetic, .hero2-actions .btn-ghost { flex: 1 1 auto; justify-content: center; }
}
@media (max-width: 380px) {
  .hero2-orbit { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .svc-media img.loaded { opacity: 0.94 !important; }
}

/* ==========================================================================
   20. CONSENT BANNER (opt-in)
   ========================================================================== */
.consent {
  position: fixed; left: 50%; bottom: 18px;
  transform: translateX(-50%) translateY(0);
  z-index: 80; width: min(840px, calc(100% - 24px));
  transition: opacity 0.38s var(--ease), transform 0.38s var(--ease);
}
.consent.hide { opacity: 0; transform: translateX(-50%) translateY(24px); pointer-events: none; }
.consent-inner {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem 1.4rem; flex-wrap: wrap;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  border: 1px solid var(--glass-border);
  border-radius: 16px; padding: 1rem 1.3rem;
  box-shadow: 0 28px 70px -30px rgba(30, 58, 95, 0.55);
}
.consent-txt { margin: 0; font-size: 0.85rem; color: var(--text-soft); line-height: 1.5; flex: 1 1 320px; }
.consent-txt b { color: var(--ink); }
.consent-txt a { color: var(--gold-deep); text-decoration: underline; }
.consent-btns { display: flex; gap: 0.6rem; flex: 0 0 auto; }
.consent-accept, .consent-refuse {
  font-family: var(--font-head); font-weight: 600; font-size: 0.85rem;
  padding: 0.65rem 1.3rem; border-radius: 100px; transition: 0.25s var(--ease);
}
.consent-accept {
  color: #16181f; background: linear-gradient(120deg, var(--gold-bright), var(--gold));
  box-shadow: 0 10px 26px -12px rgba(201, 164, 74, 0.8);
}
.consent-accept:hover { transform: translateY(-2px); }
.consent-refuse { color: var(--text-soft); border: 1px solid var(--glass-border); background: rgba(255,255,255,0.6); }
.consent-refuse:hover { color: var(--ink); border-color: var(--text-mute); }
@media (max-width: 560px) {
  .consent-inner { flex-direction: column; align-items: stretch; }
  .consent-btns { justify-content: flex-end; }
}
@media (prefers-reduced-motion: reduce) { .consent { transition: none; } }

/* ==========================================================================
   21. LEGAL / CONTENT PAGE
   ========================================================================== */
body.page-legal { background: var(--bg); }
.legal {
  position: relative; z-index: var(--z-scene);
  max-width: 820px; margin: 0 auto;
  padding: calc(var(--nav-h) + 3rem) clamp(1.2rem, 5vw, 2rem) 5rem;
}
.legal h1 { font-size: clamp(1.8rem, 5vw, 2.8rem); margin-bottom: 0.6rem; }
.legal .updated { font-family: var(--font-mono); font-size: 0.72rem; color: var(--text-mute); letter-spacing: 0.1em; text-transform: uppercase; }
.legal h2 { font-size: 1.25rem; margin: 2rem 0 0.7rem; color: var(--ink); }
.legal p, .legal li { color: var(--text-soft); font-size: 0.95rem; line-height: 1.7; }
.legal ul { margin: 0.4rem 0 0.4rem 1.2rem; list-style: disc; display: grid; gap: 0.3rem; }
.legal a { color: var(--gold-deep); text-decoration: underline; }
.legal .lead { font-size: 1.05rem; color: var(--text); }
.legal .back { display: inline-flex; margin-top: 2.4rem; }

/* ---- 19.5 Reassurance block (form) -------------------------------------- */
.reassure {
  margin: 1.1rem 0 0.2rem; padding: 0.95rem 1.1rem; border-radius: 14px;
  background: linear-gradient(120deg, rgba(31,157,87,0.10), rgba(201,164,74,0.08));
  border: 1px solid rgba(31,157,87,0.28); text-align: center;
}
.reassure .pts { display: flex; flex-wrap: wrap; gap: 0.4rem 1.2rem; justify-content: center; margin-bottom: 0.5rem; }
.reassure .pt { font-size: 0.78rem; color: #128c4b; font-weight: 700; }
.reassure p { font-size: 0.85rem; color: var(--text-soft); margin: 0; line-height: 1.5; }
.reassure p b { color: var(--ink); }
.submit-note { grid-column: 1 / -1; text-align: center; font-size: 0.72rem; color: var(--text-mute); margin-top: 0.3rem; }
