/* ═══════════════════════════════════════════════════════════════
   Arthur Diamond Executive Search — Premium Style System
   Full Premium Polish Round 5 — Final Luxury Refinement
   ═══════════════════════════════════════════════════════════════ */

/* ── Base & Document ─────────────────────────────────────────── */
html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-size: 16px;
  line-height: 1.8;
  color: #1c2535;
  letter-spacing: 0.01em;
  text-rendering: optimizeLegibility;
}

::selection {
  background-color: rgba(208, 170, 72, 0.18);
  color: #1a2640;
}

::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: #f0ece5; }
::-webkit-scrollbar-thumb { background: #d0aa48; border-radius: 4px; }

/* ── Color backgrounds ───────────────────────────────────────── */
.bg-warm { background-color: #f7f4ef; }

.hero-gradient {
  background: linear-gradient(150deg, #08111e 0%, #0f1928 20%, #172038 55%, #1e2d4a 100%);
}

/* ── Typography ──────────────────────────────────────────────── */
.font-display {
  font-family: 'Playfair Display', Georgia, 'Times New Roman', serif;
  font-feature-settings: "kern" 1, "liga" 1, "onum" 1;
}

h1.font-display {
  text-wrap: balance;
  letter-spacing: -0.025em;
  line-height: 1.08;
}

h2.font-display {
  text-wrap: balance;
  letter-spacing: -0.015em;
  line-height: 1.18;
}

h3.font-display {
  text-wrap: balance;
  letter-spacing: -0.008em;
  line-height: 1.28;
}

/* ── Section Labels ──────────────────────────────────────────── */
.section-label {
  display: inline-block;
  font-size: 0.6875rem;
  font-weight: 700;
  color: #d0aa48;
  text-transform: uppercase;
  letter-spacing: 0.24em;
  margin-bottom: 0.875rem;
}

/* Breathing room between section eyebrow and following heading */
.section-label + h1,
.section-label + h2,
.section-label + h3 {
  margin-top: 1rem;
}

/* ── Gold Rules ──────────────────────────────────────────────── */
.gold-rule {
  display: block;
  width: 2.5rem;
  height: 1px;
  background: linear-gradient(90deg, #d0aa48 0%, rgba(182,144,48,0.35) 100%);
  transition: width 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}
.group:hover .gold-rule,
.card-lift:hover .gold-rule,
.card-premium:hover .gold-rule {
  width: 5rem;
}

.gold-rule-center {
  display: block;
  width: 2.5rem;
  height: 1px;
  background: linear-gradient(90deg, transparent, #d0aa48 30%, #b69030 70%, transparent);
  margin-left: auto;
  margin-right: auto;
}

.heading-underline {
  position: relative;
  display: inline-block;
  padding-bottom: 0.875rem;
}
.heading-underline::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 2.5rem;
  height: 1px;
  background: linear-gradient(90deg, #d0aa48, rgba(182,144,48,0.35));
  border-radius: 2px;
  transition: width 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}
.heading-underline:hover::after { width: 5.5rem; }

.section-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, rgba(208,170,72,0.3) 50%, transparent 100%);
  border: none;
  margin: 0;
}

/* ── Navigation ──────────────────────────────────────────────── */

/* Base header — smooth transitions */
header {
  transition:
    box-shadow 0.4s ease,
    background-color 0.4s ease;
}

/* Scroll-aware: frosted glass effect when scrolled */
header.nav-scrolled {
  background-color: rgba(14, 22, 38, 0.96);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow:
    0 1px 0 rgba(208, 170, 72, 0.12),
    0 8px 40px rgba(0, 0, 0, 0.35);
}

.nav-active { color: #d0aa48 !important; }

.nav-link {
  position: relative;
  padding-bottom: 2px;
  color: rgba(209, 213, 219, 0.85);
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  transition: color 0.25s ease, transform 0.2s ease;
}
.nav-link::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 0;
  height: 1px;
  background: linear-gradient(90deg, #d0aa48, rgba(182,144,48,0.4));
  transition: width 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}
.nav-link:hover {
  color: #fff;
  transform: translateY(-1px);
}
.nav-link:hover::after,
.nav-active.nav-link::after { width: 100%; }

#mobile-menu {
  transition: max-height 0.3s ease-out, opacity 0.3s ease-out;
  overflow: hidden;
}

/* ── Mobile/Tablet — Logo centering + touch targets ──────────── */
@media (max-width: 1023px) {
  header nav > div.flex {
    position: relative;
  }
  header nav > div.flex > a:first-child {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    z-index: 1;
  }
  #menu-btn {
    margin-left: auto;
    position: relative;
    z-index: 2;
  }
}

#mobile-menu a {
  min-height: 48px;
  display: flex;
  align-items: center;
}

/* ── Buttons ─────────────────────────────────────────────────── */

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #d0aa48 0%, #b69030 100%);
  color: #fff;
  font-weight: 600;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 1rem 2.75rem;
  border-radius: 9999px;
  box-shadow: 0 4px 18px rgba(182, 144, 48, 0.22), 0 1px 4px rgba(0,0,0,0.08);
  transition:
    transform 0.3s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.3s ease;
  cursor: pointer;
  white-space: nowrap;
}
.btn-primary::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 55%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255, 255, 255, 0.18) 50%,
    transparent 100%
  );
  transform: skewX(-18deg);
  transition: left 0.65s ease;
  pointer-events: none;
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 40px rgba(182, 144, 48, 0.42), 0 4px 12px rgba(0,0,0,0.12);
}
.btn-primary:hover::after { left: 145%; }
.btn-primary:active { transform: translateY(0); box-shadow: none; }

