:root {
  --ink: #072b2e;
  --ink-strong: #003438;
  --ink-soft: #0d4a4d;
  --sand: #d7c09b;
  --sand-light: #f0e5d2;
  --cream: #f7f3ec;
  --paper: #fffcf7;
  --white: #ffffff;
  --muted: #6d7978;
  --line: rgba(0, 52, 56, 0.14);
  --success: #92c7a3;
  --shadow: 0 30px 80px rgba(0, 52, 56, 0.13);
  --radius-sm: 14px;
  --radius-md: 24px;
  --radius-lg: 36px;
  --max-width: 1240px;
  --font-heading: "Manrope", sans-serif;
  --font-body: "DM Sans", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--cream);
  font-family: var(--font-body);
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  opacity: 0.35;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.08'/%3E%3C/svg%3E");
}

body.dialog-open {
  overflow: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

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

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 1000;
  transform: translateY(-150%);
  padding: 10px 16px;
  color: var(--white);
  background: var(--ink-strong);
  border-radius: 10px;
}

.skip-link:focus {
  transform: translateY(0);
}

.ambient {
  position: fixed;
  z-index: -1;
  width: 520px;
  height: 520px;
  pointer-events: none;
  filter: blur(70px);
  border-radius: 50%;
  opacity: 0.22;
}

.ambient--one {
  top: -220px;
  right: -140px;
  background: var(--sand);
}

.ambient--two {
  top: 60vh;
  left: -380px;
  background: #a4cdc1;
}

.site-header {
  position: fixed;
  top: 18px;
  left: 50%;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(calc(100% - 36px), var(--max-width));
  min-height: 66px;
  padding: 8px 10px 8px 20px;
  background: rgba(255, 252, 247, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 20px;
  box-shadow: 0 14px 45px rgba(0, 52, 56, 0.08);
  backdrop-filter: blur(18px);
  transform: translateX(-50%);
  transition: background 250ms ease, box-shadow 250ms ease;
}

.site-header.is-scrolled {
  background: rgba(255, 252, 247, 0.94);
  box-shadow: 0 14px 45px rgba(0, 52, 56, 0.14);
}

.brand {
  width: 150px;
  height: 46px;
  overflow: hidden;
  border-radius: 8px;
}

.brand img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 34px;
  font-size: 0.9rem;
  font-weight: 600;
}

.desktop-nav a {
  position: relative;
  padding: 8px 0;
}

.desktop-nav a::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 2px;
  left: 0;
  height: 1px;
  background: var(--ink-strong);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 220ms ease;
}

.desktop-nav a:hover::after,
.desktop-nav a:focus-visible::after {
  transform: scaleX(1);
  transform-origin: left;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  min-height: 54px;
  padding: 0 22px;
  font-weight: 700;
  border: 1px solid transparent;
  border-radius: 14px;
  cursor: pointer;
  transition: transform 220ms ease, box-shadow 220ms ease, background 220ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-2px);
}

.button:focus-visible,
.filter-button:focus-visible,
.module-card__action:focus-visible,
.dialog-close:focus-visible,
.text-button:focus-visible,
input:focus-visible {
  outline: 3px solid rgba(215, 192, 155, 0.85);
  outline-offset: 3px;
}

.button--small {
  min-height: 48px;
  padding: 0 17px;
  font-size: 0.86rem;
}

.button--outline {
  border-color: var(--line);
  background: transparent;
}

.button--primary {
  color: var(--white);
  background: var(--ink-strong);
  box-shadow: 0 14px 30px rgba(0, 52, 56, 0.18);
}

.button--primary:hover,
.button--primary:focus-visible {
  background: var(--ink-soft);
  box-shadow: 0 18px 34px rgba(0, 52, 56, 0.25);
}

.button--light {
  color: var(--ink-strong);
  background: var(--sand-light);
}

.button__icon {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  background: rgba(255, 255, 255, 0.14);
  border-radius: 50%;
}

