/* ==========================================================================
   EZ MODEL — Premium Cinematic Design System
   Deep charcoal · Warm cream · Gold · Teal · Glassmorphism
   ========================================================================== */

:root {
  /* Palette */
  --charcoal-950: #0c0e12;
  --charcoal-900: #12151b;
  --charcoal-800: #191d25;
  --charcoal-700: #232936;
  --cream: #f6f0e3;
  --cream-soft: #e9e1cf;
  --cream-dim: rgba(246, 240, 227, 0.68);
  --cream-faint: rgba(246, 240, 227, 0.42);
  --gold: #cfa85e;
  --gold-bright: #e6c684;
  --gold-deep: #9a7736;
  --teal: #3fa396;
  --teal-bright: #62c7b8;
  --teal-deep: #226b62;
  --museum-white: #fbf9f3;
  --sage: #8ca58c;
  --sage-bright: #a3bca7;
  --sunrise: #e0975c;
  --sunrise-bright: #f0b080;
  --copper: #b0793f;
  --copper-bright: #c89257;
  --lavender: #a79bc8;
  --lavender-bright: #c1b7dc;
  --sky: #8fb8cd;
  --sky-bright: #add1e2;

  /* Surfaces */
  --glass: rgba(20, 24, 32, 0.55);
  --glass-border: rgba(246, 240, 227, 0.1);
  --card: rgba(246, 240, 227, 0.045);
  --card-border: rgba(246, 240, 227, 0.09);

  /* Type */
  --font-display: "Fraunces", "Georgia", serif;
  --font-body: "Outfit", "Segoe UI", sans-serif;

  /* Rhythm */
  --section-pad: clamp(5rem, 11vw, 9.5rem);
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-sm: 12px;

  --shadow-soft: 0 24px 60px -24px rgba(0, 0, 0, 0.55);
  --shadow-deep: 0 40px 90px -30px rgba(0, 0, 0, 0.7);

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ---------- Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--charcoal-950);
  color: var(--cream);
  font-family: var(--font-body);
  font-size: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
ul { list-style: none; }

::selection { background: var(--gold); color: var(--charcoal-950); }

/* Accessible focus */
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible {
  outline: 2px solid var(--gold-bright);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 200;
  background: var(--gold); color: var(--charcoal-950);
  padding: 0.75rem 1.25rem; font-weight: 600; border-radius: 0 0 12px 0;
}
.skip-link:focus { left: 0; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

/* ---------- Typography ---------- */
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 500; line-height: 1.12; letter-spacing: -0.015em; }

.display-xl { font-size: clamp(2.6rem, 6.5vw, 5.2rem); }
.display-lg { font-size: clamp(2.1rem, 4.6vw, 3.6rem); }
.display-md { font-size: clamp(1.6rem, 3vw, 2.3rem); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 0.65rem;
  font-size: 0.78rem; font-weight: 600; letter-spacing: 0.28em;
  text-transform: uppercase; color: var(--gold);
  margin-bottom: 1.35rem;
}
.eyebrow::before {
  content: ""; width: 34px; height: 1px;
  background: linear-gradient(90deg, var(--gold), transparent);
}
.eyebrow--teal { color: var(--teal-bright); }
.eyebrow--teal::before { background: linear-gradient(90deg, var(--teal), transparent); }

.lede { color: var(--cream-dim); font-size: clamp(1.05rem, 1rem + 0.4vw, 1.3rem); font-weight: 300; max-width: 58ch; }

.text-gold { color: var(--gold-bright); }
.text-teal { color: var(--teal-bright); }
.italic-accent { font-style: italic; color: var(--gold-bright); }

/* ---------- Layout ---------- */
.container { width: min(1200px, 100% - 2 * var(--gutter)); margin-inline: auto; }
.container--wide { width: min(1400px, 100% - 2 * var(--gutter)); margin-inline: auto; }
.container--narrow { width: min(820px, 100% - 2 * var(--gutter)); margin-inline: auto; }

.section { padding-block: var(--section-pad); position: relative; }
.section-head { max-width: 62ch; margin-bottom: clamp(2.5rem, 6vw, 4.5rem); }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head--center .eyebrow { justify-content: center; }
.section-head--center .lede { margin-inline: auto; }
.section-head h2 { margin-bottom: 1.1rem; }

.split {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: clamp(2.5rem, 6vw, 5.5rem); align-items: center;
}
.split--reverse > .split__media { order: 2; }
@media (max-width: 900px) {
  .split { grid-template-columns: 1fr; }
  .split--reverse > .split__media { order: 0; }
}

/* Ambient section glows */
.glow { position: relative; }
.glow::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 0;
  background:
    radial-gradient(600px 400px at 85% 10%, rgba(207, 168, 94, 0.07), transparent 70%),
    radial-gradient(700px 500px at 10% 90%, rgba(63, 163, 150, 0.06), transparent 70%);
}
.glow > * { position: relative; z-index: 1; }

.glow--garden::before {
  background:
    radial-gradient(ellipse 55% 45% at 40% 60%, rgba(140, 165, 140, 0.14), transparent 70%),
    radial-gradient(ellipse 45% 35% at 70% 80%, rgba(63, 163, 150, 0.08), transparent 70%);
}
.glow--museum::before {
  background:
    radial-gradient(ellipse 60% 50% at 70% 30%, rgba(176, 121, 63, 0.10), transparent 70%),
    radial-gradient(ellipse 50% 40% at 25% 70%, rgba(207, 168, 94, 0.06), transparent 70%);
}
.glow--dusk::before {
  background:
    radial-gradient(ellipse 50% 45% at 60% 40%, rgba(167, 155, 200, 0.12), transparent 70%),
    radial-gradient(ellipse 45% 35% at 30% 75%, rgba(143, 184, 205, 0.08), transparent 70%);
}
.glow--sunrise::before {
  background:
    radial-gradient(ellipse 80% 40% at 50% 100%, rgba(224, 151, 92, 0.12), transparent 70%),
    radial-gradient(ellipse 50% 35% at 50% 20%, rgba(207, 168, 94, 0.05), transparent 70%);
}
.glow--conversation::before {
  background:
    radial-gradient(ellipse 55% 45% at 75% 25%, rgba(143, 184, 205, 0.09), transparent 70%),
    radial-gradient(ellipse 50% 40% at 15% 80%, rgba(63, 163, 150, 0.06), transparent 70%);
}
.glow--architecture::before {
  background:
    radial-gradient(ellipse 45% 55% at 50% 30%, rgba(251, 249, 243, 0.06), transparent 70%),
    radial-gradient(ellipse 60% 40% at 80% 70%, rgba(176, 121, 63, 0.07), transparent 70%);
}

