:root {
      --red:   #800020;
      --black: #0d0d0d;
      --white: #ffffff;
      --cream: #f9f5f0;
      --light: #f0ebe3;
      --border:#e8e0d8;
      --muted: #6b6560;
    }
    *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
    html { scroll-behavior: smooth; }
    body {
      font-family: 'DM Sans', sans-serif;
      background: var(--cream);
      color: var(--black);
    }
    .quiz-wrap {
      min-height: calc(100vh - 60px);
      display: flex;
      flex-direction: column;
    }

    .nav-active { position: relative; }
    .nav-active::after {
      content: '';
      position: absolute;
      bottom: -4px; left: 0; right: 0;
      height: 1.5px;
      background: var(--red);
    }

    /* ── SCREENS ── */
    .screen { display: none !important; }
    .screen.active { display: flex !important; flex-direction: column; min-height: calc(100vh - 60px); }
    #screen-intro.active { display: block !important; }

    /* ══ INTRO SCREEN ══ */
    #screen-intro {
      align-items: center;
      justify-content: center;
      text-align: center;
      padding: 48px 24px;
    }
    .intro-tag {
      font-size: 11px;
      text-transform: uppercase;
      letter-spacing: 3px;
      color: var(--red);
      margin-bottom: 16px;
    }
    .intro-h1 {
      font-family: 'Playfair Display', serif;
      font-size: clamp(32px, 5vw, 52px);
      line-height: 1.1;
      color: var(--black);
      margin-bottom: 16px;
    }
    .intro-h1 em { color: var(--red); font-style: italic; }
    .intro-sub {
      font-size: 16px;
      color: var(--muted);
      max-width: 480px;
      line-height: 1.7;
      margin-bottom: 36px;
    }
    .intro-meta {
      display: flex;
      gap: 24px;
      justify-content: center;
      margin-bottom: 40px;
      flex-wrap: wrap;
    }
    .intro-meta span {
      font-size: 12px;
      color: var(--muted);
      display: flex;
      align-items: center;
      gap: 6px;
    }
    .intro-meta span::before {
      content: '';
      width: 6px; height: 6px;
      border-radius: 50%;
      background: var(--red);
    }
    .btn-start {
      background: var(--red);
      color: var(--white);
      border: none;
      padding: 16px 48px;
      font-family: 'DM Sans', sans-serif;
      font-size: 14px;
      font-weight: 500;
      letter-spacing: .5px;
      cursor: pointer;
      transition: opacity .2s;
    }
    .btn-start:hover { opacity: .88; }

    /* ══ QUIZ SCREEN ══ */
    #screen-quiz { padding: 0; }

    /* Progress bar */
    .q-progress-bar {
      height: 3px;
      background: var(--border);
      flex-shrink: 0;
    }
    .q-progress-fill {
      height: 100%;
      background: var(--red);
      transition: width .4s ease;
    }

    .q-header {
      padding: 20px 32px 16px;
      display: flex;
      align-items: center;
      justify-content: space-between;
      border-bottom: 1px solid var(--border);
      background: var(--white);
      flex-shrink: 0;
    }
    .q-step {
      font-size: 12px;
      color: var(--muted);
      letter-spacing: .5px;
    }
    .q-step strong { color: var(--black); }
    .q-title {
      font-family: 'Playfair Display', serif;
      font-size: 20px;
      color: var(--black);
      font-weight: 400;
      text-align: center;
      flex: 1;
    }

    /* Cards container */
    .q-body {
      flex: 1;
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      padding: 20px 32px;
      gap: 16px;
    }

    .q-cards {
      display: grid;
      grid-template-columns: 1fr auto 1fr;
      gap: 20px;
      align-items: center;
      width: 100%;
      max-width: 920px;
    }

    /* Image card */
    .q-card {
      cursor: pointer;
      border: 3px solid transparent;
      transition: border-color .2s, transform .15s;
      position: relative;
      overflow: hidden;
      aspect-ratio: 16/11;
      background: var(--light);
    }
    .q-card:hover { transform: translateY(-3px); }
    .q-card.selected { border-color: var(--red); }
    .q-card.selected::after {
      content: '✓';
      position: absolute;
      top: 12px; right: 12px;
      width: 28px; height: 28px;
      background: var(--red);
      color: var(--white);
      border-radius: 50%;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 14px;
      font-weight: 600;
    }
    .q-card img {
      width: 100%; height: 100%;
      object-fit: cover;
      display: block;
      pointer-events: none;
    }
    .q-card-label {
      position: absolute;
      bottom: 0; left: 0; right: 0;
      background: linear-gradient(transparent, rgba(0,0,0,.65));
      padding: 24px 14px 10px;
      font-size: 13px;
      color: var(--white);
      font-weight: 500;
      letter-spacing: .3px;
    }

    /* None option */
    .q-none {
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 8px;
      cursor: pointer;
      padding: 12px;
      transition: opacity .2s;
    }
    .q-none:hover { opacity: .7; }
    .q-none.selected .q-none-circle { background: var(--red); border-color: var(--red); }
    .q-none.selected .q-none-circle::after { opacity: 1; }
    .q-none-circle {
      width: 40px; height: 40px;
      border: 2px solid var(--muted);
      border-radius: 50%;
      position: relative;
      transition: all .2s;
    }
    .q-none-circle::after {
      content: '✓';
      position: absolute;
      inset: 0;
      display: flex;
      align-items: center;
      justify-content: center;
      color: var(--white);
      font-size: 16px;
      opacity: 0;
      transition: opacity .2s;
    }
    .q-none-label {
      font-size: 12px;
      color: var(--muted);
      text-align: center;
    }

    /* Next button */
    .q-footer {
      padding: 16px 32px 28px;
      display: flex;
      justify-content: center;
      flex-shrink: 0;
    }
    .btn-next {
      background: var(--black);
      color: var(--white);
      border: none;
      padding: 14px 48px;
      font-family: 'DM Sans', sans-serif;
      font-size: 13px;
      font-weight: 500;
      letter-spacing: .5px;
      cursor: pointer;
      transition: background .2s;
      opacity: .4;
      pointer-events: none;
    }
    .btn-next.enabled {
      opacity: 1;
      pointer-events: auto;
    }
    .btn-next.enabled:hover { background: var(--red); }

    /* ══ EMAIL SCREEN ══ */
    #screen-email {
      align-items: center;
      justify-content: center;
      padding: 48px 24px;
    }
    .email-box {
      background: var(--white);
      border: 1px solid var(--border);
      padding: 48px 40px;
      max-width: 480px;
      width: 100%;
      text-align: center;
    }
    .email-tag {
      font-size: 11px;
      text-transform: uppercase;
      letter-spacing: 3px;
      color: var(--red);
      margin-bottom: 12px;
    }
    .email-h2 {
      font-family: 'Playfair Display', serif;
      font-size: 28px;
      color: var(--black);
      font-weight: 400;
      margin-bottom: 10px;
      line-height: 1.2;
    }
    .email-h2 em { color: var(--red); font-style: italic; }
    .email-sub {
      font-size: 14px;
      color: var(--muted);
      line-height: 1.65;
      margin-bottom: 28px;
    }
    .email-form { text-align: left; }
    .email-field {
      display: flex;
      flex-direction: column;
      gap: 5px;
      margin-bottom: 14px;
    }
    .email-field label {
      font-size: 12px;
      font-weight: 500;
      color: var(--black);
    }
    .email-field input {
      border: 1px solid var(--border);
      padding: 11px 14px;
      font-family: 'DM Sans', sans-serif;
      font-size: 14px;
      color: var(--black);
      outline: none;
      transition: border-color .2s;
      width: 100%;
    }
    .email-field input:focus { border-color: var(--red); }
    .email-field input.error { border-color: #c0392b; }
    .btn-reveal {
      width: 100%;
      background: var(--red);
      color: var(--white);
      border: none;
      padding: 15px;
      font-family: 'DM Sans', sans-serif;
      font-size: 13px;
      font-weight: 500;
      letter-spacing: .5px;
      cursor: pointer;
      margin-top: 8px;
      transition: opacity .2s;
    }
    .btn-reveal:hover { opacity: .88; }
    .btn-reveal:disabled { opacity: .5; cursor: not-allowed; }
    .email-note {
      font-size: 11px;
      color: var(--muted);
      margin-top: 12px;
      text-align: center;
    }

    /* ══ RESULT SCREEN ══ */
    #screen-result {
      align-items: center;
      padding: 48px 24px;
    }
    .result-box {
      max-width: 720px;
      width: 100%;
    }
    .result-tag {
      font-size: 11px;
      text-transform: uppercase;
      letter-spacing: 3px;
      color: var(--red);
      margin-bottom: 12px;
      text-align: center;
    }
    .result-h1 {
      font-family: 'Playfair Display', serif;
      font-size: clamp(36px, 6vw, 56px);
      color: var(--black);
      font-weight: 400;
      text-align: center;
      margin-bottom: 6px;
    }
    .result-tagline {
      font-size: 15px;
      color: var(--red);
      text-align: center;
      font-style: italic;
      margin-bottom: 32px;
    }
    .result-imgs {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 8px;
      margin-bottom: 32px;
    }
    .result-imgs img {
      width: 100%;
      aspect-ratio: 4/3;
      object-fit: cover;
      display: block;
    }
    .result-content {
      background: var(--white);
      border: 1px solid var(--border);
      padding: 32px;
      margin-bottom: 28px;
    }
    .result-section-label {
      font-size: 11px;
      text-transform: uppercase;
      letter-spacing: 2px;
      color: var(--red);
      margin-bottom: 8px;
      display: block;
      padding-bottom: 8px;
      border-bottom: 1.5px solid var(--red);
      width: fit-content;
    }
    .result-content h3 {
      font-family: 'Playfair Display', serif;
      font-size: 20px;
      color: var(--black);
      font-weight: 500;
      margin-bottom: 12px;
    }
    .result-content p {
      font-size: 15px;
      color: #444;
      line-height: 1.78;
    }
    .result-ctas {
      display: flex;
      gap: 12px;
      justify-content: center;
      flex-wrap: wrap;
      margin-bottom: 20px;
    }
    .btn-cta-red {
      background: var(--red);
      color: var(--white);
      border: none;
      padding: 14px 32px;
      font-family: 'DM Sans', sans-serif;
      font-size: 13px;
      font-weight: 500;
      cursor: pointer;
      text-decoration: none;
      letter-spacing: .3px;
      display: inline-block;
      transition: opacity .2s;
    }
    .btn-cta-red:hover { opacity: .88; }
    .btn-cta-outline {
      background: transparent;
      color: var(--black);
      border: 1px solid var(--border);
      padding: 14px 32px;
      font-family: 'DM Sans', sans-serif;
      font-size: 13px;
      font-weight: 500;
      cursor: pointer;
      text-decoration: none;
      letter-spacing: .3px;
      display: inline-block;
      transition: border-color .2s, color .2s;
    }
    .btn-cta-outline:hover { border-color: var(--red); color: var(--red); }
    .result-retake {
      text-align: center;
      font-size: 12px;
      color: var(--muted);
    }
    .result-retake a {
      color: var(--red);
      cursor: pointer;
      text-decoration: underline;
    }

    /* ── Responsive ── */
    @media (max-width: 640px) {
      .q-cards {
        grid-template-columns: 1fr;
        grid-template-rows: auto auto auto;
      }
      .q-none { flex-direction: row; justify-content: center; }
      .email-box { padding: 32px 24px; }
      .result-imgs { grid-template-columns: 1fr; }
      .result-content { padding: 24px 20px; }
      .q-header { padding: 16px 20px; }
      .q-body { padding: 20px 16px; }
    }
