/* Shared design tokens. Typography is inherited from the original StudySuomi site. */
:root {
  --ink: #292929;
  --muted: #59566a;
  --line: rgba(41, 41, 41, 0.17);
  --glass: rgba(255, 255, 255, 0.16);
  --aurora-visibility: 0;
  --sunset: 0;
  --cloud-light: 1;
  --serif: "DM Serif Display", Georgia, serif;
  --sans: Inter, Arial, sans-serif;
  --frame-width: 70vw;
  --page-gutter: 4vw;
  --header-height: max(4.5rem, 10svh);
  --desktop-title-size: 112px;
  --section-title-size: clamp(3.6rem, 7vw, 7rem);
  --section-title-leading: 1.02;
  --title-inset: clamp(24px, 4svh, 48px);
  --title-height: calc(var(--section-title-size) * var(--section-title-leading) * 2 + var(--title-inset) + var(--content-gap));
  --wordmark-size: clamp(1.55rem, min(4.8svh, 5.4vw), 3.5rem);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --frame-gap: clamp(20px, 3.4vw, 64px);
  --lesson-gap: 12px;
  --card-label-size: 1rem;
  --copy-size: clamp(0.9375rem, min(1.15vw, 1.9svh), 1rem);
  --content-gap: clamp(12px, 2svh, 24px);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  font-synthesis: none;
}
* {
  box-sizing: border-box;
}
html {
  scroll-snap-type: y mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
}
html::-webkit-scrollbar {
  display: none;
}
body {
  margin: 0;
  background: var(--sky-gradient, linear-gradient(180deg,
    #fff4cf 0%, #fde6c3 40%, #fad1b4 80%, #f9c5a7 100%));
  background-attachment: fixed;
  background-size: 100vw 100dvh;
  background-repeat: no-repeat;
  background-color: #f9c5a7;
}
button,
input,
textarea {
  font: inherit;
}
button {
  color: inherit;
  border: 0;
  background: none;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
  cursor: pointer;
}
a { color: inherit; text-decoration: none; }
button:focus-visible,
a:focus-visible {
  outline: 1px solid currentColor;
  outline-offset: 6px;
}
h1,
h2,
h3,
p,
figure {
  margin: 0;
}
h1,
h2 {
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: -0.045em;
}
h3 {
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.5;
}
p {
  font-size: var(--copy-size);
  line-height: 1.55;
}
em {
  font-family: var(--serif);
  font-weight: 400;
}
::selection {
  background: #e8b5c1;
  color: #292929;
}
.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  padding: 12px;
  background: #fff2e6;
  color: #292929;
  z-index: 100;
  transform: translateY(-180%);
}
.skip-link:focus {
  transform: translateY(0);
}

/* Nordic dusk: long horizons, quiet wind, and a moving curtain of northern light. */
.atmosphere {
  position: fixed;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: -1;
}
/* Composite the companion's white matte into the sky, below the original clouds. */
.atmosphere--companion {
  mix-blend-mode: multiply;
}
.atmosphere--companion .cloud-window {
  /* Keep the near-white matte neutral at every sky brightness. */
  filter: brightness(1.02);
}
.cloud-field {
  position: absolute;
  inset: 0;
  opacity: calc(
    (1 - var(--sunset) * 0.7) * (1 - var(--aurora-visibility) * 0.75)
  );
}
.cloud-track {
  position: absolute;
  top: var(--cloud-top);
  width: var(--cloud-width);
  aspect-ratio: 9 / 2;
  translate: 0 calc(-50% + var(--parallax, 0px));
  opacity: calc(var(--cloud-opacity, 0.5) * (1 - var(--sunset) * 0.25));
  animation: cloud-crossing var(--duration, 400s) linear var(--delay, 0s)
    infinite;
  will-change: transform;
}
.cloud-window {
  position: absolute;
  inset: 0;
  overflow: hidden;
  filter: brightness(var(--cloud-light));
  animation: cloud-evolution var(--evolution, 100s) ease-in-out var(--delay, 0s)
    infinite alternate;
}
.cloud-window img {
  position: absolute;
  left: 0;
  top: calc(var(--cloud-row) * -100%);
  width: 100%;
  height: 300%;
  max-width: none;
}
/* C and D are complete images; preserve their original proportions. */
.cloud-track-single {
  aspect-ratio: 3 / 2;
}
.cloud-track-single .cloud-window img {
  top: 0;
  height: 100%;
}
/* Compose the opening one cloud at a time; retain the other selected tracks. */
.cloud-field--composing .cloud-track:not(.cloud-track-opening) {
  visibility: hidden;
  animation-play-state: paused;
}
.cloud-field--composing .cloud-track:not(.cloud-track-opening) .cloud-window {
  animation-play-state: paused;
}
/* Position C's visible artwork, excluding its transparent canvas margins.
   Source bounds: x=58, y=252, width=1419, height=486 in a 1536 × 1024 PNG. */
.cloud-track-opening {
  top: auto;
  bottom: calc(var(--cloud-height) * -0.1);
  left: calc(var(--cloud-width) * -0.2);
  height: var(--cloud-height);
  aspect-ratio: 1419 / 486;
  translate: none;
  animation: cloud-opening-wind 300s linear 3s both;
}
.cloud-track-opening .cloud-window {
  animation: none;
}
.cloud-track-opening .cloud-window img {
  left: -4.087385%;
  top: -51.851852%;
  width: 108.245243%;
  height: 210.699588%;
}
/* M follows the supplied reference: unequal masses and shallow tapered wisps.
   Artwork bounds excluding margins: x=77, y=95, width=2040, height=529. */
.cloud-track-opening-higher {
  bottom: 40svh;
  left: 40vw;
  aspect-ratio: 2040 / 529;
  --cloud-travel: 60vw;
  animation-duration: 360s;
}
.cloud-track-opening-higher .cloud-window img {
  left: -3.774510%;
  top: -17.958412%;
  width: 108.088235%;
  height: 134.782609%;
}
/* The bottom row is one 300vw composition. Three identical copies keep
   overflowing cloud shoulders present on both sides of the loop boundary. */
.bottom-cloud-carousel {
  --opening-cloud-height: min(30svh, 42.81184vw);
  --opening-cloud-width: calc(var(--opening-cloud-height) * 1419 / 486);
  position: absolute;
  inset: 0;
  overflow: hidden;
  opacity: calc(0.23 * (1 - var(--sunset) * 0.25));
  filter: brightness(var(--cloud-light));
}
.bottom-cloud-belt {
  position: absolute;
  left: calc(var(--opening-cloud-width) * -0.2);
  bottom: 0;
  display: flex;
  width: 900vw;
  height: calc(var(--opening-cloud-height) * 1.1);
  transform: translateX(-600vw);
  animation: bottom-cloud-wind 1800s linear 3s infinite both;
  will-change: transform;
}
.bottom-cloud-cycle {
  position: relative;
  flex: 0 0 300vw;
  height: 100%;
}
.bottom-cloud {
  --art-height: calc(var(--opening-cloud-height) * var(--cloud-scale));
  position: absolute;
  left: var(--cloud-slot);
  bottom: calc(var(--art-height) * -1 * var(--cloud-sink, 0.1));
  height: var(--art-height);
  aspect-ratio: var(--art-ratio);
  overflow: hidden;
}
.bottom-cloud img {
  position: absolute;
  left: var(--crop-left);
  top: var(--crop-top);
  width: var(--canvas-width);
  height: var(--canvas-height);
  max-width: none;
}
@keyframes bottom-cloud-wind {
  from { transform: translateX(-600vw); }
  to { transform: translateX(-300vw); }
}
/* C's original mobile size spans 125vw. Fewer full-sized clouds give the
   same calm spacing on portrait screens without shrinking that opening. */
@media (max-aspect-ratio: 1 / 1) {
  .bottom-cloud--c05,
  .bottom-cloud--c08,
  .bottom-cloud--c04 {
    display: none;
  }
  .bottom-cloud--c06 { left: 104vw; }
  .bottom-cloud--c01 { left: 207vw; }
}
@keyframes cloud-opening-wind {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(var(--cloud-travel, calc(100vw + var(--cloud-width) * 0.2)));
  }
}
@keyframes cloud-crossing {
  from {
    transform: translateX(calc(-1 * var(--cloud-width) - 80px));
  }
  to {
    transform: translateX(calc(100vw + 80px));
  }
}
@keyframes cloud-evolution {
  from {
    transform: scale(0.985, 0.96) skewX(-1deg);
  }
  to {
    transform: translateY(var(--wind-lift, 6px)) scale(1.015, 1.025) skewX(1deg);
  }
}
.aurora-field {
  position: absolute;
  inset: -8% -10%;
  opacity: calc(var(--aurora-visibility) * 0.42);
  filter: brightness(0.84);
}
.aurora-canvas,
.aurora-fallback {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.aurora-canvas {
  opacity: 0;
}
.aurora-field.is-ready .aurora-canvas {
  opacity: 1;
}
.aurora-field.is-ready .aurora-fallback {
  visibility: hidden;
}
.aurora-fallback {
  transform: skewY(-15deg);
  animation: aurora-breathe 10s ease-in-out infinite alternate;
}
@keyframes aurora-breathe {
  from {
    opacity: 0.64;
  }
  to {
    opacity: 1;
  }
}

/* Shared title and content positions, with clear space for the top navigation. */
.panel {
  color: var(--ink);
  block-size: auto;
  min-block-size: 100svh;
  display: grid;
  grid-template-rows: var(--header-height) minmax(var(--title-height), max-content) minmax(auto, 1fr) max(2rem, 5svh);
  scroll-snap-align: start;
  scroll-snap-stop: always;
  position: relative;
}
.section-heading {
  grid-row: 2;
  width: calc(100% - 2 * var(--page-gutter));
  margin-inline: auto;
  display: flex;
  align-items: flex-start;
  padding-top: var(--title-inset);
}
.section-heading h2 {
  font-size: var(--section-title-size);
  line-height: var(--section-title-leading);
  text-wrap: balance;
}
.section-body {
  grid-row: 3;
  width: var(--frame-width);
  margin-inline: auto;
  display: grid;
  grid-template-rows: minmax(auto, 1fr) auto;
  row-gap: var(--content-gap);
  padding-block: clamp(12px, 1.8svh, 24px);
  position: relative;
}
.section-content {
  min-width: 0;
}
.section-content > * {
  min-width: 0;
}
.about .section-content,
.contact .section-content,
.lessons .section-content {
  display: grid;
  align-content: center;
}
.about .section-content,
.lessons .section-content {
  align-content: start;
}
.section-meta {
  min-height: 32px;
  display: flex;
  align-items: end;
  justify-content: flex-end;
  gap: 28px;
}
.section-next {
  display: inline-flex;
  align-items: center;
  gap: 15px;
  white-space: nowrap;
  font-family: var(--sans);
  font-size: 0.75rem;
  line-height: 1.5;
}
.section-next > span:last-child {
  font-size: 1.1rem;
  transition: transform 0.65s var(--ease);
}
.section-next:hover > span:last-child {
  transform: translateY(4px);
}

/* A persistent top navigation, with the wordmark on the former title scale. */
.site-header {
  color: #292929;
  position: fixed;
  left: var(--page-gutter);
  right: var(--page-gutter);
  top: 0;
  z-index: 30;
  height: var(--header-height);
  display: flex;
  align-items: center;
  gap: 24px;
  container: navigation / inline-size;
  padding-top: env(safe-area-inset-top);
  border-bottom: 1px solid var(--line);
}
.wordmark {
  font-family: var(--serif);
  font-size: var(--wordmark-size);
  line-height: 1;
  letter-spacing: -0.05em;
  white-space: nowrap;
}
.wordmark em {
  font-style: normal;
}
.wordmark-domain {
  font-size: 1em;
}
.desktop-nav {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: clamp(18px, 1.9vw, 32px);
}
.desktop-nav :is(a, button) {
  font-family: var(--sans);
  font-size: 0.8125rem;
  font-weight: 300;
  line-height: 1.5;
  white-space: nowrap;
  position: relative;
}
.desktop-nav :is(a, button)::after,
.email-note :is(a, button)::after,
.footer-links a::after {
  content: "";
  position: absolute;
  inset: auto 0 -5px;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.6s var(--ease);
}
.desktop-nav :is(a, button):hover::after,
.email-note :is(a, button):hover::after,
.footer-links a:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}
.desktop-nav .portal-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 8px 18px;
  border: 1px solid currentColor;
  border-radius: 999px;
  transition: background-color .3s var(--ease);
}
.desktop-nav .portal-button > span { display: inline; margin-left: 8px; }
.desktop-nav .portal-button::after { content: none; }
.desktop-nav .portal-button:is(:hover, :focus-visible) { background: rgba(255,255,255,.24); }
.admin-button {
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 300;
}
.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 50%;
  margin-left: auto;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 6px;
  cursor: pointer;
  transition:
    background 0.4s,
    border-color 0.4s;
}
.menu-toggle:hover {
  background: var(--glass);
  border-color: var(--ink);
}
.menu-toggle span {
  width: 16px;
  height: 1px;
  background: currentColor;
  transition: transform 0.5s var(--ease);
}
.menu-toggle[aria-expanded="true"] span:first-child {
  transform: translateY(3.5px) rotate(45deg);
}
.menu-toggle[aria-expanded="true"] span:last-child {
  transform: translateY(-3.5px) rotate(-45deg);
}
.mobile-nav[hidden] {
  display: none;
}
.mobile-nav {
  position: absolute;
  top: calc(100% + 10px);
  inset-inline: 0;
  max-height: calc(100svh - var(--header-height) - 24px);
  overflow-y: auto;
  overscroll-behavior-y: contain;
  padding: 28px;
  display: none;
  flex-direction: column;
  gap: 24px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--menu-wash, #edcfdcef);
  backdrop-filter: blur(24px);
  box-shadow: 0 14px 44px #2929290c;
}
.mobile-nav :is(a, button) {
  flex-shrink: 0;
  text-align: left;
  line-height: 1.5;
}
@media (min-width: 768px) and ((min-width: 1001px) or (min-height: 601px) or (pointer: fine)) {
  .mobile-nav :is(a, button) { font-size: 13px; font-weight: 300; }
}
@container navigation (max-width: 78rem) {
  .wordmark {
    max-width: calc(100% - 68px);
    white-space: normal;
    overflow-wrap: anywhere;
    text-align: left;
  }
  .mobile-nav:not([hidden]) {
    display: flex;
  }
  .desktop-nav,
  .admin-button {
    display: none;
  }
  .menu-toggle {
    display: flex;
  }
}
/* Intro: generous type, one invitation, and two quietly aligned statistics. */
.intro {
  grid-template-rows: var(--header-height) minmax(auto, 1fr) max(2rem, 5svh);
}
.intro .section-body {
  grid-row: 2;
  padding-block: 0;
}
.intro .section-content {
  display: flex;
  flex-direction: column;
}
.intro-message {
  width: 100%;
  max-width: 70rem;
  flex-shrink: 0;
  margin-block: auto;
  padding-block: clamp(24px, 3svh, 40px);
}
.intro-heading h1 {
  font-size: clamp(4.25rem, min(11.5vw, 16svh), 10.5rem);
  /* Shared by every layout from the first render. */
  line-height: 0.84;
  letter-spacing: -0.055em;
}
.intro-copy,
.contact-note {
  font-family: var(--sans);
  font-size: clamp(1.125rem, 1.7vw, 1.5rem);
  line-height: 1.5;
  font-weight: 300;
  letter-spacing: -0.02em;
  color: var(--ink);
  text-wrap: pretty;
}
.intro-copy {
  max-width: 54ch;
  margin-top: clamp(20px, 3svh, 36px);
}
.discovery-button {
  position: relative;
  display: block;
  width: fit-content;
  max-width: 100%;
  text-align: left;
  padding: 20px 22px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.18);
  margin-top: clamp(28px, 4svh, 44px);
  overflow: hidden;
  isolation: isolate;
  transition:
    translate 0.65s var(--ease),
    border-color 0.5s,
    background 0.5s;
}
.discovery-label {
  display: block;
  font-family: var(--sans);
  font-size: 0.75rem;
  letter-spacing: 0.01em;
  margin-bottom: 10px;
  color: var(--muted);
}
.discovery-line {
  display: flex;
  align-items: center;
  gap: 40px;
}
.discovery-line strong {
  font-size: 0.9375rem;
  font-weight: 500;
}
.arrow-circle {
  font-size: 1.35rem;
  line-height: 1;
  transition: transform 0.65s var(--ease);
}
.discovery-button:hover {
  border-color: var(--ink);
  translate: 0 -2px;
  background: rgba(255, 255, 255, 0.26);
}
.discovery-button:hover .arrow-circle {
  transform: translate(3px, -3px);
}
.intro .section-meta {
  justify-content: space-between;
}
.stats {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(24px, 4vw, 64px);
  margin: 0;
}
.stats dt {
  font-family: var(--serif);
  font-size: clamp(2rem, 3.3vw, 3.1rem);
  line-height: 1.15;
  letter-spacing: -0.035em;
}
.stats dd {
  margin: 7px 0 0;
  font-family: var(--sans);
  font-size: 0.75rem;
  line-height: 1.5;
  color: var(--muted);
}