/* ---------- Icons ---------- */
.ez-icon {
  width: 1.75rem;
  height: 1.75rem;
  color: currentColor;
  flex-shrink: 0;
}
.ez-icon--sm { width: 1rem; height: 1rem; }
.ez-icon--lg { width: 2.25rem; height: 2.25rem; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 0.6rem;
  padding: 0.95rem 2.1rem; border-radius: 999px;
  font-weight: 600; font-size: 0.98rem; letter-spacing: 0.02em;
  border: 1px solid transparent;
  transition: transform 0.35s var(--ease-out), box-shadow 0.35s var(--ease-out), background 0.35s, color 0.35s, border-color 0.35s;
  will-change: transform;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn--gold {
  background: linear-gradient(135deg, var(--gold-bright), var(--gold-deep));
  color: var(--charcoal-950);
  box-shadow: 0 12px 34px -12px rgba(207, 168, 94, 0.55);
}
.btn--gold:hover { box-shadow: 0 18px 44px -12px rgba(207, 168, 94, 0.7); }

.btn--ghost {
  background: rgba(246, 240, 227, 0.05);
  color: var(--cream);
  border-color: rgba(246, 240, 227, 0.22);
  backdrop-filter: blur(8px);
}
.btn--ghost:hover { border-color: var(--gold); color: var(--gold-bright); }

.btn--teal {
  background: linear-gradient(135deg, var(--teal-bright), var(--teal-deep));
  color: var(--charcoal-950);
  box-shadow: 0 12px 34px -12px rgba(63, 163, 150, 0.5);
}

.btn .arrow { transition: transform 0.3s var(--ease-out); }
.btn:hover .arrow { transform: translateX(4px); }

.text-link {
  display: inline-flex; align-items: center; gap: 0.5rem;
  color: var(--gold-bright); font-weight: 600; font-size: 0.95rem;
  border-bottom: 1px solid rgba(207, 168, 94, 0.35);
  padding-bottom: 2px; transition: border-color 0.3s, gap 0.3s;
}
.text-link:hover { border-color: var(--gold-bright); gap: 0.8rem; }

/* ---------- Navigation ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  transition: background 0.45s, box-shadow 0.45s, border-color 0.45s;
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled {
  background: rgba(12, 14, 18, 0.72);
  backdrop-filter: blur(18px) saturate(1.4);
  -webkit-backdrop-filter: blur(18px) saturate(1.4);
  border-bottom-color: var(--glass-border);
  box-shadow: 0 12px 40px -18px rgba(0, 0, 0, 0.6);
}
.nav__inner {
  width: min(1400px, 100% - 2 * var(--gutter)); margin-inline: auto;
  display: flex; align-items: center; justify-content: space-between;
  min-height: 76px; gap: 1.5rem;
}
.nav__logo { font-family: var(--font-display); font-size: 1.45rem; letter-spacing: 0.01em; display: inline-flex; align-items: baseline; gap: 0.45rem; }
.nav__logo strong { color: var(--gold-bright); font-weight: 600; }
.nav__logo span { font-size: 0.72rem; font-family: var(--font-body); letter-spacing: 0.3em; text-transform: uppercase; color: var(--cream-faint); }

.nav__links { display: flex; align-items: center; gap: 0.25rem; }
.nav__links a {
  padding: 0.5rem 0.85rem; font-size: 0.92rem; color: var(--cream-dim);
  border-radius: 999px; transition: color 0.25s, background 0.25s; white-space: nowrap;
}
.nav__links a:hover { color: var(--cream); background: rgba(246, 240, 227, 0.06); }
.nav__links a.is-active { color: var(--gold-bright); }

.nav__more { position: relative; }
.nav__more-btn {
  display: inline-flex; align-items: center; gap: 0.4rem;
  padding: 0.5rem 0.85rem; font-size: 0.92rem; color: var(--cream-dim);
  background: none; border: none; border-radius: 999px; transition: color 0.25s, background 0.25s;
}
.nav__more-btn:hover, .nav__more-btn[aria-expanded="true"] { color: var(--cream); background: rgba(246, 240, 227, 0.06); }
.nav__dropdown {
  position: absolute; top: calc(100% + 12px); right: 0; min-width: 240px;
  background: rgba(18, 21, 27, 0.92); backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border); border-radius: var(--radius-md);
  padding: 0.6rem; box-shadow: var(--shadow-deep);
  opacity: 0; visibility: hidden; transform: translateY(-8px);
  transition: opacity 0.3s var(--ease-out), transform 0.3s var(--ease-out), visibility 0.3s;
}
.nav__dropdown.is-open { opacity: 1; visibility: visible; transform: translateY(0); }
.nav__dropdown a { display: block; padding: 0.65rem 0.9rem; border-radius: 10px; font-size: 0.92rem; color: var(--cream-dim); }
.nav__dropdown a:hover { background: rgba(246, 240, 227, 0.07); color: var(--gold-bright); }

.nav__cta { display: inline-flex; }
.nav__cta .btn { padding: 0.6rem 1.4rem; font-size: 0.88rem; }

.nav__burger {
  display: none; flex-direction: column; justify-content: center; gap: 5px;
  width: 44px; height: 44px; background: rgba(246, 240, 227, 0.06);
  border: 1px solid var(--glass-border); border-radius: 12px; align-items: center;
}
.nav__burger span { width: 20px; height: 2px; background: var(--cream); border-radius: 2px; transition: transform 0.35s var(--ease-out), opacity 0.25s; }
.nav__burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile drawer */
.nav__drawer {
  display: none; position: fixed; inset: 76px 0 0 0; z-index: 99;
  background: rgba(12, 14, 18, 0.96); backdrop-filter: blur(24px);
  padding: 2rem var(--gutter) 4rem; overflow-y: auto;
  opacity: 0; visibility: hidden; transition: opacity 0.35s var(--ease-out), visibility 0.35s;
}
.nav__drawer.is-open { opacity: 1; visibility: visible; }
.nav__drawer a {
  display: block; padding: 0.9rem 0.5rem; font-size: 1.2rem;
  font-family: var(--font-display); color: var(--cream-dim);
  border-bottom: 1px solid rgba(246, 240, 227, 0.07);
  transition: color 0.25s, padding-left 0.25s;
}
.nav__drawer a:hover, .nav__drawer a.is-active { color: var(--gold-bright); padding-left: 1rem; }
.nav__drawer-label {
  margin: 1.8rem 0 0.5rem; font-size: 0.72rem; font-weight: 600;
  letter-spacing: 0.28em; text-transform: uppercase; color: var(--gold);
}

@media (max-width: 1180px) {
  .nav__links, .nav__cta { display: none; }
  .nav__burger { display: flex; }
  .nav__drawer { display: block; }
}

/* ---------- Media frames (video + fallback system) ---------- */
.media-frame {
  position: relative; overflow: hidden; border-radius: var(--radius-lg);
  background: var(--charcoal-800);
  box-shadow: var(--shadow-deep);
  aspect-ratio: 16 / 10;
  isolation: isolate;
  border: 1px solid var(--card-border);
}
.media-frame--tall { aspect-ratio: 4 / 5; }
.media-frame--wide { aspect-ratio: 21 / 9; }
.media-frame--square { aspect-ratio: 1 / 1; }

/* object-fit cover, centered — faces stay natural, no stretching */
.media-frame video, .media-frame img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: center;
  opacity: 0; transition: opacity 1.1s var(--ease-out);
}
.media-frame video.is-ready, .media-frame img.is-ready { opacity: 1; }

/* Soft gradient overlay keeps any caption text readable */
.media-frame::after {
  content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background: linear-gradient(to top, rgba(12, 14, 18, 0.55) 0%, transparent 40%),
              linear-gradient(135deg, rgba(12, 14, 18, 0.18), transparent 55%);
}

.media-frame__caption {
  position: absolute; left: 1.4rem; bottom: 1.2rem; z-index: 3;
  font-size: 0.8rem; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--cream-dim);
  display: inline-flex; align-items: center; gap: 0.6rem;
}
.media-frame__caption::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 12px var(--gold); }

