/* ============================================================
   DOMENN LANTIK — Design System
   Palette: Terre chaude / Or / Vert caribéen
   Typography: Playfair Display + Montserrat
   ============================================================ */

:root {
  /* ── Refined Tropical Luxury palette ── */
  --or: #D4A853;
  --or-light: #E8CA7A;
  --or-dark: #B8913D;
  --or-glow: rgba(212, 168, 83, 0.12);
  --or-ghost: rgba(212, 168, 83, 0.06);

  --earth-50: #F8F5EF;
  --earth-100: #EDE7DA;
  --earth-200: #DCD2BD;
  --earth-800: #1A2520;
  --earth-900: #0E1712;

  --foliage: #2D5A3F;
  --foliage-light: #4A8B5E;
  --foliage-dark: #1C3A27;

  --ocean: #1A7A7E;
  --ocean-light: #2FA4A8;
  --ocean-ghost: rgba(26, 122, 126, 0.06);

  /* ── Semantic tokens ── */
  --text-body: var(--earth-900);
  --text-muted: #4F5750;
  --text-on-dark: #fff;
  --text-on-dark-muted: rgba(255,255,255,0.76);
  --danger: #DC2626;
  --danger-soft: rgba(220,38,38,0.08);
  --danger-border: rgba(220,38,38,0.2);

  /* ── Typography ── */
  --font-serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-sans: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-number: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* ── Depth ── */
  --shadow-sm: 0 2px 8px rgba(14, 23, 18, 0.06);
  --shadow-md: 0 8px 30px rgba(14, 23, 18, 0.10);
  --shadow-lg: 0 16px 50px rgba(14, 23, 18, 0.14);

  --radius-sm: 2px;
  --radius-md: 4px;

  /* ── Motion ── */
  --transition-fast: 200ms ease;
  --transition-base: 350ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 600ms cubic-bezier(0.4, 0, 0.2, 1);

  /* ── Layout ── */
  --header-h: 80px;
  --max-w: 1280px;
  --section-gap: clamp(4rem, 9vw, 7rem);
}

/* ============================================================
   RESET & BASE
   ============================================================ */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.7;
  color: var(--earth-900);
  background: #fff;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--earth-900); }
::-webkit-scrollbar-thumb { background: var(--or); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--or-light); }

@media (max-width: 767px) {
  html {
    scrollbar-width: none;
    -ms-overflow-style: none;
  }

  html::-webkit-scrollbar,
  body::-webkit-scrollbar {
    display: none;
    width: 0;
    height: 0;
  }
}

::selection { background: rgba(197, 160, 89, 0.3); color: var(--earth-900); }

/* ============================================================
   ACCESSIBILITY & PREMIUM UX — focus, skip, touch, forms
   ============================================================ */

/* ---- Skip to content (accessibility) ---- */
.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  background: var(--or);
  color: var(--earth-900);
  padding: 0.75rem 1.25rem;
  font-weight: 600;
  font-size: 0.875rem;
  z-index: 10001;
  border-radius: 0 0 var(--radius-md) var(--radius-md);
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 0;
}

/* ---- Focus visible (WCAG AA) ---- */
:focus-visible {
  outline: 2px solid var(--or);
  outline-offset: 2px;
}

.btn:focus-visible,
a:focus-visible {
  outline: 2px solid var(--or);
  outline-offset: 3px;
}

input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: none;
  border-color: var(--or);
  box-shadow: 0 0 0 3px var(--or-glow);
}

/* ---- Touch targets (min 44px for mobile) ---- */
@media (hover: none) and (pointer: coarse) {
  .nav-link,
  .btn,
  .social-link,
  .hero-dot {
    min-height: 44px;
    min-width: 44px;
  }
}

/* ---- Form UX ---- */
.form-group {
  position: relative;
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.35rem;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.9rem 1rem;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  border: 1px solid var(--earth-200);
  background: #fff;
  color: var(--earth-900);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.form-group input.error,
.form-group textarea.error {
  border-color: var(--danger);
}

.form-feedback {
  font-size: 0.75rem;
  margin-top: 0.3rem;
  min-height: 0;
  transition: all var(--transition-fast);
}

.form-feedback.error {
  color: var(--danger);
}

.form-feedback.success {
  color: var(--foliage);
}

/* Loading spinner */
@keyframes spin {
  to { transform: rotate(360deg); }
}

.btn-loading {
  position: relative;
  pointer-events: none;
  color: transparent !important;
}

.btn-loading::after {
  content: '';
  position: absolute;
  inset: 0;
  margin: auto;
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255,255,255,0.6);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}

/* Toast notification */
#toast {
  border-radius: var(--radius-sm);
  backdrop-filter: blur(10px);
}

/* ---- Skeleton loading placeholder ---- */
@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

.skeleton {
  background: linear-gradient(90deg, var(--earth-100) 25%, var(--earth-200) 50%, var(--earth-100) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s ease-in-out infinite;
  border-radius: var(--radius-sm);
}

/* ---- Reduced motion (consolidated) ---- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ============================================================
   TYPOGRAPHY
   ============================================================ */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-serif);
  font-weight: 600;
  line-height: 1.15;
  color: var(--earth-900);
}

h1 { font-size: clamp(2.5rem, 6vw, 5rem); letter-spacing: 0; }
h2 { font-size: clamp(2rem, 4.5vw, 3.6rem); letter-spacing: 0; }
h3 { font-size: clamp(1.25rem, 2.5vw, 1.75rem); }
h4 { font-size: 1.125rem; }

.section-eyebrow {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--or);
  margin-bottom: 1rem;
}

.gold-line {
  width: 60px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--or), transparent);
  margin: 0 auto;
}

.gold-line-long {
  width: 130px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--or), transparent);
  margin: 0 auto;
}

/* Foliage accent utility */
.text-foliage { color: var(--foliage); }
.text-foliage-light { color: var(--foliage-light); }

.foliage-line {
  width: 60px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--foliage), transparent);
  margin: 0 auto;
}

.section-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(197,160,89,0.25), transparent);
}

/* ============================================================
   LAYOUT HELPERS
   ============================================================ */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 5vw, 3rem);
}

.section {
  padding: clamp(4rem, 9vw, 7rem) 0;
}

.section-header {
  text-align: center;
  margin-bottom: clamp(3rem, 6vw, 5rem);
}

/* ---- Section header variants (anti-AI-slop: never all centered) ---- */
.section-header-left {
  text-align: left;
  margin-bottom: clamp(3rem, 6vw, 5rem);
  max-width: 600px;
}

.section-header-left .gold-line { margin-left: 0; }

.section-header-offset {
  text-align: left;
  margin-bottom: clamp(3rem, 6vw, 5rem);
  padding-left: clamp(2rem, 8vw, 6rem);
  border-left: 3px solid var(--or);
}

.section-header-wide {
  text-align: left;
  margin-bottom: clamp(3rem, 6vw, 5rem);
}

.section-header-wide h2 {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  line-height: 1.05;
}

/* ---- Container variants ---- */
.container-bleed {
  width: 100%;
  padding: 0 clamp(1.25rem, 5vw, 3rem);
}

.container-narrow {
  width: 100%;
  max-width: 780px;
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 3vw, 2rem);
}

/* ---- Asymmetric grids ---- */
.grid-asymmetric-2 {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}

.grid-asymmetric-3 {
  display: grid;
  grid-template-columns: 1fr 1.3fr 1fr;
  gap: 2rem;
  align-items: start;
}

.grid-masonry-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.grid-masonry-2 > :first-child {
  grid-row: span 2;
}

.grid-featured {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(3rem, 5vw, 5rem);
  align-items: center;
}

/* ---- Full-bleed text block ---- */
.text-bleed {
  font-family: var(--font-serif);
  font-size: clamp(1.1rem, 2.5vw, 1.4rem);
  line-height: 1.7;
  color: var(--text-muted);
  font-weight: 300;
  max-width: 42ch;
  margin: 0 0 4rem 0;
}

.text-bleed-right {
  font-family: var(--font-serif);
  font-size: clamp(1.1rem, 2.5vw, 1.4rem);
  line-height: 1.7;
  color: var(--text-muted);
  font-weight: 300;
  max-width: 42ch;
  margin: 0 0 4rem auto;
  text-align: right;
}

/* ---- Gold accent corner ---- */
.gold-corner {
  position: relative;
}

.gold-corner::before {
  content: '';
  position: absolute;
  top: -1.5rem;
  left: -1.5rem;
  width: 3rem;
  height: 3rem;
  border-top: 2px solid var(--or);
  border-left: 2px solid var(--or);
  opacity: 0.6;
}

/* ---- Large gold number accent ---- */
.gold-number {
  font-family: var(--font-number);
  font-variant-numeric: lining-nums tabular-nums;
  font-feature-settings: "lnum" 1, "tnum" 1;
  font-size: clamp(5rem, 12vw, 10rem);
  font-weight: 700;
  color: var(--or);
  opacity: 0.12;
  line-height: 0.8;
  position: absolute;
  top: -2rem;
  left: -1.5rem;
  pointer-events: none;
}

/* ---- Section accent bar ---- */
.section-accent-bar {
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, var(--or), transparent 60%);
  margin-bottom: 3rem;
}

.section-header h2 { margin-bottom: 0.75rem; }
.section-header .gold-line { margin: 1.5rem auto 0; }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.95rem 2rem;
  border: none;
  cursor: pointer;
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: var(--or);
  color: var(--earth-900);
  font-weight: 700;
}

.btn-primary:hover {
  background: var(--or-light);
  color: var(--earth-900);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(197, 160, 89, 0.35);
}

.btn-outline {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255,255,255,0.6);
}

.btn-outline:hover {
  border-color: var(--or);
  color: var(--or);
  transform: translateY(-2px);
}

.btn-outline-dark {
  background: transparent;
  color: var(--earth-900);
  border: 1px solid rgba(42,31,20,0.2);
}

.btn-outline-dark:hover {
  border-color: var(--or);
  color: var(--or);
  transform: translateY(-2px);
}

.btn-lg { padding: 1.05rem 2.5rem; font-size: 0.85rem; }

.bottom-cta {
  background: #fff;
  padding: clamp(3.25rem, 6vw, 5rem) 0;
}

.bottom-cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(1.75rem, 6vw, 5rem);
}

.bottom-cta-copy {
  max-width: 600px;
}

.bottom-cta-copy h2 {
  margin-bottom: 0.75rem;
  color: var(--earth-900);
  font-size: clamp(2.45rem, 4.2vw, 3.45rem);
  line-height: 0.96;
}

.bottom-cta-copy h2 span {
  color: var(--or);
}

.bottom-cta-copy p {
  max-width: 500px;
  color: var(--text-muted);
  font-weight: 400;
  line-height: 1.55;
}

.bottom-cta-action {
  flex-shrink: 0;
  min-width: 216px;
  padding-top: 0.92rem;
  padding-bottom: 0.92rem;
}

.btn-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--or);
  transition: gap var(--transition-fast);
}

.btn-arrow:hover { gap: 0.65rem; }

.btn-arrow svg {
  width: 15px;
  height: 15px;
  transition: transform var(--transition-fast);
}

.btn-arrow:hover svg { transform: translateX(3px); }

/* ============================================================
   HEADER & NAVIGATION
   ============================================================ */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  height: var(--header-h);
  transition: all var(--transition-slow);
}

.site-header.scrolled {
  background: rgba(42, 31, 20, 0.95);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 4px 30px rgba(0,0,0,0.3);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.logo-link {
  display: flex;
  align-items: center;
  gap: 0;
}

.logo-img {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  object-fit: contain;
  padding: 2px;
  background: rgba(255,255,255,0.96);
  box-shadow: 0 0 0 1px rgba(255,255,255,0.22), 0 6px 18px rgba(0,0,0,0.16);
  filter: drop-shadow(0 0 5px rgba(197,160,89,0.18));
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.logo-link:hover .logo-img { transform: scale(1.1); }

.logo-text {
  display: none;
  align-items: baseline;
  gap: 0.25rem;
}

.logo-text .brand {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-weight: 600;
  color: #fff;
  letter-spacing: 0;
}

.logo-text .brand-accent {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--or);
  letter-spacing: 0;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: clamp(0.75rem, 1.35vw, 1.35rem);
}

.nav-link {
  font-size: 0.76rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: rgba(255,255,255,0.75);
  position: relative;
  padding: 0.3rem 0;
  transition: color var(--transition-fast);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 0;
  height: 1px;
  background: var(--or);
  transition: width var(--transition-base);
}

.nav-link:hover,
.nav-link.active { color: var(--or); }

.nav-link:hover::after,
.nav-link.active::after { width: 100%; }

.nav-cta {
  background: var(--or);
  color: var(--earth-900) !important;
  font-weight: 700;
  padding: 0.55rem 1.05rem !important;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
}

.nav-cta::after { display: none; }

.nav-cta:hover {
  background: var(--or-light);
  color: var(--earth-900) !important;
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  z-index: 1001;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: #fff;
  transition: all var(--transition-base);
}

.hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* Mobile nav */
.mobile-nav {
  position: fixed;
  inset: 0;
  z-index: 999;
  background: rgba(42, 31, 20, 0.98);
  backdrop-filter: blur(20px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2.5rem;
  transform: translateX(100%);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-nav.open { transform: translateX(0); }

.mobile-nav .nav-link {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  color: rgba(255,255,255,0.7);
}

.mobile-nav .nav-link:hover { color: var(--or); }

.mobile-nav .nav-link::after {
  display: none;
}

.mobile-nav .btn {
  align-self: center;
  width: auto;
  min-width: 190px;
  max-width: calc(100% - 3rem);
  padding: 0.85rem 1.8rem;
}

.mobile-nav .gold-line-long { margin: 0.5rem 0; }

/* ============================================================
   PAGE HERO (inner pages)
   ============================================================ */
.page-hero {
  min-height: 45vh;
  display: flex;
  align-items: center;
  background: var(--earth-900);
  position: relative;
  overflow: hidden;
  padding-top: var(--header-h);
}

.page-hero::before {
  content: '';
  position: absolute;
  top: -30%; right: -10%;
  width: 500px; height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(197,160,89,0.1), transparent 70%);
}

.page-hero::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(197,160,89,0.4), transparent);
}

