/* ============================================================
   page-index.css — Home (WP-12, the her-site wave stage 2).
   Design brief docs/design/2026-11-19_her-site-wave-brief.md § 5.1; plan § 7.2.
   Loaded by SiteLayout after the frame and the parts sheets, on / and /zh/ only.
   Every colour, face and size is a token from chishan.css :root; no hex here.
   Classes are .home-…; the shared parts are placed here, not restyled (the
   exceptions are each named where they sit).
   ============================================================ */

/* The 12-column grid every row below sits on (brief § 2.5) */
.home-hero-grid,
.home-proof-spread,
.home-wall,
.home-orgs-foot,
.home-split,
.home-sissi-grid,
.home-faq-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--grid-gap);
}

/* Chinese headings of this page's own in Noto Serif SC, so her full-width ， and 。
   are not drawn by Cormorant (stage-1 carry item 6 asks chishan.css for the base rule). */
:is(.home-hero-title, .home-door-name, .home-prog-name, .home-track-name, .home-format):lang(zh) { font-family: var(--cjk); }

/* ============================================================
   1 · THE HERO — the photograph and its inscription (brief § 5.1)
   ============================================================ */
/* Rows (stage 3, polish): a spring, the label, the h1 (with the poem beside it), the lede and
   the buttons, a second spring, the proof row. The photo spans them all and sets the height;
   the springs share what the copy leaves, 1 : 1.4, so the copy sits a little above the middle
   of the photograph and the proof row stays on the line of its caption. Before, every spare
   pixel fell between the buttons and the proof row (stage-2 carry, P3 finding 14: the tall gap
   in the Chinese hero at 1440). When the copy is the taller, the springs close up to 0 and 44 px. */
.home-hero { padding: 72px 0 var(--s-6); }
.home-hero-grid {
  container-type: inline-size;        /* the h1's size below is read from the grid's width */
  grid-template-rows: minmax(0, 1fr) auto auto auto minmax(44px, 1.4fr) auto;
  align-items: start;
}

.home-hero-label { grid-column: 1 / 6; grid-row: 2; margin-bottom: 28px; }
.home-hero-title { grid-column: 1 / 6; grid-row: 3; }
.home-hero-rest  { grid-column: 1 / 6; grid-row: 4; padding-top: 28px; }
.home-hero-proof { grid-column: 1 / 6; grid-row: 6; }

/* The h1 takes --t-h1 at every desk width and breaks as her page and the brief's drawing
   set it, large, on three lines: "Bring Chinese / culture / to life." (stage 3, s3-fix-site:
   the review's P2 — the 62 px fit-to-one-line size made the best first screen carry the
   site's smallest headline; that rule is gone). */

.home-hero-lede { max-width: var(--measure); }
.home-hero-lede-line { display: block; }   /* the Chinese lede, a sentence a line, as on her page */
.home-hero-actions {
  display: flex; flex-wrap: wrap; align-items: center; column-gap: 28px; row-gap: var(--s-3);
  margin-top: 36px;
}
/* The proof row: a hairline, then her label and a link per school story, on the line of
   the photo's caption (brief § 5.1's drawing). */
.home-hero-proof {
  display: flex; flex-wrap: wrap; column-gap: var(--s-5); row-gap: var(--s-1);
  padding-top: var(--s-1);
  border-top: 1px solid var(--line);
  align-items: baseline;
}
.home-hero-proof-links { display: flex; flex-wrap: wrap; column-gap: var(--s-5); list-style: none; }
/* The hairline continues the photo's foot and the words sit level with its caption:
   the links' 44 px target comes from padding that takes no room in the row. */
.home-hero-proof-link { display: inline-block; padding-block: 8px; margin-block: -8px; }

/* The inscription: column 6, against its right edge, its top level with the h1's.
   Her poem stands on paper, never on the photo. 亲手体验 is the right-hand column. */
.home-poem {
  grid-column: 6; grid-row: 3; justify-self: end; align-self: start;
  writing-mode: vertical-rl; text-orientation: upright;
  font-family: var(--cjk); font-weight: 500;
  font-size: var(--t-inscription); line-height: 1.5;
  letter-spacing: var(--track-inscription);
  color: var(--ink);
  margin-top: .12em;            /* the h1's line box starts above its letters */
}
.home-poem-cols, .home-poem-line { display: block; }
/* One column per line, in every engine: WebKit wrapped each four-character line into two
   columns of two at 390 (stage 3, the browsers check), so the poem read 相文体亲 / 遇化验手. */
.home-poem-line { white-space: nowrap; }
.home-poem-ch { display: inline; }

/* Written once the fonts are ready (brief § 6): a character at a time, right column
   first, each fading in over 240 ms, 70 ms apart. Hidden only by the page's script. */
