:root {
  --ink: #0d0f0e;
  --ink-soft: #1b1e1c;
  --bone: #f2f3f1;
  --paper: #ffffff;
  --paper-deep: #e4e7e4;
  --red: #b3261e;
  --red-dark: #891c16;
  --brass: #606963;
  --jade: #b3261e;
  --indigo: #29394e;
  --ash: #555b57;
  --rule: #c8cdc9;
  --success: #2d6545;
  --error: #a61f18;
  --white: #ffffff;
  --display: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Georgia, serif;
  --body: "Avenir Next", "Helvetica Neue", Arial, sans-serif;
  --max: 1280px;
  --gutter: clamp(20px, 4vw, 64px);
  --shadow: 0 20px 56px rgba(13, 15, 14, 0.14);
  --focus: 0 0 0 3px rgba(179, 38, 30, 0.26);
  --speed-fast: 150ms;
  --speed: 220ms;
}

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

html {
  color-scheme: light;
  overflow-x: hidden;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  background: var(--bone);
  color: var(--ink);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
}

body.menu-open {
  overflow: hidden;
}

button,
input,
textarea,
select {
  font: inherit;
}

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

button {
  cursor: pointer;
}

a {
  color: inherit;
}

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

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 999;
  padding: 10px 14px;
  background: var(--white);
  color: var(--ink);
  transform: translateY(-160%);
}

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

:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 3px;
  scroll-margin-top: 124px;
}

.shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.prototype-bar {
  min-height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 6px var(--gutter);
  background: var(--ink);
  color: #f2f3f1;
  font-size: 12px;
  letter-spacing: 0.04em;
  text-align: center;
}

.prototype-dot {
  width: 6px;
  height: 6px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--red);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid var(--rule);
  backdrop-filter: blur(12px);
}

.nav-wrap {
  max-width: var(--max);
  min-height: 80px;
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: grid;
  grid-template-columns: minmax(190px, 1fr) auto minmax(190px, 1fr);
  align-items: center;
  gap: 28px;
}

.wordmark {
  width: fit-content;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand-logo {
  width: 158px;
  height: auto;
}

.wordmark-mark {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  background: var(--red);
  color: var(--white);
  font-family: var(--display);
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
}

.wordmark-text {
  display: grid;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.13em;
  line-height: 1.1;
}

.wordmark-text span:last-child {
  color: var(--red);
}

.nav-links,
.nav-actions,
.inline-actions,
.button-row,
.meta-row,
.footer-links,
.social-links,
.price-row,
.card-actions,
.lesson-actions {
  display: flex;
  align-items: center;
}

.nav-links {
  gap: 34px;
}

.nav-link {
  position: relative;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  border: 0;
  background: transparent;
  color: var(--ash);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}

.nav-link::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 6px;
  left: 0;
  height: 2px;
  background: var(--red);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--speed) ease;
}

.nav-link:hover,
.nav-link[aria-current="page"] {
  color: var(--ink);
}

.nav-link[aria-current="page"]::after,
.nav-link:hover::after {
  transform: scaleX(1);
}

.nav-actions {
  justify-content: flex-end;
  gap: 8px;
}

.icon-button,
.menu-button {
  position: relative;
  width: 46px;
  height: 46px;
  display: inline-grid;
  place-items: center;
  border: 1px solid transparent;
  background: transparent;
  color: var(--ink);
  transition: background var(--speed-fast) ease, border-color var(--speed-fast) ease;
}

.icon-button:hover,
.menu-button:hover {
  border-color: var(--rule);
  background: var(--paper);
}

.icon {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.cart-count {
  position: absolute;
  top: 3px;
  right: 1px;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  background: var(--red);
  color: white;
  font-size: 10px;
  font-weight: 700;
  line-height: 1;
}

.menu-button {
  display: none;
}

.mobile-panel {
  display: none;
}

main {
  flex: 1;
}

.page { min-height: 60vh; }

.container {
  width: min(100%, var(--max));
  margin: 0 auto;
  padding-inline: var(--gutter);
}

.section {
  padding-block: clamp(72px, 9vw, 120px);
}

.section-compact {
  padding-block: clamp(48px, 6vw, 80px);
}

.section-dark {
  background: #101210;
  color: var(--bone);
}

.section-paper {
  background: var(--paper);
}

.page-hero { background: #f7f8f7; }

.section-rule {
  border-top: 1px solid var(--rule);
}

.section-head {
  max-width: 780px;
  margin-bottom: clamp(34px, 5vw, 64px);
}

.kicker {
  margin: 0 0 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--red);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.kicker::before {
  content: "";
  width: 24px;
  height: 3px;
  flex: 0 0 auto;
  background: currentColor;
}

.section-dark .kicker {
  color: #ef5a50;
}

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

h1,
h2,
h3 {
  font-family: var(--display);
  font-weight: 500;
  letter-spacing: -0.035em;
  text-wrap: balance;
}

h1 {
  max-width: 980px;
  margin-bottom: 24px;
  font-size: clamp(48px, 8.2vw, 112px);
  line-height: 0.92;
}

h2 {
  margin-bottom: 20px;
  font-size: clamp(36px, 5vw, 68px);
  line-height: 1;
}

h3 {
  margin-bottom: 12px;
  font-size: clamp(23px, 2.4vw, 34px);
  line-height: 1.08;
}

.lead {
  max-width: 690px;
  color: var(--ash);
  font-size: clamp(18px, 2vw, 22px);
  line-height: 1.55;
}

.section-dark .lead,
.section-dark .muted {
  color: #bfc5c1;
}

.muted {
  color: var(--ash);
}

.small {
  font-size: 13px;
}

.hero {
  position: relative;
  min-height: clamp(680px, calc(100vh - 114px), 860px);
  overflow: hidden;
  background: var(--ink);
  border-bottom: 1px solid var(--rule);
}

.hero-artwork {
  position: absolute;
  inset: 0;
  margin: 0;
}

.hero-artwork::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(16, 23, 20, 0.03) 0 42%, rgba(16, 23, 20, 0.14) 58%, rgba(16, 23, 20, 0.42) 100%);
}

.hero-artwork img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 48%;
}

.hero-photo-note {
  position: absolute;
  bottom: 24px;
  left: var(--gutter);
  z-index: 2;
  padding: 10px 13px;
  border-left: 3px solid var(--red);
  background: rgba(23, 26, 24, 0.78);
  color: rgba(255, 255, 255, 0.82);
  font-size: 10px;
  line-height: 1.45;
  letter-spacing: 0.04em;
  backdrop-filter: blur(8px);
}

