/* ==========================================================================
   上岸制造局 — visual system
   ========================================================================== */

:root {
  --paper: #f4f0e6;
  --paper-light: #fbf8f0;
  --paper-deep: #e9e1d2;
  --ink: #181714;
  --ink-soft: #5c574d;
  --ink-muted: #8c8476;
  --line: rgba(24, 23, 20, 0.13);
  --line-strong: rgba(24, 23, 20, 0.26);
  --vermillion: #b63f30;
  --vermillion-dark: #8f2d21;
  --gold: #ac8848;
  --gold-light: #d6b778;
  --green: #395d46;
  --blue: #223f70;
  --serif: "Noto Serif SC", "Source Han Serif SC", "Songti SC", "STSong", "SimSun", serif;
  --sans: "Noto Sans SC", "MiSans", "Microsoft YaHei UI", "Microsoft YaHei", "PingFang SC", sans-serif;
  --mono: "Cascadia Mono", "SFMono-Regular", "Consolas", "Liberation Mono", monospace;
  --kai: "行楷体", "华文楷体", "KaiTi", "STKaiti", "Kaiti SC", "Noto Serif SC", serif;
  --page-pad: clamp(20px, 5vw, 76px);
  --max-width: 1400px;
  --ease: cubic-bezier(0.22, 0.68, 0.16, 1);
  --ease-soft: cubic-bezier(0.33, 1, 0.68, 1);
  --shadow-soft: 0 26px 60px -34px rgba(32, 27, 18, 0.35);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(60% 40% at 12% 2%, rgba(185, 150, 83, 0.14), transparent 70%),
    radial-gradient(45% 40% at 92% 14%, rgba(171, 58, 43, 0.06), transparent 75%),
    var(--paper);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 99;
  pointer-events: none;
  opacity: 0.12;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='260' height='260'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.78' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='260' height='260' filter='url(%23n)' opacity='.5'/%3E%3C/svg%3E");
}

body.is-locked {
  overflow: hidden;
}

::selection {
  color: var(--paper-light);
  background: var(--vermillion);
}

button,
input,
select {
  font: inherit;
}

button {
  color: inherit;
}

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

img,
svg {
  display: block;
}

h1,
h2,
h3,
p,
dl,
dd,
dt,
blockquote {
  margin: 0;
}

button {
  border: 0;
}

fieldset {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

legend {
  padding: 0;
}

[hidden] {
  display: none !important;
}

.svg-library {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 500;
  padding: 10px 14px;
  color: var(--paper-light);
  background: var(--ink);
  transform: translateY(-140%);
  transition: transform 0.2s ease;
}

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

/* ==========================================================================
   Shared atoms
   ========================================================================== */

.icon {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
}

.icon--sm {
  width: 14px;
  height: 14px;
}

.eyebrow {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 9px;
  color: var(--ink-soft);
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: 0.115em;
  text-transform: uppercase;
}

.eyebrow__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--vermillion);
  box-shadow: 0 0 0 4px rgba(182, 63, 48, 0.1);
}

.eyebrow__line {
  width: 32px;
  height: 1px;
  background: var(--line-strong);
}

.button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 50px;
  padding: 0 21px;
  border: 1px solid transparent;
  border-radius: 4px;
  background: transparent;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: 0.025em;
  text-align: center;
  cursor: pointer;
  transition:
    color 0.25s var(--ease),
    background 0.25s var(--ease),
    border-color 0.25s var(--ease),
    transform 0.25s var(--ease),
    box-shadow 0.25s var(--ease);
}

.button:hover {
  transform: translateY(-2px);
}

.button:active {
  transform: translateY(0);
}

.button:focus-visible,
.back-link:focus-visible,
.text-link:focus-visible,
.academy-tab:focus-visible,
.brand:focus-visible,
.main-nav a:focus-visible,
.main-nav button:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
}

.screen h1:focus,
.screen h1[tabindex="-1"]:focus {
  outline: none;
}

.button--primary {
  color: #fbf7ee;
  background: var(--vermillion);
  box-shadow: 0 16px 28px -20px rgba(129, 38, 27, 0.8);
}

.button--primary:hover {
  background: var(--vermillion-dark);
  box-shadow: 0 20px 34px -20px rgba(129, 38, 27, 0.72);
}

.button--ink {
  color: var(--paper-light);
  background: var(--ink);
}

.button--ink:hover {
  background: #000;
}

.button--lg {
  min-height: 62px;
  padding: 0 10px 0 25px;
  font-size: 14px;
  gap: 24px;
}

.button--xl {
  min-height: 72px;
  padding: 0 12px 0 24px;
  font-size: 15px;
}

.button--block {
  width: 100%;
}

.button--nav {
  min-height: 38px;
  padding: 0 14px;
  border-radius: 3px;
  font-size: 11px;
  letter-spacing: 0.06em;
}

.button--nav .icon {
  width: 13px;
  height: 13px;
}

.button--outline {
  border-color: var(--line-strong);
  background: transparent;
}

.button--outline:hover {
  border-color: var(--ink);
  background: rgba(255, 255, 255, 0.28);
}

.button--light {
  color: var(--ink);
  background: var(--paper-light);
}

.button--light:hover {
  background: #fff;
}

.button--outline-light {
  color: var(--paper-light);
  border-color: rgba(255, 255, 255, 0.3);
}

.button--outline-light:hover {
  border-color: rgba(255, 255, 255, 0.7);
  background: rgba(255, 255, 255, 0.06);
}

.button__round {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  transition:
    background 0.25s var(--ease),
    transform 0.25s var(--ease);
}

.button:hover .button__round {
  background: rgba(255, 255, 255, 0.17);
  transform: translateX(2px);
}

.button__round--large {
  width: 46px;
  height: 46px;
}

.button__round .icon {
  width: 15px;
  height: 15px;
}

.microcopy {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--ink-muted);
  font-family: var(--mono);
  font-size: 9px;
  line-height: 1.5;
  letter-spacing: 0.04em;
}

.microcopy > span {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--gold);
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 0;
  border: 0;
  background: none;
  color: var(--ink-soft);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.06em;
  cursor: pointer;
  transition: color 0.2s ease;
}

.back-link:hover {
  color: var(--vermillion);
}

.text-link {
  display: inline;
  padding: 0;
  border: 0;
  border-bottom: 1px solid transparent;
  background: none;
  color: var(--ink-soft);
  font-family: var(--sans);
  font-size: 11px;
  line-height: 1.7;
  cursor: pointer;
  transition:
    color 0.2s ease,
    border-color 0.2s ease;
}

.text-link:hover {
  color: var(--vermillion);
  border-color: rgba(182, 63, 48, 0.45);
}

.text-link--dark {
  color: var(--ink-soft);
}

.page-container {
  width: min(100%, calc(var(--max-width) + var(--page-pad) * 2));
  margin: 0 auto;
  padding: 0 var(--page-pad);
}

.page-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}

.page-step,
.status-pill {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--ink-muted);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.page-step i {
  width: 28px;
  height: 1px;
  background: var(--line);
}

.status-pill {
  padding: 7px 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
}

.status-pill span {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #507a5a;
  box-shadow: 0 0 0 3px rgba(80, 122, 90, 0.1);
}

.status-pill--letter {
  color: rgba(24, 23, 20, 0.7);
}

/* ==========================================================================
   Topbar
   ========================================================================== */

.topbar {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid var(--line);
  background: rgba(244, 240, 230, 0.84);
  backdrop-filter: blur(18px) saturate(130%);
  -webkit-backdrop-filter: blur(18px) saturate(130%);
}

.topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  width: min(100%, calc(var(--max-width) + var(--page-pad) * 2));
  min-height: 74px;
  margin: 0 auto;
  padding: 0 var(--page-pad);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 0;
  background: none;
  text-align: left;
  cursor: pointer;
}

.brand__seal {
  position: relative;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  overflow: hidden;
  border-radius: 3px;
  color: #f9e9dd;
  background: var(--vermillion);
  font-family: var(--serif);
  font-size: 21px;
  font-weight: 700;
  line-height: 1;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.23);
  transform: rotate(-2deg);
}

.brand__seal::after {
  content: "";
  position: absolute;
  inset: 4px;
  border: 1px solid rgba(255, 242, 229, 0.34);
  border-radius: 1px;
}

.brand__text {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.brand__text strong {
  font-family: var(--serif);
  font-size: 15px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.04em;
}

.brand__text small {
  color: var(--ink-muted);
  font-family: var(--mono);
  font-size: 7px;
  line-height: 1.2;
  letter-spacing: 0.08em;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 26px;
  margin-left: auto;
  margin-right: 20px;
}

.main-nav a,
.main-nav button {
  position: relative;
  padding: 5px 0;
  border: 0;
  background: none;
  color: var(--ink-soft);
  font-size: 11px;
  letter-spacing: 0.08em;
  cursor: pointer;
  transition: color 0.2s ease;
}

.main-nav a::after,
.main-nav button::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 1px;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s var(--ease);
}

.main-nav a:hover,
.main-nav button:hover {
  color: var(--ink);
}

.main-nav a:hover::after,
.main-nav button:hover::after {
  transform: scaleX(1);
}

.topbar__tools {
  display: flex;
  align-items: center;
  gap: 13px;
}

.topbar__pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--ink-muted);
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.08em;
  white-space: nowrap;
}

.topbar__pill i {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--vermillion);
}

body:not([data-screen="home"]) .main-nav,
body:not([data-screen="home"]) #topbarCta {
  display: none;
}

body:not([data-screen="home"]) .topbar__tools {
  margin-left: auto;
}

/* ==========================================================================
   Screen system
   ========================================================================== */

.screen {
  display: none;
}

.screen.is-active {
  display: block;
  animation: screen-in 0.55s var(--ease-soft) both;
}

#app {
  min-height: 60vh;
}

@keyframes screen-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.reveal-up {
  animation: rise-in 0.85s var(--ease-soft) both;
  animation-delay: var(--delay, 0ms);
}

