:root {
  --ink: #090c09;
  --ink-soft: #141914;
  --forest: #173b22;
  --green: #b9e653;
  --green-soft: #d9f49a;
  --paper: #f4f7f0;
  --white: #ffffff;
  --line: rgba(9, 12, 9, 0.18);
  --line-light: rgba(255, 255, 255, 0.25);
  --page: min(100% - 48px, 1280px);
  --header-height: 76px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, "Helvetica Neue", Arial, "PingFang SC", "Microsoft YaHei", sans-serif;
  font-synthesis: none;
  letter-spacing: 0;
  overflow-x: hidden;
}

button,
input,
textarea,
select {
  font: inherit;
  letter-spacing: 0;
}

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

button {
  color: inherit;
}

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

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

[hidden] {
  display: none !important;
}

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

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

.opening-scene {
  position: fixed;
  inset: 0;
  z-index: 180;
  display: grid;
  place-items: center;
  overflow: hidden;
  color: var(--green);
  background: var(--ink);
  pointer-events: none;
  transition: opacity 520ms ease 1.35s, visibility 0s linear 1.9s;
}

.opening-scene::before,
.opening-scene::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 50.5%;
  background: var(--ink);
  transition: transform 720ms cubic-bezier(.74, 0, .2, 1) 650ms;
}

.opening-scene::before {
  left: 0;
}

.opening-scene::after {
  right: 0;
}

.opening-line {
  position: absolute;
  z-index: 2;
  width: 1px;
  height: 100%;
  background: var(--green);
  transform: scaleY(0);
  transform-origin: center;
  animation: openingLine 620ms ease forwards;
}

.opening-mark {
  position: relative;
  z-index: 3;
  font-size: clamp(3rem, 10vw, 8rem);
  font-weight: 900;
  line-height: 1;
  opacity: 0;
  transform: translateY(18px);
  animation: markIn 500ms ease 180ms forwards;
}

.opening-mark span,
.brand span,
.hero h1 span,
.footer-brand strong span {
  color: var(--green);
}

body.is-ready .opening-scene {
  opacity: 0;
  visibility: hidden;
}

body.is-ready .opening-scene::before {
  transform: translateX(-100%);
}

body.is-ready .opening-scene::after {
  transform: translateX(100%);
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 80;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  height: calc(var(--header-height) + env(safe-area-inset-top));
  padding: env(safe-area-inset-top) max(24px, calc((100vw - 1280px) / 2)) 0;
  color: var(--white);
  border-bottom: 1px solid var(--line-light);
  transition: color 240ms ease, background-color 240ms ease, border-color 240ms ease;
}

.site-header.is-scrolled {
  color: var(--ink);
  background: rgba(244, 247, 240, 0.96);
  border-color: var(--line);
  backdrop-filter: blur(14px);
}

.brand {
  display: flex;
  align-items: baseline;
  gap: 10px;
  min-width: 0;
}

.brand strong {
  font-size: 1.15rem;
  font-weight: 900;
}

.brand small {
  font-size: 0.73rem;
  font-weight: 700;
  text-transform: uppercase;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 22px;
}

.header-play {
  position: relative;
  padding-block: 8px;
  font-size: 0.78rem;
  font-weight: 800;
}

.header-play::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 2px;
  left: 0;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 220ms ease;
}

.header-play:hover::after,
.header-play:focus-visible::after {
  transform: scaleX(1);
  transform-origin: left;
}

.language-toggle {
  display: grid;
  grid-template-columns: repeat(2, 34px);
  border: 1px solid currentColor;
}

.language-toggle button {
  width: 34px;
  height: 32px;
  padding: 0;
  color: inherit;
  background: transparent;
  border: 0;
  cursor: pointer;
  font-size: 0.68rem;
  font-weight: 900;
}

.language-toggle button.is-active {
  color: var(--ink);
  background: var(--green);
}

.hero {
  position: relative;
  min-height: min(86svh, 860px);
  overflow: hidden;
  color: var(--white);
  background: var(--ink);
}

