/*
 * Seven Letters V6
 * A correspondence-led product system: paper, ink, arrival, reply.
 */

:root {
  --v6-paper: #eee5d6;
  --v6-paper-light: #faf5eb;
  --v6-paper-deep: #d8c9b4;
  --v6-ink: #151513;
  --v6-night: #111719;
  --v6-night-soft: #1a2224;
  --v6-wine: #702330;
  --v6-gold: #b58b4b;
  --v6-green: #3d5b4c;
  --v6-muted: #6f685f;
  --v6-line: rgba(39, 31, 24, 0.16);
  --v6-light-line: rgba(255, 255, 255, 0.14);
  --v6-serif: "Songti SC", "STSong", "Noto Serif CJK SC", Georgia, serif;
  --v6-sans: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
  --v6-shadow-soft: 0 16px 38px rgba(45, 31, 20, 0.11);
  --v6-shadow-float: 0 32px 80px rgba(40, 27, 18, 0.2);
}

:where(.v6-home, .v6-course) {
  color: var(--v6-ink);
  background: var(--v6-paper);
}

:where(.v6-home, .v6-course) ::selection,
body[data-v5-unit] ::selection,
body[data-v5-resource] ::selection { color: #fffaf0; background: var(--v6-wine); }

:where(.v6-home, .v6-course) :where(a, button) { -webkit-tap-highlight-color: transparent; }
:where(.v6-home, .v6-course) :where(a, button):focus-visible,
body[data-v5-unit] :where(a, button, input):focus-visible,
body[data-v5-resource] :where(a, button, input):focus-visible {
  outline: 2px solid var(--v6-gold);
  outline-offset: 5px;
}

.v6-header {
  min-height: 74px;
  padding-inline: clamp(22px, 4.8vw, 78px);
  border-color: rgba(42, 32, 24, 0.13);
  background: rgba(238, 229, 214, 0.88);
}
.v6-header .v4-mark b { letter-spacing: 0.22em; }
.v6-header .header-enter {
  min-height: 38px;
  padding: 0 18px;
  border-color: rgba(21, 21, 19, 0.58);
  border-radius: 0;
  color: var(--v6-ink);
  transition: color 180ms ease, background 180ms ease;
}
.v6-header .header-enter:hover { color: var(--v6-paper-light); background: var(--v6-ink); }

/* Public invitation */
.v6-hero {
  position: relative;
  display: grid;
  min-height: calc(100svh - 74px);
  padding: clamp(76px, 8vw, 125px) clamp(24px, 6.5vw, 106px);
  align-items: center;
  gap: clamp(58px, 8vw, 128px);
  grid-template-columns: minmax(0, 0.86fr) minmax(480px, 1.14fr);
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(55, 42, 31, 0.04) 1px, transparent 1px) 0 0 / 25% 100%,
    radial-gradient(circle at 9% 17%, rgba(112, 35, 48, 0.1), transparent 27%),
    linear-gradient(132deg, #f6efe4 0%, var(--v6-paper) 58%, #e3d5c1 100%);
}
.v6-hero::after {
  position: absolute;
  top: 0;
  right: 5%;
  width: 1px;
  height: 100%;
  background: rgba(42, 32, 24, 0.1);
  content: "";
}
.v6-hero-copy { position: relative; z-index: 2; max-width: 720px; }
.v6-hero-copy .v4-kicker { margin-bottom: 34px; color: var(--v6-wine); }
.v6-hero-title { display: flex; align-items: flex-start; gap: 16px; }
.v6-hero-title > span {
  margin-top: 13px;
  color: var(--v6-gold);
  font: italic 0.7rem Georgia, serif;
  letter-spacing: 0.12em;
  writing-mode: vertical-rl;
}
.v6-hero h1 {
  margin: 0;
  color: var(--v6-wine);
  font-family: var(--v6-serif);
  font-size: clamp(5.5rem, 10vw, 10.6rem);
  font-weight: 500;
  letter-spacing: -0.085em;
  line-height: 0.84;
}
.v6-hero-promise {
  margin: clamp(36px, 5vw, 66px) 0 0 33px;
  font-family: var(--v6-serif);
  font-size: clamp(2.4rem, 3.35vw, 4.25rem);
  letter-spacing: -0.055em;
  line-height: 1.18;
}
.v6-hero-lead {
  max-width: 600px;
  margin: 28px 0 0 33px;
  color: #50483f;
  font-family: var(--v6-serif);
  font-size: clamp(1rem, 1.22vw, 1.18rem);
  line-height: 2;
}
.v6-hero-actions { display: flex; margin: 34px 0 0 33px; align-items: center; gap: 25px; flex-wrap: wrap; }
.v6-hero-actions .v4-button { min-width: 190px; }
.v6-sequence {
  display: flex;
  margin: 42px 0 0 33px;
  align-items: center;
  color: var(--v6-muted);
  font-family: var(--v6-serif);
  font-size: 0.74rem;
  gap: 10px;
  white-space: nowrap;
}
.v6-sequence i { width: 18px; height: 1px; background: rgba(112, 35, 48, 0.42); }

.v6-letter-portrait { position: relative; z-index: 2; width: min(100%, 760px); margin: auto; }
.v6-letter-matte {
  position: relative;
  display: grid;
  min-height: min(70vh, 680px);
  padding: clamp(40px, 5vw, 75px);
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #f8f2e8;
  background:
    linear-gradient(90deg, transparent 0 49.8%, rgba(255, 255, 255, 0.05) 49.8% 50%, transparent 50%),
    linear-gradient(var(--v6-night-soft), var(--v6-night));
  box-shadow: var(--v6-shadow-float);
}
.v6-letter-matte::before {
  position: absolute;
  inset: 22px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  content: "";
}
.v6-letter-shadow {
  position: absolute;
  top: 29%;
  right: 4%;
  left: 4%;
  aspect-ratio: 4029 / 1167;
  border: 1px solid rgba(248, 241, 228, 0.15);
  background: #b7a790;
  transform: rotate(4deg);
}
.v6-letter-sheet {
  position: relative;
  z-index: 2;
  width: 111%;
  padding: clamp(12px, 1.6vw, 23px);
  border: 1px solid rgba(38, 29, 22, 0.28);
  background: #dedbd2;
  box-shadow: 0 24px 54px rgba(0, 0, 0, 0.34);
  transform: rotate(-2.2deg);
}
.v6-letter-sheet img { width: 100%; filter: saturate(0.67) sepia(0.1) contrast(1.15) brightness(1.03); }
.v6-postmark {
  position: absolute;
  z-index: 4;
  right: 7.5%;
  bottom: 7.5%;
  display: grid;
  width: 112px;
  height: 112px;
  place-items: center;
  align-content: center;
  border: 1px solid rgba(224, 190, 145, 0.5);
  border-radius: 50%;
  color: #e4c08d;
  background: rgba(112, 35, 48, 0.94);
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.28);
}
.v6-postmark::before { position: absolute; inset: 8px; border: 1px solid rgba(255, 241, 216, 0.32); border-radius: 50%; content: ""; }
.v6-postmark b { font-family: var(--v6-serif); font-size: 1.8rem; font-weight: 500; line-height: 1; }
.v6-postmark span { margin-top: 8px; font-size: 0.46rem; font-weight: 800; letter-spacing: 0.14em; }
.v6-seal-rail {
  position: absolute;
  z-index: 3;
  top: 33px;
  left: 32px;
  display: flex;
  margin: 0;
  padding: 0;
  gap: 6px;
  list-style: none;
}
.v6-seal-rail li { display: grid; width: 26px; height: 26px; place-items: center; border: 1px solid rgba(224, 190, 145, 0.4); border-radius: 50%; color: #d9b983; font: italic 0.58rem Georgia, serif; }
.v6-letter-portrait figcaption { display: flex; margin-top: 16px; justify-content: space-between; color: var(--v6-muted); font-size: 0.61rem; letter-spacing: 0.06em; }

.v6-section-index { color: var(--v6-wine); font: italic 0.75rem Georgia, serif; }
.v6-manifesto {
  display: grid;
  max-width: 1320px;
  margin: auto;
  padding: clamp(125px, 16vw, 225px) 30px;
  align-items: start;
  gap: clamp(38px, 6vw, 88px);
  grid-template-columns: 52px minmax(320px, 0.95fr) minmax(360px, 1.05fr);
}
.v6-manifesto h2,
.v6-arrival h2,
.v6-journey h2,
.v6-closing h2 {
  margin: 0;
  font-family: var(--v6-serif);
  font-size: clamp(3rem, 5.3vw, 6rem);
  font-weight: 500;
  letter-spacing: -0.06em;
  line-height: 1.12;
}
.v6-manifesto-copy { padding-top: 51px; }
.v6-manifesto-copy p { max-width: 610px; color: #4f473f; font-family: var(--v6-serif); font-size: 1.08rem; line-height: 2.06; }
.v6-manifesto-copy p + p { margin-top: 23px; }

.v6-arrival {
  display: grid;
  min-height: 920px;
  color: #f6efe4;
  background: var(--v6-night);
  grid-template-columns: 1fr 1fr;
}
.v6-arrival-object {
  position: relative;
  display: flex;
  min-height: 720px;
  padding: clamp(50px, 7vw, 105px);
  justify-content: space-between;
  flex-direction: column;
  overflow: hidden;
  border-right: 1px solid var(--v6-light-line);
  background:
    radial-gradient(circle at 54% 48%, rgba(112, 35, 48, 0.42), transparent 32%),
    linear-gradient(135deg, #1e292b, #0c1112 72%);
}
.v6-arrival-object::before {
  position: absolute;
  inset: 8%;
  border: 1px solid rgba(255, 255, 255, 0.1);
  content: "";
}
.v6-arrival-number { position: relative; z-index: 2; display: flex; align-items: flex-start; gap: 25px; }
.v6-arrival-number strong { font-family: Georgia, serif; font-size: clamp(8rem, 15vw, 16rem); font-weight: 400; letter-spacing: -0.09em; line-height: 0.76; }
.v6-arrival-number span { margin-top: 13px; color: #d6b47e; font-size: 0.58rem; font-weight: 800; letter-spacing: 0.15em; line-height: 1.8; }
.v6-arrival-track { position: relative; z-index: 2; display: grid; padding-inline: 8px; align-items: center; grid-template-columns: repeat(7, 1fr); }
.v6-arrival-track::before { position: absolute; right: 8px; left: 8px; height: 1px; background: rgba(214, 180, 126, 0.42); content: ""; }
.v6-arrival-track i { position: relative; display: block; width: 11px; height: 11px; justify-self: center; border: 1px solid #d6b47e; border-radius: 50%; background: var(--v6-night); }
.v6-arrival-track i:first-child { width: 18px; height: 18px; background: var(--v6-wine); box-shadow: 0 0 0 7px rgba(112, 35, 48, 0.22); }
.v6-arrival-object > p { position: relative; z-index: 2; margin: 0; color: rgba(255, 255, 255, 0.46); font-size: 0.58rem; font-weight: 800; letter-spacing: 0.18em; }
.v6-arrival-copy { display: flex; padding: clamp(90px, 10vw, 155px) clamp(34px, 7vw, 115px); justify-content: center; flex-direction: column; }
.v6-arrival-copy h2 { max-width: 720px; }
.v6-arrival-copy ol { max-width: 680px; margin: 52px 0 38px; padding: 0; list-style: none; }
.v6-arrival-copy li { display: grid; padding: 24px 0; border-top: 1px solid var(--v6-light-line); gap: 22px; grid-template-columns: 42px 1fr; }
.v6-arrival-copy li > span { color: #d6b47e; font: italic 0.72rem Georgia, serif; }
.v6-arrival-copy strong { font-family: var(--v6-serif); font-size: 1.22rem; font-weight: 500; }
.v6-arrival-copy li p { margin: 4px 0 0; color: rgba(255, 255, 255, 0.54); font-size: 0.8rem; }

.v6-journey { padding: clamp(120px, 15vw, 205px) clamp(24px, 6.5vw, 106px); background: var(--v6-paper-light); }
.v6-journey-heading {
  display: grid;
  max-width: 1320px;
  margin: 0 auto clamp(70px, 9vw, 115px);
  align-items: end;
  gap: clamp(35px, 5vw, 78px);
  grid-template-columns: 46px minmax(420px, 1.25fr) minmax(300px, 0.75fr);
}
.v6-journey-heading > p { max-width: 520px; margin: 0 0 7px; color: var(--v6-muted); font-family: var(--v6-serif); line-height: 2; }
.v6-journey-line { display: grid; max-width: 1320px; margin: auto; border-top: 1px solid var(--v6-line); border-bottom: 1px solid var(--v6-line); grid-template-columns: 0.72fr 1.12fr 1.58fr 1.05fr; }
.v6-journey-line article { position: relative; min-height: 390px; padding: 38px 32px; border-left: 1px solid var(--v6-line); background: rgba(255, 255, 255, 0.12); }
.v6-journey-line article:last-child { border-right: 1px solid var(--v6-line); }
.v6-journey-line article::before { position: absolute; top: -6px; left: 29px; width: 11px; height: 11px; border: 1px solid var(--v6-wine); border-radius: 50%; background: var(--v6-paper-light); content: ""; }
.v6-journey-line span { color: var(--v6-gold); font-size: 0.58rem; font-weight: 820; letter-spacing: 0.12em; }
.v6-journey-line b { display: block; margin-top: 25px; color: var(--v6-muted); font: italic 0.72rem Georgia, serif; font-weight: 400; }
.v6-journey-line h3 { margin: auto 0 18px; padding-top: 118px; font-family: var(--v6-serif); font-size: clamp(1.8rem, 2.55vw, 2.75rem); font-weight: 500; letter-spacing: -0.04em; line-height: 1.25; }
.v6-journey-line p { margin: 0; color: var(--v6-muted); font-family: var(--v6-serif); font-size: 0.88rem; line-height: 1.85; }
.v6-journey-line .is-publishing { color: #f6efe4; background: var(--v6-wine); }
.v6-journey-line .is-publishing::before { border-color: #e2bf8b; background: #e2bf8b; box-shadow: 0 0 0 6px rgba(181, 139, 75, 0.18); }
.v6-journey-line .is-publishing span,
.v6-journey-line .is-publishing b { color: #dfbd88; }
.v6-journey-line .is-publishing p { color: rgba(255, 255, 255, 0.63); }
.v6-enter-course {
  display: grid;
  max-width: 1320px;
  min-height: 126px;
  margin: 60px auto 0;
  padding: 24px 30px;
  align-items: center;
  border-top: 1px solid var(--v6-line);
  border-bottom: 1px solid var(--v6-line);
  gap: 25px;
  grid-template-columns: 1fr auto 32px;
  text-decoration: none;
  transition: color 180ms ease, padding 180ms ease, background 180ms ease;
}
.v6-enter-course:hover { padding-inline: 40px; color: #fff; background: var(--v6-ink); }
.v6-enter-course span { display: grid; gap: 7px; }
.v6-enter-course small { color: var(--v6-gold); font-size: 0.56rem; font-weight: 800; letter-spacing: 0.13em; }
.v6-enter-course strong { font-family: var(--v6-serif); font-size: 1.4rem; font-weight: 500; }
.v6-enter-course > b { color: var(--v6-muted); font-size: 0.63rem; letter-spacing: 0.12em; }
.v6-enter-course i { color: var(--v6-wine); font: italic 1.15rem Georgia, serif; }
.v6-enter-course:hover > b,
.v6-enter-course:hover i { color: #d7b57e; }

.v6-closing {
  position: relative;
  display: grid;
  min-height: 78svh;
  padding: clamp(120px, 16vw, 220px) 24px;
  place-items: center;
  align-content: center;
  overflow: hidden;
  text-align: center;
  background:
    radial-gradient(circle at 50% 43%, rgba(112, 35, 48, 0.14), transparent 24%),
    var(--v6-paper);
}
.v6-closing::before { position: absolute; inset: 8%; border: 1px solid var(--v6-line); content: ""; }
.v6-closing-seal { position: relative; display: grid; width: 82px; height: 82px; margin-bottom: 34px; place-items: center; border: 1px solid rgba(112, 35, 48, 0.5); border-radius: 50%; color: #eed5b2; background: var(--v6-wine); box-shadow: 0 12px 26px rgba(112, 35, 48, 0.18); font-family: var(--v6-serif); font-size: 1.5rem; }
.v6-closing h2 { position: relative; }
.v6-closing .v4-button { position: relative; margin-top: 38px; }
.v6-footer { background: var(--v6-paper); }

/* Learning cockpit */
.v6-portal-header { min-height: 74px; background: rgba(17, 23, 25, 0.91); }
.v6-course-position {
  display: flex;
  min-height: 48px;
  padding: 0 clamp(24px, 5vw, 78px);
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--v6-light-line);
  color: rgba(255, 255, 255, 0.45);
  background: #0c1112;
  text-align: left;
}
.v6-course-position > span { color: #d6b47e; font-size: 0.56rem; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; }
.v6-course-position p { display: flex; align-items: center; gap: 11px; }
.v6-course-position p i { width: 17px; height: 1px; background: rgba(214, 180, 126, 0.32); }
.v6-current-stage {
  min-height: calc(100svh - 122px);
  padding: clamp(72px, 8vw, 125px) clamp(24px, 6.5vw, 106px);
  gap: clamp(65px, 9vw, 140px);
  grid-template-columns: minmax(0, 0.86fr) minmax(470px, 1.14fr);
  background:
    linear-gradient(90deg, transparent 0 50%, rgba(255, 255, 255, 0.025) 50%),
    radial-gradient(circle at 14% 17%, rgba(112, 35, 48, 0.38), transparent 29%),
    var(--v6-night);
}
.v6-current-copy { position: relative; max-width: 760px; padding-top: 35px; }
.v6-current-count { position: absolute; top: -50px; left: -6px; display: flex; align-items: baseline; color: rgba(255, 255, 255, 0.055); font-family: Georgia, serif; line-height: 1; }
.v6-current-count > span { font-size: clamp(9rem, 15vw, 15rem); letter-spacing: -0.08em; }
.v6-current-count small { font-size: 1rem; }
.v6-current-count b { font-weight: 400; }
.v6-current-copy > :not(.v6-current-count) { position: relative; z-index: 2; }
.v6-current-copy .v4-kicker { margin-bottom: 16px; }
.v6-current-copy .current-stage { margin-bottom: 16px; }
.v6-current-copy h1 {
  max-width: 800px;
  margin: 0 0 18px;
  font-size: clamp(3.5rem, 6.3vw, 7.25rem);
  letter-spacing: -0.07em;
  line-height: 1.02;
  text-wrap: balance;
}
.v6-current-copy h1.is-short-title { white-space: normal; }
.v6-current-copy .current-subtitle { max-width: 640px; margin-bottom: 27px; color: #dab881; font-size: clamp(1.08rem, 1.55vw, 1.4rem); }
.v6-current-copy .current-summary { max-width: 610px; color: rgba(255, 255, 255, 0.59); font-size: 1rem; line-height: 1.95; }
.v6-current-copy .current-actions { margin-top: 36px; }
.v6-current-copy .v4-button { min-height: 58px; padding-inline: 26px; }
.v6-current-copy .light-button { color: var(--v6-ink); background: #f5ead9; }
.v6-current-copy .wait-message { margin-top: 42px; padding-left: 24px; border-top: 0; border-left: 1px solid rgba(214, 180, 126, 0.42); }
.v6-current-copy .wait-message b { font-size: 1.08rem; }

.v6-current-art { width: min(100%, 760px); margin: auto; }
.v6-current-frame {
  position: relative;
  display: grid;
  min-height: min(68vh, 675px);
  padding: clamp(42px, 5vw, 72px);
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px) 0 0 / 100% 25%,
    #1b2325;
}
.v6-current-frame::before { position: absolute; inset: 24px; border: 1px solid rgba(255, 255, 255, 0.08); content: ""; }
.v6-current-sheet { position: relative; z-index: 2; width: 110%; padding: clamp(13px, 1.7vw, 24px); border: 1px solid rgba(36, 28, 22, 0.36); background: #dedbd2; box-shadow: 0 28px 65px rgba(0, 0, 0, 0.34); transform: rotate(-1.5deg); }
.v6-current-sheet::before { position: absolute; inset: 7px; border: 1px solid rgba(45, 35, 27, 0.12); content: ""; pointer-events: none; }
.v6-current-sheet img { width: 100%; max-height: 390px; object-fit: cover; filter: saturate(0.72) sepia(0.08) contrast(1.1) brightness(1.03); }
.v6-current-stamp { position: absolute; z-index: 4; right: 8%; bottom: 8%; display: grid; width: 96px; height: 96px; padding: 13px; place-items: center; align-content: center; border: 1px solid rgba(222, 186, 132, 0.58); border-radius: 50%; color: #e1be89; background: var(--v6-wine); box-shadow: 0 15px 34px rgba(0, 0, 0, 0.26); }
.v6-current-stamp::before { position: absolute; inset: 7px; border: 1px solid rgba(255, 244, 225, 0.3); border-radius: 50%; content: ""; }
.v6-current-stamp b { font-family: var(--v6-serif); font-size: 1.45rem; font-weight: 500; line-height: 1; }
.v6-current-stamp span { margin-top: 6px; font: italic 0.58rem Georgia, serif; letter-spacing: 0.1em; }
.v6-current-registration { position: absolute; top: 37px; left: 37px; display: flex; gap: 5px; }
.v6-current-registration i { display: block; width: 18px; height: 18px; border: 1px solid rgba(222, 186, 132, 0.38); border-radius: 50%; }
.v6-current-registration i:first-child { background: var(--v6-wine); }
.v6-current-art figcaption { display: flex; margin-top: 16px; justify-content: space-between; color: rgba(255, 255, 255, 0.42); font-size: 0.6rem; letter-spacing: 0.08em; }

.v6-roadmap {
  padding: clamp(120px, 14vw, 190px) clamp(24px, 6.5vw, 106px);
  background:
    radial-gradient(circle at 91% 6%, rgba(112, 35, 48, 0.09), transparent 24%),
    var(--v6-paper-light);
}
.v6-roadmap-heading { max-width: 1320px; margin-bottom: 78px; }
.v6-roadmap-heading h2 { max-width: 900px; font-size: clamp(3.05rem, 4.5vw, 5.2rem); }
.v6-roadmap-heading > div:first-child > p:last-child { color: var(--v6-muted); }
.v6-roadmap .course-progress { padding-bottom: 9px; }
.v6-roadmap .course-progress i { height: 1px; }
.v6-roadmap .course-progress i b { background: var(--v6-wine); }

.v6-roadmap .phase-list { display: block; max-width: 1320px; border: 0; }
.v6-roadmap .path-phase {
  display: grid;
  min-height: 0;
  padding: 0;
  border: 0;
  border-top: 1px solid var(--v6-line);
  background: transparent;
  grid-template-columns: minmax(270px, 0.72fr) minmax(460px, 1.28fr);
}
.v6-roadmap .path-phase:last-child { border-bottom: 1px solid var(--v6-line); }
.v6-roadmap .path-phase::after { display: none; }
.v6-roadmap .path-phase > header {
  position: relative;
  display: grid;
  min-height: 210px;
  padding: 38px 42px 42px 0;
  align-content: start;
  border-right: 1px solid var(--v6-line);
  gap: 18px;
  grid-template-columns: 42px 1fr auto;
}
.v6-roadmap .path-phase > header::before { position: absolute; top: 48px; left: -3px; width: 7px; height: 7px; border: 1px solid var(--v6-wine); border-radius: 50%; background: var(--v6-paper-light); content: ""; transform: translateX(-50%); }
.v6-roadmap .path-phase.is-current > header::before { width: 13px; height: 13px; border-color: var(--v6-wine); background: var(--v6-wine); box-shadow: 0 0 0 7px rgba(112, 35, 48, 0.12); }
.v6-roadmap .path-phase.is-complete > header::before { border-color: var(--v6-green); background: var(--v6-green); }
.v6-roadmap .path-phase > header > span { color: var(--v6-wine); }
.v6-roadmap .path-phase > header p { color: var(--v6-gold); }
.v6-roadmap .path-phase > header h3 { font-size: clamp(1.9rem, 3vw, 3.1rem); }
.v6-phase-toggle { display: grid; width: 38px; height: 38px; place-items: center; border: 1px solid var(--v6-line); border-radius: 50%; color: var(--v6-wine); background: transparent; cursor: pointer; transition: color 180ms ease, background 180ms ease, transform 180ms ease; }
.v6-phase-toggle:hover { color: #fff; background: var(--v6-wine); }
.path-phase.is-expanded .v6-phase-toggle { transform: rotate(45deg); }
.v6-roadmap .phase-description { grid-column: 1; max-width: 500px; margin: -86px 42px 40px 60px; color: var(--v6-muted); font-size: 0.86rem; }
.v6-roadmap .path-phase ol { grid-column: 2; grid-row: 1 / span 2; margin: 0; padding: 24px 0 34px 42px; align-self: stretch; }
.v6-roadmap .path-phase:not(.is-expanded) ol { display: none; }
.v6-phase-preview {
  display: grid;
  grid-column: 2;
  grid-row: 1 / span 2;
  padding: 34px 0 34px 42px;
  align-content: center;
  gap: 1px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  background: var(--v6-line);
}
.path-phase.is-expanded .v6-phase-preview { display: none; }
.v6-phase-preview span {
  display: grid;
  min-height: 74px;
  padding: 14px;
  align-content: space-between;
  color: var(--v6-muted);
  background: var(--v6-paper-light);
}
.v6-phase-preview span.is-current { color: var(--v6-wine); background: #fffaf1; }
.v6-phase-preview span.is-complete { color: var(--v6-green); }
.v6-phase-preview span.is-locked { opacity: 0.5; }
.v6-phase-preview i { color: var(--v6-gold); font: italic 0.59rem Georgia, serif; }
.v6-phase-preview b { font-size: 0.58rem; font-weight: 750; letter-spacing: 0.04em; }
.v6-roadmap .path-phase li {
  position: relative;
  display: grid;
  min-height: 78px;
  padding: 15px 18px 15px 0;
  border-top: 1px solid var(--v6-line);
  align-items: center;
  gap: 16px;
  grid-template-columns: 45px minmax(0, 1fr) auto;
  transition: color 180ms ease, padding 180ms ease, background 180ms ease;
}
.v6-roadmap .path-phase li:first-child { border-top: 0; }
.v6-roadmap .path-phase li.is-current { margin-inline: -18px 0; padding-left: 18px; color: var(--v6-wine); background: #fffaf1; box-shadow: var(--v6-shadow-soft); }
.v6-roadmap .path-phase li.is-current::before { position: absolute; inset: 0 auto 0 0; width: 3px; background: var(--v6-wine); content: ""; }
.v6-roadmap .path-phase li.is-complete { color: var(--v6-green); }
.v6-roadmap .path-phase li.is-locked { opacity: 0.52; }
.v6-roadmap .path-phase li > span { color: var(--v6-gold); font-size: 0.67rem; }
.v6-unit-copy { display: grid; gap: 4px; }
.v6-unit-copy a,
.v6-unit-copy strong { font-family: var(--v6-serif); font-size: 1rem; font-weight: 500; line-height: 1.45; }
.v6-unit-copy em { color: var(--v6-muted); font-family: var(--v6-sans); font-size: 0.58rem; font-style: normal; font-weight: 700; letter-spacing: 0.08em; }
.v6-roadmap .path-phase li small { color: var(--v6-muted); font-size: 0.58rem; }
.v6-epilogue-stop {
  display: grid;
  min-height: 178px;
  padding: 38px 42px;
  align-items: center;
  border-top: 1px solid rgba(255, 255, 255, 0.11);
  color: #f6eee2;
  background: radial-gradient(circle at 86% 12%, rgba(112, 35, 48, 0.58), transparent 30%), var(--v6-night);
  gap: 30px;
  grid-template-columns: 74px minmax(0, 1fr);
}
.v6-epilogue-stop > span { display: grid; width: 58px; height: 58px; place-items: center; border: 1px solid rgba(229, 193, 140, 0.42); border-radius: 50%; color: #e3bf89; font: italic 1.2rem Georgia, serif; }
.v6-epilogue-stop div { display: grid; align-items: center; gap: 9px 24px; grid-template-columns: minmax(0, 1fr) auto; }
.v6-epilogue-stop p { grid-column: 1 / -1; margin: 0; color: #d7b57e; font-size: 0.58rem; font-weight: 800; letter-spacing: 0.16em; }
.v6-epilogue-stop h3 { margin: 0; font-family: var(--v6-serif); font-size: clamp(1.65rem, 3vw, 2.8rem); font-weight: 500; }
.v6-epilogue-stop a { color: inherit; text-decoration: none; }
.v6-epilogue-stop small { color: rgba(255, 255, 255, 0.5); font-size: 0.62rem; }
.v6-epilogue-stop.is-locked { opacity: 0.72; }
.v6-epilogue-stop.is-arrived { box-shadow: 0 25px 60px rgba(17, 23, 25, 0.16); }

.v6-publishing-folio { color: #f5eee3; background: var(--v6-night); }
.v6-publishing-folio > header { border-color: var(--v6-light-line); }
.v6-publishing-folio h2 { max-width: 800px; }
.v6-publishing-folio header p:last-child,
.v6-publishing-folio .folio-progress { color: rgba(255, 255, 255, 0.52); }
.v6-publishing-folio .folio-progress i { background: rgba(255, 255, 255, 0.15); }
.v6-publishing-folio .folio-progress i b { background: #d7b57e; }
.v6-publishing-folio .journey-list { display: grid; padding-top: 72px; gap: 13px; grid-template-columns: repeat(7, minmax(0, 1fr)); }
.v6-publishing-folio .journey-envelope { min-height: 335px; border-color: rgba(255, 255, 255, 0.13); background: #cdb28a; }
.v6-publishing-folio .journey-envelope:nth-child(even) { transform: translateY(18px); }
.v6-publishing-folio a.journey-envelope:hover { transform: translateY(-5px); }
.v6-publishing-folio a.journey-envelope:nth-child(even):hover { transform: translateY(12px); }
.v6-publishing-folio .envelope-paper { right: 12px; left: 12px; padding-inline: 16px; }
.v6-publishing-folio .envelope-paper strong { font-size: 0.98rem; }

.v6-supplements {
  padding-block: clamp(105px, 13vw, 175px);
  background:
    radial-gradient(circle at 13% 18%, rgba(112, 35, 48, 0.35), transparent 32%),
    #0c1112;
}
.v6-supplements h2 { font-size: clamp(2.8rem, 4.5vw, 4.9rem); }
.v6-supplements .supplement-links a { min-height: 112px; }

/* Directory and reading room */
.v5-library > .v4-header,
.reading-index > .v4-header { position: sticky; z-index: 60; top: 0; background: rgba(238, 229, 214, 0.92); backdrop-filter: blur(18px); }
.v5-library .library-hero,
.reading-index .library-hero {
  min-height: 72svh;
  padding: clamp(95px, 12vw, 175px) clamp(24px, 6.5vw, 106px);
  background:
    linear-gradient(90deg, rgba(55, 42, 31, 0.035) 1px, transparent 1px) 0 0 / 25% 100%,
    radial-gradient(circle at 14% 14%, rgba(112, 35, 48, 0.11), transparent 27%),
    var(--v6-paper);
}
.v5-library .library-hero h1,
.reading-index .library-hero h1 { color: var(--v6-wine); font-size: clamp(5rem, 9vw, 9.4rem); }
.v5-library .library-hero > p,
.reading-index .library-hero > p { word-break: keep-all; }
.v5-library .library-hero > p { display: flex; align-items: center; gap: 5px 9px; flex-wrap: wrap; }
.v5-library .library-hero > p span { white-space: nowrap; }
.v5-library .library-hero > p i { color: var(--v6-gold); font-family: Georgia, serif; font-size: 0.85em; font-style: normal; }
.v5-library .library-section,
.reading-index .reading-catalog { background: var(--v6-paper-light); }
.v5-library .library-grid { display: block; border: 0; border-top: 1px solid var(--v6-line); }
.v5-library .library-grid > a {
  display: grid;
  min-height: 125px;
  padding: 25px 0;
  border: 0;
  border-bottom: 1px solid var(--v6-line);
  align-items: center;
  gap: 16px 28px;
  grid-template-columns: 135px minmax(260px, 0.8fr) minmax(280px, 1.2fr) auto;
  background: transparent;
}
.v5-library .library-grid > a:hover { padding-inline: 18px; background: var(--v6-paper); }
.v5-library .library-grid small { margin: 0; }
.v5-library .library-grid strong { font-size: 1.35rem; }
.v5-library .library-grid span { margin: 0; }
.v5-library .library-grid b { margin: 0; white-space: nowrap; }
.v5-library .library-grid > a.v6-directory-item > b { display: none; }
.v6-directory-state { color: var(--v6-muted); font-family: var(--v6-sans); font-size: 0.58rem; font-style: normal; font-weight: 750; letter-spacing: 0.05em; white-space: nowrap; }
.v5-library .library-grid > a.is-current { padding-inline: 18px; border-left: 3px solid var(--v6-wine); background: #fffaf1; box-shadow: var(--v6-shadow-soft); }
.v5-library .library-grid > a.is-current .v6-directory-state { color: var(--v6-wine); }
.v5-library .library-grid > a.is-complete .v6-directory-state { color: var(--v6-green); }
.v5-library .library-grid > a.is-locked { opacity: 0.58; }
.v5-library .library-grid .featured-resource { min-height: 175px; color: #f5eee3; background: var(--v6-night); }
.v5-library .library-grid .featured-resource:hover { background: #0c1112; }
.v5-library .featured-resource strong { font-size: clamp(1.7rem, 2.6vw, 2.6rem); }
.v5-library .library-seven { background: var(--v6-night); }
.v5-library .publishing-directory a { min-height: 78px; }
.v5-library .publishing-directory a.v6-directory-item { grid-template-columns: 70px minmax(0, 1fr) auto; }
.v5-library .publishing-directory a.is-current { padding-inline: 14px; border-left: 2px solid #d7b57e; background: rgba(255, 255, 255, 0.045); }
.v5-library .publishing-directory .v6-directory-state { color: rgba(255, 255, 255, 0.5); }
.v5-library .library-reading { background: var(--v6-paper); }
.v5-library .library-epilogue { background: radial-gradient(circle at 50% 15%, rgba(112, 35, 48, 0.36), transparent 29%), var(--v6-night); }

.reading-index .reading-catalog > article { margin-bottom: clamp(110px, 13vw, 175px); }
.reading-index .reading-links { display: block; border-top: 1px solid var(--v6-line); }
.reading-index .reading-links a,
.reading-index .reading-links a:nth-child(2n + 1) {
  display: grid;
  min-height: 92px;
  padding: 20px 4px;
  border: 0;
  border-bottom: 1px solid var(--v6-line);
  align-items: center;
  gap: 26px;
  grid-template-columns: 150px minmax(0, 1fr) 24px;
}
.reading-index .reading-links a::after { color: var(--v6-wine); content: "→"; font: italic 0.9rem Georgia, serif; }
.reading-index .reading-links a:hover { padding-inline: 18px; background: var(--v6-paper); }
.reading-index .reading-links strong { margin: 0; font-size: 1.16rem; }
.reading-index .materials-banner { background: radial-gradient(circle at 15% 12%, rgba(112, 35, 48, 0.4), transparent 30%), var(--v6-night); }

/* Honest cohort state */
.v6-group { background: var(--v6-night); }
.v6-group-state { display: grid; min-height: calc(82svh - 74px); padding: clamp(90px, 11vw, 165px) clamp(24px, 7vw, 115px); align-items: center; gap: clamp(60px, 10vw, 150px); grid-template-columns: minmax(0, 1.12fr) minmax(330px, 0.68fr); background: radial-gradient(circle at 13% 18%, rgba(112, 35, 48, 0.42), transparent 30%), var(--v6-night); }
.v6-group-copy { max-width: 850px; }
.v6-state-chip { display: inline-flex; min-height: 31px; padding: 0 12px; align-items: center; border: 1px solid rgba(213, 174, 115, 0.35); color: #d7b57e; font-size: 0.58rem; font-weight: 800; letter-spacing: 0.08em; }
.v6-group-copy h1 { margin: 27px 0 0; font-family: var(--v6-serif); font-size: clamp(4.5rem, 9vw, 9.5rem); font-weight: 500; letter-spacing: -0.075em; line-height: 0.95; }
.v6-group-copy > p:not(.v4-kicker) { max-width: 610px; margin: 30px 0 35px; color: rgba(255, 255, 255, 0.57); font-family: var(--v6-serif); font-size: 1.05rem; }
.v6-group-mark { position: relative; display: grid; min-height: 460px; padding: 42px; place-items: center; align-content: center; border: 1px solid rgba(255, 255, 255, 0.12); background: rgba(255, 255, 255, 0.025); }
.v6-group-mark::before { position: absolute; inset: 21px; border: 1px solid rgba(255, 255, 255, 0.08); content: ""; }
.v6-group-mark > span { position: relative; z-index: 2; display: grid; width: 145px; height: 145px; place-items: center; border: 1px solid rgba(224, 190, 145, 0.54); border-radius: 50%; color: #e5c18d; background: var(--v6-wine); box-shadow: 0 24px 52px rgba(0, 0, 0, 0.28); font-family: var(--v6-serif); font-size: 2.7rem; }
.v6-group-mark i { width: 1px; height: 58px; margin: 24px 0; background: rgba(224, 190, 145, 0.38); }
.v6-group-mark p { margin: 0; color: rgba(255, 255, 255, 0.42); font-size: 0.57rem; font-weight: 800; letter-spacing: 0.17em; }
.v6-group-links { display: grid; color: var(--v6-ink); background: var(--v6-line); gap: 1px; grid-template-columns: repeat(2, 1fr); }
.v6-group-links a { display: grid; min-height: 210px; padding: clamp(34px, 5vw, 72px); align-content: space-between; grid-template-columns: 1fr auto; background: var(--v6-paper-light); text-decoration: none; transition: color 180ms ease, background 180ms ease; }
.v6-group-links a:hover { color: #fff; background: var(--v6-wine); }
.v6-group-links small { grid-column: 1 / -1; color: var(--v6-gold); font-size: 0.6rem; font-weight: 800; letter-spacing: 0.1em; }
.v6-group-links strong { align-self: end; font-family: var(--v6-serif); font-size: clamp(1.8rem, 3vw, 3rem); font-weight: 500; }
.v6-group-links span { align-self: end; color: var(--v6-wine); }
.v6-group-links a:hover span { color: #e5c18d; }

/* Lesson reading system */
body[data-v5-unit],
body[data-v5-resource] {
  --v4-ink: var(--v6-ink);
  --v4-paper: var(--v6-paper-light);
  --v4-ground: var(--v6-paper);
  --v4-muted: var(--v6-muted);
  --v4-line: var(--v6-line);
  --v4-night: var(--v6-night);
  --v4-gold: var(--v6-gold);
  background: var(--v6-paper);
  visibility: visible !important;
}
body[data-v5-unit="welcome"],
body[data-v5-unit="letter-01"] { --v4-art-background: var(--v6-night-soft); }
@media (min-width: 761px) {
  body[data-v5-unit="welcome"] .lesson-head::before,
  body[data-v5-unit="letter-01"] .lesson-head::before { inset: 30% 3.8% 30% 60.2%; border-width: 11px; }
}
body[data-v6-phase="publishing"] .lesson-head { background: linear-gradient(90deg, #f4e9da 0 57.5%, #35161c 57.5% 100%); }
body[data-v6-phase="publishing"] .lesson-head::before { border-color: #ead9c1; }
body[data-v6-phase="continuation"] .lesson-head { background: linear-gradient(90deg, #18211f 0 57.5%, #e5dac8 57.5% 100%); }
body[data-v6-phase="continuation"] .lesson-head h1 { color: #f7f0e5; }
body[data-v6-phase="continuation"] .lesson-head .eyebrow,
body[data-v6-phase="continuation"] .v6-lesson-marker span { color: #d7b57e; }
body[data-v6-phase="continuation"] .lesson-head .meta,
body[data-v6-phase="continuation"] .v6-lesson-marker b { color: rgba(255, 255, 255, 0.55); }
body[data-v6-phase="continuation"] .v6-lesson-marker i { background: rgba(255, 255, 255, 0.14); }
body[data-v6-phase="continuation"] .v6-lesson-marker i u { background: #d7b57e; }
body[data-v6-phase="continuation"] .lesson-head::after { color: rgba(112, 35, 48, 0.12); }

/* Flagship final course */
.v6-longform-index { padding: clamp(75px, 9vw, 115px) max(24px, calc((100vw - 1280px) / 2)); color: #f5eee3; background: #19221f; }
.v6-longform-index > p { margin: 0 0 34px; color: #d7b57e; font-size: 0.61rem; font-weight: 800; letter-spacing: 0.16em; }
.v6-longform-index ol { display: grid; margin: 0; padding: 0; border-top: 1px solid rgba(255, 255, 255, 0.14); grid-template-columns: repeat(5, 1fr); }
.v6-longform-index a { display: grid; min-height: 155px; padding: 24px 20px; align-content: space-between; border-right: 1px solid rgba(255, 255, 255, 0.14); text-decoration: none; transition: color 180ms ease, background 180ms ease; }
.v6-longform-index a:first-child { border-left: 1px solid rgba(255, 255, 255, 0.14); }
.v6-longform-index a:hover { color: #18211f; background: #f1e4d0; }
.v6-longform-index span { color: #d7b57e; font: italic 0.65rem Georgia, serif; }
.v6-longform-index strong { font-family: var(--v6-serif); font-size: 0.9rem; font-weight: 500; line-height: 1.55; }
body[data-v5-unit="principle-7"] .longform-hero { background: radial-gradient(circle at 17% 14%, rgba(112, 35, 48, 0.4), transparent 31%), #111719; }
body[data-v5-unit="principle-7"] .longform-hero figure { border-color: rgba(255, 255, 255, 0.16); background: rgba(255, 255, 255, 0.025); }
body[data-v5-unit="principle-7"] .longform-header { position: sticky; z-index: 70; top: 0; background: rgba(17, 23, 25, 0.94); backdrop-filter: blur(18px); }
body[data-v5-unit="principle-7"] :is(.longform-hero, .longform-content h2[id], .longform-content h3[id]) { scroll-margin-top: 88px; }
body[data-v5-unit="principle-7"] .longform-content { width: min(850px, calc(100% - 48px)); padding-block: clamp(120px, 14vw, 190px); }
body[data-v5-unit="principle-7"] .longform-content > h2 { position: relative; margin-top: 4.8em; padding-top: 1.25em; border-top: 1px solid var(--v6-line); font-size: clamp(2.65rem, 4.5vw, 4.5rem); letter-spacing: -0.05em; }
body[data-v5-unit="principle-7"] .longform-content > h2::before { position: absolute; top: -0.8em; left: -1.15em; color: rgba(112, 35, 48, 0.12); content: "VII"; font: 400 2.2em/1 Georgia, serif; }
body[data-v5-unit="principle-7"] .longform-content .notion-aside { border-left-width: 2px; background: #f0e3d0; }
body[data-v5-unit].v4-lesson-ready,
body[data-v5-resource].v4-resource-ready { visibility: visible; }
body[data-v5-unit] .topbar,
body[data-v5-resource] .topbar {
  position: sticky;
  z-index: 30;
  top: 0;
  min-height: 72px;
  border-color: var(--v6-line);
  background: rgba(238, 229, 214, 0.9);
}
body[data-v5-unit] .topbar .brand,
body[data-v5-resource] .topbar .brand { letter-spacing: 0.15em; }
.v6-reading-progress { position: fixed; z-index: 80; top: 0; right: 0; left: 0; height: 3px; pointer-events: none; }
.v6-reading-progress i { display: block; width: 0; height: 100%; background: var(--v4-accent, var(--v6-wine)); transition: width 80ms linear; }

body[data-v5-unit] .lesson-head,
body[data-v5-resource] .lesson-head {
  min-height: calc(100svh - 72px);
  padding: clamp(100px, 12vw, 175px) 50% clamp(90px, 10vw, 145px) max(30px, calc((100vw - 1380px) / 2));
  background:
    linear-gradient(90deg, transparent 0 57.5%, rgba(255, 255, 255, 0.035) 57.5% 100%),
    linear-gradient(90deg, #f7efe3 0 57.5%, var(--v6-night) 57.5% 100%);
}
body[data-v5-unit][data-v6-phase="publishing"] .lesson-head {
  background: linear-gradient(90deg, #f4e9da 0 57.5%, #35161c 57.5% 100%);
}
body[data-v5-unit][data-v6-phase="continuation"] .lesson-head {
  background: linear-gradient(90deg, #18211f 0 57.5%, #e5dac8 57.5% 100%);
}
body[data-v5-unit] .lesson-head::before,
body[data-v5-resource] .lesson-head::before {
  inset: 7% 4.2% 7% 61.2%;
  border: 14px solid rgba(244, 236, 224, 0.9);
  outline-color: rgba(255, 255, 255, 0.16);
  box-shadow: 0 34px 82px rgba(0, 0, 0, 0.3);
  filter: saturate(0.82) contrast(0.98);
}
body[data-v5-unit] .lesson-head::after,
body[data-v5-resource] .lesson-head::after {
  top: 8%;
  right: 4.6%;
  bottom: auto;
  width: auto;
  height: auto;
  color: rgba(255, 255, 255, 0.08);
  background: transparent;
  content: attr(data-v6-number);
  font: 400 clamp(6rem, 12vw, 12rem)/1 Georgia, serif;
  letter-spacing: -0.08em;
}
.v6-lesson-marker {
  position: relative;
  z-index: 3;
  display: grid;
  max-width: 610px;
  margin-bottom: 38px;
  align-items: center;
  gap: 11px 18px;
  grid-template-columns: 1fr auto;
}
.v6-lesson-marker span { color: var(--v4-accent); font-size: 0.61rem; font-weight: 800; letter-spacing: 0.14em; }
.v6-lesson-marker b { color: var(--v6-muted); font-size: 0.61rem; font-weight: 700; }
.v6-lesson-marker i { position: relative; grid-column: 1 / -1; height: 1px; overflow: hidden; background: var(--v6-line); }
.v6-lesson-marker i u { position: absolute; inset: 0 auto 0 0; width: var(--v6-unit-progress, 0%); background: var(--v4-accent); text-decoration: none; }
body[data-v5-unit] .lesson-head .eyebrow,
body[data-v5-resource] .lesson-head .eyebrow { margin-bottom: 24px; }
body[data-v5-unit] .lesson-head h1,
body[data-v5-resource] .lesson-head h1 {
  max-width: 740px;
  font-size: clamp(3.35rem, 5.55vw, 6.25rem);
  letter-spacing: -0.065em;
  line-height: 1.06;
}
body[data-v5-unit] .lesson-head .meta,
body[data-v5-resource] .lesson-head .meta { max-width: 610px; margin-top: 32px; font-size: 0.96rem; line-height: 1.95; }

body[data-v5-unit] .content,
body[data-v5-resource] .content {
  width: min(920px, calc(100% - 48px));
  padding: clamp(115px, 14vw, 190px) 0;
  color: #403931;
  font-size: 1.06rem;
  line-height: 2.08;
}
body[data-v5-unit] .content > p,
body[data-v5-resource] .content > p,
body[data-v5-unit] .content > ul,
body[data-v5-resource] .content > ul,
body[data-v5-unit] .content > ol,
body[data-v5-resource] .content > ol,
body[data-v5-unit] .content > blockquote,
body[data-v5-resource] .content > blockquote { max-width: 760px; }
.v6-answer-lines { display: grid; max-width: 760px; margin: 20px 0 38px; gap: 25px; }
.v6-answer-lines i { display: block; height: 1px; background: rgba(112, 35, 48, 0.24); }
body[data-v5-unit] .content h2,
body[data-v5-resource] .content h2 {
  position: relative;
  max-width: 820px;
  margin-top: 4.6em;
  padding-top: 1.2em;
  font-size: clamp(2.25rem, 3.55vw, 3.35rem);
  letter-spacing: -0.04em;
  line-height: 1.36;
}
body[data-v5-unit] .content h2::before,
body[data-v5-resource] .content h2::before { position: absolute; top: 0; left: 0; width: 72px; height: 2px; background: var(--v4-accent); content: ""; }
body[data-v5-unit] .content h3,
body[data-v5-resource] .content h3 { margin-top: 3.2em; font-size: clamp(1.45rem, 2.2vw, 1.9rem); }
body[data-v5-unit] .content blockquote,
body[data-v5-resource] .content blockquote { padding: 32px 38px; border-left-width: 2px; background: #f1e6d4; }
body[data-v5-unit] .content img,
body[data-v5-resource] .content img { margin-top: 48px; margin-bottom: 48px; box-shadow: 0 24px 62px rgba(52, 36, 24, 0.13); }
body[data-v5-unit] .note,
body[data-v5-resource] .note,
body[data-v5-unit] .daily-task,
body[data-v5-resource] .daily-task,
body[data-v5-unit] .reference-reading,
body[data-v5-resource] .reference-reading,
body[data-v5-unit] .lesson-toc,
body[data-v5-resource] .lesson-toc,
body[data-v5-unit] .toc-section,
body[data-v5-resource] .toc-section,
body[data-v5-unit] .reference-group,
body[data-v5-resource] .reference-group,
body[data-v5-unit] .reading-list,
body[data-v5-resource] .reading-list,
body[data-v5-unit] .reference-links,
body[data-v5-resource] .reference-links,
body[data-v5-unit] .edit-flow,
body[data-v5-resource] .edit-flow { padding: clamp(30px, 4vw, 48px) !important; border-left-width: 2px !important; background: #f1e6d4 !important; }

.v5-completion {
  position: relative;
  min-height: 82svh;
  padding: clamp(120px, 15vw, 195px) 24px;
  overflow: hidden;
  color: #f7f0e5;
  border-color: var(--v6-light-line);
  background:
    radial-gradient(circle at 50% 37%, color-mix(in srgb, var(--v4-accent, var(--v6-wine)) 36%, transparent), transparent 28%),
    var(--v6-night);
}
.v5-completion::before { position: absolute; inset: 8%; border: 1px solid var(--v6-light-line); content: ""; pointer-events: none; }
.v6-completion-seal { position: relative; display: grid; width: 72px; height: 72px; margin: 0 auto 32px; place-items: center; border: 1px solid rgba(229, 193, 140, 0.5); border-radius: 50%; color: #e5c18c; background: var(--v4-accent, var(--v6-wine)); box-shadow: 0 13px 28px rgba(0, 0, 0, 0.22); font-family: var(--v6-serif); }
.v5-completion-kicker { position: relative; color: #dab67e; }
.v5-completion h2 { position: relative; color: #fff8ed; }
.v5-response-box { position: relative; margin-top: 34px; border-color: rgba(255, 255, 255, 0.17); color: #f4ecdf; background: rgba(255, 255, 255, 0.045); }
.v5-response-box label small { color: #dab67e; }
.v5-response-box button { background: #f3e7d4; color: var(--v6-ink); }
.v5-completion.is-done .v5-response-box { border-color: rgba(92, 139, 115, 0.55); }
.v5-completion.is-done .v5-response-box button { color: #fff; background: var(--v6-green); }
.v5-arrival-copy { position: relative; color: rgba(255, 255, 255, 0.59); }
.v5-completion-nav { position: relative; }
.v5-completion-nav a { color: rgba(255, 255, 255, 0.56); }
.v5-resource-return { background: var(--v6-night); }

.v6-mobile-dock { display: none; }

@media (max-width: 1160px) {
  .v6-hero { grid-template-columns: minmax(0, 0.92fr) minmax(420px, 1.08fr); }
  .v6-letter-matte { min-height: 590px; }
  .v6-current-stage { grid-template-columns: minmax(0, 0.92fr) minmax(420px, 1.08fr); }
  .v6-current-frame { min-height: 590px; }
  .v6-publishing-folio .journey-list { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .v6-publishing-folio .journey-envelope:nth-child(even) { transform: none; }
}

@media (max-width: 980px) {
  .v6-hero,
  .v6-arrival,
  .v6-current-stage { grid-template-columns: 1fr; }
  .v6-hero { min-height: auto; gap: 92px; }
  .v6-hero-copy { max-width: 800px; }
  .v6-letter-portrait { width: min(90vw, 760px); }
  .v6-letter-matte { min-height: min(74vw, 650px); }
  .v6-manifesto { grid-template-columns: 45px minmax(0, 1fr); }
  .v6-manifesto-copy { grid-column: 2; padding-top: 0; }
  .v6-arrival { min-height: 0; }
  .v6-arrival-object { min-height: 720px; border-right: 0; border-bottom: 1px solid var(--v6-light-line); }
  .v6-journey-heading { grid-template-columns: 44px minmax(0, 1fr); }
  .v6-journey-heading > p { grid-column: 2; }
  .v6-journey-line { grid-template-columns: repeat(2, 1fr); }
  .v6-journey-line article:nth-child(3) { border-top: 1px solid var(--v6-line); }
  .v6-journey-line article:nth-child(4) { border-top: 1px solid var(--v6-line); border-right: 1px solid var(--v6-line); }
  .v6-current-stage { padding-top: 100px; }
  .v6-current-art { width: min(90vw, 760px); }
  .v6-current-frame { min-height: min(75vw, 650px); }
  .v6-roadmap .path-phase { grid-template-columns: minmax(230px, 0.65fr) minmax(380px, 1.35fr); }
  .v5-library .library-grid > a { grid-template-columns: 110px minmax(240px, 0.85fr) minmax(240px, 1.15fr); }
  .v5-library .library-grid b { grid-column: 2; }
  .v6-group-state { grid-template-columns: 1fr; }
  .v6-group-mark { width: min(100%, 650px); min-height: 390px; }
  .v6-longform-index ol { grid-template-columns: repeat(3, 1fr); }
  .v6-longform-index a { border-bottom: 1px solid rgba(255, 255, 255, 0.14); }
  body[data-v5-unit] .lesson-head,
  body[data-v5-resource] .lesson-head { padding-right: 49%; }
}

@media (max-width: 760px) {
  .v6-header,
  .v6-portal-header { min-height: 64px; }
  .v6-header nav a,
  .v6-portal-header nav a { display: inline-flex; min-height: 44px; align-items: center; }
  .v6-header .header-enter { min-height: 44px; }
  .v6-header nav > a:first-child,
  .v6-portal-header nav > a:first-child { display: none; }
  .v6-hero { padding: 76px 22px 96px; gap: 72px; }
  .v6-hero-title > span { margin-top: 7px; }
  .v6-hero h1 { font-size: clamp(4.7rem, 24vw, 6.5rem); }
  .v6-hero-promise { margin: 34px 0 0 25px; font-size: clamp(2.25rem, 10.5vw, 3.3rem); }
  .v6-hero-lead,
  .v6-hero-actions,
  .v6-sequence { margin-left: 25px; }
  .v6-sequence { display: grid; max-width: 290px; align-items: center; gap: 7px 12px; grid-template-columns: auto 1fr; white-space: normal; }
  .v6-sequence i { width: 100%; }
  .v6-letter-portrait { width: 100%; }
  .v6-letter-matte { min-height: 480px; padding: 38px 23px; }
  .v6-letter-matte::before { inset: 14px; }
  .v6-letter-shadow { right: -3%; left: -3%; }
  .v6-letter-sheet { width: 124%; padding: 10px; }
  .v6-postmark { right: 6%; bottom: 6%; width: 82px; height: 82px; }
  .v6-postmark b { font-size: 1.25rem; }
  .v6-postmark span { font-size: 0.38rem; }
  .v6-seal-rail { top: 24px; left: 22px; gap: 4px; }
  .v6-seal-rail li { width: 22px; height: 22px; }
  .v6-letter-portrait figcaption { gap: 7px; flex-direction: column; }
  .v6-manifesto { padding: 105px 22px; gap: 20px; grid-template-columns: 1fr; }
  .v6-manifesto-copy { grid-column: auto; padding-top: 20px; }
  .v6-manifesto h2,
  .v6-arrival h2,
  .v6-journey h2,
  .v6-closing h2 { font-size: clamp(2.65rem, 13vw, 4rem); }
  .v6-arrival-object { min-height: 600px; padding: 54px 27px; }
  .v6-arrival-object::before { inset: 24px; }
  .v6-arrival-number { gap: 15px; }
  .v6-arrival-number strong { font-size: clamp(8rem, 43vw, 11rem); }
  .v6-arrival-copy { padding: 95px 22px; }
  .v6-journey { padding: 105px 22px; }
  .v6-journey-heading { margin-bottom: 58px; gap: 18px; grid-template-columns: 1fr; }
  .v6-journey-heading > p { grid-column: auto; }
  .v6-journey-line { grid-template-columns: 1fr; }
  .v6-journey-line article { min-height: 290px; border-right: 1px solid var(--v6-line); border-top: 1px solid var(--v6-line); }
  .v6-journey-line article:first-child { border-top: 0; }
  .v6-journey-line h3 { padding-top: 70px; }
  .v6-enter-course { min-height: 112px; padding-inline: 14px; grid-template-columns: 1fr 28px; }
  .v6-enter-course > b { display: none; }
  .v6-enter-course:hover { padding-inline: 20px; }
  .v6-closing::before { inset: 22px; }
  .v6-course-position { min-height: 52px; padding: 10px 20px; align-items: flex-start; gap: 7px; flex-direction: column; }
  .v6-course-position p { gap: 7px; flex-wrap: wrap; }
  .v6-course-position p i { width: 10px; }
  .v6-current-stage { min-height: auto; padding: 82px 22px 100px; gap: 76px; }
  .v6-current-count { top: -34px; }
  .v6-current-count > span { font-size: 8rem; }
  .v6-current-copy h1 { font-size: clamp(3.25rem, 15vw, 4.7rem); }
  .v6-current-copy h1.is-short-title { font-size: clamp(3.25rem, 15vw, 4.7rem); }
  .v6-current-art { width: 100%; }
  .v6-current-frame { min-height: 470px; padding: 34px 21px; }
  .v6-current-frame::before { inset: 14px; }
  .v6-current-sheet { width: 124%; padding: 9px; }
  .v6-current-stamp { right: 5%; bottom: 5%; width: 82px; height: 82px; }
  .v6-roadmap { padding: 100px 20px; }
  .v6-roadmap-heading { margin-bottom: 55px; }
  .v6-roadmap .path-phase { display: block; }
  .v6-roadmap .path-phase > header { min-height: 0; padding: 30px 0; border-right: 0; grid-template-columns: 34px 1fr auto; }
  .v6-roadmap .path-phase > header::before { display: none; }
  .v6-roadmap .phase-description { margin: -8px 0 26px 34px; }
  .v6-roadmap .path-phase ol { margin: 0; padding: 0 0 25px 34px; }
  .v6-phase-preview { grid-column: auto; grid-row: auto; padding: 0 0 28px 34px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .v6-roadmap .path-phase li { grid-template-columns: 35px minmax(0, 1fr); }
  .v6-roadmap .path-phase li small { grid-column: 2; }
  .v6-epilogue-stop { min-height: 150px; padding: 30px 24px; gap: 15px; grid-template-columns: 48px minmax(0, 1fr); }
  .v6-epilogue-stop > span { width: 40px; height: 40px; }
  .v6-epilogue-stop div { grid-template-columns: 1fr; }
  .v6-epilogue-stop h3 { font-size: 1.55rem; }
  .v6-publishing-folio .journey-list { padding: 42px 20px 95px; grid-template-columns: 1fr; }
  .v6-publishing-folio .journey-envelope { min-height: 270px; }
  .v6-supplements { padding: 95px 22px; }
  .v5-library .library-grid > a { min-height: 0; padding: 28px 4px; grid-template-columns: 1fr; }
  .v5-library .library-hero,
  .reading-index .library-hero { min-height: auto; padding: 82px 22px 72px; gap: 34px; }
  .v5-library .library-hero h1,
  .reading-index .library-hero h1 { font-size: clamp(3.75rem, 18vw, 5rem); }
  .v5-library .library-hero > p,
  .reading-index .library-hero > p { font-size: 0.95rem; line-height: 1.8; }
  .v5-library .library-grid b { grid-column: auto; }
  .reading-index .reading-links a,
  .reading-index .reading-links a:nth-child(2n + 1) { min-height: 105px; padding: 22px 4px; grid-template-columns: 1fr 24px; }
  .reading-index .reading-links small { grid-column: 1; }
  .reading-index .reading-links strong { grid-column: 1; }
  .reading-index .reading-links a::after { grid-column: 2; grid-row: 1 / span 2; }
  .v6-group-state { min-height: auto; padding: 95px 22px; }
  .v6-group-copy h1 { font-size: clamp(4rem, 21vw, 5.8rem); }
  .v6-group-mark { min-height: 330px; padding: 28px; }
  .v6-group-mark > span { width: 112px; height: 112px; font-size: 2.1rem; }
  .v6-group-links { grid-template-columns: 1fr; }
  .v6-group-links a { min-height: 170px; }
  .v6-longform-index { padding: 75px 20px; }
  .v6-longform-index ol { grid-template-columns: 1fr; }
  .v6-longform-index a,
  .v6-longform-index a:first-child { min-height: 92px; padding: 18px 14px; align-items: center; border-left: 1px solid rgba(255, 255, 255, 0.14); grid-template-columns: 40px 1fr; }
  body[data-v6-phase="publishing"] .lesson-head { background: linear-gradient(#35161c 0 49vh, #f4e9da 49vh); }
  body[data-v6-phase="continuation"] .lesson-head { background: linear-gradient(#e5dac8 0 49vh, #18211f 49vh); }
  body[data-v6-phase="continuation"] .lesson-head::before { border-color: #17201e; }
  body[data-v5-unit="principle-7"] .longform-content > h2 { font-size: 2.35rem; }
  body[data-v5-unit="principle-7"] .longform-content > h2::before { left: -0.25em; }
  body[data-v5-unit],
  body[data-v5-resource] { padding-bottom: 78px; font-size: 17px; }
  body[data-v5-unit] .topbar,
  body[data-v5-resource] .topbar { min-height: 62px; }
  body[data-v5-unit] .topbar .nav a:first-child,
  body[data-v5-resource] .topbar .nav a:first-child { display: none; }
  body[data-v5-unit] .lesson-head,
  body[data-v5-resource] .lesson-head {
    min-height: auto;
    padding: 56vh 22px 82px;
    background: linear-gradient(#111719 0 49vh, #f7efe3 49vh);
  }
  body[data-v5-unit][data-v6-phase="publishing"] .lesson-head {
    background: linear-gradient(#35161c 0 49vh, #f4e9da 49vh);
  }
  body[data-v5-unit][data-v6-phase="continuation"] .lesson-head {
    background: linear-gradient(#e5dac8 0 49vh, #18211f 49vh);
  }
  body[data-v5-unit] .lesson-head::before,
  body[data-v5-resource] .lesson-head::before { inset: 23px 20px auto; height: 44vh; border-width: 9px; }
  body[data-v5-unit] .lesson-head::after,
  body[data-v5-resource] .lesson-head::after { top: 29px; right: 24px; font-size: 6.5rem; }
  .v6-lesson-marker { margin-bottom: 30px; }
  body[data-v5-unit] .lesson-head h1,
  body[data-v5-resource] .lesson-head h1 { font-size: clamp(2.85rem, 13vw, 4.3rem); }
  body[data-v5-unit] .lesson-head h1.is-v6-long-title,
  body[data-v5-resource] .lesson-head h1.is-v6-long-title {
    font-size: clamp(2.5rem, 10.7vw, 3.45rem);
    line-height: 1.08;
  }
  body[data-v5-unit] .content,
  body[data-v5-resource] .content { width: calc(100% - 38px); padding: 100px 0; font-size: 1rem; }
  body[data-v5-unit] .content h2,
  body[data-v5-resource] .content h2 { margin-top: 3.7em; font-size: 2rem; }
  body[data-v5-unit] .content blockquote,
  body[data-v5-resource] .content blockquote { padding: 26px 22px; }
  .v5-completion { min-height: 0; padding: 110px 19px; }
  .v5-completion::before { inset: 20px; }
  .v6-mobile-dock {
    position: fixed;
    z-index: 70;
    right: 0;
    bottom: 0;
    left: 0;
    display: grid;
    min-height: 78px;
    padding: 12px 16px;
    align-items: center;
    border-top: 1px solid rgba(255, 255, 255, 0.13);
    grid-template-columns: minmax(0, 1fr) auto;
    color: #f6efe4;
    background: rgba(17, 23, 25, 0.96);
    backdrop-filter: blur(18px);
  }
  .v6-mobile-dock span { display: grid; min-width: 0; gap: 2px; }
  .v6-mobile-dock small { color: #d6b47e; font-size: 0.54rem; font-weight: 800; letter-spacing: 0.09em; }
  .v6-mobile-dock b { overflow: hidden; font-family: var(--v6-serif); font-size: 0.84rem; font-weight: 500; text-overflow: ellipsis; white-space: nowrap; }
  .v6-mobile-dock a { display: inline-flex; min-height: 44px; padding: 0 16px; align-items: center; color: var(--v6-ink); background: #f1e4d0; font-size: 0.68rem; font-weight: 750; text-decoration: none; white-space: nowrap; }
}

@media (max-width: 390px) {
  .v6-header nav,
  .v6-portal-header nav { gap: 10px; }
  .v6-header nav a,
  .v6-portal-header nav a { font-size: 0.66rem; }
  .v6-header .header-enter { padding-inline: 10px; }
  .v6-hero-promise,
  .v6-hero-lead,
  .v6-hero-actions,
  .v6-sequence { margin-left: 0; }
  .v6-letter-matte,
  .v6-current-frame { min-height: 420px; }
  .v6-current-copy h1 { font-size: 3.2rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}
