/* ==========================================================================
   SAME DREAM — COMPONENTS
   ========================================================================== */

/* ------------------------------------------------------------------ nav --- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 60;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  transition: background var(--dur-1) var(--ease-out), box-shadow var(--dur-1), backdrop-filter var(--dur-1);
}
.nav.is-stuck {
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: blur(14px) saturate(1.2);
  box-shadow: 0 1px 0 var(--ink-line);
}
.nav__inner {
  width: 100%; max-width: 1480px; margin-inline: auto;
  padding-inline: var(--gutter);
  display: flex; align-items: center; gap: 1.5rem;
}
.nav__logo { display: flex; align-items: center; gap: 0.7rem; flex: none; }
.nav__logo svg { width: 2.1rem; height: 2.1rem; }
.nav__logo-text {
  font-family: var(--font-display);
  font-variation-settings: 'opsz' 40, 'SOFT' 70, 'WONK' 1;
  font-weight: 800;
  font-size: 1.02rem;
  letter-spacing: 0.01em;
  white-space: nowrap;
}
.nav__links {
  display: flex; align-items: center; gap: clamp(0.9rem, 1.6vw, 1.9rem);
  margin-left: auto;
}
.nav__link {
  font-size: 0.88rem; font-weight: 600;
  color: var(--ink-soft);
  position: relative;
  padding-block: 0.3rem;
  white-space: nowrap;
}
.nav__link::after {
  content: '';
  position: absolute; left: 0; right: 0; bottom: 0;
  height: 2px; border-radius: 2px;
  background: var(--paint-vermilion);
  transform: scaleX(0); transform-origin: left;
  transition: transform var(--dur-1) var(--ease-out);
}
.nav__link:hover, .nav__link[aria-current="page"] { color: var(--ink); }
.nav__link:hover::after, .nav__link[aria-current="page"]::after { transform: scaleX(1); }

.lang-switch {
  display: flex; align-items: center; gap: 0.15rem;
  border: 1px solid var(--ink-line);
  border-radius: 999px;
  padding: 0.15rem;
  background: var(--paper-frame);
  flex: none;
}
.lang-switch button {
  border: 0; background: none; cursor: pointer;
  font-size: 0.76rem; font-weight: 700;
  padding: 0.28rem 0.62rem;
  border-radius: 999px;
  color: var(--ink-mute);
  transition: all var(--dur-1) var(--ease-out);
}
.lang-switch button[aria-pressed="true"] {
  background: var(--ink); color: var(--paper);
}
.lang-switch .sep { color: var(--ink-faint); font-size: 0.7rem; }

.nav__burger {
  display: none;
  width: 2.5rem; height: 2.5rem;
  border: 1px solid var(--ink-line);
  border-radius: 999px;
  background: var(--paper-frame);
  cursor: pointer;
  position: relative;
  flex: none;
}
.nav__burger span {
  position: absolute; left: 50%; top: 50%;
  width: 1.05rem; height: 1.6px;
  background: var(--ink);
  border-radius: 1px;
  transition: transform var(--dur-1) var(--ease-out), opacity var(--dur-1);
}
.nav__burger span:nth-child(1) { transform: translate(-50%, calc(-50% - 3.5px)) rotate(var(--b1, 0deg)); }
.nav__burger span:nth-child(2) { transform: translate(-50%, calc(-50% + 3.5px)) rotate(var(--b2, 0deg)); }
.nav__burger[aria-expanded="true"] { --b1: 45deg; --b2: -45deg; }
.nav__burger[aria-expanded="true"] span:nth-child(1) { transform: translate(-50%,-50%) rotate(45deg); }
.nav__burger[aria-expanded="true"] span:nth-child(2) { transform: translate(-50%,-50%) rotate(-45deg); }

.mobile-menu {
  position: fixed; inset: var(--nav-h) 0 0 0;
  background: var(--paper);
  z-index: 55;
  padding: 2rem var(--gutter) 3rem;
  display: none;
  flex-direction: column;
  gap: 0.25rem;
  overflow-y: auto;
}
.mobile-menu.is-open { display: flex; }
.mobile-menu a {
  font-family: var(--font-display);
  font-variation-settings: 'opsz' 70, 'SOFT' 55, 'WONK' 1;
  font-weight: 700;
  font-size: clamp(1.7rem, 7vw, 2.4rem);
  padding-block: 0.55rem;
  border-bottom: 1px solid var(--ink-line);
  display: flex; align-items: baseline; gap: 0.8rem;
}
.mobile-menu a .n { font-size: 0.75rem; font-family: var(--font-ui); color: var(--ink-faint); font-weight: 600; }

@media (max-width: 980px) {
  .nav__links { display: none; }
  .nav__burger { display: block; margin-left: auto; }
  .lang-switch { margin-left: auto; }
  .nav__burger { margin-left: 0; }
}

/* skip link */
.skip {
  position: absolute; left: var(--gutter); top: 0.6rem;
  z-index: 100; background: var(--ink); color: var(--paper);
  padding: 0.6rem 1rem; border-radius: 999px; font-size: 0.85rem;
  transform: translateY(-200%);
  transition: transform var(--dur-1);
}
.skip:focus { transform: none; }

