/* ==========================================================================
   CDEscapes — base.css
   Foundation, typography, buttons, header, hero, ticker, shared primitives.
   ========================================================================== */

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

:root {
  /* Warm neutral foundation */
  --cream: #fcfaf7;
  --cream-warm: #f7f3ed;
  --cream-dark: #f0ebe3;
  --white: #ffffff;
  --black: #1a1a1a;
  --charcoal: #3d3834;
  --warm-grey: #6b6560;
  --muted: #766f66;

  /* Metallic silver accents — replaces every gold accent */
  --silver-ink: #58626f;
  --silver-deep: #4c5663;
  --silver-700: #6f7b89;
  --silver-600: #8793a1;
  --silver-500: #a2adba;
  --silver-400: #bdc6d1;
  --silver-300: #d5dce4;
  --silver-200: #e8ecf1;
  --silver-100: #f2f5f8;
  --silver-bright: #eef2f7;
  --silver-gradient: linear-gradient(135deg, #f5f7fa 0%, #dce2e9 20%, #b9c3ce 44%, #929eac 66%, #d2dae3 86%, #a9b4c1 100%);
  --silver-gradient-strong: linear-gradient(135deg, #edf1f5 0%, #c6d0da 28%, #9aa6b4 58%, #c9d2db 86%);
  --silver-metal-text: linear-gradient(112deg, #ffffff 0%, #d7dfe8 26%, #a9b5c3 52%, #edf2f7 72%, #b9c4d0 100%);
  --silver-metal-ink: linear-gradient(118deg, #5a6573 0%, #7c8896 42%, #4e5967 100%);

  --border: #e5dfd7;
  --border-light: #f0ebe4;
  --border-silver: rgba(127, 140, 156, 0.22);
  --border-silver-strong: rgba(127, 140, 156, 0.38);
  --silver-glow: rgba(159, 174, 190, 0.22);

  --shadow-sm: 0 1px 2px rgba(26, 26, 26, 0.04);
  --shadow: 0 4px 16px rgba(26, 26, 26, 0.05);
  --shadow-lg: 0 12px 40px rgba(26, 26, 26, 0.07);
  --shadow-xl: 0 24px 64px rgba(26, 26, 26, 0.1);
  --elevation-1: 0 1px 3px rgba(0, 0, 0, 0.04), 0 1px 2px rgba(0, 0, 0, 0.03);
  --elevation-2: 0 4px 16px rgba(0, 0, 0, 0.05), 0 2px 4px rgba(0, 0, 0, 0.03);
  --elevation-3: 0 12px 40px rgba(0, 0, 0, 0.07), 0 4px 8px rgba(0, 0, 0, 0.04);

  --font-display: "Playfair Display", Georgia, "Times New Roman", serif;
  --font-body: "Inter", system-ui, -apple-system, sans-serif;

  --radius-sm: 0.375rem;
  --radius: 0.75rem;
  --radius-lg: 1rem;
  --radius-xl: 1.5rem;

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --transition: 0.5s var(--ease);
  --transition-fast: 0.25s var(--ease);
}

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body {
  font-family: var(--font-body);
  background: var(--cream);
  background-image: radial-gradient(circle, rgba(140, 153, 169, 0.075) 1px, transparent 1px);
  background-size: 40px 40px;
  color: var(--black);
  min-height: 100vh;
  overflow-x: hidden;
  line-height: 1.65;
  font-weight: 400;
}

body.modal-open,
body.menu-open {
  overflow: hidden;
}

::selection {
  background: rgba(140, 153, 169, 0.22);
}

::-webkit-scrollbar {
  width: 5px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: var(--silver-300);
  border-radius: 3px;
}

img {
  max-width: 100%;
}
.img-missing {
  opacity: 0;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
}

a {
  color: inherit;
}

:focus-visible {
  outline: 2px solid var(--silver-700);
  outline-offset: 2px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 2000;
  padding: 0.65rem 1.1rem;
  border-radius: var(--radius-sm);
  background: var(--black);
  color: var(--cream);
  font-size: 0.8rem;
  text-decoration: none;
  transform: translateY(-160%);
  transition: transform 0.2s ease;
}
.skip-link:focus {
  transform: translateY(0);
}

.noscript-bar {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  left: 1rem;
  z-index: 1400;
  max-width: 560px;
  margin: 0 auto;
  padding: 0.85rem 1.1rem;
  border: 1px solid rgba(190, 204, 218, 0.3);
  border-radius: var(--radius-sm);
  background: rgba(26, 24, 21, 0.97);
  color: var(--cream);
  font-size: 0.78rem;
  line-height: 1.55;
  text-align: center;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.3);
}

.container {
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 3rem;
}

/* --------------------------------------------------------------------------
   Typography
   -------------------------------------------------------------------------- */

.h1 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(3.2rem, 8vw, 7rem);
  line-height: 0.98;
  letter-spacing: -0.015em;
  color: var(--black);
}

.h2 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(2.4rem, 5vw, 4.25rem);
  line-height: 1.06;
  letter-spacing: -0.012em;
  color: var(--black);
}

.h2--compact {
  font-size: clamp(2rem, 3.6vw, 2.9rem);
}

.h3 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.55rem, 2.6vw, 2.1rem);
  line-height: 1.18;
  letter-spacing: -0.008em;
  color: var(--black);
}

