:root {
  color-scheme: light;
  --ink: #17202a;
  --ink-soft: #334252;
  --muted: #657180;
  --paper: #fffdf8;
  --paper-warm: #fff8e8;
  --surface: #ffffff;
  --surface-blue: #eff8ff;
  --surface-green: #eefaf4;
  --yellow: #f8cf3d;
  --yellow-strong: #e6b91f;
  --blue: #1769a6;
  --blue-dark: #0b4d7f;
  --green: #18845d;
  --coral: #dc654e;
  --line: #dfe5e9;
  --line-strong: #cbd3da;
  --shadow-sm: 0 2px 8px rgba(23, 32, 42, .06);
  --shadow-md: 0 16px 44px rgba(23, 32, 42, .12);
  --shadow-lg: 0 28px 80px rgba(23, 32, 42, .18);
  --radius-sm: 10px;
  --radius-md: 18px;
  --radius-lg: 28px;
  --header-height: 124px;
  --content-width: 1360px;
  --reading-width: 880px;
  --font-sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 24px);
}

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  background:
    radial-gradient(circle at 5% 10%, rgba(248, 207, 61, .12), transparent 27rem),
    linear-gradient(180deg, var(--paper) 0, #fff 36rem);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 19px;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
}

button,
input,
textarea {
  font: inherit;
}

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

a {
  color: var(--blue);
  text-underline-offset: .18em;
}

a:hover {
  color: var(--blue-dark);
}

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

.logo-art {
  position: relative;
  display: block;
  flex: 0 0 auto;
}

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

.logo-art::after {
  content: none;
}

.dark-logo-art::before {
  position: absolute;
  z-index: 1;
  inset: 0;
  background: #fff;
  clip-path: polygon(0 43%, 32% 43%, 32% 55%, 100% 55%, 100% 100%, 0 100%);
  content: "";
  pointer-events: none;
  -webkit-mask: url("images/pvclogo.png") center / contain no-repeat;
  mask: url("images/pvclogo.png") center / contain no-repeat;
}

button {
  color: inherit;
}

h1,
h2,
h3,
h4,
h5 {
  margin: 0;
  color: var(--ink);
  font-weight: 760;
  letter-spacing: -.025em;
  line-height: 1.12;
}

p,
ul,
ol {
  margin-block: 0 1em;
}

li + li {
  margin-top: .45em;
}

::selection {
  background: rgba(248, 207, 61, .58);
  color: var(--ink);
}

:focus-visible {
  outline: 3px solid rgba(23, 105, 166, .38);
  outline-offset: 3px;
}

.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;
  z-index: 10000;
  top: 12px;
  left: 12px;
  transform: translateY(-180%);
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  text-decoration: none;
  transition: transform .2s ease;
}

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

.eyebrow {
  margin: 0 0 10px;
  color: var(--blue);
  font-size: .82rem;
  font-weight: 800;
  letter-spacing: .13em;
  line-height: 1.3;
  text-transform: uppercase;
}

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 19px;
  border: 1px solid transparent;
  border-radius: 999px;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 720;
  line-height: 1.2;
  text-decoration: none;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease, border-color .18s ease;
}

.button:hover {
  transform: translateY(-1px);
  text-decoration: none;
}

.button-primary {
  border-color: var(--yellow-strong);
  background: var(--yellow);
  box-shadow: 0 8px 18px rgba(191, 143, 0, .18);
  color: #2b260f;
}

.button-primary:hover {
  background: #ffda4f;
  color: #2b260f;
}

.button-secondary {
  border-color: var(--line-strong);
  background: rgba(255, 255, 255, .84);
  color: var(--ink);
}

.button-secondary:hover,
.button-quiet:hover {
  border-color: #aab5be;
  background: #fff;
  color: var(--ink);
}

.button-quiet {
  border-color: transparent;
  background: transparent;
  color: var(--ink-soft);
}

