/* Local motion direction inspired by Akaru; academy typography and colours retained. */
html .motion-demo .home-intro { position: relative; isolation: isolate; overflow: clip; background: #f8f7f2; }
html .motion-demo .home-intro::before,html .motion-demo .home-intro::after { content: ''; position: absolute; z-index: -1; width: clamp(320px,55vw,560px); aspect-ratio: 1; border-radius: 50%; pointer-events: none; }
html .motion-demo .home-intro::before { background: #e0e4f3; left: -15%; top: -24%; transform: translateY(calc(var(--hero-drift,0) * -100px)); }
html .motion-demo .home-intro::after { background: #f8e6a0; right: -18%; bottom: -30%; transform: translateY(calc(var(--hero-drift,0) * 100px)); }
html .motion-demo .home-intro h1 { font-size: clamp(42px,6vw,86px); letter-spacing: -.055em; line-height: 1.25; }
html .motion-demo .motion-chapters { padding: 88px 0 0; background: #f8f7f2; }
html .motion-demo .motion-chapters > .container { transform: none; opacity: 1; }
html .motion-chapters h2 { font-size: clamp(32px,4.8vw,64px); margin: 16px 0 56px; line-height: 1.35; }
.motion-stack { padding-bottom: 72px; }
.motion-chapter { position: sticky; top: 140px; min-height: 504px; display: grid; grid-template-columns: 70px 1fr; align-items: center; gap: 32px; padding: 64px; border-radius: 28px; overflow: clip; isolation: isolate; margin-bottom: 104px; box-shadow: 0 -8px 30px #2f39840a; }
.motion-ready { background: #e2e6f4; color: #20264a; }
.motion-set { background: #f4d657; color: #20264a; }
.motion-go { background: #2f3984; color: #fff; }
.motion-chapter > div { z-index: 1; }
.motion-chapter-number { align-self: start; font-size: 16px; font-weight: 700; }
html .motion-chapter h3 { font-size: clamp(64px,10vw,128px); line-height: 1.1; margin: 8px 0 24px; color: inherit; }
html .motion-chapter p { color: inherit; font-size: clamp(17px,2vw,24px); line-height: 1.7; }
.motion-chapter a { display: inline-flex; align-items: center; min-height: 48px; padding: 8px 0; font-size: 17px; font-weight: 700; color: inherit; text-decoration: underline; text-underline-offset: 6px; }
.motion-orbit { position: absolute; width: 460px; height: 460px; right: -180px; top: 10%; border: 1px solid currentColor; border-radius: 50%; opacity: .18; transform: translateY(calc(var(--chapter-progress,0) * -90px)) rotate(calc(var(--chapter-progress,0) * 45deg)); pointer-events: none; }
.motion-orbit::after { content: ''; position: absolute; width: 70%; height: 70%; border: 1px solid currentColor; border-radius: 50%; top: 15%; left: 15%; }
@media (max-width: 767px) {
 html .motion-demo .motion-chapters { padding-top: 64px; }
 .motion-chapter { top: 140px; min-height: 432px; grid-template-columns: 1fr; gap: 16px; padding: 32px; margin-bottom: 72px; border-radius: 20px; }
 .motion-chapter-number { margin: 0; }
 .motion-orbit { width: 300px; height: 300px; right: -190px; }
 html .motion-chapter p { font-size: 17px; }
 .motion-chapter a { font-size: 15px; }
}
@media (max-height: 650px) { .motion-chapter { position: relative; top: auto; min-height: 0; } }
@media (prefers-reduced-motion: reduce) {
 .motion-chapter { position: relative; top: auto; }
 html .motion-demo .home-intro::before,html .motion-demo .home-intro::after,.motion-orbit { transform: none; }
}

/* White canvas; only the home cover and course selection carry the motion. */
html body, html .site-header, html .motion-demo, html .motion-demo > section,
html .motion-demo .home-intro, html .motion-demo .motion-chapters,
html .simple-page.motion-demo > .simple-cta, html .academy-social { background: #fff; }
html .motion-demo:has(.home-intro) { isolation: isolate; }
html .motion-demo .home-intro { position: sticky; top: min(132px,calc(100svh - var(--hero-height, 900px))); z-index: 0; }
html .motion-demo .home-intro ~ section { position: relative; z-index: 1; background: #fff; }
html .motion-demo .motion-chapters { border-radius: 32px 32px 0 0; box-shadow: 0 -16px 32px #20264a0d; }
html .motion-demo > section > .container { opacity: 1; transform: none; }
html .motion-demo .course-explorer .course-card { transition: transform .35s ease, box-shadow .35s ease; }
html .motion-demo .course-explorer .course-card.is-open { transform: translateY(-8px); }
@media (max-width:991px) {
 html .motion-demo .home-stage-grid.course-explorer.is-enhanced { display: grid; grid-template-columns: 1fr; gap: 24px; }
 html .motion-demo .home-stage-grid.course-explorer.is-enhanced > article.course-card,
 html .motion-demo .home-stage-grid.course-explorer.is-enhanced > section.course-panel { grid-column: 1; grid-row: auto; position: relative; top: auto; z-index: auto; margin: 0; border-radius: 24px; }
 html .motion-demo .home-stage-grid.course-explorer.is-enhanced > article.course-card { min-height: 280px; padding: 32px; align-items: flex-start; justify-content: flex-start; gap: 16px; border: 1px solid #dce0ea; }
 html .motion-demo .home-stage-grid.course-explorer.is-enhanced > article.stage-ready { background: #e2e6f4; color: #20264a; }
 html .motion-demo .home-stage-grid.course-explorer.is-enhanced > article.stage-set { background: #f4d657; color: #20264a; }
 html .motion-demo .home-stage-grid.course-explorer.is-enhanced > article.stage-go { background: #2f3984; color: #fff; }
 html .motion-demo .home-stage-grid.course-explorer.is-enhanced .course-card h3 { font-size: 44px; color: inherit; order: 0; }
 html .motion-demo .home-stage-grid.course-explorer.is-enhanced .course-card .stage-top { order: 0; display: flex; width: 100%; justify-content: space-between; }
 html .motion-demo .home-stage-grid.course-explorer.is-enhanced .course-card .stage-range,
 html .motion-demo .home-stage-grid.course-explorer.is-enhanced .course-card > p,
 html .motion-demo .home-stage-grid.course-explorer.is-enhanced .course-trigger-text,
 html .motion-demo .home-stage-grid.course-explorer.is-enhanced .course-trigger-icon { display: block; color: inherit; }
 html .motion-demo .home-stage-grid.course-explorer.is-enhanced .course-card .course-tab-word { display: none; }
 html .motion-demo .home-stage-grid.course-explorer.is-enhanced .course-trigger { width: 100%; min-height: 44px; overflow: visible; margin-top: auto; padding: 16px 0 0; color: inherit; }
 html .motion-demo .home-stage-grid.course-explorer.is-enhanced .course-card.is-open { transform: translateY(-6px); box-shadow: 0 0 0 3px #2f3984; }
 html .motion-demo .home-stage-grid.course-explorer.is-enhanced .stage-go.is-open { box-shadow: 0 0 0 3px #f4d657; }
 html .motion-demo .home-stage-grid.course-explorer.is-enhanced .course-panel { border-radius: 24px; }
}
@media (prefers-reduced-motion:reduce) {
 html .motion-demo .home-intro { position: relative; top: auto; }
 html .motion-demo .course-explorer .course-card, html .motion-demo .course-explorer .course-card.is-open { transition: none; transform: none; }
}
html .motion-demo .motion-chapter { position: relative; top: auto; }

/* Sections cover each other only after the current content has been read. */
html .motion-demo { isolation: isolate; --cover-header: 104px; }
html .motion-demo > section.cover-section,
html .motion-demo .home-intro ~ section.cover-section {
 position: sticky; top: min(var(--cover-header),calc(100svh - var(--section-height, 900px)));
 z-index: var(--cover-order); background: #fff; border-radius: 28px 28px 0 0;
 box-shadow: 0 -12px 28px #20264a08;
}
html .motion-demo > section.cover-section:first-child { border-radius: 0; box-shadow: none; }
html .motion-demo .motion-chapter { position: sticky; top: calc(var(--cover-header) + 12px); }
@media (max-width:767px) {
 html .motion-demo { --cover-header: 132px; }
 html:has(.site-header.is-condensed) .motion-demo { --cover-header: 68px; }
}
@media (max-height:650px), (prefers-reduced-motion:reduce) {
 html .motion-demo > section.cover-section,
 html .motion-demo .home-intro ~ section.cover-section,
 html .motion-demo .motion-chapter { position: relative; top: auto; box-shadow: none; }
}

/* The footer shares the same containing flow, so the last sheet stays pinned. */
html .cover-flow { isolation: isolate; --cover-header: 104px; }
html .cover-flow > main.motion-demo { display: contents; }
html .cover-flow .cover-section { margin-bottom: clamp(120px,24svh,264px); }
html .cover-flow > .academy-social.cover-section,
html .cover-flow > .academy-footer.cover-section { position: sticky; top: min(var(--cover-header),calc(100svh - var(--section-height,900px))); z-index: var(--cover-order); border-radius: 28px 28px 0 0; }
html .cover-flow > .academy-footer.cover-section { margin-bottom: 0; }
html .motion-demo .motion-stack { padding-bottom: max(160px,65svh); }
html .motion-demo .course-panel-ready { background: #e2e6f4; }
html .motion-demo .course-panel-set { background: #fff2b4; }
html .motion-demo .course-panel-go { background: #e5e8f5; }
html .motion-demo .elective-feature { border-top-width: 1px; }
html .motion-demo .care-steps > div { align-items: start; }
html .motion-demo .care-steps dt,html .motion-demo .care-steps dd { font-size: 17px; line-height: 1.8; margin: 0; }
@media (max-width:991px) {
 html .motion-demo .home-stage-grid.course-explorer.is-enhanced .course-trigger { position: static; inset: auto; height: auto; display: flex; align-items: center; gap: 16px; }
}
@media (max-width:767px) {
 html .cover-flow { --cover-header: 132px; }
 html:has(.site-header.is-condensed) .cover-flow { --cover-header: 68px; }
 html .motion-demo .care-steps > div { grid-template-columns: 1fr; gap: 8px; padding: 16px 0; }
}
@media (max-height:650px), (prefers-reduced-motion:reduce) {
 html .cover-flow .cover-section { margin-bottom: 0; }
 html .cover-flow > .academy-social.cover-section,html .cover-flow > .academy-footer.cover-section { position: relative; top: auto; }
 html .motion-demo .motion-stack { padding-bottom: 72px; }
}
/* Every covering sheet is opaque and fills the available screen. */
html .cover-flow .cover-section { min-height: calc(100svh - var(--cover-header)); }
html .cover-flow > .academy-social.cover-section { background: #fff; }
@media (max-height:650px), (prefers-reduced-motion:reduce) { html .cover-flow .cover-section { min-height: 0; } }

/* Scroll runway holds the opaque sheet; it does not create visible blank space. */
html .cover-flow main.motion-demo > section.cover-section,
html .cover-flow > .common-ending.cover-section { min-height: calc(100svh - var(--cover-header)); margin-bottom: 0; }
.cover-dwell { height: clamp(360px,65svh,720px); pointer-events: none; }
html .motion-demo .motion-stack { padding-bottom: 72px; }
html .motion-demo .motion-chapters .container { padding-bottom: clamp(360px,65svh,720px); }
html .cover-flow > .common-ending { position: sticky; top: min(var(--cover-header),calc(100svh - var(--section-height,900px))); z-index: var(--cover-order); background: #fff; border-radius: 28px 28px 0 0; overflow: clip; }
html .common-ending > section,html .common-ending > footer { position: relative; top: auto; min-height: 0; margin: 0; border-radius: 0; box-shadow: none; }
html .common-ending .simple-cta { padding: 48px 0; text-align: center; }
html .common-ending .simple-cta h2 { font-size: clamp(26px,3vw,38px); }
html .common-ending .academy-social { padding: 32px 0; }
html .common-ending .simple-cta-inner { flex-direction: column; gap: 16px; }
@media (min-width:768px) {
 html .common-ending { display: grid; grid-template-columns: 1fr 1fr; align-content: start; }
 html .common-ending .simple-cta { grid-column: 1/-1; }
 html .common-ending .academy-social > .container,html .common-ending .academy-footer > .container { width: 100%; padding: 32px; }
 html .common-ending .academy-footer { padding: 0; }
 html .common-ending .social-footer-main { display: grid; gap: 24px; }
 html .common-ending .academy-social-card { padding: 24px 16px; }
}
@media (max-height:650px), (prefers-reduced-motion:reduce) {
 .cover-dwell { display: none; }
 html .cover-flow main.motion-demo > section.cover-section,html .cover-flow > .common-ending.cover-section { min-height: 0; }
 html .cover-flow > .common-ending { position: relative; top: auto; }
 html .motion-demo .motion-chapters .container { padding-bottom: 0; }
}
html .motion-demo .motion-chapters .container { padding-bottom: 0; }
html .motion-demo .motion-stack { padding-bottom: clamp(360px,65svh,720px); }
html .cover-flow main.motion-demo > .motion-chapters.cover-section { position: relative; top: auto; }
@media (max-height:650px), (prefers-reduced-motion:reduce) { html .motion-demo .motion-stack { padding-bottom: 72px; } }
html .common-ending .simple-cta { background: #fff; }

/* Claude 11: preserve card styling while shortening only the home reading hold. */
html .motion-demo .home-intro.is-past-hero { visibility: hidden; }
.cover-dwell { height: 25svh; }
html .motion-demo .motion-stack { padding-bottom: 25svh; }
html .cover-flow main.motion-demo > section.cover-section:has(:focus-visible) { z-index: 50; scroll-margin-top: 152px; }
html .cover-flow main.motion-demo > section.cover-section,
html .cover-flow > .common-ending.cover-section { border-radius: var(--radius-box) var(--radius-box) 0 0; }
html .motion-demo .motion-chapter,
html .motion-demo .home-stage-grid.course-explorer.is-enhanced > article.course-card,
html .motion-demo .home-stage-grid.course-explorer.is-enhanced > section.course-panel { border-radius: var(--radius-box); }
@media (max-height:650px), (prefers-reduced-motion:reduce) {
 .cover-dwell { display: none; }
 html .motion-demo .motion-stack { padding-bottom: 72px; }
}

/* Desktop reading space is independent of the mobile layout. */
@media (min-width: 768px) {
 html .cover-flow main.motion-demo > section.simple-hero,
 html .cover-flow main.motion-demo > section.simple-section,
 html .cover-flow main.motion-demo > section.home-intro,
 html .cover-flow main.motion-demo > section.motion-chapters {
  padding-top: clamp(320px, 32vh, 368px);
  padding-bottom: clamp(320px, 32vh, 368px);
 }
}



/* Keep chapter cards sticky; page sections scroll normally. */
html .cover-flow main.motion-demo > section.cover-section,
html .cover-flow > .common-ending.cover-section {
 position: relative;
 top: auto;
 min-height: 0;
 margin-bottom: 0;
 z-index: auto;
 border-radius: 0;
 box-shadow: none;
}
.cover-dwell { display: none; }

/* Section dividers follow the visible content width. */
html .motion-demo > section + section { border-top: 0; }
html .motion-demo > section + section::after {
 content: ''; position: absolute; top: 0; left: 50%;
 width: var(--divider-width, 80%); height: 1px;
 background: var(--academy-border); transform: translateX(-50%);
 pointer-events: none;
}

@media (max-width: 991px) {
 html .motion-demo > .simple-section { padding-top: calc(clamp(88px,10vh,120px) + 48px); padding-bottom: calc(clamp(88px,10vh,120px) + 48px); }
}
@media (max-width: 767px) {
 html .motion-demo > .home-intro { padding-top: 112px; padding-bottom: 120px; }
 html .motion-demo > .simple-hero { padding-top: 120px; padding-bottom: 128px; }
 html .motion-demo > .simple-section { padding-top: 120px; padding-bottom: 120px; }
 html .motion-demo > .motion-chapters { padding-top: 112px; padding-bottom: 48px; }
}
@media (min-width: 768px) {
 html .common-ending { display: block; }
 html .common-ending .academy-social > .container,
 html .common-ending .academy-footer > .container { width: 90%; max-width: 1180px; padding: 48px 0; margin-inline: auto; }
}

/* Preserve original card sizes; stop each card at the viewport centre. */
html .motion-demo .motion-chapter { top: var(--card-stop, 140px); }
@media (max-height: 650px), (prefers-reduced-motion: reduce) {
 html .motion-demo .motion-chapter { position: relative; top: auto; }
}

html .motion-demo .motion-heading { position: sticky; top: var(--heading-stop, 100px); z-index: 5; display: flow-root; background: #fff; }
html .motion-demo .motion-stack { padding-bottom: max(0px, calc(25svh - 88px)); }
@media (max-height: 650px), (prefers-reduced-motion: reduce) {
 html .motion-demo .motion-heading { position: relative; top: auto; }
 html .motion-demo .motion-stack { padding-bottom: 48px; }
}


html .motion-demo .motion-chapter > div { grid-column: 2; }
@media (max-width: 767px) {
 html .motion-demo .motion-chapter > div { grid-column: 1; }
}

@media (max-width: 767px) {
 html .motion-demo .motion-chapter { padding-left: 24px; padding-right: 24px; }
}

/* The final card has the same section inset as the first heading. */
html .motion-demo .motion-stack { padding-bottom: 16px; }
html .motion-demo .motion-chapter:last-child { margin-bottom: 0; }
@media (max-width: 991px) {
 html .motion-demo > .motion-chapters { padding-top: 88px; padding-bottom: 88px; }
}
@media (max-width: 767px) {
 html .motion-demo > .motion-chapters { padding-top: 112px; padding-bottom: 112px; }
}

/* Shared ending sections use the same content-width divider. */
html .common-ending > .simple-cta,
html .common-ending > .academy-social { position: relative; }
html .common-ending > section::after {
 content: ''; position: absolute; top: 0; left: 50%; width: var(--divider-width,80%); height: 1px;
 background: var(--academy-border); transform: translateX(-50%); pointer-events: none;
}
html .common-ending > section::before {
 content: ''; position: absolute; top: -2px; left: 50%; width: 48px; height: 5px;
 background: var(--academy-yellow); border-radius: 999px; transform: translateX(-50%);
}
html .common-ending .academy-social { padding-top: 136px; padding-bottom: 136px; }
html .common-ending .social-accent { display: none; }
html .common-ending .social-footer-bottom { border-top: 0; }
html .common-ending .social-footer-contact > :last-child { border-bottom: 0; }

/* Card spacing belongs to the stack so sticky boundaries stay equal. */
html .motion-demo .motion-stack { display: grid; row-gap: 104px; }
html .motion-demo .motion-chapter { margin-bottom: 0; align-self: start; }
@media (max-width: 767px) { html .motion-demo .motion-stack { row-gap: 72px; } }

/* Shared footer layout across the public menus. */
html .common-ending .simple-cta { padding-top: calc(clamp(88px,10vh,120px) + 48px); padding-bottom: calc(clamp(88px,10vh,120px) + 48px); }
html .common-ending .academy-social-card { position: relative; flex-direction: column; justify-content: center; text-align: center; gap: 16px; }
html .common-ending .social-card-copy { text-align: center; }
@media (min-width: 480px) {
 html .common-ending .social-footer-main { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 32px; align-items: start; }
 html .common-ending .social-footer-contact { width: 100%; min-width: 0; }
 html .common-ending .social-footer-contact > :first-child { border-top: 0; }
}
@media (max-width: 767px) {
 html .common-ending .simple-cta { padding-top: 120px; padding-bottom: 120px; }
}
@media (min-width: 768px) {
 html .common-ending .simple-cta { padding-top: clamp(320px,32vh,368px); padding-bottom: clamp(320px,32vh,368px); }
}

/* Home hero and chapter text insets requested in visible pixels. */
html .cover-flow main.motion-demo > section.home-intro { padding-top: 160px; padding-bottom: 160px; }
html .motion-demo .motion-chapter { padding-left: 104px; }
@media (max-width: 767px) {
 html .cover-flow main.motion-demo > section.home-intro { padding-top: 168px; padding-bottom: 176px; }
 html .motion-demo .motion-chapter { padding-left: 56px; }
}
@media (min-width: 768px) {
 html .cover-flow main.motion-demo > section.home-intro { padding-top: calc(clamp(320px,32vh,368px) + 48px); padding-bottom: calc(clamp(320px,32vh,368px) + 48px); }
}


/* Home animated level cards at 70% of their previous size. */
html .motion-demo .motion-stack { width: 70%; margin-inline: auto; }
html .motion-demo .motion-chapter { zoom: .7; }

/* Scale animation spacing with the cards and place copy beside the level. */
html .motion-demo .motion-stack { row-gap: 72px; }
html .motion-demo .motion-chapter > div { grid-column: 1 / -1; display: grid; grid-template-columns: max-content minmax(0,1fr); column-gap: 24px; align-items: center; }
html .motion-demo .motion-chapter > div > p:first-child { grid-column: 1; margin-bottom: 8px; }
html .motion-demo .motion-chapter h3 { grid-column: 1; grid-row: 2; font-size: clamp(72px,10vw,144px); margin: 0; }
html .motion-demo .motion-chapter > div > p:nth-of-type(2) { grid-column: 2; grid-row: 2; margin: 0; }
html .motion-demo .motion-chapter > div > a { grid-column: 1 / -1; justify-self: start; margin-top: 16px; }
@media (max-width: 767px) { html .motion-demo .motion-stack { row-gap: 48px; } }

html .motion-demo .motion-heading { margin-bottom: 32px; }

/* Add 1.5pt (2px) at the visible 0.56 scale. */
html .motion-demo .motion-chapter p { font-size: calc(clamp(17px,2vw,24px) + 3.5714px); }
html .motion-demo .motion-chapter h3 { font-size: calc(clamp(72px,10vw,144px) + 3.5714px); }
html .motion-demo .motion-chapter a { font-size: calc(17px + 3.5714px); }
@media (max-width: 767px) {
 html .motion-demo .motion-chapter p { font-size: calc(17px + 3.5714px); }
 html .motion-demo .motion-chapter a { font-size: calc(15px + 3.5714px); }
}

/* All descriptions begin at the horizontal centre of their card. */
html .motion-demo .motion-chapter > div { grid-template-columns: minmax(0,1fr) minmax(0,1fr); column-gap: 0; }
html .motion-demo .motion-chapter > div > p:nth-of-type(2) { margin-left: calc((var(--card-right-inset, 64px) - var(--card-left-inset, 104px)) / 2); }
@media (max-width: 767px) {
 html .motion-demo .motion-chapter { --card-left-inset: 56px; --card-right-inset: 20px; }
}
html .motion-demo .motion-chapter { container-type: inline-size; }
html .motion-demo .motion-chapter h3 { font-size: min(calc(clamp(72px,10vw,144px) + 3.5714px), calc((50cqw + (var(--card-right-inset, 64px) - var(--card-left-inset, 104px)) / 2 - 16px) / 3.05)); }

/* Stronger card typography; descriptions gain 5 visible pixels. */
html .motion-demo .motion-chapter { font-family: 'Noto Sans KR', sans-serif; }
html .motion-demo .motion-chapter > div > p:first-child { font-weight: 600; }
html .motion-demo .motion-chapter h3 { font-weight: 800; }
html .motion-demo .motion-chapter > div > p:nth-of-type(2) { font-size: calc(clamp(17px,2vw,24px) + 12.5px); font-weight: 600; line-height: 1.6; word-break: keep-all; overflow-wrap: anywhere; }
@media (max-width: 767px) {
 html .motion-demo .motion-chapter > div > p:nth-of-type(2) { font-size: calc(17px + 12.5px); }
}

/* Visible description sizes: mobile14px, tablet16.5px, desktop16px. */
html .motion-demo .motion-chapter > div > p:nth-of-type(2) { font-size: 28.5714px; }
@media (max-width: 991px) {
 html .motion-demo .motion-chapter > div > p:nth-of-type(2) { font-size: clamp(25px, calc(10.27px + 3.069vw), 29.4643px); }
}

/* Section dividers and yellow centre marks are intentionally omitted. */
html .motion-demo > section + section::before,
html .motion-demo > section + section::after,
html .common-ending > section::before,
html .common-ending > section::after { display: none; }
html .motion-demo > section,
html .common-ending > section { border-top: 0; border-bottom: 0; }


/* Review13–14: subordinate pages and reduced motion use content-sized sections. */
html main.motion-demo.is-static { display: block; }
html main.motion-demo.is-static > section,
html body:has(main.motion-demo.is-static) .common-ending,
html body:has(main.motion-demo.is-static) .common-ending > section { position: relative; top: auto; min-height: 0; margin-bottom: 0; box-shadow: none; border-radius: 0; }
html main.motion-demo.is-static > section,
html body:has(main.motion-demo.is-static) .common-ending > section { padding-top: 64px; padding-bottom: 64px; }
html main.motion-demo.is-static .motion-chapter,
html main.motion-demo.is-static .motion-heading { position: relative; top: auto; transform: none; }
html main.motion-demo.is-static .motion-stack { padding-bottom: 0; }
html main.motion-demo.is-static .cover-dwell { display: none; }
html main.motion-demo.is-static .motion-chapters > .container { padding-bottom: 0; }
@media (min-width: 768px) {
 html main.motion-demo.is-static > section,
 html body:has(main.motion-demo.is-static) .common-ending > section { padding-top: 96px; padding-bottom: 96px; }
}
/* A single soft edge marks the remaining home card covering motion. */
html .motion-demo.is-home-motion .motion-heading { box-shadow: 0 -12px 24px rgba(31,35,64,.06); }
html .motion-demo.is-home-motion .motion-chapter { box-shadow: 0 -12px 24px rgba(31,35,64,.06); }
@media (max-width: 767px) {
 html .motion-demo .home-intro::before,
 html .motion-demo .home-intro::after { display: none; }
}

html main.precheck-page.is-static { padding-top: 64px; padding-bottom: 64px; }
@media (min-width: 768px) { html main.precheck-page.is-static { padding-top: 96px; padding-bottom: 96px; } }

/* All menu sections use the home slide spacing. */
html main.motion-demo { --section-space: 120px; }
html main.motion-demo > section,
html body:has(main.motion-demo) .common-ending > section,
html main.precheck-page.is-static { padding-top: var(--section-space,120px) !important; padding-bottom: var(--section-space,120px) !important; }
html body:has(main.motion-demo) .common-ending { --section-space: 120px; }

@media (min-width:768px) {
 html main.motion-demo,html body:has(main.motion-demo) .common-ending { --section-space: 128px; }
}
html .motion-demo.is-home-motion .motion-chapters,
html .motion-demo.is-home-motion .motion-heading,
html .motion-demo.is-home-motion .motion-chapter { box-shadow: none; }

/* Move first-screen content up without moving the following section. */
html .motion-demo .home-intro::before,
html .motion-demo .home-intro::after { display: none; }
@media (min-width:768px) {
 html main.motion-demo > section:first-child {
  padding-top: calc(round(nearest,clamp(320px,32vh,368px),8px) - 128px) !important;
  padding-bottom: calc(var(--section-space) + 128px) !important;
 }
}

/* Keep the next section outside the opening viewport with a shorter transition. */
@media (min-width:768px) {
 html main.motion-demo > section:first-child {
  display: block;
  min-height: calc(100svh - var(--cover-header,104px) + 8px) !important;
  padding-bottom: 64px !important;
 }
 html main.motion-demo > section:nth-child(2) { padding-top: 96px !important; }
}

html .motion-demo .motion-heading > .simple-kicker { font-size: 16px; line-height: 1.4; }


html .motion-demo .motion-chapter > div > p:nth-of-type(2) { font-size: 24px; }
@media (min-width:768px) {
 /* Add 4.48 visible pixels without cancelling the column gap. */
 html .motion-demo .motion-chapter > div > p:nth-of-type(2) { padding-left: 24px; }
}


/* Line breaks and interaction dimensions are handled by the current component styles. */
html .home-intro-copy-break { display: none; }
html .motion-demo .academy-principles article:first-child { border-top:1px solid var(--academy-border);padding-top:32px; }

/* About learning areas use the same open rows as the adjoining slides. */
html .simple-page.about-page :is(.simple-subject-grid,.simple-list) {
 display: grid; grid-template-columns: 1fr; grid-auto-rows: auto; gap: 0;
 width: 100%; border-top: 1px solid var(--academy-border);
 border-radius: 0; background: transparent;
}
html .simple-page.about-page :is(.simple-subject-grid,.simple-list) article {
 display: grid; grid-template-columns: 30% minmax(0,1fr); gap: 32px;
 align-content: center; align-items: center;
 min-height: 142.5px; padding: 30px 0;
 border: 0; border-bottom: 1px solid var(--academy-border);
 border-radius: 0; background: transparent; box-shadow: none;
}
html .simple-page.about-page :is(.simple-subject-grid,.simple-list) h3 {
  line-height: 1.4; margin: 0;
}
html .simple-page.about-page :is(.simple-subject-grid,.simple-list) p {
  line-height: 1.7; margin: 0;
}
@media (max-width:767px) {
 html .simple-page.about-page :is(.simple-subject-grid,.simple-list) { max-width: 656.25px; }
 html .simple-page.about-page :is(.simple-subject-grid,.simple-list) article {
  grid-template-columns: 1fr; gap: 8px;
 }
}
/* Existing .8 content zoom yields visible 20/17px text and 525×114px rows. */





/* Separate level and description in narrow desktop windows as well. */
html .motion-demo .motion-chapter > div { column-gap: 16px; }

@media (min-width:0px) {
 html .motion-demo .motion-chapter h3 { font-size: 75px; }
 html .motion-demo .motion-chapter > div > p:nth-of-type(2) {
  font-size: 20px;
 }
}

@media (min-width:768px) {
 html .motion-demo > .simple-hero > .container {
  grid-template-columns: minmax(0,1.1fr) minmax(0,1fr);
 }
}

/* Open lists share the About diagnosis row's visible 20/17px type. */
html .motion-demo :is(.simple-list,.simple-subject-grid,.academy-principles,.elective-program,.regular-program) h3,
html .motion-demo .regular-program dt,
html .motion-demo .info-accordion summary strong,
html .motion-demo .simple-faq summary,
html .motion-demo .care-steps dt {
  line-height: 1.4;
}
html .motion-demo :is(.simple-list,.simple-subject-grid,.academy-principles,.elective-program,.regular-program,.simple-faq) p,
html .motion-demo .info-accordion summary span > span,
html .motion-demo .care-steps dd {
  line-height: 1.7;
}

@media (min-width:601px) { html .motion-demo .motion-chapter > div > p:nth-of-type(2) { font-size: 24px; } }
@media (min-width:801px) { html .motion-demo .motion-chapter > div > p:nth-of-type(2) { font-size: 26px; } }
@media (min-width:1001px) { html .motion-demo .motion-chapter > div > p:nth-of-type(2) { font-size: 28px; } }
/* Keep identical section padding, including the first-to-second transition. */
html main.motion-demo > section:first-child { padding-bottom: var(--section-space) !important; }
html main.motion-demo > section:nth-child(2) { padding-top: var(--section-space) !important; }

html .motion-demo .info-accordion .info-panel p,
html .motion-demo .info-accordion .info-panel dd {
  line-height: 1.7;
}
html .motion-demo .star-simple-head > h2 { font-size: 34px; font-weight: 700; }
html .motion-demo .star-simple-head > .simple-copy {
  line-height: 1.7;
}
html .motion-demo .star-simple-head > .course-detail-note {
  line-height: 1.7;
}

html .motion-demo .simple-steps li strong {  line-height: 1.4; }
html .motion-demo .simple-steps li span {  line-height: 1.7; }

/* Keep left-side spacing independent of the description's line count. */
html .motion-demo .motion-chapter > div {
 grid-template-rows: max-content 82.5px;
 row-gap: 16px; align-content: center;
}
html .motion-demo .motion-chapter > div > p:first-child { margin: 0; grid-row: 1; }
html .motion-demo .motion-chapter > div > p:nth-of-type(2) { grid-row: 1 / 3; align-self: center; }
html .motion-demo .motion-curriculum-action {
 display: flex; justify-content: flex-end; width: 70%; margin: 48px auto 0;
 position: relative; z-index: 4;
}

html .motion-demo .motion-curriculum-action a { text-decoration: none; }

/* Keep the desktop card composition across the header's layout changes. */
html .motion-demo .motion-chapter {
 --card-left-inset: clamp(32px,14.15vw,104px);
 --card-right-inset: clamp(24px,8.71vw,64px);
 min-height: 504px;
 padding: 64px var(--card-right-inset) 64px var(--card-left-inset);
 border-radius: 28px;
}
html .motion-demo .motion-orbit { width: 460px; height: 460px; right: -180px; }
@media (max-height:650px) {
 html .motion-demo .motion-chapter { min-height: 0; }
}

/* Keep kicker proportions continuous across menu layouts. */
html main.motion-demo .simple-kicker,
html .motion-demo .motion-heading > .simple-kicker,
html .common-ending .simple-kicker {
 font-size: clamp(20px,3.9vw,30px); line-height: 1.4;
 margin-bottom: 1em;
}
html main.motion-demo .simple-kicker::before,
html .common-ending .simple-kicker::before {
 width: .2em; height: 1em; margin-right: .4em;
}

/* Continue the 767px spacing without a tablet/desktop jump. */
html main.motion-demo,
html body:has(main.motion-demo) .common-ending {
 --section-space: clamp(120px,calc(120px + (100vw - 767px) * .01559454),128px);
}
html main.motion-demo.is-static > section:first-child {
 min-height: 0 !important;
 padding-top: var(--section-space) !important;
 padding-bottom: var(--section-space) !important;
}