@keyframes rise-in {
  from {
    opacity: 0;
    transform: translateY(22px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.reveal-scroll {
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity 0.7s var(--ease-soft),
    transform 0.7s var(--ease-soft);
  transition-delay: var(--delay, 0ms);
}

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

/* ==========================================================================
   Home hero
   ========================================================================== */

.home-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.03fr) minmax(420px, 0.97fr);
  align-items: center;
  gap: clamp(34px, 5vw, 76px);
  width: min(100%, calc(var(--max-width) + var(--page-pad) * 2));
  min-height: min(840px, calc(100svh - 74px));
  margin: 0 auto;
  padding: clamp(42px, 5.2vw, 84px) var(--page-pad) clamp(44px, 5.4vw, 84px);
}

.hero-copy {
  position: relative;
  z-index: 2;
  padding: 6px 0 2px;
}

.hero-title {
  margin: 29px 0 27px;
  font-family: var(--serif);
  font-size: clamp(52px, 5.7vw, 88px);
  font-weight: 600;
  line-height: 1.06;
  letter-spacing: -0.055em;
}

.hero-title__line {
  display: block;
  white-space: nowrap;
}

.hero-title__accent {
  position: relative;
  z-index: 0;
  display: inline-block;
  color: var(--vermillion);
}

.hero-title__accent::before {
  content: "";
  position: absolute;
  right: -0.06em;
  bottom: 0.035em;
  left: 0.01em;
  z-index: -1;
  height: 0.27em;
  border-radius: 62% 38% 54% 42%;
  background: rgba(188, 153, 84, 0.34);
  transform: rotate(-1.4deg);
}

.hero-title__period {
  color: var(--vermillion);
}

.hero-lead {
  max-width: 475px;
  color: var(--ink-soft);
  font-size: 15px;
  line-height: 1.9;
  letter-spacing: 0.01em;
}

.hero-lead--muted {
  max-width: 490px;
  margin-top: 5px;
  color: var(--ink-muted);
  font-size: 12px;
  line-height: 1.8;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px;
  margin-top: 29px;
}

.hero-meta {
  display: flex;
  align-items: center;
  gap: 15px;
  max-width: 475px;
  margin-top: 34px;
  padding-top: 19px;
  border-top: 1px solid var(--line);
}

.hero-meta__line {
  width: 27px;
  height: 1px;
  background: var(--line-strong);
}

.hero-meta p {
  color: var(--ink-muted);
  font-family: var(--mono);
  font-size: 8px;
  line-height: 1.6;
  letter-spacing: 0.045em;
}

.hero-meta strong {
  color: var(--ink-soft);
  font-weight: 600;
}

/* Hero stage / artwork */

.hero-stage {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 580px;
  isolation: isolate;
}

.hero-stage__wash {
  position: absolute;
  top: 13%;
  left: 2%;
  width: min(88%, 500px);
  aspect-ratio: 1;
  border-radius: 50%;
  background:
    radial-gradient(circle at 36% 33%, rgba(246, 227, 183, 0.95), rgba(225, 198, 142, 0.76) 42%, rgba(225, 198, 142, 0.12) 68%, transparent 69%);
  filter: blur(0.4px);
  opacity: 0.76;
}

.hero-stage__orbit {
  position: absolute;
  top: 4%;
  right: -4%;
  width: 87%;
  aspect-ratio: 1;
  border: 1px solid rgba(24, 23, 20, 0.1);
  border-radius: 50%;
}

.hero-stage__orbit::before {
  content: "MAKE A WISH · ADMISSION SEASON · MAKE A WISH · ADMISSION SEASON ·";
  position: absolute;
  top: -16px;
  left: 13%;
  width: 74%;
  color: rgba(24, 23, 20, 0.28);
  font-family: var(--mono);
  font-size: 7px;
  letter-spacing: 0.23em;
  text-align: center;
}

.hero-stage__orbit::after {
  content: "";
  position: absolute;
  top: 9%;
  right: 10%;
  width: 7px;
  height: 7px;
  border: 1px solid var(--vermillion);
  border-radius: 50%;
  background: var(--paper);
}

.hero-card-mount {
  position: relative;
  z-index: 4;
  width: min(100%, 574px);
  container-type: inline-size;
  transform: rotate(3deg);
  filter: drop-shadow(0 29px 29px rgba(48, 38, 22, 0.18));
  transition: transform 0.7s var(--ease-soft);
}

.hero-card-mount:hover {
  transform: rotate(1.2deg) translateY(-5px);
}

.stage-note {
  position: absolute;
  top: 1%;
  left: -2%;
  z-index: 6;
  width: 174px;
  padding: 24px 18px 17px;
  color: #3e3930;
  background: #fcf7e9;
  box-shadow: 0 18px 30px -22px rgba(42, 34, 20, 0.4);
  transform: rotate(-7deg);
}

.stage-note::after {
  content: "";
  position: absolute;
  right: 11px;
  bottom: 10px;
  width: 25px;
  height: 25px;
  border-radius: 50%;
  border: 1px solid rgba(170, 57, 43, 0.32);
}

.stage-note__tape {
  position: absolute;
  top: -10px;
  left: 50%;
  width: 74px;
  height: 20px;
  background: rgba(204, 183, 141, 0.58);
  transform: translateX(-50%) rotate(2deg);
  box-shadow: 0 2px 5px rgba(57, 43, 22, 0.08);
}

.stage-note__to {
  display: block;
  margin-bottom: 7px;
  color: var(--ink-muted);
  font-family: var(--mono);
  font-size: 6.5px;
  line-height: 1.4;
  letter-spacing: 0.09em;
}

.stage-note p {
  margin-bottom: 11px;
  font-family: var(--kai);
  font-size: 24px;
  line-height: 1.2;
  letter-spacing: 0.05em;
  white-space: nowrap;
}

.stage-note small {
  color: var(--ink-muted);
  font-family: var(--mono);
  font-size: 7px;
  line-height: 1.7;
  letter-spacing: 0.04em;
}

.stage-stamp {
  position: absolute;
  bottom: 7%;
  left: -3%;
  z-index: 7;
  display: grid;
  grid-template-columns: 1fr 1fr;
  place-items: center;
  width: 108px;
  height: 108px;
  padding: 21px 15px 15px;
  border: 2px solid rgba(177, 57, 43, 0.83);
  border-radius: 50%;
  color: var(--vermillion);
  background: rgba(244, 240, 230, 0.28);
  font-family: var(--serif);
  font-size: 27px;
  font-weight: 700;
  line-height: 0.95;
  transform: rotate(-14deg);
  mix-blend-mode: multiply;
  opacity: 0.91;
}

.stage-stamp::before {
  content: "";
  position: absolute;
  inset: 6px;
  border: 1px solid rgba(177, 57, 43, 0.45);
  border-radius: 50%;
}

.stage-stamp small {
  grid-column: 1 / -1;
  margin-top: 4px;
  color: rgba(177, 57, 43, 0.8);
  font-family: var(--mono);
  font-size: 6px;
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: 0.09em;
  white-space: nowrap;
}

.admitslip {
  position: absolute;
  right: -1.5%;
  bottom: 4%;
  z-index: 5;
  width: 124px;
  padding: 17px 14px 14px;
  color: var(--ink);
  background: #fcf8ed;
  border: 1px solid rgba(24, 23, 20, 0.14);
  box-shadow: 0 16px 26px -21px rgba(42, 34, 20, 0.4);
  transform: rotate(7deg);
}

.admitslip::before {
  content: "";
  position: absolute;
  top: -7px;
  left: 50%;
  width: 50px;
  height: 15px;
  background: rgba(202, 179, 132, 0.5);
  transform: translateX(-50%) rotate(-2deg);
}

.admitslip__small,
.admitslip__foot {
  display: block;
  color: var(--ink-muted);
  font-family: var(--mono);
  font-size: 6px;
  line-height: 1.6;
  letter-spacing: 0.12em;
}

.admitslip__big {
  display: block;
  margin: 4px 0 8px;
  font-family: var(--serif);
  font-size: 27px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.02em;
}

.admitslip__rule {
  display: block;
  margin-bottom: 8px;
  border-top: 1px dashed var(--line-strong);
}

.admitslip__foot {
  font-size: 6.5px;
  line-height: 1.7;
}

.hero-stage__caption {
  position: absolute;
  bottom: -2%;
  left: 50%;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--ink-muted);
  font-size: 10px;
  letter-spacing: 0.02em;
  white-space: nowrap;
  transform: translateX(-50%);
}

.hero-stage__caption span {
  width: 21px;
  height: 1px;
  background: var(--line-strong);
}

/* ==========================================================================
   Offer card
   ========================================================================== */

.card-mount {
  container-type: inline-size;
  width: 100%;
}

.offer-card {
  position: relative;
  isolation: isolate;
  width: 100%;
  aspect-ratio: 1.62 / 1;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 5px;
  color: #f8f0dd;
  background:
    radial-gradient(120% 100% at 100% 0%, rgba(255, 255, 255, 0.14), transparent 42%),
    radial-gradient(85% 120% at 4% 100%, rgba(0, 0, 0, 0.25), transparent 62%),
    linear-gradient(130deg, var(--school-deep) 0%, var(--school-color) 58%, color-mix(in srgb, var(--school-color) 74%, #000) 100%);
  box-shadow:
    0 36px 62px -37px rgba(25, 20, 13, 0.58),
    0 2px 0 rgba(255, 255, 255, 0.13) inset;
  transform: translateZ(0);
  transition:
    transform 0.6s var(--ease-soft),
    box-shadow 0.6s var(--ease-soft);
}

.offer-card::before {
  content: "";
  position: absolute;
  inset: 3.2%;
  z-index: 1;
  border: 1px solid rgba(228, 202, 145, 0.34);
  border-radius: 2px;
  pointer-events: none;
}

.offer-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 7;
  pointer-events: none;
  background: linear-gradient(112deg, transparent 22%, rgba(255, 255, 255, 0.09) 38%, transparent 50%, rgba(255, 255, 255, 0.045) 69%, transparent 82%);
  mix-blend-mode: screen;
}

.offer-card__foil {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.offer-card__foil::before {
  content: "";
  position: absolute;
  top: -50%;
  right: -13%;
  width: 57%;
  height: 160%;
  border-left: 1px solid rgba(235, 210, 152, 0.11);
  background: linear-gradient(90deg, transparent, rgba(255, 228, 167, 0.055) 42%, transparent 84%);
  transform: rotate(21deg);
}

.offer-card__grain {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.15;
  mix-blend-mode: soft-light;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.95' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23g)'/%3E%3C/svg%3E");
}

.offer-card__ring {
  position: absolute;
  top: 10%;
  right: -6%;
  z-index: 0;
  width: 48%;
  aspect-ratio: 1;
  border-radius: 50%;
  opacity: 0.22;
  background: repeating-radial-gradient(circle, transparent 0 8px, rgba(231, 203, 142, 0.38) 8.6px 9.2px);
  mask-image: radial-gradient(circle, transparent 0 12%, #000 30%, transparent 72%);
  -webkit-mask-image: radial-gradient(circle, transparent 0 12%, #000 30%, transparent 72%);
}

.offer-card__top {
  position: absolute;
  top: 7.4%;
  right: 7.4%;
  left: 7.4%;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  color: rgba(246, 232, 203, 0.68);
  font-family: var(--mono);
  font-size: clamp(6px, 1.1cqw, 8.5px);
  line-height: 1.4;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.offer-card__top span:last-child {
  color: rgba(246, 232, 203, 0.47);
  white-space: nowrap;
}

.offer-card__main {
  position: absolute;
  top: 22%;
  right: 7.4%;
  left: 7.4%;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 5.2%;
}

.offer-card__crest {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 19.5cqw;
  height: 19.5cqw;
  flex: 0 0 auto;
  border: 1px solid rgba(229, 202, 143, 0.63);
  border-radius: 50%;
  color: var(--school-accent);
  background: rgba(6, 13, 12, 0.16);
  box-shadow:
    0 0 0 3px rgba(230, 205, 148, 0.08),
    inset 0 0 0 5px rgba(230, 205, 148, 0.06);
}

.offer-card__crest::before,
.offer-card__crest::after {
  content: "";
  position: absolute;
  width: 4px;
  height: 4px;
  border: 1px solid rgba(230, 205, 148, 0.52);
  transform: rotate(45deg);
}

.offer-card__crest::before {
  top: 16%;
  left: 9%;
}

.offer-card__crest::after {
  right: 9%;
  bottom: 16%;
}

.offer-card__crest > span {
  font-family: var(--serif);
  font-size: clamp(27px, 8.4cqw, 54px);
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0.02em;
  transform: translateY(1px);
}

.offer-card__crest > small {
  margin-top: 0.55em;
  color: rgba(242, 228, 198, 0.6);
  font-family: var(--mono);
  font-size: clamp(5px, 0.9cqw, 7px);
  line-height: 1;
  letter-spacing: 0.17em;
}

.offer-card__identity {
  min-width: 0;
  padding-top: 0.3%;
}

.offer-card__en {
  margin-bottom: 1.1em;
  color: rgba(242, 232, 210, 0.6);
  font-family: var(--mono);
  font-size: clamp(5.5px, 1.25cqw, 9px);
  line-height: 1.45;
  letter-spacing: 0.14em;
}

.offer-card__identity h2 {
  color: #fbf3e1;
  font-family: var(--serif);
  font-size: clamp(21px, 5.8cqw, 45px);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: 0.08em;
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.2);
}

.offer-card__motto {
  margin-top: 1.1em;
  color: rgba(242, 228, 200, 0.67);
  font-family: var(--kai);
  font-size: clamp(8px, 2.1cqw, 13px);
  line-height: 1.5;
  letter-spacing: 0.12em;
}

.offer-card__rule {
  position: absolute;
  top: 62%;
  right: 7.4%;
  left: 7.4%;
  z-index: 3;
  height: 1px;
  background: rgba(237, 215, 165, 0.2);
}

.offer-card__rule span {
  position: absolute;
  top: -2px;
  left: 0;
  width: 26px;
  height: 5px;
  background: var(--school-accent);
  opacity: 0.72;
}

.offer-card__bottom {
  position: absolute;
  right: 7.4%;
  bottom: 17.5%;
  left: 7.4%;
  z-index: 3;
  display: grid;
  grid-template-columns: 1.05fr 1.35fr 0.7fr;
  gap: 5%;
}

.offer-field {
  min-width: 0;
}

.offer-field > span {
  display: block;
  margin-bottom: 0.85em;
  color: rgba(241, 228, 201, 0.45);
  font-family: var(--mono);
  font-size: clamp(5px, 1.05cqw, 8px);
  line-height: 1.35;
  letter-spacing: 0.1em;
  white-space: nowrap;
}

.offer-field > strong {
  display: block;
  overflow: hidden;
  color: #f9f0dc;
  font-family: var(--serif);
  font-size: clamp(10px, 2.4cqw, 16px);
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: 0.02em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.offer-field:nth-child(2) > strong {
  color: #f1dfba;
}

.offer-card__fine {
  position: absolute;
  right: 7.4%;
  bottom: 6.2%;
  left: 7.4%;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  color: rgba(241, 228, 201, 0.32);
  font-family: var(--mono);
  font-size: clamp(4.5px, 0.92cqw, 7px);
  line-height: 1.3;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  white-space: nowrap;
}

.offer-card__fine span:last-child {
  text-align: right;
}

.offer-card__micro {
  position: absolute;
  top: 50%;
  right: 4.3%;
  z-index: 3;
  color: rgba(241, 228, 201, 0.35);
  font-family: var(--mono);
  font-size: clamp(4px, 0.78cqw, 6px);
  letter-spacing: 0.15em;
  writing-mode: vertical-rl;
}

/* ==========================================================================
   School marquee
   ========================================================================== */

.school-marquee {
  display: flex;
  overflow: hidden;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  background: var(--ink);
  color: var(--paper);
}

.school-marquee__track {
  display: flex;
  align-items: center;
  justify-content: space-around;
  min-width: 100%;
  flex-shrink: 0;
  gap: 28px;
  padding: 16px 28px;
  animation: marquee 34s linear infinite;
}

.school-marquee__track span {
  color: rgba(244, 240, 230, 0.72);
  font-family: var(--serif);
  font-size: 12px;
  letter-spacing: 0.16em;
  white-space: nowrap;
}

.school-marquee__track i {
  color: rgba(214, 183, 120, 0.6);
  font-family: var(--serif);
  font-size: 9px;
  font-style: normal;
}

@keyframes marquee {
  to {
    transform: translateX(-100%);
  }
}

/* ==========================================================================
   How it works
   ========================================================================== */

.how-section {
  width: min(100%, calc(var(--max-width) + var(--page-pad) * 2));
  margin: 0 auto;
  padding: clamp(70px, 8vw, 120px) var(--page-pad) clamp(70px, 8.5vw, 126px);
}

.how-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(250px, 0.72fr);
  align-items: end;
  gap: clamp(30px, 6vw, 80px);
  margin-bottom: clamp(38px, 4.5vw, 62px);
}

.how-heading h2 {
  margin-top: 22px;
  font-family: var(--serif);
  font-size: clamp(43px, 4.9vw, 72px);
  font-weight: 500;
  line-height: 1.14;
  letter-spacing: -0.045em;
}

.how-heading > p {
  max-width: 370px;
  justify-self: end;
  padding-bottom: 9px;
  color: var(--ink-soft);
  font-size: 12px;
  line-height: 2;
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line-strong);
}

.step {
  position: relative;
  min-height: 278px;
  padding: 25px clamp(20px, 2.5vw, 34px) 31px;
  border-right: 1px solid var(--line);
  overflow: hidden;
  transition: background 0.35s var(--ease);
}

.step:last-child {
  border-right: 0;
}

.step::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--vermillion);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s var(--ease);
}

.step:hover {
  background: rgba(255, 252, 245, 0.44);
}

.step:hover::before {
  transform: scaleX(1);
}

.step__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.step__num {
  color: var(--ink-muted);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.1em;
}

.step__icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  color: var(--ink-soft);
  transition:
    color 0.3s var(--ease),
    border-color 0.3s var(--ease),
    transform 0.4s var(--ease);
}

