/* =================================================================
   TalkTime — 2026 redesign layer

   Loaded after site.css. It re-skins the shared parts (header, buttons,
   footer, panels), builds the home page and the step-by-step sign-up,
   and leaves the inner pages on the old bones with the new colours.

   The one motif is the speech bubble from the wordmark: a rounded block
   with a tail on its bottom-left corner. It is the hero, the buttons, the
   chat bubbles, the picture masks and the step pictures.

   Motion rule: only transform, opacity and SVG stroke are animated.
   Every start state that hides something is set by motion.js, so the
   page reads fine when scripts do not run.
   ================================================================= */

:root {
  /* Bottle-green ink on a plain warm-white ground; marigold and clover
     still come from Settings → Colors (themeStyle in layout.mjs). */
  --page: #F5F5F2;
  --canvas-top: #F5F5F2;
  --canvas: #E9E9E4;
  --canvas-bottom: #F5F5F2;
  --surface: #FFFFFF;
  --surface-sunk: #E9E9E4;
  --ink: #0D2A1C;
  --muted: #3F5247;
  --line: #DCDCD5;
  --line-input: #6E7B73;

  --wrap: 1320px;
  --gutter: clamp(20px, 5vw, 72px);
  --section-space: clamp(72px, 10vw, 160px);
  --header-offset: 88px;

  /* The bubble corner: round everywhere except the bottom-left tail. */
  --bubble: 24px 24px 24px 6px;
  --bubble-sm: 18px 18px 18px 5px;
  --radius: 22px;
  --radius-photo: 24px 24px 24px 6px;
  --radius-canvas: 0;
  --shadow-float: none; /* taste-skill-ignore */

  --tt-press: 0.96;
}

/* ---------- Shared frame: flat ground, plain bar, no pill, no shadow ---------- */

html {
  scroll-behavior: auto;
}

.canvas {
  margin: 0;
  padding-bottom: 0;
  border-radius: 0;
  background: var(--page);
}

body {
  font-size: 1.125rem;
}

.header {
  padding: 0;
  background: var(--page);
}

.header__bar {
  max-width: calc(var(--wrap) + var(--gutter) * 2);
  min-height: 76px;
  padding: 10px var(--gutter);
  border-radius: 0;
  background: transparent;
  box-shadow: none; /* taste-skill-ignore */
  outline: 0;
}

.wordmark__glyph {
  width: 34px;
  height: 34px;
  color: var(--marigold);
}

.wordmark {
  font-size: 1.375rem;
}

.nav__link {
  min-height: 44px;
  border-radius: 12px 12px 12px 3px;
  font-size: 1.0625rem;
}

.nav__link:hover {
  background: var(--canvas);
}

.nav__link.is-current {
  background: var(--marigold);
  color: var(--ink);
}

.nav__submenu {
  border-radius: var(--bubble-sm);
  box-shadow: 0 10px 30px -12px rgba(13, 42, 28, 0.35); /* taste-skill-ignore */
}

@media (max-width: 1120px) {
  .header__bar {
    padding: 8px var(--gutter);
  }

  .header__toggle {
    border-radius: 14px 14px 14px 4px;
    min-height: 48px;
  }

  .nav {
    border-radius: var(--bubble);
    box-shadow: 0 16px 40px -16px rgba(13, 42, 28, 0.4); /* taste-skill-ignore */
  }
}

/* ---------- Buttons: flat, bubble-shaped, one shape everywhere ---------- */

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 56px;
  padding: 14px 30px;
  border: 0;
  border-radius: var(--bubble-sm);
  background: var(--ink);
  color: #fff;
  font-size: 1.125rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  text-decoration: none;
  cursor: pointer;
  overflow: visible;
  transition: background-color 0.2s ease, color 0.2s ease;
  -webkit-tap-highlight-color: transparent;
}

.btn--small {
  min-height: 46px;
  padding: 8px 20px;
  font-size: 1rem;
}

