/* ════════════════════════════════════════════════
   DESIGN SYSTEM — Rams-inspired: Less, but better.
   Palette: Navy / Cream / Gold
   Type: DM Serif Display + DM Sans
   ════════════════════════════════════════════════ */

:root {
  --navy:        #0D1117;
  --navy-mid:    #141B24;
  --navy-light:  #1C2736;
  --cream:       #F5F0E8;
  --cream-dim:   #DDD8CF;
  --gold:        #C9A84C;
  --gold-light:  #E8C97A;
  --gold-muted:  #8A6E32;
  --white:       #FFFFFF;
  --text-muted:  rgba(245,240,232,0.5);

  --space-xs:    0.5rem;
  --space-s:     1rem;
  --space-m:     2rem;
  --space-l:     4rem;
  --space-xl:    8rem;
  --space-2xl:   14rem;

  --max-w:       68ch;
  --max-w-wide:  90rem;

  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out:   cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
  font-size: clamp(15px, 1.1vw, 17px);
}

body {
  background-color: var(--navy);
  color: var(--cream);
  font-family: 'DM Sans', system-ui, sans-serif;
  font-weight: 300;
  line-height: 1.75;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ─── Scroll Progress Bar ─── */
.progress-bar {
  position: fixed;
  top: 0; left: 0;
  width: 0%;
  height: 2px;
  background: linear-gradient(90deg, var(--gold-muted), var(--gold), var(--gold-light));
  z-index: 1000;
  transition: width 0.1s linear;
}

/* ════════════════════════════════════════════════
   HERO
   ════════════════════════════════════════════════ */
.hero {
  position: relative;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: var(--space-l) var(--space-m);
  overflow: hidden;
  background: radial-gradient(ellipse 80% 60% at 50% 40%, #1a2540 0%, var(--navy) 70%);
}

/* Subtle grid texture */
.hero__bg-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(201,168,76,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(201,168,76,0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
}

.hero__emblem {
  width: clamp(160px, 28vw, 300px);
  height: clamp(160px, 28vw, 300px);
  margin-bottom: var(--space-l);
  animation: emblem-rotate 40s linear infinite;
  opacity: 0.7;
}

@keyframes emblem-rotate {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

.hero__content {
  position: relative;
  z-index: 2;
  max-width: var(--max-w);
}

.hero__eyebrow {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(1rem, 2vw, 1.3rem);
  color: var(--gold);
  letter-spacing: 0.08em;
  margin-bottom: var(--space-m);
  opacity: 0;
  transform: translateY(12px);
  animation: fade-up 1s var(--ease-out-expo) 0.3s forwards;
}

.hero__headline {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(3rem, 8vw, 7rem);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--cream);
  margin-bottom: var(--space-m);
  opacity: 0;
  transform: translateY(20px);
  animation: fade-up 1.1s var(--ease-out-expo) 0.5s forwards;
}

.hero__headline em {
  font-style: italic;
  color: var(--gold);
}

.hero__subline {
  font-size: clamp(0.95rem, 1.5vw, 1.1rem);
  color: var(--text-muted);
  margin-bottom: var(--space-l);
  line-height: 1.9;
  opacity: 0;
  transform: translateY(12px);
  animation: fade-up 1.1s var(--ease-out-expo) 0.7s forwards;
}

.hero__cta {
  display: inline-block;
  padding: 0.9rem 2.4rem;
  background: transparent;
  border: 1px solid var(--gold-muted);
  color: var(--gold);
  text-decoration: none;
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 500;
  transition: background 0.3s, color 0.3s, border-color 0.3s, transform 0.3s;
  opacity: 0;
  transform: translateY(12px);
  animation: fade-up 1.1s var(--ease-out-expo) 0.9s forwards;
}

.hero__cta:hover {
  background: var(--gold);
  color: var(--navy);
  border-color: var(--gold);
  transform: translateY(-2px);
}

.hero__scroll-hint {
  position: absolute;
  bottom: var(--space-m);
  left: 50%;
  transform: translateX(-50%);
}

.scroll-dot {
  display: block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold);
  opacity: 0.5;
  animation: scroll-pulse 2.5s ease-in-out infinite;
}

@keyframes scroll-pulse {
  0%, 100% { opacity: 0.2; transform: scale(1); }
  50% { opacity: 0.8; transform: scale(1.4); }
}

@keyframes fade-up {
  to { opacity: 1; transform: translateY(0); }
}

/* ════════════════════════════════════════════════
   SECTIONS — Base
   ════════════════════════════════════════════════ */
.section {
  position: relative;
  padding: var(--space-xl) var(--space-m);
  overflow: hidden;
}

.section--alt {
  background: var(--navy-mid);
}

.section--closing {
  background: var(--navy);
  text-align: center;
}

.section__inner {
  max-width: var(--max-w);
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.section__number {
  font-size: 0.75rem;
  color: var(--gold-muted);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: var(--space-l);
}

/* ─── Reveal animation (JS-driven) ─── */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s var(--ease-out-expo), transform 0.8s var(--ease-out-expo);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ════════════════════════════════════════════════
   INTRO
   ════════════════════════════════════════════════ */
.intro__quote {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  font-weight: 400;
  font-style: italic;
  line-height: 1.35;
  color: var(--cream);
  border-left: 2px solid var(--gold);
  padding-left: var(--space-m);
  margin-bottom: var(--space-l);
}

.intro__quote cite {
  display: block;
  font-family: 'DM Sans', sans-serif;
  font-style: normal;
  font-size: 0.8rem;
  color: var(--text-muted);
  letter-spacing: 0.08em;
  margin-top: var(--space-s);
  text-transform: uppercase;
}

.intro__body {
  font-size: clamp(1rem, 1.5vw, 1.1rem);
  color: var(--cream-dim);
  max-width: 52ch;
}

/* ════════════════════════════════════════════════
   PILLAR SECTIONS
   ════════════════════════════════════════════════ */
.pillar__header {
  display: flex;
  align-items: center;
  gap: var(--space-s);
  margin-bottom: var(--space-l);
}

.pillar__number {
  font-family: 'DM Serif Display', serif;
  font-size: 0.8rem;
  color: var(--gold);
  letter-spacing: 0.15em;
}

.pillar__divider {
  flex: 1;
  max-width: 48px;
  height: 1px;
  background: var(--gold-muted);
  opacity: 0.5;
}

.pillar__label {
  font-size: 0.75rem;
  color: var(--text-muted);
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.pillar__title {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(2.2rem, 5vw, 4rem);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--cream);
  margin-bottom: var(--space-l);
}

.pillar__title em {
  font-style: italic;
  color: var(--gold);
}

.pillar__body {
  display: flex;
  flex-direction: column;
  gap: var(--space-m);
  margin-bottom: var(--space-l);
}

.pillar__body p {
  font-size: clamp(1rem, 1.4vw, 1.08rem);
  color: var(--cream-dim);
  max-width: 54ch;
}

.pillar__body strong {
  color: var(--cream);
  font-weight: 500;
}

/* ─── Background glyph ─── */
.pillar__glyph {
  position: absolute;
  right: -0.1em;
  top: 50%;
  transform: translateY(-50%);
  font-size: clamp(12rem, 22vw, 22rem);
  line-height: 1;
  color: var(--gold);
  opacity: 0.025;
  pointer-events: none;
  user-select: none;
  z-index: 1;
}

/* ─── Non-negotiable block ─── */
.pillar__nonneg-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-m);
}

@media (max-width: 768px) {
  .pillar__nonneg-wrap {
    grid-template-columns: 1fr;
  }
}

.pillar__nonneg {
  display: flex;
  align-items: stretch;
  gap: var(--space-m);
  padding: var(--space-m) var(--space-m);
  background: rgba(201, 168, 76, 0.06);
  border: 1px solid rgba(201, 168, 76, 0.15);
}

.nonneg__bar {
  width: 3px;
  background: var(--gold);
  flex-shrink: 0;
}

.nonneg__label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--gold-muted);
  margin-bottom: var(--space-xs);
}

