/* ======================================================================
   TERRAXPERTISE — Editorial / Cinematic / Luxury
   Palette: Dark navy #080C14 + Gold #C9A84C
   Type:    Cormorant Garamond (headings) + Syne (body)
   ====================================================================== */

/* ---------- Design tokens ---------- */
:root {
  --navy-950: #050810;
  --navy-900: #080C14;        /* primary background */
  --navy-800: #0C111C;
  --navy-700: #121826;
  --navy-600: #1A2233;
  --line:     rgba(201, 168, 76, 0.18);
  --line-strong: rgba(201, 168, 76, 0.32);

  --gold-500: #C9A84C;        /* primary accent */
  --gold-400: #D4B968;
  --gold-300: #E2CB85;
  --gold-100: #F4ECD8;        /* warm white text */

  --text:      #ECE6D6;
  --text-muted:#9AA0AC;
  --text-soft: #B8B5A8;

  --maxw: 1280px;
  --pad-x: clamp(1.25rem, 4vw, 3.5rem);

  --radius: 2px;
  --shadow-soft: 0 30px 60px -30px rgba(0,0,0,.6), 0 1px 0 rgba(201,168,76,.04) inset;

  --ease-cinema: cubic-bezier(.2, .7, .2, 1);
  --ease-spring: cubic-bezier(.34, 1.56, .64, 1);

  --font-head: 'Cormorant Garamond', 'Cormorant', Georgia, 'Times New Roman', serif;
  --font-body: 'Syne', 'Inter', system-ui, -apple-system, Segoe UI, sans-serif;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--navy-900);
  color: var(--text);
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.65;
  letter-spacing: 0.005em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button { font: inherit; cursor: pointer; border: 0; background: transparent; color: inherit; }

/* ---------- Selection / focus ---------- */
::selection { background: var(--gold-500); color: var(--navy-900); }
:focus-visible { outline: 2px solid var(--gold-500); outline-offset: 3px; border-radius: 2px; }

/* =====================================================================
   INTRO — one-time drone flyover overlay
   ===================================================================== */
.intro {
  position: fixed; inset: 0;
  z-index: 200;                /* sits above nav + grain */
  pointer-events: none;
  display: none;               /* hidden by default; JS shows it on first session load */
  background:
    radial-gradient(60% 50% at 50% 50%, rgba(201, 168, 76, .05), transparent 70%),
    rgba(8, 12, 20, .96);
  opacity: 0;
}
.intro.is-active { display: block; }

.intro__drone {
  position: absolute;
  top: 50%; left: 0;
  width: clamp(64px, 7vw, 100px);
  aspect-ratio: 120 / 80;
  transform: translate(-160%, -50%);
  filter: drop-shadow(0 8px 22px rgba(201, 168, 76, .5));
  will-change: transform, opacity;
  color: var(--gold-500);
}
.intro__rotor {
  transform-box: fill-box;
  transform-origin: center;
  animation: rotor-spin .35s linear infinite;
}
@keyframes rotor-spin { to { transform: rotate(360deg); } }

.intro__trail {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  filter: drop-shadow(0 0 6px rgba(201,168,76,.45));
}
.intro__trail path {
  stroke-dashoffset: 1;
  stroke-dasharray: 1;
  opacity: 0;
  /* JS animates stroke-dashoffset to draw the path as the drone moves */
}

/* Cinematic letterbox bars during intro */
.intro__bar {
  position: absolute;
  left: 0; right: 0;
  background: #000;
  z-index: 5;                          /* above intro media */
  height: 0;
  pointer-events: none;
  will-change: height;
  box-shadow: 0 0 40px rgba(0,0,0,.8);
}
.intro__bar--top    { top: 0;    }
.intro__bar--bottom { bottom: 0; }

/* During the intro, hero content stays cleanly hidden (already opacity:0 via [data-anim]) */
body.intro-playing { overflow: hidden; }

/* Reduced motion — never play the intro */
@media (prefers-reduced-motion: reduce) {
  .intro { display: none !important; }
}

/* ---------- Grain / texture ---------- */
.grain {
  position: fixed; inset: 0;
  pointer-events: none; z-index: 100;
  opacity: .035; mix-blend-mode: overlay;
  background-image:
    radial-gradient(rgba(255,255,255,.6) 1px, transparent 1px),
    radial-gradient(rgba(255,255,255,.4) 1px, transparent 1px);
  background-size: 3px 3px, 7px 7px;
  background-position: 0 0, 1px 2px;
}

/* ---------- Scroll progress line ---------- */
.scroll-progress {
  position: fixed; top: 0; left: 0;
  height: 1px; width: 0%;
  background: linear-gradient(90deg, var(--gold-500), var(--gold-300));
  z-index: 90;
  box-shadow: 0 0 10px rgba(201, 168, 76, .6);
  transition: width .15s linear;
}

/* =====================================================================
   NAV
   ===================================================================== */
.nav {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 80;
  padding: .55rem var(--pad-x);
  transition: background .4s var(--ease-cinema), backdrop-filter .4s var(--ease-cinema), border-color .4s var(--ease-cinema), padding .4s var(--ease-cinema);
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled {
  padding: .35rem var(--pad-x);
  background: rgba(8, 12, 20, .72);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom-color: var(--line);
}

.nav__inner {
  max-width: var(--maxw);
  margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  gap: 2rem;
}

.nav__brand {
  display: inline-flex; align-items: center; gap: .75rem;
  color: var(--gold-500);
  transition: transform .35s var(--ease-spring);
}
.nav__brand:hover { transform: translateY(-1px); }
.nav__logo {
  width: 78px; height: 78px;
  display: block;
  margin-top: -.4rem;
  margin-bottom: 0;
  filter: drop-shadow(0 6px 18px rgba(201,168,76,.22));
  transition: width .4s var(--ease-cinema), height .4s var(--ease-cinema), filter .4s var(--ease-cinema);
}
.nav.is-scrolled .nav__logo {
  width: 56px; height: 56px;
  margin-top: -.2rem;
  margin-bottom: 0;
  filter: drop-shadow(0 3px 10px rgba(201,168,76,.28));
}
@media (max-width: 600px) {
  .nav__logo { width: 60px; height: 60px; }
  .nav.is-scrolled .nav__logo { width: 46px; height: 46px; }
}
.nav__word {
  font-family: var(--font-head);
  font-size: 1.35rem;
  font-weight: 500;
  color: var(--text);
  letter-spacing: .02em;
  display: inline-flex;
  align-items: center;
  gap: 0;
}

/* Screen-reader-only text — keeps "TerraXpertise" intact for assistive tech */
.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;
}

/* Drone-shaped X glyph inside the wordmark */
.brand-drone-x {
  width: 1.05em;
  height: 1.05em;
  margin: 0 .04em;
  color: var(--gold-500);
  filter: drop-shadow(0 1px 4px rgba(201, 168, 76, .35));
  transition: transform .5s var(--ease-spring), color .35s var(--ease-cinema);
  vertical-align: -.08em;
}
.nav__brand:hover .brand-drone-x { transform: rotate(45deg); color: var(--gold-300); }

/* Hero-sized drone-X: slightly more refined strokes at giant scale */
.brand-drone-x--hero {
  width: .95em;
  height: .95em;
  margin: 0 .02em -.05em;
  filter: drop-shadow(0 4px 18px rgba(201, 168, 76, .35));
  animation: drone-hover-float 5s ease-in-out infinite;
}
@keyframes drone-hover-float {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50%      { transform: translateY(-3px) rotate(2deg); }
}

/* Footer drone-X follows the standard size — already styled via .brand-drone-x */

