/* АРТмосфера SEO — homepage layout (tokens in design-tokens.css) */

html {
  scroll-behavior: smooth;
}

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

  .hero-video {
    display: none;
  }
}

body {
  margin: 0;
  font-family: var(--ui);
  font-size: 17px;
  line-height: 1.55;
  color: var(--tx);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
.section__title {
  font-family: var(--disp);
  font-weight: 400;
  text-transform: lowercase;
  letter-spacing: -0.025em;
  line-height: 1.08;
}

img {
  max-width: 100%;
  height: auto;
  border-radius: var(--r-img);
}

.visually-hidden {
  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: absolute;
  left: -999px;
  top: var(--space-sm);
  background: var(--ink);
  color: var(--warm-white);
  padding: var(--space-xs) var(--space-md);
  z-index: 200;
  font-family: var(--sans);
  font-size: 14px;
  text-decoration: none;
  border-radius: var(--radius-sm);
}

.skip-link:focus {
  left: var(--space-sm);
}

.container {
  width: min(var(--container-max), calc(100% - var(--space-xl)));
  margin-inline: auto;
}

.container--narrow {
  max-width: var(--container-max);
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--warm-white);
  border-bottom: 1px solid var(--border-soft);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--header-h);
  gap: var(--space-md);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  text-decoration: none;
  color: var(--ink);
}

.brand__icon {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  background: var(--terra);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  flex-shrink: 0;
}

.brand__icon svg {
  width: 18px;
  height: 18px;
  stroke: var(--white);
  stroke-width: 1.8;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.brand__text {
  font-family: var(--ui);
  font-size: 20px;
  font-weight: 600;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
}

.header-nav__link {
  font-family: var(--sans);
  font-size: 14px;
  color: var(--ink-soft);
  text-decoration: none;
  transition: color var(--transition);
}

.header-nav__link:hover {
  color: var(--terra);
}

.nav-drop {
  position: relative;
  display: flex;
  align-items: center;
}

.nav-drop__toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  margin-left: 2px;
  padding: 0;
  border: none;
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--ink-muted);
  cursor: pointer;
}

.nav-drop__toggle:hover,
.nav-drop__toggle:focus-visible {
  color: var(--terra);
}

.nav-drop__toggle:focus-visible {
  outline: 2px solid var(--terra);
  outline-offset: 2px;
}

.nav-drop__chevron {
  display: block;
  width: 12px;
  height: 12px;
  transition: transform var(--transition);
}

.nav-drop:hover .nav-drop__chevron,
.nav-drop:focus-within .nav-drop__chevron,
.nav-drop.is-open .nav-drop__chevron {
  transform: rotate(180deg);
}

.nav-drop__list {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  z-index: 120;
  min-width: 188px;
  margin: 0;
  padding: var(--space-sm) 0;
  list-style: none;
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
  box-shadow: none;
}

.nav-drop__list::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 100%;
  height: 12px;
}

.nav-drop:hover .nav-drop__list,
.nav-drop:focus-within .nav-drop__list,
.nav-drop.is-open .nav-drop__list {
  display: block;
}

.nav-drop__list a {
  display: block;
  padding: var(--space-sm) var(--space-md);
  font-family: var(--sans);
  font-size: 14px;
  color: var(--ink-soft);
  text-decoration: none;
}

.nav-drop__list a:hover,
.nav-drop__list a:focus-visible {
  color: var(--terra);
  background: var(--cream);
}

.mobile-nav__group {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

.mobile-nav__child {
  padding-left: var(--space-md);
  font-size: 14px;
  color: var(--ink-muted);
}

.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: var(--space-xs);
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-sm);
  background: var(--warm-white);
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin-inline: auto;
  background: var(--ink);
  border-radius: 1px;
}

.mobile-nav {
  display: none;
  flex-direction: column;
  gap: var(--space-sm);
  padding: var(--space-md) var(--space-lg) var(--space-lg);
  border-top: 1px solid var(--border-soft);
  background: var(--warm-white);
}

.mobile-nav a {
  font-family: var(--sans);
  font-size: 15px;
  color: var(--ink-soft);
  text-decoration: none;
}

.mobile-nav:not([hidden]) {
  display: flex;
}

/* Hero */
.hero {
  position: relative;
  min-height: 88vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  background: var(--cream);
}

.hero-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    180deg,
    color-mix(in srgb, var(--cream) 82%, transparent) 0%,
    color-mix(in srgb, var(--cream) 88%, transparent) 100%
  );
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 720px;
  padding: 0 var(--space-lg);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-facts {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  margin-top: var(--space-lg);
}

.hero-fact {
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 500;
  color: var(--ink);
  padding: var(--space-xs) var(--space-md);
  border-radius: var(--radius-lg);
  background: var(--overlay-glass-bg);
  border: 1px solid var(--overlay-glass-border);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  white-space: nowrap;
}

.hero__title {
  margin: 0 0 var(--space-md);
  max-width: 720px;
  font-family: var(--serif);
  font-size: 48px;
  font-weight: 700;
  line-height: 1.1;
  color: var(--ink);
}

.hero__lead {
  margin: 0 0 var(--space-xl);
  max-width: 600px;
  font-family: var(--sans);
  font-size: 19px;
  font-weight: 400;
  line-height: 1.5;
  color: var(--ink-soft);
}

.hero__cta {
  margin: 0;
}

.hero__note {
  margin: 0;
  font-family: var(--sans);
  font-size: 13px;
  color: var(--ink-muted);
}

/* Features block (under hero) — Kinescope-style, pending library approval */
.features {
  padding: var(--space-3xl) var(--space-lg);
  background: var(--cream);
}

.features-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.features-title {
  margin: 0 0 var(--space-2xl);
  font-family: var(--serif);
  font-weight: 600;
  font-size: 32px;
  text-align: center;
  color: var(--ink);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-lg);
}

.feature-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 340px;
  transition: box-shadow var(--transition), transform var(--transition);
  box-shadow: none;
}

.feature-card:hover {
  box-shadow: none;
  transform: translateY(calc(-1 * var(--space-xs)));
}

.feature-terra { background: var(--terra-wash); }
.feature-sage { background: var(--sage-wash); }
.feature-honey { background: var(--honey-wash); }
.feature-sky { background: var(--sky-wash); }

.feature-text {
  padding: var(--space-lg) var(--space-lg) var(--space-md);
}

.feature-name {
  margin: 0 0 var(--space-xs);
  font-family: var(--serif);
  font-weight: 600;
  font-size: 20px;
  color: var(--ink);
}

.feature-desc {
  margin: 0;
  font-family: var(--sans);
  font-size: 14px;
  line-height: 1.45;
  color: var(--ink-soft);
}

.feature-media {
  margin-top: auto;
  flex: 1;
  min-height: 200px;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 0 var(--space-md);
}

.feature-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: bottom;
  border-radius: var(--radius-md) var(--radius-md) 0 0;
  box-shadow: none;
  transition: transform var(--transition-slow);
  display: block;
}

.feature-card:hover .feature-media img {
  transform: scale(1.04);
}

@media (max-width: 900px) {
  .features-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 520px) {
  .features-grid {
    grid-template-columns: 1fr;
  }

  .feature-card {
    min-height: 300px;
  }
}

/* Product showcase */
.showcase {
  position: relative;
  padding: var(--space-3xl) var(--space-lg);
  background: var(--cream);
  overflow: hidden;
}

.showcase-inner {
  position: relative;
  max-width: 1040px;
  margin: 0 auto;
}

.showcase-main {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-2xl);
  background: var(--surface);
  border: none;
  border-radius: var(--radius-xl);
  padding: var(--space-2xl);
  box-shadow: none;
  position: relative;
  z-index: 2;
}

.showcase-badges {
  display: flex;
  gap: var(--space-sm);
  margin-bottom: var(--space-md);
}

.showcase-beforeafter {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-sm);
}

.showcase-ba-item {
  margin: 0;
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-md);
}

.showcase-ba-item img {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
  border-radius: var(--radius-md);
  display: block;
  border: 1px solid var(--border-soft);
}

.showcase-ba-item figcaption {
  position: absolute;
  top: var(--space-sm);
  left: var(--space-sm);
  background: var(--overlay-caption);
  color: var(--warm-white);
  font-size: 11px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: var(--radius-sm);
  backdrop-filter: blur(4px);
  z-index: 1;
}

.showcase-visual-note {
  font-size: 13px;
  color: var(--ink-muted);
  line-height: 1.5;
  margin: var(--space-md) 0 0;
  font-style: italic;
}

.showcase-review-head {
  margin-bottom: var(--space-md);
}

.showcase-time {
  font-size: 12px;
  color: var(--ink-muted);
}

.showcase-block {
  margin-bottom: var(--space-lg);
}

.showcase-block:last-child {
  margin-bottom: 0;
}

.showcase-block-title {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 14px;
  margin-bottom: var(--space-xs);
}

.showcase-block p {
  font-size: 14px;
  line-height: 1.55;
  color: var(--ink-soft);
  margin: 0;
}

.showcase-good { color: var(--sage-dark); }
.showcase-improve { color: var(--terra); }
.showcase-do { color: var(--sky-dark); }

.showcase-float {
  position: absolute;
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
  padding: var(--space-sm) var(--space-md);
  box-shadow: none;
  max-width: 190px;
  z-index: 3;
}

.showcase-float p {
  font-size: 13px;
  color: var(--ink);
  margin: var(--space-xs) 0 0;
  line-height: 1.4;
}

.showcase-float-label {
  font-size: 11px;
  font-weight: 600;
}

.showcase-float-1 { top: -3%; left: -3%; transform: rotate(-4deg); }
.showcase-float-2 { top: 40%; right: -3%; transform: rotate(3deg); }
.showcase-float-3 { bottom: -3%; left: 2%; transform: rotate(-2deg); }

@media (max-width: 1024px) {
  .showcase-float {
    display: none;
  }
}

@media (max-width: 768px) {
  .showcase-main {
    grid-template-columns: 1fr;
  }
}

/* How it works */
.how {
  padding: var(--space-2xl) var(--space-lg);
  background: var(--cream);
}

.how-inner {
  max-width: 1040px;
  margin: 0 auto;
  text-align: center;
}

.how-title {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 32px;
  margin: 0 0 var(--space-xl);
  text-align: center;
  color: var(--ink);
}

/* Circular process (§23 design-library) */
.how-circle {
  position: relative;
  width: 560px;
  height: 560px;
  margin: 0 auto var(--space-lg);
  overflow: visible;
}

.how-circle-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
}

.how-arc {
  stroke: var(--sage-mute);
  stroke-width: 2;
  fill: none;
  stroke-dasharray: 350;
  stroke-dashoffset: 350;
  transition:
    stroke-dashoffset 1s ease,
    stroke var(--transition);
}

.how-circle.arcs-visible .how-arc {
  stroke-dashoffset: 0;
}

.how-arc.is-active {
  stroke: var(--sage);
}

.how-step {
  position: absolute;
  width: 200px;
  z-index: 2;
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: var(--space-md);
  box-shadow: none;
  text-align: left;
  opacity: 0;
  transition:
    opacity var(--transition-slow),
    transform var(--transition-slow),
    box-shadow var(--transition-slow);
}

.how-step--1 {
  top: -16px;
  left: 50%;
  transform: translateX(-50%) translateY(16px);
}

.how-step--2 {
  top: 50%;
  right: -16px;
  transform: translateY(calc(-50% + 16px));
}

.how-step--3 {
  bottom: -16px;
  left: 50%;
  transform: translateX(-50%) translateY(16px);
}

.how-step--4 {
  top: 50%;
  left: -16px;
  transform: translateY(calc(-50% + 16px));
}