.page-hero .container { position: relative; z-index: 1; }

.page-hero h1 { color: #fff; margin-bottom: 0.5rem; }

.page-hero .breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
  margin-bottom: 1rem;
}

.page-hero .breadcrumb a {
  color: var(--or-light);
  transition: color var(--transition-fast);
}

.page-hero .breadcrumb a:hover { color: #fff; }

/* ============================================================
   HERO (homepage)
   ============================================================ */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(42,31,20,0.88) 0%,
    rgba(42,31,20,0.6) 40%,
    rgba(61,43,31,0.4) 70%,
    rgba(42,31,20,0.75) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 900px;
  padding: 0 1.5rem;
}

.hero-content h1 {
  color: #fff;
  line-height: 1.05;
  margin-bottom: 1.5rem;
}

.hero-content h1 .accent { color: var(--or); }

.hero-content .gold-line-long { margin: 1.5rem auto; }

/* Split-text cinematic reveal */
.hero-title-split { position: relative; }

.hero-title-split .char {
  display: inline-block;
  opacity: 0;
  transform: translateY(60px) rotateX(-40deg);
  filter: blur(8px);
  animation: charReveal 0.7s cubic-bezier(0.16, 0.84, 0.44, 1) forwards;
}

.hero-title-split .char.space { width: 0.25em; }

@keyframes charReveal {
  0% { opacity: 0; transform: translateY(60px) rotateX(-40deg); filter: blur(8px); }
  60% { opacity: 1; filter: blur(0); }
  100% { opacity: 1; transform: translateY(0) rotateX(0); filter: blur(0); }
}

/* Hero gold line draw */
.hero-line-draw {
  transform: scaleX(0);
  animation: lineDrawIn 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
  animation-delay: 1s;
}

@keyframes lineDrawIn {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}

/* Gold sparkle particles */
.sparkle {
  position: fixed;
  width: 4px;
  height: 4px;
  background: var(--or);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9998;
  animation: sparkleBurst 1.5s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

@keyframes sparkleBurst {
  0% { opacity: 1; transform: translate(0, 0) scale(1); }
  100% { opacity: 0; transform: translate(var(--sx), var(--sy)) scale(0); }
}

.hero-content .hero-subtitle {
  color: rgba(255,255,255,0.75);
  font-size: clamp(1rem, 2vw, 1.2rem);
  font-weight: 300;
  line-height: 1.7;
  max-width: 650px;
  margin: 0 auto 2rem;
}

.hero-content .hero-tagline {
  color: rgba(197,160,89,0.65);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 2.5rem;
}

.hero-scroll {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.hero-scroll span {
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.6);
}

.hero-scroll-line {
  width: 1px;
  height: 50px;
  background: linear-gradient(to bottom, var(--or), transparent);
}

/* ============================================================
   HERO CAROUSEL — Full-bleed cinematic fade
   ============================================================ */

.hero-carousel {
  background: var(--earth-900);
}

.hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  animation: kenBurns 18s ease-in-out infinite;
}

.hero-slide.active {
  opacity: 1;
  z-index: 1;
}

@keyframes kenBurns {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.06); }
}

/* Dots */
.hero-dots {
  position: absolute;
  bottom: 5rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.75rem;
  z-index: 10;
}

.hero-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.6);
  cursor: pointer;
  transition: all 0.4s ease;
}

.hero-dot.active {
  background: var(--or);
  box-shadow: 0 0 8px rgba(197,160,89,0.5);
}

.hero-dot:hover {
  background: rgba(255,255,255,0.6);
}

.hero-carousel .hero-overlay { z-index: 2; }
.hero-carousel .hero-content { z-index: 3; }

/* Floating leaf decoration */
.leaf-float {
  position: absolute;
  color: rgba(197,160,89,0.08);
  pointer-events: none;
  animation: leafFloat 6s ease-in-out infinite;
}

.leaf-float.delay { animation-delay: 3s; }

@keyframes leafFloat {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-12px) rotate(4deg); }
}

/* ============================================================
   CARDS
   ============================================================ */
.card {
  background: var(--earth-50);
  padding: 2.5rem 2rem;
  text-align: center;
  transition: all var(--transition-base);
  border: 1px solid transparent;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(197,160,89,0.15);
}

.card-icon {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  border: 2px solid rgba(197,160,89,0.3);
  display: inline-grid;
  place-items: center;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.75rem;
  transition: all var(--transition-base);
}

.card:hover .card-icon {
  border-color: var(--or);
  background: rgba(197,160,89,0.08);
}

.card-icon svg {
  width: 32px;
  height: 32px;
  color: var(--or);
}

.card h3 { margin-bottom: 0.75rem; }

.card p {
  color: var(--text-muted);
  font-weight: 400;
  line-height: 1.7;
  font-size: 0.95rem;
}

/* Image card (domain gallery) */
.img-card {
  position: relative;
  overflow: hidden;
  transition: all var(--transition-base);
}

.img-card img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  filter: saturate(1.18) brightness(1.08) contrast(1.02);
  transition: all 0.7s ease;
}

.img-card:hover img {
  transform: scale(1.05);
  filter: saturate(1.28) brightness(1.12) contrast(1.02);
}

.img-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(42,31,20,0.85), transparent 50%);
}

.img-card-body {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 1.5rem;
}

.img-card-body h4 {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  font-weight: 500;
  color: #fff;
  margin-bottom: 0.3rem;
}

.img-card-body p {
  font-size: 0.8rem;
  font-weight: 300;
  color: rgba(255,255,255,0.55);
}

/* ============================================================
   POST-HERO DOMAIN — organic editorial reveal
   ============================================================ */

.post-hero-domain {
  position: relative;
  overflow: hidden;
  padding: clamp(4.5rem, 9vw, 8rem) 0;
  background: var(--earth-900);
  color: #fff;
}

.post-hero-domain::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(14,23,18,0.99), rgba(14,23,18,1));
  pointer-events: none;
}

.post-hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(420px, 0.86fr);
  align-items: center;
  gap: clamp(3rem, 6vw, 6.25rem);
}

.post-hero-art {
  position: relative;
  min-height: clamp(430px, 52vw, 690px);
  margin-left: clamp(-3.5rem, -3vw, -1rem);
}

.post-hero-photo {
  position: absolute;
  top: -10%;
  right: -28%;
  bottom: -12%;
  left: clamp(1rem, 2.5vw, 3rem);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: visible;
  isolation: isolate;
  background: transparent;
  filter: none;
}

.post-hero-photo img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: contain;
  object-position: left center;
  filter: saturate(1.16) brightness(1.08) contrast(1.02);
  transform: scale(1.08);
  transform-origin: 48% 50%;
}

.post-hero-inline-art {
  display: none;
}

.post-hero-art::before,
.post-hero-art::after,
.post-hero-photo::before,
.post-hero-photo::after {
  content: '';
  position: absolute;
  pointer-events: none;
  z-index: 2;
}

.post-hero-art::before {
  display: none;
}

.post-hero-art::after {
  display: none;
}

.post-hero-photo::before {
  display: none;
}

.post-hero-photo::after {
  display: none;
}

.post-hero-copy {
  max-width: 560px;
  margin-left: 0;
  margin-right: auto;
  padding-top: clamp(0rem, 3vw, 2rem);
}

.post-hero-kicker {
  display: block;
  margin-bottom: 0.75rem;
  font-family: var(--font-sans);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--or-light);
}

.post-hero-copy h2 {
  margin: 0 0 1rem;
  font-family: var(--font-serif);
  font-size: clamp(2.2rem, 4.4vw, 4.1rem);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: 0;
  text-transform: none;
  color: #fff;
}

.post-hero-copy p {
  margin: 0 0 0.85rem;
  font-size: 0.93rem;
  line-height: 1.7;
  color: var(--text-on-dark-muted);
}

.post-hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.35rem;
  margin: 1.5rem 0 1.35rem;
}

.post-hero-meta span {
  display: grid;
  gap: 0.1rem;
  padding-right: 1.15rem;
  border-right: 1px solid rgba(255,255,255,0.14);
}

.post-hero-meta span:last-child {
  border-right: 0;
}

.post-hero-meta strong {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-weight: 500;
  color: var(--or-light);
}

.post-hero-meta small {
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.52);
}

.post-hero-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  margin-top: 0.65rem;
  padding: 0.76rem 1.35rem;
  border: 1px solid rgba(255,255,255,0.26);
  color: #fff;
  font-family: var(--font-sans);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  transition: color var(--transition-base), background var(--transition-base), border-color var(--transition-base), transform var(--transition-base);
}

.post-hero-btn:hover {
  background: var(--or);
  border-color: var(--or);
  color: var(--earth-900);
  transform: translateY(-2px);
}

@media (max-width: 900px) {
  .post-hero-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .post-hero-art {
    display: none;
  }

  .post-hero-copy {
    order: 1;
    max-width: 640px;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
  }

  .post-hero-inline-art {
    display: grid;
    place-items: center;
    width: min(100%, 600px);
    aspect-ratio: 16 / 11;
    margin: 1.35rem auto 1.6rem;
    overflow: hidden;
  }

  .post-hero-inline-art img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    filter: saturate(1.16) brightness(1.08) contrast(1.02);
    transform: translateX(8%) scale(1.14);
    transform-origin: center;
  }

  .post-hero-btn {
    margin-left: auto;
    margin-right: auto;
  }
}

@media (max-width: 560px) {
  .post-hero-domain {
    padding: 3.25rem 0 3.75rem;
  }

  .post-hero-copy h2 {
    font-size: 2rem;
  }

  .post-hero-inline-art {
    width: min(100%, 600px);
    aspect-ratio: 4 / 3;
    margin: 1.15rem auto 1.55rem;
  }

  .post-hero-meta {
    gap: 0.75rem;
  }

  .post-hero-meta span {
    padding-right: 0.75rem;
  }
}

/* Service card (horizontal) */
.service-card {
  display: flex;
  gap: 1.5rem;
  padding: 2rem;
  border: 1px solid rgba(0,0,0,0.06);
  transition: all var(--transition-base);
}

.service-card:hover {
  box-shadow: var(--shadow-md);
  border-color: rgba(197,160,89,0.2);
}

.service-card .service-icon {
  width: 52px; height: 52px;
  border-radius: 50%;
  background: rgba(197,160,89,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background var(--transition-base);
}

.service-card:hover .service-icon { background: rgba(197,160,89,0.2); }

.service-card .service-icon svg { width: 22px; height: 22px; color: var(--or); }

.service-card h3 {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
  color: var(--earth-900);
}

.service-card p {
  font-size: 0.9rem;
  font-weight: 400;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ============================================================
   OFFRES — readability pass
   ============================================================ */

.page-offres {
  background: #f8f4ec;
}

.page-offres .page-hero {
  background: #0e1712;
}

.page-offres .page-hero::after {
  display: none;
}

.page-offres .page-hero .container {
  position: relative;
  z-index: 1;
}

.page-offres .page-hero h1,
.page-offres .breadcrumb,
.page-offres .breadcrumb a {
  color: #fff;
}

.page-offres .breadcrumb {
  opacity: 0.78;
}

.page-offres main > .section:first-of-type {
  background: #f8f4ec;
}

.page-offres .section-header h2 {
  color: #0e1712;
}

.page-offres .section-eyebrow {
  color: #9b6b24;
}

.page-offres .service-card {
  background: #fffaf2;
  border-color: rgba(45,90,63,0.18);
  border-left: 4px solid rgba(197,160,89,0.92);
  box-shadow: 0 16px 42px rgba(42,31,20,0.07);
}

.page-offres .service-card:hover {
  border-color: rgba(45,90,63,0.34);
  box-shadow: 0 24px 58px rgba(42,31,20,0.12);
}

.page-offres .service-card .service-icon {
  background: #2d5a3f;
  color: #f8f4ec;
}

.page-offres .service-card:hover .service-icon {
  background: #0e1712;
}

.page-offres .service-card .service-icon svg {
  color: currentColor;
}

.page-offres .service-card h3 {
  color: #0e1712;
  font-weight: 700;
}

.page-offres .service-card p {
  color: rgba(42,31,20,0.76);
  font-weight: 400;
}

section[style*="earth-900"] p {
  color: var(--text-on-dark-muted) !important;
}

section[style*="earth-900"] strong {
  color: #fff !important;
}

section[style*="earth-900"] .section-eyebrow {
  color: var(--or-light);
}

/* ============================================================
   NEWS / RESOURCES — carousel inspired by Ligue Cancer 44
   ============================================================ */
.news-section {
  background: var(--earth-50);
  overflow: hidden;
}

.news-shell {
  position: relative;
}

.news-top {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: clamp(2rem, 5vw, 3.5rem);
}

.news-heading h2 {
  font-family: var(--font-serif);
  font-size: clamp(2.25rem, 5.1vw, 4.15rem);
  font-weight: 600;
  line-height: 1;
  color: var(--earth-900);
  margin: 0;
}

.news-heading h2 span {
  color: var(--or);
}

.news-heading .heading-amp {
  font-family: var(--font-sans);
  font-size: 0.74em;
  font-weight: 600;
  line-height: 1;
}

.news-controls {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  flex-shrink: 0;
}

.news-control {
  width: 48px;
  height: 48px;
  border: 1px solid rgba(14,23,18,0.18);
  border-radius: 50%;
  background: #fff;
  color: var(--earth-900);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background var(--transition-fast), color var(--transition-fast), border-color var(--transition-fast), transform var(--transition-fast);
}

.news-control svg {
  width: 18px;
  height: 18px;
}

.news-control:hover,
.news-control:focus-visible {
  background: var(--earth-900);
  color: #fff;
  border-color: var(--earth-900);
  transform: translateY(-2px);
}

.news-slider {
  overflow: hidden;
  margin-inline: -0.5rem;
  padding: 0.5rem;
}

.news-track {
  display: flex;
  gap: 1.5rem;
  transition: transform var(--transition-slow);
  will-change: transform;
}

.news-slide {
  flex: 0 0 calc((100% - 3rem) / 3);
  position: relative;
  min-height: 355px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 0;
  overflow: hidden;
  color: var(--earth-900);
  background: #dcdcdc var(--news-image, none) center / cover no-repeat;
  border: 0;
  box-shadow: none;
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.news-slide::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(14,23,18,0.04) 0%, rgba(14,23,18,0.08) 34%, rgba(255,255,255,0.9) 82%, #fff 100%);
  z-index: 0;
}

.news-slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0.06);
  z-index: 0;
  transition: background var(--transition-base);
}