/* ---------------------------------------------------------------- footer --- */
.footer {
  position: relative;
  z-index: 2;
  background: var(--paper-warm);
  border-top: 1px solid var(--ink-line);
  padding-block: clamp(3rem, 6vw, 5rem) 2rem;
  margin-top: 0;
}
.footer__grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
}
.footer__mark { width: clamp(9rem, 14vw, 12rem); }
.footer__mission { margin-top: 1.4rem; color: var(--ink-soft); max-width: 34ch; font-size: 0.95rem; }
.footer h4 { font-size: 0.72rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--ink-mute); margin-bottom: 1.1rem; }
.footer li + li { margin-top: 0.55rem; }
.footer a { color: var(--ink-soft); font-size: 0.93rem; }
.footer a:hover { color: var(--paint-vermilion); }
.footer__bottom {
  margin-top: clamp(2.5rem, 5vw, 4rem);
  padding-top: 1.4rem;
  border-top: 1px solid var(--ink-line);
  display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between;
  font-size: 0.8rem; color: var(--ink-mute);
}
@media (max-width: 760px) { .footer__grid { grid-template-columns: 1fr; gap: 2.2rem; } }

/* the quiet way in for the team */
.footer__staff {
  font-size: 0.78rem;
  color: var(--ink-faint) !important;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color var(--dur-1), border-color var(--dur-1);
}
.footer__staff:hover { color: var(--ink-soft) !important; border-bottom-color: var(--ink-line); }