.hero-photo-note span {
  display: block;
  color: white;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.hero-overlay {
  position: relative;
  z-index: 3;
  min-height: clamp(680px, calc(100vh - 114px), 860px);
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  align-items: center;
  padding-block: clamp(46px, 6vw, 80px);
}

.hero-copy {
  grid-column: 7 / -1;
  padding: clamp(32px, 4vw, 56px);
  border-top: 5px solid var(--red);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 24px 70px rgba(13, 20, 17, 0.24);
  backdrop-filter: blur(12px);
}

.hero h1 {
  max-width: 700px;
  font-size: clamp(52px, 6.4vw, 88px);
}

.hero .lead {
  max-width: 610px;
  margin-bottom: 34px;
}

.button-row {
  flex-wrap: wrap;
  gap: 12px;
}

.button,
.text-link {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 20px;
  border: 1px solid transparent;
  border-radius: 2px;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  transition: color var(--speed) ease, background var(--speed) ease, border-color var(--speed) ease, opacity var(--speed) ease;
}

.button-primary {
  background: var(--red);
  color: var(--white);
}

.button-primary:hover {
  background: var(--red-dark);
}

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

.button-secondary:hover {
  background: var(--ink);
  color: var(--bone);
}

.section-dark .button-secondary {
  border-color: #6d746f;
  color: var(--bone);
}

.section-dark .button-secondary:hover {
  border-color: var(--bone);
  background: var(--bone);
  color: var(--ink);
}

.button-quiet {
  border-color: var(--rule);
  background: var(--paper);
  color: var(--ink);
}

.button-quiet:hover {
  border-color: var(--ink);
}

.button:disabled {
  cursor: not-allowed;
  opacity: 0.48;
}

.button:active,
.icon-button:active,
.menu-button:active,
.chip:active,
.faq-question:active,
.lesson-item:active {
  opacity: 0.72;
}

.button svg,
.text-link svg {
  width: 18px;
  height: 18px;
}

.text-link {
  min-height: 44px;
  padding-inline: 0;
  border-bottom-color: currentColor;
  border-radius: 0;
}

.text-link:hover {
  color: var(--red);
}

.hero-facts {
  margin: 42px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--rule);
  list-style: none;
}

.hero-facts li {
  padding: 20px 16px 0 0;
}

.hero-facts li + li {
  padding-left: 18px;
  border-left: 1px solid var(--rule);
}

.fact-value {
  display: block;
  font-family: var(--display);
  font-size: 29px;
  line-height: 1.1;
}

.fact-label {
  color: var(--ash);
  font-size: 12px;
}

.asset-frame {
  position: relative;
  min-height: 580px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  border: 1px dashed #9ea49f;
  background:
    linear-gradient(145deg, transparent 0 49.4%, rgba(185, 52, 43, 0.86) 49.5% 50.2%, transparent 50.3%),
    linear-gradient(180deg, #dfe3df 0%, #c9cfca 100%);
}

.asset-frame.asset-photo {
  display: block;
  margin: 0;
  border-style: solid;
  background: #d9ddda;
}

.asset-frame.asset-photo::before {
  display: none;
}

.asset-photo img,
.portrait-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.asset-photo img {
  position: absolute;
  inset: 0;
  object-position: 34% center;
}

.photo-status {
  position: absolute;
  right: 18px;
  bottom: 18px;
  left: 18px;
  z-index: 2;
  padding: 14px 16px;
  border-left: 4px solid var(--red);
  background: rgba(255, 255, 255, 0.94);
  color: var(--ash);
  font-size: 12px;
  line-height: 1.4;
}

.photo-status span {
  display: block;
  margin-bottom: 3px;
  color: var(--red);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.1em;
}

.asset-frame::before {
  content: "";
  position: absolute;
  top: 9%;
  left: 13%;
  width: 44%;
  aspect-ratio: 1;
  border: 1px solid rgba(21, 21, 18, 0.28);
  border-radius: 50%;
}

.asset-note {
  position: relative;
  z-index: 1;
  width: calc(100% - 36px);
  margin: 18px;
  padding: 22px;
  background: rgba(255, 255, 255, 0.94);
  border-left: 4px solid var(--red);
}

.asset-label {
  display: block;
  margin-bottom: 7px;
  color: var(--red);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.asset-note strong {
  display: block;
  margin-bottom: 6px;
  font-family: var(--display);
  font-size: 24px;
  line-height: 1.1;
}

.asset-note p {
  margin: 0;
  color: var(--ash);
  font-size: 13px;
  line-height: 1.45;
}

.discipline-strip {
  overflow: hidden;
  border-bottom: 1px solid var(--rule);
  background: var(--ink);
}

.discipline-track {
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: space-around;
  gap: 30px;
  padding: 0 var(--gutter);
  white-space: nowrap;
  color: #eef1ef;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.discipline-track span::before {
  content: "";
  width: 5px;
  height: 5px;
  margin-right: 26px;
  display: inline-block;
  background: var(--red);
  vertical-align: 2px;
}

.course-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  border-top: 1px solid var(--rule);
  border-left: 1px solid var(--rule);
}

.course-card {
  min-height: 520px;
  grid-column: span 4;
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 0;
  border-right: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  background: var(--paper);
  text-decoration: none;
  transition: background var(--speed) ease, color var(--speed) ease;
}

.course-media {
  position: relative;
  aspect-ratio: 750 / 530;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  border-bottom: 1px solid var(--rule);
  background: #d5d9d4;
}

.course-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: filter var(--speed) ease, transform 500ms cubic-bezier(0.2, 0.7, 0.2, 1);
}

