/* ============================================================
   La Filmerie — Site one-page (Direction A — Cinemascope)
   Hi-fi · b&w · yellow accent · Manrope + Space Mono only
   ============================================================ */

@import url("assets/design-system/colors_and_type.css");

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html {
  scroll-behavior: smooth;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

/* ============================================================
   Page loader — overlay plein écran visible le temps que React
   monte et que le hero soit prêt. Caché via la classe `is-done`.
   ============================================================ */
#page-loader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: #0D0D0D;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 600ms cubic-bezier(0.4, 0, 0.2, 1),
              visibility 0s linear 600ms;
}
#page-loader.is-done {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.page-loader-bar {
  width: 120px;
  height: 2px;
  background: rgba(249, 249, 249, 0.12);
  overflow: hidden;
  position: relative;
  animation: page-loader-fade-in 600ms ease-out 100ms both;
}
.page-loader-bar span {
  position: absolute;
  inset: 0;
  background: #FFEA00;
  transform: translateX(-100%);
  animation: page-loader-bar 1.2s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}
@keyframes page-loader-fade-in {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes page-loader-bar {
  0%   { transform: translateX(-100%); }
  50%  { transform: translateX(0); }
  100% { transform: translateX(100%); }
}
@media (prefers-reduced-motion: reduce) {
  .page-loader-bar { animation: none; }
  .page-loader-bar span { animation: none; transform: translateX(0); }
}
body {
  background: var(--flmr-black);
  color: var(--flmr-white);
  font-family: var(--font-body);
  overflow-x: hidden;
}

::selection { background: var(--flmr-yellow); color: var(--flmr-black); }

a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }

/* ============================================================
   Film grain — applied as a fixed overlay over the whole page
   ============================================================ */
.grain {
  position: fixed;
  inset: -50%;
  pointer-events: none;
  z-index: 100;
  opacity: 0.18;
  mix-blend-mode: overlay;
  background-image: var(--grain-url);
  background-size: 220px 220px;
  animation: grain-shift 1.6s steps(6) infinite;
}
@keyframes grain-shift {
  0%   { transform: translate(0, 0); }
  20%  { transform: translate(-3%, 4%); }
  40%  { transform: translate(5%, -3%); }
  60%  { transform: translate(-4%, -2%); }
  80%  { transform: translate(3%, 5%); }
  100% { transform: translate(0, 0); }
}

/* ============================================================
   HERO — minimal, full-bleed video bg
   ============================================================ */
.hero {
  position: relative;
  height: 100vh;
  min-height: 720px;
  width: 100%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-video,
.hero-video-fallback {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(100%) contrast(1.05) blur(var(--hero-blur, 1.2px));
  z-index: 0;
}

.hero-video-fallback {
  background: #0d0d0d;
  /* Implied motion: an animated layered radial — no real video, but reads as cinematic B&W still in motion */
  background-image:
    radial-gradient(ellipse at 30% 40%, rgba(255,255,255,0.10) 0%, transparent 55%),
    radial-gradient(ellipse at 70% 70%, rgba(255,255,255,0.06) 0%, transparent 60%),
    linear-gradient(180deg, #1a1a1a 0%, #050505 60%, #0d0d0d 100%);
  animation: hero-pan 28s ease-in-out infinite alternate;
}
@keyframes hero-pan {
  0%   { transform: scale(1.04) translate(0, 0); filter: grayscale(100%) blur(1.4px); }
  50%  { transform: scale(1.08) translate(-1.5%, -1%); filter: grayscale(100%) blur(2px); }
  100% { transform: scale(1.04) translate(1%, 0.5%); filter: grayscale(100%) blur(1.4px); }
}

/* Vignette + dark plate so type reads cleanly */
.hero-vignette {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(ellipse at center, transparent 30%, rgba(13,13,13,0.55) 90%),
    linear-gradient(180deg, rgba(13,13,13,0.35) 0%, transparent 25%, transparent 70%, rgba(13,13,13,0.55) 100%);
}

/* Hero content layer */
.hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  display: grid;
  grid-template-rows: auto 1fr auto;
  padding: 28px 40px;
}

/* Top bar — slate stamps + FR/EN */
.hero-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.slate-stamp {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--flmr-white);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.slate-stamp .dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--flmr-yellow);
  box-shadow: 0 0 0 0 rgba(255,234,0,0.6);
  animation: rec-pulse 1.6s ease-out infinite;
}
@keyframes rec-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(255,234,0,0.6); }
  100% { box-shadow: 0 0 0 12px rgba(255,234,0,0); }
}

/* Lang switch */
.lang {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.lang button {
  font-family: inherit;
  font-size: inherit;
  letter-spacing: inherit;
  color: rgba(249,249,249,0.45);
  padding: 4px 8px;
  text-transform: uppercase;
  transition: color var(--dur-fast) var(--ease-out);
}
.lang button.active {
  color: var(--flmr-white);
  background: transparent;
}
.lang button:hover:not(.active) { color: var(--flmr-white); }
.lang .sep { opacity: 0.3; }

/* Center bug */
.hero-center {
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-bug {
  width: 187px;
  height: auto;
  filter: drop-shadow(0 0 28px rgba(0,0,0,0.6));
  animation: bug-fade 900ms var(--ease-out) both;
}
@keyframes bug-fade {
  0%   { opacity: 0; transform: translateY(8px) scale(0.98); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}

/* Bottom row — buttons + scroll */
.hero-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 16px 22px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  border: 1px solid rgba(249,249,249,0.55);
  color: var(--flmr-white);
  transition: all var(--dur-fast) var(--ease-out);
  position: relative;
  overflow: hidden;
}
.btn .btn-arrow {
  display: inline-block;
  transition: transform var(--dur-fast) var(--ease-out);
}
.btn:hover {
  background: var(--flmr-yellow);
  color: var(--flmr-black);
  border-color: var(--flmr-yellow);
}
.btn:hover .btn-arrow { transform: translateX(4px); }
.btn:active { opacity: 0.85; }

.btn.primary {
  background: var(--flmr-yellow);
  color: var(--flmr-black);
  border-color: var(--flmr-yellow);
}
.btn.primary:hover {
  background: var(--flmr-white);
  border-color: var(--flmr-white);
}

/* Scroll indicator — bottom right */
.scroll-cta {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(249,249,249,0.7);
  cursor: pointer;
  transition: color var(--dur-fast) var(--ease-out);
}
.scroll-cta:hover { color: var(--flmr-white); }
.scroll-cta .scroll-line {
  width: 56px;
  height: 1px;
  background: currentColor;
  position: relative;
  overflow: hidden;
}
.scroll-cta .scroll-line::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--flmr-yellow);
  transform: translateX(-100%);
  animation: scroll-sweep 2.6s var(--ease-in-out) infinite;
}
@keyframes scroll-sweep {
  0%   { transform: translateX(-100%); }
  60%  { transform: translateX(100%); }
  100% { transform: translateX(100%); }
}

