:root {
  --riasec-r: var(--nds-color-riasec-r, hsl(15 60% 55%));
  --riasec-i: var(--nds-color-riasec-i, hsl(45 70% 50%));
  --riasec-a: var(--nds-color-riasec-a, hsl(150 25% 55%));
  --riasec-s: var(--nds-color-riasec-s, hsl(210 40% 55%));
  --riasec-e: var(--nds-color-riasec-e, hsl(310 30% 45%));
  --riasec-c: var(--nds-color-riasec-c, hsl(30 35% 55%));
  --riasec-r-soft: var(--nds-color-riasec-r-soft, hsl(15 60% 93%));
  --riasec-i-soft: var(--nds-color-riasec-i-soft, hsl(45 70% 93%));
  --riasec-a-soft: var(--nds-color-riasec-a-soft, hsl(150 25% 93%));
  --riasec-s-soft: var(--nds-color-riasec-s-soft, hsl(210 40% 93%));
  --riasec-e-soft: var(--nds-color-riasec-e-soft, hsl(310 30% 93%));
  --riasec-c-soft: var(--nds-color-riasec-c-soft, hsl(30 35% 93%));
  --holland-paper: var(--paper);
  --holland-surface: var(--surface);
}

@keyframes hollandPulseSoft {
  0%, 100% { transform: scale(1); opacity: 0.85; }
  50% { transform: scale(1.08); opacity: 1; }
}

.display-h em,
.section-head h2 em,
.cta-block h2 em {
  color: inherit;
  font-style: normal;
  font-weight: inherit;
}

.holland-type-card,
.holland-result-card,
.holland-step {
  overflow-wrap: anywhere;
  word-break: normal;
}

.holland-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--riasec-r);
  animation: hollandPulseSoft 2.1s ease-in-out infinite;
}

#top .display-h {
  white-space: normal;
  text-wrap: balance;
}

.holland-types-grid {
  margin-top: 28px;
  display: grid;
  gap: 14px;
  grid-template-columns: 1fr;
}

#types .section-head h2 {
  max-width: 15ch;
}

#types .section-head .lead {
  max-width: 62ch;
}

.holland-type-card {
  border: 1px solid color-mix(in oklab, var(--hair) 78%, white);
  border-radius: 20px;
  padding: 22px;
  min-height: 260px;
  background:
    linear-gradient(180deg, color-mix(in oklab, var(--surface) 76%, white / 74%), color-mix(in oklab, var(--surface) 88%, transparent)),
    color-mix(in oklab, var(--surface) 90%, transparent);
  backdrop-filter: blur(14px) saturate(120%);
  -webkit-backdrop-filter: blur(14px) saturate(120%);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease, background-color .25s ease;
  position: relative;
  overflow: hidden;
  box-shadow:
    inset 0 1px 0 color-mix(in oklab, white 72%, transparent),
    0 12px 24px -22px color-mix(in oklab, var(--ink) 24%, transparent);
}

.holland-type-card:hover {
  transform: translateY(-4px);
  border-color: color-mix(in oklab, var(--ink) 10%, var(--hair));
  box-shadow:
    inset 0 1px 0 color-mix(in oklab, white 76%, transparent),
    0 18px 32px -24px color-mix(in oklab, var(--ink) 28%, transparent);
}

.holland-type-card .id {
  font-family: var(--nds-typo-font-heading);
  font-size: 60px;
  line-height: 1;
  font-weight: 300;
  letter-spacing: -0.04em;
}

.holland-type-card h3 {
  margin-top: 10px;
  font-family: var(--nds-typo-font-heading);
  font-size: 20px;
  line-height: 1.15;
  font-weight: 500;
}

.holland-type-card p {
  margin-top: 8px;
  color: var(--ink-2);
  font-size: 15px;
  line-height: 1.56;
}

.holland-type-card::after {
  content: "";
  position: absolute;
  pointer-events: none;
}

.holland-type-card::after {
  width: 180px;
  height: 180px;
  right: -70px;
  top: -70px;
  border-radius: 50%;
  filter: blur(22px);
  opacity: 0.08;
}

.holland-type-card--r {
  border-color: color-mix(in oklab, var(--riasec-r) 22%, var(--hair));
  background-color: color-mix(in oklab, var(--riasec-r) 7%, var(--surface));
}
.holland-type-card--i {
  border-color: color-mix(in oklab, var(--riasec-i) 22%, var(--hair));
  background-color: color-mix(in oklab, var(--riasec-i) 7%, var(--surface));
}
.holland-type-card--a {
  border-color: color-mix(in oklab, var(--riasec-a) 22%, var(--hair));
  background-color: color-mix(in oklab, var(--riasec-a) 7%, var(--surface));
}
.holland-type-card--s {
  border-color: color-mix(in oklab, var(--riasec-s) 22%, var(--hair));
  background-color: color-mix(in oklab, var(--riasec-s) 7%, var(--surface));
}
.holland-type-card--e {
  border-color: color-mix(in oklab, var(--riasec-e) 22%, var(--hair));
  background-color: color-mix(in oklab, var(--riasec-e) 7%, var(--surface));
}
.holland-type-card--c {
  border-color: color-mix(in oklab, var(--riasec-c) 22%, var(--hair));
  background-color: color-mix(in oklab, var(--riasec-c) 7%, var(--surface));
}