.course-media.has-photo::after {
  content: "OFFICIAL COURSE COVER";
  position: absolute;
  right: 10px;
  bottom: 10px;
  padding: 5px 7px;
  background: rgba(21, 21, 18, 0.82);
  color: white;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.course-media.needs-photo {
  align-items: center;
  justify-content: center;
  border: 1px dashed #959c97;
  background:
    linear-gradient(145deg, transparent 49.6%, rgba(77, 121, 116, 0.7) 49.8% 50.2%, transparent 50.4%),
    #d7dbd6;
  color: var(--ash);
  text-align: center;
}

.course-media.needs-photo span {
  padding: 20px;
  font-size: 12px;
}

.course-media.needs-photo b {
  display: block;
  margin-bottom: 5px;
  color: var(--red);
  font-size: 10px;
  letter-spacing: 0.1em;
}

.course-card-body {
  position: relative;
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 24px 28px 26px;
}

.course-card:nth-child(4),
.course-card:nth-child(5) {
  grid-column: span 6;
}

.course-card:hover {
  background: var(--ink);
  color: var(--bone);
}

.course-card:hover .course-media img {
  filter: saturate(0.86) contrast(1.03);
  transform: scale(1.025);
}

.course-card:hover .course-meta,
.course-card:hover .course-copy,
.course-card:hover .draft-label {
  color: #bdc4bf;
}

.course-card:hover .course-glyph { color: #f2f3f1; }

.course-index {
  margin-bottom: auto;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.course-glyph {
  position: absolute;
  top: 18px;
  right: 28px;
  color: var(--red);
  font-family: "Songti SC", "STSong", "SimSun", serif;
  font-size: 54px;
  font-weight: 700;
  line-height: 1;
  transition: color var(--speed) ease;
}

.course-card h3 {
  max-width: 85%;
  margin-top: 42px;
}

.course-copy {
  max-width: 42ch;
  margin-bottom: 26px;
  color: var(--ash);
  transition: color var(--speed) ease;
}

.course-meta {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding-top: 16px;
  border-top: 1px solid currentColor;
  color: var(--ash);
  font-size: 12px;
  font-weight: 700;
  transition: color var(--speed) ease;
  margin-top: 18px;
}

.draft-label {
  color: var(--red);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.method-grid,
.instructor-grid,
.bundle-grid,
.detail-grid,
.checkout-grid,
.dashboard-grid,
.player-grid,
.contact-grid,
.auth-grid,
.footer-grid {
  display: grid;
  gap: clamp(36px, 6vw, 88px);
}

.method-grid {
  grid-template-columns: 5fr 7fr;
}

.principles {
  border-top: 1px solid #3e4440;
}

.principle {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 22px;
  padding: 24px 0;
  border-bottom: 1px solid #3e4440;
}

.principle-number {
  color: #ef5a50;
  font-weight: 800;
}

.principle h3 {
  margin-bottom: 7px;
  font-family: var(--body);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0;
}

.principle p {
  margin: 0;
  color: #b7beb9;
  font-size: 15px;
}

.bundle-grid {
  grid-template-columns: 7fr 5fr;
  align-items: center;
}

.bundle-grid > * {
  min-width: 0;
}

.bundle-price {
  padding: 36px;
  border: 1px solid var(--rule);
  background: var(--paper);
}

.bundle-offer {
  border: 1px solid var(--rule);
  background: var(--paper);
}

.bundle-offer .bundle-price {
  border: 0;
  border-top: 1px solid var(--rule);
}

.bundle-visual {
  position: relative;
  aspect-ratio: 16 / 10;
  margin: 0;
  overflow: hidden;
  background: var(--ink);
}

.bundle-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% center;
}

.bundle-visual figcaption {
  position: absolute;
  right: 12px;
  bottom: 12px;
  padding: 5px 8px;
  background: rgba(21, 21, 18, 0.82);
  color: white;
  font-size: 10px;
}

.price-big {
  display: block;
  margin-bottom: 8px;
  font-family: var(--display);
  font-size: clamp(56px, 8vw, 96px);
  line-height: 0.9;
}

.save-note {
  margin-bottom: 30px;
  color: var(--success);
  font-weight: 700;
}

.check-list,
.plain-list,
.lesson-list,
.summary-list,
.policy-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.check-list li {
  position: relative;
  padding: 12px 0 12px 28px;
  border-top: 1px solid var(--rule);
}

.check-list li::before {
  content: "";
  position: absolute;
  top: 19px;
  left: 2px;
  width: 10px;
  height: 5px;
  border-bottom: 2px solid var(--success);
  border-left: 2px solid var(--success);
  transform: rotate(-45deg);
}

.instructor-grid {
  grid-template-columns: minmax(300px, 5fr) 7fr;
  align-items: center;
}

.portrait-placeholder {
  position: relative;
  aspect-ratio: 4 / 5;
  min-height: 440px;
  display: flex;
  align-items: flex-end;
  border: 1px dashed #717873;
  background:
    radial-gradient(circle at 50% 28%, rgba(255,255,255,.13) 0 9%, transparent 9.5%),
    linear-gradient(150deg, #333835, #171a18);
}

.portrait-placeholder.portrait-photo {
  display: block;
  margin: 0;
  overflow: hidden;
  border-style: solid;
  background: #dde1de;
}

.portrait-photo img {
  object-position: 50% center;
}

.portrait-photo .photo-status {
  background: rgba(21, 21, 18, 0.88);
  color: #bdc4bf;
}

.portrait-placeholder .asset-note {
  background: rgba(21, 21, 18, 0.92);
  color: var(--bone);
}

.portrait-placeholder .asset-note p {
  color: #b8bfb9;
}

.profile-facts {
  margin: 26px 0 30px;
  padding: 0;
  border-top: 1px solid #434a46;
  list-style: none;
}

.profile-facts li {
  position: relative;
  padding: 12px 0 12px 24px;
  border-bottom: 1px solid #434a46;
  color: #c9ceca;
}

.profile-facts li::before {
  content: "";
  position: absolute;
  top: 22px;
  left: 2px;
  width: 8px;
  height: 1px;
  background: #ef5a50;
}

.work-gallery,
.credential-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  align-items: start;
}

.work-gallery figure,
.credential-grid figure {
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--rule);
  background: var(--paper);
}

.work-gallery img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.work-gallery figure:nth-child(2) img {
  object-position: center;
}

.work-gallery figcaption,
.credential-grid figcaption {
  padding: 18px 20px;
  color: var(--ash);
  font-size: 13px;
}

.work-gallery figcaption span {
  display: block;
  margin-bottom: 4px;
  color: var(--red);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.1em;
}

.credential-grid img {
  width: 100%;
  height: clamp(240px, 25vw, 340px);
  padding: 18px;
  object-fit: contain;
  background: white;
}

.credential-grid figcaption strong,
.credential-grid figcaption span {
  display: block;
}

.credential-grid figcaption strong {
  color: var(--ink);
  font-size: 14px;
}

.credential-grid figcaption span {
  margin-top: 3px;
}

.featured-media {
  border-block: 1px solid #242825;
  background: var(--ink);
  color: white;
}

.featured-media .kicker { color: #ef5a50; }
.featured-media .lead { color: #bfc5c1; }

.featured-media-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: clamp(32px, 7vw, 96px);
  align-items: end;
  margin-bottom: clamp(40px, 6vw, 72px);
}

.featured-media-head h2 { max-width: 760px; }

.featured-media-head .text-link {
  color: white;
  white-space: nowrap;
}

.featured-media-head .text-link:hover { color: #ef5a50; }

.featured-media-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(20px, 3vw, 44px);
}

.featured-media-card {
  min-width: 0;
  border-top: 1px solid #464b47;
}

.featured-media-stage {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #161917;
}

.featured-media-stage::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(13,15,14,.04), rgba(13,15,14,.42));
}

.featured-media-stage img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(.78) contrast(1.07);
}