.step:hover .step__icon {
  color: var(--vermillion);
  border-color: rgba(182, 63, 48, 0.45);
  transform: rotate(-7deg);
}

.step h3 {
  margin: 34px 0 10px;
  font-family: var(--serif);
  font-size: 25px;
  font-weight: 500;
  letter-spacing: 0.015em;
}

.step p {
  max-width: 295px;
  color: var(--ink-soft);
  font-size: 12px;
  line-height: 1.95;
}

.how-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  padding-top: 30px;
}

.how-cta p {
  color: var(--ink-soft);
  font-family: var(--serif);
  font-size: 18px;
  letter-spacing: 0.02em;
}

.how-cta .button {
  min-height: 48px;
}

/* ==========================================================================
   Create screen
   ========================================================================== */

.screen--create {
  padding-bottom: clamp(52px, 6vw, 84px);
}

.create-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;
  padding: clamp(38px, 4.3vw, 62px) 0 clamp(30px, 3.6vw, 46px);
}

.create-header h1 {
  margin-top: 20px;
  font-family: var(--serif);
  font-size: clamp(42px, 4.8vw, 68px);
  font-weight: 500;
  line-height: 1.14;
  letter-spacing: -0.045em;
}

.create-header > p {
  max-width: 285px;
  padding-bottom: 7px;
  color: var(--ink-soft);
  font-size: 12px;
  line-height: 2;
  text-align: right;
}

.create-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(360px, 0.82fr);
  align-items: start;
  gap: clamp(30px, 4.1vw, 64px);
}

.form-panel {
  position: relative;
  padding: clamp(23px, 3.2vw, 38px);
  border: 1px solid var(--line);
  background:
    linear-gradient(115deg, rgba(255, 255, 255, 0.34), transparent 30%),
    rgba(251, 248, 240, 0.56);
  box-shadow: 0 24px 70px -62px rgba(32, 25, 15, 0.6);
}

.form-panel::before {
  content: "";
  position: absolute;
  top: -1px;
  left: clamp(23px, 3.2vw, 38px);
  width: 94px;
  height: 2px;
  background: var(--ink);
}

.form-section {
  position: relative;
}

.form-legend {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  margin-bottom: 19px;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.025em;
}

.form-index {
  display: inline-grid;
  place-items: center;
  width: 26px;
  height: 20px;
  border: 1px solid var(--line-strong);
  color: var(--ink-muted);
  font-family: var(--mono);
  font-size: 8px;
  font-weight: 400;
  letter-spacing: 0.03em;
}

.form-legend small {
  margin-left: auto;
  color: var(--ink-muted);
  font-family: var(--mono);
  font-size: 8px;
  font-weight: 400;
  letter-spacing: 0.045em;
}

.school-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 7px;
}

.school-option {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 88px;
  padding: 10px 10px 9px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: rgba(255, 252, 245, 0.65);
  cursor: pointer;
  transition:
    border-color 0.25s var(--ease),
    background 0.25s var(--ease),
    transform 0.25s var(--ease),
    box-shadow 0.25s var(--ease);
}

.school-option:hover {
  border-color: color-mix(in srgb, var(--school) 55%, var(--line));
  transform: translateY(-2px);
  box-shadow: 0 12px 22px -20px rgba(30, 24, 15, 0.4);
}

.school-option input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.school-option.is-selected {
  border-color: var(--school);
  background: color-mix(in srgb, var(--school) 5%, #fbf8f0);
  box-shadow: inset 0 0 0 1px var(--school);
}

.school-option.is-selected::after {
  content: "✓";
  position: absolute;
  top: 7px;
  right: 7px;
  display: grid;
  place-items: center;
  width: 17px;
  height: 17px;
  border-radius: 50%;
  color: #fff;
  background: var(--school);
  font-family: var(--sans);
  font-size: 9px;
  line-height: 1;
}

.school-option__seal {
  display: grid;
  place-items: center;
  width: 27px;
  height: 27px;
  border: 1px solid color-mix(in srgb, var(--school) 50%, transparent);
  color: var(--school);
  background: color-mix(in srgb, var(--school) 6%, #fffdf7);
  font-family: var(--kai);
  font-size: 18px;
  line-height: 1;
}

.school-option__name {
  display: block;
  margin-top: auto;
  color: var(--ink);
  font-family: var(--serif);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.25;
  letter-spacing: 0.02em;
}

.school-option__en {
  display: block;
  margin-top: 3px;
  overflow: hidden;
  color: var(--ink-muted);
  font-family: var(--mono);
  font-size: 6.5px;
  line-height: 1.4;
  letter-spacing: 0.05em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.school-option:focus-within {
  outline: 2px solid var(--ink);
  outline-offset: 2px;
}

.form-divider {
  height: 1px;
  margin: 27px 0 25px;
  background: var(--line);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}

.form-row + .form-row {
  margin-top: 22px;
}

.field {
  min-width: 0;
}

.field--full {
  grid-column: 1 / -1;
}

.field label {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin-bottom: 7px;
  color: var(--ink-soft);
  font-size: 10px;
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: 0.06em;
}

.field label .required {
  color: var(--vermillion);
  font-family: var(--mono);
  font-size: 10px;
}

.field__optional {
  margin-left: auto;
  color: var(--ink-muted);
  font-family: var(--mono);
  font-size: 7px;
  font-weight: 400;
  letter-spacing: 0.08em;
}

.field input,
.field select {
  width: 100%;
  min-height: 38px;
  padding: 5px 0 8px;
  border: 0;
  border-bottom: 1px solid var(--line-strong);
  border-radius: 0;
  outline: 0;
  color: var(--ink);
  background: transparent;
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: 0.015em;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.field input::placeholder {
  color: var(--ink-muted);
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.02em;
}

.field input:focus,
.field select:focus {
  border-bottom-color: var(--vermillion);
  box-shadow: 0 1px 0 var(--vermillion);
  outline: 0;
}

.field.is-invalid input {
  border-bottom-color: var(--vermillion);
  box-shadow: 0 1px 0 var(--vermillion);
}

.field__hint {
  min-height: 16px;
  margin-top: 5px;
  color: var(--ink-muted);
  font-size: 9px;
  line-height: 1.55;
  letter-spacing: 0.01em;
}

.field__error {
  display: block;
  max-height: 0;
  margin-top: 4px;
  overflow: hidden;
  color: var(--vermillion);
  font-size: 9px;
  line-height: 1.55;
  opacity: 0;
  transition:
    max-height 0.25s var(--ease),
    opacity 0.25s var(--ease);
}

.field.is-invalid .field__error {
  max-height: 35px;
  opacity: 1;
}

.select-wrap {
  position: relative;
}

.select-wrap select {
  padding-right: 25px;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
}

.select-wrap__icon {
  position: absolute;
  right: 1px;
  bottom: 15px;
  width: 15px;
  height: 15px;
  color: var(--ink-soft);
  pointer-events: none;
}

.submit-button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 67px;
  margin-top: 25px;
  padding: 12px 13px 12px 21px;
  text-align: left;
}

.submit-button__copy {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.submit-button__copy b {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.04em;
}

.submit-button__copy small {
  color: rgba(251, 247, 238, 0.6);
  font-family: var(--mono);
  font-size: 7px;
  font-weight: 400;
  line-height: 1.4;
  letter-spacing: 0.06em;
}

.privacy-note {
  display: flex;
  align-items: flex-start;
  gap: 7px;
  margin-top: 13px;
  color: var(--ink-muted);
  font-size: 8px;
  line-height: 1.65;
}

.privacy-note .icon {
  width: 11px;
  height: 11px;
  margin-top: 1px;
}

/* Live preview column */

.preview-panel {
  position: sticky;
  top: 100px;
  min-width: 0;
}

.preview-panel__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  padding-bottom: 13px;
  border-bottom: 1px solid var(--line);
  color: var(--ink-muted);
  font-family: var(--mono);
  font-size: 8px;
  line-height: 1.4;
  letter-spacing: 0.08em;
}

.preview-panel__head span:first-child {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--ink-soft);
}

.live-dot {
  display: inline-block;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #4b7556;
  box-shadow: 0 0 0 3px rgba(75, 117, 86, 0.1);
  animation: live-pulse 2.3s ease-in-out infinite;
}

@keyframes live-pulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.35;
  }
}

.live-card-mount {
  width: 100%;
  margin-top: 20px;
  container-type: inline-size;
  filter: drop-shadow(0 27px 28px rgba(47, 38, 23, 0.14));
  transform: rotate(-1.15deg);
  transition: transform 0.7s var(--ease-soft);
}

.live-card-mount:hover {
  transform: rotate(0) translateY(-3px);
}

.preview-teaser {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-top: 21px;
  padding-top: 17px;
  border-top: 1px solid var(--line);
}

.preview-teaser__icon {
  display: grid;
  place-items: center;
  width: 31px;
  height: 31px;
  flex: 0 0 auto;
  border: 1px solid var(--line);
  color: var(--ink-soft);
}

.preview-teaser__icon .icon {
  width: 15px;
  height: 15px;
}

.preview-teaser > div {
  min-width: 0;
}

.preview-teaser strong,
.preview-teaser span {
  display: block;
}

.preview-teaser strong {
  font-family: var(--serif);
  font-size: 12px;
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: 0.02em;
}