.hero-word-wall {
  position: absolute;
  inset: 0;
  overflow: hidden;
  color: var(--white);
  opacity: 0.075;
  pointer-events: none;
}

.hero-word-wall span {
  position: absolute;
  font-size: 1.15rem;
  font-weight: 900;
  white-space: nowrap;
}

.hero-word-wall span:nth-child(1) { top: 14%; left: 4%; }
.hero-word-wall span:nth-child(2) { top: 25%; left: 33%; }
.hero-word-wall span:nth-child(3) { top: 12%; right: 9%; }
.hero-word-wall span:nth-child(4) { top: 45%; left: 12%; }
.hero-word-wall span:nth-child(5) { top: 60%; left: 43%; }
.hero-word-wall span:nth-child(6) { top: 38%; right: 6%; }
.hero-word-wall span:nth-child(7) { bottom: 18%; left: 5%; }
.hero-word-wall span:nth-child(8) { bottom: 8%; left: 35%; }
.hero-word-wall span:nth-child(9) { bottom: 21%; right: 8%; }
.hero-word-wall span:nth-child(10) { top: 7%; left: 55%; }
.hero-word-wall span:nth-child(11) { top: 72%; left: 22%; }
.hero-word-wall span:nth-child(12) { top: 51%; right: 27%; }

.hero-copy {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: var(--page);
  min-height: min(86svh, 860px);
  margin: 0 auto;
  padding: calc(var(--header-height) + 54px) 49% 70px 0;
}