.button--light .button__icon {
  background: rgba(0, 52, 56, 0.1);
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.03fr) minmax(420px, 0.97fr);
  gap: 48px;
  align-items: center;
  width: min(calc(100% - 48px), var(--max-width));
  min-height: 100svh;
  margin: 0 auto;
  padding: 138px 0 92px;
}

.hero__content {
  position: relative;
  z-index: 2;
}

.eyebrow,
.section-kicker {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink-soft);
  font-size: 0.77rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.eyebrow__pulse {
  position: relative;
  width: 9px;
  height: 9px;
  background: var(--sand);
  border-radius: 50%;
  box-shadow: 0 0 0 7px rgba(215, 192, 155, 0.2);
}

.hero h1,
.section h2 {
  margin: 22px 0 0;
  font-family: var(--font-heading);
  letter-spacing: -0.055em;
  line-height: 1.02;
}

.hero h1 {
  max-width: 720px;
  font-size: clamp(3.4rem, 6.4vw, 6.2rem);
  font-weight: 700;
}

.hero h1 span,
.overview h2 span,
.journey h2 span {
  color: var(--sand);
}

.hero__lead {
  max-width: 590px;
  margin: 28px 0 0;
  color: var(--muted);
  font-size: clamp(1.05rem, 1.5vw, 1.22rem);
  line-height: 1.65;
}

.hero__actions {
  display: flex;
  align-items: center;
  gap: 28px;
  margin-top: 34px;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 0.93rem;
  font-weight: 700;
}

.text-link span {
  transition: transform 200ms ease;
}

.text-link:hover span {
  transform: translateY(4px);
}

.hero__metrics {
  display: flex;
  gap: 0;
  margin: 52px 0 0;
}

.hero__metrics div {
  min-width: 130px;
  padding: 0 24px;
  border-left: 1px solid var(--line);
}

.hero__metrics div:first-child {
  padding-left: 0;
  border-left: 0;
}

.hero__metrics dt {
  font-family: var(--font-heading);
  font-size: 1.75rem;
  font-weight: 800;
}

.hero__metrics dd {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 0.78rem;
}

.hero__visual {
  position: relative;
  min-height: 650px;
  overflow: visible;
  background:
    radial-gradient(circle at 50% 42%, rgba(215, 192, 155, 0.24), transparent 35%),
    linear-gradient(145deg, rgba(0, 52, 56, 0.03), rgba(255, 255, 255, 0.28));
  border: 1px solid rgba(255, 255, 255, 0.68);
  border-radius: 48% 48% 42% 42% / 34% 34% 56% 56%;
  box-shadow: inset 0 0 80px rgba(255, 255, 255, 0.35), var(--shadow);
  isolation: isolate;
}

#tax-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  cursor: grab;
}

#tax-canvas:active {
  cursor: grabbing;
}

.visual-orbit {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: -1;
  pointer-events: none;
  border: 1px solid rgba(0, 52, 56, 0.12);
  border-radius: 50%;
  transform: translate(-50%, -50%) rotate(-18deg);
}

.visual-orbit--one {
  width: 82%;
  height: 28%;
}

.visual-orbit--two {
  width: 60%;
  height: 68%;
  transform: translate(-50%, -50%) rotate(42deg);
}