.btn--big {
  min-height: 64px;
  padding: 16px 38px;
  font-size: 1.25rem;
}

.btn__dot,
.btn__reveal {
  display: none;
}

.btn__label {
  position: static;
  transform: none;
  opacity: 1;
}

.btn--primary {
  background: var(--marigold);
  color: var(--ink);
}

.btn--primary:hover {
  background: var(--ink);
  color: #fff;
}

.btn--secondary {
  background: transparent;
  color: var(--ink);
  box-shadow: none; /* taste-skill-ignore */
  outline: 0;
  border: 0;
  text-decoration: underline;
  text-decoration-thickness: 3px;
  text-underline-offset: 6px;
  text-decoration-color: var(--marigold);
}

.btn--secondary:hover {
  background: var(--canvas);
  color: var(--ink);
}

.btn--light {
  background: var(--ink);
  color: #fff;
}

.btn--light:hover {
  background: #fff;
  color: var(--ink);
}

.btn:active {
  filter: brightness(0.96);
}

.btn[disabled] {
  opacity: 0.6;
  cursor: progress;
}

:focus-visible {
  outline: 4px solid var(--ink);
  outline-offset: 4px;
  border-radius: 6px;
}

.btn:focus-visible {
  outline-color: var(--ink);
}

/* ---------- Section headings ---------- */

.section-title {
  font-size: clamp(2.25rem, 5vw, 4.25rem);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.02;
}

.section-intro {
  margin-top: 20px;
  max-width: 32em;
  font-size: clamp(1.1875rem, 1.6vw, 1.5rem);
  color: var(--muted);
}

.section-head {
  margin-bottom: clamp(32px, 5vw, 64px);
}

/* ================================================================
   Home — opening
   ================================================================ */

.open {
  position: relative;
  display: flex;
  align-items: center;
  min-height: min(calc(100svh - 76px), 900px);
  padding-block: clamp(40px, 6vw, 80px);
  overflow: hidden;
}

.open__bubble {
  position: absolute;
  top: 50%;
  right: -5vw;
  width: min(54vw, 116svh);
  aspect-ratio: 1;
  translate: 0 -50%;
  color: var(--marigold);
  pointer-events: none;
}

.open__shape {
  width: 100%;
  height: 100%;
}

.open__greet {
  position: absolute;
  inset: 0 0 auto;
  top: 39%;
  display: grid;
  translate: 0 -50%;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: clamp(3.5rem, 8.2vw, 9.5rem);
  font-weight: 700;
  letter-spacing: -0.045em;
  line-height: 1;
  text-align: center;
}

.open__word {
  grid-area: 1 / 1;
}

.open__word:not([data-rest]) {
  opacity: 0;
}

.open__inner {
  position: relative;
  z-index: 1;
}

.open__text {
  max-width: min(46vw, 40rem);
}

.open__headline {
  font-size: clamp(1.75rem, 3.15vw, 3.4rem);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.05;
}

.open__subhead {
  max-width: 28em;
  margin-top: 28px;
  font-size: clamp(1.1875rem, 1.5vw, 1.4rem);
  color: var(--muted);
}

.open__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 28px;
  margin-top: 36px;
}

.learner-line {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 16px;
  margin-top: 36px;
  font-size: 1.125rem;
  font-weight: 600;
}

.learner-line__link {
  color: var(--ink);
  text-decoration-thickness: 3px;
  text-decoration-color: var(--marigold);
  text-underline-offset: 5px;
}

@media (max-width: 900px) {
  .open {
    display: flex;
    flex-direction: column;
    min-height: 0;
    padding-block: 28px 0;
  }

  .open__text {
    max-width: none;
  }

  .open__headline {
    font-size: clamp(1.5rem, 6.4vw, 3rem);
  }

  .open__bubble {
    position: relative;
    top: auto;
    right: auto;
    order: 2;
    width: min(130vw, 880px);
    margin: 40px 0 0 -12vw;
    translate: 0 0;
  }

  .open__greet {
    font-size: min(21vw, 12rem);
  }

  .open__actions {
    margin-top: 28px;
  }
}

