/* =====================================================================
   ClinicOS — Chapter 07「啟程」

   Page-scoped under .st. Loaded after page.css, which still supplies the
   form components (.form, .field, .btn, .line) untouched — this file only
   changes the rhythm around them, never the controls themselves.

   The last chapter of a book, not a contact page. It opens on an empty
   room in daylight, looks back over the six chapters that came before,
   states the one thing worth keeping, and only then offers a way to
   begin. The form is the last step, not the first thing you meet.
   ===================================================================== */

.st {
  --st-ink: #1A3B32;
  --st-ink-soft: #3F534C;
  --st-body: #45514D;
  --st-mute: #7C8783;
  --st-line: rgba(26, 59, 50, 0.14);
  --st-line-soft: rgba(26, 59, 50, 0.08);

  --grid-max: 1360px;
  --grid-gutter: clamp(20px, 4.4vw, 80px);

  background: var(--c-paper);
}

/* --- Type ------------------------------------------------------------ */
.st .st-h1 {
  font-family: var(--ff-brand-heading);
  font-weight: 400;
  font-size: var(--fs-chapter-name);
  line-height: 1.14;
  letter-spacing: 0.16em;
  color: var(--st-ink);
}
.st .st-lead {
  font-size: var(--fs-lead);
  line-height: 1.9;
  color: var(--st-ink-soft);
  text-wrap: pretty;
}
.st .st-body {
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  color: var(--st-body);
  text-wrap: pretty;
}
.st .eyebrow { color: var(--st-mute); }

/* ---------------------------------------------------------------------
   01 · Hero — the room before anyone arrives
   --------------------------------------------------------------------- */
.st-hero {
  padding-top: calc(var(--header-h) + clamp(2.5rem, 1.4rem + 4vw, 5rem));
  padding-bottom: clamp(4rem, 2.6rem + 5vw, 7.5rem);
}
.st-hero__grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--grid-gap);
  row-gap: clamp(2.5rem, 1.5rem + 4vw, 4rem);
  align-items: center;
}
.st-hero__copy { grid-column: 1 / -1; }
.st-hero__figure { grid-column: 1 / -1; }
.st-hero__title { margin-top: clamp(1rem, 0.8rem + 1vw, 1.75rem); }
/* type comes from the shared hero token block; only the ink is local */
.st-hero__claim { color: var(--st-ink); }
.st-hero__lead { margin-top: clamp(1.5rem, 1.1rem + 1.6vw, 2.25rem); max-width: 18em; }
.st-hero__figure .media { aspect-ratio: 4 / 3; }
@media (min-width: 1000px) {
  .st-hero { min-height: 80vh; display: flex; align-items: center; }
  .st-hero__grid { width: 100%; }
  .st-hero__copy { grid-column: 1 / 7; }
  .st-hero__figure { grid-column: 8 / 13; }
  .st-hero__figure .media { aspect-ratio: 3 / 4; }
}

/* ---------------------------------------------------------------------
   02 · 回望 — the six chapters, one line each. A read-down list on
   hairlines: no icons, no cards, no numbers competing with the words.
   --------------------------------------------------------------------- */
.st-look { padding-block: clamp(4rem, 2.6rem + 5vw, 8rem); background: var(--c-paper-sunken); }
.st-look__lead { max-width: 20em; }
.st-look__list { margin-top: clamp(2.5rem, 1.8rem + 3.4vw, 4.5rem); }
.st-look__item {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.4rem clamp(1.5rem, 1.1rem + 2vw, 3rem);
  padding-block: clamp(1.1rem, 0.9rem + 1vw, 1.75rem);
  border-top: 1px solid var(--st-line-soft);
}
.st-look__item:last-child { border-bottom: 1px solid var(--st-line-soft); }
.st-look__name {
  font-family: var(--ff-brand-heading);
  font-weight: 400;
  font-size: clamp(1.375rem, 1.15rem + 1vw, 1.875rem);
  letter-spacing: 0.14em;
  line-height: 1.3;
  color: var(--st-ink);
}
.st-look__say { font-size: var(--fs-body); line-height: 1.8; color: var(--st-body); }
@media (min-width: 760px) {
  .st-look__item { grid-template-columns: 7em 1fr; align-items: baseline; }
}
@media (min-width: 1000px) {
  .st-look__item { grid-template-columns: 7em minmax(0, 30em); margin-left: 8.333%; }
  .st-look__lead { margin-left: 8.333%; }
}

/* ---------------------------------------------------------------------
   03 · 留下來的 — one thought, and a great deal of paper around it
   --------------------------------------------------------------------- */