.visual-label {
  position: absolute;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  color: var(--ink);
  background: rgba(255, 252, 247, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 13px;
  box-shadow: 0 12px 34px rgba(0, 52, 56, 0.1);
  backdrop-filter: blur(14px);
  font-size: 0.74rem;
  font-weight: 700;
}

.visual-label span {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  color: var(--white);
  background: var(--ink-strong);
  border-radius: 10px;
  font-family: var(--font-heading);
}

.visual-label--top {
  top: 18%;
  right: -2%;
}

.visual-label--bottom {
  bottom: 18%;
  left: -2%;
}

.visual-caption {
  position: absolute;
  bottom: 24px;
  left: 50%;
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  color: var(--muted);
  font-size: 0.72rem;
  transform: translateX(-50%);
}

.visual-caption span {
  color: var(--sand);
  font-size: 0.55rem;
}

.hero__scroll {
  position: absolute;
  bottom: 28px;
  left: 0;
  display: flex;
  align-items: center;
  gap: 11px;
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero__scroll span {
  position: relative;
  width: 26px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 15px;
}

.hero__scroll span::after {
  content: "";
  position: absolute;
  top: 7px;
  left: 50%;
  width: 3px;
  height: 7px;
  background: var(--sand);
  border-radius: 4px;
  transform: translateX(-50%);
  animation: scroll-dot 1.8s ease-in-out infinite;
}

@keyframes scroll-dot {
  0%, 100% { opacity: 0; transform: translate(-50%, 0); }
  35% { opacity: 1; }
  70% { opacity: 0; transform: translate(-50%, 15px); }
}

.section {
  width: min(calc(100% - 48px), var(--max-width));
  margin: 0 auto;
  padding: 128px 0;
}

.overview {
  border-top: 1px solid var(--line);
}

.overview__grid {
  display: grid;
  grid-template-columns: 1fr 0.8fr;
  gap: 80px;
  margin-top: 28px;
}

.overview h2,
.modules h2,
.journey h2 {
  font-size: clamp(2.7rem, 5.4vw, 5.3rem);
}

.overview__copy {
  padding-top: 18px;
}

.overview__copy p {
  margin: 0 0 22px;
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.75;
}

.principles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 76px;
}

.principle {
  padding: 30px;
  background: rgba(255, 252, 247, 0.62);
  border: 1px solid rgba(255, 255, 255, 0.78);
  border-radius: var(--radius-md);
  transition: transform 250ms ease, border-color 250ms ease, box-shadow 250ms ease;
}

.principle:hover {
  transform: translateY(-7px);
  border-color: rgba(215, 192, 155, 0.65);
  box-shadow: 0 18px 48px rgba(0, 52, 56, 0.09);
}

.principle > span {
  color: var(--sand);
  font-family: var(--font-heading);
  font-size: 0.78rem;
  font-weight: 800;
}

.principle h3 {
  margin: 36px 0 10px;
  font-family: var(--font-heading);
  font-size: 1.4rem;
}

.principle p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.modules {
  width: 100%;
  max-width: none;
  padding-right: max(24px, calc((100vw - var(--max-width)) / 2));
  padding-left: max(24px, calc((100vw - var(--max-width)) / 2));
  background: var(--paper);
}

.modules__heading {
  display: grid;
  grid-template-columns: 1fr 0.55fr;
  gap: 60px;
  align-items: end;
}

.modules__heading p {
  max-width: 480px;
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.7;
}

.progress-panel {
  display: grid;
  grid-template-columns: 190px 1fr 58px;
  gap: 24px;
  align-items: center;
  margin-top: 64px;
  padding: 22px 25px;
  color: var(--white);
  background: var(--ink-strong);
  border-radius: 18px;
}

.progress-panel__text span,
.progress-panel__text strong {
  display: block;
}

.progress-panel__text span {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.73rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.progress-panel__text strong {
  margin-top: 4px;
  font-size: 0.93rem;
}

.progress-track {
  height: 6px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 20px;
}

.progress-track span {
  display: block;
  width: 83.333%;
  height: 100%;
  background: var(--sand);
  border-radius: inherit;
}

.progress-panel__percent {
  color: var(--sand);
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 800;
}

.module-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  margin-top: 54px;
}

.search-box {
  display: flex;
  align-items: center;
  gap: 12px;
  width: min(100%, 340px);
  height: 48px;
  padding: 0 16px;
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: 13px;
}

.search-box svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: var(--muted);
  stroke-width: 1.8;
}

.search-box input {
  width: 100%;
  color: var(--ink);
  background: transparent;
  border: 0;
  outline: none;
}

.search-box input::placeholder {
  color: #929c9b;
}

.filter-list {
  display: flex;
  gap: 6px;
  padding: 5px;
  background: var(--cream);
  border-radius: 14px;
}

.filter-button {
  padding: 9px 14px;
  color: var(--muted);
  background: transparent;
  border: 0;
  border-radius: 10px;
  cursor: pointer;
  font-size: 0.82rem;
  font-weight: 700;
}