.nav__links {
  display: flex; gap: 2.2rem;
  font-family: var(--font-body);
  font-size: .82rem;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.nav__links a {
  position: relative;
  transition: color .3s var(--ease-cinema);
}
.nav__links a::after {
  content: ""; position: absolute; left: 0; bottom: -6px;
  width: 100%; height: 1px; background: var(--gold-500);
  transform: scaleX(0); transform-origin: left center;
  transition: transform .35s var(--ease-cinema);
}
.nav__links a:hover { color: var(--gold-300); }
.nav__links a:hover::after { transform: scaleX(1); }

.nav__cta { font-size: .78rem; }

@media (max-width: 880px) {
  .nav__links { display: none; }
  .nav__cta   { display: none; }
}

/* =====================================================================
   BUTTONS
   ===================================================================== */
.btn {
  display: inline-flex; align-items: center; gap: .65rem;
  padding: .9rem 1.4rem;
  font-family: var(--font-body);
  font-size: .82rem;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  transition: transform .35s var(--ease-spring), background .3s var(--ease-cinema), color .3s var(--ease-cinema), border-color .3s var(--ease-cinema), box-shadow .35s var(--ease-cinema);
  will-change: transform;
}
.btn:hover { transform: translateY(-2px); }

.btn--gold {
  background: var(--gold-500); color: var(--navy-900);
  border-color: var(--gold-500);
  box-shadow: 0 10px 40px -10px rgba(201, 168, 76, .55);
}
.btn--gold:hover {
  background: var(--gold-400); border-color: var(--gold-400);
  box-shadow: 0 16px 50px -10px rgba(201, 168, 76, .7);
}

.btn--ghost {
  background: transparent; color: var(--text);
}
.btn--ghost:hover {
  background: rgba(201, 168, 76, .08);
  border-color: var(--gold-500);
  color: var(--gold-300);
}

/* =====================================================================
   COMMON SECTION
   ===================================================================== */
.section {
  position: relative;
  padding: clamp(5rem, 10vw, 9rem) var(--pad-x);
  max-width: var(--maxw); margin: 0 auto;
}
.section__head { max-width: 880px; margin-bottom: clamp(3rem, 6vw, 5rem); }
.section__title {
  font-family: var(--font-head);
  font-weight: 400;
  font-size: clamp(2.4rem, 5.6vw, 4.6rem);
  line-height: 1.05;
  letter-spacing: -.015em;
  margin: 1rem 0 1.5rem;
  color: var(--text);
}
.section__title em {
  font-style: italic;
  color: var(--gold-300);
  font-weight: 400;
}
.section__lede {
  max-width: 60ch;
  font-size: 1.05rem;
  color: var(--text-soft);
  line-height: 1.7;
}

/* Eyebrow label */
.eyebrow {
  display: inline-flex; align-items: center; gap: .8rem;
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: var(--gold-500);
  margin: 0 0 .25rem;
}
/* Hero eyebrow sticks right under the nav/logo column */
.hero .eyebrow { margin-top: .15rem; }
.eyebrow__dot {
  width: 6px; height: 6px;
  background: var(--gold-500);
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(201,168,76,.12);
}

/* =====================================================================
   HERO
   ===================================================================== */
.hero {
  position: relative;
  min-height: 100svh;
  height: 100svh;
  max-height: 1100px;
  padding: clamp(6.5rem, 11.5vh, 8rem) var(--pad-x) clamp(2.5rem, 5vh, 3.5rem);
  display: flex; align-items: flex-start;
  overflow: hidden;
  isolation: isolate;
}
.hero__media {
  position: absolute; inset: 0; z-index: -1;
  overflow: hidden;
  background: linear-gradient(180deg, var(--navy-900) 0%, var(--navy-950) 100%);
}
.hero__poster,
.hero__video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  filter: saturate(.78) contrast(1.05);
}
.hero__poster { z-index: 1; }
.hero__video  { z-index: 2; }
.hero__overlay {
  position: absolute; inset: 0; z-index: 3;
  background:
    linear-gradient(180deg, rgba(8,12,20,.55) 0%, rgba(8,12,20,.78) 60%, rgba(5,8,16,.95) 100%),
    radial-gradient(80% 60% at 50% 0%, rgba(201, 168, 76, .14), transparent 60%);
}
.hero__media .topo {
  position: absolute; inset: 0; z-index: 4;
  width: 100%; height: 100%;
  opacity: .9;
}
/* If the video file is missing, the broken video element collapses — keep poster visible */
.hero__video:not([src])[poster] { display: block; }
.hero__inner {
  position: relative;
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
}

.hero__title {
  font-family: var(--font-head);
  font-weight: 400;
  font-size: clamp(2.4rem, 6.4vw, 5.6rem);
  line-height: 1.02;
  letter-spacing: -.025em;
  margin: 1rem 0 1.4rem;
  color: var(--text);
}
.hero__title .line { display: block; overflow: hidden; }
.hero__title em { font-style: italic; color: var(--gold-300); }
.hero__title-accent {
  background: linear-gradient(120deg, var(--gold-300), var(--gold-500) 50%, var(--gold-400));
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
  font-style: italic;
}

/* Editorial lede block — pull-quote left rule, layered typography */
.hero__lede {
  position: relative;
  max-width: 56ch;
  margin: 0 0 1.8rem;
  padding-left: clamp(1rem, 1.4vw, 1.5rem);
}
.hero__lede::before {
  content: "";
  position: absolute;
  left: 0; top: .35em; bottom: .35em;
  width: 1px;
  background: linear-gradient(180deg, transparent 0%, var(--gold-500) 25%, var(--gold-500) 75%, transparent 100%);
  opacity: .85;
}

.hero__lede-main {
  font-family: var(--font-head);
  font-weight: 400;
  font-size: clamp(1.15rem, 1.6vw, 1.5rem);
  line-height: 1.32;
  letter-spacing: -.005em;
  color: var(--gold-100);
  margin: 0 0 .85rem;
}
.hero__lede-main em {
  font-style: italic;
  background: linear-gradient(120deg, var(--gold-300), var(--gold-500) 55%, var(--gold-400));
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
}
.hero__lede-main strong {
  font-weight: 500;
  font-style: normal;
  color: var(--text);
}

.hero__lede-disciplines {
  margin: 0 0 .85rem;
  font-family: var(--font-body);
  font-size: clamp(.7rem, .85vw, .8rem);
  font-weight: 500;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--text);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .5rem .65rem;
}
.hero__lede-disciplines span { white-space: nowrap; }
.hero__lede-disciplines i {
  font-style: normal;
  color: var(--gold-500);
  font-size: 1.1em;
  line-height: 1;
  user-select: none;
}

.hero__lede-sub {
  margin: 0;
  font-family: var(--font-body);
  font-size: clamp(.88rem, 1vw, .98rem);
  line-height: 1.65;
  color: var(--text-soft);
  max-width: 52ch;
}
.hero__lede-sub strong {
  font-weight: 500;
  color: var(--gold-300);
}

.hero__actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-bottom: clamp(1.5rem, 4vh, 2.5rem); }

.hero__stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(.8rem, 1.6vw, 1.4rem);
  border-top: 1px solid var(--line);
  padding-top: 1rem;
  margin: 0;
}
.hero__stats div { display: flex; flex-direction: column; gap: .25rem; }
.hero__stats dt {
  font-size: .65rem;
  font-weight: 500;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.hero__stats dd {
  margin: 0;
  font-family: var(--font-head);
  font-size: clamp(1rem, 1.4vw, 1.3rem);
  font-weight: 500;
  color: var(--gold-300);
  letter-spacing: -.005em;
  line-height: 1.2;
}
@media (max-width: 720px) {
  .hero__stats { grid-template-columns: repeat(2, 1fr); }
}

/* (Hero scroll indicator removed — marquee section below invites scrolling) */

/* =====================================================================
   MANIFESTO — single oversized editorial line
   ===================================================================== */
.manifesto {
  text-align: center;
  padding-top: clamp(4rem, 8vw, 7rem);
  padding-bottom: clamp(4rem, 8vw, 7rem);
  border-top: 1px solid var(--line);
}
.manifesto .eyebrow { display: inline-flex; }
.manifesto__line {
  font-family: var(--font-head);
  font-weight: 400;
  font-size: clamp(2rem, 5.6vw, 4.4rem);
  line-height: 1.15;
  letter-spacing: -.015em;
  margin: 1.4rem auto 0;
  max-width: 22ch;
  color: var(--text);
}
.manifesto__line em { font-style: italic; color: var(--gold-300); font-weight: 400; }

/* =====================================================================
   MARQUEE — continuous left→right expertise band
   ===================================================================== */
.marquee {
  position: relative;
  overflow: hidden;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(8,12,20,.65), var(--navy-950) 50%, rgba(8,12,20,.65)),
    var(--navy-900);
  padding: clamp(1.5rem, 3vw, 2.4rem) 0;
  /* Edge fade — gold haze at the borders */
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 8%, #000 92%, transparent 100%);
          mask-image: linear-gradient(90deg, transparent 0, #000 8%, #000 92%, transparent 100%);
}

.marquee__track {
  display: flex;
  align-items: center;
  gap: 2.4rem;
  width: max-content;
  /* Movement: left → right, infinite, smooth */
  animation: marquee-rtl 55s linear infinite;
  will-change: transform;
}

.marquee:hover .marquee__track {
  animation-play-state: paused;
}

.marquee__item {
  font-family: var(--font-head);
  font-weight: 400;
  font-size: clamp(1.8rem, 4.6vw, 3.6rem);
  line-height: 1;
  letter-spacing: -.01em;
  color: var(--text);
  white-space: nowrap;
  transition: color .4s var(--ease-cinema), transform .4s var(--ease-cinema);
}
.marquee__item em {
  font-style: italic;
  background: linear-gradient(120deg, var(--gold-300), var(--gold-500) 50%, var(--gold-400));
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
}
.marquee__item:hover {
  color: var(--gold-300);
  transform: translateY(-2px);
}

.marquee__sep {
  color: var(--gold-500);
  font-size: clamp(.85rem, 1vw, 1.05rem);
  opacity: .6;
}

@keyframes marquee-rtl {
  /* Track holds two identical groups end-to-end. Translating from -50% to 0
     visually moves the content from left to right, looping seamlessly. */
  from { transform: translate3d(-50%, 0, 0); }
  to   { transform: translate3d(0, 0, 0); }
}

@media (prefers-reduced-motion: reduce) {
  .marquee__track { animation: none; transform: translate3d(-25%, 0, 0); }
}

/* =====================================================================
   GALLERY — editorial photo strip (territoire)
   ===================================================================== */
.gallery {
  border-top: 1px solid var(--line);
  padding-top: clamp(3rem, 5.5vw, 4.5rem);
  padding-bottom: clamp(3.5rem, 6vw, 5.5rem);
}
/* Header becomes a horizontal magazine bar — eyebrow left, title right */
.gallery .section__head {
  max-width: 100%;
  margin-bottom: clamp(1.5rem, 3vw, 2.5rem);
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem 2.5rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--line);
}
.gallery .section__head .eyebrow { margin: 0; flex: 0 0 auto; }
.gallery .section__title {
  margin: 0;
  font-size: clamp(1.5rem, 2.6vw, 2.2rem);
  line-height: 1.15;
  letter-spacing: -.005em;
  flex: 1 1 auto;
  text-align: right;
  max-width: 24ch;
  margin-left: auto;
}
.gallery .section__title em { font-style: italic; color: var(--gold-300); }
@media (max-width: 720px) {
  .gallery .section__head { flex-direction: column; align-items: flex-start; gap: .5rem; }
  .gallery .section__title { text-align: left; margin-left: 0; max-width: 100%; }
}

