/* Home, cases and Teacher Space. Tokens come from atlas.css.
 * Direction: warm paper, ink text, one cobalt→violet accent for emphasis, four pastel "station" colours
 * (peach 需求 · lavender 方案 · sage 素材 · sky 成果) that also colour the 3D scene. */
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.65 var(--font); }
button, input { font: inherit; color: inherit; }
.wrap { max-width: 1520px; margin: 0 auto; padding: 0 clamp(18px, 3vw, 48px); }
h1, h2, h3 { letter-spacing: -.02em; line-height: 1.18; text-wrap: balance; margin: 0; }
h1 { font-size: clamp(32px, 4.7vw, 76px); font-weight: 800; }
h2 { font-size: clamp(26px, 3.2vw, 46px); font-weight: 800; }
.grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.eyebrow { margin: 0 0 12px; font-size: 13px; font-weight: 700; letter-spacing: .08em; color: var(--accent); }
.lead { color: var(--muted); font-size: 17.5px; max-width: 40em; margin: 12px 0 0; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.sec { padding-top: 96px; }
.sec-head { display: flex; justify-content: space-between; align-items: end; gap: 16px; flex-wrap: wrap; margin-bottom: 24px; }
.row { display: flex; gap: 8px; flex-wrap: wrap; margin: 16px 0 0; }

.btn { display: inline-flex; align-items: center; gap: 6px; border: 1.5px solid var(--line); background: var(--panel); color: var(--ink); border-radius: 999px; padding: 8px 18px; cursor: pointer; text-decoration: none; font-size: 15px; font-weight: 600; white-space: nowrap; }
.btn:hover { border-color: var(--accent); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); box-shadow: 0 6px 18px -8px var(--accent); }
.btn.big { padding: 13px 28px; font-size: 16.5px; }
.chip { border: 1.5px solid var(--line); background: var(--panel); border-radius: 999px; padding: 6px 15px; cursor: pointer; font-size: 14.5px; }
.chip[aria-pressed="true"] { border-color: var(--accent); background: var(--accent-soft); color: var(--accent); font-weight: 600; }

/* ---- hero: the offer on the left, three characters talking on the right ---- */
.hero { position: relative; overflow: hidden; padding: 40px 0 48px; min-height: min(860px, calc(100svh - 190px)); display: grid; align-items: center; background:
  radial-gradient(60% 50% at 88% 6%, var(--lav), transparent 70%), radial-gradient(46% 42% at 4% 24%, var(--peach), transparent 70%), var(--bg); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(20px, 3vw, 56px); align-items: center; width: 100%; }
.hero .lead { font-size: clamp(17px, 1.5vw, 22px); max-width: 30em; margin-top: 22px; }
.hero .eyebrow { font-size: 14px; }
.hero-art { margin: 0; }
.nowrap { white-space: nowrap; }
.hero-art svg { display: block; width: 100%; height: auto; max-height: min(700px, 68svh); font-family: var(--font); }
.hero-art figcaption { text-align: center; color: var(--muted); font-size: 15px; margin-top: 6px; } .hero-art figcaption b { color: var(--ink); }
.say .r2 { opacity: 0; }
@media (prefers-reduced-motion: no-preference) {
  .ch, .cat, .stack { transform-box: fill-box; transform-origin: 50% 100%; }
  .ch-en { animation: bob 3.6s ease-in-out infinite; } .ch-ja { animation: bob 3.6s ease-in-out -1.2s infinite; } .ch-zh { animation: bob 3.6s ease-in-out -2.4s infinite; }
  .cat .tail { transform-box: fill-box; transform-origin: 0 100%; animation: wag 1.8s ease-in-out infinite; }
  .waves path { animation: pulse 1.6s ease-in-out infinite; } .waves path + path { animation-delay: .25s; }
  /* a 12 s conversation: hello, hello, hello — then each names the cat */
  .say g g { transform-box: fill-box; transform-origin: 50% 100%; }
  .say .r1 { animation: round1 12s infinite; } .say .r2 { animation: round2 12s infinite; }
  .say .b-ja { animation: pop 12s .5s infinite backwards; } .say .b-zh { animation: pop 12s 1s infinite backwards; } .say .b-en, .say .b-cat { animation: pop 12s infinite backwards; }
  .say .r2 .b-en { animation-delay: 6s; } .say .r2 .b-ja { animation-delay: 6.5s; } .say .r2 .b-zh { animation-delay: 7s; } .say .r2 .b-cat { animation-delay: 7.6s; }
}
@keyframes bob { 50% { transform: translateY(-7px) rotate(-1.2deg); } }
@keyframes wag { 50% { transform: rotate(-16deg); } }
@keyframes pulse { 0%, 100% { opacity: .2; } 50% { opacity: 1; } }
@keyframes round1 { 0%, 46% { opacity: 1; } 50%, 96% { opacity: 0; } 100% { opacity: 1; } }
@keyframes round2 { 0%, 46% { opacity: 0; } 50%, 96% { opacity: 1; } 100% { opacity: 0; } }
@keyframes pop { 0% { transform: scale(.4); } 4%, 100% { transform: scale(1); } }
.flow-stage canvas { width: 100%; height: 100%; display: none; }
.has-3d .flow-stage canvas { display: block; }
.ask { display: flex; gap: 8px; max-width: 720px; margin: 32px 0 0; padding: 9px; background: var(--panel); border: 1.5px solid var(--line); border-radius: 999px; box-shadow: var(--shadow); }
.ask:focus-within { border-color: var(--accent); }
.ask input { flex: 1; min-width: 0; border: 0; background: transparent; padding: 10px 16px; font-size: 17.5px; outline: none; } .ask .btn { padding: 12px 26px; font-size: 16.5px; }
.ask-eg { display: flex; gap: 6px; flex-wrap: wrap; margin: 14px 0 0; max-width: 720px; }
.ask-eg button { border: 1px solid var(--line); background: color-mix(in srgb, var(--panel) 70%, transparent); border-radius: 999px; padding: 4px 13px; font-size: 13px; color: var(--muted); cursor: pointer; }
.ask-eg button:hover { color: var(--accent); border-color: var(--accent); }
.hero-alt { margin: 16px 0 0; font-size: 14.5px; color: var(--muted); }
.hero-alt a, .lead a, .foot a { color: var(--accent); font-weight: 600; }