/* Opening signature */
.intro-experience {
  position: fixed;
  z-index: 9999;
  inset: 0;
  display: grid;
  place-items: center;
  overflow: hidden;
  background:
    linear-gradient(rgba(111, 202, 255, .035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(111, 202, 255, .035) 1px, transparent 1px),
    radial-gradient(circle at center, #1a425b 0, #0b2637 38%, #06121c 100%);
  background-size: 52px 52px, 52px 52px, auto;
  color: #fff;
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
  transition: opacity .65s ease, visibility .65s step-end;
}

.intro-experience.is-visible {
  opacity: 1;
  pointer-events: auto;
  visibility: visible;
  transition: opacity .25s ease;
}

.intro-experience.is-ending {
  opacity: 0;
  pointer-events: none;
}

.intro-experience::after {
  content: none;
}

.intro-sky {
  position: absolute;
  z-index: 2;
  inset: 0;
  overflow: hidden;
  perspective: 800px;
}

.intro-particle {
  position: absolute;
  top: 50%;
  left: 50%;
  max-width: 720px;
  margin: 0;
  color: rgba(126, 209, 255, .82);
  font: clamp(30px, 3vw, 48px)/1.22 var(--font-mono);
  white-space: pre-wrap;
  text-shadow:
    0 0 12px rgba(91, 190, 255, .42),
    0 0 28px rgba(91, 190, 255, .2);
  will-change: transform, opacity;
}

.intro-particle.is-prompt {
  color: rgba(123, 231, 175, .92);
  font-family: var(--font-sans);
  font-style: italic;
}

.intro-face {
  position: absolute;
  z-index: 1;
  top: 50%;
  left: 50%;
  width: clamp(900px, 88vw, 1500px);
  max-width: none;
  max-height: none;
  object-fit: contain;
  opacity: 0;
  filter:
    brightness(1.18)
    contrast(1.08)
    saturate(1.5)
    drop-shadow(0 0 22px rgba(67, 197, 255, .58))
    drop-shadow(0 0 72px rgba(84, 80, 255, .34));
  mix-blend-mode: screen;
  pointer-events: none;
  transform: translate(-50%, -50%) scale(.72);
}

.intro-walker {
  position: absolute;
  z-index: 1;
  top: 50%;
  bottom: auto;
  left: 0;
  width: min(188px, 30vw);
  opacity: 0;
  filter:
    invert(1)
    sepia(.45)
    saturate(2.4)
    hue-rotate(155deg)
    drop-shadow(0 0 11px rgba(126, 209, 255, .7));
  mix-blend-mode: screen;
  pointer-events: none;
}

.intro-walker-reverse {
  right: 0;
  left: auto;
  width: min(188px, 30vw);
}

.intro-experience.is-visible .intro-face {
  animation: intro-face-awaken 5s cubic-bezier(.2, .72, .2, 1) both;
}

.intro-experience.is-visible .intro-walker {
  animation: intro-walk-across 5s cubic-bezier(.22, .5, .22, 1) both;
}

.intro-experience.is-visible .intro-walker-reverse {
  animation: intro-walk-reverse 5s cubic-bezier(.22, .5, .22, 1) both;
}

.intro-mark {
  position: relative;
  z-index: 4;
  display: grid;
  justify-items: center;
  padding: 52px;
  text-align: center;
}

.intro-experience.is-visible .intro-mark {
  animation: intro-mark-in .75s .45s both;
}

.intro-mark::before {
  content: none;
}

.intro-mark::after {
  content: none;
}

.intro-logo-art {
  width: clamp(154px, 15vw, 204px);
  height: clamp(154px, 15vw, 204px);
}

.intro-logo-art img {
  padding: 0;
  filter:
    drop-shadow(0 0 2px rgba(255, 255, 255, .75))
    drop-shadow(0 0 24px rgba(248, 207, 61, .42))
    drop-shadow(0 18px 36px rgba(0, 0, 0, .4));
}

.intro-mark p {
  margin: 20px 0 4px;
  color: #fff;
  font-size: clamp(1.8rem, 4.5vw, 3.25rem);
  font-weight: 800;
  letter-spacing: -.04em;
  text-shadow: 0 3px 22px rgba(0, 0, 0, .55);
}

.intro-mark span {
  max-width: min(420px, calc(100vw - 48px));
  color: rgba(255, 255, 255, .86);
  font-size: clamp(.72rem, 1.15vw, .94rem);
  font-weight: 740;
  letter-spacing: .1em;
  line-height: 1.5;
  text-transform: uppercase;
}

.intro-skip {
  position: absolute;
  z-index: 3;
  right: 22px;
  bottom: 20px;
  padding: 8px 13px;
  border: 1px solid rgba(255, 255, 255, .25);
  border-radius: 999px;
  background: rgba(255, 255, 255, .08);
  color: rgba(255, 255, 255, .82);
  cursor: pointer;
  font-size: .78rem;
}

@keyframes intro-mark-in {
  from { opacity: 0; transform: scale(.72); }
  to { opacity: 1; transform: scale(1); }
}

@keyframes intro-face-awaken {
  0%, 7% { opacity: 0; transform: translate(-50%, -50%) scale(.72) rotate(-2deg); }
  27% { opacity: .36; }
  52% { opacity: .78; transform: translate(-50%, -50%) scale(1) rotate(0); }
  78% { opacity: .58; }
  100% { opacity: 0; transform: translate(-50%, -50%) scale(1.08) rotate(1deg); }
}

@keyframes intro-walk-across {
  0% { opacity: 0; transform: translate3d(-220px, -50%, 0) scale(.92); }
  12% { opacity: .82; }
  54% { opacity: .92; transform: translate3d(calc(50vw - 50%), -50%, 0) scale(1); }
  66% { opacity: .48; transform: translate3d(calc(50vw - 50%), -50%, 0) scale(.78); }
  76%, 100% { opacity: 0; transform: translate3d(calc(50vw - 50%), -50%, 0) scale(.52); }
}

@keyframes intro-walk-reverse {
  0% { opacity: 0; transform: translate3d(220px, -50%, 0) scaleX(-1) scale(.92); }
  12% { opacity: .82; }
  54% { opacity: .92; transform: translate3d(calc(-50vw + 50%), -50%, 0) scaleX(-1) scale(1); }
  66% { opacity: .48; transform: translate3d(calc(-50vw + 50%), -50%, 0) scaleX(-1) scale(.78); }
  76%, 100% { opacity: 0; transform: translate3d(calc(-50vw + 50%), -50%, 0) scaleX(-1) scale(.52); }
}

/* Header */
.site-header {
  position: sticky;
  z-index: 100;
  top: 0;
  min-height: var(--header-height);
  border-bottom: 1px solid rgba(203, 211, 218, .82);
  background: rgba(255, 253, 248, .9);
  box-shadow: 0 6px 24px rgba(23, 32, 42, .06);
  backdrop-filter: blur(18px) saturate(145%);
}

.header-inner {
  display: grid;
  width: min(var(--content-width), calc(100% - 36px));
  min-height: var(--header-height);
  align-items: center;
  margin: 0 auto;
  gap: 28px;
  grid-template-columns: minmax(300px, 1fr) auto minmax(130px, 1fr);
}

.brand {
  display: inline-flex;
  width: max-content;
  align-items: center;
  gap: 14px;
  color: var(--ink);
  text-decoration: none;
}

.brand:hover {
  color: var(--ink);
}

.header-logo-art {
  width: 102px;
  height: 102px;
}

.header-logo-art img {
  filter:
    drop-shadow(0 5px 12px rgba(23, 32, 42, .2))
    drop-shadow(0 0 9px rgba(248, 207, 61, .18));
}

.brand-copy {
  display: grid;
  line-height: 1.12;
}

.brand-copy strong {
  font-size: 1.38rem;
  letter-spacing: -.02em;
}

.brand-copy small {
  margin-top: 5px;
  color: var(--muted);
  font-size: .84rem;
  font-weight: 560;
}

.primary-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2px;
}

.nav-tab {
  min-height: 46px;
  padding: 9px 17px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 1rem;
  font-weight: 680;
  white-space: nowrap;
}

.nav-tab:hover {
  background: rgba(255, 255, 255, .8);
  color: var(--ink);
}

.nav-tab.is-active {
  background: #fff;
  box-shadow: var(--shadow-sm);
  color: var(--ink);
}

.account-trigger {
  justify-self: end;
  min-height: 46px;
  padding: 9px 15px;
  font-size: .95rem;
}

.account-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--line-strong);
}

