/* =====================================================================
   COTY AGENCY — Design System
   Dark cinematic premium · neon orange #FF6A00 + cyan #00E5FF
   ===================================================================== */

/* ---------- Tokens ---------- */
:root {
  /* Colors */
  --bg: #0A0A0B;
  --bg-2: #0E0F12;
  --bg-3: #14161B;
  --surface: rgba(255, 255, 255, 0.04);
  --surface-2: rgba(255, 255, 255, 0.06);
  --border: rgba(255, 255, 255, 0.10);
  --border-strong: rgba(255, 255, 255, 0.18);

  --orange: #FF6A00;
  --orange-soft: #FF8A2B;
  --cyan: #00E5FF;
  --cyan-soft: #5EEEFF;

  --text: #F4F5F7;
  --text-muted: #A7AEBA;
  --text-dim: #6B7280;

  --grad: linear-gradient(110deg, var(--orange) 0%, var(--orange-soft) 45%, var(--cyan) 100%);
  --grad-text: linear-gradient(100deg, #FFB066 0%, var(--orange) 35%, var(--cyan) 100%);

  /* Typography */
  --font-display: 'Orbitron', 'Segoe UI', sans-serif;
  --font-head: 'Rajdhani', 'Segoe UI', sans-serif;
  --font-body: 'Inter', 'Segoe UI', system-ui, sans-serif;
  --font-mono: 'Share Tech Mono', ui-monospace, monospace;

  /* Shape (COTY octagon signature) */
  --clip-oct: polygon(14px 0, calc(100% - 14px) 0, 100% 14px, 100% calc(100% - 14px), calc(100% - 14px) 100%, 14px 100%, 0 calc(100% - 14px), 0 14px);
  --clip-oct-sm: polygon(9px 0, calc(100% - 9px) 0, 100% 9px, 100% calc(100% - 9px), calc(100% - 9px) 100%, 9px 100%, 0 calc(100% - 9px), 0 9px);
  --radius: 14px;

  /* Effects */
  --glow-orange: 0 0 24px rgba(255, 106, 0, 0.35);
  --glow-cyan: 0 0 24px rgba(0, 229, 255, 0.30);
  --shadow-lg: 0 24px 60px -20px rgba(0, 0, 0, 0.8);

  /* Layout */
  --container: 1200px;
  --nav-h: 72px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);

  /* z-scale */
  --z-nav: 50;
  --z-overlay: 40;
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
ul { list-style: none; padding: 0; }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; border-radius: 4px; }