.nonneg__value {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(1.4rem, 2.5vw, 2rem);
  color: var(--cream);
  font-style: italic;
  margin-bottom: 0.25rem;
}

.nonneg__note {
  font-size: 0.82rem;
  color: var(--text-muted);
}

/* ─── Trait cards ─── */
.pillar__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: var(--space-s);
}

.trait-card {
  padding: var(--space-m) var(--space-s);
  background: var(--navy-light);
  border: 1px solid rgba(245, 240, 232, 0.06);
  text-align: center;
  transition: border-color 0.3s, transform 0.3s;
}

.trait-card:hover {
  border-color: rgba(201, 168, 76, 0.25);
  transform: translateY(-3px);
}

.trait-card__icon {
  display: block;
  font-size: 1.4rem;
  margin-bottom: var(--space-s);
  color: var(--gold);
  opacity: 0.7;
}

.trait-card__label {
  font-size: 0.78rem;
  letter-spacing: 0.05em;
  color: var(--cream-dim);
  text-transform: uppercase;
  line-height: 1.4;
}

/* ─── Intellect meters ─── */
.intellect__meter {
  display: flex;
  flex-direction: column;
  gap: var(--space-m);
  margin-top: var(--space-l);
}

.meter__row {
  display: grid;
  grid-template-columns: 160px 1fr;
  align-items: center;
  gap: var(--space-m);
}