.is-signed-in .account-dot {
  background: var(--green);
  box-shadow: 0 0 0 4px rgba(24, 132, 93, .12);
}

/* Panels and hero */
.view-panel[hidden] {
  display: none !important;
}

.view-panel.is-active {
  animation: panel-in .32s ease both;
}

@keyframes panel-in {
  from { opacity: 0; transform: translateY(5px); }
  to { opacity: 1; transform: translateY(0); }
}

.hero {
  display: grid;
  width: min(var(--content-width), calc(100% - 40px));
  min-height: 610px;
  align-items: center;
  margin: 0 auto;
  padding: clamp(64px, 8vw, 112px) 0;
  gap: clamp(40px, 7vw, 92px);
  grid-template-columns: minmax(0, 1.02fr) minmax(420px, .98fr);
}

.hero-copy {
  position: relative;
  z-index: 2;
}

.hero h1 {
  max-width: 760px;
  font-size: clamp(3.35rem, 6.5vw, 6.65rem);
  letter-spacing: -.072em;
  line-height: .91;
}

.hero h1 span {
  color: var(--blue);
}

.hero-lede {
  max-width: 650px;
  margin: 28px 0 30px;
  color: var(--ink-soft);
  font-size: clamp(1.05rem, 1.6vw, 1.28rem);
  line-height: 1.62;
}

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

.hero-stats {
  display: flex;
  margin: 38px 0 0;
  gap: 0;
}

.hero-stats > div {
  display: grid;
  padding: 0 22px;
  border-left: 1px solid var(--line);
}

.hero-stats > div:first-child {
  padding-left: 0;
  border-left: 0;
}

.hero-stats dt {
  color: var(--ink);
  font-size: 1.32rem;
  font-weight: 820;
  line-height: 1;
}

.hero-stats dd {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: .72rem;
  line-height: 1.2;
}

.hero-visual {
  position: relative;
  display: grid;
  min-height: 540px;
  place-items: center;
}

.hero-visual::before {
  position: absolute;
  top: 50%;
  left: 50%;
  width: min(96%, 550px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle at 38% 32%, #f5fbff 0, #e4f4ff 42%, #fff2bb 100%);
  box-shadow: 0 18px 46px rgba(23, 105, 166, .12);
  content: "";
  transform: translate(-50%, -50%);
}

.hero-portrait {
  position: relative;
  z-index: 2;
  width: min(92%, 520px);
  aspect-ratio: 1;
  overflow: hidden;
  border: 8px solid rgba(255, 255, 255, .78);
  border-radius: 50%;
  box-shadow: var(--shadow-md);
  background: #f7fbfd;
}

.hero-portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-orbit {
  position: absolute;
  z-index: 1;
  top: 50%;
  left: 50%;
  border: 2px dashed rgba(23, 105, 166, .34);
  border-radius: 50%;
}

.orbit-one {
  width: min(96%, 560px);
  aspect-ratio: 1;
  animation: orbit-spin 30s linear infinite;
}

.orbit-two {
  width: min(74%, 430px);
  aspect-ratio: 1;
  border-color: rgba(230, 185, 31, .62);
  animation: orbit-spin 22s linear infinite reverse;
}

@keyframes orbit-spin {
  from { transform: translate(-50%, -50%) rotate(0deg); }
  to { transform: translate(-50%, -50%) rotate(360deg); }
}

.hero-note {
  position: absolute;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 13px 9px 9px;
  border: 1px solid rgba(203, 211, 218, .7);
  border-radius: 999px;
  background: rgba(255, 255, 255, .92);
  box-shadow: var(--shadow-sm);
  font-size: .78rem;
  font-weight: 760;
}

.hero-note span {
  display: grid;
  width: 26px;
  height: 26px;
  place-items: center;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  font-size: .63rem;
}

.note-plan { top: 12%; left: -2%; }
.note-test { top: 42%; right: -5%; }
.note-verify { bottom: 6%; left: 8%; }

.principles-strip {
  display: flex;
  width: min(var(--content-width), calc(100% - 40px));
  align-items: center;
  justify-content: space-between;
  margin: 0 auto 90px;
  padding: 18px 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, .78);
  box-shadow: var(--shadow-sm);
}

.principles-strip > p {
  margin: 0;
  color: var(--muted);
  font-size: .72rem;
  font-weight: 820;
  letter-spacing: .11em;
  text-transform: uppercase;
}

.principles-strip ol {
  display: flex;
  align-items: center;
  margin: 0;
  gap: 28px;
  list-style: none;
}

.principles-strip li {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--ink-soft);
  font-size: 1rem;
  font-weight: 680;
}

.principles-strip li + li::before {
  margin-right: 16px;
  color: var(--line-strong);
  content: "→";
}

.principles-strip li span {
  display: grid;
  width: 25px;
  height: 25px;
  place-items: center;
  border-radius: 50%;
  background: var(--paper-warm);
  color: #725b05;
  font-size: .66rem;
  font-weight: 800;
}