.home-poem.is-pending .home-poem-ch { opacity: 0; }
.home-poem.is-writing .home-poem-ch {
  animation: home-write 240ms var(--ease) both;
  animation-delay: calc(var(--i, 0) * 70ms);
}
@keyframes home-write { from { opacity: 0; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
  .home-poem.is-pending .home-poem-ch,
  .home-poem.is-writing .home-poem-ch { opacity: 1; animation: none; }
}

/* The photograph: from column 7 to the screen's right edge; at 1520 px and wider it
   stops at the content edge. The header never sits over it. */
.home-hero-media {
  position: relative;
  grid-column: 7 / -1; grid-row: 1 / -1; align-self: start;
  margin-right: calc(-1 * (var(--gutter) + max(0px, (100vw - var(--maxw) - 2 * var(--gutter)) / 2)));
  min-width: 0;
}
@media (min-width: 1520px) { .home-hero-media { margin-right: 0; } }

/* The well is sized by the page ('free'): clamp(420px, 44vw, 720px) tall. */
.home-hero-photo.photo--free { height: auto; }
.home-hero-photo.photo--free > .photo-well { height: clamp(420px, 44vw, 720px); aspect-ratio: auto; }
/* EXCEPTION to "place, don't restyle" — the brief's crop recipe (§ 5.1): always the
   right-hand 57% of her photo, whatever the well's shape. Only her meriden-whisking takes
   it (Home.astro adds the class); a photo swapped in at Page photos keeps Photo's own
   cover at the place's Focus (stage-2 carry, P1 finding 1). */
.home-hero-photo--recipe .photo-well img {
  inset: auto; top: 50%; right: 0; left: auto;
  /* min-height 106.5%, not the brief's 100%: the image sits at top 50% less 47% of its own
     height, so it covers the top only when it is at least 1/0.94 of the well's height. At
     761–1023 the 420 px floor made it shorter than that, and a 6 px strip of the well's
     ground showed above the photo (seen at 768, stage 3). Cover keeps the right edge. */
  width: 175.4%; height: auto; min-height: 106.5%;
  object-fit: cover; object-position: 100% 45%;
  transform: translateY(-47%);
}

/* D7: no hero photo set — the well keeps its size on --band and holds the first
   character of her name, typeset, as tall as 60% of the well; the empty well's
   mountains (parts-offer.css) stay at its foot. The inscription stays. */
.home-hero-glyph {
  position: absolute; top: 0; left: 0; right: 0;
  height: clamp(420px, 44vw, 720px);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--cjk); font-weight: 500; line-height: 1;
  font-size: calc(clamp(420px, 44vw, 720px) * .6);
  color: var(--glyph-ghost);
  pointer-events: none;
}

/* Between the phone and 1080 the copy is narrow: the poem steps down a size */
@media (max-width: 1079px) and (min-width: 761px) {
  .home-poem { font-size: 22px; letter-spacing: .24em; }
}

/* ============================================================
   BELOW THE HERO — the home polish pass (2026-11-20, seat `home`). The first screen is
   her photograph off the right edge and her words at display size on paper; from here
   down every section is set as a spread in the same voice: a photograph that leaves the
   screen or stands on a line, a heading a step up the scale, her words on ruled rows.
   ============================================================ */

/* The display step: three headings below the hero (proof, organisations, the tea house)
   stand a step above --t-h2 and under --t-h1 (72 px at 1440; Chinese 57). From 761 px
   only: on a phone her two-line headings would each take a third line at that size. */
.home-xl { max-width: none; }
@media (min-width: 761px) {
  .home-xl .sh-title { font-size: calc(var(--t-h2) * 1.24); line-height: 1.02; letter-spacing: -.02em; }
  .home-xl .sh-title:lang(zh) { line-height: 1.3; letter-spacing: 0; }
}

/* ============================================================
   2 · THE THREE DOORS — the page's one green band. Her three audience pages as an
   index: the name at display size, her line beside it, an arrow at the right edge.
   Each row is one link.
   Why the doors take the green and organisations no longer does: this is the one
   section with no photograph, so the ground is its picture; and it sits against the
   first screen, where the page used to turn into a list.
   ============================================================ */
.home-doors { padding-block: var(--s-5); }
.home-doors-list { list-style: none; }
.home-door { min-width: 0; }
.home-door + .home-door { border-top: 1px solid var(--line-on-green); }
.home-door-link {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--grid-gap);
  align-items: baseline;
  min-height: 44px; padding-block: var(--s-6);
  color: var(--paper);
}
.home-door-name {
  grid-column: 1 / 6;
  font-family: var(--display); font-weight: 400;
  font-size: clamp(30px, 3.9vw, 56px); line-height: 1.05; letter-spacing: -.015em;
  text-decoration: underline; text-decoration-color: transparent;
  text-decoration-thickness: 1px; text-underline-offset: 8px;
  transition: text-decoration-color var(--dur-hover) var(--ease);
}
.home-door-name:lang(zh) { font-weight: 500; font-size: clamp(26px, 3.2vw, 46px); line-height: 1.3; letter-spacing: 0; }
.home-door-line {
  grid-column: 6 / 12;
  font-size: var(--t-body); line-height: var(--lh-body);
  color: var(--on-green-soft);
}
/* Her line turns at her own " · " (Home.astro sets each side of it as a part) */
.home-door-part { display: inline-block; max-width: 100%; }
/* The arrow: drawn, never typed. A departure from brief § 2.6 ("a link to a page: no
   arrow") for these three rows only — on the keep-or-revert list. It points along the
   row (→); ↗ stays the mark of a link that leaves the site. */
.home-door-arrow {
  grid-column: 12; justify-self: end; align-self: center;
  width: 28px; height: 28px;
  color: var(--on-green-soft);
  transition: color var(--dur-hover) var(--ease);
}
.home-door-link:hover .home-door-name,
.home-door-link:focus-visible .home-door-name { text-decoration-color: var(--on-green-soft); }
.home-door-link:hover .home-door-arrow,
.home-door-link:focus-visible .home-door-arrow { color: var(--paper); }
/* These short Chinese lines break at her punctuation, never inside a word (节 / 奏, 形 / 式
   at 320–390, stage 3); a clause too long for its line still breaks anywhere. */
:is(.home-door-line, .home-track-line, .home-prog-facts .fact-note):lang(zh) { word-break: keep-all; overflow-wrap: anywhere; }
.home-track-line:lang(zh) { text-wrap: balance; }
@media (prefers-reduced-motion: reduce) { .home-door-name, .home-door-arrow { transition: none; } }