.meter__label {
  font-size: 0.8rem;
  color: var(--text-muted);
  letter-spacing: 0.05em;
  text-align: right;
}

.meter__bar {
  height: 2px;
  background: rgba(245, 240, 232, 0.08);
  position: relative;
  overflow: hidden;
}

.meter__fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--gold-muted), var(--gold-light));
  transition: width 1.4s var(--ease-out-expo) 0.2s;
}

.is-visible .meter__fill {
  width: var(--fill);
}

/* ─── Criteria list ─── */
.criteria__list {
  display: flex;
  flex-direction: column;
  gap: 0;
  border: 1px solid rgba(245, 240, 232, 0.06);
}

.criteria__item {
  display: flex;
  gap: var(--space-m);
  padding: var(--space-m);
  border-bottom: 1px solid rgba(245, 240, 232, 0.06);
  transition: background 0.3s;
}

.criteria__item:last-child { border-bottom: none; }

.criteria__item:hover {
  background: rgba(201, 168, 76, 0.04);
}

.criteria__status {
  font-size: 1.2rem;
  flex-shrink: 0;
  margin-top: 2px;
  line-height: 1.4;
}

.criteria__status--required { color: var(--gold); }
.criteria__status--preferred { color: var(--text-muted); }
.criteria__status--neutral   { color: rgba(201, 168, 76, 0.5); }

.criteria__text strong {
  display: block;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--cream);
  margin-bottom: 0.3rem;
  letter-spacing: 0.02em;
}

.criteria__text p {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* Legend */
.criteria__item--hard .criteria__status--required::after {
  content: '';
}

/* ════════════════════════════════════════════════
   CLOSING
   ════════════════════════════════════════════════ */
.closing__emblem {
  width: 100px;
  height: 100px;
  margin: 0 auto var(--space-l);
  animation: emblem-rotate 20s linear infinite reverse;
  opacity: 0.5;
}

.closing__headline {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(2.8rem, 7vw, 6rem);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--cream);
  margin-bottom: var(--space-l);
}

.closing__headline em {
  font-style: italic;
  color: var(--gold);
}

.closing__body {
  font-size: clamp(1rem, 1.4vw, 1.1rem);
  color: var(--cream-dim);
  max-width: 50ch;
  margin: 0 auto var(--space-m);
  line-height: 1.9;
}

.closing__body--small {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.closing__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-s);
  justify-content: center;
  margin-top: var(--space-l);
  margin-bottom: var(--space-l);
}

/* ─── Buttons ─── */
.btn {
  display: inline-block;
  padding: 1rem 2.6rem;
  text-decoration: none;
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 500;
  transition: all 0.3s var(--ease-in-out);
}

.btn--primary {
  background: var(--gold);
  color: var(--navy);
  border: 1px solid var(--gold);
}

.btn--primary:hover {
  background: var(--gold-light);
  border-color: var(--gold-light);
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(201, 168, 76, 0.25);
}

.btn--ghost {
  background: transparent;
  color: var(--cream-dim);
  border: 1px solid rgba(245, 240, 232, 0.15);
}

.btn--ghost:hover {
  border-color: rgba(245, 240, 232, 0.4);
  color: var(--cream);
  transform: translateY(-2px);
}

.closing__duaa {
  font-family: 'DM Serif Display', serif;
  font-size: 1.2rem;
  color: var(--gold);
  opacity: 0.6;
  margin-top: var(--space-xl);
  letter-spacing: 0.04em;
}

/* ════════════════════════════════════════════════
   FOOTER
   ════════════════════════════════════════════════ */
.footer {
  padding: var(--space-m);
  text-align: center;
  border-top: 1px solid rgba(245, 240, 232, 0.06);
}

.footer p {
  font-size: 0.72rem;
  color: var(--text-muted);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}


/* ════════════════════════════════════════════════
   MOBILE — 640px
   ════════════════════════════════════════════════ */