/* Ambient background glows */
body::before {
  content: "";
  position: fixed; inset: 0; z-index: -2;
  background:
    radial-gradient(60vw 60vw at 12% -5%, rgba(255, 106, 0, 0.10), transparent 60%),
    radial-gradient(55vw 55vw at 100% 18%, rgba(0, 229, 255, 0.08), transparent 60%),
    radial-gradient(50vw 50vw at 50% 110%, rgba(255, 106, 0, 0.06), transparent 60%);
  pointer-events: none;
}
/* Subtle grain */
body::after {
  content: "";
  position: fixed; inset: 0; z-index: -1; opacity: 0.035; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- Layout ---------- */
.container { width: min(100% - 2.5rem, var(--container)); margin-inline: auto; }
.section { padding: clamp(4.5rem, 9vw, 8rem) 0; position: relative; }
.section--tight { padding: clamp(3rem, 6vw, 5rem) 0; }

/* ---------- Typography ---------- */
h1, h2, h3 { font-family: var(--font-display); font-weight: 700; line-height: 1.05; letter-spacing: -0.01em; }
.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.8rem; letter-spacing: 0.3em; text-transform: uppercase;
  color: var(--cyan); display: inline-flex; align-items: center; gap: 0.6rem; margin-bottom: 1.1rem;
}
.eyebrow::before { content: ""; width: 26px; height: 1px; background: var(--cyan); opacity: 0.6; }
.h-xl { font-size: clamp(2.6rem, 7vw, 5.2rem); }
.h-lg { font-size: clamp(2rem, 4.5vw, 3.4rem); }
.h-md { font-family: var(--font-head); font-weight: 700; font-size: clamp(1.3rem, 2vw, 1.6rem); letter-spacing: 0; }
.lead { font-size: clamp(1.05rem, 1.4vw, 1.25rem); color: var(--text-muted); max-width: 60ch; }
.muted { color: var(--text-muted); }
.grad-text {
  background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.section-head { max-width: 64ch; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head.center .eyebrow { justify-content: center; }

/* ---------- Buttons ---------- */
.btn {
  --pad: 0.95rem 1.6rem;
  display: inline-flex; align-items: center; gap: 0.6rem;
  padding: var(--pad);
  font-family: var(--font-head); font-weight: 600; font-size: 1.02rem; letter-spacing: 0.02em;
  clip-path: var(--clip-oct-sm);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.25s var(--ease), color 0.25s var(--ease);
  position: relative; white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; }
.btn--primary { background: var(--grad); color: #0A0A0B; font-weight: 700; box-shadow: var(--glow-orange); }
.btn--primary:hover { box-shadow: 0 0 34px rgba(255, 106, 0, 0.55); transform: translateY(-2px); }
.btn--ghost { background: var(--surface); color: var(--text); box-shadow: inset 0 0 0 1px var(--border-strong); }
.btn--ghost:hover { background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--cyan); color: #fff; transform: translateY(-2px); }
.btn--block { width: 100%; justify-content: center; }
.btn:disabled { opacity: 0.55; cursor: not-allowed; transform: none; }

/* ---------- Navbar ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: var(--z-nav);
  height: var(--nav-h);
  display: flex; align-items: center;
  transition: background 0.3s var(--ease), backdrop-filter 0.3s var(--ease), border-color 0.3s var(--ease);
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(10, 10, 11, 0.72);
  backdrop-filter: blur(14px) saturate(140%);
  border-bottom-color: var(--border);
}
.nav__inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; width: 100%; }
.brand { display: flex; align-items: center; gap: 0.7rem; }
.brand__mark { width: 38px; height: 38px; filter: drop-shadow(0 0 8px rgba(0, 229, 255, 0.25)); }
.brand__text { display: flex; flex-direction: column; line-height: 1; }
.brand__name { font-family: var(--font-display); font-weight: 800; font-size: 1.15rem; letter-spacing: 0.02em; }
.brand__sub { font-family: var(--font-mono); font-size: 0.6rem; letter-spacing: 0.42em; color: var(--cyan); margin-top: 3px; }
.nav__links { display: flex; align-items: center; gap: 2rem; }
.nav__links a { font-family: var(--font-head); font-weight: 500; font-size: 1.02rem; color: var(--text-muted); transition: color 0.2s; position: relative; }
.nav__links a::after { content: ""; position: absolute; left: 0; bottom: -6px; height: 2px; width: 0; background: var(--grad); transition: width 0.25s var(--ease); }
.nav__links a:hover { color: var(--text); }
.nav__links a:hover::after { width: 100%; }
.nav__actions { display: flex; align-items: center; gap: 0.9rem; }

/* Language switcher */
.lang { display: flex; align-items: center; gap: 2px; font-family: var(--font-mono); font-size: 0.78rem; padding: 4px; background: var(--surface); clip-path: var(--clip-oct-sm); box-shadow: inset 0 0 0 1px var(--border); }
.lang a { padding: 3px 8px; color: var(--text-dim); border-radius: 3px; transition: color 0.2s, background 0.2s; }
.lang a.active { color: #0A0A0B; background: var(--grad); font-weight: 700; }
.lang a:not(.active):hover { color: var(--text); }

/* Mobile menu */
.nav__toggle { display: none; width: 44px; height: 44px; align-items: center; justify-content: center; }
.nav__toggle span, .nav__toggle span::before, .nav__toggle span::after { content: ""; display: block; width: 22px; height: 2px; background: var(--text); transition: transform 0.3s var(--ease), opacity 0.2s; position: relative; }
.nav__toggle span::before { position: absolute; top: -7px; }
.nav__toggle span::after { position: absolute; top: 7px; }
body.menu-open .nav__toggle span { background: transparent; }
body.menu-open .nav__toggle span::before { transform: rotate(45deg) translate(5px, 5px); }
body.menu-open .nav__toggle span::after { transform: rotate(-45deg) translate(5px, -5px); }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 100svh; display: flex; align-items: center; overflow: hidden; padding-top: var(--nav-h); }
.hero__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.hero__overlay {
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(90deg, rgba(10,10,11,0.94) 0%, rgba(10,10,11,0.72) 42%, rgba(10,10,11,0.30) 100%),
    linear-gradient(0deg, rgba(10,10,11,0.95) 0%, transparent 42%, rgba(10,10,11,0.55) 100%);
}
.hero__inner { max-width: 760px; padding-block: 4rem; }
.hero h1 { margin-bottom: 1.5rem; }
.hero .lead { margin-bottom: 2.2rem; font-size: clamp(1.1rem, 1.6vw, 1.35rem); }
.hero__cta { display: flex; flex-wrap: wrap; gap: 1rem; margin-bottom: 2.6rem; }
.hero__stats { display: flex; flex-wrap: wrap; gap: clamp(1.5rem, 4vw, 3rem); }
.hero__stat .n { font-family: var(--font-display); font-weight: 700; font-size: 1.9rem; background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero__stat .l { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--text-dim); }
.scroll-hint { position: absolute; bottom: 1.6rem; left: 50%; transform: translateX(-50%); font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.3em; color: var(--text-dim); display: flex; flex-direction: column; align-items: center; gap: 8px; }
.scroll-hint .bar { width: 1px; height: 34px; background: linear-gradient(var(--cyan), transparent); animation: scrolldot 2s var(--ease) infinite; }
@keyframes scrolldot { 0% { transform: scaleY(0); transform-origin: top; } 50% { transform: scaleY(1); transform-origin: top; } 51% { transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }

/* ---------- Marquee (logos / keywords) ---------- */
.marquee { border-block: 1px solid var(--border); padding: 1.2rem 0; overflow: hidden; background: rgba(255,255,255,0.015); }
.marquee__track { display: flex; gap: 3rem; width: max-content; animation: marquee 32s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__item { font-family: var(--font-mono); font-size: 0.82rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--text-dim); display: flex; align-items: center; gap: 3rem; }
.marquee__item::after { content: "◆"; color: var(--orange); opacity: 0.5; font-size: 0.6rem; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Services (bento-ish grid) ---------- */
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
.card {
  position: relative; padding: 2rem 1.8rem; background: var(--surface); clip-path: var(--clip-oct);
  box-shadow: inset 0 0 0 1px var(--border);
  transition: transform 0.3s var(--ease), background 0.3s var(--ease), box-shadow 0.3s var(--ease);
  overflow: hidden;
}
.card::after { content: ""; position: absolute; inset: 0; background: var(--grad); opacity: 0; transition: opacity 0.3s; clip-path: var(--clip-oct); mix-blend-mode: overlay; pointer-events: none; }
.card:hover { transform: translateY(-6px); background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--cyan), var(--shadow-lg); }
.card:hover::after { opacity: 0.08; }
.card__icon { width: 78px; height: 78px; margin-bottom: 1.3rem; clip-path: var(--clip-oct-sm); box-shadow: inset 0 0 0 1px rgba(255,106,0,0.30); overflow: hidden; background: #0b0b0e; }
.card__icon img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.4s var(--ease), filter 0.3s var(--ease); }
.card:hover .card__icon img { transform: scale(1.06); filter: saturate(1.15) brightness(1.08); }
.card h3 { font-family: var(--font-head); font-weight: 700; font-size: 1.35rem; letter-spacing: 0; margin-bottom: 0.6rem; }
.card p { color: var(--text-muted); font-size: 0.97rem; }
.card__tags { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: 1.2rem; }
.tag { font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.06em; color: var(--cyan-soft); padding: 3px 9px; background: rgba(0,229,255,0.07); box-shadow: inset 0 0 0 1px rgba(0,229,255,0.2); border-radius: 3px; }

/* ---------- Case studies ---------- */
.cases { display: grid; gap: 1.4rem; }
.case {
  display: grid; grid-template-columns: 1.1fr 1fr; gap: 2.5rem; align-items: center;
  padding: clamp(1.8rem, 3vw, 3rem); background: linear-gradient(135deg, var(--bg-2), var(--bg-3));
  clip-path: var(--clip-oct); box-shadow: inset 0 0 0 1px var(--border);
}
.case:nth-child(even) .case__media { order: -1; }
.case__num { font-family: var(--font-mono); color: var(--orange); font-size: 0.8rem; letter-spacing: 0.2em; }
.case h3 { font-family: var(--font-head); font-size: clamp(1.5rem, 2.5vw, 2.1rem); font-weight: 700; letter-spacing: 0; margin: 0.5rem 0 0.9rem; }
.case p { color: var(--text-muted); margin-bottom: 1.4rem; }
.case__metrics { display: flex; gap: 2rem; flex-wrap: wrap; }
.case__metric .n { font-family: var(--font-display); font-weight: 700; font-size: 1.6rem; background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; }
.case__metric .l { font-size: 0.8rem; color: var(--text-dim); }
.case__media { position: relative; aspect-ratio: 4/3; clip-path: var(--clip-oct); background: var(--bg); display: grid; place-items: center; box-shadow: inset 0 0 0 1px var(--border); overflow: hidden; }
.case__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.case__media::after { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 50% 120%, rgba(255,106,0,0.16), transparent 55%); mix-blend-mode: screen; pointer-events: none; }
.case__stack { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: 1.2rem; }

/* ---------- Process ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem; counter-reset: step; }
.step { position: relative; padding: 1.8rem 1.5rem; background: var(--surface); clip-path: var(--clip-oct); box-shadow: inset 0 0 0 1px var(--border); }
.step__n { font-family: var(--font-display); font-weight: 800; font-size: 2.6rem; line-height: 1; background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; opacity: 0.85; margin-bottom: 1rem; }
.step h3 { font-family: var(--font-head); font-weight: 700; font-size: 1.25rem; letter-spacing: 0; margin-bottom: 0.5rem; }
.step p { font-size: 0.92rem; color: var(--text-muted); }

/* ---------- About / split ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.about__list { display: grid; gap: 1.1rem; margin-top: 1.8rem; }
.about__item { display: flex; gap: 0.9rem; align-items: flex-start; }
.about__item svg { width: 22px; height: 22px; stroke: var(--cyan); flex-shrink: 0; margin-top: 2px; }
.about__visual { position: relative; aspect-ratio: 1; display: grid; place-items: center; }
.about__visual .ring { position: absolute; border: 1px solid var(--border); border-radius: 50%; z-index: 1; }
.about__visual .about__core { position: absolute; width: 96%; height: 96%; object-fit: contain; opacity: 0.55; border-radius: 50%; z-index: 0; }
.about__visual .about__logo { position: relative; z-index: 2; width: 42%; filter: drop-shadow(0 0 30px rgba(0,229,255,0.25)); animation: float 6s var(--ease) infinite; }
@keyframes float { 0%,100% { transform: translateY(-8px); } 50% { transform: translateY(8px); } }

/* ---------- Blog teaser ---------- */
.posts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
.post { display: flex; flex-direction: column; padding: 1.8rem; background: var(--surface); clip-path: var(--clip-oct); box-shadow: inset 0 0 0 1px var(--border); transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease); }
.post:hover { transform: translateY(-5px); box-shadow: inset 0 0 0 1px var(--cyan), var(--shadow-lg); }
.post__meta { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.1em; color: var(--text-dim); text-transform: uppercase; margin-bottom: 0.9rem; }
.post h3 { font-family: var(--font-head); font-weight: 700; font-size: 1.3rem; letter-spacing: 0; line-height: 1.25; margin-bottom: 0.7rem; }
.post p { color: var(--text-muted); font-size: 0.94rem; flex-grow: 1; }
.post__link { margin-top: 1.2rem; font-family: var(--font-head); font-weight: 600; color: var(--cyan); display: inline-flex; align-items: center; gap: 0.4rem; }
.post:hover .post__link { gap: 0.7rem; }

/* ---------- CTA band ---------- */
.cta-band { position: relative; text-align: center; padding: clamp(3.5rem, 7vw, 6rem) clamp(1.5rem, 5vw, 4rem); background: linear-gradient(135deg, rgba(255,106,0,0.12), rgba(0,229,255,0.10)); clip-path: var(--clip-oct); box-shadow: inset 0 0 0 1px var(--border-strong); overflow: hidden; }
.cta-band::before { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 50% 0%, rgba(255,106,0,0.18), transparent 60%); }
.cta-band > * { position: relative; }
.cta-band h2 { margin-bottom: 1rem; }
.cta-band p { color: var(--text-muted); max-width: 52ch; margin: 0 auto 2rem; }

/* ---------- Product spotlight (Orbit) ---------- */
.spotlight { position: relative; clip-path: var(--clip-oct); overflow: hidden; box-shadow: inset 0 0 0 1px var(--border-strong); min-height: 460px; display: flex; align-items: center; }
.spotlight__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.spotlight::after { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg, rgba(10,10,11,0.96) 0%, rgba(10,10,11,0.86) 40%, rgba(10,10,11,0.35) 72%, rgba(10,10,11,0.15) 100%); }
.spotlight__content { position: relative; z-index: 2; max-width: 620px; padding: clamp(2rem, 5vw, 3.6rem); }
.badge { display: inline-flex; align-items: center; gap: 0.5rem; font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.18em; text-transform: uppercase; color: #0A0A0B; background: var(--grad); padding: 5px 12px; clip-path: var(--clip-oct-sm); font-weight: 700; margin-bottom: 1.2rem; }
.spotlight h2 { font-size: clamp(1.9rem, 4vw, 3rem); margin-bottom: 0.9rem; }
.spotlight__lead { color: var(--text-muted); font-size: clamp(1.02rem, 1.4vw, 1.2rem); max-width: 48ch; margin-bottom: 1.6rem; }
.spotlight__feats { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1.8rem; }
.spotlight__cta { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; }
.spotlight__link { font-family: var(--font-mono); font-size: 0.82rem; letter-spacing: 0.08em; color: var(--cyan); }

/* ---------- Forms ---------- */
.form { display: grid; gap: 1.2rem; }
.field { display: grid; gap: 0.5rem; }
.field label { font-family: var(--font-head); font-weight: 600; font-size: 0.95rem; }
.field input, .field textarea, .field select {
  width: 100%; padding: 0.85rem 1rem; background: var(--bg-2); color: var(--text);
  font: inherit; clip-path: var(--clip-oct-sm); box-shadow: inset 0 0 0 1px var(--border);
  transition: box-shadow 0.2s; border: none;
}
.field input:focus, .field textarea:focus, .field select:focus { outline: none; box-shadow: inset 0 0 0 1px var(--cyan), 0 0 0 3px rgba(0,229,255,0.12); }
.field textarea { resize: vertical; min-height: 140px; }
.field--row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; }
.hp { position: absolute; left: -9999px; opacity: 0; pointer-events: none; }
.form__status { font-family: var(--font-head); font-weight: 600; padding: 0.9rem 1rem; clip-path: var(--clip-oct-sm); display: none; }
.form__status.ok { display: block; background: rgba(0,229,255,0.10); color: var(--cyan-soft); box-shadow: inset 0 0 0 1px rgba(0,229,255,0.3); }
.form__status.err { display: block; background: rgba(255,80,80,0.10); color: #ff9b9b; box-shadow: inset 0 0 0 1px rgba(255,80,80,0.3); }
.field .err-msg { color: #ff9b9b; font-size: 0.82rem; display: none; }
.field.invalid input, .field.invalid textarea { box-shadow: inset 0 0 0 1px #ff5050; }
.field.invalid .err-msg { display: block; }

/* Contact layout */
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.contact-info { display: grid; gap: 1.6rem; }
.contact-info__item { display: flex; gap: 1rem; align-items: flex-start; }
.contact-info__item svg { width: 24px; height: 24px; stroke: var(--orange); flex-shrink: 0; margin-top: 3px; }
.contact-info__item .l { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.15em; text-transform: uppercase; color: var(--text-dim); }
.contact-info__item .v { font-family: var(--font-head); font-weight: 600; font-size: 1.05rem; }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--border); padding: clamp(3rem, 5vw, 4rem) 0 2rem; background: var(--bg-2); }
.footer__top { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 2rem; margin-bottom: 3rem; }
.footer__brand p { color: var(--text-muted); font-size: 0.95rem; max-width: 34ch; margin-top: 1rem; }
.footer__col h4 { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--cyan); margin-bottom: 1.1rem; }
.footer__col a { display: block; color: var(--text-muted); padding: 0.35rem 0; transition: color 0.2s; }
.footer__col a:hover { color: var(--text); }
.footer__bottom { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; padding-top: 1.6rem; border-top: 1px solid var(--border); font-size: 0.85rem; color: var(--text-dim); }