/* ============================================================
   Sticky frame label (bottom-left of viewport, shows current section)
   ============================================================ */
.frame-label {
  position: fixed;
  bottom: 24px;
  left: 24px;
  z-index: 30;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(249,249,249,0.5);
  pointer-events: none;
  mix-blend-mode: difference;
}

/* ============================================================
   Sections base
   ============================================================ */
.section {
  position: relative;
  padding: 140px 80px;
  border-top: 1px solid var(--rule);
}

.section-num {
  position: absolute;
  top: 32px;
  z-index: 2;
  left: 80px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--fg-muted);
}
.section-tag {
  position: absolute;
  top: 32px;
  right: 80px;
  z-index: 2;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--fg-muted);
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--fg-muted);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before {
  content: "";
  width: 32px;
  height: 1px;
  background: currentColor;
}

/* ============================================================
   Manifeste
   ============================================================ */
.manifesto {
  display: grid;
  grid-template-columns: 0.32fr 0.68fr;
  gap: 80px;
  max-width: 1480px;
  margin: 0 auto;
  align-items: start;
}
.manifesto-meta {
  display: flex;
  flex-direction: column;
  gap: 24px;
  position: sticky;
  top: 80px;
}
.manifesto-meta .label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--fg-muted);
}
.manifesto-meta .label-value {
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--flmr-white);
  margin-top: 2px;
  letter-spacing: 0.04em;
  text-transform: none;
}

.manifesto-text {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(40px, 4.6vw, 72px);
  line-height: 1.05;
  letter-spacing: -0.015em;
  color: var(--flmr-white);
  text-wrap: pretty;
}
/* ============================================================
   Highlight = TYPOGRAPHIC swap.
   Default: Instrument Serif italic. Switchable via [data-serif="..."].
   ============================================================ */
.mark {
  font-family: "Instrument Serif", "EB Garamond", "Times New Roman", serif;
  font-weight: 400;
  font-style: italic;
  letter-spacing: 0;
  font-size: 1.06em;
  line-height: 1;
  display: inline-block;
  transform: translateY(0.04em);
}

/* Per-serif tuning (size + weight + nudge) for optical balance with Manrope Bold */
[data-serif="instrument"] .mark { font-family: "Instrument Serif", serif; font-weight: 400; font-size: 1.06em; }
[data-serif="garamond"]   .mark { font-family: "EB Garamond", serif;       font-weight: 500; font-size: 1.04em; }
[data-serif="cormorant"]  .mark { font-family: "Cormorant Garamond", serif; font-weight: 500; font-size: 1.10em; letter-spacing: -0.01em; }
[data-serif="spectral"]   .mark { font-family: "Spectral", serif;          font-weight: 400; font-size: 1.02em; }
[data-serif="newsreader"] .mark { font-family: "Newsreader", serif;        font-weight: 400; font-size: 1.04em; }
[data-serif="dm-serif"]   .mark { font-family: "DM Serif Display", serif;  font-weight: 400; font-size: 1.0em;  letter-spacing: -0.01em; transform: translateY(0.02em); }
[data-serif="crimson"]    .mark { font-family: "Crimson Pro", serif;       font-weight: 500; font-size: 1.04em; }

/* default — clean marker underline (covers descenders OK at this size) */
.manifesto-sub {
  margin-top: 56px;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 20px;
  line-height: 1.5;
  color: rgba(249,249,249,0.78);
  max-width: 640px;
}

/* ============================================================
   Services — list with hover yellow swipe
   ============================================================ */
.services-head {
  max-width: 1480px;
  margin: 0 auto 80px;
  display: grid;
  grid-template-columns: 0.32fr 0.68fr;
  gap: 80px;
  align-items: end;
}
.services-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(40px, 4.6vw, 72px);
  line-height: 1.05;
  letter-spacing: -0.015em;
  margin: 0;
  text-wrap: pretty;
}

/* Line break that only appears on mobile — used in titles to force 3 lines on small screens */
.br-mobile-only { display: none; }
@media (max-width: 720px) {
  .br-mobile-only { display: inline; }
}
.services-list {
  max-width: 1480px;
  margin: 0 auto;
  border-top: 1px solid var(--rule);
}

#services { position: relative; overflow: hidden; }
.services-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}
.services-bg-img {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  filter: grayscale(100%) brightness(0.45) contrast(1.05);
  transition: opacity 700ms cubic-bezier(0.4, 0, 0.2, 1);
}
.services-bg-img.is-active { opacity: 1; }
.services-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(13,13,13,0.6) 0%, rgba(13,13,13,0.85) 100%);
  pointer-events: none;
}
.services-head, .services-list { position: relative; z-index: 1; }