/* Guide layout */
.guide-shell {
  display: grid;
  width: min(var(--content-width), calc(100% - 40px));
  align-items: start;
  margin: 0 auto 110px;
  gap: clamp(36px, 6vw, 84px);
  grid-template-columns: 252px minmax(0, 1fr);
}

.chapter-rail {
  position: sticky;
  top: calc(var(--header-height) + 30px);
}

.rail-inner {
  display: grid;
  gap: 20px;
}

.rail-kicker {
  margin: 0;
  color: var(--muted);
  font-size: .82rem;
  font-weight: 820;
  letter-spacing: .12em;
  text-transform: uppercase;
}

#chapter-nav {
  display: grid;
  gap: 4px;
}

.chapter-link {
  display: grid;
  width: 100%;
  padding: 11px 13px;
  border: 0;
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: .98rem;
  font-weight: 660;
  grid-template-columns: 24px 1fr;
  text-align: left;
}

.chapter-link span {
  color: var(--line-strong);
  font-size: .73rem;
}

.chapter-link:hover,
.chapter-link.is-active {
  background: #fff;
  box-shadow: var(--shadow-sm);
  color: var(--ink);
}

.chapter-link.is-active span {
  color: var(--blue);
}

.progress-card {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, .7);
}

.progress-label {
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  font-size: .77rem;
}

.progress-label strong {
  color: var(--ink);
}

.progress-track {
  height: 6px;
  margin-top: 9px;
  overflow: hidden;
  border-radius: 999px;
  background: #e9eef1;
}

.progress-track span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--yellow), var(--green));
  transition: width .35s ease;
}

.progress-card button {
  margin-top: 9px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: .76rem;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.guide-content {
  min-width: 0;
}

.guide-heading {
  display: grid;
  align-items: end;
  margin-bottom: 28px;
  gap: 28px;
  grid-template-columns: minmax(0, 1fr) minmax(230px, 330px);
}

.guide-heading h2 {
  font-size: clamp(2.25rem, 4vw, 3.65rem);
}

.guide-heading > div > p:last-child {
  max-width: 660px;
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 1.12rem;
}

.search-box {
  display: grid;
  min-height: 54px;
  align-items: center;
  padding: 0 11px 0 14px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: #fff;
  box-shadow: var(--shadow-sm);
  grid-template-columns: 19px 1fr auto;
}

.search-box:focus-within {
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(23, 105, 166, .1);
}

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

.search-box input {
  min-width: 0;
  padding: 0 10px;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
  font-size: 1rem;
}

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

.search-box kbd {
  padding: 2px 7px;
  border: 1px solid var(--line);
  border-bottom-width: 2px;
  border-radius: 6px;
  background: #f8fafb;
  color: var(--muted);
  font: .68rem var(--font-mono);
}

.mobile-chapters {
  display: none;
}

.search-status {
  min-height: 1.2em;
  margin: 0 0 10px;
  color: var(--muted);
  font-size: .84rem;
}

.question-list {
  display: grid;
  gap: 12px;
}

/* Intro and question cards */
.guide-introduction {
  position: relative;
  margin-bottom: 8px;
  padding: clamp(24px, 4vw, 40px);
  overflow: hidden;
  border: 1px solid #efd76f;
  border-radius: var(--radius-md);
  background:
    radial-gradient(circle at 94% 0, rgba(248, 207, 61, .3), transparent 14rem),
    var(--paper-warm);
}

.guide-introduction::after {
  position: absolute;
  right: -35px;
  bottom: -50px;
  width: 160px;
  height: 160px;
  border: 1px solid rgba(114, 91, 5, .15);
  border-radius: 50%;
  content: "";
}

.guide-introduction h2 {
  max-width: 620px;
  margin-bottom: 16px;
  font-size: clamp(1.85rem, 3vw, 2.55rem);
}

.guide-introduction p,
.guide-introduction li {
  max-width: 74ch;
  font-size: 1.1rem;
}

.guide-introduction .download-strip {
  margin: 22px 0;
  padding: 15px 17px;
  border: 1px solid rgba(114, 91, 5, .18);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, .6);
}

.question-card {
  position: relative;
  overflow: clip;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, .9);
  box-shadow: 0 1px 0 rgba(23, 32, 42, .03);
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.question-card:hover {
  border-color: #cbd6de;
  box-shadow: var(--shadow-sm);
}

.question-card.is-open {
  border-color: #b8cad8;
  box-shadow: var(--shadow-md);
}

.question-card[hidden] {
  display: none;
}

.card-toggle {
  display: grid;
  width: 100%;
  align-items: center;
  padding: 25px 24px;
  border: 0;
  background: transparent;
  cursor: pointer;
  gap: 15px;
  grid-template-columns: 48px minmax(0, 1fr) 36px;
  text-align: left;
}

.question-number {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border-radius: 13px;
  background: var(--paper-warm);
  color: #725b05;
  font-size: .85rem;
  font-weight: 820;
}

.card-heading-copy {
  min-width: 0;
}

.card-chapter {
  display: block;
  margin-bottom: 4px;
  color: var(--blue);
  font-size: .78rem;
  font-weight: 820;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.card-toggle h2 {
  font-size: clamp(1.28rem, 2vw, 1.62rem);
  letter-spacing: -.025em;
}

.card-summary {
  display: block;
  max-width: 68ch;
  margin-top: 6px;
  color: var(--muted);
  font-size: .96rem;
  line-height: 1.42;
}

.card-chevron {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--muted);
  font-size: 1.1rem;
  transition: transform .22s ease, background .22s ease;
}

.is-open .card-chevron {
  background: var(--ink);
  color: #fff;
  transform: rotate(45deg);
}