.filter-button.is-active {
  color: var(--white);
  background: var(--ink-strong);
}

.module-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 28px;
}

.module-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 330px;
  padding: 24px;
  overflow: hidden;
  background: var(--cream);
  border: 1px solid transparent;
  border-radius: var(--radius-md);
  transition: transform 260ms ease, box-shadow 260ms ease, border-color 260ms ease;
}

.module-card::before {
  content: "";
  position: absolute;
  right: -55px;
  bottom: -65px;
  width: 180px;
  height: 180px;
  background: radial-gradient(circle, rgba(215, 192, 155, 0.24), transparent 68%);
  border-radius: 50%;
  transition: transform 350ms ease;
}

.module-card:hover {
  z-index: 1;
  transform: translateY(-8px);
  border-color: rgba(215, 192, 155, 0.6);
  box-shadow: 0 24px 65px rgba(0, 52, 56, 0.12);
}

.module-card:hover::before {
  transform: scale(1.4);
}

.module-card.is-upcoming {
  background: #f2f0eb;
}

.module-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.module-card__number {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  color: var(--white);
  background: var(--ink-strong);
  border-radius: 14px;
  font-family: var(--font-heading);
  font-size: 0.86rem;
  font-weight: 800;
}

.is-upcoming .module-card__number {
  color: var(--ink);
  background: var(--sand-light);
}