.holland-type-card--r::after { background: var(--riasec-r); }
.holland-type-card--i::after { background: var(--riasec-i); }
.holland-type-card--a::after { background: var(--riasec-a); }
.holland-type-card--s::after { background: var(--riasec-s); }
.holland-type-card--e::after { background: var(--riasec-e); }
.holland-type-card--c::after { background: var(--riasec-c); }

.holland-type-card--r .id { color: var(--riasec-r); }
.holland-type-card--i .id { color: var(--riasec-i); }
.holland-type-card--a .id { color: var(--riasec-a); }
.holland-type-card--s .id { color: var(--riasec-s); }
.holland-type-card--e .id { color: var(--riasec-e); }
.holland-type-card--c .id { color: var(--riasec-c); }

.holland-type-card .landing-pill-row { margin-top: 14px; }

.holland-steps {
  margin-top: 22px;
}

.holland-step {
  padding: 16px;
}

.holland-step h3 {
  margin-top: 8px;
  font-family: "Unbounded", sans-serif;
  font-size: 18px;
  line-height: 1.15;
  font-weight: 400;
  letter-spacing: -0.02em;
}

.holland-step p {
  margin-top: 8px;
  color: var(--ink-2);
  font-size: 14px;
  line-height: 1.56;
}

.holland-result-grid {
  margin-top: 30px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

#result .section-head .lead {
  max-width: 60ch;
}

.holland-result-list {
  margin-top: 18px;
  display: grid;
  gap: 10px;
  list-style: none;
  max-width: 62ch;
}

.holland-result-list li {
  display: grid;
  grid-template-columns: 10px minmax(0, 1fr);
  grid-template-rows: auto auto;
  column-gap: 10px;
  align-items: start;
  color: var(--ink-2);
  font-size: 15px;
  line-height: 1.56;
}

.holland-result-list li strong {
  color: var(--ink);
  display: block;
  grid-column: 2;
  grid-row: 1;
}

.holland-result-list li span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-top: 8px;
  flex: 0 0 auto;
  grid-column: 1;
  grid-row: 1 / span 2;
}

.holland-result-list li:nth-child(1) span { background: var(--riasec-e); }
.holland-result-list li:nth-child(2) span { background: var(--riasec-i); }
.holland-result-list li:nth-child(3) span { background: var(--riasec-a); }

.holland-result-list .holland-result-text {
  display: block;
  min-width: 0;
  grid-column: 2;
  grid-row: 2;
}

.holland-result-grid .landing-pill-row { margin-top: 14px; }

.holland-result-grid .landing-pill {
  background: color-mix(in oklab, var(--surface) 86%, white);
}

.tag-i { border-color: color-mix(in oklab, var(--riasec-i) 26%, var(--hair)); }
.tag-a { border-color: color-mix(in oklab, var(--riasec-a) 26%, var(--hair)); }
.tag-s { border-color: color-mix(in oklab, var(--riasec-s) 26%, var(--hair)); }

.holland-result-card {
  border: 1px solid var(--hair);
  border-radius: 24px;
  padding: 22px;
  background: color-mix(in oklab, var(--surface) 92%, white);
}

.holland-result-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.holland-result-meta .person {
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  color: var(--ink-3);
}

.holland-profile-boxes {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin-top: 10px;
}

.holland-profile-box {
  border-radius: 16px;
  border: 1px solid var(--hair);
  padding: 14px;
  background: color-mix(in oklab, var(--surface) 92%, white);
}

.holland-profile-box .top {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  align-items: flex-start;
}

.holland-profile-box .letter {
  font-family: var(--nds-typo-font-heading);
  font-size: 44px;
  line-height: 0.9;
  font-weight: 300;
  letter-spacing: -0.04em;
}

.holland-profile-box .score {
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  color: var(--ink-2);
}

.holland-profile-box .name {
  margin-top: 3px;
  font-size: clamp(9px, 0.8vw, 12px);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--ink-2);
  font-family: "JetBrains Mono", monospace;
  white-space: nowrap;
}

.holland-profile-box .bar {
  margin-top: 10px;
  height: 8px;
  border-radius: 999px;
  background: color-mix(in oklab, var(--ink) 8%, white);
  overflow: hidden;
}

.holland-profile-box .bar span {
  display: block;
  height: 100%;
  border-radius: inherit;
}

.box-i { border-color: color-mix(in oklab, var(--riasec-i) 24%, var(--hair)); }
.box-a { border-color: color-mix(in oklab, var(--riasec-a) 24%, var(--hair)); }
.box-s { border-color: color-mix(in oklab, var(--riasec-s) 24%, var(--hair)); }

.box-i .letter { color: var(--riasec-i); }
.box-a .letter { color: var(--riasec-a); }
.box-s .letter { color: var(--riasec-s); }

.box-i .bar span { background: var(--riasec-i); }
.box-a .bar span { background: var(--riasec-a); }
.box-s .bar span { background: var(--riasec-s); }

.holland-result-note {
  margin-top: 16px;
  border-top: 1px dashed var(--line);
  padding-top: 14px;
  color: var(--ink-2);
  font-size: 14px;
  line-height: 1.56;
}

@media (min-width: 900px) {
  .holland-types-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .holland-steps {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 28px;
  }

  .holland-result-grid {
    grid-template-columns: 1fr 1.1fr;
    align-items: start;
  }

  .holland-profile-boxes {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 1160px) {
  .holland-types-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 740px) {
  .section-head h2 { text-wrap: balance; }
}

@media (prefers-reduced-motion: reduce) {
  .holland-dot {
    animation: none !important;
  }

  .holland-type-card {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
}
