body.home-page,
body:has(.home-shell) {
  padding-bottom: calc(88px + env(safe-area-inset-bottom));
}

.site-header {
  position: sticky;
  z-index: 100;
  top: 0;
  border-bottom: 1px solid var(--line);
  background: var(--canvas);
}

.header-inner,
.top {
  width: min(var(--content), calc(100% - 160px));
  min-height: 76px;
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.brand,
.wordmark {
  color: var(--ink-950);
  font-size: 24px;
  font-weight: 820;
  letter-spacing: -.055em;
  text-decoration: none;
  white-space: nowrap;
}

.brand img,
.wordmark img {
  width: 184px;
  height: auto;
}

.global-nav,
.nav {
  display: flex;
  align-items: center;
  gap: clamp(18px, 2.2vw, 32px);
}

.global-nav a,
.nav a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  color: var(--ink-800);
  font-size: 15px;
  font-weight: 680;
  text-decoration: none;
}

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

.global-nav .nav-cta {
  min-height: 44px;
  padding-inline: 18px;
  border: 1px solid var(--action);
  border-radius: var(--radius-sm);
  background: var(--action);
  color: #fff;
}

.mobile-menu-toggle,
.mobile-nav {
  display: none;
}

.home-hero {
  width: min(var(--content), calc(100% - 160px));
  margin-inline: auto;
  padding-block: clamp(48px, 6.7vw, 96px);
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  align-items: center;
  gap: var(--gutter);
}

.hero-copy {
  grid-column: 1 / span 5;
  grid-row: 1;
  position: relative;
  z-index: 1;
}

.hero-copy h1 {
  max-width: 8.8ch;
}

.hero-copy .lead {
  margin-top: 24px;
}

.hero-lead {
  max-width: 29em;
  margin-top: 24px;
  color: var(--muted);
  font-size: clamp(17px, 1.45vw, 20px);
  line-height: 1.65;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 32px;
}

.hero-media {
  grid-column: 6 / -1;
  grid-row: 1;
  overflow: hidden;
  background: var(--surface);
}

.hero-media picture,
.hero-media img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
}

.hero-media img {
  object-fit: cover;
  object-position: center;
}

/* Legacy first-screen fallback while the semantic hero is rolled out. */
.content-home {
  padding: 0;
  background: var(--canvas);
}

.classroom-banner {
  min-height: 0;
  border-radius: 0;
}

.purpose-index {
  width: min(var(--content), calc(100% - 160px));
  margin-inline: auto;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  border-block: 1px solid var(--line);
}