.card-body {
  display: none;
  padding: 0 clamp(20px, 4vw, 42px) clamp(25px, 5vw, 46px);
  border-top: 1px solid transparent;
}

.is-open .card-body {
  display: block;
  border-top-color: var(--line);
  animation: answer-in .28s ease both;
}

@keyframes answer-in {
  from { opacity: 0; transform: translateY(-5px); }
  to { opacity: 1; transform: translateY(0); }
}

.card-body > img:first-child,
.card-body > img:first-of-type {
  width: min(100%, 660px);
  max-height: 410px;
  margin: 32px auto;
  border-radius: var(--radius-md);
  object-fit: contain;
}

.card-body p,
.card-body li {
  max-width: 74ch;
  font-size: 1.12rem;
}

.card-body > p:first-of-type {
  margin-top: 28px;
  color: var(--ink-soft);
  font-size: 1.2rem;
}

.card-body strong {
  color: #101820;
}

.card-body ul,
.card-body ol {
  max-width: 72ch;
  padding-left: 1.35rem;
}

.tip,
.callout {
  max-width: 74ch;
  margin: 24px 0;
  padding: 17px 19px;
  border-radius: var(--radius-sm);
}

.tip {
  border: 1px solid #bcd8eb;
  background: var(--surface-blue);
}

.callout {
  border: 1px solid #c4e5d5;
  background: var(--surface-green);
}

.tip::before,
.callout::before {
  display: block;
  margin-bottom: 7px;
  color: var(--blue);
  font-size: .66rem;
  font-weight: 820;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.tip::before { content: "Try this"; }
.callout::before { color: var(--green); content: "Keep in mind"; }

.tip > strong:first-child {
  display: none;
}

.card-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 30px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  gap: 14px;
}

.deep-dive-button {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  gap: 9px;
  padding: 8px 14px;
  border: 1px solid #b6d3e7;
  border-radius: 999px;
  background: var(--surface-blue);
  color: var(--blue-dark);
  cursor: pointer;
  font-size: .78rem;
  font-weight: 760;
}

.deep-dive-button::after {
  content: "↗";
}

.mark-complete {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 0;
  border: 0;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: .74rem;
  font-weight: 680;
}

.mark-complete::before {
  display: grid;
  width: 20px;
  height: 20px;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  content: "";
}

.mark-complete.is-complete {
  color: var(--green);
}

.mark-complete.is-complete::before {
  border-color: var(--green);
  background: var(--green);
  color: #fff;
  content: "✓";
  font-size: .7rem;
}

.no-results {
  padding: 46px 20px;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius-md);
  color: var(--muted);
  text-align: center;
}

/* Community controls */
.community {
  margin-top: 20px;
  padding: 17px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: #fafcfd;
}

.community-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.community-summary p {
  margin: 0;
  color: var(--muted);
  font-size: .76rem;
}

.community-stars {
  display: flex;
  align-items: center;
  gap: 2px;
}

.star-button {
  display: grid;
  width: 31px;
  height: 31px;
  place-items: center;
  padding: 0;
  border: 0;
  background: transparent;
  color: #c6ced4;
  cursor: pointer;
  font-size: 1.3rem;
  line-height: 1;
}

.star-button:hover,
.star-button.is-filled {
  color: var(--yellow-strong);
}

.community details {
  margin-top: 12px;
}

.community summary {
  color: var(--blue);
  cursor: pointer;
  font-size: .76rem;
  font-weight: 700;
}

.comment-list {
  display: grid;
  margin: 14px 0;
  gap: 8px;
}

.comment {
  padding: 10px 12px;
  border-radius: 9px;
  background: #fff;
  font-size: .78rem;
}

.comment strong {
  display: block;
  margin-bottom: 2px;
}

.comment p {
  margin: 0;
  font-size: .78rem;
}

.comment-form {
  display: flex;
  align-items: end;
  gap: 8px;
}

.comment-form textarea {
  min-height: 72px;
  flex: 1;
  resize: vertical;
  padding: 9px 11px;
  border: 1px solid var(--line-strong);
  border-radius: 9px;
  background: #fff;
  font-size: .78rem;
}

/* Subpages */
.subpage-shell {
  width: min(980px, calc(100% - 40px));
  min-height: calc(100vh - var(--header-height) - 170px);
  margin: 0 auto;
  padding: clamp(64px, 9vw, 110px) 0 100px;
}

.subpage-heading {
  max-width: 740px;
  margin-bottom: 44px;
}

.subpage-heading h1 {
  font-size: clamp(2.6rem, 6vw, 5.2rem);
}

.subpage-heading > p:last-child {
  margin-top: 18px;
  color: var(--muted);
  font-size: 1.08rem;
}

.quick-path {
  position: relative;
  display: grid;
  margin: 0;
  padding: 0;
  gap: 14px;
  list-style: none;
}

.quick-path::before {
  position: absolute;
  z-index: -1;
  top: 18px;
  bottom: 18px;
  left: 26px;
  width: 2px;
  background: var(--line);
  content: "";
}

.quick-path-item {
  display: grid;
  align-items: start;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: #fff;
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  gap: 17px;
  grid-template-columns: 52px minmax(0, 1fr) auto;
  text-align: left;
}

.quick-path-item:hover {
  border-color: #b8cad8;
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
}

.quick-step {
  display: grid;
  width: 52px;
  height: 52px;
  place-items: center;
  border-radius: 16px;
  background: var(--paper-warm);
  color: #725b05;
  font-size: .78rem;
  font-weight: 820;
}

.quick-copy h2 {
  font-size: 1.34rem;
}

.quick-copy p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 1rem;
}

.quick-arrow {
  padding-top: 13px;
  color: var(--blue);
  font-weight: 800;
}