.how-step.visible.how-step--1 {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.how-step.visible.how-step--2 {
  opacity: 1;
  transform: translateY(-50%);
}

.how-step.visible.how-step--3 {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.how-step.visible.how-step--4 {
  opacity: 1;
  transform: translateY(-50%);
}

.how-step--1:hover {
  transform: translateX(-50%) scale(1.03);
  box-shadow: none;
}

.how-step--2:hover {
  transform: translateY(-50%) scale(1.03);
  box-shadow: none;
}

.how-step--3:hover {
  transform: translateX(-50%) scale(1.03);
  box-shadow: none;
}

.how-step--4:hover {
  transform: translateY(-50%) scale(1.03);
  box-shadow: none;
}

.how-flow-arrow,
.how-flow-loop {
  display: none;
}

.how-step-icon {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-md);
  background: var(--sage-wash);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-sm);
  transition: background var(--transition);
}

.how-step-icon svg {
  width: 20px;
  height: 20px;
  stroke: var(--sage-dark);
  stroke-width: 1.8;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.how-step:hover .how-step-icon {
  background: var(--sage-soft);
}

.how-step-num {
  position: absolute;
  top: var(--space-md);
  right: var(--space-md);
  width: 24px;
  height: 24px;
  border-radius: var(--radius-full);
  background: var(--sage);
  color: var(--white);
  font-size: 12px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
}

.how-step-title {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 15px;
  margin: 0 0 var(--space-xs);
  color: var(--ink);
}

.how-step-text {
  font-size: 13px;
  line-height: 1.45;
  color: var(--ink-soft);
  margin: 0;
}

.how-note {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 18px;
  line-height: 1.4;
  color: var(--ink-soft);
  max-width: 620px;
  margin: 0 auto var(--space-lg);
  font-style: italic;
}

.how-cta {
  display: flex;
  justify-content: center;
}

@media (max-width: 900px) {
  .how-circle {
    width: 100%;
    height: auto;
    display: flex;
    flex-direction: column;
    align-items: stretch;
  }

  .how-circle-svg {
    display: none;
  }

  .how-step {
    position: static;
    width: 100%;
    top: auto;
    right: auto;
    bottom: auto;
    left: auto;
    transform: none;
    opacity: 0;
    padding: var(--space-lg);
  }

  .how-step.visible {
    opacity: 1;
    transform: none;
  }

  .how-step:hover {
    transform: none;
    box-shadow: none;
  }

  .how-flow-arrow {
    display: block;
    text-align: center;
    font-size: 20px;
    color: var(--sage-mute);
    line-height: 1;
    margin: calc(-1 * var(--space-sm)) 0;
  }

  .how-flow-loop {
    display: block;
    font-family: var(--sans);
    font-size: 13px;
    color: var(--ink-muted);
    text-align: center;
    margin: 0 0 var(--space-md);
  }
}

@media (prefers-reduced-motion: reduce) {
  .how-step {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .how-step--1,
  .how-step--2,
  .how-step--3,
  .how-step--4 {
    transform: none;
  }

  .how-step.visible.how-step--1,
  .how-step.visible.how-step--2,
  .how-step.visible.how-step--3,
  .how-step.visible.how-step--4 {
    transform: none;
  }

  .how-step:hover {
    transform: none;
  }

  .how-arc {
    stroke-dashoffset: 0;
    transition: none;
  }
}

/* Sections */
.section {
  padding: var(--space-3xl) 0;
}

.section--compact {
  padding: var(--space-2xl) 0;
}

.section--final {
  padding: var(--space-3xl) 0 var(--space-3xl);
}

.section--alt {
  background: var(--bg);
}

.section.section--surface {
  background: var(--surface);
  padding-block: calc(var(--space-3xl) + var(--space-md));
}

.section.section--guide {
  background: var(--sage-wash);
  padding: var(--space-2xl) 0;
}

.section__title {
  margin: 0 0 var(--space-md);
  font-family: var(--disp);
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 400;
  text-transform: lowercase;
  letter-spacing: -0.025em;
  color: var(--tx);
  line-height: 1.08;
}

.section__subtitle {
  margin: 0 0 var(--space-xl);
  font-family: var(--sans);
  font-size: 15px;
  color: var(--ink-soft);
}

.section__actions {
  margin-top: var(--space-xl);
  text-align: center;
}

/* Inline steps */
.steps-inline {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm) var(--space-md);
  margin-top: var(--space-lg);
}

.steps-inline__step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-xs);
  min-width: 100px;
}

.steps-inline__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: var(--r-pill);
  background: var(--sage);
  color: var(--white);
  font-family: var(--sans);
  font-weight: 600;
  font-size: 14px;
}

.steps-inline__text {
  margin: 0;
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
  text-align: center;
}

.steps-inline__arrow {
  font-family: var(--sans);
  font-size: 18px;
  color: var(--ink-muted);
}

/* Analysis directions */
.directions {
  padding: var(--space-3xl) var(--space-lg);
  background: var(--warm-white);
}

.directions-inner {
  max-width: 1080px;
  margin: 0 auto;
}

.directions-title {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 32px;
  text-align: center;
  margin: 0 0 var(--space-sm);
  color: var(--ink);
}

.directions-sub {
  font-family: var(--sans);
  font-size: 15px;
  color: var(--ink-soft);
  text-align: center;
  max-width: 560px;
  margin: 0 auto var(--space-2xl);
  line-height: 1.5;
}

.directions-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
  margin-bottom: var(--space-2xl);
}

.direction-card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
  padding: var(--space-lg);
  transition: box-shadow var(--transition), transform var(--transition);
}

.direction-card:hover {
  box-shadow: none;
  transform: translateY(calc(-1 * var(--space-xs)));
}

.direction-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: var(--sage-wash);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-md);
  flex-shrink: 0;
}

.direction-icon svg {
  width: 22px;
  height: 22px;
  stroke: var(--sage-dark);
  stroke-width: 1.8;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.direction-name {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 20px;
  margin: 0 0 var(--space-xs);
  color: var(--ink);
}

.direction-what {
  font-family: var(--sans);
  font-size: 13px;
  color: var(--ink-muted);
  margin: 0 0 var(--space-md);
  line-height: 1.45;
  flex-grow: 1;
}

.direction-example {
  font-family: var(--sans);
  font-size: 14px;
  color: var(--ink-soft);
  font-style: italic;
  line-height: 1.5;
  margin: 0;
  padding-left: var(--space-md);
  border-left: 2px solid var(--terra);
}

.directions-cta {
  display: flex;
  justify-content: center;
}

@media (max-width: 900px) {
  .directions-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 560px) {
  .directions-grid {
    grid-template-columns: 1fr;
  }
}

/* Examples block */
.examples {
  padding: var(--space-3xl) var(--space-lg);
  background: var(--cream);
}

.examples-inner {
  max-width: 1080px;
  margin: 0 auto;
}

.examples-title {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 32px;
  text-align: center;
  margin-bottom: var(--space-sm);
}

.examples-sub {
  font-size: 15px;
  color: var(--ink-soft);
  text-align: center;
  margin-bottom: var(--space-2xl);
}

.examples-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
  align-items: start;
}

.example-card {
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
  padding: var(--space-lg);
}

.example-badges {
  display: flex;
  gap: var(--space-sm);
  margin-bottom: var(--space-md);
}

.example-ba {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-sm);
  margin-bottom: var(--space-md);
}

.example-ba-item {
  margin: 0;
  position: relative;
}

.example-ba-item img {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
  border-radius: var(--radius-md);
  display: block;
  border: 1px solid var(--border-soft);
}

.example-ba-item figcaption {
  position: absolute;
  top: var(--space-sm);
  left: var(--space-sm);
  background: var(--overlay-caption);
  color: var(--warm-white);
  font-size: 11px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: var(--radius-sm);
  backdrop-filter: blur(4px);
}

.example-line {
  margin-bottom: var(--space-sm);
}

.example-line:last-child {
  margin-bottom: 0;
}

.example-label {
  display: block;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 12px;
  margin-bottom: 2px;
}

.example-good {
  color: var(--sage-dark);
}

.example-improve {
  color: var(--terra);
}

.example-do {
  color: var(--sky-dark);
}

.example-line p {
  font-size: 13px;
  line-height: 1.45;
  color: var(--ink-soft);
  margin: 0;
}

.example-toggle {
  margin-top: var(--space-md);
  width: 100%;
}

/* Catalog filters (gallery UGC) */
.catalog-filters {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  margin-bottom: var(--space-xl);
}

.catalog-filters__row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-sm) var(--space-md);
}

.catalog-filters__label {
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-soft);
  min-width: 5.5rem;
}

.catalog-filters__segment {
  flex: 1;
  min-width: 0;
}

.segment {
  display: inline-flex;
  flex-wrap: wrap;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 3px;
  gap: 2px;
}

.segment-item {
  padding: 6px 16px;
  font-size: 14px;
  font-family: var(--sans);
  line-height: 1.3;
  border-radius: calc(var(--radius-lg) - 3px);
  cursor: pointer;
  transition: all var(--transition);
  color: var(--ink-soft);
  border: none;
  background: transparent;
}

.segment-item:hover:not(.active) {
  color: var(--ink);
}

.segment-item.active {
  background: var(--cream);
  color: var(--ink);
  font-weight: 500;
}

.catalog-stat {
  font-family: var(--sans);
  font-size: 14px;
  color: var(--ink-muted);
  margin: 0 0 var(--space-lg);
}

.catalog-empty {
  display: none;
  text-align: center;
  padding: var(--space-2xl);
  color: var(--ink-muted);
  font-size: 15px;
}

.catalog-empty.is-visible {
  display: block;
}

.example-card.is-filtered-out {
  display: none;
}

.example-card__title {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 20px;
  line-height: 1.3;
  margin: 0 0 var(--space-md);
  color: var(--ink);
}

.examples-grid--catalog {
  align-items: stretch;
  justify-content: start;
}

.examples-grid--catalog .example-card {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.examples-grid--catalog .example-short {
  flex: 1;
}

.examples-grid--catalog .example-toggle {
  margin-top: auto;
}

@media (max-width: 900px) {
  .examples-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 560px) {
  .examples-grid {
    grid-template-columns: 1fr;
  }

  .catalog-filters__label {
    min-width: 100%;
  }
}

/* Modal */
.modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-lg);
}

.modal[hidden] {
  display: none;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: var(--overlay-dark);
  backdrop-filter: blur(3px);
}

.modal-window {
  position: relative;
  background: var(--surface);
  border-radius: var(--radius-xl);
  box-shadow: none;
  max-width: 720px;
  width: 100%;
  max-height: 85vh;
  overflow-y: auto;
  padding: var(--space-2xl);
  z-index: 1;
}

.modal-close {
  position: absolute;
  top: var(--space-md);
  right: var(--space-md);
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-soft);
  background: var(--surface);
  color: var(--ink-soft);
  font-size: 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
}

.modal-close:hover {
  background: var(--cream);
  color: var(--ink);
}

.modal-badges {
  display: flex;
  gap: var(--space-sm);
  margin-bottom: var(--space-sm);
}

.modal-title {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 24px;
  margin-bottom: var(--space-lg);
}

.modal-ba {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-md);
  margin-bottom: var(--space-lg);
}

.modal-ba-item {
  margin: 0;
  position: relative;
}

.modal-ba-item img {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
  border-radius: var(--radius-md);
  display: block;
  border: 1px solid var(--border-soft);
}

.modal-ba-item figcaption {
  position: absolute;
  top: var(--space-sm);
  left: var(--space-sm);
  background: var(--overlay-caption);
  color: var(--warm-white);
  font-size: 11px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: var(--radius-sm);
  backdrop-filter: blur(4px);
}

.modal-body {
  font-size: 14px;
  line-height: 1.65;
  color: var(--ink-soft);
}

.modal-body h4 {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 14px;
  margin: var(--space-lg) 0 var(--space-xs);
}

.modal-body h4:first-child {
  margin-top: 0;
}

.modal-body h4.example-good {
  color: var(--sage-dark);
}

.modal-body h4.example-improve {
  color: var(--terra);
}

.modal-body h4.example-do {
  color: var(--sky-dark);
}

.modal-body > p {
  margin: 0 0 var(--space-sm);
}

.modal-zone {
  padding-left: var(--space-md);
  border-left: 2px solid var(--sage-soft);
  margin-bottom: var(--space-md);
}

