@font-face {
  font-family: Manrope;
  src: url("assets/manrope-cyrillic.woff2") format("woff2");
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: Manrope;
  src: url("assets/manrope-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  color-scheme: dark;
  --background: #111110;
  --surface: #181916;
  --ink: #f0f0e9;
  --muted: #a9aa9f;
  --dim: #909186;
  --rule: #303129;
  --acid: #d7fa58;
  --mono: "Cascadia Mono", Consolas, monospace;
  --ease: cubic-bezier(.22, .72, .24, 1);
  --gutter: clamp(20px, 4.5vw, 76px);
  font-family: Manrope, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; min-height: 100svh; background: var(--background); color: var(--ink); display: flex; flex-direction: column; }
main { flex: 1 0 auto; min-width: 0; }
button, input, textarea { font: inherit; }
button, a { color: inherit; }
button, a { touch-action: manipulation; }
button { cursor: pointer; }
a { text-decoration: none; }
button:focus-visible, a:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--acid);
  outline-offset: 4px;
}
img { display: block; width: 100%; }
h1, h2, h3, p { margin: 0; }
h1:focus, .request-success h2:focus { outline: none; }
.symbols, .visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.icon { width: 22px; height: 22px; flex: 0 0 auto; fill: none; stroke: currentColor; stroke-width: 1.65; stroke-linecap: round; stroke-linejoin: round; }
.frame { margin-inline: var(--gutter); }
.inner-width { width: min(1120px, calc(100% - 2 * var(--gutter))); margin-inline: auto; }