/* ---------- The speech wave ---------- */

.wave {
  color: var(--clover);
  padding-block: 0;
}

.wave__svg {
  width: 100%;
  height: clamp(90px, 14vw, 190px);
  overflow: visible;
}

.wave__line {
  transform-box: fill-box;
  transform-origin: center;
}

/* ================================================================
   Home — a first conversation
   ================================================================ */

.convo__list {
  display: grid;
  gap: clamp(20px, 2.5vw, 32px);
  max-width: 62rem;
  margin: 0;
  list-style: none;
}

.convo__line {
  display: grid;
  gap: 8px;
  max-width: min(34rem, 88%);
}

.convo__line--student {
  justify-self: end;
  text-align: left;
}

.convo__name {
  font-size: 1rem;
  font-weight: 700;
  color: var(--muted);
}

.convo__line--student .convo__name {
  justify-self: end;
}

.convo__bubble {
  padding: clamp(18px, 2.2vw, 28px) clamp(22px, 2.6vw, 34px);
  border-radius: var(--bubble);
  background: var(--canvas);
  color: var(--ink);
  font-size: clamp(1.25rem, 2vw, 1.75rem);
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: -0.01em;
}

.convo__line--student .convo__bubble {
  border-radius: 24px 24px 6px 24px;
  background: var(--marigold);
}

@media (max-width: 760px) {
  .convo__line {
    max-width: 94%;
  }
}

/* ================================================================
   Home — how it works (pinned: one step per screen)
   ================================================================ */

.how {
  background: var(--clover);
  color: var(--on-dark);
}

.how__pin {
  padding-block: var(--section-space);
}

.how__title {
  color: #fff;
  margin-bottom: clamp(32px, 5vw, 64px);
}

.how__steps {
  display: grid;
  gap: clamp(48px, 7vw, 96px);
  margin: 0;
  list-style: none;
}

.how__step {
  display: grid;
  grid-template-columns: minmax(160px, 22rem) minmax(0, 36rem);
  gap: clamp(24px, 5vw, 80px);
  align-items: center;
}

.how__art {
  display: flex;
  align-items: flex-end;
  gap: 10px;
  color: var(--marigold);
}

.how__bubble {
  width: clamp(88px, 12vw, 168px);
  height: auto;
}

.how__bubble--partner {
  color: #fff;
}

.how__mini-wave {
  width: clamp(70px, 9vw, 130px);
  height: auto;
  color: var(--marigold);
  align-self: center;
}

.how__step-title {
  color: #fff;
  font-size: clamp(2rem, 4.2vw, 3.5rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.05;
}

.how__step-body {
  margin-top: 16px;
  font-size: clamp(1.1875rem, 1.6vw, 1.5rem);
  color: var(--on-dark);
}

.how__dots {
  display: none;
}

/* Pinned version: motion.js adds .is-pinned and stacks the steps in one frame. */
.how.is-pinned .how__pin {
  display: flex;
  align-items: center;
  height: 100svh;
  min-height: 560px;
  padding-block: 88px 56px;
  overflow: hidden;
}

.how.is-pinned .how__wrap {
  position: relative;
  height: 100%;
}

.how.is-pinned .how__title {
  margin-bottom: 0;
}

.how.is-pinned .how__steps {
  position: absolute;
  inset: 0 var(--gutter);
  display: block;
}

.how.is-pinned .how__step {
  position: absolute;
  inset: 0;
  align-content: center;
}

.how.is-pinned .how__dots {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  display: flex;
  gap: 12px;
}

.how__dot {
  width: 44px;
  height: 8px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.35);
  transform-origin: left center;
}

.how__dot.is-on {
  background: var(--marigold);
}