.hero-kicker,
.section-label {
  margin: 0 0 18px;
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.hero-kicker {
  max-width: 32ch;
  color: var(--green-soft);
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.hero h1 {
  max-width: 760px;
  margin: 0;
  font-size: 5.8rem;
  font-weight: 950;
  line-height: 0.93;
  letter-spacing: 0;
}

.hero-tagline {
  max-width: 620px;
  margin: 30px 0 0;
  font-size: clamp(1.22rem, 2.6vw, 2.15rem);
  font-weight: 650;
  line-height: 1.2;
}

.primary-action,
.launch-button,
.contact-button {
  position: relative;
  z-index: 4;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: fit-content;
  min-width: 230px;
  min-height: 54px;
  margin-top: 34px;
  padding: 0 18px;
  color: var(--ink);
  background: var(--green);
  border: 1px solid var(--green);
  font-size: 0.86rem;
  font-weight: 900;
  transition: color 180ms ease, background-color 180ms ease, transform 180ms ease;
}

@media (max-height: 820px) and (min-width: 641px) {
  .hero-note {
    display: none;
  }

  .hero-copy {
    padding-bottom: 48px;
  }
}

.primary-action b,
.launch-button b,
.contact-button b,
.send-button b {
  font-size: 1.2rem;
  transition: transform 180ms ease;
}

.primary-action:hover,
.primary-action:focus-visible,
.launch-button:hover,
.launch-button:focus-visible,
.contact-button:hover,
.contact-button:focus-visible {
  color: var(--green);
  background: var(--ink);
  transform: translateY(-2px);
}

.primary-action:hover b,
.launch-button:hover b,
.contact-button:hover b,
.send-button:hover b {
  transform: translateX(5px);
}

.hero-note {
  position: absolute;
  right: auto;
  bottom: 42px;
  left: max(24px, calc((100vw - 1280px) / 2));
  z-index: 3;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  width: min(28vw, 340px);
  padding-top: 14px;
  border-top: 1px solid var(--line-light);
}

.hero-note p {
  margin: 0;
  font-size: 0.82rem;
  font-weight: 650;
  line-height: 1.5;
}

.pulse-dot {
  flex: 0 0 9px;
  width: 9px;
  height: 9px;
  margin-top: 4px;
  background: var(--green);
  border-radius: 50%;
  animation: pulse 1.8s ease-in-out infinite;
}

.hero-mascot {
  position: absolute;
  right: max(26px, calc((100vw - 1280px) / 2));
  bottom: 64px;
  z-index: 2;
  width: min(42vw, 540px);
  color: var(--green);
}

.hero-mascot svg {
  display: block;
  width: 100%;
  overflow: visible;
  animation: mascotFloat 5.4s ease-in-out infinite;
}

.hero-mascot svg > * {
  vector-effect: non-scaling-stroke;
}

.hero-branch,
.hero-limb,
.hero-claw,
.hero-body,
.hero-belly,
.hero-leg,
.hero-head,
.hero-mask,
.hero-patch,
.hero-eye,
.hero-nose,
.hero-mouth,
.hero-bite-leaf path,
.hero-leaf {
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.hero-branch { stroke-width: 7; }
.hero-limb,
.hero-body,
.hero-leg,
.hero-head { stroke-width: 5.5; }
.hero-claw,
.hero-eye,
.hero-mouth { stroke-width: 4; }
.hero-belly,
.hero-mask,
.hero-patch { stroke-width: 3; opacity: 0.72; }
.hero-nose { fill: currentColor; stroke-width: 2; }
.hero-leaf,
.hero-bite-leaf path:not(.hero-bite) { fill: rgba(185, 230, 83, 0.13); stroke-width: 4; }
.hero-bite { fill: none; stroke: var(--ink) !important; stroke-width: 8 !important; }

.hero-mascot p {
  position: absolute;
  right: 0;
  bottom: 5%;
  width: min(240px, 58%);
  margin: 0;
  padding: 15px 0 0;
  color: var(--white);
  border-top: 1px solid rgba(255, 255, 255, 0.26);
}

.hero-mascot p strong,
.hero-mascot p span {
  display: block;
}

.hero-mascot p strong {
  color: var(--green);
  font-size: 1rem;
}

.hero-mascot p span {
  margin-top: 7px;
  font-size: 0.76rem;
  line-height: 1.5;
}

.challenge-section,
.course-ad,
.about-section,
.contact-section {
  width: var(--page);
  margin: 0 auto;
}

.challenge-section {
  padding: 112px 0 96px;
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(120px, 0.34fr) 1fr minmax(220px, 0.45fr);
  gap: 34px;
  align-items: end;
  padding-bottom: 54px;
  border-bottom: 1px solid var(--line);
}

.section-heading .section-label,
.course-heading .section-label,
.about-title .section-label,
.contact-section .section-label {
  color: var(--forest);
}

.section-heading h2,
.course-heading h2,
.about-title h2,
.contact-section h2 {
  margin: 0;
  font-size: clamp(2.3rem, 5vw, 5rem);
  font-weight: 900;
  line-height: 0.98;
}

.section-heading > p:last-child {
  margin: 0;
  font-size: 0.98rem;
  line-height: 1.65;
}

.path-selector {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  border-bottom: 1px solid var(--line);
}

.path-button {
  position: relative;
  display: grid;
  grid-template-columns: 42px 1fr;
  grid-template-rows: auto auto;
  column-gap: 24px;
  min-height: 190px;
  padding: 38px 36px;
  text-align: left;
  background: transparent;
  border: 0;
  border-right: 1px solid var(--line);
  cursor: pointer;
  transition: color 220ms ease, background-color 220ms ease;
}

.path-button:last-child {
  border-right: 0;
}

.path-button > span {
  grid-row: 1 / 3;
  color: var(--forest);
  font-size: 0.72rem;
  font-weight: 900;
}

.path-button strong {
  align-self: end;
  font-size: clamp(1.6rem, 3vw, 3.15rem);
  line-height: 1.05;
}

.path-button small {
  align-self: start;
  margin-top: 12px;
  font-size: 0.85rem;
  line-height: 1.5;
}

.path-button.is-active,
.path-button:hover,
.path-button:focus-visible {
  color: var(--green);
  background: var(--ink);
}

.path-button.is-active > span,
.path-button:hover > span,
.path-button:focus-visible > span {
  color: var(--green);
}

.goal-panel {
  display: grid;
  grid-template-columns: minmax(240px, 0.7fr) 1.6fr;
  gap: 56px;
  padding: 60px 0 0;
}

.goal-intro p {
  margin: 0 0 15px;
  color: var(--forest);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.goal-intro h3 {
  max-width: 430px;
  margin: 0;
  font-size: clamp(1.65rem, 3vw, 2.8rem);
  line-height: 1.08;
}

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

.goal-button {
  position: relative;
  min-height: 132px;
  padding: 25px 42px 25px 20px;
  text-align: left;
  background: transparent;
  border: 0;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  cursor: pointer;
  transition: color 180ms ease, background-color 180ms ease;
}

.goal-button:nth-child(2n) {
  border-right: 0;
}

.goal-button::after {
  content: "";
  position: absolute;
  top: 26px;
  right: 20px;
  width: 11px;
  height: 11px;
  border: 1px solid currentColor;
  border-radius: 50%;
}

.goal-button.is-selected::after {
  background: var(--green);
  box-shadow: inset 0 0 0 3px var(--ink);
}

.goal-button strong,
.goal-button small {
  display: block;
}

.goal-button strong {
  font-size: 1.02rem;
}

.goal-button small {
  margin-top: 10px;
  color: rgba(9, 12, 9, 0.68);
  font-size: 0.78rem;
  line-height: 1.5;
}

.goal-button.is-selected,
.goal-button:hover,
.goal-button:focus-visible {
  color: var(--green);
  background: var(--ink);
}

.goal-button.is-selected small,
.goal-button:hover small,
.goal-button:focus-visible small {
  color: rgba(255, 255, 255, 0.72);
}

.launch-row {
  display: grid;
  grid-template-columns: minmax(240px, 0.7fr) minmax(0, 1.15fr) auto;
  align-items: flex-end;
  gap: 24px 56px;
  margin-top: 0;
  padding-top: 20px;
  border-top: 0;
}

.launch-row > div {
  grid-column: 2;
  padding-top: 18px;
  border-top: 1px solid var(--ink);
}

.launch-row > div span,
.launch-row > div strong {
  display: block;
}

.launch-row > div span {
  margin-bottom: 8px;
  color: var(--forest);
  font-size: 0.7rem;
  font-weight: 900;
  text-transform: uppercase;
}

.launch-row > div strong {
  font-size: clamp(1.5rem, 2.7vw, 2.6rem);
}

.launch-button {
  grid-column: 3;
  margin: 0;
}

.contact-section h2 span {
  display: block;
}

html[lang="zh-CN"] .section-heading h2,
html[lang="zh-CN"] .goal-intro h3,
html[lang="zh-CN"] .about-title h2,
html[lang="zh-CN"] .contact-section h2 {
  line-height: 1.2;
}

html[lang="zh-CN"] .about-title h2 span,
html[lang="zh-CN"] .contact-section h2 span {
  margin-bottom: 0.12em;
}

.sloth-strip {
  padding: 0;
  color: var(--green);
  background: var(--ink);
}

.sloth-line {
  display: grid;
  grid-template-columns: 170px 1fr;
  gap: 44px;
  align-items: center;
  width: var(--page);
  min-height: 330px;
  margin: 0 auto;
  padding: 60px 0;
}

.sloth-line p {
  max-width: 960px;
  margin: 0;
  font-size: clamp(2rem, 4.5vw, 5rem);
  font-weight: 900;
  line-height: 0.98;
}

.sloth-eye {
  position: relative;
  display: flex;
  justify-content: center;
  gap: 18px;
  width: 150px;
  height: 118px;
  padding-top: 30px;
  background: var(--green);
  border-radius: 46% 46% 42% 42%;
  transform: rotate(-4deg);
}

.sloth-eye::after {
  content: "";
  position: absolute;
  bottom: 22px;
  left: 50%;
  width: 34px;
  height: 14px;
  border-bottom: 4px solid var(--ink);
  border-radius: 50%;
  transform: translateX(-50%);
}

.sloth-eye i {
  width: 25px;
  height: 34px;
  background: var(--ink);
  border-radius: 50%;
  animation: blink 4.8s infinite;
}

.course-ad {
  padding: 116px 0;
}

.course-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 32px;
  padding-bottom: 50px;
  border-bottom: 1px solid var(--line);
}

.course-heading h2 {
  max-width: 760px;
}

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

.course-offers article {
  display: grid;
  grid-template-columns: 44px 1fr;
  grid-template-rows: auto 1fr auto;
  gap: 15px 20px;
  min-height: 310px;
  padding: 42px 42px 32px 0;
  border-right: 1px solid var(--line);
}

.course-offers article:last-child {
  padding-left: 42px;
  border-right: 0;
}

.course-offers article > p {
  grid-row: 1 / 4;
  margin: 2px 0 0;
  color: var(--forest);
  font-size: 0.72rem;
  font-weight: 900;
}

.course-offers h3 {
  margin: 0;
  font-size: clamp(1.6rem, 3vw, 2.8rem);
  line-height: 1.05;
}

.course-offers article > span {
  max-width: 480px;
  font-size: 0.9rem;
  line-height: 1.65;
}

.course-offers button {
  width: fit-content;
  padding: 0 0 7px;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--ink);
  cursor: pointer;
  font-size: 0.78rem;
  font-weight: 900;
}

.course-offers button:hover,
.course-offers button:focus-visible {
  color: var(--forest);
  border-color: var(--green);
}

.about-section {
  display: grid;
  grid-template-columns: 0.75fr 1.25fr;
  gap: 70px;
  padding: 110px 0;
  border-top: 1px solid var(--line);
}

.about-title h2 span {
  display: block;
}

.about-body > p {
  max-width: 720px;
  margin: 52px 0 80px;
  font-size: clamp(1.22rem, 2.2vw, 2rem);
  font-weight: 650;
  line-height: 1.45;
}

.about-facts {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  border-top: 1px solid var(--line);
}

.about-facts div {
  min-height: 150px;
  padding: 24px 24px 18px 0;
  border-right: 1px solid var(--line);
}

.about-facts div:last-child {
  padding-left: 24px;
  border-right: 0;
}

.about-facts strong,
.about-facts span {
  display: block;
}

.about-facts strong {
  font-size: clamp(2.8rem, 6vw, 5.8rem);
  line-height: 1;
}

.about-facts span {
  margin-top: 14px;
  font-size: 0.75rem;
  font-weight: 800;
}

.contact-section {
  padding: 105px 0 120px;
  text-align: center;
  border-top: 1px solid var(--line);
}

.contact-section h2 {
  max-width: 980px;
  margin: 0 auto;
}

.contact-button {
  margin: 38px auto 0;
  border: 0;
  cursor: pointer;
}

.site-footer {
  display: grid;
  grid-template-columns: 0.7fr 1.3fr;
  gap: 80px;
  padding: 72px max(24px, calc((100vw - 1280px) / 2)) 34px;
  color: var(--white);
  background: var(--ink);
}

.footer-brand strong,
.footer-brand small {
  display: block;
}

.footer-brand strong {
  font-size: clamp(2.5rem, 5vw, 5rem);
  line-height: 1;
}

.footer-brand small {
  margin-top: 18px;
  color: rgba(255, 255, 255, 0.58);
  font-size: 0.8rem;
}

.social-groups {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
}

.social-groups > div > p {
  margin: 0 0 16px;
  color: var(--green);
  font-size: 0.68rem;
  font-weight: 900;
  text-transform: uppercase;
}

.social-groups button {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  width: 100%;
  padding: 13px 0;
  color: var(--white);
  text-align: left;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line-light);
  cursor: pointer;
  font-size: 0.8rem;
}

.social-groups button span {
  color: rgba(255, 255, 255, 0.56);
  text-align: right;
}

.social-groups button:hover,
.social-groups button:focus-visible {
  color: var(--green);
}

.footer-meta {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 18px 34px;
  align-items: center;
  padding-top: 32px;
  border-top: 1px solid var(--line-light);
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.68rem;
}

.footer-meta p {
  margin: 0 0 0 auto;
}

.inquiry-dialog {
  width: min(100% - 28px, 660px);
  max-height: calc(100svh - 28px);
  padding: 0;
  color: var(--ink);
  background: var(--paper);
  border: 0;
  border-radius: 0;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.34);
}