/* Animated gradient placeholder — shown while loading & when a video is missing */
.media-placeholder {
  position: absolute; inset: 0; z-index: 1;
  transition: opacity 1.1s var(--ease-out), visibility 1.1s;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1rem;
  text-align: center; padding: 2rem;
  background: linear-gradient(120deg, #1a1f2b, #232936 25%, #2a2418 50%, #1d2b29 75%, #1a1f2b);
  background-size: 300% 300%;
  animation: placeholderDrift 14s ease-in-out infinite;
}
.media-placeholder::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(420px 300px at 30% 30%, rgba(207, 168, 94, 0.14), transparent 70%),
    radial-gradient(420px 300px at 70% 70%, rgba(63, 163, 150, 0.13), transparent 70%);
  animation: placeholderPulse 7s ease-in-out infinite alternate;
}
.media-placeholder__icon {
  position: relative; width: 58px; height: 58px; border-radius: 50%;
  border: 1px solid rgba(207, 168, 94, 0.5);
  display: grid; place-items: center; color: var(--gold-bright); font-size: 1.2rem;
  background: rgba(12, 14, 18, 0.4); backdrop-filter: blur(6px);
}
.media-placeholder__label {
  position: relative; font-size: 0.78rem; letter-spacing: 0.26em; text-transform: uppercase;
  color: var(--cream-dim); max-width: 30ch; line-height: 1.8;
}
@keyframes placeholderDrift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}
/* Once the real media is playing, the placeholder bows out */
[data-video].has-media .media-placeholder,
[data-youtube].has-media .media-placeholder { opacity: 0; visibility: hidden; }

/* YouTube thumbnail cards inside media frames — click opens the video on YouTube */
.yt-thumb { position: absolute; inset: 0; display: block; z-index: 2; }
.yt-thumb img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: center;
  opacity: 0; transition: opacity 1.1s var(--ease-out), transform 0.6s var(--ease-out);
}
.yt-thumb img.is-ready { opacity: 1; }
.yt-thumb:hover img { transform: scale(1.03); }
.yt-thumb::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(to top, rgba(12, 14, 18, 0.5), transparent 45%);
}
.yt-thumb__play {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 68px; height: 68px; border-radius: 50%;
  display: grid; place-items: center; padding-left: 5px;
  background: rgba(12, 14, 18, 0.62); color: var(--gold-bright); font-size: 1.4rem;
  border: 1px solid rgba(207, 168, 94, 0.55);
  backdrop-filter: blur(8px); z-index: 3;
  transition: transform 0.35s var(--ease-out), background 0.3s, box-shadow 0.3s;
}
.yt-thumb:hover .yt-thumb__play {
  transform: translate(-50%, -50%) scale(1.1);
  background: rgba(207, 168, 94, 0.28);
  box-shadow: 0 0 40px rgba(207, 168, 94, 0.35);
}
.yt-thumb__badge {
  position: absolute; right: 1rem; bottom: 0.9rem; z-index: 3;
  font-size: 0.7rem; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--cream-dim); background: rgba(12, 14, 18, 0.6);
  padding: 0.4rem 0.8rem; border-radius: 999px;
  border: 1px solid rgba(246, 240, 227, 0.12); backdrop-filter: blur(8px);
}
/* Video frames: 16:9 to match YouTube, gradient overlay handled by .yt-thumb */
.media-frame--embed { aspect-ratio: 16 / 9; }
.media-frame--embed::after { display: none; }

@keyframes placeholderPulse {
  from { opacity: 0.65; transform: scale(1); }
  to { opacity: 1; transform: scale(1.06); }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 100svh;
  display: flex; align-items: center;
  overflow: hidden; isolation: isolate;
}
.hero__media { position: absolute; inset: 0; z-index: -2; background: var(--charcoal-900); }
.hero__media video {
  width: 100%; height: 100%; object-fit: cover; object-position: center;
  opacity: 0; transition: opacity 1.6s var(--ease-out);
}
.hero__media video.is-ready { opacity: 1; }
/* Cinematic gradient scrim — keeps hero copy readable over footage */
.hero__scrim {
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(to right, rgba(12, 14, 18, 0.82) 0%, rgba(12, 14, 18, 0.45) 48%, rgba(12, 14, 18, 0.18) 100%),
    linear-gradient(to top, rgba(12, 14, 18, 0.9) 0%, transparent 35%),
    linear-gradient(to bottom, rgba(12, 14, 18, 0.55) 0%, transparent 22%);
}
.hero__content { padding-block: clamp(8rem, 18vh, 12rem) clamp(6rem, 14vh, 9rem); max-width: 720px; }
.hero__content h1 { margin-bottom: 1.5rem; }
.hero__content .lede { margin-bottom: 2.75rem; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 1rem; }

.hero__scroll-hint {
  position: absolute; bottom: 2.2rem; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 0.7rem;
  font-size: 0.72rem; letter-spacing: 0.3em; text-transform: uppercase; color: var(--cream-faint);
}
.hero__scroll-hint::after {
  content: ""; width: 1px; height: 44px;
  background: linear-gradient(to bottom, var(--gold), transparent);
  animation: scrollHint 2.4s var(--ease-out) infinite;
}
@keyframes scrollHint {
  0% { transform: scaleY(0); transform-origin: top; }
  45% { transform: scaleY(1); transform-origin: top; }
  55% { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

/* Inner-page hero (shorter) */
.page-hero { min-height: 64svh; }
.page-hero .hero__content { padding-block: clamp(9rem, 20vh, 12rem) clamp(4rem, 9vh, 6rem); }

/* Gradient-only hero for pages without footage yet */
.hero--gradient {
  background: linear-gradient(120deg, #12151b, #1c2230 30%, #241f14 60%, #142523 85%, #12151b);
  background-size: 260% 260%;
  animation: placeholderDrift 18s ease-in-out infinite;
}
.hero--gradient::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(700px 460px at 78% 22%, rgba(207, 168, 94, 0.12), transparent 70%),
    radial-gradient(600px 420px at 15% 85%, rgba(63, 163, 150, 0.11), transparent 70%);
}

/* ---------- Cards ---------- */
.card-grid { display: grid; gap: 1.4rem; grid-template-columns: repeat(auto-fit, minmax(min(270px, 100%), 1fr)); }

.card {
  position: relative; padding: 2rem 1.8rem 2.1rem;
  background: var(--card); border: 1px solid var(--card-border);
  border-radius: var(--radius-md); overflow: hidden;
  backdrop-filter: blur(10px);
  transition: transform 0.5s var(--ease-out), border-color 0.4s, background 0.4s;
}
.card::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(207, 168, 94, 0.55), transparent);
  opacity: 0; transition: opacity 0.4s;
}
.card:hover { transform: translateY(-6px); border-color: rgba(207, 168, 94, 0.28); background: rgba(246, 240, 227, 0.065); }
.card:hover::before { opacity: 1; }

.card__icon {
  width: 52px; height: 52px; border-radius: 14px; margin-bottom: 1.4rem;
  display: grid; place-items: center;
  background: linear-gradient(135deg, rgba(207, 168, 94, 0.16), rgba(63, 163, 150, 0.12));
  border: 1px solid rgba(207, 168, 94, 0.25); color: var(--gold-bright);
}
.card__icon .ez-icon { width: 1.75rem; height: 1.75rem; transition: transform 0.3s var(--ease-out), color 0.3s; }
.card:hover .card__icon .ez-icon { transform: scale(1.08); }
.card__icon--teal { border-color: rgba(63, 163, 150, 0.35); color: var(--teal-bright); }
.card__icon--sage { border-color: rgba(140, 165, 140, 0.35); color: var(--sage-bright); }
.card__icon--copper { border-color: rgba(176, 121, 63, 0.35); color: var(--copper-bright); }
.card h3 { font-size: 1.28rem; margin-bottom: 0.7rem; }
.card p { color: var(--cream-dim); font-size: 0.96rem; }

/* Feature card with media */
.feature-card {
  display: flex; flex-direction: column; overflow: hidden;
  background: var(--card); border: 1px solid var(--card-border); border-radius: var(--radius-md);
  transition: transform 0.5s var(--ease-out), border-color 0.4s;
}
.feature-card:hover { transform: translateY(-6px); border-color: rgba(207, 168, 94, 0.3); }
.feature-card .media-frame { border-radius: 0; border: none; box-shadow: none; aspect-ratio: 16 / 9; }
.feature-card__body { padding: 1.6rem 1.6rem 1.8rem; }
.feature-card__body h3 { font-size: 1.25rem; margin-bottom: 0.6rem; }
.feature-card__body p { color: var(--cream-dim); font-size: 0.95rem; margin-bottom: 1.1rem; }

