:root {
  --ink: #172033;
  --muted: #607086;
  --paper: #fffaf2;
  --cream: #f4eadc;
  --line: rgba(23, 32, 51, 0.12);
  --teal: #0f9f9a;
  --coral: #de5c4f;
  --blue: #315f9b;
  --leaf: #758b3d;
  --shadow: 0 22px 60px rgba(23, 32, 51, 0.13);
  --radius: 8px;
  --max: 1160px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Be Vietnam Pro", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.65;
}

body.nav-open {
  overflow: hidden;
}

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

a {
  color: inherit;
  text-decoration: none;
}

.site-header {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  color: #ffffff;
  transition: background 220ms ease, color 220ms ease, box-shadow 220ms ease;
}

.site-header.is-scrolled,
.site-header.is-open {
  background: rgba(255, 250, 242, 0.94);
  color: var(--ink);
  box-shadow: 0 12px 30px rgba(23, 32, 51, 0.08);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0;
}

.brand span:last-child {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.brand-logo {
  flex: 0 0 auto;
  width: 126px;
  height: 40px;
  object-fit: contain;
  padding: 4px 9px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 10px 24px rgba(23, 32, 51, 0.13);
}

.nav-toggle {
  display: inline-grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.12);
  color: inherit;
  cursor: pointer;
}

.site-header.is-scrolled .nav-toggle,
.site-header.is-open .nav-toggle {
  border-color: var(--line);
  background: #ffffff;
}

.nav-toggle span {
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
}

.site-nav {
  position: fixed;
  top: 74px;
  right: 16px;
  left: 16px;
  display: grid;
  gap: 4px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 250, 242, 0.98);
  color: var(--ink);
  box-shadow: var(--shadow);
  opacity: 0;
  pointer-events: none;
  transform: translateY(-8px);
  transition: opacity 180ms ease, transform 180ms ease;
}

.site-nav.is-open {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.site-nav a {
  padding: 12px 10px;
  border-radius: 6px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 700;
}

.site-nav a:hover {
  background: rgba(15, 159, 154, 0.1);
  color: var(--teal);
}

.hero {
  position: relative;
  display: grid;
  min-height: 100svh;
  align-items: center;
  overflow: hidden;
  isolation: isolate;
  padding: 112px 20px 52px;
  color: #ffffff;
}

.hero-media,
.hero-scrim {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-media {
  z-index: -3;
  object-fit: cover;
  object-position: 60% center;
}

.hero-scrim {
  z-index: -2;
  background:
    linear-gradient(90deg, rgba(12, 21, 35, 0.9) 0%, rgba(12, 21, 35, 0.7) 45%, rgba(12, 21, 35, 0.26) 100%),
    linear-gradient(180deg, rgba(12, 21, 35, 0.18), rgba(12, 21, 35, 0.72));
}

.hero-content {
  width: min(100%, 720px);
  margin: 0 auto;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--coral);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: #f4b1a7;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.12;
}

h1 {
  font-family: "Libre Baskerville", Georgia, serif;
  font-size: 52px;
  letter-spacing: 0;
}

h1 span {
  display: block;
}

h2 {
  font-size: 32px;
  letter-spacing: 0;
}

h3 {
  font-size: 21px;
  letter-spacing: 0;
}

.hero-copy {
  max-width: 620px;
  margin: 22px 0 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: 17px;
}

.hero-actions,
.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  padding: 12px 18px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 800;
  line-height: 1.2;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button.primary {
  background: var(--coral);
  color: #ffffff;
  box-shadow: 0 14px 30px rgba(222, 92, 79, 0.24);
}

.button.secondary {
  border-color: rgba(255, 255, 255, 0.42);
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
}

.schedule-card .button.secondary {
  border-color: var(--line);
  background: #ffffff;
  color: var(--ink);
}

.section {
  width: min(100% - 40px, var(--max));
  margin: 0 auto;
  padding: 72px 0;
}

.section-heading {
  display: grid;
  gap: 10px;
  margin-bottom: 30px;
}

.section-heading.narrow {
  max-width: 760px;
}

.intro-grid {
  display: grid;
  gap: 30px;
}

.teacher-portrait {
  position: relative;
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 14px;
  border: 1px solid rgba(23, 32, 51, 0.1);
  border-radius: var(--radius);
  background: #ffffff;
  box-shadow: 0 24px 58px rgba(23, 32, 51, 0.12);
  isolation: isolate;
}

.teacher-portrait::before {
  position: absolute;
  inset: 0 0 auto;
  height: 5px;
  border-radius: var(--radius) var(--radius) 0 0;
  background: linear-gradient(90deg, var(--teal), var(--coral), var(--blue));
  content: "";
}

.teacher-portrait::after {
  position: absolute;
  inset: auto 12% -18px;
  z-index: -1;
  height: 34px;
  border-radius: 50%;
  background: rgba(23, 32, 51, 0.16);
  content: "";
  filter: blur(18px);
}

.teacher-photo-stack {
  position: relative;
  overflow: hidden;
  width: 100%;
  aspect-ratio: 4 / 5;
  border-radius: 6px;
  background: var(--ink);
  box-shadow: inset 0 0 0 1px rgba(23, 32, 51, 0.08);
  isolation: isolate;
}

.teacher-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 24%;
  opacity: 0;
  transform: scale(1.018);
  transition: opacity 900ms ease, transform 1200ms ease;
}