.news-slide:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.news-slide:hover::after {
  background: rgba(255,255,255,0);
}

.news-content {
  position: relative;
  z-index: 1;
  min-height: 158px;
  padding: 1.4rem 1.55rem 1.3rem;
}

.news-source {
  display: inline-flex;
  margin-bottom: 0.7rem;
  color: var(--foliage);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.news-slide h3 {
  font-family: var(--font-serif);
  font-size: clamp(1.18rem, 1.85vw, 1.48rem);
  font-weight: 600;
  line-height: 1.16;
  margin-bottom: 0.8rem;
  color: var(--earth-900);
}

.news-slide p {
  color: #233;
  font-size: 0.84rem;
  font-weight: 300;
  line-height: 1.45;
}

.news-link {
  margin-top: 0.65rem;
  padding-top: 0;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--foliage);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.news-link::after {
  content: "→";
  font-size: 1rem;
  line-height: 1;
  transition: transform var(--transition-fast);
}

.news-slide:hover .news-link::after {
  transform: translateX(0.25rem);
}

.news-actions {
  display: flex;
  justify-content: center;
  margin-top: clamp(2rem, 4vw, 3rem);
}

.news-all-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.8rem 1.5rem;
  color: #fff;
  background: var(--earth-900);
  border: 1px solid var(--earth-900);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  transition: background var(--transition-fast), color var(--transition-fast), transform var(--transition-fast);
}

.news-all-btn:hover,
.news-all-btn:focus-visible {
  background: transparent;
  color: var(--earth-900);
  transform: translateY(-2px);
}

.news-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
}

.resources-hub {
  background: var(--earth-50);
}

.resources-intro {
  max-width: 880px;
  margin-bottom: clamp(2.5rem, 6vw, 4.5rem);
}

.resources-intro h2,
.resources-section-title h2 {
  max-width: 820px;
  margin-bottom: 1rem;
  color: var(--earth-900);
}

.resources-intro p {
  max-width: 760px;
  color: var(--text-muted);
  font-size: clamp(1rem, 1.7vw, 1.15rem);
  line-height: 1.72;
}

.songhai-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.46fr);
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: end;
  margin-bottom: clamp(2.75rem, 6vw, 5rem);
  padding: clamp(1.5rem, 4vw, 2.4rem);
  color: #fff;
  background:
    linear-gradient(120deg, rgba(14,23,18,0.94), rgba(42,31,20,0.88)),
    url('images/zanama.webp') center / cover no-repeat;
  border-radius: 8px;
  overflow: hidden;
}

.songhai-panel h3 {
  max-width: 720px;
  margin-bottom: 0.9rem;
  color: #fff;
  font-family: var(--font-serif);
  font-size: clamp(1.9rem, 4vw, 3.2rem);
  font-weight: 600;
  line-height: 1.05;
}

.songhai-panel p {
  max-width: 720px;
  color: rgba(255,255,255,0.76);
  line-height: 1.68;
}

.songhai-facts {
  display: grid;
  gap: 0;
  border: 1px solid rgba(197,160,89,0.28);
  background: rgba(14,23,18,0.48);
}

.songhai-facts span {
  display: grid;
  gap: 0.25rem;
  padding: 1rem 1.1rem;
  border-bottom: 1px solid rgba(197,160,89,0.24);
}

.songhai-facts span:last-child {
  border-bottom: 0;
}

.songhai-facts strong {
  color: var(--or-light);
  font-family: var(--font-number);
  font-size: 1.4rem;
  font-variant-numeric: lining-nums tabular-nums;
  font-feature-settings: "lnum" 1, "tnum" 1;
  font-weight: 700;
  line-height: 1;
}

.songhai-facts small {
  color: rgba(255,255,255,0.66);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.resource-timeline {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-bottom: clamp(3rem, 7vw, 5.5rem);
  background: transparent;
  border: 0;
}

.resource-timeline article {
  position: relative;
  min-height: 310px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
  padding: clamp(1.25rem, 3vw, 1.75rem);
  color: #fff;
  background-color: var(--earth-900);
  background-image:
    linear-gradient(180deg, rgba(14,23,18,0.12), rgba(14,23,18,0.88)),
    var(--timeline-image, linear-gradient(135deg, #273426, #7a6638));
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  border: 1px solid rgba(197,160,89,0.26);
  border-radius: 8px;
  box-shadow: 0 18px 42px rgba(42,31,20,0.12);
  isolation: isolate;
}

.resource-timeline article:nth-child(1) {
  --timeline-image: url('images/link-previews/antilla-conference.jpg');
}

.resource-timeline article:nth-child(2) {
  --timeline-image: url('images/link-previews/cultiver-avenir.jpg');
}

.resource-timeline article:nth-child(3) {
  --timeline-image: url('images/link-previews/carenews-femmes.jpg');
}

.resource-timeline article::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(120deg, rgba(42,31,20,0.66), rgba(14,23,18,0.12) 54%),
    radial-gradient(circle at 18% 18%, rgba(197,160,89,0.34), transparent 32%);
  mix-blend-mode: multiply;
  pointer-events: none;
}

.resource-timeline span,
.resource-card > span:not(.resource-card-media),
.media-link-grid span {
  display: inline-flex;
  margin-bottom: 0.7rem;
  color: var(--foliage);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.resource-timeline span {
  align-self: flex-start;
  padding: 0.38rem 0.65rem;
  color: var(--earth-900);
  background: var(--or-light);
  border-radius: 999px;
}

.resource-timeline h3,
.resource-card h3 {
  margin-bottom: 0.65rem;
  color: var(--earth-900);
  font-family: var(--font-serif);
  font-size: clamp(1.2rem, 2vw, 1.55rem);
  line-height: 1.14;
}

.resource-timeline h3 {
  color: #fff;
  text-shadow: 0 2px 18px rgba(0,0,0,0.28);
}

.resource-timeline p,
.resource-card p {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.56;
}

.resource-timeline p {
  color: rgba(255,255,255,0.82);
}

.resources-section-title {
  margin-bottom: 1.4rem;
}

.resource-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  margin-bottom: clamp(3rem, 7vw, 5rem);
}

.resource-card {
  min-height: 360px;
  padding: 0;
  text-align: left;
  background: #fff;
  border: 1px solid rgba(42,31,20,0.12);
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  transition: transform var(--transition-base), border-color var(--transition-base), box-shadow var(--transition-base);
}

.resource-card-media {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  margin: 0;
  background-color: #d8d0c1;
  background-image:
    linear-gradient(180deg, rgba(14,23,18,0), rgba(14,23,18,0.08)),
    var(--resource-image, linear-gradient(135deg, #d8d0c1, #5e6b4b));
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  border-bottom: 1px solid rgba(42,31,20,0.1);
  transition: transform var(--transition-slow), filter var(--transition-base);
}

.resource-card:hover .resource-card-media,
.resource-card:focus-visible .resource-card-media {
  filter: saturate(1.08) contrast(1.03);
  transform: scale(1.035);
}

.resource-card > span:not(.resource-card-media),
.resource-card h3,
.resource-card p {
  margin-inline: 1.25rem;
}

.resource-card > span:not(.resource-card-media) {
  margin-top: 1.15rem;
}

.resource-card:hover,
.resource-card:focus-visible {
  transform: translateY(-4px);
  border-color: rgba(197,160,89,0.5);
  box-shadow: 0 18px 42px rgba(42,31,20,0.12);
}

.resource-card:focus-visible {
  outline: 2px solid var(--or);
  outline-offset: 3px;
}

.media-link-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.media-link-grid a {
  position: relative;
  min-height: 170px;
  padding: 1.15rem 1.2rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
  color: #fff;
  background-color: #253226;
  background-image:
    linear-gradient(180deg, rgba(11,18,14,0.02), rgba(11,18,14,0.58)),
    var(--media-image, linear-gradient(135deg, #233026, #6a542f));
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  border: 1px solid rgba(42,31,20,0.12);
  border-radius: 8px;
  font-family: var(--font-serif);
  font-size: 1.2rem;
  line-height: 1.18;
  transition: transform var(--transition-base), border-color var(--transition-base), filter var(--transition-base);
}

.media-link-grid a:hover,
.media-link-grid a:focus-visible {
  border-color: rgba(197,160,89,0.5);
  filter: saturate(1.08) contrast(1.04);
  transform: translateY(-3px);
}

.media-link-grid span {
  display: block;
  color: var(--or);
}

.resource-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: grid;
  place-items: center;
  padding: 1rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-base);
}

.resource-modal.active {
  opacity: 1;
  pointer-events: auto;
}

.resource-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(14,23,18,0.78);
  backdrop-filter: blur(8px);
}

.resource-modal-dialog {
  position: relative;
  width: min(680px, 100%);
  max-height: min(720px, 88vh);
  overflow: auto;
  padding: clamp(1.4rem, 4vw, 2.1rem);
  color: var(--earth-900);
  background: #fff;
  border: 1px solid rgba(197,160,89,0.32);
  border-radius: 8px;
  box-shadow: 0 28px 90px rgba(0,0,0,0.34);
  transform: translateY(18px);
  transition: transform var(--transition-base);
}

.resource-modal-image {
  min-height: 220px;
  margin: -0.65rem -0.65rem 1.35rem;
  background-color: #d8d0c1;
  background-image: var(--resource-modal-image, linear-gradient(135deg, #d8d0c1, #5e6b4b));
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  border-radius: 6px;
}

.resource-modal.active .resource-modal-dialog {
  transform: translateY(0);
}

.resource-modal-close {
  position: absolute;
  top: 0.8rem;
  right: 0.8rem;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  color: #fff;
  background: var(--earth-900);
  border: 2px solid #fff;
  border-radius: 50%;
  box-shadow: 0 10px 28px rgba(0,0,0,0.28);
  font-family: var(--font-sans);
  font-size: 1.65rem;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  transition: background var(--transition-base), transform var(--transition-base), border-color var(--transition-base);
}

.resource-modal-close:hover,
.resource-modal-close:focus-visible {
  background: var(--or);
  border-color: var(--or-light);
  transform: scale(1.04);
  outline: none;
}

.resource-modal-source {
  display: block;
  margin: 0 3rem 0.8rem 0;
  color: var(--foliage);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.resource-modal-dialog h2 {
  margin-bottom: 1rem;
  color: var(--earth-900);
  font-size: clamp(1.85rem, 5vw, 3rem);
  line-height: 1.02;
}

.resource-modal-dialog p {
  color: var(--text-muted);
  line-height: 1.7;
}

.resource-modal-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  margin-top: 1.4rem;
  padding: 0.75rem 1.15rem;
  color: #fff;
  background: var(--earth-900);
  border: 1px solid var(--earth-900);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

@media (max-width: 1100px) {
  .resource-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .media-link-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  .songhai-panel,
  .resource-timeline,
  .resource-grid,
  .media-link-grid {
    grid-template-columns: 1fr;
  }

  .songhai-panel {
    padding: 1.35rem;
  }

  .resource-card {
    min-height: auto;
  }

  .resource-modal-dialog {
    max-height: 84vh;
  }
}

/* ============================================================
   QUOTE / TESTIMONIAL
   ============================================================ */
.quote-section {
  position: relative;
  overflow: hidden;
}

.quote-section .quote-bg {
  position: absolute;
  inset: 0;
}

.quote-section .quote-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.quote-overlay {
  position: absolute;
  inset: 0;
  background: rgba(42,31,20,0.82);
}

.quote-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 750px;
  margin: 0 auto;
  padding: clamp(3rem, 8vw, 6rem) 1.5rem;
}

.quote-mark {
  font-family: var(--font-serif);
  font-size: 5rem;
  line-height: 1;
  color: var(--or);
  opacity: 0.25;
  margin-bottom: -2rem;
}

.quote-text {
  font-family: var(--font-serif);
  font-size: clamp(1.5rem, 3.5vw, 2.5rem);
  font-weight: 300;
  font-style: italic;
  color: #fff;
  line-height: 1.4;
}

.quote-author {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--or);
  margin-top: 1.5rem;
}

/* ============================================================
   FEATURE LIST (icon + text rows)
   ============================================================ */
.feature-list { display: flex; flex-direction: column; gap: 1.25rem; }

.feature-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.feature-dot {
  width: 30px; height: 30px;
  border-radius: 50%;
  background: rgba(197,160,89,0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 1px;
}

.feature-dot svg { width: 16px; height: 16px; color: var(--or); }

.feature-item h3 {
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--earth-900);
  margin-bottom: 0.15rem;
}

.feature-item p {
  font-size: 0.82rem;
  font-weight: 300;
  color: #777;
  line-height: 1.5;
}

/* ============================================================
   TIMELINE
   ============================================================ */
.timeline { max-width: 700px; margin: 0 auto; }

.timeline-item {
  display: flex;
  gap: 1.5rem;
  padding-bottom: 2rem;
  position: relative;
}

.timeline-item:last-child { padding-bottom: 0; }

.timeline-dot-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex-shrink: 0;
}

.timeline-dot {
  width: 14px; height: 14px;
  border-radius: 50%;
  border: 2px solid var(--or);
  background: transparent;
  position: relative;
  z-index: 2;
}

.timeline-dot.active { background: var(--or); }

.timeline-line {
  width: 1px;
  flex: 1;
  background: rgba(197,160,89,0.25);
  margin-top: 0.5rem;
}

.timeline-item:last-child .timeline-line { display: none; }

.timeline-body h3 {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--earth-900);
  margin-bottom: 0.3rem;
}

.timeline-body p {
  font-size: 0.9rem;
  font-weight: 300;
  color: #666;
  line-height: 1.6;
}

/* ============================================================
   STATS BAR
   ============================================================ */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  text-align: center;
}

.stat-number {
  font-family: var(--font-number);
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 700;
  font-variant-numeric: lining-nums tabular-nums;
  font-feature-settings: "lnum" 1, "tnum" 1;
  color: var(--or);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.stat-label {
  font-size: 0.8rem;
  font-weight: 300;
  color: rgba(255,255,255,0.45);
}

/* ============================================================
   INFO CARD WITH BORDER ACCENT
   ============================================================ */
.info-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  padding: 2.5rem;
}

.info-card-warning {
  border-color: rgba(239, 68, 68, 0.2);
  background: rgba(239, 68, 68, 0.04);
}

.info-card-accent {
  border-color: rgba(197,160,89,0.2);
  background: rgba(197,160,89,0.04);
}

.info-card .info-card-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.info-card .info-card-header .icon-circle {
  width: 40px; height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.info-card .info-card-header .icon-circle.warning {
  background: rgba(239,68,68,0.1);
}

.info-card .info-card-header .icon-circle.accent {
  background: rgba(197,160,89,0.15);
}

.info-card .info-card-header svg { width: 20px; height: 20px; }

.info-card .info-card-header h3 {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  font-weight: 500;
  color: #fff;
}

.info-card p {
  color: rgba(255,255,255,0.6);
  font-weight: 300;
  line-height: 1.7;
}

/* ============================================================
   CONTACT FORM
   ============================================================ */
.contact-form { display: flex; flex-direction: column; gap: 1.5rem; }

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.form-group { display: flex; flex-direction: column; gap: 0.4rem; }

.form-group label {
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.35);
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 1rem 1.25rem;
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 300;
  color: #fff;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  outline: none;
  transition: border-color var(--transition-fast);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--or);
}