.featured-media-card:nth-child(2) .featured-media-stage img { object-position: center 28%; }

.featured-media-stage iframe {
  position: absolute;
  inset: 0;
  z-index: 3;
  width: 100%;
  height: 100%;
  border: 0;
  background: #000;
}

.featured-play {
  position: absolute;
  inset: 0;
  z-index: 2;
  width: 100%;
  padding: 22px;
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-rows: auto 1fr auto;
  align-items: start;
  border: 0;
  background: transparent;
  color: white;
  text-align: left;
}

.featured-number {
  font-family: var(--display);
  font-size: 22px;
  line-height: 1;
}

.featured-play-icon {
  grid-column: 1 / -1;
  align-self: center;
  justify-self: center;
  width: 68px;
  height: 68px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255,255,255,.72);
  background: rgba(13,15,14,.54);
  transition: background var(--speed) ease, border-color var(--speed) ease;
}

.featured-play:hover .featured-play-icon {
  border-color: var(--red);
  background: var(--red);
}

.featured-play-icon .icon { width: 28px; height: 28px; }

.featured-still-note {
  grid-column: 1 / -1;
  align-self: end;
  padding-left: 12px;
  border-left: 3px solid var(--red);
  font-size: 11px;
  font-weight: 700;
}

.featured-media-copy {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 6px 20px;
  padding: 22px 0 8px;
}

.featured-media-copy > span {
  color: #ef5a50;
  font-size: 12px;
  font-weight: 700;
}

.featured-media-copy h3 {
  grid-column: 1;
  margin: 0;
  font-size: clamp(25px, 2.8vw, 40px);
}

.featured-media-copy a {
  grid-column: 2;
  grid-row: 1 / 3;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #d7dcd8;
  font-size: 13px;
  font-weight: 700;
}

.featured-media-copy a:hover { color: white; }
.featured-media-copy .icon { width: 17px; height: 17px; }

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--rule);
}

.step {
  min-height: 260px;
  padding: 28px;
  border-right: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}

.step:first-child {
  border-left: 1px solid var(--rule);
}

.step-number {
  display: block;
  margin-bottom: 68px;
  color: var(--red);
  font-weight: 800;
}

.step p {
  margin: 0;
  color: var(--ash);
}

.page-hero {
  padding-block: clamp(64px, 9vw, 128px) clamp(52px, 7vw, 88px);
  border-bottom: 1px solid var(--rule);
}

.page-hero h1 {
  font-size: clamp(50px, 8vw, 104px);
}

.breadcrumbs {
  margin-bottom: 32px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--ash);
  font-size: 13px;
}

.breadcrumbs a:hover {
  color: var(--red);
}

.breadcrumbs a {
  min-height: 28px;
  display: inline-flex;
  align-items: center;
}

.filter-row {
  margin-bottom: 28px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
}

.filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chip {
  min-height: 44px;
  padding: 8px 15px;
  border: 1px solid var(--rule);
  background: transparent;
  color: var(--ash);
  font-size: 13px;
  font-weight: 700;
}

.chip[aria-pressed="true"],
.chip:hover {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--bone);
}

.detail-hero {
  padding-block: clamp(52px, 7vw, 92px);
}

.detail-grid {
  grid-template-columns: 7fr 5fr;
  align-items: start;
}

.detail-title h1 {
  font-size: clamp(52px, 7vw, 94px);
}

.detail-course-photo {
  position: relative;
  aspect-ratio: 750 / 530;
  margin: 0 0 30px;
  overflow: hidden;
  border: 1px solid var(--rule);
  background: #dfe3df;
}

.detail-course-photo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.detail-course-photo figcaption {
  position: absolute;
  right: 12px;
  bottom: 12px;
  padding: 6px 8px;
  background: rgba(21, 21, 18, 0.82);
  color: white;
  font-size: 10px;
}

.detail-course-photo.needs-photo {
  display: grid;
  place-items: center;
  border-style: dashed;
  background:
    linear-gradient(145deg, transparent 49.6%, rgba(185, 52, 43, 0.6) 49.8% 50.2%, transparent 50.4%),
    #e0e4e1;
  text-align: center;
}

.detail-course-photo.needs-photo div {
  max-width: 330px;
  padding: 24px;
}

.detail-course-photo.needs-photo strong {
  display: block;
  font-family: var(--display);
  font-size: 28px;
}

.detail-course-photo.needs-photo p {
  margin: 6px 0 0;
  color: var(--ash);
  font-size: 13px;
}