.form-status { margin-top: 1rem; font-size: 0.92rem; color: var(--cream-dim); }
.form-status--ok { color: var(--teal-bright); }
.form-status--err { color: var(--sunrise); }

/* ---------- Stats / chips ---------- */
.chip-row { display: flex; flex-wrap: wrap; gap: 0.7rem; margin-top: 2rem; }
.chip {
  padding: 0.55rem 1.15rem; border-radius: 999px; font-size: 0.85rem;
  background: rgba(246, 240, 227, 0.05); border: 1px solid var(--card-border);
  color: var(--cream-dim); backdrop-filter: blur(6px);
}
.chip--icon { display: inline-flex; align-items: center; gap: 0.4rem; }
.chip--icon .ez-icon { width: 0.95rem; height: 0.95rem; color: var(--gold-bright); flex-shrink: 0; }
.chip strong { color: var(--gold-bright); font-weight: 600; }

/* ---------- Quiz ---------- */
.quiz-shell {
  background: var(--glass); border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg); padding: clamp(1.8rem, 4vw, 3.2rem);
  backdrop-filter: blur(16px); box-shadow: var(--shadow-deep);
  max-width: 720px; margin-inline: auto;
}
.quiz-progress { display: flex; align-items: center; gap: 1rem; margin-bottom: 2rem; }
.quiz-progress__bar { flex: 1; height: 5px; border-radius: 999px; background: rgba(246, 240, 227, 0.1); overflow: hidden; }
.quiz-progress__fill { height: 100%; width: 0; border-radius: 999px; background: linear-gradient(90deg, var(--teal), var(--gold)); transition: width 0.6s var(--ease-out); }
.quiz-progress__count { font-size: 0.8rem; letter-spacing: 0.15em; color: var(--cream-faint); white-space: nowrap; }

.quiz-question { font-family: var(--font-display); font-size: clamp(1.3rem, 2.4vw, 1.7rem); margin-bottom: 1.8rem; min-height: 3.2em; }
.quiz-options { display: grid; gap: 0.8rem; }
.quiz-option {
  text-align: left; padding: 1.05rem 1.3rem; border-radius: var(--radius-sm);
  background: rgba(246, 240, 227, 0.045); border: 1px solid var(--card-border);
  color: var(--cream); font-size: 1rem;
  transition: border-color 0.3s, background 0.3s, transform 0.3s var(--ease-out);
}
.quiz-option:hover:not(:disabled) { border-color: var(--gold); background: rgba(207, 168, 94, 0.09); transform: translateX(4px); }
.quiz-option.is-correct { border-color: var(--teal-bright); background: rgba(63, 163, 150, 0.16); }
.quiz-option.is-wrong { border-color: var(--sunrise); background: rgba(224, 151, 92, 0.13); }
.quiz-option:disabled { cursor: default; }

.quiz-feedback { margin-top: 1.4rem; min-height: 1.6em; font-size: 0.95rem; color: var(--cream-dim); }
.quiz-footer { margin-top: 1.6rem; display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; }
.quiz-result { text-align: center; padding-block: 1.5rem; }
.quiz-result h3 { font-size: clamp(1.6rem, 3vw, 2.2rem); margin-bottom: 0.8rem; }
.quiz-result p { color: var(--cream-dim); margin-bottom: 1.8rem; }

/* ---------- Journey rail (homepage numbered flow) ---------- */
.journey-rail { display: flex; gap: 0.9rem; flex-wrap: wrap; margin-top: 2.2rem; }
.journey-rail span {
  font-size: 0.78rem; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--cream-faint); display: inline-flex; align-items: center; gap: 0.55rem;
}
.journey-rail span::after { content: "→"; color: var(--gold); }
.journey-rail span:last-child::after { content: ""; }

/* ---------- Marquee-style divider ---------- */
.word-band { overflow: hidden; padding-block: 2.6rem; border-block: 1px solid rgba(246, 240, 227, 0.07); }
.word-band__track { display: flex; gap: 3.5rem; width: max-content; animation: bandScroll 42s linear infinite; }
.word-band span {
  font-family: var(--font-display); font-size: clamp(1.2rem, 2.4vw, 1.8rem);
  color: var(--cream-faint); white-space: nowrap; display: inline-flex; align-items: center; gap: 3.5rem;
}
.word-band span i { font-style: normal; color: var(--gold); font-size: 0.7em; }
@keyframes bandScroll { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .word-band__track { animation: none; } }

/* ---------- Forms ---------- */
.form-grid { display: grid; gap: 1.1rem; }
.form-grid--2col { grid-template-columns: 1fr 1fr; }
@media (max-width: 640px) { .form-grid--2col { grid-template-columns: 1fr; } }
.field label { display: block; font-size: 0.82rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--cream-faint); margin-bottom: 0.5rem; }
.field input, .field textarea, .field select {
  width: 100%; padding: 0.95rem 1.15rem; border-radius: var(--radius-sm);
  background: rgba(246, 240, 227, 0.05); border: 1px solid var(--card-border);
  color: var(--cream); font: inherit; transition: border-color 0.3s, background 0.3s;
}
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--gold); background: rgba(246, 240, 227, 0.07); outline: none; }
.field textarea { min-height: 150px; resize: vertical; }

/* ---------- Footer ---------- */
.footer {
  border-top: 1px solid rgba(246, 240, 227, 0.08);
  background: linear-gradient(to bottom, var(--charcoal-950), #090b0e);
  padding: clamp(3.5rem, 8vw, 6rem) 0 2.5rem;
}
.footer__grid {
  display: grid; grid-template-columns: 1.6fr repeat(3, 1fr);
  gap: clamp(2rem, 5vw, 4rem); margin-bottom: 3.5rem;
}
@media (max-width: 900px) { .footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer__grid { grid-template-columns: 1fr; } }
.footer__brand p { color: var(--cream-faint); font-size: 0.95rem; max-width: 34ch; margin-top: 1rem; }
.footer h4 { font-size: 0.82rem; letter-spacing: 0.24em; text-transform: uppercase; color: var(--gold); margin-bottom: 1.2rem; font-family: var(--font-body); font-weight: 600; }
.footer ul li { margin-bottom: 0.65rem; }
.footer ul a { color: var(--cream-dim); font-size: 0.94rem; transition: color 0.25s; }
.footer ul a:hover { color: var(--gold-bright); }
.footer__bottom {
  border-top: 1px solid rgba(246, 240, 227, 0.07); padding-top: 1.8rem;
  display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap;
  color: var(--cream-faint); font-size: 0.85rem;
}

/* ---------- Scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(34px); transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out); }
.reveal--left { transform: translateX(-40px); }
.reveal--right { transform: translateX(40px); }
.reveal--scale { transform: scale(0.94); }
.reveal.is-visible { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: 0.12s; }
.reveal[data-delay="2"] { transition-delay: 0.24s; }
.reveal[data-delay="3"] { transition-delay: 0.36s; }
.reveal[data-delay="4"] { transition-delay: 0.48s; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; } }

/* ---------- 3D scene layer (homepage constellation) ---------- */
/* Sits behind all content; heroes with video cover it naturally. */
#scene3d {
  position: fixed; inset: 0; z-index: -1;
  pointer-events: none;
}
#scene3d canvas { display: block; width: 100%; height: 100%; }

