/* Logolith site: sections, top to bottom. Each one is one idea and one thing to touch. */
section { position: relative; padding: var(--section) 0; }

/* 1. Hero */
.hero { padding-top: clamp(120px, 16vw, 180px); padding-bottom: clamp(56px, 8vw, 96px); min-height: min(100svh, 980px); display: flex; flex-direction: column; justify-content: center; }
.hero-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: center; }
.hero-title { font: 300 clamp(58px, 8.8vw, 136px)/0.9 var(--serif); letter-spacing: -0.04em; text-wrap: balance; }
.hero-lead { margin-top: clamp(24px, 3vw, 36px); font-size: clamp(17px, 1.45vw, 19px); line-height: 1.6; color: var(--ink-2); max-width: 31em; }
.hero-lead b { color: var(--ink); font-weight: 600; }
.hero-try { margin-top: 36px; display: grid; gap: 10px; max-width: 460px; }
.try-label { font: 500 13px var(--sans); color: var(--ink-3); }
.try-field input {
  width: 100%; border: 0; border-bottom: 1.5px solid var(--line-strong); background: transparent; padding: 4px 0 10px;
  font: 400 clamp(32px, 3.4vw, 44px)/1.1 var(--serif); letter-spacing: -0.02em; color: var(--ink); caret-color: var(--coral); border-radius: 0;
  transition: border-color .3s var(--ease);
}
.try-field input::placeholder { color: var(--ink-3); opacity: .55; font-style: italic; }
.try-field input:focus { outline: none; border-bottom-color: var(--ink); }
.try-caret { display: none; }
.try-fonts button { min-height: 36px; padding: 0 14px; font-size: 13px; }
.hero-cta { margin-top: 36px; display: flex; flex-wrap: wrap; align-items: center; gap: 14px 28px; }

.hero-stage { position: relative; display: grid; justify-items: center; gap: 28px; }
.stage-btn { width: min(100%, 440px); aspect-ratio: 1; border-radius: 26%; filter: drop-shadow(0 50px 60px rgba(23, 23, 28, .28)) drop-shadow(0 12px 18px rgba(23, 23, 28, .16)); transition: transform .5s var(--spring); }
@media (hover: hover) and (pointer: fine) { .stage-btn:hover { transform: translateY(-4px); } }
.stage-btn:active { transform: scale(.98); }
.compass { width: 100%; height: 100%; overflow: visible; }
.c-arm { transform-box: view-box; transform-origin: 249px 280.6px; }
.c-arc { stroke-dasharray: 1 1; }
.c-guides { fill: none; stroke: rgba(245, 245, 247, .22); stroke-width: 2; stroke-dasharray: 6 8; opacity: 0; transition: opacity .6s var(--ease); }
.compass.drawing .c-guides { opacity: 1; }
.lockup { display: flex; align-items: center; gap: 14px; min-height: 64px; }
.lockup img { border-radius: 11px; }
.lockup-name { font: 500 clamp(36px, 4vw, 54px)/1 var(--serif); letter-spacing: -0.02em; transition: font-size .3s var(--ease); }
.lockup[data-font="sans"] .lockup-name { font: 600 clamp(30px, 3.4vw, 44px)/1 var(--sans); letter-spacing: -0.045em; }
.lockup[data-font="mono"] .lockup-name { font: 500 clamp(26px, 3vw, 38px)/1 var(--mono); letter-spacing: -0.04em; }
.lockup-name.swap { animation: swap .5s var(--spring); }
@keyframes swap { from { opacity: 0; transform: translateY(10px); filter: blur(10px); } }
.stage-hint { font: 400 12px var(--mono); color: var(--ink-3); }
.works-with { margin-top: clamp(48px, 7vw, 88px); display: flex; flex-wrap: wrap; align-items: center; gap: 14px 28px; }
.ww-label { font: 500 12px var(--mono); color: var(--ink-3); }
.ww-row { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 14px 26px; }
.ww-logo { display: flex; align-items: center; gap: 10px; font: 500 15px var(--sans); color: var(--ink); }
.ww-logo img { height: 28px; width: auto; max-width: 40px; object-fit: contain; }
.ww-note { font-size: 14px; color: var(--ink-3); flex-basis: 100%; }
/* Each logo rises out of a soft blur, one after another, once the line is revealed. */
.ww-logo { opacity: 0; filter: blur(10px); transform: translateY(14px) scale(.92); transition: opacity .9s var(--ease), filter 1s var(--ease), transform 1s var(--spring); transition-delay: calc(.35s + var(--i) * 140ms); }
.works-with.in .ww-logo { opacity: 1; filter: none; transform: none; }
@media (prefers-reduced-motion: reduce) { .ww-logo { opacity: 1; filter: none; transform: none; } }