.form-group input::placeholder,
.form-group textarea::placeholder { color: rgba(255,255,255,0.7); }

.form-group textarea { min-height: 140px; resize: vertical; }

.form-group select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23C5A059' fill='none' stroke-width='1.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1.25rem center;
}

.form-group select option { background: var(--earth-900); color: #fff; }

.form-feedback {
  font-size: 0.7rem;
  display: none;
}

.form-feedback.error {
  display: block;
  color: #ef4444;
}

/* Contact info list */
.contact-list { display: flex; flex-direction: column; gap: 1.5rem; }

.contact-item {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.contact-item-icon {
  width: 52px; height: 52px;
  border-radius: 50%;
  border: 1px solid rgba(197,160,89,0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all var(--transition-base);
}

.contact-item:hover .contact-item-icon {
  border-color: var(--or);
  background: rgba(197,160,89,0.08);
}

.contact-item-icon svg { width: 20px; height: 20px; color: var(--or); }

.contact-item-label {
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.6);
  margin-bottom: 0.15rem;
}

.contact-item-value {
  font-size: 1rem;
  font-weight: 300;
  color: #fff;
  transition: color var(--transition-fast);
}

a.contact-item-value:hover { color: var(--or); }

/* ============================================================
   PARTNERS — 21st.dev inspired dark logo carousel
   ============================================================ */

.partners-premium {
  background: #0e1712;
  color: #fff;
  overflow: hidden;
  padding-top: clamp(2.25rem, 4vw, 3.5rem);
  padding-bottom: clamp(2.25rem, 4vw, 3.5rem);
}

.partners-premium .container {
  width: 100%;
  max-width: none;
  padding-left: 0;
  padding-right: 0;
}

.partners-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 3rem;
  margin-bottom: clamp(4rem, 7vw, 6rem);
  flex-wrap: wrap;
}

.partners-eyebrow {
  display: block;
  font-family: var(--font-sans);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--or-light);
  margin-bottom: 1rem;
}

.partners-heading {
  font-family: var(--font-serif);
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  font-weight: 600;
  line-height: 1.1;
  color: #fff;
  margin: 0;
}

.partners-heading span {
  color: var(--or);
}

.partners-sub {
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 300;
  line-height: 1.7;
  color: rgba(255,255,255,0.45);
  max-width: 360px;
  padding-bottom: 0.3rem;
}

/* Logo carousel track */
.logo-carousel {
  overflow: hidden;
  padding: 0.25rem 0;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
}

.logo-track {
  display: flex;
  gap: 2.5rem;
  width: max-content;
  animation: logoScroll 50s linear infinite;
}

.logo-carousel:hover .logo-track {
  animation-play-state: paused;
}

@keyframes logoScroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.logo-item {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  padding: 0.5rem 1.25rem;
  min-width: 170px;
  border: 0;
  transition: transform 0.4s ease;
}

.logo-item:hover {
  transform: translateY(-4px);
}

.logo-item img {
  height: 58px;
  width: auto;
  max-width: 170px;
  object-fit: contain;
  opacity: 0.82;
  filter:
    grayscale(1)
    sepia(0.18)
    saturate(0.7)
    hue-rotate(62deg)
    brightness(0.9)
    contrast(1.04)
    drop-shadow(0 8px 18px rgba(0,0,0,0.18));
  transition: opacity 0.45s ease, filter 0.45s ease, transform 0.4s ease;
}

.logo-item:hover img {
  opacity: 1;
  filter:
    saturate(1.12)
    contrast(1.04)
    brightness(1.04)
    drop-shadow(0 12px 24px rgba(0,0,0,0.28));
  transform: scale(1.09);
}

.logo-item span {
  display: none;
}

@media (max-width: 768px) {
  .partners-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.5rem;
  }

  .partners-sub {
    max-width: 100%;
  }

  .logo-track {
    gap: 1.25rem;
  }

  .logo-item {
    min-width: 140px;
    padding: 0.5rem 0.75rem;
  }

  .logo-item img {
    height: 36px;
    max-width: 100px;
  }
}

/* ============================================================
   DOMAINE STORIES — seamless dark narrative
   ============================================================ */

body.page-domaine {
  background: #0e1712;
}

.domaine-stories {
  padding: calc(var(--header-h) + 1rem) 0 4rem;
  background: #0e1712;
  color: #fff;
}

.domaine-paper {
  width: 100%;
  margin: 0 auto;
  padding: 2.2rem 1.2rem 3rem;
  background: transparent;
  box-shadow: none;
  color: #fff;
  position: relative;
  overflow: hidden;
}

.domaine-paper::before {
  display: none;
}

.stories-title {
  position: relative;
  z-index: 1;
  margin-bottom: 2.4rem;
  text-align: center;
}