@media (max-width: 640px) {
  .pillar__glyph          { font-size: 8rem; opacity: 0.015; right: -0.5rem; }
  .pillar__grid           { grid-template-columns: 1fr 1fr; }
  .meter__row             { grid-template-columns: 1fr; gap: 4px; }
  .meter__label           { text-align: left; }
  .section                { padding: var(--space-l) var(--space-m); }
  .section--intro         { padding: var(--space-l) var(--space-m); }
  .intro__quote           { font-size: clamp(1.3rem, 5vw, 1.8rem); padding-left: var(--space-s); }
  .intellect__meter       { margin-top: var(--space-m); }
  .criteria__item         { padding: var(--space-s) var(--space-s); }
  .closing__actions       { flex-direction: column; align-items: stretch; }
  .btn                    { text-align: center; }
}

/* ════════════════════════════════════════════════
   MOBILE — 480px  (small phones)
   ════════════════════════════════════════════════ */
@media (max-width: 480px) {
  :root {
    --space-xl: 5rem;
    --space-l: 2.5rem;
    --space-m: 1.5rem;
  }

  /* Hero */
  .hero                   { padding: var(--space-l) var(--space-s); }
  .hero__emblem           { width: 110px; height: 110px; margin-bottom: var(--space-m); }
  .hero__headline         { font-size: clamp(2.6rem, 13vw, 3.8rem); }
  .hero__subline          { font-size: 0.9rem; }
  .hero__cta              { padding: 0.8rem 1.8rem; font-size: 0.78rem; }

  /* Pillars */
  .pillar__title          { font-size: clamp(2rem, 10vw, 3rem); }
  .pillar__header         { gap: var(--space-xs); }
  .pillar__grid           { grid-template-columns: 1fr; }
  .pillar__nonneg         { flex-direction: column; gap: var(--space-s); }
  .nonneg__bar            { width: 100%; height: 2px; }
  .nonneg__value          { font-size: clamp(1.3rem, 6vw, 1.8rem); }

  /* Closing */
  .closing__headline      { font-size: clamp(2.4rem, 12vw, 4rem); }
  .closing__emblem        { width: 72px; height: 72px; }

  /* Profile overlay */
  .profile-overlay__panel { padding: 3.5rem 1.2rem 2rem; }
  .profile-overlay__name  { font-size: clamp(1.9rem, 9vw, 2.8rem); }
  .profile-overlay__body  { grid-template-columns: 1fr; gap: var(--space-l); }

  /* General */
  .section__inner         { max-width: 100%; }
  .footer p               { font-size: 0.65rem; }
}

/* ════════════════════════════════════════════════
   QUALIFY CHECKLIST MODAL
   ════════════════════════════════════════════════ */
.qualify-overlay {
  position: fixed;
  inset: 0;
  z-index: 900;
  display: flex;
  align-items: flex-end;   /* sheet slides up on mobile */
  justify-content: center;
}

@media (min-width: 641px) {
  .qualify-overlay { align-items: center; }
}

.qualify-overlay[hidden] { display: none; }

/* Backdrop */
.qualify-overlay__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(13, 17, 23, 0.8);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  opacity: 0;
  transition: opacity 0.35s var(--ease-in-out);
  cursor: pointer;
}

.qualify-overlay.is-open .qualify-overlay__backdrop { opacity: 1; }

/* Panel */
.qualify-overlay__panel {
  position: relative;
  z-index: 1;
  width: min(560px, 100vw);
  max-height: 92dvh;
  overflow-y: auto;
  background: var(--navy-mid);
  border: 1px solid rgba(201, 168, 76, 0.1);
  border-bottom: none;
  padding: var(--space-l) var(--space-l) var(--space-l);
  transform: translateY(100%);
  transition: transform 0.5s var(--ease-out-expo);
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: rgba(201, 168, 76, 0.15) transparent;
}

@media (min-width: 641px) {
  .qualify-overlay__panel {
    border: 1px solid rgba(201, 168, 76, 0.1);
    transform: translateY(24px);
    opacity: 0;
    transition: transform 0.45s var(--ease-out-expo), opacity 0.35s var(--ease-in-out);
    max-height: 88dvh;
  }
  .qualify-overlay.is-open .qualify-overlay__panel {
    transform: translateY(0);
    opacity: 1;
  }
}

.qualify-overlay.is-open .qualify-overlay__panel {
  transform: translateY(0);
}

/* Close */
.qualify-overlay__close {
  position: absolute;
  top: var(--space-s);
  right: var(--space-s);
  width: 36px; height: 36px;
  background: none;
  border: 1px solid rgba(245, 240, 232, 0.1);
  color: var(--text-muted);
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: border-color 0.2s, color 0.2s;
}
.qualify-overlay__close:hover { border-color: rgba(201,168,76,0.4); color: var(--gold); }