/* ------------------------------------------------------------- paint field --- */
.paint-field {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

/* ------------------------------------------------------------------ hero --- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
  padding-block: calc(var(--nav-h) + 2rem) 4rem;
}
.hero__stage { position: relative; z-index: 2; }
.hero__dotwrap {
  position: relative;
  height: clamp(9rem, 22vh, 15rem);
  display: flex; align-items: center; justify-content: flex-start;
}
.hero__dotwrap .concept__svg { height: 100%; }
.hero__question {
  margin-top: clamp(1rem, 3vh, 2.5rem);
}
.hero__wordmark { margin-top: clamp(2rem, 6vh, 4rem); }
.hero__wordmark svg { width: clamp(13rem, 34vw, 30rem); height: auto; }
.hero__lede { margin-top: clamp(1.5rem, 3vh, 2.5rem); }
.hero__actions { margin-top: 2.2rem; display: flex; flex-wrap: wrap; gap: 0.9rem; }
.hero__scrollhint {
  position: absolute; left: 50%; bottom: 1.4rem;
  transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 0.4rem;
  font-size: 0.68rem; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--ink-mute); z-index: 3;
}
.hero__scrollhint svg { width: 1rem; height: 2.4rem; overflow: visible; }
.hero__scrollhint line {
  stroke: var(--ink-mute); stroke-width: 1.5; stroke-linecap: round;
  stroke-dasharray: 1;
  animation: sd-hint 2.6s var(--ease-soft) infinite;
}
@keyframes sd-hint {
  0%   { stroke-dashoffset: 1; opacity: 0; }
  25%  { opacity: 1; }
  70%  { stroke-dashoffset: 0; opacity: 1; }
  100% { stroke-dashoffset: 0; opacity: 0; }
}
html.no-motion .hero__scrollhint line { animation: none; stroke-dashoffset: 0; opacity: 0.6; }
.scroll-progress {
  position: fixed; top: 0; left: 0; height: 2px;
  background: linear-gradient(90deg, var(--paint-vermilion), var(--paint-yellow), var(--paint-cobalt), var(--paint-green));
  width: 100%; transform: scaleX(0); transform-origin: left;
  z-index: 70; pointer-events: none;
}

/* ------------------------------------------------------ concept sequence --- */
.concept {
  position: relative;
  min-height: 100svh;
  display: grid;
  align-items: center;
  overflow: hidden;
}
.concept__stage { position: relative; z-index: 2; width: 100%; }
.concept__svg { width: 100%; height: clamp(16rem, 44vh, 30rem); overflow: visible; }
.concept__copy { max-width: 44rem; margin-top: 1.6rem; }
.concept__copy .lede { max-width: 38ch; }
.concept__label { margin-bottom: 0.9rem; }
.concept__caption {
  margin-top: 2rem;
  font-family: var(--font-display);
  font-variation-settings: 'opsz' 40, 'SOFT' 80, 'WONK' 1;
  font-style: italic;
  font-size: clamp(1rem, 1.4vw, 1.25rem);
  color: var(--ink-mute);
  max-width: 30ch;
}

/* ---------------------------------------------------------- intro section --- */
.intro__quote {
  font-family: var(--font-display);
  font-variation-settings: 'opsz' 144, 'SOFT' 70, 'WONK' 1;
  font-weight: 620;
  font-size: clamp(1.9rem, 4.6vw, 3.9rem);
  line-height: 1.12;
  letter-spacing: -0.02em;
  max-width: 22ch;
}
html[lang="zh"] .intro__quote { line-height: 1.42; }
.intro__grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: clamp(2rem, 6vw, 5rem); align-items: end; }
@media (max-width: 860px) { .intro__grid { grid-template-columns: 1fr; } }
.intro__photo {
  position: relative;
  border-radius: 3px;
  overflow: hidden;
  transform: rotate(1.4deg);
  box-shadow: 0 24px 60px -30px rgba(27,24,21,0.35);
  background: var(--paper-deep);
}
.intro__photo img { width: 100%; height: auto; aspect-ratio: 3/2; object-fit: cover; }
.intro__photo figcaption {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 1.4rem 1.2rem 0.9rem;
  font-size: 0.76rem; color: #fff;
  background: linear-gradient(transparent, rgba(20,17,15,0.62));
  letter-spacing: 0.04em;
}

/* ---------------------------------------------------------- problem/solution --- */
.problem, .solution { position: relative; overflow: hidden; }
.problem { background: linear-gradient(var(--paper), var(--paper-warm)); }
.solution { background: var(--paper-warm); }

.timeline {
  position: relative;
  margin-top: clamp(2.5rem, 6vw, 4.5rem);
}
.timeline__track { width: 100%; height: auto; overflow: visible; }
.timeline__steps {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1rem;
  margin-top: 1.6rem;
}
.step { position: relative; }
.step__n {
  display: block;
  font-family: var(--font-display);
  font-variation-settings: 'opsz' 30, 'WONK' 1;
  font-size: 0.72rem; font-weight: 600;
  color: var(--ink-faint);
  letter-spacing: 0.1em;
}
.step__label { display: block; font-weight: 700; margin-top: 0.25rem; font-size: 0.98rem; }
.step__desc { display: block; font-size: 0.85rem; color: var(--ink-mute); margin-top: 0.2rem; line-height: 1.5; }
.step[data-state="broken"] .step__label { color: var(--paint-vermilion); }

.big-question {
  margin-top: clamp(3rem, 7vw, 5rem);
  font-family: var(--font-display);
  font-variation-settings: 'opsz' 120, 'SOFT' 60, 'WONK' 1;
  font-weight: 700;
  font-size: clamp(1.7rem, 3.9vw, 3.1rem);
  line-height: 1.12;
  max-width: 24ch;
}
html[lang="zh"] .big-question { line-height: 1.4; }

.flow-band {
  display: flex; flex-wrap: wrap; gap: 0.6rem;
  margin-top: 2rem;
}
.flow-chip {
  display: inline-flex; align-items: center; gap: 0.55rem;
  border: 1.5px solid var(--ink);
  border-radius: 999px;
  padding: 0.55rem 1.1rem;
  font-weight: 700; font-size: 0.9rem;
  background: var(--paper-frame);
}
.flow-chip .swatch { width: 0.7em; height: 0.7em; }
.flow-arrow { align-self: center; color: var(--ink-faint); }