/* 2. Problem */
.problem { background: var(--paper-2); }
.problem-grid { margin-top: clamp(48px, 6vw, 80px); display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(32px, 6vw, 88px); align-items: center; }
.pains { list-style: none; padding: 0; display: grid; gap: 0; counter-reset: p; }
.pains li { display: grid; grid-template-columns: 180px 1fr; gap: 20px; padding: 22px 0; border-top: 1px solid var(--line); align-items: baseline; transition: color .6s var(--ease), opacity .6s var(--ease); }
.pains li:last-child { border-bottom: 1px solid var(--line); }
.pains b { font: 400 30px/1.05 var(--serif); letter-spacing: -0.02em; position: relative; justify-self: start; }
.pains span { font-size: 15px; color: var(--ink-2); }
.pains li:not(.fix) b::after { content: ""; position: absolute; left: -2px; right: -2px; top: 54%; height: 1.5px; background: var(--ink-3); transform: scaleX(0); transform-origin: left; transition: transform .7s var(--ease); }
.pains.in li:not(.fix) { color: var(--ink-3); }
.pains.in li:not(.fix) span { color: var(--ink-3); }
.pains.in li:nth-child(1) b::after { transform: scaleX(1); transition-delay: .9s; }
.pains.in li:nth-child(2) b::after { transform: scaleX(1); transition-delay: 1.2s; }
.pains.in li:nth-child(3) b::after { transform: scaleX(1); transition-delay: 1.5s; }
.pains .fix b { font-style: italic; color: var(--coral-ink); }
.pains .fix span { color: var(--ink); font-weight: 500; }

.zoom { background: var(--card); border-radius: var(--r-xl); padding: clamp(20px, 3vw, 32px); box-shadow: 0 0 0 1px var(--line), 0 40px 80px -60px rgba(23, 23, 28, .5); }
.zoom-pair { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(12px, 2vw, 20px); }
.zoom-pair figure { display: grid; gap: 12px; }
.zoom-pair canvas { width: 100%; aspect-ratio: 1; height: auto; border-radius: var(--r-md); background: #fff; box-shadow: inset 0 0 0 1px var(--line); }
.zoom-pair canvas.px { image-rendering: pixelated; }
.zoom-pair figcaption { font: 500 13px var(--sans); color: var(--ink-2); text-align: center; }
.zoom-ctl { margin-top: 24px; display: grid; gap: 8px; }
.zoom-ticks { display: flex; justify-content: space-between; font: 400 12px var(--mono); color: var(--ink-3); padding: 0 2px; }
.zoom-read { display: flex; align-items: baseline; gap: 10px; margin-top: 6px; font-size: 14px; color: var(--ink-3); }
.zoom-read b { font: 500 22px var(--mono); color: var(--ink); letter-spacing: -0.03em; }
input[type="range"] { -webkit-appearance: none; appearance: none; width: 100%; height: 32px; background: transparent; cursor: pointer; }
input[type="range"]::-webkit-slider-runnable-track { height: 4px; border-radius: 4px; background: linear-gradient(90deg, var(--ink) var(--fill, 0%), var(--paper-3) var(--fill, 0%)); }
input[type="range"]::-moz-range-track { height: 4px; border-radius: 4px; background: var(--paper-3); }
input[type="range"]::-moz-range-progress { height: 4px; border-radius: 4px; background: var(--ink); }
input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 24px; height: 24px; margin-top: -10px; border-radius: 50%; background: var(--card); box-shadow: 0 0 0 1.5px var(--ink), 0 6px 14px -4px rgba(23, 23, 28, .4); transition: transform .2s var(--spring); }
input[type="range"]::-moz-range-thumb { width: 24px; height: 24px; border: 0; border-radius: 50%; background: var(--card); box-shadow: 0 0 0 1.5px var(--ink), 0 6px 14px -4px rgba(23, 23, 28, .4); }
input[type="range"]:active::-webkit-slider-thumb { transform: scale(1.15); }

/* 3. Numbers */
.numbers { padding: clamp(72px, 9vw, 120px) 0; }
.numbers-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; grid-template-rows: auto auto; gap: clamp(28px, 4vw, 48px) clamp(24px, 4vw, 56px); align-items: end; }
.num { display: grid; gap: 10px; border-top: 1px solid var(--line-strong); padding-top: 18px; }
.num b { font: 300 clamp(64px, 7vw, 104px)/.85 var(--serif); letter-spacing: -0.04em; font-variant-numeric: lining-nums tabular-nums; }
.num span { font-size: 15px; color: var(--ink-2); max-width: 22em; }
.num-lead { grid-row: span 2; align-self: stretch; align-content: end; border-top: 0; padding-top: 0; }
.num-lead b { font-size: clamp(120px, 17vw, 260px); color: var(--ink); }
.num-lead b::after { content: ""; display: block; width: .34em; height: .04em; margin-top: .14em; background: var(--coral); border-radius: 99px; }
.num-lead span { font-size: clamp(17px, 1.5vw, 20px); color: var(--ink); max-width: 20em; }