.purpose-index small {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.home-section {
  width: min(var(--content), calc(100% - 160px));
  margin-inline: auto;
  padding-block: var(--section-space);
  scroll-margin-top: 92px;
  scroll-margin-bottom: calc(88px + env(safe-area-inset-bottom));
}

.home-section > .wrap {
  width: 100%;
}

.home-section + .home-section {
  border-top: 1px solid var(--line);
}

.purpose-index a {
  min-height: 132px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 24px;
  color: var(--ink-800);
  text-decoration: none;
}

.purpose-index a + a {
  border-left: 1px solid var(--line);
}

.purpose-index strong {
  font-size: 20px;
  line-height: 1.35;
}

.purpose-index span {
  color: var(--muted);
  font-size: 14px;
}

.section > .wrap > h2,
.section-head h2 {
  font-size: clamp(32px, 3.35vw, 48px);
  line-height: 1.15;
}

.method-flow {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  margin: 32px 0 0;
  padding: 0;
  border-top: 1px solid var(--line);
  list-style: none;
}

.method-steps {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 32px 0 0;
  padding-left: 0;
  border-top: 1px solid var(--line);
  list-style: none;
}

.method-steps > *,
.method-flow li {
  min-height: 220px;
  padding: 32px 0;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
}

.method-steps > :nth-child(odd),
.method-flow li:nth-child(odd) {
  padding-right: 32px;
}

.method-steps > :nth-child(even),
.method-flow li:nth-child(even) {
  padding-left: 32px;
  border-left: 1px solid var(--line);
}

.method-steps p,
.method-flow p {
  max-width: 54ch;
  margin-top: 14px;
  color: var(--muted);
}

/* Actual class evidence is sequenced editorially, not as an equal-card gallery. */
.class-process {
  display: grid;
  gap: clamp(56px, 6vw, 88px);
  margin-top: clamp(40px, 5vw, 72px);
}

.process-step {
  min-width: 0;
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  align-items: center;
  gap: var(--gutter);
}

.process-media {
  min-width: 0;
  margin: 0;
  overflow: hidden;
  background: var(--surface);
}

.process-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.process-copy {
  min-width: 0;
  position: relative;
}

.process-index,
.process-copy > span:first-child {
  display: block;
  margin-bottom: 14px;
  color: var(--action);
  font-size: 14px;
  font-weight: 780;
  letter-spacing: .04em;
}

.process-copy h3 {
  font-size: clamp(28px, 3vw, 42px);
  line-height: 1.16;
}

.process-copy p {
  max-width: 38ch;
  margin-top: 18px;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.75;
}

.process-step:nth-child(1) .process-media {
  grid-column: 1 / span 7;
  aspect-ratio: 4 / 3;
}

.process-step:nth-child(1) .process-copy {
  grid-column: 9 / -1;
}

.process-step:nth-child(2) .process-media {
  grid-column: 6 / -1;
  grid-row: 1;
  aspect-ratio: 4 / 3;
}

.process-step:nth-child(2) .process-copy {
  grid-column: 1 / span 4;
  grid-row: 1;
}

.process-step:nth-child(3) {
  padding-block: clamp(40px, 5vw, 72px);
  border-block: 1px solid var(--line);
}

.process-step:nth-child(3) .process-media {
  grid-column: 2 / span 6;
  aspect-ratio: 4 / 3;
}

.process-step:nth-child(3) .process-copy {
  grid-column: 9 / -1;
}

.class-process-note {
  max-width: 62ch;
  margin-top: 24px;
  color: var(--muted);
  font-size: 14px;
}

.teacher-grid,
.directory {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(48px, 5vw, 72px) var(--gutter);
  margin-top: 0;
}

.teacher-grid.compact-teachers {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 32px var(--gutter);
}

.compact-teachers .teacher-meta {
  padding-top: 16px;
}

.compact-teachers .teacher-name {
  font-size: clamp(22px, 1.75vw, 26px);
}

.compact-teachers .teacher-schools,
.compact-teachers .teacher-profile p {
  font-size: 14px;
}

.teacher-profile,
.directory > a {
  min-width: 0;
  display: block;
  padding: 0;
  border: 0;
  border-radius: 0;
  color: var(--text);
  text-decoration: none;
}

.teacher-profile figure {
  overflow: hidden;
}

.teacher-photo,
.teacher-profile picture,
.teacher-profile img,
.directory > a > img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  border-radius: 0;
  background: #f7f8f8;
  object-fit: cover;
  object-position: center;
}

.teacher-profile--geonhu .teacher-photo {
  transform: scale(1.18);
  transform-origin: 50% 26%;
}

.teacher-meta,
.directory > a > div {
  padding: 20px 0 0;
  border-top: 0;
}

.teacher-meta > span:first-child {
  display: block;
  margin-bottom: 8px;
  color: var(--action-hover);
  font-size: 14px;
  font-weight: 720;
}

.teacher-name,
.teacher-profile h3,
.directory strong {
  color: var(--ink-950);
  font-size: clamp(28px, 2.25vw, 32px);
  font-weight: 730;
  line-height: 1.22;
  letter-spacing: -.035em;
}

.teacher-schools,
.teacher-profile p,
.directory span {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.55;
}