/* Header */
.qualify-overlay__kicker {
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-muted);
  margin-bottom: var(--space-xs);
}
.qualify-overlay__title {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--cream);
  margin-bottom: var(--space-xs);
}
.qualify-overlay__title em { font-style: italic; color: var(--gold); }
.qualify-overlay__sub {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: var(--space-l);
  padding-bottom: var(--space-m);
  border-bottom: 1px solid rgba(245, 240, 232, 0.06);
}

/* Fieldset groups */
.qualify-group {
  border: none;
  padding: 0;
  margin: 0 0 var(--space-m);
}
.qualify-group__label {
  display: block;
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--gold-muted);
  margin-bottom: var(--space-s);
  padding-bottom: 6px;
  border-bottom: 1px solid rgba(201, 168, 76, 0.1);
}

/* Checklist items */
.qualify-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-s);
  padding: 0.65rem 0;
  border-bottom: 1px solid rgba(245, 240, 232, 0.04);
  cursor: pointer;
  transition: background 0.2s;
  position: relative;
}
.qualify-item:last-child { border-bottom: none; }
.qualify-item:hover { background: rgba(201, 168, 76, 0.03); }

/* Hide native checkbox */
.qualify-checkbox {
  position: absolute;
  opacity: 0;
  width: 0; height: 0;
  pointer-events: none;
}

/* Custom checkbox box */
.qualify-check {
  flex-shrink: 0;
  width: 18px; height: 18px;
  border: 1px solid rgba(245, 240, 232, 0.18);
  background: rgba(245, 240, 232, 0.03);
  margin-top: 2px;
  transition: background 0.2s, border-color 0.2s;
  position: relative;
  display: flex; align-items: center; justify-content: center;
}

/* Checkmark via ::after */
.qualify-check::after {
  content: '';
  display: block;
  width: 5px; height: 9px;
  border-right: 1.5px solid var(--navy);
  border-bottom: 1.5px solid var(--navy);
  transform: rotate(45deg) translateY(-1px);
  opacity: 0;
  transition: opacity 0.15s;
}

.qualify-checkbox:checked ~ .qualify-check {
  background: var(--gold);
  border-color: var(--gold);
}
.qualify-checkbox:checked ~ .qualify-check::after { opacity: 1; }

/* Focus ring on the label via checkbox focus-visible */
.qualify-checkbox:focus-visible ~ .qualify-check {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

.qualify-item__text {
  font-size: 0.88rem;
  color: var(--cream-dim);
  line-height: 1.55;
  flex: 1;
}
.qualify-item__text em { font-style: italic; color: var(--cream); }

.qualify-checkbox:checked ~ .qualify-check + .qualify-item__text,
.qualify-checkbox:checked ~ * .qualify-item__text {
  color: var(--cream);
}

/* Badge for critical/required items */
.qualify-item__badge {
  flex-shrink: 0;
  font-size: 0.58rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--gold-muted);
  border: 1px solid rgba(201, 168, 76, 0.25);
  padding: 2px 6px;
  margin-top: 3px;
  line-height: 1.4;
  white-space: nowrap;
}

/* Input fields */
.qualify-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-s);
  margin-top: var(--space-l);
  padding-top: var(--space-m);
  border-top: 1px solid rgba(245, 240, 232, 0.06);
}

@media (max-width: 480px) {
  .qualify-fields { grid-template-columns: 1fr; }
  .qualify-overlay__panel { padding: var(--space-l) var(--space-s); }
}

.qualify-field__label {
  display: block;
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-muted);
  margin-bottom: 6px;
}
.qualify-field__label span { color: var(--gold-muted); }

.qualify-field__input {
  width: 100%;
  background: rgba(245, 240, 232, 0.04);
  border: 1px solid rgba(245, 240, 232, 0.1);
  color: var(--cream);
  font-family: 'DM Sans', sans-serif;
  font-size: 0.9rem;
  font-weight: 300;
  padding: 0.75rem 1rem;
  outline: none;
  transition: border-color 0.2s, background 0.2s;
  -webkit-appearance: none;
}
.qualify-field__input::placeholder { color: var(--text-muted); }
.qualify-field__input:focus {
  border-color: rgba(201, 168, 76, 0.45);
  background: rgba(201, 168, 76, 0.04);
}

/* Footer: counter + submit */
.qualify-form-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-s);
  margin-top: var(--space-l);
  flex-wrap: wrap;
}
.qualify-counter {
  font-size: 0.72rem;
  color: var(--text-muted);
  letter-spacing: 0.08em;
}
.qualify-counter.is-complete { color: var(--gold); }