.preview-teaser div span {
  margin-top: 2px;
  color: var(--ink-muted);
  font-family: var(--mono);
  font-size: 7px;
  line-height: 1.5;
  letter-spacing: 0.04em;
}

.preview-teaser em {
  margin-left: auto;
  padding: 3px 6px;
  border: 1px solid rgba(182, 63, 48, 0.25);
  color: rgba(182, 63, 48, 0.78);
  font-family: var(--mono);
  font-size: 7px;
  font-style: normal;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.preview-panel__foot {
  margin-top: 23px;
  color: var(--ink-muted);
  font-family: var(--kai);
  font-size: 16px;
  line-height: 1.6;
  letter-spacing: 0.03em;
}

/* ==========================================================================
   Result screen
   ========================================================================== */

.screen--result {
  position: relative;
  overflow: hidden;
  padding-bottom: clamp(54px, 7vw, 98px);
}

.screen--result::before {
  content: "";
  position: absolute;
  top: 5%;
  left: 20%;
  width: 56%;
  height: 55%;
  pointer-events: none;
  background: radial-gradient(ellipse, color-mix(in srgb, var(--uni-color, #5e4770) 13%, transparent), transparent 68%);
  filter: blur(20px);
}

.result-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(355px, 0.88fr);
  align-items: center;
  gap: clamp(36px, 6vw, 94px);
  padding: clamp(46px, 6vw, 90px) 0 clamp(26px, 4vw, 55px);
}

.result-stage {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 480px;
  padding: 20px 0 58px;
}

.result-stage__label {
  position: absolute;
  top: 0;
  left: 2%;
  color: var(--ink-muted);
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.11em;
}

.result-stage__wash {
  position: absolute;
  top: 55%;
  left: 50%;
  width: 82%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, color-mix(in srgb, var(--uni-color, #5e4770) 16%, transparent), transparent 65%);
  filter: blur(14px);
  transform: translate(-50%, -50%);
}

.result-stage__backcard {
  position: absolute;
  top: calc(50% - 23px);
  left: 50%;
  width: min(86%, 600px);
  aspect-ratio: 1.62 / 1;
  border: 1px solid rgba(24, 23, 20, 0.13);
  background: #e9e1d2;
  transform: translate(-50%, -50%) rotate(-5deg);
  box-shadow: 0 20px 40px -30px rgba(24, 23, 20, 0.35);
}

.result-card-mount {
  position: relative;
  z-index: 2;
  width: min(100%, 620px);
  container-type: inline-size;
  transform: rotate(-1.6deg);
  filter: drop-shadow(0 35px 41px rgba(45, 36, 23, 0.22));
  transition: transform 0.7s var(--ease-soft);
}

.result-card-mount:hover {
  transform: rotate(0) translateY(-4px);
}

.result-stamp {
  position: absolute;
  right: 2.5%;
  bottom: 5%;
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 94px;
  height: 94px;
  border: 2px solid rgba(183, 59, 43, 0.78);
  border-radius: 50%;
  color: var(--vermillion);
  text-align: center;
  transform: rotate(-13deg);
  mix-blend-mode: multiply;
  opacity: 0.88;
}

.result-stamp::before {
  content: "";
  position: absolute;
  inset: 5px;
  border: 1px dashed rgba(183, 59, 43, 0.42);
  border-radius: 50%;
}

.result-stamp span {
  font-family: var(--serif);
  font-size: 19px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.02em;
}

.result-stamp small {
  position: absolute;
  bottom: 12px;
  color: rgba(183, 59, 43, 0.7);
  font-family: var(--mono);
  font-size: 5px;
  line-height: 1.45;
  letter-spacing: 0.08em;
}

.result-stage__caption {
  position: absolute;
  right: 0;
  bottom: 8px;
  left: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  color: var(--ink-muted);
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.04em;
}

.result-stage__caption .icon {
  color: var(--gold);
  width: 11px;
  height: 11px;
}

.result-copy h1 {
  margin: 22px 0 16px;
  font-family: var(--serif);
  font-size: clamp(34px, 3.5vw, 50px);
  font-weight: 500;
  line-height: 1.35;
  letter-spacing: -0.045em;
}

.name-highlight {
  position: relative;
  display: inline-block;
  z-index: 1;
}

.name-highlight::after {
  content: "";
  position: absolute;
  right: -0.04em;
  bottom: 0.06em;
  left: -0.04em;
  z-index: -1;
  height: 0.27em;
  border-radius: 52% 48% 36% 64%;
  background: rgba(187, 152, 83, 0.3);
  transform: rotate(-1deg);
}

.uni-highlight {
  color: var(--uni-color, #5e4770);
}

.result-lead {
  margin-bottom: 16px;
  color: var(--ink-muted);
  font-family: var(--kai);
  font-size: 20px;
  line-height: 1.5;
  letter-spacing: 0.03em;
}

.result-body {
  max-width: 390px;
  color: var(--ink-soft);
  font-size: 12px;
  line-height: 2;
}

.offer-cta {
  max-width: 395px;
  margin-top: 31px;
}

.offer-cta__copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 3px;
  text-align: left;
}

.offer-cta__copy small {
  color: rgba(251, 247, 238, 0.55);
  font-family: var(--mono);
  font-size: 7px;
  font-weight: 400;
  letter-spacing: 0.12em;
}

.offer-cta__copy b {
  font-family: var(--serif);
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 0.04em;
}

.offer-cta__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 10px;
  color: var(--ink-muted);
  font-family: var(--mono);
  font-size: 7px;
  letter-spacing: 0.04em;
}

.result-links {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 22px;
  color: var(--ink-muted);
  font-size: 10px;
}

.result-disclaimer {
  max-width: 360px;
  margin-top: 24px;
  padding-top: 15px;
  border-top: 1px solid var(--line);
  color: var(--ink-muted);
  font-size: 8px;
  line-height: 1.7;
}

/* ==========================================================================
   Letter screen
   ========================================================================== */

.screen--letter {
  --reveal-accent: #315d42;
  --reveal-soft: rgba(49, 93, 66, 0.1);
  position: relative;
  padding-bottom: clamp(56px, 7vw, 100px);
}

.screen--letter[data-academy="tiandou"] {
  --reveal-accent: #24477c;
  --reveal-soft: rgba(36, 71, 124, 0.09);
}

.screen--letter::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  width: min(90%, 1100px);
  height: 630px;
  pointer-events: none;
  background: radial-gradient(ellipse at 50% 0%, var(--reveal-soft), transparent 68%);
  transform: translateX(-50%);
}

.letter-intro {
  position: relative;
  z-index: 1;
  padding: clamp(38px, 4.5vw, 68px) 0 clamp(28px, 3.5vw, 46px);
}

.letter-intro h1 {
  margin: 22px 0 19px;
  font-family: var(--serif);
  font-size: clamp(44px, 5.2vw, 76px);
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.05em;
}

.letter-intro__academy {
  position: relative;
  display: inline-block;
  color: var(--reveal-accent);
}

.letter-intro__academy::after {
  content: "";
  position: absolute;
  right: -0.04em;
  bottom: 0.06em;
  left: 0;
  height: 0.16em;
  border-radius: 60% 40% 60% 30%;
  background: var(--reveal-soft);
  transform: rotate(-0.5deg);
}

.letter-intro > p {
  max-width: 690px;
  color: var(--ink-soft);
  font-size: 13px;
  line-height: 1.95;
}

.letter-intro__meta {
  position: absolute;
  top: clamp(78px, 7.2vw, 118px);
  right: 0;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 7px 18px;
  width: 235px;
  padding: 13px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  color: var(--ink-muted);
  font-family: var(--mono);
  font-size: 7px;
  line-height: 1.7;
  letter-spacing: 0.05em;
}

.letter-intro__meta span {
  text-transform: uppercase;
}

.letter-intro__meta strong {
  color: var(--ink-soft);
  font-size: 7px;
  font-weight: 400;
  text-align: right;
  letter-spacing: 0.03em;
}

.letter-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 15px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.academy-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.academy-tab {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 31px;
  padding: 0 10px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ink-soft);
  font-family: var(--sans);
  font-size: 10px;
  letter-spacing: 0.025em;
  cursor: pointer;
  transition:
    color 0.2s ease,
    background 0.2s ease,
    border-color 0.2s ease;
}

.academy-tab .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
}

.dot--shrek {
  background: #426d4c;
}

.dot--tiandou {
  background: #315a95;
}

.academy-tab:hover {
  border-color: var(--line-strong);
  background: rgba(255, 255, 255, 0.28);
}

.academy-tab.is-active {
  border-color: var(--ink);
  color: var(--paper-light);
  background: var(--ink);
}

.letter-toolbar__note {
  color: var(--ink-muted);
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.03em;
  text-align: right;
}

.letter-stage {
  position: relative;
  z-index: 1;
  max-width: 1120px;
  margin: clamp(23px, 3.1vw, 37px) auto 0;
  padding: 0 0 2px;
}

.letter-stage__glow {
  position: absolute;
  top: 15%;
  left: 50%;
  width: 80%;
  height: 75%;
  pointer-events: none;
  background: var(--reveal-soft);
  filter: blur(80px);
  transform: translateX(-50%);
}

.letter-mount {
  position: relative;
  z-index: 1;
  width: 100%;
  container-type: inline-size;
  animation: letter-arrive 0.9s var(--ease-soft) both;
  filter: drop-shadow(0 39px 40px rgba(27, 24, 17, 0.2));
}

@keyframes letter-arrive {
  from {
    opacity: 0;
    transform: translateY(24px) rotate(-0.7deg) scale(0.985);
  }
  to {
    opacity: 1;
    transform: translateY(0) rotate(0) scale(1);
  }
}

.letter-mount.is-switching {
  animation: letter-switch 0.55s var(--ease-soft) both;
}

@keyframes letter-switch {
  0% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
  45% {
    opacity: 0;
    transform: translateY(8px) scale(0.99);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.letter-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  max-width: 1120px;
  margin: 25px auto 0;
}

.letter-actions .button {
  min-height: 43px;
  padding: 0 15px;
  font-size: 11px;
}

.letter-actions .button .icon {
  width: 15px;
  height: 15px;
}

.letter-actions .text-link {
  margin-left: 3px;
  font-size: 10px;
}

.letter-actions__hint {
  width: 100%;
  margin-top: 2px;
  color: var(--ink-muted);
  font-family: var(--mono);
  font-size: 8px;
  line-height: 1.6;
  letter-spacing: 0.01em;
}

.letter-debrief {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
  max-width: 1120px;
  margin: clamp(39px, 5vw, 64px) auto 0;
  border: 1px solid var(--line);
  background: rgba(251, 248, 240, 0.54);
}

.letter-debrief__quote {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 297px;
  padding: clamp(25px, 3.4vw, 41px);
  color: #f4eddf;
  background:
    radial-gradient(110% 100% at 0% 0%, rgba(255, 255, 255, 0.07), transparent 52%),
    var(--reveal-accent);
  overflow: hidden;
}

.letter-debrief__quote::after {
  content: "“";
  position: absolute;
  right: 17px;
  bottom: -31px;
  color: rgba(255, 255, 255, 0.07);
  font-family: var(--serif);
  font-size: 180px;
  line-height: 1;
}

.debrief-kicker {
  color: rgba(244, 237, 223, 0.55);
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.1em;
}

.letter-debrief blockquote {
  position: relative;
  z-index: 1;
  max-width: 265px;
  margin: auto 0;
  font-family: var(--kai);
  font-size: clamp(24px, 2.4vw, 33px);
  line-height: 1.55;
  letter-spacing: 0.04em;
}

.letter-debrief blockquote::before {
  content: "“";
  display: block;
  margin-bottom: -0.2em;
  color: rgba(244, 237, 223, 0.45);
  font-family: var(--serif);
  font-size: 1.7em;
  line-height: 1;
}

.letter-debrief__quote > p {
  position: relative;
  z-index: 1;
  color: rgba(244, 237, 223, 0.58);
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.03em;
}

.letter-debrief__info {
  padding: clamp(25px, 3.4vw, 41px);
}

.letter-debrief__info h2 {
  margin: 16px 0 24px;
  font-family: var(--serif);
  font-size: clamp(24px, 2.2vw, 32px);
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: -0.025em;
}

.debrief-list {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line);
}

.debrief-list > div {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 20px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.debrief-list dt {
  color: var(--ink-muted);
  font-family: var(--mono);
  font-size: 8px;
  line-height: 1.8;
  letter-spacing: 0.04em;
}

.debrief-list dd {
  color: var(--ink);
  font-family: var(--serif);
  font-size: 12px;
  line-height: 1.8;
  text-align: right;
}

.debrief-note {
  margin-top: 19px;
  color: var(--ink-muted);
  font-size: 9px;
  line-height: 1.9;
}

.letter-share {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 225px;
  align-items: end;
  gap: 38px;
  max-width: 1120px;
  margin: clamp(38px, 5vw, 65px) auto 0;
  padding: clamp(29px, 4vw, 47px);
  overflow: hidden;
  color: var(--paper-light);
  background: var(--ink);
}

.letter-share::before {
  content: "喜";
  position: absolute;
  right: 15%;
  top: -33%;
  color: rgba(255, 255, 255, 0.035);
  font-family: var(--kai);
  font-size: 270px;
  line-height: 1;
  pointer-events: none;
}

.letter-share__copy {
  position: relative;
  z-index: 1;
}

.letter-share .eyebrow {
  color: rgba(251, 248, 240, 0.48);
}

.letter-share .eyebrow__dot {
  background: #c5a263;
  box-shadow: 0 0 0 4px rgba(197, 162, 99, 0.1);
}

.letter-share h2 {
  margin: 18px 0 13px;
  font-family: var(--serif);
  font-size: clamp(29px, 3.3vw, 45px);
  font-weight: 500;
  line-height: 1.35;
  letter-spacing: -0.035em;
}

.letter-share p {
  max-width: 420px;
  color: rgba(251, 248, 240, 0.58);
  font-size: 11px;
  line-height: 1.9;
}

.letter-share__actions {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.letter-share__actions .button {
  min-height: 45px;
  padding: 0 14px;
  font-size: 10px;
}

.letter-disclaimer {
  max-width: 1120px;
  margin: 21px auto 0;
  color: var(--ink-muted);
  font-family: var(--mono);
  font-size: 8px;
  line-height: 1.8;
  letter-spacing: 0.02em;
}

/* ==========================================================================
   THE LETTER
   ========================================================================== */

.letter {
  position: relative;
  isolation: isolate;
  width: 100%;
  aspect-ratio: 3 / 2;
  overflow: hidden;
  border-radius: 3px;
  color: var(--letter-ink);
  background:
    radial-gradient(115% 140% at 0% 0%, rgba(255, 255, 255, 0.09), transparent 45%),
    radial-gradient(85% 95% at 85% 95%, rgba(0, 0, 0, 0.24), transparent 55%),
    linear-gradient(128deg, var(--letter-bg-1) 0%, var(--letter-bg-2) 52%, var(--letter-bg-3) 100%);
  font-family: var(--serif);
  print-color-adjust: exact;
  -webkit-print-color-adjust: exact;
}

.letter--shrek {
  --letter-bg-1: #061f16;
  --letter-bg-2: #174a32;
  --letter-bg-3: #0b2a1d;
  --letter-ink: #efe7d3;
  --letter-muted: #b9c4ae;
  --letter-gold: #d3b36e;
  --letter-gold-light: #f1dfab;
  --letter-line: rgba(216, 187, 124, 0.42);
  --letter-line-soft: rgba(216, 187, 124, 0.2);
  --letter-accent: #93b887;
  --letter-ruby: #b34532;
  --letter-ribbon: linear-gradient(100deg, #806727 0%, #c3a15c 19%, #f3e0a4 47%, #c8a75f 72%, #806b36 100%);
}

.letter--tiandou {
  --letter-bg-1: #051633;
  --letter-bg-2: #10386f;
  --letter-bg-3: #07234b;
  --letter-ink: #f0e7d3;
  --letter-muted: #c2cee2;
  --letter-gold: #d8b770;
  --letter-gold-light: #f2dfa9;
  --letter-line: rgba(218, 188, 122, 0.45);
  --letter-line-soft: rgba(218, 188, 122, 0.21);
  --letter-accent: #9ebceb;
  --letter-ruby: #b44734;
  --letter-ribbon: linear-gradient(100deg, #856b29 0%, #cbaa63 19%, #f6e3a8 47%, #c7a65f 72%, #7f6935 100%);
}

.letter__texture,
.letter__watermark,
.letter__frame,
.letter__ribbon,
.letter__corner {
  pointer-events: none;
}

.letter__texture {
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: 0.5;
  background-image:
    radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.06) 0 1px, transparent 1.4px),
    radial-gradient(circle at 70% 60%, rgba(255, 255, 255, 0.05) 0 1px, transparent 1.6px);
  background-size: 47px 47px, 71px 71px;
  mask-image: linear-gradient(120deg, transparent 0 12%, #000 35%, #000 72%, transparent 100%);
  -webkit-mask-image: linear-gradient(120deg, transparent 0 12%, #000 35%, #000 72%, transparent 100%);
}

.letter--shrek .letter__texture {
  background-image:
    radial-gradient(ellipse at 15% 80%, rgba(84, 136, 89, 0.19) 0 7%, transparent 8%),
    radial-gradient(ellipse at 83% 22%, rgba(104, 151, 94, 0.11) 0 6%, transparent 7%),
    radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.075) 0 1px, transparent 1.5px),
    radial-gradient(circle at 70% 60%, rgba(255, 255, 255, 0.055) 0 1px, transparent 1.6px);
  background-size: auto, auto, 47px 47px, 71px 71px;
}

.letter--tiandou .letter__texture {
  background-image:
    linear-gradient(30deg, transparent 48.8%, rgba(229, 204, 147, 0.095) 49.2%, transparent 49.8%),
    linear-gradient(150deg, transparent 48.8%, rgba(229, 204, 147, 0.075) 49.2%, transparent 49.8%),
    radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.06) 0 1px, transparent 1.5px);
  background-size: 58px 58px, 58px 58px, 51px 51px;
}

.letter__watermark {
  position: absolute;
  right: 1.5%;
  bottom: -19%;
  z-index: 0;
  color: transparent;
  font-family: var(--kai);
  font-size: clamp(250px, 33vw, 485px);
  line-height: 0.75;
  opacity: 0.19;
  -webkit-text-stroke: 1px rgba(237, 218, 173, 0.28);
  transform: rotate(-5deg);
  user-select: none;
}

.letter--shrek .letter__watermark {
  -webkit-text-stroke-color: rgba(197, 219, 175, 0.24);
}

.letter--tiandou .letter__watermark {
  -webkit-text-stroke-color: rgba(185, 207, 244, 0.23);
}

.letter__frame {
  position: absolute;
  inset: 2.35%;
  z-index: 2;
  border: 1px solid var(--letter-line);
}

.letter__frame::before {
  content: "";
  position: absolute;
  inset: 0.47cqw;
  border: 1px solid var(--letter-line-soft);
}

.letter__frame::after {
  content: "";
  position: absolute;
  top: 50%;
  left: -1px;
  width: 3px;
  height: 15%;
  background: var(--letter-gold);
  opacity: 0.45;
  transform: translateY(-50%);
}

.letter__ribbon {
  position: absolute;
  z-index: 1;
  height: 4.3%;
  background: var(--letter-ribbon);
  box-shadow:
    0 2px 4px rgba(0, 0, 0, 0.2),
    0 0 0 1px rgba(255, 245, 210, 0.18) inset;
}

.letter__ribbon::after {
  content: "";
  position: absolute;
  inset: 1px 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.36), transparent 35%, rgba(71, 48, 13, 0.17));
}