/* ============================================================
   3 · THE TWO SCHOOL PROGRAMMES — a pair: each her photograph, her name for it at a
   step above --t-h3, her facts, and her two prices in the short form (For schools sets
   them large, as its menu). The second hangs lower. Each links to its place on
   For schools; the name is the link and its hit area is the whole programme.
   ============================================================ */
.home-progs-label { margin-bottom: var(--s-6); }
.home-progs-list {
  list-style: none;
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--grid-gap); row-gap: var(--s-8);
  align-items: start;
}
.home-prog { position: relative; min-width: 0; grid-column: 1 / 6; }
.home-prog:nth-child(even) { grid-column: 8 / 13; margin-top: var(--s-9); }
.home-prog-photo { min-width: 0; margin-bottom: var(--s-5); }
.home-prog-body { min-width: 0; }
.home-prog-name { margin-bottom: var(--s-4); font-size: calc(var(--t-h3) * 1.375); line-height: 1.08; letter-spacing: -.01em; }
.home-prog-name:lang(zh) { line-height: 1.35; letter-spacing: 0; }
.home-prog-link {
  color: var(--ink);
  text-decoration: underline; text-decoration-color: transparent;
  text-decoration-thickness: 1px; text-underline-offset: 6px;
  transition: text-decoration-color var(--dur-hover) var(--ease);
}
.home-prog-link::after { content: ""; position: absolute; inset: 0; }
.home-prog:hover .home-prog-link { text-decoration-color: var(--brass-deep); }
.home-prog-prices { min-width: 0; margin-top: var(--s-5); padding-top: var(--s-5); border-top: 1px solid var(--line); }
/* A coming-soon workshop says so here too, as For schools does (stage 3, s3-review-code) */
.home-prog-soon { margin-bottom: var(--s-3); color: var(--ink-soft); }
@media (prefers-reduced-motion: reduce) { .home-prog-link { transition: none; } }

/* ============================================================
   4 · PROOF — her heading on one line; then one story as a spread: its photograph runs
   off the LEFT edge of the screen (the first screen's runs off the right), its words and
   two small stills stand on columns 7–12. The other story follows under a rule.
   ============================================================ */
.home-proof-head { margin-bottom: var(--s-7); }
.home-proof-spread { align-items: stretch; }
.home-proof-photo {
  grid-column: 1 / 6; min-width: 0;
  margin-left: calc(-1 * (var(--gutter) + max(0px, (100vw - var(--maxw) - 2 * var(--gutter)) / 2)));
}
@media (min-width: 1520px) { .home-proof-photo { margin-left: 0; } }
/* The two stills at the head of the column, level with the photo's top, so her heading is
   answered by three photographs in a row; the story's words under them */
.home-proof-text { grid-column: 7 / 13; min-width: 0; }
.home-proof-words { margin-top: var(--s-6); }
.home-proof-spread--words .home-proof-text { grid-column: 1 / 8; }
.home-proof-stills {
  list-style: none;
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--grid-gap);
  align-items: start;
}
.home-proof-still { min-width: 0; }

.home-proof-second { margin-top: var(--s-8); padding-top: var(--s-8); border-top: 1px solid var(--line); }
/* EXCEPTION to "place, don't restyle" — the second story set in words alone (StoryCard
   media={false}): its label, title and summary on columns 1–5 and its quotation on 7–12,
   at display size and without the part's two rules (30 px between rules in the part).
   The words are the part's own, in the part's own order. */
.home-proof-second--words .story-body {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--grid-gap);
  align-items: start;
}
.home-proof-second--words .story-body > * { grid-column: 1 / 6; }
.home-proof-second--words .story-body:not(:has(.story-quote)) > * { grid-column: 1 / 8; }
.home-proof-second--words .story-quote {
  grid-column: 7 / 13; grid-row: 1 / span 4;
  margin: 0; padding: 0; border: 0;
}
.home-proof-second--words .story-quote blockquote { font-size: clamp(30px, 4vw, 56px); line-height: 1.1; letter-spacing: -.01em; }
.home-proof-second--words .story-quote blockquote p { text-wrap: balance; }
.home-proof-second--words .story-quote-src { margin-top: var(--s-5); }

/* ============================================================
   5 · ORGANISATIONS — her heading; then her past events standing on one line, tallest
   first (the place's photo on 1–5, then 6–9, then 10–12), each event's words under its
   own photograph; then her lede and the button beside her three tracks.
   ============================================================ */
.home-orgs-head { margin-bottom: var(--s-7); }
.home-wall { list-style: none; grid-template-rows: auto auto; }
.home-wall-item {
  grid-row: 1 / span 2; min-width: 0;
  display: grid; grid-template-rows: subgrid; align-content: start;
}
.home-wall-item--lead { grid-column: 1 / 6; }
.home-wall-item:nth-child(2) { grid-column: 6 / 10; }
.home-wall-item:nth-child(3) { grid-column: 10 / 13; }
/* The photographs stand on one line: each in the wall's first row, against its foot */
.home-wall-item > .photo, .home-wall-item .story-media { align-self: end; }
.home-wall-item > .story-tile:only-child { grid-row: 1 / span 2; display: grid; grid-template-rows: subgrid; }
/* A Chinese event title carries her " · " ("2024 中秋 · 中国谊园"): balanced over two lines in a
   narrow column, the dot began the second line. Here the line fills first, so the dot ends it. */
.home-wall .story-title:lang(zh) { text-wrap: wrap; }

/* The foot: her lede and the button on 1–5, her three tracks beside them on 6–12. In the
   markup the tracks come before the button, which is the order a phone and a screen reader give. */
