/* ============================================================
   MedTerra Capital — Premium immersive redesign
   Holding de l'économie de l'expérience · système 4 mondes
   ============================================================ */

:root {
  --navy-deep:  #0b1524;
  --navy:       #14213d;
  --navy-mid:   #1c2c4a;
  --navy-soft:  #26385c;

  --gold:       #b8873e;
  --gold-soft:  #d8b877;
  --gold-tint:  #f3ead8;

  --coral:      #d97a5f;
  --coral-soft: #eaa78f;
  --coral-tint: #f8e7de;

  --burgundy:   #9c3f42;
  --burgundy-soft:#c07173;
  --burgundy-tint:#f2e0e0;

  --ivory:      #f8f5f0;
  --ivory-warm: #f1ebe1;
  --paper:      #ffffff;
  --ink:        #16202f;
  --ink-mid:    #52586a;
  --ink-soft:   #8a8fa0;
  --line:       rgba(20,33,61,0.10);

  --accent:      var(--navy);
  --accent-soft: var(--gold-soft);
  --accent-tint: var(--gold-tint);

  --serif: 'Cormorant Garamond', Georgia, serif;
  --sans:  'Inter', system-ui, sans-serif;

  --r-sm: 8px;
  --r-md: 16px;
  --r-lg: 26px;
  --shadow-sm: 0 2px 10px rgba(15,25,45,0.06);
  --shadow-md: 0 12px 34px rgba(15,25,45,0.10);
  --shadow-lg: 0 26px 60px rgba(15,25,45,0.18);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --nav-h: 76px;
  --container: 1200px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; scroll-padding-top: var(--nav-h); -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--sans);
  background: var(--ivory);
  color: var(--ink);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; }
a { color: inherit; }

::selection { background: var(--accent); color: #fff; }

::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--ivory); }
::-webkit-scrollbar-thumb { background: var(--navy-soft); border-radius: 6px; border: 3px solid var(--ivory); }
::-webkit-scrollbar-thumb:hover { background: var(--navy); }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 clamp(20px, 5vw, 64px); }

/* ============================================================
   BUTTONS + micro-interactions
   ============================================================ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 15px 32px; border: none; border-radius: 50px;
  font-family: var(--sans); font-size: 0.78rem; font-weight: 600;
  letter-spacing: 0.12em; text-transform: uppercase; text-decoration: none; cursor: pointer;
  transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease), background 0.5s var(--ease), color 0.5s var(--ease);
  transform: translate(var(--mx, 0), var(--my, 0));
}
.btn-primary { background: var(--accent); color: #fff; box-shadow: 0 10px 26px color-mix(in srgb, var(--accent) 32%, transparent); }
.btn-primary:hover { box-shadow: 0 18px 40px color-mix(in srgb, var(--accent) 46%, transparent); background: color-mix(in srgb, var(--accent) 88%, #000); }
.btn-ghost { background: transparent; color: rgba(255,255,255,0.85); border: 1px solid rgba(255,255,255,0.28); }
.btn-ghost:hover { border-color: var(--accent-soft); color: #fff; }
.btn-block { width: 100%; }
.magnetic { transition: transform 0.35s var(--ease), box-shadow 0.5s var(--ease), background 0.5s var(--ease), color 0.5s var(--ease), border-color 0.4s var(--ease); }

/* ============================================================
   NAVBAR
   ============================================================ */