.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border: 1px solid rgba(255, 255, 255, 0.42);
  color: rgba(255, 255, 255, 0.90);
  font-weight: 600;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 1rem 2.75rem;
  border-radius: 9999px;
  transition:
    border-color 0.25s ease,
    color 0.25s ease,
    background-color 0.25s ease,
    transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
  cursor: pointer;
  white-space: nowrap;
}
.btn-ghost:hover {
  border-color: rgba(255, 255, 255, 0.65);
  color: #fff;
  background-color: rgba(255, 255, 255, 0.07);
  transform: translateY(-2px);
}
.btn-ghost:active { transform: translateY(0); }

/* Gold-outlined pill button — for use on light / warm backgrounds */
.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  position: relative;
  overflow: hidden;
  border: 2px solid #d0aa48;
  color: #b69030;
  background-color: transparent;
  font-weight: 600;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: calc(1rem - 2px) 2.75rem;
  border-radius: 9999px;
  transition:
    background-color 0.25s ease,
    color 0.25s ease,
    transform 0.3s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.3s ease;
  cursor: pointer;
  white-space: nowrap;
}
.btn-outline:hover {
  background-color: #d0aa48;
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 14px 40px rgba(182, 144, 48, 0.32), 0 4px 12px rgba(0,0,0,0.10);
}
.btn-outline:active { transform: translateY(0); box-shadow: none; }

.btn-nav {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(208, 170, 72, 0.65);
  color: #d0aa48;
  font-weight: 600;
  font-size: 0.6875rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.45rem 1.35rem;
  border-radius: 9999px;
  transition:
    background 0.22s ease,
    border-color 0.22s ease,
    color 0.22s ease,
    transform 0.22s ease;
  white-space: nowrap;
}
.btn-nav:hover {
  background: linear-gradient(135deg, #d0aa48, #b69030);
  border-color: transparent;
  color: #fff;
  transform: translateY(-1px);
}

/* ── Cards ───────────────────────────────────────────────────── */

.card-lift {
  transition:
    transform 0.45s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.45s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
}
.card-lift:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 56px rgba(14, 22, 40, 0.12), 0 0 0 1px rgba(208, 170, 72, 0.06);
}