.h4 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.2rem;
  line-height: 1.3;
}

.body-lg {
  font-size: 1.05rem;
  color: var(--warm-grey);
  line-height: 1.75;
  font-weight: 400;
}

.body {
  font-size: 0.9rem;
  color: var(--warm-grey);
  line-height: 1.72;
}

.caption {
  font-size: 0.69rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--silver-ink);
}

.section-accent {
  font-style: italic;
  color: var(--silver-ink);
}

@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  .section-accent {
    background: var(--silver-metal-ink);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
  }
}

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */

.btn-primary {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.9rem 1.9rem;
  border: 1px solid rgba(94, 108, 124, 0.36);
  border-radius: var(--radius-sm);
  background: var(--silver-gradient);
  color: #1f252c;
  font-family: var(--font-body);
  font-size: 0.79rem;
  font-weight: 600;
  letter-spacing: 0.045em;
  text-decoration: none;
  white-space: nowrap;
  overflow: hidden;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast), background var(--transition-fast);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.85),
    inset 0 -1px 0 rgba(78, 89, 103, 0.18),
    0 6px 18px rgba(120, 135, 151, 0.22);
}

.btn-primary svg {
  width: 0.95rem;
  height: 0.95rem;
  transition: transform var(--transition-fast);
}

.btn-primary::after {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.35), transparent);
  transform: skewX(-15deg);
  pointer-events: none;
}

.btn-primary:hover {
  background: linear-gradient(135deg, #ffffff 0%, #e4e9ef 22%, #c2cbd6 46%, #9ca8b6 68%, #dce3ea 88%, #b4bfcc 100%);
  transform: translateY(-1px);
  box-shadow:
    inset 0 1px 0 #ffffff,
    inset 0 -1px 0 rgba(78, 89, 103, 0.16),
    0 10px 26px rgba(120, 135, 151, 0.3);
}

.btn-primary:hover::after {
  animation: lightSweep 0.65s var(--ease);
}

.btn-primary:hover svg {
  transform: translateX(2px);
}

.btn-primary:active {
  transform: scale(0.985);
}

.btn-primary:disabled {
  opacity: 0.6;
  cursor: progress;
  transform: none;
}

.btn-primary.btn-sm {
  padding: 0.58rem 1.15rem;
  font-size: 0.7rem;
}

.btn-block {
  width: 100%;
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.9rem 1.9rem;
  border: 1px solid var(--border-silver-strong);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.32);
  color: var(--charcoal);
  font-family: var(--font-body);
  font-size: 0.79rem;
  font-weight: 500;
  letter-spacing: 0.045em;
  text-decoration: none;
  white-space: nowrap;
  transition: all var(--transition-fast);
}