.teacher-profile .teacher-credentials {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  color: var(--ink-950);
  font-weight: 680;
  line-height: 1.55;
}

.teacher-profile .teacher-achievement {
  margin-top: 10px;
  color: var(--muted);
  line-height: 1.6;
}

.teacher-achievement b {
  display: block;
  margin-bottom: 3px;
  color: var(--action-hover);
  font-size: 12px;
  font-weight: 760;
  letter-spacing: .02em;
}

.teacher-link {
  width: 100%;
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  color: var(--action-hover);
  font-size: 15px;
  font-weight: 750;
}

.action-icon {
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  display: inline-grid;
  place-items: center;
  border: 1px solid #cbd5e4;
  border-radius: 50%;
  background: var(--canvas);
  color: var(--action-hover);
  font-size: 18px;
  line-height: 1;
  transition: color 180ms var(--ease-out), background 180ms var(--ease-out), border-color 180ms var(--ease-out), transform 180ms var(--ease-out);
}

.teacher-profile:hover .action-icon,
.teacher-profile:focus-visible .action-icon,
.section-cta:hover .action-icon,
.section-cta:focus-visible .action-icon,
.branch-action:hover .action-icon,
.branch-action:focus-visible .action-icon {
  border-color: var(--action);
  background: var(--action);
  color: #fff;
}

.section-cta {
  width: 100%;
  min-height: 116px;
  margin-top: clamp(40px, 5vw, 64px);
  padding: 24px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border: 1px solid #d5deec;
  border-radius: 8px;
  background: var(--action-soft);
  color: var(--ink-950);
  text-decoration: none;
  transition: background 180ms var(--ease-out), border-color 180ms var(--ease-out), transform 180ms var(--ease-out);
}

.section-cta:hover {
  border-color: #aebfdf;
  background: #e4edff;
}

.section-cta-copy {
  display: grid;
  gap: 3px;
}

.section-cta small,
.branch-action small {
  color: var(--action-hover);
  font-size: 12px;
  font-weight: 780;
  letter-spacing: .04em;
}

.section-cta strong {
  font-size: clamp(19px, 1.7vw, 24px);
  line-height: 1.35;
}

.section-cta em {
  color: var(--muted);
  font-size: 14px;
  font-style: normal;
  font-weight: 500;
}

.hero-actions .button::after {
  content: "→";
  margin-left: 2px;
  font-size: 18px;
  line-height: 1;
  transition: transform 180ms var(--ease-out);
}

.hero-actions .button:hover::after,
.hero-actions .button:focus-visible::after {
  transform: translateX(3px);
}

.schedule-section {
  background: #f4f7fc;
  box-shadow: 0 0 0 100vmax #f4f7fc;
  clip-path: inset(0 -100vmax);
}

.schedule-workspace {
  margin-top: clamp(40px, 5vw, 64px);
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(360px, .85fr);
  align-items: start;
  gap: var(--gutter);
}

.schedule-panel,
.schedule-fees {
  min-width: 0;
  border: 1px solid #dbe3f0;
  background: var(--canvas);
}

.schedule-panel {
  padding: clamp(28px, 3vw, 40px);
}

.schedule-panel-heading p,
.fee-heading p {
  color: var(--action-hover);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .04em;
}

.schedule-panel-heading h3,
.fee-heading h3 {
  margin-top: 8px;
  color: var(--ink-950);
  font-size: clamp(24px, 2.2vw, 32px);
  line-height: 1.25;
}

.schedule-panel-heading > span,
.fee-heading > span {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

.selectors {
  display: grid;
  gap: 20px;
  margin-top: 28px;
}

.schedule-filter-group {
  display: grid;
  gap: 10px;
}

.selector-label {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--ink-800);
  font-weight: 750;
}

.selector-label b {
  width: 24px;
  height: 24px;
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  background: var(--action);
  color: #fff;
  font-size: 12px;
}

.filter-buttons {
  display: grid;
  gap: 8px;
}

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