.gallery__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: repeat(2, clamp(170px, 22vw, 240px));
  gap: 1rem;
}
/* Explicit placement — fills all 8 cells with 4 photos (no empty space) */
.gallery__item:nth-child(1) { grid-column: 1;            grid-row: 1 / span 2; }
.gallery__item:nth-child(2) { grid-column: 2 / span 2;   grid-row: 1; }
.gallery__item:nth-child(3) { grid-column: 4;            grid-row: 1 / span 2; }
.gallery__item:nth-child(4) { grid-column: 2 / span 2;   grid-row: 2; }
.gallery__item {
  position: relative;
  margin: 0;
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--navy-800);
}
.gallery__item img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 1.2s var(--ease-cinema), filter .6s ease;
  filter: saturate(.85) contrast(1.05);
}
.gallery__item:hover img {
  transform: scale(1.05);
  filter: saturate(1) contrast(1.1);
}
.gallery__item figcaption {
  position: absolute; left: 1rem; bottom: 1rem;
  padding: .4rem .75rem;
  font-size: .72rem; letter-spacing: .2em; text-transform: uppercase;
  color: var(--gold-100);
  background: rgba(8,12,20,.55);
  backdrop-filter: blur(6px);
  border: 1px solid var(--line);
}
/* Legacy size modifiers (still respected on tablet/mobile breakpoints) */
.gallery__item--tall { grid-row: span 2; }
.gallery__item--wide { grid-column: span 2; }

@media (max-width: 880px) {
  .gallery__grid {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: auto;
    grid-auto-rows: 180px;
  }
  /* Reset explicit desktop placement on tablet/mobile */
  .gallery__item:nth-child(1),
  .gallery__item:nth-child(2),
  .gallery__item:nth-child(3),
  .gallery__item:nth-child(4) {
    grid-column: auto;
    grid-row: auto;
  }
  .gallery__item--wide { grid-column: span 2; }
  .gallery__item--tall { grid-row: span 1; }
}

/* =====================================================================
   SERVICES
   ===================================================================== */
.services__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
/* 5 cards: row1 = 1,2,3 — row2 = 4 + 5(spans 2) */
.service-card--feature { grid-column: span 2; }

@media (max-width: 980px) {
  .services__grid { grid-template-columns: repeat(2, 1fr); }
  .service-card--feature { grid-column: span 2; }
}
@media (max-width: 600px) {
  .services__grid { grid-template-columns: 1fr; }
  .service-card--feature { grid-column: span 1; }
}

.service-card {
  position: relative;
  background: var(--navy-900);
  padding: clamp(1.8rem, 3vw, 2.8rem);
  display: flex; flex-direction: column; gap: 1.1rem;
  min-height: 420px;
  transition: background .5s var(--ease-cinema), transform .45s var(--ease-spring);
  will-change: transform;
}
.service-card:hover {
  background: linear-gradient(180deg, var(--navy-800), var(--navy-700));
}
.service-card__num {
  font-family: var(--font-head);
  font-size: .85rem;
  font-style: italic;
  letter-spacing: .1em;
  color: var(--gold-500);
  opacity: .8;
}
.service-card__icon {
  width: 56px; height: 56px;
  color: var(--gold-300);
  margin-bottom: .25rem;
  transition: transform .45s var(--ease-spring), color .3s ease;
}
.service-card:hover .service-card__icon {
  transform: rotate(-4deg) scale(1.06);
  color: var(--gold-500);
}
.service-card__title {
  font-family: var(--font-head);
  font-size: clamp(1.7rem, 2.2vw, 2.1rem);
  font-weight: 500;
  letter-spacing: -.01em;
  margin: 0;
  color: var(--text);
}
.service-card__copy {
  color: var(--text-soft);
  font-size: .98rem;
  line-height: 1.65;
  margin: 0;
}
.service-card__list {
  margin-top: auto;
  padding-top: 1.2rem;
  border-top: 1px dashed var(--line);
  display: flex; flex-direction: column; gap: .35rem;
  font-size: .85rem;
  color: var(--text-muted);
  letter-spacing: .04em;
}
.service-card__list li::before {
  content: "—  "; color: var(--gold-500);
}
.service-card__corner {
  position: absolute; top: 0; right: 0;
  width: 40px; height: 40px;
  background:
    linear-gradient(225deg, var(--gold-500) 0 1px, transparent 1px) top right / 12px 12px no-repeat,
    linear-gradient(225deg, transparent 0 11px, var(--gold-500) 11px 12px, transparent 12px) top right / 12px 12px no-repeat;
  opacity: 0; transition: opacity .35s var(--ease-cinema);
}
.service-card:hover .service-card__corner { opacity: 1; }

/* ---------- Featured (5th) card: image left, content right ---------- */
.service-card--feature {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  padding: 0;
  min-height: 460px;
  overflow: hidden;
}
.service-card--feature .service-card__media {
  position: relative;
  overflow: hidden;
  background: var(--navy-800);
  border-right: 1px solid var(--line);
}
.service-card--feature .service-card__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: saturate(.85) contrast(1.05);
  transition: transform 1.2s var(--ease-cinema);
}
.service-card--feature:hover .service-card__media img { transform: scale(1.05); }
.service-card__media-tag {
  position: absolute; left: 1rem; bottom: 1rem;
  padding: .35rem .75rem;
  font-size: .7rem; letter-spacing: .22em; text-transform: uppercase;
  color: var(--gold-100);
  background: rgba(8,12,20,.55);
  backdrop-filter: blur(6px);
  border: 1px solid var(--line);
}
.service-card--feature .service-card__body {
  padding: clamp(1.8rem, 3vw, 2.8rem);
  display: flex; flex-direction: column; gap: 1.1rem;
}
.service-card--feature .service-card__num { color: var(--gold-500); letter-spacing: .14em; text-transform: uppercase; font-style: normal; font-size: .72rem; }
.service-card--feature .service-card__list { margin-top: auto; }

@media (max-width: 720px) {
  .service-card--feature { grid-template-columns: 1fr; min-height: auto; }
  .service-card--feature .service-card__media { aspect-ratio: 16 / 9; border-right: 0; border-bottom: 1px solid var(--line); }
}

/* =====================================================================
   ABOUT / IMPACT
   ===================================================================== */
.about {
  position: relative;
  border-top: 1px solid var(--line);
  isolation: isolate;
  overflow: hidden;
}
.about__bg {
  position: absolute; inset: 0;
  z-index: -1;
  pointer-events: none;
}
.about__bg img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center;
  filter: saturate(.65) contrast(1.08) brightness(.65);
}
.about__bg-overlay {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, var(--navy-900) 0%, rgba(8,12,20,.45) 35%, rgba(8,12,20,.55) 70%, var(--navy-900) 100%),
    radial-gradient(60% 50% at 30% 50%, rgba(201, 168, 76, .12), transparent 70%);
}
.about__grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: start;
}
@media (max-width: 920px) {
  .about__grid { grid-template-columns: 1fr; }
}
.about__col--text p { font-size: 1.05rem; color: var(--text-soft); margin: 0 0 1.2rem; max-width: 60ch; line-height: 1.75; }

.dropcap .drop {
  float: left;
  font-family: var(--font-head);
  font-size: 4.6rem;
  font-style: italic;
  line-height: .9;
  margin: .15rem .55rem 0 0;
  color: var(--gold-500);
}