.home-orgs-foot { margin-top: var(--s-8); grid-template-rows: auto 1fr; row-gap: var(--s-6); align-items: start; }
.home-orgs-lede { grid-column: 1 / 6; grid-row: 1; min-width: 0; }
.home-orgs-act {
  grid-column: 1 / 6; grid-row: 2;
  display: flex; flex-wrap: wrap; align-items: center; column-gap: 28px; row-gap: var(--s-3);
}
/* Her three tracks, as plain rows */
.home-tracks { grid-column: 6 / 13; grid-row: 1 / span 2; list-style: none; border-bottom: 1px solid var(--line); }
.home-track { padding: var(--s-4) 0; border-top: 1px solid var(--line); }
.home-track-line { margin-top: var(--s-1); max-width: var(--measure); font-size: var(--t-small); line-height: var(--lh-small); color: var(--ink-soft); }

/* ============================================================
   6 · THE TEA HOUSE — her words on columns 1–6, the room on 8–12
   ============================================================ */
.home-split { align-items: center; }
.home-split-media, .home-split-body { min-width: 0; }
.home-tea-media  { grid-column: 8 / 13; grid-row: 1; }
.home-tea-body   { grid-column: 1 / 7; grid-row: 1; }
.home-split-body .sh { max-width: none; margin-bottom: var(--s-6); }

/* Her three formats, as ruled rows. No 一 二 三: those markers are the Tea house page's alone
   (the readiness read's call 7, taken as (b) in the shine pass's brief). */
/* As wide as the lede above it (34em of the lede's size), so the rules end where it does */
.home-formats { list-style: none; border-bottom: 1px solid var(--line); max-width: calc(34 * var(--t-lede)); }
.home-format {
  display: flex; align-items: center;
  min-height: 72px; padding: var(--s-3) 0;
  border-top: 1px solid var(--line);
  font-family: var(--display); font-weight: var(--w-h3); font-size: var(--t-h3); line-height: var(--lh-h3);
  color: var(--ink);
}
.home-more { margin-top: var(--s-4); }

/* ============================================================
   7 · SISSI — her illustration, plain, on columns 1–3; her words on 5–10
   ============================================================ */
.home-sissi-grid { align-items: center; }
.home-sissi-media { grid-column: 1 / 4; min-width: 0; }
.home-sissi-body { grid-column: 5 / 11; min-width: 0; }
.home-sissi-body .sh { max-width: none; margin-bottom: var(--s-5); }
.home-sissi-bio { max-width: var(--measure); }
/* Her caption and its credit, one above the other. The caption runs on into column 4,
   which is empty (the words start on 5), so each of her two lines stays one line: in three
   columns "ILLUSTRATED FROM A PERSONAL PHOTOGRAPH" wrapped, three lines in all (stage-2
   carry, P3 finding 14). The width is the figure's three columns, one gap, one column. */
.home-sissi-media .photo-cap { flex-direction: column; gap: var(--s-1); width: calc((400% + var(--grid-gap)) / 3); }
/* Her credit is typed in sentence case (P:146), so it is set as she typed it, not in
   the label voice's capitals: a quiet line under her title, as the brief draws it (§ 5.6) */
.home-sissi-media .photo-cap-end {
  max-width: none; text-align: left;
  font-size: var(--t-small); line-height: var(--lh-small); font-weight: 400;
  letter-spacing: 0; text-transform: none;
}

/* ============================================================
   8 · QUESTIONS — the heading on columns 1–4, the list on 6–12
   ============================================================ */
.home-faq-grid { align-items: start; }
.home-faq-head { grid-column: 1 / 5; max-width: none; margin-bottom: 0; }
.home-faq-list { grid-column: 6 / 13; min-width: 0; }

/* ============================================================
   THE HERO UP TO 1023 — the phone's hero, on phones and upright tablets
   ============================================================ */
@media (max-width: 1023px) {
  /* The hero: header 60 → the photo, edge to edge, 4/3 → her caption → the label and
     the h1, the inscription standing at the right edge level with the label → the lede
     → the button, full width → the text link → the proof row. Up to 1023, not 760 (stage 3,
     s3-fix-site): at 768 the desk hero left the h1 at 40 px in a 312 px column beside a short
     photo, so an upright iPad takes the phone's hero. */
  .home-hero { padding: 0 0 var(--s-7); }
  .home-hero-grid { grid-template-columns: minmax(0, 1fr) auto; column-gap: var(--s-4); grid-template-rows: none; }
  .home-hero-media { grid-column: 1 / -1; grid-row: 1; margin: 0 calc(-1 * var(--gutter)) var(--s-6); }
  .home-hero-photo.photo--free > .photo-well { height: auto; aspect-ratio: 4 / 3; }
  .home-hero-media .photo-cap { padding-inline: var(--gutter); }
  .home-hero-glyph { height: 75vw; font-size: 45vw; }
  .home-hero-label { grid-column: 1; grid-row: 2; margin-bottom: var(--s-4); }
  .home-hero-title { grid-column: 1; grid-row: 3; }
  .home-poem { grid-column: 2; grid-row: 2 / 4; margin-top: 0; }
  /* English: her lead line needs the full width to stay whole ("Bring Chinese culture /
     to life."), so the poem stands beside the label only and the h1 runs under both, at
     the size that fits 8.3 em in the column (42 px at 390). Chinese: 让中国文化，fits
     beside the poem, which stands beside the label and the h1 as the brief draws. */
  .home-hero-title:lang(en) { grid-column: 1 / -1; margin-top: var(--s-2); font-size: min(var(--t-h1), calc(100cqi / 8.3)); }
  .home-hero-grid:lang(en) .home-poem { grid-row: 2; }
  /* …and 让中国文化，stays on one line down to 320 (its column is the grid less the poem
     and the gap, 76 px; the line is 6.05 em) */
  .home-hero-title:lang(zh) { font-size: min(var(--t-h1), calc((100cqi - 76px) / 6.05)); }
  .home-hero-rest { grid-column: 1 / -1; grid-row: 4; padding-top: var(--s-5); }
  .home-hero-actions { flex-direction: column; align-items: stretch; margin-top: var(--s-6); row-gap: var(--s-2); }
  .home-hero-btn { width: 100%; }
  .home-hero-more { align-self: flex-start; }
  .home-hero-proof { grid-column: 1 / -1; grid-row: 5; margin-top: var(--s-5); padding-top: var(--s-4); align-items: center; }
  .home-hero-proof-link { display: inline-flex; align-items: center; min-height: 44px; padding-block: 0; margin-block: 0; }
  .home-hero-proof-label { flex-basis: 100%; }

  /* In the wall's narrow columns an event's label may turn inside a part: "CULTURAL
     CELEBRATION ·" is wider than the third column at 768 and than the words' column at 320,
     where it pushed the page 14 px sideways (StoryCard keeps a part whole for dates) */
  .home-wall .story-label-part { white-space: normal; }

  /* The doors with the phone's hero: the name and the arrow on one line, her line under them */
  .home-doors { padding-block: var(--s-3); }
  .home-door-link { grid-template-columns: minmax(0, 1fr) auto; column-gap: var(--s-4); row-gap: var(--s-2); align-items: center; padding-block: var(--s-5); }
  .home-door-name { grid-column: 1; grid-row: 1; }
  .home-door-arrow { grid-column: 2; grid-row: 1; width: 24px; height: 24px; }
  .home-door-line { grid-column: 1 / -1; grid-row: 2; max-width: var(--measure); font-size: var(--t-small); line-height: var(--lh-small); }
}

