:root {
  color-scheme: dark;
  --ink: #f7fbff;
  --muted: #b8c9d6;
  --soft: rgba(247, 251, 255, 0.76);
  --night: #021027;
  --deep: #031a36;
  --panel: rgba(5, 24, 50, 0.78);
  --panel-strong: rgba(8, 35, 70, 0.94);
  --line: rgba(153, 255, 255, 0.22);
  --cyan: #99ffff;
  --cyan-strong: #19d7e6;
  --gold: #ffd35a;
  --lime: #83e37e;
  --rose: #ff7d9a;
  --violet: #b99cff;
  --orange: #ffa75c;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.38);
  --radius: 8px;
  --max: 1180px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  background:
    linear-gradient(180deg, rgba(2, 16, 39, 0.88), rgba(2, 16, 39, 0.96) 34%, #020817 100%),
    url("https://berxama.com/img/berxama-bg.jpg") center top / cover fixed,
    var(--night);
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 12% 18%, rgba(153, 255, 255, 0.18) 0 1px, transparent 2px),
    radial-gradient(circle at 80% 10%, rgba(255, 211, 90, 0.18) 0 1px, transparent 2px),
    radial-gradient(circle at 60% 72%, rgba(131, 227, 126, 0.13) 0 1px, transparent 2px),
    linear-gradient(120deg, rgba(153, 255, 255, 0.08), transparent 38%, rgba(255, 211, 90, 0.06));
  background-size: 170px 170px, 220px 220px, 260px 260px, 100% 100%;
  opacity: 0.86;
  z-index: -2;
}

a {
  color: inherit;
}

img {
  display: block;
  max-width: 100%;
}

button,
input {
  font: inherit;
}

.skip-link {
  position: fixed;
  left: 16px;
  top: -48px;
  z-index: 50;
  padding: 10px 14px;
  background: var(--cyan);
  color: #041224;
  text-decoration: none;
  border-radius: var(--radius);
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 16px;
}

.page-shell {
  position: relative;
  isolation: isolate;
  min-height: 100svh;
}

.sky-field {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}

.sky-field span {
  position: absolute;
  left: var(--x);
  bottom: -12vh;
  width: var(--s);
  height: var(--s);
  border-radius: 999px;
  background: radial-gradient(circle, rgba(153, 255, 255, 0.9), rgba(153, 255, 255, 0.26) 45%, transparent 72%);
  box-shadow: 0 0 22px rgba(153, 255, 255, 0.45);
  animation: float-particle var(--d) linear infinite;
  animation-delay: var(--delay);
  opacity: 0.75;
}

.sky-field span:nth-child(1) { --x: 7%; --s: 3px; --d: 19s; --delay: -3s; }
.sky-field span:nth-child(2) { --x: 14%; --s: 5px; --d: 27s; --delay: -12s; }
.sky-field span:nth-child(3) { --x: 21%; --s: 4px; --d: 23s; --delay: -7s; }
.sky-field span:nth-child(4) { --x: 29%; --s: 6px; --d: 31s; --delay: -18s; }
.sky-field span:nth-child(5) { --x: 36%; --s: 3px; --d: 21s; --delay: -9s; }
.sky-field span:nth-child(6) { --x: 42%; --s: 5px; --d: 28s; --delay: -2s; }
.sky-field span:nth-child(7) { --x: 47%; --s: 4px; --d: 24s; --delay: -15s; }
.sky-field span:nth-child(8) { --x: 51%; --s: 7px; --d: 34s; --delay: -21s; }
.sky-field span:nth-child(9) { --x: 56%; --s: 3px; --d: 20s; --delay: -5s; }
.sky-field span:nth-child(10) { --x: 61%; --s: 4px; --d: 26s; --delay: -14s; }
.sky-field span:nth-child(11) { --x: 67%; --s: 5px; --d: 29s; --delay: -17s; }
.sky-field span:nth-child(12) { --x: 74%; --s: 3px; --d: 22s; --delay: -8s; }
.sky-field span:nth-child(13) { --x: 79%; --s: 6px; --d: 32s; --delay: -25s; }
.sky-field span:nth-child(14) { --x: 85%; --s: 4px; --d: 25s; --delay: -6s; }
.sky-field span:nth-child(15) { --x: 91%; --s: 5px; --d: 30s; --delay: -19s; }
.sky-field span:nth-child(16) { --x: 96%; --s: 3px; --d: 21s; --delay: -11s; }
.sky-field span:nth-child(17) { --x: 4%; --s: 6px; --d: 35s; --delay: -24s; }
.sky-field span:nth-child(18) { --x: 18%; --s: 3px; --d: 18s; --delay: -10s; }
.sky-field span:nth-child(19) { --x: 33%; --s: 4px; --d: 26s; --delay: -23s; }
.sky-field span:nth-child(20) { --x: 44%; --s: 3px; --d: 19s; --delay: -13s; }
.sky-field span:nth-child(21) { --x: 58%; --s: 6px; --d: 33s; --delay: -28s; }
.sky-field span:nth-child(22) { --x: 63%; --s: 4px; --d: 24s; --delay: -16s; }
.sky-field span:nth-child(23) { --x: 70%; --s: 3px; --d: 22s; --delay: -20s; }
.sky-field span:nth-child(24) { --x: 82%; --s: 5px; --d: 31s; --delay: -1s; }
.sky-field span:nth-child(25) { --x: 89%; --s: 3px; --d: 18s; --delay: -4s; }
.sky-field span:nth-child(26) { --x: 11%; --s: 4px; --d: 29s; --delay: -26s; }
.sky-field span:nth-child(27) { --x: 25%; --s: 5px; --d: 30s; --delay: -6s; }
.sky-field span:nth-child(28) { --x: 39%; --s: 3px; --d: 20s; --delay: -15s; }
.sky-field span:nth-child(29) { --x: 53%; --s: 4px; --d: 27s; --delay: -9s; }
.sky-field span:nth-child(30) { --x: 76%; --s: 6px; --d: 36s; --delay: -30s; }

@keyframes float-particle {
  0% {
    transform: translate3d(0, 0, 0) scale(0.7);
    opacity: 0;
  }
  12% {
    opacity: 0.88;
  }
  50% {
    transform: translate3d(18px, -58vh, 0) scale(1.4);
  }
  100% {
    transform: translate3d(-22px, -118vh, 0) scale(0.7);
    opacity: 0;
  }
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  width: min(100% - 28px, var(--max));
  margin: 0 auto;
  padding: 14px 0;
}

.site-header::before {
  content: "";
  position: absolute;
  inset: 8px -10px;
  border: 1px solid rgba(153, 255, 255, 0.15);
  border-radius: var(--radius);
  background: rgba(2, 16, 39, 0.64);
  backdrop-filter: blur(18px);
  box-shadow: 0 12px 42px rgba(0, 0, 0, 0.28);
  z-index: -1;
}

.brand-lockup {
  display: inline-flex;
  align-items: center;
  min-width: 128px;
}

.brand-lockup img {
  width: 150px;
  filter: drop-shadow(0 0 18px rgba(153, 255, 255, 0.34));
}

.nav-toggle {
  position: relative;
  display: none;
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(153, 255, 255, 0.28);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(153, 255, 255, 0.16), rgba(153, 255, 255, 0.06)),
    rgba(2, 16, 39, 0.78);
  color: var(--ink);
  cursor: pointer;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 12px 28px rgba(0, 0, 0, 0.22);
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.nav-toggle:hover,
.nav-toggle:focus-visible {
  border-color: rgba(153, 255, 255, 0.6);
  background:
    linear-gradient(180deg, rgba(153, 255, 255, 0.24), rgba(153, 255, 255, 0.08)),
    rgba(2, 16, 39, 0.9);
  transform: translateY(-1px);
}