.pullquote {
  margin: 2.5rem 0 0;
  padding: 1.4rem 0 1.4rem 1.6rem;
  border-left: 1px solid var(--gold-500);
  font-family: var(--font-head);
  font-size: clamp(1.4rem, 2.2vw, 1.85rem);
  font-style: italic;
  font-weight: 400;
  line-height: 1.35;
  color: var(--gold-100);
  letter-spacing: -.005em;
  max-width: 32ch;
}

.about__col--meta { display: flex; flex-direction: column; gap: 1rem; }

/* Portrait card in about__meta column */
.meta-portrait {
  margin: 0;
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--navy-800);
  aspect-ratio: 4 / 5;
}
.meta-portrait img {
  width: 100%; height: 100%; object-fit: cover;
  filter: saturate(.85) contrast(1.05);
  transition: transform 1s var(--ease-cinema);
}
.meta-portrait:hover img { transform: scale(1.04); }
.meta-portrait figcaption {
  position: absolute; left: 1rem; bottom: 1rem;
  padding: .35rem .7rem;
  font-size: .68rem; letter-spacing: .22em; text-transform: uppercase;
  color: var(--gold-100);
  background: rgba(8,12,20,.6);
  backdrop-filter: blur(6px);
  border: 1px solid var(--line);
}
.meta-card {
  border: 1px solid var(--line);
  padding: 1.4rem 1.5rem;
  background: linear-gradient(180deg, rgba(255,255,255,.02), rgba(255,255,255,0));
  border-radius: var(--radius);
  display: flex; flex-direction: column; gap: .55rem;
}
.meta-card__label {
  font-size: .68rem; font-weight: 600;
  letter-spacing: .26em; text-transform: uppercase;
  color: var(--gold-500);
}
.meta-card__value {
  font-family: var(--font-head);
  font-size: 1.6rem;
  color: var(--text);
}
.meta-card__list { display: flex; flex-direction: column; gap: .3rem; color: var(--text-soft); font-size: .95rem; }
.meta-card__list li::before { content: "▸  "; color: var(--gold-500); font-size: .8em; }
.meta-card--accent { border-color: var(--gold-500); background: linear-gradient(180deg, rgba(201,168,76,.05), transparent); }
.meta-card--accent p { margin: 0; color: var(--text-soft); font-size: .94rem; line-height: 1.6; }

/* =====================================================================
   APPROACH (steps)
   ===================================================================== */
.approach { border-top: 1px solid var(--line); }
.steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
@media (max-width: 980px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }

.step {
  background: var(--navy-900);
  padding: 2.2rem 1.8rem;
  min-height: 240px;
  display: flex; flex-direction: column; gap: .9rem;
  transition: background .4s var(--ease-cinema), transform .4s var(--ease-spring);
}
.step:hover { background: var(--navy-800); }
.step__num {
  font-family: var(--font-head);
  font-style: italic;
  font-size: 2rem;
  color: var(--gold-500);
  line-height: 1;
}
.step h3 {
  font-family: var(--font-head);
  font-size: 1.55rem; font-weight: 500;
  margin: 0; color: var(--text);
  letter-spacing: -.005em;
}
.step p { margin: 0; color: var(--text-soft); font-size: .96rem; line-height: 1.65; }

/* =====================================================================
   CONTACT
   ===================================================================== */
.contact {
  border-top: 1px solid var(--line);
  background:
    radial-gradient(50% 80% at 50% 0%, rgba(201, 168, 76, .08), transparent 60%),
    var(--navy-900);
}
.contact__inner { max-width: 980px; margin: 0 auto; text-align: center; }
.contact__title { margin-left: auto; margin-right: auto; }
.contact .section__lede { margin: 0 auto; }

.contact__cards {
  margin-top: clamp(2.5rem, 5vw, 4rem);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  text-align: left;
}
@media (max-width: 760px) {
  .contact__cards { grid-template-columns: 1fr; }
}
.contact-card {
  position: relative;
  border: 1px solid var(--line);
  padding: 1.6rem 1.6rem 2rem;
  display: flex; flex-direction: column; gap: .5rem;
  transition: border-color .35s var(--ease-cinema), background .35s var(--ease-cinema), transform .45s var(--ease-spring);
  will-change: transform;
  border-radius: var(--radius);
}
.contact-card:hover {
  border-color: var(--gold-500);
  background: rgba(201, 168, 76, .04);
}
.contact-card__label {
  font-size: .68rem; font-weight: 600;
  letter-spacing: .26em; text-transform: uppercase;
  color: var(--gold-500);
}
.contact-card__value {
  font-family: var(--font-head);
  font-size: clamp(1.2rem, 1.8vw, 1.55rem);
  color: var(--text);
}
.contact-card__arrow {
  position: absolute; right: 1.4rem; bottom: 1.2rem;
  color: var(--gold-500);
  font-size: 1.2rem;
  transition: transform .35s var(--ease-spring);
}
.contact-card:hover .contact-card__arrow { transform: translateX(6px); }
.contact-card--static:hover { transform: none; cursor: default; }

.contact__hours {
  margin-top: clamp(2rem, 4vw, 3rem);
  font-size: .9rem;
  color: var(--text-muted);
  letter-spacing: .04em;
}
.contact__hours-label {
  display: inline-block;
  margin-right: .8rem;
  font-size: .7rem;
  font-weight: 600;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: var(--gold-500);
}

/* ---------- Map — full-width closing section ---------- */
.map-section {
  position: relative;
  border-top: 1px solid var(--line);
  background: var(--navy-950);
  padding: clamp(3rem, 6vw, 5rem) var(--pad-x) clamp(3.5rem, 7vw, 5.5rem);
}
.map-section__head {
  max-width: var(--maxw);
  margin: 0 auto clamp(1.5rem, 3vw, 2.5rem);
  display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between;
  gap: .75rem 2rem;
  padding-bottom: 1.1rem;
  border-bottom: 1px solid var(--line);
}
.map-section__coords {
  margin: 0;
  font-family: var(--font-head);
  font-style: italic;
  font-size: clamp(.95rem, 1.2vw, 1.1rem);
  color: var(--gold-500);
  letter-spacing: .015em;
  display: inline-flex; flex-wrap: wrap; align-items: baseline; gap: .5rem .75rem;
}
.map-section__sep { color: var(--gold-500); opacity: .5; }
.map-section__frame {
  max-width: var(--maxw);
  margin: 0 auto;
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--navy-800);
  box-shadow:
    0 40px 90px -30px rgba(0,0,0,.7),
    0 0 0 1px rgba(201, 168, 76, .08) inset;
}
.map-section__frame iframe {
  display: block;
  width: 100%;
  height: clamp(380px, 56vh, 560px);
  border: 0;
  filter: saturate(.85) contrast(1.06) brightness(.92);
  transition: filter .6s var(--ease-cinema);
}
.map-section__frame:hover iframe { filter: saturate(1) contrast(1.06) brightness(1); }
.map-section__frame::after {
  content: ""; position: absolute; inset: 0;
  pointer-events: none;
  box-shadow: inset 0 0 0 1px rgba(201, 168, 76, .14);
  border-radius: var(--radius);
}

/* =====================================================================
   FOOTER
   ===================================================================== */
.footer {
  position: relative;
  border-top: 1px solid var(--line);
  background: var(--navy-950);
  color: var(--text-muted);
  font-size: .9rem;
}
/* When footer has a bg image, the image+overlay sits behind, navy bg via overlay */
.footer.has-bg { background: transparent; }
.footer__inner {
  max-width: var(--maxw); margin: 0 auto;
  padding: clamp(3rem, 6vw, 5rem) var(--pad-x) 2rem;
  display: grid;
  grid-template-columns: 1.2fr 2fr;
  gap: clamp(2rem, 5vw, 4rem);
}
@media (max-width: 820px) { .footer__inner { grid-template-columns: 1fr; } }

.footer__brand { display: flex; flex-direction: column; gap: .4rem; }
.footer__word {
  font-family: var(--font-head);
  font-size: 1.6rem;
  color: var(--text);
  letter-spacing: .02em;
  display: inline-flex;
  align-items: center;
  gap: 0;
  white-space: nowrap;
}
.footer__tag { font-size: .82rem; letter-spacing: .12em; text-transform: uppercase; color: var(--gold-500); }

.footer__cols {
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 2rem;
}
@media (max-width: 540px) { .footer__cols { grid-template-columns: 1fr 1fr; } }

.footer__label {
  display: block; margin-bottom: .9rem;
  font-size: .7rem; font-weight: 600;
  letter-spacing: .26em; text-transform: uppercase;
  color: var(--gold-300);
}
.footer__cols ul { display: flex; flex-direction: column; gap: .55rem; }
.footer__cols a { color: var(--text-soft); transition: color .25s ease; }
.footer__cols a:hover { color: var(--gold-300); }

.footer__base {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 1.5rem var(--pad-x) 2.2rem;
  border-top: 1px solid var(--line);
  display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
  font-size: .78rem; color: var(--text-muted); letter-spacing: .08em;
}
.footer__coords { font-family: var(--font-head); font-style: italic; color: var(--gold-500); letter-spacing: .04em; }