.st-keep { padding-block: clamp(6rem, 3.4rem + 9vw, 13rem); }
.st-keep__line {
  font-family: var(--ff-brand-slogan);
  font-weight: 400;
  font-size: clamp(1.875rem, 1.25rem + 2.8vw, 3.5rem);
  line-height: 1.55;
  color: var(--st-ink);
  max-width: 15em;
}
.st-keep__coda {
  margin-top: clamp(3rem, 2rem + 4vw, 6rem);
  max-width: 24em;
}
@media (min-width: 900px) {
  .st-keep__line { margin-left: 8.333%; }
  .st-keep__coda { margin-left: 33.333%; }
}

/* ---------------------------------------------------------------------
   04 · 兩種開始 — the first time the page asks for anything
   --------------------------------------------------------------------- */
.st-ways { padding-block: clamp(4rem, 2.6rem + 5vw, 8rem); background: #E7EDE9; }
.st-ways__head { max-width: 22em; }
.st-ways__grid {
  margin-top: clamp(2.5rem, 1.8rem + 3.4vw, 4rem);
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(2rem, 1.4rem + 2.6vw, 3.5rem);
}
@media (min-width: 860px) { .st-ways__grid { grid-template-columns: 1fr 1fr; } }
.st-way { padding-top: clamp(1.25rem, 1rem + 1.2vw, 2rem); border-top: 1px solid var(--st-line); }
.st-way__title {
  font-family: var(--ff-display);
  font-weight: 500;
  font-size: clamp(1.25rem, 1.1rem + 0.8vw, 1.625rem);
  line-height: 1.45;
  color: var(--st-ink);
}
.st-way__text { margin-top: 0.75rem; max-width: 26em; }
.st-way__action { margin-top: clamp(1.25rem, 1rem + 1.2vw, 2rem); }
.st-way__qr { margin-top: clamp(1.25rem, 1rem + 1.2vw, 2rem); max-width: 132px; }
.st-way__qr img { display: block; width: 100%; height: auto; border-radius: 8px; }

/* ---------------------------------------------------------------------
   05 · 表單 — the last step. page.css still owns every control inside.
   --------------------------------------------------------------------- */
.st-form { padding-block: clamp(4rem, 2.6rem + 5vw, 8rem); }
.st-form__head { max-width: 24em; }
.st-form__title {
  font-family: var(--ff-display);
  font-weight: 400;
  font-size: var(--fs-h2);
  line-height: 1.4;
  color: var(--st-ink);
  margin-top: clamp(0.75rem, 0.6rem + 0.8vw, 1.25rem);
}
.st-form__note { margin-top: clamp(1rem, 0.8rem + 0.9vw, 1.5rem); max-width: 30em; }
.st-form__body { margin-top: clamp(2.5rem, 1.8rem + 3.4vw, 4rem); }
@media (min-width: 1000px) {
  .st-form__head { margin-left: 8.333%; }
  .st-form__body { margin-left: 8.333%; max-width: 46em; }
}

/* ---------------------------------------------------------------------
   06 · 闔上 — the book closes on ink
   --------------------------------------------------------------------- */
.st-close {
  background: var(--c-accent-deep);
  color: var(--c-text-invert);
  padding-block: clamp(5rem, 3rem + 7vw, 9rem);
}
.st-close__line {
  font-family: var(--ff-brand-slogan);
  font-weight: 400;
  font-size: clamp(1.875rem, 1.3rem + 2.6vw, 3.25rem);
  line-height: 1.55;
  color: var(--c-text-invert);
  max-width: 16em;
}
.st-close__coda {
  margin-top: clamp(2rem, 1.5rem + 2.4vw, 3.5rem);
  font-size: var(--fs-body);
  line-height: 1.9;
  color: rgba(247, 245, 242, 0.78);
  max-width: 24em;
}
.st-close__mark {
  margin-top: clamp(3rem, 2rem + 4vw, 5.5rem);
  padding-top: clamp(1.75rem, 1.3rem + 2vw, 2.75rem);
  border-top: 1px solid rgba(247, 245, 242, 0.16);
  font-family: var(--ff-mono);
  font-size: var(--fs-chapter-label);
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: rgba(247, 245, 242, 0.55);
}
@media (min-width: 900px) {
  .st-close__line, .st-close__coda, .st-close__mark { margin-left: 8.333%; }
}

/* --- Motion ----------------------------------------------------------- */
.st [data-reveal] .media > picture > img {
  transform: scale(1.012);
  transition: transform 1400ms var(--ease-editorial);
}
.st [data-reveal].is-in .media > picture > img { transform: scale(1); }
.no-js .st [data-reveal] .media > picture > img { transform: none; transition: none; }
@media (prefers-reduced-motion: reduce) {
  .st [data-reveal] .media > picture > img,
  .st [data-reveal].is-in .media > picture > img { transform: none; transition: none; }
}