.inquiry-dialog::backdrop {
  background: rgba(9, 12, 9, 0.82);
  backdrop-filter: blur(8px);
}

.dialog-shell {
  position: relative;
  padding: 58px 54px 48px;
}

.dialog-shell h2 {
  max-width: 520px;
  margin: 0 0 34px;
  font-size: clamp(2rem, 5vw, 3.6rem);
  line-height: 0.98;
}

.dialog-close {
  position: absolute;
  top: 18px;
  right: 18px;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  padding: 0;
  background: transparent;
  border: 1px solid var(--ink);
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.4rem;
  line-height: 1;
}

.inquiry-dialog form {
  display: grid;
  gap: 22px;
}

.inquiry-dialog label,
.inquiry-dialog label span {
  display: grid;
  gap: 9px;
}

.inquiry-dialog label span {
  font-size: 0.75rem;
  font-weight: 900;
}

.inquiry-dialog input,
.inquiry-dialog textarea,
.inquiry-dialog select {
  width: 100%;
  padding: 14px 0;
  color: var(--ink);
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--ink);
  border-radius: 0;
  outline: none;
}

.inquiry-dialog textarea {
  resize: vertical;
}

.inquiry-dialog input:focus,
.inquiry-dialog textarea:focus,
.inquiry-dialog select:focus {
  border-color: var(--forest);
  box-shadow: 0 2px 0 var(--green);
}

