/* Lichii Emulator Guide. Direction: one motif (the chamfered game-card corner), Albert Sans, plum-black and pink. */
:root {
  --bg: #0d060b; --surface: #1b0e17; --ink: #ffffff; --muted: #b3a8b0;
  --accent: #ff488b; --accent-ink: #0d060b; --accent-strong: #ff6fa3;
  --field-1: #470c35; --field-1-ink: #ffffff;
  --field-2: #ffffff; --field-2-ink: #101421; --field-2-soft: #f1eef1; --field-2-muted: #4b4f5c;
  --font: "Albert Sans", "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; /* code and pre only. taste-skill-ignore */
  --step-small: clamp(0.8125rem, 0.79rem + 0.1vw, 0.875rem);
  --step-body: clamp(1.0625rem, 1rem + 0.25vw, 1.1875rem);
  --step-lead: clamp(1.25rem, 1.1rem + 0.55vw, 1.625rem);
  --step-statement: clamp(1.5rem, 1.1rem + 1.2vw, 2.25rem);
  --step-head: clamp(2rem, 1.3rem + 2.8vw, 3.75rem);
  --step-display: clamp(2.5rem, 0.6rem + 7vw, 5rem);
  --margin: clamp(1rem, 2.2vw, 2rem);
  --gutter: clamp(0.75rem, 1.4vw, 1.5rem);
  --cut: clamp(18px, 2.4vw, 36px);
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.76, 0, 0.24, 1);
  --ease-soft: cubic-bezier(0.33, 1, 0.68, 1);
  --t-press: 140ms; --t-hover: 180ms; --t-ui: 240ms;
  color-scheme: dark;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 24px; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 var(--step-body)/1.55 var(--font); font-kerning: normal; text-rendering: optimizeLegibility; overflow-x: clip; }
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3 { font-weight: 600; letter-spacing: -0.035em; line-height: 1; margin: 0; text-wrap: balance; hyphens: none; }
p { margin: 0; text-wrap: pretty; }
p + p { margin-top: 0.9em; }
a { color: inherit; text-decoration: underline; text-decoration-thickness: 0.07em; text-underline-offset: 0.2em; text-decoration-color: color-mix(in oklab, currentColor 45%, transparent); transition: text-decoration-color var(--t-hover) ease, color var(--t-hover) ease; }
@media (hover: hover) and (pointer: fine) { a:hover { text-decoration-color: currentColor; } }
::selection { background: var(--accent); color: var(--accent-ink); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
code { font-family: var(--mono); font-size: 0.86em; background: var(--surface); padding: 0.08em 0.32em; overflow-wrap: anywhere; }
pre { font-family: var(--mono); background: var(--surface); color: var(--ink); padding: 18px 20px; overflow-x: auto; margin: 1.2em 0; max-width: 100%; font-size: 0.9em; line-height: 1.6; }
pre code { background: none; padding: 0; font-size: 1em; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.tab { font-variant-numeric: tabular-nums; }

/* the one shape: a game-card corner cut at 45 degrees */
.cut { clip-path: polygon(0 0, calc(100% - var(--cut)) 0, 100% var(--cut), 100% 100%, 0 100%); }

/* frame */
.wrap { padding-inline: var(--margin); }
.grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); }

/* navigation */
.nav { display: flex; align-items: baseline; justify-content: space-between; gap: 8px 24px; flex-wrap: wrap; padding: 28px var(--margin) 0; position: relative; z-index: 2; }
.mark { font-weight: 600; font-size: var(--step-lead); letter-spacing: -0.03em; text-decoration: none; display: inline-flex; align-items: center; gap: 10px; }
.mark i { display: inline-block; width: 0.8em; height: 0.8em; background: var(--accent); clip-path: polygon(0 0, 68% 0, 100% 32%, 100% 100%, 0 100%); }
.nav__links { display: flex; gap: 6px 26px; flex-wrap: wrap; font-size: var(--step-small); }
.nav__links a { text-decoration-color: transparent; padding-block: 10px; }
.nav__links a[aria-current] { text-decoration-color: var(--accent); }
@media (hover: hover) and (pointer: fine) { .nav__links a:hover { text-decoration-color: currentColor; } }