.top-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
  min-width: 0;
  overflow-x: auto;
  scrollbar-width: none;
}

.top-nav::-webkit-scrollbar {
  display: none;
}

.top-nav a {
  flex: 0 0 auto;
  padding: 10px 11px;
  color: var(--soft);
  font-size: 0.85rem;
  line-height: 1;
  text-decoration: none;
  border-radius: 999px;
  transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.top-nav a:hover,
.top-nav a:focus-visible {
  color: var(--ink);
  background: rgba(153, 255, 255, 0.12);
  transform: translateY(-1px);
}

@media (max-width: 900px) {
  .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
    z-index: 3;
  }

  .site-header.nav-open .nav-toggle span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  .site-header.nav-open .nav-toggle span:nth-child(2) {
    opacity: 0;
  }

  .site-header.nav-open .nav-toggle span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  .top-nav {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    z-index: 2;
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 10px;
    border: 1px solid rgba(153, 255, 255, 0.22);
    border-radius: var(--radius);
    background:
      linear-gradient(180deg, rgba(8, 35, 70, 0.98), rgba(2, 16, 39, 0.96)),
      rgba(2, 16, 39, 0.96);
    box-shadow: 0 22px 70px rgba(0, 0, 0, 0.34);
    backdrop-filter: blur(18px);
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-8px) scale(0.98);
    transform-origin: top right;
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
    visibility: hidden;
  }

  .site-header.nav-open .top-nav {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0) scale(1);
    visibility: visible;
  }

  .top-nav a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    min-height: 46px;
    padding: 12px 14px;
    border: 1px solid rgba(153, 255, 255, 0.13);
    border-radius: calc(var(--radius) - 1px);
    background: rgba(153, 255, 255, 0.07);
    color: var(--ink);
    font-size: 0.92rem;
    line-height: 1.15;
    white-space: normal;
  }

  .top-nav a::after {
    content: "";
    flex: 0 0 7px;
    width: 7px;
    height: 7px;
    margin-left: 10px;
    border-top: 2px solid currentColor;
    border-right: 2px solid currentColor;
    opacity: 0.62;
    transform: rotate(45deg);
  }

  .top-nav a:hover,
  .top-nav a:focus-visible {
    background: rgba(153, 255, 255, 0.14);
    transform: translateX(2px);
  }
}

.hero {
  display: grid;
  gap: 24px;
  align-items: center;
  width: min(100% - 28px, var(--max));
  min-height: calc(100svh - 88px);
  margin: 0 auto;
  padding: 24px 0 56px;
}

.hero-copy {
  max-width: 700px;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--cyan);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 14px;
  font-size: clamp(3rem, 12vw, 7.8rem);
  line-height: 0.88;
  letter-spacing: 0;
  text-shadow: 0 0 30px rgba(153, 255, 255, 0.3), 0 12px 44px rgba(0, 0, 0, 0.45);
}

.hero-lead {
  max-width: 640px;
  margin-bottom: 20px;
  color: #e6f2f7;
  font-size: clamp(1.02rem, 2.5vw, 1.32rem);
  line-height: 1.66;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  max-width: 650px;
  margin: 0 0 22px;
}

.product-grid span {
  position: relative;
  min-height: 40px;
  padding: 11px 12px 10px 30px;
  border: 1px solid rgba(153, 255, 255, 0.18);
  border-radius: var(--radius);
  background: rgba(2, 16, 39, 0.5);
  color: var(--soft);
  font-weight: 700;
  line-height: 1.05;
  overflow: hidden;
}

.product-grid span::before {
  content: "";
  position: absolute;
  left: 12px;
  top: 50%;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 16px rgba(255, 211, 90, 0.7);
  transform: translateY(-50%);
}

.product-grid span:nth-child(3n + 2)::before {
  background: var(--cyan);
  box-shadow: 0 0 16px rgba(153, 255, 255, 0.7);
}

.product-grid span:nth-child(3n)::before {
  background: var(--lime);
  box-shadow: 0 0 16px rgba(131, 227, 126, 0.7);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.link-button,
.sample-button,
.submit-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 13px 18px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  font-weight: 900;
  line-height: 1.1;
  text-decoration: none;
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease, background 0.22s ease;
}

.link-button.primary {
  background: linear-gradient(135deg, #f7fcff, #99ffff);
  color: #03172f;
  box-shadow: 0 14px 38px rgba(25, 215, 230, 0.24);
}

.link-button.ghost,
.sample-button {
  color: var(--ink);
  border-color: rgba(153, 255, 255, 0.24);
  background: rgba(153, 255, 255, 0.08);
}

.link-button:hover,
.link-button:focus-visible,
.sample-button:hover,
.sample-button:focus-visible,
.submit-button:hover,
.submit-button:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 16px 46px rgba(25, 215, 230, 0.22);
}

.login-panel {
  position: relative;
  width: min(100%, 430px);
  padding: 22px;
  border: 1px solid rgba(153, 255, 255, 0.28);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(255, 255, 245, 0.15), rgba(3, 26, 54, 0.78)),
    rgba(5, 24, 50, 0.84);
  box-shadow: var(--shadow);
  overflow: hidden;
  justify-self: stretch;
}

.panel-shine {
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 8%, rgba(153, 255, 255, 0.13), transparent 32%);
  transform: translateX(-120%);
  animation: shine 8s ease-in-out infinite;
  pointer-events: none;
}

@keyframes shine {
  0%,
  46% {
    transform: translateX(-120%);
  }
  58%,
  100% {
    transform: translateX(120%);
  }
}

