/* =====================================================================
   Arena — riso-theme.css  (design system layer, loaded after styles.css
   on EVERY page). All riso-print styling lives here; see DESIGN.md.
   ===================================================================== */
:root {
  --ink:        #0B1A4A;   /* navy ink (primary) */
  --ink-2:      #2F55A8;   /* bright blue ink (second drum) */
  --paper-hi:   #FCF3ED;   /* clean paper: hero, seal disc */
  --riso-tint:  url(/art/riso-tint.png);   /* 2x tile, 256 css px, same screen as the hero */
  --riso-dots:  url(/art/riso-hl.png);     /* marker halftone, 6 css px */
}

/* ---------- 1. Paper ------------------------------------------------
   Light beige surfaces carry a faint two-ink halftone tint (same angle and
   pitch as the hero print). Darker beige surfaces and cards stay clean.   */
body, .partners { background-image: var(--riso-tint); background-size: 256px 256px; }

/* ---------- 2. Heroes ----------------------------------------------- */
.hero-full .hero-scrim { display: none; }
.hero-full { background: var(--paper-hi); }
.hero-full .hero-seal { border-radius: 50%; background: var(--paper-hi); box-shadow: 0 0 0 10px var(--paper-hi), 0 8px 30px rgba(11,26,74,.10); }
/* inner pages: a still riso print behind the title (data-riso-field="static") */
.hero, .curr-hero { position: relative; overflow: hidden; }
.hero > .container, .curr-hero > .container { position: relative; z-index: 2; }
.hero > .hero-bg, .curr-hero > .hero-bg { position: absolute; inset: 0; z-index: 0; }