.stories-title span {
  display: block;
  margin-bottom: 0.3rem;
  color: var(--or-light);
  font-family: var(--font-sans);
  font-size: 0.86rem;
  font-weight: 900;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.stories-title h1 {
  margin: 0;
  color: #fff;
  font-family: var(--font-sans);
  font-size: clamp(2.1rem, 12vw, 3.1rem);
  font-weight: 900;
  letter-spacing: 0.02em;
  line-height: 0.92;
  text-transform: uppercase;
}

.story-row {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr;
  align-items: center;
  gap: 1.25rem;
  min-height: 0;
  margin-bottom: 4rem;
}

.story-row:last-child {
  margin-bottom: 0;
}

.story-row-left {
  grid-template-columns: 1fr;
}

.story-photo {
  position: relative;
  order: 1;
  min-height: 280px;
  margin: 0;
  filter: none;
}

.story-photo::after {
  content: '';
  position: absolute;
  inset: -12%;
  z-index: 1;
  background:
    radial-gradient(ellipse 86% 76% at 50% 50%, transparent 0 64%, rgba(14,23,18,0.22) 78%, rgba(14,23,18,0.74) 92%, #0e1712 100%),
    linear-gradient(90deg, #0e1712 0 3%, transparent 12% 88%, #0e1712 97% 100%),
    linear-gradient(180deg, #0e1712 0 3%, transparent 12% 88%, #0e1712 97% 100%);
  filter: blur(18px);
  pointer-events: none;
}

.story-photo img {
  width: 100%;
  height: 100%;
  min-height: 280px;
  object-fit: cover;
  filter: saturate(1.16) contrast(1.02) brightness(1.08);
  mix-blend-mode: normal;
  -webkit-mask-image:
    radial-gradient(ellipse 88% 78% at 50% 50%, #000 0 68%, rgba(0,0,0,0.78) 84%, transparent 99%),
    linear-gradient(90deg, transparent 0, #000 10%, #000 90%, transparent 100%),
    linear-gradient(180deg, transparent 0, #000 10%, #000 90%, transparent 100%);
  mask-image:
    radial-gradient(ellipse 88% 78% at 50% 50%, #000 0 68%, rgba(0,0,0,0.78) 84%, transparent 99%),
    linear-gradient(90deg, transparent 0, #000 10%, #000 90%, transparent 100%),
    linear-gradient(180deg, transparent 0, #000 10%, #000 90%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask-composite: intersect;
}

.story-photo-a img,
.story-photo-c img,
.story-photo-e img {
  aspect-ratio: 1.5 / 1;
}

.story-photo-b img,
.story-photo-d img,
.story-photo-f img {
  aspect-ratio: 1.25 / 1;
}

.story-copy {
  order: 2;
  max-width: 100%;
}

.story-kicker {
  display: block;
  margin-bottom: 0.4rem;
  color: var(--or-light);
  font-family: var(--font-sans);
  font-size: 0.74rem;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.story-copy h2 {
  margin-bottom: 0.75rem;
  color: #fff;
  font-family: var(--font-sans);
  font-size: clamp(1.75rem, 9vw, 2.35rem);
  font-weight: 900;
  letter-spacing: 0.01em;
  line-height: 0.95;
  text-transform: uppercase;
}

.story-copy p {
  color: rgba(255,255,255,0.68);
  font-family: var(--font-serif);
  font-size: 0.98rem;
  line-height: 1.76;
}

.page-domaine .bottom-cta {
  background: #f3efe6;
  color: var(--earth-900);
  border-top: 0;
}

.page-domaine .bottom-cta-copy h2 {
  color: var(--earth-900);
}

.page-domaine .bottom-cta-copy p {
  color: var(--text-muted);
}

.page-domaine .site-footer {
  background: #09100c;
  border-top-color: rgba(255,255,255,0.08);
}

@media (min-width: 561px) {
  .domaine-stories {
    padding: calc(var(--header-h) + 2rem) 0 5rem;
  }

  .domaine-paper {
    width: min(1280px, calc(100% - 2rem));
    padding: clamp(2.75rem, 6vw, 5rem) clamp(2rem, 6vw, 5.5rem) clamp(3.5rem, 8vw, 6rem);
    box-shadow: none;
  }

  .story-photo,
  .story-photo img {
    min-height: 360px;
  }
}

@media (min-width: 901px) {
  .domaine-stories {
    padding: calc(var(--header-h) + clamp(2rem, 5vw, 4rem)) 0 clamp(4rem, 8vw, 7rem);
  }

  .stories-title {
    margin-bottom: clamp(3rem, 7vw, 5.5rem);
  }

  .stories-title h1 {
    font-size: clamp(2.35rem, 5vw, 4rem);
  }

  .story-row {
    grid-template-columns: minmax(420px, 1.16fr) minmax(280px, 0.84fr);
    gap: clamp(4rem, 8vw, 7rem);
    min-height: 510px;
    margin-bottom: clamp(3.5rem, 8vw, 6.5rem);
  }

  .story-photo,
  .story-copy {
    order: initial;
  }

  .story-row-left {
    grid-template-columns: minmax(280px, 0.84fr) minmax(420px, 1.16fr);
  }

  .story-row-right .story-photo {
    justify-self: stretch;
    width: 100%;
  }

  .story-row-left .story-photo {
    justify-self: stretch;
    width: 100%;
  }

  .story-row-right .story-copy {
    justify-self: start;
    margin-left: 0;
  }

  .story-row-left .story-copy {
    justify-self: end;
    margin-right: 0;
  }

  .story-photo {
    min-height: 460px;
  }

  .story-photo img {
    min-height: 460px;
  }

  .story-copy {
    max-width: 390px;
  }

  .story-copy h2 {
    font-size: clamp(1.75rem, 3.2vw, 2.45rem);
  }

  .story-copy p {
    font-size: 1rem;
  }
}

/* ============================================================
   DOMAINE INTERACTIVE SELECTOR — 21st.dev inspired
   ============================================================ */

.domaine-interactive {
  background: var(--earth-900);
  color: #fff;
  overflow: hidden;
}

.domaine-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(3rem, 6vw, 5rem);
  align-items: start;
}

/* ---- Left: sticky preview ---- */
.domaine-preview {
  position: sticky;
  top: calc(var(--header-h) + 2rem);
  aspect-ratio: 4/5;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.06);
}

.domaine-preview-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.14) brightness(1.08) contrast(1.02);
  transition: opacity 0.35s ease;
}

.domaine-preview-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(42,31,20,0.65) 100%);
  pointer-events: none;
}

.domaine-preview-badge {
  position: absolute;
  bottom: 1.5rem;
  left: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-sans);
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.6);
  background: rgba(42,31,20,0.5);
  backdrop-filter: blur(6px);
  padding: 0.4rem 0.75rem;
}

.domaine-preview-label {
  position: absolute;
  top: 1.5rem;
  left: 1.5rem;
  font-family: var(--font-serif);
  font-size: 1.4rem;
  color: #fff;
  text-shadow: 0 2px 8px rgba(0,0,0,0.5);
  transition: opacity 0.35s ease;
}

.domaine-detail {
  margin-top: 1.5rem;
  padding: 1.5rem;
  border-left: 2px solid rgba(197,160,89,0.3);
  background: rgba(197,160,89,0.03);
}

.domaine-detail p {
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 300;
  line-height: 1.8;
  color: rgba(255,255,255,0.55);
  margin: 0;
  transition: opacity 0.3s ease;
}

/* ---- Right: selector ---- */
.domaine-selector {
  display: flex;
  flex-direction: column;
}

.domaine-header {
  margin-bottom: 2.5rem;
}

.selector-list {
  display: flex;
  flex-direction: column;
  border-top: 1px solid rgba(255,255,255,0.06);
}

.selector-item {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding: 1.5rem 1rem 1.5rem 0;
  background: none;
  border: none;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  color: rgba(255,255,255,0.55);
  cursor: pointer;
  text-align: left;
  font-family: inherit;
  transition: all 0.35s ease;
  position: relative;
}

.selector-item::before {
  content: '';
  position: absolute;
  left: -2px;
  top: 20%;
  height: 60%;
  width: 2px;
  background: var(--or);
  transform: scaleY(0);
  transition: transform 0.35s ease;
}

.selector-item:hover,
.selector-item.active {
  color: #fff;
  padding-left: 1rem;
}

.selector-item:hover::before,
.selector-item.active::before {
  transform: scaleY(1);
}

.selector-icon {
  width: 1.5rem;
  height: 1.5rem;
  flex-shrink: 0;
  opacity: 0.5;
  transition: opacity 0.35s ease, color 0.35s ease;
}

.selector-item:hover .selector-icon,
.selector-item.active .selector-icon {
  opacity: 1;
  color: var(--or);
}

.selector-content {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.selector-title {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-weight: 500;
  transition: color 0.35s ease;
}

.selector-item:hover .selector-title,
.selector-item.active .selector-title {
  color: var(--or);
}

.selector-desc {
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 300;
  color: rgba(255,255,255,0.7);
  transition: color 0.35s ease;
}

.selector-item:hover .selector-desc,
.selector-item.active .selector-desc {
  color: rgba(255,255,255,0.7);
}

@media (max-width: 768px) {
  .domaine-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .domaine-preview {
    position: relative;
    top: 0;
    aspect-ratio: 3/2;
  }

  .selector-item {
    padding: 1.25rem 0.75rem 1.25rem 0;
    gap: 1rem;
  }

  .selector-item:hover,
  .selector-item.active {
    padding-left: 0.75rem;
  }
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: var(--earth-900);
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 5rem 0 2rem;
  color: rgba(255,255,255,0.7);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-brand .logo-link { margin-bottom: 1rem; }

.footer-brand p {
  color: rgba(255,255,255,0.7);
  font-weight: 300;
  line-height: 1.7;
  max-width: 400px;
  font-size: 0.9rem;
}

.footer-brand .footer-tagline {
  color: var(--or);
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-top: 1rem;
}

.footer-col h2 {
  font-family: var(--font-sans);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--or-light);
  margin-bottom: 1.5rem;
}

.footer-col ul { display: flex; flex-direction: column; gap: 0.65rem; }

.footer-col ul li a {
  font-size: 0.85rem;
  font-weight: 300;
  color: rgba(255,255,255,0.7);
  transition: color var(--transition-fast);
  text-decoration: none;
}

.footer-col ul li a:hover { color: var(--or-light); }

.footer-social {
  display: flex;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.social-link {
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-base);
}

.social-link svg {
  width: 18px; height: 18px;
  color: rgba(255,255,255,0.7);
  transition: color var(--transition-fast);
}

.social-link:hover {
  border-color: var(--or);
  background: var(--or-glow);
  transform: translateY(-2px);
  box-shadow: 0 0 20px var(--or-glow);
}

.social-link:hover svg { color: var(--or); }

.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,0.08);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.75rem;
  color: rgba(255,255,255,0.6);
  font-weight: 300;
}

/* ============================================================
   ANIMATIONS
   ============================================================ */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideInLeft {
  from { opacity: 0; transform: translateX(-40px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes slideInRight {
  from { opacity: 0; transform: translateX(40px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes breathe {
  0%, 100% { opacity: 0.25; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.06); }
}

.anim-fade-in {
  animation: fadeIn 1s ease-out forwards;
  opacity: 0;
}

.anim-fade-up {
  animation: fadeInUp 0.8s ease-out forwards;
  opacity: 0;
}

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-left {
  opacity: 0;
  transform: translateX(-40px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal-left.visible {
  opacity: 1;
  transform: translateX(0);
}

.reveal-right {
  opacity: 0;
  transform: translateX(40px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal-right.visible {
  opacity: 1;
  transform: translateX(0);
}

/* Delay helpers */
.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }
.delay-5 { transition-delay: 0.5s; }

/* Breathe animation for decorative circles */
.breathe {
  animation: breathe 8s ease-in-out infinite;
}

.breathe-reverse {
  animation: breathe 8s ease-in-out infinite;
  animation-delay: 4s;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .timeline { max-width: 100%; }
}

@media (max-width: 1500px) {
  .nav-list { display: none; }
  .hamburger { display: flex; }
}

@media (max-width: 768px) {
  .logo-text { display: none; }

  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .footer-bottom { flex-direction: column; text-align: center; }

  .bottom-cta {
    padding: 4rem 0;
  }

  .bottom-cta-inner {
    align-items: flex-start;
    flex-direction: column;
  }

  .bottom-cta-action {
    width: 100%;
    min-width: 0;
  }

  .form-row { grid-template-columns: 1fr; }

  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }

  .service-card { flex-direction: column; align-items: flex-start; }

  .news-top {
    align-items: flex-start;
    gap: 1.25rem;
  }

  .news-heading h2 {
    font-size: clamp(2.15rem, 11vw, 3.05rem);
  }

  .news-control {
    width: 42px;
    height: 42px;
  }

  .news-slider {
    margin-inline: 0;
    padding: 0.25rem 0.1rem 0.75rem;
  }

  .news-track {
    gap: 1rem;
  }

  .news-slide {
    flex-basis: 100%;
    min-height: 330px;
    padding: 0;
  }

  .news-slide:hover {
    transform: none;
  }

  .news-list {
    grid-template-columns: 1fr;
  }

  .hero-content h1 { font-size: clamp(2rem, 8vw, 3rem); }

  .quote-content { padding: 3rem 1.5rem; }
  .quote-text { font-size: clamp(1.2rem, 5vw, 1.6rem); }
  .territory-cta-grid { grid-template-columns: 1fr; }

  .quote-hero { min-height: 55vh; }
  .quote-hero-content .quote-mark { font-size: 5rem; }
  .quote-hero-content .quote-text { font-size: clamp(1.3rem, 5vw, 1.8rem); }

  .territory-bg::before { opacity: 0.04; right: -30%; width: 200px; height: 260px; }

  .territory-cta-content { grid-template-columns: 1fr; }
  .hero-badge { font-size: 0.6rem; padding: 0.3rem 0.8rem; }

  /* Anti-AI-slop responsive */
  .grid-asymmetric-2,
  .grid-asymmetric-3,
  .grid-masonry-2,
  .grid-featured {
    grid-template-columns: 1fr;
  }

  .grid-masonry-2 > :first-child {
    grid-row: auto;
  }

  .section-header-offset {
    padding-left: 1.5rem;
    border-left-width: 2px;
  }

  .gold-number {
    font-size: 4rem;
    top: -1rem;
    left: -0.5rem;
  }

  .text-bleed,
  .text-bleed-right {
    font-size: 1rem;
    max-width: 100%;
  }
}

/* ============================================================
   DIRECTION TERRITOIRE — Creative Director v2
   ============================================================ */

/* --- Territory motif: stylized Martinique SVG watermark --- */
.territory-bg {
  position: relative;
}

.territory-bg::before {
  content: '';
  position: absolute;
  top: 50%; right: -5%;
  width: 350px; height: 450px;
  transform: translateY(-50%) rotate(-12deg);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 300'%3E%3Cpath d='M100 20 C130 25, 160 50, 170 80 C180 110, 175 140, 160 170 C145 200, 120 230, 100 250 C80 230, 55 200, 40 170 C25 140, 20 110, 30 80 C40 50, 70 25, 100 20Z' fill='none' stroke='%23C5A059' stroke-width='0.8' opacity='0.12'/%3E%3Ccircle cx='100' cy='135' r='3' fill='%23C5A059' opacity='0.2'/%3E%3Ctext x='100' y='280' text-anchor='middle' font-family='Montserrat' font-size='6' fill='%23C5A059' opacity='0.15' letter-spacing='2'%3E14.5°N 60.8°W%3C/text%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-size: contain;
  pointer-events: none;
  z-index: 0;
}

/* --- GPS coordinate accent --- */
.coord-marker {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-sans);
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--or);
  opacity: 0.55;
}

.coord-marker::before {
  content: '';
  display: inline-block;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--or);
  opacity: 0.5;
}

/* --- Magnified quote — full territory anchor --- */
.quote-hero {
  position: relative;
  min-height: 75vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--earth-900);
  overflow: hidden;
}

.quote-hero-bg {
  position: absolute;
  inset: 0;
  opacity: 0.35;
  background-size: cover;
  background-position: center 35%;
}

.quote-hero-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 30% 50%, rgba(42,31,20,0.3) 0%, transparent 60%),
    radial-gradient(ellipse at 70% 30%, rgba(197,160,89,0.08) 0%, transparent 50%),
    linear-gradient(180deg, var(--earth-900) 0%, rgba(42,31,20,0.7) 30%, rgba(42,31,20,0.7) 70%, var(--earth-900) 100%);
}

.quote-hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 800px;
  padding: 2rem;
}

.quote-hero-content .coord-marker {
  margin-bottom: 3rem;
}

.quote-hero-content .quote-mark {
  font-family: var(--font-serif);
  font-size: 8rem;
  line-height: 0.6;
  color: var(--or);
  opacity: 0.2;
  margin-bottom: -1rem;
}

.quote-hero-content .quote-text {
  font-family: var(--font-serif);
  font-size: clamp(1.8rem, 4.5vw, 3rem);
  font-weight: 300;
  font-style: italic;
  color: #fff;
  line-height: 1.35;
  margin-bottom: 2rem;
}

.quote-hero-content .quote-line {
  width: 80px;
  height: 1px;
  background: var(--or);
  margin: 0 auto 1.2rem;
}

.quote-hero-content .quote-author {
  font-family: var(--font-sans);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--or);
}

.quote-hero-content .quote-role {
  font-size: 0.65rem;
  font-weight: 300;
  color: rgba(255,255,255,0.65);
  margin-top: 0.3rem;
}

/* --- Territory CTA section (footer-style invitation) --- */
.territory-cta {
  background: var(--earth-900);
  position: relative;
  overflow: hidden;
}

.territory-cta::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(197,160,89,0.3), transparent);
}

.territory-cta-content {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.territory-cta-map {
  aspect-ratio: 1;
  max-width: 380px;
  margin: 0 auto;
  position: relative;
}

.territory-cta-map svg {
  width: 100%;
  height: 100%;
  opacity: 0.15;
}

.territory-cta-dot {
  position: absolute;
  width: 10px; height: 10px;
  background: var(--or);
  border-radius: 50%;
  box-shadow: 0 0 16px rgba(197,160,89,0.5);
  animation: pulse-dot 3s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.8); opacity: 0.5; }
}

.territory-cta-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.territory-cta-card {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(197,160,89,0.1);
  padding: 1.5rem;
  text-align: center;
  transition: all var(--transition-base);
}

.territory-cta-card:hover {
  background: rgba(255,255,255,0.06);
  border-color: rgba(197,160,89,0.3);
  transform: translateY(-2px);
}

.territory-cta-card .cta-number {
  font-family: var(--font-number);
  font-size: 2rem;
  font-weight: 700;
  font-variant-numeric: lining-nums tabular-nums;
  font-feature-settings: "lnum" 1, "tnum" 1;
  color: var(--or);
  line-height: 1;
  margin-bottom: 0.3rem;
}

.territory-cta-card .cta-label {
  font-size: 0.7rem;
  font-weight: 400;
  color: rgba(255,255,255,0.5);
  letter-spacing: 0.05em;
}

/* --- Hero territory badge --- */
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 1rem;
  border: 1px solid rgba(197,160,89,0.25);
  border-radius: 100px;
  margin-bottom: 1.5rem;
  font-family: var(--font-sans);
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--or-light);
}

.hero-badge .badge-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--or);
  animation: pulse-dot 2.5s ease-in-out infinite;
}


/* ============================================================
   DOMAINE FULL-SCREEN SLIDER — Swiper-inspired vanilla
   ============================================================ */

.home-poster {
  position: relative;
  min-height: 100vh;
  padding: 0;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: var(--earth-900);
  color: #fff;
}

