:root {
  --bg: #f4f1ea;
  --bg-soft: #ece7dc;
  --ink: #1a1714;
  --ink-soft: #4a443d;
  --ink-mute: #8a8378;
  --line: #d8d1c2;
  --paper: #fbf8f1;

  /* Layout */
  --nav-h: 84px;

  /* Easing */
  --ease-out-quart: cubic-bezier(0.25, 1, 0.5, 1);
  --ease-out-expo:  cubic-bezier(0.16, 1, 0.3, 1);

  /* Cores por tipo */
  --c1: #4F46E5;  --c1-soft: #E0E7FF;
  --c2: #E8445A;  --c2-soft: #FFE4E6;
  --c3: #F59E0B;  --c3-soft: #FEF3C7;
  --c4: #7C3AED;  --c4-soft: #EDE9FE;
  --c5: #0891B2;  --c5-soft: #CFFAFE;
  --c6: #059669;  --c6-soft: #D1FAE5;
  --c7: #EA580C;  --c7-soft: #FFEDD5;
  --c8: #DC2626;  --c8-soft: #FEE2E2;
  --c9: #65A30D;  --c9-soft: #ECFCCB;
}

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

:focus { outline: none; }
:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
  border-radius: 2px;
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: 'Manrope', sans-serif;
  font-weight: 400;
  line-height: 1.6;
  letter-spacing: -0.005em;
  background-image:
    radial-gradient(ellipse at top left, rgba(79,70,229,0.05), transparent 55%),
    radial-gradient(ellipse at bottom right, rgba(5,150,105,0.04), transparent 55%);
}

.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 32px;
}

main.container {
  padding-top: 50px;
}

/* ===== HEADER ===== */
header.hero {
  height: calc(100dvh - 64px);
  display: flex;
  align-items: center;
  position: relative;
  padding-top: var(--nav-h);
  background: #1e1b16;
  background-image:
    radial-gradient(ellipse at 14% 52%, rgba(79, 70, 229, 0.18), transparent 46%),
    radial-gradient(ellipse at 86% 58%, rgba(5, 150, 105, 0.09), transparent 44%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

header.hero::after {
  display: none;
}

.hero-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 48px;
}

.hero-text {
  max-width: 560px;
}

.hero-mandala {
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0.6;
}

.hero-mandala svg {
  width: 100%;
  max-width: 400px;
  height: auto;
}

@media (max-width: 768px) {
  .hero-layout {
    grid-template-columns: 1fr;
  }
  .hero-mandala {
    display: none;
  }
}

/* Hero: overrides de cor para fundo escuro */
header.hero .eyebrow        { color: rgba(255, 255, 255, 0.38); }
header.hero .eyebrow::before { background: rgba(255, 255, 255, 0.22); }
header.hero h1.title        { color: rgba(255, 255, 255, 0.94); }
header.hero .subtitle       { color: rgba(255, 255, 255, 0.52); }
header.hero .meta-row       { border-top-color: rgba(255, 255, 255, 0.08); }
header.hero .meta-label     { color: rgba(255, 255, 255, 0.32); }
header.hero .meta-value     { color: rgba(255, 255, 255, 0.82); }

.eyebrow {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.eyebrow::before {
  content: '';
  width: 32px;
  height: 1px;
  background: var(--ink-mute);
}

h1.title {
  font-family: 'Fraunces', serif;
  font-weight: 300;
  font-size: clamp(2.4rem, 4.8vw, 5.5rem);
  line-height: 0.95;
  letter-spacing: -0.04em;
  margin-bottom: 32px;
  font-variation-settings: "opsz" 144, "SOFT" 50;
}

h1.title em {
  font-style: italic;
  font-weight: 400;
}

.subtitle {
  font-family: 'Fraunces', serif;
  font-size: 20px;
  font-weight: 300;
  font-style: italic;
  color: var(--ink-soft);
  max-width: 620px;
  line-height: 1.5;
  margin-bottom: 48px;
}

.meta-row {
  display: flex;
  gap: 48px;
  flex-wrap: wrap;
  padding-top: 32px;
  border-top: 1px solid var(--line);
}

.meta-item { font-size: 13px; }

.meta-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin-bottom: 6px;
}

.meta-value {
  font-family: 'Fraunces', serif;
  font-weight: 400;
  font-size: 16px;
}

/* ===== NAV DOS TIPOS ===== */
nav.types-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  background: rgba(251, 248, 241, 0.97);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 1px 0 var(--line), 0 4px 24px rgba(0, 0, 0, 0.06);
  z-index: 100;
  padding: 16px 0;
}

.nav-grid {
  display: grid;
  grid-template-columns: repeat(9, 1fr) auto;
  gap: 4px;
  align-items: center;
}

.nav-grid a {
  text-align: center;
  font-family: 'Fraunces', serif;
  font-size: 22px;
  font-weight: 400;
  color: var(--ink-soft);
  text-decoration: none;
  padding: 8px 4px;
  border-radius: 12px;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
  border-bottom: 2px solid transparent;
}

.nav-grid a:hover {
  background: var(--bg-soft);
}

/* Números sempre na cor do tipo */
.nav-grid a[data-type="1"] { color: var(--c1); }
.nav-grid a[data-type="2"] { color: var(--c2); }
.nav-grid a[data-type="3"] { color: var(--c3); }
.nav-grid a[data-type="4"] { color: var(--c4); }
.nav-grid a[data-type="5"] { color: var(--c5); }
.nav-grid a[data-type="6"] { color: var(--c6); }
.nav-grid a[data-type="7"] { color: var(--c7); }
.nav-grid a[data-type="8"] { color: var(--c8); }
.nav-grid a[data-type="9"] { color: var(--c9); }

/* Estado ativo (JS adiciona .is-active ao scrollar pelo tipo) */
.nav-grid a[data-type="1"].is-active { background: var(--c1-soft); border-bottom-color: var(--c1); }
.nav-grid a[data-type="2"].is-active { background: var(--c2-soft); border-bottom-color: var(--c2); }
.nav-grid a[data-type="3"].is-active { background: var(--c3-soft); border-bottom-color: var(--c3); }
.nav-grid a[data-type="4"].is-active { background: var(--c4-soft); border-bottom-color: var(--c4); }
.nav-grid a[data-type="5"].is-active { background: var(--c5-soft); border-bottom-color: var(--c5); }
.nav-grid a[data-type="6"].is-active { background: var(--c6-soft); border-bottom-color: var(--c6); }
.nav-grid a[data-type="7"].is-active { background: var(--c7-soft); border-bottom-color: var(--c7); }
.nav-grid a[data-type="8"].is-active { background: var(--c8-soft); border-bottom-color: var(--c8); }
.nav-grid a[data-type="9"].is-active { background: var(--c9-soft); border-bottom-color: var(--c9); }