.grade-buttons {
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

.filter-buttons button {
  min-height: 48px;
  padding: 9px 10px;
  border: 1px solid #c5cfdd;
  border-radius: 7px;
  background: #fff;
  color: var(--ink-800);
  font: inherit;
  font-size: 14px;
  font-weight: 720;
  cursor: pointer;
  transition: color 160ms var(--ease-out), background 160ms var(--ease-out), border-color 160ms var(--ease-out), box-shadow 160ms var(--ease-out);
}

.filter-buttons button:hover,
.filter-buttons button:focus-visible {
  border-color: var(--action);
  box-shadow: 0 0 0 3px rgba(55, 91, 210, .1);
}

.filter-buttons button[aria-pressed="true"] {
  border-color: var(--action);
  background: var(--action);
  color: #fff;
}

.schedule-feedback {
  min-height: 52px;
  margin-top: 22px;
  padding: 13px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-left: 3px solid var(--action);
  background: var(--action-soft);
}

.status {
  margin: 0;
  color: var(--ink-800);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.5;
}

.schedule-feedback .button {
  min-height: 40px;
  padding: 8px 14px;
}

#schedule-results:not(:empty) {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin-top: 18px;
}

#schedule-results .card {
  min-width: 0;
  padding: 20px;
  display: grid;
  grid-template-columns: minmax(140px, 1.2fr) minmax(0, 2fr) auto;
  align-items: center;
  gap: 20px;
  border: 1px solid #dce4ef;
  border-radius: 8px;
  background: #fff;
  font-size: 15px;
}

.schedule-result-head {
  display: grid;
  gap: 8px;
}

#schedule-results .card h3 {
  font-size: 21px;
  line-height: 1.35;
}

.schedule-result-head span {
  width: fit-content;
  padding: 5px 9px;
  border-radius: 999px;
  background: #edf3ff;
  color: var(--action-hover);
  font-size: 12px;
  font-weight: 750;
}

.schedule-times {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

#schedule-results .card p {
  margin: 0;
  padding: 7px 10px;
  border: 1px solid #dfe6f1;
  border-radius: 5px;
  background: #f7f9fc;
  color: var(--ink-800);
  font-size: 13px;
  font-weight: 650;
}

#schedule-results .card small {
  grid-column: 1 / 3;
  color: var(--muted);
  font-size: 12px;
}

.schedule-capacity-note {
  margin: 2px 0 0;
  padding: 12px 14px;
  border: 1px dashed #c8d3e3;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

#schedule-results .card a {
  min-width: 132px;
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 16px;
  border: 1px solid #c5d2e8;
  border-radius: var(--radius-sm);
  background: var(--action-soft);
  color: var(--action-hover);
  font-weight: 750;
  text-decoration: none;
  transition: color 180ms var(--ease-out), background 180ms var(--ease-out), border-color 180ms var(--ease-out);
}

#schedule-results .card a::after {
  content: "→";
  margin-left: 8px;
}

#schedule-results .card a:hover,
#schedule-results .card a:focus-visible {
  border-color: var(--action);
  background: var(--action);
  color: #fff;
}

.schedule-fees {
  padding: clamp(28px, 3vw, 36px);
  border-top: 4px solid var(--action);
}

.fee-summary {
  margin: 20px 0 0;
  padding: 15px 16px;
  border-left: 3px solid var(--action);
  background: #edf3ff;
  color: var(--action-hover);
  font-size: 15px;
  font-weight: 780;
  line-height: 1.5;
}

.fees {
  width: 100%;
  max-width: none;
  margin-top: 20px;
  border-collapse: separate;
  border-spacing: 0;
  border: 1px solid #dfe6f1;
  border-radius: 8px;
  overflow: hidden;
}

.fees th,
.fees td {
  padding: 14px 9px;
  border-bottom: 1px solid #e3e9f2;
  font-size: 14px;
  text-align: center;
}