.tag-row {
  margin-bottom: 22px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag {
  padding: 5px 9px;
  border: 1px solid var(--rule);
  color: var(--ash);
  font-size: 11px;
  font-weight: 700;
}

.purchase-panel {
  position: sticky;
  top: 112px;
  padding: 32px;
  border-top: 4px solid var(--red);
  background: var(--paper);
  box-shadow: var(--shadow);
}

.purchase-panel .price-big {
  margin: 12px 0 20px;
  font-size: 66px;
}

.purchase-panel .button {
  width: 100%;
  margin-bottom: 10px;
}

.syllabus {
  border-top: 1px solid var(--rule);
}

.syllabus-row {
  display: grid;
  grid-template-columns: 72px 1fr auto;
  gap: 22px;
  align-items: center;
  padding: 23px 0;
  border-bottom: 1px solid var(--rule);
}

.lesson-number {
  color: var(--red);
  font-weight: 800;
}

.syllabus-row h3 {
  margin: 0 0 4px;
  font-family: var(--body);
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0;
}

.syllabus-row p {
  margin: 0;
  color: var(--ash);
  font-size: 14px;
}

.duration {
  color: var(--ash);
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.content-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 44px;
}

.content-block {
  padding-top: 20px;
  border-top: 1px solid var(--rule);
}

.content-block h3 {
  font-family: var(--body);
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0;
}

.plain-list li,
.policy-list li {
  position: relative;
  padding: 8px 0 8px 20px;
}

.plain-list li::before,
.policy-list li::before {
  content: "";
  position: absolute;
  top: 19px;
  left: 1px;
  width: 7px;
  height: 1px;
  background: var(--red);
}

.auth-grid {
  min-height: calc(100vh - 250px);
  grid-template-columns: 5fr 7fr;
  align-items: stretch;
}

.auth-aside {
  min-height: 640px;
  padding: clamp(38px, 6vw, 78px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: var(--ink);
  color: var(--bone);
}

.auth-aside h1 {
  font-size: clamp(48px, 6vw, 82px);
}

.auth-aside p {
  max-width: 46ch;
  color: #bbc2bd;
}

.auth-form-wrap {
  padding: clamp(46px, 7vw, 96px) var(--gutter);
  display: grid;
  align-content: center;
}

.form-card {
  width: min(100%, 520px);
  margin: 0 auto;
}

.form-card h2 {
  font-size: clamp(40px, 5vw, 60px);
}

.field {
  margin-bottom: 18px;
}

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

label,
.field-label {
  display: block;
  margin-bottom: 7px;
  font-size: 13px;
  font-weight: 700;
}

input,
textarea,
select {
  width: 100%;
  min-height: 50px;
  padding: 12px 14px;
  border: 1px solid #a5aca7;
  border-radius: 2px;
  background: var(--paper);
  color: var(--ink);
}

textarea {
  min-height: 140px;
  resize: vertical;
}

input:focus,
textarea:focus,
select:focus {
  border-color: var(--red);
  outline: 0;
  box-shadow: var(--focus);
}

input[aria-invalid="true"] {
  border-color: var(--error);
}

.field-hint,
.field-error {
  margin: 5px 0 0;
  font-size: 12px;
}

.field-hint { color: var(--ash); }
.field-error { color: var(--error); font-weight: 700; }

.checkbox-row {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 10px;
  align-items: start;
  margin: 18px 0;
}

.checkbox-row input {
  width: 18px;
  min-height: 18px;
  margin-top: 3px;
}

.form-submit {
  width: 100%;
}

.form-note {
  margin-top: 20px;
  color: var(--ash);
  font-size: 13px;
}

.alert {
  margin-bottom: 22px;
  padding: 15px 17px;
  border-left: 4px solid var(--brass);
  background: #ecefed;
  color: var(--ink);
  font-size: 13px;
}

.alert-error {
  border-left-color: var(--error);
  background: #f6e4e2;
  color: #731c17;
}

.alert-success {
  border-left-color: var(--success);
  background: #dfeae2;
  color: #214830;
}

.demo-access {
  margin-bottom: 22px;
  padding: 20px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 18px;
  align-items: center;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: white;
}

.demo-access strong,
.demo-access span {
  display: block;
}

.demo-access strong { font-size: 15px; }
.demo-access span { margin-top: 3px; color: #bfc5c1; font-size: 12px; }
.demo-access .button { white-space: nowrap; }

.auth-divider {
  margin: 22px 0;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 12px;
  align-items: center;
  color: var(--ash);
  font-size: 12px;
}

.auth-divider::before,
.auth-divider::after {
  content: "";
  height: 1px;
  background: var(--rule);
}

.checkout-grid {
  grid-template-columns: 7fr 5fr;
  align-items: start;
}

.checkout-section {
  margin-bottom: 32px;
  padding: 28px;
  border: 1px solid var(--rule);
  background: var(--paper);
}

.checkout-section h2 {
  font-family: var(--body);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0;
}

.order-summary {
  position: sticky;
  top: 112px;
  padding: 28px;
  background: var(--ink);
  color: var(--bone);
}

.summary-item,
.summary-total {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 16px 0;
  border-bottom: 1px solid #414642;
}

.summary-item span:last-child,
.summary-total strong:last-child {
  white-space: nowrap;
}

.summary-total {
  margin-top: 12px;
  border-bottom: 0;
  font-size: 18px;
}

.payment-placeholder {
  padding: 24px;
  border: 1px dashed #949b96;
  background: #f2f3f1;
}

.payment-placeholder strong {
  display: block;
  margin-bottom: 6px;
}

.dashboard-grid {
  grid-template-columns: 3fr 9fr;
  align-items: start;
}

.profile-card {
  padding: 28px;
  border-top: 4px solid var(--red);
  background: var(--paper);
}

.avatar {
  width: 70px;
  height: 70px;
  margin-bottom: 20px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--ink);
  color: var(--bone);
  font-family: var(--display);
  font-size: 26px;
}

.profile-card h2 {
  font-family: var(--body);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0;
}

.profile-links {
  margin-top: 26px;
  padding-top: 18px;
  border-top: 1px solid var(--rule);
}

.profile-links button {
  width: 100%;
  min-height: 44px;
  padding: 10px 0;
  border: 0;
  background: transparent;
  color: var(--ash);
  text-align: left;
}

.profile-links button:hover {
  color: var(--red);
}

.profile-links a {
  display: block;
  min-height: 44px;
  padding: 10px 0;
  color: var(--ink);
  font-weight: 700;
}

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

.admin-title-row,
.admin-panel-head,
.admin-search,
.admin-access-control,
.admin-access-control > div {
  display: flex;
  align-items: center;
}

.admin-title-row,
.admin-panel-head {
  justify-content: space-between;
  gap: 28px;
}

.admin-title-row .lead {
  max-width: 720px;
}

.admin-metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  margin-bottom: 32px;
  border: 1px solid var(--rule);
  background: var(--rule);
}

.admin-metrics article {
  min-height: 150px;
  padding: 24px;
  background: var(--paper);
}

.admin-metrics span,
.admin-metrics small {
  display: block;
  color: var(--ash);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.admin-metrics strong {
  display: block;
  margin: 12px 0 4px;
  font-family: var(--display);
  font-size: clamp(36px, 5vw, 58px);
  font-weight: 500;
  line-height: 1;
}

.admin-panel {
  margin-top: 24px;
  padding: 30px;
  border: 1px solid var(--rule);
  background: var(--paper);
}

.admin-panel-head {
  margin-bottom: 24px;
}

.admin-panel-head h2 {
  margin: 4px 0 0;
}

.admin-search {
  gap: 8px;
}

.admin-search input {
  width: min(340px, 42vw);
  min-height: 46px;
  border: 1px solid var(--rule);
  background: var(--bone);
}

.admin-table-wrap {
  overflow-x: auto;
  border-top: 2px solid var(--ink);
}

.admin-table {
  width: 100%;
  min-width: 980px;
  border-collapse: collapse;
  text-align: left;
}

.admin-table th,
.admin-table td {
  padding: 18px 14px;
  border-bottom: 1px solid var(--rule);
  vertical-align: top;
}

.admin-table th {
  color: var(--ash);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.admin-table td:first-child strong,
.admin-table td:first-child > span {
  display: block;
}

.admin-table td:first-child > span {
  margin-top: 3px;
  color: var(--ash);
  font-size: 12px;
}

.admin-badge {
  width: max-content;
  padding: 3px 7px;
  border: 1px solid var(--red);
  color: var(--red) !important;
  font-size: 9px !important;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.admin-course-tags {
  display: flex;
  max-width: 320px;
  flex-wrap: wrap;
  gap: 5px;
}

.admin-course-tags span {
  padding: 4px 7px;
  background: var(--bone);
  color: var(--ink);
  font-size: 11px;
}

.admin-course-tags em {
  color: var(--ash);
  font-size: 12px;
}

.admin-access-control {
  min-width: 280px;
  flex-direction: column;
  align-items: stretch;
  gap: 8px;
}

.admin-access-control select {
  min-height: 40px;
  border: 1px solid var(--rule);
  background: var(--bone);
}

.admin-access-control > div {
  gap: 6px;
}

.button-small {
  min-height: 36px;
  padding: 8px 12px;
  font-size: 11px;
}

.admin-loading {
  min-height: 180px;
  display: grid;
  place-items: center;
  color: var(--ash);
}

.content-totals {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  color: var(--ash);
  font-size: 12px;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.content-totals strong {
  color: var(--red);
  font-family: var(--display);
  font-size: 26px;
  font-weight: 500;
}

.storage-notice {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 18px;
  align-items: center;
  margin-bottom: 26px;
  padding: 18px 20px;
  border: 1px solid #323735;
  background: var(--ink);
  color: var(--bone);
}

.storage-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid var(--red);
  color: var(--red);
  font-family: var(--display);
  font-size: 23px;
}

.storage-notice p {
  max-width: 74ch;
  margin: 3px 0 0;
  color: #abb2ad;
  font-size: 12px;
}

.storage-state {
  padding: 6px 9px;
  border: 1px solid #616863;
  color: #c5cbc7;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  white-space: nowrap;
}

.content-course-list {
  border-top: 2px solid var(--ink);
}

.content-course {
  border-bottom: 1px solid var(--rule);
}

.content-course summary {
  min-height: 76px;
  padding: 14px 4px;
  display: grid;
  grid-template-columns: 50px 1fr auto auto;
  gap: 16px;
  align-items: center;
  cursor: pointer;
  list-style: none;
}

.content-course summary::-webkit-details-marker { display: none; }

.content-course summary::after {
  content: "+";
  grid-column: 4;
  color: var(--red);
  font-family: var(--display);
  font-size: 28px;
}

.content-course[open] summary::after { content: "−"; }

.content-course-number {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid var(--ink);
  font-family: var(--display);
  font-size: 23px;
}

.content-course summary strong,
.content-course summary small,
.preview-row strong,
.preview-row small,
.content-lesson-title strong,
.content-lesson-title small,
.media-slot-label,
.media-slot strong {
  display: block;
}

.content-course summary small,
.preview-row small,
.content-lesson-title small {
  margin-top: 3px;
  color: var(--ash);
  font-size: 11px;
}

.content-course-state {
  color: var(--red);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.content-course-body {
  padding: 0 0 24px 66px;
}

.preview-row {
  display: grid;
  grid-template-columns: minmax(230px, .8fr) minmax(440px, 1.2fr);
  gap: 20px;
  align-items: center;
  margin-bottom: 10px;
  padding: 16px;
  border-left: 3px solid var(--brass);
  background: #eceeea;
}

.content-lesson {
  display: grid;
  grid-template-columns: minmax(250px, .8fr) minmax(440px, 1.2fr);
  gap: 20px;
  padding: 16px 0;
  border-top: 1px solid var(--rule);
}

.content-lesson-title {
  display: grid;
  grid-template-columns: 32px 1fr;
  gap: 12px;
}

.content-lesson-title > span {
  color: var(--red);
  font-weight: 800;
}

.content-lesson-assets {
  display: grid;
  gap: 7px;
}

.media-slot {
  min-height: 52px;
  padding: 8px 10px 8px 14px;
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 12px;
  align-items: center;
  border: 1px dashed #a3aaa5;
  background: var(--paper);
}

.media-slot-label {
  color: var(--ash);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.media-slot strong { margin-top: 2px; font-size: 12px; }

.media-status {
  color: var(--red);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.media-slot.is-ready {
  border-style: solid;
  border-color: var(--success);
}

.media-slot.is-ready .media-status { color: var(--success); }

.admin-activity > div {
  display: grid;
  grid-template-columns: 10px 1fr auto;
  gap: 14px;
  align-items: start;
  padding: 14px 0;
  border-top: 1px solid var(--rule);
}

.admin-activity-mark {
  width: 8px;
  height: 8px;
  margin-top: 6px;
  border-radius: 50%;
  background: var(--red);
}

.admin-activity p,
.admin-activity span {
  margin: 0;
}

.admin-activity p span {
  display: block;
  margin-top: 3px;
  color: var(--ash);
  font-size: 12px;
}

.admin-activity time {
  color: var(--ash);
  font-size: 12px;
}

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

  .admin-title-row,
  .admin-panel-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .admin-search,
  .admin-search input {
    width: 100%;
  }

  .storage-notice,
  .preview-row,
  .content-lesson {
    grid-template-columns: 1fr;
  }

  .storage-state { width: max-content; }

  .content-course-body { padding-left: 0; }
}

@media (max-width: 560px) {
  .admin-panel {
    padding: 20px;
  }

  .admin-metrics {
    grid-template-columns: 1fr 1fr;
  }

  .admin-metrics article {
    min-height: 120px;
    padding: 18px;
  }

  .admin-search {
    align-items: stretch;
    flex-direction: column;
  }

  .content-course summary {
    grid-template-columns: 44px 1fr auto;
  }

  .content-course-state { display: none; }

  .content-course summary::after { grid-column: 3; }

  .media-slot {
    grid-template-columns: 1fr auto;
  }

  .media-status { grid-column: 1; }

  .media-slot .button { grid-column: 2; grid-row: 1 / 3; }
}

.library-list {
  border-top: 1px solid var(--rule);
}

.library-item {
  display: grid;
  grid-template-columns: 120px 1fr auto;
  gap: 24px;
  align-items: center;
  padding: 24px 0;
  border-bottom: 1px solid var(--rule);
}

.library-visual {
  aspect-ratio: 4 / 3;
  display: grid;
  place-items: center;
  background: var(--ink);
  color: var(--bone);
  font-family: var(--display);
  font-size: 28px;
}

.library-visual.has-image {
  overflow: hidden;
  background: #d7dcda;
}

.library-visual.has-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.library-item h3 {
  margin-bottom: 8px;
  font-family: var(--body);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0;
}

.progress-wrap {
  margin-top: 14px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: center;
}

.progress-track {
  height: 6px;
  overflow: hidden;
  background: var(--paper-deep);
}

.progress-bar {
  height: 100%;
  background: var(--red);
}

.progress-text {
  min-width: 40px;
  color: var(--ash);
  font-size: 12px;
  font-weight: 700;
  text-align: right;
}

.empty-state {
  padding: clamp(42px, 7vw, 86px);
  border: 1px dashed #9ea49f;
  text-align: center;
}

.empty-state h2 {
  font-size: 38px;
}

.empty-state p {
  max-width: 50ch;
  margin-inline: auto;
  color: var(--ash);
}

.player-page {
  background: #0d0f0e;
  color: var(--bone);
}

.player-topbar {
  min-height: 66px;
  padding: 10px var(--gutter);
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
  border-bottom: 1px solid #343936;
}

.player-topbar a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #c8ceca;
  text-decoration: none;
}

.player-grid {
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 0;
}

.video-column {
  min-width: 0;
  padding: clamp(18px, 4vw, 48px);
}

.video-stage {
  position: relative;
  aspect-ratio: 16 / 9;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px dashed #616863;
  background:
    linear-gradient(130deg, transparent 0 49.5%, rgba(185,52,43,.7) 49.6% 50%, transparent 50.1%),
    #171a18;
}

.video-stage::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(15, 15, 13, 0.36), rgba(15, 15, 13, 0.82));
}

.video-poster {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.74);
}

.video-request {
  position: relative;
  z-index: 2;
  max-width: 420px;
  padding: 24px;
  text-align: center;
}

.video-request strong {
  display: block;
  margin-bottom: 8px;
  font-family: var(--display);
  font-size: 28px;
}

.video-request p {
  color: #a6ada8;
  font-size: 13px;
}

.play-button {
  width: 66px;
  height: 66px;
  margin: 0 auto 18px;
  display: grid;
  place-items: center;
  border: 1px solid #737a75;
  border-radius: 50%;
  background: var(--red);
  color: white;
}

.play-button:hover {
  background: var(--red-dark);
}

.play-button svg {
  width: 25px;
  height: 25px;
}

.video-progress {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 3;
  height: 5px;
  background: #363b38;
}

.video-progress span {
  display: block;
  width: var(--watch-progress, 0%);
  height: 100%;
  background: var(--red);
  transition: width 500ms linear;
}

.lesson-info {
  max-width: 820px;
  padding-top: 28px;
}

.lesson-info h1 {
  margin-bottom: 12px;
  font-size: clamp(36px, 5vw, 62px);
}

.lesson-sidebar {
  min-height: calc(100vh - 66px);
  border-left: 1px solid #343936;
  background: var(--ink);
}

.sidebar-head {
  padding: 24px;
  border-bottom: 1px solid #343936;
}

.sidebar-head h2 {
  margin: 0 0 10px;
  font-family: var(--body);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0;
}

.lesson-item {
  width: 100%;
  min-height: 78px;
  padding: 16px 20px;
  display: grid;
  grid-template-columns: 28px 1fr auto;
  gap: 12px;
  align-items: center;
  border: 0;
  border-bottom: 1px solid #303431;
  background: transparent;
  color: #cbd1cd;
  text-align: left;
}

.lesson-item:hover,
.lesson-item[aria-current="true"] {
  background: #202321;
}

.lesson-item[aria-current="true"] {
  box-shadow: inset 3px 0 0 var(--red);
}

.lesson-item:disabled {
  cursor: not-allowed;
  color: #737a75;
}

.lesson-state {
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border: 1px solid #5a615c;
  border-radius: 50%;
  font-size: 10px;
}

.lesson-name {
  line-height: 1.25;
}

.lesson-name small {
  display: block;
  margin-top: 4px;
  color: #8d948f;
}

.contact-grid {
  grid-template-columns: 5fr 7fr;
}

.contact-card {
  padding: 28px;
  border: 1px solid var(--rule);
  background: var(--paper);
}

.contact-card + .contact-card {
  margin-top: 14px;
}

.contact-card h3 {
  font-family: var(--body);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0;
}

.faq-list {
  border-top: 1px solid var(--rule);
}

.faq-item {
  border-bottom: 1px solid var(--rule);
}

.faq-question {
  width: 100%;
  min-height: 72px;
  padding: 20px 0;
  display: flex;
  justify-content: space-between;
  gap: 22px;
  align-items: center;
  border: 0;
  background: transparent;
  color: var(--ink);
  font-weight: 700;
  text-align: left;
}

.faq-symbol {
  width: 26px;
  height: 26px;
  position: relative;
  flex: 0 0 auto;
}

.faq-symbol::before,
.faq-symbol::after {
  content: "";
  position: absolute;
  top: 12px;
  left: 4px;
  width: 18px;
  height: 1px;
  background: currentColor;
  transition: transform var(--speed) ease;
}

.faq-symbol::after { transform: rotate(90deg); }
.faq-question[aria-expanded="true"] .faq-symbol::after { transform: rotate(0); }

.faq-answer {
  max-width: 74ch;
  padding: 0 48px 22px 0;
  color: var(--ash);
}

.policy-layout {
  display: grid;
  grid-template-columns: 260px minmax(0, 760px);
  gap: clamp(36px, 7vw, 96px);
  align-items: start;
}

.policy-nav {
  position: sticky;
  top: 112px;
  padding-top: 14px;
  border-top: 1px solid var(--ink);
}

.policy-nav a {
  min-height: 44px;
  display: flex;
  align-items: center;
  color: var(--ash);
  font-size: 13px;
}

.policy-nav a:hover {
  color: var(--red);
}

.policy-content h2 {
  margin-top: 54px;
  font-family: var(--body);
  font-size: 23px;
  font-weight: 700;
  letter-spacing: 0;
}

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

.legal-draft {
  margin-bottom: 34px;
  padding: 18px;
  border-left: 4px solid var(--brass);
  background: #e8ebe9;
}

.success-card {
  width: min(100%, 840px);
  margin: 0 auto;
  padding: clamp(38px, 7vw, 84px);
  border-top: 5px solid var(--success);
  background: var(--paper);
  text-align: center;
  box-shadow: var(--shadow);
}

.success-mark {
  width: 72px;
  height: 72px;
  margin: 0 auto 26px;
  display: grid;
  place-items: center;
  border: 1px solid var(--success);
  border-radius: 50%;
  color: var(--success);
}

.success-mark svg {
  width: 34px;
  height: 34px;
}

.success-card h1 {
  font-size: clamp(48px, 7vw, 86px);
}

.site-footer {
  padding: 66px var(--gutter) 28px;
  background: var(--ink);
  color: var(--bone);
}

.site-footer .brand-logo {
  filter: brightness(0) invert(1);
  opacity: 0.92;
}

.footer-grid {
  max-width: var(--max);
  margin: 0 auto 56px;
  grid-template-columns: 5fr 2fr 2fr 3fr;
  gap: 42px;
}

.footer-brand p {
  max-width: 34ch;
  color: #a6ada8;
}

.footer-title {
  margin-bottom: 14px;
  color: #89908b;
  font-size: 12px;
  font-weight: 700;
}

.footer-links {
  flex-direction: column;
  align-items: flex-start;
  gap: 5px;
}

.footer-links a,
.footer-links button {
  min-height: 44px;
  padding: 6px 0;
  border: 0;
  background: transparent;
  color: #cdd3cf;
  font-size: 14px;
  text-decoration: none;
}

.footer-links a:hover,
.footer-links button:hover {
  color: white;
}

.footer-bottom {
  max-width: var(--max);
  margin: 0 auto;
  padding-top: 22px;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  border-top: 1px solid #363b38;
  color: #89908b;
  font-size: 12px;
}

.toast-region {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 100;
  display: grid;
  gap: 10px;
  pointer-events: none;
}

.toast {
  width: min(360px, calc(100vw - 36px));
  padding: 15px 18px;
  border-left: 4px solid var(--red);
  background: var(--ink);
  color: var(--bone);
  box-shadow: var(--shadow);
  animation: toast-in 240ms ease both;
}

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

.noscript {
  padding: 20px;
  background: var(--error);
  color: white;
  text-align: center;
}

@media (max-width: 1020px) {
  .nav-wrap {
    grid-template-columns: 1fr auto;
  }

  .nav-links {
    display: none;
  }

  .menu-button {
    display: inline-grid;
  }

  .mobile-panel {
    position: fixed;
    inset: 114px 0 0;
    z-index: 35;
    padding: 24px var(--gutter) 40px;
    background: var(--bone);
    overflow-y: auto;
  }

  .mobile-panel.is-open {
    display: block;
  }

  .mobile-panel a {
    min-height: 58px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid var(--rule);
    font-family: var(--display);
    font-size: 30px;
    text-decoration: none;
  }

  .bundle-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .detail-grid,
  .checkout-grid,
  .contact-grid {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
  }

  .hero-copy {
    grid-column: 6 / -1;
  }

  .course-card,
  .course-card:nth-child(4),
  .course-card:nth-child(5) {
    grid-column: span 6;
  }

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

  .featured-media-head {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .profile-card {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 20px;
    align-items: center;
  }

  .profile-card .profile-links {
    grid-column: 1 / -1;
  }

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

  .lesson-sidebar {
    min-height: 0;
    border-top: 1px solid #343936;
    border-left: 0;
  }

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

  .footer-brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 760px) {
  :root {
    --gutter: 20px;
  }

  .prototype-bar {
    min-height: 42px;
    font-size: 11px;
  }

  .nav-wrap {
    min-height: 68px;
  }

  .mobile-panel {
    inset-block-start: 110px;
  }

  .nav-actions .account-button {
    display: none;
  }

  .hero {
    min-height: 0;
    display: flex;
    flex-direction: column;
  }

  .method-grid,
  .instructor-grid,
  .bundle-grid,
  .detail-grid,
  .checkout-grid,
  .contact-grid,
  .auth-grid,
  .content-columns,
  .policy-layout,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .hero-artwork {
    position: relative;
    order: 1;
    min-height: 390px;
    aspect-ratio: 4 / 3;
  }

  .hero-artwork::after {
    background: linear-gradient(180deg, rgba(18, 24, 21, 0) 60%, rgba(18, 24, 21, 0.34) 100%);
  }

  .hero-artwork img {
    object-position: 34% center;
  }

  .hero-photo-note {
    right: var(--gutter);
    bottom: 16px;
    left: var(--gutter);
    width: fit-content;
  }

  .hero-overlay {
    order: 2;
    min-height: 0;
    display: block;
    padding: 0;
  }

  .hero-copy {
    padding: 46px var(--gutter) 54px;
    border-top: 0;
    background: var(--bone);
    box-shadow: none;
    backdrop-filter: none;
  }

  .asset-frame {
    min-height: 480px;
  }

  .portrait-placeholder {
    width: 100%;
    min-height: 0;
  }

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

  .hero-facts li,
  .hero-facts li + li {
    padding: 14px 0;
    border-bottom: 1px solid var(--rule);
    border-left: 0;
  }

  .course-card,
  .course-card:nth-child(4),
  .course-card:nth-child(5) {
    min-height: 330px;
    grid-column: 1 / -1;
  }

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

  .step,
  .step:first-child {
    min-height: 0;
    border-left: 1px solid var(--rule);
  }

  .step-number {
    margin-bottom: 38px;
  }

  .purchase-panel,
  .order-summary,
  .policy-nav {
    position: static;
  }

  .syllabus-row {
    grid-template-columns: 48px 1fr;
  }

  .duration {
    grid-column: 2;
  }

  .auth-aside {
    min-height: 420px;
  }

  .field-row {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .demo-access {
    grid-template-columns: 1fr;
  }

  .library-item {
    grid-template-columns: 88px 1fr;
  }

  .library-item .button {
    grid-column: 1 / -1;
  }

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

  .video-column {
    padding: 18px;
  }

  .video-request p {
    display: none;
  }

  .player-topbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .footer-bottom {
    flex-direction: column;
  }

  .discipline-track {
    width: 100%;
    max-width: 100vw;
    justify-content: flex-start;
    overflow-x: auto;
    contain: inline-size;
  }

  .work-gallery,
  .credential-grid {
    grid-template-columns: 1fr;
  }

  .featured-media-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .featured-media-copy {
    grid-template-columns: 1fr;
  }

  .featured-media-copy a {
    grid-column: 1;
    grid-row: auto;
  }

  .credential-grid img {
    height: 260px;
  }
}

@media (max-width: 420px) {
  h1 { font-size: 46px; }
  h2 { font-size: 36px; }
  .brand-logo { width: 136px; }
  .hero-artwork { min-height: 340px; }
  .asset-frame { min-height: 420px; }
  .purchase-panel,
  .checkout-section,
  .order-summary { padding: 22px; }

  .bundle-offer .button {
    width: 100%;
    padding-inline: 12px;
  }
}

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

@media print {
  .prototype-bar,
  .site-header,
  .site-footer,
  .button,
  .toast-region {
    display: none !important;
  }

  body { background: white; }
  .page { animation: none; }
}