.qualify-submit {
  background: var(--gold);
  color: var(--navy);
  border: none;
  padding: 0.9rem 2rem;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.3s, transform 0.3s, box-shadow 0.3s;
}
.qualify-submit:hover {
  background: var(--gold-light);
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(201, 168, 76, 0.22);
}
.qualify-submit:active { transform: translateY(0); }

/* Success state */
.qualify-success {
  text-align: center;
  padding: var(--space-xl) var(--space-m);
}
.qualify-success[hidden] { display: none; }

.qualify-success__arabic {
  font-family: 'DM Serif Display', serif;
  font-size: 1.4rem;
  color: var(--gold);
  opacity: 0.7;
  margin-bottom: var(--space-m);
  letter-spacing: 0.04em;
}
.qualify-success__title {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 400;
  color: var(--cream);
  margin-bottom: var(--space-s);
}
.qualify-success__body {
  font-size: 0.9rem;
  color: var(--cream-dim);
  line-height: 1.75;
  max-width: 38ch;
  margin: 0 auto var(--space-l);
}

/* Reduced motion additions */
@media (prefers-reduced-motion: reduce) {
  .qualify-overlay__panel { transition: none; opacity: 1; }
  .qualify-check { transition: none; }
  .qualify-check::after { transition: none; }
}

/* ════════════════════════════════════════════════
   REDUCED MOTION (main site)
   ════════════════════════════════════════════════ */
@media (prefers-reduced-motion: reduce) {
  .hero__emblem,
  .closing__emblem { animation: none; }
  .reveal { transition: none; }
  .meter__fill { transition: none; }
  .reveal.is-visible { opacity: 1; transform: none; }
  .is-visible .meter__fill { width: var(--fill); }
  .profile-overlay__panel { transition: none; }
}

/* ════════════════════════════════════════════════
   BISMILLAH BUTTON RESET
   ════════════════════════════════════════════════ */
button.hero__eyebrow {
  background: none;
  border: none;
  padding: 0;
  font: inherit;
  cursor: pointer;
  color: inherit;
  letter-spacing: inherit;
  /* only affordance: cursor change */
}

button.hero__eyebrow:focus-visible {
  outline: 1px solid rgba(201, 168, 76, 0.4);
  outline-offset: 6px;
  border-radius: 2px;
}

/* ════════════════════════════════════════════════
   PROFILE OVERLAY
   ════════════════════════════════════════════════ */
.profile-overlay {
  position: fixed;
  inset: 0;
  z-index: 800;
  display: flex;
  align-items: stretch;
  justify-content: flex-end;
}

.profile-overlay[hidden] { display: none; }

/* Backdrop */
.profile-overlay__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(13, 17, 23, 0.75);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  opacity: 0;
  transition: opacity 0.4s var(--ease-in-out);
  cursor: pointer;
}

.profile-overlay.is-open .profile-overlay__backdrop {
  opacity: 1;
}

/* Panel — slides in from right */
.profile-overlay__panel {
  position: relative;
  z-index: 1;
  width: min(680px, 100vw);
  max-height: 100dvh;
  overflow-y: auto;
  background: var(--navy-mid);
  border-left: 1px solid rgba(201, 168, 76, 0.12);
  padding: var(--space-xl) var(--space-l) var(--space-l);
  transform: translateX(100%);
  transition: transform 0.5s var(--ease-out-expo);
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: rgba(201, 168, 76, 0.2) transparent;
}

.profile-overlay.is-open .profile-overlay__panel {
  transform: translateX(0);
}

/* Close button */
.profile-overlay__close {
  position: absolute;
  top: var(--space-m);
  right: var(--space-m);
  width: 40px;
  height: 40px;
  background: none;
  border: 1px solid rgba(245, 240, 232, 0.1);
  color: var(--text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.2s, color 0.2s;
  z-index: 2;
}

.profile-overlay__close:hover {
  border-color: rgba(201, 168, 76, 0.4);
  color: var(--gold);
}

/* Header */
.profile-overlay__kicker {
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-muted);
  margin-bottom: var(--space-s);
}

.profile-overlay__name {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--cream);
  margin-bottom: var(--space-s);
}

.profile-overlay__name em {
  font-style: italic;
  color: var(--gold);
}

.profile-overlay__tagline {
  font-size: 0.85rem;
  color: var(--text-muted);
  letter-spacing: 0.04em;
  margin-bottom: var(--space-xl);
  padding-bottom: var(--space-l);
  border-bottom: 1px solid rgba(245, 240, 232, 0.06);
}

/* Two-column body */
.profile-overlay__body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-l);
  align-items: start;
}