/* buttons: flat, square, the motif's corner */
.btn { --cut: 14px; display: inline-flex; align-items: center; min-height: 52px; padding: 0 26px 0 22px; background: var(--accent); color: var(--accent-ink); font-weight: 600; font-size: var(--step-body); text-decoration: none; clip-path: polygon(0 0, calc(100% - var(--cut)) 0, 100% var(--cut), 100% 100%, 0 100%); transition: transform var(--t-press) var(--ease-out), background-color var(--t-hover) ease; }
.btn:active { transform: scale(0.97); }
.btn.alt { background: var(--surface); color: var(--ink); }
@media (hover: hover) and (pointer: fine) { .btn:hover { background: var(--accent-strong); } .btn.alt:hover { background: var(--field-1); } }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

/* hero: home */
.hero { position: relative; padding-top: clamp(56px, 8vh, 110px); overflow: clip; }
.hero__top { align-items: end; row-gap: 40px; }
.hero h1 { grid-column: 1 / span 7; font-size: var(--step-display); line-height: 1; max-width: 12ch; margin-left: -0.04em; }
.hero__pic { grid-column: 9 / -1; grid-row: 1 / span 2; align-self: start; margin: 0; background: var(--surface); aspect-ratio: 4 / 3; overflow: clip; --cut: 56px; }
.hero__pic .dr, .phero__pic .dr, .band__frame .dr { height: 100%; }
.hero__pic img { width: 100%; height: 100%; object-fit: cover; }
.hero__lead { grid-column: 1 / span 5; }
.lead { font-size: var(--step-lead); line-height: 1.35; max-width: 34ch; }
.hero__lead .lead { margin-top: 36px; }
.hero__bottom { margin-top: clamp(40px, 6vh, 72px); align-items: end; }
.hero__note { grid-column: 1 / span 4; padding-bottom: 56px; }
.hero__note p { max-width: 34ch; }
.hero__note b { font-weight: 600; }
.stage { grid-column: 5 / -1; margin-right: calc(var(--margin) * -1); background: var(--accent); color: var(--accent-ink); padding: 56px 56px 56px; --cut: clamp(72px, 9vw, 160px); min-height: 520px; }

/* hero: inner pages */
.phero { padding-top: clamp(48px, 7vh, 96px); padding-bottom: clamp(72px, 10vh, 140px); align-items: end; row-gap: 40px; }
.phero__text { grid-column: 1 / span 7; }
.crumb { font-size: var(--step-small); color: var(--muted); margin-top: 28px; }
.crumb a { color: var(--ink); }
.phero h1 { font-size: var(--step-display); max-width: 13ch; margin-left: -0.04em; }
.phero .lead { margin-top: 36px; max-width: 40ch; }
.phero__pic { grid-column: 9 / -1; margin: 0; aspect-ratio: 4 / 3; overflow: clip; background: var(--surface); --cut: 56px; }
.phero__pic img { width: 100%; height: 100%; object-fit: cover; }