/* Lenis smooth scrolling — native CSS smooth scroll must be off while active */
html.lenis-on { scroll-behavior: auto; }

/* ---------- Navigation clarity upgrades ---------- */
.nav__dropdown-label {
  padding: 0.55rem 0.9rem 0.2rem; font-size: 0.66rem; font-weight: 600;
  letter-spacing: 0.24em; text-transform: uppercase; color: var(--gold);
}
.nav__dropdown-label + a { margin-top: 0.1rem; }
.nav__signin {
  font-size: 0.88rem; color: var(--cream-dim); white-space: nowrap;
  padding: 0.5rem 0.6rem; border-radius: 999px; transition: color 0.25s;
}
.nav__signin:hover { color: var(--gold-bright); }
.nav__search-btn {
  width: 38px; height: 38px; border-radius: 50%; flex: none;
  display: grid; place-items: center;
  background: rgba(246, 240, 227, 0.05); border: 1px solid var(--card-border);
  color: var(--cream-dim); transition: border-color 0.3s, color 0.3s;
}
.nav__search-btn:hover { border-color: var(--gold); color: var(--gold-bright); }
@media (max-width: 1180px) { .nav__signin { display: none; } }

/* ---------- Quick-find palette (Ctrl/⌘K) ---------- */
.finder {
  position: fixed; inset: 0; z-index: 10002; display: none;
  background: rgba(12, 14, 18, 0.72); backdrop-filter: blur(10px);
  padding: clamp(4rem, 14vh, 9rem) var(--gutter) 2rem;
}
.finder.is-open { display: block; }
.finder__panel {
  width: min(620px, 100%); margin-inline: auto;
  background: rgba(18, 21, 27, 0.95); border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-deep);
  overflow: hidden; backdrop-filter: blur(24px);
}
.finder__input {
  width: 100%; padding: 1.15rem 1.4rem; font: inherit; font-size: 1.05rem;
  background: transparent; border: 0; border-bottom: 1px solid var(--glass-border);
  color: var(--cream); outline: none;
}
.finder__input::placeholder { color: var(--cream-faint); }
.finder__list { max-height: min(52vh, 430px); overflow-y: auto; padding: 0.5rem; }
.finder__item {
  display: flex; align-items: baseline; gap: 0.8rem;
  padding: 0.75rem 0.95rem; border-radius: var(--radius-sm); cursor: pointer;
}
.finder__item strong { font-weight: 500; color: var(--cream); white-space: nowrap; }
.finder__item span { color: var(--cream-faint); font-size: 0.85rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.finder__item.is-active { background: rgba(207, 168, 94, 0.12); }
.finder__item.is-active strong { color: var(--gold-bright); }
.finder__group {
  padding: 0.8rem 0.95rem 0.25rem; font-size: 0.66rem; font-weight: 600;
  letter-spacing: 0.24em; text-transform: uppercase; color: var(--gold);
}
.finder__empty { padding: 1.4rem; color: var(--cream-faint); text-align: center; }
.finder__hint {
  display: flex; justify-content: space-between; padding: 0.7rem 1.2rem;
  border-top: 1px solid var(--glass-border); font-size: 0.72rem;
  letter-spacing: 0.1em; color: var(--cream-faint);
}

/* ---------- Scroll progress + back to top ---------- */
.scroll-progress {
  position: fixed; top: 0; left: 0; height: 2px; width: 0%; z-index: 101;
  background: linear-gradient(90deg, var(--gold), var(--gold-bright));
  box-shadow: 0 0 8px rgba(207, 168, 94, 0.5);
  pointer-events: none;
}
.to-top {
  position: fixed; right: 1.4rem; bottom: 1.4rem; z-index: 98;
  width: 46px; height: 46px; border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(18, 21, 27, 0.85); border: 1px solid var(--card-border);
  color: var(--cream-dim); backdrop-filter: blur(10px);
  opacity: 0; visibility: hidden; transform: translateY(10px);
  transition: opacity 0.35s, visibility 0.35s, transform 0.35s var(--ease-out), border-color 0.3s, color 0.3s;
}
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { border-color: var(--gold); color: var(--gold-bright); }

/* ---------- Publications list (Research page) ---------- */
.pub-list { display: grid; gap: 1rem; margin-top: 1.4rem; }
.pub-list li {
  color: var(--cream-dim); font-size: 0.93rem; line-height: 1.65;
  padding-left: 1.1rem; border-left: 2px solid rgba(207, 168, 94, 0.35);
}
.pub-list li strong { color: var(--cream); font-weight: 500; }
.pub-list li em { color: var(--cream-faint); font-style: normal; font-size: 0.86rem; }

/* ---------- Custom cursor system ----------
   Activated by js/cursor.js only on fine-pointer devices (html.custom-cursor).
   Touch devices and reduced-motion users keep the native cursor untouched. */
html.custom-cursor,
html.custom-cursor a,
html.custom-cursor button,
html.custom-cursor .quiz-option,
html.custom-cursor .yt-thumb,
html.custom-cursor label,
html.custom-cursor select { cursor: none; }
/* Text fields keep the native caret cursor for usability */
html.custom-cursor input,
html.custom-cursor textarea { cursor: text; }

.cursor {
  position: fixed; top: 0; left: 0; z-index: 9999;
  pointer-events: none;
  opacity: 0; transition: opacity 0.35s ease;
}
.cursor.is-active { opacity: 1; }
.cursor.is-hidden { opacity: 0; }

/* The glow ring — glassmorphism + soft gold light, spring-lagged */
.cursor__ring {
  position: fixed; top: 0; left: 0;
  width: 42px; height: 42px; margin: -21px 0 0 -21px;
  border-radius: 50%;
  border: 1px solid rgba(246, 240, 227, 0.28);
  background:
    radial-gradient(circle at 50% 50%, rgba(207, 168, 94, 0.14), rgba(207, 168, 94, 0.05) 55%, transparent 75%);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  box-shadow: 0 0 22px rgba(207, 168, 94, 0.18), inset 0 0 14px rgba(207, 168, 94, 0.08);
  display: grid; place-items: center;
  transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1),
              border-color 0.35s, box-shadow 0.35s, background 0.35s;
  will-change: transform;
}
.cursor__label {
  font-family: var(--font-body);
  font-size: 8px; font-weight: 600; letter-spacing: 0.18em;
  color: var(--gold-bright); white-space: nowrap;
  opacity: 0; transform: scale(0.6); transition: opacity 0.3s, transform 0.3s;
}

/* The dot — follows tightly */
.cursor__dot {
  position: fixed; top: 0; left: 0;
  width: 6px; height: 6px; margin: -3px 0 0 -3px;
  border-radius: 50%;
  background: var(--gold-bright);
  box-shadow: 0 0 10px rgba(230, 198, 132, 0.7);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s;
  will-change: transform;
}

/* --- states (set on .cursor root) --- */
.cursor.is-down .cursor__ring { transform: scale(0.82); }
.cursor.is-down .cursor__dot { transform: scale(0.7); }

/* buttons: grow + glow */
.cursor.is-button .cursor__ring {
  transform: scale(1.45);
  border-color: rgba(207, 168, 94, 0.55);
  box-shadow: 0 0 34px rgba(207, 168, 94, 0.35), inset 0 0 18px rgba(207, 168, 94, 0.14);
}
.cursor.is-button .cursor__dot { transform: scale(0.5); }

/* videos: ▶ PLAY */
.cursor.is-video .cursor__ring {
  transform: scale(1.7);
  border-color: rgba(230, 198, 132, 0.6);
  background: radial-gradient(circle at 50% 50%, rgba(12, 14, 18, 0.55), rgba(12, 14, 18, 0.35) 70%, transparent);
  box-shadow: 0 0 38px rgba(207, 168, 94, 0.3);
}
.cursor.is-video .cursor__label { opacity: 1; transform: scale(0.62); }
.cursor.is-video .cursor__dot { opacity: 0; }

