:root {
  --bg: #ffffff;
  --surface: #f4f4f4;
  --ink: #1d1d1d;
  --muted: #6b6b6b;
  --accent: #006cff;
  --accent-strong: #0057d6;
  --accent-ink: #ffffff;
  --field-1: #111111;
  --field-1-ink: #ffffff;
  --signal: #4d9bff;

  --font-text: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;

  --display: min(11.4vw, 23svh);
  --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, 0.95rem + 1.1vw, 1.875rem);
  --step-row: clamp(1.1875rem, 0.9rem + 0.9vw, 1.625rem);
  --step-head: clamp(2.125rem, 1rem + 4.6vw, 5rem);

  --margin: clamp(16px, 2.2vw, 32px);
  --gutter: clamp(12px, 1.6vw, 24px);
  --nav: 56px;
  --gap: clamp(96px, 13vw, 200px);
  --radius: 28px;

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --t-press: 140ms;
  --t-hover: 180ms;
  --stagger-line: 90ms;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: var(--nav); scroll-behavior: smooth; }
html.is-smooth { scroll-behavior: auto; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-text);
  font-size: var(--step-body);
  line-height: 1.6;
  word-break: keep-all;
  overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
}
h1, h2, p, ul, ol, dl, dd, figure, pre { margin: 0; }
ul, ol { padding: 0; list-style: none; }
canvas { display: block; }
a { color: inherit; }
button { font: inherit; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }

.display { font-size: var(--display); font-weight: 600; line-height: 0.98; letter-spacing: -0.06em; }
.head { font-size: var(--step-head); font-weight: 600; line-height: 1.1; letter-spacing: -0.04em; text-wrap: balance; }
.lead { font-size: var(--step-lead); font-weight: 500; line-height: 1.4; letter-spacing: -0.025em; text-wrap: pretty; }
.small { font-size: var(--step-small); line-height: 1.45; }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 26px;
  border: 0;
  border-radius: 999px;
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: transform var(--t-press) var(--ease-out), background-color var(--t-hover) ease;
}
.button:active { transform: scale(0.97); }
.button--small { min-height: 40px; padding: 0 18px; font-size: 0.9375rem; }
.button--quiet { background: var(--surface); color: var(--ink); }
@media (hover: hover) and (pointer: fine) {
  .button:hover { background: var(--accent-strong); }
  .button--quiet:hover { background: #e6e6e6; }
}

/* Navigation: a plain band that steps out of the way while scrolling down. */
.nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: clamp(16px, 3vw, 40px);
  height: var(--nav);
  padding-inline: var(--margin);
  background: var(--bg);
  color: var(--ink);
  transition: transform 300ms var(--ease-out), background-color 300ms ease, color 300ms ease;
}
.nav.is-away { transform: translateY(-100%); }
.nav[data-tone="dark"], .nav.on-dark { background: var(--field-1); color: var(--field-1-ink); }
.logo { --logo-ink: var(--ink); --logo-blue: var(--accent); display: block; width: auto; }
.nav[data-tone="accent"] { background: var(--accent); color: var(--accent-ink); }
.nav[data-tone="accent"] .button { background: var(--accent-ink); color: var(--accent); }
.nav[data-tone="accent"] .logo { --logo-ink: #ffffff; --logo-blue: #ffffff; }
.nav__mark { margin-right: auto; }
.logo--line { height: 26px; transition: transform var(--t-press) var(--ease-out); }
.nav__mark:active .logo { transform: scale(0.97); }
.nav[data-tone="dark"] .logo, .nav.on-dark .logo { --logo-ink: #ffffff; }
.nav__links { display: flex; gap: clamp(16px, 2.4vw, 32px); font-size: 0.9375rem; font-weight: 500; }
.nav__links a {
  text-decoration: underline;
  text-decoration-color: transparent;
  text-underline-offset: 0.3em;
  text-decoration-thickness: 2px;
  transition: text-decoration-color var(--t-hover) ease;
}
.nav__links a:hover { text-decoration-color: currentColor; }

/* Masked lines */
.lines .line { display: block; overflow: clip; overflow-clip-margin: 0.04em; }
.lines [data-line] { display: block; }

/* Opening. Finished composition first: the sentence, the tangle, the claim. */
.opening .scene-stage { padding: calc(var(--nav) + 24px) var(--margin) 0; }
.opening__room { display: none; }
.strands { display: none; }
html.js .strands { display: block; width: 100%; height: 34svh; margin-block: 12px; }
.opening__say { display: flex; flex-direction: column; align-items: flex-start; gap: clamp(12px, 1.4vw, 20px); max-width: 36rem; margin-top: clamp(16px, 2vw, 28px); }
.opening__end { padding-block: var(--gap); }

/* Opening, live: the stage holds still while the tangle comes undone and the lines close over the page. */
html.js .opening:not(.is-rest) .scene-stage { position: relative; height: 100svh; overflow: clip; padding: 0; background: var(--bg); }
html.js .opening.is-live .scene-stage { position: sticky; }
html.js .opening:not(.is-rest) .strands { position: absolute; inset: 0; height: 100%; margin: 0; touch-action: pan-y; }
html.js .opening:not(.is-rest) .opening__title {
  position: absolute;
  z-index: 2;
  inset: calc(var(--nav) + clamp(8px, 2.4svh, 28px)) var(--margin) auto;
  display: flex;
  gap: 0.24em;
}
/* The knot's room, held where it has always been so the graphic does not follow the type. */
html.js .opening:not(.is-rest) .opening__room {
  position: absolute;
  display: block;
  inset: calc(var(--nav) + clamp(8px, 2.4svh, 28px) + var(--display) * 0.98) 0 calc(clamp(20px, 3.2svh, 36px) + var(--display) * 0.98);
  visibility: hidden;
}
html.js .opening:not(.is-rest) .opening__say {
  position: absolute;
  z-index: 3;
  inset: auto var(--margin) clamp(20px, 3.2svh, 36px);
  flex-direction: row;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--gutter);
  margin: 0;
  max-width: none;
}
html.js .opening:not(.is-rest) .opening__say .lead { max-width: min(36rem, 44vw); }
html.js .opening:not(.is-rest) .opening__end {
  position: absolute;
  z-index: 4;
  inset: 0;
  display: flex;
  align-items: center;
  padding: 0 var(--margin);
  pointer-events: none;
}
html.js .opening:not(.is-rest) .opening__claim { color: var(--field-1-ink); opacity: 0; }

@media (prefers-reduced-motion: no-preference) {
  html.js .opening [data-line] { transform: translateY(105%); animation: load-line 900ms var(--ease-expo) forwards; animation-delay: calc(80ms + var(--i) * var(--stagger-line)); }
  html.js .opening [data-load] { opacity: 0; transform: translateY(12px); animation: load-rise 500ms var(--ease-out) forwards; animation-delay: var(--d); }
}
@keyframes load-line { to { transform: none; } }
@keyframes load-rise { to { opacity: 1; transform: none; } }

/* Path: one line changes from a tangle into a plan, a made thing, and a rising business. */
.path { background: var(--field-1); color: var(--field-1-ink); }
.path .scene-stage { padding: clamp(64px, 9vw, 120px) var(--margin); }
.path canvas { display: none; }
html.js .path canvas { display: block; width: 100%; height: clamp(320px, 60svh, 640px); margin-bottom: 32px; touch-action: pan-y; cursor: grab; }
html.js .path canvas.is-held { cursor: grabbing; }
.nb { white-space: nowrap; }
.path__beats { display: grid; gap: 0.5em; }
.path__note { margin-top: clamp(16px, 2vw, 28px); }
.path__count { display: none; font-variant-numeric: tabular-nums; margin-right: 1em; }

.path.is-live .scene-stage { padding: 0; }
html.js .path.is-live canvas { position: absolute; inset: 0; height: 100%; margin: 0; }
.path.is-live .path__copy {
  position: absolute;
  left: var(--margin);
  bottom: clamp(20px, 4svh, 44px);
  width: min(56%, 54rem);
  pointer-events: none;
}
.path.is-live .path__beats { gap: 0; min-height: calc(var(--step-head) * 1.1 * 2); align-content: end; }
.path.is-live .path__beats li { grid-area: 1 / 1; align-self: end; }
.path__beats li:last-child { max-width: 28em; font-size: var(--step-lead); font-weight: 500; line-height: 1.4; letter-spacing: -0.025em; }
.path.is-live .path__count { display: inline; }
.path__note[aria-hidden="true"] { display: none; }
.path.is-live .path__note[aria-hidden="true"] { display: block; }

/* A line of type that the scroll pushes sideways. */
.pushed { overflow: clip; padding-block: clamp(48px, 7vw, 104px) clamp(24px, 3vw, 48px); }
.pushed__line { padding-inline: var(--margin); white-space: nowrap; width: max-content; color: #e6e6e6; will-change: transform; }
/* The face's letters are built from overlapping parts, so the fill paints over the inner half of the stroke. */
@supports (paint-order: stroke fill) {
  .pushed__line { color: var(--bg); -webkit-text-stroke: 3px #c4c4c4; paint-order: stroke fill; }
}

/* Tool: three fields side by side, and one thread that crosses all of them without a break. */
.tool { padding-top: clamp(48px, 6vw, 96px); }
.tool__top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 12px var(--gutter); padding-inline: var(--margin); }
.tool__note { color: var(--muted); }
.tool__strip { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: clamp(32px, 4.4vw, 64px); }
.tool__step { display: grid; grid-template-rows: auto minmax(0, 1fr) auto; min-height: clamp(560px, 86svh, 860px); padding-block: clamp(20px, 2.4vw, 36px); }
.tool__step--ink { background: var(--field-1); color: var(--field-1-ink); }
.tool__step--blue { background: var(--accent); color: var(--accent-ink); }
.tool__step--pale { background: var(--surface); color: var(--ink); }
.tool__verb { margin: 0; padding-inline: var(--margin); font-size: var(--step-head); font-weight: 600; line-height: 1.1; letter-spacing: -0.04em; }
.tool__plot { display: none; }
/* Absolute, so a canvas resized to its box can never push that box taller. */
html.js .tool__plot { display: block; position: relative; min-height: 200px; margin-block: clamp(16px, 2vw, 28px); }
.tool__plot canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.tool__say { display: grid; align-content: start; gap: 6px; min-height: 6.6em; padding-inline: var(--margin); }
.tool__read { font-size: 0.9375rem; font-weight: 600; font-variant-numeric: tabular-nums; }

/* Segmented control */
[data-ui].segment, [data-ui] .segment {
  position: relative;
  display: inline-grid;
  grid-template-columns: repeat(var(--n, 2), minmax(0, 1fr));
  padding: 4px;
  background: var(--surface);
  border-radius: 999px;
}
.segment[hidden] { display: none !important; }
.segment__thumb {
  position: absolute;
  top: 4px;
  bottom: 4px;
  left: 4px;
  width: calc((100% - 8px) / var(--n, 2));
  background: var(--ink);
  border-radius: 999px;
  transform: translateX(calc(var(--at, 0) * 100%));
  transition: transform 420ms var(--ease-out);
}
.segment button {
  position: relative;
  min-height: 40px;
  padding: 0 clamp(12px, 1.4vw, 20px);
  border: 0;
  background: none;
  color: var(--ink);
  font-size: 0.9375rem;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
  border-radius: 999px;
  transition: color var(--t-hover) ease, transform var(--t-press) var(--ease-out);
}
.segment button:active { transform: scale(0.97); }
.segment button[aria-pressed="true"] { color: var(--bg); }

/* Lab: a real network training in the page. */
.lab { padding: var(--gap) var(--margin) clamp(72px, 8vw, 120px); }
.lab__lead { max-width: 34em; margin-top: clamp(12px, 1.6vw, 24px); }
[data-ui].lab__grid {
  display: grid;
  grid-template-columns: minmax(0, 8fr) minmax(0, 4fr);
  gap: var(--gutter);
  margin-top: clamp(32px, 4.4vw, 64px);
}
[data-ui].lab__grid[hidden] { display: none; }
[data-ui] .lab__field {
  position: relative;
  min-height: clamp(360px, 68svh, 680px);
  overflow: clip;
  background: var(--surface);
  border-radius: var(--radius);
  cursor: crosshair;
  touch-action: pan-y;
}
[data-ui] .lab__field canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
[data-ui] .lab__empty { position: absolute; inset: 0; display: grid; place-items: center; font-size: var(--step-lead); font-weight: 500; pointer-events: none; }
[data-ui] .lab__empty[hidden] { display: none; }
[data-ui] .lab__panel { display: flex; flex-direction: column; gap: clamp(14px, 1.6vw, 22px); }
[data-ui] .lab__control { display: grid; gap: 6px; font-size: 0.9375rem; font-weight: 500; }
[data-ui] .lab__control .segment { display: grid; }
[data-ui] .lab__stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gutter); margin-top: 4px; }
[data-ui] .lab__stats dt { font-size: 0.9375rem; font-weight: 500; }
[data-ui] .lab__stats dd {
  font-size: clamp(1.375rem, 1rem + 0.9vw, 1.875rem);
  font-weight: 650;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
  line-height: 1.15;
  white-space: nowrap;
}
[data-ui] .lab__curve { flex: 1; min-height: 72px; background: var(--surface); border-radius: 18px; overflow: clip; }
[data-ui] .lab__curve canvas { width: 100%; height: 100%; }
[data-ui] .lab__actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }

/* Flow: requests run through two written rules. */
.flow { padding: clamp(64px, 8vw, 120px) var(--margin); background: var(--field-1); color: var(--field-1-ink); }
.flow__row { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(24px, 3vw, 48px); margin-top: clamp(32px, 4.4vw, 64px); }
.flow__copy { display: flex; flex-direction: column; gap: clamp(14px, 1.8vw, 24px); }
.flow__hint { margin-top: auto; }
.flow__hint[hidden] { display: none; }
[data-ui].flow__graph { position: relative; height: clamp(380px, 62svh, 620px); }
[data-ui].flow__graph[hidden] { display: none; }
[data-ui].flow__graph canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
[data-ui] .flow__start, [data-ui] .flow__gate, [data-ui] .flow__bin { position: absolute; top: 0; left: 0; will-change: transform; }
[data-ui] .flow__start { font-size: 0.9375rem; font-weight: 600; white-space: nowrap; }
[data-ui] .flow__gate {
  display: grid;
  gap: 1px;
  min-height: 56px;
  padding: 8px 18px;
  border: 1.5px solid rgba(255, 255, 255, 0.55);
  border-radius: 20px;
  background: var(--field-1);
  color: var(--field-1-ink);
  text-align: center;
  cursor: pointer;
  transition: border-color var(--t-hover) ease, background-color var(--t-hover) ease;
}
[data-ui] .flow__gate b { font-size: 0.9375rem; font-weight: 600; white-space: nowrap; }
[data-ui] .flow__gate small { font-size: 0.8125rem; color: var(--signal); font-weight: 600; }
[data-ui] .flow__gate:focus-visible { outline-color: var(--signal); }
@media (hover: hover) and (pointer: fine) {
  [data-ui] .flow__gate:hover { border-color: var(--signal); background: #1b1d28; }
}
[data-ui] .flow__bin { display: grid; font-size: 0.9375rem; line-height: 1.25; white-space: nowrap; }
[data-ui] .flow__bin b { font-weight: 600; }
[data-ui] .flow__bin span {
  font-size: clamp(1.375rem, 1rem + 0.9vw, 1.875rem);
  font-weight: 650;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
  line-height: 1.1;
}

/* Record: the list works the way Nungil does. What you look at gets an outline; keep looking and it presses. */
.record { padding: clamp(64px, 8vw, 120px) var(--margin); background: var(--accent); color: var(--accent-ink); }
.record :focus-visible { outline-color: #ffffff; }
.record__top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 24px var(--gutter); }
.record__hint { max-width: 32em; margin-top: clamp(12px, 1.6vw, 24px); text-wrap: balance; }
.record__hint[hidden] { display: none; }
.hint-wide { display: none; }
.record .segment { background: var(--accent-strong); }
.record .segment__thumb { background: #ffffff; }
.record .segment button { color: #ffffff; }
.record .segment button[aria-pressed="true"] { color: var(--accent); }
.record__body { display: flex; flex-direction: column; margin-top: clamp(32px, 4.4vw, 64px); }
.rec__panel { display: none; }
html.js .rec__panel { display: block; order: -1; position: sticky; top: 0; z-index: 3; padding-block: 8px; background: var(--accent); }
.rec__dots { width: 100%; height: clamp(150px, 24svh, 230px); }
.rec__say { display: none; }
.rec__say-meta { display: flex; flex-wrap: wrap; gap: 0 1em; margin-top: 4px; font-size: 0.9375rem; font-weight: 500; font-variant-numeric: tabular-nums; }
.rec__wrap { position: relative; margin-inline: -12px; }
.rec__list { position: relative; z-index: 1; }
.rec { display: grid; grid-template-rows: 1fr; transition: grid-template-rows 380ms var(--ease-out), opacity 200ms ease, color var(--t-hover) ease; }
.rec.is-out { grid-template-rows: 0fr; opacity: 0; }
.rec__clip { min-height: 0; overflow: clip; }
.rec__row { display: grid; grid-template-columns: minmax(0, 1fr); gap: 4px var(--gutter); padding: 14px 12px; }
.rec__date { font-size: 0.9375rem; font-weight: 500; font-variant-numeric: tabular-nums; white-space: nowrap; }
.rec__title { font-size: var(--step-row); font-weight: 600; line-height: 1.25; letter-spacing: -0.025em; margin: 0; }
.rec__result { font-weight: 500; line-height: 1.4; }
.rec__desc { max-width: 38em; margin-top: 6px; font-size: var(--step-small); font-weight: 500; line-height: 1.55; }
.rec__desc a { display: inline-block; margin-top: 6px; font-weight: 600; text-underline-offset: 0.18em; text-decoration-thickness: 2px; }
[data-ui].rec__ring, [data-ui].rec__mark { position: absolute; top: 0; left: 0; right: 0; border-radius: 18px; pointer-events: none; will-change: transform, height; }
[data-ui].rec__ring { z-index: 2; overflow: clip; border: 2px solid #ffffff; }
[data-ui].rec__ring i { position: absolute; inset: 0; display: block; background: #ffffff; opacity: 0.2; transform: scaleX(0); transform-origin: left center; }
[data-ui].rec__mark { z-index: 0; display: none; background: #ffffff; }
html:not(.js) [data-ui].rec__ring { display: none; }

@media (min-width: 1024px) and (hover: hover) and (pointer: fine) {
  html.js .hint-wide { display: inline; }
  html.js .hint-narrow { display: none; }
  html.js .record__body { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(32px, 4vw, 64px); align-items: start; }
  html.js .rec__wrap { grid-column: 1; grid-row: 1; }
  html.js .rec__panel { grid-column: 2; grid-row: 1; order: 0; top: calc(var(--nav) + 12px); padding: 0; background: none; }
  html.js .rec__dots { height: clamp(240px, 44svh, 420px); }
  html.js .rec__say { display: block; margin-top: clamp(16px, 2vw, 28px); }
  html.js .rec__row { grid-template-columns: 9.5em minmax(0, 1fr); align-items: baseline; cursor: pointer; }
  html.js .rec__date { grid-column: 1; grid-row: 1; }
  html.js .rec__name { grid-column: 2; grid-row: 1; }
  html.js [data-ui].rec__mark { display: block; }
  html.js .rec.is-on { color: var(--accent); }
}

/* Contact: two sets of lines meet and interlock above the ways to reach the company. */
.contact { padding-block: clamp(64px, 8vw, 120px); }
.contact__weave { display: none; }
html.js .contact__weave { display: block; width: 100%; height: clamp(180px, 36svh, 380px); touch-action: pan-y; }
.contact__body { margin-top: clamp(40px, 5vw, 72px); padding-inline: var(--margin); }
.reach { display: grid; grid-auto-flow: column; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: repeat(2, auto); gap: clamp(14px, 1.6vw, 22px) var(--gutter); margin-top: clamp(32px, 4vw, 56px); }
.reach a { display: grid; grid-template-columns: 6em minmax(0, 1fr); column-gap: 12px; align-items: baseline; text-decoration: none; transition: transform var(--t-press) var(--ease-out); transform-origin: left center; }
.reach small { grid-column: 2; font-size: 0.9375rem; font-weight: 500; }
.reach a:active { transform: scale(0.98); }
.reach span { font-size: 0.9375rem; font-weight: 500; }
.reach b { font-size: min(var(--step-lead), 5.1vw); font-weight: 650; letter-spacing: -0.025em; font-variant-numeric: tabular-nums; white-space: nowrap; transition: color var(--t-hover) ease; }
@media (hover: hover) and (pointer: fine) {
  .reach a:hover b { color: var(--accent); }
}

/* Company details: the page closes on the logo and the registered facts. */
.foot {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 9fr);
  gap: clamp(32px, 4vw, 64px) var(--gutter);
  padding: clamp(48px, 6vw, 88px) var(--margin) var(--margin);
  background: var(--field-1);
  color: var(--field-1-ink);
}
.foot a { color: inherit; text-underline-offset: 0.2em; }
.foot__logo { display: block; width: fit-content; align-self: start; transition: transform var(--t-press) var(--ease-out); }
.foot__logo:active { transform: scale(0.97); }
.foot__logo:focus-visible, .foot a:focus-visible { outline-color: var(--signal); }
.logo--stack { --logo-ink: #ffffff; height: clamp(72px, 7vw, 104px); }
.foot__info { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(20px, 2.4vw, 32px) var(--gutter); }
.foot__info dt { font-size: var(--step-small); font-weight: 500; color: #b4b4b4; }
.foot__info dd { margin-top: 2px; }
.foot__wide { grid-column: span 2; }
.foot__end { grid-column: 1 / -1; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; font-size: var(--step-small); font-weight: 500; letter-spacing: 0.02em; }

/* Quiet layer */
@media (prefers-reduced-motion: no-preference) {
  .js [data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity 700ms var(--ease-out), transform 900ms var(--ease-out); transition-delay: var(--d, 0ms); }
  .js [data-reveal].is-in { opacity: 1; transform: none; }

  [data-lines] .line { display: block; overflow: clip; overflow-clip-margin: 0.04em; }
  [data-lines] .line > span { display: block; }
  .is-split .line > span { transform: translateY(110%); }
  .is-split.is-in .line > span { transform: none; transition: transform 900ms var(--ease-expo) calc(var(--i) * var(--stagger-line)); }
}

@media (max-width: 1023px) {
  .tool__strip { grid-template-columns: minmax(0, 1fr); }
  .tool__step { min-height: 0; }
  html.js .tool__plot { height: clamp(200px, 34svh, 320px); }
  .tool__say { min-height: 0; }
  .reach { grid-auto-flow: row; grid-template-columns: minmax(0, 1fr); grid-template-rows: none; }
}

/* Phone: its own composition */
@media (max-width: 767px) {
  .reach a { grid-template-columns: 5.4em minmax(0, 1fr); column-gap: 8px; }
  :root { --display: min(25.4vw, 17svh); --radius: 22px; }
  .nav__links { display: none; }
  html.js .opening:not(.is-rest) .opening__title { bottom: calc(var(--say-h, 160px) + var(--margin) + 8px); inset-inline: var(--margin); flex-direction: column; justify-content: space-between; gap: 0; }
  html.js .opening:not(.is-rest) .opening__room { bottom: calc(var(--say-h, 160px) + var(--margin) + 8px + var(--display) * 0.98); }
  html.js .opening:not(.is-rest) .opening__say { inset: auto var(--margin) var(--margin); flex-direction: column; align-items: flex-start; }
  html.js .opening:not(.is-rest) .opening__say .lead { max-width: none; }

  html.js .path.is-live .path__copy { width: auto; right: var(--margin); }
  .path.is-live .path__beats { min-height: calc(var(--step-head) * 1.1 * 2); }

  [data-ui].lab__grid { grid-template-columns: minmax(0, 1fr); }
  [data-ui] .lab__field { min-height: 0; aspect-ratio: 1 / 1; }
  [data-ui] .lab__curve { flex: none; height: 84px; }

  .flow__row { grid-template-columns: minmax(0, 1fr); }
  [data-ui].flow__graph { height: 520px; }

  .foot { grid-template-columns: minmax(0, 1fr); }
  .foot__info { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .foot__wide, .foot__info div:nth-last-child(-n + 2) { grid-column: 1 / -1; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .nav, .button, .segment__thumb { transition: none; }
  .pushed__line { white-space: normal; width: auto; }
}