.btn-outline:hover {
  border-color: var(--silver-600);
  color: var(--silver-deep);
  background: rgba(159, 174, 190, 0.1);
}

.btn-outline:active {
  transform: scale(0.985);
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.5rem 0.95rem;
  border: 0;
  border-radius: var(--radius-sm);
  background: none;
  color: var(--warm-grey);
  font-size: 0.76rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-decoration: none;
  transition: all var(--transition-fast);
}

.btn-ghost:hover {
  color: var(--black);
  background: var(--cream-dark);
}

.btn-ghost:disabled {
  opacity: 0.4;
  cursor: default;
}

.btn-text {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0 0 0.22rem;
  border: 0;
  border-bottom: 1.5px solid transparent;
  background: none;
  color: var(--silver-ink);
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.085em;
  text-transform: uppercase;
  text-decoration: none;
  transition: all var(--transition-fast);
}

.btn-text svg {
  width: 0.8rem;
  height: 0.8rem;
  transition: transform var(--transition-fast);
}

.btn-text:hover {
  color: var(--black);
  border-color: var(--silver-500);
}

.btn-text:hover svg {
  transform: translateX(3px);
}

.link-button {
  padding: 0;
  border: 0;
  background: none;
  color: var(--silver-ink);
  font-size: 0.76rem;
  font-weight: 500;
  text-decoration: underline;
  text-decoration-color: var(--silver-300);
  text-underline-offset: 3px;
  transition: color var(--transition-fast), text-decoration-color var(--transition-fast);
}
.link-button:hover {
  color: var(--charcoal);
  text-decoration-color: var(--silver-600);
}

.icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.2rem;
  height: 2.2rem;
  border: 1px solid var(--border-silver);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.42);
  color: var(--silver-ink);
  transition: all var(--transition-fast);
}
.icon-button svg {
  width: 1rem;
  height: 1rem;
}
.icon-button:hover {
  border-color: var(--silver-600);
  color: var(--charcoal);
  background: var(--white);
}

/* --------------------------------------------------------------------------
   Keyframes and shared motion
   -------------------------------------------------------------------------- */

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(42px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes ticker {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

@keyframes lightSweep {
  from {
    left: -100%;
  }
  to {
    left: 200%;
  }
}

@keyframes beamSweep {
  0% {
    left: -80%;
    opacity: 0;
  }
  10% {
    opacity: 1;
  }
  40% {
    left: 120%;
    opacity: 1;
  }
  50% {
    left: 120%;
    opacity: 0;
  }
  100% {
    left: -80%;
    opacity: 0;
  }
}

@keyframes blobFloat1 {
  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }
  33% {
    transform: translate(-40px, 30px) scale(1.15);
  }
  66% {
    transform: translate(20px, -20px) scale(0.9);
  }
}

@keyframes blobFloat2 {
  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }
  33% {
    transform: translate(30px, -30px) scale(1.2);
  }
  66% {
    transform: translate(-20px, 20px) scale(0.85);
  }
}

@keyframes grain {
  0%,
  100% {
    transform: translate(0, 0);
  }
  10% {
    transform: translate(-5%, -3%);
  }
  20% {
    transform: translate(-10%, 5%);
  }
  30% {
    transform: translate(5%, -10%);
  }
  40% {
    transform: translate(-5%, 15%);
  }
  50% {
    transform: translate(-10%, 5%);
  }
  60% {
    transform: translate(15%, 0);
  }
  70% {
    transform: translate(0, 10%);
  }
  80% {
    transform: translate(-15%, 0);
  }
  90% {
    transform: translate(10%, 5%);
  }
}