/* cards: expand + spotlight (screen-blended light pool) */
.cursor.is-card .cursor__ring {
  transform: scale(2.4);
  border-color: rgba(246, 240, 227, 0.12);
  background: radial-gradient(circle at 50% 50%, rgba(230, 198, 132, 0.12), rgba(230, 198, 132, 0.04) 50%, transparent 72%);
  box-shadow: none;
  mix-blend-mode: screen;
}
.cursor.is-card .cursor__dot { transform: scale(0.6); }

/* links: small arrow */
.cursor.is-link .cursor__ring {
  transform: scale(0.75);
  border-color: rgba(230, 198, 132, 0.6);
}
.cursor.is-link .cursor__label { opacity: 1; transform: scale(1.5); }
.cursor.is-link .cursor__dot { opacity: 0; }

/* interactive areas (quiz): gentle pulse */
.cursor.is-pulse .cursor__ring { animation: cursorPulse 1.6s ease-in-out infinite; }
@keyframes cursorPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.18); }
}

/* particle trail canvas */
#cursor-fx {
  position: fixed; inset: 0; z-index: 9998;
  pointer-events: none;
}

/* ---------- Utility ---------- */
.divider-fade { height: 1px; background: linear-gradient(90deg, transparent, rgba(246, 240, 227, 0.14), transparent); border: none; }
.mt-2 { margin-top: 2rem; }
.mt-3 { margin-top: 3rem; }
.center { text-align: center; }

/* ==========================================================================
   PREMIUM MOTION LAYER (js/motion.js)
   ========================================================================== */

/* ---------- ambient animated background (site-wide, extremely subtle) ---------- */
html { background: var(--charcoal-950); } /* no white flash, ever */
body::before {
  content: ""; position: fixed; inset: -20%; z-index: -2; pointer-events: none;
  background:
    radial-gradient(50% 40% at 20% 25%, rgba(207, 168, 94, 0.05), transparent 70%),
    radial-gradient(45% 40% at 80% 70%, rgba(63, 163, 150, 0.045), transparent 70%);
  animation: ambientDrift 46s ease-in-out infinite alternate;
}
/* an occasional soft light ray sweeping through */
body::after {
  content: ""; position: fixed; top: -30%; left: 0; width: 34vw; height: 160vh;
  z-index: -2; pointer-events: none; transform: rotate(22deg) translateX(-60vw);
  background: linear-gradient(90deg, transparent, rgba(246, 240, 227, 0.024), transparent);
  animation: lightRay 26s ease-in-out infinite;
}
@keyframes ambientDrift {
  from { transform: translate3d(-2%, -1.5%, 0) scale(1); }
  to { transform: translate3d(2%, 1.5%, 0) scale(1.06); }
}
@keyframes lightRay {
  0%, 55%, 100% { transform: rotate(22deg) translateX(-60vw); opacity: 0; }
  70% { opacity: 1; }
  85% { transform: rotate(22deg) translateX(160vw); opacity: 0; }
}
/* slow gradient life inside glow sections */
.glow::before { animation: glowShift 30s ease-in-out infinite alternate; }
@keyframes glowShift {
  from { opacity: 0.75; transform: translate3d(0, 0, 0); }
  to { opacity: 1; transform: translate3d(0, -2.5%, 0); }
}

/* ---------- Apple-quality navigation ---------- */
.nav { transition: background 0.45s, box-shadow 0.45s, border-color 0.45s, transform 0.5s var(--ease-out); }
.nav.nav--hidden { transform: translateY(-100%); }
.nav__links a { position: relative; }
.nav__links a::after {
  content: ""; position: absolute; left: 0.85rem; right: 0.85rem; bottom: 0.2rem;
  height: 1px; background: linear-gradient(90deg, var(--gold), var(--gold-bright));
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.4s var(--ease-out);
}
.nav__links a:hover::after, .nav__links a.is-active::after { transform: scaleX(1); }

/* ---------- page transitions (cinema cut, no white flash) ---------- */
#page-veil {
  position: fixed; inset: 0; z-index: 10000; pointer-events: none;
  background: var(--charcoal-950); opacity: 0;
  transition: opacity 0.42s ease;
}
html.page-leaving #page-veil { opacity: 1; pointer-events: all; }
html.page-leaving main { transform: translateY(-18px) scale(1.015); opacity: 0.4; }
main { transition: transform 0.5s var(--ease-out), opacity 0.5s ease; }
html.page-entering main { transform: translateY(26px) scale(0.992); opacity: 0; transition: none; }
html.page-ready main {
  transform: none; opacity: 1;
  transition: transform 0.85s var(--ease-out), opacity 0.85s ease;
}

/* ---------- premium cards: tilt + glass reflection + border glow ---------- */
.card, .feature-card { transform-style: preserve-3d; }
.card.is-tilting, .feature-card.is-tilting { transition: box-shadow 0.4s, border-color 0.4s; }
.card:hover, .feature-card:hover {
  box-shadow: 0 22px 48px -18px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(207, 168, 94, 0.16),
              0 0 34px -8px rgba(207, 168, 94, 0.2);
}
/* moving glass sheen, positioned by --mx/--my from js */
.card::after, .feature-card::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; border-radius: inherit;
  background: radial-gradient(240px circle at var(--mx, 50%) var(--my, 50%),
              rgba(246, 240, 227, 0.075), transparent 65%);
  opacity: 0; transition: opacity 0.4s;
}
.card:hover::after, .feature-card:hover::after { opacity: 1; }
/* image slow zoom inside feature cards */
.feature-card .media-frame video, .feature-card .media-frame img, .feature-card .yt-thumb img {
  transition: transform 1.4s var(--ease-out);
}
.feature-card:hover .media-frame video,
.feature-card:hover .media-frame img,
.feature-card:hover .yt-thumb img { transform: scale(1.05); }

/* ---------- premium buttons: animated border + ripple + compression ---------- */
.btn { position: relative; overflow: hidden; }
.btn:active { transform: translateY(0) scale(0.965); }
.btn--ghost::before {
  content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1px;
  background: linear-gradient(120deg, transparent 30%, rgba(207, 168, 94, 0.7), transparent 70%);
  background-size: 250% 100%;
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  opacity: 0; transition: opacity 0.4s; animation: borderFlow 2.6s linear infinite;
}
.btn--ghost:hover::before { opacity: 1; }
@keyframes borderFlow { to { background-position: 250% 0; } }
.btn .ripple {
  position: absolute; border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle, rgba(246, 240, 227, 0.35), transparent 65%);
  transform: scale(0); animation: rippleOut 0.65s var(--ease-out) forwards;
}
@keyframes rippleOut { to { transform: scale(2.6); opacity: 0; } }

/* ---------- floating books (covers float, tilt subtly, shadow breathes) ---------- */
.float-book {
  animation: bookFloat 7s ease-in-out infinite alternate;
  will-change: transform;
}
.float-book .media-frame, .media-frame.float-book {
  box-shadow: 0 34px 50px -28px rgba(0, 0, 0, 0.75);
  transition: box-shadow 3.5s ease-in-out;
}
@keyframes bookFloat {
  from { transform: translateY(0) rotate(-0.35deg); }
  to { transform: translateY(-9px) rotate(0.35deg); }
}