.nav {
  position: fixed; top: 0; left: 0; right: 0; height: var(--nav-h);
  z-index: 500; display: flex; align-items: center;
  transition: background 0.4s var(--ease), box-shadow 0.4s var(--ease), height 0.4s var(--ease);
  --nav-tint: var(--gold-soft);
}
.nav[data-state="top"] { background: transparent; }
.nav[data-state="scrolled"] {
  background: rgba(11,21,36,0.86);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 8px 30px rgba(0,0,0,0.28);
  height: 66px;
}
.nav-inner {
  width: 100%; max-width: 1360px; margin: 0 auto; padding: 0 clamp(20px, 4vw, 48px);
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.nav-progress {
  position: absolute; left: 0; bottom: 0; height: 2px; width: 0%;
  background: linear-gradient(90deg, var(--nav-tint), color-mix(in srgb, var(--nav-tint) 40%, transparent));
  transition: background 0.6s var(--ease);
}

.nav-brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: #fff; }
.brand-symbol { width: 26px; height: auto; transition: transform 0.5s var(--ease); }
.nav-brand:hover .brand-symbol { transform: translateY(-2px) rotate(-3deg); }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-name { font-family: var(--serif); font-size: 1.3rem; font-weight: 600; letter-spacing: 0.02em; }
.brand-sub { font-size: 0.56rem; font-weight: 600; letter-spacing: 0.42em; text-transform: uppercase; color: var(--gold-soft); margin-top: 3px; }

.nav-links { display: flex; align-items: center; gap: clamp(14px, 2vw, 30px); }
.nav-link {
  position: relative; font-size: 0.8rem; font-weight: 500; letter-spacing: 0.03em;
  color: rgba(255,255,255,0.72); text-decoration: none; padding: 6px 0; white-space: nowrap;
  transition: color 0.3s var(--ease);
}
.nav-link::after {
  content: ''; position: absolute; left: 0; bottom: -2px; width: 0; height: 2px;
  background: var(--nav-accent, var(--gold-soft)); transition: width 0.35s var(--ease);
}
.nav-link[data-world="hospitality"] { --nav-accent: var(--gold-soft); }
.nav-link[data-world="landsea"]     { --nav-accent: var(--coral-soft); }
.nav-link[data-world="realestate"]  { --nav-accent: var(--burgundy-soft); }
.nav-link:hover { color: #fff; }
.nav-link:hover::after, .nav-link.is-active::after { width: 100%; }
.nav-link.is-active { color: #fff; }

.nav-cta {
  font-size: 0.74rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--navy-deep); background: var(--nav-tint); padding: 11px 22px; border-radius: 50px;
  text-decoration: none; white-space: nowrap;
  transition: transform 0.35s var(--ease), background 0.5s var(--ease);
  transform: translate(var(--mx,0), var(--my,0));
}
.nav-cta:hover { background: #fff; }

.nav-burger { display: none; flex-direction: column; gap: 5px; width: 44px; height: 44px; align-items: center; justify-content: center; background: none; border: none; cursor: pointer; }
.nav-burger span { width: 24px; height: 2px; background: #fff; border-radius: 2px; transition: transform 0.35s var(--ease), opacity 0.25s var(--ease); }
body.menu-open .nav-burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
body.menu-open .nav-burger span:nth-child(2) { opacity: 0; }
body.menu-open .nav-burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu {
  position: fixed; inset: 0; z-index: 480;
  background: linear-gradient(160deg, var(--navy-deep), var(--navy-mid));
  display: flex; flex-direction: column; justify-content: center; padding: 0 32px;
  opacity: 0; visibility: hidden; transform: translateY(-12px);
  transition: opacity 0.4s var(--ease), transform 0.4s var(--ease), visibility 0.4s;
}
body.menu-open { overflow: hidden; }
body.menu-open .mobile-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.mobile-menu-list { display: flex; flex-direction: column; gap: 6px; }
.mobile-menu-link {
  display: flex; align-items: baseline; gap: 16px;
  font-family: var(--serif); font-size: 2rem; font-weight: 500;
  color: rgba(255,255,255,0.9); text-decoration: none; padding: 12px 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  transition: color 0.3s var(--ease), padding-left 0.3s var(--ease);
}
.mobile-menu-link:hover, .mobile-menu-link:focus { color: var(--gold-soft); padding-left: 8px; }
.mm-index { font-family: var(--sans); font-size: 0.7rem; font-weight: 600; letter-spacing: 0.15em; color: var(--gold-soft); }
.mobile-menu-tagline { margin-top: 40px; font-family: var(--serif); font-style: italic; color: rgba(255,255,255,0.4); }

/* ============================================================
   SECTION SCAFFOLD
   ============================================================ */
.section { position: relative; padding: clamp(56px, 9vw, 128px) 0; overflow: hidden; }
.section-head { max-width: 760px; margin-bottom: clamp(44px, 5vw, 68px); }
.section-head--center { margin-left: auto; margin-right: auto; text-align: center; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  font-size: 0.7rem; font-weight: 600; letter-spacing: 0.28em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 20px;
}
.eyebrow::before { content: ''; width: 32px; height: 1px; background: currentColor; }
.section-head--center .eyebrow::after { content: ''; width: 32px; height: 1px; background: currentColor; }
.eyebrow-symbol { display: inline-flex; width: 16px; }
.eyebrow-symbol img { width: 100%; height: auto; }
.eyebrow:has(.eyebrow-symbol)::before { display: none; }

.section-title {
  font-family: var(--serif); font-size: clamp(2.1rem, 4.4vw, 3.7rem); font-weight: 600;
  line-height: 1.12; letter-spacing: -0.01em; color: var(--navy-deep);
}
.section-title em { font-style: italic; color: var(--accent); }

.section-lead { font-size: clamp(1rem, 1.3vw, 1.14rem); line-height: 1.8; color: var(--ink-mid); margin-top: 22px; max-width: 620px; }
.section-head--center .section-lead { margin-left: auto; margin-right: auto; }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative; min-height: 100vh; min-height: 100svh; display: flex; align-items: center;
  padding: calc(var(--nav-h) + 40px) 0 90px; background: var(--navy-deep); overflow: hidden;
}
.hero-bg {
  position: absolute; top: -20%; left: 0; right: 0; height: 140%;
  background:
    linear-gradient(100deg, rgba(11,21,36,0.92) 0%, rgba(11,21,36,0.70) 46%, rgba(11,21,36,0.48) 100%),
    linear-gradient(180deg, rgba(11,21,36,0.28), rgba(11,21,36,0.80)),
    url('hero.jpg') center 35%/cover no-repeat;
  will-change: transform;
}
.hero-veil {
  position: absolute; top: -20%; right: -10%; width: 60%; height: 120%;
  background: radial-gradient(ellipse, rgba(184,135,62,0.18), transparent 65%); pointer-events: none;
}
.hero-emblem {
  position: absolute; right: clamp(-40px, 2vw, 80px); top: 50%;
  width: clamp(240px, 34vw, 520px); height: auto; opacity: 0.10;
  transform: translateY(-50%); z-index: 1; pointer-events: none;
  filter: drop-shadow(0 20px 60px rgba(0,0,0,0.4));
  clip-path: inset(0 0 100% 0);
  animation: emblem-reveal 1.6s var(--ease) 0.3s forwards;
  will-change: transform, clip-path;
}
@keyframes emblem-reveal {
  to { clip-path: inset(0 0 0 0); opacity: 0.14; }
}
.hero-inner { position: relative; z-index: 3; width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 clamp(20px, 5vw, 64px); }

.hero-badge {
  display: inline-flex; align-items: center; gap: 10px;
  background: rgba(255,255,255,0.06); border: 1px solid rgba(184,135,62,0.35); border-radius: 40px;
  padding: 8px 18px; font-size: 0.68rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--gold-soft); margin-bottom: 28px;
}
.hero-badge-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--gold-soft); animation: pulse 2s ease-in-out infinite; }
@keyframes pulse { 0%,100% { opacity: 1; transform: scale(1); } 50% { opacity: 0.5; transform: scale(0.8); } }