/* ══════════════════════════════════════
   QUIZ INTRO — Split screen
══════════════════════════════════════ */

#screen-intro { display: none; flex-direction: column; }
#screen-intro.active { display: block; }

.qi-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  height: calc(100vh - 60px);
  overflow: hidden;
}

/* ── Left copy ── */
.qi-left {
  padding: 64px 56px 64px 48px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 28px;
  background: var(--cream);
  border-right: 1px solid var(--border);
}

.qi-tag {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 2.5px;
  color: var(--red);
}

.qi-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--red);
  flex-shrink: 0;
  animation: qi-pulse 2s ease-in-out infinite;
}

@keyframes qi-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: .3; }
}

.qi-h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(32px, 3.2vw, 48px);
  line-height: 1.1;
  color: var(--black);
  max-width: 420px;
  font-weight: 400;
}
.qi-h1 em { color: var(--red); font-style: italic; }

.qi-sub {
  font-size: 15px;
  color: var(--muted);
  max-width: 360px;
  line-height: 1.72;
}

/* Steps */
.qi-steps {
  display: flex;
  flex-direction: column;
  gap: 0;
  border-top: 1px solid var(--border);
}

.qi-step {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
  text-align: left;
}

.qi-step-num {
  font-family: 'Playfair Display', serif;
  font-size: 22px;
  color: var(--red);
  opacity: .3;
  line-height: 1;
  flex-shrink: 0;
  width: 32px;
}