/* ---------- Article / prose ---------- */
.article { max-width: 760px; margin-inline: auto; }
.breadcrumb { font-family: var(--font-mono); font-size: 0.78rem; letter-spacing: 0.08em; color: var(--text-dim); margin-bottom: 1.5rem; }
.breadcrumb a { color: var(--cyan); }
.article__meta { font-family: var(--font-mono); font-size: 0.78rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-dim); margin: 1rem 0 2.4rem; display: flex; gap: 1.2rem; flex-wrap: wrap; }
.prose { font-size: 1.08rem; color: #D7DBE2; }
.prose > * + * { margin-top: 1.3rem; }
.prose h2 { font-family: var(--font-head); font-weight: 700; font-size: clamp(1.5rem, 3vw, 2rem); letter-spacing: 0; margin-top: 2.8rem; color: var(--text); }
.prose h3 { font-family: var(--font-head); font-weight: 700; font-size: 1.3rem; letter-spacing: 0; margin-top: 2rem; color: var(--text); }
.prose p { line-height: 1.8; }
.prose a { color: var(--cyan); text-decoration: underline; text-underline-offset: 3px; }
.prose ul, .prose ol { padding-left: 1.4rem; display: grid; gap: 0.7rem; }
.prose li { line-height: 1.7; }
.prose li::marker { color: var(--orange); }
.prose strong { color: var(--text); }
.prose blockquote { border-left: 3px solid var(--orange); padding: 0.6rem 0 0.6rem 1.4rem; color: var(--text-muted); font-style: italic; background: var(--surface); clip-path: var(--clip-oct-sm); padding-right: 1.2rem; }
.prose code { font-family: var(--font-mono); font-size: 0.92em; background: var(--bg-3); padding: 2px 7px; border-radius: 4px; color: var(--cyan-soft); }
.article__cta { margin-top: 3.5rem; padding-top: 2.5rem; border-top: 1px solid var(--border); }

/* ---------- Scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: 0.08s; }
.reveal[data-delay="2"] { transition-delay: 0.16s; }
.reveal[data-delay="3"] { transition-delay: 0.24s; }

/* ---------- Ride : navigation cockpit (sans capture du scroll) ---------- */
.ride-mode main > section { will-change: transform; }
/* Fond OPAQUE pendant le ride (sauf le hero qui a sa video) : les sections s'occultent
   au lieu de transparaitre les unes derriere les autres quand elles plongent en 3D. */
.ride-mode main > section:not(.hero) { background: var(--bg); }
.ride-mode .cockpit { position: fixed; inset: 0; z-index: 5; pointer-events: none; }
.ride-mode .cockpit__vignette { position: absolute; inset: 0; box-shadow: inset 0 0 150px 30px rgba(0,0,0,0.5), inset 0 0 55px rgba(0,0,0,0.35); }
.ride-mode .cockpit .speedlines { position: absolute; inset: 0; opacity: 0; transition: opacity 0.12s linear; mix-blend-mode: screen;
  background: repeating-radial-gradient(circle at 50% 45%, transparent 0 44px, rgba(0,229,255,0.06) 44px 45px, transparent 45px 48px); }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .services-grid, .posts { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .case, .split, .contact-grid { grid-template-columns: 1fr; gap: 2rem; }
  .case:nth-child(even) .case__media, .case__media { order: 0; }
  .case__media { max-width: 480px; }
}
@media (max-width: 720px) {
  .nav__links, .nav__actions .btn { display: none; }
  .nav__toggle { display: flex; }
  .nav__links {
    position: fixed; inset: var(--nav-h) 0 auto 0; flex-direction: column; gap: 0; align-items: stretch;
    background: rgba(10,10,11,0.97); backdrop-filter: blur(16px); border-bottom: 1px solid var(--border);
    padding: 1rem 1.25rem 1.5rem; transform: translateY(-120%); transition: transform 0.35s var(--ease); z-index: var(--z-overlay);
  }
  body.menu-open .nav__links { transform: none; display: flex; }
  .nav__links a { padding: 0.9rem 0; border-bottom: 1px solid var(--border); font-size: 1.1rem; }
  .nav__links a::after { display: none; }
  .services-grid, .posts { grid-template-columns: 1fr; }
  .field--row { grid-template-columns: 1fr; }
  .footer__top { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
  .spotlight { min-height: 0; }
  .spotlight::after { background: linear-gradient(180deg, rgba(10,10,11,0.62) 0%, rgba(10,10,11,0.9) 60%, rgba(10,10,11,0.96) 100%); }
}
@media (max-width: 460px) {
  .steps { grid-template-columns: 1fr; }
  .hero__cta { flex-direction: column; align-items: stretch; }
  .hero__cta .btn { justify-content: center; }
}

/* ---------- Reduced motion ---------- */
@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; }
  .reveal { opacity: 1; transform: none; }
  .hero__video { display: none; }
  .cockpit { display: none; }
  .ride-mode main > section { transform: none !important; opacity: 1 !important; }
}