.letter__ribbon--tl {
  top: 3.3%;
  left: -20.5%;
  width: 56%;
  transform: rotate(-30deg);
  transform-origin: right center;
}

.letter__ribbon--br {
  display: none;
}

.letter__corner {
  position: absolute;
  z-index: 2;
  width: 9.6%;
  aspect-ratio: 1;
  color: var(--letter-gold);
  opacity: 0.67;
}

.letter__corner--tl {
  top: 2.35%;
  left: 2.35%;
}

.letter__corner--tr {
  top: 2.35%;
  right: 2.35%;
  transform: rotate(90deg);
}

.letter__corner--bl {
  bottom: 2.35%;
  left: 2.35%;
  transform: rotate(-90deg);
}

.letter__corner--br {
  right: 2.35%;
  bottom: 2.35%;
  transform: rotate(180deg);
}

.letter__layout {
  position: relative;
  z-index: 3;
  display: flex;
  width: 100%;
  height: 100%;
  padding: 5.1% 5.1% 4.6% 4.5%;
  gap: 3.2%;
}

.letter__side {
  display: flex;
  flex: 0 0 22.3%;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  padding: 2.4% 0 2.8%;
  border-right: 1px solid var(--letter-line-soft);
}

.letter__side-top {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.letter__side-name {
  color: var(--letter-gold-light);
  background: linear-gradient(180deg, #f9eabf 0%, #e6ca87 27%, #b58b45 58%, #f3dfa6 82%, #c59d50 100%);
  -webkit-background-clip: text;
  background-clip: text;
  font-family: var(--kai);
  font-size: clamp(38px, 7.2cqw, 88px);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: 0.05em;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.12);
  writing-mode: vertical-rl;
  text-orientation: upright;
}

.letter__side-en {
  margin-top: 1.2em;
  color: var(--letter-gold);
  font-family: var(--mono);
  font-size: clamp(6px, 0.72cqw, 9px);
  line-height: 1.4;
  letter-spacing: 0.23em;
  opacity: 0.65;
  writing-mode: vertical-rl;
  text-orientation: mixed;
}

.letter__side-bottom {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.letter__side-mark {
  display: grid;
  place-items: center;
  width: clamp(22px, 3.1cqw, 37px);
  height: clamp(22px, 3.1cqw, 37px);
  border: 1px solid var(--letter-line);
  color: var(--letter-gold);
  font-family: var(--serif);
  font-size: clamp(10px, 1.5cqw, 18px);
  line-height: 1;
}

.letter__side-caption {
  color: var(--letter-muted);
  font-family: var(--mono);
  font-size: clamp(4.5px, 0.58cqw, 7px);
  line-height: 1.7;
  letter-spacing: 0.11em;
  text-align: center;
  writing-mode: vertical-rl;
  opacity: 0.68;
}

.letter__main {
  position: relative;
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: center;
  min-width: 0;
  padding: 0.3% 2.3% 0;
}

.letter__crest {
  width: clamp(59px, 8.7cqw, 105px);
  height: auto;
  filter: drop-shadow(0 5px 15px rgba(0, 0, 0, 0.19));
}

.letter__doc-title {
  margin: 1.9% 0 0.45%;
  color: transparent;
  background: linear-gradient(180deg, #fbf0cb 0%, #e9ce89 33%, #b88e46 62%, #f0dca2 84%, #ba914b 100%);
  -webkit-background-clip: text;
  background-clip: text;
  font-family: var(--serif);
  font-size: clamp(32px, 5.1cqw, 59px);
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: 0.14em;
  filter: drop-shadow(0 1px 0 rgba(19, 12, 4, 0.22));
  white-space: nowrap;
}

.letter__doc-en {
  color: var(--letter-gold);
  font-family: var(--mono);
  font-size: clamp(5.5px, 0.73cqw, 9px);
  line-height: 1.4;
  letter-spacing: 0.31em;
  opacity: 0.62;
  text-transform: uppercase;
}

.letter__rule {
  position: relative;
  width: 74%;
  height: 1px;
  margin: 1.8% 0 2.2%;
  background: linear-gradient(90deg, transparent, var(--letter-line) 20%, var(--letter-line) 80%, transparent);
}

.letter__rule::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 5px;
  height: 5px;
  border: 1px solid var(--letter-gold);
  background: var(--letter-bg-2);
  transform: translate(-50%, -50%) rotate(45deg);
}

.letter__body {
  width: min(82%, 610px);
  color: var(--letter-ink);
  font-family: var(--serif);
  font-size: clamp(11.5px, 1.47cqw, 17px);
  line-height: 2.05;
  letter-spacing: 0.035em;
}

.letter__to {
  display: flex;
  align-items: baseline;
  gap: 0.5em;
  margin-bottom: 1.05em;
  padding-bottom: 0.5em;
  border-bottom: 1px solid var(--letter-line-soft);
}

.letter__to-label {
  color: var(--letter-muted);
  font-family: var(--sans);
  font-size: 0.72em;
  line-height: 1.6;
  letter-spacing: 0.12em;
  white-space: nowrap;
}

.letter__to-name {
  margin-left: 0.1em;
  color: var(--letter-gold-light);
  font-family: var(--kai);
  font-size: 1.42em;
  line-height: 1.2;
  letter-spacing: 0.1em;
}

.letter__to-id {
  margin-left: auto;
  color: var(--letter-muted);
  font-family: var(--mono);
  font-size: 0.61em;
  line-height: 1.6;
  letter-spacing: 0.025em;
  opacity: 0.74;
  white-space: nowrap;
}

.letter__admit {
  margin: 0 0 0.9em;
  line-height: 2.1;
  text-align: justify;
  text-align-last: left;
}

.letter__admit strong {
  padding-bottom: 0.06em;
  border-bottom: 1px solid var(--letter-line);
  color: var(--letter-gold-light);
  font-weight: 500;
  white-space: nowrap;
}

.letter__quote {
  margin: 1.15em auto 0.85em;
  color: var(--letter-gold);
  font-family: var(--kai);
  font-size: 1.16em;
  line-height: 1.7;
  letter-spacing: 0.075em;
  text-align: center;
}

.letter__message {
  color: var(--letter-muted);
  font-size: 0.87em;
  line-height: 1.95;
  letter-spacing: 0.04em;
}

.letter__report {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.3em;
  margin-top: 1.45em;
  padding-top: 0.74em;
  border-top: 1px solid var(--letter-line-soft);
  color: var(--letter-muted);
  font-family: var(--mono);
  font-size: 0.64em;
  line-height: 1.7;
  letter-spacing: 0.045em;
}

.letter__report span:last-child {
  opacity: 0.72;
  white-space: nowrap;
}

.letter__footer {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  width: 82%;
  margin-top: auto;
  padding-top: 1.8%;
}

.letter__date {
  color: var(--letter-ink);
  font-family: var(--serif);
  font-size: clamp(10px, 1.45cqw, 17px);
  line-height: 1.7;
  letter-spacing: 0.08em;
}

.letter__date small {
  display: block;
  margin-top: 0.16em;
  color: var(--letter-muted);
  font-family: var(--mono);
  font-size: 0.48em;
  letter-spacing: 0.11em;
  opacity: 0.7;
}

.letter__sign {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
  text-align: right;
}

.letter__signature {
  width: clamp(91px, 11.5cqw, 138px);
  height: auto;
  margin-bottom: -1px;
  color: var(--letter-gold-light);
  opacity: 0.9;
}

.letter__sign-name {
  color: var(--letter-gold);
  font-family: var(--kai);
  font-size: clamp(8px, 0.93cqw, 11px);
  line-height: 1.5;
  letter-spacing: 0.1em;
}

.letter__sign-role {
  color: var(--letter-muted);
  font-family: var(--mono);
  font-size: clamp(4.5px, 0.52cqw, 6.5px);
  line-height: 1.5;
  letter-spacing: 0.07em;
  opacity: 0.7;
}

.letter__brandline {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.8em;
  width: 82%;
  margin-top: 1.1%;
  padding-top: 1.1%;
  border-top: 1px solid var(--letter-line-soft);
  color: var(--letter-gold);
  font-family: var(--serif);
  font-size: clamp(7px, 0.86cqw, 10px);
  line-height: 1.6;
  letter-spacing: 0.18em;
  text-align: center;
}

.letter__brandline small {
  color: var(--letter-muted);
  font-family: var(--mono);
  font-size: 0.65em;
  letter-spacing: 0.13em;
  opacity: 0.62;
}

.letter__seal {
  position: absolute;
  right: 7%;
  bottom: 10.5%;
  z-index: 4;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: clamp(55px, 8.2cqw, 93px);
  height: clamp(55px, 8.2cqw, 93px);
  border: 2px solid rgba(195, 99, 78, 0.7);
  border-radius: 50%;
  color: #dda88d;
  background: rgba(159, 58, 45, 0.035);
  text-align: center;
  transform: rotate(-12deg);
  opacity: 0.78;
}

.letter__seal::before {
  content: "";
  position: absolute;
  inset: 5%;
  border: 1px dashed rgba(195, 99, 78, 0.45);
  border-radius: 50%;
}

.letter__seal::after {
  content: "★";
  position: absolute;
  top: 13%;
  left: 50%;
  font-size: clamp(4px, 0.66cqw, 7px);
  transform: translateX(-50%);
  opacity: 0.72;
}

.letter__seal span {
  max-width: 78%;
  font-family: var(--serif);
  font-size: clamp(5.5px, 0.72cqw, 8px);
  line-height: 1.6;
  letter-spacing: 0.04em;
}

.letter__seal small {
  font-family: var(--mono);
  font-size: clamp(3px, 0.42cqw, 5px);
  line-height: 1.5;
  letter-spacing: 0.06em;
  opacity: 0.75;
}

.letter__serial {
  position: absolute;
  top: 5.8%;
  right: 7.3%;
  z-index: 4;
  color: var(--letter-muted);
  font-family: var(--mono);
  font-size: clamp(4.5px, 0.54cqw, 7px);
  line-height: 1.5;
  letter-spacing: 0.08em;
  opacity: 0.55;
  text-align: right;
}

.letter__fineprint {
  position: absolute;
  bottom: 4.65%;
  left: 4.5%;
  z-index: 4;
  color: var(--letter-muted);
  font-family: var(--mono);
  font-size: clamp(3.5px, 0.46cqw, 5.5px);
  line-height: 1.5;
  letter-spacing: 0.055em;
  opacity: 0.42;
}

/* ==========================================================================
   Overlays
   ========================================================================== */

.issue-overlay,
.reveal-overlay {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: grid;
  place-items: center;
  overflow: hidden;
  padding: 24px;
}

.issue-overlay {
  background:
    radial-gradient(circle at 50% 48%, rgba(213, 181, 117, 0.14), transparent 30%),
    rgba(244, 240, 230, 0.93);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.issue-overlay__panel {
  width: min(100%, 390px);
  padding: 35px 30px 28px;
  border: 1px solid var(--line);
  background: var(--paper-light);
  text-align: center;
  box-shadow: var(--shadow-soft);
}

.issue-overlay__seal {
  display: grid;
  place-items: center;
  width: 61px;
  height: 61px;
  margin: 0 auto 22px;
  border: 1px solid color-mix(in srgb, var(--issue-color, #513a75) 44%, transparent);
  border-radius: 50%;
  color: var(--issue-color, #513a75);
  font-family: var(--kai);
  font-size: 30px;
  line-height: 1;
  position: relative;
}

.issue-overlay__seal::before,
.issue-overlay__seal::after {
  content: "";
  position: absolute;
  inset: -7px;
  border: 1px solid color-mix(in srgb, var(--issue-color, #513a75) 18%, transparent);
  border-radius: 50%;
  animation: seal-ring 2.1s ease-out infinite;
}

.issue-overlay__seal::after {
  animation-delay: 0.75s;
}

@keyframes seal-ring {
  0% {
    opacity: 0.8;
    transform: scale(0.9);
  }
  100% {
    opacity: 0;
    transform: scale(1.35);
  }
}

.issue-overlay .eyebrow {
  justify-content: center;
  font-size: 8px;
}

.issue-overlay h2 {
  margin: 12px 0 20px;
  font-family: var(--serif);
  font-size: 24px;
  font-weight: 500;
  letter-spacing: -0.02em;
}

.issue-progress {
  width: 100%;
  height: 2px;
  overflow: hidden;
  background: var(--line);
}

.issue-progress span {
  display: block;
  width: 0;
  height: 100%;
  background: var(--ink);
  transition: width 0.7s var(--ease);
}

.issue-status {
  min-height: 24px;
  margin-top: 12px;
  color: var(--ink-soft);
  font-family: var(--mono);
  font-size: 8px;
  line-height: 1.6;
  letter-spacing: 0.04em;
}

.issue-foot {
  margin-top: 22px;
  padding-top: 13px;
  border-top: 1px solid var(--line);
  color: var(--ink-muted);
  font-size: 9px;
  line-height: 1.6;
}

/* Reveal envelope */

.reveal-overlay {
  background:
    radial-gradient(ellipse at 50% 43%, rgba(61, 92, 72, 0.46), transparent 43%),
    radial-gradient(ellipse at 50% 100%, rgba(175, 139, 72, 0.1), transparent 50%),
    #0b1310;
  color: var(--paper);
}

.reveal-overlay::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.15;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)' opacity='.5'/%3E%3C/svg%3E");
  mix-blend-mode: screen;
}

.reveal-overlay::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.2), transparent 30%, transparent 70%, rgba(0, 0, 0, 0.28));
}

.reveal-overlay__stars {
  position: absolute;
  inset: 0;
  opacity: 0.7;
  background-image:
    radial-gradient(circle at 21% 29%, rgba(238, 221, 177, 0.7) 0 1px, transparent 1.6px),
    radial-gradient(circle at 73% 21%, rgba(238, 221, 177, 0.52) 0 1px, transparent 1.7px),
    radial-gradient(circle at 87% 62%, rgba(238, 221, 177, 0.3) 0 1px, transparent 1.5px),
    radial-gradient(circle at 12% 73%, rgba(238, 221, 177, 0.38) 0 1px, transparent 1.6px),
    radial-gradient(circle at 39% 11%, rgba(238, 221, 177, 0.55) 0 1px, transparent 1.4px);
}

.reveal-overlay__inner {
  position: relative;
  z-index: 2;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: min(100%, 460px);
  text-align: center;
}

.reveal-overlay__inner::before {
  content: "";
  position: absolute;
  top: 11%;
  left: 50%;
  z-index: -1;
  width: min(580px, 92vw);
  height: 48%;
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(214, 180, 105, 0.19), rgba(90, 133, 91, 0.06) 48%, transparent 70%);
  filter: blur(18px);
  transform: translateX(-50%);
  pointer-events: none;
}

.reveal-overlay__kicker {
  color: rgba(243, 232, 208, 0.47);
  font-family: var(--mono);
  font-size: 8px;
  line-height: 1.6;
  letter-spacing: 0.19em;
}

.reveal-envelope {
  position: relative;
  width: min(82vw, 390px);
  aspect-ratio: 1.55 / 1;
  margin: clamp(38px, 8vh, 70px) 0 clamp(35px, 7vh, 61px);
  perspective: 900px;
  transform-style: preserve-3d;
  transform: rotate(-1.2deg);
}

.reveal-envelope__back {
  position: absolute;
  inset: 0;
  z-index: 1;
  border: 1px solid rgba(214, 185, 124, 0.3);
  background: #cbbb9d;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
}

.reveal-envelope__letter {
  position: absolute;
  top: 10%;
  right: 6%;
  bottom: 9%;
  left: 6%;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: 1px solid rgba(28, 45, 33, 0.16);
  color: #193827;
  background:
    radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.55), transparent 35%),
    #f3ead8;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.1);
  transition: transform 1.15s cubic-bezier(0.22, 0.9, 0.24, 1) 0.25s;
}