.modal-zone:last-child {
  margin-bottom: 0;
}

.modal-zone strong {
  color: var(--ink);
  font-weight: 600;
}

.modal-zone p {
  margin: 0 0 var(--space-xs);
}

.modal-footer {
  margin-top: var(--space-xl);
  padding-top: var(--space-lg);
  border-top: 1px solid var(--border-soft);
  display: flex;
  justify-content: center;
}

body.modal-open {
  overflow: hidden;
}

@media (max-width: 560px) {
  .modal-window {
    padding: var(--space-lg);
    max-height: 90vh;
    border-radius: var(--radius-lg);
  }

  .modal-ba {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-sm);
  }

  .modal-title {
    font-size: 20px;
  }
}

/* Final CTA */
.cta-block--final {
  padding: var(--space-2xl) var(--space-xl);
}

/* Grids */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-md);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: var(--space-md);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-md);
}

.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-md);
}

.steps--5 {
  grid-template-columns: repeat(5, 1fr);
}

.step {
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
  padding: var(--space-lg);
  position: relative;
  min-width: 0;
}

.step-num {
  width: 32px;
  height: 32px;
  border-radius: var(--r-pill);
  background: var(--sage);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 14px;
  margin-bottom: var(--space-md);
}

.step-title {
  font-weight: 600;
  font-size: 15px;
  margin-bottom: var(--space-xs);
}

.step-text {
  font-size: 13px;
  color: var(--ink-soft);
  line-height: 1.5;
}

.accordion {
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.accordion-item {
  border-bottom: 1px solid var(--border-soft);
}

.accordion-item:last-child {
  border-bottom: none;
}

.accordion-header {
  width: 100%;
  padding: var(--space-md) var(--space-lg);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-sm);
  cursor: pointer;
  font-family: var(--sans);
  font-weight: 500;
  font-size: 15px;
  line-height: 1.35;
  text-align: left;
  color: var(--ink);
  background: transparent;
  border: none;
  overflow-wrap: break-word;
}

.accordion-toggle {
  width: 28px;
  height: 28px;
  border-radius: var(--r-pill);
  background: var(--sage);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
}

.accordion-body {
  padding: 0 var(--space-lg) var(--space-lg);
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 1.6;
}

.accordion-body p {
  margin: 0 0 var(--space-sm);
}

.accordion-body ul {
  margin: 0 0 var(--space-md);
  padding-left: 1.2em;
}

.accordion-body li + li {
  margin-top: 8px;
}

.accordion-body .btn {
  margin-top: var(--space-xs);
}

.accordion-body .course-program {
  list-style: none;
  margin: 0;
  padding: 0;
}

.accordion-body .course-program li {
  margin: 0 0 var(--space-sm);
  overflow-wrap: break-word;
}

.accordion-body .course-program li + li {
  margin-top: 0;
}

.accordion-body .course-program li:last-child {
  margin-bottom: 0;
}

.accordion-body .course-program-outcome {
  margin: var(--space-md) 0 0;
  color: var(--ink-soft);
}

.accordion-body .course-program-outcome strong {
  font-weight: 600;
}

.accordion-body .course-program-outcome + .btn {
  margin-top: var(--space-md);
}

.learn-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: var(--space-lg);
  align-items: stretch;
  list-style: none;
  margin: 0;
  padding: 0;
}

.learn-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-width: 0;
  background: var(--surface);
  border-radius: var(--r-plate);
  box-shadow: none;
  padding: var(--space-lg);
}

.learn-card__title {
  margin: 0 0 var(--space-sm);
  font-family: var(--ui);
  font-weight: 600;
  font-size: 22px;
  line-height: 1.2;
  color: var(--tx);
}

.learn-card__text {
  margin: 0;
  font-family: var(--ui);
  font-size: 15px;
  line-height: 1.5;
  color: var(--tx-2);
}

.skill-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: var(--space-xl) var(--space-lg);
  align-items: stretch;
}

.skill-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-width: 0;
  margin: 0;
  padding: 0 0 var(--space-lg);
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.skill-card img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: center;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.skill-card-title {
  margin: var(--space-lg) var(--space-lg) var(--space-md);
  font-family: var(--sans);
  font-weight: 600;
  font-size: 22px;
  line-height: 1.25;
  color: var(--ink);
}

.skill-card-text {
  margin: 0 var(--space-lg);
  font-family: var(--sans);
  font-weight: 400;
  font-size: 15px;
  line-height: 1.5;
  color: var(--ink-soft);
}

.audience-cards {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: var(--space-lg);
  align-items: stretch;
  list-style: none;
  margin: 0;
  padding: 0;
}

.audience-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-width: 0;
  background: var(--surface);
  border-radius: var(--r-plate);
  box-shadow: none;
  padding: 0;
  overflow: hidden;
}

.audience-card .article-figure-placeholder,
.audience-card__media {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 100%;
  aspect-ratio: 4 / 3;
  margin: 0;
  padding: 0;
  background: var(--surface-2);
  border-radius: var(--r-plate) var(--r-plate) 0 0;
  overflow: hidden;
}

.audience-card__media img,
.audience-card .article-figure-placeholder img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.audience-card__body {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  padding: var(--space-lg);
}

.audience-card__title {
  margin: 0 0 var(--space-sm);
  font-family: var(--ui);
  font-weight: 600;
  font-size: 22px;
  line-height: 1.2;
  color: var(--tx);
}

.audience-card__text {
  margin: 0;
  font-family: var(--ui);
  font-size: 15px;
  line-height: 1.5;
  color: var(--tx-2);
}

.audience-card__text + .audience-card__text {
  margin-top: var(--space-sm);
}

.device-steps {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: var(--space-xl);
  align-items: stretch;
}

.device-steps__list {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
  min-width: 0;
}

.device-steps__step {
  display: flex;
  gap: var(--space-md);
  width: 100%;
  margin: 0;
  padding: var(--space-md);
  border: none;
  border-left: 3px solid transparent;
  border-radius: 0;
  background: transparent;
  color: inherit;
  font-family: inherit;
  text-align: left;
  cursor: pointer;
}

.device-steps__step:focus-visible {
  outline: 2px solid var(--terra);
  outline-offset: 2px;
}

.device-steps__step.is-active {
  background: var(--terra-wash);
  border-left-color: var(--terra);
}

.device-steps__step--static {
  cursor: default;
}

.device-steps__step--static:hover,
.device-steps__step--static:focus,
.device-steps__step--static:focus-visible,
.device-steps__step--static.is-active {
  background: transparent;
  border-left-color: transparent;
  outline: none;
  cursor: default;
}

.device-steps__step--static.is-active .device-steps__num {
  color: var(--ink);
}

.device-steps__num {
  flex: 0 0 auto;
  min-width: 1.25em;
  font-family: var(--ui);
  font-weight: 600;
  font-size: 16px;
  line-height: 1.3;
  color: var(--ink);
}

.device-steps__step.is-active .device-steps__num {
  color: var(--terra);
}

.device-steps__copy {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
  min-width: 0;
}

.device-steps__title {
  font-family: var(--ui);
  font-weight: 600;
  font-size: 16px;
  line-height: 1.3;
  color: var(--tx);
}

.device-steps__text {
  font-family: var(--ui);
  font-size: 15px;
  line-height: 1.5;
  color: var(--tx-2);
}

.device-steps__stage {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100%;
  min-height: 0;
}

.device-mockup {
  position: relative;
  width: 100%;
  max-width: 280px;
  height: auto;
  max-height: 100%;
  margin: 0;
}

.device-mockup__frame {
  display: block;
  width: 100%;
  height: auto;
  max-height: 100%;
  object-fit: contain;
  object-position: center;
  position: relative;
  z-index: 2;
  pointer-events: none;
  filter: drop-shadow(0 16px 18px color-mix(in srgb, var(--draw) 16%, transparent));
}

.device-mockup__screen {
  position: absolute;
  left: 14.05%;
  top: 2.9%;
  width: 67.83%;
  height: 91.8%;
  z-index: 1;
  overflow: hidden;
  background: var(--surface-2);
  border-radius: 9% / 4.2%;
}

.device-steps__shot {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  opacity: 0;
  pointer-events: none;
  background: var(--surface-2);
  transition: opacity var(--transition);
}

.device-steps__shot.is-active {
  opacity: 1;
}

.device-steps__shot img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

@media (max-width: 768px) {
  .device-steps {
    grid-template-columns: 1fr;
  }

  .device-steps__stage {
    order: 2;
  }

  .device-mockup {
    margin-inline: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  .device-steps__step,
  .device-steps__shot {
    transition: none;
  }
}

.teacher-card {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: var(--space-xl);
  align-items: flex-start;
  background: var(--surface);
  border-radius: var(--r-plate);
  padding: var(--space-xl);
}

.teacher-card__media {
  margin: 0;
  width: 180px;
}

.teacher-card__photo.article-figure-placeholder,
.teacher-card__photo {
  display: block;
  width: 180px;
  height: 180px;
  object-fit: cover;
  object-position: 50% 20%;
  border-radius: 50%;
}

.teacher-card__body {
  min-width: 0;
  text-align: left;
}

.teacher-card__media figcaption {
  margin-top: var(--space-sm);
  font-family: var(--sans);
  font-size: 13px;
  line-height: 1.4;
  color: var(--ink-muted);
}

.teacher-card__name {
  margin: 0 0 var(--space-xs);
  font-family: var(--ui);
  font-weight: 600;
  font-size: 22px;
  line-height: 1.2;
  color: var(--tx);
}

.teacher-card__role {
  margin: 0 0 var(--space-md);
  font-family: var(--sans);
  font-size: 14px;
  line-height: 1.4;
  color: var(--ink-muted);
}

.teacher-card__bio {
  margin: 0 0 var(--space-lg);
}

.teacher-card__bio p {
  margin: 0 0 var(--space-sm);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.55;
  color: var(--ink-soft);
}

.teacher-card__bio p:last-child {
  margin-bottom: 0;
}

.teacher-card__facts {
  margin: 0;
  padding: 0 0 0 var(--space-md);
  list-style: none;
  border-left: 3px solid var(--terra);
}

.teacher-card__facts li {
  font-family: var(--sans);
  font-size: 14px;
  line-height: 1.4;
  color: var(--ink-soft);
}

.teacher-card__facts li + li {
  margin-top: var(--space-sm);
}

.section__subtitle + .prose {
  margin-top: calc(var(--space-md) - var(--space-xl));
  margin-bottom: var(--space-xl);
}

.section__subtitle + .prose p:last-child {
  margin-bottom: 0;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
  align-items: start;
  padding-top: var(--space-md);
}


/* Video placeholder (broadcast-style reuse for future pages) */
.video-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  margin: var(--space-md) 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--ink);
  border: 1px solid var(--border-soft);
  box-shadow: none;
}

.video-wrap iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.video-wrap--placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(145deg, var(--cream), var(--border-soft));
}

.video-placeholder__text {
  margin: 0;
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 600;
  color: var(--ink-muted);
}

/* Footer layout */
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: var(--space-xl);
}

/* Responsive */
@media (max-width: 1024px) {
  .steps--5 {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .header-nav {
    display: none;
  }

  .menu-toggle {
    display: flex;
  }

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

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

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

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

  .steps,
  .steps--5 {
    grid-template-columns: 1fr;
  }

  .learn-grid,
  .skill-grid {
    grid-template-columns: 1fr 1fr;
  }

  .audience-cards {
    grid-template-columns: 1fr;
  }

  .compare-slider-grid {
    grid-template-columns: 1fr;
  }

  .teacher-card {
    grid-template-columns: 1fr;
  }

  .teacher-card__media {
    width: 140px;
    margin-inline: auto;
  }

  .teacher-card__photo.article-figure-placeholder,
  .teacher-card__photo {
    width: 140px;
    height: 140px;
  }

  .pricing-grid {
    grid-template-columns: 1fr;
    max-width: 400px;
    margin-inline: auto;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-lg);
  }
}