@media (max-width: 760px) {
  .how__step {
    grid-template-columns: 1fr;
    gap: 20px;
    align-content: center;
  }

  .how.is-pinned .how__pin {
    padding-block: 72px 48px;
  }

  .how.is-pinned .how__title {
    font-size: 2rem;
  }
}

/* ================================================================
   Home — greetings, why, programs, bands, closing
   ================================================================ */

.section--greetings {
  padding-block: var(--section-space) 0;
}

.greetings {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 22px;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none; /* taste-skill-ignore */
  outline: 0;
  display: flex;
}

.greetings__caption {
  flex: 0 0 100%;
  grid-column: auto;
  margin-bottom: 12px;
  padding: 0;
  border: 0;
  font-size: clamp(2rem, 4.4vw, 3.5rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.05;
  color: var(--ink);
}

.greetings__caption strong {
  display: block;
}

.greeting {
  display: inline-flex;
  flex-direction: row;
  align-items: baseline;
  gap: 12px;
  margin: 0;
  padding: 14px 24px 16px;
  border: 0;
  border-radius: var(--bubble-sm);
  background: var(--canvas);
  box-shadow: none; /* taste-skill-ignore */
  outline: 0;
}

.greeting:nth-child(3n + 2) {
  background: var(--marigold);
}

.greetings__title {
  margin-bottom: 12px;
}

.greetings__sub {
  margin-bottom: 32px;
  max-width: 32em;
  color: var(--muted);
  font-size: 1.1875rem;
}

.band__for {
  margin-top: 14px;
  font-weight: 700;
  color: var(--clover);
}

.greeting__word {
  font-size: clamp(1.5rem, 2.6vw, 2.25rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.greeting__lang {
  font-size: 1rem;
  color: var(--muted);
}

.greeting:nth-child(3n + 2) .greeting__lang {
  color: var(--ink);
}

.panel,
.feature,
.bands,
.band {
  box-shadow: none; /* taste-skill-ignore */
}

.panel {
  border: 0;
  outline: 0;
  border-radius: var(--bubble);
  background: var(--canvas);
}

.panel--split > * {
  border: 0;
  background: transparent;
}

.panel--split > * + * {
  border: 0;
}

.feature__title {
  font-size: clamp(1.75rem, 2.6vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.03em;
}

.band__photo img,
.band img,
.photo img {
  border-radius: var(--radius-photo);
}

.section--closing .closing {
  border-radius: var(--bubble);
  background: var(--marigold);
  color: var(--ink);
  box-shadow: none; /* taste-skill-ignore */
}

.section--closing .closing__title,
.section--closing .closing__body {
  color: var(--ink);
}

/* ================================================================
   Footer
   ================================================================ */

.footer {
  background: var(--ink);
  color: var(--on-dark);
}

.footer a,
.footer__heading,
.footer .wordmark {
  color: #fff;
}

.footer__tagline,
.footer__legal {
  color: var(--on-dark);
}

/* ================================================================
   Sign-up — one question at a time
   ================================================================ */

.form--steps {
  max-width: 44rem;
}

.form--steps .field {
  margin-top: 24px;
}

.form--steps .field__label,
.form--steps .signup-step__note {
  font-size: 1.1875rem;
  font-weight: 600;
}

.form--steps .field__hint {
  font-size: 1.0625rem;
  color: var(--muted);
}

.form--steps .field__input {
  min-height: 60px;
  padding: 14px 18px;
  border: 3px solid var(--line-input);
  border-radius: var(--bubble-sm);
  background: #fff;
  font-size: 1.25rem;
  color: var(--ink);
}

.form--steps .field__input:focus {
  border-color: var(--ink);
  outline: 4px solid var(--marigold);
  outline-offset: 0;
}

.form--steps .field__error {
  min-height: 0;
  margin-top: 8px;
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--error);
}

.signup-step {
  min-width: 0;
  margin: 0 0 40px;
  padding: 0;
  border: 0;
}

.signup-step__question {
  padding: 0;
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.6vw, 3.5rem);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.05;
  color: var(--ink);
}

.signup-step__note {
  margin-top: 12px;
  color: var(--muted);
  font-weight: 500;
}

.form--steps .choices {
  display: grid;
  gap: 12px;
  margin-top: 8px;
}

.form--steps .choice {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 60px;
  padding: 12px 20px;
  border: 3px solid var(--line-input);
  border-radius: var(--bubble-sm);
  background: #fff;
  font-size: 1.1875rem;
  font-weight: 600;
  cursor: pointer;
}

.form--steps .choice input {
  width: 28px;
  height: 28px;
  flex: none;
  accent-color: var(--clover);
}

.form--steps .choice:has(input:checked) {
  border-color: var(--ink);
  background: var(--marigold);
}

.form--steps .choice:has(input:focus-visible) {
  outline: 4px solid var(--ink);
  outline-offset: 3px;
}

.form__consent {
  margin-top: 24px;
  max-width: 34em;
  font-size: 1.0625rem;
  color: var(--ink);
}

.signup-review {
  display: grid;
  gap: 14px;
  margin: 28px 0 0;
  padding: 24px;
  border-radius: var(--bubble);
  background: var(--canvas);
}

.signup-review dt {
  font-size: 1rem;
  font-weight: 700;
  color: var(--muted);
}

.signup-review dd {
  margin: 2px 0 0;
  font-size: 1.25rem;
  font-weight: 600;
  overflow-wrap: anywhere;
}

.signup__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 24px;
}

/* With scripts: one step on screen, Back/Next instead of one long list. */
.form--steps.is-stepper .signup-step:not(.is-current) {
  display: none;
}

.form--steps.is-stepper .signup__send {
  display: none;
}

.form--steps.is-stepper.is-last .signup__send {
  display: inline-flex;
}

.form--steps.is-stepper.is-last .signup__next {
  display: none;
}

/* The progress path: a line that fills, a dot that rides it. */
.progress {
  position: relative;
  margin-bottom: 48px;
}

.progress__text {
  margin-bottom: 14px;
  font-size: 1.125rem;
  font-weight: 700;
}

.progress__track {
  position: relative;
  height: 28px;
}

.progress__svg {
  position: absolute;
  top: 12px;
  left: 0;
  width: 100%;
  height: 4px;
  overflow: visible;
}

.progress__base,
.progress__fill {
  stroke-width: 4;
}

.progress__base {
  stroke: rgba(13, 42, 28, 0.22);
}

.progress__fill {
  stroke: var(--clover);
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  transition: stroke-dashoffset 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.progress__nodes {
  position: absolute;
  inset: 0;
  display: flex;
  justify-content: space-between;
  margin: 0;
  list-style: none;
}

.progress__node {
  position: relative;
  width: 28px;
  height: 28px;
}

.progress__node::before {
  content: '';
  position: absolute;
  inset: 6px;
  border-radius: 50%;
  background: var(--page);
  border: 4px solid rgba(13, 42, 28, 0.35);
}

.progress__node.is-done::before {
  border-color: var(--clover);
  background: var(--clover);
}

.progress__dot {
  position: absolute;
  left: 0;
  top: 0;
  width: 28px;
  height: 28px;
  border-radius: 14px 14px 14px 3px;
  background: var(--marigold);
  border: 3px solid var(--ink);
  pointer-events: none;
}

.signup-done {
  max-width: 44rem;
}

.signup-done .form-confirmation__title {
  font-size: clamp(2rem, 4.4vw, 3.25rem);
  letter-spacing: -0.03em;
  line-height: 1.05;
}

.signup-done__lead {
  margin-top: 28px;
  font-size: 1.25rem;
  font-weight: 700;
}

.signup-done__list {
  display: grid;
  gap: 12px;
  margin: 14px 0 0;
  padding-left: 1.5em;
  font-size: 1.25rem;
}

.signup-done__copy {
  margin-top: 24px;
  padding: 18px 22px;
  border-radius: var(--bubble-sm);
  background: var(--marigold);
  font-weight: 600;
}

/* ================================================================
   Between pages, and for people who want less motion
   ================================================================ */

@media (prefers-reduced-motion: no-preference) {
  @view-transition {
    navigation: auto;
  }

  ::view-transition-old(root) {
    animation: tt-out 0.22s ease both;
  }

  ::view-transition-new(root) {
    animation: tt-in 0.32s ease 0.05s both;
  }
}

@keyframes tt-out {
  to {
    opacity: 0;
  }
}

@keyframes tt-in {
  from {
    opacity: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .how.is-pinned .how__pin {
    height: auto;
  }
}

/* Greetings: words in bubbles that size to their text, not a ruled grid. */
.greetings .greeting {
  min-height: 0;
  align-self: flex-start;
  justify-content: flex-start;
}

/* The footer is dark here, so everything in it reads light. */
.footer__contact li,
.footer__contact a,
.footer__social a,
.footer__legal,
.footer__legal a,
.footer__links a {
  color: var(--on-dark);
}

.footer__legal::before {
  display: none;
}

.how__copy {
  min-width: 0;
}

/* ---------- No hairlines: surfaces are separated by tone and space ---------- */
.hero__aside {
  border-left: 0;
  border-top: 0;
}

.greetings {
  border: 0;
}

.greetings > * {
  border-right: 0;
  border-bottom: 0;
}

.panel {
  border: 0;
}

.panel--split > * + * {
  border-left: 0;
  border-top: 0;
}

.panel--grid > :nth-child(even) {
  border-left: 0;
}

.panel--grid > :nth-child(n + 3) {
  border-top: 0;
}

.panel--grid > * + * {
  border-top: 0;
}

.panel--rows > * + * {
  border-top: 0;
}

.step + .step {
  border-top: 0;
}

.steps:not(.steps--1) .step + .step {
  border-left: 0;
}

.inline-cta {
  border-block: 0;
}

.faq {
  border: 0;
}

.faq__item + .faq__item {
  border-top: 0;
}

.faq__toggle {
  border: 0;
}

.download-list {
  border: 0;
}

.contact-list {
  border: 0;
}

.download-list li + li {
  border-top: 0;
}

.contact-list li + li {
  border-top: 0;
}

.article-head {
  border-bottom: 0;
}

.fact-list {
  border: 0;
}

.fact + .fact {
  border-top: 0;
}

.callout {
  border: 0;
}

.email-panel {
  border: 0;
}

.form {
  border: 0;
}

.form__more {
  border-top: 0;
}

.person {
  border: 0;
}

.story__link {
  border: 0;
}

.quote {
  border: 0;
}

.quote__caption {
  border-top: 0;
}

.stat {
  border: 0;
}

.partner + .partner {
  border-left: 0;
}

/* Containers that lost their outline get a tone step and the bubble corner. */
.fact-list,
.faq,
.download-list,
.contact-list,
.email-panel,
.callout,
.quote,
.stat,
.person {
  background: transparent;
  border-radius: var(--bubble);
}

.fact,
.faq__item,
.download-list li,
.contact-list li {
  margin-top: 12px;
  border-radius: var(--bubble-sm);
  background: var(--canvas);
}

.fact:first-child,
.faq__item:first-child {
  margin-top: 0;
}

.email-panel,
.callout,
.quote,
.stat,
.person {
  background: var(--canvas);
}

.fact {
  padding: 20px 26px;
  font-size: 1.3125rem;
  font-weight: 500;
}

.fact__icon {
  color: var(--ink);
}

.assurance {
  border-radius: var(--bubble);
  background: var(--marigold);
}

.assurance__icon {
  color: var(--ink);
}

.assurance__text {
  color: var(--ink);
  font-weight: 600;
}

[hidden] {
  display: none !important;
}

/* ================================================================
   Practice English page
   ================================================================ */

.page-plain .page-hero {
  position: relative;
  padding-block: clamp(40px, 6vw, 88px) clamp(24px, 4vw, 48px);
  overflow: hidden;
}

.page-plain .page-hero .wrap {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  align-items: center;
  gap: 24px clamp(24px, 5vw, 80px);
}

.page-plain .page-title {
  grid-column: 1;
  font-size: clamp(3rem, 7.4vw, 7rem);
  font-weight: 700;
  letter-spacing: -0.045em;
  line-height: 0.95;
}

.page-plain .page-lead {
  grid-column: 1;
  max-width: 24em;
  font-size: clamp(1.3125rem, 2vw, 1.75rem);
}

.page-hero__pair {
  grid-column: 2;
  grid-row: 1 / span 4;
  display: flex;
  align-items: flex-end;
  gap: clamp(8px, 1.4vw, 18px);
  color: var(--marigold);
}

.page-hero__pair svg {
  width: 50%;
  height: auto;
}

.page-hero__pair svg + svg {
  color: var(--clover);
  margin-bottom: 18%;
}

@media (max-width: 760px) {
  .page-plain .page-hero .wrap {
    grid-template-columns: 1fr;
  }

  .page-hero__pair {
    grid-column: 1;
    grid-row: auto;
    max-width: 260px;
  }
}

/* The sign-up: the question on the left, the answer box on the right. */
#join .wrap {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 32px clamp(32px, 6vw, 96px);
  align-items: start;
}

#join .section-head {
  position: sticky;
  top: 108px;
  margin-bottom: 0;
}

#join .form,
#join .form-confirmation {
  grid-column: 2;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

@media (max-width: 900px) {
  #join .wrap {
    grid-template-columns: 1fr;
  }

  #join .section-head {
    position: static;
  }

  #join .form,
  #join .form-confirmation {
    grid-column: 1;
  }
}