.reference-grid {
  display: grid;
  margin: 0;
  padding: 0;
  gap: 12px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  list-style: none;
}

.reference-card {
  height: 100%;
}

.reference-card a {
  display: flex;
  height: 100%;
  min-height: 120px;
  flex-direction: column;
  justify-content: space-between;
  padding: 19px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: #fff;
  color: var(--ink);
  text-decoration: none;
}

.reference-card a:hover {
  border-color: #b8cad8;
  box-shadow: var(--shadow-sm);
  transform: translateY(-1px);
}

.reference-card strong {
  font-size: 1.1rem;
  line-height: 1.35;
}

.reference-card span {
  margin-top: 18px;
  color: var(--blue);
  font-size: .72rem;
  font-weight: 720;
}

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

.about-grid article {
  min-height: 250px;
  padding: clamp(22px, 4vw, 34px);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: #fff;
}

.about-grid article:first-child {
  background: var(--paper-warm);
}

.about-grid h2 {
  margin-bottom: 15px;
  font-size: 1.35rem;
}

.about-grid p {
  color: var(--ink-soft);
  font-size: 1.06rem;
}

.about-team {
  grid-column: 1 / -1;
}

.about-team-intro {
  max-width: 84ch;
  margin-bottom: 24px;
}

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

.maker-profile {
  display: grid;
  min-width: 0;
  align-items: start;
  padding: 14px;
  border: 1px solid #cfe0eb;
  border-radius: var(--radius-md);
  background: var(--surface-blue);
  gap: 20px;
  grid-template-columns: minmax(155px, 190px) minmax(0, 1fr);
}

.maker-portrait {
  position: relative;
  width: 100%;
  min-height: 0;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border: 4px solid #fff;
  border-radius: 16px;
  background: #24332d;
  box-shadow: var(--shadow-sm);
}

.maker-portrait img {
  position: absolute;
  top: 0;
  width: 300%;
  max-width: none;
  height: auto;
  transition: transform .3s ease;
}

.maker-jose img {
  left: 0;
  transform-origin: left top;
}

.maker-mark img {
  right: 0;
  transform-origin: right top;
}

.maker-portrait span {
  position: absolute;
  right: 9px;
  bottom: 9px;
  padding: 5px 9px;
  border-radius: 999px;
  background: rgba(11, 77, 127, .9);
  color: #fff;
  font-size: .7rem;
  font-weight: 760;
  backdrop-filter: blur(8px);
}

.maker-portrait:hover img {
  transform: scale(1.025);
}

.maker-copy {
  align-self: center;
}

.maker-copy h3 {
  margin-bottom: 10px;
  font-size: 1.28rem;
}

.maker-copy p {
  margin-bottom: 14px;
  font-size: .98rem;
}

.maker-link {
  font-size: .84rem;
  font-weight: 760;
}

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

/* Dialogs */
.modal {
  width: min(940px, calc(100% - 32px));
  max-height: min(90vh, 900px);
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: #fff;
  box-shadow: var(--shadow-lg);
}

.modal[open] {
  animation: modal-in .25s ease both;
}

.modal::backdrop {
  background: rgba(7, 19, 29, .56);
  backdrop-filter: blur(5px);
}