/* ============================================================
   BETWEEN THE PHONE AND THE DESK (761–1079): the spreads keep their sides on wider columns
   ============================================================ */
@media (min-width: 761px) and (max-width: 1079px) {
  .home-prog { grid-column: 1 / 7; }
  .home-prog:nth-child(even) { grid-column: 7 / 13; margin-top: var(--s-8); }
  .home-progs-list { column-gap: var(--s-6); }
}
@media (min-width: 761px) and (max-width: 1023px) {
  /* The phone's hero, but the button keeps its own width beside the text link */
  .home-hero-actions { flex-direction: row; align-items: center; column-gap: 28px; }
  .home-hero-btn { width: auto; }
  .home-hero-more { align-self: center; }

  .home-proof-photo { grid-column: 1 / 7; }
  .home-proof-text { grid-column: 7 / 13; }
  .home-proof-second--words .story-body > * { grid-column: 1 / 7; }
  .home-proof-second--words .story-quote { grid-column: 7 / 13; }
  .home-orgs-lede, .home-orgs-act { grid-column: 1 / 7; }
  .home-tracks { grid-column: 7 / 13; }
  .home-tea-media  { grid-column: 8 / 13; }
  .home-tea-body   { grid-column: 1 / 7; }
  .home-sissi-media { grid-column: 1 / 6; }
  .home-sissi-body  { grid-column: 7 / 13; }
  .home-sissi-media .photo-cap { width: calc((600% + var(--grid-gap)) / 5); }
}

/* ============================================================
   THE PHONE (≤ 760): every spread becomes one column, photo then words
   ============================================================ */