/* =====================================================================
   ANIMATION HELPERS — initial states (Motion.js takes them from here)
   ===================================================================== */
[data-anim] { opacity: 0; }
[data-anim="hero-title"] .line {
  display: block;
  filter: blur(20px);
  transform: translateY(40px);
  opacity: 0;
}
[data-anim="fade-up"]   { transform: translateY(28px); }
[data-anim="card"]      { transform: translateY(40px) scale(.985); }
[data-anim="stats"] div { opacity: 0; transform: translateY(18px); }

/* Reduced motion — full instant reveal, no animations */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  [data-anim], [data-anim="hero-title"] .line, [data-anim="stats"] div {
    opacity: 1 !important; transform: none !important; filter: none !important;
  }
  .scroll-progress, .hero__scroll-line { display: none; }
}

/* =====================================================================
   SECTION BACKGROUNDS — drone aerials behind dark sections
   ===================================================================== */
.has-bg {
  position: relative;
  isolation: isolate;
  overflow: hidden;
}
.has-bg .section__bg {
  position: absolute; inset: 0;
  z-index: -1;
  pointer-events: none;
}
.has-bg .section__bg img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center;
  /* Atmospheric tint — visible enough to read the landscape, dark enough for editorial */
  filter: saturate(.55) contrast(1.12) brightness(.55) sepia(.04);
  will-change: transform;
  /* Default Ken Burns motion (overridden per-section below for variation) */
  animation: kenburns-a 38s ease-in-out infinite;
  transform-origin: center center;
}

/* ---------- Ken Burns continuous motion ---------- */
@keyframes kenburns-a {
  0%   { transform: scale(1.08) translate(-1.5%, -0.8%); }
  50%  { transform: scale(1.18) translate(2.2%,  1.2%); }
  100% { transform: scale(1.08) translate(-1.5%, -0.8%); }
}
@keyframes kenburns-b {
  0%   { transform: scale(1.16) translate(2%,    1.5%); }
  50%  { transform: scale(1.08) translate(-2.4%, -1%); }
  100% { transform: scale(1.16) translate(2%,    1.5%); }
}
@keyframes kenburns-c {
  0%   { transform: scale(1.12) translate(0%,    -1.5%); }
  50%  { transform: scale(1.20) translate(-1.8%,  1.5%); }
  100% { transform: scale(1.12) translate(0%,    -1.5%); }
}

/* Per-section Ken Burns — different keyframe + duration + delay so nothing syncs */
.manifesto .section__bg img { animation: kenburns-c 36s ease-in-out infinite;  animation-delay: -4s;  }
.services  .section__bg img { animation: kenburns-a 42s ease-in-out infinite;  animation-delay: -10s; }
.approach  .section__bg img { animation: kenburns-b 38s ease-in-out infinite;  animation-delay: -16s; }
.contact   .section__bg img { animation: kenburns-c 40s ease-in-out infinite;  animation-delay: -22s; }
.footer    .section__bg img { animation: kenburns-b 44s ease-in-out infinite;  animation-delay: -28s; }

/* Apply to about__bg too (Impact section has different markup) */
.about__bg img {
  animation: kenburns-a 46s ease-in-out infinite;
  animation-delay: -34s;
  transform-origin: center center;
}

@media (prefers-reduced-motion: reduce) {
  .has-bg .section__bg img,
  .about__bg img {
    animation: none;
    transform: scale(1.05);
  }
}

/* Per-section crop tuning — each image cropped into its landscape side, away from faces */
.manifesto .section__bg img { object-position: 50% 6%; }    /* paysage-12 — top: sky + tree silhouettes */
.services  .section__bg img { object-position: 0% 75%; }    /* paysage-9 — left-lower: drones + desert plain (no person) */
.approach  .section__bg img { object-position: 100% 30%; }  /* paysage-1 — right side desert, away from people */
.contact   .section__bg img { object-position: 50% 92%; }   /* paysage-5 — very bottom: indoor floor/table edge, abstract dark */
.footer    .section__bg img { object-position: 0% 80%; }    /* paysage-1 — left-lower: vehicle + ground, different crop from Approach */

/* Footer overlay — softer navy fade, image visible behind text */
.section__bg-overlay--footer {
  background:
    radial-gradient(60% 80% at 50% 100%, rgba(201, 168, 76, .12), transparent 70%),
    linear-gradient(180deg, var(--navy-950) 0%, rgba(5,8,16,.7) 30%, rgba(5,8,16,.8) 100%);
}
.has-bg .section__bg-overlay {
  position: absolute; inset: 0;
}

/* Variant overlays — softer so the brighter image shows through cleanly */
.section__bg-overlay--top {
  background:
    radial-gradient(60% 40% at 50% 0%, rgba(201, 168, 76, .15), transparent 70%),
    linear-gradient(180deg, var(--navy-900) 0%, rgba(8,12,20,.42) 30%, rgba(8,12,20,.55) 70%, var(--navy-900) 100%);
}
.section__bg-overlay--right {
  background:
    radial-gradient(50% 60% at 100% 50%, rgba(201, 168, 76, .15), transparent 60%),
    linear-gradient(180deg, var(--navy-900) 0%, rgba(8,12,20,.48) 30%, rgba(8,12,20,.55) 70%, var(--navy-900) 100%);
}
.section__bg-overlay--center {
  background:
    radial-gradient(45% 55% at 50% 50%, rgba(201, 168, 76, .18), transparent 65%),
    linear-gradient(180deg, var(--navy-900) 0%, rgba(8,12,20,.45) 30%, rgba(8,12,20,.55) 70%, var(--navy-900) 100%);
}
/* Manifesto — softer vignette + gold spotlight on the centered line */
.section__bg-overlay--manifesto {
  background:
    radial-gradient(35% 50% at 50% 50%, rgba(201, 168, 76, .22), transparent 70%),
    radial-gradient(110% 100% at 50% 50%, transparent 35%, rgba(8,12,20,.55) 70%, var(--navy-900) 100%),
    linear-gradient(180deg, var(--navy-900) 0%, rgba(8,12,20,.35) 25%, rgba(8,12,20,.35) 75%, var(--navy-900) 100%);
}

/* =====================================================================
   CINEMATIC LAYER — particles, chapters, reveal masks, color grading
   ===================================================================== */

/* ---------- Hero coordinate-grid ticks (flickering gold waypoints) ---------- */
.particles {
  position: absolute; inset: 0;
  z-index: 5;
  pointer-events: none;
  overflow: hidden;
}
.particles span {
  position: absolute;
  width: 13px; height: 13px;
  /* Gold "+" crosshair via two crossed 1.5px lines */
  background:
    linear-gradient(var(--gold-300), var(--gold-300)) center/100% 1.5px no-repeat,
    linear-gradient(var(--gold-300), var(--gold-300)) center/1.5px 100% no-repeat;
  opacity: 0;
  filter:
    drop-shadow(0 0 6px rgba(201, 168, 76, .85))
    drop-shadow(0 0 14px rgba(201, 168, 76, .35));
  animation: tick-flicker 9s ease-in-out infinite;
  will-change: opacity, transform;
}
@keyframes tick-flicker {
  0%, 78%, 100% { opacity: 0;   transform: scale(.4); }
  8%, 30%       { opacity: .9;  transform: scale(1); }
  14%           { opacity: 1;   transform: scale(1.18); }   /* brief acquisition spike */
}

/* Distribute ticks across the hero in a coordinate-grid pattern */
.particles span:nth-child(1)  { top:  18%; left:  8%; animation-duration:  8s; animation-delay:  -1s; }
.particles span:nth-child(2)  { top:  26%; left: 22%; animation-duration: 11s; animation-delay:  -4s; }
.particles span:nth-child(3)  { top:  14%; left: 38%; animation-duration:  9s; animation-delay:  -7s; }
.particles span:nth-child(4)  { top:  32%; left: 54%; animation-duration: 12s; animation-delay:  -2s; }
.particles span:nth-child(5)  { top:  20%; left: 68%; animation-duration: 10s; animation-delay:  -9s; }
.particles span:nth-child(6)  { top:  28%; left: 82%; animation-duration:  8s; animation-delay:  -5s; }
.particles span:nth-child(7)  { top:  16%; left: 92%; animation-duration: 11s; animation-delay: -11s; }

.particles span:nth-child(8)  { top:  48%; left: 12%; animation-duration: 13s; animation-delay:  -3s; }
.particles span:nth-child(9)  { top:  56%; left: 30%; animation-duration: 10s; animation-delay:  -8s; }
.particles span:nth-child(10) { top:  44%; left: 46%; animation-duration:  9s; animation-delay: -12s; }
.particles span:nth-child(11) { top:  52%; left: 62%; animation-duration: 11s; animation-delay:  -6s; }
.particles span:nth-child(12) { top:  46%; left: 76%; animation-duration: 12s; animation-delay: -14s; }
.particles span:nth-child(13) { top:  58%; left: 88%; animation-duration:  8s; animation-delay: -10s; }