.fees thead {
  background: #edf3ff;
  color: var(--action-hover);
}

.fees tbody th {
  color: var(--ink-950);
  font-weight: 780;
}

.fees tbody td {
  color: var(--ink-800);
  font-weight: 680;
}

.fees tbody tr:last-child > * {
  border-bottom: 0;
}

.fee-included {
  margin-top: 16px;
  padding: 14px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  background: #f5f8fd;
}

.fee-included > span {
  width: 22px;
  height: 22px;
  flex: 0 0 22px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--action);
  color: #fff;
  font-size: 12px;
}

.fee-included p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.fee-included strong {
  display: block;
  color: var(--ink-950);
  font-size: 14px;
}

.audience-grid,
.branch-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid var(--line);
}

.audience-grid > *,
.branch-grid > * {
  min-height: 220px;
  padding: 32px 0;
  border-bottom: 1px solid var(--line);
}

.audience-grid > :nth-child(odd),
.branch-grid > :nth-child(odd) {
  padding-right: 32px;
}

.audience-grid > :nth-child(even),
.branch-grid > :nth-child(even) {
  padding-left: 32px;
  border-left: 1px solid var(--line);
}

.audience-grid p,
.branch-grid p,
.branch-grid address {
  margin-top: 12px;
  color: var(--muted);
  font-style: normal;
}

.audience-grid ul {
  margin: 20px 0 0;
  padding: 0;
  display: grid;
  list-style: none;
}

.audience-grid li + li {
  border-top: 1px solid var(--line);
}

.audience-grid a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  color: var(--action-hover);
  font-weight: 700;
}

.branch-action {
  width: 100%;
  min-height: 72px;
  margin-top: 24px;
  padding: 12px 14px 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--ink-950);
  transition: background 180ms var(--ease-out), border-color 180ms var(--ease-out);
}

.branch-card {
  color: var(--text);
  text-decoration: none;
}

.branch-card:hover .branch-action,
.branch-card:focus-visible .branch-action {
  border-color: #b9c7db;
  background: var(--action-soft);
}

.branch-card:hover .action-icon,
.branch-card:focus-visible .action-icon {
  border-color: var(--action);
  background: var(--action);
  color: #fff;
}

.branch-action > span:first-child {
  display: grid;
  gap: 2px;
}

.branch-action strong {
  font-size: 16px;
  line-height: 1.35;
}

.branch-label,
.audience-label {
  color: var(--action-hover) !important;
  font-size: 13px;
  font-weight: 750;
  letter-spacing: .04em;
}

.fee-note {
  margin-top: 24px;
  color: var(--muted);
  font-size: 14px;
}

.consultation-banner {
  padding: clamp(40px, 5vw, 72px);
  display: grid;
  grid-template-columns: minmax(0, 8fr) minmax(220px, 4fr);
  align-items: end;
  gap: var(--gutter);
  background: var(--ink-950);
  color: #fff;
}

.consultation-banner h2,
.consultation-banner p {
  color: #fff;
}

.consultation-banner p {
  max-width: 58ch;
  margin-top: 16px;
  color: #dce3ef;
}

.consultation-banner .btn,
.consultation-banner .button {
  justify-self: end;
  min-width: 220px;
  justify-content: space-between;
}

.site-footer {
  margin: 0;
  padding-block: 56px 112px;
  border-top: 1px solid var(--line);
  background: var(--surface);
  color: var(--muted);
  font-size: 14px;
}

.footer-main,
.legal-copy {
  width: min(var(--content), calc(100% - 160px));
  margin-inline: auto;
}

.footer-main {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 32px;
}

.footer-main nav {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
}

.footer-main nav a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

.legal-copy {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.legal-copy p + p {
  margin-top: 8px;
}

.sticky-jump {
  position: fixed;
  z-index: 80;
  right: max(8px, calc((100vw - 1440px) / 2 + 8px));
  top: 50%;
  width: 64px;
  display: grid;
  border: 1px solid var(--line);
  background: var(--canvas);
  transform: translateY(-50%);
}

.sticky-jump a {
  min-height: 48px;
  padding: 10px 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-800);
  font-size: 13px;
  font-weight: 720;
  text-align: center;
  text-decoration: none;
}