/* ------------------------------------------------------------- curriculum --- */
.curriculum-map { position: relative; }
.unit-block { position: relative; padding-block: clamp(2.2rem, 5vw, 4rem); }
.unit-block + .unit-block { border-top: 1px solid var(--ink-line); }
.unit-head {
  display: flex; align-items: baseline; gap: clamp(0.8rem, 2vw, 1.8rem);
  flex-wrap: wrap;
}
.unit-head .index-number { color: var(--unit-c, var(--ink-faint)); }
.unit-title { font-size: clamp(1.6rem, 3.4vw, 2.9rem); }
.unit-intro { margin-top: 0.9rem; max-width: 52ch; color: var(--ink-soft); }
.lesson-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: clamp(0.9rem, 2.4vw, 2.2rem);
  align-items: center;
  padding-block: 1.05rem;
  border-bottom: 1px solid var(--ink-line);
  transition: background var(--dur-1), padding-inline var(--dur-1) var(--ease-out);
  position: relative;
}
.lesson-row:first-of-type { margin-top: clamp(1.5rem, 3vw, 2.5rem); border-top: 1px solid var(--ink-line); }
.lesson-row:hover, .lesson-row:focus-visible { background: var(--paper-frame); padding-inline: 0.9rem; }
.lesson-row__n {
  display: block;
  font-family: var(--font-display);
  font-variation-settings: 'opsz' 40, 'WONK' 1;
  font-weight: 600;
  color: var(--ink-faint);
  font-variant-numeric: tabular-nums;
  min-width: 2.6rem;
}
.lesson-row__title { display: block; font-weight: 700; font-size: clamp(1rem, 1.4vw, 1.15rem); }
.lesson-row__intro { display: block; font-size: 0.86rem; color: var(--ink-mute); margin-top: 0.15rem; max-width: 62ch; }
.lesson-row__meta { display: flex; align-items: center; gap: 0.8rem; font-size: 0.78rem; color: var(--ink-mute); white-space: nowrap; }
.node-dot {
  width: 0.8rem; height: 0.8rem; border-radius: 50%;
  background: var(--unit-c, var(--ink));
  flex: none;
  transition: transform var(--dur-1) var(--ease-out);
}
.lesson-row:hover .node-dot, .lesson-row:focus-visible .node-dot { transform: scale(1.5); }

/* curriculum constellation on homepage */
.constellation {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  max-height: 70vh;
}
.constellation svg { width: 100%; height: 100%; overflow: visible; }
.constellation .cnode { cursor: pointer; }
.constellation .cnode circle { transition: r var(--dur-1) var(--ease-out), opacity var(--dur-1); }
.constellation .cnode:hover circle, .constellation .cnode:focus circle { r: 11; }
.constellation .cnode text {
  font-family: var(--font-ui);
  font-size: 11px; font-weight: 700;
  fill: var(--ink-soft);
  opacity: 0;
  transition: opacity var(--dur-1);
  pointer-events: none;
}
.constellation .cnode:hover text, .constellation .cnode:focus text { opacity: 1; }

/* ---------------------------------------------------------- resource cards --- */
.res-list { display: grid; gap: 0; border-top: 1px solid var(--ink-line); }
.res-card {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: clamp(1rem, 2.6vw, 2.4rem);
  align-items: center;
  padding-block: clamp(1.1rem, 2.4vw, 1.6rem);
  border-bottom: 1px solid var(--ink-line);
  transition: background var(--dur-1);
}
.res-card:hover { background: var(--paper-frame); }
.res-card__n {
  display: block;
  font-family: var(--font-display);
  font-variation-settings: 'opsz' 30, 'WONK' 1;
  color: var(--ink-faint); font-size: 0.9rem; min-width: 2rem;
}
.res-card__type { display: block; font-weight: 700; letter-spacing: -0.01em; }
.res-card__desc { display: block; font-size: 0.86rem; color: var(--ink-mute); margin-top: 0.2rem; }
.badge {
  display: inline-flex; align-items: center; gap: 0.4rem;
  font-size: 0.7rem; font-weight: 700; letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.32rem 0.7rem;
  border-radius: 999px;
  border: 1px solid var(--ink-line);
  color: var(--ink-mute);
  background: var(--paper-warm);
  white-space: nowrap;
}
.badge--soon { border-style: dashed; }
.badge--available { background: var(--paint-green); border-color: var(--paint-green); color: #fff; }

/* empty / coming-soon frame */
.coming-soon-frame {
  position: relative;
  border: 1.5px dashed var(--ink-faint);
  border-radius: 4px;
  padding: clamp(1.6rem, 4vw, 2.6rem);
  background:
    linear-gradient(var(--paper-frame), var(--paper-frame)) padding-box,
    var(--paper-warm);
}
.coming-soon-frame svg { width: 3.2rem; height: auto; margin-bottom: 1rem; }

/* --------------------------------------------------------------- meta row --- */
.meta-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(9rem, 1fr));
  gap: 1.5rem 2rem;
  margin-top: 2.4rem;
  padding-top: 1.6rem;
  border-top: 1px solid var(--ink-line);
}
.meta-grid dt {
  font-size: 0.68rem; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--ink-mute); font-weight: 700;
}
.meta-grid dd { margin-top: 0.35rem; font-weight: 600; font-size: 0.95rem; }

