
@font-face {
  font-family: "Shabnam";
  src: url("assets/fonts/shabnam-400.woff") format("woff");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Shabnam";
  src: url("assets/fonts/shabnam-700.woff") format("woff");
  font-weight: 700;
  font-display: swap;
}

:root {
  color-scheme: light;
  --ink: #111111;
  --night: #0a0a0a;
  --paper: #f7f7f5;
  --white: #fafafa;
  --muted: #565654;
  --line: #dededa;
  --dark-line: #303030;
  --silver: #b7b7b7;
  --header-height: 76px;
  --class-strip-height: 58px;
  --max-width: 1280px;
  --gutter: clamp(24px, 5.5vw, 88px);
  font-family: "Shabnam", Tahoma, Arial, sans-serif;
  font-size: 16px;
  color: var(--ink);
  background: var(--paper);
  scroll-behavior: smooth;
  --section-context-height: 42px;
  scroll-padding-top: calc(var(--header-height) + var(--section-context-height) + 20px);
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; min-width: 280px; line-height: 1.8; }
body:has(dialog[open]) { overflow: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
h1, h2, h3, p { margin: 0; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid currentColor; outline-offset: 5px; }
.skip {
  position: fixed;
  inset-block-start: 10px;
  inset-inline-start: 10px;
  z-index: 20;
  padding: 8px 14px;
  color: var(--ink);
  background: var(--white);
  transform: translateY(-180%);
}
.skip:focus { transform: none; }
.shell { width: min(calc(100% - var(--gutter) * 2), var(--max-width)); margin-inline: auto; }

.site-header {
  position: sticky;
  inset-block-start: 0;
  z-index: 5;
  color: var(--white);
  background: rgb(10 10 10 / 96%);
  border-block-end: 1px solid #252525;
  backdrop-filter: blur(14px);
}
.section-context {
  position: absolute;
  z-index: -1;
  inset: calc(100% + 1px) 0 auto;
  visibility: hidden;
  color: #242424;
  background: #f7f7f5;
  border-block-end: 1px solid #d5d5d0;
  box-shadow: 0 4px 12px #0001;
}
.section-context.is-visible { visibility: visible; }
.section-context > .shell {
  display: flex;
  align-items: center;
  min-height: var(--section-context-height);
}
.section-context span {
  padding-inline-start: 10px;
  border-inline-start: 2px solid #666;
  font-size: .94rem;
  font-weight: 700;
  line-height: 1.3;
}
.header-layout {
  min-height: var(--header-height);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  width: fit-content;
}
.brand img { flex: 0 0 auto; border-radius: 50%; }
.brand span { display: grid; gap: 2px; }
.brand strong { font-size: 1.02rem; line-height: 1.4; }
.brand small {
  color: #b9b9b9;
  font: 700 0.61rem/1.35 "Shabnam", Arial, sans-serif;
  letter-spacing: 0.085em;
}
.navigation { display: flex; align-items: center; gap: clamp(11px, 1.38vw, 23px); }
.nav-item {
  position: relative;
  padding-block: 11px;
  color: #bcbcbc;
  font-size: .9rem;
  font-weight: 400;
  white-space: nowrap;
  transition: color 180ms ease;
}
.nav-item:hover, .nav-item[aria-current], .nav-group[open] > summary { color: var(--white); }
.nav-item[aria-current] { text-decoration: underline; text-underline-offset: 7px; }
.nav-group { position: relative; }
.nav-group > summary { gap: 7px; }
.nav-group > summary::after {
  width: 7px;
  height: 7px;
  border: solid currentColor;
  border-width: 0 1px 1px 0;
  content: "";
  color: inherit;
  transform: translateY(-2px) rotate(45deg);
  transition: transform 180ms ease;
}
.nav-group[open] > summary::after { content: ""; transform: translateY(2px) rotate(225deg); }
.nav-panel {
  position: absolute;
  inset-block-start: 100%;
  inset-inline-start: -10px;
  display: grid;
  min-width: 184px;
  border: 1px solid #393939;
  border-radius: 7px;
  padding: 6px;
  background: #171717;
  box-shadow: 0 14px 28px #0005;
}
.nav-panel a {
  display: block;
  padding: 6px 12px;
  border-radius: 4px;
  color: #dfdfdf;
  font-size: .91rem;
  white-space: nowrap;
}
.nav-panel a:hover, .nav-panel a:focus-visible { background: #303030; color: var(--white); }
.nav-panel .nav-overview { font-weight: 700; }
.header-contact { justify-self: end; white-space: nowrap; }
.menu-toggle { display: none; }

.button {
  display: inline-flex;
  min-height: 50px;
  justify-content: center;
  align-items: center;
  padding: 8px 21px;
  border: 1px solid transparent;
  border-radius: 6px;
  font-size: .95rem;
  font-weight: 700;
  line-height: 1.5;
  text-align: center;
  transition: background-color 200ms ease, color 200ms ease, border-color 200ms ease;
}
.button-outline { min-height: 44px; color: var(--white); border-color: #505050; font-size: .87rem; }
.button-outline:hover { background: var(--white); color: var(--ink); border-color: var(--white); }
.text-link { padding-block: 5px; text-underline-offset: 6px; }
.text-link:hover { text-decoration: underline; }

.hero {
  position: relative;
  isolation: isolate;
  overflow: clip;
  color: var(--white);
  background: var(--night);
}
.hero-visual {
  position: absolute;
  z-index: -1;
  inset: 0 auto 0 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52%;
  padding: 14px 0;
}
.hero-visual img {
  width: auto;
  height: auto;
  max-width: 93%;
  max-height: 100%;
  object-fit: contain;
  mask-image: linear-gradient(90deg, transparent, #000 11%, #000 85%, transparent),
              linear-gradient(180deg, transparent, #000 5%, #000 84%, transparent);
  mask-composite: intersect;
}
.hero-layout {
  display: grid;
  align-items: center;
  min-height: min(620px, calc(100vh - var(--header-height) - var(--class-strip-height) - 10px));
  min-height: min(620px, calc(100svh - var(--header-height) - var(--class-strip-height) - 10px));
  padding-block: clamp(24px, 4vh, 48px);
}
.hero-copy {
  width: min(54%, 650px);
  text-align: center;
  container-type: inline-size;
  animation: hero-in 680ms ease-out both;
}
.hero h1 {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(7px, 2.25cqi, 15px);
  font-size: clamp(1.25rem, 9.35cqi, 3.6rem);
  line-height: 1.3;
}
.hero h1 span { white-space: nowrap; }
.hero h1 em { color: #c4c4c4; font-style: normal; }
.hero h1::before,
.hero h1::after {
  flex: 0 1 clamp(10px, 6cqi, 37px);
  height: 1px;
  content: "";
}
.hero h1::before { background: linear-gradient(90deg, #929292, transparent); }
.hero h1::after { background: linear-gradient(270deg, #929292, transparent); }
.hero-intro {
  margin-block-start: 14px;
  color: #cbcbcb;
  font-size: clamp(.7rem, 2.95cqi, 1rem);
  white-space: nowrap;
  line-height: 1.8;
}
.hero-actions { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 20px; margin-block-start: 22px; }
.hero-actions .text-link { color: #dedede; font-size: .95rem; }
@keyframes hero-in {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}

.class-strip { color: #dfdfdf; border-block: 1px solid #2e2e2e; background: #141414; }
.class-strip-inner {
  min-height: var(--class-strip-height);
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 30px;
}
.class-strip p { font-size: .89rem; }
.class-strip strong { color: var(--white); font-weight: 700; }
.class-strip p + p { border-inline-start: 1px solid #555; padding-inline-start: 30px; }

.section { padding-block: clamp(68px, 8.6vw, 126px); }
.section-heading { margin-block-end: 32px; }
.section h2, .contact h2 {
  font-size: clamp(2.1rem, 4.4vw, 4.15rem);
  line-height: 1.48;
}
.section-heading > p, .section-heading > .section-copy { color: var(--muted); margin-block-start: 7px; }
.section-copy { max-width: 76ch; color: var(--muted); line-height: 1.95; }
.section-copy > p + p { margin-block-start: 12px; }
.section-copy strong { color: var(--ink); }
.source-link { text-decoration: underline; text-underline-offset: 4px; white-space: normal; }
.split-section {
  display: grid;
  grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
  align-items: start;
  gap: clamp(24px, 6vw, 92px);
}
.split-section p, .course-intro p { color: var(--muted); line-height: 1.95; }
.split-section .button, .split-section .path-action { display: inline-flex; margin-block-start: 17px; }
.about { align-items: center; }
.paths { border-block-start: 1px solid var(--line); padding-block-start: clamp(52px, 6vw, 84px); }
.course-row {
  display: grid;
  grid-template-columns: minmax(0, .76fr) minmax(0, 1.24fr);
  gap: clamp(22px, 4vw, 64px);
  align-items: start;
  padding-block: 28px;
  border-block-start: 1px solid var(--line);
}
.course-row:last-child { padding-block-end: 0; }
.course-intro h3 { font-size: clamp(1.35rem, 2.45vw, 2rem); line-height: 1.55; }
.course-intro .section-copy { margin-block-start: 10px; }
.course-intro { margin-block-end: 8px; }
.course-carousel + .course-carousel { margin-block-start: clamp(24px, 4vw, 55px); }
.course-carousel { grid-template-columns: minmax(0, 1fr); gap: 16px; }
.lesson-stage { position: relative; width: min(100%, 1150px); justify-self: center; }
.lesson-viewport { width: min(calc(100% - 112px), 1030px); margin-inline: auto; overflow: hidden; }
.lesson-controls { display: contents; }
.lesson-arrow {
  position: absolute;
  inset-block-start: 45%;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 49px;
  height: 49px;
  padding: 0;
  transform: translateY(-50%);
  border: 1px solid #222;
  border-radius: 50%;
  color: #fff;
  background: #171717;
  box-shadow: 0 4px 14px #0002;
  transition: background-color 180ms ease, box-shadow 180ms ease;
}
.lesson-prev { inset-inline-start: 0; }
.lesson-next { inset-inline-end: 0; }
.lesson-arrow::before {
  width: 9px;
  height: 9px;
  border-top: 1.5px solid currentColor;
  border-right: 1.5px solid currentColor;
  content: "";
}
.lesson-prev::before { transform: translateX(-2px) rotate(45deg); }
.lesson-next::before { transform: translateX(2px) rotate(225deg); }
.lesson-arrow:enabled:hover { background: #383838; box-shadow: 0 6px 19px #0003; }
.lesson-arrow:disabled { opacity: .31; cursor: default; box-shadow: none; }
.lesson-track {
  --card-gap: clamp(13px, 2vw, 25px);
  display: flex;
  width: 100%;
  gap: var(--card-gap);
  direction: ltr;
  flex-direction: row-reverse;
  padding-block: 14px 12px;
  transform: translate3d(0, 0, 0);
  transition: transform 420ms cubic-bezier(.22, .61, .36, 1);
  will-change: transform;
}
.lesson-track.is-moving { pointer-events: none; }
.lesson-card {
  --paper-card: #fcfcfb;
  --art-pale: #f9f9f7;
  --art-dark: #e9e9e5;
  --art-border: #dededa;
  flex: 0 0 calc((100% - 2 * var(--card-gap)) / 3);
  direction: rtl;
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 480px;
  border: 1px solid #dcdcd7;
  border-radius: 17px;
  color: var(--ink);
  background: var(--paper-card);
  scroll-snap-align: center;
  transition: background-color 200ms ease, color 200ms ease, transform 220ms ease, border-color 200ms ease;
}
.lesson-card.is-current, .lesson-track:not(.carousel-ready) .lesson-card:first-of-type {
  --paper-card: #141414;
  --art-pale: #353535;
  --art-dark: #222222;
  --art-border: #434343;
  transform: translateY(-4px);
  border-color: #141414;
  color: var(--white);
}
.lesson-art {
  position: relative;
  display: grid;
  flex: 0 0 auto;
  aspect-ratio: 16 / 9;
  place-items: center;
  overflow: hidden;
  border: 1px solid var(--art-border);
  border-radius: 11px;
  background: radial-gradient(ellipse at center, var(--art-pale), var(--art-dark));
}
.lesson-card-copy { display: flex; flex: 1; flex-direction: column; padding: 20px 19px 17px; }
.lesson-card h4 { margin: 0 0 6px; font-size: clamp(1.95rem, 3.2vw, 2.55rem); line-height: 1.35; }
.lesson-lead { font-weight: 700; font-size: 1rem; line-height: 1.7; }
.lesson-teaser { margin-block: 8px 18px; color: var(--muted); line-height: 1.83; }
.lesson-card.is-current .lesson-teaser, .lesson-track:not(.carousel-ready) .lesson-card:first-of-type .lesson-teaser { color: #d3d3d3; }
.lesson-link {
  display: inline-flex;
  align-self: flex-start;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  margin-block-start: auto;
  padding-inline: 16px;
  border: 1px solid #a6a6a1;
  border-radius: 6px;
  color: inherit;
  font-size: .92rem;
  font-weight: 700;
  transition: background-color 180ms ease, color 180ms ease, border-color 180ms ease;
}
.card-link { display: flex; flex: 1; flex-direction: column; min-width: 0; border-radius: inherit; }
.lesson-card > .card-link { padding: 9px; }
.card-link:focus-visible { outline-offset: -3px; }
.card-link:hover .lesson-link, .card-link:focus-visible .lesson-link { border-color: var(--ink); background: var(--ink); color: var(--white); }
.lesson-card.is-current .lesson-link { border-color: var(--white); background: var(--white); color: var(--ink); }
.lesson-card.is-current .card-link:hover .lesson-link, .lesson-card.is-current .card-link:focus-visible .lesson-link { border-color: #d6d6d6; background: #d6d6d6; }

.lesson-detail {
  display: none;
  grid-template-columns: minmax(0, .6fr) minmax(0, 1.4fr);
  gap: clamp(14px, 4vw, 52px);
  padding: clamp(18px, 4vw, 44px);
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #fcfcfb;
  scroll-margin-block-start: 10px;
}
.lesson-detail:target { display: grid; }
.lesson-detail h4 { margin: 0; font-size: clamp(1.4rem, 2.7vw, 2rem); line-height: 1.5; }
.lesson-detail-copy p { color: var(--muted); line-height: 1.95; }
.lesson-detail-copy p + p { margin-block-start: 10px; }
.lesson-detail-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin-block-start: 18px; }
@media (max-width: 760px) {
  .lesson-viewport { width: calc(100% - 84px); }
  .lesson-track { --card-gap: 0px; }
  .lesson-card { flex-basis: 100%; }
  .lesson-arrow { width: 42px; height: 42px; }
  .lesson-card { min-height: 440px; }
  .lesson-card-copy { padding: 15px 15px 14px; }
  .lesson-detail { grid-template-columns: minmax(0, 1fr); }
}

.skill-row { grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); padding-block: clamp(27px, 4vw, 50px); }
.skill-row > .lesson-detail { grid-column: 1 / -1; }
.skill-card { min-height: 0; }
.skill-card .lesson-card-copy { padding: clamp(16px, 2.7vw, 30px); }
.path-action { width: fit-content; color: var(--ink); font-size: .9rem; font-weight: 700; text-decoration: underline; text-underline-offset: 5px; }
.path-action:hover { color: #5a5a58; }
.consulting { background: #ededeb; }

.approach {
  color: var(--white);
  background: radial-gradient(ellipse at 86% 16%, #272727, transparent 56%), #101010;
}
.approach-layout {
  display: grid;
  grid-template-columns: 1fr minmax(0, .95fr);
  align-items: center;
  gap: clamp(32px, 7vw, 104px);
}
.approach-label {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-block-end: 15px;
  color: #cecece;
  font-weight: 700;
}
.approach-label::before { width: 21px; height: 1px; background: #aaa; content: ""; }
.approach-copy { container-type: inline-size; }
.approach h2 {
  font-size: clamp(2rem, 4.55vw, 4.35rem);
  font-size: clamp(2rem, 10.85cqi, 4.35rem);
  line-height: 1.26;
}
.approach h2 span { display: block; color: #c1c1c1; }
.approach-intro {
  max-width: 535px;
  margin-block-start: 20px;
  color: #dedede;
  font-size: clamp(1.02rem, 1.55vw, 1.22rem);
  line-height: 1.95;
}
.approach-intro strong { color: var(--white); }
.approach-copy .button { margin-block-start: 22px; }
.approach-benefits {
  display: grid;
  padding: clamp(20px, 3.8vw, 42px);
  border: 1px solid #444;
  border-radius: 15px;
  background: #191919;
  box-shadow: 0 18px 55px #0003;
}
.approach-benefits > div {
  padding-block: 17px;
  border-block-end: 1px solid #414141;
}
.approach-benefits > div:first-child { padding-block-start: 0; }
.approach-benefits > div:last-child { padding-block-end: 0; border-block-end: 0; }
.approach-benefits h3 { margin-block-end: 6px; font-size: clamp(1.075rem, 1.8vw, 1.42rem); }
.approach-benefits p { color: #cecece; line-height: 1.85; }
.instructors { border-block-end: 1px solid var(--line); }

.faq-layout { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(24px, 7vw, 100px); }
.faq-list { border-block-start: 1px solid var(--line); }
.faq-list details { border-block-end: 1px solid var(--line); }
summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  cursor: pointer;
  list-style: none;
  padding-block: 16px;
  font-weight: 700;
}
summary::-webkit-details-marker { display: none; }
summary::after {
  content: "+";
  font: 400 1.5rem/1 Arial, sans-serif;
  flex: 0 0 auto;
  color: #6b6b66;
}
details[open] > summary::after { content: "−"; }
.faq-list details > p { color: var(--muted); padding-block: 0 18px; padding-inline-end: 28px; }

.contact { padding-block: clamp(48px, 6vw, 76px); color: var(--white); background: #111; }
.contact-layout { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 10px 26px; }
.contact-layout p { color: #c3c3c3; }
.contact .contact-note { grid-column: 1 / -1; font-size: .875rem; color: #aaa; }
.footer { padding-block: 28px; color: #eee; background: var(--night); border-block-start: 1px solid var(--dark-line); }
.footer-layout { display: flex; align-items: center; justify-content: space-between; gap: 22px; }
.footer .text-link { color: #c2c2c2; font-size: .88rem; }

.lesson-art img, .article-art img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.article-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(12px, 2.2vw, 26px); }
.article-card { overflow: hidden; display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 12px; background: #fcfcfb; }
.article-art { position: relative; display: grid; place-items: center; aspect-ratio: 16 / 9; overflow: hidden; background: radial-gradient(ellipse at center, #fafaf8, #e8e8e4); }
.article-copy { display: flex; flex: 1; align-items: flex-start; flex-direction: column; gap: 10px; padding: clamp(18px, 2.5vw, 30px); }
.article-copy h3 { font-size: clamp(1.16rem, 2vw, 1.5rem); line-height: 1.7; }
.article-copy p { color: var(--muted); }
.article-copy .path-action { margin-block-start: auto; }
.article-detail { margin-block-start: 16px; }
.article-detail:target { grid-template-columns: minmax(0, 1fr); gap: 20px; }
.article-detail > h4, .article-detail .lesson-detail-actions {
  width: min(100%, 780px);
  margin-inline: auto;
}
.article-prose { max-inline-size: 780px; margin-inline: auto; line-height: 2; }
.article-prose p + p { margin-block-start: 13px; }
.article-reader-intro {
  padding-block-end: 17px;
  margin-block-end: 19px;
  border-block-end: 1px solid var(--line);
}
.article-reader-intro .article-reader-deck { color: var(--night); font-weight: 700; font-size: 1.08rem; }
.article-reader-intro .article-reader-time { color: var(--muted); font-size: .88rem; margin-block-start: 6px; }
.article-prose h3, .article-prose h4 { color: var(--night); line-height: 1.65; }
.article-prose h3 {
  margin-block: 1.45em .35em;
  font-size: clamp(1.17rem, 3vw, 1.45rem);
}
.article-prose h4 {
  margin-block: 1.05em .26em;
  font-size: 1.05rem;
}
.article-citation {
  color: var(--primary);
  font-size: .88em;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
  white-space: nowrap;
}
.article-references {
  margin-block-start: 28px;
  padding: clamp(16px, 2.8vw, 24px);
  background: var(--surface-blue);
  border: 1px solid var(--line);
  border-radius: 11px;
}
.article-references h3 { margin-block-start: 0; }
.article-references ol { margin-block: 10px 0; padding-inline-start: 24px; list-style-type: persian; }
.article-references li + li { margin-block-start: 8px; }
.article-references a {
  display: block;
  color: var(--primary);
  font-size: .92rem;
  line-height: 1.65;
  overflow-wrap: anywhere;
}
.article-references a:hover, .article-references a:focus-visible { text-decoration: underline; }
.articles { border-block-end: 1px solid var(--line); }
.contact-channels { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-block: 25px 10px; }
.contact-channels > div { padding: 14px 16px; border: 1px solid #444; border-radius: 8px; background: #1a1a1a; }
.contact-channels dt { font-weight: 700; }
.contact-channels dd { margin: 3px 0 0; color: #b6b6b6; }
.contact-channels a { color: #f0f0f0; text-decoration: underline; text-underline-offset: 3px; }
.contact-channels a:hover, .contact-channels a:focus-visible { color: #fff; text-decoration-thickness: 2px; }
.contact .contact-note { margin-block-start: 5px; }
@media (max-width: 760px) {
  .contact-channels { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .article-grid { grid-template-columns: minmax(0, 1fr); }
}

.lesson-dialog {
  --dialog-gutter: clamp(20px, 4vw, 58px);
  width: min(1080px, calc(100% - 44px));
  max-width: none;
  max-height: 91vh;
  max-height: 91dvh;
  overflow: hidden;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 17px;
  color: var(--ink);
  background: var(--paper);
}
.lesson-dialog[open] {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
}
.lesson-dialog-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 20px var(--dialog-gutter);
  border-block-end: 1px solid var(--line);
}
.lesson-dialog-header form { flex: 0 0 auto; }
.lesson-dialog h2 { font-size: clamp(1.3rem, 3.2vw, 2.25rem); line-height: 1.48; }
.lesson-dialog h2:focus { outline: none; }
.lesson-dialog-copy {
  min-height: 0;
  min-width: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
  padding: 24px var(--dialog-gutter) 30px;
  color: var(--muted);
  font-size: 1rem;
  line-height: 2;
}
.lesson-dialog-copy:focus-visible { outline-offset: -3px; }
.lesson-dialog-copy > p + p { margin-block-start: 14px; }
.lesson-pricing {
  margin-block-start: 24px;
  padding: clamp(15px, 2.5vw, 24px);
  border: 1px solid var(--line);
  border-radius: 11px;
  background: var(--surface-blue);
}
.lesson-pricing .lesson-pricing-title { margin-block-end: 5px; color: var(--night); }
.lesson-dialog-actions {
  display: flex;
  justify-content: flex-start;
  padding: 14px var(--dialog-gutter);
  border-block-start: 1px solid var(--line);
  background: var(--white);
}
.skill-read-link { margin-block-start: 17px; }
@media (max-width: 600px) {
  .lesson-dialog {
    --dialog-gutter: 17px;
    width: calc(100% - 16px);
    max-height: 94vh;
    max-height: 94dvh;
    border-radius: 13px;
  }
  .lesson-dialog-header { gap: 10px; padding-block: 13px; }
  .lesson-dialog-header .lesson-close { padding-inline: 12px; }
  .lesson-dialog-copy { padding-block: 16px 21px; }
  .lesson-dialog-actions { padding-block: 11px; }
  .lesson-dialog-actions > .button { width: 100%; }
}
.lesson-close { border-color: #aaa; color: var(--ink); background: transparent; }
.lesson-close:hover { background: #e9e9e6; }
.lesson-dialog[open] { animation: hero-in 220ms ease-out both; }
.lesson-dialog::backdrop { background: #000a; backdrop-filter: blur(5px); }
.footer-links { display: flex; flex-wrap: wrap; gap: 12px 20px; }

@media (max-width: 1200px) {
  :root { --header-height: 64px; }
  .header-layout { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 0; }
  .header-layout .brand img { width: 39px; height: 39px; }
  .header-contact { display: none; }
  .menu-toggle {
    display: grid;
    place-content: center;
    gap: 5px;
    width: 42px;
    height: 40px;
    border: 1px solid #454545;
    border-radius: 5px;
    color: var(--white);
    background: transparent;
  }
  .menu-toggle span { display: block; width: 17px; height: 1px; background: currentColor; transition: transform 200ms ease; }
  .menu-toggle[aria-expanded="true"] span:first-child { transform: translateY(3px) rotate(45deg); }
  .menu-toggle[aria-expanded="true"] span:last-child { transform: translateY(-3px) rotate(-45deg); }
  .navigation { flex-wrap: wrap; gap: 0 16px; }
  .nav-item { width: 100%; padding-block: 8px; white-space: normal; }
  .nav-panel { position: static; min-width: 0; margin-block-end: 6px; box-shadow: none; }
  .has-menu .nav-group, .has-menu .nav-item { width: 100%; }
  .has-menu .navigation {
    display: none;
    position: absolute;
    inset: 100% 0 auto;
    max-height: calc(100dvh - var(--header-height));
    overflow-y: auto;
    padding: 9px var(--gutter) 16px;
    border-block-end: 1px solid #353535;
    background: #151515;
  }
  .has-menu .navigation.is-open { display: grid; }
}
@media (max-width: 820px) {
  .hero { display: flex; flex-direction: column; }
  .hero-visual { position: relative; z-index: 0; inset: auto; width: 100%; padding: 8px 0 0; }
  .hero-visual img { width: min(95%, 510px); max-height: min(49svh, 380px); }
  .hero-layout { position: relative; min-height: 0; padding-block: 10px 37px; }
  .hero-copy { width: min(100%, 560px); margin-inline: auto; }
  .hero-intro { margin-block-start: 11px; font-size: .94rem; white-space: normal; text-wrap: balance; }
  .hero-actions { gap: 18px; margin-block-start: 17px; }
}
@media (max-width: 760px) {
  .class-strip-inner { flex-wrap: wrap; gap: 0 16px; padding-block: 12px; justify-content: center; text-align: center; }
  .class-strip p + p { border: 0; padding-inline-start: 0; }
  .course-row, .split-section, .approach-layout, .faq-layout { grid-template-columns: minmax(0, 1fr); }
  .course-row, .split-section { gap: 14px; }
  .faq-layout .section-heading { margin-block-end: 0; }
}
@media (max-width: 420px) {
  .class-strip-inner { display: grid; gap: 1px; }
  .contact-layout { grid-template-columns: 1fr; }
  .contact .button { justify-self: start; margin-block: 5px; }
  .footer-layout { align-items: start; flex-direction: column; gap: 11px; }
  .field-grid { grid-template-columns: 1fr; }
}
.instructors { padding-block: clamp(42px, 6vw, 88px); }
.instructor-copy p { font-size: clamp(1.02rem, 1.65vw, 1.16rem); }
.instructor-copy p + p { margin-block-start: 13px; }
.instructor-copy strong { color: var(--ink); }
.ela-stats { padding-block: clamp(43px, 6vw, 83px); border-block-end: 1px solid var(--line); }
.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(10px, 2vw, 21px);
  margin: 0;
}
.stats-item {
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 12px;
  min-height: 194px;
  padding: clamp(15px, 3vw, 33px);
  border: 1px solid var(--line);
  border-radius: 12px;
  text-align: center;
  background: #fcfcfb;
}
.stats-item dt { color: var(--muted); font-weight: 700; }
.stat-value {
  grid-row: 1;
  margin: 0;
  color: var(--ink);
  font-size: clamp(2.6rem, 5.3vw, 4.65rem);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  line-height: 1.1;
}
.stat-value bdi { display: block; min-width: 2ch; }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.quick-actions {
  --side-gap: 19px;
  position: fixed;
  inset-inline: max(var(--side-gap), env(safe-area-inset-right)) max(var(--side-gap), env(safe-area-inset-left));
  inset-block-end: max(18px, calc(env(safe-area-inset-bottom) + 10px));
  z-index: 6;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  visibility: hidden;
  opacity: 0;
  transform: translateY(6px);
  pointer-events: none;
  transition: opacity 180ms ease, transform 180ms ease;
}
.quick-actions.is-visible { visibility: visible; opacity: 1; transform: none; }
.quick-actions .button {
  min-height: 43px;
  padding-inline: 13px;
  font-size: .89rem;
  white-space: nowrap;
  backdrop-filter: blur(7px);
  box-shadow: 0 3px 14px #0002;
}
.quick-actions.is-visible .button { pointer-events: auto; }
.quick-request { background: rgb(20 20 20 / 78%); color: var(--white); border-color: #ffffff38; }
.quick-request:hover, .quick-request:focus-visible { background: #141414; }
.quick-request { min-width: 232px; justify-content: center; gap: 9px; }
.quick-request .call-icon { width: 18px; height: 18px; flex: 0 0 auto; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.quick-request .call-number-desktop { font-weight: 800; letter-spacing: .02em; }
.quick-request[aria-expanded="true"] { background: #fff; color: #111; border-color: #fff; }
.call-label-mobile { display: none; }
.contact-channels dt { display: flex; align-items: center; gap: 8px; }
.contact-phone-icon { width: 17px; height: 17px; flex: 0 0 auto; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.contact-channels dt a { color: inherit; text-decoration: underline; text-underline-offset: 4px; }
.contact-channels dt a:hover, .contact-channels dt a:focus-visible { color: #fff; text-decoration-thickness: 2px; }
.quick-actions.is-visible .quick-request {
  transform-origin: center center;
  animation: free-call-vibrate 5.2s ease-in-out infinite;
}
@keyframes free-call-vibrate {
  0%, 87%, 100% { transform: rotate(0deg); }
  88% { transform: rotate(-1.25deg); }
  89% { transform: rotate(1.25deg); }
  90% { transform: rotate(-1deg); }
  91% { transform: rotate(.8deg); }
  92% { transform: rotate(0deg); }
}
.quick-top { gap: 8px; background: rgb(255 255 255 / 78%); color: var(--ink); border-color: #d6d6d2; }
.quick-top:hover, .quick-top:focus-visible { background: #fff; }
.quick-top::before {
  width: 7px;
  height: 7px;
  transform: translateY(2px) rotate(45deg);
  border-top: 1.5px solid currentColor;
  border-left: 1.5px solid currentColor;
  content: "";
}
.footer { padding-block-end: 85px; }
.scroll-entered { animation: hero-in 620ms cubic-bezier(.2, .7, .22, 1) both; }
.stats-item.scroll-entered:nth-child(2) { animation-delay: 50ms; }
.stats-item.scroll-entered:nth-child(3) { animation-delay: 100ms; }
@media (max-width: 680px) {
  .stats-grid { grid-template-columns: minmax(0, 1fr); }
  .stats-item { min-height: 130px; gap: 9px; }
  .quick-actions { --side-gap: 10px; inset-block-end: calc(10px + env(safe-area-inset-bottom)); }
  .quick-actions .button { min-height: 40px; padding-inline: 10px; font-size: .83rem; }
  .quick-request { min-width: 150px; gap: 7px; }
  .call-label-desktop, .call-number-desktop { display: none !important; }
  .call-label-mobile { display: inline; }
}

@media (prefers-reduced-motion: reduce) {
  :root { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
  

/* Unified, full-width introductions for tutoring and olympiad */
.course-carousel .course-intro { width: 100%; }
.course-carousel .course-intro .section-copy {
  width: 100%;
  max-width: none;
  columns: 1;
  column-count: 1;
  column-gap: 0;
}
.course-carousel .course-intro .section-copy > p { margin: 0; }
.skill-visual {
  min-width: 0;
  min-height: 0;
  align-self: stretch;
  margin: 0;
  overflow: hidden;
  border: 1px solid #dcdcd7;
  border-radius: 17px;
  background: #e9e9e5;
}
.skill-visual .lesson-art {
  width: 100%;
  height: 100%;
  min-height: clamp(250px, 30vw, 410px);
  aspect-ratio: auto;
  border: 0;
  border-radius: inherit;
}
.skill-visual .lesson-art img { border-radius: inherit; }
@media (max-width: 760px) {
  .skill-visual .lesson-art { min-height: 250px; }
}



/* ==========================================================
   ELA THEME 01 — Trust, Growth & Energy
   Applied as a site-wide design system; layout and imagery
   from the approved v7 page are intentionally preserved.
   ========================================================== */
:root {
  --ink: #1C2B3A;
  --night: #142B4A;
  --paper: #F6F9FC;
  --white: #FFFFFF;
  --muted: #526274;
  --line: #D8E3EF;
  --dark-line: #2C4666;
  --silver: #B7C7D9;

  --primary: #2457A6;
  --primary-hover: #1D478A;
  --teal: #237B72;
  --teal-hover: #1B625B;
  --accent: #C04B3E;
  --accent-hover: #A83D33;
  --surface-blue: #E8F0FA;
  --surface-teal: #E8F3F1;
  --navy-mid: #1C3B61;
  --navy-deep: #10233D;
  --text-on-dark: #E2EAF4;
}

::selection { color: #FFFFFF; background: #2457A6; }
:focus-visible { outline-color: #8DB7F1; }

/* Header and navigation */
.site-header {
  color: var(--white);
  background: rgb(20 43 74 / 97%);
  border-block-end-color: #2C4666;
  box-shadow: 0 5px 22px rgb(16 35 61 / 12%);
}
.brand small { color: #BFD1E5; }
.nav-item { color: #C8D6E6; }
.nav-item:hover,
.nav-item[aria-current],
.nav-group[open] > summary { color: #FFFFFF; }
.nav-item[aria-current] { text-decoration-color: #55A69A; }
.nav-panel {
  border-color: #3D5A7A;
  background: #1C3B61;
  box-shadow: 0 16px 32px rgb(16 35 61 / 24%);
}
.nav-panel a { color: #E4ECF6; }
.nav-panel a:hover,
.nav-panel a:focus-visible { background: #2457A6; color: #FFFFFF; }
.section-context {
  color: #142B4A;
  background: #E8F0FA;
  border-block-end-color: #C9D9EA;
  box-shadow: 0 5px 16px rgb(20 43 74 / 10%);
}
.section-context span { border-inline-start-color: #237B72; }
.menu-toggle { border-color: #6C88A9; color: #FFFFFF; }
.menu-toggle:hover { background: #1C3B61; }

/* Buttons and links */
.button-outline { color: #FFFFFF; border-color: #7894B4; }
.button-outline:hover, .button-outline:focus-visible {
  background: rgb(255 255 255 / 10%);
  color: var(--white);
  border-color: #BFD1E5;
}
.button-primary {
  color: var(--white);
  background: var(--accent);
  border-color: var(--accent);
}
.button-primary:hover, .button-primary:focus-visible {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
}
.text-link:hover { color: #A9C6F4; }
.path-action { color: #2457A6; }
.path-action:hover { color: #237B72; }

/* Blend the image perimeter into the navy banner. */
.hero {
  color: var(--white);
  background: radial-gradient(ellipse at 77% 40%, #1D3D63, transparent 63%),
              linear-gradient(105deg, #091A30, var(--navy-deep) 46%, var(--night));
}
.hero h1 em { color: #BFD5EF; }
.hero h1::before { background: linear-gradient(90deg, #8EA9C8, transparent); }
.hero h1::after { background: linear-gradient(270deg, #8EA9C8, transparent); }
.hero-intro { color: #E1EAF5; }
.hero-actions .text-link { color: #E4ECF6; }
.hero .button-primary, .contact .button-primary {
  box-shadow: 0 5px 16px rgb(192 75 62 / 20%);
}

/* Trust strip and general section typography */
.class-strip {
  color: #31465F;
  background: #E8F0FA;
  border-block-color: #D3E0EE;
}
.class-strip strong { color: #142B4A; }
.class-strip p + p { border-inline-start-color: #B7C7D9; }
.section-heading > p,
.section-heading > .section-copy,
.section-copy,
.split-section p,
.course-intro p { color: #526274; }
.section-copy strong { color: #1C2B3A; }
#about > h2::after,
.section-heading > h2::after,
#consulting h2::after,
#instructors > h2::after,
#contact-title::after {
  display: block;
  width: 52px;
  height: 4px;
  margin-block-start: 12px;
  border-radius: 99px;
  background: #237B72;
  content: "";
}
.course-intro h3 {
  color: #142B4A;
  padding-inline-start: 14px;
  border-inline-start: 4px solid #237B72;
}
.paths { border-block-start-color: #D8E3EF; }
.course-row { border-block-start-color: #D8E3EF; }
.course-carousel + .course-carousel { border-block-start-color: #D8E3EF; }

/* Subject carousels: navy active card, clean white side cards */
.lesson-arrow {
  color: #FFFFFF;
  background: #2457A6;
  border-color: #2457A6;
  box-shadow: 0 5px 16px rgb(36 87 166 / 20%);
}
.lesson-arrow:enabled:hover {
  background: #1D478A;
  border-color: #1D478A;
  box-shadow: 0 7px 20px rgb(36 87 166 / 26%);
}
.lesson-card {
  --paper-card: #FFFFFF;
  --art-pale: #E8F0FA;
  --art-dark: #D9E7F5;
  --art-border: #C9D9EA;
  border-color: #D8E3EF;
  color: #1C2B3A;
  background: var(--paper-card);
  box-shadow: 0 8px 24px rgb(20 43 74 / 5%);
}
.lesson-card.is-current,
.lesson-track:not(.carousel-ready) .lesson-card:first-of-type {
  --paper-card: #142B4A;
  --art-pale: #284B70;
  --art-dark: #1C3B61;
  --art-border: #456483;
  border-color: #142B4A;
  color: #FFFFFF;
  box-shadow: 0 14px 30px rgb(20 43 74 / 18%);
}
.lesson-lead { color: #237B72; }
.lesson-card.is-current .lesson-lead,
.lesson-track:not(.carousel-ready) .lesson-card:first-of-type .lesson-lead { color: #CDEAE4; }
.lesson-teaser { color: #526274; }
.lesson-card.is-current .lesson-teaser,
.lesson-track:not(.carousel-ready) .lesson-card:first-of-type .lesson-teaser { color: #E3ECF6; }
.lesson-link {
  border-color: #2457A6;
  color: #2457A6;
}
.card-link:hover .lesson-link,
.card-link:focus-visible .lesson-link {
  border-color: #2457A6;
  background: #2457A6;
  color: #FFFFFF;
}
.lesson-card.is-current .lesson-link {
  border-color: #FFFFFF;
  background: #FFFFFF;
  color: #142B4A;
}
.lesson-card.is-current .card-link:hover .lesson-link,
.lesson-card.is-current .card-link:focus-visible .lesson-link {
  border-color: #DCE8F5;
  background: #DCE8F5;
  color: #142B4A;
}
.lesson-detail {
  border-color: #D8E3EF;
  background: #FFFFFF;
  box-shadow: 0 10px 28px rgb(20 43 74 / 6%);
}
.lesson-detail h4 { color: #142B4A; }
.lesson-detail-copy p { color: #526274; }
.skill-visual {
  border-color: #D8E3EF;
  background: #E8F0FA;
  box-shadow: 0 10px 28px rgb(20 43 74 / 7%);
}

/* Consulting */
.consulting { background: #E8F0FA; }
.consulting .section-copy strong { color: #142B4A; }

/* AI learning approach */
.approach {
  color: var(--white);
  background: radial-gradient(ellipse at 84% 20%, #1D3D63, transparent 63%), var(--navy-deep);
}
.approach-label { color: #C8D8EB; }
.approach-label::before { background: #55A69A; }
.approach h2 span { color: #BFD5EF; }
.approach-intro { color: #E0EAF5; }
.approach-intro strong { color: #FFFFFF; }
.approach-benefits {
  border-color: #3D5A7A;
  background: #1C3B61;
  box-shadow: 0 18px 55px rgb(8 24 44 / 22%);
}
.approach-benefits > div { border-block-end-color: #3D5A7A; }
.approach-benefits h3 { color: #FFFFFF; }
.approach-benefits p { color: #D4E1EF; }

/* Instructors and proof points */
.instructors { border-block-end-color: #D8E3EF; }
.instructor-copy strong { color: #237B72; }
.instructors .path-action { color: #2457A6; }
.ela-stats { border-block-end-color: #D8E3EF; }
.stats-item {
  border-color: var(--line);
  border-block-start: 3px solid var(--primary);
  background: var(--white);
  box-shadow: 0 8px 24px rgb(20 43 74 / 5%);
}
.stats-item dt { color: #526274; }
.stat-value { color: #2457A6; }

/* Articles and FAQ */
.articles { border-block-end-color: #D8E3EF; }
.article-card {
  border-color: #D8E3EF;
  background: #FFFFFF;
  box-shadow: 0 8px 24px rgb(20 43 74 / 5%);
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}
.article-card:hover {
  border-color: #9DB8D8;
  box-shadow: 0 14px 30px rgb(20 43 74 / 10%);
  transform: translateY(-3px);
}
.article-art { background: radial-gradient(ellipse at center, #F5F9FE, #DCE9F6); }
.article-copy h3 { color: #142B4A; }
.article-copy p { color: #526274; }
.article-copy .path-action { color: #2457A6; }
.faq-list { border-block-start-color: #D8E3EF; }
.faq-list details { border-block-end-color: #D8E3EF; }
summary::after { color: #237B72; }
summary:hover,
details[open] > summary { color: #2457A6; }
.faq-list details[open] { background: #EEF4FB; border-radius: 8px; padding-inline: 12px; }
.faq-list details > p { color: #526274; }

/* Contact and footer */
.contact {
  color: #FFFFFF;
  background: linear-gradient(135deg, #142B4A 0%, #1C3B61 100%);
}
.contact-layout p { color: #D4E1EF; }
.contact .contact-note { color: #BFD0E3; }
.contact-channels > div {
  border-color: #3D5A7A;
  background: #1C3B61;
  box-shadow: 0 8px 22px rgb(8 24 44 / 12%);
}
.contact-channels dt { color: #FFFFFF; }
.contact-channels dd { color: #D4E1EF; }
.contact-channels a { color: #FFFFFF; }
.contact-channels a:hover,
.contact-channels a:focus-visible { color: #BFD5EF; }
.contact-phone-icon { stroke: var(--silver); }
.footer {
  color: #E7EEF7;
  background: #10233D;
  border-block-start-color: #2C4666;
}
.footer .text-link { color: #BFD1E5; }
.footer .text-link:hover { color: #FFFFFF; }

/* Lesson dialog */
.lesson-dialog {
  border-color: #D8E3EF;
  color: #1C2B3A;
  background: #FFFFFF;
  box-shadow: 0 24px 70px rgb(16 35 61 / 22%);
}
.lesson-dialog::backdrop { background: rgb(16 35 61 / 68%); }
.lesson-dialog h2 { color: #142B4A; }
.lesson-dialog-copy { color: #526274; }
.lesson-dialog-actions { border-block-start-color: #D8E3EF; }
.lesson-close { border-color: #AFC1D5; color: #142B4A; background: #FFFFFF; }
.lesson-close:hover { background: #E8F0FA; }

/* Floating actions: coral call-to-action and quiet blue return-to-top */
.quick-request {
  color: #FFFFFF;
  background: rgb(192 75 62 / 96%);
  border-color: #C04B3E;
  box-shadow: 0 5px 18px rgb(192 75 62 / 28%);
}
.quick-request:hover,
.quick-request:focus-visible {
  color: #FFFFFF;
  background: #A83D33;
  border-color: #A83D33;
}
.quick-request[aria-expanded="true"] {
  color: #142B4A;
  background: #FFFFFF;
  border-color: #FFFFFF;
}
.quick-top {
  color: #142B4A;
  background: rgb(246 249 252 / 94%);
  border-color: #C9D9EA;
  box-shadow: 0 4px 14px rgb(20 43 74 / 12%);
}
.quick-top:hover,
.quick-top:focus-visible { color: #142B4A; background: #E8F0FA; }

/* Mobile navigation inherits the same navy system */
@media (max-width: 1200px) {
  .has-menu .navigation {
    background: #1C3B61;
    border-block-end-color: #3D5A7A;
    box-shadow: 0 14px 24px rgb(16 35 61 / 18%);
  }
  .nav-item { color: #E0EAF5; }
  .nav-item:hover,
  .nav-group[open] > summary { color: #FFFFFF; }
  .nav-panel { background: #142B4A; }
}

@media (prefers-reduced-motion: reduce) {
  .article-card:hover { transform: none; }
}