.hero-title { font-family: var(--serif); font-size: clamp(2.7rem, 6.4vw, 5.4rem); font-weight: 600; line-height: 1.05; color: #fff; letter-spacing: -0.015em; max-width: 15ch; }
.hero-title em { font-style: italic; font-weight: 300; color: var(--gold-soft); }
.hero-lead { margin-top: 26px; max-width: 560px; font-size: clamp(1rem, 1.3vw, 1.14rem); line-height: 1.8; color: rgba(255,255,255,0.72); }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 38px; }
.hero .btn-primary { --accent: var(--gold); background: linear-gradient(135deg, var(--gold), var(--gold-soft)); color: var(--navy-deep); box-shadow: 0 12px 30px rgba(184,135,62,0.4); }
.hero .btn-primary:hover { background: linear-gradient(135deg, var(--gold-soft), #ecd39b); }

.hero-worlds {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px;
  margin-top: 64px; padding-top: 34px; border-top: 1px solid rgba(255,255,255,0.12);
}
.hero-world {
  display: flex; flex-direction: column; gap: 4px; padding: 6px 6px 6px 16px;
  border-left: 2px solid transparent; text-decoration: none;
  transition: border-color 0.35s var(--ease), background 0.4s var(--ease);
}
.hero-world[data-world="hospitality"] { --w: var(--gold-soft); }
.hero-world[data-world="landsea"]     { --w: var(--coral-soft); }
.hero-world[data-world="realestate"]  { --w: var(--burgundy-soft); }
.hero-world:hover { border-left-color: var(--w); background: rgba(255,255,255,0.04); }
.hero-world-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--w); margin-bottom: 6px; box-shadow: 0 0 0 0 var(--w); animation: dot-halo 3s ease-in-out infinite; }
@keyframes dot-halo { 0%,100% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--w) 60%, transparent); } 50% { box-shadow: 0 0 0 6px transparent; } }
.hero-world-name { font-size: 0.9rem; font-weight: 600; color: #fff; }
.hero-world-desc { font-size: 0.74rem; letter-spacing: 0.04em; color: rgba(255,255,255,0.5); }

.hero-scroll { position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%); z-index: 3; width: 26px; height: 44px; border: 1px solid rgba(255,255,255,0.3); border-radius: 20px; display: flex; justify-content: center; padding-top: 8px; }
.hero-scroll-line { width: 2px; height: 8px; background: var(--gold-soft); border-radius: 2px; animation: scroll-cue 1.8s ease-in-out infinite; }
@keyframes scroll-cue { 0% { opacity: 0; transform: translateY(-4px); } 50% { opacity: 1; } 100% { opacity: 0; transform: translateY(10px); } }

/* ============================================================
   LE GROUPE + org diagram
   ============================================================ */
.section-groupe { background: var(--ivory); --accent: var(--navy); }

.org {
  position: relative;
  background: linear-gradient(150deg, var(--navy-deep), var(--navy-mid));
  border-radius: var(--r-lg); padding: clamp(36px, 5vw, 64px) clamp(24px, 4vw, 56px);
  box-shadow: var(--shadow-lg); overflow: hidden;
}
.org-parent { display: flex; justify-content: center; }
.org-card {
  background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.12); border-radius: var(--r-md);
  padding: 22px 30px; display: flex; flex-direction: column; align-items: center; text-align: center; min-width: 220px;
  transition: transform 0.4s var(--ease), border-color 0.4s var(--ease), background 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.org-card--parent { border-color: rgba(184,135,62,0.4); padding: 26px 34px; }