.service-row {
  display: grid;
  grid-template-columns: 0.32fr 0.68fr;
  column-gap: 80px;
  align-items: center;
  min-height: 140px;
  padding: 36px 24px 36px 0;
  border-bottom: 1px solid var(--rule);
  position: relative;
  transition:
    padding var(--dur-mid) var(--ease-out);
}
.service-row-left {
  display: grid;
  grid-template-columns: 70px 1fr;
  column-gap: 32px;
  align-items: center;
}
.service-row-right {
  display: grid;
  grid-template-columns: 1fr 60px;
  column-gap: 32px;
  align-items: center;
}
.service-row::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--flmr-yellow);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform var(--dur-mid) var(--ease-out);
  z-index: 0;
}
.service-row > * { position: relative; z-index: 1; }
.service-row:hover { padding-left: 24px; padding-right: 0; }
.service-row:hover::before { transform: scaleY(1); }
.service-row:hover .service-num,
.service-row:hover .service-name,
.service-row:hover .service-desc,
.service-row:hover .service-arrow {
  color: var(--flmr-black);
}
.service-row:hover .service-num   { transform: translateX(8px); }
.service-row:hover .service-name  { transform: translateX(10px); }
.service-row:hover .service-desc  { transform: translateX(6px); }
.service-row:hover .service-arrow { transform: translateX(-8px); }

.service-num,
.service-name,
.service-desc,
.service-arrow {
  transition:
    transform 520ms cubic-bezier(0.22, 0.61, 0.36, 1),
    color     360ms ease;
  will-change: transform;
}

/* Stagger the text shift so it reads as one organic motion, not a jump */
.service-row .service-num   { transition-delay: 40ms; }
.service-row .service-name  { transition-delay: 90ms; }
.service-row .service-desc  { transition-delay: 140ms; }
.service-row .service-arrow { transition-delay: 0ms; }
.service-row:not(:hover) .service-num,
.service-row:not(:hover) .service-name,
.service-row:not(:hover) .service-desc { transition-delay: 0ms; }

.service-num {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.16em;
  color: var(--fg-muted);
}
.service-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(22px, 1.9vw, 30px);
  letter-spacing: -0.01em;
  line-height: 1.1;
}
.service-desc {
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.5;
  color: rgba(249,249,249,0.72);
  max-width: 760px;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.service-arrow {
  font-family: var(--font-mono);
  font-size: 22px;
  text-align: right;
  color: var(--flmr-white);
  transition: transform var(--dur-mid) var(--ease-out);
}

/* ============================================================
   Terrain — image-first split
   ============================================================ */
.terrain {
  max-width: 1480px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 0.55fr 0.45fr;
  gap: 64px;
  align-items: stretch;
}
.terrain-text {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 40px;
}
.terrain-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(48px, 6vw, 96px);
  line-height: 0.95;
  letter-spacing: -0.02em;
  margin: 24px 0 0;
}
.terrain-body {
  font-family: var(--font-body);
  font-size: 19px;
  line-height: 1.55;
  color: rgba(249,249,249,0.78);
  max-width: 540px;
  margin-top: 24px;
}

.terrain-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 32px;
}
.tag {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 8px 14px;
  border: 1px solid var(--rule-strong);
  color: var(--flmr-white);
  transition: all var(--dur-fast) var(--ease-out);
}
.tag:hover {
  background: var(--flmr-yellow);
  color: var(--flmr-black);
  border-color: var(--flmr-yellow);
}