.particles span:nth-child(14) { top:  72%; left: 18%; animation-duration: 11s; animation-delay:  -2s; }
.particles span:nth-child(15) { top:  78%; left: 36%; animation-duration:  9s; animation-delay: -13s; }
.particles span:nth-child(16) { top:  74%; left: 52%; animation-duration: 10s; animation-delay:  -7s; }
.particles span:nth-child(17) { top:  82%; left: 68%; animation-duration: 12s; animation-delay: -15s; }
.particles span:nth-child(18) { top:  76%; left: 84%; animation-duration:  8s; animation-delay:  -4s; }
.particles span:nth-child(19) { top:  88%; left: 24%; animation-duration: 13s; animation-delay: -11s; }
.particles span:nth-child(20) { top:  86%; left: 60%; animation-duration:  9s; animation-delay:  -8s; }

@media (prefers-reduced-motion: reduce) { .particles { display: none; } }

/* ---------- Section chapter markers (Roman numerals in corner) ---------- */
[data-chapter] { position: relative; }
[data-chapter]::before {
  content: attr(data-chapter);
  position: absolute;
  top: clamp(2rem, 5vw, 3.5rem);
  right: clamp(1.25rem, 4vw, 3.5rem);
  font-family: var(--font-head);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(6rem, 14vw, 12rem);
  line-height: .8;
  letter-spacing: -.02em;
  color: rgba(201, 168, 76, 0);   /* invisible until JS reveals */
  pointer-events: none;
  user-select: none;
  z-index: 1;
  transition: color 1.4s var(--ease-cinema);
  will-change: color;
}
[data-chapter].is-chapter-visible::before {
  color: rgba(201, 168, 76, .065);
}
@media (max-width: 720px) {
  [data-chapter]::before {
    top: 1.25rem; right: 1.25rem;
    font-size: 5rem;
  }
}
@media (prefers-reduced-motion: reduce) {
  [data-chapter]::before { color: rgba(201, 168, 76, .055); transition: none; }
}

/* ---------- Image reveal masks (vertical wipe up) ---------- */
.reveal-mask {
  clip-path: inset(0 0 100% 0);
  transition: clip-path 1.4s cubic-bezier(0.7, 0, 0.25, 1);
  will-change: clip-path;
}
.reveal-mask.is-revealed {
  clip-path: inset(0 0 0 0);
}
@media (prefers-reduced-motion: reduce) {
  .reveal-mask { clip-path: inset(0 0 0 0); transition: none; }
}

/* ---------- Cinematic color grading on all imagery ---------- */
/* Unified film LUT-like treatment — slight desaturation + warm cast + lifted blacks */
.gallery__item img,
.about__bg img,
.meta-portrait img,
.service-card--feature .service-card__media img,
.hero__poster {
  filter: saturate(.78) contrast(1.08) brightness(.92) sepia(.04);
}
.gallery__item:hover img,
.meta-portrait:hover img {
  filter: saturate(.92) contrast(1.1) brightness(1) sepia(.02);
}

/* ---------- Kinetic Typography — word-by-word reveal on big titles ---------- */
[data-kinetic] {
  /* Parent stays in flow; words inside animate individually */
  opacity: 1;
}
/* Prevent FOUC: until JS splits text, hide content (inline-split runs synchronously after parse) */
[data-kinetic]:not(.is-split) {
  visibility: hidden;
}
[data-kinetic] .kw {
  display: inline-block;
  opacity: 0;
  transform: translateY(28px);
  filter: blur(8px);
  will-change: transform, opacity, filter;
}
/* Restore gradient text on words inside background-clip parents
   (inline-block .kw breaks the parent's text painting context) */
[data-kinetic] .hero__title-accent .kw {
  background: linear-gradient(120deg, var(--gold-300), var(--gold-500) 50%, var(--gold-400));
  -webkit-background-clip: text;
          background-clip: text;
  color: transparent;
}
@media (prefers-reduced-motion: reduce) {
  [data-kinetic]:not(.is-split) { visibility: visible; }
  [data-kinetic] .kw {
    opacity: 1; transform: none; filter: none;
  }
}

/* ---------- Smooth scroll (Lenis) — html class added by JS ---------- */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-stopped { overflow: hidden; }
.lenis.lenis-scrolling iframe { pointer-events: none; }

/* =====================================================================
   DEVIS PAGE — request-a-quote form
   ===================================================================== */

/* Hero header on /devis */
.devis-hero {
  position: relative;
  padding: clamp(7rem, 14vh, 10rem) var(--pad-x) clamp(2.5rem, 5vh, 4rem);
  max-width: var(--maxw);
  margin: 0 auto;
}
.devis-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}
@media (max-width: 880px) {
  .devis-hero__grid { grid-template-columns: 1fr; gap: 2.5rem; }
}
.devis-hero__inner { max-width: 56ch; }
.devis-hero__title {
  font-family: var(--font-head);
  font-weight: 400;
  font-size: clamp(2.2rem, 5.4vw, 4.4rem);
  line-height: 1.05;
  letter-spacing: -.02em;
  margin: 1rem 0 1.4rem;
  color: var(--text);
}
.devis-hero__title .line { display: block; }
.devis-hero__title em { font-style: italic; color: var(--gold-300); }
.devis-hero__lede {
  font-size: clamp(1rem, 1.2vw, 1.1rem);
  line-height: 1.65;
  color: var(--text-soft);
  max-width: 56ch;
}
.devis-hero__lede strong { color: var(--text); font-weight: 500; }
.devis-hero__lede em { font-style: italic; color: var(--gold-300); }

/* Right-side editorial info panel (3 numbered steps + meta) */
.devis-hero__aside {
  position: relative;
  padding: clamp(1.5rem, 2.5vw, 2.2rem);
  border: 1px solid var(--line);
  border-radius: 4px;
  background:
    radial-gradient(60% 50% at 100% 0%, rgba(201, 168, 76, .06), transparent 70%),
    linear-gradient(180deg, var(--navy-800), var(--navy-900));
  box-shadow: 0 30px 60px -30px rgba(0,0,0,.5);
  display: flex; flex-direction: column;
  gap: 1.4rem;
}
.devis-hero__aside-label {
  margin: 0;
  display: inline-flex; align-items: center; gap: .65rem;
  font-size: .68rem;
  font-weight: 600;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: var(--gold-500);
}

.devis-hero__steps {
  list-style: none;
  margin: 0; padding: 0;
  display: flex; flex-direction: column;
  gap: 1.05rem;
}
.devis-hero__steps li {
  display: grid;
  grid-template-columns: 32px 1fr;
  gap: .85rem;
  padding-bottom: 1.05rem;
  border-bottom: 1px solid var(--line);
}
.devis-hero__steps li:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}
.devis-hero__step-num {
  font-family: var(--font-head);
  font-style: italic;
  font-size: 1.35rem;
  line-height: 1;
  color: var(--gold-500);
  text-align: center;
  padding-top: .15rem;
}
.devis-hero__step-title {
  display: block;
  font-family: var(--font-head);
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--text);
  letter-spacing: -.005em;
  margin-bottom: .15rem;
}
.devis-hero__step-desc {
  display: block;
  font-size: .85rem;
  color: var(--text-soft);
  line-height: 1.55;
}
.devis-hero__aside-meta {
  display: flex; flex-wrap: wrap; gap: .55rem .9rem;
  font-size: .7rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--text-muted);
  padding-top: .35rem;
  border-top: 1px solid var(--line);
  padding-top: .9rem;
}
.devis-hero__aside-sep { color: var(--gold-500); opacity: .6; }

/* Form wrapper */
.devis-form-section {
  max-width: 880px;
  margin: 0 auto clamp(4rem, 8vw, 6rem);
  padding: 0 var(--pad-x);
}
.devis-form {
  display: flex; flex-direction: column;
  gap: clamp(2rem, 4vw, 3rem);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: clamp(1.6rem, 3vw, 2.6rem);
  background:
    radial-gradient(60% 40% at 50% 0%, rgba(201, 168, 76, .04), transparent 60%),
    linear-gradient(180deg, var(--navy-800), var(--navy-900));
  box-shadow: 0 30px 80px -30px rgba(0, 0, 0, .55);
}

/* Field group */
.df__group {
  border: 0;
  padding: 0;
  margin: 0;
  display: flex; flex-direction: column;
  gap: 1.2rem;
}
.df__legend {
  display: flex; align-items: baseline; gap: .85rem;
  padding: 0 0 1rem;
  border-bottom: 1px solid var(--line);
  width: 100%;
  font-family: var(--font-head);
  font-size: clamp(1.4rem, 2vw, 1.75rem);
  font-weight: 500;
  color: var(--text);
  letter-spacing: -.005em;
  margin-bottom: .25rem;
}
.df__num {
  font-family: var(--font-head);
  font-style: italic;
  font-size: .9rem;
  color: var(--gold-500);
  letter-spacing: .1em;
}
.df__legend-text { flex: 1; }
.df__hint {
  font-family: var(--font-body);
  font-size: .72rem;
  font-weight: 400;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-left: .35rem;
}