/* 4. Process */
.process { background: var(--paper-2); }
.process-head { display: grid; grid-template-columns: 1.2fr 1fr; gap: 32px; align-items: end; }
.starts { justify-content: flex-start; align-items: center; }
.starts-q { width: 100%; font: 500 13px var(--sans); color: var(--ink-3); margin-bottom: 4px; }
.rail { margin-top: clamp(48px, 6vw, 72px); position: relative; }
.rail-track { position: absolute; left: 0; right: 0; top: 19px; height: 2px; background: var(--line-strong); border-radius: 2px; }
.rail-fill { height: 100%; width: var(--rail, 0%); background: var(--coral); border-radius: 2px; transition: width .7s var(--ease); }
.rail-stops { position: relative; list-style: none; padding: 0; display: grid; grid-template-columns: repeat(8, 1fr); }
.rail-stops button { display: grid; justify-items: start; gap: 10px; width: 100%; padding: 0 8px 8px 0; text-align: left; }
.rail-stops .dot { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; font: 500 12px var(--mono); background: var(--paper-2); border: 1.5px solid var(--line-strong); color: var(--ink-3); transition: all .5s var(--spring); }
.rail-stops .name { font: 500 14px var(--sans); color: var(--ink-3); transition: color .3s; }
.rail-stops li.done .dot { border-color: var(--coral); color: var(--coral-ink); }
.rail-stops li.on .dot { background: var(--ink); border-color: var(--ink); color: var(--paper); transform: scale(1.12); }
.rail-stops li.on .name, .rail-stops li.done .name { color: var(--ink); }
.rail-stops li.before { opacity: .35; } /* was .skip, which collided with the skip-link class and threw the stop off screen */
@media (hover: hover) and (pointer: fine) { .rail-stops button:hover .dot { border-color: var(--ink); } }
.phase { margin-top: clamp(28px, 4vw, 44px); display: grid; grid-template-columns: 1fr 1.2fr; gap: clamp(24px, 5vw, 72px); align-items: center; background: var(--card); border-radius: var(--r-xl); padding: clamp(24px, 4vw, 48px); box-shadow: 0 0 0 1px var(--line); min-height: 380px; }
.phase-file { font: 500 13px var(--mono); color: var(--coral-ink); }
.phase-title { margin-top: 14px; font: 400 clamp(34px, 3.6vw, 52px)/1 var(--serif); letter-spacing: -0.025em; }
.phase-body { margin-top: 16px; color: var(--ink-2); font-size: 16px; max-width: 28em; }
.phase-text > * { animation: rise .6s var(--ease) both; }
.phase-text > :nth-child(2) { animation-delay: .06s; }
.phase-text > :nth-child(3) { animation-delay: .12s; }
@keyframes rise { from { opacity: 0; transform: translateY(12px); filter: blur(8px); } }
.phase-art { position: relative; height: 300px; border-radius: var(--r-lg); background: var(--paper); overflow: hidden; display: grid; place-items: center; box-shadow: inset 0 0 0 1px var(--line); }

/* Phase art pieces */
.art-brief { width: min(90%, 380px); display: grid; gap: 8px; font-size: 14px; }
.art-brief p { background: var(--card); padding: 10px 14px; border-radius: 14px 14px 14px 4px; box-shadow: 0 0 0 1px var(--line); justify-self: start; animation: pop .5s var(--spring) both; }
.art-brief p.me { justify-self: end; border-radius: 14px 14px 4px 14px; background: var(--ink); color: var(--paper); box-shadow: none; }
@keyframes pop { from { opacity: 0; transform: translateY(10px) scale(.96); filter: blur(6px); } }
.art-refs { display: grid; grid-template-columns: repeat(5, 54px); gap: 12px; }
.art-refs span { width: 54px; height: 54px; border-radius: 12px; background: var(--card); box-shadow: 0 0 0 1px var(--line); display: grid; place-items: center; animation: pop .5s var(--spring) both; }
.art-refs img { width: 30px; height: 30px; object-fit: contain; }
.art-refs .cliche { position: relative; font: 500 11px var(--mono); color: var(--ink-3); }
.art-refs .cliche::after { content: ""; position: absolute; left: 8px; right: 8px; top: 50%; height: 1.5px; background: var(--coral); transform: rotate(-20deg) scaleX(0); animation: cross .5s var(--ease) 1.1s forwards; }
@keyframes cross { to { transform: rotate(-20deg) scaleX(1); } }
.art-ideas { display: flex; gap: 14px; }
.art-ideas img { width: 96px; height: 96px; border-radius: 22px; background: #fff; box-shadow: 0 0 0 1px var(--line), 0 20px 30px -20px rgba(23, 23, 28, .4); animation: pop .6s var(--spring) both; }
.art-ideas img:nth-child(2) { animation-delay: .15s; } .art-ideas img:nth-child(3) { animation-delay: .3s; }
.art-confirm { display: grid; gap: 18px; justify-items: center; }
.art-confirm .sw { display: flex; gap: 10px; }
.art-confirm .sw i { width: 40px; height: 40px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .1); animation: pop .5s var(--spring) both; }
.art-confirm .sw i.on { outline: 2px solid var(--ink); outline-offset: 3px; }
.art-confirm .ty { display: flex; gap: 22px; align-items: baseline; }
.art-confirm .ty span { font-size: 30px; color: var(--ink-3); }
.art-confirm .ty span.on { color: var(--ink); text-decoration: underline 2px var(--coral); text-underline-offset: 8px; }
.art-build svg { width: 230px; height: 230px; }
.art-build .g { fill: none; stroke: var(--coral); stroke-width: 1.5; stroke-dasharray: 5 6; opacity: .8; }
.art-build .draw { stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 1.4s var(--ease) forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.art-kit { display: grid; grid-template-columns: repeat(4, auto); gap: 10px; align-items: end; }
.art-kit img { border-radius: 22%; animation: pop .5s var(--spring) both; box-shadow: 0 10px 20px -12px rgba(0, 0, 0, .5); }
.art-files { position: absolute; right: 18px; bottom: 16px; font: 400 11px/1.6 var(--mono); color: var(--ink-3); text-align: right; }

/* 5. Board */
.board-head { display: grid; grid-template-columns: 1.2fr 1fr; gap: 32px; align-items: end; }
.board { margin-top: clamp(40px, 5vw, 64px); background: var(--paper-2); border-radius: var(--r-xl); padding: clamp(16px, 2.4vw, 28px); box-shadow: inset 0 0 0 1px var(--line);
  background-image: radial-gradient(rgba(23, 23, 28, .09) 1px, transparent 1.2px); background-size: 18px 18px; }
.board-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 20px; }
.board-tabs button { min-height: 44px; padding: 0 18px; border-radius: 999px; font: 500 15px var(--sans); background: var(--card); box-shadow: 0 0 0 1px var(--line); transition: all .3s var(--ease); }
.board-tabs button small { font-weight: 400; color: var(--ink-3); margin-left: 6px; }
.board-tabs button[aria-checked="true"] { background: var(--ink); color: var(--paper); box-shadow: none; }
.board-tabs button[aria-checked="true"] small { color: var(--night-muted); }
.board-status { font: 500 13px var(--mono); color: var(--ink-3); }
.board-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: clamp(12px, 1.6vw, 18px); }
.concept { position: relative; background: var(--card); border-radius: var(--r-lg); padding: 14px; box-shadow: 0 0 0 1px var(--line), 0 24px 40px -36px rgba(23, 23, 28, .6); display: grid; gap: 12px;
  transition: opacity .5s var(--ease), filter .5s var(--ease), transform .5s var(--spring), box-shadow .4s var(--ease); animation: pop .55s var(--spring) both; animation-delay: calc(var(--i) * 70ms); }