.terrain-image {
  position: relative;
  background: #0a0a0a;
  border: 1px solid var(--rule);
  min-height: 560px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.terrain-image .placeholder {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(ellipse at 40% 30%, rgba(255,255,255,0.10) 0%, transparent 55%),
    radial-gradient(ellipse at 70% 80%, rgba(255,255,255,0.06) 0%, transparent 60%),
    linear-gradient(160deg, #1c1c1c 0%, #060606 70%);
  filter: grayscale(100%) blur(0.4px);
}
.terrain-image .yellow-overlay {
  position: absolute;
  bottom: 24%;
  left: 12%;
  width: 38%;
  height: 88px;
  background: var(--flmr-yellow);
  opacity: 0.55;
}
.terrain-image .stamps {
  position: absolute;
  inset: 16px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  pointer-events: none;
}
.terrain-image .stamp-row {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  color: rgba(249,249,249,0.85);
  text-transform: uppercase;
}
.terrain-image .stamp-row span {
  background: rgba(13,13,13,0.55);
  padding: 4px 8px;
  backdrop-filter: blur(4px);
}

/* ============================================================
   Terrain — Plein écran · carte interactive (P4)
   La carte couvre toute la section et passe derrière le texte,
   un vignettage radial garantit la lisibilité.
   ============================================================ */
.terrain-fullscreen {
  padding: 0;
  position: relative;
  overflow: hidden;
  height: 92vh;
  min-height: 720px;
  max-height: 1000px;
}

.terrain-fullscreen .section-num,
.terrain-fullscreen .section-tag {
  z-index: 250;
}

.terrain-map-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: #050505;
}

/* Leaflet base — dark restyle */
.terrain-fullscreen .leaflet-container {
  background: #050505 !important;
  outline: none;
  font-family: var(--font-mono);
}
.terrain-fullscreen .leaflet-tile {
  filter: grayscale(100%) brightness(1.6) contrast(1.15) saturate(0);
}
.terrain-fullscreen .leaflet-tile-loaded { opacity: 1 !important; }
.terrain-fullscreen .leaflet-fade-anim .leaflet-tile { will-change: auto; }
.terrain-fullscreen .leaflet-pane .leaflet-tile-pane > div:nth-child(2) {
  opacity: 0.18;
}

.terrain-fullscreen .leaflet-control-zoom {
  border: 1px solid var(--rule-strong) !important;
  box-shadow: none !important;
  margin: 0 !important;
  background: rgba(13,13,13,0.7);
  backdrop-filter: blur(8px);
  opacity: 0;
  transition: opacity 240ms ease;
}
/* Move the +/- to the vertical middle of the section, hard right */
.terrain-fullscreen .leaflet-control-container .leaflet-top.leaflet-left,
.terrain-fullscreen .leaflet-control-container .leaflet-top.leaflet-right {
  top: 50%;
  left: auto;
  right: 18px;
  transform: translateY(-50%);
  pointer-events: none;
}
.terrain-fullscreen .leaflet-control-container .leaflet-top.leaflet-left .leaflet-control,
.terrain-fullscreen .leaflet-control-container .leaflet-top.leaflet-right .leaflet-control {
  float: none;
  clear: none;
  pointer-events: auto;
}
.terrain-fullscreen:hover .leaflet-control-zoom,
.terrain-fullscreen .leaflet-control-zoom { opacity: 1; }
.terrain-fullscreen .leaflet-control-zoom a {
  background: transparent !important;
  color: var(--flmr-white) !important;
  border-color: var(--rule) !important;
  font-family: var(--font-mono) !important;
  width: 32px !important;
  height: 32px !important;
  line-height: 32px !important;
  font-size: 16px !important;
}
.terrain-fullscreen .leaflet-control-zoom a:hover {
  background: var(--flmr-yellow) !important;
  color: var(--flmr-black) !important;
}

/* Yellow pulsing markers */
.tp-marker {
  position: relative;
  width: 24px;
  height: 24px;
}
.tp-marker .core {
  position: absolute;
  inset: 8px;
  background: var(--flmr-yellow);
  border-radius: 50%;
  box-shadow: 0 0 0 1px var(--flmr-black);
}
.tp-marker .ring {
  position: absolute;
  inset: 0;
  border: 1px solid var(--flmr-yellow);
  border-radius: 50%;
  opacity: 0.5;
  animation: tp-pulse 2.4s ease-out infinite;
}
.tp-marker.is-active .core { inset: 6px; }
.tp-marker.is-active .ring { opacity: 0.9; }
@keyframes tp-pulse {
  0%   { transform: scale(1);   opacity: 0.5; }
  100% { transform: scale(2.6); opacity: 0; }
}

/* ============================================================
   3D draggable globe (Monde) — d3 orthographic, black & white
   Same realistic feel as the Leaflet basemap, but rotatable.
   Centre offset to ~72% across the section, matching cities.
   ============================================================ */
.terrain-layer {
  position: absolute;
  inset: 0;
  /* Long, decelerating curve = Google Earth "pulling back from the surface".
     Opacity is held late so the layer stays readable while it scales. */
  transition:
    opacity 1700ms cubic-bezier(0.16, 1, 0.3, 1),
    transform 2000ms cubic-bezier(0.16, 1, 0.3, 1),
    filter   1500ms cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform, filter;
  transform-origin: 72% 50%;
}
.terrain-layer.is-active {
  opacity: 1;
  transform: scale(1);
  filter: blur(0px) brightness(1);
  pointer-events: auto;
}
.terrain-layer--map.is-hidden {
  /* As the globe takes over, the surface keeps pulling back (Leaflet flyTo
     drives the texture change) then dims to the night side of space. */
  opacity: 0;
  transform: scale(0.78);
  filter: blur(8px) brightness(0.55);
  pointer-events: none;
}
.terrain-layer--globe.is-hidden {
  /* Globe starts MUCH larger than the screen so when it activates it
     "pulls back" into view — same direction of travel as the map dezoom. */
  opacity: 0;
  transform: scale(3.6);
  filter: blur(12px) brightness(1.15);
  pointer-events: none;
}
@media (prefers-reduced-motion: reduce) {
  .terrain-layer { transition: opacity 300ms linear; transform: none !important; filter: none !important; }
}

.filmerie-globe-wrap {
  position: absolute;
  inset: 0;
  background: #050505;
  overflow: hidden;
}
.filmerie-globe {
  width: 100%;
  height: 100%;
  display: block;
  cursor: grab;
  touch-action: none;
}
.filmerie-globe.is-grabbing { cursor: grabbing; }

/* ============================================================
   Touch lock — until the user explicitly taps the hint, the map /
   globe lets one-finger drags fall through to page scroll so the
   user is never trapped inside the interactive layer.
   ============================================================ */
.map-canvas.is-locked,
.map-canvas.is-locked .leaflet-container,
.filmerie-globe-wrap.is-locked,
.filmerie-globe-wrap.is-locked .filmerie-globe {
  touch-action: pan-y !important;
}
.filmerie-globe-wrap.is-locked .filmerie-globe { cursor: default; }

.map-touch-hint {
  position: absolute;
  left: 50%;
  bottom: 22%;
  transform: translateX(-50%);
  z-index: 220;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 11px 16px 11px 14px;
  border: 1px solid rgba(255,234,0,0.55);
  background: rgba(13,13,13,0.78);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: var(--flmr-white);
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  cursor: pointer;
  pointer-events: auto;
  touch-action: manipulation;
  white-space: nowrap;
  box-shadow: 0 12px 32px rgba(0,0,0,0.45);
  animation: map-touch-hint-in 380ms var(--ease-out) both;
}
.map-touch-hint-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--flmr-yellow);
  box-shadow: 0 0 0 0 rgba(255,234,0,0.55);
  animation: rec-pulse 1.6s ease-out infinite;
  flex: 0 0 auto;
}
.map-touch-hint:hover { border-color: var(--flmr-yellow); }
@keyframes map-touch-hint-in {
  from { opacity: 0; transform: translate(-50%, 8px); }
  to   { opacity: 1; transform: translate(-50%, 0); }
}
@media (max-width: 720px) {
  .map-touch-hint {
    bottom: 30%;
    font-size: 10px;
    letter-spacing: 0.12em;
    padding: 11px 14px;
    max-width: calc(100vw - 56px);
    white-space: normal;
    text-align: left;
    line-height: 1.35;
  }
}