/* Layout grid */
.df__grid { display: grid; gap: 1rem; }
.df__grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 600px) {
  .df__grid--2 { grid-template-columns: 1fr; }
}
.df__field { display: flex; flex-direction: column; gap: .35rem; }
.df__field--full { grid-column: 1 / -1; }
.df__label {
  font-size: .7rem;
  font-weight: 500;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.df__req { color: var(--gold-500); }

/* Inputs */
.df__input {
  width: 100%;
  padding: .9rem 1rem;
  font-family: var(--font-body);
  font-size: .95rem;
  color: var(--text);
  background: rgba(255, 255, 255, .03);
  border: 1px solid var(--line);
  border-radius: 3px;
  outline: none;
  transition: border-color .25s, background .25s, box-shadow .25s;
}
.df__input::placeholder { color: var(--text-muted); }
.df__input:hover { border-color: rgba(201, 168, 76, .35); }
.df__input:focus {
  border-color: var(--gold-500);
  background: rgba(255, 255, 255, .045);
  box-shadow: 0 0 0 3px rgba(201, 168, 76, .12);
}
.df__textarea { resize: vertical; min-height: 120px; line-height: 1.55; }
.df__select {
  appearance: none;
  -webkit-appearance: none;
  background-image:
    linear-gradient(45deg, transparent 50%, var(--gold-500) 50%),
    linear-gradient(135deg, var(--gold-500) 50%, transparent 50%);
  background-position: calc(100% - 18px) 50%, calc(100% - 12px) 50%;
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
  padding-right: 2.5rem;
  cursor: pointer;
}
.df__select option { background: var(--navy-800); color: var(--text); }

/* Service chips (multi-select) */
.df__chips {
  display: flex; flex-wrap: wrap; gap: .5rem;
}
.df__chip {
  position: relative;
  cursor: pointer;
}
.df__chip input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  width: 1px; height: 1px;
}
.df__chip-label {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .65rem 1.05rem;
  font-family: var(--font-body);
  font-size: .82rem;
  font-weight: 500;
  letter-spacing: .04em;
  color: var(--text);
  background: rgba(255, 255, 255, .025);
  border: 1px solid var(--line);
  border-radius: 999px;
  transition: border-color .25s, background .25s, color .25s, transform .25s var(--ease-spring);
}
.df__chip-label::before {
  content: "";
  width: 14px; height: 14px;
  border: 1px solid var(--gold-500);
  border-radius: 3px;
  transition: background .25s, box-shadow .25s;
}
.df__chip:hover .df__chip-label { border-color: var(--gold-500); transform: translateY(-1px); }
.df__chip input:checked + .df__chip-label {
  background: rgba(201, 168, 76, .12);
  border-color: var(--gold-500);
  color: var(--gold-100);
}
.df__chip input:checked + .df__chip-label::before {
  background: var(--gold-500);
  box-shadow: inset 0 0 0 2px var(--navy-900), 0 0 6px rgba(201, 168, 76, .5);
}
.df__chip input:focus-visible + .df__chip-label {
  outline: 2px solid var(--gold-500);
  outline-offset: 3px;
}

/* Honeypot — hidden */
.df__honeypot {
  position: absolute; left: -10000px; top: auto;
  width: 1px; height: 1px; overflow: hidden;
}

/* Submit row */
.df__submit-row {
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
  flex-wrap: wrap;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}
.df__legal {
  margin: 0;
  font-size: .76rem;
  color: var(--text-muted);
  line-height: 1.5;
  max-width: 50ch;
}
.df__submit {
  font-size: .82rem;
  padding: 1rem 1.6rem;
}
.df__submit:disabled { opacity: .55; cursor: not-allowed; }

.df__error {
  margin: 0;
  font-size: .85rem;
  color: #FF8A6B;
  min-height: 1.2em;
}

/* Success panel */
.devis-success {
  text-align: center;
  padding: clamp(2.5rem, 5vw, 4rem) clamp(1.5rem, 3vw, 2.5rem);
  border: 1px solid var(--gold-500);
  border-radius: 4px;
  background:
    radial-gradient(60% 50% at 50% 0%, rgba(201, 168, 76, .08), transparent 60%),
    linear-gradient(180deg, var(--navy-800), var(--navy-900));
  box-shadow: 0 30px 80px -30px rgba(0, 0, 0, .6);
}
.devis-success__mark {
  width: 72px; height: 72px;
  margin: 0 auto 1.5rem;
  color: var(--gold-500);
  filter: drop-shadow(0 0 16px rgba(201, 168, 76, .4));
}
.devis-success__title {
  font-family: var(--font-head);
  font-weight: 400;
  font-size: clamp(2rem, 4vw, 2.8rem);
  line-height: 1.1;
  letter-spacing: -.01em;
  margin: 1rem 0 1.2rem;
  color: var(--text);
}
.devis-success__title em { font-style: italic; color: var(--gold-300); }
.devis-success__lede {
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text-soft);
  margin: 0 auto 1rem;
  max-width: 50ch;
}
.devis-success__ref {
  display: inline-block;
  font-family: var(--font-head);
  font-style: italic;
  color: var(--gold-300);
  letter-spacing: .03em;
  font-weight: 500;
}
.devis-success__sub {
  font-size: .92rem;
  color: var(--text-muted);
  margin: 0 auto 2rem;
  max-width: 48ch;
}
.devis-success__sub em { font-style: italic; color: var(--gold-300); }

/* =====================================================================
   CHATBOT — floating cinematic FAQ assistant
   ===================================================================== */

/* ---------- Floating toggle button (bottom-right) ---------- */
.chat__toggle {
  position: fixed;
  bottom: clamp(1.25rem, 2.5vw, 2rem);
  right:  clamp(1.25rem, 2.5vw, 2rem);
  z-index: 95;
  display: inline-flex; align-items: center; gap: .65rem;
  padding: .9rem 1.3rem .9rem 1.05rem;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--gold-500), var(--gold-400));
  color: var(--navy-900);
  font-family: var(--font-body);
  font-size: .78rem; font-weight: 600;
  letter-spacing: .14em; text-transform: uppercase;
  box-shadow:
    0 18px 40px -12px rgba(201, 168, 76, .55),
    0 4px 12px rgba(0, 0, 0, .35);
  cursor: pointer;
  transition: transform .35s var(--ease-spring), box-shadow .35s var(--ease-cinema);
}
.chat__toggle:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow:
    0 24px 50px -10px rgba(201, 168, 76, .7),
    0 6px 16px rgba(0, 0, 0, .45);
}
.chat__toggle:active { transform: translateY(-1px) scale(.98); }
.chat__toggle-icon { width: 28px; height: 28px; color: var(--navy-900); }
.chat__toggle-pulse {
  position: absolute; inset: 0;
  border-radius: 999px;
  border: 2px solid var(--gold-500);
  pointer-events: none;
  animation: chat-pulse 2.4s ease-out infinite;
}
@keyframes chat-pulse {
  0%   { transform: scale(1);   opacity: .7; }
  100% { transform: scale(1.4); opacity: 0;  }
}
.chat[data-state="open"] ~ .chat__toggle .chat__toggle-pulse,
.chat__toggle[aria-expanded="true"] .chat__toggle-pulse { display: none; }
@media (max-width: 600px) {
  .chat__toggle-label { display: none; }
  .chat__toggle { padding: .9rem; }
}

/* ---------- Chat panel ---------- */
.chat {
  position: fixed;
  bottom: clamp(5.25rem, 9vh, 6.25rem);
  right:  clamp(1.25rem, 2.5vw, 2rem);
  z-index: 96;
  width: min(340px, calc(100vw - 2rem));
  height: min(500px, calc(100vh - 8rem));
  background:
    radial-gradient(80% 60% at 50% 0%, rgba(201, 168, 76, .07), transparent 60%),
    linear-gradient(180deg, var(--navy-800), var(--navy-900));
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  box-shadow:
    0 40px 90px -20px rgba(0, 0, 0, .65),
    0 0 0 1px rgba(201, 168, 76, .08) inset;
  display: flex; flex-direction: column;
  overflow: hidden;
  transform: translateY(20px) scale(.96);
  opacity: 0;
  pointer-events: none;
  transition:
    transform .45s var(--ease-spring),
    opacity .35s var(--ease-cinema);
  font-family: var(--font-body);
}
.chat[data-state="open"] {
  transform: translateY(0) scale(1);
  opacity: 1;
  pointer-events: auto;
}