.home-poster::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 34%, rgba(232,202,122,0.22), transparent 30%),
    linear-gradient(180deg, rgba(14,23,18,0.18), rgba(14,23,18,0.72));
  pointer-events: none;
}

.home-poster-shell {
  position: relative;
  z-index: 1;
  width: 100%;
  min-height: 100vh;
  padding: clamp(1.6rem, 3vw, 2.6rem) clamp(1.5rem, 5vw, 5rem);
  overflow: hidden;
  background: #0e1712;
  box-shadow: none;
  isolation: isolate;
}

.home-poster-image,
.home-poster-shade {
  position: absolute;
  inset: 0;
}

.home-poster-image {
  background-image: url('images/hero1.webp');
  background-size: cover;
  background-position: center 42%;
  filter: saturate(1.16) contrast(1.03) brightness(1.08);
  transform: none;
  z-index: -3;
}

@supports (background-image: image-set(url('images/hero1-960.webp') 1x)) {
  .home-poster-image {
    background-image: image-set(url('images/hero1-960.webp') 1x, url('images/hero1.webp') 2x);
  }
}

.home-poster-shade {
  background:
    radial-gradient(circle at 43% 10%, rgba(255,242,190,0.42), transparent 18%),
    radial-gradient(circle at 52% 18%, rgba(212,168,83,0.16), transparent 28%),
    linear-gradient(180deg, rgba(0,0,0,0.04) 0%, rgba(0,0,0,0.08) 42%, rgba(0,0,0,0.52) 100%),
    linear-gradient(90deg, rgba(0,0,0,0.18), transparent 35%, rgba(0,0,0,0.1));
  z-index: -2;
}

.home-poster-shell::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255,255,255,0.08), transparent 9%),
    radial-gradient(circle at 70% 42%, rgba(255,255,255,0.05), transparent 11%);
  mix-blend-mode: screen;
  pointer-events: none;
  z-index: -1;
}

.home-poster-shell::after {
  content: '';
  position: absolute;
  inset: 0;
  box-shadow: inset 0 0 90px rgba(0,0,0,0.22);
  pointer-events: none;
}

.home-poster-topline {
  position: relative;
  z-index: 5;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1rem;
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.8);
}

.home-poster-mini {
  grid-column: 2;
  display: flex;
  align-items: center;
  gap: clamp(1.25rem, 5vw, 5rem);
  color: rgba(255,255,255,0.72);
}

.home-poster-mini a {
  transition: color var(--transition-base);
}

.home-poster-mini a:hover {
  color: var(--or-light);
}

.home-poster-lang {
  color: rgba(255,255,255,0.92);
}

.home-socials {
  display: flex;
  align-items: center;
  gap: 0.48rem;
  margin-left: 0;
  padding-right: 0.5rem;
}

.home-poster-tools {
  grid-column: 3;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.5rem;
}

.home-tool,
.home-poster-lang {
  width: 30px;
  height: 32px;
  display: inline-grid;
  place-items: center;
  border: 0;
  background: transparent;
  color: rgba(255,255,255,0.52);
  font: inherit;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  cursor: pointer;
  transition: color var(--transition-base), transform var(--transition-base);
}

.home-tool svg {
  width: 15px;
  height: 15px;
}

.home-social-link {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.78);
}

.home-social-link svg {
  width: 17px;
  height: 17px;
}

.home-tool:hover,
.home-poster-lang:hover {
  color: var(--or-light);
  transform: translateY(-1px);
}

.home-social-link:hover {
  background: rgba(232,202,122,0.16);
  color: var(--or-light);
}

.home-search-panel {
  position: absolute;
  top: clamp(4.5rem, 8vw, 6.5rem);
  right: clamp(1.5rem, 5vw, 5rem);
  z-index: 10;
  width: min(360px, calc(100vw - 3rem));
  padding: 1rem;
  border: 1px solid rgba(255,255,255,0.16);
  background: rgba(14,23,18,0.78);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 18px 45px rgba(0,0,0,0.28);
  opacity: 0;
  transform: translateY(-8px);
  pointer-events: none;
  transition: opacity var(--transition-base), transform var(--transition-base);
}

.home-search-panel.open {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.home-search-panel label {
  display: block;
  margin-bottom: 0.5rem;
  font-family: var(--font-sans);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.62);
}

.home-search-panel input {
  width: 100%;
  border: 0;
  border-bottom: 1px solid rgba(255,255,255,0.28);
  background: transparent;
  color: #fff;
  padding: 0.6rem 0;
  font-family: var(--font-sans);
  font-size: 0.9rem;
}

.home-search-panel input::placeholder {
  color: rgba(255,255,255,0.48);
}

.home-search-results {
  display: grid;
  gap: 0.45rem;
  margin-top: 0.85rem;
}

.home-search-results a,
.home-search-empty {
  display: block;
  padding: 0.6rem 0;
  border-top: 1px solid rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.84);
  font-size: 0.78rem;
  line-height: 1.35;
}

.home-search-results a:hover {
  color: var(--or-light);
}

.home-poster-title {
  position: absolute;
  left: clamp(1rem, 4vw, 3.5rem);
  right: clamp(1rem, 4vw, 3.5rem);
  top: 43%;
  transform: translateY(-50%);
  text-align: center;
  z-index: 3;
  pointer-events: none;
}

.home-poster-kicker {
  display: inline-block;
  margin-bottom: clamp(0.45rem, 1.2vw, 0.9rem);
  font-family: var(--font-sans);
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(232,202,122,0.92);
  text-shadow: 0 3px 18px rgba(0,0,0,0.6);
}

.home-poster-title h1 {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 9rem;
  font-weight: 700;
  line-height: 0.76;
  letter-spacing: 0;
  text-transform: uppercase;
}

.home-poster-title h1 span,
.home-poster-title h1 strong {
  display: block;
  color: rgba(255,255,255,0.48);
  -webkit-text-stroke: 1px rgba(255,255,255,0.16);
  text-shadow: 0 8px 30px rgba(0,0,0,0.34);
  mix-blend-mode: screen;
}

.home-poster-title h1 strong {
  margin-top: -0.08em;
  color: rgba(232,202,122,0.46);
}

.home-poster-bottom {
  position: absolute;
  left: clamp(1.5rem, 5vw, 5rem);
  right: clamp(1.5rem, 5vw, 5rem);
  bottom: clamp(2rem, 5vw, 4.25rem);
  z-index: 5;
  display: grid;
  grid-template-columns: minmax(260px, 420px) 1fr;
  align-items: end;
  gap: clamp(2rem, 8vw, 7rem);
}

.home-poster-copy h2 {
  font-family: var(--font-sans);
  font-size: 1.55rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0;
  margin: 0 0 0.65rem;
}

.home-poster-copy p {
  margin: 0;
  color: rgba(255,255,255,0.82);
  font-size: 0.88rem;
  line-height: 1.55;
}

.home-poster-facts {
  display: flex;
  align-items: end;
  justify-content: flex-end;
  gap: clamp(1.25rem, 4vw, 3.75rem);
}

.home-poster-facts span {
  position: relative;
  display: grid;
  gap: 0.18rem;
  min-width: 92px;
  max-width: 190px;
}

.home-poster-facts span + span::before {
  content: '';
  position: absolute;
  top: 0.15rem;
  bottom: 0.15rem;
  left: calc(clamp(1.25rem, 4vw, 3.75rem) / -2);
  width: 1px;
  background: rgba(255,255,255,0.28);
}

.home-poster-facts small {
  color: rgba(255,255,255,0.76);
  font-size: 0.72rem;
  font-weight: 500;
}

.home-poster-facts strong {
  color: #fff;
  font-family: var(--font-sans);
  font-size: clamp(1.02rem, 1.45vw, 1.45rem);
  line-height: 1.08;
  font-weight: 700;
  overflow-wrap: anywhere;
}

.home-poster-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  margin-top: 1.1rem;
  padding: 0.68rem 1.2rem;
  border: 1px solid rgba(255,255,255,0.42);
  color: #fff;
  font-family: var(--font-sans);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  transition: color var(--transition-base), border-color var(--transition-base), background var(--transition-base), transform var(--transition-base);
}

.home-poster-btn:hover {
  background: rgba(255,255,255,0.12);
  border-color: var(--or-light);
  color: var(--or-light);
  transform: translateY(-2px);
}

@media (max-width: 980px) {
  .home-poster {
    padding: 0;
  }

  .home-poster-shell {
    min-height: 100vh;
    padding: 1.35rem;
  }

  .home-poster-topline {
    font-size: 0.64rem;
  }

  .home-poster-mini {
    gap: 1.25rem;
  }

  .home-poster-title {
    top: 38%;
  }

  .home-poster-title h1 {
    font-size: 6.6rem;
  }

  .home-poster-kicker {
    font-size: 0.95rem;
  }

  .home-poster-bottom {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    text-align: left;
  }

  .home-poster-facts {
    justify-content: flex-start;
  }
}

@media (max-width: 640px) {
  .home-poster {
    min-height: 100vh;
    padding: 0;
  }

  .home-poster-shell {
    min-height: 100vh;
    padding: 1.1rem;
  }

  .home-poster-mini a:nth-child(2) {
    display: none;
  }

  .home-poster-tools {
    gap: 0.35rem;
  }

  .home-tool,
  .home-poster-lang {
    width: 24px;
    height: 28px;
  }

  .home-socials {
    gap: 0.05rem;
    margin-left: 0.8rem;
  }

  .home-poster-title {
    top: 33%;
    left: 0.75rem;
    right: 0.75rem;
  }

  .home-poster-title h1 {
    font-size: 3.7rem;
    letter-spacing: 0;
  }

  .home-poster-kicker {
    font-size: 0.72rem;
  }

  .home-poster-bottom {
    left: 1.1rem;
    right: 1.1rem;
    bottom: 1.4rem;
  }

  .home-poster-copy h2 {
    font-size: 1.25rem;
  }

  .home-poster-copy p {
    font-size: 0.78rem;
  }

  .home-poster-facts {
    gap: 0.85rem;
    justify-content: space-between;
  }

  .home-poster-facts span {
    min-width: 0;
  }

  .home-poster-facts span + span::before {
    display: none;
  }

  .home-poster-facts small {
    font-size: 0.58rem;
  }

  .home-poster-facts strong {
    font-size: 0.95rem;
  }
}

.domaine-slider {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
  background: #000;
}

.ds-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  pointer-events: none;
}

.ds-slide.active {
  opacity: 1;
  pointer-events: auto;
}

.ds-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  animation: dsZoom 12s ease-in-out infinite alternate;
}

@keyframes dsZoom {
  0% { transform: scale(1); }
  100% { transform: scale(1.08); }
}

.ds-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center right, transparent 20%, rgba(0,0,0,0.85) 100%);
}

.ds-content {
  position: absolute;
  bottom: 15%;
  left: clamp(2rem, 8vw, 6rem);
  max-width: 620px;
  z-index: 2;
}

.ds-tag {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--or-light);
  margin: 0 0 1.5rem;
}

.ds-title {
  font-family: var(--font-serif);
  font-size: clamp(4rem, 8vw, 7.5rem);
  font-weight: 700;
  color: #fff;
  line-height: 1.08;
  margin: 0 0 2.5rem;
}

.ds-desc {
  font-family: var(--font-sans);
  font-size: 1.1rem;
  font-weight: 300;
  line-height: 1.9;
  color: rgba(255,255,255,0.7);
  margin: 0 0 3.5rem;
  max-width: 500px;
}

.ds-btn {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  color: #fff;
  text-decoration: none;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  transition: gap 0.4s ease;
  margin-right: 1.5rem;
}

.ds-btn:hover { gap: 1.5rem; }

.ds-btn-circle {
  position: relative;
  width: 48px; height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.ds-btn-ring {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  color: rgba(255,255,255,0.5);
  transition: color 0.4s ease, transform 0.6s ease;
}

.ds-btn:hover .ds-btn-ring { color: var(--or); transform: rotate(90deg); }

.ds-btn-arrow {
  width: 14px; height: 12px;
  color: #fff;
  transition: transform 0.4s ease;
}

.ds-btn:hover .ds-btn-arrow { transform: translateX(4px); }

.ds-btn-label {
  position: relative;
  padding-bottom: 4px;
}

.ds-btn-label::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 100%; height: 1px;
  background: #fff;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.4s ease;
}

.ds-btn:hover .ds-btn-label::after { transform: scaleX(1); transform-origin: left; }

.ds-nav {
  position: absolute;
  bottom: 6%;
  z-index: 5;
  width: 56px; height: 56px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.15);
  background: rgba(0,0,0,0.3);
  backdrop-filter: blur(8px);
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.ds-nav:hover { background: rgba(255,255,255,0.1); border-color: rgba(255,255,255,0.7); }
.ds-nav svg { width: 20px; height: 20px; }

.ds-prev { right: calc(50% + 320px); }
.ds-next { left: calc(50% + 320px); }

.ds-pagination {
  position: absolute;
  bottom: 7%;
  left: clamp(2rem, 8vw, 6rem);
  display: flex;
  align-items: center;
  gap: 0.6rem;
  z-index: 5;
  width: 120px;
  max-width: 30vw;
}

.ds-progress {
  flex: 1;
  height: 1px;
  background: rgba(255,255,255,0.12);
  border-radius: 0;
  overflow: hidden;
}

.ds-progress-fill {
  height: 100%;
  background: var(--or);
  width: 0%;
  transition: width 0.5s ease;
}

@media (max-width: 768px) {
  .domaine-slider { height: 80vh; }
  .ds-content { bottom: 18%; left: 1.5rem; right: 1.5rem; }
  .ds-title { font-size: 2.8rem; margin-bottom: 1.5rem; }
  .ds-desc { font-size: 0.9rem; max-width: 100%; margin-bottom: 2.5rem; }
  .ds-tag { margin-bottom: 1rem; }
  .ds-desc br { display: none; }
  .ds-pagination { width: 100px; bottom: 10%; left: 1.5rem; }
  .ds-prev { right: auto; left: 1rem; }
  .ds-next { right: 1rem; left: auto; }
  .ds-nav { width: 44px; height: 44px; }
}