.reveal-envelope__letter::before {
  content: "";
  position: absolute;
  inset: 8px;
  border: 1px solid rgba(120, 93, 48, 0.24);
}

.reveal-envelope__letter-mark {
  display: grid;
  place-items: center;
  width: 33px;
  height: 33px;
  border: 1px solid rgba(33, 70, 48, 0.44);
  border-radius: 50%;
  color: #31593f;
  font-family: var(--kai);
  font-size: 17px;
  line-height: 1;
}

.reveal-envelope__letter strong {
  font-family: var(--serif);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.16em;
}

.reveal-envelope__letter small {
  color: rgba(25, 56, 39, 0.45);
  font-family: var(--mono);
  font-size: 5px;
  letter-spacing: 0.13em;
}

.reveal-envelope__body {
  position: absolute;
  inset: 0;
  z-index: 3;
  background:
    linear-gradient(145deg, transparent 49.7%, rgba(105, 79, 38, 0.23) 50%, transparent 50.5%),
    linear-gradient(215deg, transparent 49.7%, rgba(105, 79, 38, 0.21) 50%, transparent 50.5%),
    linear-gradient(180deg, #eadfc9, #d0bd9b);
  clip-path: polygon(0 0, 50% 47%, 100% 0, 100% 100%, 0 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.4),
    inset 0 -20px 40px rgba(91, 68, 32, 0.08);
}

.reveal-envelope__body::before {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid rgba(118, 96, 57, 0.1);
}

.reveal-envelope__body::after {
  content: "PARALLEL POST";
  position: absolute;
  right: 10%;
  bottom: 15%;
  color: rgba(72, 58, 34, 0.22);
  font-family: var(--mono);
  font-size: 6px;
  letter-spacing: 0.14em;
}

.reveal-envelope__flap {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  z-index: 4;
  height: 50%;
  transform-origin: top center;
  transform-style: preserve-3d;
  background: linear-gradient(180deg, #e5d9c2, #d3c2a4);
  clip-path: polygon(0 0, 100% 0, 50% 100%);
  box-shadow: 0 1px 3px rgba(76, 57, 28, 0.28);
  transition: transform 0.95s cubic-bezier(0.62, 0.06, 0.24, 1);
}

.reveal-envelope__flap::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(150deg, rgba(255, 255, 255, 0.3), transparent 45%);
}

.reveal-envelope__seal {
  position: absolute;
  top: 35.7%;
  left: 50%;
  z-index: 6;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 1px solid rgba(255, 222, 184, 0.25);
  border-radius: 50%;
  color: #f6e7d2;
  background:
    radial-gradient(circle at 37% 29%, rgba(255, 255, 255, 0.17), transparent 30%),
    #9e3b2e;
  box-shadow:
    0 5px 13px rgba(31, 15, 8, 0.32),
    0 0 0 3px rgba(159, 58, 45, 0.1);
  font-family: var(--kai);
  font-size: 20px;
  line-height: 1;
  transform: translate(-50%, -50%) rotate(-6deg);
  transition:
    opacity 0.35s ease,
    transform 0.35s ease;
}

.reveal-envelope__seal::before {
  content: "";
  position: absolute;
  inset: 5px;
  border: 1px dashed rgba(255, 232, 204, 0.32);
  border-radius: 50%;
}

.reveal-envelope__postmark {
  position: absolute;
  top: 12%;
  right: 7%;
  z-index: 5;
  color: rgba(92, 66, 33, 0.4);
  font-family: var(--mono);
  font-size: 5px;
  line-height: 1.7;
  letter-spacing: 0.09em;
  text-align: right;
}

.reveal-overlay.is-breaking .reveal-envelope__seal {
  opacity: 0;
  transform: translate(-50%, -50%) rotate(21deg) scale(0.7);
}

.reveal-overlay.is-open .reveal-envelope__flap {
  z-index: 1;
  transform: rotateX(-176deg);
}

.reveal-overlay.is-open .reveal-envelope__letter {
  z-index: 4;
  transform: translateY(-47%);
}

.reveal-overlay.is-open .reveal-envelope {
  filter: brightness(1.04);
}

.reveal-overlay__status {
  color: #eadfc8;
  font-family: var(--serif);
  font-size: 14px;
  letter-spacing: 0.05em;
  transition: opacity 0.2s ease;
}

.reveal-overlay__bar {
  width: 142px;
  height: 1px;
  margin-top: 18px;
  overflow: hidden;
  background: rgba(241, 228, 202, 0.15);
}

.reveal-overlay__bar span {
  display: block;
  width: 0;
  height: 100%;
  background: #c6a45f;
  transition: width 0.8s var(--ease);
}

.reveal-overlay__foot {
  margin-top: 18px;
  color: rgba(240, 226, 201, 0.35);
  font-family: var(--mono);
  font-size: 7px;
  line-height: 1.6;
  letter-spacing: 0.08em;
}

.reveal-overlay.is-closing {
  animation: overlay-out 0.45s ease both;
}

@keyframes overlay-out {
  to {
    opacity: 0;
    visibility: hidden;
  }
}

/* Confetti */

.confetti-layer {
  position: fixed;
  inset: 0;
  z-index: 250;
  overflow: hidden;
  pointer-events: none;
}

.confetti {
  position: absolute;
  top: -12px;
  width: 6px;
  height: 12px;
  opacity: 0.9;
  animation: confetti-fall var(--duration, 4s) linear var(--delay, 0s) forwards;
}

@keyframes confetti-fall {
  to {
    transform: translate3d(var(--drift, 40px), 110vh, 0) rotate(var(--spin, 700deg));
    opacity: 0.15;
  }
}

/* ==========================================================================
   Toast
   ========================================================================== */

.toast {
  position: fixed;
  bottom: 27px;
  left: 50%;
  z-index: 500;
  max-width: calc(100vw - 36px);
  padding: 12px 18px;
  color: var(--paper-light);
  background: var(--ink);
  border: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 11px;
  line-height: 1.6;
  letter-spacing: 0.02em;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 10px);
  transition:
    opacity 0.25s var(--ease),
    transform 0.25s var(--ease);
}

.toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

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

.site-footer {
  position: relative;
  z-index: 1;
  padding: 44px var(--page-pad) 24px;
  color: #eee6d7;
  background: var(--ink);
}

.footer-inner {
  display: grid;
  grid-template-columns: auto minmax(260px, 1fr) auto;
  align-items: start;
  gap: clamp(28px, 5vw, 80px);
  width: min(100%, var(--max-width));
  margin: 0 auto;
  padding-bottom: 31px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.11);
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer-brand .brand__seal {
  width: 34px;
  height: 34px;
  font-size: 19px;
}

.footer-brand div {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.footer-brand strong {
  font-family: var(--serif);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.05em;
}

.footer-brand div span {
  color: rgba(238, 230, 215, 0.38);
  font-family: var(--mono);
  font-size: 7px;
  letter-spacing: 0.08em;
}

.footer-copy {
  max-width: 610px;
}

.footer-copy p {
  color: rgba(238, 230, 215, 0.44);
  font-size: 9px;
  line-height: 1.95;
}

.footer-copy .footer-blessing {
  margin-top: 8px;
  color: rgba(238, 230, 215, 0.7);
  font-family: var(--serif);
  font-size: 11px;
  letter-spacing: 0.04em;
}

.footer-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 7px;
  color: rgba(238, 230, 215, 0.3);
  font-family: var(--mono);
  font-size: 7px;
  line-height: 1.5;
  letter-spacing: 0.02em;
  text-align: right;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: min(100%, var(--max-width));
  margin: 17px auto 0;
  color: rgba(238, 230, 215, 0.22);
  font-family: var(--mono);
  font-size: 6.5px;
  line-height: 1.6;
  letter-spacing: 0.06em;
}

/* ==========================================================================
   Noscript
   ========================================================================== */

.noscript {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 600;
  max-width: 320px;
  padding: 14px 16px;
  color: var(--paper-light);
  background: var(--ink);
  font-size: 11px;
  line-height: 1.7;
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 1180px) {
  .home-hero {
    grid-template-columns: minmax(0, 1fr) minmax(390px, 0.92fr);
    gap: 34px;
  }

  .hero-stage {
    min-height: 540px;
  }

  .stage-note {
    left: 0;
    width: 155px;
  }

  .create-grid {
    grid-template-columns: minmax(0, 1.15fr) minmax(330px, 0.85fr);
    gap: 34px;
  }

  .result-grid {
    grid-template-columns: minmax(0, 1.08fr) minmax(330px, 0.92fr);
    gap: 44px;
  }
}

@media (max-width: 980px) {
  .main-nav {
    display: none;
  }

  .home-hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-top: clamp(38px, 7vw, 64px);
  }

  .hero-copy {
    max-width: 670px;
  }

  .hero-title {
    font-size: clamp(52px, 8.9vw, 84px);
  }

  .hero-stage {
    width: min(100%, 660px);
    min-height: 575px;
    margin: 10px auto 0;
  }

  .hero-card-mount {
    width: min(100%, 570px);
  }

  .hero-stage__orbit {
    right: 0;
    width: min(84%, 520px);
  }

  .hero-stage__wash {
    width: min(84%, 470px);
    left: 8%;
  }

  .how-heading {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .how-heading > p {
    justify-self: start;
    max-width: 470px;
    padding-bottom: 0;
  }

  .steps {
    grid-template-columns: 1fr;
  }

  .step {
    min-height: 0;
    padding: 23px 0 26px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .step:last-child {
    border-bottom: 0;
  }

  .step h3 {
    margin-top: 23px;
  }

  .step p {
    max-width: 500px;
  }

  .create-header {
    display: block;
  }

  .create-header > p {
    margin-top: 18px;
    padding: 0;
    text-align: left;
  }

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

  .preview-panel {
    position: static;
    order: -1;
    width: min(100%, 610px);
    margin: 0 auto;
  }

  .preview-teaser,
  .preview-panel__foot {
    display: none;
  }

  .live-card-mount {
    max-width: 560px;
  }

  .schedule-toolbar {
    flex-wrap: wrap;
  }

  .result-grid {
    grid-template-columns: 1fr;
    gap: 30px;
    padding-top: 38px;
  }

  .result-stage {
    order: 1;
    width: min(100%, 680px);
    margin: 0 auto;
    min-height: 0;
    padding: 28px 0 51px;
  }

  .result-copy {
    order: 2;
    width: min(100%, 680px);
    margin: 0 auto;
  }

  .result-copy h1 {
    font-size: clamp(34px, 5vw, 46px);
  }

  .result-body {
    max-width: 560px;
  }

  .offer-cta {
    max-width: 560px;
  }

  .result-stamp {
    width: 78px;
    height: 78px;
    right: 2%;
    bottom: 9%;
  }

  .result-stamp span {
    font-size: 16px;
  }

  .result-stamp small {
    bottom: 9px;
    font-size: 4px;
  }

  .result-card-mount {
    max-width: 620px;
  }

  .result-stage__backcard {
    max-width: 570px;
  }

  .letter-toolbar {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }

  .letter-toolbar__note {
    text-align: left;
  }

  .letter-intro__meta {
    display: none;
  }

  .letter-debrief {
    grid-template-columns: 1fr;
  }

  .letter-debrief__quote {
    min-height: 228px;
  }

  .letter-debrief blockquote {
    max-width: 540px;
  }

  .letter-share {
    grid-template-columns: 1fr;
    gap: 25px;
  }

  .letter-share__actions {
    width: min(100%, 310px);
  }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 23px;
  }

  .footer-meta {
    align-items: flex-start;
    flex-direction: row;
    gap: 18px;
    text-align: left;
  }

  .footer-bottom {
    display: block;
  }

  .footer-bottom span {
    display: block;
  }

  .footer-bottom span + span {
    margin-top: 6px;
  }
}