.nav-grid a .nav-label {
  display: block;
  font-family: 'Manrope', sans-serif;
  font-size: 9px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-mute);
  font-weight: 500;
  margin-top: 2px;
}

.nav-grid a[data-type="1"]:hover { border-bottom-color: var(--c1); background: var(--c1-soft); }
.nav-grid a[data-type="2"]:hover { border-bottom-color: var(--c2); background: var(--c2-soft); }
.nav-grid a[data-type="3"]:hover { border-bottom-color: var(--c3); background: var(--c3-soft); }
.nav-grid a[data-type="4"]:hover { border-bottom-color: var(--c4); background: var(--c4-soft); }
.nav-grid a[data-type="5"]:hover { border-bottom-color: var(--c5); background: var(--c5-soft); }
.nav-grid a[data-type="6"]:hover { border-bottom-color: var(--c6); background: var(--c6-soft); }
.nav-grid a[data-type="7"]:hover { border-bottom-color: var(--c7); background: var(--c7-soft); }
.nav-grid a[data-type="8"]:hover { border-bottom-color: var(--c8); background: var(--c8-soft); }
.nav-grid a[data-type="9"]:hover { border-bottom-color: var(--c9); background: var(--c9-soft); }

/* ===== COMING SOON BAR ===== */
.coming-soon-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 18px 0;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--ink-mute);
}

.cs-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  line-height: 1;
}

.cs-dot {
  opacity: 0.4;
}

.cs-lock {
  width: 28px;
  height: 28px;
  object-fit: contain;
  opacity: 0.85;
}

.cs-tag {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  line-height: 1.2;
  padding: 4px 8px;
  background: #B8860B;
  color: #ffffff;
  border: none;
  border-radius: 4px;
  font-size: 9px;
  letter-spacing: 0.1em;
  font-weight: 700;
}

/* ===== DIVISOR FULL-WIDTH ===== */
.full-rule {
  display: block;
  width: 100vw;
  height: 1px;
  background: var(--line);
  margin-left: calc(-50vw + 50%);
  border: none;
  flex-shrink: 0;
}

/* ===== INTRO BOX ===== */
.intro-box {
  padding: 30px 48px 60px 48px;
  margin-bottom: 0;
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 80px;
  align-items: start;
}

.intro-box::before {
  content: '';
  position: absolute;
  top: 16px;
  right: 0;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--ink-mute);
}

.intro-box h2 {
  font-family: 'Fraunces', serif;
  font-size: 42px;
  font-weight: 300;
  margin-bottom: 0;
  letter-spacing: -0.025em;
  line-height: 1.05;
  font-variation-settings: "opsz" 144;
}

.intro-box p {
  color: var(--ink-soft);
  font-size: 16px;
  max-width: 780px;
  line-height: 1.65;
}

.intro-box p + p { margin-top: 14px; }

/* ===== MANDALA ===== */
.mandala-section {
  padding: 3rem;
  margin: 0;
  background: var(--paper);
  border-radius: 24px;
  box-shadow: 0 2px 24px rgba(0, 0, 0, 0.07);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px 72px;
  align-items: center;
}

.mandala-label {
  font-family: 'Fraunces', serif;
  font-size: clamp(32px, 5vw, 42px);
  font-weight: 300;
  line-height: 1.05;
  letter-spacing: -0.025em;
  color: var(--ink);
  margin-bottom: 20px;
  font-variation-settings: "opsz" 144;
}

.mandala-intro-text p {
  font-family: 'Fraunces', serif;
  font-size: 21px;
  font-weight: 300;
  font-style: italic;
  line-height: 1.58;
  color: var(--ink-soft);
  max-width: 440px;
  margin-bottom: 28px;
}

.mandala-intro-text p em {
  font-style: normal;
  font-weight: 400;
  color: var(--ink);
}

.mandala-hint {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-mute);
  opacity: 0.6;
}

.mandala-wrapper {
  max-width: 480px;
  width: 100%;
  margin: 0 auto;
}

#eneagramaMandala {
  width: 100%;
  height: auto;
  display: block;
  overflow: visible;
}

.mandala-line {
  stroke: var(--ink);
  stroke-width: 1;
  opacity: 0.13;
  transition: opacity 0.3s ease, stroke 0.3s ease, stroke-width 0.3s ease;
}

.mandala-line.active {
  opacity: 0.7;
  stroke-width: 2;
}

.mandala-line.dimmed {
  opacity: 0.03;
}

.mandala-node {
  cursor: pointer;
}

.node-bg {
  fill: var(--node-soft);
  stroke: var(--node-color);
  stroke-width: 1.5;
  transition: transform 0.35s cubic-bezier(0.23, 1, 0.32, 1);
  transform-box: fill-box;
  transform-origin: center;
}

.node-num {
  font-family: 'Fraunces', serif;
  font-size: 22px;
  font-weight: 400;
  fill: var(--node-color);
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.mandala-node.dimmed .node-bg,
.mandala-node.dimmed .node-num {
  opacity: 0.22;
}

.mandala-node.active .node-bg {
  transform: scale(1.2);
}

.mandala-center-num {
  font-family: 'Fraunces', serif;
  font-size: 56px;
  font-weight: 200;
  fill: var(--ink);
  opacity: 0;
  transition: opacity 0.22s ease;
  font-variation-settings: "opsz" 144, "SOFT" 100;
}

.mandala-center-name {
  font-family: 'Manrope', sans-serif;
  font-size: 11px;
  font-weight: 600;
  fill: var(--ink-mute);
  letter-spacing: 0.16em;
  opacity: 0;
  transition: opacity 0.22s ease;
}

.mandala-center-num.visible,
.mandala-center-name.visible {
  opacity: 1;
}

/* ===== DIVISORES ===== */
.divider-ornamental {
  display: flex;
  align-items: center;
  gap: 20px;
  margin: 72px 0;
  opacity: 0.35;
}

.divider-ornamental span:not(.divider-mark) {
  flex: 1;
  height: 1px;
  background: var(--ink);
}

.divider-ornamental .divider-mark {
  font-size: 12px;
  color: var(--ink);
  flex-shrink: 0;
  letter-spacing: 0.3em;
}

/* Separador de seção antes dos tipos */
.types-section-header {
  padding: 56px 48px;
  margin: 0;
  display: flex;
  align-items: baseline;
  gap: 32px;
}

.types-section-eyebrow {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-mute);
  white-space: nowrap;
}