@keyframes modal-in {
  from { opacity: 0; transform: translateY(12px) scale(.975); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.modal-frame {
  display: grid;
  max-height: inherit;
  grid-template-rows: auto minmax(0, 1fr) auto;
}

.modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 22px clamp(20px, 4vw, 34px);
  border-bottom: 1px solid var(--line);
  gap: 20px;
}

.modal-header h2 {
  font-size: clamp(1.35rem, 3vw, 2rem);
}

.modal-header .eyebrow {
  margin-bottom: 6px;
}

.icon-button {
  display: grid;
  width: 40px;
  height: 40px;
  flex: 0 0 auto;
  place-items: center;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: #fff;
  cursor: pointer;
  font-size: 1.45rem;
  line-height: 1;
}

.icon-button:hover {
  background: #f4f7f8;
}

.modal-content {
  padding: clamp(22px, 5vw, 42px);
  overflow: auto;
  overscroll-behavior: contain;
}

.deep-dive-layout {
  display: grid;
  align-items: start;
  gap: clamp(24px, 5vw, 52px);
  grid-template-columns: minmax(0, 1fr) 210px;
}

.deep-dive-copy p,
.deep-dive-copy li {
  font-size: 1.12rem;
}

.deep-dive-copy .callout {
  margin-inline: 0;
}

.deep-dive-aside {
  position: sticky;
  top: 0;
}

.deep-dive-aside img {
  width: 100%;
  max-height: 220px;
  border-radius: var(--radius-md);
  background: var(--paper-warm);
  object-fit: contain;
}

.source-list {
  margin: 20px 0 0;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: #f8fafb;
}

.source-list h3 {
  margin-bottom: 10px;
  font-size: .76rem;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.source-list ul {
  margin: 0;
  padding-left: 1rem;
}

.source-list li,
.source-list a {
  font-size: .72rem;
  line-height: 1.4;
}

.feedback-modal {
  width: min(680px, calc(100% - 32px));
}

.feedback-fields {
  display: grid;
  gap: 17px;
}

.feedback-intro {
  margin: 0;
  color: var(--ink-soft);
  font-size: 1rem;
}

.feedback-fields label {
  display: grid;
  gap: 7px;
  color: var(--ink-soft);
  font-size: .84rem;
  font-weight: 720;
}

.feedback-fields label small {
  color: var(--muted);
  font-size: .74rem;
  font-weight: 560;
}

.feedback-contact-row {
  display: grid;
  gap: 13px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.feedback-fields input,
.feedback-fields select,
.feedback-fields textarea {
  width: 100%;
  min-height: 48px;
  padding: 10px 12px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  outline: 0;
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-weight: 500;
}

.feedback-fields textarea {
  min-height: 170px;
  line-height: 1.55;
  resize: vertical;
}

.feedback-fields input:focus,
.feedback-fields select:focus,
.feedback-fields textarea:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(23, 105, 166, .1);
}

.feedback-note {
  margin: 0;
  padding: 12px 14px;
  border: 1px solid #c4e5d5;
  border-radius: var(--radius-sm);
  background: var(--surface-green);
  color: var(--ink-soft);
  font-size: .78rem;
  line-height: 1.55;
}

.auth-modal {
  width: min(500px, calc(100% - 32px));
}

.auth-modal .modal-content {
  display: grid;
  gap: 15px;
}

.auth-switch {
  display: flex;
  padding: 3px;
  border-radius: 999px;
  background: #eef2f4;
}

.auth-switch button {
  min-height: 38px;
  flex: 1;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: .8rem;
  font-weight: 720;
}

.auth-switch button.is-active {
  background: #fff;
  box-shadow: var(--shadow-sm);
  color: var(--ink);
}

.auth-modal label {
  display: grid;
  gap: 6px;
  color: var(--ink-soft);
  font-size: .76rem;
  font-weight: 720;
}

.auth-modal input {
  min-height: 46px;
  padding: 9px 12px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  outline: 0;
}

.auth-modal input:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(23, 105, 166, .1);
}

.form-message {
  min-height: 1.2em;
  margin: 0;
  color: var(--coral);
  font-size: .74rem;
}

.modal-footer {
  display: flex;
  justify-content: flex-end;
  padding: 15px 22px;
  border-top: 1px solid var(--line);
  gap: 8px;
}

help-tip {
  border-bottom: 1px dotted var(--blue);
  color: var(--blue-dark);
  cursor: help;
}

.help-tooltip {
  position: fixed;
  z-index: 10001;
  width: min(340px, calc(100vw - 24px));
  padding: 13px 15px;
  border: 1px solid #bcd8eb;
  border-radius: var(--radius-sm);
  background: #fff;
  box-shadow: var(--shadow-md);
  color: var(--ink-soft);
  font-size: .75rem;
  line-height: 1.5;
  pointer-events: none;
}

.toast {
  position: fixed;
  z-index: 10002;
  right: 18px;
  bottom: 18px;
  max-width: min(360px, calc(100% - 36px));
  padding: 11px 15px;
  border-radius: 999px;
  background: var(--ink);
  box-shadow: var(--shadow-md);
  color: #fff;
  font-size: .76rem;
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: opacity .2s ease, transform .2s ease;
}

.toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Footer */
.site-footer {
  position: relative;
  display: flex;
  min-height: 220px;
  align-items: center;
  justify-content: space-between;
  padding: 46px max(30px, calc((100% - var(--content-width)) / 2));
  overflow: hidden;
  border-top: 1px solid rgba(248, 207, 61, .42);
  background:
    radial-gradient(circle at 12% 20%, rgba(23, 105, 166, .32), transparent 30rem),
    radial-gradient(circle at 88% 120%, rgba(248, 207, 61, .12), transparent 25rem),
    #091b28;
  color: rgba(255, 255, 255, .68);
  gap: 30px;
}

.site-footer::before {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--yellow), var(--blue), transparent 82%);
  content: "";
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 17px;
  color: #fff;
  font-size: 1.12rem;
  font-weight: 800;
  letter-spacing: -.02em;
  text-decoration: none;
}

.footer-logo-art {
  width: 96px;
  height: 96px;
}

.footer-logo-art img {
  padding: 0;
  filter:
    drop-shadow(0 0 2px rgba(255, 255, 255, .72))
    drop-shadow(0 0 18px rgba(248, 207, 61, .48))
    drop-shadow(0 16px 28px rgba(0, 0, 0, .32));
}

.site-footer p {
  max-width: 480px;
  margin: 13px 0 0 113px;
  color: rgba(255, 255, 255, .7);
  font-size: .82rem;
}

.footer-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 18px;
  font-size: .73rem;
}

.footer-actions button {
  min-height: 38px;
  padding: 7px 13px;
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: 999px;
  background: rgba(255, 255, 255, .06);
  color: rgba(255, 255, 255, .86);
  cursor: pointer;
  font-size: .7rem;
}

.footer-actions button:hover {
  border-color: rgba(248, 207, 61, .6);
  background: rgba(255, 255, 255, .1);
  color: #fff;
}