/* About: a true circle and a consistently spaced column of original copy. */
.about-layout {
  display: grid;
  grid-template-columns: 50% 50%;
  gap: 0;
  align-items: center;
  width: 100%;
  margin-inline: auto;
}
.about-portrait {
  display: grid;
  place-items: center;
}
.photo-placeholder {
  margin: 0;
  width: min(100%, 40svh, 400px);
  aspect-ratio: 1;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  display: grid;
  place-items: center;
}
.photo-placeholder span {
  font-family: var(--sans);
  font-size: 0.75rem;
  color: var(--muted);
}
.about-body {
  min-width: 0;
  align-self: start;
}
.about-heading {
  display: grid;
  gap: 16px;
  margin-bottom: var(--content-gap);
}
.language-badge {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.42rem 1.32rem;
  border-left: 2px solid #ef8db4;
  padding-left: 0.8rem;
  font-family: var(--sans);
  font-size: 0.8125rem;
  line-height: 1.5;
}
.language-badge > span {
  display: inline-flex;
  align-items: center;
  gap: 0.42rem;
  white-space: nowrap;
}
.language-name {
  color: var(--ink);
  font-weight: 600;
}
.language-divider,
.language-level {
  color: #e96f9f;
}
.about-body p {
  color: var(--muted);
  text-wrap: pretty;
}
.about-body p + p {
  margin-top: var(--content-gap);
}