/* ---------- 3. Titles: firm ink so they read over print ---------------- */
.hero-riso-h1, .hero:not(.zl-hero) h1, .curr-hero h1 { font-weight: 500; color: var(--ink); letter-spacing: -0.028em; }
.hero-riso-h1 em, .hero:not(.zl-hero) h1 em, .curr-hero h1 em { font-weight: 500; color: var(--ink-2); }
.hero:not(.zl-hero) .lede, .hero:not(.zl-hero) .sub, .curr-hero .thesis, .hero-riso-copy .lede { color: #26304F; }

/* ---------- 4. Eyebrow labels: a solid ink chip with a riso misregistration --- */
.eyebrow { color: var(--paper-hi); background: var(--ink); font-weight: 600; padding: .5em .85em .45em; border-radius: 2px;
  box-shadow: 2px 2px 0 var(--ink-2); line-height: 1.2; gap: 8px; }
.eyebrow::before { width: 6px; height: 6px; border-radius: 50%; background: var(--ink-2); box-shadow: 0 0 0 1.5px var(--paper-hi); }
.dark-band .eyebrow, .footer .eyebrow, [class*="dark"] .eyebrow { color: var(--ink); background: var(--paper-hi); box-shadow: 2px 2px 0 var(--ink-2); }

/* ---------- 5. Keywords (.rh): blue ink + halftone marker that prints in ---- */
.rh { position: relative; z-index: 0; white-space: nowrap; font-style: italic; font-weight: 600; color: var(--ink-2); padding: 0 .06em;
  transition: color .5s ease var(--rh-d, .6s); }
.rh::after { content: ""; position: absolute; left: -.04em; right: -.04em; bottom: .02em; height: .42em; z-index: -1;
  background: var(--riso-dots) 0 0 / 6px 6px repeat; clip-path: inset(0 0 0 0);
  transition: clip-path .75s cubic-bezier(.65,.05,.25,1) var(--rh-d, .6s); }
h1 .rh, .hero-riso-h1 .rh { font-weight: 500; }
h1 .rh::after, .hero-riso-h1 .rh::after { height: .34em; bottom: .06em; }
/* staggered print-in when the text block is revealed */
.rh:nth-of-type(1) { --rh-d: .55s; } .rh:nth-of-type(2) { --rh-d: .75s; } .rh:nth-of-type(3) { --rh-d: .95s; }
.rh:nth-of-type(4) { --rh-d: 1.15s; } .rh:nth-of-type(5) { --rh-d: 1.35s; }
.reveal:not(.in) .rh, .reveal:not(.in).rh { color: inherit; }
.reveal:not(.in) .rh::after, .reveal:not(.in).rh::after { clip-path: inset(0 100% 0 0); }
/* hover: the marker re-prints */
@keyframes rh-reprint { 0% { clip-path: inset(0 100% 0 0); } 100% { clip-path: inset(0 0 0 0); } }
.rh:hover::after { animation: rh-reprint .6s cubic-bezier(.65,.05,.25,1); }
@media (prefers-reduced-motion: reduce) {
  .rh, .rh::after { transition: none !important; animation: none !important; clip-path: none !important; }
}

/* eyebrow chips never collapse to a block (fixes the dot sitting on top of the text) */
.eyebrow { display: inline-flex !important; align-items: center; width: max-content !important; max-width: 100%; justify-self: start; align-self: start; }
.eyebrow::before { flex: none; }

/* ---------- 6. Contact promises: three readable ink-checked items ---------- */
.partners-trust { list-style: none; padding: 0; margin: 28px 0 0; display: flex; flex-wrap: wrap; gap: 10px;
  font-family: var(--font-body); font-size: 15px; letter-spacing: 0; text-transform: none; color: var(--ink); }
.partners-trust .pt-item { display: inline-flex; align-items: center; gap: 9px; padding: 9px 14px 9px 11px; font-weight: 600;
  background: var(--paper-hi); border: 1.5px solid var(--ink); border-radius: 999px; box-shadow: 2px 2px 0 var(--ink-2); }
.partners-trust .pt-item::before { content: ""; width: 16px; height: 16px; border-radius: 50%; flex: none;
  background: var(--ink-2) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.2 8.3l2.4 2.4 5-5.2' fill='none' stroke='%23FCF3ED' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 16px no-repeat; }

/* ---------- 7. Quiet paper behind graphics and forms ----------
   The riso tint is decoration; wherever the reader has to parse something
   (timelines, steps, stats, cards, forms), the paper is plain beige.     */
.partners,
section:has(.timeline, .structure-row, .fp-ladder, .fp-rhythm, .fp-triptych, .cascade-list, .glance-grid, .stat-bar,
  .zl-stat-grid, .artifact-grid, .zl-card, .zl-career-grid, .way-list, .humans-grid, .tm-grid, .cohort-form, .principle) {
  background-color: var(--bg-paper); background-image: none;
}
section.section-alt:has(*), section.founder-strip, section.proof-strip { background-image: none; }

/* ---------- 8. Cards pop: lift + riso misregistration ---------- */
.zl-card, .tile, .glance-card, .fp-trip-card, .zl-career, .prog-card, .proof-link, .tm-card, .zl-stat, .stat {
  transition: transform .35s cubic-bezier(.2,.7,.2,1), box-shadow .35s ease, border-color .35s ease; }
.zl-card:hover, .tile:hover, .glance-card:hover, .fp-trip-card:hover, .zl-career:hover, .prog-card:hover,
.proof-link:hover, .tm-card:hover, .zl-stat:hover {
  transform: translateY(-6px); border-color: var(--ink) !important; box-shadow: 5px 5px 0 var(--ink-2), 0 18px 34px -18px rgba(11,26,74,.35) !important; }
.stat:hover { transform: translateY(-4px); }
.stat:hover .num { color: var(--ink-2); }
.way-row { transition: transform .3s ease, background-color .3s ease; }
.way-row:hover { transform: translateX(6px); }

/* ---------- 9. Explorable sequences (riso-interact.js): quiet motion ---------- */
.rx-hint { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 18px; font: 600 12px/1.3 var(--font-mono); letter-spacing: .06em;
  text-transform: uppercase; color: var(--ink-2); }
.rx-hint::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--ink-2); }
.rx-item { cursor: pointer; outline: none; transition: opacity .3s ease, color .3s ease; }
.rx-group.has-active .rx-item:not(.is-active) { opacity: .62; }
.rx-item:focus-visible { box-shadow: 0 0 0 2px var(--paper-hi), 0 0 0 4px var(--ink-2); border-radius: 6px; }
.rx-steps-box .rx-item.is-active .rtitle, .rx-mode-inline .rx-item.is-active .cr-name { color: var(--ink-2); }
/* vertical lists: detail opens softly under the item */
.rx-detail { display: grid; grid-template-rows: 0fr; opacity: 0; transition: grid-template-rows .4s ease, opacity .3s ease; }
.rx-detail-in { overflow: hidden; }
.rx-detail p { margin: 12px 0 2px; padding: 12px 16px; max-width: 62ch; font-size: 15.5px; line-height: 1.55; color: var(--ink);
  background: var(--paper-hi); border-left: 3px solid var(--ink-2); border-radius: 0 6px 6px 0; }
.rx-item.is-active .rx-detail { grid-template-rows: 1fr; opacity: 1; }
/* shared detail panel under horizontal tracks: fixed footprint, text cross-fades */
.rx-panel { margin-top: 22px; }
.rx-panel-in { min-height: 9.5em; padding: 18px 22px 20px; background: var(--paper-hi); border: 1.5px solid var(--ink); border-radius: 10px;
  box-shadow: 4px 4px 0 var(--ink-2); transition: opacity .18s ease; }