.card-premium {
  background: #fff;
  border: 1px solid #edeae2;
  border-radius: 3px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 1px 3px rgba(14, 22, 40, 0.04), 0 4px 16px rgba(14, 22, 40, 0.06);
  transition:
    transform 0.45s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.45s cubic-bezier(0.22, 1, 0.36, 1),
    background-color 0.35s ease,
    border-color 0.35s ease;
  will-change: transform;
}
.card-premium::before {
  content: '';
  display: block;
  height: 2px;
  background: linear-gradient(90deg, #d0aa48 0%, rgba(182,144,48,0.25) 100%);
  transition: background 0.35s ease;
}
.card-premium:hover {
  transform: translateY(-4px);
  background-color: #fffef9;
  box-shadow:
    0 22px 60px rgba(14, 22, 40, 0.10),
    0 0 0 1px rgba(208, 170, 72, 0.1);
  border-color: rgba(208, 170, 72, 0.15);
}
.card-premium:hover::before {
  background: linear-gradient(90deg, #d8b458 0%, #d0aa48 60%, rgba(182,144,48,0.15) 100%);
}

.card-feature {
  background: #fff;
  border: 1px solid #edeae2;
  border-radius: 3px;
  position: relative;
  overflow: hidden;
  transition:
    transform 0.45s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.45s cubic-bezier(0.22, 1, 0.36, 1),
    background-color 0.35s ease,
    border-color 0.35s ease;
  will-change: transform;
}
.card-feature::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, #d0aa48 0%, rgba(182,144,48,0.2) 100%);
}
.card-feature:hover {
  transform: translateY(-4px);
  background-color: #fffef9;
  box-shadow:
    0 18px 48px rgba(14, 22, 40, 0.09),
    0 0 0 1px rgba(208, 170, 72, 0.08);
  border-color: rgba(208, 170, 72, 0.18);
}

.card-case-study {
  background: #fff;
  border-radius: 3px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  border: 1px solid #edeae2;
  transition:
    transform 0.45s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.45s cubic-bezier(0.22, 1, 0.36, 1),
    background-color 0.35s ease;
  will-change: transform;
}
.card-case-study:hover {
  transform: translateY(-4px);
  background-color: #fffef9;
  box-shadow: 0 18px 48px rgba(14, 22, 40, 0.10);
}

/* ── Scroll Reveal ───────────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition:
    opacity 1.0s cubic-bezier(0.22, 1, 0.36, 1),
    transform 1.0s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal.visible { opacity: 1; transform: none; }

.reveal-left {
  opacity: 0;
  transform: translateX(-24px);
  transition:
    opacity 1.0s cubic-bezier(0.22, 1, 0.36, 1),
    transform 1.0s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal-right {
  opacity: 0;
  transform: translateX(24px);
  transition:
    opacity 1.0s cubic-bezier(0.22, 1, 0.36, 1),
    transform 1.0s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal-left.visible,
.reveal-right.visible { opacity: 1; transform: none; }

.stagger > *:nth-child(1) { transition-delay: 0ms; }
.stagger > *:nth-child(2) { transition-delay: 80ms; }
.stagger > *:nth-child(3) { transition-delay: 160ms; }
.stagger > *:nth-child(4) { transition-delay: 240ms; }
.stagger > *:nth-child(5) { transition-delay: 320ms; }
.stagger > *:nth-child(6) { transition-delay: 400ms; }

/* ── Blockquotes ─────────────────────────────────────────────── */
.pull-quote {
  position: relative;
  border-left: 2px solid rgba(208, 170, 72, 0.72);
  padding: 2rem 2.5rem;
  background: linear-gradient(135deg, rgba(208,170,72,0.04) 0%, rgba(208,170,72,0.01) 100%);
  border-radius: 0 3px 3px 0;
}
.pull-quote::before {
  content: '\201C';
  position: absolute;
  top: -0.75rem;
  left: 1.5rem;
  font-family: 'Playfair Display', serif;
  font-size: 6rem;
  color: rgba(208, 170, 72, 0.18);
  line-height: 1;
  pointer-events: none;
}

.prose-quote {
  border-left: 1.5px solid rgba(208, 170, 72, 0.55);
  padding: 1rem 1.75rem;
  background: linear-gradient(135deg, rgba(208,170,72,0.038), transparent);
  border-radius: 0 3px 3px 0;
}

/* ── Contact Form ────────────────────────────────────────────── */

/* Card wrapper — subtle warm background + border */
.form-card {
  background: #f9f8f6;
  border: 1px solid #e8e2d8;
  border-radius: 4px;
  padding: 2.25rem 2.5rem 2.5rem;
  box-shadow: 0 2px 16px rgba(14, 22, 40, 0.06);
}
@media (max-width: 480px) {
  .form-card { padding: 1.5rem; }
}

/* Premium label style — uppercase tracking, small */
.form-label {
  display: block;
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.13em;
  color: #1e2d4a;
  margin-bottom: 0.5rem;
}

/* Two-column grid for Name + Email on tablet+ */
.form-field-row {
  display: grid;
  gap: 1.25rem;
}
@media (min-width: 560px) {
  .form-field-row { grid-template-columns: 1fr 1fr; }
}

/* Required fields note */
.form-required-note {
  font-size: 0.75rem;
  color: #9b8b7a;
  letter-spacing: 0.01em;
}

.form-input {
  width: 100%;
  border: 1px solid #ddd6cc;
  border-radius: 3px;
  padding: 0.875rem 1.125rem;
  font-size: 0.9375rem;
  color: #1c2535;
  background-color: #fff;
  transition: border-color 0.25s ease, box-shadow 0.25s ease, background-color 0.25s ease;
}
.form-input:focus {
  outline: none;
  border-color: #d0aa48;
  background-color: #fff;
  /* outer glow ring + inset left-accent — no layout shift */
  box-shadow: 0 0 0 3px rgba(208, 170, 72, 0.10),
              inset 3px 0 0 0 rgba(208, 170, 72, 0.85);
}
.form-input::placeholder { color: #b0a090; font-style: italic; }

/* ── Candidates — Resume upload zone ────────────────────────── */
.upload-zone {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  border: 1.5px dashed rgba(208, 170, 72, 0.38);
  border-radius: 4px;
  padding: 2rem 1.5rem;
  background: linear-gradient(135deg, rgba(208, 170, 72, 0.025) 0%, transparent 100%);
  cursor: pointer;
  transition:
    border-color 0.25s ease,
    background    0.25s ease,
    box-shadow    0.25s ease;
  text-align: center;
}
.upload-zone:hover {
  border-color: rgba(208, 170, 72, 0.70);
  background: linear-gradient(135deg, rgba(208, 170, 72, 0.055) 0%, transparent 100%);
  box-shadow: 0 0 0 3px rgba(208, 170, 72, 0.07);
}
.upload-zone:focus-within {
  border-color: #d0aa48;
  box-shadow: 0 0 0 3px rgba(208, 170, 72, 0.12);
}
.upload-zone.has-file {
  border-style: solid;
  border-color: rgba(208, 170, 72, 0.58);
  background: rgba(208, 170, 72, 0.04);
}
.upload-zone-icon {
  width: 3rem;
  height: 3rem;
  border-radius: 9999px;
  background: linear-gradient(150deg, rgba(208, 170, 72, 0.14) 0%, rgba(208, 170, 72, 0.08) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background 0.25s ease, transform 0.25s ease;
}
.upload-zone:hover .upload-zone-icon {
  background: linear-gradient(150deg, rgba(208, 170, 72, 0.22) 0%, rgba(208, 170, 72, 0.14) 100%);
  transform: translateY(-2px);
}
.upload-zone-filename {
  font-size: 0.875rem;
  color: #1e2d4a;
  font-weight: 500;
  max-width: 220px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ── Logo ────────────────────────────────────────────────────── */
.logo-img { /* logo-on-dark.png already has white text + teal starburst */ }
footer .logo-img { opacity: 0.82; }

/* ── Footer ──────────────────────────────────────────────────── */
footer {
  background-color: #0d1827;
  border-top: 1px solid rgba(208, 170, 72, 0.15);
}

/* ── Image treatments ────────────────────────────────────────── */
.img-premium {
  border-radius: 4px;
  box-shadow:
    0 32px 80px rgba(14, 22, 40, 0.18),
    0 4px 16px rgba(14, 22, 40, 0.08);
}

/* ── Accessibility ───────────────────────────────────────────── */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 2px solid #d0aa48;
  outline-offset: 3px;
  border-radius: 3px;
}

/* ── Utilities ───────────────────────────────────────────────── */

.icon-badge {
  width: 3.25rem;
  height: 3.25rem;
  border-radius: 9999px;
  background: linear-gradient(150deg, #1e2d4a 0%, #253659 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition:
    transform 0.3s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.3s ease;
}
.card-feature:hover .icon-badge,
.card-premium:hover .icon-badge {
  transform: scale(1.1);
  box-shadow:
    0 0 0 4px rgba(208, 170, 72, 0.13),
    0 8px 24px rgba(208, 170, 72, 0.2);
}

.step-number {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 2.75rem;
  font-weight: 400;
  color: #d0aa48;
  line-height: 1;
  opacity: 0.88;
  letter-spacing: -0.02em;
}

.sector-icon-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  align-self: start;
  gap: 0.375rem;
  text-align: center;
}
.sector-icon-badge {
  width: 3rem;
  height: 3rem;
  border-radius: 9999px;
  background: linear-gradient(150deg, #1e2d4a, #253659);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.sector-icon-badge:hover {
  transform: translateY(-3px);
  box-shadow:
    0 0 0 3px rgba(208, 170, 72, 0.13),
    0 10px 28px rgba(208, 170, 72, 0.24);
}

/* ── Mobile hero typography ──────────────────────────────────── */
@media (max-width: 480px) {
  .hero-gradient h1 {
    font-size: clamp(2.125rem, 9vw, 3rem);
    line-height: 1.1;
  }
  .hero-gradient .btn-primary,
  .hero-gradient .btn-ghost {
    width: 100%;
    justify-content: center;
  }
}

/* ── Lens scroll-animation wrapper ──────────────────────────── */
.lens-anim {
  will-change: transform;
  transform-origin: center center;
  /* GPU compositing layer — keeps animation off the main thread */
}
@media (prefers-reduced-motion: reduce) {
  .lens-anim { will-change: auto; }
}

/* ── Candidates quote — word-cascade reveal ──────────────────── */

/* Each word starts hidden and shifted down */
.quote-word {
  display: inline-block;
  opacity: 0;
  transform: translateY(18px);
  will-change: opacity, transform;
}

/* ADVENTURE: also starts scaled down, gets gold accent */
.quote-word--adventure {
  color: #d0aa48;
  letter-spacing: 0.07em;
  transform: translateY(18px) scale(0.86);
  text-shadow: 0 0 0 rgba(208, 170, 72, 0);
}

/* Attribution fades in last */
.quote-attribution {
  display: block;
  opacity: 0;
  will-change: opacity;
}

/* ── Gold-reversed middle card ── */
.card-gold {
  background: #d0aa48;
  border-color: rgba(30, 45, 74, 0.20);
}

/* Navy top rule — overrides card-premium's gold gradient */
.card-gold::before {
  height: 3px;
  background: #1e2d4a;
  transition: height 0.40s cubic-bezier(0.22, 1, 0.36, 1), background 0.35s ease;
}

/* Hover: slightly richer gold surface, navy rule expands */
.card-gold:hover {
  background-color: #d8b458;
  border-color: rgba(30, 45, 74, 0.28);
  box-shadow:
    0 22px 60px rgba(14, 22, 40, 0.14),
    0 0 0 1px rgba(30, 45, 74, 0.08);
}
.card-gold:hover::before {
  height: 5px;
  background: #1e2d4a;
}

/* Decorative rule inside: navy on gold background */
.card-gold .gold-rule {
  background: linear-gradient(90deg, #1e2d4a 0%, rgba(30, 45, 74, 0.28) 100%);
}
.card-gold:hover .gold-rule {
  background: linear-gradient(90deg, #1e2d4a 0%, rgba(30, 45, 74, 0.28) 100%);
}

/* Body text: rich navy on gold */
.card-gold p {
  color: rgba(30, 45, 74, 0.82);
}

/* ── Featured middle card — warm highlight, navy top rule ── */
.card-featured {
  background: #fffdf4;
  border-color: rgba(208, 170, 72, 0.32);
}
/* Navy top rule — matches magnifying glass / site navy theme */
.card-featured::before {
  height: 3px;
  background: linear-gradient(90deg, #1e2d4a 0%, rgba(30, 45, 74, 0.22) 100%);
  transition: height 0.35s ease, background 0.35s ease;
}
.card-featured:hover {
  background-color: #fffcee;
  border-color: rgba(208, 170, 72, 0.50);
}
.card-featured:hover::before {
  height: 4px;
  background: linear-gradient(90deg, #1e2d4a 0%, rgba(30, 45, 74, 0.30) 100%);
}

/* ── Scroll-triggered lift + glow on middle card ── */
.card-mid-highlight {
  transition:
    transform   0.90s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow  0.90s cubic-bezier(0.22, 1, 0.36, 1),
    background-color 0.35s ease,
    border-color     0.35s ease;
}
.card-premium.card-mid-highlight.is-lit {
  transform: translateY(-4px);
  box-shadow:
    0 12px 40px rgba(208, 170, 72, 0.20),
    0 0 0 1px rgba(208, 170, 72, 0.26),
    0 2px 12px rgba(14, 22, 40, 0.05);
}
.card-premium.card-mid-highlight.is-lit:hover {
  transform: translateY(-6px);
  box-shadow:
    0 22px 60px rgba(14, 22, 40, 0.12),
    0 0 0 1px rgba(208, 170, 72, 0.35),
    0 4px 16px rgba(208, 170, 72, 0.18);
}
@media (prefers-reduced-motion: reduce) {
  .card-mid-highlight { transition: none !important; }
  .card-premium.card-mid-highlight.is-lit { transform: none; }
}

/* ── Triggered state ──────────────────────────────────────────── */
.quote-animate.is-visible .quote-word {
  animation: quoteWordIn 0.85s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  animation-delay: calc(var(--word-i) * 160ms);
}
.quote-animate.is-visible .quote-word--adventure {
  animation: quoteAdventureIn 1.15s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  animation-delay: calc(var(--word-i) * 160ms);
}
.quote-animate.is-visible .quote-attribution {
  animation: quoteAttrIn 1s ease forwards;
  /* fires after ADVENTURE finishes: (3 × 160ms) + 1150ms ≈ 1.6s */
  animation-delay: 1.65s;
}

/* ── Keyframes ────────────────────────────────────────────────── */
@keyframes quoteWordIn {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0);    }
}
@keyframes quoteAdventureIn {
  0%   { opacity: 0; transform: translateY(18px) scale(0.86);
         text-shadow: 0 0 0px rgba(208, 170, 72, 0);    }
  62%  { opacity: 1; transform: translateY(-3px) scale(1.04);
         text-shadow: 0 0 22px rgba(208, 170, 72, 0.55); }
  100% { opacity: 1; transform: translateY(0) scale(1);
         text-shadow: 0 0 10px rgba(208, 170, 72, 0.14); }
}
@keyframes quoteAttrIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* ── Reduced motion: skip all animation, show immediately ─────── */
@media (prefers-reduced-motion: reduce) {
  .quote-word,
  .quote-word--adventure { opacity: 1; transform: none; animation: none !important;
                           text-shadow: none; }
  .quote-attribution     { opacity: 1; animation: none !important; }
}

/* ── Stat Text Reveal (staggered fade-up for text stats) ──────── */
.stat-text-line {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.6s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}
.stat-text-line.visible {
  opacity: 1;
  transform: translateY(0);
}