@keyframes cardIn {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes shimmer {
  from {
    background-position: -200% 0;
  }
  to {
    background-position: 200% 0;
  }
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes shake {
  10%,
  90% {
    transform: translateX(-1px);
  }
  20%,
  80% {
    transform: translateX(2px);
  }
  30%,
  50%,
  70% {
    transform: translateX(-3px);
  }
  40%,
  60% {
    transform: translateX(3px);
  }
}

html.js-ready [data-reveal] {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.75s var(--ease), transform 0.75s var(--ease);
}

html.js-ready [data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

.grain-overlay {
  position: fixed;
  inset: 0;
  z-index: 9998;
  pointer-events: none;
  opacity: 0.032;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 256px 256px;
  animation: grain 8s steps(10) infinite;
}

.glass-card {
  background: rgba(255, 255, 255, 0.7);
  -webkit-backdrop-filter: blur(22px) saturate(160%);
  backdrop-filter: blur(22px) saturate(160%);
  border: 1px solid var(--border-silver);
  box-shadow: var(--elevation-2);
}

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */

.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 200;
  padding: 1.5rem 0;
  transition: all 0.35s var(--ease);
}

.header.is-scrolled {
  padding: 0.8rem 0;
  background: rgba(252, 250, 247, 0.86);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border-silver);
  box-shadow: 0 10px 30px rgba(26, 26, 26, 0.04);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.logo-link {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  flex-shrink: 0;
  text-decoration: none;
}

.logo-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.3rem;
  height: 2.3rem;
  flex-shrink: 0;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: var(--radius-sm);
  background: var(--silver-gradient);
  color: #313944;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.85),
    inset 0 -1px 0 rgba(70, 82, 95, 0.25),
    0 3px 10px rgba(110, 124, 141, 0.22);
}

.logo-mark svg {
  width: 1.12rem;
  height: 1.12rem;
}

.logo-wordmark {
  font-family: var(--font-display);
  font-size: 1.36rem;
  font-weight: 600;
  letter-spacing: 0.005em;
  color: var(--cream);
  transition: color 0.35s var(--ease);
  white-space: nowrap;
}

.logo-wordmark em {
  font-style: italic;
  font-weight: 500;
  letter-spacing: 0.012em;
}

.header.is-scrolled .logo-wordmark {
  color: var(--black);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.1rem;
  margin-left: auto;
  margin-right: 0.75rem;
}

.nav-link {
  padding: 0.5rem 1rem;
  border-radius: var(--radius-sm);
  color: rgba(252, 250, 247, 0.8);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.045em;
  text-decoration: none;
  transition: all var(--transition-fast);
}

.nav-link:hover {
  color: var(--cream);
  background: rgba(252, 250, 247, 0.1);
}

.header.is-scrolled .nav-link {
  color: var(--warm-grey);
}

.header.is-scrolled .nav-link:hover {
  color: var(--silver-deep);
  background: rgba(159, 174, 190, 0.1);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.header .btn-ghost {
  color: rgba(252, 250, 247, 0.82);
}

.header .btn-ghost:hover {
  color: var(--cream);
  background: rgba(252, 250, 247, 0.1);
}

.header.is-scrolled .btn-ghost {
  color: var(--warm-grey);
}

.header.is-scrolled .btn-ghost:hover {
  color: var(--black);
  background: var(--cream-dark);
}

.member-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.32rem 0.8rem 0.32rem 0.32rem;
  border: 1px solid var(--border-silver);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.46);
  color: var(--charcoal);
  font-size: 0.74rem;
  font-weight: 500;
  transition: all var(--transition-fast);
}

.header:not(.is-scrolled) .member-chip {
  color: var(--cream);
  background: rgba(252, 250, 247, 0.1);
  border-color: rgba(252, 250, 247, 0.24);
}

.member-chip:hover {
  border-color: var(--silver-600);
  background: rgba(255, 255, 255, 0.85);
  color: var(--black);
}