/* the white middle */
.paper { background: var(--field-2); color: var(--field-2-ink); color-scheme: light; }
.paper code { background: var(--field-2-soft); }
.paper pre, .paper pre code { background: var(--field-2-ink); color: #fff; }
.paper :focus-visible { outline-color: var(--field-2-ink); }

/* inner article */
.article { padding-block: clamp(80px, 12vh, 160px); row-gap: 56px; }
.article__body { grid-column: 1 / span 8; min-width: 0; }
.article__side { grid-column: 10 / -1; display: flex; flex-direction: column; gap: 40px; }
.article__body > h2 { font-size: clamp(1.75rem, 1.2rem + 2vw, 3rem); margin: 2.2em 0 0.6em; max-width: 22ch; }
.article__body > h2:first-child { margin-top: 0; }
.article__body > h3 { font-size: var(--step-lead); letter-spacing: -0.02em; line-height: 1.15; margin: 1.8em 0 0.5em; }
.article__body > p, .article__body > ul, .article__body > ol { max-width: 64ch; }
.article__body > p { margin-top: 0.9em; }
.article__body > h2 + p, .article__body > h3 + p { margin-top: 0; }
.article__body ul, .article__body ol { padding-left: 1.4em; margin: 0.9em 0; }
.article__body li { margin: 0.45em 0; }
.article__body ul { list-style: none; padding-left: 1.6em; }
.article__body ul > li { position: relative; }
.article__body ul > li::before { content: ""; position: absolute; left: -1.5em; top: 0.42em; width: 0.62em; height: 0.62em; background: currentColor; clip-path: polygon(0 0, 62% 0, 100% 38%, 100% 100%, 0 100%); }
.article__body ol li::marker { font-weight: 600; font-variant-numeric: tabular-nums; }
.meta { color: var(--field-2-muted); font-variant-numeric: tabular-nums; }
.side__toc h2 { font-size: var(--step-lead); letter-spacing: -0.02em; margin-bottom: 14px; }
.side__toc ul { list-style: none; margin: 0; padding: 0; }
.side__toc li { margin: 0; }
.side__toc a { display: block; padding: 7px 0; text-decoration-color: transparent; }
@media (hover: hover) and (pointer: fine) { .side__toc a:hover { text-decoration-color: currentColor; } }
.side__pic { margin: 0; }
.side__pic img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; background: var(--field-2-soft); --cut: 40px; }
.side__pic figcaption, .band figcaption { font-size: var(--step-small); margin-top: 10px; color: inherit; }
.paper .side__pic figcaption { color: var(--field-2-muted); }

/* notes: filled tiles with the corner cut */
.note { background: var(--field-2-soft); padding: 22px 26px; margin: 1.6em 0; max-width: 72ch; --cut: 22px; clip-path: polygon(0 0, calc(100% - var(--cut)) 0, 100% var(--cut), 100% 100%, 0 100%); }
.note p { margin: 0; }
.note p + p { margin-top: 0.6em; }
.side .note, .article__side .note { margin: 0; background: var(--field-1); color: var(--field-1-ink); }

