:root {
  color-scheme: dark;
  --bg: #0d0e11;
  --card: #16171c;
  --ink: #eceae4;
  --muted: #a5a7ae;
  --line: #2c2e35;
  --en: #3F8CFF;
  --ko: #FF6B3D;
  --en-soft: rgba(63, 140, 255, .18);
  --ko-soft: rgba(255, 107, 61, .16);
  --sans: "Pretendard Variable", Pretendard, "Apple SD Gothic Neo", "Malgun Gothic", system-ui, sans-serif;
  --mono: "IBM Plex Mono", "Pretendard Variable", "Malgun Gothic", ui-monospace, monospace;
}

/* the wall */
#wall { position: fixed; inset: 0; width: 100%; height: 100%; }
.sweep { position: relative; z-index: 1; height: 100vh; height: 100svh; }
.stage { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; display: flex; flex-direction: column; }

main, .wrap { position: relative; z-index: 1; }
/* everything below the hero sits on the page colour, so the wall behind (fixed) never shows through under the hero */
main, body > .wrap { background: var(--bg); }
main { display: flow-root; } /* keeps the demo window's top margin inside main, so no strip of wall shows above it */
/* the text sections line up with the wide ones: same left edge, lines kept to a readable length */
main .wrap, body > .wrap { width: min(100% - 32px, 1160px); }
section.s > * { max-width: 720px; }