.rx-panel.is-swapping .rx-panel-in { opacity: .35; }
.rx-panel-k { display: block; font: 600 12px/1.4 var(--font-mono); letter-spacing: .07em; text-transform: uppercase; color: var(--ink-2); margin-bottom: 8px; }
.rx-panel-d { font-size: 16px; line-height: 1.55; color: var(--ink); max-width: 72ch; }
.rx-panel-d .hl { background: none; color: inherit; font-weight: 600; }
.rx-panel-t { margin: 10px 0 0; padding-left: 14px; border-left: 3px solid var(--ink-2); font-size: 15px; line-height: 1.55; color: #26304F; max-width: 72ch; }
.rx-panel-t:empty { display: none; }
.fp-rung.is-active .fp-rung-title, .fp-rhythm-node.is-active .fp-rhythm-label { color: var(--ink-2); }
.fp-rhythm-node .fp-rhythm-dot { transition: background-color .3s ease, box-shadow .3s ease; }
.fp-rhythm-node.is-active .fp-rhythm-dot { background: var(--ink-2); box-shadow: 0 0 0 5px var(--bg-paper), 0 0 0 7px rgba(47,85,168,.3); }

/* horizontal day-by-day timeline: one rail, dots centred on it, titles below */
.timeline { --tl-dot: 12px; --tl-rail: 40px; display: grid !important; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 0 !important;
  list-style: none; margin: 0; padding: 0; position: relative; }
.timeline::before { content: ""; position: absolute; top: var(--tl-rail); bottom: auto; height: 2px; width: auto; margin-top: -1px;
  left: calc(100% / 14); right: calc(100% / 14); background: var(--border-paper); }
.timeline::after { content: ""; position: absolute; top: var(--tl-rail); height: 2px; margin-top: -1px; left: calc(100% / 14);
  width: calc((100% / 7) * var(--rx-n, 0)); background: var(--ink-2); transition: width .6s cubic-bezier(.4,0,.2,1); }
.timeline .tl-row { display: flex !important; flex-direction: column; align-items: center; text-align: center; padding: 0 10px 6px !important;
  border: 0 !important; position: relative; grid-template-columns: none !important; min-width: 0; }
.timeline .tl-row::before { content: ""; position: absolute; top: var(--tl-rail); left: 50%; width: var(--tl-dot); height: var(--tl-dot);
  transform: translate(-50%, -50%) !important; border-radius: 50%; background: var(--paper-hi); border: 2px solid var(--ink-2);
  box-shadow: 0 0 0 4px var(--bg-paper); z-index: 1; transition: background-color .3s ease, box-shadow .3s ease; display: block !important; }
.timeline .tl-row.is-past::before { background: var(--ink-2); }
.timeline .tl-row.is-active::before { background: var(--ink-2); box-shadow: 0 0 0 4px var(--bg-paper), 0 0 0 7px rgba(47,85,168,.28); }
.timeline .tl-day { display: block; height: calc(var(--tl-rail) - 16px); line-height: 1; margin: 0; font-size: 12px; color: var(--text-ink-muted); }
.timeline .tl-body { margin-top: 30px; }
.timeline .tl-title { font-size: clamp(15px, 1.25vw, 18px) !important; line-height: 1.3; }
.timeline .tl-desc, .timeline .tl-tag { display: none !important; }
.timeline .tl-row.is-active .tl-day, .timeline .tl-row.is-active .tl-title { color: var(--ink-2); }
@media (max-width: 820px) {
  .timeline { grid-template-columns: repeat(7, 150px); overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px; }
  .timeline .tl-row { scroll-snap-align: start; }
  .timeline::before { left: 75px; right: auto; width: calc(150px * 6); } .timeline::after { left: 75px; width: calc(150px * var(--rx-n, 0)); }
}
/* horizontal week overview: four phase cards side by side */
.week-track { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.week-track .structure-row { display: flex !important; flex-direction: column; gap: 10px; padding: 22px 20px !important; border: 1.5px solid var(--border-paper) !important;
  border-radius: 10px; background: var(--card); grid-template-columns: none !important; transition: border-color .3s ease, opacity .3s ease; }
.week-track .structure-row .rbody { display: none; }
.week-track .structure-row .rtitle { font-size: clamp(18px, 1.5vw, 21px) !important; line-height: 1.25; }
.week-track .structure-row .rmeta { margin-top: 0; font-size: 12px; line-height: 1.5; }
.week-track .structure-row .structure-glyph { width: 34px; height: 34px; }
.week-track .structure-row.is-active { border-color: var(--ink) !important; box-shadow: 4px 4px 0 var(--ink-2); }
@media (max-width: 900px) { .week-track { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .week-track { grid-template-columns: 1fr; } }
/* who teaches it: one line */
.zl-taught-band { padding-block: clamp(28px, 4vw, 44px) !important; border-block: 1px solid var(--border-paper); }
.zl-taught { margin: 0; font-size: 17px; color: var(--ink); text-align: center; }
.zl-taught .tlink { margin-left: 8px; }
@media (prefers-reduced-motion: reduce) {
  .rx-item, .rx-detail, .rx-panel-in, .timeline::after, .zl-card, .tile, .glance-card, .prog-card, .stat { transition: none !important; }
}

/* ---------- 10. Founder credentials: schools on one line, work on the next ---------- */
.team-creds .tc-line { display: block; }
.team-creds .tc-line + .tc-line { margin-top: 2px; color: var(--ink); }

/* ---------- 11. Logos: transparent wordmarks only (same files as the homepage) ---------- */
.zl-trust-wm img, .logo-wm { width: auto !important; object-fit: contain; background: none !important; border: 0 !important; padding: 0 !important; border-radius: 0 !important; opacity: .85; }
.zl-trust-row { gap: 18px 34px; }
.zl-teacher-chips { gap: 14px 22px; align-items: center; }

/* ---------- 12. No photo backgrounds: former photo heroes are riso heroes ---------- */
.zl-hero { animation: none !important; background: var(--bg-paper) !important; }
.zl-hero::before, .zl-hero::after { display: none !important; }
.zl-hero .display, .zl-hero h1 { color: var(--ink) !important; text-shadow: none !important; font-weight: 500; }
.zl-hero .display em, .zl-hero h1 em { color: var(--ink-2) !important; }
.zl-hero .lede, .zl-hero .zl-hero-lede { color: #26304F !important; text-shadow: none !important; }
.zl-hero .zl-hero-cn, .zl-hero .hero-note, .zl-hero .zl-hero-note, .zl-hero .zl-hero-en-name { color: var(--text-ink-muted) !important; text-shadow: none !important; }
.zl-hero .zl-hero-tagline { color: var(--ink-2) !important; }
.zl-hero .zl-hero-hosted-label { color: var(--text-ink-muted) !important; }
.zl-hero .btn-ghost { color: var(--ink) !important; border-color: var(--border-paper) !important; }
.zl-hero .eyebrow { color: var(--paper-hi) !important; background: var(--ink) !important; }
.zl-hero .eyebrow::before { background: var(--ink-2) !important; }
/* former photo bands: a quiet pull-quote on paper */
.fp-photo-band { background: var(--bg-paper) !important; filter: none !important; min-height: 0 !important; padding-block: clamp(56px, 7vw, 88px);
  border-block: 1px solid var(--border-paper); }
.fp-photo-band::before { display: none !important; }
.fp-photo-band-text { color: var(--ink) !important; text-shadow: none !important; font-weight: 400 !important; font-size: clamp(22px, 2.4vw, 30px) !important; max-width: 760px !important; }
.fp-photo-band-text::before { content: ""; display: block; width: 36px; height: 4px; margin: 0 auto 22px; background: var(--riso-dots) 0 0 / 6px 6px repeat; }

/* ---------- 13. One texture only: the old random paper-grain overlay is off ---------- */
body::after { display: none !important; }
.human-col { transform: none !important; box-shadow: none !important; }
.zl-hero .zl-hero-tagline { font-weight: 400 !important; }
.zl-hero .zl-hero-cn { font-style: normal !important; }

/* ---------- 14. Curriculum icons: literal line drawings that draw in and act out their meaning ---------- */
.ic { overflow: visible; color: var(--ink); }
.ic path, .ic circle, .ic rect { stroke-dasharray: 1; stroke-dashoffset: 0; transition: stroke-dashoffset 1.1s cubic-bezier(.65,.05,.3,1); }
.ic:not(.ic-in) path, .ic:not(.ic-in) circle, .ic:not(.ic-in) rect { stroke-dashoffset: 1; }
.ic > *:nth-child(2) { transition-delay: .08s; } .ic > *:nth-child(3) { transition-delay: .16s; } .ic > *:nth-child(4) { transition-delay: .24s; }
.ic > *:nth-child(n+5) { transition-delay: .32s; }
.ic .ic-acc { stroke: var(--ink-2); }
.ic .ic-faint { opacity: .32; }
.gc-icon.ic, .cr-icon.ic, .p-icon.ic { background: var(--paper-hi); border: 1.5px solid var(--ink); border-radius: 50%; box-shadow: 3px 3px 0 var(--ink-2); padding: 11px; box-sizing: content-box; }
.glance-card .gc-icon.ic { width: 40px; height: 40px; margin-bottom: 10px; }
.cascade-row .cr-icon.ic { width: 36px; height: 36px; }
.ic-host { cursor: pointer; }
.ic-host:hover .ic, .ic-host.is-active .ic, .ic.ic-play { box-shadow: 4px 4px 0 var(--ink-2); }
/* motions: play while the card/row is hovered (or once when the icon first appears) */
.ic .ic-m, .ic .ic-m2 { transform-box: view-box; }
.ic-wave { transform-origin: 16px 20px; } .ic-tilt { transform-origin: 34px 44px; } .ic-spin { transform-origin: 32px 34px; }
.ic-flip { transform-origin: 32px 32px; } .ic-pop { transform-origin: 34px 25px; } .ic-pulse { transform-origin: 32px 14px; }
@keyframes ic-wave { 0%,100% { transform: rotate(0); } 30% { transform: rotate(-9deg); } 65% { transform: rotate(6deg); } }
@keyframes ic-tilt { 0%,100% { transform: rotate(0); } 45%,60% { transform: rotate(-16deg); } }
@keyframes ic-scribble { 0%,100% { transform: translate(0,0); } 25% { transform: translate(-5px,2px); } 50% { transform: translate(-1px,-1px); } 75% { transform: translate(-6px,1px); } }
@keyframes ic-hop { 0% { transform: translate(0,0); } 18% { transform: translate(7px,-12px); } 28% { transform: translate(14px,-10px); }
  45% { transform: translate(21px,-24px); } 55% { transform: translate(28px,-22px); } 72% { transform: translate(35px,-38px); } 82%,92% { transform: translate(42px,-36px); } 100% { transform: translate(0,0); } }
@keyframes ic-scan { 0%,100% { transform: translate(0,0); } 30% { transform: translate(-10px,-6px); } 65% { transform: translate(-3px,-12px); } }
@keyframes ic-spin { to { transform: rotate(360deg); } }
@keyframes ic-blink { 0%,49% { opacity: 1; } 50%,100% { opacity: 0; } }
@keyframes ic-pop { 0% { transform: scale(0); } 40% { transform: scale(1.12); } 55%,100% { transform: scale(1); } }
@keyframes ic-flip { 0%,15% { transform: rotate(0); } 55%,100% { transform: rotate(180deg); } }
@keyframes ic-move { 0%,10% { transform: translateX(0); } 45%,65% { transform: translateX(18px); } 100% { transform: translateX(0); } }
@keyframes ic-pulse { 0%,100% { opacity: .35; transform: scale(.85); } 50% { opacity: 1; transform: scale(1.08); } }
@keyframes ic-slide { 0%,10% { transform: translateX(0); } 45%,60% { transform: translateX(22px); } 100% { transform: translateX(0); } }
@keyframes ic-redraw { 0% { stroke-dashoffset: 1; } 60%,100% { stroke-dashoffset: 0; } }
.ic-host:hover .ic-wave, .ic-host.is-active .ic-wave, .ic-play .ic-wave { animation: ic-wave 1.6s ease-in-out infinite; }
.ic-host:hover .ic-tilt, .ic-host.is-active .ic-tilt, .ic-play .ic-tilt { animation: ic-tilt 2s cubic-bezier(.5,0,.3,1) infinite; }
.ic-host:hover .ic-scribble, .ic-host.is-active .ic-scribble, .ic-play .ic-scribble { animation: ic-scribble 1.4s ease-in-out infinite; }
.ic-host:hover .ic-hop, .ic-host.is-active .ic-hop, .ic-play .ic-hop { animation: ic-hop 2.2s ease-in-out infinite; }
.ic-host:hover .ic-scan, .ic-host.is-active .ic-scan, .ic-play .ic-scan { animation: ic-scan 2.2s ease-in-out infinite; }
.ic-host:hover .ic-spin, .ic-host.is-active .ic-spin, .ic-play .ic-spin { animation: ic-spin 2.4s linear infinite; }
.ic-host:hover .ic-blink, .ic-host.is-active .ic-blink, .ic-play .ic-blink { animation: ic-blink 1s step-end infinite; }
.ic-host:hover .ic-pop, .ic-host.is-active .ic-pop, .ic-play .ic-pop { animation: ic-pop 1.8s cubic-bezier(.3,1.4,.5,1) infinite; }
.ic-host:hover .ic-flip, .ic-host.is-active .ic-flip, .ic-play .ic-flip { animation: ic-flip 2.4s ease-in-out infinite; }
.ic-host:hover .ic-move, .ic-host.is-active .ic-move, .ic-play .ic-move { animation: ic-move 2.2s ease-in-out infinite; }
.ic-host:hover .ic-pulse, .ic-host.is-active .ic-pulse, .ic-play .ic-pulse { animation: ic-pulse 1.3s ease-in-out infinite; }
.ic-host:hover .ic-slide, .ic-host.is-active .ic-slide, .ic-play .ic-slide { animation: ic-slide 2.2s ease-in-out infinite; }
.ic-host:hover .ic-redraw > *, .ic-host.is-active .ic-redraw > *, .ic-play .ic-redraw > * { animation: ic-redraw 1.8s ease-in-out infinite; }
.ic-host:hover .ic-seq > *, .ic-host.is-active .ic-seq > *, .ic-play .ic-seq > * { animation: ic-redraw 2.5s ease-out infinite; }
.ic-seq > .c2 { animation-delay: .25s !important; } .ic-seq > .c3 { animation-delay: .5s !important; } .ic-seq > .c4 { animation-delay: .75s !important; } .ic-seq > .c5 { animation-delay: 1s !important; }
@media (prefers-reduced-motion: reduce) {
  .ic *, .ic .ic-m, .ic .ic-m2, .ic .ic-m > *, .ic-seq > * { animation: none !important; transition: none !important; stroke-dashoffset: 0 !important; }
}

/* ---------- 15. Founder links + general inbox ---------- */
.team-links { display: flex; flex-wrap: wrap; gap: 10px; margin: 18px 0 0; }
.team-links a { display: inline-flex; align-items: center; gap: 8px; padding: 7px 13px 7px 10px; font-size: 14px; font-weight: 600; color: var(--ink);
  text-decoration: none; background: var(--paper-hi); border: 1.5px solid var(--ink); border-radius: 999px; box-shadow: 2px 2px 0 var(--ink-2);
  transition: transform .2s ease, box-shadow .2s ease; }
.team-links a:hover { transform: translate(-1px,-1px); box-shadow: 3px 3px 0 var(--ink-2); }
.team-links svg { width: 17px; height: 17px; color: var(--ink-2); flex: none; }
.team-general, .contact-inbox { margin-top: 26px; font-size: 16px; color: var(--ink); text-align: center; }
.team-general a, .contact-inbox a { font-weight: 600; color: var(--ink-2); }
.contact-inbox { text-align: left; margin-top: 14px; }

/* ---------- 16. Inner-page heroes: inverted print (navy paper, beige + brown ink, dots bounce in place) ---------- */
.hero-inv { background: var(--ink) !important; }
.hero-inv h1, .hero-inv .display, .hero-inv .cs-h1 { color: var(--paper-hi) !important; text-shadow: none !important; }
.hero-inv h1 em, .hero-inv .display em { color: #E9C9A0 !important; }
.hero-inv .lede, .hero-inv .sub, .hero-inv .thesis, .hero-inv .zl-hero-lede, .hero-inv p { color: rgba(252,243,237,.86) !important; text-shadow: none !important; }
.hero-inv .zl-hero-cn, .hero-inv .hero-note, .hero-inv .zl-hero-note, .hero-inv .zl-hero-en-name, .hero-inv .zl-hero-hosted-label { color: rgba(252,243,237,.62) !important; }
.hero-inv .zl-hero-tagline { color: #E9C9A0 !important; }
.hero-inv .rh { color: #E9C9A0; }
.hero-inv .eyebrow { color: var(--ink) !important; background: var(--paper-hi) !important; box-shadow: 2px 2px 0 #B8895C !important; }
.hero-inv .eyebrow::before { background: #B8895C !important; box-shadow: 0 0 0 1.5px var(--paper-hi) !important; }
.hero-inv .btn-primary { background: var(--paper-hi) !important; color: var(--ink) !important; box-shadow: 3px 3px 0 #B8895C !important; }
.hero-inv .btn-ghost { color: var(--paper-hi) !important; border-color: rgba(252,243,237,.45) !important; background: transparent !important; }
.hero-inv .btn-ghost:hover { border-color: var(--paper-hi) !important; }
.hero-inv a:not(.btn) { color: #E9C9A0; }
.hero-inv .contact-inbox a { color: #E9C9A0; }
.hero-inv .zl-hero-hosted img { filter: brightness(0) invert(1); opacity: .9; }
.hero-inv .tl-tag, .hero-inv .hl { color: inherit; }
/* the section after an inverted hero starts clean (no seam line) */
.hero-inv + section { border-top: 0 !important; }
/* language toggle while the nav sits over an inverted hero */
body.zl-page .nav:not(.scrolled) .lang-switch { background: rgba(252,243,237,.10) !important; border-color: rgba(252,243,237,.35) !important; }
body.zl-page .nav:not(.scrolled) .lang-switch a:not(.lang-active) { color: rgba(252,243,237,.88) !important; }
body.zl-page .nav:not(.scrolled) .lang-switch a.lang-active { background: var(--paper-hi) !important; color: var(--ink) !important; }

/* ---------- 17. Site-wide cleanups (Sept 27 late) ---------- */
/* no announcement bar anywhere */
.ticker { display: none !important; } :root { --ticker-h: 0px; }
/* dots live only in the first section of each page: no tint on the beige below */
body, .partners, section:not(.hero-full):not(.hero-inv) { background-image: none !important; }
/* cards that used to overlap the hero edge now sit below it with breathing room */
.zl-trust-wrap { margin-top: clamp(28px, 4vw, 44px) !important; }
/* line length: wider text boxes, no short last lines (see CONTENT-RULES.md, Type) */
.lede, .sub, .hero .sub, .hero-copy .lede, .lede-56, .sec-head .lede, .partners-sub, .thesis, .rbody, .card-p, .tl-desc,
.cr-desc, .gc-sub, .hc-tex, .team-bio, p { text-wrap: pretty; }
.hero .sub, .hero-copy .lede, .lede-56, .hero-riso-copy .lede, .zl-hero-lede, .curr-hero .thesis { max-width: 64ch !important; }
.sec-head .lede, .partners-sub { max-width: 68ch !important; }
.hero-copy, .hero-copy-wide, .zl-hero-copy { max-width: min(100%, 980px) !important; }
h1, h2, .h2, .display { text-wrap: balance; }

/* ---------- 18. Pillar cards: no icons; the pillar word carries the riso marker (same as "ship") ---------- */
.pillar-card h3 .rh, .pillars .gc-name .rh { font-weight: 500; font-size: 1em; }
.pillar-card h3 .rh::after, .pillars .gc-name .rh::after { height: .36em; bottom: .04em; }
.pillar-card, .pillars .glance-card { cursor: default; }
.pillar-card:hover .rh::after, .pillars .glance-card:hover .rh::after,
.pillar-card:focus-within .rh::after, .pillars .glance-card:focus-within .rh::after { animation: rh-reprint .7s cubic-bezier(.65,.05,.25,1); }
.pillar-card:hover .rh, .pillars .glance-card:hover .rh { color: var(--ink); transition: color .3s ease; }
/* inner-page hero headlines: wider box so they break into fewer lines (CONTENT-RULES §4) */
.hero-inv h1, .hero-inv .display, .hero-inv .cs-h1 { max-width: min(100%, 1020px) !important; }

/* ---------- 19. Spacing polish (Sept 28) ---------- */
/* a card's label chip gets breathing room above its title */
.prog-card > .eyebrow, .zl-card > .eyebrow, .tile > .eyebrow, .hub-offer > .eyebrow { margin-bottom: 16px; }
.prog-card .eyebrow + .prog-h, .prog-card .eyebrow + h3 { margin-top: 0; }
/* the hint reads as a caption above the graphic, not part of it */
.rx-hint { margin-bottom: 34px !important; }
/* panels size to their tallest item (set in riso-interact.js) */
.rx-panel-in { min-height: 0; }
/* contact fine print (replaces the promise pills) */
.partners-fine { margin: 22px 0 0; font-size: 13.5px; line-height: 1.5; color: var(--text-ink-muted); max-width: 52ch; }
.partners-fine + .contact-inbox { margin-top: 8px; font-size: 15px; }

/* ---------- 20. Header options preview (hero-options.js) ---------- */
.hero-opt { background: var(--paper-hi) !important; position: relative; overflow: hidden; }
.hero-opt h1, .hero-opt .display { color: var(--ink) !important; }
.hero-opt h1 em { color: var(--ink-2) !important; }
.hero-opt > .container { position: relative; z-index: 2; }
.hero-opt::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--border-paper); }
/* A: social kit — dot grid + large faded seal */
section.hero-opt.hero-opt-A:not(.hero-full), section.hero-opt.hero-opt-D:not(.hero-full) { background-image: radial-gradient(rgba(11,26,74,.28) 1.1px, transparent 1.4px) !important; background-size: 24px 24px !important; background-position: 12px 12px !important; }
.hero-opt-A::before { content: ""; position: absolute; z-index: 1; right: -120px; top: 50%; width: min(680px, 62vw); aspect-ratio: 1; transform: translateY(-50%);
  background: url(/art/seal-watermark.png) center / contain no-repeat; opacity: .085; animation: seal-turn 240s linear infinite; }
@keyframes seal-turn { to { transform: translateY(-50%) rotate(360deg); } }
/* key words print in with the riso marker (A, B) */
.hmark { position: relative; z-index: 0; }
.hmark::after { content: ""; position: absolute; left: -.03em; right: -.03em; bottom: .06em; height: .3em; z-index: -1; background: var(--riso-dots) 0 0 / 6px 6px repeat;
  clip-path: inset(0 100% 0 0); transition: clip-path .9s cubic-bezier(.65,.05,.25,1) var(--hd, .5s); }
.hmark-on .hmark::after { clip-path: inset(0 0 0 0); }
/* C: the marker travels across the headline and settles on the key words */
.hw { position: relative; z-index: 0; }
.hw::after { content: ""; position: absolute; left: -.04em; right: -.04em; bottom: .06em; height: .3em; z-index: -1; background: var(--riso-dots) 0 0 / 6px 6px repeat;
  opacity: 0; transform: scaleX(.4); transform-origin: left; transition: opacity .25s ease, transform .35s ease; }
.hw.hw-pass::after { opacity: .55; transform: scaleX(1); }
.hw.hw-on::after { opacity: 1; transform: scaleX(1); }
/* D: network canvas */
.hero-net { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
/* chooser */
.hero-chooser { position: fixed; left: 14px; bottom: 14px; z-index: 9999; display: flex; flex-direction: column; gap: 4px; padding: 10px 12px;
  background: rgba(252,243,237,.96); border: 1.5px solid var(--ink); border-radius: 10px; box-shadow: 3px 3px 0 var(--ink-2); font: 12.5px/1.3 system-ui; }
.hero-chooser b { margin-bottom: 4px; } .hero-chooser a { color: var(--ink); text-decoration: none; padding: 3px 6px; border-radius: 5px; }
.hero-chooser a.on { background: var(--ink); color: var(--paper-hi); }
@media (prefers-reduced-motion: reduce) { .hero-opt-A::before { animation: none; } .hmark::after, .hw::after { transition: none; } }
section.hero-opt.hero-opt-A::before { display: block !important; }
section.hero-opt.hero-opt-A::before { inset: auto !important; left: auto !important; right: -120px !important; top: calc(50% + 90px) !important; bottom: auto !important;
  width: min(680px, 62vw) !important; height: auto !important; background: url(/art/seal-watermark.png) center / contain no-repeat !important; opacity: .085 !important; }
/* seal sits a fixed distance below the nav on every page, clear of the Contact button */
section.hero-opt.hero-opt-A::before { top: 130px !important; transform: none; animation-name: seal-turn-2 !important; }
@keyframes seal-turn-2 { to { transform: rotate(360deg); } }
/* social-kit header: warmer ivory, less stark than paper white (between --paper-hi and --bg-paper) */
section.hero-opt { background-color: #F3E9DD !important; }
/* headline key words: one marker per word (so wrapped lines are all marked), sweeping left to right */
.hw-m::after { opacity: 1 !important; transform: scaleX(0) !important; transform-origin: left center; height: .3em; bottom: .05em;
  transition: transform .55s cubic-bezier(.65,.05,.25,1) !important; }
.hw-m.hw-on::after { transform: scaleX(1) !important; }
.hw-m + .hw-m::after, .hw-m::after { left: -.02em; right: -.3em; }
@media (prefers-reduced-motion: reduce) { .hw-m::after { transition: none !important; } }

/* ---------- 21. Nav menus (Sept 2026): two single-column dropdowns + a plain link ---------- */
.nav-dd-sep { display: block; height: 1px; margin: 6px 12px; background: var(--border-paper); }
/* For educators sits mid-nav: keep its menu on screen */
.nav-dd-menu { width: max-content; min-width: 280px; max-width: 390px; }

/* Contact pill: same scale as the EN/中文 toggle beside it (31px tall, small type, no bloom) */
.nav-cta .btn-primary {
  padding: 8px 14px; font-size: 13px; line-height: 1; font-weight: 500; gap: 6px;
  box-shadow: none;
}
.nav-cta .btn-primary:hover { background: var(--riso-blue-dk); box-shadow: none; }
.nav-cta .btn-primary .arr { font-size: 12px; }

/* footer: a second heading inside one column (For students + For families) */
.footer-col a + h4 { margin-top: 26px; }

@media (max-width: 1080px) {
  /* mobile drawer: the plain For families link reads as its own group */
  .nav-links.open > a.nav-top-link { padding: 16px 0 6px; font-family: var(--font-mono); font-size: 11px;
    letter-spacing: var(--tr-eyebrow); text-transform: uppercase; color: var(--text-ink); }
  .nav-links.open > a.nav-top-link::after { content: " →"; }
  .nav-links.open .nav-dd-menu { width: auto; max-width: none; }
  .nav-links.open .nav-dd-sep { margin: 6px 0; }
}