@media (max-width: 760px) {
  .topbar__inner {
    min-height: 64px;
    gap: 14px;
  }

  .topbar__pill {
    display: none;
  }

  body:not([data-screen="home"]) .topbar__pill {
    display: inline-flex;
  }

  .brand__seal {
    width: 33px;
    height: 33px;
    font-size: 18px;
  }

  .brand__text strong {
    font-size: 13px;
  }

  .brand__text small {
    font-size: 6px;
  }

  .button--nav {
    min-height: 34px;
    padding: 0 11px;
    font-size: 10px;
  }

  .button--nav .icon {
    display: none;
  }

  .home-hero {
    padding-top: 33px;
    padding-bottom: 45px;
  }

  .hero-title {
    margin: 24px 0 21px;
    font-size: clamp(44px, 10vw, 65px);
  }

  .hero-title__line {
    white-space: normal;
  }

  .hero-lead {
    font-size: 14px;
  }

  .hero-actions {
    align-items: flex-start;
    flex-direction: column;
    gap: 13px;
    margin-top: 23px;
  }

  .hero-actions .button {
    width: 100%;
    justify-content: space-between;
  }

  .hero-meta {
    margin-top: 26px;
  }

  .hero-stage {
    min-height: 405px;
    margin-top: 17px;
  }

  .hero-stage__orbit {
    top: 4%;
    right: 2%;
    width: 84%;
  }

  .hero-stage__wash {
    top: 13%;
    left: 7%;
    width: 79%;
  }

  .hero-card-mount {
    width: 94%;
  }

  .stage-note {
    top: -2%;
    left: 0;
    width: 133px;
    padding: 16px 13px 11px;
  }

  .stage-note p {
    margin-bottom: 7px;
    font-size: 19px;
  }

  .stage-note small {
    font-size: 6px;
  }

  .stage-note__to {
    margin-bottom: 5px;
    font-size: 5.5px;
  }

  .admitslip {
    display: none;
  }

  .stage-stamp {
    bottom: 5%;
    left: 0;
    width: 79px;
    height: 79px;
    padding: 16px 10px 11px;
    font-size: 20px;
  }

  .stage-stamp::before {
    inset: 4px;
  }

  .stage-stamp small {
    margin-top: 2px;
    font-size: 4.5px;
    letter-spacing: 0.04em;
  }

  .admitslip {
    right: 0;
    bottom: 9%;
    width: 94px;
    padding: 12px 10px 9px;
  }

  .admitslip__big {
    font-size: 21px;
  }

  .admitslip__small,
  .admitslip__foot {
    font-size: 4.5px;
  }

  .hero-stage__caption {
    bottom: -4%;
    font-size: 8px;
  }

  .school-marquee__track {
    gap: 18px;
    padding: 13px 18px;
  }

  .school-marquee__track span {
    font-size: 10px;
  }

  .how-section {
    padding-top: 58px;
    padding-bottom: 72px;
  }

  .how-heading h2 {
    font-size: clamp(38px, 10vw, 55px);
  }

  .how-heading > p {
    font-size: 11px;
  }

  .step {
    padding: 20px 0 24px;
  }

  .step h3 {
    font-size: 22px;
  }

  .how-cta {
    align-items: flex-start;
    flex-direction: column;
    gap: 16px;
    padding-top: 24px;
  }

  .how-cta p {
    font-size: 16px;
  }

  .how-cta .button {
    width: 100%;
    justify-content: space-between;
    min-height: 53px;
  }

  .page-topline {
    padding: 14px 0;
  }

  .page-step {
    font-size: 7px;
  }

  .page-step i {
    width: 15px;
  }

  .create-header {
    padding-top: 34px;
  }

  .create-header h1 {
    font-size: clamp(39px, 10vw, 54px);
  }

  .form-panel {
    padding: 18px 15px 19px;
  }

  .form-panel::before {
    left: 15px;
    width: 66px;
  }

  .form-legend {
    flex-wrap: wrap;
    gap: 7px;
    margin-bottom: 15px;
  }

  .form-legend small {
    width: 100%;
    margin-left: 36px;
  }

  .school-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
  }

  .school-option {
    min-height: 76px;
    padding: 9px 9px 8px;
  }

  .school-option__name {
    font-size: 13px;
  }

  .form-row {
    grid-template-columns: 1fr;
    gap: 19px;
  }

  .form-row + .form-row {
    margin-top: 19px;
  }

  .field input,
  .field select {
    font-size: 18px;
  }

  .submit-button {
    min-height: 61px;
    padding-left: 15px;
  }

  .privacy-note {
    font-size: 8px;
  }

  .create-grid {
    gap: 25px;
  }

  .live-card-mount {
    margin-top: 14px;
  }

  .preview-panel__head {
    font-size: 7px;
  }

  .result-stage {
    padding-bottom: 45px;
  }

  .result-stage__backcard {
    width: 90%;
  }

  .result-copy h1 {
    font-size: clamp(30px, 8.5vw, 42px);
    line-height: 1.4;
  }

  .result-lead {
    font-size: 18px;
  }

  .result-links {
    margin-top: 19px;
  }

  .result-stamp {
    right: 2%;
    bottom: 4%;
    width: 68px;
    height: 68px;
  }

  .result-stamp span {
    font-size: 14px;
  }

  .result-stamp small {
    bottom: 8px;
    font-size: 3.5px;
  }

  .result-stage__caption {
    font-size: 7px;
  }

  .letter-intro {
    padding-top: 36px;
  }

  .letter-intro h1 {
    margin-top: 17px;
    font-size: clamp(38px, 10vw, 55px);
  }

  .letter-intro > p {
    font-size: 12px;
  }

  .letter-toolbar {
    padding: 12px 0;
  }

  .academy-tabs {
    width: 100%;
  }

  .academy-tab {
    flex: 1;
    justify-content: center;
    padding: 0 8px;
    font-size: 9px;
    white-space: nowrap;
  }

  .letter-toolbar__note {
    font-size: 7px;
  }

  .letter-stage {
    margin-top: 16px;
  }

  .letter-actions .button {
    flex: 1;
    min-width: 0;
    padding: 0 10px;
    font-size: 10px;
  }

  .letter-actions .text-link {
    width: 100%;
    margin-top: 4px;
    margin-left: 0;
    text-align: left;
  }

  .letter-debrief {
    margin-top: 38px;
  }

  .letter-debrief__quote {
    min-height: 196px;
    padding: 23px 21px;
  }

  .letter-debrief__info {
    padding: 23px 21px;
  }

  .letter-debrief blockquote {
    font-size: 24px;
  }

  .debrief-list > div {
    grid-template-columns: 1fr;
    gap: 2px;
    padding: 10px 0;
  }

  .debrief-list dd {
    text-align: left;
  }

  .letter-share {
    padding: 28px 21px;
  }

  .letter-share::before {
    font-size: 190px;
  }

  .letter-share h2 {
    font-size: clamp(28px, 8vw, 38px);
  }

  .letter-disclaimer {
    font-family: var(--sans);
  }

  .letter__layout {
    flex-direction: column;
    padding: 25px 19px 19px;
    gap: 13px;
  }

  .letter {
    aspect-ratio: auto;
    min-height: auto;
  }

  .letter__side {
    flex: 0 0 auto;
    flex-direction: row;
    justify-content: center;
    gap: 11px;
    width: 100%;
    padding: 0 0 11px;
    border-right: 0;
    border-bottom: 1px solid var(--letter-line-soft);
  }

  .letter__side-top {
    flex-direction: row;
    align-items: baseline;
    gap: 10px;
  }

  .letter__side-name {
    font-size: 31px;
    line-height: 1.2;
    writing-mode: horizontal-tb;
    letter-spacing: 0.08em;
  }

  .letter__side-en {
    margin-top: 0;
    font-size: 5.5px;
    writing-mode: horizontal-tb;
    letter-spacing: 0.13em;
  }

  .letter__side-bottom {
    display: none;
  }

  .letter__main {
    width: 100%;
    padding: 0;
  }

  .letter__crest {
    width: 63px;
  }

  .letter__doc-title {
    margin-top: 9px;
    font-size: 32px;
    letter-spacing: 0.12em;
  }

  .letter__doc-en {
    font-size: 5.5px;
    letter-spacing: 0.2em;
  }

  .letter__rule {
    width: 83%;
    margin: 11px 0 13px;
  }

  .letter__body {
    width: 91%;
    font-size: 11.5px;
    line-height: 1.92;
  }

  .letter__to {
    flex-wrap: wrap;
    gap: 0.2em 0.5em;
    margin-bottom: 0.85em;
  }

  .letter__to-name {
    font-size: 1.4em;
  }

  .letter__to-id {
    width: 100%;
    margin-left: 0;
    font-size: 0.62em;
  }

  .letter__admit {
    line-height: 2;
  }

  .letter__admit strong {
    white-space: normal;
  }

  .letter__quote {
    margin-top: 0.9em;
    font-size: 1.08em;
  }

  .letter__report {
    flex-wrap: wrap;
    gap: 0.35em 1em;
    margin-top: 1.1em;
    padding-top: 0.65em;
    font-size: 0.63em;
  }

  .letter__footer {
    width: 91%;
    margin-top: 20px;
    padding-top: 10px;
    border-top: 1px solid var(--letter-line-soft);
  }

  .letter__date {
    font-size: 10px;
  }

  .letter__signature {
    width: 92px;
  }

  .letter__sign-name {
    font-size: 8px;
  }

  .letter__sign-role {
    font-size: 4.5px;
  }

  .letter__brandline {
    width: 91%;
    margin-top: 10px;
    padding-top: 9px;
    font-size: 7px;
    letter-spacing: 0.12em;
  }

  .letter__brandline small {
    font-size: 0.6em;
  }

  .letter__seal {
    right: 8%;
    bottom: 11%;
    width: 60px;
    height: 60px;
  }

  .letter__seal span {
    font-size: 5.5px;
  }

  .letter__serial {
    top: 4.8%;
    right: 7%;
    font-size: 4.5px;
  }

  .letter__fineprint {
    bottom: 3.5%;
    left: 5.5%;
    font-size: 3.5px;
  }

  .letter__ribbon {
    display: none;
  }

  .letter__corner {
    width: 47px;
  }

  .letter__frame {
    inset: 9px;
  }

  .letter__frame::before {
    inset: 3px;
  }

  .letter__frame::after {
    display: none;
  }

  .letter__watermark {
    right: -3%;
    bottom: -8%;
    font-size: 180px;
    opacity: 0.11;
  }

  .letter__texture {
    opacity: 0.42;
  }

  .issue-overlay__panel {
    padding: 28px 21px 23px;
  }

  .reveal-envelope {
    width: min(78vw, 315px);
    margin-top: 46px;
    margin-bottom: 43px;
  }

  .reveal-overlay__kicker {
    font-size: 6.5px;
  }

  .reveal-overlay__status {
    font-size: 12px;
  }

  .footer-inner {
    gap: 20px;
  }

  .footer-brand div span {
    font-size: 6px;
  }

  .footer-bottom {
    font-size: 6px;
  }
}

@media (max-width: 460px) {
  .brand__text small {
    display: none;
  }

  .hero-title {
    font-size: clamp(33px, 10vw, 46px);
    letter-spacing: -0.06em;
  }

  .hero-title__line {
    white-space: nowrap;
  }

  .hero-lead {
    font-size: 13px;
    line-height: 1.85;
  }

  .hero-stage {
    min-height: 355px;
  }

  .stage-note {
    top: -5%;
    left: -2%;
    width: 116px;
    padding: 15px 11px 10px;
  }

  .stage-note p {
    font-size: 17px;
  }

  .stage-note small {
    font-size: 5.5px;
  }

  .stage-stamp {
    left: -1%;
    bottom: 3%;
    width: 68px;
    height: 68px;
    font-size: 17px;
  }

  .admitslip {
    right: -1%;
    bottom: 6%;
    width: 82px;
  }

  .admitslip__big {
    font-size: 18px;
  }

  .hero-stage__caption {
    bottom: -7%;
  }

  .hero-stage__orbit::before {
    display: none;
  }

  .how-heading h2 {
    font-size: 37px;
  }

  .school-option {
    min-height: 73px;
  }

  .school-option__name {
    font-size: 12px;
  }

  .field input,
  .field select {
    font-size: 17px;
  }

  .result-grid {
    padding-top: 25px;
  }

  .result-stage {
    padding: 23px 0 42px;
  }

  .result-stage__backcard {
    width: 94%;
  }

  .result-stamp {
    width: 58px;
    height: 58px;
  }

  .result-stamp span {
    font-size: 12px;
  }

  .result-stamp small {
    display: none;
  }

  .result-copy h1 {
    font-size: 29px;
  }

  .offer-cta .button {
    padding-left: 16px;
  }

  .offer-cta__copy b {
    font-size: 14px;
  }

  .button__round--large {
    width: 41px;
    height: 41px;
  }

  .letter-intro h1 {
    font-size: 36px;
  }

  .letter-actions {
    gap: 7px;
  }

  .letter-actions .button {
    flex: 0 0 100%;
  }

  .letter-actions .button--outline {
    flex: 1;
  }

  .letter-actions .text-link {
    width: auto;
    margin-left: 4px;
  }

  .letter-share__actions {
    width: 100%;
  }

  .letter__side-name {
    font-size: 27px;
  }

  .letter__doc-title {
    font-size: 28px;
  }

  .letter__body {
    width: 93%;
    font-size: 11px;
  }

  .letter__seal {
    display: none;
  }

  .letter__signature {
    width: 81px;
  }

  .letter__to-name {
    font-size: 1.3em;
  }
}

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

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

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

/* ==========================================================================
   Print — the letter only
   ========================================================================== */

@page {
  size: A4 landscape;
  margin: 8mm;
}

@media print {
  html,
  body {
    width: 100%;
    height: auto;
    background: #fff !important;
  }

  body::before,
  .topbar,
  .site-footer,
  .page-topline,
  .letter-intro,
  .letter-toolbar,
  .letter-actions,
  .letter-debrief,
  .letter-share,
  .letter-disclaimer,
  .letter-stage__glow,
  .toast,
  .issue-overlay,
  .reveal-overlay,
  .confetti-layer,
  .screen:not(#screen-letter) {
    display: none !important;
  }

  #app,
  #screen-letter,
  .page-container,
  .letter-stage {
    display: block !important;
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
    background: none !important;
  }

  .screen--letter {
    padding: 0 !important;
  }

  .letter-stage {
    max-width: 281mm;
    margin: 0 auto !important;
  }

  .letter-mount {
    width: 100%;
    filter: none !important;
    animation: none !important;
  }

  .letter {
    width: 100%;
    max-width: 281mm;
    margin: 0 auto;
    border-radius: 0;
    box-shadow: none !important;
    break-inside: avoid;
    print-color-adjust: exact;
    -webkit-print-color-adjust: exact;
  }

  .letter__fineprint {
    display: block;
  }
}
