/* vespercontinuum.com · "She'll teach you anything" (index.html, between teaches:begin and teaches:end).
   One held scene: the learners' names at the top of the left column, a photograph's frame on the right, the finished result of
   each lesson laid over the frame's left edge, the words below on the left. A beat per swipe (site.js); each "+" opens a closer look, a dialog of its own. */
.teaches { position: relative; padding: 20vh 0 12vh; }
.teaches, .tx-dive { --tx-gold: #e2c27e; --tx-ja: "Hiragino Mincho ProN", "Yu Mincho", YuMincho, "Noto Serif JP", serif;
  --tx-zh: "Songti SC", STSong, "Noto Serif SC", serif; }
.tx-head { max-width: 920px; margin: 0 auto; padding: 0 var(--edge); text-align: center; }
.tx-head h2 { font-family: var(--font-display); font-weight: var(--w-regular); font-size: calc(var(--t-h2) * 1.14); line-height: 1.04; letter-spacing: -.006em; }
.tx-head .lede { margin: 26px auto 0; max-width: 35em; text-wrap: balance; }
.tx-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* ——— the held scene */
.tx-scene { position: relative; height: 640vh; margin-top: 12vh; }
.tx-pin { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }

/* who is learning: a quiet list at the top of the words' column, the one showing lit */
.tx-index { position: absolute; z-index: 3; left: var(--edge); top: 17vh; margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.tx-index button { position: relative; display: block; padding: 0 0 0 17px; border: 0; background: none; cursor: pointer; text-align: left;
  font-size: var(--t-small); line-height: 1.35; letter-spacing: .01em; color: var(--ink-3); transition: color .5s ease; }
.tx-index button span { display: block; font-size: var(--t-caption); color: var(--ink-4); transition: color .5s ease; }
.tx-index button::before { content: ""; position: absolute; left: 0; top: .55em; width: 5px; height: 5px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(244, 239, 230, .4); transition: background .5s, box-shadow .5s; }
.tx-index li.on button span { color: var(--ink-3); }
.tx-index button:hover { color: var(--ink-2); }
.tx-index li.on button { color: var(--ink-title); }
.tx-index li.on button::before { background: var(--tx-gold); box-shadow: 0 0 10px rgba(226, 194, 126, .7); }
.tx-index button:focus-visible { outline: 1px solid rgba(226, 194, 126, .6); outline-offset: 4px; border-radius: 2px; }

/* a beat: its frame, its result and its words arrive together; only the one showing takes the pointer */
.tx-beat { position: absolute; inset: 0; visibility: hidden; pointer-events: none; transition: visibility 0s linear .9s; }
.tx-beat.show { visibility: visible; transition-delay: 0s; }
.tx-beat > * { opacity: 0; transition: opacity .9s cubic-bezier(.2, .7, .2, 1), transform 1.1s cubic-bezier(.2, .7, .2, 1); }
.tx-beat.show > * { opacity: 1; }
.tx-beat > :not(.tx-frame) { transform: translateY(14px); }
.tx-beat.show > :not(.tx-frame) { transform: none; transition-delay: .18s; }
.tx-beat.show .tx-more, .tx-beat.show .tx-sheet { pointer-events: auto; }

.tx-frame { position: absolute; left: 36vw; right: var(--edge); top: 17vh; bottom: 7vh; margin: 0; border-radius: 22px; overflow: hidden; background: #0d0c0b;
  box-shadow: 0 0 0 1px rgba(255, 248, 235, .1), 0 60px 140px -60px rgba(0, 0, 0, .95); }
.tx-frame > i { position: absolute; inset: 0; background: center / cover no-repeat; opacity: 0; transform: scale(1); transition: opacity 1s ease, transform 14s cubic-bezier(.2, .6, .2, 1); }
.tx-frame > i.in { opacity: 1; }
.tx-beat.show .tx-frame > i { transform: scale(1.04); }
.tx-b0 .tx-frame > i { background-position: 62% 50%; }
.tx-b1 .tx-frame > i { background-position: 78% 50%; }
.tx-b3 .tx-frame > i { background-position: 74% 50%; }
.tx-b4 .tx-frame > i { background-position: 4% 50%; transform-origin: 80% 50%; }
.tx-b5 .tx-frame > i, .tx-b6 .tx-frame > i { background-position: 96% 50%; transform-origin: 70% 60%; }
.tx-cam { position: absolute; right: 16px; top: 14px; padding: 4px 10px; border-radius: 999px; font-size: 12px; letter-spacing: .05em; color: rgba(250, 246, 238, .94);
  background: rgba(14, 12, 10, .4); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); box-shadow: inset 0 0 0 1px rgba(255, 248, 235, .18); }
.tx-cam::before { content: ""; display: inline-block; width: 6px; height: 6px; margin: 0 8px 1px 0; border-radius: 50%; background: #e86a5c; box-shadow: 0 0 6px rgba(232, 106, 92, .8); }

/* the words, below on the left */
.tx-words { position: absolute; left: var(--edge); bottom: 7vh; width: min(30rem, calc(34vw - var(--edge))); }
.tx-words .eyebrow { margin-bottom: 14px; }
.tx-words h3 { font-family: var(--font-display); font-weight: var(--w-regular); font-size: clamp(28px, 1.15vw + 16px, 46px); line-height: 1.06; letter-spacing: -.006em; color: var(--ink-title); }
.tx-words > p:not(.eyebrow) { margin: 14px 0 0; font-size: var(--t-body); line-height: 1.6; color: var(--ink-2); text-wrap: pretty; }
.tx-b2 .tx-words { width: min(22rem, calc(23vw - var(--edge))); }
.tx-b2 .tx-frame { left: 26vw; }

/* the quiet "+": a hairline ring and its words */
.tx-more { display: inline-flex; align-items: center; gap: 12px; margin-top: 24px; padding: 0; border: 0; background: none; cursor: pointer;
  font-size: var(--t-small); letter-spacing: var(--tr-small); color: var(--ink-2); transition: color .3s; }
.tx-plus { position: relative; flex: none; width: 34px; height: 34px; border-radius: 50%; box-shadow: inset 0 0 0 1px var(--rim); transition: box-shadow .3s; }
.tx-plus::before, .tx-plus::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 1px; margin: -.5px 0 0 -6px; background: currentColor; }
.tx-plus::after { transform: rotate(90deg); }
.tx-more:hover { color: var(--ink-title); }
.tx-more:hover .tx-plus { box-shadow: inset 0 0 0 1px var(--rim-hot); }
.tx-more:focus-visible { outline: none; } .tx-more:focus-visible .tx-plus { box-shadow: inset 0 0 0 1px var(--tx-gold), 0 0 0 3px rgba(226, 194, 126, .18); }