.types-section-title {
  font-family: 'Fraunces', serif;
  font-size: clamp(40px, 6vw, 72px);
  font-weight: 300;
  line-height: 0.95;
  letter-spacing: -0.04em;
  font-variation-settings: "opsz" 144, "SOFT" 50;
}

/* ===== CARD DO TIPO ===== */
.type-card {
  margin-bottom: 32px;
  scroll-margin-top: calc(var(--nav-h) + 16px);
  padding: 0 48px 1rem;
  transition: transform 0.3s var(--ease-out-quart), box-shadow 0.3s var(--ease-out-quart);
}

.type-header {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 44px;
  margin-bottom: 48px;
  padding-top: 2.5rem;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--line);
}

.type-number {
  font-family: 'Fraunces', serif;
  font-size: clamp(96px, 12vw, 120px);
  line-height: 0.8;
  font-weight: 200;
  letter-spacing: -0.06em;
  font-variation-settings: "opsz" 144, "SOFT" 100;
  opacity: 0.9;
  transition: opacity 0.3s var(--ease-out-quart), transform 0.3s var(--ease-out-quart);
  transform-origin: left center;
}

.type-titles h2 {
  font-family: 'Fraunces', serif;
  font-size: 56px;
  font-weight: 300;
  line-height: 1;
  letter-spacing: -0.03em;
  margin-bottom: 14px;
  font-variation-settings: "opsz" 144;
}

.type-titles h2 em {
  font-style: italic;
  font-weight: 400;
}

.type-tagline {
  font-family: 'Fraunces', serif;
  font-size: 19px;
  font-style: italic;
  color: var(--ink-soft);
  font-weight: 300;
}

.type-badge {
  display: inline-block;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 5px 11px;
  border-radius: 2px;
  margin-bottom: 14px;
  font-weight: 500;
}

.type-illustration {
  width: 168px;
  height: 168px;
  flex-shrink: 0;
  border-radius: 50%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.type-symbol-wrap {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.type-symbol-wrap img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center center;
  display: block;
}

/* Fundo por tipo */
.t1 .type-illustration { background: var(--c1-soft); }
.t2 .type-illustration { background: var(--c2-soft); }
.t3 .type-illustration { background: var(--c3-soft); }
.t4 .type-illustration { background: var(--c4-soft); }
.t5 .type-illustration { background: var(--c5-soft); }
.t6 .type-illustration { background: var(--c6-soft); }
.t7 .type-illustration { background: var(--c7-soft); }
.t8 .type-illustration { background: var(--c8-soft); }
.t9 .type-illustration { background: var(--c9-soft); }

/* Microajustes de centralização óptica por tipo */
.t2 .type-symbol-wrap { transform: translate(2%,  -4%); }
.t3 .type-symbol-wrap { transform: translate(0,   -5%); }
.t4 .type-symbol-wrap { transform: translate(-3%, -1%); }
.t6 .type-symbol-wrap { transform: translate(0,   -1%); }
.t7 .type-symbol-wrap { transform: translate(0%,  -3%); }
.t8 .type-symbol-wrap { transform: translate(0,    3%); }
.t9 .type-symbol-wrap { transform: translate(0,   -5%); }

/* Cores por tipo */
.t1 .type-number, .t1 .type-titles h2 em { color: var(--c1); }
.t1 .type-badge { background: var(--c1); color: white; }
.t2 .type-number, .t2 .type-titles h2 em { color: var(--c2); }
.t2 .type-badge { background: var(--c2); color: var(--ink); }
.t3 .type-number, .t3 .type-titles h2 em { color: var(--c3); }
.t3 .type-badge { background: var(--c3); color: var(--ink); }
.t4 .type-number, .t4 .type-titles h2 em { color: var(--c4); }
.t4 .type-badge { background: var(--c4); color: white; }
.t5 .type-number, .t5 .type-titles h2 em { color: var(--c5); }
.t5 .type-badge { background: var(--c5); color: var(--ink); }
.t6 .type-number, .t6 .type-titles h2 em { color: var(--c6); }
.t6 .type-badge { background: var(--c6); color: var(--ink); }
.t7 .type-number, .t7 .type-titles h2 em { color: var(--c7); }
.t7 .type-badge { background: var(--c7); color: var(--ink); }
.t8 .type-number, .t8 .type-titles h2 em { color: var(--c8); }
.t8 .type-badge { background: var(--c8); color: white; }
.t9 .type-number, .t9 .type-titles h2 em { color: var(--c9); }
.t9 .type-badge { background: var(--c9); color: var(--ink); }


/* Fundo colorido por tipo — cobre o article.type-card inteiro via ::before */
.t1.type-card, .t2.type-card, .t3.type-card,
.t4.type-card, .t5.type-card, .t6.type-card,
.t7.type-card, .t8.type-card, .t9.type-card { position: relative; }

.t1.type-card::before, .t2.type-card::before, .t3.type-card::before,
.t4.type-card::before, .t5.type-card::before, .t6.type-card::before,
.t7.type-card::before, .t8.type-card::before, .t9.type-card::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100vw;
  z-index: -1;
  pointer-events: none;
}

.t1.type-card::before { background: rgba( 79,  70, 229, 0.05); }
.t2.type-card::before { background: rgba(232,  68,  90, 0.05); }
.t3.type-card::before { background: rgba(245, 158,  11, 0.05); }
.t4.type-card::before { background: rgba(124,  58, 237, 0.05); }
.t5.type-card::before { background: rgba(  8, 145, 178, 0.05); }
.t6.type-card::before { background: rgba(  5, 150, 105, 0.05); }
.t7.type-card::before { background: rgba(234,  88,  12, 0.05); }
.t8.type-card::before { background: rgba(220,  38,  38, 0.05); }
.t9.type-card::before { background: rgba(101, 163,  13, 0.05); }