@media (max-width: 760px) {
  .home-proof-spread,
  .home-wall,
  .home-orgs-foot,
  .home-split,
  .home-sissi-grid,
  .home-faq-grid { grid-template-columns: minmax(0, 1fr); }

  /* The programmes: the square photo at 112 px beside the name; the facts and the
     prices under them, full width */
  .home-progs-list { grid-template-columns: minmax(0, 1fr); row-gap: var(--s-8); }
  .home-prog,
  .home-prog:nth-child(even) {
    grid-column: 1; margin-top: 0;
    display: grid; grid-template-columns: 112px minmax(0, 1fr); column-gap: var(--s-4); row-gap: var(--s-5); align-items: center;
  }
  .home-prog-photo { margin-bottom: 0; }
  .home-prog-body { display: contents; }
  .home-prog-name { grid-column: 2; grid-row: 1; margin-bottom: 0; font-size: 28px; line-height: 1.1; }
  .home-prog-name:lang(zh) { font-size: 24px; line-height: 1.35; }
  /* A 44 px box around the name on its own, though the ::after already makes the whole
     programme the target (stage 3, the states check) */
  .home-prog-link { display: inline-block; padding-block: 7px; margin-block: -7px; }
  .home-prog-facts { grid-column: 1 / -1; grid-row: 2; }
  /* Here only, the facts keep the desk's pipe line: the two stacked rows took about 1,150 px
     of the phone home, and For schools repeats all of it one tap away (stage 3,
     s3-review-design). Every price stays, and so does the footnote: a fact carries her
     asterisk ("Years 7–12*"), which would point at nothing without it. */
  .home-prog-facts .fact-list { display: flex; margin-left: calc(-2 * var(--s-4) - 1px); }
  .home-prog-facts .fact { display: inline-flex; min-height: 0; border: 0; }
  .home-prog-facts .fact:last-child { border-bottom: 0; }
  .home-prog-facts .fact::before { content: ""; }
  .home-prog-prices { grid-column: 1 / -1; grid-row: 3; margin-top: 0; padding-top: var(--s-4); }
  .home-prog-soon { grid-column: 1 / -1; grid-row: 2; margin-bottom: 0; }
  .home-prog:has(.home-prog-soon) .home-prog-facts { grid-row: 3; }
  .home-prog:has(.home-prog-soon) .home-prog-prices { grid-row: 4; }

  /* Proof: her heading, the photograph edge to edge, the words, the two stills side by side */
  .home-proof-head { margin-bottom: var(--s-6); }
  .home-proof-photo, .home-proof-text,
  .home-proof-spread--words .home-proof-text { grid-column: 1; margin-left: 0; }
  .home-proof-text { margin-top: var(--s-3); }
  .home-proof-stills { column-gap: var(--s-3); }
  .home-proof-second { margin-top: var(--s-8); padding-top: var(--s-7); }
  .home-proof-second--words .story-body { display: block; }
  .home-proof-second--words .story-quote { margin-top: var(--s-6); }
  .home-proof-second--words .story-quote blockquote { font-size: 30px; }

  /* Organisations: the place's photo edge to edge with its event's words; the other
     events as rows, a small photograph beside each one's words (EXCEPTION to "place, don't
     restyle": StoryCard's tile is laid out as a row here, as MakeCards' cards are on a phone) */
  .home-orgs-head { margin-bottom: var(--s-6); }
  .home-wall { grid-template-rows: none; row-gap: var(--s-6); }
  .home-wall-item,
  .home-wall-item--lead,
  .home-wall-item:nth-child(2),
  .home-wall-item:nth-child(3) { grid-column: 1; grid-row: auto; display: block; }
  .home-wall-item > .story-tile:only-child {
    display: grid; grid-template-columns: 112px minmax(0, 1fr); grid-template-rows: none; column-gap: var(--s-4);
    align-items: start;
    padding-top: var(--s-5); border-top: 1px solid var(--line);
  }
  .home-wall-item .story-media { align-self: start; }
  .home-wall-item > .story-tile:only-child .story-body { margin-top: 0; }
  .home-orgs-foot { margin-top: var(--s-7); grid-template-rows: none; row-gap: var(--s-6); }
  .home-orgs-lede, .home-tracks, .home-orgs-act { grid-column: 1; grid-row: auto; }
  .home-orgs-act { flex-direction: column; align-items: stretch; row-gap: var(--s-2); }
  .home-orgs-more { align-self: flex-start; }

  .home-tea-media, .home-tea-body { grid-column: 1; }
  .home-tea-media { grid-row: 1; }
  .home-tea-body { grid-row: 2; }
  .home-split-media { margin-bottom: var(--s-6); }
  .home-format { min-height: 56px; font-size: var(--t-h4); line-height: var(--lh-h4); }

  /* Sissi: her illustration at 64% of the column, its two caption lines under it at the
     column's full width, so each stays one line (at 70% they made three) */
  .home-sissi-media { grid-column: 1; margin-bottom: var(--s-6); }
  .home-sissi-media .photo { width: 64%; }
  .home-sissi-media .photo-cap { width: calc(100% / .64); }
  .home-sissi-body { grid-column: 1; }

  .home-faq-head { grid-column: 1; margin-bottom: var(--s-6); }
  .home-faq-list { grid-column: 1; }
}

/* ============================================================
   PAPER & SEAL, FINISHED — the direction study (2026-11-20)
   The original's voice carried onto today's page: her brush 栖 standing pale behind the
   first screen with its foot in her mountains (the original's giant 栖 and its ranges, now
   both cut from her own file, never typeset or drawn); her card's values as a still pipe
   line under it; the block on what the name means, her brush 栖 · 山 over our gloss.
   ============================================================ */
.home-hero { position: relative; overflow: hidden; isolation: isolate; padding-bottom: clamp(88px, 10vw, 150px); }
.home-hero > .wrap { position: relative; z-index: 2; }
.home-ghost {
  position: absolute; z-index: 0; pointer-events: none;
  left: calc(max(var(--gutter), (100vw - var(--maxw)) / 2) - 7vw);
  bottom: clamp(40px, 5vw, 80px);
  height: min(82%, 780px); aspect-ratio: 447 / 406;
  background: url(/brand/brush-qi.webp) center / contain no-repeat;
  opacity: .045;
}
.home-hills {
  position: absolute; z-index: 1; pointer-events: none;
  left: 0; right: 0; bottom: 0;
  aspect-ratio: 1006 / 174; max-height: 260px;
  background: url(/brand/mountains.webp) center bottom / 100% auto no-repeat;
  opacity: .32;
}
@media (min-width: 1500px) { .home-hills { background-size: auto 100%; } }
/* The original's h1: the second line a step smaller, in the green italic */
.home-hero-title em { font-size: .86em; }
.home-hero-title:lang(zh) em { font-size: 1em; }
/* The mix (Wilson 2026-11-20, of the Synthesis study's pair: "hmm i might like this"): the solid button
   with the second call as a text link beside it, not two stacked buttons. */
.home-hero-proof { border-top-color: var(--line-strong); }
.home-poem { color: var(--ink); }