.sticky-jump a + a {
  border-top: 1px solid var(--line);
}

.sticky-jump a:last-child {
  background: var(--action);
  color: #fff;
}

.fixed-apply {
  display: none;
}

.sticky-consult {
  display: none;
}

@media (min-width: 768px) {
  .class-process {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: var(--gutter);
  }

  .process-step:nth-child(1) {
    grid-column: 1 / -1;
  }

  .process-step:nth-child(2),
  .process-step:nth-child(3) {
    grid-template-columns: 1fr;
    align-content: start;
    gap: 24px;
    padding: 0;
    border: 0;
  }

  .process-step:nth-child(2) .process-media,
  .process-step:nth-child(3) .process-media {
    grid-column: 1;
    grid-row: 1;
  }

  .process-step:nth-child(2) .process-copy,
  .process-step:nth-child(3) .process-copy {
    grid-column: 1;
    grid-row: 2;
  }

  .process-step:nth-child(3) {
    padding-left: var(--gutter);
    border-left: 1px solid var(--line);
  }
}

@media (max-width: 1199px) {
  .header-inner,
  .top,
  .home-hero,
  .purpose-index,
  .home-section,
  .footer-main,
  .legal-copy {
    width: min(var(--content), calc(100% - 80px));
  }

  .sticky-jump {
    display: none;
  }

  .teacher-grid.compact-teachers {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 32px var(--gutter);
  }

  .schedule-workspace {
    grid-template-columns: 1fr;
  }

  .compact-teachers .teacher-photo,
  .compact-teachers .teacher-profile img {
    height: clamp(280px, 38vw, 350px);
    object-position: 50% 20%;
  }
}