.org-logo { width: 120px; height: auto; }
.org-symbol { width: 40px; height: auto; margin-bottom: 12px; transition: transform 0.5s var(--ease); }
.org-name { font-family: var(--serif); font-size: 1.5rem; font-weight: 600; color: #fff; line-height: 1; }
.org-tag { font-size: 0.6rem; font-weight: 600; letter-spacing: 0.22em; text-transform: uppercase; color: var(--gold-soft); margin-top: 8px; }

.org-connector { width: 2px; height: 44px; margin: 0 auto; background: rgba(255,255,255,0.12); position: relative; overflow: hidden; }
.org-connector span { position: absolute; inset: 0; background: linear-gradient(var(--gold-soft), transparent); transform: translateY(-100%); animation: flow 2.4s var(--ease) infinite; }
@keyframes flow { 0% { transform: translateY(-100%); } 60%,100% { transform: translateY(100%); } }

.org-children { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 3vw, 34px); position: relative; }
.org-children::before { content: ''; position: absolute; top: -22px; left: 16.6%; right: 16.6%; height: 2px; background: rgba(255,255,255,0.12); }
.org-branch { text-decoration: none; display: flex; flex-direction: column; align-items: center; }
.org-branch[data-world="hospitality"] { --w: var(--gold); --ws: var(--gold-soft); }
.org-branch[data-world="landsea"]     { --w: var(--coral); --ws: var(--coral-soft); }
.org-branch[data-world="realestate"]  { --w: var(--burgundy); --ws: var(--burgundy-soft); }
.org-branch .org-tag { color: var(--ws); }
.org-branch .org-card { width: 100%; border-top: 3px solid var(--w); }
.org-branch:hover .org-card { transform: translateY(-8px); border-color: var(--ws); background: rgba(255,255,255,0.07); box-shadow: 0 20px 44px rgba(0,0,0,0.3); }
.org-branch:hover .org-symbol { transform: translateY(-3px) scale(1.08); }
.org-pillars { list-style: none; display: flex; flex-direction: column; gap: 8px; width: 100%; margin-top: 16px; }
.org-pillars li {
  text-align: center; font-size: 0.72rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase;
  color: rgba(255,255,255,0.86);
  background: color-mix(in srgb, var(--w) 30%, transparent);
  border: 1px solid color-mix(in srgb, var(--ws) 40%, transparent);
  padding: 10px; border-radius: 40px; transition: background 0.35s var(--ease), transform 0.35s var(--ease);
}
.org-branch:hover .org-pillars li { background: color-mix(in srgb, var(--w) 55%, transparent); }
.org:hover .org-branch { opacity: 0.5; transition: opacity 0.35s var(--ease); }
.org:hover .org-branch:hover { opacity: 1; }

.loop { margin-top: clamp(44px, 6vw, 72px); }
.loop-intro { font-family: var(--serif); font-style: italic; font-size: 1.3rem; color: var(--navy); margin-bottom: 26px; }
.loop-steps { list-style: none; display: flex; align-items: stretch; gap: 12px; flex-wrap: wrap; }
.loop-step {
  flex: 1 1 220px; background: var(--paper); border: 1px solid var(--line); border-top: 3px solid var(--w);
  border-radius: var(--r-md); padding: 26px 24px; box-shadow: var(--shadow-sm);
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.loop-step[data-world="landsea"]     { --w: var(--coral); }
.loop-step[data-world="realestate"]  { --w: var(--burgundy); }
.loop-step[data-world="hospitality"] { --w: var(--gold); }
.loop-step:hover { box-shadow: var(--shadow-md); }
.loop-num { font-family: var(--serif); font-size: 1.6rem; font-weight: 600; color: var(--w); display: block; }
.loop-name { display: block; font-size: 1rem; font-weight: 600; color: var(--navy-deep); margin: 8px 0; }
.loop-name em { font-style: italic; font-weight: 400; color: var(--w); }
.loop-desc { display: block; font-size: 0.86rem; line-height: 1.6; color: var(--ink-mid); }
.loop-arrow { display: flex; align-items: center; font-size: 1.6rem; color: var(--ink-soft); }

/* ============================================================
   WORLDS
   ============================================================ */
.world { --accent: var(--gold); }
.world--hospitality { --accent: var(--gold); --accent-soft: var(--gold-soft); --accent-tint: var(--gold-tint); background: linear-gradient(180deg, var(--ivory), var(--gold-tint)); }
.world--landsea     { --accent: var(--coral); --accent-soft: var(--coral-soft); --accent-tint: var(--coral-tint); background: linear-gradient(180deg, var(--gold-tint), var(--coral-tint)); }
.world--realestate  { --accent: var(--burgundy); --accent-soft: var(--burgundy-soft); --accent-tint: var(--burgundy-tint); background: linear-gradient(180deg, var(--coral-tint), var(--burgundy-tint)); }

/* SHARED SIGNATURE — every univers: text left, video right.
   The video panel height EQUALS the left content height (align-items:stretch),
   and all left columns share the same min-height so the panels are the SAME
   gabarit across sections (video 1 is the reference). Each video fills the
   whole frame with object-fit:cover — intelligent crop per source, no bars,
   no blur, no empty space. object-position is tunable per figure via --focus. */
.world-head { position: relative; z-index: 1; max-width: 860px; margin-bottom: clamp(30px, 4vw, 50px); }

/* Row: pillars left, video right — the video height EQUALS the pillars
   block height (align-items:stretch), identical gabarit across sections. */
.world-row {
  position: relative; z-index: 1;
  display: grid;
  grid-template-columns: 1fr minmax(340px, 0.78fr);
  gap: clamp(36px, 5vw, 72px);
  align-items: stretch;
}

/* Alternating rhythm: section 2 puts the video on the left */
.world-row--reverse { grid-template-columns: minmax(340px, 0.78fr) 1fr; }
.world-row--reverse .world-figure { order: -1; }

.world-figure {
  position: relative; align-self: stretch; overflow: hidden;
  min-height: 300px;
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg);
  background: var(--navy-deep);
}
.world-figure .world-video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; object-position: var(--focus, center);
  display: block;
  transform: scale(1.12); will-change: transform;
}
.world-figure::after { content: ''; position: absolute; inset: 0; z-index: 2; background: linear-gradient(180deg, transparent 62%, rgba(11,21,36,0.58) 100%); pointer-events: none; }
.world-figure figcaption {
  position: absolute; left: clamp(18px, 2vw, 30px); bottom: clamp(16px, 2vw, 28px); z-index: 3;
  color: #fff; font-family: var(--serif); font-style: italic;
  font-size: clamp(1.15rem, 1.6vw, 1.6rem); line-height: 1.2;
  text-shadow: 0 2px 16px rgba(0,0,0,0.55); max-width: 82%;
}

