/* Speak the City design system (cinematic). One stylesheet for the home page and every app page.
   Guide: docs/design-system.md. Generators: Scripts/stc.py.
   Contents: tokens, base, header, buttons, hero, play control, lines, photo scenes, lesson window, app rows,
   closing Buy block, footer, plain document pages, motion, narrow screens. */

@font-face {
  font-family: "Plus Jakarta Sans";
  src: url("/fonts/plus-jakarta-sans-latin.woff2") format("woff2");
  font-weight: 200 800; font-style: normal; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face { /* only fetched when a page has romanized Japanese (ō, ū) */
  font-family: "Plus Jakarta Sans";
  src: url("/fonts/plus-jakarta-sans-latin-ext.woff2") format("woff2");
  font-weight: 200 800; font-style: normal; font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113;
}

/* ---------- Tokens ---------- */
:root {
  --ink: #0f1113;        /* text on light */
  --night: #0b0c0d;      /* behind photographs, scrims */
  --paper: #f2f3f4;      /* the light surface beside a photograph */
  --white: #ffffff;      /* the app sections, the Buy block */
  --mute: #5b626a;       /* secondary text on light (5.9:1 on paper) */
  --rule: #d8dbdf;
  --accent: #d1156b;     /* Mexico City: rosa mexicano */
  --pad: clamp(20px, 4.4vw, 64px);
  --bar-h: 72px;
  --strip-h: 92px;
  --screen: 100vh;
  --latin: "Plus Jakarta Sans", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --ko: "Apple SD Gothic Neo", "Noto Sans KR", "Malgun Gothic", sans-serif;
  --ja: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic", "Noto Sans JP", sans-serif;
  /* type scale */
  --t-hero: clamp(40px, 6.35vw, 104px);
  --t-say: clamp(36px, 4.9vw, 78px);
  --t-say-cjk: clamp(31px, 4vw, 62px);
  --t-say-full: clamp(44px, 7.4vw, 124px);
  --t-h2: clamp(34px, 4.6vw, 70px);
  --t-h3: clamp(26px, 2.6vw, 40px);
  --t-lead: 21px;
  --t-body: 18px;
  --t-small: 15px;
}
@supports (height: 100svh) { :root { --screen: 100svh; } }
/* A page, or one city on the home page, sets its accent with data-city on <html> or on any wrapper. */
[data-city="seoul"] { --accent: #1c4fd8; }
[data-city="tokyo"] { --accent: #cc1e2c; }
[data-city="mexico-city"] { --accent: #d1156b; }

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--latin); font-size: var(--t-body); line-height: 1.5;
  color: var(--ink); background: var(--night);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overflow-x: clip;
}
:lang(ko) { font-family: var(--ko); }
:lang(ja) { font-family: var(--ja); }
h1, h2, h3, p, figure, ol, ul { margin: 0; padding: 0; }
img, picture { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
.hero :focus-visible, .full :focus-visible, .close .line :focus-visible, .bar:not(.solid) :focus-visible { outline-color: #fff; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 100; background: #fff; color: var(--ink); padding: 10px 14px; border-radius: 8px; }
.skip:focus { left: 8px; }

/* The home page holds three cities and shows one. data-city on <html> decides which. */
.city, .bar-cta[data-for] { display: none; }
html[data-city="mexico-city"] .city[data-city="mexico-city"],
html[data-city="seoul"] .city[data-city="seoul"],
html[data-city="tokyo"] .city[data-city="tokyo"] { display: block; }
html[data-city="mexico-city"] .bar-cta[data-for="mexico-city"],
html[data-city="seoul"] .bar-cta[data-for="seoul"],
html[data-city="tokyo"] .bar-cta[data-for="tokyo"] { display: flex; }

/* ---------- Header ---------- */
.bar {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  height: var(--bar-h); padding: 0 var(--pad);
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  color: #fff;
  transition: background-color .3s ease, color .3s ease, box-shadow .3s ease;
}
.bar.solid { background: var(--white); color: var(--ink); box-shadow: 0 1px 0 var(--rule); }
.brand, .foot-brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 800; font-size: 19px; letter-spacing: -0.02em; white-space: nowrap; }
.mark { width: 27px; height: 27px; fill: currentColor; flex: none; margin-top: 3px; }
.bar-tabs { display: flex; gap: 30px; opacity: 0; visibility: hidden; transition: opacity .3s ease, visibility .3s; }
.bar.solid .bar-tabs { opacity: 1; visibility: visible; }
.bar-tabs a { text-decoration: none; font-size: 15px; font-weight: 600; color: var(--mute); padding: 6px 0; border-bottom: 2px solid transparent; }
.bar-tabs a:hover { color: var(--ink); }
.bar-tabs .t-lang { display: none; }
.bar-tabs a[aria-current] { color: var(--ink); border-bottom-color: var(--accent); }
.bar-cta { display: flex; align-items: center; gap: 22px; }
.bar-dl { font-size: 15px; font-weight: 600; text-decoration: none; white-space: nowrap; }
.bar-dl:hover { text-decoration: underline; text-underline-offset: 4px; }
.bar-soon { font-size: 15px; font-weight: 600; white-space: nowrap; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 54px; padding: 0 26px; border-radius: 10px;
  font-weight: 700; font-size: 17px; letter-spacing: -0.01em;
  text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: transform .15s ease, background-color .15s ease, color .15s ease, border-color .15s ease;
}
.btn:active { transform: translateY(1px); }
.btn-buy { background: var(--accent); color: #fff; }
.btn-buy:hover { background: var(--ink); }
.bar:not(.solid) .btn-buy:hover { background: #fff; color: var(--ink); }
.btn-dl { border: 1.5px solid currentColor; }
.btn-dl:hover { background: var(--ink); border-color: var(--ink); color: #fff; }
.btn-sm { min-height: 42px; padding: 0 18px; font-size: 15px; border-radius: 9px; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.soon { font-size: 18px; font-weight: 600; }
.more { display: inline-block; margin-top: 18px; font-size: 16px; font-weight: 600; text-underline-offset: 4px; }
/* Phones and tablets cannot install a Mac app: Download gives way to one line. Buy stays. */
.handheld a[data-download] { display: none; }
.handheld-note { font-size: 16px; font-weight: 600; flex: 1 1 100%; }

/* ---------- Hero ---------- */
.hero { position: relative; height: var(--screen); min-height: 600px; color: #fff; background: var(--night); overflow: hidden; }
.hero-photo { position: absolute; inset: 0; overflow: hidden; }
.hero-photo picture, .hero-photo img, .close-photo picture, .close-photo img { width: 100%; height: 100%; }
.hero-photo img, .close-photo img, .scene-photo img { object-fit: cover; object-position: var(--pos, 50% 50%); }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    linear-gradient(to bottom, rgba(11,12,13,.55) 0%, rgba(11,12,13,0) 18%),
    linear-gradient(to top, rgba(11,12,13,1) 0%, rgba(11,12,13,.96) 15%, rgba(11,12,13,.84) 30%, rgba(11,12,13,.55) 46%, rgba(11,12,13,.2) 60%, rgba(11,12,13,0) 72%);
}
.hero-body {
  position: absolute; z-index: 2; left: var(--pad); right: var(--pad); bottom: calc(var(--strip-h) + 30px);
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(280px, 350px); gap: 48px; align-items: end;
}
.hero-title { font-size: var(--t-hero); font-weight: 800; letter-spacing: -0.042em; word-spacing: .09em; line-height: .95; }
.hero-title span { display: block; white-space: nowrap; }
.hero-sub { font-size: 16px; line-height: 1.5; color: rgba(255,255,255,.9); }
.hero-first { margin-top: 18px; padding-top: 16px; border-top: 1px solid rgba(255,255,255,.34); }
.hero-say { font-size: 25px; font-weight: 700; letter-spacing: -0.02em; word-spacing: .05em; line-height: 1.2; }
.hero-mean { font-size: 15px; color: rgba(255,255,255,.82); margin-top: 2px; }
.hero-first .play { margin-top: 12px; }

/* The city switcher at the foot of the hero. */
.strip { position: absolute; z-index: 2; left: var(--pad); right: var(--pad); bottom: 0; height: var(--strip-h); display: grid; grid-template-columns: repeat(3, 1fr); }
.strip a {
  display: block; text-decoration: none; padding: 16px 16px 0 0;
  border-top: 2px solid rgba(255,255,255,.3); color: rgba(255,255,255,.7);
  transition: color .2s ease, border-color .2s ease;
}
.strip a:hover { color: #fff; border-top-color: rgba(255,255,255,.75); }
.strip .t-city { display: block; font-size: 20px; font-weight: 700; letter-spacing: -0.02em; line-height: 1.2; }
.strip .t-lang { display: block; font-size: 14px; margin-top: 2px; }
.strip a[aria-current] { color: #fff; border-top: 4px solid #fff; padding-top: 14px; }

/* ---------- Play control: a real recording, drawn from its own waveform ---------- */
.play {
  --p: 0;
  display: inline-flex; align-items: center; gap: 14px;
  margin: 18px 0 0; padding: 0; min-height: 50px;
  background: none; border: 0; cursor: pointer; text-align: left;
}
.play-btn { flex: none; width: 50px; height: 50px; border-radius: 50%; display: grid; place-items: center; background: var(--accent); color: #fff; transition: transform .15s ease; }
.play:hover .play-btn { transform: scale(1.06); }
.play-btn svg { width: 22px; height: 22px; fill: currentColor; grid-area: 1 / 1; }
.play .i-stop, .play[aria-pressed="true"] .i-play { display: none; }
.play[aria-pressed="true"] .i-stop { display: block; }
.wave { position: relative; display: block; line-height: 0; }
.wave svg { display: block; fill: currentColor; max-width: 100%; }
.wave-base { display: block; opacity: .3; }
.wave-fill { position: absolute; inset: 0 auto 0 0; width: calc(var(--p) * 100%); overflow: hidden; color: var(--accent); }
.hero .wave-fill, .full .wave-fill, .close .line .wave-fill { color: #fff; }
.hero .wave-base, .full .wave-base, .close .line .wave-base { opacity: .45; }
.dur { font-size: 13px; font-weight: 600; font-variant-numeric: tabular-nums; opacity: .75; white-space: nowrap; }
/* The small variant inside the lesson window. */
.play--chip { gap: 8px; min-height: 40px; margin: 0; padding: 0 16px 0 6px; border-radius: 999px; background: #fff; box-shadow: 0 1px 0 var(--rule), 0 6px 16px -8px rgba(15,17,19,.35); font-size: 14px; font-weight: 700; }
.play--chip .play-btn { width: 28px; height: 28px; }
.play--chip .play-btn svg { width: 14px; height: 14px; }

/* ---------- A line you will say ---------- */
.when { font-size: 20px; font-weight: 600; letter-spacing: -0.01em; color: var(--mute); margin-bottom: 40px; }
.who { font-size: var(--t-small); font-weight: 600; color: var(--mute); margin-bottom: 8px; }
.say { font-size: var(--t-say); font-weight: 800; letter-spacing: -0.04em; word-spacing: .09em; line-height: 1; text-wrap: balance; }
.say:lang(ko), .say:lang(ja) { font-size: var(--t-say-cjk); font-weight: 700; letter-spacing: -0.02em; word-spacing: 0; line-height: 1.18; word-break: keep-all; }
.say:lang(ja) { word-break: normal; line-break: strict; }
.say span { display: inline-block; }
.line--s .say { font-size: clamp(26px, 2.7vw, 42px); letter-spacing: -0.03em; line-height: 1.08; }
.line--s .say:lang(ko), .line--s .say:lang(ja) { font-size: clamp(24px, 2.4vw, 36px); }
.rom { font-size: 18px; color: var(--mute); margin-top: 12px; }
.mean { font-size: var(--t-lead); font-weight: 500; margin-top: 10px; }
.rom + .mean { margin-top: 2px; }
.line + .line { margin-top: 40px; }
.note { font-size: 17px; line-height: 1.55; color: var(--mute); max-width: 43ch; margin-top: 40px; }

/* ---------- Photo scenes ---------- */
.scene { position: relative; }
.scene-photo { position: relative; overflow: hidden; background: var(--night); }
.scene-photo picture { position: absolute; inset: 0; }
.scene-photo img { position: absolute; left: 0; top: -7%; width: 100%; height: 114%; }

.split { display: grid; grid-template-columns: 46fr 54fr; min-height: var(--screen); background: var(--paper); }
.split.flip { grid-template-columns: 54fr 46fr; }
.split.flip .scene-photo { order: 2; }
.split .scene-text { align-self: center; padding: 120px clamp(28px, 6.6vw, 104px); min-width: 0; }

.full { min-height: var(--screen); display: flex; align-items: flex-end; color: #fff; background: var(--night); }
.full .scene-photo { position: absolute; inset: 0; }
.full::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(to top, rgba(11,12,13,.94) 0%, rgba(11,12,13,.8) 30%, rgba(11,12,13,.4) 58%, rgba(11,12,13,0) 80%),
    linear-gradient(to right, rgba(11,12,13,.55) 0%, rgba(11,12,13,0) 62%);
}
.full .scene-text { position: relative; z-index: 1; padding: 160px var(--pad) 76px; width: 100%; }
.full .when, .full .who, .full .rom, .full .note { color: rgba(255,255,255,.88); }
.full .when { margin-bottom: 28px; }
.full .say { font-size: var(--t-say-full); }
.full .say:lang(ko), .full .say:lang(ja), .close .line .say:lang(ko), .close .line .say:lang(ja) { font-size: clamp(38px, 6vw, 100px); }
.full .line--s .say { font-size: clamp(26px, 2.7vw, 42px); }
.full .line--s .say:lang(ko), .full .line--s .say:lang(ja) { font-size: clamp(24px, 2.4vw, 36px); }
.full .note { margin-top: 28px; }

/* ---------- The lesson window: one window, four steps ---------- */
.lesson { background: var(--white); padding: clamp(88px, 11vw, 160px) var(--pad) clamp(64px, 8vw, 120px); }
.lesson-head { max-width: 880px; }
.app-icon { width: 72px; height: 72px; margin-bottom: 30px; }
.lesson h2, .app h2 { font-size: var(--t-h2); font-weight: 800; letter-spacing: -0.04em; word-spacing: .08em; line-height: 1; text-wrap: balance; }
.lesson-head p { font-size: var(--t-lead); color: var(--mute); max-width: 50ch; margin-top: 24px; }
.lesson-body { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 9fr); gap: clamp(32px, 6vw, 96px); align-items: start; margin-top: clamp(48px, 6vw, 88px); }
.lesson-steps { list-style: none; }
.lstep { min-height: 46vh; padding-top: 6px; transition: opacity .35s ease; }
.lstep:last-child { min-height: 30vh; }
.js .lstep { opacity: .3; }
.js .lstep.on { opacity: 1; }
.lstep h3 { font-size: var(--t-h3); font-weight: 800; letter-spacing: -0.035em; line-height: 1.05; }
.lstep p { font-size: 18px; color: var(--mute); max-width: 34ch; margin-top: 12px; }
.lesson-stage { position: sticky; top: calc(var(--bar-h) + 5vh); min-width: 0; }
.lesson-cap { font-size: var(--t-small); color: var(--mute); margin-top: 18px; max-width: 62ch; }

.win { background: #f5f6f7; border: 1px solid var(--rule); border-radius: 14px; overflow: hidden; box-shadow: 0 50px 90px -56px rgba(15,17,19,.5); }
.win-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 11px 14px; background: #ecedef; border-bottom: 1px solid var(--rule); }
.win-dots { display: flex; gap: 8px; }
.win-dots i { width: 12px; height: 12px; border-radius: 50%; background: #cdd1d6; }
.win-tabs { display: flex; padding: 3px; border: 1px solid var(--rule); border-radius: 10px; background: #f7f8f9; }
.win-tabs button { border: 0; background: none; cursor: pointer; font-size: 14px; font-weight: 600; color: var(--mute); padding: 7px 13px; border-radius: 7px; white-space: nowrap; }
.win-tabs button[aria-selected="true"] { background: #dfe2e6; color: var(--ink); }
.win-body { position: relative; aspect-ratio: 16 / 10; min-height: 340px; container-type: inline-size; }
.pane { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 5% 7%; gap: clamp(10px, 2cqw, 20px); opacity: 0; visibility: hidden; transition: opacity .3s ease, visibility .3s; }
.pane.on { opacity: 1; visibility: visible; }
.p-count { font-size: clamp(13px, 1.9cqw, 17px); font-weight: 600; color: var(--mute); }
.p-phrase { font-size: clamp(24px, 5.6cqw, 50px); font-weight: 700; letter-spacing: -0.03em; line-height: 1.1; }
.p-phrase:lang(ko), .p-phrase:lang(ja) { font-size: clamp(20px, 4.6cqw, 42px); letter-spacing: -0.01em; line-height: 1.25; }
.p-phrase u { text-decoration: none; box-shadow: inset 0 -4px 0 #2a48d0; }
.p-mean { font-size: clamp(15px, 2.2cqw, 19px); color: var(--mute); }
.p-verdict { display: inline-flex; align-items: center; gap: 10px; font-size: clamp(18px, 2.8cqw, 24px); font-weight: 700; margin-top: 10px; }
.p-verdict svg { width: 26px; height: 26px; }
.p-heard { font-size: clamp(13px, 1.9cqw, 16px); color: var(--mute); max-width: 44ch; }
.p-heard b { display: block; font-size: clamp(18px, 2.9cqw, 26px); color: var(--ink); font-weight: 700; margin-bottom: 2px; }
.p-tiles { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; max-width: 420px; }
.p-tiles span { min-width: 40px; height: 40px; display: grid; place-items: center; border-radius: 9px; background: #fff; box-shadow: 0 1px 0 var(--rule), 0 4px 10px -6px rgba(15,17,19,.4); font-size: 18px; font-weight: 600; }
.p-tiles span:first-child { background: #2a48d0; color: #fff; }
.p-cue { font-size: clamp(16px, 2.6cqw, 22px); font-weight: 600; max-width: 32ch; padding: 14px 20px; border-radius: 12px; background: #fff; box-shadow: 0 1px 0 var(--rule); }
.p-chat { width: 100%; max-width: min(640px, 84cqw); display: flex; flex-direction: column; gap: 12px; text-align: left; }
.p-them, .p-me { max-width: 86%; padding: 14px 18px; border-radius: 16px; }
.p-them { background: #fff; box-shadow: 0 1px 0 var(--rule), 0 10px 24px -18px rgba(15,17,19,.5); align-self: flex-start; }
.p-me { background: #dfe3f3; align-self: flex-end; }
.p-chat b { display: block; font-size: clamp(17px, 3.3cqw, 30px); font-weight: 700; letter-spacing: -0.02em; line-height: 1.25; }
.p-chat small { display: block; font-size: clamp(13px, 1.9cqw, 16px); color: var(--mute); margin-top: 3px; }

/* ---------- App rows: a real capture beside words ---------- */
.app { background: var(--white); padding: clamp(24px, 4vw, 56px) var(--pad) clamp(88px, 11vw, 160px); }
.app-row { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(32px, 6vw, 96px); align-items: center; }
.app-row h2 { font-size: clamp(30px, 3.5vw, 52px); }
.app-text p { font-size: 18px; margin-top: 22px; max-width: 48ch; }
.app-text p.quiet { color: var(--mute); }
.shot img { width: 100%; height: auto; border-radius: 14px; border: 1px solid var(--rule); box-shadow: 0 40px 70px -44px rgba(15,17,19,.38); }
.shot--small img { max-width: 416px; }
.shot figcaption { font-size: var(--t-small); color: var(--mute); margin-top: 16px; max-width: 58ch; }

/* ---------- Closing: a last line over a photograph, and the white Buy block ---------- */
.close { position: relative; min-height: var(--screen); display: flex; align-items: flex-end; color: #fff; background: var(--night); overflow: hidden; }
.close-photo { position: absolute; inset: 0; }
.close::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(to top, rgba(11,12,13,.9) 0%, rgba(11,12,13,.5) 45%, rgba(11,12,13,.25) 100%); }
.close-body { position: relative; z-index: 1; width: 100%; padding: 140px var(--pad) 64px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 520px); gap: 56px; align-items: end; }
.close .line .who, .close .line .rom { color: rgba(255,255,255,.88); }
.close .line .say { font-size: clamp(44px, 7vw, 116px); }
.deal { background: var(--white); color: var(--ink); border-radius: 6px; padding: clamp(26px, 3vw, 44px); grid-column: 2; }
.deal h2 { font-size: clamp(27px, 2.5vw, 36px); font-weight: 800; letter-spacing: -0.03em; word-spacing: .06em; line-height: 1.08; }
.deal p { font-size: 17px; color: var(--mute); margin-top: 14px; }
.deal .fine { font-size: 14px; margin-top: 22px; }
.deal .handheld-note { color: var(--ink); margin: 0; }

/* ---------- Footer ---------- */
.foot { background: var(--paper); color: var(--mute); padding: 52px var(--pad) 60px; font-size: 14px; }
.foot a { color: var(--ink); text-underline-offset: 3px; }
.foot-brand { color: var(--ink); margin-bottom: 18px; }
.foot-links { display: flex; flex-wrap: wrap; gap: 8px 24px; margin-top: 14px; }

/* ---------- Plain document pages (credits, support, thanks) ---------- */
.doc { background: var(--white); min-height: 70vh; padding: calc(var(--bar-h) + clamp(48px, 7vw, 96px)) var(--pad) clamp(64px, 8vw, 120px); }
.doc h1 { font-size: clamp(34px, 4.6vw, 64px); font-weight: 800; letter-spacing: -0.04em; word-spacing: .08em; line-height: 1; }
.doc > p { font-size: var(--t-lead); color: var(--mute); max-width: 62ch; margin-top: 22px; }
.doc h2 { font-size: 24px; font-weight: 800; letter-spacing: -0.02em; margin-top: 56px; }
.credits { list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 28px 24px; margin-top: 22px; }
.credits img { width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 6px; background: var(--paper); }
.credits p { font-size: 15px; margin-top: 10px; }
.credits p + p { color: var(--mute); margin-top: 2px; }

/* ---------- Motion (all of it optional) ---------- */
@media (prefers-reduced-motion: no-preference) {
  .hero-photo img { animation: settle 7s cubic-bezier(.16,.6,.2,1) both; }
  .hero-title span { animation: rise 1.1s cubic-bezier(.16,.8,.2,1) both .1s; }
  .hero-title span + span { animation-delay: .24s; }
  .hero-side { animation: arrive .9s ease both .7s; }
  @keyframes settle { from { transform: scale(1.08); } to { transform: scale(1); } }
  @keyframes rise { from { clip-path: inset(0 0 100% 0); transform: translateY(34%); } to { clip-path: inset(-12% -6% -24% -6%); transform: none; } }
  @keyframes arrive { from { opacity: 0; } to { opacity: 1; } }

  /* A line appears the way it is spoken: left to right. Without JS it is simply there. */
  .js .line .say span { clip-path: inset(-12% 100% -24% 0); transition: clip-path 1.05s cubic-bezier(.2,.7,.15,1) .1s; }
  .js .line.in .say span { clip-path: inset(-12% -6% -24% 0); }
  .js .line + .line .say span { transition-delay: .4s; }

  ::view-transition-old(root), ::view-transition-new(root) { animation-duration: .55s; animation-timing-function: ease; }

  @supports (animation-timeline: view()) {
    .scene-photo img { animation: drift linear both; animation-timeline: view(); animation-range: entry 0% exit 100%; }
    @keyframes drift { from { transform: translateY(-5.5%); } to { transform: translateY(5.5%); } }
  }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation: none !important; scroll-behavior: auto !important; }
}

/* ---------- Tablet: 700 to 1099 ---------- */
@media (max-width: 1099px) {
  :root { --t-hero: clamp(40px, 7.4vw, 84px); }
  .hero-body { grid-template-columns: 1fr; gap: 22px; }
  .hero-side { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px; align-items: start; }
  .hero-first { margin-top: 0; padding-top: 0; border-top: 0; padding-left: 28px; border-left: 1px solid rgba(255,255,255,.34); }
  .hero-first .play { margin-top: 10px; }
  .bar-tabs { gap: 20px; }
  .split .scene-text { padding: 96px clamp(24px, 5vw, 56px); }
  .when { font-size: 18px; margin-bottom: 30px; }
  .wave svg { width: 150px; height: auto; }
}
@media (max-width: 899px) {
  .bar-tabs { display: none; }
  .lesson-body { grid-template-columns: 1fr; gap: 28px; }
  .lesson-stage { position: static; order: -1; }
  .lstep, .lstep:last-child { min-height: 0; }
  .js .lstep { display: none; opacity: 1; }
  .js .lstep.on { display: block; }
  .lstep + .lstep { margin-top: 28px; }
  .js .lstep + .lstep { margin-top: 0; }
  .app-row { grid-template-columns: 1fr; }
  .close-body { grid-template-columns: 1fr; gap: 36px; padding: 120px var(--pad) 40px; }
  .deal { grid-column: 1; max-width: 560px; }
}

/* ---------- Phone: under 700 ---------- */
@media (max-width: 699px) {
  :root { --bar-h: 60px; --strip-h: 76px; --t-body: 17px; --t-lead: 19px; --t-hero: clamp(34px, 10.6vw, 60px); --t-say: clamp(34px, 10.4vw, 56px); --t-say-cjk: clamp(27px, 8vw, 44px); --t-say-full: clamp(42px, 13.5vw, 76px); }
  .bar { gap: 12px; }
  .bar-dl { display: none; }
  .brand { font-size: 17px; gap: 8px; }
  .mark { width: 23px; height: 23px; }
  .btn-sm { min-height: 40px; padding: 0 14px; font-size: 14px; }
  .bar-soon { font-size: 14px; }

  .hero { min-height: 640px; }
  .hero-photo { inset: 0 0 auto 0; height: 66%; }
  .hero-photo img { object-position: var(--pos-phone, var(--pos, 50% 50%)); }
  .hero::before {
    background:
      linear-gradient(to bottom, rgba(11,12,13,.5) 0%, rgba(11,12,13,0) 14%),
      linear-gradient(to top, rgba(11,12,13,1) 0%, rgba(11,12,13,1) 36%, rgba(11,12,13,.74) 47%, rgba(11,12,13,0) 66%);
  }
  .hero-body { gap: 14px; bottom: calc(var(--strip-h) + 18px); }
  .hero-title { line-height: .98; }
  .hero-title span { white-space: normal; }
  .hero-side { display: block; }
  .hero-sub { font-size: 15px; line-height: 1.45; }
  .hero-first { margin-top: 14px; padding: 12px 0 0; border-left: 0; border-top: 1px solid rgba(255,255,255,.34); display: grid; grid-template-columns: 1fr auto; align-items: center; column-gap: 12px; }
  .hero-say { font-size: 21px; grid-column: 1; }
  .hero-mean { grid-column: 1; font-size: 14px; }
  .hero-first .play { grid-column: 2; grid-row: 1 / span 2; margin: 0; }
  .hero-first .wave, .hero-first .dur { display: none; }
  .strip a { padding-right: 8px; }
  .strip .t-city { font-size: 15px; }
  .strip .t-lang { font-size: 12.5px; }
  .strip .t-with { display: none; }

  .split, .split.flip { grid-template-columns: 1fr; min-height: 0; }
  .split.flip .scene-photo { order: 0; }
  .split .scene-photo { height: 112vw; max-height: 620px; }
  .split .scene-text { padding: 44px var(--pad) 64px; }
  .when { font-size: 17px; margin-bottom: 26px; }
  .line--s .say { font-size: 26px; }
  .line--s .say:lang(ko), .line--s .say:lang(ja) { font-size: 23px; }
  .rom { font-size: 16px; }
  .line + .line { margin-top: 30px; }
  .note { margin-top: 28px; font-size: 16px; }
  .full { min-height: calc(var(--screen) * .88); }
  .full .scene-text { padding: 120px var(--pad) 48px; }
  .wave svg { width: 170px; }

  .win-dots { display: none; }
  .win-bar { padding: 8px; justify-content: center; }
  .win-tabs { width: 100%; }
  .win-tabs button { flex: 1 1 auto; padding: 8px 4px; font-size: 13px; }
  .win-body { aspect-ratio: auto; height: 330px; min-height: 0; }
  .pane { padding: 18px 16px; gap: 10px; }
  .p-tiles span { min-width: 30px; height: 30px; font-size: 15px; border-radius: 7px; }
  .p-cue { font-size: 16px; }
  .lstep p { font-size: 17px; }
  .lesson { padding-bottom: 40px; }
  .shot img { border-radius: 10px; }

  .close-body { padding: 96px var(--pad) 28px; }
  .cta .btn { flex: 1 1 100%; }
}