.filmerie-globe .globe-ocean {
  fill: #0a0a0a;
  stroke: rgba(255,255,255,0.22);
  stroke-width: 0.8;
}
.filmerie-globe .globe-graticule {
  fill: none;
  stroke: rgba(255,255,255,0.07);
  stroke-width: 0.5;
}
.filmerie-globe .globe-land {
  fill: rgba(235,235,235,0.82);
  stroke: rgba(255,255,255,0.55);
  stroke-width: 0.35;
  paint-order: fill stroke;
}
.filmerie-globe .globe-borders {
  fill: none;
  stroke: rgba(10,10,10,0.55);
  stroke-width: 0.3;
}
.filmerie-globe .globe-shade {
  pointer-events: none;
  mix-blend-mode: multiply;
}
.filmerie-globe .globe-halo {
  fill: none;
  stroke: rgba(255,255,255,0.08);
  stroke-width: 1;
  pointer-events: none;
}
.filmerie-globe .globe-sion-ring {
  fill: none;
  stroke: var(--flmr-yellow);
  stroke-width: 0.8;
  opacity: 0.45;
  animation: globe-sion-pulse 2.4s ease-out infinite;
}
@keyframes globe-sion-pulse {
  0%   { r: 6;  opacity: 0.7; }
  100% { r: 26; opacity: 0;   }
}
.filmerie-globe .globe-sion-core {
  fill: var(--flmr-yellow);
  stroke: #050505;
  stroke-width: 0.6;
}
.filmerie-globe .globe-sion-label {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.14em;
  fill: rgba(255,234,0,0.95);
  text-shadow: 0 1px 4px rgba(0,0,0,0.8);
}

.globe-hint {
  position: absolute;
  left: max(80px, calc((100vw - 1480px) / 2));
  bottom: 96px;
  z-index: 150;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  color: rgba(255,255,255,0.55);
  pointer-events: none;
  display: flex;
  align-items: center;
  gap: 10px;
}
.globe-hint::before {
  content: "";
  width: 18px; height: 1px;
  background: rgba(255,255,255,0.35);
}

/* ============================================================
   Scroll reveal — animate elements as they enter the viewport
   ============================================================ */
[data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 900ms cubic-bezier(0.22, 0.61, 0.36, 1),
    transform 900ms cubic-bezier(0.22, 0.61, 0.36, 1);
  transition-delay: var(--reveal-d, 0ms);
  will-change: opacity, transform;
}
[data-reveal="soft"] { transform: translateY(14px); }
[data-reveal="tag"]  { transform: none; transition: opacity 700ms ease var(--reveal-d, 0ms); }
[data-reveal="left"] { transform: translateX(-24px); }
[data-reveal].is-in {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1 !important; transform: none !important; transition: none !important; }
}

/* Vignettage */
.terrain-vignette {
  position: absolute;
  inset: 0;
  z-index: 100;
  pointer-events: none;
  background:
    radial-gradient(ellipse 70% 75% at 30% 50%,
      rgba(13,13,13,0.85) 0%,
      rgba(13,13,13,0.55) 35%,
      rgba(13,13,13,0.10) 65%,
      rgba(13,13,13,0) 100%),
    linear-gradient(180deg,
      rgba(13,13,13,0.55) 0%,
      rgba(13,13,13,0) 18%,
      rgba(13,13,13,0) 78%,
      rgba(13,13,13,0.65) 100%);
}

/* Overlay content */
.terrain-content {
  position: absolute;
  inset: 0;
  z-index: 200;
  padding: 96px max(80px, calc((100vw - 1480px) / 2)) 64px;
  display: grid;
  grid-template-columns: minmax(0, 560px) 1fr;
  align-content: space-between;
  pointer-events: none;
}
.terrain-content > * { pointer-events: auto; }

.terrain-head {
  grid-column: 1;
  align-self: start;
}
.terrain-fullscreen .terrain-title {
  font-size: clamp(56px, 6vw, 96px);
  text-shadow: 0 2px 30px rgba(0,0,0,0.5);
  margin: 24px 0 0;
}
.terrain-fullscreen .terrain-body {
  text-shadow: 0 1px 16px rgba(0,0,0,0.6);
  max-width: 480px;
  margin-top: 20px;
}

.terrain-bottom {
  grid-column: 1;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  margin-top: 32px;
}

.terrain-dest-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  max-width: 920px;
}
.terrain-dest-strip button {
  position: relative;
  display: inline-flex;
  align-items: center;
  background: rgba(13,13,13,0.55);
  border: 1px solid rgba(249,249,249,0.18);
  padding: 9px 14px;
  cursor: pointer;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(249,249,249,0.78);
  backdrop-filter: blur(8px);
  transition: color 180ms ease, background 180ms ease, border-color 180ms ease, transform 180ms ease;
}
.terrain-dest-strip button:hover {
  color: var(--flmr-white);
  border-color: rgba(249,249,249,0.45);
  background: rgba(13,13,13,0.7);
}
.terrain-dest-strip button.is-active {
  color: var(--flmr-black);
  background: var(--flmr-yellow);
  border-color: var(--flmr-yellow);
  box-shadow: 0 6px 24px rgba(255,234,0,0.28);
}
.terrain-dest-strip button.is-monde {
  font-family: "Instrument Serif", serif;
  font-style: italic;
  font-size: 14px;
  letter-spacing: 0.02em;
  text-transform: none;
  border-style: dashed;
}

.terrain-readout {
  grid-column: 2;
  grid-row: 2;
  justify-self: end;
  align-self: end;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(249,249,249,0.6);
  text-align: right;
  border-top: 1px solid rgba(249,249,249,0.25);
  padding: 14px 0 12px;
  min-width: 280px;
}
.terrain-readout .big {
  font-family: var(--font-display);
  font-size: 18px;
  letter-spacing: -0.01em;
  color: var(--flmr-yellow);
  text-transform: none;
  display: block;
  margin-bottom: 4px;
}

@media (max-width: 920px) {
  .terrain-fullscreen { height: auto; min-height: 100vh; }
  .terrain-content { padding: 96px 32px 40px; grid-template-columns: 1fr; }
  .terrain-bottom { flex-direction: column; align-items: stretch; }
  .terrain-readout { text-align: left; }
}

/* ============================================================
   Contact — split: info + form
   ============================================================ */
.contact {
  max-width: 1480px;
  margin: 0 auto;
}
.contact--split {
  display: grid;
  grid-template-columns: 0.4fr 0.6fr;
  gap: 96px;
  align-items: stretch;
}