.header:not(.is-scrolled) .member-chip:hover {
  background: rgba(252, 250, 247, 0.18);
  color: var(--cream);
}

.member-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.7rem;
  height: 1.7rem;
  border-radius: 50%;
  background: var(--silver-gradient);
  color: #2e3741;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.header:not(.is-scrolled) .icon-button {
  color: var(--cream);
  border-color: rgba(252, 250, 247, 0.26);
  background: rgba(252, 250, 247, 0.1);
}

.header:not(.is-scrolled) .icon-button:hover {
  background: rgba(252, 250, 247, 0.2);
  color: var(--white);
}

.menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 2.55rem;
  height: 2.55rem;
  border: 1px solid rgba(252, 250, 247, 0.3);
  border-radius: var(--radius-sm);
  background: rgba(252, 250, 247, 0.08);
  color: var(--cream);
  transition: all var(--transition-fast);
}

.menu-toggle svg {
  width: 1.15rem;
  height: 1.15rem;
}

.header.is-scrolled .menu-toggle {
  color: var(--black);
  border-color: var(--border);
  background: var(--white);
}

.menu-toggle:hover {
  border-color: var(--silver-500);
}

/* Mobile menu */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 400;
  display: none;
  flex-direction: column;
  padding: 6rem 2rem 2rem;
  overflow-y: auto;
  background: rgba(252, 250, 247, 0.98);
  -webkit-backdrop-filter: blur(24px);
  backdrop-filter: blur(24px);
  background-image: radial-gradient(circle, rgba(140, 153, 169, 0.08) 1px, transparent 1px);
  background-size: 36px 36px;
}

.mobile-menu.is-open {
  display: flex;
  animation: fadeIn 0.25s var(--ease);
}

.mobile-close {
  position: absolute;
  top: 1.6rem;
  right: 1.6rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--white);
  color: var(--black);
  transition: border-color var(--transition-fast);
}

.mobile-close svg {
  width: 1.15rem;
  height: 1.15rem;
}

.mobile-close:hover {
  border-color: var(--silver-500);
}

.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.mobile-nav a {
  padding: 0.55rem 0.25rem;
  font-family: var(--font-display);
  font-size: 1.9rem;
  font-weight: 500;
  color: var(--black);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.mobile-nav a:hover {
  color: var(--silver-ink);
}

.mobile-auth {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  margin-top: 2.5rem;
}

.mobile-auth-button {
  width: 100%;
}

.mobile-auth-button.btn-ghost {
  justify-content: center;
}

.mobile-member {
  font-size: 0.82rem;
  color: var(--warm-grey);
}

.mobile-member strong {
  color: var(--black);
  font-weight: 600;
}

.mobile-menu-foot {
  margin-top: auto;
  padding-top: 2rem;
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--silver-ink);
}

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */

.hero {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  min-height: 100svh;
  overflow: hidden;
  background: #17140f;
  text-align: center;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  border-top: 1px solid rgba(190, 205, 220, 0.26);
  border-bottom: 1px solid rgba(190, 205, 220, 0.1);
}

.hero-media {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background: #17140f;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform: scale(1.08);
  will-change: transform;
}

.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(20, 18, 15, 0.94) 0%, rgba(20, 18, 15, 0.42) 42%, rgba(20, 18, 15, 0.62) 100%);
}

.hero-media::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(to right, rgba(20, 18, 15, 0.5) 0%, transparent 55%, rgba(20, 18, 15, 0.3) 100%);
}

.light-beam {
  position: absolute;
  top: -50%;
  left: -40%;
  z-index: 1;
  width: 80%;
  height: 200%;
  pointer-events: none;
  background: linear-gradient(105deg, transparent 40%, rgba(185, 199, 213, 0.07) 45%, rgba(252, 250, 247, 0.09) 50%, rgba(185, 199, 213, 0.07) 55%, transparent 60%);
  transform: rotate(-15deg);
  animation: beamSweep 9s var(--ease) infinite;
}