/* Her card's values: one still line between two hairlines, the original's motto strip */
.home-motto { position: relative; z-index: 1; background: var(--paper) var(--grain); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.home-motto-line {
  max-width: calc(var(--maxw) + 2 * var(--gutter)); margin: 0 auto; padding: 22px var(--gutter);
  display: flex; flex-wrap: wrap; justify-content: center; align-items: baseline; row-gap: var(--s-2);
  font-family: var(--display); font-weight: 500; font-size: clamp(17px, 1.45vw, 21px); line-height: 1.3;
  letter-spacing: .16em; text-transform: uppercase; color: var(--pine);
}
.home-motto-word { white-space: nowrap; }
.home-motto-word::before { content: "|"; content: "|" / ""; padding: 0 .95em 0 calc(.95em - .16em); color: var(--line-strong); letter-spacing: 0; font-weight: 400; }
.home-motto-word:first-child::before { padding-left: 0; }
.home-motto-word:last-child::after { content: "|"; content: "|" / ""; padding-left: calc(.95em - .16em); color: var(--line-strong); letter-spacing: 0; font-weight: 400; }

/* The three doors on the green: the name in the original's display, her line in the reading face */
.home-door-line { font-style: italic; }
.home-door-line:lang(zh) { font-style: normal; }

/* The programmes: the name in Cormorant over a hairline, as the original's offer cells */
.home-prog-name { font-weight: 400; }

/* The name — centred, as the original's philosophy block */
.home-name-inner { text-align: center; display: flex; flex-direction: column; align-items: center; }
.home-name-brush { display: flex; align-items: flex-end; justify-content: center; gap: clamp(18px, 2.4vw, 34px); margin-bottom: var(--s-6); }
.home-name-brush img { height: clamp(60px, 6vw, 88px); width: auto; mix-blend-mode: multiply; opacity: .86; }
.home-name-brush img + .home-name-dot + img { height: clamp(57px, 5.7vw, 84px); }
.home-name-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--line-strong); align-self: center; }
.home-name-title { max-width: 22ch; font-size: var(--t-h2); line-height: 1.14; }
.home-name-title em { font-style: italic; }
.home-name-text { max-width: 46ch; margin-top: var(--s-5); }
.home-name-zh { font-family: var(--cjk); font-size: .92em; color: var(--ink); }

@media (max-width: 1023px) {
  .home-hero { padding-bottom: clamp(72px, 16vw, 120px); }
  .home-ghost { left: -14vw; bottom: 28px; height: auto; width: 92vw; }
}
@media (min-width: 761px) and (max-width: 1023px) {
  /* An upright tablet: the poem stands beside the label and the h1, and the h1 takes the room */
  .home-hero-grid:lang(en) .home-poem { grid-row: 2 / 4; }
  .home-hero-title:lang(en) { grid-column: 1; font-size: clamp(46px, 7.6vw, 72px); }
}
@media (max-width: 760px) {
  .home-motto-line { padding-block: var(--s-4); font-size: 16px; letter-spacing: .14em; column-gap: 0; }
  .home-name-title { font-size: 32px; }
}

/* ============================================================
   THE MELD (dir/meld, 2026-11-21) — three devices of the copybook study, redrawn on the
   Original's paper and type: her poem in two columns of practice squares, the three doors
   as a ruled index under each name's characters, and each school programme under its
   Chinese name in squares. No ground changes: the squares stand on this page's own paper.
   (Wilson 2026-11-21, of the copybook's doors, poem and programmes: three leans, to be seen.)
   ============================================================ */
/* The poem: two columns of four squares between her words and her photograph (columns 6–7),
   its top level with the h1's; the photograph starts a column later to make its room. */
.home-poem {
  grid-column: 6 / 8; grid-row: 2 / 5; justify-self: center; align-self: start;
  writing-mode: horizontal-tb; letter-spacing: 0; line-height: 1; font-size: inherit;
  margin-top: 0; padding-top: 6px;
}
.home-poem-grid { --zg-max: 88px; --zg-room: calc((100vw - 2 * var(--gutter)) / 6.6); }
.home-hero-media { grid-column: 8 / -1; }

/* The doors: off the green, onto the paper. Three ruled columns; each is one link. */
.home-doors { padding-block: 0 var(--s-8); }
.home-doors-list {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: var(--grid-gap);
  border-top: 1px solid var(--line-strong);
}
.home-door + .home-door { border-top: 0; border-left: 1px solid var(--line); padding-left: var(--grid-gap); }
.home-door-link {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-rows: auto auto auto 1fr;
  column-gap: var(--s-4); row-gap: var(--s-4); align-items: start;
  height: 100%; padding-block: var(--s-7) var(--s-5);
  color: var(--ink);
}
.home-door-zg { grid-column: 1 / -1; --zg-room: calc((100vw - 2 * var(--gutter)) / 3 - 2 * var(--grid-gap)); margin-bottom: var(--s-3); }
.home-door-name { grid-column: 1; grid-row: 2; font-size: clamp(30px, 3vw, 44px); }
.home-door-gloss { grid-column: 1; grid-row: 2; align-self: center; }
.home-door-line {
  grid-column: 1 / -1; grid-row: 3; max-width: 26em;
  font-size: var(--t-small); line-height: var(--lh-small); color: var(--ink-soft);
}
.home-door-arrow { grid-column: 2; grid-row: 2; align-self: center; color: var(--pine); transition: transform var(--dur-hover) var(--ease); }
.home-door-link:hover .home-door-name,
.home-door-link:focus-visible .home-door-name { text-decoration-color: var(--brass-deep); }
.home-door-link:hover .home-door-arrow,
.home-door-link:focus-visible .home-door-arrow { color: var(--pine); transform: translateX(4px); }
@media (prefers-reduced-motion: reduce) { .home-door-arrow { transition: none; } .home-door-link:hover .home-door-arrow, .home-door-link:focus-visible .home-door-arrow { transform: none; } }
@media (max-width: 900px) {
  .home-doors-list { grid-template-columns: minmax(0, 1fr); }
  .home-door + .home-door { border-left: 0; padding-left: 0; border-top: 1px solid var(--line); }
  .home-door-link { padding-block: var(--s-6); }
  .home-door-zg { --zg-room: calc(100vw - 2 * var(--gutter)); }
}

/* Up to 1023 the headline is centred on the height of the poem's squares beside it
   (Wilson 2026-11-21: "i still think A for phone headline"). */