.teacher-photo.is-active {
  opacity: 1;
  transform: scale(1);
}

.teacher-portrait figcaption {
  position: relative;
  display: grid;
  gap: 2px;
  padding: 2px 2px 4px;
}

.teacher-portrait figcaption span {
  color: var(--ink);
  font-weight: 800;
}

.teacher-portrait figcaption small {
  color: var(--muted);
  font-weight: 700;
}

.teacher-copy {
  display: grid;
  gap: 16px;
}

.teacher-copy p,
.app-copy p,
.schedule-card p,
.course-card p,
.path-card span {
  margin: 0;
  color: var(--muted);
}

.teacher-panel {
  display: grid;
  gap: 4px;
  align-content: center;
  min-height: 210px;
  padding: 28px;
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(15, 159, 154, 0.12), rgba(49, 95, 155, 0.12)),
    #ffffff;
  box-shadow: var(--shadow);
}

.panel-number {
  color: var(--teal);
  font-family: "Libre Baskerville", Georgia, serif;
  font-size: 74px;
  line-height: 1;
}

.teacher-panel span:last-child {
  color: var(--ink);
  font-weight: 800;
}

.seo-section {
  display: grid;
  gap: 8px;
}

.seo-grid {
  display: grid;
  gap: 16px;
}

.seo-card {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #ffffff;
  box-shadow: 0 12px 32px rgba(23, 32, 51, 0.07);
}

.seo-card h3 {
  margin-bottom: 10px;
}

.seo-card p {
  margin: 0;
  color: var(--muted);
}

.reason-section {
  width: 100%;
  max-width: none;
  padding-right: 20px;
  padding-left: 20px;
  background: #ffffff;
}

.reason-section > * {
  width: min(100%, var(--max));
  margin-right: auto;
  margin-left: auto;
}

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

.reason-item {
  display: grid;
  grid-template-columns: 46px 1fr;
  gap: 14px;
  align-items: start;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
}

.reason-item span {
  color: var(--teal);
  font-weight: 800;
}

.reason-item p {
  margin: 0;
}

.course-grid,
.path-grid {
  display: grid;
  gap: 16px;
}

.course-card,
.path-card {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #ffffff;
  box-shadow: 0 12px 32px rgba(23, 32, 51, 0.07);
}

.course-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 18px;
}

.course-topline span {
  color: var(--coral);
  font-weight: 800;
}

.course-topline strong {
  padding: 5px 9px;
  border-radius: 999px;
  background: rgba(117, 139, 61, 0.12);
  color: var(--leaf);
  font-size: 12px;
}

.course-card h3,
.path-card h3 {
  margin-bottom: 12px;
}

.course-card ul {
  display: grid;
  gap: 8px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.course-card li {
  position: relative;
  padding-left: 18px;
  color: var(--ink);
  font-size: 14px;
}

.course-card li::before {
  position: absolute;
  top: 10px;
  left: 0;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--teal);
  content: "";
}

.path-card {
  display: grid;
  gap: 8px;
  background: var(--ink);
  color: #ffffff;
}

.path-card p {
  margin: 0;
  color: #f2c9bf;
  font-weight: 800;
}

.path-card span {
  color: rgba(255, 255, 255, 0.72);
}

.youtube-section {
  display: grid;
  gap: 24px;
}

.youtube-intro {
  display: grid;
  gap: 18px;
  max-width: 820px;
}

.youtube-intro p {
  margin: 0;
  color: var(--muted);
}

.youtube-button {
  width: fit-content;
  background: #ff0033;
  color: #ffffff;
  box-shadow: 0 14px 30px rgba(255, 0, 51, 0.18);
}

.video-grid {
  display: grid;
  gap: 16px;
}

.video-card {
  display: grid;
  gap: 14px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #ffffff;
  box-shadow: 0 12px 32px rgba(23, 32, 51, 0.07);
}