/* The original reference's lesson rows, teaching column, and full-width YKI bar. */
.lessons-layout {
  display: grid;
  grid-template-columns: minmax(0, calc(50% - var(--frame-gap))) minmax(0, 50%);
  grid-template-rows: repeat(5, minmax(min-content, 1fr)) auto;
  gap: var(--lesson-gap) var(--frame-gap);
  align-content: start;
  align-items: stretch;
}
.lessons-editorial {
  grid-column: 2;
  grid-row: 1 / span 4;
  align-self: start;
}
.lessons-editorial,
.lesson-list,
.lesson-content {
  min-width: 0;
}
.about-heading h3,
.teaching-approach h3 {
  font-family: var(--serif);
  font-size: clamp(1.5rem, 2.1vw, 2.3rem);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -0.03em;
}
.teaching-approach h3 {
  margin-bottom: var(--content-gap);
}
.teaching-approach p {
  color: var(--muted);
  line-height: 1.5;
  text-wrap: pretty;
}
.teaching-approach p + p {
  margin-top: var(--content-gap);
}
.lesson-list,
.yki-area {
  display: contents;
}
.lesson-option {
  grid-column: 1;
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 5.5rem;
  align-items: center;
  text-align: left;
  gap: 12px;
  min-width: 0;
  padding: clamp(12px, 1.1vw, 16px);
  border: 1px solid var(--line);
  border-radius: 0.8rem;
  background: rgba(255, 255, 255, 0.18);
  isolation: isolate;
  transition:
    background-color 0.24s ease,
    border-color 0.24s ease,
    box-shadow 0.24s ease;
}
.lesson-option:nth-child(1) { grid-row: 1; }
.lesson-option:nth-child(2) { grid-row: 2; }
.lesson-option:nth-child(3) { grid-row: 3; }
.lesson-option:nth-child(4) { grid-row: 4; }
.lesson-title {
  display: block;
  font-family: var(--sans);
  font-size: var(--card-label-size);
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: 0.025em;
  text-transform: uppercase;
}
.lesson-title {
  margin-bottom: 5px;
}
.lesson-description,
.teaching-approach p,
.about-body p,
.contact-form .field input,
.contact-form .field textarea,
.portal-login-form #portal-email {
  font-family: var(--sans);
  font-size: var(--copy-size);
  font-weight: 300;
}
.lesson-description {
  display: block;
  line-height: 1.4;
  color: var(--ink);
  text-wrap: pretty;
}
.lesson-description strong {
  font-weight: 500;
  color: var(--ink);
}
.lesson-price,
.yki-price {
  display: block;
  font-family: var(--sans);
  font-size: var(--card-label-size);
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  line-height: 1.2;
  text-align: center;
  white-space: nowrap;
}
.lesson-price small {
  display: block;
  font-family: var(--sans);
  font-size: 0.75rem;
  font-weight: 400;
  color: var(--muted);
  margin-top: 5px;
}
.lesson-arrow {
  display: block;
  font-size: 1.55rem;
  text-align: center;
  transition: transform 0.6s var(--ease);
}
.lessons .lesson-option:hover,
.lessons .lesson-option:focus-visible {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.48);
  box-shadow: none;
}