/* wide sections: the full width of the page, as big as the hero */
.wide { position: relative; z-index: 1; width: min(100% - 32px, 1160px); margin: 120px auto 0; }
.wide > h2 { margin-bottom: 24px; font-size: 15px; font-weight: 500; color: var(--muted); }
.wide .rules { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px 32px; }
.wide .rules b { font-size: clamp(22px, 2.4vw, 30px); font-weight: 700; letter-spacing: -.03em; line-height: 1.25; word-break: keep-all; }
.wide .rules span { display: block; margin-top: 10px; font-size: 16px; }
.wide .rules .typo { display: inline; margin: 0; font-size: inherit; color: inherit; text-decoration: underline wavy var(--ko); text-decoration-thickness: 2px; text-underline-offset: .18em; text-decoration-skip-ink: none; } /* a real typo, marked the way a spell checker would */
.spec { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 36px 32px; }
.spec li { display: flex; flex-direction: column; }
.spec b { font: 500 clamp(34px, 4.4vw, 56px)/1.05 var(--mono); letter-spacing: -.03em; }
.spec span { margin-top: 10px; font-weight: 600; font-size: 17px; }
.spec p { margin-top: 4px; color: var(--muted); font-size: 15px; word-break: keep-all; }
.bench-stats { padding-block: 40px; border-top: 1px solid var(--line); } /* the benchmark headline: three ratios, numbers only, a row like the ones under it */
.bench-stats b { font-size: clamp(48px, 6vw, 80px); color: var(--ko); }
.bench-stats .stats-lead { margin: 0 0 18px; color: var(--muted); font-size: 15px; font-weight: 500; }
.tablewrap { margin-top: 48px; overflow-x: auto; border: 1px solid var(--line); border-radius: 10px; background: var(--card); }
.tablewrap table { width: 100%; border-collapse: collapse; font-size: 15px; }
.tablewrap th, .tablewrap td { padding: 10px 16px; text-align: right; border-bottom: 1px solid var(--line); white-space: nowrap; font-variant-numeric: tabular-nums; }
.tablewrap th:first-child, .tablewrap td:first-child { text-align: left; white-space: normal; word-break: keep-all; }
.tablewrap thead th { font-weight: 600; font-size: 14px; color: var(--muted); }
.tablewrap tbody tr:last-child td { border-bottom: 0; }
.tablewrap tfoot td { border-top: 1px solid #4a4d56; border-bottom: 0; font-weight: 600; }
.tablewrap tfoot td:last-child { color: var(--ko); }
.tablewrap tfoot tr + tr td { border-top: 0; } /* two summary rows under one rule */
@media (max-width: 560px) { .tablewrap table { font-size: 14px; } .tablewrap th, .tablewrap td { padding: 8px 10px; } }
.cardhead { margin-top: 56px; font-size: 15px; font-weight: 500; color: var(--muted); }
.cardhead + .tablewrap { margin-top: 18px; }
.modelcard { display: grid; grid-template-columns: max-content 1fr; gap: 10px 32px; margin-top: 18px; max-width: 900px; }
.modelcard div { display: contents; }
.modelcard dt { color: var(--muted); }
.modelcard dd { word-break: keep-all; }
@media (max-width: 560px) { .modelcard { grid-template-columns: 1fr; gap: 2px; } .modelcard dd { margin-bottom: 12px; } }
.specnote { margin-top: 24px; color: var(--muted); font-size: 14px; word-break: keep-all; }
@media (max-width: 900px) { .spec { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .spec { grid-template-columns: 1fr; gap: 24px; } }
@media (max-width: 900px) { .wide .rules { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .wide { margin-top: 80px; } .wide .rules { grid-template-columns: 1fr; } }

/* the header stays at the top; over the hero it is bare, past it a thin bar with a blurred background */
.top { position: fixed; top: 0; left: 0; right: 0; z-index: 10; padding-inline: max(16px, (100% - 1160px) / 2); display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 12px; font-size: 15px; }
/* the way back to the portfolio, before the Nunchi mark: Minseok Kim / Nunchi */
.crumbs { display: inline-flex; align-items: center; gap: 10px; min-width: 0; }
.crumbs .home { color: var(--muted); text-decoration: none; font-size: 15px; white-space: nowrap; }
.crumbs .home:hover { color: var(--ink); text-decoration: none; }
.crumbs .sep { color: #4a4d56; }
.brand { display: inline-flex; align-items: center; font-weight: 600; text-decoration: none; font-size: 17px; }
/* the app icon's mark, without its tile, before the name (Nunchi repo: branding/nunchi-mark-white.svg, white lane in the text colour) */
.brand-mark { width: 1.55em; height: .9em; margin-right: .45em; color: var(--ink); }
.top nav { display: flex; gap: 20px; }
.top a { padding-block: 8px; }
.top nav a { text-decoration: none; color: var(--muted); white-space: nowrap; }
@media (max-width: 940px) { .top nav a:not(.lang):not(.gh) { display: none; } } /* the way back, the mark and six links need about 840px; below 940 only GitHub and the language stay */
.top nav .gh { display: inline-flex; align-items: center; gap: 6px; }
.top nav .gh svg { width: 15px; height: 15px; fill: currentColor; }
@media (max-width: 420px) { .top nav .gh span { display: none; } } /* on the narrowest phones the mark alone, so the header stays one line */
.top nav a:hover { text-decoration: none; color: var(--ink); }

/* the wall falls away behind the title and towards the bottom, leaving a faint texture at the edges */
.veil { position: absolute; inset: 0; opacity: 0; transition: opacity 1.2s cubic-bezier(.16, 1, .3, 1); pointer-events: none;
  background:
    radial-gradient(ellipse 50% 60% at 50% 48%, var(--bg) 42%, rgba(13, 14, 17, 0) 100%),
    linear-gradient(var(--bg), rgba(13, 14, 17, 0) 84px, rgba(13, 14, 17, 0) 62%, var(--bg)); }
.veil.on { opacity: 1; }
/* the header stays out of the opening sweep and comes up with the title, over the veil's dark top edge */
.top { opacity: 0; border-bottom: 1px solid transparent; transition: opacity 1.2s cubic-bezier(.16, 1, .3, 1), background-color .2s ease-out, border-color .2s ease-out; animation: reveal 1.2s 5s forwards; }
.top.shown, .top.solid { opacity: 1; animation: none; } /* set by wall.js; no :has(), which older Firefox drops */
.top.solid { background: var(--bg); border-bottom-color: var(--line); } /* past the hero: a flat bar of the page colour and one rule, the same height */
.stage { padding-top: 64px; }
section[id] { scroll-margin-top: 112px; } /* below the 69px header, with room above the section title */
section.s[id] { scroll-margin-top: -8px; } /* these carry their own 120px top padding: the title lands where the others do */
@media (max-width: 560px) { section.s[id] { scroll-margin-top: 32px; } } /* 80px padding here */

.copy { position: relative; z-index: 1; margin: auto; width: min(100% - 32px, 820px); text-align: center; opacity: 0; transform: translateY(16px); transition: opacity 1.2s cubic-bezier(.16, 1, .3, 1), transform 1.2s cubic-bezier(.16, 1, .3, 1); animation: reveal 1.2s 5s forwards; }
.copy.on { opacity: 1; transform: none; animation: none; }
@keyframes reveal { to { opacity: 1; transform: none; } }
.copy h1 { font-size: clamp(40px, 6vw, 72px); line-height: 1.08; font-weight: 700; letter-spacing: -.04em; word-break: keep-all; }
.copy h1, .copy .sub, .copy .eyebrow { text-wrap: balance; }
.copy .eyebrow { margin-bottom: 18px; color: var(--muted); font-size: 15px; word-break: keep-all; }
.copy .sub { max-width: 600px; margin: 18px auto 0; color: var(--muted); font-size: clamp(17px, 1.6vw, 19px); line-height: 1.5; font-weight: 400; letter-spacing: -.01em; word-break: keep-all; }
.copy .lead { margin-top: 18px; max-width: 620px; color: var(--muted); font-size: clamp(16px, 2.3vw, 19px); line-height: 1.6; letter-spacing: -.01em; word-break: keep-all; }
.copy code { color: var(--ink); }
/* the Korean headline is the conversion itself: the keys as typed (English blue, key font), then the word (Korean orange) */
.copy h1 .hk { font-family: var(--mono); font-weight: 500; font-size: .92em; letter-spacing: -.02em; color: var(--ink); }
.copy h1 .hko { color: var(--ink); }
.copy h1 .hk.fixed { font-family: inherit; font-weight: inherit; font-size: 1em; letter-spacing: inherit; } /* dkssud, once fixed, set like the rest of the title */
.nobr { white-space: nowrap; } /* 한/영 never splits at the slash */
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 18px; margin-top: 22px; font-size: 15px; }
.btn { display: inline-flex; align-items: center; gap: 9px; padding: 11px 16px; border-radius: 6px; background: var(--ink); color: var(--bg); text-decoration: none; font-weight: 600; }
.btn:hover { color: var(--bg); opacity: .85; }
.btn .win { width: 15px; height: 15px; fill: currentColor; }
/* the source and the model: same size as the download button, quieter */
.btn.ghost { padding: 10px 15px; border: 1px solid var(--line); background: var(--card); color: var(--ink); font-weight: 500; }
.btn.ghost:hover { color: var(--ink); border-color: var(--muted); opacity: 1; }
.btn .ico { width: 16px; height: 16px; fill: currentColor; }
.btn .emoji { width: auto; height: auto; font-size: 16px; line-height: 1; }
.actions { gap: 10px; }
#download .actions { margin-top: 0; }
.dlnote { margin-top: 14px; color: var(--muted); font-size: 14px; }

/* demo: a text box in the hero */
.demo { margin-top: 26px; border: 1px solid #3a3d46; border-radius: 12px; background: #15161a; overflow: hidden; text-align: left; transition: border-color .2s, box-shadow .2s; }
.typer { min-height: 116px; max-height: 172px; overflow-y: auto; padding: 16px 18px; font-size: 22px; line-height: 1.6; white-space: pre-wrap; word-break: break-word; cursor: text; outline: none; }
.placeholder { margin-left: 8px; color: var(--muted); font-size: 18px; }
.placeholder code { font-size: 17px; }
.hint-touch { display: none; }
@media (pointer: coarse) { .hint-touch { display: inline; } .hint-keys { display: none; } }
.modebtn { flex: none; min-width: 40px; font: 600 13px var(--sans); padding: 3px 8px; border: 1px solid var(--line); border-radius: 6px; background: none; color: var(--en); cursor: pointer; }
.modebtn[data-mode="ko"] { color: var(--ko); }
.clearbtn { flex: none; width: 28px; height: 28px; margin-right: -6px; font: 400 20px/1 var(--sans); border: 0; border-radius: 6px; background: none; color: var(--muted); cursor: pointer; }
.clearbtn:hover { color: var(--ink); }
.meter { height: 2px; background: var(--en); width: 0; transition: width .15s; }
.w { border-radius: 3px; }
.w.fix, .w.split, .w.revise, .w.revert { animation: pop .5s ease-out; }
.w.toko { background: var(--ko-soft); }
.w.toen { background: var(--en-soft); }
.w.split { background: linear-gradient(90deg, var(--en-soft), var(--ko-soft)); }
@keyframes pop { from { box-shadow: 0 0 0 3px var(--en); } to { box-shadow: 0 0 0 0 transparent; } }
.caret { position: relative; display: inline-block; width: 2px; height: 1.05em; margin-left: 1px; vertical-align: -.15em; background: var(--ink); opacity: 0; }
.typer .caret { opacity: 1; animation: blink 1.1s steps(2, jump-none) infinite; }
/* the bar blinks, not the element, so the dot beside it stays steady */
@keyframes blink { 50% { background-color: transparent; } }

.under { display: flex; align-items: center; gap: 12px; min-height: 40px; padding: 5px 12px; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); white-space: nowrap; }
.under .keys { flex: 1; min-width: 0; overflow: hidden; display: flex; justify-content: flex-end; font: 400 13px/1.6 var(--mono); }
.under .keys:empty { flex: 1; }
.en { color: var(--en); }
.ko { color: var(--ko); }
.log { flex: none; display: flex; }
.log li { display: flex; gap: 8px; align-items: baseline; }
.log code { font-size: 13px; color: var(--ink); }
.status:empty { display: none; }
.status.err { color: var(--ko); }

.examples { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.examples li { max-width: 100%; }
.examples button { max-width: 100%; font: 400 14px var(--sans); padding: 7px 11px; border: 1px solid var(--line); border-radius: 6px; background: rgba(23, 24, 29, .85); color: var(--ink); cursor: pointer; text-align: left; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.examples button:hover { border-color: var(--ink); }

/* sections */
section.s { padding-block: 120px 0; }
section.s h2 { margin-bottom: 24px; font-size: 15px; font-weight: 500; color: var(--muted); }
section.s > p { word-break: keep-all; }
section.s > p + p { margin-top: 18px; }

.rules { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px 28px; }
.rules b { display: block; font-weight: 600; }
.rules span { color: var(--muted); font-size: 15px; word-break: keep-all; }



.list li { padding: 0 0 20px; word-break: keep-all; }
.list b { font-weight: 600; }
/* lessons: title, then what it means, then an example on its own line */
/* lessons and coming next: one row per item across the page, the title and its number on the left, the story on the right */
.conclusion { max-width: 820px; color: var(--ink); font-size: clamp(18px, 1.7vw, 21px); line-height: 1.75; letter-spacing: -.01em; word-break: keep-all; } /* the conclusion: one paragraph, no figure */
.lessons { border-bottom: 1px solid var(--line); }
.lessons > li { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); grid-template-rows: auto 1fr; column-gap: 64px; padding-block: 36px; border-top: 1px solid var(--line); }
.small { margin-top: 32px; color: var(--muted); font-size: 14px; word-break: keep-all; }
.lessons b { grid-column: 1; font-size: clamp(20px, 2.1vw, 25px); font-weight: 700; letter-spacing: -.02em; line-height: 1.35; word-break: keep-all; }
.lessons p { grid-column: 2; grid-row: 1 / span 2; color: var(--muted); word-break: keep-all; }
.lessons .ex { grid-column: 1; grid-row: 2; margin-top: 16px; color: var(--ink); font-size: 18px; font-weight: 500; line-height: 1.5; }
.lessons .ex span { display: block; margin-bottom: 2px; color: var(--muted); font-size: 13px; font-weight: 400; }
/* figures: inline SVG drawn from the experiment logs, scaled to their column */
.fig { margin: 0; }
.fig svg { display: block; width: 100%; height: auto; overflow: visible; }
.fig .tk { font: 400 12px var(--mono); fill: var(--muted); }
.fig .ax { font: 500 13px var(--sans); fill: var(--muted); }
.fig .cat { font: 400 13px var(--sans); fill: var(--ink); }
.fig .val { font: 500 13px var(--mono); fill: var(--ink); }
.fig .mono { font: 500 15px var(--mono); fill: var(--ink); }
.fig figcaption { margin-top: 10px; color: var(--muted); font-size: 13.5px; line-height: 1.6; word-break: keep-all; }
.fig .fig-n { color: var(--ink); font-weight: 600; }
.fig .fig-t { margin: 0 0 14px; color: var(--ink); font-size: 17px; font-weight: 600; word-break: keep-all; }
/* lessons with a figure, laid out like the experiments: the title and its story on the left, the figure on the right */
#lessons .lessons > li { grid-template-areas: "t fig" "text fig"; }
#lessons .lessons > li > b { grid-area: t; }
#lessons .lessons > li > p { grid-area: text; margin-top: 12px; }
#lessons .lessons .fig { grid-area: fig; justify-self: end; width: 100%; max-width: 420px; }
.fig-key { display: flex; flex-wrap: wrap; gap: 4px 16px; margin: 10px 0 0; padding: 0; list-style: none; color: var(--muted); font-size: 13px; line-height: 1.5; }
.fig-key li { display: inline-flex; align-items: center; gap: 7px; }
.fig-key i { flex: none; display: block; }
.fig-key .k-line { width: 18px; height: 2px; background: var(--k); }
.fig-key .k-dash { width: 18px; border-top: 2px dashed var(--k); }
.fig-key .k-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--k); }
.fig-key .k-hollow { width: 9px; height: 9px; border-radius: 50%; border: 1.5px solid var(--k); box-sizing: border-box; }
/* experiments: one row per figure, like the lessons: the title and what it shows on the left, the plot on the right */
#experiments .figs, #benchmark .figs { border-bottom: 1px solid var(--line); }
.xfig { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); grid-template-rows: auto 1fr; grid-template-areas: "t plot" "cap plot"; column-gap: 64px; padding-block: 40px; border-top: 1px solid var(--line); }
.xfig .fig-t { grid-area: t; margin: 0; font-size: clamp(20px, 2.1vw, 25px); font-weight: 700; letter-spacing: -.02em; line-height: 1.35; }
.xfig figcaption { grid-area: cap; margin-top: 12px; font-size: 16px; line-height: 1.7; }
.xfig .fig-plot { grid-area: plot; justify-self: end; width: 100%; max-width: 480px; } /* the plot sits against the right edge, the text against the left */
/* the benchmark table: title and caption on the 5:7 grid of the rows below, the table across both under them */
.xtable { grid-template-rows: auto auto; grid-template-areas: "t cap" "plot plot"; }
.xtable figcaption { margin-top: 0; }
.xtable .fig-plot { justify-self: stretch; max-width: none; margin-top: 24px; }
.tablewrap.bench { margin-top: 28px; }
/* overall bars: two panels side by side, one bar per model */
.bench-bars { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 64px; }
.bench-bars svg { display: block; width: 100%; height: auto; overflow: visible; }
.bench-bars .bbig { font: 600 15px var(--mono); }
.bench-bars .cat { font: 600 14px var(--sans); fill: var(--ink); }
.bench-bars .ax { font: 500 13px var(--sans); fill: var(--muted); }
/* the results table, laid out like a model release: groups on the left, our column shaded */
.bench td.grp { vertical-align: top; color: var(--muted); font-size: 13px; white-space: nowrap; border-right: 1px solid var(--line); }
.bench tr.g-first td { border-top: 1px solid #3a3d44; }
.bench th.me, .bench td.me { background: rgba(255, 107, 61, .08); box-shadow: inset 1px 0 0 rgba(255, 107, 61, .55), inset -1px 0 0 rgba(255, 107, 61, .55); }
.bench td.alt { background: rgba(255, 255, 255, .06); }
.bench thead th { vertical-align: bottom; }
.bench th .metric { display: block; margin-bottom: 18px; color: var(--muted); font-size: 13px; font-weight: 400; } /* what the numbers are, in the empty top of the first header cell */
.bench thead tr + tr th:first-child { text-align: right; } /* the first name in the second header row is not the table's first column */
.bench th.grp-h { text-align: center; color: var(--muted); font-weight: 500; border-bottom: 1px solid #3a3d44; padding-bottom: 6px; } /* one heading over the released input methods */
.bench td.set { text-align: left; white-space: normal; word-break: keep-all; color: var(--ink); }
.bench td.grp { text-align: left; }
.fig-key .k-sq { width: 10px; height: 10px; border-radius: 2px; background: var(--k); }
.chart-cap { margin-top: 10px; color: var(--muted); font-size: 13.5px; line-height: 1.6; word-break: keep-all; }
.chart-cap .fig-n { color: var(--ink); font-weight: 600; }
@media (max-width: 760px) { .bench-bars { grid-template-columns: minmax(0, 1fr); } }
.bench td { color: var(--muted); }
.bench td:first-child, .bench .best { color: var(--ink); }
.bench .best { font-weight: 700; } /* the best value in its row */
.bench .tbd { color: #5b5e68; }
.bench tfoot td.best { color: var(--ko); }
.bench tfoot td:last-child:not(.best) { color: var(--muted); } /* the spec table colours its last total cell; here only the best is coloured */
@media (max-width: 760px) {
  .lessons > li { grid-template-columns: 1fr; grid-template-rows: none; padding-block: 28px; }
  .lessons b, .lessons p, .lessons .ex, .lessons .fig { grid-column: 1; }
  .lessons b { grid-row: 1; }
  .lessons .ex, .lessons .fig { grid-row: 2; margin-top: 10px; }
  .xfig { grid-template-columns: minmax(0, 1fr); grid-template-rows: none; grid-template-areas: "t" "plot" "cap"; padding-block: 28px; }
  .xfig .fig-plot { margin-top: 16px; }
  .xtable { grid-template-areas: "t" "cap" "plot"; }
  .xtable figcaption { margin-top: 12px; }
  #lessons .lessons > li { grid-template-areas: "t" "fig" "text"; }
  #lessons .lessons .fig { justify-self: stretch; margin-top: 16px; }
  .xfig .tk { font-size: 14px; } /* the plot shrinks to about 0.7 here: keep its text near 10px */
  .xfig .ax { font-size: 15px; }
  .lessons p { grid-row: 3; margin-top: 12px; }
}
.sources { font-size: 15px; color: var(--muted); }
.sources li { padding-bottom: 6px; }

footer { margin-top: 120px; padding-block: 20px 36px; border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; }
.credits { display: grid; grid-template-columns: max-content 1fr; gap: 6px 28px; }
.credits div { display: contents; }
.credits dt { color: var(--muted); }
.credits dd { color: var(--ink); }

@media (max-width: 560px) {
  section.s { padding-top: 80px; }
  footer { margin-top: 80px; }
  .veil { background:
    radial-gradient(ellipse 130% 44% at 50% 50%, var(--bg) 62%, rgba(13, 14, 17, 0) 100%),
    linear-gradient(var(--bg), rgba(13, 14, 17, 0) 72px, rgba(13, 14, 17, 0) calc(100% - 96px), var(--bg)); }
  body { font-size: 16px; }
  .top nav a:not(.lang):not(.gh) { display: none; }
  .rules { grid-template-columns: 1fr; }
  .typer { font-size: 20px; }
}

/* how it works, as looping scenes (loops.js) */
:root { --spring: cubic-bezier(.34, 1.56, .64, 1); }
@supports (transition-timing-function: linear(0, 1)) {
  :root { --spring: linear(0, .009, .035 2.1%, .141, .281 6.7%, .723 12.9%, .938 16.7%, 1.017, 1.077, 1.121, 1.149 24.3%, 1.159, 1.163, 1.161, 1.154 29.9%, 1.129 32.8%, 1.051 39.6%, 1.017 43.1%, .991, .977 51%, .974 53.8%, .975 57.1%, .997 69.8%, 1.003 76.9%, 1); }
}
/* phones: each scene, then its text. Wide screens: rows, each text beside its scene (loops.js picks which plays) */
.loops { display: flex; flex-direction: column; }
.loop-stages, .loop-steps { display: contents; }
.loop-stage { container-type: inline-size; }
.loop-stage[data-step="0"] { order: 0; }
.loop-steps li:nth-child(1) { order: 1; }
.loop-stage[data-step="1"] { order: 2; }
.loop-steps li:nth-child(2) { order: 3; }
.loop-stage[data-step="2"] { order: 4; }
.loop-steps li:nth-child(3) { order: 5; }
.loop-steps li { margin-bottom: 72px; }
/* a scene that is not playing is held, dimmed */
.loop-stage { opacity: .32; transition: opacity .35s ease-out; }
.loop-stage.on { opacity: 1; }
@media (min-width: 900px) {
  /* rows: each text beside its scene */
  .loops { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); column-gap: 56px; row-gap: 48px; align-items: center; }
  .loop-steps li { grid-column: 1; margin: 0; }
  .loop-steps li:nth-child(1) { grid-row: 1; }
  .loop-steps li:nth-child(2) { grid-row: 2; }
  .loop-steps li:nth-child(3) { grid-row: 3; }
  .loop-stage { grid-column: 2; margin: 0; }
  .loop-stage[data-step="0"] { grid-row: 1; }
  .loop-stage[data-step="1"] { grid-row: 2; }
  .loop-stage[data-step="2"] { grid-row: 3; }
}
}
}
.loop-stage { min-height: clamp(130px, 16vw, 210px); display: flex; align-items: center; justify-content: flex-start; margin-bottom: 8px; }
.loop-text h3 { font-size: clamp(19px, 2vw, 26px); font-weight: 600; letter-spacing: -.01em; word-break: keep-all; }
.loop-text h3 + p { max-width: 700px; margin-top: 6px; color: var(--muted); font-size: clamp(15px, 1.4vw, 17px); word-break: keep-all; }

.lk { display: flex; gap: .5em; min-height: 1.75em; font: 500 34px/1 var(--mono); font: 500 min(76px, 100cqw / 14.2)/1 var(--mono); } /* fixed size where container units are missing */
.lw { display: flex; }
.lk .k { display: inline-flex; flex-direction: column; align-items: center; }
.lk .c { color: #8b8f99; transition: color .25s ease-out; }
.k.ko .c { color: var(--ko); }
.k.en .c { color: var(--en); }
.lk .tick { align-self: stretch; height: 4px; margin: .3em 1.5px 0; border-radius: 2px; transform: scaleX(0); transition: transform .45s var(--spring), background-color .25s ease-out; }
.k.ko .tick, .seg.ko .tick { background: var(--ko); transform: none; }
.k.en .tick, .seg.en .tick { background: var(--en); transform: none; }
.lk .seg { display: inline-flex; flex-direction: column; align-items: stretch; }
.lk .seg .c { font-family: var(--sans); font-weight: 600; letter-spacing: -.02em; }
.seg.ko .c { color: var(--ko); }
.seg.en .c { color: var(--en); }
.lk .seg:not(.ko):not(.en) .c { color: var(--ink); }
.lk .lw { position: relative; }
.lk .again { position: absolute; left: 0; bottom: 100%; margin-bottom: 16px; padding: 4px 10px; border: 1px solid var(--line); border-radius: 99px; background: var(--card); color: var(--ink); font: 600 13px/1.2 var(--sans); white-space: nowrap; }
.lk .lcaret { position: relative; width: 2px; height: 1.05em; margin-left: 1px; margin-top: -.05em; background: var(--ink); animation: blink 1.1s steps(2, jump-none) infinite; }


/* reduced motion: the scripts already hold everything still; this takes the CSS fades and pops down to nothing */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}

/* short screens (an iPhone SE is 667px tall): the hero still fits in one screen */
@media (max-height: 740px) {
  .stage { padding-top: 56px; }
  .copy .sub { margin-top: 12px; }
  .copy .actions { margin-top: 22px; }
}

/* calm hero: centred, two pill buttons */
.copy .actions { justify-content: center; margin-top: 32px; }
/* above the title, the model in one line, the way a paper or a model release opens; it links to the specs */
.copy .meta { display: flex; flex-wrap: wrap; justify-content: center; gap: 2px 12px; width: fit-content; max-width: 100%; margin: 0 auto 20px; color: var(--muted); font: 400 13px/1.6 var(--mono); letter-spacing: 0; text-decoration: none; }
.copy .meta span:first-child { color: var(--ink); }
.copy .meta small { font-size: inherit; }
.copy .meta i { color: #4a4d56; font-style: normal; }
.copy .meta:hover { color: var(--ink); text-decoration: none; }
@media (max-width: 560px) { .copy .meta { gap: 2px 8px; margin-bottom: 16px; font-size: 12px; } .copy .meta small { display: none; } } /* a phone: the numbers alone, still one line */
.btn.pill { border-radius: 999px; padding: 12px 20px; }
.btn.pill.ghost { border-color: transparent; background: rgba(255, 255, 255, .07); }
.btn.pill.ghost:hover { background: rgba(255, 255, 255, .12); }

/* the demo, a plain input box right under the hero */
.trywin { position: relative; z-index: 1; width: min(100% - 32px, 920px); margin: 24px auto 0; scroll-margin-top: 80px; }
.window { border: 1px solid var(--line); border-radius: 14px; background: #15161a; box-shadow: 0 40px 120px rgba(0, 0, 0, .55); overflow: hidden; transition: border-color .2s, box-shadow .2s; }
.window .demo { margin: 0; border: 0; border-radius: 0; background: none; box-shadow: none; }
.window .typer { min-height: 200px; max-height: 300px; padding: 28px 32px; font-size: 26px; line-height: 1.7; }
.window .placeholder { font-size: 19px; }
.tryfoot { display: flex; flex-wrap: nowrap; align-items: center; gap: 8px 12px; padding: 12px 16px; border-top: 1px solid #23252c; color: var(--muted); font-size: 13px; }
.tryfoot > span { flex: none; }
/* one row of chips beside the label, scrolled sideways; the row fades out at its right edge */
.tryfoot .examples { flex: 1; min-width: 0; margin: 0; flex-wrap: nowrap; overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: none; -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 28px), transparent); mask-image: linear-gradient(to right, #000 calc(100% - 28px), transparent); }
.tryfoot .examples::-webkit-scrollbar { display: none; }
.tryfoot .examples::after { content: ""; flex: 0 0 20px; } /* room so the last chip clears the fade */
.tryfoot .examples li { flex: none; max-width: none; }
.tryfoot .examples button { max-width: none; }
.tryfoot .examples button { border-radius: 999px; background: none; padding: 6px 12px; font-size: 13px; }
.trynote { margin-top: 16px; text-align: center; color: var(--muted); font-size: 13px; }
@media (max-width: 560px) {
  .window .typer { min-height: 150px; padding: 18px 18px; font-size: 20px; }
  .tryfoot > span { display: none; }
}