/* ===== NÚCLEO: DESEJO/MEDO ===== */
.core {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin: 1.5rem 0;
  background: transparent;
  border: none;
  box-shadow: none;
}

.core > div {
  padding: 1.5rem;
  width: 100%;
  background: rgba(255, 255, 255, 0.6);
  border-radius: 16px;
  box-shadow: 0 1px 8px rgba(0, 0, 0, 0.06);
  border: none;
}

.core > div:first-child { border-right: none; }

.core-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink);
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.core-label .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.t1 .core-label .dot { background: var(--c1); }
.t2 .core-label .dot { background: var(--c2); }
.t3 .core-label .dot { background: var(--c3); }
.t4 .core-label .dot { background: var(--c4); }
.t5 .core-label .dot { background: var(--c5); }
.t6 .core-label .dot { background: var(--c6); }
.t7 .core-label .dot { background: var(--c7); }
.t8 .core-label .dot { background: var(--c8); }
.t9 .core-label .dot { background: var(--c9); }

.core-text {
  font-family: 'Fraunces', serif;
  font-size: 23px;
  font-weight: 300;
  line-height: 1.35;
  letter-spacing: -0.01em;
}

.core-text em {
  font-style: italic;
  font-weight: 400;
}

/* ===== SEÇÕES ===== */
.sections {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px 60px;
}

.section-block {
  padding: 0 0 0 16px;
  border-radius: 4px;
  transition: background 0.2s ease;
}

.section-title {
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink);
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.section-title .icon {
  font-family: 'Fraunces', serif;
  font-style: italic;
  font-size: 15px;
  font-weight: 300;
  color: var(--ink-mute);
  letter-spacing: normal;
  text-transform: none;
}

.section-block p {
  font-size: 15.5px;
  color: var(--ink-soft);
  line-height: 1.65;
}

.section-block p strong {
  color: var(--ink);
  font-weight: 600;
}

/* ===== PIADA ===== */
.joke {
  margin: 3rem 0 1rem;
  padding: 2.5rem 2.5rem;
  border-radius: 6px;
  background: #1a1714;
}