.yki-block {
  --yki-inset: clamp(20px, 2.5vw, 32px);
  grid-column: 1 / -1;
  grid-row: 5;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: center;
  width: 100%;
  gap: 0;
  padding: clamp(12px, 1.1vw, 16px) 0;
  border: 0;
  border-radius: 1.1rem;
  background: #292929;
  color: #fff8e9;
  text-align: left;
  transition:
    background-color 0.24s ease;
}
.yki-block:hover,
.yki-block:focus-visible {
  background: #3a3a3a;
}
.yki-heading {
  display: block;
  min-width: 0;
  padding-inline: var(--yki-inset);
  font-family: var(--serif);
  font-size: clamp(1.6rem, 2.8vw, 2.65rem);
  font-weight: 400;
  line-height: 0.9;
  letter-spacing: -0.055em;
  text-wrap: balance;
}
.yki-details {
  display: grid;
  min-width: 0;
  gap: 8px;
  padding-right: var(--yki-inset);
}
.yki-overview {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 6.75rem;
  align-items: stretch;
  min-width: 0;
}
.yki-description {
  min-width: 0;
  display: block;
  font-size: var(--copy-size);
  font-weight: 300;
  line-height: 1.4;
  color: #d5d0c7;
}
.yki-price {
  display: flex;
  align-items: center;
  justify-content: center;
  border-left: 1px solid #5a5750;
  margin-left: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.025em;
}
.yki-skills {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  font-family: var(--sans);
  font-size: 0.75rem;
  color: #fff8e9;
}
.pricing-note {
  grid-column: 1 / -1;
  grid-row: 6;
  margin-top: 0;
  font-family: var(--sans);
  font-size: 0.75rem;
  line-height: 1.5;
  color: var(--muted);
}