/* real tables keep their rules */
.tw { margin: 1.4em 0; overflow-x: auto; }
table { border-collapse: collapse; width: 100%; font-size: var(--step-body); line-height: 1.45; font-variant-numeric: tabular-nums; }
th, td { text-align: left; vertical-align: top; padding: 11px 14px 11px 0; border-bottom: 1px solid #d9d4d8; }
th { font-weight: 600; border-bottom: 2px solid var(--field-2-ink); }
td code { font-size: 0.82em; word-break: break-all; }
td.nowrap { white-space: nowrap; }
.ok { font-weight: 600; }
.part { font-weight: 500; }
.no { font-weight: 600; color: #b0154f; }

/* FAQ: accordion of filled tiles, heading held on the left */
.faq { padding-block: clamp(96px, 14vh, 200px) clamp(72px, 9vh, 120px); align-items: start; }
.faq__head { grid-column: 1 / span 4; position: sticky; top: 96px; }
.faq__head h2 { font-size: var(--step-head); max-width: 7ch; }
.faq__list { grid-column: 5 / -1; display: flex; flex-direction: column; gap: 8px; }
.qa { background: var(--surface); --cut: 20px; clip-path: polygon(0 0, calc(100% - var(--cut)) 0, 100% var(--cut), 100% 100%, 0 100%); transition: background-color var(--t-ui) ease, color var(--t-ui) ease; }
.qa summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 72px; padding: 18px 24px; font-size: var(--step-lead); font-weight: 500; line-height: 1.3; }
.qa summary::-webkit-details-marker { display: none; }
.qa summary i { position: relative; flex: 0 0 16px; height: 16px; }
.qa summary i::before, .qa summary i::after { content: ""; position: absolute; left: 0; top: 6.5px; width: 16px; height: 3px; background: currentColor; transition: transform var(--t-ui) var(--ease-out); }
.qa summary i::after { transform: rotate(90deg); }
.qa[open] { background: var(--accent); color: var(--accent-ink); }
.qa[open] summary i::after { transform: rotate(0deg); }
.qa .qa__a { padding: 0 24px 26px; max-width: calc(52ch + 48px); }
.qa[open] code { background: rgba(13, 6, 11, 0.12); }
@media (hover: hover) and (pointer: fine) { .qa:not([open]):hover { background: var(--field-1); } }

/* full-width band in the motif's shape */
.band { padding-inline: var(--margin); margin: 0; }
.band__frame { position: relative; height: min(78svh, 760px); overflow: clip; background: var(--surface); --cut: clamp(72px, 10vw, 180px); }
.band__frame img { width: 100%; height: 100%; object-fit: cover; }
.band figcaption { color: var(--muted); }

/* intro statement with inline pictures */
.intro { padding-block: clamp(120px, 20vh, 220px); text-align: center; }
.statement { font-size: var(--step-statement); font-weight: 500; line-height: 1.2; letter-spacing: -0.02em; max-width: 50ch; margin-inline: auto; text-wrap: balance; }
.thumb { display: inline-block; height: 0.85em; width: 1.25em; vertical-align: -0.1em; margin-inline: 0.12em; overflow: clip; background: var(--surface); --cut: 0.3em; }
.thumb img { width: 100%; height: 100%; object-fit: cover; }

/* sentences with switches */
.switches__head { padding-bottom: 48px; }
.switches__head h2 { grid-column: 1 / span 6; font-size: var(--step-head); }
.switches__head > div { grid-column: 7 / -1; }
.switches__head p { max-width: 64ch; }
.sband { min-height: max(20vh, 150px); display: flex; align-items: center; transition: background-color var(--t-ui) ease, color var(--t-ui) ease; }
.sband__in { width: 100%; padding: 28px var(--margin); display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); align-items: center; }
.sband__text { grid-column: 1 / span 10; }
.sband__say { font-size: var(--step-statement); font-weight: 500; letter-spacing: -0.02em; line-height: 1.15; color: var(--muted); transition: color var(--t-ui) ease; }
.sband__more { margin-top: 12px; max-width: 70ch; }
.sband__sw { grid-column: 11 / -1; justify-self: end; }
.sband.on .sband__say, html:not(.js) .sband .sband__say { color: inherit; }
.sband.on.f1, html:not(.js) .sband.f1 { background: var(--field-1); color: var(--field-1-ink); }
.sband.on.f2, html:not(.js) .sband.f2 { background: var(--field-2); color: var(--field-2-ink); }
.sband.on.f3, html:not(.js) .sband.f3 { background: var(--surface); color: var(--ink); }
.js .sband:not(.on) .sband__more { display: none; }
[data-ui].sw { font: inherit; font-size: var(--step-statement); background: none; border: 0; padding: 0; color: inherit; cursor: pointer; min-height: 44px; min-width: 44px; display: inline-flex; align-items: center; justify-content: flex-end; }
[data-ui].sw .sw__track { position: relative; display: block; width: 2em; height: 1.1em; border-radius: 1em; background: rgba(255, 255, 255, 0.22); transition: background-color var(--t-ui) ease; }
[data-ui].sw .sw__knob { position: absolute; top: 0.12em; left: 0.12em; width: 0.86em; height: 0.86em; border-radius: 50%; background: #fff; transition: transform var(--t-ui) var(--ease-out); }
[data-ui].sw[aria-checked="true"] .sw__track { background: var(--accent); }
[data-ui].sw[aria-checked="true"] .sw__knob { transform: translateX(0.9em); background: var(--accent-ink); }
.sband.f2 [data-ui].sw .sw__track { background: rgba(16, 20, 33, 0.18); }
.sband.f2 [data-ui].sw[aria-checked="true"] .sw__track { background: var(--field-2-ink); }
.sband.f2 [data-ui].sw[aria-checked="true"] .sw__knob { background: #fff; }
.no-js-hide { display: none; }
.js .no-js-hide { display: revert; }

/* line-up at one type size */
.lineup { padding-block: clamp(96px, 14vh, 200px); }
.lineup__part { font-size: var(--step-lead); font-weight: 600; letter-spacing: -0.02em; line-height: 1.2; color: #b0154f; padding: 20px 0; position: sticky; top: 0; background: var(--field-2); z-index: 1; margin-top: 52px; }
.lineup__group { margin-top: 52px; }
.lineup__group:first-child { margin-top: 0; }
.lineup__group .lineup__part { margin-top: 0; }
.lineup__intro { max-width: 64ch; margin: 0 0 24px; }
.lineup__rows { list-style: none; margin: 0; padding: 0; font-size: var(--step-lead); line-height: 1.5; letter-spacing: -0.01em; }
.lineup__rows li { display: grid; grid-template-columns: 33% 33% 1fr auto; column-gap: var(--gutter); padding: 0.18em 0; }
.lineup__rows li > :last-child { text-align: right; font-variant-numeric: tabular-nums; }
.lineup__rows .soft { color: var(--field-2-muted); }
.lineup__note { margin-top: 28px; max-width: 70ch; }

/* tiles: the guides board */
.tiles { padding-block: clamp(96px, 14vh, 200px); }
.board { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.tile { background: var(--surface); padding: 24px; min-height: 236px; display: flex; flex-direction: column; justify-content: space-between; gap: 18px; text-decoration: none; --cut: 28px; clip-path: polygon(0 0, calc(100% - var(--cut)) 0, 100% var(--cut), 100% 100%, 0 100%); transition: background-color var(--t-hover) ease; }
.tile b { display: block; font-size: var(--step-lead); font-weight: 600; letter-spacing: -0.03em; line-height: 1.05; }
.tile span { color: var(--muted); max-width: 32ch; }
.tile--head { grid-column: span 2; background: var(--accent); color: var(--accent-ink); }
.tile--head h2 { font-size: var(--step-head); max-width: 10ch; }
.tile--head p { max-width: 40ch; }
.tile--pic { margin: 0; padding: 0; grid-column: span 3; overflow: clip; position: relative; }
.tile--pic img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.tile--pic figcaption { position: relative; margin-top: auto; padding: 14px 18px; background: var(--bg); align-self: flex-start; font-size: var(--step-small); color: var(--ink); }
a.tile:active { transform: scale(0.99); }
@media (hover: hover) and (pointer: fine) { a.tile:hover { background: var(--field-1); } a.tile:hover span { color: var(--ink); } }

/* how to start: split with a picture */
.start { padding-block: clamp(96px, 14vh, 200px); align-items: start; row-gap: 48px; }
.start__pic { grid-column: 1 / span 6; margin: 0; }
.start__pic img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: var(--surface); --cut: 64px; }
.start__text { grid-column: 7 / -1; }
.start__text h2 { font-size: var(--step-head); max-width: 12ch; margin-bottom: 36px; }
.start__text ol { padding-left: 1.3em; margin: 0 0 28px; }
.start__text li { margin: 0 0 0.75em; max-width: 60ch; }
.start__text li::marker { font-weight: 600; }
.start figcaption { font-size: var(--step-small); color: var(--muted); margin-top: 10px; }

/* the verifier (a fragment of a working tool; its own conventions) */
[data-ui].vf { background: var(--bg); color: var(--ink); max-width: 640px; padding: 26px 26px 28px; font-size: 15px; line-height: 1.45; border-radius: 4px; }
[data-ui].vf .vf__top { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; flex-wrap: wrap; margin-bottom: 18px; }
[data-ui].vf .vf__title { font-size: 20px; font-weight: 600; letter-spacing: -0.02em; margin: 0; }
[data-ui].vf .vf__src { color: var(--muted); font-size: 14px; }
[data-ui].vf code { background: var(--surface); color: inherit; }
[data-ui].vf fieldset { border: 0; padding: 0; margin: 0; }
[data-ui].vf legend { padding: 0; font-size: 14px; color: var(--muted); margin-bottom: 8px; }
[data-ui].vf .vf__row { display: grid; grid-template-columns: 112px 1fr; gap: 6px 12px; align-items: start; padding: 6px 0; }
[data-ui].vf .vf__os { font-weight: 600; padding-top: 11px; font-size: 14px; }
[data-ui].vf .vf__opts { display: flex; flex-wrap: wrap; gap: 6px; }
[data-ui].vf .vf__opt input { position: absolute; opacity: 0; width: 1px; height: 1px; }
[data-ui].vf .vf__opt span { display: inline-flex; align-items: center; min-height: 40px; padding: 0 12px; background: var(--surface); border: 1px solid #3a2733; border-radius: 3px; cursor: pointer; font-size: 14px; transition: background-color var(--t-hover) ease, border-color var(--t-hover) ease; }
[data-ui].vf .vf__opt input:checked + span { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); font-weight: 600; }
[data-ui].vf .vf__opt input:focus-visible + span { outline: 3px solid #fff; outline-offset: 2px; }
@media (hover: hover) and (pointer: fine) { [data-ui].vf .vf__opt span:hover { border-color: #fff; } }
[data-ui].vf .vf__res { margin-top: 18px; background: var(--surface); border-radius: 3px; padding: 16px 18px; display: none; }
[data-ui].vf .vf__res dl { display: grid; grid-template-columns: 76px 1fr; gap: 6px 12px; margin: 0; }
[data-ui].vf .vf__res dt { color: var(--muted); }
[data-ui].vf .vf__res dd { margin: 0; min-width: 0; }
[data-ui].vf .vf__res code { background: none; padding: 0; font-size: 13px; word-break: break-all; }
[data-ui].vf .vf__res .vf__name code { font-size: 14px; color: #fff; }
[data-ui].vf .vf__res p { margin: 12px 0 0; color: var(--muted); }
[data-ui].vf .vf__res a { display: inline-block; margin-top: 12px; color: var(--ink); font-weight: 600; }
[data-ui].vf .vf__check { margin-top: 16px; display: flex; align-items: center; gap: 12px 16px; flex-wrap: wrap; }
[data-ui].vf .vf__pick { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; background: var(--ink); color: var(--bg); border-radius: 3px; font-weight: 600; cursor: pointer; transition: transform var(--t-press) var(--ease-out); }
[data-ui].vf .vf__pick:active { transform: scale(0.97); }
[data-ui].vf .vf__pick:focus-within { outline: 3px solid #fff; outline-offset: 2px; }
[data-ui].vf .vf__pick input { position: absolute; opacity: 0; width: 1px; height: 1px; }
[data-ui].vf .vf__hint { color: var(--muted); font-size: 14px; }
[data-ui].vf .vf__out { margin-top: 12px; min-height: 1.45em; }
[data-ui].vf .vf__out.is-ok { color: #8fe0a8; }
[data-ui].vf .vf__out.is-bad { color: var(--accent); }
[data-ui].vf .vf__out code { background: none; padding: 0; font-size: 12.5px; word-break: break-all; color: var(--muted); }
[data-ui].vf.drag { outline: 3px dashed var(--accent); outline-offset: 4px; }

/* footer: the mark, built large */
.foot { background: var(--field-1); color: var(--field-1-ink); padding: clamp(48px, 6vh, 72px) var(--margin) 32px; }
.blocks { display: flex; align-items: flex-end; gap: 4px; height: 34svh; min-height: 220px; }
.blocks span::after { content: attr(data-l); }
.blocks span { flex: 1 1 0; display: flex; align-items: flex-end; padding: 0 0 0.04em 0.06em; font-weight: 600; line-height: 0.8; letter-spacing: -0.04em; font-size: min(15vw, 30svh); overflow: clip; --cut: clamp(18px, 3vw, 48px); clip-path: polygon(0 0, calc(100% - var(--cut)) 0, 100% var(--cut), 100% 100%, 0 100%); }
.blocks .b1 { background: var(--bg); color: var(--field-1); height: 100%; }
.blocks .b2 { background: var(--accent); color: var(--field-1); height: 72%; }
.blocks .b3 { background: var(--ink); color: var(--field-1); height: 88%; }
.blocks .b4 { background: var(--surface); color: var(--field-1); height: 64%; }
.foot__cols { margin-top: 56px; row-gap: 32px; }
.foot__links { grid-column: 1 / span 8; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px var(--gutter); }
.foot__links h2 { font-size: var(--step-body); letter-spacing: 0; font-weight: 600; margin-bottom: 10px; }
.foot__links ul { list-style: none; margin: 0; padding: 0; }
.foot__links a { display: inline-block; padding: 5px 0; }
.foot__contact { grid-column: 9 / -1; }
.foot__contact p + p { margin-top: 0.8em; }
.foot__legal { margin-top: 56px; max-width: 72ch; }
.foot__legal p + p { margin-top: 0.7em; }
.foot__last { margin-top: 40px; display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.foot__last .btn { min-height: 44px; font-size: var(--step-body); background: var(--bg); color: var(--ink); }
@media (hover: hover) and (pointer: fine) { .foot__last .btn:hover { background: var(--accent); color: var(--accent-ink); } }

/* language links: plain text links, the current language in bold */
.langs { margin-top: 20px; font-size: var(--step-small); color: var(--muted); }
.langs a { margin-left: 0.7em; color: var(--ink); }
.langs a[aria-current] { font-weight: 600; text-decoration: none; }
.foot .langs { color: inherit; }
/* Korean: break between words, not inside them */
html[lang=ko] h1, html[lang=ko] h2, html[lang=ko] h3, html[lang=ko] p, html[lang=ko] li, html[lang=ko] summary, html[lang=ko] td, html[lang=ko] dd, html[lang=ko] a { word-break: keep-all; overflow-wrap: anywhere; }
html[lang=ko] h1, html[lang=ko] h2 { letter-spacing: -0.02em; }

/* 404 */
.nf { min-height: 70svh; padding-block: 12vh; }
.nf h1 { font-size: var(--step-display); }

/* ---------- tablet ---------- */
@media (max-width: 1000px) {
  .hero h1, .phero__text { grid-column: 1 / -1; }
  .hero__pic { grid-column: 7 / -1; grid-row: auto; }
  .hero__lead { grid-column: 1 / span 6; grid-row: 2; }
  .hero__top { align-items: start; }
  .hero__note { grid-column: 1 / -1; order: 2; padding: 48px 0 56px; }
  .stage { grid-column: 1 / -1; margin-left: calc(var(--margin) * -1); padding: 56px var(--margin); }
  .phero__pic { grid-column: 1 / span 8; }
  .article__body { grid-column: 1 / -1; }
  .article__side { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr; gap: 24px var(--gutter); }
  .article__side .side__toc { grid-column: 1 / -1; }
  .faq__head { grid-column: 1 / -1; position: static; margin-bottom: 36px; }
  .faq__head h2 { max-width: none; }
  .faq__list { grid-column: 1 / -1; }
  .board { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .start__pic, .start__text { grid-column: 1 / -1; }
  .foot__links { grid-column: 1 / -1; }
  .foot__contact { grid-column: 1 / -1; }
  .switches__head h2, .switches__head > div { grid-column: 1 / -1; }
  .switches__head > div { margin-top: 28px; }
}

/* ---------- phone ---------- */
@media (max-width: 640px) {
  :root { --margin: 20px; }
  .nav { padding-top: 20px; }
  .nav__links { gap: 4px 18px; }
  .hero { padding-top: 40px; }
  .hero h1 { font-size: 10.4vw; }
  .phero h1 { font-size: 10.4vw; }
  .hero__pic { grid-column: 1 / -1; aspect-ratio: 16 / 10; --cut: 40px; }
  .hero__lead { grid-column: 1 / -1; grid-row: auto; }
  .hero__lead .lead, .phero .lead { margin-top: 24px; font-size: 18px; }
  .stage { padding: 72px 16px 40px; --cut: 72px; min-height: 0; }
  .phero__pic { grid-column: 1 / -1; --cut: 40px; }
  .article__side { grid-template-columns: 1fr; }
  .statement { font-size: 20px; text-align: left; line-height: 1.3; }
  .intro { text-align: left; padding-block: 96px; }
  .sband { min-height: 132px; }
  .sband__text { grid-column: 1 / span 9; }
  .sband__sw { grid-column: 10 / -1; }
  .sband__say { font-size: 6.4vw; }
  .sband__more { font-size: 15px; }
  [data-ui].sw { font-size: 26px; }
  .lineup__rows li { display: block; padding: 9px 0; font-size: var(--step-small); color: var(--field-2-muted); }
  .lineup__rows li > :first-child { display: block; font-size: 22px; color: var(--field-2-ink); margin-bottom: 2px; }
  .lineup__rows li > :last-child { text-align: left; }
  .lineup__rows li > :nth-child(2)::after, .lineup__rows li > :nth-child(3)::after { content: ", "; }
  .board { gap: 6px; }
  .tile { min-height: 168px; padding: 18px; }
  .tile b { font-size: 20px; }
  .tile span { font-size: 15px; }
  .tile--head { grid-column: 1 / -1; min-height: 120px; }
  .tile--pic { grid-column: 1 / -1; min-height: 220px; }
  .qa summary { font-size: 18px; min-height: 64px; padding: 16px 20px; }
  .qa .qa__a { padding: 0 20px 22px; font-size: 16px; }
  .faq__head h2 { font-size: 9vw; }
  .foot__links { grid-template-columns: 1fr 1fr; }
  .blocks { height: 22svh; min-height: 150px; }
  .band__frame { height: 62svh; --cut: 64px; }
  table, thead, tbody, tr, th, td { display: block; }
  table tr:first-child { display: none; }
  table tr { padding: 12px 0; border-bottom: 1px solid #d9d4d8; }
  td { border: 0; padding: 2px 0; }
  td[data-label]::before { content: attr(data-label); display: block; font-size: 14px; font-weight: 600; color: var(--field-2-muted); margin-top: 6px; }
  td.nowrap { white-space: normal; }
  [data-ui].vf { padding: 20px 16px; }
  [data-ui].vf .vf__row { grid-template-columns: 1fr; }
  [data-ui].vf .vf__os { padding-top: 4px; }
  [data-ui].vf .vf__opt span { min-height: 44px; }
  [data-ui].vf .vf__res dl { grid-template-columns: 1fr; gap: 2px; }
  [data-ui].vf .vf__res dd { margin-bottom: 8px; }
}

/* ---------- motion ---------- */
@media (prefers-reduced-motion: no-preference) {
  .js .hero h1 .ln > span, .js .phero h1 .ln > span { display: inline-block; transform: translateY(105%); animation: line-up 900ms var(--ease-expo) forwards; animation-delay: calc(120ms + var(--i, 0) * 100ms); }
  .js [data-load] { opacity: 0; transform: translateY(14px); animation: rise 600ms var(--ease-out) forwards; animation-delay: var(--d, 400ms); }
  .js .stage[data-load] { transform: translateY(32px); animation-duration: 900ms; }
  .js .shutter { clip-path: polygon(0 0, calc(100% - var(--cut)) 0, 100% 0, 100% 0, 0 0); transition: clip-path 1100ms var(--ease-in-out); }
  .js .shutter img { transform: scale(1.12); transition: transform 1500ms var(--ease-soft); }
  .js .shutter.is-in { clip-path: polygon(0 0, calc(100% - var(--cut)) 0, 100% var(--cut), 100% 100%, 0 100%); }
  .js .shutter.is-in img { transform: none; }
  .js [data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity 700ms var(--ease-out), transform 900ms var(--ease-expo); transition-delay: calc(var(--r, 0) * 75ms); }
  .js [data-reveal].is-in { opacity: 1; transform: none; }
  .qa .qa__a { animation: none; }
  .qa[open] .qa__a { animation: rise 420ms var(--ease-out); }
  @supports (animation-timeline: view()) {
    .drift .dr { height: 110%; animation: drift linear both; animation-timeline: view(); animation-range: cover 0% cover 100%; }
  }
}
.ln { display: block; overflow: clip; padding-bottom: 0.08em; margin-bottom: -0.08em; }
@keyframes line-up { to { transform: none; } }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes drift { from { transform: translateY(-7%); } to { transform: translateY(0); } }