.glow-blob {
  position: absolute;
  z-index: 1;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
}

.glow-blob-1 {
  top: -100px;
  right: -50px;
  width: 400px;
  height: 400px;
  background: rgba(196, 209, 223, 0.1);
  animation: blobFloat1 12s ease-in-out infinite;
}

.glow-blob-2 {
  bottom: -60px;
  left: -80px;
  width: 320px;
  height: 320px;
  background: rgba(214, 224, 236, 0.07);
  animation: blobFloat2 15s ease-in-out infinite;
}

.hero-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: 1040px;
  margin: 0 auto;
  padding: 7.5rem 3rem 6rem;
}

.hero-eyebrow {
  margin-bottom: 1.5rem;
  color: var(--silver-bright);
}

.hero-h1 {
  max-width: 1000px;
  margin-bottom: 1.5rem;
  color: var(--cream);
  font-size: clamp(3rem, 6.8vw, 6.2rem);
}

.hero-static {
  display: block;
}

/* Each word of the opening line rises out of its own mask. */
.hero-word {
  display: inline-block;
  overflow: hidden;
  vertical-align: top;
  padding-bottom: 0.3em;
  margin-bottom: -0.3em;
}

.hero-word > span {
  display: inline-block;
}

html.js-ready .hero-word > span {
  transform: translateY(150%);
  transition: transform 1.05s var(--ease);
}

html.js-ready .hero-word:nth-child(1) > span {
  transition-delay: 0.12s;
}

html.js-ready .hero-word:nth-child(2) > span {
  transition-delay: 0.17s;
}

html.js-ready .hero.is-in .hero-word > span {
  transform: none;
}

/* The second line cycles through phrases. The script sizes the box to the
   widest phrase so the line never jumps. */
.hero-swap-line {
  display: block;
  margin-top: 0.12em;
  line-height: 0.98;
}

.hero-swap {
  position: relative;
  display: block;
  width: max-content;
  max-width: 100%;
  height: 1.42em;
  margin-inline: auto;
  overflow: hidden;
  white-space: nowrap;
}

.hero-swap > span {
  display: block;
  width: 100%;
  padding-bottom: 0.3em;
  line-height: 1.08;
  text-align: center;
  transition: transform 0.7s var(--ease), opacity 0.7s var(--ease);
}

.hero-swap > span.is-out,
.hero-swap > span.is-next {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
}

.hero-swap > span.is-out {
  transform: translateY(-135%);
  opacity: 0;
}

.hero-swap > span.is-next {
  transform: translateY(135%);
  opacity: 0;
}

.hero-accent {
  font-style: italic;
  color: #e7edf4;
}

@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  .hero-accent {
    background: var(--silver-metal-text);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 6px 26px rgba(200, 214, 228, 0.18));
  }
}

.hero-sub {
  max-width: 590px;
  margin-bottom: 2.5rem;
  color: rgba(252, 250, 247, 0.84);
  font-size: 1.03rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}

/* Staggered entrance for the supporting hero content. */
html.js-ready .hero-eyebrow,
html.js-ready .hero-sub,
html.js-ready .hero-actions,
html.js-ready .hero-swap-line,
html.js-ready .hero-line {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}

html.js-ready .hero-eyebrow {
  transition-delay: 0.1s;
}

html.js-ready .hero-swap-line {
  transition-delay: 0.42s;
}

html.js-ready .hero-sub {
  transition-delay: 0.7s;
}

html.js-ready .hero-actions {
  transition-delay: 0.85s;
}

html.js-ready .hero-line {
  transition-delay: 1s;
}

.hero.is-in .hero-eyebrow,
.hero.is-in .hero-sub,
.hero.is-in .hero-actions,
.hero.is-in .hero-swap-line,
.hero.is-in .hero-line {
  opacity: 1;
  transform: none;
}

.hero-actions .btn-outline {
  border-color: rgba(252, 250, 247, 0.4);
  color: var(--cream);
  background: rgba(252, 250, 247, 0.04);
}