/* ---- Secondary outline button ---- */
.ds-btn-outline {
  opacity: 0.7;
  padding: 0.6rem 1.25rem;
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 2px;
  transition: all 0.35s ease;
}
.ds-btn-outline:hover {
  opacity: 1;
  border-color: rgba(255,255,255,0.6);
  background: rgba(255,255,255,0.06);
}
.ds-btn-outline .ds-btn-label { padding-bottom: 0 !important; }
.ds-btn-outline .ds-btn-label::after { display: none; }


/* ============================================================
   TESTIMONIAL PILL SELECTOR
   ============================================================ */

.tpill {
  position: relative;
  display: flex;
  align-items: center;
  border: none;
  cursor: pointer;
  border-radius: 9999px;
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  padding: 2px;
  background: transparent;
  font-family: inherit;
}

.tpill:hover { background: rgba(0, 0, 0, 0.05); }

.tpill.active {
  background: var(--earth-900);
  box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -4px rgba(0,0,0,0.1);
  padding: 0.5rem 1rem 0.5rem 0.5rem;
}

.tpill-avatar {
  width: 2rem;
  height: 2rem;
  border-radius: 9999px;
  object-fit: cover;
  flex-shrink: 0;
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.tpill.active .tpill-avatar {
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.3);
}

.tpill:not(.active):hover .tpill-avatar {
  transform: scale(1.05);
}

.tpill-name {
  display: grid;
  grid-template-columns: 0fr;
  opacity: 0;
  margin-left: 0;
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
}

.tpill.active .tpill-name,
.tpill:hover .tpill-name {
  grid-template-columns: 1fr;
  opacity: 1;
  margin-left: 0.5rem;
}

.tpill-name-inner {
  overflow: hidden;
}

.tpill-name-text {
  font-size: 0.875rem;
  font-weight: 500;
  white-space: nowrap;
  display: block;
  transition: color 0.3s;
  color: var(--earth-900);
}

.tpill.active .tpill-name-text { color: #fff; }




/* ============================================================
   REFINED DESIGN — texture, depth, polish
   ============================================================ */

/* ― Subtle grain overlay for dark sections ― */
.section-grain {
  position: relative;
}
.section-grain::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.03;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 200px 200px;
}

/* ― Refined text-foliage ― */
.text-foliage {
  color: var(--foliage-light);
  font-weight: 600;
}

/* ― Cleaner card on light bg ― */
.card {
  background: var(--white);
  border: 1px solid var(--earth-200);
  box-shadow: var(--shadow-sm);
  border-radius: 6px;
  padding: 2rem;
  transition: box-shadow 0.4s ease, border-color 0.4s ease, transform 0.4s ease;
}
.card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--earth-100);
  transform: translateY(-2px);
}

/* ― Ocean accent for highlights ― */
.text-ocean { color: var(--ocean); }
.bg-ocean-ghost { background: var(--ocean-ghost); }

/* ― Refined gold-line ― */
.gold-line, .gold-line-long {
  background: linear-gradient(90deg, var(--or), var(--or-light));
  height: 2px;
  border: none;
  border-radius: 1px;
}
.gold-line-long { width: 60px; margin: 1.5rem 0; }
.gold-line { width: 40px; margin: 1rem 0; }

/* ― Section accent bar refined ― */
.section-accent-bar {
  height: 2px;
  background: linear-gradient(90deg, var(--or), transparent);
  border: none;
  margin-bottom: 1.5rem;
}

/* ― Improved button styles ― */
.btn-primary {
  background: var(--or);
  color: var(--earth-900);
  border: none;
  font-weight: 600;
  letter-spacing: 0.02em;
  transition: all 0.35s ease;
}
.btn-primary:hover {
  background: var(--or-light);
  transform: translateY(-1px);
  box-shadow: 0 6px 24px rgba(212, 168, 83, 0.25);
}

.btn-outline {
  background: transparent;
  border: 1.5px solid rgba(255,255,255,0.3);
  color: #fff;
  transition: all 0.35s ease;
}
.btn-outline:hover {
  border-color: var(--or-light);
  color: var(--or-light);
  transform: translateY(-1px);
}

.btn-outline-dark {
  background: transparent;
  border: 1.5px solid var(--earth-200);
  color: var(--earth-900);
  transition: all 0.35s ease;
}
.btn-outline-dark:hover {
  border-color: var(--or);
  color: var(--or-dark);
}

/* ============================================================
   RESPONSIVE GLOBAL — mobile baseline + tablet pass
   ============================================================ */
@media (max-width: 899px) {
  :root {
    --header-h: 68px;
  }

  html,
  body {
    width: 100%;
    overflow-x: hidden;
  }

  body {
    font-size: 15px;
  }

  h1,
  h2,
  h3,
  .section-header h2,
  .section-header-offset h2,
  .section-header-wide h2,
  .resources-intro h2,
  .resources-section-title h2 {
    overflow-wrap: normal;
    word-break: normal;
    letter-spacing: 0;
  }

  .news-heading,
  .news-heading h2,
  .resources-section-title,
  .resources-section-title h2 {
    width: 100%;
    max-width: 100%;
  }

  h1,
  .page-hero h1 {
    font-size: clamp(2.35rem, 13vw, 4rem);
    line-height: 0.98;
  }

  h2,
  .section-header h2,
  .section-header-offset h2,
  .section-header-wide h2 {
    font-size: clamp(2rem, 10vw, 3.1rem);
    line-height: 1.03;
  }

  .container,
  .container-bleed,
  .container-narrow {
    width: 100%;
    padding-left: clamp(1rem, 5vw, 1.5rem);
    padding-right: clamp(1rem, 5vw, 1.5rem);
  }

  .section,
  .news-section,
  .resources-hub,
  .partners-premium {
    padding-top: clamp(3.4rem, 14vw, 5rem);
    padding-bottom: clamp(3.4rem, 14vw, 5rem);
  }

  .page-hero {
    min-height: 36vh;
    padding-top: calc(var(--header-h) + 3rem);
    padding-bottom: 3rem;
  }

  .section-header,
  .section-header-left,
  .section-header-offset,
  .section-header-wide,
  .resources-intro,
  .resources-section-title {
    text-align: left;
    max-width: 100%;
    padding-left: 0;
    margin-bottom: 2.4rem;
  }

  .section-header .gold-line {
    margin-left: 0;
    margin-right: 0;
  }

  .section-header-offset {
    border-left-width: 2px;
    padding-left: 1rem;
  }

  .grid-asymmetric-2,
  .grid-asymmetric-3,
  .grid-masonry-2,
  .grid-featured,
  .footer-grid,
  .news-list,
  .resource-timeline,
  .resource-grid,
  .media-link-grid,
  .domaine-grid,
  [style*="grid-template-columns:1fr 1fr"],
  [style*="grid-template-columns: 1fr 1fr"],
  [style*="grid-template-columns:repeat(2,1fr)"],
  [style*="grid-template-columns: repeat(2,1fr)"],
  [style*="grid-template-columns:repeat(3"],
  [style*="grid-template-columns: repeat(3"] {
    grid-template-columns: 1fr !important;
  }

  [style*="gap:4rem"],
  [style*="gap: 4rem"],
  [style*="gap:2.5rem"],
  [style*="gap: 2.5rem"] {
    gap: 2rem !important;
  }

  .card,
  .service-card,
  .info-card,
  .resource-card,
  .contact-item,
  .timeline-body,
  .songhai-panel {
    padding: 1.25rem;
  }

  .service-card,
  .feature-item,
  .contact-item {
    min-width: 0;
  }

  .img-card img,
  [style*="height:400px"],
  [style*="height:450px"],
  [style*="height:480px"] {
    width: 100% !important;
    height: auto !important;
    max-height: 420px;
    object-fit: cover;
  }

  .bottom-cta {
    padding: 4rem 0;
  }

  .bottom-cta-inner {
    align-items: flex-start;
    flex-direction: column;
    gap: 2rem;
  }

  .bottom-cta-copy h2 {
    font-size: clamp(2.35rem, 12vw, 3.2rem);
  }

  .bottom-cta-action,
  .btn-lg {
    width: 100%;
    max-width: 100%;
  }

  .form-row {
    grid-template-columns: 1fr !important;
  }

  .contact-form input,
  .contact-form select,
  .contact-form textarea {
    width: 100%;
  }

  .resource-modal-dialog {
    width: min(100% - 1.5rem, 680px);
    max-height: calc(100dvh - 1.5rem);
    overflow: auto;
  }

  .resource-modal-close {
    top: 0.75rem;
    right: 0.75rem;
  }

  .footer-grid {
    gap: 2rem;
  }

  .site-footer {
    padding: 3.5rem 0 1.5rem;
  }

  .footer-brand {
    display: grid;
    gap: 1rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid rgba(255,255,255,0.08);
  }

  .footer-brand .logo-link {
    margin-bottom: 0;
  }

  .footer-brand .logo-img {
    width: 64px;
    height: 64px;
    max-width: 72px;
  }

  .footer-brand p {
    max-width: 34rem;
    font-size: 0.95rem;
    line-height: 1.75;
  }

  .footer-brand .footer-tagline {
    max-width: 24rem;
    margin-top: 0;
    line-height: 1.6;
  }

  .footer-social {
    margin-top: 0.25rem;
  }

  .footer-col {
    padding-top: 0.25rem;
    padding-bottom: 0.85rem;
    border-bottom: 1px solid rgba(255,255,255,0.06);
  }

  .footer-col h2 {
    margin-bottom: 0.9rem;
  }

  .footer-col ul {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.35rem 1rem;
  }

  .footer-col ul li a {
    display: block;
    padding: 0.5rem 0;
    font-size: 0.9rem;
    line-height: 1.35;
  }

  .footer-bottom {
    align-items: flex-start;
    flex-direction: column;
    text-align: left;
    gap: 0.8rem;
  }
}

@media (max-width: 640px) {
  .news-top {
    display: grid;
    grid-template-columns: 1fr;
    align-items: start;
    gap: 1rem;
  }

  .news-heading {
    min-width: 0;
  }

  .news-heading h2 {
    font-size: clamp(2.15rem, 12vw, 3.05rem);
    line-height: 0.98;
    max-width: 100%;
    white-space: normal;
    overflow-wrap: normal;
    word-break: normal;
  }

  .news-controls {
    width: auto;
    justify-content: flex-start;
    gap: 0.6rem;
  }

  .news-control {
    width: 44px;
    height: 44px;
    flex: 0 0 44px;
  }

  .btn {
    width: 100%;
    max-width: 100%;
  }

  .home-poster-topline {
    grid-template-columns: auto 1fr auto;
    gap: 0.55rem;
  }

  .home-poster-mini {
    justify-content: center;
    gap: 0.8rem;
  }

  .home-poster-mini a:nth-child(n+4) {
    display: none;
  }

  .home-search-panel {
    left: 1rem;
    right: 1rem;
    width: auto;
  }

  .home-poster-facts {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .home-poster-facts strong,
  .home-poster-facts small {
    overflow-wrap: anywhere;
  }

  .post-hero-grid,
  .post-hero-meta,
  .songhai-facts {
    grid-template-columns: 1fr !important;
  }

  .post-hero-meta span + span,
  .songhai-facts span + span {
    border-left: 0;
    border-top: 1px solid rgba(255,255,255,0.12);
    padding-top: 1rem;
  }

  .resource-card,
  .media-link-grid a {
    min-height: 0;
  }

  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 1.35rem 1rem;
  }

  .footer-brand {
    grid-column: 1 / -1;
    padding-bottom: 1.25rem;
  }

  .footer-col {
    padding-bottom: 1rem;
  }

  .footer-col h2 {
    margin-bottom: 0.65rem;
  }

  .footer-col ul {
    grid-template-columns: 1fr;
  }

  .footer-bottom {
    padding-top: 1.2rem;
  }

  .logo-carousel {
    margin-inline: -1rem;
  }

  .tpill.active {
    padding-right: 0.75rem;
  }

  .tpill-name-text {
    max-width: 9rem;
    overflow: hidden;
    text-overflow: ellipsis;
  }
}

