:root {
  --bg: #e8e8e3;
  --surface: #dcdcd6;
  --ink: #181715;
  --muted: #55544e;
  --accent: #bfb21a;
  --accent-ink: #181715;
  --dark: #181715;
  --dark-ink: #e8e8e3;
  --dark-surface: #26241f;
  --ok: #2f7d4f;
  --warn: #b5471f;
  --margin: clamp(16px, 3vw, 40px);
  --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.7vw, 1.625rem);
  --step-head: clamp(2.25rem, 1.3rem + 3.6vw, 4.5rem);
  --radius: 10px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: "Switzer", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: var(--step-body); line-height: 1.5; letter-spacing: -0.005em;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
.dark :focus-visible { outline-color: var(--accent); }
::selection { background: var(--accent); color: var(--accent-ink); }
h1, h2, h3 { font-weight: 600; letter-spacing: -0.04em; line-height: 0.98; margin: 0; }
h1 { font-size: var(--step-head); max-width: 18ch; }
h2 { font-size: clamp(1.9rem, 1.2rem + 2.6vw, 3.4rem); max-width: 18ch; }
h3 { font-size: var(--step-lead); letter-spacing: -0.02em; line-height: 1.15; }
p { margin: 0; }
.wrap { padding-inline: var(--margin); }

.bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 22px var(--margin); }
.bar .mark { font-weight: 600; text-decoration: none; letter-spacing: -0.02em; }
.bar nav { display: flex; align-items: center; gap: 20px; }
.bar nav a.link { text-decoration: none; font-size: 1rem; }
.bar nav a.link:hover { text-decoration: underline; }
.dark .bar { color: var(--dark-ink); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 0 22px;
  background: var(--accent); color: var(--accent-ink); border: 0; border-radius: var(--radius);
  font: inherit; font-weight: 600; text-decoration: none; cursor: pointer;
  transition: transform .15s ease, background-color .15s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(.98); }
.btn.quiet { background: var(--surface); color: var(--ink); }
.dark .btn.quiet { background: var(--dark-surface); color: var(--dark-ink); }

.hero { padding-block: clamp(24px, 5vw, 72px) clamp(56px, 8vw, 120px); }
.hero .lede { max-width: 40ch; margin-top: 28px; font-size: var(--step-lead); line-height: 1.3; letter-spacing: -0.015em; }
.hero .actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }
.hero .stage { margin-top: clamp(32px, 5vw, 64px); }

section.band { padding-block: clamp(72px, 10vw, 160px); }
section.band.dark { background: var(--dark); color: var(--dark-ink); }
section.band.soft { background: var(--surface); }

.row { display: grid; grid-template-columns: repeat(12, 1fr); gap: clamp(20px, 3vw, 48px); align-items: center; }
.row + .row { margin-top: clamp(72px, 9vw, 140px); }
.row .say { grid-column: 1 / span 5; }
.row .say p { margin-top: 18px; max-width: 42ch; color: var(--ink); }
.dark .row .say p { color: var(--dark-ink); }
.row .show { grid-column: 6 / span 7; min-width: 0; }
.row.flip .say { grid-column: 8 / span 5; order: 2; }
.row.flip .show { grid-column: 1 / span 7; order: 1; }
.row.narrow .show { grid-column: 7 / span 5; }
.row.narrow .say { grid-column: 1 / span 5; }