/* Centered layout — header centered, form below, info as ribbon */
.contact--centered {
  display: flex;
  flex-direction: column;
  gap: 64px;
  align-items: center;
  text-align: center;
}
.contact--centered .contact-centered-head {
  max-width: 760px;
}
.contact--centered .contact-centered-head .manifesto-sub {
  margin-left: auto;
  margin-right: auto;
}
.contact--centered .contact-title { text-wrap: balance; }
.contact--centered .form {
  width: 100%;
  max-width: 880px;
  text-align: left;
}
.contact--centered .contact-centered-info {
  width: 100%;
  max-width: 1100px;
  border-top: 1px solid var(--rule);
  padding-top: 32px;
}
.contact--centered .contact-info {
  flex-direction: row;
  flex-wrap: wrap;
  gap: 0;
  margin-top: 0;
}
.contact--centered .contact-info-row {
  flex: 1 1 200px;
  border-bottom: none;
  border-right: 1px solid var(--rule);
  padding: 0 32px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  text-align: left;
}
.contact--centered .contact-info-row:last-child { border-right: none; }

/* Stacked layout — title block, full-width form, info as horizontal ribbon below */
.contact--stacked {
  display: flex;
  flex-direction: column;
  gap: 56px;
}
.contact--stacked .contact-header { max-width: 880px; }
.contact--stacked .form { width: 100%; }
.contact--stacked .contact-stacked-info {
  border-top: 1px solid var(--rule);
  padding-top: 28px;
}
.contact--stacked .contact-info {
  flex-direction: row;
  flex-wrap: wrap;
  gap: 0;
  margin-top: 0;
}
.contact--stacked .contact-info-row {
  flex: 1 1 220px;
  border-bottom: none;
  border-right: 1px solid var(--rule);
  padding: 4px 32px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}
.contact--stacked .contact-info-row:last-child { border-right: none; }

/* Editorial layout — large title spans top, form left, info right */
.contact--editorial {
  display: grid;
  grid-template-columns: 0.6fr 0.4fr;
  grid-template-areas:
    "head head"
    "form info";
  gap: 64px 96px;
}
.contact--editorial .contact-editorial-head {
  grid-area: head;
  border-bottom: 1px solid var(--rule);
  padding-bottom: 24px;
}
.contact--editorial .contact-editorial-head .contact-title {
  font-size: clamp(64px, 8vw, 128px);
  margin: 16px 0 24px;
}
.contact--editorial .contact-editorial-form { grid-area: form; }
.contact--editorial .contact-editorial-info { grid-area: info; }
.contact--editorial .contact-info { margin-top: 0; }
.contact-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(48px, 6vw, 96px);
  line-height: 0.95;
  letter-spacing: -0.02em;
  margin: 24px 0 32px;
}
.contact-info {
  display: flex;
  flex-direction: column;
  gap: 28px;
  margin-top: 24px;
}
.contact-info-row {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 16px;
  align-items: baseline;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--rule);
}
.contact-info-row .label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--fg-muted);
}
.contact-info-row .value {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 500;
  color: var(--flmr-white);
}
.contact-info-row .value a:hover { color: var(--flmr-yellow); }

/* Form */
.form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px 24px;
  align-self: end;
}
.form .full { grid-column: 1 / -1; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--fg-muted);
}
.field input,
.field textarea,
.field select {
  font-family: var(--font-body);
  font-size: 17px;
  font-weight: 400;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--rule-strong);
  color: var(--flmr-white);
  padding: 10px 0;
  outline: none;
  transition: border-color var(--dur-fast) var(--ease-out);
  border-radius: 0;
}
.field input:focus,
.field textarea:focus,
.field select:focus {
  border-bottom-color: var(--flmr-yellow);
}
.field textarea {
  resize: vertical;
  min-height: 120px;
  font-family: var(--font-body);
}
.field select { appearance: none; }
.form-actions {
  grid-column: 1 / -1;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 16px;
}
.form-actions .note {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--fg-muted);
  text-transform: uppercase;
}
.form-success {
  grid-column: 1 / -1;
  border: 1px solid var(--flmr-yellow);
  padding: 20px;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.08em;
  color: var(--flmr-yellow);
}

/* ============================================================
   Footer
   ============================================================ */
.footer {
  border-top: 1px solid var(--rule);
  padding: 80px 80px 40px;
}
.footer-top {
  max-width: 1480px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 0.5fr 0.5fr;
  gap: 64px;
  align-items: end;
  margin-bottom: 80px;
}
.footer-wordmark {
  width: 100%;
  max-width: 720px;
  height: auto;
}
.footer-cols {
  display: flex;
  gap: 64px;
  justify-content: flex-end;
}
.footer-col {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.footer-col .head {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--fg-muted);
  margin-bottom: 8px;
}
.footer-col a {
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--flmr-white);
  transition: color var(--dur-fast) var(--ease-out);
}
.footer-col a:hover { color: var(--flmr-yellow); }

.footer-bottom {
  max-width: 1480px;
  margin: 0 auto;
  padding-top: 24px;
  border-top: 1px solid var(--rule);
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--fg-muted);
}

/* ============================================================
   Responsive (light-touch — site is hi-fi for desktop)
   ============================================================ */