.dialog-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 8px;
}

.dialog-actions button {
  min-height: 48px;
  padding: 0 18px;
  border: 1px solid var(--ink);
  cursor: pointer;
  font-size: 0.78rem;
  font-weight: 900;
}

.secondary-button {
  background: transparent;
}

.send-button {
  display: inline-flex;
  align-items: center;
  gap: 28px;
  color: var(--ink);
  background: var(--green);
}

.form-note {
  min-height: 1em;
  margin: 0;
  color: #8b241d;
  font-size: 0.72rem;
}

.toast {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 220;
  max-width: min(360px, calc(100vw - 40px));
  padding: 14px 18px;
  color: var(--ink);
  background: var(--green);
  font-size: 0.78rem;
  font-weight: 800;
}

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 720ms ease, transform 720ms cubic-bezier(.2, .72, .2, 1);
}

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

@keyframes openingLine {
  to { transform: scaleY(1); }
}

@keyframes markIn {
  to { opacity: 1; transform: translateY(0); }
}

@keyframes pulse {
  0%, 100% { opacity: 0.4; transform: scale(0.75); }
  50% { opacity: 1; transform: scale(1); }
}

@keyframes mascotFloat {
  0%, 100% { transform: translateY(0) rotate(-0.5deg); }
  50% { transform: translateY(-9px) rotate(0.7deg); }
}