/* ------------------------------------------------------------- breadcrumbs --- */
.crumbs {
  display: flex; flex-wrap: wrap; gap: 0.45rem; align-items: center;
  font-size: 0.8rem; color: var(--ink-mute);
}
.crumbs a:hover { color: var(--paint-vermilion); }
.crumbs .sep { color: var(--ink-faint); }

/* ---------------------------------------------------------- how it works --- */
.hiw-loop {
  position: relative;
  margin-top: clamp(2.5rem, 6vw, 4rem);
}
.hiw-steps {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1rem;
}
.hiw-step { position: relative; padding-top: 1.2rem; }
.hiw-step::before {
  content: '';
  position: absolute; top: 0; left: 0; right: -1rem;
  height: 2px;
  background: var(--ink-line);
}
.hiw-step:last-child::before { right: 0; }
.hiw-step__n {
  font-family: var(--font-display);
  font-variation-settings: 'opsz' 30, 'WONK' 1;
  font-size: 0.78rem; color: var(--paint-vermilion); font-weight: 700;
}
.hiw-step__t { font-weight: 700; margin-top: 0.3rem; font-size: 0.98rem; }
.hiw-step__d { font-size: 0.82rem; color: var(--ink-mute); margin-top: 0.25rem; line-height: 1.5; }
.hiw-cycle {
  margin-top: clamp(2.5rem, 5vw, 4rem);
  display: flex; justify-content: center;
}
.hiw-cycle svg { width: min(100%, 40rem); height: auto; overflow: visible; }
@media (max-width: 900px) { .hiw-steps { grid-template-columns: repeat(2, 1fr); gap: 1.6rem; } .hiw-step::before { display: none; } }

/* ------------------------------------------------------------------ impact --- */
.impact-path { position: relative; margin-top: clamp(2.5rem, 6vw, 4.5rem); }
.impact-track { width: 100%; height: auto; overflow: visible; }
.phases {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1.4rem, 3vw, 2.6rem);
  margin-top: 1.5rem;
}
.phase {
  position: relative;
  padding: clamp(1.4rem, 3vw, 2.2rem);
  border: 1px solid var(--ink-line);
  border-radius: 6px;
  background: var(--paper-frame);
}
.phase--active { border-color: var(--ink); box-shadow: 0 18px 44px -30px rgba(27,24,21,0.4); }
.phase__n { font-family: var(--font-display); font-variation-settings: 'opsz' 30, 'WONK' 1; color: var(--ink-faint); font-size: 0.85rem; }
.phase__t { font-family: var(--font-display); font-variation-settings: 'opsz' 60, 'SOFT' 40, 'WONK' 1; font-weight: 700; font-size: clamp(1.2rem, 2vw, 1.6rem); margin-top: 0.4rem; }
.phase__d { margin-top: 0.7rem; font-size: 0.9rem; color: var(--ink-soft); line-height: 1.6; }
.phase__meta { margin-top: 1.1rem; }
.phase__months { font-size: 0.74rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-mute); font-weight: 700; }
@media (max-width: 800px) { .phases { grid-template-columns: 1fr; } }

.measure-list { display: grid; gap: 1.6rem; }
.measure h4 { font-size: 0.72rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--paint-cobalt); }
.measure p { margin-top: 0.4rem; color: var(--ink-soft); font-size: 0.93rem; max-width: 58ch; }