/* ---------- book loader ---------- */
#book-loader {
  position: fixed; inset: 0; z-index: 10001;
  background: var(--charcoal-950);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1.6rem;
  transition: opacity 0.5s ease;
}
#book-loader.is-done { opacity: 0; pointer-events: none; }
.loader-book { position: relative; width: 92px; height: 64px; perspective: 500px; }
.loader-book__spine { position: absolute; left: 50%; top: 0; bottom: 0; width: 2px; margin-left: -1px; background: var(--gold-deep); }
.loader-book__page {
  position: absolute; top: 2px; bottom: 2px; left: 50%; width: 42px;
  background: linear-gradient(100deg, var(--cream-soft), var(--cream));
  border-radius: 0 6px 6px 0; transform-origin: left center;
  animation: pageTurn 1.5s var(--ease-out) infinite;
  box-shadow: 0 6px 22px rgba(0, 0, 0, 0.4);
}
.loader-book__page:nth-child(2) { animation-delay: 0.18s; opacity: 0.9; }
.loader-book__page:nth-child(3) { animation-delay: 0.36s; opacity: 0.8; }
.loader-book__cover-l, .loader-book__cover-r {
  position: absolute; top: 0; bottom: 0; width: 46px;
  background: linear-gradient(120deg, var(--gold-deep), var(--gold));
  border-radius: 6px 0 0 6px;
}
.loader-book__cover-l { right: 50%; }
.loader-book__cover-r { left: 50%; border-radius: 0 6px 6px 0; }
@keyframes pageTurn {
  0% { transform: rotateY(0deg); }
  60%, 100% { transform: rotateY(-165deg); }
}
.loader-particles span {
  position: absolute; width: 3px; height: 3px; border-radius: 50%;
  background: var(--gold-bright); opacity: 0;
  animation: loaderDust 1.6s ease-out infinite;
}
@keyframes loaderDust {
  0% { opacity: 0; transform: translateY(6px) scale(0.6); }
  30% { opacity: 0.8; }
  100% { opacity: 0; transform: translateY(-26px) scale(1); }
}
.loader-logo { font-family: var(--font-display); font-size: 1.7rem; color: var(--cream); opacity: 0; animation: loaderFade 0.9s ease 0.4s forwards; }
.loader-logo strong { color: var(--gold-bright); font-weight: 600; }
.loader-tagline { font-size: 0.72rem; letter-spacing: 0.3em; text-transform: uppercase; color: var(--cream-faint); opacity: 0; animation: loaderFade 0.9s ease 0.7s forwards; }
@keyframes loaderFade { to { opacity: 1; } }

/* ---------- scroll parallax helpers ---------- */
[data-plx] { will-change: transform; }

/* ---------- counters ---------- */
.chip strong { display: inline-block; min-width: 1ch; }

/* ---------- interactive Meta-Self experience ---------- */
.msm-stage { position: relative; }
.msm-wrap { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
@media (max-width: 900px) { .msm-wrap { grid-template-columns: 1fr; } }
.msm-svg { width: 100%; height: auto; display: block; }
.msm-node { cursor: pointer; transition: opacity 0.45s ease; }
.msm-node circle.msm-orb {
  transition: transform 0.5s var(--ease-out);
  transform-origin: center; transform-box: fill-box;
  animation: msmBreathe 4.5s ease-in-out infinite;
}
.msm-node:hover circle.msm-orb, .msm-node:focus-visible circle.msm-orb, .msm-node.is-open circle.msm-orb { transform: scale(1.22); }
.msm-node text {
  font-family: var(--font-body); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase;
  fill: var(--cream-dim); text-anchor: middle; pointer-events: none;
}
.msm-node:hover text, .msm-node.is-open text { fill: var(--gold-bright); }
.msm-stage.has-focus .msm-node:not(.is-open) { opacity: 0.28; }
.msm-link { stroke: rgba(207, 168, 94, 0.16); stroke-width: 1; transition: stroke 0.4s, stroke-width 0.4s; }
.msm-link.is-lit { stroke: rgba(230, 198, 132, 0.85); stroke-width: 1.6; filter: drop-shadow(0 0 5px rgba(230, 198, 132, 0.6)); }
.msm-heart { animation: msmPulse 2.8s ease-in-out infinite; transform-origin: center; transform-box: fill-box; }
@keyframes msmBreathe { 0%, 100% { opacity: 0.85; } 50% { opacity: 1; } }
@keyframes msmPulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.07); } }
.msm-panel {
  background: var(--glass); border: 1px solid var(--glass-border); border-radius: var(--radius-lg);
  padding: clamp(1.6rem, 3vw, 2.4rem); backdrop-filter: blur(16px);
  box-shadow: var(--shadow-deep); min-height: 340px;
  opacity: 0; transform: translateX(26px);
  transition: opacity 0.55s ease, transform 0.55s var(--ease-out);
}
.msm-panel.is-open { opacity: 1; transform: none; }
.msm-panel h3 { font-size: clamp(1.4rem, 2.4vw, 1.9rem); margin-bottom: 0.4rem; }
.msm-panel .msm-kicker { font-size: 0.74rem; letter-spacing: 0.26em; text-transform: uppercase; color: var(--gold); margin-bottom: 1rem; }
.msm-panel dl { display: grid; gap: 0.9rem; margin-top: 1.2rem; }
.msm-panel dt { font-size: 0.72rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--teal-bright); }
.msm-panel dd { color: var(--cream-dim); font-size: 0.94rem; line-height: 1.6; }
@media (prefers-reduced-motion: reduce) {
  .msm-node circle.msm-orb, .msm-heart { animation: none; }
}

/* ---------- interactive timeline ---------- */
.timeline { position: relative; padding-left: 2.2rem; }
.timeline::before {
  content: ""; position: absolute; left: 8px; top: 0; bottom: 0; width: 2px;
  background: rgba(246, 240, 227, 0.09); border-radius: 2px;
}
.timeline__progress {
  position: absolute; left: 8px; top: 0; width: 2px; height: 0;
  background: linear-gradient(to bottom, var(--gold), var(--gold-bright));
  border-radius: 2px; box-shadow: 0 0 12px rgba(207, 168, 94, 0.55);
}
.timeline__spark {
  position: absolute; left: 9px; top: 0; width: 10px; height: 10px; margin-left: -5px;
  border-radius: 50%; background: var(--gold-bright);
  box-shadow: 0 0 18px 4px rgba(230, 198, 132, 0.5);
}
.timeline__item { position: relative; padding: 0 0 2.6rem 1.4rem; }
.timeline__item::before {
  content: ""; position: absolute; left: -2.05rem; top: 0.4rem; width: 11px; height: 11px;
  border-radius: 50%; border: 2px solid var(--gold); background: var(--charcoal-950);
  transition: background 0.4s, box-shadow 0.4s;
}
.timeline__item.is-lit::before { background: var(--gold-bright); box-shadow: 0 0 14px rgba(230, 198, 132, 0.7); }
.timeline__year { font-family: var(--font-display); font-size: 1.15rem; color: var(--gold-bright); }
.timeline__item h3 { font-size: 1.15rem; margin: 0.25rem 0 0.4rem; }
.timeline__item p { color: var(--cream-dim); font-size: 0.94rem; max-width: 52ch; }