@keyframes blink {
  0%, 44%, 48%, 100% { transform: scaleY(1); }
  46% { transform: scaleY(0.08); }
}

@media (max-width: 900px) {
  :root {
    --page: min(100% - 36px, 1280px);
  }

  .hero-copy {
    padding-right: 44%;
  }

  .hero h1 {
    font-size: 4.2rem;
  }

  .hero-mascot {
    right: 18px;
    width: min(45vw, 450px);
  }

  .hero-note {
    left: 18px;
    width: min(42vw, 340px);
  }

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

  .section-heading > p:last-child {
    grid-column: 2;
  }

  .goal-panel {
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .launch-row {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 24px;
    align-items: center;
    margin-top: 26px;
    padding-top: 24px;
    border-top: 1px solid var(--ink);
  }

  .launch-row > div {
    grid-column: 1;
    padding-top: 0;
    border-top: 0;
  }

  .launch-button {
    grid-column: 2;
    margin-top: 0;
  }

  .sloth-line {
    grid-template-columns: 120px 1fr;
    gap: 28px;
  }

  .sloth-eye {
    width: 116px;
    height: 96px;
  }

  .about-section {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .site-footer {
    grid-template-columns: 1fr;
    gap: 50px;
  }
}

@media (max-width: 640px) {
  :root {
    --page: calc(100% - 28px);
    --header-height: 64px;
  }

  .site-header {
    padding-right: max(14px, env(safe-area-inset-right));
    padding-left: max(14px, env(safe-area-inset-left));
  }

  .brand {
    gap: 7px;
  }

  .brand strong {
    font-size: 1rem;
  }

  .brand small,
  .header-play {
    display: none;
  }

  .hero {
    min-height: 760px;
  }

  .hero-copy {
    justify-content: flex-start;
    min-height: 760px;
    padding: calc(var(--header-height) + 54px) 0 310px;
  }

  .hero h1 {
    max-width: 100%;
    font-size: 3rem;
    line-height: 0.96;
  }

  .hero-tagline {
    max-width: 27ch;
    font-size: 1.18rem;
    line-height: 1.28;
    overflow-wrap: anywhere;
  }

  .primary-action {
    width: 100%;
  }

  .hero-note {
    display: none;
  }

  .hero-mascot {
    right: 14px;
    bottom: 16px;
    width: min(82vw, 340px);
  }

  .hero-mascot p {
    right: auto;
    bottom: 4%;
    left: -2px;
    width: 50%;
  }

  .hero-word-wall span:nth-child(n + 8) {
    display: none;
  }

  .challenge-section,
  .course-ad {
    padding-block: 78px;
  }

  .section-heading {
    grid-template-columns: 1fr;
    gap: 20px;
    padding-bottom: 34px;
  }

  .section-heading > p:last-child {
    grid-column: auto;
  }

  .path-selector,
  .goal-grid,
  .course-offers,
  .social-groups {
    grid-template-columns: 1fr;
  }

  .path-button {
    min-height: 148px;
    padding: 26px 18px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .goal-button,
  .goal-button:nth-child(2n) {
    min-height: 112px;
    border-right: 0;
  }

  .launch-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 18px;
    margin-top: 24px;
    padding-top: 22px;
    border-top: 1px solid var(--ink);
  }

  .launch-row > div,
  .launch-button {
    grid-column: 1;
  }

  .launch-row > div {
    padding-top: 0;
    border-top: 0;
  }

  .launch-button {
    width: 100%;
  }

  .site-footer {
    padding-bottom: max(34px, env(safe-area-inset-bottom));
  }

  .sloth-line {
    grid-template-columns: 1fr;
    min-height: 410px;
    padding-block: 60px;
  }

  .sloth-eye {
    width: 100px;
    height: 84px;
  }

  .sloth-line p {
    font-size: 2.2rem;
  }

  .course-heading {
    display: grid;
  }

  .course-offers article,
  .course-offers article:last-child {
    min-height: 260px;
    padding: 34px 0;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .about-section {
    padding-block: 78px;
  }

  .about-body > p {
    margin-block: 35px 55px;
  }

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

  .about-facts div,
  .about-facts div:last-child {
    min-height: 128px;
    padding: 20px 0;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .site-footer {
    padding: 58px 14px 28px;
  }

  .footer-meta {
    display: grid;
  }

  .footer-meta p {
    margin: 0;
  }

  .dialog-shell {
    padding: 52px 20px 24px;
  }

  .dialog-actions {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .opening-scene {
    display: none;
  }

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