.site-header { display: flex; min-height: 74px; align-items: center; justify-content: space-between; gap: 20px; border-bottom: 1px solid var(--rule); }
.wordmark { display: inline-flex; gap: 10px; align-items: center; font-weight: 800; font-size: 15px; letter-spacing: .045em; white-space: nowrap; }
.wordmark:hover .brand-mark { transform: translateX(2px); }
.brand-mark { width: 29px; height: 29px; color: var(--acid); transition: transform 230ms var(--ease); }
.brand-divider { color: var(--acid); margin-inline: .20em; }
.header-progress { display: flex; align-items: center; gap: 13px; font-size: .79rem; white-space: nowrap; color: var(--muted); }
.progress-meter { display: flex; gap: 4px; }
.progress-meter span { width: 22px; height: 3px; background: #41433a; transition: background 350ms ease, box-shadow 380ms ease; }
.progress-meter span.is-complete { background: var(--acid); }
.progress-meter.is-marked span.is-complete { animation: progress-mark 620ms var(--ease); }
.progress-tally { color: var(--ink); font: .78rem var(--mono); }

.library { --card-width: min(54vw, 770px); --card-height: calc(var(--card-width) * .48); --radius: calc(var(--card-width) * .89); }
.library-intro { text-align: center; padding-top: clamp(36px, 5.2vh, 60px); padding-bottom: 32px; }
.eyebrow { font: .74rem/1.35 var(--mono); letter-spacing: .105em; font-weight: 600; color: var(--acid); }
.signal { display: inline-block; margin-right: 7px; width: 6px; height: 6px; background: currentColor; vertical-align: 2px; }
.library-intro h1 { margin-top: 5px; font-size: clamp(4rem, 7.1vw, 6.9rem); line-height: 1.03; font-weight: 800; letter-spacing: -.057em; }
.library-intro h1 span, .consultation h1 span { color: var(--acid); }
.library-subtitle { margin-top: 13px; color: var(--muted); font-size: clamp(.98rem, 1.55vw, 1.11rem); }

.gallery { position: relative; isolation: isolate; }
.stage { position: relative; height: calc(var(--card-height) + 22px); overflow: clip; touch-action: pan-y pinch-zoom; }
.perspective { position: absolute; inset: 0; perspective: clamp(790px, 131vw, 1740px); perspective-origin: 50% 50%; pointer-events: none; }
.drum {
  --turn: 0deg;
  --drag: 0deg;
  position: absolute;
  width: var(--card-width);
  height: var(--card-height);
  left: calc(50% - var(--card-width) / 2);
  top: 11px;
  transform-style: preserve-3d;
  transform: translateZ(calc(-1 * var(--radius))) rotateY(calc(var(--turn) + var(--drag)));
  transition: transform 700ms var(--ease);
}
.drum.is-dragging, .drum.is-positioning { transition: none; }
.drum.is-dragging .drum-card { cursor: grabbing; }
.gallery-rail { position: absolute; left: var(--gutter); right: var(--gutter); height: 1px; background: #22231e; pointer-events: none; z-index: -1; }
.gallery-rail--top { top: 11px; }
.gallery-rail--bottom { top: calc(var(--card-height) + 10px); }
.gallery-rail::before, .gallery-rail::after { content: ""; position: absolute; top: -2px; width: 1px; height: 5px; background: #5a5d48; }
.gallery-rail::before { left: 0; }
.gallery-rail::after { right: 0; }
.drum-card {
  position: absolute;
  inset: 0;
  padding: 0;
  border: 0;
  color: var(--ink);
  text-align: left;
  background: #20201c;
  transform: rotateY(var(--facet)) translateZ(var(--radius));
  backface-visibility: hidden;
  pointer-events: none;
  outline-offset: -5px;
}
.drum-card.is-near { pointer-events: auto; }
.cover { position: relative; overflow: hidden; background: #22241b; }
.cover img, .cover-shade { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cover img { object-position: var(--image-position, center); }
.drum-card .cover { display: block; width: 100%; height: 100%; border: 1px solid #6d715549; }
.drum-card .cover img { filter: brightness(.53) saturate(.72); transition: transform 820ms var(--ease), filter 660ms var(--ease); }
.drum-card.is-current .cover img { filter: brightness(.95) saturate(.92); }
.drum-card.is-near:hover .cover img { filter: brightness(.74) saturate(.87); }
.drum-card.is-current:hover .cover img { filter: brightness(1.05) saturate(.97); transform: scale(1.028); }
.drum-card .cover-shade { background: linear-gradient(148deg, #0b0c0999, transparent 33%), linear-gradient(0deg, #0d0e0a6b, transparent 24%); }
.slide-number, .slide-complete { position: absolute; left: clamp(12px, 2vw, 28px); }
.slide-number { top: clamp(12px, 2vw, 26px); display: flex; gap: 8px; align-items: center; color: #f0f0e6; font: .76rem/1 var(--mono); letter-spacing: .05em; opacity: 0; transition: opacity 330ms ease; }
.is-current .slide-number { opacity: 1; }
.slide-number::before { content: ""; width: 14px; height: 1px; background: var(--acid); }
.slide-complete { left: auto; right: clamp(12px, 2vw, 26px); top: clamp(10px, 1.7vw, 23px); color: var(--acid); }
.slide-complete .icon { width: 20px; height: 20px; }
.gallery-arrow {
  position: absolute;
  z-index: 1;
  top: 50%;
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  padding: 0;
  border: 1px solid #535548;
  border-radius: 50%;
  background: #141511;
  transform: translate(-50%, -50%);
  transition: background 230ms var(--ease), border-color 230ms var(--ease), color 230ms var(--ease);
}
.gallery-arrow--left { left: calc(50% - var(--card-width) / 2 - 18px); }
.gallery-arrow--right { left: calc(50% + var(--card-width) / 2 + 18px); }
.gallery-arrow:focus-visible, .gallery-arrow:hover { border-color: var(--acid); color: var(--acid); }
.gallery-arrow .icon { transition: transform 230ms var(--ease); }
.gallery-arrow--left:hover .icon { transform: translateX(-3px); }
.gallery-arrow--right:hover .icon { transform: translateX(3px); }

.gallery-caption { width: var(--card-width); min-height: 111px; margin: 13px auto 0; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.caption-copy { min-width: 0; }
.caption-kicker { font-size: .72rem; }
.gallery-caption h2 { font-size: clamp(1.47rem, 2.45vw, 2.38rem); line-height: 1.11; letter-spacing: -.041em; font-weight: 800; margin-top: 7px; }
.gallery-caption #caption-description { margin-top: 9px; color: var(--muted); font-size: .93rem; line-height: 1.5; max-width: 465px; }
.action {
  position: relative;
  display: inline-flex;
  justify-content: center;
  gap: 9px;
  align-items: center;
  min-height: 52px;
  flex: 0 0 auto;
  padding: 12px 19px;
  border: 1px solid transparent;
  border-radius: 3px;
  font-weight: 800;
  font-size: .91rem;
  text-align: center;
  transition: background 260ms var(--ease), box-shadow 260ms var(--ease), color 260ms var(--ease);
}
.action--primary { background: var(--acid); color: #1b2306; }
.action--primary:hover { background: #efffa4; box-shadow: 4px 4px 0 #77863c; }
.action--primary:active { box-shadow: inset 0 2px 6px #26320b36; }
.action--secondary { border-color: #565747; color: var(--ink); }
.action--secondary:hover { border-color: var(--acid); color: var(--acid); }
.chapter-nav { display: flex; justify-content: center; gap: 4px; margin: 16px auto 32px; }
.chapter-tab {
  min-width: 57px;
  min-height: 44px;
  background: transparent;
  border: 0;
  color: var(--dim);
  font: .74rem/1 var(--mono);
  padding: 5px 7px;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 8px;
}
.chapter-tab::before { content: ""; height: 2px; width: 100%; background: #4b4d40; transition: background 280ms var(--ease); }
.chapter-tab[aria-current="true"], .chapter-tab:hover { color: var(--acid); }
.chapter-tab[aria-current="true"]::before, .chapter-tab:hover::before { background: var(--acid); }
.chapter-tab.is-complete::before { background: #8c9d50; }
.chapter-tab[aria-current="true"].is-complete::before { background: var(--acid); }
.chapter-tab .icon { width: 13px; height: 13px; }
.noscript { color: var(--muted); text-align: center; margin-bottom: 24px; }

.scene-inner { padding-block: 27px 58px; }
.back-link { display: inline-flex; gap: 10px; align-items: center; min-height: 42px; margin-bottom: 16px; font-size: .87rem; font-weight: 700; color: var(--muted); }
.back-link .icon { width: 17px; height: 17px; transition: transform 230ms var(--ease); }
.back-link:hover { color: var(--acid); }
.back-link:hover .icon { transform: translateX(-3px); }
.lesson-cover { min-height: clamp(300px, 37vw, 438px); border: 1px solid #5b5d46; display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; padding: clamp(22px, 4.4vw, 48px); isolation: isolate; }
.lesson-cover .cover-shade { background: linear-gradient(90deg, #080a06b5 3%, #11120812 83%), linear-gradient(0deg, #0b0c08de 0%, transparent 76%); }
.lesson-cover-copy, .demo-label { position: relative; }
.lesson-cover h1 { font-size: clamp(2.6rem, 5.55vw, 5.1rem); max-width: 17ch; font-weight: 800; letter-spacing: -.057em; line-height: 1.04; margin-top: 10px; text-wrap: balance; }
.demo-label { display: flex; gap: 9px; align-items: center; white-space: nowrap; padding: 9px 10px; border: 1px solid #f0f0e954; color: var(--ink); background: #171912cc; font-size: .76rem; }
.demo-label .icon { width: 16px; height: 16px; }
.lesson-content { display: grid; grid-template-columns: minmax(0, .79fr) minmax(0, 1.45fr); gap: clamp(30px, 8vw, 115px); margin-top: 38px; }
.lesson-content h2, .outcomes-title { font-size: 1.35rem; letter-spacing: -.035em; font-weight: 800; margin-bottom: 13px; }
.lesson-summary p, .theses p, .exercise p { color: var(--muted); line-height: 1.68; font-size: .98rem; }
.exercise { border-left: 2px solid var(--acid); padding: 4px 0 4px 16px; margin-top: 28px; }
.exercise h3 { font-size: .98rem; margin-bottom: 8px; }
.theses { list-style: none; counter-reset: thesis; margin: 0; padding: 0; }
.theses li { display: grid; grid-template-columns: 31px minmax(0, 1fr); column-gap: 13px; border-top: 1px solid var(--rule); padding: 15px 0; counter-increment: thesis; }
.theses li::before { content: counter(thesis, decimal-leading-zero); margin-top: .24rem; color: var(--acid); font: .78rem/1.2 var(--mono); }
.theses h3 { font-size: 1rem; line-height: 1.35; margin-bottom: 4px; }
.theses p { margin-top: 0; }
.lesson-offer { border: 1px solid #464b31; background: #1b1e13; padding: 18px; margin-top: 14px; }
.lesson-offer p + p { font-size: 1.13rem; font-weight: 750; margin-top: 7px; }
.lesson-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 13px; margin-top: 24px; }
.lesson-status { font-size: .84rem; color: var(--acid); }
.is-finished .action--primary { animation: finish-mark 400ms var(--ease); }

.consult-grid { display: grid; grid-template-columns: minmax(0, 1.18fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 67px); align-items: start; }
.consult-art { height: clamp(144px, 15vw, 205px); border: 1px solid #5b4738; }
.consult-art img { object-position: center 49%; }
.consult-art .cover-shade { background: linear-gradient(0deg, #0c0a08ce, transparent 71%); }
.consult-art .eyebrow { position: absolute; left: 19px; bottom: 17px; color: #f4eddd; }
.consult-art .signal { color: var(--acid); }
.consultation h1 { font-size: clamp(2.45rem, 4.7vw, 4.5rem); font-weight: 800; line-height: 1.02; letter-spacing: -.054em; margin: 23px 0 17px; }
.consult-lead { color: var(--muted); line-height: 1.62; max-width: 47ch; }
.outcomes-title { margin-top: 26px; }
.outcomes { list-style: none; margin: 0; padding: 0; }
.outcomes li { display: flex; gap: 10px; align-items: start; font-size: .93rem; line-height: 1.53; border-top: 1px solid var(--rule); padding: 10px 0; }
.outcomes .icon { width: 17px; height: 17px; margin-top: 2px; color: var(--acid); }
.consult-form-shell { min-width: 0; background: var(--surface); border: 1px solid #34362a; border-top: 2px solid var(--acid); padding: clamp(21px, 3.2vw, 39px); }
.consult-form-shell h2 { margin-top: 9px; font-size: clamp(1.6rem, 2.4vw, 2.1rem); letter-spacing: -.055em; line-height: 1.1; font-weight: 800; }
.form-intro, .request-success p { font-size: .94rem; line-height: 1.55; color: var(--muted); margin: 12px 0 22px; }
.consult-form-shell label { display: block; color: var(--ink); font-size: .87rem; margin: 17px 0 7px; font-weight: 750; }
.consult-form-shell input, .consult-form-shell textarea { display: block; width: 100%; min-width: 0; padding: 11px 12px; color: var(--ink); border: 1px solid #494b3d; border-radius: 2px; background: #11120e; line-height: 1.45; }
.consult-form-shell input { min-height: 45px; }
.consult-form-shell textarea { min-height: 100px; resize: vertical; }
.consult-form-shell ::placeholder { color: #96978b; }
.consult-form-shell form .action { width: 100%; margin-top: 22px; }
.request-success { min-height: 340px; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; }
.success-icon { color: var(--acid); width: 40px; height: 40px; }

.site-footer { display: flex; min-height: 66px; padding-block: 8px; align-items: center; justify-content: space-between; gap: 12px; color: var(--dim); border-top: 1px solid var(--rule); font-size: .78rem; }
.site-footer span { color: var(--muted); font-weight: 750; }
.site-footer button { border: 0; padding: 8px 0 8px 8px; min-height: 44px; background: transparent; text-align: right; }
.site-footer button:hover { color: var(--acid); }
.morph-image { position: fixed; z-index: 10; overflow: hidden; pointer-events: none; }
.morph-image img { width: 100%; height: 100%; object-fit: cover; object-position: var(--image-position, center); }
@media (min-width: 761px) {
  .lesson-cover[data-chapter="2"] { flex-direction: row-reverse; text-align: right; }
  .lesson-cover[data-chapter="2"] .cover-shade { background: linear-gradient(270deg, #0c0b21a8 0%, transparent 70%), linear-gradient(0deg, #08080fe0, transparent 76%); }
  .lesson-cover[data-chapter="3"] { justify-content: center; text-align: center; padding-bottom: 69px; }
  .lesson-cover[data-chapter="3"] h1 { max-width: 19ch; }
  .lesson-cover[data-chapter="3"] .cover-shade { background: linear-gradient(0deg, #110b08f0, #110b0840 58%, transparent 85%); }
  .lesson-cover[data-chapter="3"] .demo-label { position: absolute; bottom: 17px; }
}

@keyframes progress-mark {
  45% { box-shadow: 0 0 13px #d7fa5890; }
}
@keyframes finish-mark {
  44% { box-shadow: inset 0 0 0 3px #627129; background: #edffb0; }
}

@media (max-width: 1000px) {
  .library { --card-width: min(66vw, 680px); }
}
@media (max-width: 760px) {
  .library { --card-width: 75vw; --card-height: calc(var(--card-width) * .59); }
  .scene-inner { padding-block: 17px 42px; }
  .lesson-content, .consult-grid { grid-template-columns: minmax(0, 1fr); gap: 30px; }
  .lesson-cover { align-items: flex-start; flex-direction: column; justify-content: flex-end; gap: 15px; }
  .lesson-cover h1 { text-wrap: unset; font-size: clamp(1.86rem, 9.7vw, 3.8rem); max-width: 18ch; }
  .consult-art { height: clamp(150px, 33vw, 225px); }
  .request-success { min-height: 265px; }
}
@media (max-width: 560px) {
  .site-header { min-height: 62px; gap: 10px; }
  .wordmark { gap: 6px; font-size: .82rem; }
  .brand-mark { width: 24px; height: 24px; }
  .progress-label { display: none; }
  .header-progress { gap: 7px; }
  .progress-meter span { width: 13px; }
  .progress-tally { font-size: .71rem; }
  .library { --card-width: 81vw; --card-height: calc(var(--card-width) * .83); }
  .library-intro { padding-top: 36px; padding-bottom: 25px; }
  .library-intro h1 { font-size: clamp(2.8rem, 12.7vw, 4.2rem); margin-top: 9px; }
  .library-subtitle { margin: 10px auto 0; max-width: 26ch; }
  .gallery-arrow { width: 44px; height: 44px; background: #141511ed; }
  .gallery-arrow--left { left: 24px; }
  .gallery-arrow--right { left: calc(100% - 24px); }
  .gallery-arrow .icon { width: 19px; height: 19px; }
  .gallery-caption { display: grid; gap: 16px; margin-top: 12px; }
  .gallery-caption h2 { font-size: clamp(1.55rem, 6.8vw, 2.25rem); }
  .gallery-caption #caption-description { margin-top: 6px; }
  .gallery-caption .action { width: 100%; }
  .chapter-nav { margin-block: 12px 16px; }
  .site-footer { min-height: 57px; font-size: .72rem; }
  .site-footer p span { display: block; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