/* ---------- cinematic footer ---------- */
.footer {
  position: relative; overflow: hidden;
  background:
    radial-gradient(90% 70% at 50% 118%, rgba(154, 119, 54, 0.34), rgba(63, 163, 150, 0.07) 55%, transparent 78%),
    linear-gradient(to bottom, var(--charcoal-950), #090b0e);
}
/* quiet stars */
.footer::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image:
    radial-gradient(1px 1px at 12% 22%, rgba(246,240,227,0.5), transparent 100%),
    radial-gradient(1px 1px at 33% 8%, rgba(246,240,227,0.35), transparent 100%),
    radial-gradient(1.5px 1.5px at 56% 30%, rgba(230,198,132,0.4), transparent 100%),
    radial-gradient(1px 1px at 72% 12%, rgba(246,240,227,0.4), transparent 100%),
    radial-gradient(1px 1px at 88% 26%, rgba(98,199,184,0.35), transparent 100%),
    radial-gradient(1.2px 1.2px at 45% 18%, rgba(246,240,227,0.3), transparent 100%);
  animation: starTwinkle 7s ease-in-out infinite alternate;
}
@keyframes starTwinkle { from { opacity: 0.5; } to { opacity: 1; } }
.footer__newsletter { margin-top: 1.6rem; display: flex; gap: 0.5rem; max-width: 340px; }
.footer__newsletter input {
  flex: 1; padding: 0.7rem 1rem; border-radius: 999px;
  background: rgba(246, 240, 227, 0.06); border: 1px solid var(--card-border);
  color: var(--cream); font: inherit; font-size: 0.88rem;
}
.footer__newsletter input:focus { border-color: var(--gold); outline: none; }
.footer__newsletter button { padding: 0.7rem 1.3rem; font-size: 0.85rem; }
.footer__social { display: flex; gap: 0.6rem; margin-top: 1.4rem; }
.footer__social a {
  width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center;
  border: 1px solid var(--card-border); background: rgba(246, 240, 227, 0.05);
  transition: border-color 0.3s, transform 0.35s var(--ease-out), box-shadow 0.3s;
}
.footer__social a:hover { border-color: var(--gold); transform: translateY(-3px); box-shadow: 0 8px 22px -8px rgba(207, 168, 94, 0.4); }
.footer__social a .ez-icon { width: 1.1rem; height: 1.1rem; color: var(--cream-dim); }
.footer__social a:hover .ez-icon { color: var(--gold-bright); }
.footer__credits {
  text-align: center; margin-top: 3rem; padding-top: 2rem;
  font-family: var(--font-display); font-style: italic;
  color: var(--cream-faint); font-size: 0.98rem;
}
.footer__credits .ez-icon { vertical-align: -0.15em; margin-left: 0.25rem; color: var(--gold); opacity: 0.7; }

/* ---------- circular quiz progress ---------- */
.quiz-ring {
  --pct: 0;
  width: 118px; height: 118px; border-radius: 50%;
  margin: 0 auto 1.4rem;
  display: grid; place-items: center; position: relative;
  background:
    radial-gradient(closest-side, var(--charcoal-900) 78%, transparent 79% 100%),
    conic-gradient(var(--gold-bright) calc(var(--pct) * 1%), rgba(246, 240, 227, 0.09) 0);
  box-shadow: 0 0 34px -8px rgba(207, 168, 94, 0.35);
}
.quiz-ring__num {
  font-family: var(--font-display); font-size: 1.5rem; color: var(--gold-bright);
}

/* ---------- reduced motion: quiet everything from this layer ---------- */
@media (prefers-reduced-motion: reduce) {
  body::before, body::after, .glow::before, .float-book, .footer::before { animation: none; }
  html.page-entering main, html.page-ready main, html.page-leaving main { transform: none; opacity: 1; transition: none; }
  .nav.nav--hidden { transform: none; }
}

/* ==========================================================================
   Legal pages (privacy, terms, cookies, accessibility) + cookie consent
   ========================================================================== */
.legal { line-height: 1.75; }
.legal h2 { font-family: var(--font-display); font-size: clamp(1.25rem, 2.2vw, 1.6rem); color: var(--cream); margin: 2.6rem 0 0.8rem; scroll-margin-top: 96px; }
.legal h3 { font-family: var(--font-display); font-size: 1.05rem; color: var(--gold-bright); margin: 1.6rem 0 0.5rem; }
.legal p { color: var(--cream-soft); margin: 0 0 1rem; }
.legal ul { color: var(--cream-soft); margin: 0 0 1.2rem; padding-left: 1.3rem; }
.legal li { margin: 0.4rem 0; }
.legal code { background: rgba(255,255,255,0.07); border: 1px solid var(--glass-border); border-radius: 5px; padding: 0.08em 0.4em; font-size: 0.9em; }
.legal a { color: var(--gold-bright); }

.legal__toc { border: 1px solid var(--glass-border); border-radius: 14px; padding: 1.3rem 1.5rem; background: rgba(255,255,255,0.03); margin-bottom: 2rem; }
.legal__toc ul { columns: 2; column-gap: 2rem; list-style: none; padding: 0; margin: 0.6rem 0 0; }
.legal__toc li { margin: 0.3rem 0; break-inside: avoid; font-size: 0.93rem; }
@media (max-width: 620px) { .legal__toc ul { columns: 1; } }

.legal__note { border-left: 3px solid var(--teal-bright); padding: 0.8rem 1.1rem; background: rgba(63,163,150,0.08); border-radius: 0 10px 10px 0; font-size: 0.95rem; }
.legal__callout { border: 1px solid var(--gold); border-radius: 14px; padding: 1.3rem 1.5rem; background: rgba(207,168,94,0.10); margin: 1.6rem 0 2rem; }
.legal__foot { margin-top: 3rem; padding-top: 1.2rem; border-top: 1px solid var(--glass-border); font-size: 0.94rem; }

.legal__table-wrap { overflow-x: auto; border: 1px solid var(--glass-border); border-radius: 12px; margin: 0 0 1.6rem; }
.legal__table { width: 100%; border-collapse: collapse; font-size: 0.93rem; min-width: 34rem; }
.legal__table th, .legal__table td { text-align: left; padding: 0.75rem 1rem; border-bottom: 1px solid var(--glass-border); vertical-align: top; }
.legal__table thead th { background: rgba(207,168,94,0.14); color: var(--cream); font-family: var(--font-display); font-weight: 600; }
.legal__table tbody tr:last-child td { border-bottom: none; }

/* Cookie consent banner */
.cc-banner {
  position: fixed; left: 50%; transform: translateX(-50%) translateY(120%);
  bottom: clamp(0.8rem, 2vw, 1.4rem); z-index: 1200;
  width: min(46rem, calc(100vw - 1.6rem));
  background: rgba(16, 18, 23, 0.97); backdrop-filter: blur(14px);
  border: 1px solid var(--glass-border); border-radius: 16px;
  padding: clamp(1.1rem, 2.4vw, 1.5rem);
  box-shadow: 0 22px 60px rgba(0,0,0,0.5);
  transition: transform 0.4s var(--ease-out), opacity 0.4s; opacity: 0;
}
.cc-banner.is-open { transform: translateX(-50%) translateY(0); opacity: 1; }
.cc-banner h2 { font-family: var(--font-display); font-size: 1.1rem; margin: 0 0 0.5rem; color: var(--cream); }
.cc-banner p { font-size: 0.92rem; color: var(--cream-dim); margin: 0 0 1rem; line-height: 1.6; }
.cc-banner a { color: var(--gold-bright); }
.cc-actions { display: flex; flex-wrap: wrap; gap: 0.6rem; align-items: center; }
.cc-actions .btn { flex: 0 0 auto; }
.cc-link { background: none; border: 0; color: var(--cream-dim); text-decoration: underline; cursor: pointer; font: inherit; font-size: 0.88rem; padding: 0.3rem; }
.cc-link:hover { color: var(--cream); }
.cc-choice { display: flex; gap: 0.6rem; align-items: flex-start; padding: 0.7rem 0; border-top: 1px solid var(--glass-border); font-size: 0.9rem; color: var(--cream-dim); }
.cc-choice input { margin-top: 0.25rem; }
.cc-choice strong { color: var(--cream); display: block; }
@media (prefers-reduced-motion: reduce) { .cc-banner { transition: none; } }