.pillars { position: relative; z-index: 1; display: flex; flex-direction: column; justify-content: center; gap: 4px; }
.pillar {
  position: relative; padding: 20px 20px 20px 24px; border-left: 2px solid var(--line);
  transition: border-color 0.4s var(--ease), background 0.4s var(--ease), padding-left 0.4s var(--ease);
}
.pillar::before { content: ''; position: absolute; left: -2px; top: 0; bottom: 0; width: 2px; background: var(--accent); transform: scaleY(0); transform-origin: top; transition: transform 0.45s var(--ease); }
.pillar:hover { background: color-mix(in srgb, var(--accent) 6%, transparent); padding-left: 30px; }
.pillar:hover::before { transform: scaleY(1); }
.pillar-num { font-family: var(--serif); font-size: 0.95rem; font-weight: 600; color: var(--accent); letter-spacing: 0.1em; }
.pillar-title { font-family: var(--serif); font-size: 1.4rem; font-weight: 600; color: var(--navy-deep); margin: 2px 0 6px; }
.pillar-desc { font-size: 0.9rem; line-height: 1.6; color: var(--ink-mid); }

.more { margin-top: 32px; border-top: 1px solid var(--line); }
.more summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 2px; font-size: 0.78rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent); }
.more summary::-webkit-details-marker { display: none; }
.more summary::after { content: '+'; font-size: 1.3rem; font-weight: 400; line-height: 1; transition: transform 0.35s var(--ease); }
.more[open] summary::after { transform: rotate(45deg); }
.more-body { padding: 4px 2px 22px; }
.more-body p { font-size: 0.9rem; line-height: 1.75; color: var(--ink-mid); margin-bottom: 12px; }
.more-body strong { color: var(--navy-deep); }

/* ============================================================
   CONTACT
   ============================================================ */