@media (min-width: 700px) and (max-width: 1024px) {
  .container,
  .container-bleed {
    padding-left: clamp(1.75rem, 5vw, 3rem);
    padding-right: clamp(1.75rem, 5vw, 3rem);
  }

  .resource-grid,
  .media-link-grid,
  .news-list,
  .stats-grid,
  [style*="grid-template-columns:repeat(2,1fr)"],
  [style*="grid-template-columns: repeat(2,1fr)"] {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  .resource-timeline,
  .grid-asymmetric-3,
  [style*="grid-template-columns:repeat(3"],
  [style*="grid-template-columns: repeat(3"] {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  .grid-asymmetric-2,
  .grid-featured,
  [style*="grid-template-columns:1fr 1fr"],
  [style*="grid-template-columns: 1fr 1fr"] {
    grid-template-columns: 1fr !important;
  }

  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  .footer-brand {
    grid-column: 1 / -1;
    max-width: 42rem;
  }

  .bottom-cta-inner {
    align-items: center;
    flex-direction: row;
  }

  .bottom-cta-action {
    width: auto;
    min-width: 216px;
  }

  .btn-lg {
    width: auto;
  }
}

@media (min-width: 900px) and (max-width: 1180px) {
  .grid-asymmetric-2,
  .grid-featured,
  [style*="grid-template-columns:1fr 1fr"],
  [style*="grid-template-columns: 1fr 1fr"] {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: clamp(2rem, 4vw, 3rem) !important;
  }

  .resource-grid,
  .media-link-grid,
  .resource-timeline,
  .grid-asymmetric-3,
  [style*="grid-template-columns:repeat(3"],
  [style*="grid-template-columns: repeat(3"] {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* ============================================================
   RESPONSIVE POLISH — device-specific safeguards
   ============================================================ */
@media (max-width: 1180px) {
  .site-header .container,
  .header-inner {
    min-width: 0;
  }

  .section,
  .page-hero,
  .bottom-cta,
  .partners-premium {
    overflow-x: clip;
  }

  .service-card,
  .feature-item,
  .contact-item,
  .resource-card,
  .media-link-grid a,
  .news-slide,
  .story-row,
  .post-hero-grid {
    min-width: 0;
  }
}

@media (min-width: 769px) and (max-width: 1180px) {
  .home-poster-title h1 {
    font-size: clamp(5.4rem, 13vw, 7.4rem);
  }

  .home-poster-bottom {
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
    gap: clamp(1.5rem, 4vw, 3.25rem);
  }

  .home-poster-facts {
    gap: clamp(1rem, 2.5vw, 2rem);
  }

  .logo-item {
    min-width: 150px;
  }

  .logo-item img {
    height: 50px;
    max-width: 145px;
  }
}

@media (max-width: 899px) {
  .home-poster {
    min-height: 100svh;
  }

  .home-poster-shell {
    min-height: 100svh;
  }

  .home-poster-topline {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
  }

  .home-poster-mini {
    min-width: 0;
    justify-content: center;
    gap: clamp(0.75rem, 4vw, 1.5rem);
  }

  .home-poster-mini a {
    white-space: nowrap;
  }

  .home-poster-title h1 {
    font-size: clamp(3.9rem, 18vw, 6.5rem);
  }

  .home-poster-bottom {
    align-items: stretch;
  }

  .home-poster-facts {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    width: 100%;
  }

  .home-poster-facts span {
    max-width: none;
  }

  .post-hero-art {
    margin-left: 0;
  }

  .post-hero-copy {
    margin-left: 0;
  }

  .story-row,
  .story-row-left {
    gap: 1.5rem;
  }

  .story-copy {
    max-width: 44rem;
  }

  .feature-item {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
  }

  .contact-item-value,
  .feature-item p,
  .service-card p {
    overflow-wrap: anywhere;
  }

  .logo-carousel {
    padding-block: 0.35rem;
  }

  .logo-track {
    gap: 1rem;
    animation-duration: 42s;
  }
}

@media (max-width: 640px) {
  .home-poster-shell {
    display: grid;
    grid-template-rows: auto minmax(0, 1fr) auto;
    gap: 1.1rem;
    padding: 1rem;
  }

  .home-poster-mini a:nth-child(n+3) {
    display: none;
  }

  .home-poster-title {
    position: relative;
    inset: auto;
    align-self: center;
    transform: none;
  }

  .home-poster-title h1 {
    font-size: clamp(3.15rem, 20vw, 4.65rem);
  }

  .home-poster-bottom {
    position: relative;
    left: auto;
    right: auto;
    bottom: auto;
    gap: 1rem;
  }

  .home-poster-copy h2 {
    font-size: 1.18rem;
  }

  .home-poster-copy p {
    font-size: 0.82rem;
  }

  .home-poster-facts {
    grid-template-columns: 1fr;
    gap: 0.65rem;
  }

  .home-poster-facts span {
    grid-template-columns: 5.2rem minmax(0, 1fr);
    align-items: baseline;
    gap: 0.75rem;
    padding-top: 0.65rem;
    border-top: 1px solid rgba(255,255,255,0.18);
  }

  .home-poster-facts strong {
    font-size: 0.98rem;
  }

  .page-hero {
    min-height: 30vh;
  }

  .section-eyebrow,
  .post-hero-kicker,
  .story-kicker,
  .partners-eyebrow {
    letter-spacing: 0.14em;
  }

  .service-card {
    gap: 1rem;
  }

  .service-card h3 {
    font-size: 1.2rem;
  }

  .feature-dot,
  .service-card .service-icon,
  .contact-item-icon {
    width: 44px;
    height: 44px;
  }

  .contact-item {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .contact-form {
    gap: 1.1rem;
  }

  .contact-form input,
  .contact-form select,
  .contact-form textarea {
    font-size: 16px;
  }

  .logo-item {
    min-width: 132px;
    padding-inline: 0.55rem;
  }

  .logo-item img {
    height: 42px;
    max-width: 112px;
  }

  .bottom-cta-copy h2 {
    font-size: clamp(2.2rem, 11vw, 2.85rem);
    line-height: 1;
  }

  .bottom-cta-copy p {
    font-size: 1rem;
  }

  .bottom-cta .bottom-cta-action {
    align-self: center;
    width: auto;
    min-width: 0;
    max-width: 100%;
    padding-left: 2rem;
    padding-right: 2rem;
  }

  .footer-col ul li a {
    min-height: 44px;
  }
}

@media (max-width: 390px) {
  .container,
  .container-bleed,
  .container-narrow {
    padding-left: 0.9rem;
    padding-right: 0.9rem;
  }

  .home-poster-shell {
    padding: 0.9rem;
  }

  .home-poster-title h1 {
    font-size: clamp(2.85rem, 19vw, 3.75rem);
  }

  .home-poster-kicker {
    font-size: 0.66rem;
  }

  .home-poster-facts span {
    grid-template-columns: 4.5rem minmax(0, 1fr);
  }

  .logo-item {
    min-width: 112px;
  }

  .logo-item img {
    height: 36px;
    max-width: 96px;
  }

  .footer-grid {
    grid-template-columns: 1fr !important;
  }
}

@media (orientation: landscape) and (max-height: 520px) {
  .home-poster,
  .home-poster-shell {
    min-height: 640px;
  }

  .mobile-nav {
    overflow-y: auto;
  }
}

/* ============================================================
   FOOTER MINIMAL — clean structure, fewer dividers
   ============================================================ */
.site-footer {
  border-top: 0;
  padding: clamp(3rem, 6vw, 4.5rem) 0 1.6rem;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.015), transparent 28%),
    var(--earth-900);
}

.footer-grid {
  grid-template-columns: minmax(280px, 1.4fr) minmax(150px, 0.55fr) minmax(190px, 0.75fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
  margin-bottom: clamp(2rem, 4vw, 3rem);
}

.footer-brand {
  display: grid;
  gap: 1rem;
  padding: 0;
  border: 0;
}

.footer-brand .logo-link {
  display: none;
}

.footer-brand p {
  max-width: 560px;
  margin: 0;
  color: rgba(255,255,255,0.74);
  font-size: clamp(1rem, 1.4vw, 1.16rem);
  line-height: 1.75;
}

.footer-brand .footer-tagline {
  max-width: 32rem;
  margin: 0;
  color: var(--or-light);
  font-size: 0.68rem;
  line-height: 1.7;
  letter-spacing: 0.18em;
}

.footer-social {
  margin-top: 0.35rem;
}

.social-link {
  width: 42px;
  height: 42px;
  border-color: rgba(255,255,255,0.16);
}

.footer-col {
  padding: 0;
  border: 0;
}

.footer-col h2 {
  margin-bottom: 1rem;
  color: var(--or-light);
}

.footer-col ul {
  gap: 0.45rem;
}

.footer-col ul li a {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  color: rgba(255,255,255,0.72);
  line-height: 1.35;
}

.footer-bottom {
  justify-content: flex-start;
  gap: 0.75rem 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255,255,255,0.07);
}

.footer-bottom p {
  margin: 0;
}

@media (max-width: 899px) {
  .site-footer {
    padding-top: 3rem;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr !important;
    gap: 2rem 1.5rem;
  }

  .footer-brand {
    grid-column: 1 / -1;
    padding: 0;
    border: 0;
  }

  .footer-col {
    padding: 0;
    border: 0;
  }

  .footer-col ul {
    grid-template-columns: 1fr;
  }

  .footer-bottom {
    align-items: flex-start;
    text-align: left;
    flex-direction: column;
  }
}

@media (max-width: 520px) {
  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  .footer-brand p {
    font-size: 1rem;
  }
}

@media (max-width: 640px) {
  .site-footer {
    padding-top: 2.25rem;
    padding-bottom: 1.25rem;
  }

  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 1.8rem 1.25rem;
    margin-bottom: 1.7rem;
  }

  .footer-brand {
    grid-column: 1 / -1;
    gap: 0.8rem;
  }

  .footer-brand p {
    max-width: 100%;
    font-size: 0.96rem;
    line-height: 1.62;
  }

  .footer-brand .footer-tagline {
    max-width: 100%;
    font-size: 0.62rem;
    line-height: 1.55;
    letter-spacing: 0.15em;
  }

  .footer-social {
    gap: 0.6rem;
    margin-top: 0.15rem;
  }

  .social-link {
    width: 40px;
    height: 40px;
  }

  .footer-col h2 {
    margin-bottom: 0.65rem;
    font-size: 0.64rem;
    letter-spacing: 0.16em;
  }

  .footer-col ul {
    gap: 0.25rem;
  }

  .footer-col ul li a {
    min-height: 36px;
    font-size: 0.9rem;
  }

  .footer-bottom {
    gap: 0.45rem;
    padding-top: 1rem;
    font-size: 0.72rem;
    line-height: 1.55;
  }

  .home-socials {
    gap: 0.35rem;
    margin-left: 0;
    padding-right: 0.25rem;
  }

  .home-social-link {
    width: 32px;
    height: 32px;
  }

  .home-social-link svg {
    width: 16px;
    height: 16px;
  }
}

@media (max-width: 360px) {
  .footer-grid {
    gap: 1.55rem 0.9rem;
  }

  .footer-col ul li a {
    font-size: 0.84rem;
  }
}

/* Home uses the same navigation structure as inner pages, with extra tools. */
.site-header-home .header-inner {
  gap: clamp(1rem, 2vw, 2rem);
}

.site-header-home nav {
  margin-left: auto;
}

.site-header-home .home-header-tools {
  flex: 0 0 auto;
}

.site-header-home .home-socials {
  padding-right: 0.25rem;
}

@media (max-width: 1500px) {
  .site-header-home .home-header-tools {
    margin-left: auto;
  }
}

@media (max-width: 768px) {
  .site-header-home .home-socials {
    display: none;
  }
}

/* Mobile hero reset: keep the poster dramatic without letting it sprawl. */
@media (max-width: 640px) {
  .home-poster {
    min-height: 100svh;
  }

  .home-poster-shell {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    min-height: 100svh;
    padding: calc(var(--header-h) + 0.85rem) 0.95rem 1.15rem;
    gap: 1.1rem;
  }

  .home-poster-image {
    background-position: center top;
  }

  .home-poster-shade {
    background:
      radial-gradient(circle at 50% 8%, rgba(255,242,190,0.35), transparent 18%),
      linear-gradient(180deg, rgba(0,0,0,0.08) 0%, rgba(0,0,0,0.2) 44%, rgba(0,0,0,0.68) 100%);
  }

  .home-poster-title {
    position: relative;
    inset: auto;
    transform: none;
    align-self: center;
    width: min(100%, 28rem);
    margin: 0 auto auto;
    padding-top: clamp(1.65rem, 6vh, 3rem);
  }

  .home-poster-kicker {
    margin-bottom: 0.7rem;
    font-size: clamp(0.62rem, 2.8vw, 0.78rem);
    letter-spacing: 0.13em;
  }

  .home-poster-title h1 {
    font-size: clamp(2.85rem, 15vw, 4.1rem);
    line-height: 0.9;
  }

  .home-poster-title h1 strong {
    margin-top: 0.02em;
  }

  .home-poster-bottom {
    position: relative;
    left: auto;
    right: auto;
    bottom: auto;
    display: grid;
    gap: 1rem;
  }

  .home-poster-copy h2 {
    margin-bottom: 0.5rem;
    font-size: clamp(1.18rem, 5vw, 1.45rem);
  }

  .home-poster-copy p {
    max-width: 34rem;
    font-size: 0.88rem;
    line-height: 1.55;
  }

  .home-poster-facts {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0;
    padding-top: 0.85rem;
    border-top: 1px solid rgba(255,255,255,0.2);
  }

  .home-poster-facts span {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.28rem;
    min-width: 0;
    padding: 0 0.55rem;
    border-top: 0;
  }

  .home-poster-facts span:first-child {
    padding-left: 0;
  }

  .home-poster-facts span:last-child {
    padding-right: 0;
  }

  .home-poster-facts span + span::before {
    display: block;
    top: 0.15rem;
    bottom: 0.15rem;
    left: 0;
    background: rgba(255,255,255,0.18);
  }

  .home-poster-facts small {
    font-size: 0.62rem;
  }

  .home-poster-facts strong {
    font-size: clamp(0.86rem, 3.6vw, 1.05rem);
    line-height: 1.1;
    overflow-wrap: normal;
  }
}

@media (max-width: 390px) {
  .home-poster-shell {
    padding-left: 0.85rem;
    padding-right: 0.85rem;
  }

  .home-poster-title h1 {
    font-size: clamp(2.55rem, 14vw, 3.45rem);
  }

  .home-poster-facts {
    grid-template-columns: 1fr;
    gap: 0.55rem;
  }

  .home-poster-facts span {
    grid-template-columns: 4.75rem minmax(0, 1fr);
    align-items: baseline;
    padding: 0.55rem 0 0;
    border-top: 1px solid rgba(255,255,255,0.16);
  }

  .home-poster-facts span:first-child {
    border-top: 0;
    padding-top: 0;
  }

  .home-poster-facts span + span::before {
    display: none;
  }
}