@media (hover: hover) and (pointer: fine) { .concept:hover { transform: translateY(-4px); } }
.concept .art { aspect-ratio: 1; border-radius: 16px; background: #fff; display: grid; place-items: center; overflow: hidden; }
.concept .art img { width: 82%; height: 82%; object-fit: contain; transition: transform .6s var(--spring); }
@media (hover: hover) and (pointer: fine) { .concept:hover .art img { transform: scale(1.04); } }
.concept h3 { font: 400 26px/1 var(--serif); letter-spacing: -0.02em; padding: 2px 4px 0; }
.concept .why { font-size: 13px; color: var(--ink-2); padding: 0 4px; display: none; }
.concept .acts { display: flex; gap: 6px; }
.concept .acts button { flex: 1; min-height: 40px; border-radius: 999px; font: 500 13px var(--sans); box-shadow: inset 0 0 0 1px var(--line-strong); transition: all .25s var(--ease); }
@media (hover: hover) and (pointer: fine) { .concept .acts button:hover { box-shadow: inset 0 0 0 1px var(--ink); } }
.concept .acts .pick { background: var(--ink); color: var(--paper); box-shadow: none; flex: 1.4; }
.concept .acts button[aria-pressed="true"].star { background: var(--coral); color: #fff; box-shadow: none; }
.concept .badge { position: absolute; top: 22px; left: 22px; font: 500 11px var(--mono); padding: 4px 9px; border-radius: 999px; background: var(--coral); color: #fff; transform: scale(0); transition: transform .4s var(--spring); }
.concept.starred .badge { transform: scale(1); }
.concept.passed { opacity: .35; filter: grayscale(1); }
@media (hover: hover) and (pointer: fine) { .concept.passed:hover { opacity: .6; } }
.board.has-pick .concept:not(.picked) { opacity: .2; filter: grayscale(1) blur(1px); transform: scale(.96); pointer-events: none; }
.concept.picked { box-shadow: 0 0 0 2px var(--ink), 0 40px 60px -30px rgba(23, 23, 28, .5); }
.concept.picked .why { display: block; animation: rise .5s var(--ease); }
.board-next { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; padding: 18px 20px; border-radius: var(--r-lg); background: var(--ink); color: var(--paper); animation: rise .5s var(--ease); }
.board-next p { flex: 1; min-width: 220px; font-size: 15px; }
.board-next p b { font-weight: 600; }
.board-next button { min-height: 40px; padding: 0 16px; border-radius: 999px; font: 500 14px var(--sans); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .3); }

/* 6. Editor */
.editor-sec { background: var(--paper-2); }
.editor-facts { list-style: none; padding: 0; margin-top: 28px; display: grid; grid-template-columns: 1fr 1fr; gap: 14px 24px; font-size: 14px; color: var(--ink-2); }
.editor-facts li { border-top: 1px solid var(--line-strong); padding-top: 12px; }
.editor-facts b { display: block; color: var(--ink); font-weight: 600; }

/* 7. Library */
.lib-head { display: grid; grid-template-columns: 1.2fr 1fr; gap: 32px; align-items: end; margin-bottom: 20px; }
.mono-big { font: 500 .78em var(--mono); letter-spacing: -0.06em; }
.lib-filters { justify-content: flex-start; }
.lib-filters small { font: 400 11px var(--mono); opacity: .6; margin-left: 4px; }
.lib-grid { margin-top: clamp(32px, 4vw, 48px); display: grid; grid-template-columns: repeat(auto-fill, minmax(116px, 1fr)); gap: 10px; }
.lib-tile { position: relative; aspect-ratio: 1; border-radius: 20px; background: var(--card); box-shadow: 0 0 0 1px var(--line); display: grid; place-items: center; overflow: hidden;
  transition: transform .45s var(--spring), box-shadow .3s var(--ease), opacity .4s var(--ease); animation: pop .5s var(--spring) both; animation-delay: calc(var(--i) * 18ms); }
.lib-tile img { width: 44%; height: 44%; object-fit: contain; transition: transform .45s var(--spring), opacity .3s; }
.lib-tile .meta { position: absolute; inset: auto 0 0 0; padding: 10px 12px; font-size: 12px; line-height: 1.3; background: linear-gradient(transparent, var(--card) 30%); opacity: 0; transform: translateY(8px); transition: all .35s var(--ease); }
.lib-tile .meta b { display: block; font-weight: 600; color: var(--ink); }
.lib-tile .meta span { font: 400 10px var(--mono); color: var(--ink-3); }
/* Touch has no hover: a tap focuses the tile (tabindex=0) and that reveals the name. */
.lib-tile:focus-visible { transform: translateY(-3px); box-shadow: 0 0 0 1px var(--line-strong), 0 24px 40px -28px rgba(23, 23, 28, .55); }
.lib-tile:focus-visible img { transform: translateY(-12px) scale(.9); }
.lib-tile:focus-visible .meta { opacity: 1; transform: none; }
@media (hover: none) {
  .lib-tile:focus { transform: translateY(-3px); box-shadow: 0 0 0 1px var(--line-strong), 0 24px 40px -28px rgba(23, 23, 28, .55); outline: none; }
  .lib-tile:focus img { transform: translateY(-12px) scale(.9); }
  .lib-tile:focus .meta { opacity: 1; transform: none; }
}
@media (hover: hover) and (pointer: fine) {
  .lib-tile:hover { transform: translateY(-3px); box-shadow: 0 0 0 1px var(--line-strong), 0 24px 40px -28px rgba(23, 23, 28, .55); }
  .lib-tile:hover img { transform: translateY(-12px) scale(.9); }
  .lib-tile:hover .meta { opacity: 1; transform: none; }
}
.lib-fine { margin-top: 18px; }

/* 8. Kit */
.kit-sec { background: var(--paper-2); }
.kit { margin-top: clamp(36px, 5vw, 56px); display: grid; grid-template-columns: 1fr 260px; gap: 20px 32px; }
.kit-pick { grid-column: 1 / -1; }
.kit-stage { display: grid; grid-template-columns: 1.3fr .8fr; grid-template-rows: auto auto; gap: 16px; }
.kit-browser { background: var(--card); border-radius: 18px; box-shadow: 0 0 0 1px var(--line), 0 30px 60px -45px rgba(23, 23, 28, .6); overflow: hidden; }
.kb-tabs { display: flex; gap: 4px; padding: 10px 10px 0; background: var(--paper-3); }
.kb-tab { display: flex; align-items: center; gap: 8px; height: 34px; padding: 0 14px; font-size: 13px; color: var(--ink-3); border-radius: 10px 10px 0 0; max-width: 220px; }
.kb-tab.on { background: var(--card); color: var(--ink); }
.kb-tab b { font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kb-tab i { font-style: normal; color: var(--ink-3); margin-left: 6px; }
.kb-tab img { width: 16px; height: 16px; border-radius: 4px; }
.kb-url { padding: 10px 14px; border-bottom: 1px solid var(--line); }
.kb-url span { display: block; font: 400 13px var(--mono); color: var(--ink-3); background: var(--paper); border-radius: 999px; padding: 6px 14px; }
.kb-page { height: 180px; display: grid; place-items: center; }
.kb-page img { border-radius: 22%; box-shadow: 0 20px 30px -18px rgba(0, 0, 0, .5); }
.kit-phone { grid-row: span 2; background: var(--night); border-radius: 36px; padding: 10px; box-shadow: 0 40px 70px -40px rgba(23, 23, 28, .7); }
.kp-screen { height: 100%; min-height: 320px; border-radius: 28px; padding: 40px 16px 16px; background: radial-gradient(120% 80% at 20% 0%, #ffb59f, #ff7a59 40%, #8a3b6b 100%); transition: background .6s var(--ease); }
.kp-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px 12px; }
.kp-app { aspect-ratio: 1; border-radius: 24%; display: grid; place-items: center; position: relative; }
.kp-app.ghost { background: rgba(255, 255, 255, .28); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }

.kp-app.mine img { width: 100%; height: 100%; border-radius: 24%; box-shadow: 0 8px 16px -8px rgba(0, 0, 0, .6); background: var(--kit-bg, #17171c); }
.kp-app small { position: absolute; top: calc(100% + 4px); font-size: 10px; color: #fff; white-space: nowrap; max-width: 64px; overflow: hidden; text-overflow: ellipsis; }
.kit-ladder { background: var(--card); border-radius: 18px; box-shadow: 0 0 0 1px var(--line); padding: 18px; display: flex; align-items: flex-end; gap: clamp(8px, 1.6vw, 18px); overflow-x: auto; scrollbar-width: none; }
.kit-ladder figure { display: grid; justify-items: center; gap: 8px; }
.kit-ladder img { border-radius: 22%; }
.kit-ladder figcaption { font: 400 11px var(--mono); color: var(--ink-3); }
.kit-files { list-style: none; padding: 0; font: 400 13px/1.9 var(--mono); color: var(--ink-2); align-self: start; columns: 1; }
.kit-files li { opacity: 0; transform: translateX(-8px); animation: fileIn .4s var(--ease) forwards; animation-delay: calc(var(--i) * 45ms); white-space: nowrap; }
.kit-files li::before { content: "✓"; color: var(--coral-ink); margin-right: 8px; }
.kit-files li { filter: blur(4px); }
@keyframes fileIn { to { opacity: 1; transform: none; filter: none; } }

/* 9. Motion */
.motion-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 88px); align-items: center; }
.motion-stage { background: var(--card); border-radius: var(--r-xl); padding: clamp(28px, 5vw, 56px) clamp(28px, 5vw, 56px) 20px; box-shadow: 0 0 0 1px var(--line), 0 50px 90px -60px rgba(23, 23, 28, .6); }
#motionSvg { width: min(100%, 340px); margin: 0 auto; overflow: visible; filter: drop-shadow(0 30px 40px rgba(23, 23, 28, .25)); }
#motionSvg path { transform-box: view-box; }
.motion-scrub { margin-top: 28px; display: flex; align-items: center; gap: 14px; }
.round-btn { min-width: 64px; min-height: 40px; padding: 0 14px; border-radius: 999px; background: var(--ink); color: var(--paper); font: 500 13px var(--sans); }
.motion-scrub .mono { font-size: 12px; color: var(--ink-3); min-width: 44px; text-align: right; }
.motion-copy .lead { margin-top: 24px; }
.persona { margin-top: 28px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.persona button { min-height: 64px; border-radius: 18px; display: grid; align-content: center; justify-items: start; padding: 10px 16px; text-align: left; }
.persona button b { font: 400 22px/1 var(--serif); letter-spacing: -0.01em; text-transform: capitalize; }
.persona button small { font: 400 11px var(--mono); opacity: .6; margin-top: 4px; }
.exports { margin-top: 24px; font-size: 14px; color: var(--ink-2); }
.exports span { font: 500 12px var(--mono); color: var(--ink-3); margin-right: 8px; }
.exports i { font-style: normal; color: var(--coral); }

/* 11. FAQ */
.faq-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(32px, 6vw, 88px); align-items: start; }
.faq details { border-top: 1px solid var(--line-strong); }
.faq details:last-child { border-bottom: 1px solid var(--line-strong); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 20px; align-items: center; padding: 22px 0; font: 400 clamp(22px, 2vw, 27px)/1.2 var(--serif); letter-spacing: -0.01em; min-height: 44px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: none; width: 14px; height: 14px; background: linear-gradient(var(--ink), var(--ink)) center / 100% 1.5px no-repeat, linear-gradient(var(--ink), var(--ink)) center / 1.5px 100% no-repeat; transition: transform .4s var(--spring); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 0 24px; color: var(--ink-2); max-width: 38em; animation: rise .4s var(--ease); }
.faq a { text-decoration-color: var(--coral); text-underline-offset: 3px; }

/* 12. Footer */
.foot { padding: clamp(64px, 9vw, 120px) 0 calc(40px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); }
.foot-word { width: min(100%, 720px); height: auto; opacity: .92; }
.foot-row { margin-top: 36px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; font-size: 14px; color: var(--ink-3); }
.foot-row nav { display: flex; gap: 6px 20px; flex-wrap: wrap; }
.foot-row a { text-decoration: none; color: var(--ink-2); padding: 8px 0; }
@media (hover: hover) and (pointer: fine) { .foot-row a:hover { color: var(--ink); } }

/* Responsive */
@media (max-width: 980px) {
  .hero-grid, .problem-grid, .editor-grid, .motion-grid, .faq-grid, .process-head, .board-head, .lib-head { grid-template-columns: 1fr; }
  .hero-stage { order: -1; }
  .stage-btn { width: min(72vw, 360px); }
  .numbers-grid { grid-template-columns: 1fr 1fr; }
  .num-lead { grid-column: 1 / -1; grid-row: auto; }
  .phase { grid-template-columns: 1fr; }
  .kit { grid-template-columns: 1fr; }
  .kit-files { columns: 2; }
  .motion-stage { order: -1; }
}
@media (max-width: 720px) {
  .pains li { grid-template-columns: 1fr; gap: 4px; }
  .rail-stops { grid-template-columns: repeat(8, 64px); overflow-x: auto; padding-bottom: 8px; scrollbar-width: none; }
  .rail { overflow-x: auto; scrollbar-width: none; }
  .rail-track { width: 512px; }
  .rail-stops .name { font-size: 12px; }
  .kit-stage { grid-template-columns: 1fr; }
  .kit-phone { grid-row: auto; max-width: 300px; justify-self: center; width: 100%; }
  .persona { grid-template-columns: 1fr 1fr; }
  .editor-facts { grid-template-columns: 1fr; }
  .phase-art { height: 260px; }
  .art-refs { grid-template-columns: repeat(4, 54px); }
}

/* Section heads: the headline takes the full measure; the secondary block sits under it, pushed right. */
.process-head, .board-head, .lib-head { grid-template-columns: 1fr; gap: 28px; }
.process-head > :last-child, .board-head > :last-child, .lib-head > :last-child { justify-self: end; max-width: 560px; }
.starts { justify-content: flex-end; }
.starts-q { text-align: right; }
.pains li { grid-template-columns: 210px 1fr; }
.pains b { white-space: nowrap; }
@media (max-width: 980px) {
  .process-head > :last-child, .board-head > :last-child, .lib-head > :last-child { justify-self: start; }
  .starts { justify-content: flex-start; } .starts-q { text-align: left; }
}
@media (max-width: 720px) { .pains li { grid-template-columns: 1fr; } }

/* Kit: files sit under the stage in columns, so the stage keeps its proportions. */
.kit { grid-template-columns: 1fr; }
.kit-files { columns: 4; column-gap: 24px; padding: 20px 24px; background: var(--card); border-radius: 18px; box-shadow: 0 0 0 1px var(--line); }
.kit-browser { align-self: start; }
@media (max-width: 980px) { .kit-files { columns: 2; } }
@media (max-width: 420px) { .kit-files { columns: 1; } }

/* Mobile pass. Everything here is gated to phones and touch, so a mouse at 981px and up looks as before. */
@media (pointer: coarse), (max-width: 720px) {
  .nav-buy, .nav-brand { min-height: 44px; }
  .try-fonts button, .starts button, .lib-filters button, .kit-pick button, .ed-tools button, .ed-actions button,
  .concept .acts button, .board-next button, .round-btn, .chip { min-height: 44px; }
  .link { display: inline-block; padding: 10px 0; }
  .foot-row a { padding: 12px 0; }
  input[type="range"] { height: 44px; }
  .lib-tile, .concept { -webkit-touch-callout: none; }
}
@media (max-width: 720px) {
  html { scroll-padding-top: calc(88px + env(safe-area-inset-top, 0px)); }
  .reveal { filter: blur(6px); }
  /* One scroller, not two: the rail scrolls and carries its track and stops with it. */
  .rail { overflow-x: auto; overscroll-behavior-x: contain; margin-inline: calc(var(--gutter) * -1); padding: 4px var(--gutter) 8px; }
  .rail-stops { width: 512px; overflow: visible; padding-bottom: 0; }
  .rail-track { left: var(--gutter); right: auto; top: 23px; }
  .stage-btn { width: min(60vw, 360px); filter: drop-shadow(0 24px 28px rgba(23, 23, 28, .28)); } /* smaller so the headline shows on the first screen; one cheap shadow, the compass repaints it every frame */
  .art-ideas { width: 100%; justify-content: center; padding: 0 14px; gap: 10px; }
  .art-kit { transform: translateY(-22px); } /* clear the file list in the corner */
  .art-ideas img { flex: 1 1 0; min-width: 0; max-width: 96px; height: auto; aspect-ratio: 1; }
  .art-confirm .ty { gap: 14px; }
  .art-confirm .ty span { font-size: 20px; }
  .art-files { right: 14px; bottom: 12px; }
  .kit-ladder { overscroll-behavior-x: contain; }
}
@media (max-width: 420px) {
  .kit-ladder { padding: 14px; gap: 6px; }
  .kit-ladder figure { min-width: 0; }
  .kit-ladder img { max-width: 100%; height: auto; }
}

/* Rail: the line starts at dot 01 and ends at dot 08, nothing past it. Dot centres sit 20px into each 1/8 column. */
.rail-track { left: 20px; right: auto; width: 87.5%; }
.rail-fill { max-width: 100%; }
@media (pointer: coarse), (max-width: 720px) { .rail-track { left: calc(var(--gutter) + 20px); width: 448px; } }

/* Process step 08: the logo's real intro, looping every 4s. Tile scales in, legs open from the hinge, hinge settles, arc draws. */
.art-motion svg { width: 210px; height: 210px; overflow: visible; filter: drop-shadow(0 24px 30px rgba(23, 23, 28, .25)); }
.art-motion path { transform-box: view-box; animation: 4s cubic-bezier(.4, 0, .2, 1) infinite both; }
.am-tile { transform-origin: 256px 256px; animation-name: amTile !important; }
.am-leg1, .am-leg2, .am-hinge { transform-origin: 313px 117.4px; }
.am-leg1 { animation-name: amLeg1 !important; }
.am-leg2 { animation-name: amLeg2 !important; }
.am-hinge { animation-name: amHinge !important; }
.am-arc { stroke-dasharray: 1 1; animation-name: amArc !important; }
@keyframes amTile { 0% { opacity: 0; transform: scale(.82); } 20%, 90% { opacity: 1; transform: scale(1); } 100% { opacity: 0; transform: scale(1); } }
@keyframes amLeg1 { 0%, 8% { opacity: 0; transform: rotate(-38deg); } 30%, 90% { opacity: 1; transform: rotate(0); } 100% { opacity: 0; } }
@keyframes amLeg2 { 0%, 14% { opacity: 0; transform: rotate(38deg); } 36%, 90% { opacity: 1; transform: rotate(0); } 100% { opacity: 0; } }
@keyframes amHinge { 0%, 20% { transform: scale(0); } 40%, 90% { transform: scale(1); opacity: 1; } 100% { opacity: 0; } }
@keyframes amArc { 0%, 28% { stroke-dashoffset: 1; } 60%, 90% { stroke-dashoffset: 0; opacity: 1; } 100% { stroke-dashoffset: 0; opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .art-motion path { animation: none !important; } } /* the loop ends faded out; show the still logo instead */

/* Board: the picked card drops its buttons; the next-steps panel carries a link to the process rail. */
.concept.picked .acts { display: none; }
.board-next .next-link { font: 500 14px var(--sans); color: var(--paper); text-decoration: underline; text-decoration-color: var(--coral); text-underline-offset: 5px; min-height: 44px; display: inline-flex; align-items: center; }
/* Play button keeps its size next to the slider, so "Playing" never squeezes. */
.round-btn { flex: none; width: 92px; white-space: nowrap; }

/* The shipped logo sits on the board as the answer: badge always on, reason always shown, no actions. */
.concept.final { box-shadow: 0 0 0 2px var(--coral), 0 24px 40px -36px rgba(23, 23, 28, .6); align-content: start; }
.concept.final .badge { transform: scale(1); }
.concept.final .why { display: block; }
.concept.final .art { background: var(--paper); }
.board.has-pick .concept.final { opacity: 1; filter: none; transform: none; }
.board-cards { grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); }
.concept .acts { flex-wrap: wrap; }
.concept .acts .pick { flex: 1 1 100%; }
/* Phones: two cards per row so five concepts do not mean 2000px of scroll; the shipped card spans the row, art beside text. */
@media (max-width: 720px) {
  .board-cards { grid-template-columns: 1fr 1fr; }
  .concept { padding: 10px; gap: 10px; }
  .concept:not(.final) { grid-template-rows: auto 1fr auto; } /* buttons line up across a row whatever the title wraps to */
  .concept h3 { font-size: 22px; }
  .concept .badge { top: 16px; left: 16px; }
  .concept.final { grid-column: 1 / -1; grid-template-columns: 112px 1fr; gap: 6px 14px; align-items: start; }
  .concept.final .art { grid-row: 1 / span 2; }
  .concept.final h3 { align-self: end; }
}

/* ---------- typeface ---------- */
.type-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 88px); align-items: center; }
.type-copy .lead { margin-top: 24px; }
.type-routes { list-style: none; margin: 28px 0 0; padding: 0; display: grid; gap: 10px; }
.type-routes li { display: grid; gap: 2px; padding: 14px 18px; border-radius: 18px; background: var(--card); box-shadow: 0 0 0 1px var(--line); }
.type-routes b { font: 400 20px/1.1 var(--serif); }
.type-routes span { font-size: 14px; color: var(--ink-3); }
.type-stage { background: var(--card); border-radius: var(--r-xl); padding: clamp(20px, 4vw, 40px); box-shadow: 0 0 0 1px var(--line), 0 50px 90px -60px rgba(23, 23, 28, .6); display: grid; gap: 18px; min-width: 0; }
.type-input { width: 100%; min-height: 44px; font: 400 16px var(--mono); padding: 12px 16px; border-radius: 14px; border: 0; background: rgba(127, 127, 127, .1); color: inherit; -webkit-appearance: none; appearance: none; } /* 16px: iOS zooms the page into anything smaller */
.type-input:focus { outline: 2px solid currentColor; outline-offset: 2px; }
.type-out { min-height: clamp(90px, 14vw, 150px); display: grid; align-items: center; overflow: hidden; }
.type-out svg { display: block; width: 100%; height: auto; max-height: 170px; }
.type-styles { display: flex; flex-wrap: wrap; gap: 6px; }
.type-styles button { flex: 1 1 auto; min-height: 44px; border-radius: 999px; padding: 0 14px; font-size: 14px; }
.type-ends { margin-top: 0; }
.type-ends button { min-height: 56px; }
.type-sliders { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.type-sliders label { display: grid; gap: 6px; font: 400 11px var(--mono); color: var(--ink-3); text-transform: uppercase; letter-spacing: .06em; }
.type-sliders input { width: 100%; accent-color: currentColor; touch-action: pan-y; } /* sideways drags move the slider, vertical ones still scroll the page */
@media (max-width: 900px) {
  .type-grid { grid-template-columns: 1fr; }
  .type-stage { order: -1; } /* the demo comes first, as in the motion section */
  .type-sliders { grid-template-columns: 1fr; }
}
@media (max-width: 420px) {
  .type-stage { padding: 16px; gap: 14px; }
  .type-styles button { padding: 0 10px; }
}
/* Process rail, segmented: one hairline per step. Done steps are ink, the active one fills in coral over its time. */
.rail-track { display: none; }
.rail-stops { grid-template-columns: repeat(8, 1fr); gap: 10px; }
.rail-stops button { display: grid; gap: 14px; padding: 8px 0 10px; justify-items: stretch; }
.rail-stops .seg { position: relative; height: 3px; border-radius: 3px; background: var(--line-strong); overflow: hidden; transition: height .35s var(--ease), background .35s var(--ease); }
.rail-stops .seg i { position: absolute; inset: 0; border-radius: inherit; background: var(--ink); transform: scaleX(0); transform-origin: left; transition: transform .6s var(--ease), background .4s var(--ease); }
.rail-stops li.done .seg i { transform: scaleX(1); }
.rail-stops li.on .seg i { background: var(--coral); animation: segFill 4.6s linear forwards; }
.rail.paused .rail-stops li.on .seg i { animation-play-state: paused; }
.rail.manual .rail-stops li.on .seg i { animation: none; transform: scaleX(1); }
@keyframes segFill { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.rail-stops .meta { display: flex; align-items: baseline; gap: 8px; transition: transform .5s var(--spring); }
.rail-stops .meta em { font: 500 11px var(--mono); font-style: normal; color: var(--ink-3); transition: color .35s; }
.rail-stops .meta b { font: 500 14px var(--sans); color: var(--ink-3); letter-spacing: -0.01em; transition: color .35s; white-space: nowrap; }
.rail-stops li.done .meta b { color: var(--ink-2); }
.rail-stops li.on .meta { transform: translateY(-2px); }
.rail-stops li.on .meta em { color: var(--coral-ink); }
.rail-stops li.on .meta b { color: var(--ink); }
.rail-stops li.before { opacity: .4; }
@media (hover: hover) and (pointer: fine) {
  .rail-stops button:hover .seg { height: 5px; }
  .rail-stops button:hover .meta b { color: var(--ink); }
}
.rail-stops button:focus-visible { outline-offset: 6px; }
@media (pointer: coarse), (max-width: 720px) {
  .rail-stops { width: auto; grid-template-columns: repeat(8, 112px); }
  .rail-stops button { min-height: 44px; }
}