@media (max-width: 520px) {
  .profile-overlay__body { grid-template-columns: 1fr; }
  .profile-overlay__panel { padding: var(--space-l) var(--space-m); }
}

/* Column heading */
.profile-col__heading {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--gold-muted);
  margin-bottom: var(--space-m);
  padding-bottom: var(--space-xs);
  border-bottom: 1px solid rgba(201, 168, 76, 0.12);
}

/* Data row */
.profile-row {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 0.65rem 0;
  border-bottom: 1px solid rgba(245, 240, 232, 0.04);
}

.profile-row:last-of-type { border-bottom: none; }

.profile-row__label {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-muted);
}

.profile-row__value {
  font-size: 0.88rem;
  color: var(--cream-dim);
  line-height: 1.5;
}

.profile-row__value--gold {
  color: var(--gold);
  font-weight: 500;
  letter-spacing: 0.04em;
}

.profile-row--highlight {
  background: rgba(201, 168, 76, 0.04);
  margin: 0 calc(-1 * var(--space-xs));
  padding-left: var(--space-xs);
  padding-right: var(--space-xs);
}

/* Profile link */
.profile-link {
  color: var(--gold);
  text-decoration: none;
  border-bottom: 1px solid rgba(201, 168, 76, 0.3);
  transition: border-color 0.2s;
}

.profile-link:hover { border-color: var(--gold); }

/* Readiness meter */
.readiness-meter {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
}

.readiness-pip {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(245, 240, 232, 0.1);
  border: 1px solid rgba(245, 240, 232, 0.15);
}

.readiness-pip.is-on {
  background: var(--gold);
  border-color: var(--gold);
}

.readiness-label {
  font-size: 0.72rem;
  color: var(--gold);
  margin-left: var(--space-xs);
  letter-spacing: 0.08em;
}

/* Aside block */
.profile-aside {
  margin-top: var(--space-l);
  padding: var(--space-m);
  background: rgba(245, 240, 232, 0.03);
  border-left: 2px solid rgba(201, 168, 76, 0.25);
}

.profile-aside__label {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--gold-muted);
  margin-bottom: 0.4rem;
}

.profile-aside__text {
  font-family: 'DM Serif Display', serif;
  font-style: italic;
  font-size: 1rem;
  color: var(--cream-dim);
  line-height: 1.5;
}

/* Contact CTA */
.profile-contact {
  display: block;
  margin-top: var(--space-l);
  padding: 0.9rem 1.6rem;
  background: var(--gold);
  color: var(--navy);
  text-decoration: none;
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 500;
  text-align: center;
  transition: background 0.3s, transform 0.3s, box-shadow 0.3s;
}

.profile-contact:hover {
  background: var(--gold-light);
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(201, 168, 76, 0.2);
}

/* Footer duaa */
.profile-overlay__footer-duaa {
  font-family: 'DM Serif Display', serif;
  font-size: 0.9rem;
  color: var(--gold);
  opacity: 0.4;
  margin-top: var(--space-xl);
  padding-top: var(--space-l);
  border-top: 1px solid rgba(245, 240, 232, 0.06);
  letter-spacing: 0.05em;
  text-align: center;
}


/* ════════════════════════════════════════════════
   AUDIO WIDGET
   ════════════════════════════════════════════════ */
.audio-widget {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 600;
  transform: translateY(8px);
  opacity: 0;
  transition: transform 0.6s var(--ease-out-expo), opacity 0.5s var(--ease-in-out);
}

.audio-widget.is-ready {
  transform: translateY(0);
  opacity: 1;
}

.audio-widget__capsule {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: rgba(10, 14, 20, 0.72);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(201, 168, 76, 0.18);
  border-radius: 100px;
  padding: 0.55rem 0.9rem 0.55rem 0.65rem;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(201, 168, 76, 0.06);
  transition: border-color 0.3s;
}

.audio-widget__capsule:hover,
.audio-widget__capsule:focus-within {
  border-color: rgba(201, 168, 76, 0.35);
}

.audio-widget__title {
  font-family: 'DM Serif Display', serif;
  font-size: 0.82rem;
  color: var(--gold);
  opacity: 0.75;
  letter-spacing: 0.04em;
  white-space: nowrap;
  user-select: none;
}

.audio-widget__toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: rgba(201, 168, 76, 0.12);
  border: 1px solid rgba(201, 168, 76, 0.25);
  border-radius: 50%;
  color: var(--gold);
  cursor: pointer;
  transition: background 0.25s, border-color 0.25s, transform 0.2s;
  flex-shrink: 0;
}