@media (max-width: 480px) {
  .container {
    width: min(var(--container-max), calc(100% - var(--space-lg)));
  }

  .hero {
    min-height: 80vh;
  }

  .hero__title {
    font-size: 32px;
  }

  .steps-grid,
  .gallery-grid,
  .skills-grid,
  .stats-grid,
  .steps,
  .steps--5,
  .learn-grid,
  .skill-grid,
  .audience-cards,
  .compare-slider-grid {
    grid-template-columns: 1fr;
  }

  .steps-inline__arrow {
    display: none;
  }

  .steps-inline {
    flex-direction: column;
  }

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

  .section,
  .section--compact {
    padding: var(--space-xl) 0;
  }

  .section.section--surface {
    padding-block: calc(var(--space-3xl) + var(--space-md));
  }

  .section.section--guide {
    padding: var(--space-2xl) 0;
  }
}

/* SEO page components */

.breadcrumbs {
  padding: var(--space-md) 0 var(--space-sm);
}

.breadcrumb {
  font-family: var(--sans);
}

.page-hero {
  padding: var(--space-xl) 0 var(--space-2xl);
  background: linear-gradient(180deg, var(--warm-white), var(--cream));
  border-bottom: 1px solid var(--border-soft);
}

.page-hero__title {
  margin: 0 0 var(--space-md);
  max-width: 820px;
  font-family: var(--serif);
  font-size: 40px;
  font-weight: 700;
  line-height: 1.1;
  color: var(--ink);
}

.page-hero__title-sub {
  display: block;
  margin-top: var(--space-xs);
  font-weight: 500;
  font-size: 28px;
  line-height: 1.2;
  color: var(--ink-soft);
}

.page-hero__lead {
  margin: 0;
  max-width: 720px;
  font-family: var(--sans);
  font-size: 19px;
  line-height: 1.5;
  color: var(--ink-soft);
}

.page-hero__facts {
  margin: var(--space-md) 0 0;
  max-width: 720px;
  font-family: var(--sans);
  font-size: 14px;
  line-height: 1.5;
  color: var(--ink-muted);
  overflow-wrap: break-word;
}

.content-block {
  margin-bottom: var(--space-md);
}

.prose {
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink-soft);
}

.prose p {
  margin: 0 0 var(--space-md);
}

.prose a {
  color: var(--terra);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.prose a:hover {
  color: color-mix(in srgb, var(--terra) 80%, var(--ink));
}

.genre-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
  margin: var(--space-lg) 0;
}

.genre-grid__item {
  background: var(--warm-white);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  box-shadow: none;
}

.genre-grid__icon {
  font-size: 32px;
  margin-bottom: var(--space-sm);
}

.genre-grid__title {
  margin: 0 0 var(--space-xs);
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 600;
  color: var(--ink);
}

.genre-grid__text {
  margin: 0;
  font-family: var(--sans);
  font-size: 14px;
  line-height: 1.5;
  color: var(--ink-soft);
}

.link-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-md);
}

.direction-card {
  display: block;
  position: relative;
  background: var(--warm-white);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  text-decoration: none;
  color: inherit;
  box-shadow: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.direction-card:hover {
  transform: translateY(-2px);
  box-shadow: none;
  border-color: var(--border);
}

.direction-card__title {
  margin: 0 0 var(--space-xs);
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 600;
  color: var(--ink);
}

.direction-card__text {
  margin: 0;
  font-family: var(--sans);
  font-size: 14px;
  line-height: 1.5;
  color: var(--ink-soft);
  padding-right: var(--space-lg);
}

.direction-card__arrow {
  position: absolute;
  right: var(--space-lg);
  bottom: var(--space-lg);
  color: var(--terra);
  font-size: 18px;
}

.placeholder-img,
.article-figure-placeholder,
.card__placeholder {
  display: none;
}

.placeholder-img__emoji {
  display: block;
  font-size: 48px;
  line-height: 1;
  margin-bottom: var(--space-sm);
}

.placeholder-img__caption {
  margin: 0;
  font-family: var(--sans);
  font-size: 14px;
  color: var(--ink-muted);
}

.placeholder-img--card {
  margin: 0;
  min-height: 100%;
  border: none;
  border-radius: 0;
}

.genre-grid__link {
  display: block;
  text-decoration: none;
  color: inherit;
  height: 100%;
}

.genre-grid__link:hover .genre-grid__title {
  color: var(--terra);
}

.compare-table-wrap {
  overflow-x: auto;
}

/* Horizontal nav strip (genres, skills, materials) */
.nav-strip {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  padding: var(--space-md) 0;
  margin: var(--space-lg) 0;
  border-block: 1px solid var(--border-soft);
}

.nav-strip__link {
  font-family: var(--sans);
  font-size: 14px;
  color: var(--ink-soft);
  text-decoration: none;
  padding: 6px 14px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--surface);
  transition: all var(--transition);
  white-space: nowrap;
}

.nav-strip__link:hover {
  border-color: var(--terra);
  color: var(--terra);
}

.nav-strip__link--current {
  background: var(--terra-wash);
  border-color: var(--terra);
  color: var(--terra);
  font-weight: 500;
  pointer-events: none;
}

.error-list {
  margin: var(--space-lg) 0;
  padding: 0;
  list-style: none;
}

.error-list__item {
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
  padding: var(--space-lg);
  margin-bottom: var(--space-md);
}

.error-list__title {
  margin: 0 0 var(--space-sm);
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 600;
  color: var(--ink);
}

.error-list__text {
  margin: 0;
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.55;
  color: var(--ink-soft);
}

.exercise-list {
  margin: var(--space-lg) 0;
  padding: 0;
  list-style: none;
  counter-reset: exercise;
}

.exercise-list__item {
  counter-increment: exercise;
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
  padding: var(--space-lg);
  margin-bottom: var(--space-md);
  position: relative;
  padding-left: calc(var(--space-lg) + 36px);
}

.exercise-list__item::before {
  content: counter(exercise);
  position: absolute;
  left: var(--space-lg);
  top: var(--space-lg);
  width: 28px;
  height: 28px;
  border-radius: var(--r-pill);
  background: var(--sage);
  color: var(--white);
  font-family: var(--sans);
  font-weight: 600;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.exercise-list__title {
  margin: 0 0 var(--space-xs);
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 600;
  color: var(--ink);
}

.exercise-list__text {
  margin: 0;
  font-size: 14px;
  line-height: 1.55;
  color: var(--ink-soft);
}

.subtype-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
  margin: var(--space-lg) 0;
}

.subtype-card {
  display: block;
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
  padding: var(--space-lg);
  text-decoration: none;
  color: inherit;
  transition: box-shadow var(--transition);
}

.subtype-card:hover {
  box-shadow: none;
}

.subtype-card__title {
  margin: 0 0 var(--space-xs);
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 600;
  color: var(--ink);
}

.subtype-card__text {
  margin: 0;
  font-size: 13px;
  line-height: 1.45;
  color: var(--ink-muted);
}

@media (max-width: 768px) {
  .subtype-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .subtype-grid {
    grid-template-columns: 1fr;
  }

  .nav-strip {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: var(--space-sm);
  }
}

.blog-card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
}

.blog-card {
  background: var(--warm-white);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: none;
}

.blog-card__body {
  padding: var(--space-md) var(--space-lg) var(--space-lg);
}

.blog-card__title {
  margin: var(--space-sm) 0 var(--space-xs);
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 600;
  color: var(--ink);
}

.blog-card__excerpt {
  margin: 0;
  font-family: var(--sans);
  font-size: 14px;
  line-height: 1.5;
  color: var(--ink-soft);
}