/* Contact: a centered introduction and three full-width, stacked fields. */
.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(24px, 3svh, 36px);
  align-content: center;
  width: min(100%, 42rem);
  margin-inline: auto;
}
.contact {
  grid-template-rows: var(--header-height) minmax(var(--title-height), max-content) minmax(auto, 1fr) auto;
}
.contact .section-body {
  grid-template-rows: minmax(auto, 1fr);
}
.contact-note {
  max-width: 54ch;
  margin-inline: auto;
  text-align: center;
}
.contact-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(20px, 3svh, 32px);
  align-content: center;
}
.field {
  min-width: 0;
  position: relative;
  border-bottom: 1px solid var(--line);
  transition: border-color 0.6s;
}
/* Keep the same single divider as the header/footer, including on focus.
   The label colour still identifies the active field. */
.field label {
  display: block;
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--muted);
  transition: color 0.4s;
}
.field:focus-within label,
.field:hover label {
  color: var(--ink);
}
.field input,
.field textarea {
  display: block;
  width: 100%;
  border: 0;
  background: none;
  color: inherit;
  padding: 14px 0;
  min-height: 52px;
  outline: 0;
  resize: none;
  line-height: 1.55;
}
.field-message {
  grid-column: 1 / -1;
}
.field textarea {
  height: clamp(100px, 15svh, 160px);
}
.form-actions {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 28px;
  flex-wrap: wrap;
}
.send-button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  min-height: 54px;
  padding: 16px 22px;
  border: 1px solid rgba(255, 232, 218, 0.45);
  border-radius: 8px;
  background: #ffe7dc;
  color: #292929;
  font-size: 0.875rem;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  transition:
    translate 0.6s var(--ease),
    background 0.5s;
}
.send-button > span {
  font-size: 1.3rem;
  transition: transform 0.6s var(--ease);
}
.send-button:hover {
  translate: 0 -2px;
  background: #fff1e8;
}
.send-button:hover > span {
  transform: translate(3px, -3px);
}
.email-note {
  font-size: 0.75rem;
  line-height: 1.8;
  color: var(--muted);
}
.email-note :is(a, button) {
  position: relative;
  display: block;
  color: var(--ink);
  overflow-wrap: anywhere;
}
.contact-footer {
  grid-row: 4;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: calc(100% - 2 * var(--page-gutter));
  block-size: var(--header-height);
  margin-inline: auto;
  border-top: 1px solid var(--line);
  padding: 0;
  font-family: var(--sans);
  font-weight: 300;
  font-size: 13px;
  line-height: 1.5;
  color: #292929;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 5px;
  flex-wrap: wrap;
}
.linkedin-button {
  display: inline-flex;
  margin-left: 18px;
  transition:
    color 0.4s,
    translate 0.4s var(--ease);
}
.linkedin-button:hover {
  color: inherit;
  translate: 0 -2px;
}
.linkedin-button svg {
  width: 15px;
  height: 15px;
  fill: currentColor;
}
.footer-links {
  display: flex;
  align-items: center;
  gap: clamp(18px, 1.9vw, 32px);
}
.footer-links a {
  position: relative;
}