@media (max-width: 767px) {
  .header-inner,
  .top,
  .home-hero {
    width: calc(100% - 40px);
  }

  .header-inner,
  .top {
    min-height: 64px;
  }

  .brand,
  .wordmark {
    font-size: 21px;
  }

  .brand img,
  .wordmark img {
    width: 164px;
  }

  .global-nav,
  .nav {
    display: none;
  }

  .mobile-menu-toggle {
    width: 44px;
    height: 44px;
    padding: 0;
    display: inline-grid;
    place-items: center;
    border: 0;
    background: transparent;
  }

  .mobile-menu-toggle > span:not(.sr-only) {
    position: absolute;
    width: 22px;
    height: 2px;
    border-radius: 999px;
    background: var(--ink-950);
    transition: transform 180ms var(--ease-out), opacity 180ms var(--ease-out);
  }

  .mobile-menu-toggle > span:nth-last-child(3) {
    transform: translateY(-7px);
  }

  .mobile-menu-toggle > span:nth-last-child(1) {
    transform: translateY(7px);
  }

  .mobile-menu-toggle[aria-expanded="true"] > span:nth-last-child(3) {
    transform: rotate(45deg);
  }

  .mobile-menu-toggle[aria-expanded="true"] > span:nth-last-child(2) {
    opacity: 0;
  }

  .mobile-menu-toggle[aria-expanded="true"] > span:nth-last-child(1) {
    transform: rotate(-45deg);
  }

  .mobile-nav {
    position: fixed;
    z-index: 95;
    inset: 65px 0 auto;
    display: none;
    padding: 12px 20px 24px;
    border-bottom: 1px solid var(--line);
    background: var(--canvas);
  }

  .mobile-nav.is-open,
  .mobile-nav[data-open="true"] {
    display: grid;
  }

  .mobile-nav a {
    min-height: 48px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid var(--line);
    font-weight: 680;
    text-decoration: none;
  }

  .home-hero {
    padding-block: 48px 72px;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 32px var(--gutter);
  }

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

  .hero-copy h1 {
    max-width: 9.2ch;
  }

  .hero-copy .lead {
    margin-top: 18px;
  }

  .hero-lead {
    margin-top: 18px;
  }

  .hero-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 24px;
  }

  .hero-actions .button {
    min-width: 0;
    min-height: 54px;
    padding-inline: 14px;
  }

  .hero-media {
    grid-row: 2;
  }

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

  .home-section,
  .purpose-index,
  .footer-main,
  .legal-copy {
    width: calc(100% - 40px);
  }

  .purpose-index a {
    min-height: 116px;
    padding: 20px 16px;
  }

  .purpose-index a:nth-child(odd) {
    border-left: 0;
  }

  .purpose-index a:nth-child(n + 3) {
    border-top: 1px solid var(--line);
  }

  .purpose-index a:last-child:nth-child(odd) {
    grid-column: 1 / -1;
  }

  .purpose-index strong {
    font-size: 18px;
  }

  .method-steps,
  .method-flow,
  .directory,
  .audience-grid,
  .branch-grid {
    grid-template-columns: 1fr;
  }

  .class-process {
    gap: 48px;
    margin-top: 40px;
  }

  .process-step {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .process-step:nth-child(n) .process-media,
  .process-step:nth-child(n) .process-copy {
    grid-column: 1;
  }

  .process-step:nth-child(n) .process-media {
    grid-row: 1;
  }

  .process-step:nth-child(n) .process-copy {
    grid-row: 2;
  }

  .process-step:nth-child(1) .process-media {
    aspect-ratio: 4 / 3;
  }

  .process-step:nth-child(2) .process-media,
  .process-step:nth-child(3) .process-media {
    aspect-ratio: 4 / 3;
  }

  .process-step:nth-child(3) {
    padding-block: 40px;
  }

  .process-copy h3 {
    font-size: 30px;
  }

  .process-copy p {
    font-size: 16px;
  }

  .process-step:nth-child(2),
  .process-step:nth-child(3) {
    grid-template-columns: 144px minmax(0, 1fr);
    align-items: start;
    gap: 16px;
    padding-block: 20px;
    border-top: 1px solid var(--line);
  }

  .process-step:nth-child(2) .process-media,
  .process-step:nth-child(3) .process-media {
    grid-column: 1;
    grid-row: 1;
    aspect-ratio: 4 / 3;
  }

  .process-step:nth-child(2) .process-copy,
  .process-step:nth-child(3) .process-copy {
    grid-column: 2;
    grid-row: 1;
  }

  .process-step:nth-child(2) .process-copy h3,
  .process-step:nth-child(3) .process-copy h3 {
    font-size: 21px;
  }

  .process-step:nth-child(2) .process-copy p,
  .process-step:nth-child(3) .process-copy p {
    margin-top: 8px;
    font-size: 14px;
    line-height: 1.6;
  }

  .process-step:nth-child(2) .process-index,
  .process-step:nth-child(3) .process-index {
    margin-bottom: 7px;
    font-size: 12px;
  }

  .section-cta {
    min-height: 104px;
    margin-top: 40px;
    padding: 18px;
    gap: 16px;
  }

  .section-cta em {
    max-width: 27ch;
    font-size: 13px;
    line-height: 1.5;
  }

  .section-cta .action-icon {
    width: 38px;
    height: 38px;
    flex-basis: 38px;
  }

  .method-steps > *,
  .method-flow li,
  .audience-grid > *,
  .branch-grid > * {
    min-height: 0;
    padding: 28px 0;
    border-left: 0 !important;
  }

  .branch-grid > :nth-child(n) {
    padding-inline: 0;
    border-left: 0;
  }

  .teacher-grid,
  .directory {
    gap: 56px;
  }

  .teacher-grid.compact-teachers {
    width: 100%;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    overflow: visible;
  }

  .teacher-grid.compact-teachers::-webkit-scrollbar {
    display: none;
  }

  .compact-teachers .teacher-profile {
    display: grid;
    grid-template-columns: 132px minmax(0, 1fr);
    align-items: start;
    gap: 18px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--line);
  }

  .compact-teachers .teacher-name {
    font-size: 22px;
  }

  .compact-teachers .teacher-meta {
    min-width: 0;
    padding-top: 2px;
  }

  .compact-teachers .teacher-credentials,
  .compact-teachers .teacher-achievement {
    line-height: 1.45;
  }

  .compact-teachers .teacher-photo,
  .compact-teachers .teacher-profile img {
    width: 132px;
    height: 165px;
  }

  .teacher-photo,
  .teacher-profile picture,
  .teacher-profile img,
  .directory > a > img {
    aspect-ratio: 4 / 5;
  }

  .teacher-name,
  .teacher-profile h3,
  .directory strong {
    font-size: 26px;
  }

  .teacher-schools,
  .teacher-profile p,
  .directory span {
    font-size: 15px;
  }

  .selectors {
    gap: 18px;
    margin-top: 24px;
  }

  #schedule-results .card {
    padding: 18px;
    grid-template-columns: 1fr;
    gap: 12px;
  }

  #schedule-results .card h3 {
    font-size: 19px;
  }

  #schedule-results .card small {
    grid-column: 1;
  }

  #schedule-results .card a {
    width: 100%;
    margin-top: 6px;
    justify-content: center;
    scroll-margin-bottom: calc(88px + env(safe-area-inset-bottom));
  }

  .schedule-panel,
  .schedule-fees {
    padding: 24px 20px;
  }

  .schedule-panel-heading h3,
  .fee-heading h3 {
    font-size: 25px;
  }

  .schedule-panel-heading h3,
  .schedule-panel-heading > span {
    display: none;
  }

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

  .filter-buttons button {
    min-height: 46px;
    padding-inline: 6px;
  }

  .selector-label b {
    width: 22px;
    height: 22px;
  }

  .schedule-feedback {
    align-items: flex-start;
  }

  .fees {
    min-width: 100%;
  }

  .fees th,
  .fees td {
    padding: 12px 8px;
    font-size: 14px;
  }

  .consultation-banner {
    padding: 40px 24px;
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .footer-main {
    display: grid;
  }

  .footer-main nav {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 16px;
  }

  .consultation-banner .btn,
  .consultation-banner .button {
    width: 100%;
    justify-self: stretch;
  }

  .sticky-jump,
  .fixed-apply {
    position: fixed;
    z-index: 100;
    inset: auto 0 0;
    width: 100%;
    min-height: 64px;
    padding: 8px 20px calc(8px + env(safe-area-inset-bottom));
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    border: 0;
    border-top: 1px solid var(--line);
    background: var(--canvas);
    transform: none;
  }

  .sticky-jump a,
  .fixed-apply .btn {
    width: 100%;
    min-height: 48px;
    margin: 0;
    padding: 8px 12px;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    font-size: 14px;
  }

  .sticky-jump a {
    display: none;
  }

  .sticky-jump a:nth-child(3),
  .sticky-jump a:last-child {
    display: flex;
  }

  .fixed-apply {
    grid-template-columns: 1fr;
  }

  .fixed-apply > .wrap {
    width: 100%;
  }
}

@media (max-width: 374px) {
  .header-inner,
  .top,
  .home-hero,
  .home-section,
  .purpose-index,
  .footer-main,
  .legal-copy {
    width: calc(100% - 32px);
  }

  .hero-actions .btn,
  .hero-actions .button {
    width: 100%;
  }

  .compact-teachers .teacher-profile {
    grid-template-columns: 112px minmax(0, 1fr);
    gap: 14px;
  }

  .compact-teachers .teacher-photo,
  .compact-teachers .teacher-profile img {
    width: 112px;
    height: 140px;
  }
}