@media (max-width: 768px) {
  .genre-grid,
  .blog-card-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

@media (max-width: 480px) {
  .genre-grid,
  .blog-card-grid {
    grid-template-columns: 1fr;
  }
}

/* Interactive face proportions scheme */
.prop-scheme {
  display: grid;
  grid-template-columns: minmax(260px, 380px) 1fr;
  gap: var(--space-xl);
  align-items: start;
}

.prop-scheme__canvas {
  position: relative;
  background: var(--warm-white);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
  padding: var(--space-md);
}

.prop-scheme__svg {
  width: 100%;
  height: auto;
  display: block;
}

.prop-hotspot {
  cursor: pointer;
  fill: color-mix(in srgb, var(--terra) 18%, transparent);
  stroke: var(--terra);
  stroke-width: 1.5;
  transition: fill var(--transition);
}

.prop-hotspot:hover,
.prop-hotspot.is-active,
.prop-hotspot:focus {
  fill: color-mix(in srgb, var(--terra) 35%, transparent);
  outline: none;
}

.prop-scheme__guide {
  fill: none;
  stroke: var(--sage);
  stroke-width: 1.25;
  stroke-dasharray: 4 3;
  opacity: 0.85;
}

.prop-scheme__outline {
  fill: var(--cream);
  stroke: var(--ink-soft);
  stroke-width: 2;
}

.prop-scheme__panel {
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
  padding: var(--space-lg);
  min-height: 140px;
}

.prop-scheme__panel-title {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 20px;
  margin: 0 0 var(--space-sm);
  color: var(--ink);
}

.prop-scheme__panel-text {
  margin: 0;
  font-size: 15px;
  line-height: 1.55;
  color: var(--ink-soft);
}

.prop-scheme__hint {
  margin: var(--space-md) 0 0;
  font-size: 13px;
  color: var(--ink-muted);
}

/* Interactive checklist */
.checklist {
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
  padding: var(--space-lg);
}

.checklist__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.checklist__item {
  margin: 0;
}

.checklist__item .form-checkbox {
  padding: var(--space-sm) var(--space-md);
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  transition: background var(--transition), border-color var(--transition);
}

.checklist__item .form-checkbox:hover {
  background: var(--cream);
}

.checklist__item.is-checked .form-checkbox {
  background: var(--sage-wash);
  border-color: var(--sage-soft);
}

.checklist__counter {
  margin: var(--space-lg) 0 0;
  padding-top: var(--space-md);
  border-top: 1px solid var(--border-soft);
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 500;
  color: var(--ink);
}

.checklist__counter strong {
  color: var(--terra);
}

/* Form checkbox (§05) */
.form-checkbox {
  display: flex;
  align-items: flex-start;
  gap: var(--space-sm);
  font-size: 14px;
}

.form-checkbox input {
  width: 18px;
  height: 18px;
  accent-color: var(--sage);
  margin-top: 2px;
  flex-shrink: 0;
}

/* Progress calendar (§33) */
.progress-calendar {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.progress-calendar__tabs {
  display: flex;
  gap: var(--space-sm);
}

.progress-calendar__tab {
  flex: 1;
  font-family: var(--sans);
  font-weight: 500;
  font-size: 14px;
  line-height: 1.3;
  padding: 10px 12px;
  background: var(--surface);
  color: var(--ink-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  cursor: pointer;
  transition: background var(--transition), color var(--transition), border-color var(--transition);
}

.progress-calendar__tab:hover {
  border-color: var(--ink-muted);
}

.progress-calendar__tab.is-active {
  background: var(--terra);
  color: var(--white);
  border-color: var(--terra);
}

.progress-calendar__tab.is-active:hover {
  background: var(--terra-dark);
  border-color: var(--terra-dark);
}

.progress-calendar__panel {
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  box-shadow: none;
  padding: var(--space-xl);
  animation: pc-fade var(--transition-slow);
}

.progress-calendar__panel[hidden] {
  display: none;
}

.progress-calendar__stage:not(:has(.progress-calendar__panel:not([hidden]))) {
  display: none;
}

.progress-calendar__body {
  display: grid;
  grid-template-columns: 1fr minmax(200px, 0.85fr);
  gap: var(--space-xl);
  align-items: start;
}

.progress-calendar__title {
  margin: 0 0 var(--space-sm);
  font-family: var(--serif);
  font-weight: 600;
  font-size: 20px;
  line-height: 1.3;
  color: var(--ink);
}

.progress-calendar__label {
  margin: var(--space-md) 0 var(--space-xs);
  font-family: var(--sans);
  font-weight: 600;
  font-size: 13px;
  color: var(--ink);
}

.progress-calendar__exercises {
  margin: 0;
  padding-left: var(--space-lg);
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 1.5;
}

.progress-calendar__exercises li + li {
  margin-top: var(--space-xs);
}

.progress-calendar__outcome {
  margin: var(--space-md) 0 0;
  padding: var(--space-sm) 0 var(--space-sm) var(--space-md);
  border-left: 3px solid var(--sage);
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 1.5;
}

.progress-calendar__outcome strong {
  display: block;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 13px;
  color: var(--ink);
  margin-bottom: var(--space-xs);
}

.progress-calendar__media {
  aspect-ratio: 4 / 3;
  background: var(--cream);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.progress-calendar__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

@keyframes pc-fade {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@media (max-width: 900px) {
  .progress-calendar__tabs {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
  }

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

@media (max-width: 560px) {
  .progress-calendar__tabs {
    display: flex;
    flex-direction: column;
  }

  .progress-calendar__tab {
    width: 100%;
  }

  .progress-calendar__panel {
    margin-top: var(--space-sm);
  }
}

  @media (prefers-reduced-motion: reduce) {
    .progress-calendar__panel {
      animation: none;
    }

    .compare-slider-label,
    .compare-slider.is-hinting .compare-slider-divider,
    .compare-slider.is-hinting .compare-slider-after-wrap {
      transition: none;
    }

    .steps-viewer-progress-fill {
      transition: none;
    }

    .steps-viewer-live.is-fade {
      animation: none;
    }

    .skill-quiz-bar-fill {
      transition: none;
    }

    .skill-quiz-stage.is-fade {
      animation: none;
    }

    .article-toc-chevron {
      transition: none;
    }

    .expand-guide__clip {
      transition: none;
    }

    .post-card {
      transition: none;
    }

    .post-card:hover {
      transform: none;
    }
  }

.page-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  margin-top: var(--space-lg);
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md);
  align-items: center;
}

.cta-block .btn-row {
  justify-content: center;
  margin-bottom: 0;
}

.section__title {
  scroll-margin-top: calc(var(--header-h) + var(--space-md));
}

.prose h3 {
  margin: var(--space-xl) 0 var(--space-md);
  font-family: var(--serif);
  font-size: 24px;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.2;
  scroll-margin-top: calc(var(--header-h) + var(--space-md));
}

.prose ul,
.prose ol {
  margin: 0 0 var(--space-md);
  padding-left: var(--space-lg);
}

.prose li {
  margin: 0 0 var(--space-sm);
}

.prose li:last-child {
  margin-bottom: 0;
}

.example-ba-item .placeholder-img,
.showcase-ba-item .placeholder-img {
  display: none;
}

.article-figure {
  margin: var(--space-lg) 0;
}

.article-figure img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: var(--radius-md);
}

.article-figure figcaption {
  margin-top: var(--space-sm);
  font-family: var(--sans);
  font-size: 13px;
  line-height: 1.4;
  color: var(--ink-muted);
}

.article-note {
  margin: var(--space-xl) 0 0;
  font-family: var(--sans);
  font-size: 12px;
  color: var(--ink-muted);
  text-align: left;
}

.article-byline {
  margin-top: var(--space-md);
  margin-bottom: var(--space-lg);
  font-family: var(--sans);
  font-size: 14px;
  color: var(--ink-soft);
}

.article-byline a {
  color: var(--terra);
  text-decoration: none;
}

.article-byline a:hover {
  color: var(--terra-dark);
}

.article-byline a:focus-visible {
  outline: 2px solid var(--terra);
  outline-offset: 2px;
}

.article-figure-placeholder {
  display: none;
}

.audience-card .article-figure-placeholder,
.audience-card__media {
  display: flex;
}

.device-steps .article-figure-placeholder,
.device-steps__shot {
  display: block;
}

.article-figure-placeholder span {
  font-family: var(--sans);
  font-size: 13px;
  line-height: 1.4;
  color: var(--ink-muted);
}

/* Article diagrams (§37) */
.article-scheme {
  background: var(--surface);
  border-radius: var(--radius-md);
  padding: var(--space-lg);
  scroll-margin-top: calc(var(--header-h) + var(--space-md));
}

.article-scheme-svg {
  width: 100%;
  height: auto;
  display: block;
  overflow: visible;
}

.article-scheme--triple {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
}

.article-scheme--split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-md);
}

.article-scheme--tip {
  position: relative;
}

.article-scheme-guide {
  fill: none;
  stroke: var(--sage);
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.article-scheme-dash {
  fill: none;
  stroke: var(--sage);
  stroke-width: 1.5;
  stroke-dasharray: 4 3;
  stroke-linecap: round;
}

.article-scheme-outline {
  fill: none;
  stroke: var(--ink);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.article-scheme-accent {
  fill: none;
  stroke: var(--terra);
  stroke-width: 2.5;
  stroke-linecap: round;
}

.article-scheme-fill-sage {
  fill: var(--sage-wash);
}

.article-scheme-fill-terra {
  fill: var(--terra-wash);
}

.article-scheme-label {
  font-family: var(--sans);
  font-size: 11px;
  fill: var(--ink-soft);
}

.scheme-hotspot {
  cursor: pointer;
  pointer-events: all;
}

.scheme-hotspot:focus {
  outline: 2px solid var(--terra);
  outline-offset: 2px;
}

.scheme-hotspot:hover,
.scheme-hotspot.is-active,
.scheme-hotspot:focus {
  filter: brightness(0.97);
  stroke: var(--terra);
  stroke-width: 1.5;
}

.article-scheme--tip .tooltip-bubble {
  bottom: auto;
  transform: none;
}

.tooltip-bubble {
  position: absolute;
  z-index: 6;
  background: var(--ink);
  color: var(--warm-white);
  font-family: var(--sans);
  font-size: 13px;
  line-height: 1.4;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  max-width: 240px;
  pointer-events: none;
}

.tooltip-bubble::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 5px solid transparent;
  border-top-color: var(--ink);
}

.tooltip-bubble[hidden] {
  display: none;
}

@media (max-width: 560px) {
  .article-scheme {
    padding: var(--space-md);
  }

  .article-scheme--triple,
  .article-scheme--split {
    grid-template-columns: 1fr;
  }
}

/* 38 Skill quiz */
.skill-quiz {
  background: var(--surface);
  border-radius: var(--radius-lg);
  box-shadow: none;
  padding: var(--space-xl);
  margin: var(--space-lg) 0;
}

.skill-quiz-lead {
  margin: 0 0 var(--space-md);
  font-size: 15px;
  line-height: 1.5;
  color: var(--ink-soft);
}

.skill-quiz-meta {
  margin: 0 0 var(--space-sm);
  font-family: var(--sans);
  font-size: 12px;
  color: var(--ink-muted);
}

.skill-quiz-bar {
  height: 4px;
  background: var(--cream);
  border-radius: var(--radius-sm);
  overflow: hidden;
  margin-bottom: var(--space-lg);
}

.skill-quiz-bar-fill {
  display: block;
  height: 100%;
  width: 0;
  background: var(--sage);
  border-radius: var(--radius-sm);
  transition: width var(--transition);
}

.skill-quiz-fieldset {
  border: 0;
  margin: 0;
  padding: 0;
  min-width: 0;
  width: 100%;
}

.skill-quiz-q {
  display: block;
  padding: 0;
  margin: 0 0 var(--space-lg);
  font-family: var(--serif);
  font-weight: 600;
  font-size: 20px;
  line-height: 1.3;
  color: var(--ink);
}

.skill-quiz-choices {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-sm);
}

.skill-quiz-choice {
  width: 100%;
}

.skill-quiz .skill-quiz-choice:hover,
.skill-quiz .skill-quiz-choice[aria-pressed="true"] {
  border-color: var(--terra);
}

.skill-quiz-choice:focus-visible {
  outline: 2px solid var(--terra);
  outline-offset: 2px;
}

.skill-quiz-nav {
  margin-top: var(--space-lg);
}

.skill-quiz-back[hidden] {
  display: none;
}

.skill-quiz-stage.is-fade {
  animation: pc-fade var(--transition);
}

.skill-quiz-result-title {
  margin: 0 0 var(--space-md);
  font-family: var(--serif);
  font-weight: 600;
  font-size: 24px;
  line-height: 1.2;
  color: var(--ink);
}

.skill-quiz-result-text {
  margin: 0 0 var(--space-md);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink-soft);
}

.skill-quiz-result-text:last-child {
  margin-bottom: 0;
}

.skill-quiz-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  margin-top: var(--space-lg);
}

@media (max-width: 560px) {
  .skill-quiz {
    padding: var(--space-lg);
  }

  .skill-quiz-choices {
    grid-template-columns: 1fr;
  }
}

/* 42 Course card */
.course-card {
  background: var(--surface);
  border: none;
  border-radius: var(--r-plate);
  padding: 0;
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  box-shadow: none;
}

.course-card:hover {
  box-shadow: none;
}

.course-card__media {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--cream);
}

.course-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.course-card-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-lg);
}

.course-card__title {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 20px;
  line-height: 1.3;
  margin: var(--space-lg) var(--space-lg) var(--space-sm);
  color: var(--ink);
}

.course-card__text {
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 1.5;
  margin: 0 var(--space-lg) var(--space-sm);
}

.course-card__outcome {
  font-size: 13px;
  line-height: 1.45;
  color: var(--sage-deep);
  margin: 0 var(--space-lg) var(--space-md);
}

.course-card__badge {
  margin: 0 var(--space-lg) var(--space-md);
  align-self: flex-start;
}

.course-card__btn {
  margin: auto var(--space-lg) var(--space-lg);
  align-self: flex-start;
}

.course-dir-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: var(--space-lg);
}

.stat-card {
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
  padding: var(--space-lg);
}

.stat-number {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 36px;
  line-height: 1;
  color: var(--terra);
}

.stat-label {
  font-size: 14px;
  font-weight: 500;
  margin-top: var(--space-xs);
}

.stat-desc {
  font-size: 12px;
  color: var(--ink-muted);
}

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

.page-hero .stats-grid {
  margin-top: var(--space-lg);
  max-width: 720px;
}

/* 51 Split product hero */
.page-hero--split .page-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 55fr) minmax(0, 45fr);
  column-gap: var(--space-2xl);
  row-gap: var(--space-lg);
  align-items: start;
}

.page-hero--split .page-hero__copy {
  min-width: 0;
}

.page-hero--split .page-hero__title {
  margin: 0;
  max-width: none;
}

.page-hero--split .page-hero__title-sub {
  margin: calc(var(--space-sm) + var(--space-xs)) 0 0;
  font-family: var(--sans);
  font-weight: 400;
  font-size: 20px;
  line-height: 1.4;
  color: var(--ink-muted);
}

.page-hero--split .page-hero__lead {
  margin-top: var(--space-md);
  max-width: 60ch;
}

.page-hero--split .page-hero__visual {
  position: relative;
  margin: 0;
  min-width: 0;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--cream);
}

.page-hero--split .page-hero__visual img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: center;
  display: block;
}

.page-hero--split .stats-grid {
  grid-column: 1 / -1;
  margin-top: 0;
  max-width: none;
}