.hero-actions .btn-outline:hover {
  border-color: var(--silver-bright);
  color: var(--silver-bright);
  background: rgba(210, 222, 234, 0.1);
}

.hero-line {
  width: 62px;
  height: 1px;
  margin-top: 3rem;
  background: linear-gradient(90deg, transparent, var(--silver-400), transparent);
}

.hero-scroll-indicator {
  position: absolute;
  bottom: 5.6rem;
  left: 50%;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  transform: translateX(-50%);
  opacity: 0;
  animation: fadeIn 1s var(--ease) 1.5s forwards;
}

.hero-scroll-indicator span {
  color: rgba(252, 250, 247, 0.5);
  font-size: 0.58rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.hero-scroll-line {
  width: 1px;
  height: 2.6rem;
  background: linear-gradient(to bottom, rgba(210, 222, 234, 0.5), transparent);
}

.hero-stats-bar {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 3;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  border-top: 1px solid rgba(252, 250, 247, 0.13);
  background: linear-gradient(to top, rgba(20, 18, 15, 0.55), transparent);
  color: rgba(252, 250, 247, 0.7);
}

.hero-stat-item {
  padding: 1.15rem 1.5rem;
  border-right: 1px solid rgba(252, 250, 247, 0.1);
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.13em;
  text-align: center;
  text-transform: uppercase;
}

.hero-stat-item:last-child {
  border-right: 0;
}

/* --------------------------------------------------------------------------
   Ticker
   -------------------------------------------------------------------------- */

.ticker-wrap {
  position: relative;
  padding: 1rem 0;
  overflow: hidden;
  border-top: 1px solid var(--border-silver);
  border-bottom: 1px solid var(--border-silver);
  background: var(--white);
}

.ticker-wrap::before,
.ticker-wrap::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  z-index: 2;
  width: 4.5rem;
  pointer-events: none;
}

.ticker-wrap::before {
  left: 0;
  background: linear-gradient(to right, var(--white), transparent);
}

.ticker-wrap::after {
  right: 0;
  background: linear-gradient(to left, var(--white), transparent);
}

.ticker-track {
  display: flex;
  gap: 2.5rem;
  width: max-content;
  white-space: nowrap;
}

html.js-ready .ticker-track {
  animation: ticker 48s linear infinite;
}

.ticker-item {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-display);
  font-size: 0.86rem;
  font-style: italic;
  font-weight: 500;
  color: var(--warm-grey);
}

.ticker-item::after {
  content: "";
  display: inline-block;
  width: 4px;
  height: 4px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--silver-400);
}

/* --------------------------------------------------------------------------
   Shared sections
   -------------------------------------------------------------------------- */

.section {
  position: relative;
  padding: 8rem 0;
  scroll-margin-top: 5rem;
}

.section--white {
  background: var(--white);
}

.section-header {
  max-width: 660px;
  margin-bottom: 3.75rem;
}

.section-header--wide {
  max-width: 760px;
}

.section-header--compact {
  margin-bottom: 2.5rem;
}

.section-header .caption {
  margin-bottom: 1.15rem;
}

.section-header .h2 {
  margin-bottom: 1.2rem;
}

.section-header .body-lg {
  max-width: 560px;
}

.section-header .h2::before {
  content: "";
  display: block;
  width: 3rem;
  height: 2px;
  margin-bottom: 1.35rem;
  border-radius: 1px;
  background: var(--silver-gradient-strong);
}

.silver-rule {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 1.8rem;
}

.silver-rule::before,
.silver-rule::after {
  content: "";
  height: 1px;
  flex: 1;
  max-width: 120px;
  background: linear-gradient(90deg, transparent, var(--silver-500), transparent);
}

.silver-rule .diamond {
  width: 5px;
  height: 5px;
  flex-shrink: 0;
  background: var(--silver-600);
  transform: rotate(45deg);
}