.video-card a {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: 6px;
  aspect-ratio: 16 / 9;
  background: var(--ink);
}

.video-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 260ms ease;
}

.video-card:hover img {
  transform: scale(1.035);
}

.play-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 56px;
  height: 40px;
  border-radius: 12px;
  background: rgba(255, 0, 51, 0.92);
  transform: translate(-50%, -50%);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25);
}

.play-icon::after {
  position: absolute;
  top: 50%;
  left: 52%;
  width: 0;
  height: 0;
  border-top: 9px solid transparent;
  border-bottom: 9px solid transparent;
  border-left: 15px solid #ffffff;
  content: "";
  transform: translate(-50%, -50%);
}

.video-card h3 {
  font-size: 17px;
  line-height: 1.35;
}

.app-section {
  display: grid;
  gap: 28px;
  align-items: center;
}

.app-copy {
  display: grid;
  gap: 14px;
}

.app-preview {
  display: grid;
  justify-items: center;
}

.phone-frame {
  position: relative;
  width: min(100%, 310px);
  min-height: 520px;
  padding: 24px;
  border: 10px solid var(--ink);
  border-radius: 32px;
  background:
    linear-gradient(160deg, rgba(15, 159, 154, 0.12), rgba(222, 92, 79, 0.14)),
    #fffdf8;
  box-shadow: var(--shadow);
}

.phone-bar {
  width: 78px;
  height: 6px;
  margin: 0 auto 44px;
  border-radius: 999px;
  background: rgba(23, 32, 51, 0.2);
}

.phone-card {
  display: grid;
  gap: 12px;
  padding: 22px;
  border-radius: var(--radius);
  background: var(--ink);
  color: #ffffff;
}

.phone-card img {
  width: 136px;
  height: 44px;
  object-fit: contain;
  align-self: start;
  padding: 0;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.2));
}

.phone-card strong {
  font-size: 24px;
  line-height: 1.15;
}

.phone-card small {
  color: rgba(255, 255, 255, 0.72);
  font-weight: 700;
}

.phone-lines {
  display: grid;
  gap: 14px;
  margin-top: 26px;
}

.phone-lines span {
  height: 58px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #ffffff;
}

.faq-section {
  display: grid;
  gap: 4px;
}

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

.faq-item {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #ffffff;
  box-shadow: 0 12px 32px rgba(23, 32, 51, 0.06);
}

.faq-item summary {
  min-height: 62px;
  padding: 18px 46px 18px 18px;
  color: var(--ink);
  font-weight: 800;
  cursor: pointer;
  list-style: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  float: right;
  width: 24px;
  height: 24px;
  margin-right: -30px;
  border-radius: 50%;
  background: rgba(15, 159, 154, 0.12);
  color: var(--teal);
  content: "+";
  font-weight: 800;
  line-height: 24px;
  text-align: center;
}

.faq-item[open] summary::after {
  content: "-";
}

.faq-item p {
  margin: -4px 18px 18px;
  color: var(--muted);
}

.schedule-section {
  width: 100%;
  max-width: none;
  padding-right: 20px;
  padding-left: 20px;
  background: var(--cream);
}

.schedule-card {
  display: grid;
  gap: 24px;
  width: min(100%, var(--max));
  margin: 0 auto;
  padding: 28px;
  border: 1px solid rgba(23, 32, 51, 0.1);
  border-radius: var(--radius);
  background: #ffffff;
  box-shadow: var(--shadow);
}

.email-copy {
  display: inline-grid;
  gap: 6px;
  margin-top: 18px;
}

.email-copy span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.email-copy button {
  min-height: 42px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fffaf2;
  color: var(--blue);
  font: inherit;
  font-size: 14px;
  font-weight: 800;
  text-align: left;
  cursor: pointer;
}

.email-copy button.is-copied {
  color: var(--teal);
}

.site-footer {
  display: grid;
  gap: 22px;
  width: min(100% - 40px, var(--max));
  margin: 0 auto;
  padding: 34px 0;
  color: var(--muted);
}

.site-footer div,
.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.site-footer strong {
  color: var(--ink);
}

.site-footer a {
  color: var(--blue);
  font-weight: 800;
}

.simple-page .site-header {
  background: rgba(255, 250, 242, 0.94);
  color: var(--ink);
  box-shadow: 0 12px 30px rgba(23, 32, 51, 0.08);
  backdrop-filter: blur(16px);
}

.page-shell {
  width: min(100% - 40px, var(--max));
  margin: 0 auto;
  padding: 128px 0 72px;
}

.page-hero {
  display: grid;
  gap: 18px;
  max-width: 860px;
  margin-bottom: 28px;
}