.page-hero--split .stat-card {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.page-hero--split .stat-label {
  margin-top: 0;
  margin-bottom: var(--space-xs);
}

@media (max-width: 768px) {
  .stats-grid--3 {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .course-card-grid {
    grid-template-columns: 1fr;
  }

  .page-hero__title {
    font-size: 32px;
  }

  .page-hero__title-sub {
    font-size: 20px;
  }

  .page-hero__lead {
    font-size: 16px;
  }

  .page-hero__actions .btn-lg {
    width: 100%;
  }

  .page-hero--split .page-hero__title-sub {
    font-size: 16px;
  }
}

@media (max-width: 1023px) {
  .page-hero--split .page-hero__grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    column-gap: var(--space-xl);
  }

  .page-hero--split .stats-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 767px) {
  .page-hero--split .page-hero__grid {
    grid-template-columns: minmax(0, 1fr);
    column-gap: 0;
    row-gap: 0;
  }

  .page-hero--split .page-hero__copy {
    display: contents;
  }

  .page-hero--split .page-hero__title {
    order: 1;
  }

  .page-hero--split .page-hero__title-sub {
    order: 2;
  }

  .page-hero--split .page-hero__lead {
    order: 3;
  }

  .page-hero--split .page-hero__visual {
    order: 4;
    margin-top: var(--space-md);
  }

  .page-hero--split .page-hero__actions {
    order: 5;
    flex-direction: column;
    flex-wrap: nowrap;
    gap: calc(var(--space-sm) + var(--space-xs));
    width: 100%;
  }

  .page-hero--split .page-hero__actions .btn-lg {
    width: 100%;
  }

  .page-hero--split .stats-grid {
    order: 6;
    grid-column: auto;
    grid-template-columns: 1fr;
    margin-top: var(--space-lg);
  }
}

/* Tabs (library) */
.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  border-bottom: 1px solid var(--border-soft);
  margin-bottom: var(--space-lg);
}

.tab {
  padding: var(--space-sm) var(--space-md);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.3;
  color: var(--ink-muted);
  cursor: pointer;
  border: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  background: transparent;
  transition: color var(--transition), border-color var(--transition);
}

.tab.active,
.tab[aria-selected="true"] {
  color: var(--ink);
  border-bottom-color: var(--terra);
}

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

.tab:focus-visible {
  outline: 2px solid var(--terra);
  outline-offset: 2px;
}

.audience-tabs__panels {
  position: relative;
}

.audience-tabs__panel p {
  margin: 0 0 var(--space-md);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink-soft);
}

.audience-tabs__panel .btn {
  margin-top: var(--space-xs);
}

/* 44 Draw reveal */
.draw-reveal {
  max-width: none;
}

.draw-reveal__stage {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-soft);
  background: var(--cream);
  touch-action: pan-y;
  cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32' viewBox='0 0 32 32'%3E%3Cpath d='M4 28l3.2-9.2L22.8 3.2l6 6L13.2 24.8z' fill='%23b85c38' stroke='%231c1a17' stroke-width='1.2' stroke-linejoin='round'/%3E%3Cpath d='M20.4 5.6l6 6' stroke='%231c1a17' stroke-width='1.2'/%3E%3Cpath d='M4 28l4.8-1.6' stroke='%231c1a17' stroke-width='1.2' stroke-linecap='round'/%3E%3C/svg%3E") 4 28, crosshair;
}

.draw-reveal__photo,
.draw-reveal__drawing,
.draw-reveal__canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  display: block;
}

.draw-reveal__photo,
.draw-reveal__drawing {
  object-fit: cover;
  pointer-events: none;
}

.draw-reveal__drawing {
  z-index: 0;
}

.draw-reveal__photo {
  z-index: 1;
}

.draw-reveal.is-ready .draw-reveal__photo {
  opacity: 0;
}

.draw-reveal__canvas {
  z-index: 2;
  touch-action: pan-y;
}

.draw-reveal__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  margin-top: var(--space-md);
}

.draw-reveal__caption {
  margin: var(--space-sm) 0 0;
  font-size: 14px;
  color: var(--ink-muted);
}

.draw-reveal__btn-mobile {
  display: none;
}

@media (max-width: 768px) {
  .draw-reveal__stage {
    cursor: auto;
  }

  .draw-reveal__btn-fill {
    display: none;
  }

  .draw-reveal__btn-mobile {
    display: inline-flex;
  }
}

/* 46 Expandable long text */
.expand-guide {
  --expand-guide-bar-h: var(--space-2xl);
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: var(--space-lg);
  scroll-margin-top: calc(var(--header-h) + var(--space-md));
  min-width: 0;
  max-width: 100%;
}

.expand-guide__title {
  margin: 0 0 var(--space-sm);
  font-family: var(--serif);
  font-weight: 600;
  font-size: 24px;
  line-height: 1.2;
  color: var(--ink);
}

.expand-guide__lead {
  margin: 0 0 var(--space-sm);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.5;
  color: var(--ink-soft);
}

.expand-guide__facts {
  margin: 0 0 var(--space-md);
  font-family: var(--sans);
  font-size: 14px;
  line-height: 1.4;
  color: var(--ink-muted);
}

.expand-guide__toggle {
  margin: 0;
}

.expand-guide__clip {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows var(--transition-slow);
}

.expand-guide.is-open .expand-guide__clip {
  grid-template-rows: 1fr;
}

.expand-guide__body {
  min-height: 0;
  overflow: hidden;
}

.expand-guide.is-open .expand-guide__body {
  overflow-x: auto;
  overflow-y: visible;
}

.expand-guide__content {
  padding-top: var(--space-lg);
  min-width: 0;
  overflow-x: auto;
}

.expand-guide-bar {
  position: fixed;
  top: var(--header-h);
  left: 0;
  z-index: 90;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-sm);
  height: var(--expand-guide-bar-h);
  width: 100%;
  max-width: 100%;
  min-width: 0;
  padding: 0 var(--space-lg);
  background: var(--white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

.expand-guide-bar[hidden] {
  display: none;
}

.expand-guide-bar__title {
  margin: 0;
  min-width: 0;
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.3;
  color: var(--ink-soft);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.expand-guide-bar__short {
  display: none;
}

.expand-guide-bar__actions {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  flex-shrink: 0;
}

.expand-guide-bar__toc {
  position: relative;
}

.expand-guide-bar__list {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  z-index: 91;
  min-width: 240px;
  max-width: min(360px, calc(100vw - var(--space-lg) * 2));
  max-height: 70vh;
  overflow: auto;
  margin: 0;
  padding: var(--space-sm) var(--space-md);
  list-style: none;
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
  box-shadow: none;
}

.expand-guide-bar__list a {
  display: block;
  font-family: var(--sans);
  font-size: 14px;
  color: var(--ink-muted);
  text-decoration: none;
  padding: 8px 0;
}

.expand-guide-bar__list a:hover {
  color: var(--ink);
}

.expand-guide-bar__list a:focus-visible {
  outline: 2px solid var(--terra);
  outline-offset: 2px;
}

.expand-guide__subtitle {
  margin: 0 0 var(--space-sm);
  font-family: var(--serif);
  font-weight: 600;
  font-size: 20px;
  line-height: 1.3;
  color: var(--ink);
}

.expand-guide__note {
  background: var(--cream);
  border-left: 3px solid var(--terra);
  border-radius: var(--radius-md);
  padding: var(--space-md) var(--space-lg);
  margin: var(--space-lg) 0;
}

.expand-guide__note p {
  margin: 0 0 var(--space-sm);
  font-size: 15px;
  line-height: 1.55;
  color: var(--ink-soft);
}

.expand-guide__note p:last-child {
  margin-bottom: 0;
}

.expand-guide__scale {
  margin: var(--space-lg) 0;
  padding: var(--space-md) var(--space-lg);
  background: var(--cream);
  border-radius: var(--radius-md);
  overflow-x: auto;
  font-family: var(--sans);
  font-size: 13px;
  line-height: 1.6;
  color: var(--ink-soft);
  white-space: pre;
}

.expand-guide__skip .form-checkbox {
  color: var(--ink-muted);
}

.expand-guide__skip-note {
  display: inline-block;
  margin-left: var(--space-xs);
  font-size: 13px;
  color: var(--ink-muted);
}

.expand-guide__foot {
  margin: var(--space-xl) 0 0;
}

.expand-guide .checklist {
  margin: var(--space-lg) 0;
}

.expand-guide__list-title {
  margin: 0 0 var(--space-md);
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.3;
}

.expand-guide .table-wrap {
  overflow-x: auto;
}

.expand-guide .compare-table {
  min-width: 28rem;
}

.expand-guide .prose h3,
.expand-guide .prose h4 {
  scroll-margin-top: calc(var(--header-h) + var(--space-md));
}

.expand-guide.is-open .prose h3,
.expand-guide.is-open .prose h4 {
  scroll-margin-top: calc(var(--header-h) + var(--expand-guide-bar-h) + var(--space-md));
}

.prose h4 {
  margin: var(--space-xl) 0 var(--space-md);
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.3;
}

@media (max-width: 768px) {
  .expand-guide__toggle {
    width: 100%;
  }

  .expand-guide-bar {
    padding: 0 var(--space-md);
  }

  .expand-guide-bar__full {
    display: none;
  }

  .expand-guide-bar__short {
    display: inline;
  }
}

/* 39 Article TOC */
.article-toc {
  margin: var(--space-lg) 0;
}

.article-toc-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  width: 100%;
  background: var(--cream);
  border: none;
  border-radius: var(--radius-md);
  padding: var(--space-md) var(--space-lg);
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.4;
  color: var(--ink);
  cursor: pointer;
  text-align: left;
}

.article-toc-toggle span {
  white-space: nowrap;
}

.article-toc-toggle:hover {
  background: var(--sage-wash);
}

.article-toc-toggle:focus-visible {
  outline: 2px solid var(--terra);
  outline-offset: 2px;
}

.article-toc-chevron {
  flex-shrink: 0;
  color: var(--ink-muted);
  transition: transform var(--transition);
}

.article-toc-toggle[aria-expanded="true"] .article-toc-chevron {
  transform: rotate(180deg);
}

.article-toc-list {
  list-style: none;
  margin: 0;
  padding: var(--space-sm) var(--space-lg) var(--space-md);
  overflow: hidden;
}

.article-toc-list a {
  display: block;
  font-family: var(--sans);
  font-size: 14px;
  color: var(--ink-muted);
  text-decoration: none;
  padding: 8px 0;
}

.article-toc-list a:hover {
  color: var(--ink);
}

.article-toc-list a:focus-visible {
  outline: 2px solid var(--terra);
  outline-offset: 2px;
}

.article-toc-list ul {
  list-style: none;
  margin: 0;
  padding: 0 0 0 var(--space-lg);
}

.article-toc-list ul a {
  font-size: 13px;
}

/* 40 Reason cards */
.reason-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-lg);
  align-items: stretch;
  list-style: none;
  margin: var(--space-lg) 0;
  padding: 0;
}

.reason-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-width: 0;
  background: var(--surface);
  border-radius: var(--radius-lg);
  box-shadow: none;
  padding: var(--space-lg);
}

.reason-card__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--space-md);
  margin-bottom: var(--space-sm);
}

.reason-card__num {
  flex-shrink: 0;
  font-family: var(--serif);
  font-weight: 700;
  font-size: 32px;
  line-height: 1;
  color: var(--terra-soft);
}

.reason-card__title {
  margin: 0;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 16px;
  line-height: 1.3;
  color: var(--ink);
}

.reason-card__text {
  margin: 0;
  font-family: var(--sans);
  font-size: 14px;
  line-height: 1.5;
  color: var(--ink-soft);
}

@media (max-width: 900px) {
  .learn-grid,
  .skill-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 560px) {
  .reason-cards,
  .learn-grid,
  .skill-grid,
  .audience-cards,
  .compare-slider-grid {
    grid-template-columns: 1fr;
  }
}

/* 41 Post card */
.post-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
  align-items: start;
}

.post-card {
  background: var(--surface);
  border-radius: var(--r-plate);
  box-shadow: none;
  overflow: hidden;
}

.post-card:hover {
  box-shadow: none;
}

.post-card:focus-within {
  outline: 2px solid var(--terra);
  outline-offset: 2px;
}

.post-card-link {
  display: flex;
  flex-direction: column;
  height: 100%;
  color: inherit;
  text-decoration: none;
}

.post-card-media {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--cream);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.post-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.post-card-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: var(--space-lg);
  gap: var(--space-sm);
}

.post-card-meta {
  margin: 0;
  font-family: var(--sans);
  font-size: 12px;
  line-height: 1.4;
  color: var(--ink-muted);
}

.post-card-title {
  margin: 0;
  font-family: var(--serif);
  font-weight: 600;
  font-size: 20px;
  line-height: 1.3;
  color: var(--ink);
}