.audio-widget__toggle:hover {
  background: rgba(201, 168, 76, 0.22);
  border-color: rgba(201, 168, 76, 0.55);
  transform: scale(1.08);
}

.audio-widget__toggle:active { transform: scale(0.96); }

/* Equalizer bars */
.audio-eq {
  display: none;
  align-items: flex-end;
  gap: 2px;
  height: 14px;
}

.audio-widget.is-playing .audio-eq     { display: flex; }
.audio-widget.is-playing .audio-play-icon { display: none; }

.audio-eq__bar {
  display: block;
  width: 2.5px;
  border-radius: 2px;
  background: var(--gold);
  animation: eq-bounce 0.9s ease-in-out infinite;
  transform-origin: bottom;
}

.audio-eq__bar:nth-child(1) { animation-duration: 0.75s; }
.audio-eq__bar:nth-child(2) { animation-duration: 0.95s; animation-delay: 0.15s; }
.audio-eq__bar:nth-child(3) { animation-duration: 0.65s; animation-delay: 0.07s; }
.audio-eq__bar:nth-child(4) { animation-duration: 0.85s; animation-delay: 0.30s; }

@keyframes eq-bounce {
  0%, 100% { height: 4px;  opacity: 0.55; }
  50%       { height: 14px; opacity: 1;    }
}

/* Volume slider — slides open on hover / focus-within */
.audio-widget__vol-wrap {
  display: flex;
  align-items: center;
  gap: 6px;
  overflow: hidden;
  max-width: 0;
  opacity: 0;
  transition: max-width 0.4s var(--ease-out-expo), opacity 0.3s var(--ease-in-out);
}

.audio-widget__capsule:hover .audio-widget__vol-wrap,
.audio-widget__capsule:focus-within .audio-widget__vol-wrap {
  max-width: 130px;
  opacity: 1;
}

.audio-widget__vol-icon {
  color: var(--gold);
  opacity: 0.5;
  flex-shrink: 0;
}

.audio-widget__vol {
  -webkit-appearance: none;
  appearance: none;
  width: 90px;
  height: 2px;
  background: rgba(201, 168, 76, 0.2);
  border-radius: 2px;
  outline: none;
  cursor: pointer;
}

.audio-widget__vol::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--gold);
  border: none;
  box-shadow: 0 0 0 2px rgba(201, 168, 76, 0.2);
  transition: transform 0.15s, box-shadow 0.15s;
}

.audio-widget__vol::-webkit-slider-thumb:hover {
  transform: scale(1.25);
  box-shadow: 0 0 0 4px rgba(201, 168, 76, 0.15);
}

.audio-widget__vol::-moz-range-thumb {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--gold);
  border: none;
  cursor: pointer;
}

.audio-widget__vol:focus-visible {
  outline: 1px solid rgba(201, 168, 76, 0.5);
  outline-offset: 4px;
  border-radius: 2px;
}

@media (prefers-reduced-motion: reduce) {
  .audio-eq__bar { animation: none; height: 8px; }
}

@media (max-width: 480px) {
  .audio-widget {
    bottom: calc(1rem + env(safe-area-inset-bottom, 0px));
    right: 1rem;
  }
  .audio-widget__title { display: none; }
  .audio-widget__capsule { gap: 0.5rem; padding: 0.5rem 0.65rem; }
}

/* Success Letter & Signature */
.qualify-success__letter {
  margin: var(--space-m) auto;
  max-width: 44ch;
  text-align: left;
  border-left: 2px solid rgba(201, 168, 76, 0.25);
  padding-left: var(--space-m);
  display: flex;
  flex-direction: column;
  gap: var(--space-s);
}
.qualify-success__letter p {
  font-size: 0.88rem;
  color: var(--cream-dim);
  line-height: 1.65;
}
.letter-sig {
  font-family: 'DM Serif Display', serif;
  font-style: italic;
  color: var(--gold) !important;
  margin-top: var(--space-xs);
}

/* Bismillah footer hint plain text */
.closing__bismillah-hint {
  display: block;
  width: fit-content;
  margin: var(--space-m) auto 0;
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.6;
  opacity: 0.7;
  text-align: center;
}

.closing__bismillah-hint strong {
  color: var(--gold);
}

/* Hero Bismillah Pointer Indicator */
.hero__eyebrow-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-xs);
  margin-bottom: 4px;
}

.hero__pointer {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  opacity: 0.75;
  animation: bismillah-pointer-bounce 2s ease-in-out infinite;
}

@keyframes bismillah-pointer-bounce {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(5px); opacity: 1; }
}