@media (max-width: 1080px) {
  .section { padding: 100px 32px; }
  .section-num { left: 32px; }
  .section-tag { right: 32px; }
  .footer { padding: 60px 32px 32px; }
  .manifesto, .services-head, .terrain, .contact, .footer-top {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .manifesto-meta { position: static; flex-direction: row; flex-wrap: wrap; gap: 32px; }
  .footer-cols { justify-content: flex-start; flex-wrap: wrap; }
  .terrain-map { min-height: 380px; }
  .service-row { grid-template-columns: 1fr; gap: 16px; }
  .service-row-left { grid-template-columns: 50px 1fr; column-gap: 20px; }
  .service-row-right { grid-template-columns: 1fr 30px; column-gap: 20px; }
  .service-desc { max-width: none; }
  .form { grid-template-columns: 1fr; }
  .contact--split { grid-template-columns: 1fr; gap: 48px; }
  .contact--editorial { grid-template-columns: 1fr; grid-template-areas: "head" "form" "info"; gap: 48px; }
  .contact--centered .contact-info-row,
  .contact--stacked .contact-info-row { flex: 1 1 100%; border-right: none; border-bottom: 1px solid var(--rule); padding: 14px 0; }
  .hero-bug { width: 119px; }
  .hero-content { padding: 20px; }
}

/* ============================================================
   MOBILE — true phone layout (≤ 720px)
   Re-thought, not just shrunk. Hero stacks, services become cards,
   terrain dest-strip scrolls horizontally, contact info becomes a
   tight ribbon, footer stacks cleanly.
   ============================================================ */
@media (max-width: 720px) {

  /* ---- Global section spacing ---- */
  .section {
    padding: 80px 20px 72px;
    border-top: 1px solid var(--rule);
  }
  .section-num,
  .section-tag {
    top: 18px;
    font-size: 9.5px;
    letter-spacing: 0.16em;
  }
  .section-num { left: 20px; }
  .section-tag { right: 20px; }

  .eyebrow { font-size: 10px; letter-spacing: 0.16em; gap: 8px; }
  .eyebrow::before { width: 20px; }

  /* ---- HERO ---- */
  .hero {
    min-height: 100svh;
    height: 100svh;
  }
  .hero-content {
    padding: 18px 18px max(20px, env(safe-area-inset-bottom));
    grid-template-rows: auto 1fr auto;
  }
  .hero-top { gap: 12px; }
  /* Mobile : on garde le slate stamp mais on cache la pastille jaune et l'adresse complète — il ne reste que "LA FILMERIE" */
  .slate-stamp .dot { display: none; }
  .slate-stamp .slate-address { display: none; }
  .slate-stamp { font-size: 11px; letter-spacing: 0.18em; gap: 7px; }
  .slate-stamp .dot { width: 6px; height: 6px; }
  /* Trim the long address on small screens — keep just the brand + city */
  .slate-stamp { max-width: 64%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

  .lang { font-size: 11px; }
  .lang button { padding: 4px 6px; }

  .hero-center { padding-bottom: 0; }
  .hero-bug {
    width: min(36vw, 145px);
    filter: drop-shadow(0 0 22px rgba(0,0,0,0.7));
  }

  .hero-bottom {
    flex-direction: column-reverse;
    align-items: flex-start;
    gap: 18px;
  }
  .hero-bottom .btn {
    width: auto;
    padding: 16px 24px;
    font-size: 11px;
    letter-spacing: 0.16em;
  }
  /* Scroll cue désactivé sur mobile — le geste de swipe est déjà naturel */
  .scroll-cta { display: none; }

  /* ---- MANIFESTE ---- */
  .manifesto {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  /* Manifesto meta (role / base / scope / since) caché sur mobile —
     l'info de localisation est déjà dans le slate stamp et le footer. */
  .manifesto-meta { display: none; }

  /* Section Terrain entièrement désactivée sur mobile —
     la carte interactive Leaflet n'a pas de bonne UX sur petit écran. */
  #terrain { display: none; }
  .manifesto-meta > div { min-width: 0; }
  .manifesto-meta .label { font-size: 9.5px; letter-spacing: 0.16em; }
  .manifesto-meta .label-value { font-size: 12px; }

  #manifesto .eyebrow { margin-bottom: 22px !important; }
  .manifesto-text {
    font-size: clamp(30px, 8.4vw, 44px);
    line-height: 1.08;
    letter-spacing: -0.012em;
  }
  .manifesto-sub {
    margin-top: 28px;
    font-size: 15.5px;
    line-height: 1.55;
  }

  /* ---- SERVICES ---- */
  .services-head {
    grid-template-columns: 1fr;
    gap: 20px;
    margin-bottom: 40px;
  }
  .services-title {
    font-size: clamp(30px, 8.4vw, 44px);
    line-height: 1.08;
    letter-spacing: -0.012em;
  }
  .services-head .manifesto-sub {
    font-size: 15.5px;
    margin-top: 28px;
  }
  /* Cards instead of hover-rows on touch */
  .services-list { border-top: none; }
  .service-row {
    grid-template-columns: 1fr;
    gap: 14px;
    min-height: 0;
    padding: 26px 0;
    border-bottom: 1px solid var(--rule);
  }
  .service-row::before { display: none; } /* no yellow swipe on touch */
  .service-row:hover { padding-left: 0; padding-right: 0; }
  .service-row:hover .service-num,
  .service-row:hover .service-name,
  .service-row:hover .service-desc,
  .service-row:hover .service-arrow { color: inherit; transform: none; }
  .service-row-left {
    grid-template-columns: auto 1fr;
    column-gap: 14px;
    align-items: baseline;
  }
  .service-row-right {
    grid-template-columns: 1fr auto;
    column-gap: 12px;
    align-items: start;
  }
  .service-num { font-size: 11px; }
  .service-name { font-size: 22px; line-height: 1.1; }
  .service-desc {
    font-size: 14.5px;
    line-height: 1.5;
    -webkit-line-clamp: unset;
    display: block;
    color: rgba(249,249,249,0.68);
  }
  .service-arrow { display: none; }

  /* ---- TERRAIN ---- */
  .terrain-fullscreen {
    height: auto;
    min-height: 96svh;
    max-height: none;
    padding: 0;
  }
  .terrain-fullscreen .section-num,
  .terrain-fullscreen .section-tag {
    top: 14px;
  }
  .terrain-content {
    padding: 64px 20px 24px;
    grid-template-columns: 1fr;
    gap: 24px;
    min-height: 96svh;
  }
  .terrain-head { grid-column: 1; }
  .terrain-fullscreen .terrain-title {
    font-size: clamp(42px, 11vw, 60px);
    line-height: 0.96;
    margin: 14px 0 0;
  }
  .terrain-fullscreen .terrain-body {
    font-size: 15px;
    line-height: 1.55;
    margin-top: 14px;
    max-width: none;
  }

  /* Readout becomes a thin top-aligned strip under the body */
  .terrain-readout {
    grid-column: 1;
    grid-row: auto;
    justify-self: stretch;
    text-align: left;
    border-top: 1px solid rgba(249,249,249,0.22);
    padding: 10px 0 0;
    font-size: 9.5px;
    letter-spacing: 0.14em;
    min-width: 0;
  }
  .terrain-readout .big { font-size: 15px; margin-bottom: 2px; }

  /* Destination strip — horizontally scrollable, snap, no wrap */
  .terrain-bottom {
    grid-column: 1;
    margin: 8px -20px 0;
    flex-direction: column;
    align-items: stretch;
  }
  .terrain-dest-strip {
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    gap: 6px;
    padding: 4px 20px 8px;
    max-width: none;
    scroll-snap-type: x proximity;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    /* fade edges */
    mask-image: linear-gradient(90deg, transparent 0, #000 20px, #000 calc(100% - 20px), transparent 100%);
            -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 20px, #000 calc(100% - 20px), transparent 100%);
  }
  .terrain-dest-strip::-webkit-scrollbar { display: none; }
  .terrain-dest-strip button {
    flex: 0 0 auto;
    scroll-snap-align: start;
    padding: 8px 12px;
    font-size: 10.5px;
    letter-spacing: 0.12em;
  }
  .terrain-dest-strip button.is-monde { font-size: 13px; }

  /* Center the +/- on the right side, away from the notch */
  .terrain-fullscreen .leaflet-control-container .leaflet-top.leaflet-left,
  .terrain-fullscreen .leaflet-control-container .leaflet-top.leaflet-right {
    right: 12px;
  }
  .terrain-fullscreen .leaflet-control-zoom {
    margin: 0 !important;
    opacity: 1;
  }
  .terrain-fullscreen .leaflet-control-zoom a {
    width: 36px !important;
    height: 36px !important;
    line-height: 36px !important;
  }

  /* Stronger left vignette so text reads over the map at small sizes */
  .terrain-vignette {
    background:
      radial-gradient(ellipse 110% 60% at 50% 28%,
        rgba(13,13,13,0.85) 0%,
        rgba(13,13,13,0.55) 40%,
        rgba(13,13,13,0.0) 80%),
      linear-gradient(180deg,
        rgba(13,13,13,0.65) 0%,
        rgba(13,13,13,0) 26%,
        rgba(13,13,13,0) 60%,
        rgba(13,13,13,0.85) 100%);
  }

  /* ---- CONTACT ---- */
  .contact--split,
  .contact--centered,
  .contact--stacked,
  .contact--editorial {
    display: flex;
    flex-direction: column;
    gap: 36px;
    text-align: left;
  }
  .contact--editorial { grid-template-columns: 1fr; grid-template-areas: none; }
  .contact--editorial .contact-editorial-head { border-bottom: 1px solid var(--rule); padding-bottom: 18px; }
  .contact--editorial .contact-editorial-head .contact-title { font-size: clamp(44px, 12vw, 64px); margin: 12px 0 16px; }

  .contact-title {
    font-size: clamp(40px, 11vw, 56px);
    line-height: 0.98;
    margin: 16px 0 20px;
  }
  .contact .manifesto-sub { font-size: 15.5px; margin-top: 0; }
  .contact-header { max-width: 100%; }

  /* Info — switch to a horizontal ribbon of compact rows */
  .contact-info,
  .contact--centered .contact-info,
  .contact--stacked .contact-info {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin-top: 8px;
    border-top: 1px solid var(--rule);
  }
  .contact-info-row,
  .contact--centered .contact-info-row,
  .contact--stacked .contact-info-row {
    grid-template-columns: 80px 1fr;
    display: grid;
    flex: none;
    gap: 12px;
    padding: 14px 0;
    border-right: none;
    border-bottom: 1px solid var(--rule);
    align-items: baseline;
    text-align: left;
  }
  .contact-info-row .label { font-size: 9.5px; }
  .contact-info-row .value { font-size: 16px; word-break: break-word; }

  /* Form */
  .form {
    grid-template-columns: 1fr;
    gap: 22px;
    align-self: stretch;
  }
  .field input,
  .field textarea,
  .field select {
    font-size: 16px; /* avoids iOS zoom on focus */
    padding: 12px 0;
  }
  .field textarea { min-height: 110px; }
  .form-actions {
    flex-direction: column-reverse;
    align-items: stretch;
    gap: 18px;
    margin-top: 8px;
  }
  .form-actions .note { font-size: 9.5px; text-align: center; }
  .form-actions .btn {
    width: 100%;
    justify-content: space-between;
    padding: 18px 20px;
  }

  /* ---- FOOTER ---- */
  .footer { padding: 56px 20px 28px; }
  .footer-top {
    grid-template-columns: 1fr;
    gap: 40px;
    margin-bottom: 48px;
    align-items: start;
  }
  .footer-wordmark { max-width: 100%; }
  .footer-cols {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 28px 20px;
    justify-content: stretch;
  }
  .footer-col .head { font-size: 9.5px; }
  .footer-col a { font-size: 14px; }
  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    font-size: 9px;
    letter-spacing: 0.16em;
    padding-top: 18px;
  }

  /* Reduce grain animation overhead on phones */
  .grain { animation-duration: 2.4s; }
}

/* ============================================================
   Very small / portrait — extra squeeze (≤ 380px)
   ============================================================ */
@media (max-width: 380px) {
  .section { padding: 64px 16px 56px; }
  .section-num, .section-tag { font-size: 9px; }
  .section-num { left: 16px; } .section-tag { right: 16px; }
  .hero-content { padding: 16px 16px max(18px, env(safe-area-inset-bottom)); }
  .slate-stamp { font-size: 8.5px; }
  .footer { padding: 48px 16px 24px; }
  .terrain-content { padding-left: 16px; padding-right: 16px; }
  .terrain-bottom { margin-left: -16px; margin-right: -16px; }
  .terrain-dest-strip { padding-left: 16px; padding-right: 16px; }
  .contact-info-row { grid-template-columns: 72px 1fr; }
}