[data-ui] { background: #f4f4f0; color: #181715; border-radius: 14px; overflow: hidden; }
[data-ui].onDark { background: #0f0e0c; color: #e8e8e3; }
[data-ui].onDark pre { white-space: pre-wrap; word-break: break-word; }
[data-ui] .pad { padding: clamp(16px, 2vw, 28px); }
[data-ui] label { font-size: 14px; color: #55544e; display: block; margin-bottom: 6px; }
[data-ui] input[type=text], [data-ui] input[type=number], [data-ui] select {
  width: 100%; min-height: 44px; font: inherit; font-size: 16px; padding: 0 12px; color: inherit;
  background: #e8e8e3; border: 0; border-radius: 8px;
}
[data-ui] .chip, [data-ui] button.chip {
  display: inline-flex; align-items: center; min-height: 36px; padding: 0 14px; border: 0; border-radius: 999px;
  font: inherit; font-size: 14px; background: #dcdcd6; color: #181715; cursor: pointer;
}
[data-ui] .chip[aria-pressed=true] { background: #181715; color: #e8e8e3; }
[data-ui] button.act {
  min-height: 44px; padding: 0 16px; border: 0; border-radius: 8px; font: inherit; font-size: 15px; font-weight: 600;
  background: #181715; color: #e8e8e3; cursor: pointer; transition: transform .15s ease;
}
[data-ui] button.act:hover { transform: translateY(-1px); }
[data-ui] button.act.alt { background: #dcdcd6; color: #181715; }
[data-ui] .big { font-size: clamp(2rem, 1.2rem + 3vw, 3.6rem); font-weight: 600; letter-spacing: -0.04em; line-height: 1.05; font-variant-numeric: tabular-nums; }
[data-ui] .small { font-size: 14px; color: #3d3c37; }
[data-ui] .grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
[data-ui] .list > div { display: flex; justify-content: space-between; gap: 12px; padding: 14px 16px; background: #e8e8e3; border-radius: 8px; font-variant-numeric: tabular-nums; }
[data-ui] .list > div + div { margin-top: 4px; }
[data-ui] .list b { font-weight: 600; }
[data-ui] pre, pre.code { max-width: 100%;
  margin: 0; padding: 16px 18px; background: #181715; color: #e8e8e3; border-radius: 10px;
  font: 13.5px/1.6 ui-monospace, Menlo, Consolas, monospace; overflow-x: auto; white-space: pre;
}
[data-ui] pre .k { color: #d5c93a; } [data-ui] pre .d { color: #9e9d95; } [data-ui] pre .g { color: #7fcf9f; } [data-ui] pre .r { color: #ee8a66; }
.dark [data-ui] pre, .dark pre.code { background: #0f0e0c; }
pre.code { overflow-x: auto; }

.switchband { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 26px var(--margin); background: var(--bg); transition: background-color .25s ease; min-height: 132px; }
.switchband p.s { font-size: clamp(1.4rem, 1rem + 1.6vw, 2.4rem); font-weight: 600; letter-spacing: -0.03em; line-height: 1.1; max-width: 26ch; color: var(--muted); transition: color .25s ease; }
.switchband .more { font-size: var(--step-small); margin-top: 8px; max-height: 0; opacity: 0; overflow: hidden; transition: max-height .3s ease, opacity .3s ease; max-width: 52ch; }
.switchband[aria-checked=true] .more { max-height: 90px; opacity: 1; }
.switchband[aria-checked=true] p.s { color: var(--ink); }
.switchband[aria-checked=true] { background: var(--tone, var(--accent)); }
.toggle { flex: none; position: relative; width: 64px; height: 36px; border-radius: 999px; background: #181715; border: 0; padding: 0; cursor: pointer; }
.toggle::after { content: ""; position: absolute; top: 4px; left: 4px; width: 28px; height: 28px; border-radius: 50%; background: #e8e8e3; transition: transform .2s ease; }
.switchband[aria-checked=true] .toggle::after { transform: translateX(28px); }
.switchband { cursor: pointer; width: 100%; border: 0; text-align: left; font: inherit; color: inherit; }

.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
@media (max-width: 1000px) { .tiles { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .tiles { grid-template-columns: 1fr; } }
.tile { display: block; padding: 22px; background: var(--surface); border-radius: 14px; text-decoration: none; min-height: 200px; transition: transform .2s ease, background-color .2s ease; }
.tile:hover { transform: translateY(-4px); background: var(--accent); }
.tile img { display: block; width: 100%; height: auto; aspect-ratio: 16/10; object-fit: cover; border-radius: 8px; margin-bottom: 16px; }
.tile h3 { margin-bottom: 10px; }
.tile p { color: var(--ink); font-size: 1.0625rem; }
.tile:hover p { color: var(--ink); }
.tile .kind { margin-top: 18px; font-weight: 600; font-size: 1rem; }

footer.close { background: var(--dark); color: var(--dark-ink); padding: clamp(56px, 8vw, 120px) var(--margin) 28px; }
footer.close .name { font-size: clamp(3rem, 14vw, 12rem); font-weight: 600; letter-spacing: -0.05em; line-height: .9; margin: clamp(40px, 6vw, 96px) 0 24px; }
footer.close .links { display: flex; gap: 12px; flex-wrap: wrap; }
footer.close small { display: block; margin-top: 28px; color: #c9c8c0; font-size: 1rem; }

.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn, .tile, .toggle::after { transition: none; }
}
@media (max-width: 860px) {
  .row, .row.flip, .row.narrow { display: block; }
  .row .show, .row.flip .show, .row.narrow .show { margin-top: 28px; }
  .bar nav a.link { display: none; }
  h1 { max-width: 16ch; }
}

.phone { width: min(100%, 380px); margin-inline: auto; }
.canvas-wrap { position: relative; }
.canvas-wrap canvas { display: block; width: 100%; height: 360px; touch-action: none; border-radius: 10px; cursor: crosshair; }

.collage { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 12px; margin-top: clamp(32px, 5vw, 64px); }
.collage img { display: block; width: 100%; height: 100%; object-fit: cover; border-radius: 12px; aspect-ratio: 16/10; }
@media (max-width: 700px) { .collage { grid-template-columns: 1fr; } }

[data-ui].onDark .list > div { background: #26241f; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.hero { padding-block: 8px clamp(48px, 7vw, 100px); }
.hero .lede { margin-top: 20px; }
.hero .actions { margin-top: 20px; }
.hero .stage { margin-top: 28px; }