.post-card-excerpt {
  margin: 0;
  font-family: var(--sans);
  font-size: 14px;
  line-height: 1.5;
  color: var(--ink-soft);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.post-card-more {
  margin-top: auto;
  padding-top: var(--space-sm);
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 500;
  color: var(--terra);
}

@media (max-width: 900px) {
  .post-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 560px) {
  .post-grid {
    grid-template-columns: 1fr;
  }
}

.article-figure-row {
  display: grid;
  gap: var(--space-md);
  margin: var(--space-lg) 0;
}

.article-figure-row .article-figure {
  margin: 0;
  min-width: 0;
}

.article-figure-row--2 {
  grid-template-columns: 1fr 1fr;
}

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

.article-figure-row--4 {
  grid-template-columns: repeat(4, 1fr);
}

.example-ba-item .article-figure-placeholder,
.showcase-ba-item .article-figure-placeholder {
  aspect-ratio: 3 / 4;
  width: 100%;
}

.prose .example-ba,
.prose .showcase-beforeafter,
.prose .compare-slider,
.prose .steps-viewer,
.prose .calc {
  margin: var(--space-lg) 0;
}

.compare-slider {
  margin: var(--space-lg) 0;
  --compare-pos: 50%;
}

.compare-slider-frame {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: var(--radius-md);
  background: var(--cream);
  touch-action: pan-y;
  cursor: ew-resize;
  user-select: none;
}

.compare-slider-before,
.compare-slider-after-wrap,
.compare-slider-after {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.compare-slider-before,
.compare-slider-after {
  display: block;
  max-width: none;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  pointer-events: none;
}

.compare-slider-after-wrap {
  clip-path: inset(0 0 0 var(--compare-pos));
}

.compare-slider.is-hinting .compare-slider-divider,
.compare-slider.is-hinting .compare-slider-after-wrap {
  transition: left 180ms ease, clip-path 180ms ease;
}

.compare-slider-ph {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-md);
  text-align: center;
}

.compare-slider-ph span {
  font-family: var(--sans);
  font-size: 13px;
  line-height: 1.4;
  color: var(--ink-muted);
}

.compare-slider-ph--before {
  background: var(--cream);
}

.compare-slider-ph--after {
  background: var(--sage-wash);
}

.compare-slider-label {
  position: absolute;
  top: var(--space-sm);
  z-index: 2;
  background: var(--overlay-caption);
  color: var(--warm-white);
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: var(--radius-sm);
  backdrop-filter: blur(4px);
  pointer-events: none;
  transition: opacity var(--transition);
}

.compare-slider-label-before {
  left: var(--space-sm);
}

.compare-slider-label-after {
  right: var(--space-sm);
}

.compare-slider-divider {
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--compare-pos);
  z-index: 3;
  width: 2px;
  background: var(--surface);
  box-shadow: none;
  transform: translateX(-50%);
  pointer-events: none;
}

.compare-slider-handle {
  position: absolute;
  top: 50%;
  left: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: none;
  border-radius: var(--radius-full);
  background: var(--surface);
  color: var(--ink-soft);
  box-shadow: none;
  transform: translate(-50%, -50%);
  cursor: ew-resize;
  pointer-events: auto;
}

.compare-slider-frame:focus-within .compare-slider-handle {
  box-shadow: 0 0 0 2px var(--acc);
}

.compare-slider-input {
  position: absolute;
  inset: 0;
  z-index: 4;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  pointer-events: none;
}

.compare-slider figcaption {
  margin-top: var(--space-sm);
  font-family: var(--sans);
  font-size: 13px;
  line-height: 1.4;
  color: var(--ink-muted);
}

.compare-slider-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: var(--space-lg);
  align-items: start;
}

.compare-slider-grid .compare-slider {
  margin: 0;
  min-width: 0;
}

@media (max-width: 768px) {
  .compare-slider-grid {
    grid-template-columns: 1fr;
  }
}

/* Steps viewer (§35) */
.steps-viewer {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  margin: var(--space-lg) 0;
}

.steps-viewer-tabs {
  display: flex;
  gap: var(--space-sm);
}

.steps-viewer-tab {
  flex: 1;
  min-width: 0;
  font-family: var(--sans);
  font-weight: 500;
  font-size: 14px;
  line-height: 1.3;
  text-align: center;
  padding: 10px 12px;
  background: var(--surface);
  color: var(--ink-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  cursor: pointer;
  transition: background var(--transition), color var(--transition), border-color var(--transition);
}

.steps-viewer-tab:hover {
  border-color: var(--ink-muted);
}

.steps-viewer-tab.is-active {
  background: var(--terra);
  color: var(--white);
  border-color: var(--terra);
}

.steps-viewer-tab.is-active:hover {
  background: var(--terra-dark);
  border-color: var(--terra-dark);
}

.steps-viewer-progress {
  height: 4px;
  background: var(--cream);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.steps-viewer-progress-fill {
  height: 100%;
  width: var(--steps-fill, 0%);
  background: var(--sage);
  border-radius: var(--radius-sm);
  transition: width var(--transition-slow);
}

.steps-viewer-body {
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  box-shadow: none;
  padding: var(--space-xl);
}

.steps-viewer-live {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) 1fr;
  gap: var(--space-xl);
  align-items: start;
}

.steps-viewer [hidden] {
  display: none !important;
}

.steps-viewer-live.is-fade {
  animation: pc-fade var(--transition-slow);
}

.steps-viewer-media .article-figure-placeholder {
  margin: 0;
}

.steps-viewer-media img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: var(--radius-md);
}

.steps-viewer-ph {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 4 / 3;
  padding: var(--space-md);
  background: var(--cream);
  border-radius: var(--radius-md);
  text-align: center;
}

.steps-viewer-ph span {
  font-family: var(--sans);
  font-size: 13px;
  line-height: 1.4;
  color: var(--ink-muted);
}

.steps-viewer-title {
  margin: 0 0 var(--space-sm);
  font-family: var(--serif);
  font-weight: 600;
  font-size: 20px;
  line-height: 1.3;
  color: var(--ink);
}

.steps-viewer-lead,
.steps-viewer-did,
.steps-viewer-result {
  margin: 0 0 var(--space-md);
  font-family: var(--sans);
  font-size: 14px;
  line-height: 1.5;
  color: var(--ink-soft);
}

.steps-viewer-did:last-child,
.steps-viewer-result:last-child,
.steps-viewer-lead:last-child {
  margin-bottom: 0;
}

.steps-viewer-result {
  padding: var(--space-sm) 0 var(--space-sm) var(--space-md);
  border-left: 3px solid var(--sage);
}

.steps-viewer-result strong,
.steps-viewer-did strong {
  display: block;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 13px;
  color: var(--ink);
  margin-bottom: var(--space-xs);
}

.prose .steps-viewer-title {
  margin: 0 0 var(--space-sm);
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 600;
  line-height: 1.3;
  color: var(--ink);
}

.prose .steps-viewer-lead,
.prose .steps-viewer-did,
.prose .steps-viewer-result {
  margin: 0 0 var(--space-md);
  font-size: 14px;
  line-height: 1.5;
}

.prose .steps-viewer-did:last-child,
.prose .steps-viewer-result:last-child,
.prose .steps-viewer-lead:last-child {
  margin-bottom: 0;
}

@media (max-width: 900px) {
  .steps-viewer-tabs {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
  }

  .steps-viewer-live {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .steps-viewer-tab {
    font-size: 13px;
    padding: 10px 8px;
  }

  .steps-viewer-body {
    padding: var(--space-lg);
  }
}

/* Forms (§05) */
.form-group {
  margin-bottom: var(--space-lg);
}

.form-label {
  display: block;
  font-weight: 500;
  font-size: 14px;
  margin-bottom: var(--space-xs);
}

.form-input {
  width: 100%;
  font-family: var(--sans);
  font-size: 15px;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface);
  color: var(--ink);
  transition: border-color var(--transition);
  outline: none;
}

.form-input:focus {
  border-color: var(--ink-muted);
}

.form-input::placeholder {
  color: var(--ink-muted);
}

.form-input-error {
  border-color: var(--error);
}

.form-input-error:focus {
  border-color: var(--error);
}

.form-hint {
  font-size: 12px;
  color: var(--ink-muted);
  margin-top: var(--space-xs);
}

.form-error {
  font-size: 12px;
  color: var(--error);
  margin-top: var(--space-xs);
}

.form-error[hidden] {
  display: none;
}

/* Calculator shell (§36) */
.calc {
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  box-shadow: none;
  padding: var(--space-xl);
  margin: var(--space-lg) 0;
}

.calc-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-sm) var(--space-md);
  margin-bottom: var(--space-md);
}

.calc-label {
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-soft);
  min-width: 5.5rem;
}

.calc-field {
  max-width: 240px;
  margin-bottom: 0;
}

.calc-result {
  margin-top: var(--space-lg);
}

.calc-result-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xl);
  align-items: start;
}

.calc .table-wrap {
  margin: 0;
}

.calc-table tr.is-mid td {
  background: var(--terra-wash);
  font-weight: 600;
  color: var(--ink);
}

.calc-scheme {
  background: var(--warm-white);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
  padding: var(--space-md);
}

.calc-scheme svg {
  width: 100%;
  height: auto;
  display: block;
}

.calc-scheme-ruler {
  stroke: var(--border);
  stroke-width: 2;
}

.calc-scheme-tick {
  stroke: var(--sage);
  stroke-width: 1.5;
}

.calc-scheme-tick-mid {
  stroke: var(--terra);
  stroke-width: 2;
}

.calc-scheme-label {
  font-family: var(--sans);
  font-size: 11px;
  fill: var(--ink-soft);
}

.calc-scheme-figure {
  fill: var(--cream);
  stroke: var(--ink-soft);
  stroke-width: 1.5;
  stroke-linejoin: round;
  stroke-linecap: round;
}

.calc-scheme-limb {
  fill: none;
  stroke: var(--ink-soft);
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.calc-note {
  margin: var(--space-md) 0 0;
  font-family: var(--sans);
  font-size: 13px;
  line-height: 1.5;
  color: var(--ink-muted);
}

.prose .calc-note,
.prose .calc .form-error,
.prose .calc .form-label {
  margin-bottom: 0;
}

.prose .calc-warning {
  margin-top: var(--space-md);
  font-size: 14px;
  color: var(--ink-muted);
}

@media (max-width: 900px) {
  .calc-result-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .calc {
    padding: var(--space-lg);
  }

  .calc-field {
    max-width: none;
  }
}

.cta-block + .cta-block,
.content-block > .cta-block {
  margin-top: var(--space-xl);
}

.content-block > .progress-calendar {
  margin: var(--space-lg) 0;
}

.review + .prose,
.review + nav {
  margin-top: var(--space-lg);
}

@media (max-width: 800px) {
  .prop-scheme {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .article-figure-row--3,
  .article-figure-row--4 {
    grid-template-columns: 1fr 1fr;
  }
}

/* First screen: /kursy/karandash/. Uses global v3 tokens. */
.s-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: calc(100vh - var(--header-h));
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(64px, 9vh, 100px) 0 80px;
  background: transparent;
  color: var(--tx);
}

.s-hero__wash {
  position: absolute;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}

.s-hero__wash img {
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: center 42%;
  transform: scale(1.18);
  filter: blur(64px) saturate(0.8);
  opacity: 0.5;
  display: block;
  border-radius: 0;
}

.s-hero__wash::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(to bottom, var(--bg) 0%, transparent 26%, transparent 58%, var(--bg) 92%),
    linear-gradient(to right, var(--bg) 0%, transparent 24%, transparent 76%, var(--bg) 100%);
}

.s-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 200px 200px;
  opacity: 0.055;
  mix-blend-mode: multiply;
}