.page-plain .section-title {
  font-size: clamp(2.25rem, 5vw, 4rem);
}

.page-plain .step__marker--icon {
  border: 0;
  background: var(--marigold);
  color: var(--ink);
  border-radius: 14px 14px 14px 4px;
}

.steps--icons .step {
  padding: 28px;
  border-radius: var(--bubble);
  background: var(--canvas);
}

.page-plain .step__body {
  font-size: 1.25rem;
  color: var(--ink);
}

/* Plain lists in large type, each with a small bubble for a bullet. */
.fact-list {
  gap: 0;
  max-width: 52rem;
  overflow: visible;
}

.fact,
.steps--icons .step {
  position: relative;
  display: block;
  margin: 0;
  padding: 0 0 0 44px;
  border-radius: 0;
  background: none;
  font-size: clamp(1.375rem, 2.4vw, 2rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.3;
}

.fact + .fact,
.steps--icons .step + .step {
  margin-top: 22px;
}

.fact__icon,
.steps--icons .step__marker {
  display: none;
}

.fact::before,
.steps--icons .step::before {
  content: '';
  position: absolute;
  top: 0.32em;
  left: 0;
  width: 26px;
  height: 20px;
  border-radius: 9px 9px 9px 2px;
  background: var(--marigold);
}

.steps--icons {
  display: block;
  max-width: 52rem;
}

.steps--icons .step__head {
  display: none;
}

.steps--icons .step__body {
  margin: 0;
  font-size: inherit;
  font-weight: inherit;
  color: var(--ink);
}

.faq {
  padding: 0;
}

.greeting__lang {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.greeting {
  position: relative;
}

/* Bullets: the legacy step rules are more specific, so these win by force. */
.fact,
.steps.steps--icons .step,
.steps.steps--icons .step + .step {
  padding: 0 0 0 46px !important;
  border: 0 !important;
}

.steps.steps--icons .step {
  display: block !important;
}

/* The hero headline is short now, so it can be big. */
.open__headline {
  font-size: clamp(2.25rem, 5vw, 5.25rem);
}

.open__text {
  max-width: min(50vw, 46rem);
}

@media (max-width: 900px) {
  .open__headline {
    font-size: clamp(2.25rem, 9vw, 4.5rem);
  }
}

.band__media {
  overflow: hidden;
  border-radius: var(--radius-photo);
}

/* ================================================================
   A made-up story: Sam and the job interview
   ================================================================ */

.story {
  padding-block: var(--section-space);
  background: var(--canvas);
}

.story__panels {
  display: grid;
  gap: clamp(48px, 7vw, 96px);
  max-width: 62rem;
}

.story__panel {
  display: grid;
  gap: 20px;
}

.story__art {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  border-radius: var(--bubble);
}

.story__chat {
  display: grid;
  gap: 12px;
}

.story__line {
  display: grid;
  gap: 2px;
  max-width: min(32rem, 92%);
  padding: 14px 22px 16px;
  border-radius: var(--bubble-sm);
  background: #fff;
  font-size: clamp(1.1875rem, 1.9vw, 1.5rem);
  font-weight: 500;
  line-height: 1.3;
}

.story__line--student {
  justify-self: end;
  border-radius: 18px 18px 5px 18px;
  background: var(--marigold);
}

.story__name {
  font-size: 1rem;
  font-weight: 700;
  color: var(--muted);
}

.story__line--student .story__name {
  color: var(--ink);
}

.story__caption {
  max-width: 34rem;
  font-size: clamp(1.25rem, 2.2vw, 1.875rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

/* Staged by script: one panel at a time while the page is pinned. */
.story.is-staged {
  padding-block: 0;
}

.story.is-staged .story__pin {
  display: flex;
  align-items: center;
  height: 100svh;
  min-height: 600px;
  padding-block: 84px 24px;
  overflow: hidden;
}

.story.is-staged .story__head {
  margin-bottom: 16px;
}

.story.is-staged .section-title {
  font-size: clamp(1.75rem, 3.4vw, 3rem);
}

.story.is-staged .section-intro {
  margin-top: 6px;
  font-size: 1.0625rem;
}

.story.is-staged .story__panels {
  grid-template-columns: minmax(0, 1fr);
  gap: 0;
  max-width: none;
}

.story.is-staged .story__panel {
  grid-area: 1 / 1;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  grid-template-areas: 'art chat' 'art caption';
  align-items: center;
  gap: 16px clamp(24px, 4vw, 64px);
}

.story.is-staged .story__art {
  grid-area: art;
}

.story.is-staged .story__chat {
  grid-area: chat;
  align-self: end;
}

.story.is-staged .story__caption {
  grid-area: caption;
  align-self: start;
}

@media (max-width: 800px) {
  .story.is-staged .story__panel {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: 'art' 'chat' 'caption';
    gap: 12px;
  }

  .story.is-staged .story__art {
    aspect-ratio: 16 / 10;
  }

  .story.is-staged .story__line {
    padding: 10px 16px 12px;
    font-size: 1.0625rem;
  }

  .story.is-staged .story__caption {
    font-size: 1.1875rem;
  }

  .story.is-staged .story__pin {
    padding-top: 76px;
  }
}

.mission {
  max-width: 28em;
  font-size: clamp(1.25rem, 2.6vw, 2.25rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.25;
  color: var(--ink);
}

.mission .tone-muted,
.tone-muted {
  color: var(--muted);
}

@media (max-width: 900px) {
  .open__headline {
    font-size: clamp(1.75rem, 7.2vw, 4rem);
  }
}

@media (max-width: 600px) {
  .open__headline {
    font-size: clamp(1.5rem, 7vw, 2.5rem);
  }

  .mission {
    font-size: 1.375rem;
  }
}

.story__panel {
  pointer-events: none;
}

.story:not(.is-staged) .story__panel {
  pointer-events: auto;
}