/* ---------- Header ---------- */
.chat__header {
  flex: 0 0 auto;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: .75rem .9rem;
  border-bottom: 1px solid var(--line);
  background: rgba(8, 12, 20, .55);
  backdrop-filter: blur(8px);
}
.chat__brand { display: flex; align-items: center; gap: .8rem; }
.chat__avatar {
  width: 34px; height: 34px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: rgba(201, 168, 76, .08);
  border: 1px solid var(--line-strong);
  color: var(--gold-500);
  flex: 0 0 auto;
}
.chat__avatar svg { width: 22px; height: 22px; }
.chat__name {
  display: block;
  font-family: var(--font-head);
  font-size: .95rem;
  color: var(--text);
  letter-spacing: .005em;
}
.chat__status {
  display: inline-flex; align-items: center; gap: .4rem;
  font-size: .68rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-top: .15rem;
}
.chat__status-dot {
  width: 6px; height: 6px;
  background: #4FE07A;
  border-radius: 50%;
  box-shadow: 0 0 8px rgba(79, 224, 122, .6);
  animation: chat-online 2.2s ease-in-out infinite;
}
@keyframes chat-online {
  0%, 100% { opacity: 1; }
  50%      { opacity: .35; }
}
.chat__header-actions { display: flex; align-items: center; gap: .35rem; }
.chat__icon-btn {
  width: 30px; height: 30px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 50%;
  border: 1px solid var(--line);
  color: var(--text-muted);
  background: transparent;
  cursor: pointer;
  transition: color .25s, border-color .25s, background .25s, transform .35s var(--ease-spring);
}
.chat__icon-btn svg { width: 14px; height: 14px; }
.chat__icon-btn:hover {
  color: var(--gold-300);
  border-color: var(--gold-500);
  background: rgba(201, 168, 76, .06);
}
#chat-reset:hover { transform: rotate(-90deg); }

/* ---------- Body (messages) ---------- */
.chat__body {
  flex: 1 1 auto;
  overflow-y: auto;
  padding: .9rem .85rem .4rem;
  display: flex; flex-direction: column; gap: .55rem;
  scroll-behavior: smooth;
}
.chat__body::-webkit-scrollbar { width: 6px; }
.chat__body::-webkit-scrollbar-track { background: transparent; }
.chat__body::-webkit-scrollbar-thumb { background: var(--line-strong); border-radius: 3px; }

.msg { display: flex; gap: .55rem; }
.msg__avatar {
  width: 30px; height: 30px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: rgba(201, 168, 76, .08);
  border: 1px solid var(--line);
  color: var(--gold-500);
  flex: 0 0 auto;
  margin-top: .15rem;
}
.msg__avatar svg { width: 20px; height: 20px; }

.msg__bubble {
  max-width: 80%;
  padding: .55rem .85rem;
  border-radius: 11px;
  background: rgba(255, 255, 255, .03);
  border: 1px solid var(--line);
  font-size: .85rem;
  line-height: 1.5;
  color: var(--text-soft);
}
.msg__bubble p { margin: 0 0 .55rem; }
.msg__bubble p:last-child { margin-bottom: 0; }
.msg__bubble strong { color: var(--text); font-weight: 600; }
.msg__bubble em { font-style: italic; color: var(--gold-300); }
.msg__bullet {
  display: block;
  padding-left: .25rem;
  color: var(--text-soft);
}

.msg--bot .msg__bubble {
  border-top-left-radius: 4px;
  background:
    linear-gradient(180deg, rgba(201, 168, 76, .04), rgba(255,255,255,.02));
  border-color: var(--line-strong);
}
.msg--user {
  flex-direction: row-reverse;
}
.msg--user .msg__bubble {
  background: var(--gold-500);
  color: var(--navy-900);
  border-color: var(--gold-500);
  border-top-right-radius: 4px;
  font-weight: 500;
}
.msg--user .msg__bubble strong,
.msg--user .msg__bubble em { color: var(--navy-900); }

/* Typing indicator (3 bouncing dots) */
.msg__typing {
  display: inline-flex; gap: .25rem; align-items: center;
  padding: .15rem 0;
}
.msg__typing span {
  width: 6px; height: 6px;
  background: var(--gold-500);
  border-radius: 50%;
  animation: chat-typing 1.2s ease-in-out infinite;
}
.msg__typing span:nth-child(2) { animation-delay: .15s; }
.msg__typing span:nth-child(3) { animation-delay: .3s; }
@keyframes chat-typing {
  0%, 80%, 100% { opacity: .3; transform: translateY(0); }
  40%           { opacity: 1;  transform: translateY(-3px); }
}

/* Kinetic word reveal inside bot bubbles */
.kw-msg {
  display: inline-block;
  opacity: 0;
  transform: translateY(8px);
  filter: blur(4px);
  transition: opacity .5s ease, transform .5s var(--ease-cinema), filter .5s ease;
}
.kw-msg.is-shown {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
}

/* ---------- Suggestions / chips ---------- */
.chat__suggestions {
  flex: 0 0 auto;
  padding: .5rem .9rem .65rem;
  border-top: 1px solid var(--line);
  background: rgba(8, 12, 20, .35);
  max-height: 170px;
  overflow-y: auto;
}
.chat__suggestions::-webkit-scrollbar { width: 6px; }
.chat__suggestions::-webkit-scrollbar-thumb { background: var(--line-strong); border-radius: 3px; }
.chat__intro {
  margin: .3rem 0 .55rem;
  font-size: .68rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.chat__chips {
  display: flex; flex-wrap: wrap; gap: .4rem;
}
.chat__chips--cats { gap: .5rem; }

.chip {
  font-family: var(--font-body);
  font-size: .8rem;
  font-weight: 500;
  padding: .5rem .85rem;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, .025);
  color: var(--text);
  cursor: pointer;
  transition: border-color .25s, color .25s, background .25s, transform .25s var(--ease-spring);
  letter-spacing: .01em;
}
.chip:hover {
  border-color: var(--gold-500);
  color: var(--gold-300);
  background: rgba(201, 168, 76, .06);
  transform: translateY(-1px);
}
.chip--cat {
  display: flex; flex-direction: column; align-items: flex-start; gap: .15rem;
  padding: .65rem .9rem;
  text-align: left;
}
.chip--cat .chip__label {
  font-family: var(--font-head);
  font-size: 1rem;
  color: var(--text);
  letter-spacing: .005em;
}
.chip--cat .chip__hint {
  font-size: .68rem;
  color: var(--text-muted);
  letter-spacing: .12em;
  text-transform: uppercase;
}
.chip--cat:hover .chip__label { color: var(--gold-300); }
.chip--accent {
  background: rgba(201, 168, 76, .12);
  border-color: var(--gold-500);
  color: var(--gold-100);
}
.chip--accent:hover {
  background: rgba(201, 168, 76, .2);
  color: var(--text);
}

.chat__back {
  font-size: .72rem;
  font-weight: 500;
  color: var(--text-muted);
  background: transparent;
  border: none;
  padding: .25rem 0;
  cursor: pointer;
  letter-spacing: .08em;
  transition: color .25s;
  margin-bottom: .35rem;
}
.chat__back:hover { color: var(--gold-300); }

/* ---------- Form ---------- */
.chat__form {
  flex: 0 0 auto;
  display: flex; gap: .5rem; align-items: center;
  padding: .75rem .9rem;
  border-top: 1px solid var(--line);
  background: rgba(8, 12, 20, .55);
}
.chat__input {
  flex: 1 1 auto;
  background: rgba(255, 255, 255, .035);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: .65rem 1rem;
  font-family: var(--font-body);
  font-size: .9rem;
  color: var(--text);
  outline: none;
  transition: border-color .25s;
}
.chat__input:focus { border-color: var(--gold-500); }
.chat__input::placeholder { color: var(--text-muted); letter-spacing: .01em; }

.chat__send {
  width: 38px; height: 38px;
  flex: 0 0 auto;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: var(--gold-500);
  color: var(--navy-900);
  border: 1px solid var(--gold-500);
  cursor: pointer;
  transition: transform .25s var(--ease-spring), background .25s;
}
.chat__send svg { width: 16px; height: 16px; }
.chat__send:hover { background: var(--gold-300); transform: scale(1.06); }

.chat__legal {
  margin: 0;
  padding: .55rem .9rem .7rem;
  font-size: .65rem;
  color: var(--text-muted);
  text-align: center;
  letter-spacing: .04em;
  border-top: 1px solid var(--line);
  background: var(--navy-950);
}

/* Mobile-tuned chat panel */
@media (max-width: 600px) {
  .chat {
    width: calc(100vw - 1.5rem);
    right: .75rem;
    bottom: 5rem;
    height: calc(100svh - 7rem);
    max-height: none;
  }
  .chat__name { font-size: .95rem; }
  .chat__status { font-size: .62rem; }
  .msg__bubble { font-size: .88rem; }
}

/* Reduced motion — disable kinetic reveal in chat */
@media (prefers-reduced-motion: reduce) {
  .kw-msg { opacity: 1; transform: none; filter: none; transition: none; }
  .chat__toggle-pulse { animation: none; }
}