.section-contact { background: linear-gradient(180deg, var(--burgundy-tint), var(--navy-deep) 42%); --accent: var(--gold); padding-bottom: 0; }
.section-contact .section-title { color: #fff; }
.section-contact .section-lead { color: rgba(255,255,255,0.72); }
.section-contact .eyebrow { color: var(--gold-soft); }

.contact-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: clamp(28px, 4vw, 56px); align-items: start; padding-bottom: clamp(60px, 8vw, 110px); }
.contact-form { background: var(--paper); border-radius: var(--r-lg); padding: clamp(28px, 4vw, 48px); box-shadow: var(--shadow-lg); }
.field { margin-bottom: 20px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field label { display: block; font-size: 0.7rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-mid); margin-bottom: 8px; }
.field label .opt { color: var(--ink-soft); font-weight: 400; text-transform: none; letter-spacing: 0; }
.field input, .field textarea { width: 100%; font-family: var(--sans); font-size: 0.95rem; color: var(--ink); background: var(--ivory); border: 1px solid var(--line); border-radius: var(--r-sm); padding: 13px 15px; outline: none; transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease), background 0.3s var(--ease); }
.field input:focus, .field textarea:focus { border-color: var(--gold); background: #fff; box-shadow: 0 0 0 3px rgba(184,135,62,0.16); }
.field input.invalid, .field textarea.invalid { border-color: #d1495b; box-shadow: 0 0 0 3px rgba(209,73,91,0.14); }
.field textarea { min-height: 130px; resize: vertical; }
.contact-form .btn-primary { --accent: var(--gold); background: linear-gradient(135deg, var(--gold), var(--gold-soft)); color: var(--navy-deep); }

.contact-info { padding-top: 8px; }
.contact-info-item { padding: 16px 0; border-bottom: 1px solid rgba(255,255,255,0.12); }
.contact-info-label { display: block; font-size: 0.64rem; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: var(--gold-soft); margin-bottom: 5px; }
.contact-info-value { display: block; font-size: 1.24rem; color: rgba(255,255,255,0.92); text-decoration: none; transition: color 0.3s var(--ease); }
a.contact-info-value:hover { color: var(--gold-soft); }
.contact-info-note { margin-top: 16px; font-size: 0.9rem; line-height: 1.7; color: rgba(255,255,255,0.6); }
.contact-social { display: flex; gap: 12px; margin-top: 24px; }
.social { width: 42px; height: 42px; border-radius: 50%; border: 1px solid rgba(255,255,255,0.22); display: flex; align-items: center; justify-content: center; color: rgba(255,255,255,0.6); transition: background 0.3s var(--ease), color 0.3s var(--ease), border-color 0.3s var(--ease); transform: translate(var(--mx,0), var(--my,0)); }
.social svg { width: 18px; height: 18px; }
.social:hover { background: var(--gold-soft); border-color: var(--gold-soft); color: var(--navy-deep); }

/* ============================================================
   FOOTER
   ============================================================ */
.footer { background: var(--navy-deep); color: rgba(255,255,255,0.6); padding: clamp(48px, 6vw, 72px) 0 28px; }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 32px; align-items: flex-start; padding-bottom: 40px; border-bottom: 1px solid rgba(255,255,255,0.1); }
.footer-brand { display: flex; flex-direction: column; }
.footer-symbol { width: 30px; height: auto; margin-bottom: 14px; }
.footer-brand .brand-name { font-family: var(--serif); font-size: 1.6rem; color: #fff; }
.brand-sub-inline { font-family: var(--sans); font-size: 0.6rem; letter-spacing: 0.4em; text-transform: uppercase; color: var(--gold-soft); vertical-align: middle; }
.footer-tagline { margin-top: 8px; font-size: 0.86rem; max-width: 32ch; }
.footer-links { display: flex; flex-direction: column; gap: 12px; }
.footer-links a { display: flex; align-items: center; gap: 9px; font-size: 0.85rem; text-decoration: none; color: rgba(255,255,255,0.6); transition: color 0.3s var(--ease); }
.footer-links a:hover { color: #fff; }
.footer-dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
.footer-copy { text-align: center; font-size: 0.74rem; color: rgba(255,255,255,0.35); margin-top: 24px; letter-spacing: 0.04em; }

/* ============================================================
   CHATBOT
   ============================================================ */
.chatbot { position: fixed; right: clamp(14px, 2.5vw, 28px); bottom: clamp(14px, 2.5vw, 28px); z-index: 600; width: min(360px, calc(100vw - 28px)); background: var(--paper); border-radius: 20px; box-shadow: var(--shadow-lg), 0 0 0 1px rgba(184,135,62,0.18); overflow: hidden; transition: height 0.45s var(--ease); height: 60px; }
.chatbot[data-open="true"] { height: min(560px, calc(100vh - 40px)); display: flex; flex-direction: column; }
.chatbot-head { flex-shrink: 0; display: flex; align-items: center; gap: 10px; height: 60px; padding: 0 14px; background: linear-gradient(135deg, var(--navy-deep), var(--navy-mid)); color: #fff; cursor: pointer; }
.chatbot-avatar { width: 34px; height: 34px; border-radius: 50%; background: var(--gold); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.chatbot-avatar svg { width: 18px; height: 18px; color: var(--navy-deep); }
.chatbot-title { font-size: 0.9rem; font-weight: 600; }
.chatbot-status { margin-left: auto; display: flex; align-items: center; gap: 6px; font-size: 0.7rem; color: rgba(255,255,255,0.7); }
.chatbot-status-dot { width: 8px; height: 8px; border-radius: 50%; background: #4ade80; animation: pulse 2s ease-in-out infinite; }
.chatbot-toggle { width: 30px; height: 30px; border-radius: 50%; border: none; background: var(--gold); color: var(--navy-deep); cursor: pointer; display: flex; align-items: center; justify-content: center; flex-shrink: 0; transition: transform 0.35s var(--ease); }
.chatbot-toggle svg { width: 16px; height: 16px; }
.chatbot[data-open="true"] .chatbot-toggle { transform: rotate(45deg); }
.chatbot-body { flex: 1; display: flex; flex-direction: column; min-height: 0; opacity: 0; visibility: hidden; transition: opacity 0.25s var(--ease); }
.chatbot[data-open="true"] .chatbot-body { opacity: 1; visibility: visible; }
.chatbot-messages { flex: 1; overflow-y: auto; padding: 16px 14px; display: flex; flex-direction: column; gap: 10px; background: var(--ivory); }
.chat-msg { display: flex; gap: 8px; max-width: 88%; animation: msg-in 0.35s var(--ease); }
@keyframes msg-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
.chat-msg.bot { align-self: flex-start; }
.chat-msg.user { align-self: flex-end; flex-direction: row-reverse; }
.chat-avatar { width: 26px; height: 26px; border-radius: 50%; flex-shrink: 0; display: flex; align-items: center; justify-content: center; align-self: flex-end; }
.chat-msg.bot .chat-avatar { background: var(--navy-mid); }
.chat-msg.user .chat-avatar { background: var(--gold); }
.chat-avatar svg { width: 14px; height: 14px; color: #fff; }
.chat-bubble { padding: 10px 13px; border-radius: 14px; font-size: 0.84rem; line-height: 1.5; white-space: pre-line; }
.chat-msg.bot .chat-bubble { background: #fff; color: var(--ink); border: 1px solid var(--line); border-bottom-left-radius: 4px; box-shadow: var(--shadow-sm); }
.chat-msg.user .chat-bubble { background: linear-gradient(135deg, var(--navy-deep), var(--navy-mid)); color: #fff; border-bottom-right-radius: 4px; }
.chat-typing { display: flex; gap: 4px; padding: 10px 14px; align-self: flex-start; }
.chat-typing .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--ink-soft); animation: typing 1.2s ease-in-out infinite; }
.chat-typing .dot:nth-child(2) { animation-delay: 0.2s; }
.chat-typing .dot:nth-child(3) { animation-delay: 0.4s; }
@keyframes typing { 0%,60%,100% { transform: translateY(0); } 30% { transform: translateY(-6px); } }
.chatbot-input { display: flex; gap: 8px; padding: 12px; background: #fff; border-top: 1px solid var(--line); flex-shrink: 0; }
.chatbot-input input { flex: 1; border: 1px solid var(--line); border-radius: 40px; padding: 10px 15px; font-family: var(--sans); font-size: 0.85rem; background: var(--ivory); outline: none; transition: border-color 0.3s var(--ease); }
.chatbot-input input:focus { border-color: var(--gold); background: #fff; }
.chatbot-input button { width: 40px; height: 40px; border-radius: 50%; border: none; background: linear-gradient(135deg, var(--navy-mid), var(--navy-deep)); color: #fff; cursor: pointer; display: flex; align-items: center; justify-content: center; flex-shrink: 0; transition: background 0.3s var(--ease), transform 0.2s var(--ease); }
.chatbot-input button svg { width: 16px; height: 16px; }
.chatbot-input button:hover { background: linear-gradient(135deg, var(--gold), var(--gold-soft)); }
.chatbot-input button:active { transform: scale(0.92); }

/* ============================================================
   SUCCESS OVERLAY
   ============================================================ */
.overlay { display: none; position: fixed; inset: 0; z-index: 700; background: rgba(11,21,36,0.72); backdrop-filter: blur(8px); align-items: center; justify-content: center; padding: 20px; animation: fade 0.3s ease; }
.overlay.show { display: flex; }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
.overlay-card { background: #fff; border-radius: var(--r-lg); padding: clamp(36px, 5vw, 54px); text-align: center; max-width: 420px; box-shadow: var(--shadow-lg); animation: pop 0.4s var(--ease); }
@keyframes pop { from { transform: scale(0.9) translateY(16px); opacity: 0; } to { transform: scale(1) translateY(0); opacity: 1; } }
.overlay-icon { width: 68px; height: 68px; border-radius: 50%; background: linear-gradient(135deg, var(--gold), var(--gold-soft)); display: flex; align-items: center; justify-content: center; margin: 0 auto 22px; }
.overlay-icon svg { width: 30px; height: 30px; color: var(--navy-deep); }
.overlay-title { font-family: var(--serif); font-size: 1.7rem; font-weight: 600; color: var(--navy-deep); margin-bottom: 10px; }
.overlay-msg { font-size: 0.92rem; line-height: 1.7; color: var(--ink-mid); margin-bottom: 26px; }
.overlay-card .btn-primary { --accent: var(--navy); }

/* ============================================================
   MOTION — reveals & parallax via native scroll timelines
   (reliable under virtualized scroll; buttery, GPU-composited)
   Fallback when unsupported: content simply visible.
   ============================================================ */
/* Failsafe: no static opacity:0 anywhere — if an animation never attaches,
   content stays visible. Hidden state lives only in each keyframe `from`,
   held before the range by animation-fill-mode: both. */

/* Tilt (JS-driven, transform property — independent of translate) */
.tilt { transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform 0.4s var(--ease); transform-style: preserve-3d; }

/* Keyframes (root level) */
@keyframes fade-up       { from { opacity: 0; translate: 0 30px; } to { opacity: 1; translate: 0 0; } }
@keyframes reveal-in     { from { opacity: 0; translate: 0 40px; } to { opacity: 1; translate: 0 0; } }
@keyframes media-in      { from { opacity: 0; translate: 0 30px; clip-path: inset(0 0 100% 0 round var(--r-lg)); } to { opacity: 1; translate: 0 0; clip-path: inset(0 0 0 0 round var(--r-lg)); } }
@keyframes media-parallax{ from { transform: translateY(-6%) scale(1.16); } to { transform: translateY(6%) scale(1.16); } }
@keyframes wm-parallax   { from { transform: translateY(14%); } to { transform: translateY(-18%); } }
@keyframes hero-par      { from { transform: translateY(0); } to { transform: translateY(16%); } }
@keyframes nav-prog      { from { transform: scaleX(0); } to { transform: scaleX(1); } }

/* Hero intro — time-based (plays once on load) */
.hero .reveal {
  animation-name: fade-up;
  animation-duration: 1s;
  animation-timing-function: cubic-bezier(0.22, 1, 0.36, 1);
  animation-fill-mode: both;
  animation-delay: var(--rd, 0.15s);
}

@supports (animation-timeline: view()) {
  /* Scroll-linked content reveal (everything below the hero) */
  .section .reveal {
    animation-name: reveal-in;
    animation-timing-function: linear;
    animation-fill-mode: both;
    animation-timeline: view();
    animation-range: entry 6% entry 46%;
  }

  /* Media reveal — a rising clip wipe + lift */
  .reveal-media {
    animation-name: media-in;
    animation-timing-function: linear;
    animation-fill-mode: both;
    animation-timeline: view();
    animation-range: entry 2% entry 50%;
  }

  /* Subtle scroll parallax on the video (cover leaves overscan room) */
  .world-figure .world-video {
    animation-name: media-parallax;
    animation-timing-function: linear;
    animation-fill-mode: both;
    animation-timeline: view();
    animation-range: entry 0% exit 100%;
  }

  /* Hero background parallax + scroll progress bar (document scroll) */
  .hero-bg {
    animation-name: hero-par;
    animation-timing-function: linear;
    animation-fill-mode: both;
    animation-timeline: scroll(root);
    animation-range: 0 100vh;
  }
  .nav-progress {
    width: 100%;
    transform-origin: left center;
    animation-name: nav-prog;
    animation-timing-function: linear;
    animation-fill-mode: both;
    animation-timeline: scroll(root);
  }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .nav-links { gap: 16px; }
  .nav-link { font-size: 0.74rem; }
  .hero-emblem { opacity: 0.08; }
}

@media (max-width: 820px) {
  .nav-links { display: none; }
  .nav-burger { display: flex; }
  .hero { padding: calc(var(--nav-h) + 18px) 0 60px; }
  .hero-badge { margin-bottom: 20px; font-size: 0.62rem; padding: 7px 14px; }
  .hero-lead { margin-top: 20px; }
  .hero-cta { margin-top: 28px; }
  .hero-cta .btn { flex: 1 1 auto; }
  .hero-worlds { grid-template-columns: 1fr; gap: 4px; margin-top: 40px; padding-top: 24px; }
  .hero-world { flex-direction: row; align-items: center; gap: 12px; padding: 13px 14px; border-left: none; border-bottom: 1px solid rgba(255,255,255,0.08); }
  .hero-world-dot { margin-bottom: 0; }
  .hero-world-desc { margin-left: auto; text-align: right; }
  .hero-scroll { display: none; }
  .hero-emblem { width: 300px; right: -70px; opacity: 0.09; }
  .org-children { grid-template-columns: 1fr; gap: 30px; }
  .org-children::before { display: none; }
  .org-connector { height: 30px; }
  .loop-steps { flex-direction: column; }
  .loop-arrow { transform: rotate(90deg); align-self: center; }
  /* Stack: pillars on top, video below — same framed panel, cover-filled */
  .world-row, .world-row--reverse { grid-template-columns: 1fr; gap: 26px; }
  .world-row--reverse .world-figure { order: 0; }
  .world-figure { aspect-ratio: 4 / 5; min-height: 0; width: min(100%, 460px); margin-inline: auto; }
  .contact-grid { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; gap: 0; }
  .footer-inner { flex-direction: column; gap: 26px; }

  /* keep the immersive chatbot out of the way of the full-screen menu */
  body.menu-open .chatbot { opacity: 0; visibility: hidden; pointer-events: none; }
}

/* Chatbot as a compact tactile pill on phones; full sheet when open */
@media (max-width: 600px) {
  .chatbot { width: auto; max-width: calc(100vw - 24px); right: 12px; bottom: 12px; }
  .chatbot[data-open="true"] { width: calc(100vw - 24px); }
  .chatbot:not([data-open="true"]) .chatbot-status { display: none; }
  .chatbot-head { padding: 0 12px; gap: 9px; }
}

@media (max-width: 480px) {
  .mobile-menu-link { font-size: 1.65rem; }
  .hero-title { font-size: 2.35rem; }
  .section-title { font-size: 2rem; }
  .loop-intro { font-size: 1.15rem; }
  .container { padding: 0 20px; }
  .contact-form { padding: 24px 20px; }
}

/* ============================================================
   REDUCED MOTION
   ============================================================ */
@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; }
  .reveal, .reveal-media { opacity: 1; translate: none; clip-path: none; }
  .hero-emblem { clip-path: none; opacity: 0.12; }
  .tilt { transform: none; }
}