.panel-kicker,
.card-label {
  margin: 0 0 8px;
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.login-panel h2 {
  margin-bottom: 8px;
  font-size: clamp(1.8rem, 9vw, 2.75rem);
  line-height: 1;
}

.login-note {
  margin-bottom: 18px;
  color: var(--muted);
  line-height: 1.55;
}

.login-form {
  display: grid;
  gap: 13px;
}

.field {
  display: grid;
  gap: 8px;
}

.field span {
  color: #e9f7fb;
  font-size: 0.88rem;
  font-weight: 800;
}

.field input {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  color: var(--ink);
  border: 1px solid rgba(153, 255, 255, 0.28);
  border-radius: var(--radius);
  outline: none;
  background: rgba(1, 10, 24, 0.72);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.field input:focus {
  border-color: var(--cyan);
  background: rgba(1, 10, 24, 0.92);
  box-shadow: 0 0 0 4px rgba(153, 255, 255, 0.14);
}

.submit-button {
  width: 100%;
  margin-top: 4px;
  color: #031407;
  border: 0;
  cursor: pointer;
  background: linear-gradient(135deg, #d9ffd8, #83e37e 55%, #47c96a);
  box-shadow: 0 14px 34px rgba(71, 201, 106, 0.28);
}

.sample-button {
  width: 100%;
  color: #061324;
  background: linear-gradient(135deg, #fff8d7, #ffd35a);
}

.download-band,
.assessment-map,
.knowledge-section,
.site-footer {
  position: relative;
  z-index: 1;
}

.download-band {
  display: grid;
  gap: 22px;
  width: min(100% - 28px, var(--max));
  margin: 0 auto;
  padding: 32px 0 58px;
  border-top: 1px solid rgba(153, 255, 255, 0.14);
}

.section-copy h2 {
  margin-bottom: 12px;
  font-size: clamp(2rem, 8vw, 4.4rem);
  line-height: 0.98;
  letter-spacing: 0;
}

.section-copy p:not(.eyebrow) {
  max-width: 680px;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.75;
}

.section-copy.compact h2 {
  font-size: clamp(1.8rem, 7vw, 3.4rem);
}

.download-covers {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.cover-card {
  position: relative;
  display: grid;
  align-content: end;
  min-height: 210px;
  border: 1px solid rgba(153, 255, 255, 0.2);
  border-radius: var(--radius);
  overflow: hidden;
  text-decoration: none;
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.28);
  transform: translateZ(0);
}

.cover-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease, filter 0.45s ease;
}

.cover-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 22%, rgba(2, 16, 39, 0.82));
}

.cover-card span {
  position: relative;
  z-index: 1;
  padding: 16px;
  color: var(--ink);
  font-size: 1rem;
  font-weight: 900;
}

.cover-card:hover img,
.cover-card:focus-visible img {
  transform: scale(1.06);
  filter: saturate(1.15) contrast(1.04);
}

.assessment-map {
  display: grid;
  gap: 28px;
  align-items: center;
  width: min(100% - 28px, var(--max));
  margin: 0 auto;
  padding: 62px 0;
}

.map-visual {
  position: relative;
  width: min(100%, 420px);
  aspect-ratio: 1;
  margin: 0 auto;
}

.orbit,
.map-core,
.node {
  position: absolute;
  display: grid;
  place-items: center;
  border-radius: 50%;
}

.orbit {
  inset: var(--inset);
  border: 1px solid rgba(153, 255, 255, 0.22);
  box-shadow: inset 0 0 32px rgba(153, 255, 255, 0.06);
  animation: orbit-spin var(--speed) linear infinite;
}

.orbit-a {
  --inset: 4%;
  --speed: 32s;
}

.orbit-b {
  --inset: 18%;
  --speed: 24s;
  border-style: dashed;
  animation-direction: reverse;
}

.orbit-c {
  --inset: 32%;
  --speed: 18s;
}

@keyframes orbit-spin {
  to {
    transform: rotate(360deg);
  }
}

.map-core {
  inset: 38%;
  color: #03172f;
  font-size: clamp(1.4rem, 5vw, 2rem);
  font-weight: 1000;
  background: radial-gradient(circle, #ffffff, var(--cyan));
  box-shadow: 0 0 38px rgba(153, 255, 255, 0.48);
}

.node {
  width: clamp(64px, 18vw, 84px);
  height: clamp(64px, 18vw, 84px);
  padding: 8px;
  color: #061324;
  font-size: 0.78rem;
  font-weight: 1000;
  background: linear-gradient(135deg, #ffffff, #99ffff);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.28);
  animation: node-pulse 3.8s ease-in-out infinite;
}

.node-1 { left: 40%; top: 0; }
.node-2 { right: 4%; top: 24%; animation-delay: -0.6s; }
.node-3 { right: 10%; bottom: 12%; animation-delay: -1.2s; }
.node-4 { left: 8%; bottom: 12%; animation-delay: -1.8s; }
.node-5 { left: 4%; top: 24%; animation-delay: -2.4s; }
.node-6 { left: 40%; bottom: 0; animation-delay: -3s; }

@keyframes node-pulse {
  0%,
  100% {
    transform: translateY(0) scale(1);
  }
  50% {
    transform: translateY(-6px) scale(1.04);
  }
}

.knowledge-section {
  padding: 64px 0 82px;
  background:
    linear-gradient(180deg, rgba(2, 16, 39, 0.12), rgba(1, 8, 23, 0.86) 14%, rgba(1, 8, 23, 0.94)),
    linear-gradient(90deg, rgba(153, 255, 255, 0.06), transparent, rgba(255, 211, 90, 0.06));
}

.center {
  width: min(100% - 28px, 820px);
  margin: 0 auto 28px;
  text-align: center;
}

.center p:not(.eyebrow) {
  margin-left: auto;
  margin-right: auto;
}

.product-catalog h1 {
  margin: 0 0 16px;
  font-size: clamp(2.35rem, 10vw, 5.4rem);
  line-height: 0.98;
  letter-spacing: 0;
  text-shadow: 0 0 28px rgba(153, 255, 255, 0.2), 0 12px 42px rgba(0, 0, 0, 0.4);
}

.product-catalog .article-list {
  margin-top: 34px;
}

.article-grid {
  display: grid;
  gap: 16px;
  width: min(100% - 28px, var(--max));
  margin: 0 auto;
}

.knowledge-card {
  display: grid;
  gap: 0;
  border: 1px solid rgba(153, 255, 255, 0.18);
  border-radius: var(--radius);
  background: rgba(5, 24, 50, 0.76);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.24);
  overflow: hidden;
  transition: border-color 0.28s ease, transform 0.28s ease, box-shadow 0.28s ease;
}

.knowledge-card:hover {
  transform: translateY(-4px);
  border-color: rgba(153, 255, 255, 0.42);
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.34);
}

.card-visual {
  position: relative;
  min-height: 230px;
  border-bottom: 1px solid rgba(153, 255, 255, 0.16);
  background:
    linear-gradient(135deg, rgba(153, 255, 255, 0.13), transparent 45%),
    rgba(1, 10, 24, 0.58);
  overflow: hidden;
}

.card-visual::after {
  content: "";
  position: absolute;
  inset: 16px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  pointer-events: none;
}

.card-body {
  padding: 22px;
}

.card-body h3 {
  margin-bottom: 12px;
  font-size: clamp(1.45rem, 6vw, 2.35rem);
  line-height: 1.08;
}

.card-body p {
  color: var(--muted);
  line-height: 1.76;
}

.card-body p:last-child {
  margin-bottom: 0;
}

.plus-visual {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-rows: repeat(2, minmax(0, 1fr));
  gap: 8px;
  padding: 20px;
}

.plus-visual .q {
  display: grid;
  place-items: center;
  min-width: 0;
  border-radius: var(--radius);
  color: #061324;
  font-weight: 1000;
  text-align: center;
  box-shadow: inset 0 0 26px rgba(255, 255, 255, 0.28);
  animation: tile-breathe 4s ease-in-out infinite;
}

.sanguine { background: linear-gradient(135deg, #fff3a1, #ffbd4a); }
.choleric { background: linear-gradient(135deg, #ffc2c9, #ff6a88); animation-delay: -1s; }
.melancholic { background: linear-gradient(135deg, #d8c9ff, #8f79ff); animation-delay: -2s; }
.phlegmatic { background: linear-gradient(135deg, #cffffb, #66ded7); animation-delay: -3s; }

@keyframes tile-breathe {
  0%,
  100% { transform: scale(1); }
  50% { transform: scale(0.97); }
}

.disc-visual {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-template-rows: repeat(2, 1fr);
  place-items: center;
}

.disc-visual span {
  display: grid;
  place-items: center;
  width: 84px;
  height: 84px;
  border-radius: 50%;
  color: #061324;
  font-size: 2.2rem;
  font-weight: 1000;
  background: var(--tone);
  box-shadow: 0 0 32px rgba(153, 255, 255, 0.28);
  z-index: 1;
}

.disc-visual span:nth-child(1) { --tone: linear-gradient(135deg, #ff9a9e, #ff677d); }
.disc-visual span:nth-child(2) { --tone: linear-gradient(135deg, #fff1a6, #ffc84e); }
.disc-visual span:nth-child(3) { --tone: linear-gradient(135deg, #c5ffd0, #62dc83); }
.disc-visual span:nth-child(4) { --tone: linear-gradient(135deg, #b9f7ff, #67c8ff); }

.disc-visual .axis {
  position: absolute;
  background: rgba(153, 255, 255, 0.26);
  box-shadow: 0 0 16px rgba(153, 255, 255, 0.22);
}

.disc-visual .x {
  left: 16%;
  right: 16%;
  top: 50%;
  height: 1px;
}

.disc-visual .y {
  top: 16%;
  bottom: 16%;
  left: 50%;
  width: 1px;
}

.mbti-visual {
  display: grid;
  align-content: center;
  gap: 14px;
  padding: 28px;
}

.mbti-visual div {
  display: grid;
  grid-template-columns: 34px 1fr 34px;
  align-items: center;
  gap: 12px;
}

.mbti-visual span {
  display: grid;
  place-items: center;
  aspect-ratio: 1;
  border-radius: 50%;
  color: #061324;
  font-weight: 1000;
  background: #ffffff;
}

.mbti-visual b {
  position: relative;
  height: 10px;
  border-radius: 99px;
  background: rgba(153, 255, 255, 0.18);
  overflow: hidden;
}

.mbti-visual b::after {
  content: "";
  position: absolute;
  inset: 0;
  width: 62%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--cyan), var(--gold));
  animation: preference-scan 4s ease-in-out infinite alternate;
}

.mbti-visual div:nth-child(2) b::after { width: 44%; animation-delay: -0.8s; }
.mbti-visual div:nth-child(3) b::after { width: 72%; animation-delay: -1.4s; }
.mbti-visual div:nth-child(4) b::after { width: 54%; animation-delay: -2.1s; }

@keyframes preference-scan {
  to {
    transform: translateX(38%);
  }
}

.ocean-visual {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  align-items: end;
  gap: 10px;
  padding: 32px 24px 24px;
}

.ocean-visual span {
  position: relative;
  display: grid;
  align-items: end;
  min-height: 174px;
  border-radius: var(--radius);
  background: rgba(153, 255, 255, 0.12);
  overflow: hidden;
}

.ocean-visual span::before {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: var(--level);
  background: linear-gradient(180deg, var(--cyan), var(--lime));
  box-shadow: 0 0 28px rgba(153, 255, 255, 0.32);
  animation: bar-rise 2.6s ease both;
}

.ocean-visual em {
  position: relative;
  z-index: 1;
  padding: 10px 0;
  color: #061324;
  font-style: normal;
  font-weight: 1000;
  text-align: center;
}

@keyframes bar-rise {
  from { height: 8%; }
  to { height: var(--level); }
}

.riasec-visual {
  display: grid;
  place-items: center;
}

.riasec-visual::before {
  content: "";
  position: absolute;
  width: 178px;
  aspect-ratio: 1;
  background: conic-gradient(from 30deg, #ffb75e, #fff089, #8af2a2, #99ffff, #b99cff, #ff8ca5, #ffb75e);
  clip-path: polygon(25% 6%, 75% 6%, 100% 50%, 75% 94%, 25% 94%, 0 50%);
  opacity: 0.88;
  filter: drop-shadow(0 0 26px rgba(153, 255, 255, 0.28));
  animation: hex-turn 18s linear infinite;
}

.riasec-visual span {
  position: absolute;
  display: grid;
  place-items: center;
  width: 52px;
  aspect-ratio: 1;
  border-radius: 50%;
  color: #061324;
  font-weight: 1000;
  background: #ffffff;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.25);
}

.riasec-visual span:nth-child(1) { transform: translate(0, -92px); }
.riasec-visual span:nth-child(2) { transform: translate(82px, -46px); }
.riasec-visual span:nth-child(3) { transform: translate(82px, 46px); }
.riasec-visual span:nth-child(4) { transform: translate(0, 92px); }
.riasec-visual span:nth-child(5) { transform: translate(-82px, 46px); }
.riasec-visual span:nth-child(6) { transform: translate(-82px, -46px); }

@keyframes hex-turn {
  to { transform: rotate(360deg); }
}

.wealth-visual {
  display: grid;
  place-items: center;
}

.wealth-visual::before,
.wealth-visual::after {
  content: "";
  position: absolute;
  border: 1px solid rgba(153, 255, 255, 0.25);
}

.wealth-visual::before {
  width: 190px;
  height: 190px;
  border-radius: 50%;
  box-shadow: inset 0 0 36px rgba(153, 255, 255, 0.1);
}

.wealth-visual::after {
  width: 136px;
  height: 136px;
  transform: rotate(45deg);
  border-color: rgba(255, 211, 90, 0.3);
}

.wealth-visual strong {
  position: relative;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 90px;
  aspect-ratio: 1;
  border-radius: 50%;
  color: #061324;
  background: linear-gradient(135deg, #ffffff, var(--gold));
  box-shadow: 0 0 34px rgba(255, 211, 90, 0.34);
}

.wealth-visual span {
  position: absolute;
  z-index: 1;
  padding: 8px 10px;
  border-radius: 999px;
  color: #061324;
  font-size: 0.78rem;
  font-weight: 1000;
  background: var(--tone);
}

.wealth-visual .north { --tone: #99ffff; transform: translateY(-96px); }
.wealth-visual .east { --tone: #ff9d66; transform: translateX(104px); }
.wealth-visual .south { --tone: #83e37e; transform: translateY(96px); }
.wealth-visual .west { --tone: #d8c9ff; transform: translateX(-104px); }

.gallup-visual {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  padding: 24px;
}

.gallup-visual span {
  display: grid;
  place-items: center;
  min-height: 82px;
  padding: 12px;
  border-radius: var(--radius);
  color: #061324;
  font-size: clamp(0.82rem, 3vw, 0.95rem);
  font-weight: 1000;
  text-align: center;
  background: var(--tone);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.24);
  animation: strength-lift 4.4s ease-in-out infinite;
}

.gallup-visual span:nth-child(1) { --tone: linear-gradient(135deg, #fff1a6, #ffcc58); }
.gallup-visual span:nth-child(2) { --tone: linear-gradient(135deg, #ffb4c3, #ff7895); animation-delay: -0.8s; }
.gallup-visual span:nth-child(3) { --tone: linear-gradient(135deg, #bfffd0, #72df8e); animation-delay: -1.6s; }
.gallup-visual span:nth-child(4) { --tone: linear-gradient(135deg, #c9f7ff, #79d6ff); animation-delay: -2.4s; }

@keyframes strength-lift {
  0%,
  100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

.updated-note {
  font-size: 0.9rem;
}

.article-directory {
  display: grid;
  gap: 12px;
  width: min(100% - 28px, var(--max));
  margin: 0 auto 34px;
}

.article-directory a {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 8px 12px;
  min-height: 124px;
  padding: 18px;
  border: 1px solid rgba(153, 255, 255, 0.18);
  border-radius: var(--radius);
  color: var(--ink);
  text-decoration: none;
  background:
    linear-gradient(135deg, rgba(153, 255, 255, 0.13), transparent 42%),
    rgba(5, 24, 50, 0.78);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.24);
  overflow: hidden;
  transition: transform 0.24s ease, border-color 0.24s ease, box-shadow 0.24s ease;
}

.article-list {
  display: grid;
  gap: 16px;
  width: min(100% - 28px, var(--max));
  margin: 0 auto;
}

.article-list-card {
  position: relative;
  display: grid;
  grid-template-rows: auto 1fr;
  min-height: 100%;
  border: 1px solid rgba(153, 255, 255, 0.18);
  border-radius: var(--radius);
  color: var(--ink);
  text-decoration: none;
  background:
    linear-gradient(180deg, rgba(255, 255, 245, 0.08), transparent 180px),
    rgba(5, 24, 50, 0.82);
  box-shadow: 0 20px 58px rgba(0, 0, 0, 0.28);
  overflow: hidden;
  transition: transform 0.26s ease, border-color 0.26s ease, box-shadow 0.26s ease;
}

.article-list-card:hover,
.article-list-card:focus-visible {
  transform: translateY(-5px);
  border-color: rgba(153, 255, 255, 0.46);
  box-shadow: 0 30px 84px rgba(0, 0, 0, 0.38);
}

.article-list-card img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: rgba(1, 10, 24, 0.7);
  transition: transform 0.45s ease, filter 0.45s ease;
}

.article-list-card:hover img,
.article-list-card:focus-visible img {
  transform: scale(1.04);
  filter: saturate(1.12) contrast(1.04);
}

.article-list-card > span {
  position: absolute;
  left: 14px;
  top: 14px;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 1px solid rgba(255, 255, 255, 0.38);
  border-radius: 50%;
  color: #03172f;
  font-weight: 1000;
  background: linear-gradient(135deg, #ffffff, var(--cyan));
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.28);
}

.article-list-card div {
  display: grid;
  align-content: start;
  gap: 10px;
  padding: 18px;
}

.article-list-card p {
  margin: 0;
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 1000;
  text-transform: uppercase;
}

.article-list-card h3 {
  margin: 0;
  font-size: clamp(1.18rem, 5vw, 1.62rem);
  line-height: 1.14;
}

.article-list-card em {
  color: var(--muted);
  font-style: normal;
  line-height: 1.66;
}

.article-directory a::after {
  content: "";
  position: absolute;
  inset: auto 18px 16px 18px;
  height: 2px;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--cyan), var(--gold), var(--lime));
  transform: scaleX(0.18);
  transform-origin: left;
  transition: transform 0.28s ease;
}

.article-directory a:hover,
.article-directory a:focus-visible {
  transform: translateY(-4px);
  border-color: rgba(153, 255, 255, 0.42);
  box-shadow: 0 26px 70px rgba(0, 0, 0, 0.34);
}

.article-directory a:hover::after,
.article-directory a:focus-visible::after {
  transform: scaleX(1);
}

.article-directory span {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  color: #03172f;
  font-weight: 1000;
  background: linear-gradient(135deg, #ffffff, var(--cyan));
  box-shadow: 0 0 24px rgba(153, 255, 255, 0.3);
}

.article-directory strong {
  align-self: end;
  font-size: clamp(1.02rem, 4vw, 1.24rem);
  line-height: 1.18;
}

.article-directory em {
  grid-column: 2;
  color: var(--muted);
  font-style: normal;
  line-height: 1.55;
}

.deep-article-stack {
  display: grid;
  gap: 24px;
  width: min(100% - 28px, var(--max));
  margin: 0 auto;
}

.deep-article,
.knowledge-faq,
.source-panel {
  border: 1px solid rgba(153, 255, 255, 0.18);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(255, 255, 245, 0.08), transparent 190px),
    rgba(5, 24, 50, 0.82);
  box-shadow: 0 24px 78px rgba(0, 0, 0, 0.3);
  overflow: hidden;
}

.deep-article {
  display: grid;
  scroll-margin-top: 110px;
}

.article-heading {
  padding: 22px 20px 12px;
}

.article-heading h2 {
  margin-bottom: 14px;
  font-size: clamp(1.72rem, 7vw, 3.5rem);
  line-height: 1.02;
  letter-spacing: 0;
}

.article-heading p:not(.card-label) {
  max-width: 820px;
  color: #d7eaf2;
  font-size: 1rem;
  line-height: 1.75;
}

.article-illustration {
  position: relative;
  display: grid;
  min-height: 260px;
  margin: 0;
  border-top: 1px solid rgba(153, 255, 255, 0.14);
  border-bottom: 1px solid rgba(153, 255, 255, 0.14);
  background:
    radial-gradient(circle at 20% 20%, rgba(153, 255, 255, 0.18), transparent 30%),
    radial-gradient(circle at 82% 30%, rgba(255, 211, 90, 0.16), transparent 32%),
    rgba(1, 10, 24, 0.66);
  overflow: hidden;
}

.article-illustration::before {
  content: "";
  position: absolute;
  inset: 20px;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: var(--radius);
  pointer-events: none;
}

.article-content {
  padding: 22px 20px 24px;
}

.article-content h3 {
  margin: 26px 0 10px;
  color: #f8fcff;
  font-size: clamp(1.22rem, 5vw, 1.72rem);
  line-height: 1.18;
}

.article-content h2 {
  margin: 30px 0 12px;
  color: #f8fcff;
  font-size: clamp(1.34rem, 5.5vw, 2rem);
  line-height: 1.14;
}

.article-content h2:first-child {
  margin-top: 0;
}

.article-content h3:first-child {
  margin-top: 0;
}

.article-content p {
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.82;
}

.article-content ul {
  margin: 14px 0 22px;
  padding-left: 22px;
  color: var(--muted);
}

.article-content li {
  margin: 8px 0;
  line-height: 1.72;
}

.article-pdf-figure {
  margin: 24px 0 30px;
  border: 1px solid rgba(153, 255, 255, 0.22);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(153, 255, 255, 0.03)),
    rgba(1, 10, 24, 0.58);
  box-shadow: 0 22px 62px rgba(0, 0, 0, 0.28);
  overflow: hidden;
}

.article-pdf-figure img {
  width: 100%;
  max-height: 860px;
  object-fit: contain;
  background: #f7fbff;
}

.article-pdf-figure figcaption {
  padding: 12px 14px;
  color: #d7eaf2;
  font-size: 0.9rem;
  line-height: 1.55;
  border-top: 1px solid rgba(153, 255, 255, 0.16);
}

.product-article .article-main .article-content {
  max-width: 960px;
}

.article-callout {
  margin: 20px 0;
  padding: 16px;
  border: 1px solid rgba(255, 211, 90, 0.28);
  border-radius: var(--radius);
  color: #fff6cf;
  line-height: 1.7;
  background: rgba(255, 211, 90, 0.08);
}

.article-callout b {
  color: var(--gold);
}

.temperament-compass {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-rows: repeat(2, minmax(0, 1fr));
  gap: 10px;
  padding: 24px;
}

.temperament-compass span {
  display: grid;
  place-items: center;
  min-width: 0;
  border-radius: var(--radius);
  color: #061324;
  font-size: clamp(1rem, 4vw, 1.4rem);
  font-weight: 1000;
  text-align: center;
  line-height: 1.12;
  animation: tile-breathe 4s ease-in-out infinite;
}

.temperament-compass small {
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.temperament-compass strong {
  position: absolute;
  left: 50%;
  top: 50%;
  display: grid;
  place-items: center;
  width: 118px;
  aspect-ratio: 1;
  border-radius: 50%;
  color: #03172f;
  font-size: 0.84rem;
  font-weight: 1000;
  text-align: center;
  background: radial-gradient(circle, #ffffff, var(--cyan));
  box-shadow: 0 0 32px rgba(153, 255, 255, 0.4);
  transform: translate(-50%, -50%);
}

.disc-quadrant {
  grid-template-columns: repeat(2, 1fr);
  grid-template-rows: repeat(2, 1fr);
  place-items: center;
  padding: 24px;
}

.disc-quadrant span {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: min(34vw, 138px);
  aspect-ratio: 1;
  border-radius: 50%;
  color: #061324;
  font-size: clamp(2rem, 10vw, 4rem);
  font-weight: 1000;
  text-align: center;
  line-height: 0.9;
  background: var(--tone);
  box-shadow: 0 0 36px rgba(153, 255, 255, 0.26);
  animation: node-pulse 4s ease-in-out infinite;
}

.disc-quadrant small {
  font-size: clamp(0.52rem, 2vw, 0.75rem);
  font-weight: 1000;
  text-transform: uppercase;
}

.disc-d { --tone: linear-gradient(135deg, #ffb4bd, #ff657f); }
.disc-i { --tone: linear-gradient(135deg, #fff3a1, #ffc64e); animation-delay: -0.7s; }
.disc-s { --tone: linear-gradient(135deg, #c7ffd2, #6ee68f); animation-delay: -1.4s; }
.disc-c { --tone: linear-gradient(135deg, #bff8ff, #68ccff); animation-delay: -2.1s; }

.axis-x,
.axis-y {
  position: absolute;
  background: rgba(153, 255, 255, 0.25);
  box-shadow: 0 0 14px rgba(153, 255, 255, 0.22);
}

.axis-x {
  left: 12%;
  right: 12%;
  top: 50%;
  height: 1px;
}

.axis-y {
  top: 12%;
  bottom: 12%;
  left: 50%;
  width: 1px;
}

.mbti-lattice {
  align-content: center;
  gap: 14px;
  padding: 30px;
}

.mbti-lattice div {
  display: grid;
  grid-template-columns: 42px 1fr 42px;
  align-items: center;
  gap: 12px;
}

.mbti-lattice span {
  display: grid;
  place-items: center;
  aspect-ratio: 1;
  border-radius: 50%;
  color: #061324;
  font-weight: 1000;
  background: #ffffff;
}

.mbti-lattice b {
  position: relative;
  height: 12px;
  border-radius: 99px;
  background: rgba(153, 255, 255, 0.18);
  overflow: hidden;
}

.mbti-lattice b::after {
  content: "";
  position: absolute;
  inset: 0;
  width: 58%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--cyan), var(--gold));
  animation: preference-scan 4s ease-in-out infinite alternate;
}

.mbti-lattice div:nth-child(2) b::after { width: 72%; animation-delay: -0.6s; }
.mbti-lattice div:nth-child(3) b::after { width: 46%; animation-delay: -1.2s; }
.mbti-lattice div:nth-child(4) b::after { width: 64%; animation-delay: -1.8s; }

.ocean-spectrum {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  align-items: end;
  gap: 8px;
  padding: 32px 20px 22px;
}

.ocean-spectrum span {
  position: relative;
  display: grid;
  align-items: end;
  min-height: 212px;
  border-radius: var(--radius);
  background: rgba(153, 255, 255, 0.12);
  overflow: hidden;
}

.ocean-spectrum span::before {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: var(--level);
  background: linear-gradient(180deg, var(--cyan), var(--lime));
  box-shadow: 0 0 28px rgba(153, 255, 255, 0.34);
  animation: bar-rise 2.4s ease both;
}

.ocean-spectrum b,
.ocean-spectrum em {
  position: relative;
  z-index: 1;
  color: #061324;
  text-align: center;
}

.ocean-spectrum b {
  align-self: center;
  font-size: clamp(1.6rem, 8vw, 3rem);
  font-weight: 1000;
}

.ocean-spectrum em {
  padding: 0 3px 10px;
  font-size: clamp(0.52rem, 2vw, 0.74rem);
  font-style: normal;
  font-weight: 1000;
  writing-mode: vertical-rl;
  justify-self: center;
}

.riasec-hex {
  place-items: center;
  min-height: 300px;
}

.riasec-hex::after {
  content: "";
  position: absolute;
  width: min(58vw, 230px);
  aspect-ratio: 1;
  background: conic-gradient(from 30deg, #ffb75e, #fff089, #8af2a2, #99ffff, #b99cff, #ff8ca5, #ffb75e);
  clip-path: polygon(25% 6%, 75% 6%, 100% 50%, 75% 94%, 25% 94%, 0 50%);
  filter: drop-shadow(0 0 30px rgba(153, 255, 255, 0.28));
  opacity: 0.9;
  animation: hex-turn 22s linear infinite;
}

.riasec-hex span,
.riasec-hex strong {
  position: absolute;
  z-index: 2;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: #061324;
  font-weight: 1000;
  text-align: center;
  background: #ffffff;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.26);
}

.riasec-hex span {
  width: min(32vw, 132px);
  min-height: 42px;
  padding: 8px 10px;
  font-size: clamp(0.7rem, 2.5vw, 0.9rem);
}

.riasec-hex strong {
  width: 92px;
  aspect-ratio: 1;
  background: radial-gradient(circle, #ffffff, var(--cyan));
}

.riasec-hex span:nth-child(1) { transform: translate(0, -116px); }
.riasec-hex span:nth-child(2) { transform: translate(112px, -56px); }
.riasec-hex span:nth-child(3) { transform: translate(112px, 56px); }
.riasec-hex span:nth-child(4) { transform: translate(0, 116px); }
.riasec-hex span:nth-child(5) { transform: translate(-112px, 56px); }
.riasec-hex span:nth-child(6) { transform: translate(-112px, -56px); }

.wealth-wheel {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  align-content: center;
  padding: 24px;
}

.wealth-wheel .freq,
.wealth-wheel b {
  display: grid;
  place-items: center;
  min-height: 48px;
  border-radius: var(--radius);
  color: #061324;
  font-weight: 1000;
  text-align: center;
}

.wealth-wheel .freq {
  min-height: 74px;
  font-size: clamp(0.9rem, 3vw, 1.1rem);
  background: var(--tone);
}

.wealth-wheel b {
  background: rgba(255, 255, 255, 0.9);
  font-size: clamp(0.72rem, 2.5vw, 0.9rem);
  animation: strength-lift 5s ease-in-out infinite;
}

.wealth-wheel b:nth-of-type(2n) {
  animation-delay: -1s;
}

.dynamo { --tone: linear-gradient(135deg, #ffffff, #99ffff); }
.blaze { --tone: linear-gradient(135deg, #fff0a8, #ffb75e); }
.tempo { --tone: linear-gradient(135deg, #d4ffd8, #83e37e); }
.steel { --tone: linear-gradient(135deg, #ddd2ff, #b99cff); }

.insight-grid,
.dimension-list,
.career-map,
.profile-grid {
  display: grid;
  gap: 10px;
  margin: 20px 0;
}

.insight-grid div,
.dimension-list div,
.career-map div,
.profile-grid div {
  padding: 14px;
  border: 1px solid rgba(153, 255, 255, 0.18);
  border-radius: var(--radius);
  background: rgba(153, 255, 255, 0.07);
}

.insight-grid b,
.dimension-list b,
.career-map b,
.profile-grid b {
  display: block;
  margin-bottom: 7px;
  color: var(--cyan);
  font-size: 0.95rem;
}

.insight-grid span,
.dimension-list span,
.career-map span,
.profile-grid span {
  display: block;
  color: var(--muted);
  line-height: 1.62;
}

.comparison-table {
  width: 100%;
  margin: 20px 0;
  overflow-x: auto;
  border-radius: var(--radius);
  border: 1px solid rgba(153, 255, 255, 0.18);
}

.comparison-table table {
  width: 100%;
  min-width: 640px;
  border-collapse: collapse;
  background: rgba(1, 10, 24, 0.58);
}

.comparison-table caption {
  padding: 12px 14px;
  color: var(--gold);
  font-weight: 1000;
  text-align: left;
  background: rgba(255, 211, 90, 0.08);
}

.comparison-table th,
.comparison-table td {
  padding: 13px 14px;
  border-top: 1px solid rgba(153, 255, 255, 0.14);
  color: var(--muted);
  line-height: 1.55;
  text-align: left;
  vertical-align: top;
}

.comparison-table th {
  color: var(--ink);
  background: rgba(153, 255, 255, 0.09);
}

.type-cloud {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin: 20px 0;
}

.type-cloud span {
  display: grid;
  place-items: center;
  min-height: 42px;
  border-radius: var(--radius);
  color: #061324;
  font-weight: 1000;
  background: linear-gradient(135deg, #ffffff, #99ffff);
}

.knowledge-faq,
.source-panel {
  padding: 20px;
}

.knowledge-faq h2,
.source-panel h2 {
  margin-bottom: 16px;
  font-size: clamp(1.5rem, 6vw, 2.4rem);
  line-height: 1.08;
}

.knowledge-faq details {
  border-top: 1px solid rgba(153, 255, 255, 0.16);
}

.knowledge-faq summary {
  cursor: pointer;
  padding: 16px 0;
  color: var(--ink);
  font-weight: 900;
  line-height: 1.4;
}

.knowledge-faq details p {
  margin-bottom: 16px;
  color: var(--muted);
  line-height: 1.75;
}

.source-panel p,
.source-panel li {
  color: var(--muted);
  line-height: 1.7;
}

.source-panel ul {
  margin: 16px 0 0;
  padding-left: 20px;
}

.source-panel a {
  color: var(--cyan);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.article-page {
  width: min(100% - 28px, var(--max));
  margin: 0 auto;
  padding: 28px 0 70px;
}

.article-hero {
  display: grid;
  gap: 12px;
  max-width: 980px;
  padding: 34px 0 22px;
}

.breadcrumb-link {
  justify-self: start;
  padding: 9px 12px;
  border: 1px solid rgba(153, 255, 255, 0.2);
  border-radius: 999px;
  color: var(--cyan);
  font-size: 0.86rem;
  font-weight: 900;
  text-decoration: none;
  background: rgba(153, 255, 255, 0.08);
}

.article-hero h1 {
  margin: 0;
  font-size: clamp(2.15rem, 10vw, 5.2rem);
  line-height: 0.98;
  letter-spacing: 0;
  text-shadow: 0 0 26px rgba(153, 255, 255, 0.22), 0 12px 40px rgba(0, 0, 0, 0.4);
}

.article-hero > p:not(.card-label) {
  max-width: 820px;
  margin: 0;
  color: #d7eaf2;
  font-size: clamp(1rem, 2.4vw, 1.22rem);
  line-height: 1.72;
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 4px;
}

.article-meta span {
  padding: 8px 10px;
  border: 1px solid rgba(153, 255, 255, 0.16);
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.82rem;
  background: rgba(2, 16, 39, 0.5);
}

.product-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 10px;
}

.article-thumbnail-hero {
  margin: 0 0 24px;
  border: 1px solid rgba(153, 255, 255, 0.2);
  border-radius: var(--radius);
  background: rgba(1, 10, 24, 0.68);
  box-shadow: 0 28px 86px rgba(0, 0, 0, 0.34);
  overflow: hidden;
}

.article-thumbnail-hero img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.article-layout {
  display: grid;
  gap: 18px;
}

.article-side {
  order: 2;
}

.side-box {
  display: grid;
  gap: 10px;
  padding: 16px;
  border: 1px solid rgba(153, 255, 255, 0.18);
  border-radius: var(--radius);
  background: rgba(5, 24, 50, 0.76);
}

.side-box a {
  color: var(--ink);
  font-weight: 900;
  line-height: 1.35;
  text-decoration: none;
}

.side-box a:hover,
.side-box a:focus-visible {
  color: var(--cyan);
}

.article-main {
  min-width: 0;
  border: 1px solid rgba(153, 255, 255, 0.18);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(255, 255, 245, 0.08), transparent 190px),
    rgba(5, 24, 50, 0.82);
  box-shadow: 0 24px 78px rgba(0, 0, 0, 0.3);
  overflow: hidden;
}

.article-main .article-illustration {
  border-top: 0;
}

.article-main .article-content {
  max-width: 880px;
}

.related-articles {
  display: grid;
  gap: 16px;
  margin-top: 34px;
}

.related-articles > div:last-child {
  display: grid;
  gap: 12px;
}

.related-articles a {
  display: grid;
  grid-template-columns: 112px 1fr;
  gap: 12px;
  align-items: center;
  min-width: 0;
  padding: 10px;
  border: 1px solid rgba(153, 255, 255, 0.18);
  border-radius: var(--radius);
  color: var(--ink);
  text-decoration: none;
  background: rgba(5, 24, 50, 0.76);
  transition: transform 0.22s ease, border-color 0.22s ease;
}

.related-articles a:hover,
.related-articles a:focus-visible {
  transform: translateY(-3px);
  border-color: rgba(153, 255, 255, 0.42);
}

.related-articles img {
  width: 112px;
  aspect-ratio: 16 / 10;
  border-radius: calc(var(--radius) - 2px);
  object-fit: cover;
}

.related-articles span,
.related-articles strong {
  grid-column: 2;
}

.related-articles span {
  color: var(--gold);
  font-size: 0.72rem;
  font-weight: 1000;
  text-transform: uppercase;
}

.related-articles strong {
  color: var(--ink);
  line-height: 1.32;
}

.site-footer {
  display: grid;
  grid-template-columns: minmax(250px, 1fr) auto minmax(240px, 1fr);
  align-items: center;
  gap: 18px 28px;
  width: min(100% - 28px, var(--max));
  margin: 0 auto;
  padding: 28px 0 36px;
  border-top: 1px solid rgba(153, 255, 255, 0.15);
  color: var(--muted);
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.site-footer img {
  width: 118px;
  opacity: 0.9;
}

.site-footer p {
  margin: 0;
  font-size: 0.86rem;
}

.site-footer a {
  color: var(--cyan);
  font-weight: 900;
  text-decoration: none;
}

.footer-product-link {
  justify-self: center;
  padding: 10px 12px;
  border: 1px solid rgba(153, 255, 255, 0.18);
  border-radius: var(--radius);
  background: rgba(153, 255, 255, 0.06);
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.footer-product-link:hover,
.footer-product-link:focus-visible {
  border-color: rgba(153, 255, 255, 0.42);
  background: rgba(153, 255, 255, 0.12);
  transform: translateY(-1px);
}

.footer-contact {
  display: grid;
  gap: 7px;
  justify-self: end;
  justify-items: start;
  min-width: 0;
}

.footer-contact-title {
  color: var(--gold);
  font-size: 0.76rem;
  font-weight: 1000;
  line-height: 1;
}

.site-footer .footer-contact-link {
  display: flex;
  align-items: center;
  gap: 8px;
  width: auto;
  min-height: 24px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--cyan);
  font-size: 0.88rem;
  font-weight: 900;
  line-height: 1.25;
  transition: color 0.2s ease, transform 0.2s ease;
}

.site-footer .footer-contact-link:hover,
.site-footer .footer-contact-link:focus-visible {
  color: var(--ink);
  transform: translateX(2px);
}

.contact-icon {
  display: inline-grid;
  place-items: center;
  flex: 0 0 22px;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  border: 1px solid rgba(153, 255, 255, 0.34);
  background: rgba(153, 255, 255, 0.09);
  color: var(--cyan);
}

.contact-icon svg {
  display: block;
  width: 13px !important;
  height: 13px !important;
  fill: none !important;
  stroke: currentColor !important;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

@media (max-width: 720px) {
  .site-footer {
    align-items: stretch;
    grid-template-columns: 1fr;
  }

  .footer-brand {
    justify-content: space-between;
    width: 100%;
  }

  .footer-product-link {
    align-self: flex-start;
  }

  .footer-contact {
    justify-items: stretch;
    justify-self: stretch;
    width: 100%;
    min-width: 0;
  }
}

[data-reveal] {
  opacity: 1;
  transform: none;
}

[data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

@media (min-width: 560px) {
  .site-header {
    padding-top: 18px;
  }

  .brand-lockup img {
    width: 184px;
  }

  .top-nav a {
    padding: 11px 14px;
    font-size: 0.92rem;
  }

  .product-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .login-panel {
    justify-self: center;
  }

  .download-covers {
    gap: 18px;
  }

  .cover-card {
    min-height: 280px;
  }

  .article-directory {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .article-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .insight-grid,
  .career-map,
  .profile-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 820px) {
  h1 {
    font-size: clamp(4.9rem, 8vw, 7rem);
  }

  .hero {
    grid-template-columns: minmax(0, 1.25fr) minmax(340px, 0.75fr);
    gap: 42px;
    padding-top: 34px;
  }

  .download-band {
    grid-template-columns: minmax(0, 0.85fr) minmax(360px, 0.65fr);
    align-items: center;
  }

  .assessment-map {
    grid-template-columns: minmax(360px, 0.82fr) minmax(0, 1fr);
    gap: 54px;
  }

  .article-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .deep-article {
    grid-template-columns: minmax(300px, 0.72fr) minmax(0, 1fr);
  }

  .article-heading {
    grid-column: 1 / -1;
    padding: 32px 34px 18px;
  }

  .article-illustration {
    min-height: 100%;
    border-right: 1px solid rgba(153, 255, 255, 0.14);
    border-bottom: 0;
  }

  .article-content {
    padding: 30px 34px 34px;
  }

  .knowledge-faq,
  .source-panel {
    padding: 28px 34px;
  }

  .dimension-list {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }

  .article-layout {
    grid-template-columns: minmax(0, 1fr) 230px;
    align-items: start;
  }

  .article-side {
    position: sticky;
    top: 100px;
    order: 0;
    grid-column: 2;
  }

  .article-main {
    grid-column: 1;
    grid-row: 1;
  }

  .related-articles > div:last-child {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .related-articles a {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .related-articles img,
  .related-articles span,
  .related-articles strong {
    grid-column: 1;
  }

  .related-articles img {
    width: 100%;
    aspect-ratio: 16 / 9;
  }

  .knowledge-card {
    grid-template-rows: auto 1fr;
  }

  .knowledge-card:nth-child(3n + 1) {
    transform: translateY(12px);
  }

  .knowledge-card:nth-child(3n + 1):hover {
    transform: translateY(8px);
  }
}

@media (min-width: 1080px) {
  .article-directory {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .article-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

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

  .knowledge-card.card-plus,
  .knowledge-card.card-gallup {
    grid-column: span 2;
    grid-template-columns: minmax(280px, 0.85fr) minmax(0, 1.15fr);
  }

  .knowledge-card.card-plus .card-visual,
  .knowledge-card.card-gallup .card-visual {
    border-right: 1px solid rgba(153, 255, 255, 0.16);
    border-bottom: 0;
  }

  .card-visual {
    min-height: 276px;
  }
}

@media (max-width: 420px) {
  .site-header {
    width: min(100% - 18px, var(--max));
  }

  .site-header::before {
    inset: 8px -5px;
  }

  .brand-lockup {
    min-width: 104px;
  }

  .brand-lockup img {
    width: 118px;
  }

  .top-nav a {
    min-height: 44px;
    padding: 12px 13px;
    font-size: 0.88rem;
  }

  .hero,
  .download-band,
  .assessment-map,
  .article-grid,
  .article-list,
  .article-page,
  .site-footer {
    width: min(100% - 20px, var(--max));
  }

  .hero {
    padding-top: 14px;
  }

  .login-panel,
  .card-body {
    padding: 18px;
  }

  .download-covers {
    grid-template-columns: 1fr;
  }

  .cover-card {
    min-height: 230px;
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .article-directory {
    width: min(100% - 20px, var(--max));
  }

  .article-directory a {
    min-height: 138px;
    padding: 16px;
  }

  .article-directory em {
    font-size: 0.9rem;
  }

  .deep-article-stack {
    width: min(100% - 20px, var(--max));
  }

  .type-cloud {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .temperament-compass strong {
    width: 96px;
  }

  .riasec-hex span:nth-child(1) { transform: translate(0, -96px); }
  .riasec-hex span:nth-child(2) { transform: translate(88px, -46px); }
  .riasec-hex span:nth-child(3) { transform: translate(88px, 46px); }
  .riasec-hex span:nth-child(4) { transform: translate(0, 96px); }
  .riasec-hex span:nth-child(5) { transform: translate(-88px, 46px); }
  .riasec-hex span:nth-child(6) { transform: translate(-88px, -46px); }

  .wealth-wheel {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .site-header {
    width: min(100% - 20px, var(--max));
    padding: 10px 0;
  }

  .site-header::before {
    inset: 6px -6px;
  }

  .brand-lockup {
    min-width: 0;
  }

  .brand-lockup img {
    width: clamp(118px, 32vw, 160px);
  }

  .nav-toggle {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
    margin-left: auto;
  }

  .top-nav {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    z-index: 2;
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
    max-height: calc(100svh - 96px);
    padding: 10px;
    border: 1px solid rgba(153, 255, 255, 0.22);
    border-radius: var(--radius);
    background:
      linear-gradient(180deg, rgba(8, 35, 70, 0.98), rgba(2, 16, 39, 0.96)),
      rgba(2, 16, 39, 0.96);
    box-shadow: 0 22px 70px rgba(0, 0, 0, 0.34);
    backdrop-filter: blur(18px);
    overflow: auto;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-8px) scale(0.98);
    transform-origin: top right;
    visibility: hidden;
  }

  .site-header.nav-open .top-nav {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0) scale(1);
    visibility: visible;
  }

  .top-nav a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    min-height: 46px;
    padding: 12px 14px;
    border: 1px solid rgba(153, 255, 255, 0.13);
    border-radius: calc(var(--radius) - 1px);
    background: rgba(153, 255, 255, 0.07);
    color: var(--ink);
    font-size: 0.92rem;
    line-height: 1.15;
    white-space: normal;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }

  [data-reveal] {
    opacity: 1;
    transform: none;
  }
}