.s1 { --st: var(--peach); } .s2 { --st: var(--lav); } .s3 { --st: var(--sage); } .s4 { --st: var(--sky); }

/* ---- three things ---- */
.three { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: 24px; }
.do { display: flex; flex-direction: column; gap: 6px; padding: 24px; border-radius: 22px; color: inherit; text-decoration: none; min-height: 230px; }
.do.peach { background: var(--peach); } .do.lav { background: var(--lav); } .do.sage { background: var(--sage); }
.do .k { font-size: 13px; font-weight: 700; letter-spacing: .06em; opacity: .7; }
.do b { font-size: 21px; line-height: 1.3; }
.do p { margin: 0; font-size: 15px; opacity: .82; }
.do i { font-style: normal; font-weight: 700; margin-top: auto; padding-top: 12px; }
.do:hover i { color: var(--accent); }

/* ---- workflow: a pinned scene on the left that travels downward as the four steps scroll past on the right ---- */
.flow { margin-top: 96px; padding: 72px 0 24px; background: var(--panel); border-block: 1px solid var(--line); }
.flow-grid { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr); gap: clamp(24px, 3.5vw, 64px); margin-top: 28px; align-items: start; }
.flow-stage { --sh: min(640px, calc(100svh - 96px)); position: sticky; top: max(16px, calc(50svh - var(--sh) / 2)); height: var(--sh); border-radius: 24px; background: linear-gradient(180deg, var(--soft), var(--bg)); border: 1px solid var(--line); overflow: hidden; display: none; }
.has-3d .flow-stage { display: block; }
.flow-rail { position: absolute; left: 14px; top: 14px; margin: 0; padding: 0; list-style: none; display: grid; gap: 6px; }
.flow-rail li { padding: 3px 12px; border-radius: 999px; font-size: 12.5px; font-weight: 700; background: var(--panel); border: 1.5px solid var(--line); color: var(--muted); cursor: pointer; }
.flow-rail li.done { background: var(--st); border-color: transparent; color: var(--ink); opacity: .7; }
.flow-rail li.on { background: var(--st); border-color: var(--ink); color: var(--ink); }
.flow-steps { list-style: none; margin: 0; padding: 0; }
.flow-steps > li { padding: 22px 0; border-top: 1px solid var(--line); scroll-margin-top: 30svh; }
.has-3d .flow-steps > li { min-height: max(var(--sh, 640px), 66svh); display: flex; flex-direction: column; justify-content: center; border-top: 0; opacity: .32; }
.flow-steps { --sh: min(640px, calc(100svh - 96px)); }
.has-3d .flow-steps > li.on { opacity: 1; }
.flow-steps h3 { font-size: clamp(24px, 2.4vw, 34px); display: flex; align-items: center; gap: 14px; }
.flow-steps h3 i { font-style: normal; width: 40px; height: 40px; border-radius: 12px; background: var(--st); display: grid; place-items: center; font-size: 20px; flex: none; }
.flow-steps dl { margin: 20px 0 0; display: grid; grid-template-columns: 5.6em minmax(0, 1fr); gap: 12px 16px; align-items: start; background: var(--bg); border: 1px solid var(--line); border-radius: 22px; padding: 22px; }
.flow-steps dt { font-size: 13px; font-weight: 800; padding: 4px 0; border-radius: 999px; text-align: center; background: var(--soft); }
.flow-steps dt.you { background: var(--sun-soft); color: var(--sun); } .flow-steps dt.ai { background: var(--grad); color: #fff; } .flow-steps dt.see { background: var(--sage); color: #2f7d55; }
.flow-steps dd { margin: 0; color: var(--ink); font-size: 16.5px; }

/* ---- cases ---- */
.case-list { display: grid; gap: 18px; }
.case { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 28px; align-items: center; background: var(--panel); border: 1px solid var(--line); border-radius: 24px; padding: 26px; scroll-margin-top: 16px; }
.case.phone { grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); }
.case.tall { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); }
.case:nth-child(even) .case-text { order: 2; }
.case h3 { font-size: 24px; margin: 4px 0 4px; }
.case .meta, .case .tags { display: flex; gap: 6px; flex-wrap: wrap; margin: 0; font-size: 12.5px; }
.case .meta span { background: var(--soft); border-radius: 999px; padding: 2px 10px; color: var(--muted); }
.case .tags { margin-top: 14px; }
.case .tags span { background: var(--accent-soft); color: var(--accent); border-radius: 999px; padding: 2px 10px; font-weight: 600; }
.case .tags .plain { background: var(--soft); color: var(--muted); font-weight: 400; }
.case .label { margin: 14px 0 2px; font-size: 12.5px; font-weight: 700; letter-spacing: .05em; color: var(--muted); }
.case p { margin: 0; font-size: 15px; }
.case blockquote { margin: 0; padding: 12px 16px; border-radius: 4px 16px 16px 16px; background: var(--peach); font-size: 16px; line-height: 1.55; }
.case .why { color: var(--muted); }
.device { position: relative; width: 100%; max-width: calc(var(--w) * 1px); margin: 0 auto; aspect-ratio: var(--w) / var(--h); border-radius: 18px; overflow: hidden; border: 6px solid var(--ink); background: var(--soft); box-shadow: var(--shadow); }
.case.phone .device { border-radius: 30px; max-width: 320px; }
.device .scaler { width: calc(var(--w) * 1px); height: calc(var(--h) * 1px); transform: scale(var(--s, 1)); transform-origin: 0 0; }
.device iframe { display: block; border: 0; background: #fff; pointer-events: none; }
.device.live iframe { pointer-events: auto; }
.device .wake { position: absolute; left: 50%; bottom: 12px; transform: translateX(-50%); border: 0; border-radius: 999px; padding: 7px 16px; background: var(--ink); color: var(--bg); font-size: 13px; font-weight: 600; cursor: pointer; opacity: .92; }
.device.live .wake { display: none; }
/* gallery: thumbnails of the real interfaces, shaped like the thing that was built */
.gallery { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.gcard { display: flex; flex-direction: column; gap: 3px; padding: 12px 12px 14px; border-radius: 20px; background: var(--panel); border: 1px solid var(--line); color: inherit; text-decoration: none; }
.gcard:hover { border-color: var(--accent); box-shadow: var(--shadow); }
.gcard.wide { grid-column: span 2; }
.gallery.two .gcard .shot { height: 300px; }
.gcard .shot { display: grid; place-items: center; height: 250px; border-radius: 12px; background: var(--soft); overflow: hidden; margin-bottom: 8px; padding: 10px; }
.gcard .shot img { max-width: 100%; max-height: 100%; width: auto; height: auto; border-radius: 8px; border: 3px solid var(--ink); display: block; }
.gcard.phone .shot img { border-radius: 14px; }
.gcard.wide .shot { padding: 0; } .gcard.wide .shot img { width: 100%; height: 100%; max-height: none; object-fit: cover; object-position: 0 0; border: 0; border-radius: 0; }
.gmeta { display: flex; gap: 5px; flex-wrap: wrap; font-size: 12px; }
.gmeta em { font-style: normal; background: var(--accent-soft); color: var(--accent); font-weight: 600; border-radius: 999px; padding: 1px 9px; }
.gmeta .plain { background: var(--soft); color: var(--muted); font-weight: 400; }
.gcard b { font-size: 17.5px; margin-top: 2px; }
.gcard .who { color: var(--muted); font-size: 13px; }
.gcard .say { font-size: 13.5px; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
/* one case */
.crumb { margin: 28px 0 0; font-size: 14.5px; } .crumb a, .case-nav a { color: var(--accent); font-weight: 600; text-decoration: none; }
.case-head { padding: 14px 0 24px; } .case-head .meta { display: flex; gap: 6px; flex-wrap: wrap; margin: 0 0 10px; font-size: 12.5px; }
.case-head .meta span { background: var(--soft); border-radius: 999px; padding: 2px 10px; color: var(--muted); }
.case-page { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 36px; align-items: start; }
.case-page.phone { grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); } .case-page.tall { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); }
.case-story section { margin-bottom: 30px; }
.case-story h2 { font-size: 20px; display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.case-story h2 i { font-style: normal; width: 28px; height: 28px; border-radius: 50%; background: var(--ink); color: var(--bg); font-size: 14px; display: grid; place-items: center; flex: none; }
.case-story blockquote { margin: 0; padding: 14px 18px; border-radius: 4px 18px 18px 18px; background: var(--peach); font-size: 17px; line-height: 1.55; }
.case-story p { margin: 0 0 8px; } .case-story .why { color: var(--muted); }
.decisions { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.decisions li { display: grid; gap: 2px; padding: 12px 16px; border-radius: 14px; background: var(--panel); border: 1px solid var(--line); }
.decisions b { font-size: 15.5px; } .decisions span { color: var(--muted); font-size: 14.5px; } .decisions span::before { content: '因为 '; font-weight: 700; color: var(--accent); font-size: 12.5px; }
.case-story .tags { display: flex; gap: 6px; flex-wrap: wrap; margin: 12px 0 4px; font-size: 12.5px; }
.case-story .tags span { background: var(--accent-soft); color: var(--accent); border-radius: 999px; padding: 2px 10px; font-weight: 600; }
.case-try { position: sticky; top: 16px; } .case-try .label { margin: 0 0 8px; font-size: 12.5px; font-weight: 700; letter-spacing: .05em; color: var(--muted); }
.case-page.phone .device { border-radius: 30px; max-width: 340px; }
.case-try .row { justify-content: center; }
.case-nav { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin: 40px 0 64px; padding-top: 18px; border-top: 1px solid var(--line); }
.inside.three-up { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.filters { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 20px; }
.page-head { padding: 56px 0 28px; }

/* ---- bands ---- */
.band { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 32px; align-items: center; border-radius: 28px; padding: 36px; }
.band.lav { background: var(--lav); } .band.sage { background: var(--sage); } .band.peach { background: var(--peach); } .band.sky { background: var(--sky); }
.band p { margin: 12px 0 0; }
.mini-lesson { list-style: none; counter-reset: m; margin: 0; padding: 0; display: grid; gap: 8px; }
.mini-lesson li { counter-increment: m; display: grid; grid-template-columns: 34px 1fr; column-gap: 12px; background: var(--panel); border-radius: 14px; padding: 12px 14px; }
.mini-lesson li::before { content: counter(m); grid-row: span 2; width: 34px; height: 34px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); font-weight: 800; display: grid; place-items: center; }
.mini-lesson span { color: var(--muted); font-size: 13.5px; }
.inside { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-top: 22px; }
.inside a { display: flex; flex-direction: column; gap: 4px; padding: 18px 20px; border-radius: 18px; background: var(--panel); border: 1px solid var(--line); color: inherit; text-decoration: none; }
.inside a:hover { border-color: var(--accent); }
.inside b { font-size: 34px; font-weight: 800; line-height: 1.1; font-variant-numeric: tabular-nums; }
.inside span { color: var(--muted); font-size: 14px; }
.inside i { font-style: normal; color: var(--accent); font-weight: 700; font-size: 14px; margin-top: auto; padding-top: 8px; }

/* ---- Teacher Space ---- */
.zones { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.zone { border-radius: 22px; padding: 22px; display: flex; flex-direction: column; gap: 8px; }
.zone h3 { font-size: 20px; }
.zone p { margin: 0; font-size: 14.5px; opacity: .85; }
.when { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: 22px; }
.when > div { background: var(--panel); border: 1px solid var(--line); border-radius: 20px; padding: 20px; }
.when h3 { font-size: 18px; display: flex; align-items: center; gap: 8px; }
.when h3 small { font-size: 12px; font-weight: 700; padding: 2px 10px; border-radius: 999px; background: var(--st); letter-spacing: .04em; }
.tool { display: block; margin-top: 12px; padding: 12px 14px; border-radius: 14px; background: var(--bg); color: inherit; text-decoration: none; border: 1px solid transparent; }
a.tool:hover { border-color: var(--accent); }
.tool b { display: block; font-size: 15.5px; } .tool span { color: var(--muted); font-size: 13.5px; }
.tool .src { display: inline-block; margin-top: 4px; font-size: 11.5px; font-weight: 700; color: var(--accent); letter-spacing: .04em; }
.unit-pick { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 8px; margin-top: 14px; }
.unit-pick a { display: flex; flex-direction: column; gap: 2px; padding: 12px 14px; border-radius: 14px; background: var(--panel); border: 1px solid var(--line); color: inherit; text-decoration: none; }
.unit-pick a:hover { border-color: var(--accent); }
.unit-pick small { color: var(--muted); font-size: 12px; } .unit-pick span { color: var(--muted); font-size: 13px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pick-bar { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-top: 18px; }
.foot { color: var(--muted); font-size: 14px; }

@media (max-width: 900px) {
  .paths, .why3, .creator, .three, .zones, .when, .band, .flow-grid, .case, .case.phone, .case.tall, .hero-grid, .case-page, .case-page.phone, .case-page.tall, .inside.three-up { grid-template-columns: minmax(0, 1fr); }
  .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); } .gcard .shot { height: 190px; }
  .case-try { position: static; order: -1; } .hero-art svg { max-height: 340px; } .hero { padding: 32px 0 36px; min-height: 0; }
  .flow-grid { gap: 0; } .flow-steps dl { grid-template-columns: minmax(0, 1fr); gap: 6px 0; padding: 16px; } .flow-steps dt { justify-self: start; padding: 2px 14px; } .flow-steps dd { margin-bottom: 8px; }
  .has-3d .flow-steps > li { min-height: 62svh; justify-content: flex-start; padding-top: 28px; } .flow-steps h3 { font-size: 22px; }
  .inside { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .case:nth-child(even) .case-text { order: 0; }
  .case { padding: 18px; gap: 18px; } .band { padding: 24px; }
  .flow-stage { --sh: 40svh; min-height: 240px; top: 6px; z-index: 3; box-shadow: var(--shadow); } .flow-steps { --sh: 0px; }
  .sec { padding-top: 60px; } .creator .face { width: 84px; } .path .pic { min-height: 200px; } .flow { margin-top: 52px; padding: 44px 0; }
  .hero { padding-top: 36px; }
  .do { min-height: 0; }
}
@media (max-width: 520px) {
  .wrap { padding: 0 16px; }
  .ask { border-radius: 22px; flex-direction: column; } .ask .btn { justify-content: center; }
}
@media (prefers-reduced-motion: no-preference) {
  .btn, .do i, .inside a, .gcard { transition: border-color .15s, background-color .15s, box-shadow .2s, color .15s; }
  .flow-steps > li { transition: opacity .3s; }
}

/* ---- second pass: the moving strip, two paths, interface specimens, why, creator, closing ---- */
.made { padding: 22px 0 8px; border-block: 1px solid var(--line); background: var(--panel); }
.made-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; font-size: 15px; }
.made-head span { display: flex; gap: 20px; flex-wrap: wrap; } .made-head a, .path-more a { color: var(--accent); font-weight: 600; text-decoration: none; }
.marquee { overflow-x: auto; scrollbar-width: none; -webkit-mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent); mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent); }
.marquee::-webkit-scrollbar { display: none; }
.marquee .track { display: flex; width: max-content; padding: 4px 0 14px; }
.mcard { display: flex; flex-direction: column; gap: 6px; width: 250px; margin-right: 14px; flex: none; color: inherit; text-decoration: none; }
.mcard .shot { display: grid; place-items: center; height: 168px; border-radius: 16px; background: var(--st, var(--soft)); overflow: hidden; padding: 12px; }
.mcard .shot img { max-width: 100%; max-height: 100%; border-radius: 8px; border: 2.5px solid var(--ink); display: block; }
.mcard b { font-size: 15px; } .mcard small { color: var(--muted); font-size: 12.5px; margin-top: -6px; }
.mcard:hover .shot { outline: 2px solid var(--accent); }
@media (prefers-reduced-motion: no-preference) { .marquee .track.run { animation: slide var(--dur, 60s) linear infinite; } .marquee:hover .track, .marquee:focus-within .track { animation-play-state: paused; } }
@keyframes slide { to { transform: translateX(-50%); } }

.paths { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin-top: 28px; }
.path { display: flex; flex-direction: column; border-radius: 28px; overflow: hidden; color: inherit; text-decoration: none; border: 1.5px solid transparent; }
.path.peach { background: var(--peach); } .path.lav { background: var(--lav); } .path:hover { border-color: var(--accent); }
.path .pic { display: flex; align-items: center; justify-content: center; gap: 14px; min-height: 280px; padding: 28px 24px 8px; }
.path .bubble { background: var(--panel); border-radius: 6px 22px 22px 22px; padding: 14px 18px; font-size: 17px; font-weight: 600; max-width: 13em; box-shadow: var(--shadow); line-height: 1.5; }
.path mark, .spec mark { background: var(--accent-soft); color: var(--accent); border-radius: 6px; padding: 0 4px; }
.path .arrow { width: 56px; height: 4px; flex: none; border-radius: 4px; background: repeating-linear-gradient(90deg, var(--ink) 0 8px, transparent 8px 14px); position: relative; }
.path .arrow::after { content: ''; position: absolute; right: -4px; top: -6px; border: 8px solid transparent; border-left-color: var(--ink); border-right: 0; }
.path .shot-app { width: min(46%, 330px); border-radius: 14px; border: 4px solid var(--ink); box-shadow: var(--shadow); transform: rotate(2deg); }
.path .lesson { display: flex; flex-direction: column; gap: 6px; width: min(44%, 300px); }
.path .lesson i { font-style: normal; font-weight: 700; font-size: 14.5px; background: var(--panel); border-radius: 12px; padding: 0 14px; display: flex; align-items: center; height: calc(var(--w) * 5.2px + 14px); box-shadow: var(--shadow); border-left: 6px solid var(--accent-2); }
.path .txt { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 2px 16px; padding: 14px 28px 26px; }
.path .txt b { font-size: clamp(24px, 2.4vw, 34px); line-height: 1.2; } .path .txt span { grid-column: 1; font-size: 16px; opacity: .8; }
.path .txt i { grid-area: 1 / 2 / 3 / 3; font-style: normal; font-weight: 700; background: var(--ink); color: var(--bg); border-radius: 999px; padding: 9px 20px; white-space: nowrap; }
.path-more { margin: 16px 0 0; color: var(--muted); font-size: 15.5px; }
@media (prefers-reduced-motion: no-preference) {
  .path .arrow { animation: dash 1s linear infinite; background-size: 14px 100%; } .path .shot-app, .path .lesson { animation: bob 4s ease-in-out infinite; }
  .path .lesson i { animation: fadeup 6s infinite backwards; } .path .lesson i:nth-child(2) { animation-delay: .25s; } .path .lesson i:nth-child(3) { animation-delay: .5s; } .path .lesson i:nth-child(4) { animation-delay: .75s; }
}
@keyframes dash { to { background-position: 14px 0; } }
@keyframes fadeup { 0% { opacity: 0; transform: translateY(8px); } 6%, 100% { opacity: 1; transform: none; } }

/* interface specimens: the same highlight, ruby, underline and player styles the generated apps use */
.spec { display: block; background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 14px 16px; font-size: 16.5px; line-height: 1.9; }
.spec small { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 8px; font-size: 12.5px; color: var(--muted); line-height: 1.5; }
.spec small i { font-style: normal; font-weight: 700; border-radius: 999px; padding: 1px 10px; }
.spec .m1 { background: var(--sky); color: #24598f; } .spec .m2 { background: var(--peach); color: #a4502a; } .spec .m3 { background: var(--lav); color: #5b3fb0; } .spec .m4 { background: var(--sage); color: #2f7d55; }
.spec small .q { border: 1.5px dashed var(--sun); color: var(--sun); background: transparent; }
.spec-route { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 22px; }
.spec-route > i { font-style: normal; font-weight: 800; font-size: 18px; color: var(--accent); background: var(--accent-soft); border-radius: 999px; min-width: 42px; height: 42px; padding: 0 12px; display: grid; place-items: center; position: relative; }
.spec-route > i + i::before { content: ''; position: absolute; left: -22px; width: 22px; height: 3px; background: var(--accent); opacity: .5; }
.spec-route > i.start { background: var(--sun); color: #fff; } .spec-route small { flex-basis: 100%; }
.spec .sent { display: block; font-size: 24px; font-weight: 700; line-height: 2.3; } .spec .sent.en { font-size: 19px; line-height: 1.9; font-weight: 500; }
.spec ruby { margin-right: 6px; padding: 2px 10px; border-radius: 10px; } .spec rt { font-size: 11px; font-weight: 700; letter-spacing: .04em; }
.spec .n { background: var(--sky); color: #24598f; } .spec .p { background: var(--peach); color: #a4502a; } .spec .v { background: var(--sage); color: #2f7d55; }
.spec .sent.en b { border-radius: 6px; padding: 1px 5px; font-weight: 600; } .spec .sent.en u { text-decoration: underline wavy var(--accent-2); text-underline-offset: 5px; } .spec .sent.en em { font-style: normal; border-bottom: 3px solid var(--sun); }
.spec-play { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.spec-play .pl { width: 46px; height: 46px; border-radius: 50%; background: var(--accent); flex: none; position: relative; box-shadow: 0 6px 16px -6px var(--accent); }
.spec-play .pl::after { content: ''; position: absolute; left: 18px; top: 13px; border: 10px solid transparent; border-left: 16px solid #fff; border-right: 0; }
.spec-play .bars { display: flex; align-items: center; gap: 3px; height: 34px; } .spec-play .bars i { width: 4px; height: 30%; border-radius: 3px; background: var(--accent-2); }
.spec-play b { font-size: 22px; color: var(--accent); } .spec-play small { flex-basis: 100%; margin-top: 0; }
@media (prefers-reduced-motion: no-preference) { .spec-play .bars i { animation: bar 1s ease-in-out infinite; } .spec-play .bars i:nth-child(2n) { animation-delay: -.3s; } .spec-play .bars i:nth-child(3n) { animation-delay: -.6s; } }
@keyframes bar { 50% { height: 100%; } }

.why3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 28px; }
.why3 a { display: flex; flex-direction: column; gap: 8px; padding: 26px; border-radius: 26px; color: inherit; text-decoration: none; border: 1.5px solid transparent; }
.why3 a:hover { border-color: var(--accent); } .why3 .peach { background: var(--peach); } .why3 .lav { background: var(--lav); } .why3 .sage { background: var(--sage); }
.why3 .q { font-size: clamp(20px, 1.9vw, 27px); font-weight: 800; line-height: 1.25; } .why3 b { font-size: 13px; letter-spacing: .08em; opacity: .7; order: -1; }
.why3 a > span:not(.q) { font-size: 15.5px; opacity: .88; } .why3 em { font-style: normal; font-weight: 800; }
.why3 i { font-style: normal; font-weight: 700; margin-top: auto; padding-top: 10px; }
.creator { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 32px; align-items: start; margin-top: 18px; padding: 34px; border-radius: 26px; background: var(--panel); border: 1px solid var(--line); }
.creator .face { width: 150px; } .creator h3 { font-size: clamp(22px, 2.2vw, 32px); margin-bottom: 12px; } .creator p { margin: 0 0 10px; font-size: 17px; max-width: 62em; }
.creds { list-style: none; display: flex; gap: 8px; flex-wrap: wrap; margin: 16px 0 0; padding: 0; } .creds li { background: var(--soft); border-radius: 999px; padding: 4px 14px; font-size: 13.5px; font-weight: 600; }
.closing { margin-top: 96px; padding: 72px 0 84px; text-align: center; background: radial-gradient(50% 90% at 20% 100%, var(--peach), transparent 70%), radial-gradient(50% 90% at 80% 100%, var(--lav), transparent 70%), var(--bg); border-top: 1px solid var(--line); }
.closing .trio { width: 240px; display: block; margin: 0 auto 18px; } .closing p { color: var(--muted); font-size: 18px; margin: 12px 0 0; } .closing .row { justify-content: center; margin-top: 26px; }
@media (prefers-reduced-motion: no-preference) { .closing .trio g { transform-box: fill-box; transform-origin: 50% 100%; animation: bob 3.2s ease-in-out infinite; } .closing .trio g:nth-child(2) { animation-delay: -1s; } .closing .trio g:nth-child(3) { animation-delay: -2s; } }
@media (max-width: 900px) { .paths, .why3, .creator { grid-template-columns: minmax(0, 1fr); } .path .pic { flex-direction: column; } .path .arrow { transform: rotate(90deg); margin: 10px 0; } .path .shot-app, .path .lesson { width: 80%; } .path .txt { grid-template-columns: 1fr; } .path .txt i { grid-area: auto; justify-self: start; margin-top: 8px; } .creator { padding: 22px; gap: 14px; } .closing { margin-top: 60px; padding: 48px 0; } }

/* ---- depth (see design/atlas.css): thicker borders, a solid bottom edge under every raised surface, buttons that press down ---- */
.btn { border-width: 2px; box-shadow: 0 3px 0 var(--edge); }
.btn:hover { transform: translateY(-1px); box-shadow: 0 4px 0 var(--edge); }
.btn:active { transform: translateY(3px); box-shadow: none; }
.btn.primary { box-shadow: 0 4px 0 var(--edge-accent); } .btn.primary:hover { box-shadow: 0 5px 0 var(--edge-accent); } .btn.primary:active { transform: translateY(4px); box-shadow: none; }
.chip, .ask-eg button, .flow-rail li { border-width: 2px; box-shadow: 0 2px 0 var(--edge); }
.chip:active, .ask-eg button:active, .flow-rail li:active { transform: translateY(2px); box-shadow: none; }
.ask { border-width: 2px; padding: 10px; box-shadow: 0 5px 0 var(--edge), 0 26px 40px -26px rgba(32, 34, 43, .35); }
.ask:focus-within { border-color: var(--accent); box-shadow: 0 5px 0 var(--edge-sel), 0 26px 40px -26px rgba(32, 34, 43, .35); }
.gcard, .decisions li, .inside a, .when > div, .unit-pick a, .spec, .flow-steps dl { border-width: 2px; box-shadow: 0 4px 0 var(--edge); }
.case, .creator { border-width: 2px; box-shadow: 0 6px 0 var(--edge); }
.gcard { padding: 14px 14px 16px; } .spec { padding: 16px 18px; }
.gcard:hover, .inside a:hover, .unit-pick a:hover { transform: translateY(-2px); box-shadow: 0 6px 0 var(--edge-sel); }
.gcard:active, .inside a:active, .unit-pick a:active { transform: translateY(2px); box-shadow: 0 2px 0 var(--edge-sel); }
.tool { border-width: 2px; } .tool:hover { box-shadow: 0 3px 0 var(--edge); }
.path, .why3 a { border-width: 2px; box-shadow: 0 7px 0 var(--ed, var(--edge)); }
.peach { --ed: color-mix(in srgb, var(--peach) 78%, var(--ink)); } .lav { --ed: color-mix(in srgb, var(--lav) 78%, var(--ink)); } .sage { --ed: color-mix(in srgb, var(--sage) 78%, var(--ink)); } .sky { --ed: color-mix(in srgb, var(--sky) 78%, var(--ink)); }
.path:hover, .why3 a:hover { transform: translateY(-3px); box-shadow: 0 10px 0 var(--ed, var(--edge)); }
.path:active, .why3 a:active { transform: translateY(3px); box-shadow: 0 4px 0 var(--ed, var(--edge)); }
.path .bubble, .path .lesson i { box-shadow: 0 4px 0 var(--edge-dark); }
.path .txt i { box-shadow: 0 4px 0 var(--edge-dark); }
.path .shot-app, .device { box-shadow: 0 7px 0 var(--edge-dark), var(--shadow); }
.gcard .shot img, .mcard .shot img { box-shadow: 0 4px 0 var(--edge-dark); }
.mcard .shot { box-shadow: 0 4px 0 color-mix(in srgb, var(--st, var(--soft)) 80%, var(--ink)); }
.mcard:hover .shot { transform: translateY(-2px); }
.flow-stage { border-width: 2px; box-shadow: 0 6px 0 var(--edge); }
.spec-route > i { box-shadow: 0 3px 0 var(--edge-sel); } .spec-route > i.start { box-shadow: 0 3px 0 color-mix(in srgb, var(--sun) 72%, var(--ink)); }
.spec-play .pl { box-shadow: 0 4px 0 var(--edge-accent); }
.spec ruby { box-shadow: 0 2px 0 var(--edge-dark); }
.creds li { box-shadow: 0 2px 0 var(--edge); }
.made { border-block-width: 2px; } .closing { border-top-width: 2px; }
@media (prefers-reduced-motion: no-preference) { .btn, .chip, .ask-eg button, .gcard, .inside a, .unit-pick a, .path, .why3 a, .mcard .shot { transition: transform .12s, box-shadow .12s, border-color .15s, background-color .15s, color .15s; } }
.creator { margin-top: 30px; }