@media (max-width: 1023px) { .home-hero-title { align-self: center; } }

/* The programmes: her Chinese name in squares over the name */
.home-prog-zg { display: block; margin-bottom: var(--s-4); --zg-room: calc((100vw - 2 * var(--gutter)) * 5 / 12); }
.home-prog-name:lang(zh):has(.home-prog-en) { font-size: var(--t-label); line-height: var(--lh-label); }
.home-prog-name:lang(zh) .home-prog-link { text-underline-offset: 4px; }

/* Up to 1023 (the phone's hero): the label on its own row, the poem's squares beside the h1 */
@media (max-width: 1023px) {
  .home-hero-media { grid-column: 1 / -1; }
  .home-hero-label { grid-column: 1 / -1; }
  .home-poem,
  .home-hero-grid:lang(en) .home-poem { grid-column: 2; grid-row: 3; padding-top: 4px; justify-self: end; }
  .home-poem-grid { --zg-max: 48px; --zg-room: 120px; }
  .home-hero-title:lang(en) { grid-column: 1; margin-top: 0; font-size: min(var(--t-h1), calc((100cqi - 120px) / 5.6)); }
  .home-hero-title:lang(zh) { font-size: min(var(--t-h1), calc((100cqi - 120px) / 6.05)); }
}
@media (min-width: 761px) and (max-width: 1023px) {
  .home-poem-grid { --zg-max: 72px; --zg-room: 150px; }
  .home-hero-grid:lang(en) .home-poem { grid-row: 3; }
  .home-hero-title:lang(en) { font-size: clamp(46px, 8.6cqi, 72px); }
  .home-hero-title:lang(zh) { font-size: clamp(36px, 7cqi, 60px); }
}
@media (max-width: 760px) {
  .home-prog-zg { grid-column: 1 / -1; grid-row: 1; margin-bottom: 0; --zg-room: calc(100vw - 2 * var(--gutter)); }
  .home-prog:has(.home-prog-zg) .home-prog-photo { grid-row: 2; }
  .home-prog:has(.home-prog-zg) .home-prog-name { grid-row: 2; }
  .home-prog:has(.home-prog-zg) .home-prog-facts { grid-row: 3; }
  .home-prog:has(.home-prog-zg) .home-prog-prices { grid-row: 4; }
  .home-prog:has(.home-prog-zg):has(.home-prog-soon) .home-prog-soon { grid-row: 3; }
  .home-prog:has(.home-prog-zg):has(.home-prog-soon) .home-prog-facts { grid-row: 4; }
  .home-prog:has(.home-prog-zg):has(.home-prog-soon) .home-prog-prices { grid-row: 5; }
}

/* ============================================================
   THE MIX (Wilson's picks, 2026-11-20): the values strip and the tea-house card, from the Synthesis study
   ============================================================ */
/* The foot of her card: her values between her pipes, on the hero's paper, before the green */
.home-values { padding: 26px 0 30px; }
.home-values-list { border-top: 1px solid var(--line); padding-top: 26px; color: var(--moss); }
@media (max-width: 760px) {
  .home-values { padding: 8px 0 28px; }
  .home-values-list { padding-top: 22px; font-size: 13px; letter-spacing: .14em; }
  .home-values-list > li::before, .home-values-list > li:last-child::after { margin-inline: .7em; }
}

/* The synthesis: the tea house is the home's CARD (chishan.css .card) — her words set as her
   printed card sets them, centred: the label tracked wide, her heading, her lede, and her three
   formats as serif capitals, one to a line, as her card lists HOSTED TEA SESSIONS … The room
   stands beside it at the card's height. */
.home-tea .home-split { align-items: stretch; }
.home-tea-body.card { grid-column: 1 / 8; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.home-tea-media { grid-column: 8 / 13; align-self: center; }
.home-tea-body.card .sh { max-width: 30em; margin-bottom: var(--s-6); }
.home-tea-body.card .sh-title { font-size: var(--t-h2); }
.home-tea-body.card .sh-lede { margin-inline: auto; max-width: 26em; font-size: var(--t-body); line-height: var(--lh-body); }
.home-tea-body.card .home-formats { border: 0; max-width: none; margin-bottom: var(--s-5); }
.home-tea-body.card .home-format {
  justify-content: center; min-height: 0; padding: 4px 0; border: 0;
  font-family: var(--label); font-weight: 500; font-size: 17px; line-height: 1.6;
  letter-spacing: .14em; text-transform: uppercase; color: var(--ink);
}
.home-tea-body.card .home-format:lang(zh) { font-family: var(--cjk); font-size: 18px; letter-spacing: .2em; text-transform: none; }
.home-tea-body.card .home-more { margin-top: 0; }
@media (max-width: 1079px) and (min-width: 761px) {
  .home-tea-body.card { grid-column: 1 / 8; }
  .home-tea-media { grid-column: 8 / 13; }
}
/* On a phone the card and the room's photograph each take the one column (the block above was
   never closed, so this rule sat inside it and never applied: the card kept 7 of 12 columns
   and the photograph a 96 px corner). */
@media (max-width: 760px) { .home-tea-body.card, .home-tea-media { grid-column: 1; } }
/* The section keeps the Original study's paper ground (organisations before it and the name after it are bands), so the card is the lighter stock lying on it.
   Scoped to 761–1079 because that is where it has applied since the study (the unclosed block
   above held it): the widths Wilson picked on, 1440 and 390, never showed it. Whether the card
   takes this ground at every width is his call. */
@media (max-width: 1079px) and (min-width: 761px) {
  .home-tea-body.card { background: var(--band) var(--grain); --well: var(--paper); }
}