/* Tablet */
@media (max-width: 1020px) {
  :root {
    --header-height: 106px;
  }

  .header-inner {
    grid-template-columns: 1fr auto;
  }

  .primary-nav {
    position: fixed;
    z-index: 90;
    right: 0;
    bottom: 0;
    left: 0;
    justify-content: space-around;
    padding: 7px max(8px, env(safe-area-inset-right)) calc(7px + env(safe-area-inset-bottom)) max(8px, env(safe-area-inset-left));
    border-top: 1px solid var(--line);
    background: rgba(255, 253, 248, .96);
    box-shadow: 0 -8px 30px rgba(23, 32, 42, .09);
    backdrop-filter: blur(18px);
  }

  .nav-tab {
    min-width: 92px;
    font-size: .88rem;
  }

  .account-trigger {
    grid-column: 2;
  }

  .hero {
    min-height: 0;
    padding-top: 70px;
    grid-template-columns: minmax(0, 1fr) minmax(330px, .8fr);
  }

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

  .hero-visual {
    min-height: 360px;
  }

  .principles-strip {
    align-items: flex-start;
  }

  .principles-strip ol {
    display: grid;
    gap: 9px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .principles-strip li + li::before {
    display: none;
  }

  .guide-shell {
    grid-template-columns: 1fr;
  }

  .chapter-rail {
    display: none;
  }

  .mobile-chapters {
    display: flex;
    margin: 0 -20px 18px;
    padding: 0 20px 4px;
    gap: 7px;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .mobile-chapters::-webkit-scrollbar {
    display: none;
  }

  .chapter-chip {
    min-height: 36px;
    flex: 0 0 auto;
    padding: 7px 12px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: #fff;
    color: var(--muted);
    cursor: pointer;
    font-size: .8rem;
    font-weight: 700;
  }

  .chapter-chip.is-active {
    border-color: var(--ink);
    background: var(--ink);
    color: #fff;
  }

  .site-footer {
    padding-bottom: 100px;
  }
}

/* Phone */
@media (max-width: 700px) {
  :root {
    --header-height: 96px;
  }

  body {
    font-size: 18px;
  }

  .header-inner {
    width: calc(100% - 24px);
    gap: 10px;
  }

  .header-logo-art {
    width: 72px;
    height: 72px;
  }

  .brand-copy strong {
    font-size: 1.05rem;
  }

  .brand-copy small {
    display: none;
  }

  .account-trigger {
    width: 40px;
    min-height: 40px;
    padding: 0;
    border: 1px solid var(--line);
    border-radius: 50%;
  }

  .account-label {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
  }

  .account-dot {
    width: 10px;
    height: 10px;
  }

  .primary-nav {
    overflow-x: auto;
  }

  .nav-tab {
    min-width: 76px;
    padding-inline: 8px;
    font-size: .82rem;
  }

  .hero {
    width: calc(100% - 28px);
    padding: 48px 0 54px;
    gap: 36px;
    grid-template-columns: 1fr;
  }

  .hero h1 {
    font-size: clamp(3.05rem, 16vw, 4.8rem);
  }

  .hero-lede {
    margin-top: 22px;
    font-size: 1.08rem;
  }

  .hero-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .hero-stats {
    margin-top: 30px;
  }

  .hero-stats > div {
    padding: 0 12px;
  }

  .hero-stats dd {
    font-size: .63rem;
  }

  .hero-visual {
    min-height: 0;
    margin-inline: 4px;
  }

  .hero-note {
    font-size: .68rem;
  }

  .note-plan { left: -2%; }
  .note-test { right: -2%; }

  .principles-strip {
    display: grid;
    width: calc(100% - 28px);
    margin-bottom: 68px;
    gap: 14px;
  }

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

  .guide-shell {
    width: calc(100% - 24px);
    margin-bottom: 80px;
  }

  .guide-heading {
    align-items: stretch;
    gap: 20px;
    grid-template-columns: 1fr;
  }

  .guide-heading h2 {
    font-size: 2.25rem;
  }

  .guide-introduction {
    padding: 23px 20px;
  }

  .guide-introduction p,
  .guide-introduction li,
  .card-body p,
  .card-body li {
    font-size: 1.06rem;
  }

  .question-list {
    gap: 9px;
  }

  .card-toggle {
    padding: 16px 14px;
    gap: 11px;
    grid-template-columns: 36px minmax(0, 1fr) 29px;
  }

  .question-number {
    width: 36px;
    height: 36px;
    border-radius: 11px;
  }

  .card-toggle h2 {
    font-size: 1.2rem;
  }

  .card-summary {
    display: none;
  }

  .card-chevron {
    width: 29px;
    height: 29px;
  }

  .card-body {
    padding: 0 18px 26px;
  }

  .card-body > img:first-child,
  .card-body > img:first-of-type {
    max-height: 270px;
    margin-block: 22px;
  }

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

  .deep-dive-button,
  .mark-complete {
    justify-content: center;
  }

  .community-summary,
  .comment-form {
    align-items: stretch;
    flex-direction: column;
  }

  .subpage-shell {
    width: calc(100% - 28px);
    padding-top: 50px;
  }

  .subpage-heading {
    margin-bottom: 30px;
  }

  .subpage-heading h1 {
    font-size: 2.75rem;
  }

  .quick-path-item {
    padding: 15px;
    gap: 12px;
    grid-template-columns: 42px minmax(0, 1fr);
  }

  .quick-step {
    width: 42px;
    height: 42px;
    border-radius: 13px;
  }

  .quick-arrow {
    display: none;
  }

  .reference-grid,
  .about-grid {
    grid-template-columns: 1fr;
  }

  .about-grid article {
    min-height: 0;
  }

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

  .maker-profile {
    grid-template-columns: 1fr;
  }

  .maker-portrait {
    width: min(100%, 300px);
    min-height: 0;
    justify-self: center;
  }

  .feedback-contact-row {
    grid-template-columns: 1fr;
  }

  .modal {
    width: 100%;
    max-width: none;
    max-height: 94dvh;
    margin: auto 0 0;
    border-width: 1px 0 0;
    border-radius: 24px 24px 0 0;
  }

  .deep-dive-layout {
    grid-template-columns: 1fr;
  }

  .deep-dive-aside {
    position: static;
    order: -1;
  }

  .deep-dive-aside img {
    max-height: 180px;
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
    padding: 34px 20px 100px;
  }

  .footer-logo-art {
    width: 90px;
    height: 90px;
  }

  .site-footer p {
    margin-left: 99px;
  }

  .footer-actions {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }

  .intro-particle {
    max-width: 360px;
    font-size: clamp(22px, 6.4vw, 32px);
  }

  .intro-face {
    right: auto;
    width: min(980px, 210vw);
    opacity: 0;
  }

  .intro-mark {
    padding: 26px;
  }
}

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

  .intro-experience {
    display: none !important;
  }
}

@media (prefers-contrast: more) {
  :root {
    --line: #9ba6af;
    --muted: #46515c;
  }

  .button,
  .question-card,
  .modal {
    border-width: 2px;
  }
}