/* Subtle pointer light follows the two primary controls; geometry never shifts. */
.discovery-button::before,
.send-button::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0;
  background: radial-gradient(
    180px circle at var(--pointer-x, 50%) var(--pointer-y, 50%),
    rgba(255, 255, 255, 0.35),
    transparent 80%
  );
  transition: opacity 0.55s;
}
.discovery-button:hover::before,
.send-button:hover::before {
  opacity: 1;
}
.motion-ready .section-heading,
.motion-ready .section-body {
  transition:
    opacity 0.85s var(--ease),
    translate 1s var(--ease);
}
.motion-ready .panel:not(.is-visible) .section-heading,
.motion-ready .panel:not(.is-visible) .section-body {
  opacity: 0;
  translate: 0 12px;
}
.motion-ready .panel.is-visible .section-body {
  transition-delay: 0.05s;
}
/* Only the section content fades. Its title, footer, and body never slide. */
html.fade-sections body.motion-ready .panel .section-heading,
html.fade-sections body.motion-ready .panel .section-body {
  opacity: 1;
  translate: none;
  transition: none;
}

/* The frame remains shared across every section at smaller widths. */
@media (max-width: 1000px) {
  .lessons-layout {
    grid-template-columns: 1fr;
    grid-template-rows: repeat(5, minmax(min-content, 1fr)) auto auto;
    gap: var(--lesson-gap);
  }
  .lessons-editorial {
    grid-column: 1;
    grid-row: 7;
    border-top: 1px solid var(--line);
    padding: 28px 0 0;
    margin-top: 20px;
  }
  .yki-block {
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
    padding: 20px var(--yki-inset);
  }
  .yki-heading,
  .yki-details {
    padding-inline: 0;
  }
}
@media (max-width: 640px) {
  :root {
    --page-gutter: 10vw;
    --wordmark-size: clamp(1rem, 5.9vw, 1.65rem);
    --section-title-size: clamp(2.7rem, 10vw, 4rem);
  }
  html {
    scroll-snap-type: y mandatory;
  }
  .section-heading {
    padding-right: 0;
  }
  .section-body {
    padding-block: 20px;
    row-gap: 20px;
  }
  .section-meta {
    align-items: start;
  }
  .section-next {
    white-space: normal;
    font-size: 0.75rem;
    gap: 10px;
  }
  .section-next > span:first-child {
    max-width: 24ch;
  }
  .intro-message {
    padding-block: 14px;
  }
  .intro-heading h1 {
    font-size: clamp(2.75rem, 12vw, 4.75rem);
  }
  .intro-copy,
  .contact-note {
    font-size: clamp(1.0625rem, 4.4vw, 1.25rem);
  }
  .discovery-button {
    width: 100%;
    padding: 18px 16px;
    margin-top: 28px;
  }
  .discovery-line {
    gap: 18px;
  }
  .discovery-line strong {
    font-size: 0.875rem;
    line-height: 1.5;
  }
  .discovery-label {
    font-size: 0.75rem;
    line-height: 1.5;
  }
  .intro .section-meta {
    flex-direction: column;
    gap: 24px;
  }
  .stats {
    gap: 24px;
  }
  .stats dt {
    font-size: 2rem;
  }
  .stats dd {
    font-size: 0.75rem;
  }
  .about-layout {
    grid-template-columns: 1fr;
    gap: 30px;
    min-height: 0;
  }
  .photo-placeholder {
    width: min(58%, 200px);
  }
  .about-body {
    padding-block: 0;
  }
  .about-heading {
    margin-bottom: 22px;
  }
  .language-badge {
    font-size: 0.75rem;
  }
  .lesson-option {
    grid-template-columns: minmax(0, 1fr) auto;
    padding: 12px;
    gap: 12px;
  }
  .yki-overview {
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
  }
  .yki-price {
    justify-content: flex-start;
    border-left: 0;
    margin-left: 0;
  }
  .yki-skills {
    gap: 12px;
  }
  .form-actions {
    gap: 24px;
  }
  .contact-footer {
    align-items: start;
    font-size: 0.75rem;
    gap: 12px;
  }
  .footer-brand {
    max-width: 190px;
  }
  .linkedin-button {
    margin-left: 8px;
  }
}
@media (max-height: 600px) {
  :root {
    --section-title-size: clamp(2.7rem, min(7vw, 11svh), 7rem);
    --wordmark-size: clamp(1.1rem, 4.4svh, 2rem);
  }
  html {
    scroll-snap-type: y mandatory;
  }
  .intro-heading h1 {
    font-size: clamp(2.75rem, min(11.5vw, 17svh), 6rem);
  }
  .section-body {
    padding-block: 14px;
    row-gap: 12px;
  }
  .stats dt {
    font-size: 1.7rem;
  }
  .stats {
    gap: 20px;
  }
}
/* Fitted screens keep their complete contents inside one viewport. */
html.section-deck {
  scroll-behavior: auto;
  overscroll-behavior-y: none;
}
html.section-deck.is-section-moving {
  scroll-snap-type: none;
}
.section-deck .panel {
  block-size: var(--deck-height, 100dvh);
  min-block-size: 0;
  grid-template-rows: var(--header-height) min(var(--title-height), 28dvh) minmax(0, 1fr) max(2rem, 5svh);
  overflow: clip;
}
.section-deck .intro {
  grid-template-rows: var(--header-height) minmax(0, 1fr) max(2rem, 5svh);
}
.section-deck .contact {
  grid-template-rows: var(--header-height) min(var(--title-height), 28dvh) minmax(0, 1fr) var(--header-height);
}
.section-deck .section-body {
  min-block-size: 0;
  grid-template-rows: minmax(0, 1fr) auto;
}
.section-deck .contact .section-body {
  grid-template-rows: minmax(0, 1fr);
}
.section-deck .panel .section-content {
  display: block;
  position: relative;
  min-block-size: 0;
}
.section-deck .section-content > * {
  position: absolute;
  inset-inline: 0;
  top: var(--fit-offset, 0px);
  margin-block: 0;
  transform: scale(var(--fit-scale, 1));
  transform-origin: 50% 0;
}
.section-deck .section-heading h2 {
  transform: scale(var(--heading-scale, 1));
  transform-origin: 0 0;
}
.section-deck .contact-footer {
  align-items: center;
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .cloud-track,
  .cloud-window,
  .bottom-cloud-belt,
  .aurora-fallback,
  .lessons .featured-option::before {
    animation: none;
  }
  .cloud-track {
    transform: translateX(var(--rest-x, 0vw));
  }
  .motion-ready .section-heading,
  .motion-ready .section-body {
    opacity: 1 !important;
    translate: none !important;
    transition: none !important;
  }
  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }
}

/* Active controls retain the existing geometry and typography. */
.footer-home:hover { text-decoration: underline; text-underline-offset: 4px; }
button[aria-disabled="true"] { cursor: default; }
.subscription-booking::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.subscription-card .frequency-switch { z-index: 2; }
.subscription-booking:focus-visible::after { outline: 1px solid currentColor; outline-offset: 5px; }
.contact-trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-status { font-size: .875rem; line-height: 1.5; }
.form-status:empty { display: none; }
.send-button:disabled { cursor: default; opacity: .7; translate: none; }
.page-notice[hidden] { display: none; }
.page-notice {
  position: fixed; z-index: 100; right: var(--page-gutter); bottom: 28px;
  width: min(360px, 92vw); padding: 22px 48px 22px 24px;
  border: 1px solid var(--line); border-radius: 14px;
  background: #fff8ed; color: #292929; box-shadow: 0 8px 32px #29292912;
  font-size: .875rem; line-height: 1.5;
}
.page-notice a { display: inline-block; margin-top: 12px; text-decoration: underline; text-underline-offset: 4px; }
.page-notice button { position: absolute; top: 10px; right: 12px; font-size: 1.5rem; width: 28px; height: 28px; }