.t1 .joke { background: linear-gradient(120deg, #1a1714 40%, var(--c1) 140%); }
.t2 .joke { background: linear-gradient(120deg, #1a1714 40%, var(--c2) 140%); }
.t3 .joke { background: linear-gradient(120deg, #1a1714 40%, var(--c3) 140%); }
.t4 .joke { background: linear-gradient(120deg, #1a1714 40%, var(--c4) 140%); }
.t5 .joke { background: linear-gradient(120deg, #1a1714 40%, var(--c5) 140%); }
.t6 .joke { background: linear-gradient(120deg, #1a1714 40%, var(--c6) 140%); }
.t7 .joke { background: linear-gradient(120deg, #1a1714 40%, var(--c7) 140%); }
.t8 .joke { background: linear-gradient(120deg, #1a1714 40%, var(--c8) 140%); }
.t9 .joke { background: linear-gradient(120deg, #1a1714 40%, var(--c9) 140%); }

.joke-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #c9a96e;
  margin-bottom: 1.25rem;
  font-weight: 600;
}

.joke-quote {
  font-family: 'Fraunces', serif;
  font-size: clamp(1.3rem, 2.2vw, 1.75rem);
  font-style: italic;
  font-weight: 300;
  line-height: 1.4;
  color: #f5f0e8;
  margin: 0;
}

/* ===== FOOTER ===== */
footer {
  margin-top: 120px;
  padding: 48px 0;
  border-top: 1px solid var(--line);
  text-align: center;
  color: var(--ink-mute);
  font-size: 13px;
}

footer strong {
  color: var(--ink);
  font-weight: 600;
}

.footer-credit {
  font-size: 15px;
  color: var(--ink-soft);
  margin-bottom: 6px;
}

footer p + p { margin-top: 6px; }

footer a {
  color: var(--ink-soft);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

/* ===== TESTE INTERATIVO ===== */
.test-section {
  padding-top: 4rem;
  margin-bottom: 48px;
  scroll-margin-top: calc(var(--nav-h) + 16px);
}

/* Teste colapsável */
.test-start-cta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  padding: 8px 0;
}

.test-start-btn {
  font-family: 'Fraunces', serif;
  font-size: 22px;
  font-weight: 400;
  background: var(--ink);
  color: var(--bg);
  border: none;
  padding: 22px 44px;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
  letter-spacing: -0.015em;
  border-radius: 2px;
}

.test-start-btn:hover {
  background: var(--c1);
  transform: translateY(-1px);
}

.test-start-btn:active {
  transform: scale(0.97);
  transition: transform 0.1s ease-out;
}

.test-start-btn em { font-style: italic; }

.test-body {
  display: none;
}

.test-body.expanded {
  display: block;
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.55s var(--ease-out-expo), transform 0.55s var(--ease-out-expo);
}

@starting-style {
  .test-body.expanded {
    opacity: 0;
    transform: translateY(24px);
  }
}

.test-collapse-row {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 20px;
  padding-top: 8px;
}

.test-collapse-link {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-soft);
  background: none;
  border: 1px solid var(--ink-soft);
  border-radius: 2px;
  padding: 8px 16px;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.test-collapse-link:hover {
  background: var(--ink-soft);
  color: var(--bg);
  border-color: var(--ink-soft);
}

.test-header {
  margin: 0;
  padding-bottom: 28px;
}

.test-eyebrow {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.test-eyebrow::before {
  content: '';
  width: 32px;
  height: 1px;
  background: var(--ink-mute);
}

.test-meta-block {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
  justify-content: flex-start;
  align-items: flex-start;
}

.test-meta-item {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 2px;
  padding: 12px 22px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.test-meta-icon {
  font-size: 16px;
  color: var(--ink-mute);
  line-height: 1;
}

.test-title {
  font-family: 'Fraunces', serif;
  font-size: clamp(40px, 6vw, 72px);
  font-weight: 300;
  line-height: 0.95;
  letter-spacing: -0.03em;
  margin-bottom: 22px;
  font-variation-settings: "opsz" 144;
}

.test-title em {
  font-style: italic;
  font-weight: 400;
}

.test-intro {
  font-family: 'Fraunces', serif;
  font-size: 19px;
  font-weight: 300;
  font-style: italic;
  color: var(--ink-soft);
  max-width: 680px;
  line-height: 1.5;
  margin-bottom: 12px;
}

.test-intro-hint {
  font-family: 'Manrope', sans-serif;
  font-size: 13px;
  font-weight: 400;
  color: var(--ink-mute);
  max-width: 680px;
  line-height: 1.5;
  margin-bottom: 28px;
}

/* Progress sticky */
.test-progress {
  position: sticky;
  top: var(--nav-h);
  background: rgba(244, 241, 234, 0.97);
  backdrop-filter: blur(12px);
  padding: 14px 0 12px;
  z-index: 90;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--line);
}

.test-progress-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 10px;
}

.test-progress-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-mute);
}

.test-progress-count {
  font-family: 'Fraunces', serif;
  font-size: 17px;
  font-weight: 400;
  color: var(--ink);
}

.test-progress-count em {
  font-style: italic;
  color: var(--ink-mute);
  font-weight: 300;
}

.test-progress-bar {
  height: 3px;
  background: var(--bg-soft);
  border-radius: 2px;
  overflow: hidden;
}

.test-progress-fill {
  height: 100%;
  background: var(--ink);
  width: 0%;
  transition: width 0.55s var(--ease-out-expo);
}

/* Questions list */
.questions-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
}

.question-card {
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 24px;
  align-items: start;
}

.question-card:last-child { border-bottom: none; }

.question-number {
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-mute);
  letter-spacing: 0.05em;
  padding-top: 6px;
  min-width: 36px;
}

.question-card.answered .question-number { color: var(--ink); }

.question-content {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.question-text {
  font-family: 'Fraunces', serif;
  font-size: 20px;
  font-weight: 400;
  color: var(--ink);
  line-height: 1.4;
  letter-spacing: -0.005em;
}

.pergunta-respondida .question-text {
  opacity: 0.4;
}

.scale {
  display: flex;
  align-items: center;
  gap: 0;
}

.scale-buttons {
  display: flex;
  gap: 6px;
  flex: 1;
  justify-content: space-between;
}

.scale-btn {
  flex: 1;
  min-width: 0;
  height: 44px;
  padding: 0 4px;
  border: 1px solid var(--line);
  background: var(--paper);
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-mute);
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
  border-radius: 2px;
  white-space: nowrap;
}

.scale-btn:hover {
  border-color: var(--ink-soft);
  color: var(--ink);
  background: var(--bg-soft);
}

.scale-btn[data-score="0"] { background: #f5c8c8; border-color: #e8b0b0; color: #8a3a3a; }
.scale-btn[data-score="1"] { background: #f5dece; border-color: #e8c8b0; color: #8a5a38; }
.scale-btn[data-score="3"] { background: var(--bg-soft); border-color: var(--line); color: var(--ink-mute); }
.scale-btn[data-score="4"] { background: #d8edda; border-color: #b8d8bc; color: #3d6e48; }
.scale-btn[data-score="5"] { background: #c5dfca; border-color: #9ec4a4; color: #2d5e38; }

.scale-btn[data-score="0"]:hover { background: #eeb8b8; border-color: #d89898; color: #6e2a2a; }
.scale-btn[data-score="1"]:hover { background: #eecebe; border-color: #d8b098; color: #6e4428; }
.scale-btn[data-score="3"]:hover { background: var(--line); border-color: var(--ink-mute); color: var(--ink-soft); }
.scale-btn[data-score="4"]:hover { background: #c5e0c8; border-color: #98c49e; color: #2d5438; }
.scale-btn[data-score="5"]:hover { background: #aed0b5; border-color: #7aaa84; color: #1e4828; }

.scale-btn[data-score="0"].selected { background: #ad6666; border-color: #9a4d4d; color: #fff; }
.scale-btn[data-score="1"].selected { background: #ad8360; border-color: #9a6d46; color: #fff; }
.scale-btn[data-score="3"].selected { background: #6e6960; border-color: #554f46; color: #fff; }
.scale-btn[data-score="4"].selected { background: #4b765a; border-color: #3b6046; color: #fff; }
.scale-btn[data-score="5"].selected { background: #316242; border-color: #224d33; color: #fff; }

/* CTA */
.test-actions {
  margin-top: 40px;
  display: flex;
  gap: 16px;
  align-items: center;
  flex-wrap: wrap;
}

.test-cta {
  font-family: 'Fraunces', serif;
  font-size: 19px;
  font-weight: 400;
  background: var(--ink);
  color: var(--bg);
  border: none;
  padding: 18px 36px;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
  letter-spacing: -0.01em;
  border-radius: 2px;
}

.test-cta:hover:not(:disabled) {
  background: var(--c1);
  transform: translateY(-1px);
}

.test-cta:active:not(:disabled) {
  transform: scale(0.97);
  transition: transform 0.1s ease-out;
}

.test-cta:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.test-cta-secondary {
  background: transparent;
  border: 1px solid var(--ink);
  color: var(--ink);
  padding: 17px 32px;
  font-size: 16px;
}

.test-cta-secondary:hover:not(:disabled) {
  background: var(--ink);
  color: var(--bg);
  transform: translateY(-1px);
}

.test-actions-hint {
  font-family: 'Fraunces', serif;
  font-size: 15px;
  font-style: italic;
  color: var(--ink-mute);
}

/* Results */
.results {
  margin-top: 56px;
  display: none;
}

.results.visible {
  display: block;
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.9s var(--ease-out-expo), transform 0.9s var(--ease-out-expo);
}

@starting-style {
  .results.visible {
    opacity: 0;
    transform: translateY(48px);
  }
}

.results-header {
  text-align: left;
  padding: 40px 0 32px;
  margin-bottom: 36px;
  border-bottom: 1px solid var(--line);
}

.results-eyebrow {
  font-family: 'Fraunces', serif;
  font-size: clamp(40px, 6vw, 64px);
  font-weight: 300;
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--ink);
  margin-bottom: 20px;
  font-variation-settings: "opsz" 144;
}

.results-subtitle {
  font-family: 'Manrope', sans-serif;
  font-size: 16px;
  font-style: normal;
  color: var(--ink-soft);
  margin: 0;
  line-height: 1.6;
}

/* Calibration warning */
.calibration {
  border-top: 2px solid var(--c7);
  padding: 22px 28px;
  margin-bottom: 32px;
  display: none;
}

.calibration.visible { display: block; }

.calibration-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin-bottom: 8px;
}

.calibration-text {
  font-family: 'Manrope', sans-serif;
  font-size: 15px;
  font-weight: 400;
  line-height: 1.6;
  color: var(--ink-soft);
}

.calibration-text em { font-style: italic; }

/* Top 3 */
.top-3 {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 56px;
}

.result-row {
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  gap: 24px;
  align-items: center;
  padding: 24px 28px;
  background: var(--paper);
  border: 1px solid var(--line);
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.result-row:hover {
  transform: translateX(4px);
  border-color: var(--ink-soft);
}

.result-row.rank-1 { padding: 32px; }

.result-rank {
  font-family: 'Fraunces', serif;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-mute);
  letter-spacing: 0.05em;
  font-style: italic;
  min-width: 60px;
}

.result-row.rank-1 .result-rank { font-size: 18px; }

.result-content {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
}

.result-name-row {
  display: flex;
  align-items: baseline;
  gap: 14px;
  flex-wrap: wrap;
}

.result-number {
  font-family: 'Fraunces', serif;
  font-size: 28px;
  font-weight: 300;
  line-height: 1;
}

.result-row.rank-1 .result-number { font-size: 44px; }

.result-name {
  font-family: 'Fraunces', serif;
  font-size: 22px;
  font-weight: 400;
  font-style: italic;
}

.result-row.rank-1 .result-name { font-size: 32px; }

.result-bar-track {
  height: 6px;
  background: var(--bg-soft);
  border-radius: 3px;
  overflow: hidden;
}

.result-row.rank-1 .result-bar-track { height: 8px; }

.result-bar-fill {
  height: 100%;
  width: 0;
  transition: width 1s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.result-score {
  font-family: 'JetBrains Mono', monospace;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
  letter-spacing: 0.05em;
  white-space: nowrap;
  text-align: right;
}

.result-row.rank-1 .result-score { font-size: 16px; }

.result-score em {
  color: var(--ink-mute);
  font-style: normal;
  font-weight: 400;
}

.result-arrow {
  font-family: 'Fraunces', serif;
  font-size: 28px;
  color: var(--ink-mute);
  font-style: italic;
  line-height: 1;
}

.result-row:hover .result-arrow { color: var(--ink); }

/* Cores por tipo */
.result-row[data-type="1"] .result-bar-fill { background: var(--c1); }
.result-row[data-type="1"] .result-number { color: var(--c1); }
.result-row[data-type="2"] .result-bar-fill { background: var(--c2); }
.result-row[data-type="2"] .result-number { color: var(--c2); }
.result-row[data-type="3"] .result-bar-fill { background: var(--c3); }
.result-row[data-type="3"] .result-number { color: var(--c3); }
.result-row[data-type="4"] .result-bar-fill { background: var(--c4); }
.result-row[data-type="4"] .result-number { color: var(--c4); }
.result-row[data-type="5"] .result-bar-fill { background: var(--c5); }
.result-row[data-type="5"] .result-number { color: var(--c5); }
.result-row[data-type="6"] .result-bar-fill { background: var(--c6); }
.result-row[data-type="6"] .result-number { color: var(--c6); }
.result-row[data-type="7"] .result-bar-fill { background: var(--c7); }
.result-row[data-type="7"] .result-number { color: var(--c7); }
.result-row[data-type="8"] .result-bar-fill { background: var(--c8); }
.result-row[data-type="8"] .result-number { color: var(--c8); }
.result-row[data-type="9"] .result-bar-fill { background: var(--c9); }
.result-row[data-type="9"] .result-number { color: var(--c9); }

/* Demais tipos */
.results-others { margin-bottom: 48px; }

.results-others-title {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink);
  margin-bottom: 18px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}

.others-grid {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.other-row {
  display: grid;
  grid-template-columns: 240px 1fr 80px;
  gap: 16px;
  align-items: center;
  padding: 10px 0;
  text-decoration: none;
  color: inherit;
  transition: opacity 0.2s;
}

.other-row:hover { opacity: 0.7; }

.other-name {
  font-family: 'Fraunces', serif;
  font-size: 16px;
  color: var(--ink-soft);
}

.other-name em { font-style: italic; }

.other-name strong {
  font-weight: 500;
  color: var(--ink);
  margin-right: 8px;
}

.other-bar-track {
  height: 4px;
  background: var(--bg-soft);
  border-radius: 2px;
  overflow: hidden;
}

.other-bar-fill {
  height: 100%;
  width: 0;
  transition: width 1s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.other-row[data-type="1"] .other-bar-fill { background: var(--c1); opacity: 0.6; }
.other-row[data-type="2"] .other-bar-fill { background: var(--c2); opacity: 0.6; }
.other-row[data-type="3"] .other-bar-fill { background: var(--c3); opacity: 0.6; }
.other-row[data-type="4"] .other-bar-fill { background: var(--c4); opacity: 0.6; }
.other-row[data-type="5"] .other-bar-fill { background: var(--c5); opacity: 0.6; }
.other-row[data-type="6"] .other-bar-fill { background: var(--c6); opacity: 0.6; }
.other-row[data-type="7"] .other-bar-fill { background: var(--c7); opacity: 0.6; }
.other-row[data-type="8"] .other-bar-fill { background: var(--c8); opacity: 0.6; }
.other-row[data-type="9"] .other-bar-fill { background: var(--c9); opacity: 0.6; }

.other-score {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  color: var(--ink-mute);
  letter-spacing: 0.05em;
  white-space: nowrap;
  text-align: right;
}

/* Refazer */
.results-actions {
  text-align: center;
  padding: 32px 0 8px;
  border-top: 1px solid var(--line);
}

#downloadPdfBtn {
  display: block;
  margin: 0 auto 2.5rem;
}

.results-actions-hint {
  font-family: 'Fraunces', serif;
  font-size: 15px;
  font-style: italic;
  color: var(--ink-mute);
  margin-bottom: 16px;
}

/* Nav: link do teste */
.nav-grid a.nav-test {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink);
  font-weight: 500;
  padding: 8px 14px;
  margin-left: 12px;
  border: 1px solid var(--ink);
  border-radius: 2px;
}

.nav-grid a.nav-test:hover {
  background: var(--ink);
  color: var(--bg);
  border-bottom-color: var(--ink);
}

/* ===== RESPONSIVO ===== */
@media (max-width: 820px) {
  :root { --nav-h: 62px; }
  .container { padding: 0 20px; }
  header.hero { padding-top: var(--nav-h); }
  .type-header {
    grid-template-columns: auto auto;
    grid-template-rows: auto auto;
    justify-content: space-between;
    gap: 20px 16px;
  }
  .type-number {
    font-size: 64px;
    grid-row: 1;
    grid-column: 1;
  }
  .type-illustration {
    width: 104px;
    height: 104px;
    grid-row: 1;
    grid-column: 2;
    align-self: center;
  }
  .type-titles {
    grid-row: 2;
    grid-column: 1 / -1;
  }
  .type-titles h2 { font-size: 36px; }
  .type-tagline { font-size: 17px; }
  .core { grid-template-columns: 1fr; }
  .core > div { padding: 1.25rem; }
  .sections { grid-template-columns: 1fr; gap: 32px; }
  .nav-grid { grid-template-columns: repeat(9, 1fr); }
  .nav-grid a { font-size: 16px; padding: 6px 2px; }
  .nav-grid a .nav-label { display: none; }
  .intro-box { padding: 28px 0; grid-template-columns: 1fr; gap: 20px; }
  .joke { padding: 24px 20px; }
  .joke-quote { font-size: 19px; }

  /* Teste responsivo */
  .question-card {
    grid-template-columns: 1fr;
    gap: 14px;
    padding: 24px 0;
  }
  .question-text { font-size: 17px; }
  .scale {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }
  .scale-buttons { gap: 4px; }
  .scale-btn { font-size: 9px; height: 44px; }
  .test-progress { top: var(--nav-h); padding: 12px 0 10px; }
  .test-progress-count { font-size: 15px; }
  .result-row {
    padding: 18px 20px;
    grid-template-columns: 1fr auto;
    gap: 14px;
  }
  .result-row.rank-1 { padding: 22px; }
  .result-rank, .result-arrow { display: none; }
  .result-row.rank-1 .result-name { font-size: 24px; }
  .result-row.rank-1 .result-number { font-size: 36px; }
  .result-name { font-size: 18px; }
  .result-number { font-size: 22px; }
  .result-content { grid-column: 1 / -1; }
  .result-score { grid-column: 1 / -1; text-align: left; }
  .other-row { grid-template-columns: 1fr 60px; gap: 8px; }
  .other-bar-track { grid-column: 1 / -1; }
  .test-cta { font-size: 17px; padding: 16px 28px; }
  .test-cta-secondary { padding: 15px 24px; font-size: 15px; }
  .nav-grid a.nav-test { display: none; }

  /* Mandala responsivo */
  .mandala-section {
    grid-template-columns: 1fr;
    padding: 44px 0 52px;
    gap: 32px;
  }
  .mandala-wrapper { max-width: 320px; }
  .mandala-intro-text p { font-size: 18px; }

  /* Tipos */
  .types-section-header { flex-direction: column; gap: 12px; }
}

@media (max-width: 768px) {
  header.hero {
    height: auto;
    min-height: calc(100dvh - var(--nav-h) - 48px);
  }

  header.hero h1.title {
    font-size: clamp(1.8rem, 7vw, 2.6rem);
  }

  .type-card { padding: 0 24px 1rem; }

  /* Mandala: restaura padding horizontal interno (820px zerara para o layout em coluna única) */
  .mandala-section {
    padding-left: 20px;
    padding-right: 20px;
  }
}


/* ================================================================
   ANIMAÇÕES
   ================================================================ */

/* ── Keyframes ── */

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

@keyframes slideDown {
  from { opacity: 0; transform: translateY(-10px); }
  to   { opacity: 1; transform: translateY(0); }
}


@keyframes breathe {
  0%, 100% { box-shadow: 0 0 0 0 rgba(26, 23, 20, 0); }
  50%       { box-shadow: 0 0 0 10px rgba(26, 23, 20, 0.06); }
}

@keyframes answerFlash {
  0%   { background-color: transparent; }
  25%  { background-color: rgba(26, 23, 20, 0.03); }
  100% { background-color: transparent; }
}

/* ── Hero entrance — staggered fade up ── */

header.hero h1.title {
  animation: fadeUp 1s var(--ease-out-expo) 0.15s both;
}

header.hero .subtitle {
  animation: fadeUp 0.8s var(--ease-out-expo) 0.38s both;
}

/* ── Nav slide-in — one by one ── */

nav.types-nav .nav-grid a {
  animation: slideDown 0.5s var(--ease-out-expo) both;
}

nav.types-nav .nav-grid a[data-type="1"] { animation-delay: 0.10s; }
nav.types-nav .nav-grid a[data-type="2"] { animation-delay: 0.17s; }
nav.types-nav .nav-grid a[data-type="3"] { animation-delay: 0.24s; }
nav.types-nav .nav-grid a[data-type="4"] { animation-delay: 0.31s; }
nav.types-nav .nav-grid a[data-type="5"] { animation-delay: 0.38s; }
nav.types-nav .nav-grid a[data-type="6"] { animation-delay: 0.45s; }
nav.types-nav .nav-grid a[data-type="7"] { animation-delay: 0.52s; }
nav.types-nav .nav-grid a[data-type="8"] { animation-delay: 0.59s; }
nav.types-nav .nav-grid a[data-type="9"] { animation-delay: 0.66s; }
nav.types-nav .nav-grid a.nav-test       { animation-delay: 0.74s; }

/* ── Type card scroll reveal — JS adds [data-scroll-animate] and .is-visible ── */

.type-card[data-scroll-animate] {
  opacity: 0;
  transform: translateY(36px);
  transition:
    opacity  0.9s var(--ease-out-expo),
    transform 0.9s var(--ease-out-expo);
  will-change: opacity, transform;
}

.type-card[data-scroll-animate].is-visible {
  opacity: 1;
  transform: translateY(0);
  will-change: auto;
  transition: transform 0.3s var(--ease-out-quart), box-shadow 0.3s var(--ease-out-quart);
}

/* ── illustration hover ── */

.type-symbol-wrap img {
  transition: transform 0.65s var(--ease-out-quart);
}

@media (hover: hover) and (pointer: fine) {
  .type-illustration:hover .type-symbol-wrap img {
    transform: rotate(5deg) scale(1.04);
  }
}

/* ── Type card hover — lift + type shadow + number brightness ── */

@media (hover: hover) and (pointer: fine) {
  .t1.type-card:hover { transform: translateY(-4px); box-shadow: 0 12px 48px rgba(79, 70, 229, 0.15); }
  .t2.type-card:hover { transform: translateY(-4px); box-shadow: 0 12px 48px rgba(232, 68, 90, 0.15); }
  .t3.type-card:hover { transform: translateY(-4px); box-shadow: 0 12px 48px rgba(245, 158, 11, 0.15); }
  .t4.type-card:hover { transform: translateY(-4px); box-shadow: 0 12px 48px rgba(124, 58, 237, 0.15); }
  .t5.type-card:hover { transform: translateY(-4px); box-shadow: 0 12px 48px rgba(8, 145, 178, 0.15); }
  .t6.type-card:hover { transform: translateY(-4px); box-shadow: 0 12px 48px rgba(5, 150, 105, 0.15); }
  .t7.type-card:hover { transform: translateY(-4px); box-shadow: 0 12px 48px rgba(234, 88, 12, 0.15); }
  .t8.type-card:hover { transform: translateY(-4px); box-shadow: 0 12px 48px rgba(220, 38, 38, 0.15); }
  .t9.type-card:hover { transform: translateY(-4px); box-shadow: 0 12px 48px rgba(101, 163, 13, 0.15); }

  .type-card:hover .type-number { opacity: 0.9; transform: scale(1.05); }

  .t1 .section-block:hover { background: rgba(79, 70, 229, 0.06); }
  .t2 .section-block:hover { background: rgba(232, 68, 90, 0.06); }
  .t3 .section-block:hover { background: rgba(245, 158, 11, 0.06); }
  .t4 .section-block:hover { background: rgba(124, 58, 237, 0.06); }
  .t5 .section-block:hover { background: rgba(8, 145, 178, 0.06); }
  .t6 .section-block:hover { background: rgba(5, 150, 105, 0.06); }
  .t7 .section-block:hover { background: rgba(234, 88, 12, 0.06); }
  .t8 .section-block:hover { background: rgba(220, 38, 38, 0.06); }
  .t9 .section-block:hover { background: rgba(101, 163, 13, 0.06); }
}

/* ── Start button — breathes 3× then stops ── */

.test-start-btn {
  animation: breathe 3.5s ease-in-out 1.2s 3;
}

/* ── Question answered — brief flash confirmation ── */

.question-card.answered {
  animation: answerFlash 0.45s ease forwards;
}

/* ── Gate de senha ── */

.gate-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: #1e1b16;
  background-image:
    radial-gradient(ellipse at 18% 38%, rgba(79, 70, 229, 0.18), transparent 50%),
    radial-gradient(ellipse at 82% 65%, rgba(5, 150, 105, 0.10), transparent 50%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  transition: opacity 0.55s cubic-bezier(0.16, 1, 0.3, 1);
}

.gate-overlay.gate-leaving {
  opacity: 0;
  pointer-events: none;
}

.gate-overlay.gate-leaving .gate-box {
  transform: translateY(-20px) scale(0.96);
  opacity: 0;
}

.gate-overlay.hidden {
  display: none;
}

.gate-bg-mandala {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  overflow: hidden;
  opacity: 0.09;
}

.gate-bg-mandala svg {
  width: min(720px, 90vw);
  height: auto;
}

.gate-box {
  position: relative;
  z-index: 1;
  background: var(--paper);
  border-radius: 24px;
  padding: 52px 48px 48px;
  max-width: 460px;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 32px;
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(255, 255, 255, 0.05);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.35s ease;
}

.gate-header {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.gate-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-mute);
}

.gate-title {
  font-family: 'Fraunces', serif;
  font-size: clamp(32px, 5vw, 44px);
  font-weight: 300;
  line-height: 1.1;
  color: var(--ink);
  margin: 0;
  font-variation-settings: "opsz" 144;
}

.gate-sub {
  font-family: 'Manrope', sans-serif;
  font-size: 14px;
  color: var(--ink-mute);
  line-height: 1.5;
  margin: 0;
}

.gate-fields {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.gate-fields.shake {
  animation: gateShake 0.4s ease;
}

@keyframes gateShake {
  0%, 100% { transform: translateX(0); }
  20%       { transform: translateX(-8px); }
  40%       { transform: translateX(8px); }
  60%       { transform: translateX(-6px); }
  80%       { transform: translateX(6px); }
}

.gate-field-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.gate-field-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-mute);
  font-weight: 500;
}

.gate-input {
  width: 100%;
  padding: 14px 18px;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  font-family: 'Manrope', sans-serif;
  font-size: 16px;
  color: var(--ink);
  background: white;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.gate-input:focus {
  border-color: var(--ink-soft);
  box-shadow: 0 0 0 3px rgba(26, 23, 20, 0.07);
}

.gate-input::placeholder {
  color: rgba(26, 23, 20, 0.2);
}

.gate-input-wrap {
  position: relative;
}

.gate-input-wrap .gate-input {
  padding-right: 46px;
}

.gate-eye-btn {
  position: absolute;
  right: 13px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  color: var(--ink-mute);
  opacity: 0.45;
  transition: opacity 0.2s;
  display: flex;
  align-items: center;
}

.gate-eye-btn:hover { opacity: 0.85; }

.gate-btn {
  width: 100%;
  padding: 16px;
  background: var(--ink);
  color: white;
  border: none;
  border-radius: 10px;
  font-family: 'Fraunces', serif;
  font-size: 20px;
  font-weight: 400;
  letter-spacing: -0.01em;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
  margin-top: 4px;
}

.gate-btn:hover {
  background: #5a4f78;
  transform: translateY(-1px);
}

.gate-btn:active {
  transform: scale(0.98);
}

.gate-error {
  font-family: 'Manrope', sans-serif;
  font-size: 13px;
  color: var(--c8);
  margin: 0;
  display: none;
}

.gate-error.visible { display: block; }

.gate-footer-note {
  font-family: 'Manrope', sans-serif;
  font-size: 13.5px;
  color: var(--ink-mute);
  text-align: center;
  line-height: 1.5;
  margin: 0;
  font-style: italic;
}

/* ── Reduced motion — all animations cut to instant ── */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    animation-delay: 0ms !important;
  }

  .type-card[data-scroll-animate] {
    opacity: 1;
    transform: none;
  }
}