.module-card__status {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.module-card__status::before {
  content: "";
  width: 7px;
  height: 7px;
  background: var(--success);
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(146, 199, 163, 0.17);
}

.is-upcoming .module-card__status::before {
  background: var(--sand);
  box-shadow: 0 0 0 4px rgba(215, 192, 155, 0.18);
}

.module-card__category {
  margin: 34px 0 7px;
  color: var(--sand);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.module-card h3 {
  max-width: 92%;
  margin: 0;
  font-family: var(--font-heading);
  font-size: 1.28rem;
  letter-spacing: -0.025em;
  line-height: 1.25;
}

.module-card p {
  margin: 12px 0 22px;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.55;
}

.module-card__action {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  margin-top: auto;
  padding: 12px 0 0;
  color: var(--ink);
  background: transparent;
  border: 0;
  border-top: 1px solid var(--line);
  cursor: pointer;
  font-size: 0.83rem;
  font-weight: 800;
  text-align: left;
}

.module-card__action span:last-child {
  display: grid;
  place-items: center;
  width: 33px;
  height: 33px;
  color: var(--white);
  background: var(--ink-strong);
  border-radius: 50%;
  transition: transform 220ms ease;
}

.module-card__action:hover span:last-child {
  transform: rotate(-42deg);
}

.is-upcoming .module-card__action span:last-child {
  color: var(--ink);
  background: var(--sand-light);
}

.empty-state {
  margin: 42px auto 0;
  color: var(--muted);
  text-align: center;
}

.journey {
  position: relative;
  width: min(calc(100% - 48px), var(--max-width));
  margin: 100px auto;
  padding: 110px 70px;
  overflow: hidden;
  color: var(--white);
  background: var(--ink-strong);
  border-radius: var(--radius-lg);
  text-align: center;
  isolation: isolate;
}

.journey::before,
.journey::after {
  content: "";
  position: absolute;
  z-index: -1;
  border: 1px solid rgba(215, 192, 155, 0.18);
  border-radius: 50%;
}

.journey::before {
  top: -250px;
  left: -180px;
  width: 590px;
  height: 590px;
}

.journey::after {
  right: -240px;
  bottom: -320px;
  width: 700px;
  height: 700px;
}

.journey__glow {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: -1;
  width: 560px;
  height: 300px;
  background: rgba(215, 192, 155, 0.11);
  filter: blur(60px);
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

.section-kicker--light {
  justify-content: center;
  color: var(--sand);
}

.journey h2 {
  max-width: 980px;
  margin-right: auto;
  margin-left: auto;
}

.journey > p {
  max-width: 650px;
  margin: 26px auto 34px;
  color: rgba(255, 255, 255, 0.68);
  font-size: 1.05rem;
  line-height: 1.7;
}

.journey__signature {
  margin-top: 74px;
  color: rgba(255, 255, 255, 0.12);
  font-family: var(--font-heading);
  font-size: clamp(3rem, 8vw, 7.6rem);
  font-weight: 800;
  letter-spacing: -0.07em;
  line-height: 0.8;
}

.journey__signature span {
  display: block;
  margin-top: 16px;
  font-size: 0.26em;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.site-footer {
  display: grid;
  grid-template-columns: 180px minmax(280px, 1fr) auto;
  gap: 45px;
  align-items: center;
  width: min(calc(100% - 48px), var(--max-width));
  margin: 0 auto;
  padding: 36px 0 44px;
  border-top: 1px solid var(--line);
}

.site-footer img {
  width: 160px;
  border-radius: 8px;
}

.site-footer p {
  max-width: 560px;
  margin: 0;
  color: var(--muted);
  font-size: 0.76rem;
  line-height: 1.55;
}

.footer-links {
  display: flex;
  gap: 18px;
  color: var(--ink-soft);
  font-size: 0.75rem;
  font-weight: 700;
}

.footer-links a:hover {
  text-decoration: underline;
}

.site-footer small {
  grid-column: 2;
  color: #919a99;
  font-size: 0.7rem;
}

.developer-credit {
  grid-column: 3;
  grid-row: 1 / span 2;
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 190px;
  padding: 10px 12px 10px 16px;
  color: rgba(255, 255, 255, 0.62);
  background: var(--ink-strong);
  border: 1px solid rgba(215, 192, 155, 0.2);
  border-radius: 14px;
  transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
}

.developer-credit:hover,
.developer-credit:focus-visible {
  transform: translateY(-3px);
  border-color: rgba(215, 192, 155, 0.55);
  box-shadow: 0 14px 32px rgba(0, 52, 56, 0.16);
}

.developer-credit span {
  flex: 0 0 auto;
  font-size: 0.63rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.developer-credit img {
  width: 78px;
  height: 28px;
  object-fit: contain;
}

.module-dialog {
  width: min(calc(100% - 32px), 610px);
  max-height: calc(100svh - 32px);
  padding: 42px;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 28px;
  box-shadow: 0 40px 100px rgba(0, 28, 30, 0.35);
}

.module-dialog::backdrop {
  background: rgba(0, 35, 38, 0.72);
  backdrop-filter: blur(8px);
}

.module-dialog[open] {
  animation: dialog-in 300ms ease both;
}

@keyframes dialog-in {
  from { opacity: 0; transform: translateY(22px) scale(0.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.dialog-close {
  position: absolute;
  top: 18px;
  right: 18px;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  color: var(--ink);
  background: var(--cream);
  border: 0;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.5rem;
  line-height: 1;
}

.dialog-number {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  color: var(--white);
  background: var(--ink-strong);
  border-radius: 15px;
  font-family: var(--font-heading);
  font-weight: 800;
}

.dialog-status {
  margin-top: 28px;
  color: var(--sand);
  font-size: 0.73rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.module-dialog h2 {
  margin: 10px 0 16px;
  font-family: var(--font-heading);
  font-size: clamp(2rem, 6vw, 3rem);
  letter-spacing: -0.05em;
  line-height: 1.08;
}

.module-dialog > p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.dialog-insight {
  margin-top: 26px;
  padding: 20px;
  background: var(--cream);
  border-left: 3px solid var(--sand);
  border-radius: 0 14px 14px 0;
}

.dialog-insight span {
  color: var(--sand);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.dialog-insight p {
  margin: 8px 0 0;
  line-height: 1.55;
}

.dialog-actions {
  display: flex;
  align-items: center;
  gap: 22px;
  margin-top: 30px;
}

.text-button {
  padding: 10px 0;
  color: var(--muted);
  background: transparent;
  border: 0;
  cursor: pointer;
  font-size: 0.84rem;
  font-weight: 700;
}

.cursor-glow {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 999;
  width: 180px;
  height: 180px;
  pointer-events: none;
  background: radial-gradient(circle, rgba(215, 192, 155, 0.16), transparent 68%);
  border-radius: 50%;
  opacity: 0;
  transform: translate(-50%, -50%);
  transition: opacity 250ms ease;
}

@media (max-width: 1050px) {
  .hero {
    grid-template-columns: 1fr 0.8fr;
  }

  .hero__visual {
    min-height: 560px;
  }

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

  .site-footer {
    grid-template-columns: 160px 1fr auto;
  }

  .footer-links {
    grid-column: 2;
  }

  .developer-credit {
    grid-column: 3;
  }
}

@media (max-width: 820px) {
  .site-header {
    top: 10px;
  }

  .desktop-nav {
    display: none;
  }

  .hero {
    display: flex;
    flex-direction: column;
    width: min(calc(100% - 32px), var(--max-width));
    padding-top: 126px;
  }

  .hero__content {
    width: 100%;
  }

  .hero h1 {
    font-size: clamp(3.3rem, 12.8vw, 5.6rem);
  }

  .hero__visual {
    width: 100%;
    min-height: 580px;
  }

  .hero__scroll {
    display: none;
  }

  .overview__grid,
  .modules__heading {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .principles {
    grid-template-columns: 1fr;
  }

  .module-controls {
    align-items: stretch;
    flex-direction: column;
  }

  .search-box {
    width: 100%;
    max-width: none;
  }

  .filter-list {
    overflow-x: auto;
  }

  .journey {
    padding: 90px 28px;
  }
}

@media (max-width: 600px) {
  .site-header {
    width: calc(100% - 20px);
    min-height: 60px;
    padding-left: 12px;
  }

  .brand {
    width: 116px;
    height: 40px;
  }

  .site-header .button {
    min-height: 42px;
    padding: 0 12px;
    font-size: 0.74rem;
  }

  .site-header .button span {
    display: none;
  }

  .hero {
    gap: 42px;
    padding-bottom: 70px;
  }

  .hero h1 {
    font-size: clamp(3rem, 15vw, 4.5rem);
  }

  .hero__actions {
    align-items: stretch;
    flex-direction: column;
    gap: 18px;
  }

  .text-link {
    justify-content: center;
  }

  .hero__metrics {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
  }

  .hero__metrics div {
    min-width: 0;
    padding: 0 12px;
  }

  .hero__metrics dt {
    font-size: 1.35rem;
  }

  .hero__metrics dd {
    font-size: 0.68rem;
  }

  .hero__visual {
    min-height: 500px;
    border-radius: 40% 40% 35% 35% / 25% 25% 48% 48%;
  }

  .visual-label--top {
    top: 12%;
    right: 8px;
  }

  .visual-label--bottom {
    bottom: 13%;
    left: 8px;
  }

  .section {
    width: min(calc(100% - 32px), var(--max-width));
    padding: 90px 0;
  }

  .overview h2,
  .modules h2,
  .journey h2 {
    font-size: clamp(2.5rem, 12vw, 4rem);
  }

  .modules {
    width: 100%;
    padding-right: 16px;
    padding-left: 16px;
  }

  .progress-panel {
    grid-template-columns: 1fr auto;
  }

  .progress-track {
    grid-column: 1 / -1;
    grid-row: 2;
  }

  .module-grid {
    grid-template-columns: 1fr;
  }

  .module-card {
    min-height: 310px;
  }

  .journey {
    width: calc(100% - 24px);
    margin: 64px auto;
  }

  .site-footer {
    display: flex;
    align-items: flex-start;
    flex-direction: column;
    width: calc(100% - 32px);
    gap: 22px;
  }

  .developer-credit {
    grid-column: auto;
    grid-row: auto;
  }

  .footer-links {
    flex-wrap: wrap;
  }

  .module-dialog {
    padding: 32px 24px;
  }

  .dialog-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .cursor-glow {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .cursor-glow {
    display: none;
  }
}