.qi-step h3 {
  font-size: 13px;
  font-weight: 600;
  color: var(--black);
  margin-bottom: 3px;
  font-family: 'DM Sans', sans-serif;
  text-align: left;
}

.qi-step p {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.55;
  text-align: left;
}

/* Meta pills */
.qi-meta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.qi-meta span {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  color: var(--muted);
}

/* Start button */
.btn-start {
  background: var(--red);
  color: var(--white);
  border: none;
  padding: 15px 36px;
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: .5px;
  cursor: pointer;
  transition: opacity .2s;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: fit-content;
}
.btn-start:hover { opacity: .88; }

/* ── Right bento grid ── */
.qi-right {
  background: var(--black);
  overflow: hidden;
}

.qi-bento {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  height: 100%;
  gap: 3px;
}

.qi-cell {
  position: relative;
  overflow: hidden;
  background: #111;
}

.qi-cell img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .5s ease;
  filter: brightness(.85);
}

.qi-cell:hover img {
  transform: scale(1.06);
  filter: brightness(1);
}

.qi-cell-lbl {
  position: absolute;
  bottom: 10px; left: 12px;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: rgba(255,255,255,.7);
  font-family: 'DM Sans', sans-serif;
  font-weight: 500;
}

/* Cell sizing — c1 larger */
.qi-c1 { grid-column: 1 / 3; grid-row: 1; }
.qi-c2 { grid-column: 3;     grid-row: 1; }
.qi-c3 { grid-column: 1;     grid-row: 2; }
.qi-c4 { grid-column: 2;     grid-row: 2; }
.qi-c5 { grid-column: 3;     grid-row: 2; }
.qi-c6 { display: none; }