/* ——— the results */
/* 1 · the morning's phrase, on Sam's lock screen (images/reveal/lock-kyoto.jpg) */
.tx-phone { position: absolute; left: calc(36vw + 3.4vw); top: 21vh; height: 66vh; aspect-ratio: 1320 / 2868; margin: 0; padding: .9vh; border-radius: 13.5% / 6.2%;
  background: #0d0d0f; box-shadow: 0 0 0 1px rgba(255, 248, 235, .16), 0 60px 120px -40px rgba(0, 0, 0, .95), 0 20px 50px -20px rgba(0, 0, 0, .7); }
.tx-phone img { display: block; width: 100%; height: 100%; object-fit: cover; border-radius: 12.4% / 5.7%; opacity: 0; transition: opacity .8s ease; }
.tx-phone.ready img { opacity: 1; }
.tx-phone.missing img { display: none; }
/* until that capture exists, her notice is drawn in its place */
.tx-lock { display: none; position: absolute; inset: .9vh; border-radius: 12.4% / 5.7%; overflow: hidden; flex-direction: column; align-items: center; color: #fff; font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", Inter, sans-serif;
  background: radial-gradient(120% 70% at 30% 18%, #c9a774 0%, rgba(201, 167, 116, 0) 55%), linear-gradient(170deg, #8a7458 0%, #3d3326 46%, #17161c 100%); container-type: inline-size; }
.tx-phone.missing .tx-lock { display: flex; }
.tx-lock .d { margin-top: 18cqw; font-size: 6cqw; font-weight: 600; color: rgba(255, 250, 240, .9); }
.tx-lock .t { font-size: 27cqw; font-weight: 600; line-height: 1; letter-spacing: -.02em; color: rgba(255, 246, 228, .92); }
.tx-lock .n { position: absolute; left: 3.6cqw; right: 3.6cqw; bottom: 9cqw; display: grid; grid-template-columns: 9cqw minmax(0, 1fr) auto; column-gap: 3cqw; padding: 3.4cqw 3.8cqw;
  border-radius: 6.4cqw; background: rgba(60, 56, 64, .5); -webkit-backdrop-filter: blur(16px) saturate(1.4); backdrop-filter: blur(16px) saturate(1.4); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .14);
  font-size: 3.9cqw; line-height: 1.32; text-align: left; }
.tx-lock .n i { grid-row: 1 / span 2; align-self: center; width: 9cqw; height: 9cqw; border-radius: 50%; background: url(../images/orb/clear.png) center / cover; }
.tx-lock .n b { font-weight: 600; } .tx-lock .n em { font-style: normal; color: rgba(255, 255, 255, .6); }
.tx-lock .n > span { grid-column: 2 / span 2; color: rgba(255, 255, 255, .95); }

/* … and at the counter: what was said, with her two words in his ear */
.tx-heard { position: absolute; left: 22.4vw; top: 16vh; transform-origin: 0 0; width: min(510px, 34vw); padding: 20px 22px 18px; border-radius: 20px; color: var(--ink);
  background: rgba(12, 11, 10, .66); -webkit-backdrop-filter: blur(20px) saturate(1.2); backdrop-filter: blur(20px) saturate(1.2);
  box-shadow: inset 0 0 0 1px rgba(255, 248, 235, .14), 0 50px 110px -40px rgba(0, 0, 0, .9); }
.tx-heard header { display: flex; align-items: center; gap: 10px; padding-bottom: 12px; border-bottom: 1px solid rgba(255, 248, 235, .1); }
.tx-heard header b { font-size: var(--t-small); font-weight: var(--w-strong); color: var(--ink-title); }
.tx-heard header em { margin-left: auto; font-style: normal; font-size: var(--t-caption); color: var(--ink-3); }
.pods { display: inline-block; width: 11px; height: 17px; border-radius: 6px 6px 4px 4px; background: linear-gradient(#fbf8f1, #d9d4ca); box-shadow: 0 0 10px rgba(239, 220, 170, .45); }
.tx-heard ol, .tx-lines { list-style: none; margin: 0; padding: 0; }
.tx-heard li, .tx-lines li { display: grid; grid-template-columns: 2.9em 4.4em minmax(0, 1fr); column-gap: 8px; padding: 10px 0; border-bottom: 1px solid rgba(255, 248, 235, .06); font-size: var(--t-caption); }
.tx-heard li:last-child { border-bottom: 0; padding-bottom: 0; }
.tx-heard time, .tx-lines time { color: var(--ink-4); font-variant-numeric: tabular-nums; padding-top: 2px; }
.tx-heard li > b, .tx-lines li > b { font-weight: var(--w-strong); color: var(--ink-3); padding-top: 2px; }
.tx-heard q, .tx-lines q { display: block; quotes: none; font-family: var(--font-serif); font-size: 17px; line-height: 1.45; color: var(--ink-title); }
.tx-heard q:lang(ja), .tx-lines q:lang(ja) { font-family: var(--tx-ja); letter-spacing: .02em; word-break: auto-phrase; text-wrap: balance; }
.tx-heard i, .tx-lines i { display: block; margin-top: 3px; font-family: var(--font-serif); font-style: italic; font-size: var(--t-caption); color: var(--ink-3); }
.tx-heard li.v > b, .tx-lines li.v > b { color: var(--tx-gold); }
.tx-heard li.v q, .tx-lines li.v q { color: #efdcaa; }

/* 2 · Sheets: the lesson itself, wider, so her sheet reads */
.tx-sheet { background: #0b0b0a; }
.tx-sheet .stage { position: absolute; inset: 0; width: 100%; height: 100%; border-radius: inherit; box-shadow: none; }

/* 3 · Kelechi: tonight's ten minutes */
.tx-card { position: absolute; left: 22.4vw; top: 16vh; transform-origin: 0 0; width: min(440px, 30vw); padding: 22px 26px 18px; border-radius: 22px;
  background: rgba(13, 12, 11, .82); -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px); box-shadow: 0 0 0 1px rgba(255, 248, 235, .12), 0 50px 120px -40px rgba(0, 0, 0, .9); }
.tx-card .k { margin: 0; font-size: var(--t-label); font-weight: var(--w-strong); letter-spacing: var(--tr-label); text-transform: uppercase; color: var(--el); }
.tx-card .k::before { content: ""; display: inline-block; width: 7px; height: 7px; margin: 0 10px 1px 0; border-radius: 50%; background: var(--el); box-shadow: 0 0 12px rgba(213, 184, 120, .8); }
.tx-card h4 { margin: 12px 0 0; font-family: var(--font-display); font-weight: var(--w-regular); font-size: clamp(24px, .6vw + 16px, 32px); line-height: 1.1; color: #f6f1e7; }
.tx-card .sub { margin: 6px 0 0; font-size: var(--t-caption); color: var(--ink-3); }
.tx-card dl { margin: 16px 0 0; }
.tx-card dl div { display: grid; grid-template-columns: 6.6em minmax(0, 1fr); gap: 12px; padding: 8px 0; border-top: 1px solid rgba(255, 248, 235, .08); }
.tx-card dt { font-size: var(--t-caption); color: var(--ink-3); }
.tx-card dd { margin: 0; font-family: var(--font-serif); font-size: 16px; line-height: 1.45; color: var(--ink); }
.tx-card dd span { margin-left: 6px; font-family: var(--font-sans); font-size: var(--t-caption); color: var(--ink-3); font-variant-numeric: tabular-nums; }
.tx-card .src { margin: 10px 0 0; padding-top: 10px; border-top: 1px solid rgba(255, 248, 235, .08); font-size: var(--t-caption); color: var(--ink-3); }

/* 4 · Margaret's iPad: FaceTime as it is, in her larger text, and Vesper's overlay over it */
.tx-ipad { position: absolute; left: 22.4vw; top: 19vh; transform-origin: 0 0; height: 44vh; aspect-ratio: 1.43; padding: 1.1vh; border-radius: 3.4vh; background: #111113; container-type: inline-size;
  box-shadow: 0 0 0 1px rgba(255, 248, 235, .16), inset 0 0 0 1px rgba(255, 255, 255, .05), 0 60px 130px -40px rgba(0, 0, 0, .95), 0 18px 40px -16px rgba(0, 0, 0, .6); }
.ft { position: relative; width: 100%; height: 100%; overflow: hidden; border-radius: 2.4vh; background: #000; font-size: calc(100cqw / 46);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", Inter, sans-serif; color: #fff; -webkit-font-smoothing: antialiased; }
.ft-status { position: absolute; z-index: 1; left: 1.4em; right: 1.4em; top: .55em; display: flex; justify-content: space-between; font-size: .78em; font-weight: 600; }
.ft-sys { display: flex; gap: .5em; align-items: center; }
.ft-sys .wifi { width: 1.1em; height: .8em; background: #fff; -webkit-mask: radial-gradient(circle at 50% 100%, #000 .18em, transparent .2em, transparent .34em, #000 .36em, #000 .5em, transparent .52em, transparent .66em, #000 .68em, #000 .82em, transparent .84em) ; mask: radial-gradient(circle at 50% 100%, #000 .18em, transparent .2em, transparent .34em, #000 .36em, #000 .5em, transparent .52em, transparent .66em, #000 .68em, #000 .82em, transparent .84em); clip-path: polygon(0 0, 100% 0, 50% 100%); }
.ft-sys .batt { width: 1.7em; height: .8em; border-radius: .22em; box-shadow: inset 0 0 0 .08em rgba(255, 255, 255, .5); background: linear-gradient(90deg, #fff 70%, transparent 70%) .12em .12em / calc(100% - .24em) calc(100% - .24em) no-repeat; }
.ft-cam { position: absolute; inset: 0 0 0 20em; background: url(../images/teaches/margaret-ipad.jpg) 30% 40% / cover no-repeat; filter: blur(.9em) brightness(.72) saturate(1.1); transform: scale(1.12); }
.ft-side { position: absolute; left: 0; top: 0; bottom: 0; width: 20em; padding: 2.4em 1em 0; background: rgba(20, 20, 22, .97); box-shadow: 1px 0 0 rgba(255, 255, 255, .06); }
.ft-title { margin: 0 0 .5em .2em; font-size: 1.9em; font-weight: 700; letter-spacing: -.01em; }
.ft-btns { display: grid; grid-template-columns: 1fr 1fr; gap: .55em; }
.ft-btns span { display: flex; align-items: center; justify-content: center; height: 2.5em; border-radius: 1.25em; font-size: .92em; font-weight: 600; }
.ft-link { background: #2c2c2e; } .ft-new { background: #30a84f; }
.ft-sec { margin: 1.3em 0 .3em .2em; font-size: .95em; font-weight: 700; }
.ft-list { list-style: none; margin: 0; padding: 0; }
.ft-list li { position: relative; display: grid; grid-template-columns: 2.7em minmax(0, 1fr) auto 1.5em; align-items: center; column-gap: .65em; height: 3.7em; padding: 0 .4em; }
.ft-list li + li::before { content: ""; position: absolute; left: 3.7em; right: 0; top: 0; height: 1px; background: rgba(255, 255, 255, .1); }
.ft-list .av { width: 2.7em; height: 2.7em; border-radius: 50%; display: grid; place-items: center; font-style: normal; font-size: 1em; font-weight: 600; color: #fff;
  background: linear-gradient(#9da3ad, #6c727c); }
.ft-list .av.ph { background: url(../images/teaches/margaret-call.jpg) 50% 30% / 190% no-repeat; }
.ft-list b { display: block; font-size: 1.08em; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ft-list em { display: block; font-style: normal; font-size: .82em; color: #8e8e93; }
.ft-list time { font-size: .82em; color: #8e8e93; }
.ft-list .info { width: 1.3em; height: 1.3em; border-radius: 50%; box-shadow: inset 0 0 0 .09em #0a84ff; position: relative; }
.ft-list .info::after { content: "i"; position: absolute; inset: 0; display: grid; place-items: center; font: italic 600 .8em/1 Georgia, serif; color: #0a84ff; }
/* her overlay: the rest of the screen softly veiled, a hairline in the Clear look's clear-glass white around the one place to touch,
   its slow arc of light (本人 2026-11-29 「不要有金环了 都用通透那个环颜色」); her pointer rests on it (lib/lens.js, sections/teaches.js) */
.ft-target { z-index: 2; border-radius: .9em; }
.ft-target::after { content: ""; position: absolute; inset: -.2em -.25em; border-radius: 1em; pointer-events: none;
  box-shadow: 0 0 0 100em rgba(0, 0, 0, .34), inset 0 0 0 1.2px rgba(251, 252, 255, .9), 0 0 .9em .1em rgba(206, 230, 255, .26); }
.ft-target .arc { position: absolute; inset: -.2em -.25em; border-radius: 1em; padding: 1.6px; pointer-events: none; text-decoration: none;
  background: conic-gradient(from var(--tx-a, 0deg), transparent 0 76%, rgba(255, 255, 255, 0) 78%, #fff 88%, rgba(255, 255, 255, 0) 97%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  filter: drop-shadow(0 0 3px rgba(206, 230, 255, .95)); animation: tx-arc 5.2s linear infinite; }
.ft .ft-lens { z-index: 4; }
@property --tx-a { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
@keyframes tx-arc { to { --tx-a: 360deg; } }
.ft-orb { position: absolute; z-index: 3; left: 20.7em; top: 9.35em; width: 2.6em; height: 2.6em; }
.ft-orb .disc { position: absolute; inset: 0; border-radius: 50%; background: rgba(16, 15, 13, .5); -webkit-backdrop-filter: blur(6px) brightness(.82); backdrop-filter: blur(6px) brightness(.82); }
.ft-orbin { position: absolute; inset: 0; }
/* her Orb, small, as the note's own mark at the head of its step line: her sphere and light, no ring around her, the note's glass
   her ground (sections/teaches.js moves her there) */
.ft-note .meta .who, .tx-said .meta .who { display: inline-flex; align-items: center; gap: .7em; }
.ft-orb.mark { position: relative; left: auto; right: auto; top: auto; z-index: auto; flex: none; width: 2.2em; height: 2.2em; margin: -.55em 0 -.55em -.2em; }
.ft-orb.mark .disc { display: none; }
.ft-note, .tx-said { position: absolute; isolation: isolate; color: #fff; }
.ft-note { z-index: 3; left: 24.4em; top: 7.6em; width: 17em; padding: .95em 1.15em .9em; border-radius: 1.2em; }
.ft-note::before, .tx-said::before { content: ""; position: absolute; inset: 0; z-index: -2; border-radius: inherit;
  background: rgba(30, 28, 24, .72); -webkit-backdrop-filter: blur(14px) saturate(1.6) brightness(.92); backdrop-filter: blur(14px) saturate(1.6) brightness(.92);
  box-shadow: 0 0 0 .5px rgba(0, 0, 0, .25), 0 18px 46px -14px rgba(0, 0, 0, .5), 0 4px 14px -4px rgba(0, 0, 0, .28); }
.ft-note::after, .tx-said::after { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; padding: 1px; pointer-events: none;
  background: linear-gradient(166deg, rgba(255, 252, 244, .5) 0%, rgba(255, 252, 244, .18) 22%, rgba(255, 252, 244, .07) 55%, rgba(255, 252, 244, .16) 100%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0); }
.ft-note .meta, .tx-said .meta { display: flex; align-items: center; justify-content: space-between; margin: 0 0 .45em; font-size: .78em; letter-spacing: .02em; color: rgba(255, 250, 240, .62); }
.ft-note .dots, .tx-said .dots { display: flex; gap: .32em; }
.ft-note .dots i, .tx-said .dots i { width: .32em; height: .32em; border-radius: 50%; background: rgba(255, 250, 240, .22); }
.ft-note .dots i.on, .tx-said .dots i.on { background: #fbfcff; box-shadow: 0 0 6px rgba(206, 230, 255, .8); }
.ft-note .say, .tx-said .say { margin: 0; font-size: 1.02em; line-height: 1.45; text-wrap: pretty; text-shadow: 0 1px 2px rgba(0, 0, 0, .25); }

/* 5 · Grandma's recipe, as Vesper wrote it down: her words, and beside each what her hands really did */
.tx-recipe { position: absolute; left: 22.4vw; top: 16vh; transform-origin: 0 0; width: min(420px, 28vw); padding: 22px 26px 16px; border-radius: 6px; background: #f6f1e6; color: #2b2620; transform: rotate(-1deg);
  box-shadow: 0 0 0 1px rgba(255, 248, 235, .06), 0 50px 110px -46px rgba(0, 0, 0, .95), 0 2px 0 rgba(255, 255, 255, .5) inset; }
.tx-beat.show > .tx-recipe { transform: rotate(-1deg); }
.tx-recipe header { padding-bottom: 12px; border-bottom: 1px solid rgba(43, 38, 32, .14); }
.tx-recipe header b { display: block; font-family: var(--tx-zh); font-weight: 600; font-size: 26px; letter-spacing: .08em; color: #1f1c17; }
.tx-recipe header span { display: block; margin-top: 2px; font-family: var(--font-display); font-size: 20px; color: #5a5348; }
.tx-recipe ol { list-style: none; margin: 4px 0 0; padding: 0; counter-reset: s; }
.tx-recipe li { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 14px; padding: 10px 0; border-bottom: 1px solid rgba(43, 38, 32, .08); }
.tx-recipe q { grid-column: 1; quotes: none; font-family: var(--tx-zh); font-size: 18px; line-height: 1.35; color: #1f1c17; }
.tx-recipe i { grid-column: 1; font-family: var(--font-serif); font-size: 15px; line-height: 1.35; color: #6a6357; }
.tx-recipe em { grid-column: 2; grid-row: 1 / span 2; align-self: center; font-style: normal; font-size: 13.5px; font-variant-numeric: tabular-nums; color: #8a6a2c; text-align: right; white-space: nowrap; }
.tx-recipe footer { margin-top: 10px; font-size: 12.5px; letter-spacing: .02em; color: #8a7c62; }

/* … nine winters later: her words, in her overlay's glass */
.tx-said { left: 23vw; top: 23vh; transform-origin: 0 0; width: min(480px, 27vw); padding: 18px 22px 18px; border-radius: 20px; font-size: 17px; }
.tx-said .say { font-size: var(--t-body); line-height: 1.5; }
.tx-said .say span { font-family: var(--tx-zh); white-space: nowrap; }
.tx-said .ft-orb.mark { width: 2.1em; height: 2.1em; }

/* the line after the scene */
.tx-coda { margin: 16vh auto 0; padding: 0 var(--edge); max-width: calc(22em + 2 * var(--edge)); text-align: center; }
.tx-coda::before { margin-left: auto; margin-right: auto; }

/* ——— a closer look: one dialog, its own scroll */
.tx-dive { position: fixed; inset: 0; z-index: 90; display: grid; place-items: center; padding: 3vh 24px; background: rgba(5, 5, 6, .8);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); opacity: 0; transition: opacity .42s ease; }
.tx-dive[hidden] { display: none; }
.tx-dive.on { opacity: 1; }
.tx-box { position: relative; display: flex; width: min(1140px, 100%); max-height: 94vh; max-height: 94svh; border-radius: 28px; overflow: hidden; background: #0f0e0d; color: var(--ink);
  box-shadow: 0 0 0 1px rgba(255, 248, 235, .12), 0 80px 160px -60px rgba(0, 0, 0, .95); transform: translateY(16px) scale(.985); transition: transform .5s cubic-bezier(.2, .7, .2, 1); }
.tx-dive.on .tx-box { transform: none; }
.tx-box:focus { outline: none; }
.tx-sc { flex: 1; min-width: 0; overflow-y: auto; overscroll-behavior: contain; padding: 64px clamp(26px, 5.4vw, 84px) 76px; outline: none; scrollbar-width: thin; scrollbar-color: rgba(255, 248, 235, .2) transparent; }
.tx-x { position: absolute; z-index: 2; right: 18px; top: 18px; width: 42px; height: 42px; padding: 0; border: 0; border-radius: 50%; cursor: pointer; color: var(--ink-2);
  background: rgba(15, 14, 13, .7); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); box-shadow: inset 0 0 0 1px var(--rim); transition: color .3s, box-shadow .3s; }
.tx-x::before, .tx-x::after { content: ""; position: absolute; left: 50%; top: 50%; width: 14px; height: 1px; margin: -.5px 0 0 -7px; background: currentColor; transform: rotate(45deg); }
.tx-x::after { transform: rotate(-45deg); }
.tx-x:hover { color: var(--ink-title); box-shadow: inset 0 0 0 1px var(--rim-hot); }
.tx-x:focus-visible { outline: none; box-shadow: inset 0 0 0 1px var(--tx-gold), 0 0 0 3px rgba(226, 194, 126, .2); }
html.tx-open { overflow: hidden; }
.tx-panel[hidden] { display: none; }
.tx-ph { max-width: 46em; padding-bottom: 40px; }
.tx-ph .eyebrow { margin-bottom: 18px; }
.tx-ph h2 { font-family: var(--font-display); font-weight: var(--w-regular); font-size: clamp(34px, 1.7vw + 14px, 58px); line-height: 1.04; letter-spacing: -.006em; color: var(--ink-title); }
.tx-ph .lede { margin-top: 20px; max-width: 38em; }
.tx-row { display: grid; grid-template-columns: 13em minmax(0, 1fr); column-gap: 40px; padding: 34px 0 36px; border-top: 1px solid rgba(255, 248, 235, .08); }
.tx-row.wide { grid-template-columns: minmax(0, 1fr); }
.tx-row > .tx-cap, .tx-row > .tx-end { grid-column: 2; }
.tx-k { margin: 4px 0 18px; font-family: var(--font-sans); font-size: var(--t-label); line-height: 1.5; font-weight: var(--w-strong); letter-spacing: var(--tr-label); text-transform: uppercase; color: var(--el); }
.tx-p { margin: 0; max-width: 40em; font-size: var(--t-body); line-height: 1.62; color: var(--ink-2); text-wrap: pretty; }
.tx-cap { margin: 14px 0 0; font-size: var(--t-small); color: var(--ink-3); }
.tx-end { margin: 30px 0 0; font-family: var(--font-serif); font-style: italic; font-size: clamp(20px, .5vw + 14px, 26px); line-height: 1.45; color: var(--ink-title); text-wrap: balance; }
.tx-end::before { content: ""; display: block; width: 36px; height: 1px; margin-bottom: 18px; background: var(--el); opacity: .7; }
.tx-row :lang(ja) { font-family: var(--tx-ja); letter-spacing: .02em; word-break: auto-phrase; text-wrap: balance; }
.tx-row :lang(zh) { font-family: var(--tx-zh); }

.tx-two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 30px; }
.tx-who b { display: block; font-family: var(--font-display); font-weight: var(--w-regular); font-size: 28px; color: var(--ink-title); }
.tx-who p { margin: 8px 0 0; font-size: var(--t-body); line-height: 1.6; color: var(--ink-2); }
.tx-lessons { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.tx-lesson { padding: 20px 20px 18px; border-radius: 18px; background: linear-gradient(rgba(255, 248, 235, .04), rgba(255, 248, 235, .015)); box-shadow: inset 0 0 0 1px rgba(255, 248, 235, .1); }
.tx-lesson .when { margin: 0 0 14px; font-size: var(--t-caption); color: var(--el-ink); }
.tx-lesson .ja { margin: 0; font-size: 19px; line-height: 1.55; color: var(--ink-title); }
.tx-lesson .ja.s { margin-top: 14px; padding-top: 14px; border-top: 1px solid rgba(255, 248, 235, .08); }
.tx-lesson .en { margin: 6px 0 0; font-family: var(--font-serif); font-style: italic; font-size: 16px; line-height: 1.45; color: var(--ink-2); }
.tx-lesson .note { margin: 14px 0 0; padding-top: 14px; border-top: 1px solid rgba(255, 248, 235, .08); font-size: var(--t-small); line-height: 1.5; color: var(--ink-3); }
.tx-lesson .note span { color: var(--ink-title); font-size: 18px; }
.tx-teachers { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px 34px; }
.tx-teachers li { position: relative; padding-left: 52px; }
.tx-teachers img { position: absolute; left: 0; top: 0; width: 36px; height: 36px; border-radius: 50%; box-shadow: 0 0 0 1px rgba(255, 248, 235, .14); }
.tx-teachers li:has(.tx-badge) { padding-left: 0; }
.tx-badge { display: inline-block; margin-bottom: 10px; padding: 4px 10px; border-radius: 999px; font-size: 12px; letter-spacing: .05em; color: var(--ink-2); box-shadow: inset 0 0 0 1px rgba(255, 248, 235, .18); font-variant-numeric: tabular-nums; }
.tx-badge.v { color: var(--tx-gold); box-shadow: inset 0 0 0 1px rgba(226, 194, 126, .45); }
.tx-teachers b { display: block; font-size: var(--t-body); font-weight: var(--w-strong); color: var(--ink-title); }
.tx-teachers p { margin: 6px 0 0; font-size: var(--t-small); line-height: 1.55; color: var(--ink-2); }

.tx-week { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 8px; }
.tx-week > div { display: flex; flex-direction: column; gap: 6px; min-height: 9.5em; padding: 12px 10px; border-radius: 14px; box-shadow: inset 0 0 0 1px rgba(255, 248, 235, .08); }
.tx-week > div.off { box-shadow: inset 0 0 0 1px rgba(255, 248, 235, .04); }
.tx-week b { font-size: var(--t-label); font-weight: var(--w-strong); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); }
.tx-week span { font-size: 13.5px; line-height: 1.4; color: var(--ink-2); }
.tx-week em { display: block; font-style: normal; font-size: 12px; color: var(--ink-4); font-variant-numeric: tabular-nums; }
.tx-week span.s { padding: 6px 8px; border-radius: 9px; background: rgba(226, 194, 126, .1); color: var(--ink); }
.tx-week span.a { padding: 6px 8px; border-radius: 9px; background: rgba(168, 183, 147, .14); color: var(--ink); }
.tx-week span.t { padding: 6px 8px; border-radius: 9px; background: rgba(226, 194, 126, .16); box-shadow: inset 0 0 0 1px rgba(226, 194, 126, .4); color: var(--ink-title); }
.tx-week .off span { color: var(--ink-4); }

.tx-curve .ja { margin: 0 0 22px; font-size: 22px; color: var(--ink-title); }
.tx-curve ol { position: relative; list-style: none; margin: 0; padding: 22px 0 0; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; }
.tx-curve ol::before { content: ""; position: absolute; left: 4px; right: calc(100% / 6 - 4px); top: 4px; height: 1px; background: linear-gradient(90deg, rgba(226, 194, 126, .7), rgba(226, 194, 126, .35)); }
.tx-curve li { position: relative; font-size: var(--t-caption); line-height: 1.4; color: var(--ink-3); }
.tx-curve li::before { content: ""; position: absolute; left: 0; top: -22px; width: 9px; height: 9px; border-radius: 50%; background: var(--tx-gold); box-shadow: 0 0 8px rgba(226, 194, 126, .6); }
.tx-curve li b { display: block; margin-bottom: 2px; font-weight: var(--w-strong); color: var(--ink-title); font-variant-numeric: tabular-nums; }
.tx-curve li.last::before { box-shadow: 0 0 0 4px rgba(226, 194, 126, .18), 0 0 12px rgba(226, 194, 126, .8); }

.tx-scene-pic { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 30px; align-items: start; }
.tx-scene-pic > img { display: block; width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 16px; box-shadow: 0 0 0 1px rgba(255, 248, 235, .08); }
.tx-lines li:first-child { padding-top: 0; }
.tx-lines q { font-size: 16.5px; }

.tx-path { list-style: none; margin: 0; padding: 0; }
.tx-path li { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 20px; padding: 0 0 22px 30px; }
.tx-path li::before { content: ""; position: absolute; left: 0; top: 6px; width: 11px; height: 11px; border-radius: 50%; background: var(--tx-gold); box-shadow: 0 0 8px rgba(226, 194, 126, .55); }
.tx-path li::after { content: ""; position: absolute; left: 5px; top: 20px; bottom: 2px; width: 1px; background: rgba(226, 194, 126, .3); }
.tx-path li:last-child::after { display: none; }
.tx-path li.next::before { background: none; box-shadow: inset 0 0 0 1px var(--tx-gold); }
.tx-path b { font-size: var(--t-body); font-weight: var(--w-strong); color: var(--ink-title); }
.tx-path span { grid-column: 1; font-size: var(--t-small); line-height: 1.5; color: var(--ink-2); }
.tx-path em { grid-column: 2; grid-row: 1; font-style: normal; font-size: var(--t-caption); color: var(--ink-3); }
.tx-path .next em { color: var(--tx-gold); }
.tx-path code { font-family: "SF Mono", ui-monospace, Menlo, monospace; font-size: .92em; color: var(--el-ink); }
.tx-made { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .9fr); gap: 30px; align-items: center; }
.tx-chart { margin: 0; padding: 18px 20px 14px; border-radius: 14px; background: #fff; box-shadow: 0 0 0 1px rgba(255, 248, 235, .1), 0 30px 70px -40px rgba(0, 0, 0, .9); }
.tx-chart figcaption b { display: block; font: 500 15px/1.3 Roboto, "Helvetica Neue", Arial, sans-serif; color: #1f1f1f; }
.tx-chart figcaption span { display: block; margin-top: 2px; font: 12.5px/1.3 Roboto, "Helvetica Neue", Arial, sans-serif; color: #5f6368; }
.tx-chart svg { display: block; width: 100%; height: auto; margin-top: 10px; }

.tx-nights { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; }
.tx-nights > div { padding: 14px 14px 16px; border-radius: 14px; box-shadow: inset 0 0 0 1px rgba(255, 248, 235, .1); }
.tx-nights > div.off { box-shadow: inset 0 0 0 1px rgba(255, 248, 235, .04); }
.tx-nights b { display: block; font-size: var(--t-label); font-weight: var(--w-strong); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); }
.tx-nights q { display: block; margin-top: 10px; quotes: "“" "”"; font-family: var(--font-serif); font-size: 16.5px; line-height: 1.4; color: var(--ink-title); }
.tx-nights .off q { quotes: none; color: var(--ink-4); }
.tx-nights span { display: block; margin-top: 10px; font-size: 13px; line-height: 1.45; color: var(--ink-3); }
.tx-nights em { display: block; margin-top: 10px; padding-top: 10px; border-top: 1px solid rgba(255, 248, 235, .08); font-family: var(--font-serif); font-size: 15px; line-height: 1.45; color: var(--el-ink); }
.tx-sunday { max-width: 640px; padding: 28px 32px 26px; border-radius: 6px; background: #f6f1e6; color: #2b2620; display: grid; grid-template-columns: 1fr 1fr; gap: 20px 30px;
  box-shadow: 0 0 0 1px rgba(255, 248, 235, .06), 0 50px 110px -46px rgba(0, 0, 0, .95); }
.tx-sunday header { grid-column: 1 / -1; padding-bottom: 14px; border-bottom: 1px solid rgba(43, 38, 32, .14); }
.tx-sunday header b { display: block; font-family: var(--font-display); font-weight: var(--w-strong); font-size: 30px; line-height: 1.05; color: #1f1c17; }
.tx-sunday header span { display: block; margin-top: 4px; font-size: 13px; color: #8a7c62; }
.tx-sunday > div:first-of-type { grid-column: 1 / -1; }
.tx-sunday h4 { margin: 0 0 6px; font-size: 11.5px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: #8a6a2c; }
.tx-sunday ul { margin: 0; padding: 0 0 0 1.1em; }
.tx-sunday li, .tx-sunday p { margin: 0; font-family: var(--font-serif); font-size: 16.5px; line-height: 1.5; color: #35302a; }
.tx-sunday .q { font-style: italic; }

.tx-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.tx-steps figure { margin: 0; }
.tx-steps figcaption { margin-top: 12px; font-family: var(--font-serif); font-size: 17px; line-height: 1.45; color: var(--ink-title); }
.tx-steps figcaption b { display: inline-grid; place-items: center; width: 22px; height: 22px; margin-right: 10px; border-radius: 50%; font-family: var(--font-sans); font-size: 12px; font-weight: 600; color: rgba(244, 247, 252, .92); box-shadow: inset 0 0 0 1px rgba(244, 247, 252, .55); vertical-align: 2px; }
.mini { position: relative; min-height: 0; aspect-ratio: 1.43; border-radius: 12px; overflow: hidden; background: #000; box-shadow: 0 0 0 6px #111113, 0 0 0 7px rgba(255, 248, 235, .14), 0 30px 70px -30px rgba(0, 0, 0, .9); margin: 7px; }
/* her first step, on her own Home Screen: the green one, that says FaceTime */
.mini.hs { background: radial-gradient(130% 100% at 20% 0%, #71849a, #2c3546 55%, #141821); }
.hs-g { position: absolute; inset: 12% 10% 10%; display: grid; grid-template-columns: repeat(4, 1fr); row-gap: 6cqw; justify-items: center; align-content: center; }
.hs-i { display: flex; flex-direction: column; align-items: center; gap: 1.8cqw; font: 500 3.2cqw/1 -apple-system, BlinkMacSystemFont, "SF Pro Text", Inter, sans-serif; color: rgba(255, 255, 255, .92); text-shadow: 0 1px 2px rgba(0, 0, 0, .4); }
.hs-i b { position: relative; display: grid; place-items: center; width: 12.5cqw; aspect-ratio: 1; border-radius: 26%; box-shadow: 0 1px 3px rgba(0, 0, 0, .3); }
.hs-i b::before, .hs-i b::after { content: ""; position: absolute; }
.ftm b { background: linear-gradient(#6be38d, #29ae4d); }
.ftm b::before { left: 23%; top: 33%; width: 38%; height: 34%; border-radius: 1cqw; background: #fff; }
.ftm b::after { left: 60%; top: 36%; width: 18%; height: 28%; background: #fff; clip-path: polygon(0 35%, 100% 0, 100% 100%, 0 65%); }
.pho b { background: #fff; }
.pho b::before { inset: 16%; border-radius: 50%; background: conic-gradient(#f7a341, #f2566d, #b85ad8, #4f8ff7, #3fc7a0, #cfd94a, #f7a341);
  -webkit-mask: radial-gradient(circle, transparent 24%, #000 26%); mask: radial-gradient(circle, transparent 24%, #000 26%); }
.mai b { background: linear-gradient(#61bcff, #1b78ee); }
.mai b::before { left: 22%; top: 30%; width: 56%; height: 40%; border-radius: 1cqw; background: #fff; }
.mai b::after { left: 22%; top: 30%; width: 56%; height: 24%; background: linear-gradient(to top right, transparent calc(50% - 1px), #1b78ee calc(50% - 1px) calc(50% + 1px), transparent calc(50% + 1px)) left / 50% 100% no-repeat,
  linear-gradient(to top left, transparent calc(50% - 1px), #1b78ee calc(50% - 1px) calc(50% + 1px), transparent calc(50% + 1px)) right / 50% 100% no-repeat; }
.cal b { background: #fff; color: #1c1c1e; align-content: center; gap: 0; font-size: 5.6cqw; font-weight: 300; line-height: 1; text-shadow: none; }
.cal b em { font-style: normal; font-size: 2cqw; font-weight: 600; letter-spacing: .04em; color: #f2453d; }
.clo b { background: #111; }
.clo b::before { inset: 10%; border-radius: 50%; background: #fbfbfb; }
.clo b::after { left: calc(50% - .3cqw); top: 24%; width: .6cqw; height: 27%; border-radius: .3cqw; background: #111; transform-origin: 50% 100%; transform: rotate(40deg); box-shadow: 0 0 0 0 #111; }
.wea b { background: linear-gradient(#4ba6ff, #1d6bd6); }
.wea b::before { left: 22%; top: 22%; width: 32%; aspect-ratio: 1; border-radius: 50%; background: #ffd23c; }
.wea b::after { left: 30%; top: 46%; width: 48%; height: 26%; border-radius: 3cqw; background: #fff; }
.not b { background: linear-gradient(#ffd33d 0 24%, #fff 24%); }
.not b::before { left: 16%; right: 16%; top: 38%; height: 44%; background: repeating-linear-gradient(#d6d6d6 0 1px, transparent 1px 22%); }
.set b { background: linear-gradient(#b1b4ba, #6e727a); }
.set b::before { inset: 14%; border-radius: 50%; background: radial-gradient(circle, #7a7e86 26%, #ececef 28% 50%, transparent 52%), repeating-conic-gradient(#ececef 0 14deg, transparent 14deg 30deg);
  -webkit-mask: radial-gradient(circle, #000 68%, transparent 70%); mask: radial-gradient(circle, #000 68%, transparent 70%); }
.hs-i s { position: absolute; inset: -1.6cqw; border-radius: 30%; box-shadow: 0 0 0 1.2px rgba(251, 252, 255, .9), 0 0 0 100em rgba(0, 0, 0, .34), 0 0 10px 2px rgba(206, 230, 255, .32); }
.mini.hs .hs-i.ftm { position: relative; z-index: 1; }
/* her second step: her own FaceTime, as on the iPad above */
.mini { container-type: inline-size; }
.mini .ft { border-radius: 0; }
/* (the closer look's copy of the iPad mounts her real Orb in its note too: sections/teaches.js) */
.mini.vcall img { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: cover; }
.mini .pip { position: absolute; right: 5%; bottom: 7%; width: 22%; aspect-ratio: 3 / 4; border-radius: 6px; background: url(../images/teaches/margaret-ipad.jpg) 62% 32% / 300% no-repeat; box-shadow: 0 0 0 1px rgba(255, 255, 255, .3); }
.tx-log { list-style: none; margin: 0; padding: 26px 0 0; display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 10px; position: relative; }
.tx-log::before { content: ""; position: absolute; left: 5px; right: calc(100% / 8 - 5px); top: 31px; height: 1px; background: rgba(255, 248, 235, .14); }
.tx-log li { position: relative; padding-top: 22px; font-size: 13px; line-height: 1.4; color: var(--ink-3); }
.tx-log li::before { content: ""; position: absolute; left: 0; top: 0; width: 11px; height: 11px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(244, 247, 252, .7); background: #0f0e0d; }
.tx-log li.both::before { background: var(--tx-gold); box-shadow: 0 0 8px rgba(226, 194, 126, .5); }
.tx-log li.one::before { background: linear-gradient(90deg, var(--tx-gold) 50%, #0f0e0d 50%); }
.tx-log li.alone::before { box-shadow: inset 0 0 0 1px var(--tx-gold), 0 0 0 4px rgba(226, 194, 126, .16); }
.tx-log li b { display: block; margin-bottom: 2px; font-weight: var(--w-strong); color: var(--ink-2); font-variant-numeric: tabular-nums; }
.tx-log li.alone { color: var(--ink-title); } .tx-log li.alone b { color: var(--tx-gold); }

.tx-paper { position: relative; padding: 40px clamp(24px, 4vw, 56px) 34px; border-radius: 6px; background: #f6f1e6; color: #2b2620;
  box-shadow: 0 0 0 1px rgba(255, 248, 235, .06), 0 60px 120px -50px rgba(0, 0, 0, .95), 0 2px 0 rgba(255, 255, 255, .5) inset; }
.tx-paper header { padding-bottom: 18px; border-bottom: 1px solid rgba(43, 38, 32, .16); }
.tx-paper header b { display: block; font-weight: 600; font-size: 34px; letter-spacing: .1em; color: #1f1c17; }
.tx-paper header .t { display: block; margin-top: 4px; font-family: var(--font-display); font-size: 28px; color: #3d372f; }
.tx-paper header .m { display: block; margin-top: 8px; font-size: 13.5px; line-height: 1.5; color: #8a7c62; }
.tx-ing { list-style: none; margin: 18px 0 0; padding: 0 0 18px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px 30px; border-bottom: 1px solid rgba(43, 38, 32, .1); }
.tx-ing li { display: grid; grid-template-columns: 11em minmax(0, 1fr); column-gap: 12px; font-size: 14.5px; line-height: 1.45; color: #5a5348; }
.tx-ing b { font-weight: 600; color: #2b2620; }
.tx-steps-zh { list-style: none; margin: 0; padding: 0; counter-reset: st; }
.tx-steps-zh li { counter-increment: st; display: grid; grid-template-columns: 2em minmax(0, 1fr) minmax(0, 15em); column-gap: 18px; padding: 16px 0; border-bottom: 1px solid rgba(43, 38, 32, .08); }
.tx-steps-zh li::before { content: counter(st); grid-row: 1 / span 2; font-family: var(--font-display); font-size: 24px; line-height: 1; color: #b48a45; }
.tx-steps-zh q { grid-column: 2; quotes: none; font-size: 21px; line-height: 1.4; color: #1f1c17; }
.tx-steps-zh i { grid-column: 2; font-family: var(--font-serif); font-size: 16.5px; line-height: 1.45; color: #5a5348; }
.tx-steps-zh em { grid-column: 3; grid-row: 1 / span 2; align-self: center; font-style: normal; font-size: 14px; line-height: 1.45; color: #8a6a2c; font-variant-numeric: tabular-nums; }
.tx-aside { margin-top: 24px; padding: 4px 0 4px 18px; border-left: 2px solid rgba(180, 138, 69, .6); }
.tx-aside q { display: block; quotes: none; font-size: 20px; color: #1f1c17; }
.tx-aside span { display: block; margin-top: 6px; font-family: var(--font-serif); font-style: italic; font-size: 16px; line-height: 1.5; color: #5a5348; }

@media (prefers-reduced-motion: reduce) {
  .tx-beat > *, .tx-frame > i { transition: opacity .2s ease; transform: none !important; }
  .ft-target .arc { animation: none; }
  .tx-dive, .tx-box { transition: none; }
}

/* a narrower desktop: the results stay clear of the words */
@media (min-width: 761px) and (max-width: 1180px) {
  .tx-words { width: calc(34vw - var(--edge)); }
  .tx-words h3 { font-size: 26px; }
  .tx-heard, .tx-card, .tx-recipe, .tx-said { left: 37vw; }
  .tx-ipad { left: 37vw; height: 36vh; }
  .tx-index { top: 15vh; }
}

/* ——— a phone: one column, every result in turn */
@media (max-width: 760px) {
  .teaches { padding-top: 14vh; }
  .tx-scene { height: auto; margin-top: 6vh; }
  .tx-pin { position: static; height: auto; overflow: visible; padding: 0 var(--gutter); }
  .tx-index { display: none; }
  .tx-beat { position: relative; inset: auto; visibility: visible; pointer-events: auto; display: flex; flex-direction: column; gap: 18px; margin-bottom: 72px; }
  .tx-beat > *, .tx-beat > :not(.tx-frame) { opacity: 1; transform: none; }
  .tx-beat .tx-words { order: -1; }
  .tx-frame, .tx-b2 .tx-frame { position: relative; left: auto; right: auto; top: auto; bottom: auto; aspect-ratio: 4 / 3; border-radius: 16px; }
  .tx-sheet { aspect-ratio: auto !important; overflow: visible; background: none; box-shadow: none; }
  .tx-sheet .stage { position: relative; inset: auto; aspect-ratio: 3 / 2; height: auto; }
  .tx-words, .tx-b2 .tx-words { position: static; width: auto; }
  .tx-words h3 { font-size: 30px; }
  .tx-phone { position: relative; left: auto; top: auto; height: auto; width: min(260px, 70%); margin: -38% auto 0; }
  .tx-heard, .tx-card, .tx-recipe, .tx-said, .tx-ipad { position: relative; left: auto; top: auto; width: auto; margin-top: -60px; margin-left: 10px; margin-right: 10px; }
  .tx-ipad { height: auto; width: auto; }
  .tx-recipe, .tx-beat.show > .tx-recipe { transform: none; }
  .tx-beat > * { scale: none !important; }
  
  .tx-coda { margin-top: 4vh; }
  .tx-dive { padding: 0; }
  .tx-box { width: 100%; max-height: none; height: 100%; border-radius: 0; }
  .tx-sc { padding: calc(64px + env(safe-area-inset-top, 0px)) 20px 56px; }
  .tx-row { grid-template-columns: minmax(0, 1fr); padding: 26px 0 28px; }
  .tx-two, .tx-lessons, .tx-teachers, .tx-scene-pic, .tx-made, .tx-steps { grid-template-columns: minmax(0, 1fr); }
  .tx-week { grid-template-columns: minmax(0, 1fr); }
  .tx-week > div { min-height: 0; flex-direction: row; flex-wrap: wrap; align-items: baseline; }
  .tx-week b { width: 3.2em; }
  .tx-curve ol, .tx-log { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 22px; }
  .tx-curve ol::before, .tx-log::before { display: none; }
  .tx-nights { grid-template-columns: minmax(0, 1fr); }
  .tx-sunday { grid-template-columns: minmax(0, 1fr); padding: 22px 20px; }
  .tx-steps-zh li { grid-template-columns: 1.6em minmax(0, 1fr); }
  .tx-steps-zh em { grid-column: 2; grid-row: auto; margin-top: 6px; }
  .tx-ing { grid-template-columns: minmax(0, 1fr); }
}
.tx-chart svg text { font-family: Roboto, "Helvetica Neue", Arial, sans-serif; }

@media (max-width: 760px) { .tx-row > .tx-cap, .tx-row > .tx-end { grid-column: 1; } }