/* ------------------------------------------------------------------- team --- */
.team-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  gap: clamp(1.4rem, 3vw, 2.4rem);
}
.person {
  padding: clamp(1.4rem, 3vw, 2rem);
  border: 1px solid var(--ink-line);
  border-radius: 6px;
  background: var(--paper-frame);
  position: relative;
  overflow: hidden;
}
.person__mono {
  font-family: var(--font-display);
  font-variation-settings: 'opsz' 144, 'SOFT' 0, 'WONK' 1;
  font-weight: 300;
  font-size: clamp(2.6rem, 5vw, 3.6rem);
  line-height: 0.85;
  letter-spacing: -0.03em;
  color: var(--ink);
}
.person__mono .dot { color: var(--paint-vermilion); }
.person__name { font-weight: 700; margin-top: 1.6rem; font-size: 1.05rem; }
.person__role { font-size: 0.85rem; color: var(--ink-mute); margin-top: 0.2rem; }
.person__bio { font-size: 0.88rem; color: var(--ink-soft); margin-top: 0.8rem; line-height: 1.6; }

/* ------------------------------------------------------------------- join --- */
.join-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
@media (max-width: 860px) { .join-grid { grid-template-columns: 1fr; } }
.check-list li {
  display: flex; gap: 0.75rem; align-items: flex-start;
  padding-block: 0.7rem;
  border-bottom: 1px solid var(--ink-line);
  font-size: 0.95rem;
}
.check-list li:last-child { border-bottom: 0; }
.check-list .mark { color: var(--paint-green); flex: none; font-weight: 700; }
.subject-tags { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1.2rem; }
.tag {
  border: 1px solid var(--ink-line); border-radius: 999px;
  padding: 0.35rem 0.9rem; font-size: 0.82rem; font-weight: 600;
  background: var(--paper-frame);
  color: var(--ink-soft);
}
.tag--art { border-color: var(--paint-vermilion); color: var(--paint-vermilion); }

/* contact card */
.contact-card {
  padding: clamp(1.6rem, 4vw, 2.6rem);
  background: var(--ink);
  color: var(--paper);
  border-radius: 8px;
  position: relative;
  overflow: hidden;
}
.contact-card .display-md { color: var(--paper); }
.contact-card p { color: color-mix(in srgb, var(--paper) 72%, transparent); }
.contact-card .btn { --btn-ink: var(--paper); }
.contact-mail {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: clamp(0.9rem, 1.4vw, 1.05rem);
  letter-spacing: 0.01em;
  color: var(--paper);
  text-decoration: none;
  border-bottom: 1px solid color-mix(in srgb, var(--paper) 35%, transparent);
  padding-bottom: 0.1em;
  overflow-wrap: anywhere;
  transition: border-color var(--dur-1) var(--ease-out);
}
.contact-mail:hover { border-bottom-color: var(--paper); }

/* ------------------------------------------------------------ page header --- */
.page-head { padding-top: calc(var(--nav-h) + clamp(2.5rem, 7vw, 5.5rem)); }
.page-head .display-lg { max-width: 26ch; }
.page-head .lede { margin-top: 1.4rem; }

/* -------------------------------------------------------------- archives --- */
.archive-unit { margin-top: clamp(2.5rem, 6vw, 4.5rem); }
.archive-lesson {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: clamp(1rem, 2.4vw, 2.2rem);
  align-items: baseline;
  padding-block: 1.1rem;
  border-bottom: 1px solid var(--ink-line);
}
.archive-lesson:hover { background: var(--paper-frame); }

/* progress meter */
.meter { display: flex; align-items: center; gap: 0.7rem; }
.meter__bar { flex: 1; height: 5px; background: var(--ink-line); border-radius: 99px; overflow: hidden; }
.meter__fill { height: 100%; background: var(--paint-vermilion); border-radius: 99px; transform-origin: left; transform: scaleX(var(--p, 0)); }

/* status strip */
.status-strip {
  display: flex; flex-wrap: wrap; gap: 0.8rem; align-items: center;
  padding: 1.1rem 1.4rem;
  border: 1px dashed var(--ink-faint);
  border-radius: 6px;
  background: var(--paper-warm);
  font-size: 0.88rem;
  color: var(--ink-soft);
}