.s-hero .inner,
.s-hero > .container {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.s-hero p {
  margin: 0;
}

.s-hero a {
  color: var(--acc);
  text-decoration: none;
}

.s-hero :focus-visible {
  outline: 2px solid var(--acc);
  outline-offset: 4px;
  border-radius: var(--r-field);
}

.s-hero .crumbs {
  font-size: 14px;
  color: var(--tx-2);
}

.s-hero .crumbs a {
  color: inherit;
}

.s-hero .crumbs a:hover {
  color: var(--acc);
}

.s-hero .hero {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: stretch;
  text-align: start;
  min-height: clamp(420px, 68vh, 640px);
  border-radius: var(--r-plate);
  overflow: hidden;
  background: var(--plate);
}

.s-hero .hero .art {
  position: absolute;
  inset: 0;
  padding: 0;
  display: block;
  overflow: hidden;
}

.s-hero .hero .art img {
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: 64% 28%;
  transform: scale(1.7);
  transform-origin: 64% 22%;
  display: block;
  border-radius: 0;
}

.s-hero .hero .veil {
  position: absolute;
  inset: auto 0 0 0;
  height: 70%;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(to bottom, transparent, var(--bg) 78%);
}

.s-hero .hero-txt {
  position: relative;
  z-index: 2;
  padding: 0 30px 34px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.s-hero .hero-title {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin: 0;
  font-weight: 400;
}

.s-hero .hero-title-main {
  font-family: var(--disp);
  font-weight: 400;
  text-transform: lowercase;
  letter-spacing: -0.025em;
  line-height: 1.08;
  font-size: clamp(29px, 4.4vw, 50px);
  color: var(--tx);
}

.s-hero .hero-title-sub {
  font-family: var(--sans);
  font-size: clamp(18px, 2vw, 23px);
  line-height: 1.45;
  color: var(--ink-soft);
  max-width: 32ch;
  text-transform: none;
}

.s-hero .d {
  font-family: var(--disp);
  font-weight: 400;
  text-transform: lowercase;
  letter-spacing: -0.025em;
  line-height: 1.08;
  margin: 0;
  color: var(--tx);
}

.s-hero .d-2 {
  font-size: clamp(29px, 4.4vw, 50px);
}

.s-hero .lead {
  font-size: clamp(18px, 2vw, 23px);
  line-height: 1.45;
  color: var(--tx-2);
  max-width: 32ch;
}

.s-hero .opening {
  max-width: 54ch;
  color: var(--tx);
}

.s-hero .row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.s-hero__cta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-md);
}

.s-hero .s-hero__note {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  width: fit-content;
  max-width: 100%;
  margin: 0;
  padding: var(--space-sm) var(--space-md);
  background: transparent;
  border: 1px solid var(--acc);
  border-radius: var(--r-pill);
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.4;
  color: var(--acc);
}

.s-hero .s-hero__note svg {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  color: var(--acc);
}

.s-hero .btn,
.s-hero .btn:hover {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  padding: 14px 26px;
  border-radius: var(--r-pill);
  background: var(--acc);
  color: var(--acc-tx);
  font-family: var(--ui);
  font-weight: 500;
  font-size: 16px;
  line-height: 1.4;
  border: 1px solid var(--acc);
  box-shadow: none;
  text-decoration: none;
  transition: background 0.16s, color 0.16s, border-color 0.16s;
}

.s-hero .btn:hover {
  background: color-mix(in srgb, var(--acc) 82%, var(--draw));
  border-color: color-mix(in srgb, var(--acc) 82%, var(--draw));
  color: var(--acc-tx);
}

.s-hero .btn-o {
  background: transparent;
  color: var(--acc);
}

.s-hero .btn-o:hover {
  background: var(--acc);
  color: var(--acc-tx);
  border-color: var(--acc);
}

.s-hero .facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(155px, 1fr));
  gap: 22px;
}

.s-hero .facts > div {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.s-hero .fact {
  font-family: var(--disp);
  font-weight: 400;
  font-size: clamp(19px, 2.2vw, 25px);
  line-height: 1;
  letter-spacing: -0.025em;
  color: var(--acc);
  text-transform: lowercase;
}

.s-hero .fact-l {
  font-size: 12.5px;
  color: var(--tx-2);
  line-height: 1.4;
}

@media (max-width: 900px) {
  .s-hero .hero .art img {
    object-position: 62% 32%;
    transform: scale(1.85);
    transform-origin: 62% 26%;
  }
}

@media (max-width: 640px) {
  .s-hero {
    padding: 48px 0 60px;
  }

  .s-hero__wash img {
    transform: scale(1.25);
    filter: blur(38px) saturate(0.8);
    opacity: 0.4;
  }

  .s-hero .hero .art img {
    object-position: 58% 34%;
    transform: scale(1.88);
    transform-origin: 58% 26%;
  }

  .s-hero .hero {
    min-height: clamp(480px, 78vh, 640px);
  }

  .s-hero .hero .art {
    padding: 0;
  }

  .s-hero .hero .veil {
    height: 82%;
  }

  .s-hero .hero-txt {
    padding: 0 20px 26px;
  }

  .s-hero .btn {
    width: 100%;
  }

  .s-hero__cta {
    align-items: stretch;
  }

  .s-hero .s-hero__note {
    align-self: center;
    justify-content: center;
    text-align: center;
  }

  .s-hero .facts {
    grid-template-columns: 1fr;
    gap: 18px;
  }
}

/* 42 Work gallery */
.work-gallery {
  position: relative;
}

.work-gallery__viewport {
  position: relative;
}

.work-gallery__track {
  display: flex;
  align-items: stretch;
  gap: var(--space-lg);
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
  cursor: grab;
}

.work-gallery__track::-webkit-scrollbar {
  display: none;
}

.work-gallery__track.is-dragging {
  cursor: grabbing;
  scroll-behavior: auto;
  scroll-snap-type: none;
}

.work-card {
  flex: 0 0 30%;
  scroll-snap-align: start;
  margin: 0;
  background: var(--surface);
  border-radius: var(--radius-lg);
  box-shadow: 0 1px 3px color-mix(in srgb, var(--draw) 6%, transparent);
  overflow: hidden;
  cursor: pointer;
  transition: box-shadow var(--transition), transform var(--transition);
}

.work-card:hover {
  box-shadow: 0 4px 12px color-mix(in srgb, var(--draw) 8%, transparent);
  transform: translateY(-3px);
}

.work-card:focus-visible {
  outline: 2px solid var(--acc);
  outline-offset: 4px;
}

.work-card img,
.work-card .article-figure-placeholder,
.work-card .work-card-media {
  display: block;
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 0;
  margin: 0;
}

.work-card .article-figure-placeholder,
.work-card .work-card-media {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-md);
  background: var(--cream);
  border-radius: var(--radius-lg);
  text-align: center;
}

.work-card .article-figure-placeholder span,
.work-card .work-card-media span {
  font-family: var(--ui);
  font-size: 13px;
  line-height: 1.4;
  color: var(--ink-muted);
}

.work-card figcaption {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: var(--space-md) var(--space-lg) var(--space-lg);
}

.work-card-title {
  font-family: var(--ui);
  font-weight: 600;
  font-size: 15px;
  line-height: 1.3;
  color: var(--tx);
}

.work-card-meta {
  font-family: var(--ui);
  font-size: 13px;
  line-height: 1.4;
  color: var(--ink-muted);
}

.work-gallery__btn-prev,
.work-gallery__btn-next,
.work-modal__btn-prev,
.work-modal__btn-next {
  position: absolute;
  top: 32%;
  z-index: 2;
  width: 40px;
  height: 40px;
  padding: 0;
  border: none;
  border-radius: var(--r-pill);
  background: var(--white);
  color: var(--ink-soft);
  box-shadow: 0 8px 24px color-mix(in srgb, var(--draw) 10%, transparent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition);
}

.work-gallery__btn-prev {
  left: 8px;
}

.work-gallery__btn-next {
  right: 8px;
}

.work-gallery:hover .work-gallery__btn-prev:not([hidden]),
.work-gallery:hover .work-gallery__btn-next:not([hidden]),
.work-gallery:focus-within .work-gallery__btn-prev:not([hidden]),
.work-gallery:focus-within .work-gallery__btn-next:not([hidden]) {
  opacity: 1;
  pointer-events: auto;
}

.work-modal.modal-window {
  max-width: min(720px, 100%);
  padding: var(--space-xl);
}

.work-modal__figure {
  margin: 0;
}

.work-modal__figure img {
  width: 100%;
  height: auto;
  max-height: 70vh;
  object-fit: contain;
  display: block;
  border-radius: var(--r-img);
  background: var(--plate);
}

.work-modal__figure .article-figure-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 40vh;
  aspect-ratio: 3 / 4;
  max-height: 70vh;
  padding: var(--space-lg);
  background: var(--surface);
  border-radius: var(--r-img);
  text-align: center;
}

.work-modal__figure figcaption {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: var(--space-md);
}

.work-modal__btn-prev,
.work-modal__btn-next {
  top: 42%;
  opacity: 1;
  pointer-events: auto;
}

.work-modal__btn-prev {
  left: 12px;
}

.work-modal__btn-next {
  right: 12px;
}

@media (hover: none) {
  .work-gallery__btn-prev,
  .work-gallery__btn-next {
    display: none;
  }
}

@media (max-width: 1023px) {
  .work-card,
  .review-card {
    flex-basis: calc((100% - var(--space-lg)) / 2);
  }
}

@media (max-width: 640px) {
  .work-card,
  .review-card {
    flex-basis: calc(100% - 56px);
  }
}

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

  .work-card {
    transition: none;
  }

  .work-card:hover {
    transform: none;
  }
}

.work-gallery--thumbs .work-gallery__track {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--space-sm);
  overflow: visible;
  scroll-snap-type: none;
  cursor: default;
  scrollbar-width: auto;
}

.work-gallery--thumbs .work-card {
  flex: none;
  scroll-snap-align: none;
  background: transparent;
  border-radius: var(--radius-md);
  box-shadow: none;
  position: relative;
}

.work-gallery--thumbs .work-card:hover {
  box-shadow: none;
  transform: none;
}

.work-gallery--thumbs .work-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: transparent;
  pointer-events: none;
  transition: background var(--transition);
}

.work-gallery--thumbs .work-card:hover::after,
.work-gallery--thumbs .work-card:focus-visible::after {
  background: color-mix(in srgb, var(--ink) 22%, transparent);
}

.work-gallery--thumbs .work-card img,
.work-gallery--thumbs .work-card .article-figure-placeholder,
.work-gallery--thumbs .work-card .work-card-media {
  aspect-ratio: 1 / 1;
  border-radius: var(--radius-md);
}

.work-gallery--thumbs .work-card .article-figure-placeholder,
.work-gallery--thumbs .work-card .work-card-media {
  padding: var(--space-sm);
}

.work-gallery--thumbs .work-card > figcaption {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 640px) {
  .work-gallery--thumbs .work-gallery__track {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (prefers-reduced-motion: reduce) {
  .work-gallery--thumbs .work-card::after {
    transition: none;
  }
}

/* 53 Review card */
.review-card {
  flex: 0 0 30%;
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  margin: 0;
  padding: var(--space-lg);
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  min-width: 0;
}

.review-card-text {
  margin: 0;
  flex: 1;
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 400;
  line-height: 1.5;
  color: var(--ink);
}

.review-card-author {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  grid-template-rows: auto auto;
  column-gap: var(--space-sm);
  align-items: center;
  margin-top: var(--space-md);
}

.review-card-avatar {
  grid-row: 1 / 3;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  overflow: hidden;
  object-fit: cover;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: var(--sage-wash);
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
  color: var(--ink);
}

img.review-card-avatar {
  display: block;
  background: transparent;
}

.review-card-name {
  margin: 0;
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.3;
  color: var(--ink);
}

.review-card-course {
  margin: 0;
  font-family: var(--sans);
  font-size: 13px;
  line-height: 1.4;
  color: var(--ink-muted);
}

@media (max-width: 1023px) {
  .review-card {
    flex-basis: calc((100% - var(--space-lg)) / 2);
  }
}

@media (max-width: 640px) {
  .review-card {
    flex-basis: calc(100% - 56px);
  }
}