.page-hero h1 {
  color: var(--ink);
  font-size: 44px;
}

.page-hero p {
  max-width: 760px;
  margin: 0;
  color: var(--muted);
  font-size: 16px;
}

.page-secondary {
  border-color: var(--line);
  background: #ffffff;
  color: var(--ink);
}

.policy-card,
.feedback-card {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #ffffff;
  box-shadow: var(--shadow);
}

.policy-card {
  display: grid;
  gap: 18px;
  max-width: 920px;
}

.policy-card h2 {
  margin-top: 10px;
  font-size: 24px;
}

.policy-card p {
  margin: 0;
  color: var(--muted);
}

.policy-card strong {
  color: var(--ink);
}

.policy-card a {
  color: var(--blue);
  font-weight: 800;
}

.feedback-layout {
  display: grid;
  gap: 28px;
}

.feedback-form {
  display: grid;
  gap: 16px;
}

.feedback-form label {
  display: grid;
  gap: 8px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 800;
}

.feedback-form input,
.feedback-form select,
.feedback-form textarea {
  width: 100%;
  min-height: 48px;
  padding: 12px 13px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fffaf2;
  color: var(--ink);
  font: inherit;
  font-size: 14px;
  outline: none;
}

.feedback-form textarea {
  resize: vertical;
}

.feedback-form input:focus,
.feedback-form select:focus,
.feedback-form textarea:focus {
  border-color: rgba(15, 159, 154, 0.72);
  box-shadow: 0 0 0 4px rgba(15, 159, 154, 0.12);
}

.form-note {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 650ms ease, transform 650ms ease;
}

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

@media (min-width: 760px) {
  .site-header {
    padding: 18px 32px;
  }

  .nav-toggle {
    display: none;
  }

  .site-nav {
    position: static;
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
    opacity: 1;
    pointer-events: auto;
    transform: none;
  }

  .site-nav a {
    color: inherit;
  }

  .site-header.is-scrolled .site-nav a {
    color: var(--ink);
  }

  .hero {
    padding-right: 48px;
    padding-left: 48px;
  }

  .hero-content {
    width: min(100%, var(--max));
  }

  h1 {
    font-size: 78px;
  }

  h2 {
    font-size: 44px;
  }

  .section {
    padding-top: 96px;
    padding-bottom: 96px;
  }

  .intro-grid {
    grid-template-columns: 0.86fr 1.14fr;
    align-items: start;
  }

  .teacher-portrait {
    grid-column: 1;
    grid-row: 1 / span 3;
    position: sticky;
    top: 104px;
  }

  .teacher-copy {
    grid-column: 2;
  }

  .teacher-panel {
    grid-column: 2;
    width: min(100%, 420px);
  }

  .reason-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

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

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

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

  .app-section {
    grid-template-columns: 1fr 0.82fr;
  }

  .schedule-card {
    grid-template-columns: 1fr auto;
    align-items: center;
    padding: 38px;
  }

  .site-footer {
    grid-template-columns: 1fr auto;
    align-items: center;
  }

  .feedback-layout {
    grid-template-columns: 0.88fr 1.12fr;
    align-items: start;
  }

  .feedback-card {
    margin-top: 10px;
  }
}

@media (min-width: 1080px) {
  h1 {
    font-size: 94px;
  }

  .course-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .course-card {
    min-height: 520px;
  }
}

@media (max-width: 420px) {
  .site-header {
    padding-right: 14px;
    padding-left: 14px;
  }

  .brand {
    max-width: calc(100vw - 84px);
  }

  .brand-logo {
    width: 104px;
    height: 34px;
    padding: 4px 8px;
  }

  .teacher-portrait {
    padding: 12px;
  }

  .teacher-photo-stack {
    width: 100%;
    border-radius: 6px;
  }

  .teacher-portrait figcaption {
    width: auto;
    margin-top: 0;
  }

  .hero {
    padding-right: 16px;
    padding-left: 16px;
  }

  h1 {
    font-size: 43px;
  }

  h2 {
    font-size: 28px;
  }

  .section,
  .site-footer,
  .page-shell {
    width: min(100% - 32px, var(--max));
  }

  .page-shell {
    padding-top: 108px;
  }

  .page-hero h1 {
    font-size: 38px;
  }

  .reason-section,
  .schedule-section {
    padding-right: 16px;
    padding-left: 16px;
  }

  .button {
    width: 100%;
  }

  .phone-frame {
    min-height: 460px;
  }
}

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

  .reveal {
    opacity: 1;
    transform: none;
  }

  .teacher-photo {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .teacher-photo:not(.is-active) {
    display: none;
  }
}