/* ── Responsive ── */
@media (max-width: 860px) {
  .qi-split {
    grid-template-columns: 1fr;
    min-height: auto;
  }
  .qi-left {
    padding: 44px 28px;
    border-right: none;
    border-bottom: 1px solid var(--border);
    gap: 20px;
  }
  .qi-right { height: 320px; }
  .qi-h1 { font-size: 30px; }
  .qi-bento { grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; }
  .qi-c1 { grid-column: 1 / 3; grid-row: 1; }
  .qi-c2 { grid-column: 1; grid-row: 2; }
  .qi-c3 { grid-column: 2; grid-row: 2; }
  .qi-c4, .qi-c5, .qi-c6 { display: none; }
}

@media (max-width: 480px) {
  .qi-left { padding: 32px 20px; }
  .qi-h1 { font-size: 26px; }
  .qi-right { height: 260px; }
}

/* ══ QUIZ card label improvements ══ */
.q-card-label {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  background: linear-gradient(transparent, rgba(0,0,0,.8));
  padding: 28px 16px 14px;
  font-size: 14px;
  font-weight: 600;
  color: var(--white);
  letter-spacing: .5px;
  text-shadow: 0 1px 4px rgba(0,0,0,.5);
}

/* Q title */
.q-title {
  font-family: 'Playfair Display', serif;
  font-size: 22px;
  color: var(--black);
  font-weight: 400;
  text-align: center;
  flex: 1;
}

/* ══ History dots ══ */
.q-history {
  display: flex;
  justify-content: center;
  padding: 12px 0 16px;
  flex-shrink: 0;
  margin-top:-5%;
}
.q-history-dots {
  display: flex;
  gap: 8px;
  align-items: center;
}
.h-dot {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 2px solid var(--border);
  overflow: hidden;
  background: var(--light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: var(--muted);
  flex-shrink: 0;
  transition: border-color .2s;
}
.h-dot-filled {
  border-color: var(--red);
}
.h-dot-filled img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.h-dot-none {
  border-color: var(--muted);
  color: var(--muted);
  font-size: 22px;
  font-weight: 300;
}

/* ══ Responsive ══ */
@media (max-width: 640px) {
  .intro-hero { min-height: 90vh; }
  .intro-hero-grid { grid-template-columns: repeat(2, 1fr); grid-template-rows: repeat(3, 1fr); }
  .ih5, .ih6 { display: none; }
  .intro-how-steps { grid-template-columns: 1fr; gap: 24px; }
  .h-dot { width: 36px; height: 36px; }
}

/* ══ Screen switching — override ══ */
#screen-quiz {
  height: calc(100vh - 60px);
  overflow: hidden;
  display: none;
  flex-direction: column;
}
#screen-quiz.active {
  display: flex !important;
}
.quiz-wrap { display: flex; flex-direction: column; }
.screen { display: none !important; }
.screen.active { display: flex !important; flex-direction: column; }
#screen-intro.active { display: block !important; height: calc(100vh - 60px); }
.qi-split { height: 100%; }

/* Steps — force left align */
.qi-step div { text-align: left; }