/* HolyArrs landing page, retro edition.
   Type system from coderluii.dev: Perfectly Nineties (display), Suisse Intl (text), FK Raster Grotesk (8-bit labels).
   Classic Mac chrome, one red accent and finite, purposeful motion. */

@font-face { font-family: "Perfectly Nineties"; src: url("/fonts/PerfectlyNineties-Regular.woff") format("woff"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Perfectly Nineties"; src: url("/fonts/PerfectlyNineties-Italic.woff") format("woff"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Suisse Intl"; src: url("/fonts/SuisseIntl-Regular-latin.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Suisse Intl"; src: url("/fonts/SuisseIntl-Medium-latin.woff2") format("woff2"); font-weight: 500 600; font-display: swap; }
@font-face { font-family: "FK Raster"; src: url("/fonts/FK-Raster-Grotesk-Compact-Blended.woff2") format("woff2"); font-display: swap; }

:root {
  --paper: #F4F1EA;
  --paper-2: #FBFAF6;
  --ink: #05080D;
  --ink-2: #4A4F58;      /* 7.9:1 on paper */
  --line: #D6CFC2;
  --shadow: #05080D;
  --hover: #FFFFFF;
  --folder: #E7E1D5;
  --wallpaper: #EAE7DF;
  --dither: #D4D0C8;
  --tint: #F8E4DF;
  --band: #05080D;
  --band-ink: #F4F7FB;
  --band-ink-2: #AEB6C2; /* 9:1 on band */
  --red: #D22F25;        /* white text 5.0:1 */
  --red-ink: #B4271E;    /* red text on paper 5.9:1 */
  --serif: "Perfectly Nineties", Georgia, "Times New Roman", serif;
  --sans: "Suisse Intl", "Helvetica Neue", Arial, sans-serif;
  --pixel: "FK Raster", "Courier New", monospace;
  --step: steps(6, end);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 88px; scrollbar-gutter: stable; color-scheme: light dark; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 17px/1.6 var(--sans); -webkit-font-smoothing: antialiased; }
a, button, summary, label[for] { cursor: pointer; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
p { text-wrap: pretty; }
:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }
.pixel { font-family: var(--pixel); font-weight: 400; letter-spacing: .02em; }
.wrap { width: 100%; max-width: 1600px; margin-inline: auto; padding-inline: 16px; }
@media (min-width: 768px) { .wrap { padding-inline: 32px; } }
.skip { position: absolute; left: 16px; top: -80px; z-index: 60; background: var(--paper); padding: 10px 14px; border: 1px solid var(--ink); }
.skip:focus { top: 16px; }

/* ---------- Boxes (nav items and buttons) ---------- */
.box {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 16px;
  background: var(--paper-2); color: var(--ink); border: 1px solid var(--ink);
  font: 400 15px/1 var(--pixel); text-transform: uppercase; text-decoration: none; white-space: nowrap;
  transition: background-color 120ms steps(2), color 120ms steps(2), transform 120ms steps(2), box-shadow 120ms steps(2);
}
.box:hover { background: var(--hover); box-shadow: 3px 3px 0 var(--shadow); transform: translate(-2px, -2px); }
.box:active { box-shadow: none; transform: translate(0, 0); }
.box--brand { font: 400 21px/1 var(--serif); text-transform: none; gap: 10px; }
.box--red { background: var(--red); color: #fff; }
.box--red:hover { background: #BF281F; }
.box--lg { min-height: 50px; padding: 0 22px; font-size: 16px; }
@media (prefers-reduced-motion: reduce) { .box:hover, .box:active, .rm__phase details:hover { transform: none !important; } }

/* ---------- Nav ---------- */
.nav { position: fixed; inset: 14px 0 auto; z-index: 40; padding-inline: 16px; pointer-events: none; }
@media (min-width: 768px) { .nav { padding-inline: 32px; } }
/* One menu bar, with a compact section sheet below tablet width. */
.nav__bar { pointer-events: auto; position: relative; max-width: 1536px; margin: 0 auto; display: flex; align-items: stretch; border: 1px solid var(--ink); background: var(--paper-2); box-shadow: 3px 3px 0 var(--shadow); }
.nav .box { border: 0; padding-inline: 12px; min-height: 46px; }
.nav .box:hover { transform: none; box-shadow: none; background: var(--ink); color: var(--paper-2); }
.nav .box--red:hover { background: #BF281F; color: #fff; }
.nav .box--brand { margin-right: auto; }
.nav__links { display: none; }
.nav__end { display: flex; }
.nav__gh { display: none; }
.nav__toggle[hidden], .nav__compact[hidden] { display: none; }
.nav__toggle span { font-family: var(--sans); font-size: 18px; transition: transform 160ms var(--ease-out); }
.nav__toggle[aria-expanded="true"] { background: var(--ink); color: var(--paper-2); }
.nav__toggle[aria-expanded="true"] span { transform: rotate(45deg); }
.nav__compact { pointer-events: auto; width: min(360px, 100%); max-height: calc(100dvh - 86px); overflow-y: auto; overscroll-behavior: contain; margin: 8px auto 0; border: 1px solid var(--ink); background: var(--paper-2); box-shadow: 4px 4px 0 var(--shadow); padding: 8px; }
.nav__compact a { display: flex; align-items: center; gap: 16px; min-height: 48px; padding: 10px 14px; text-decoration: none; font-size: 16px; line-height: 1.4; }
.nav__compact a:hover { background: var(--ink); color: var(--paper-2); }
.nav.is-scrolled .nav__bar { box-shadow: 3px 3px 0 var(--shadow), 0 12px 24px -16px #05080D80; }
@media (min-width: 600px) { .nav__gh { display: inline-flex; } }
@media (min-width: 920px) { .nav__links { display: flex; } .nav__toggle, .nav__compact { display: none; } }
@media (max-width: 399px) {
  .nav .box { padding-inline: 9px; font-size: 12px; }
  .nav .box--brand { font-size: 19px; gap: 6px; }
  .nav__toggle { gap: 5px; }
}
@supports (animation-timeline: scroll()) {
  @media (prefers-reduced-motion: no-preference) {
    .nav__bar::after { content: ""; position: absolute; height: 2px; inset: auto 0 -1px; background: var(--red); transform-origin: left; animation: reading-progress linear both; animation-timeline: scroll(root); }
    @media (prefers-color-scheme: light) {
      .nav__bar::after { height: 4px; bottom: 0; box-shadow: 0 -1px 0 var(--paper-2); pointer-events: none; }
    }
    @keyframes reading-progress { from { transform: scaleX(0); } to { transform: scaleX(1); } }
  }
}

/* ---------- Motion variables (coderluii.dev pattern): reduced motion sets these to zero ---------- */
:root { --motion-distance: 12px; --motion-scale: 1; --ease-out: cubic-bezier(.22, 1, .36, 1); }
@media (prefers-reduced-motion: reduce) { :root { --motion-distance: 0rem; --motion-scale: 1; } }

/* ---------- Hero: paper, headline left, classic desktop right ---------- */
.hero { position: relative; isolation: isolate; padding: 96px 0 56px; border-bottom: 1px solid var(--ink); }
.hero__grid { display: grid; gap: 40px; align-items: center; }
@media (min-width: 1000px) { .hero__grid { grid-template-columns: 1.05fr .95fr; gap: 56px; min-height: min(720px, calc(100dvh - 152px)); } }
.hero__kicker { margin: 0 0 18px; font-size: 15px; text-transform: uppercase; color: var(--red-ink); }
.hero__title { margin: 0; font: 400 clamp(44px, 5.4vw, 78px)/.98 var(--serif); letter-spacing: -0.035em; }
.hero__line { display: block; padding-bottom: .06em; }
.hero__line > span { display: block; }
.hero__sub { margin: 22px 0 0; max-width: 40ch; font-size: clamp(17px, 1.5vw, 19px); color: var(--ink-2); }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.stats { display: grid; grid-template-columns: repeat(3, auto); justify-content: start; gap: 36px; margin: 40px 0 0; padding-top: 22px; border-top: 1px solid var(--line); }
.stats div { display: grid; gap: 4px; }
.stats dt { font: 400 clamp(32px, 3.6vw, 46px)/1 var(--serif); letter-spacing: -0.03em; }
.stats dd { margin: 0; color: var(--ink-2); font-size: 14px; max-width: 16ch; }
@media (max-width: 520px) { .stats { gap: 18px; } }

/* Conceptual desktop: one source, three jobs. Final state also works without JS. */
.desktop { width: 100%; max-width: 640px; justify-self: center; border: 1px solid var(--ink); background: var(--paper-2); box-shadow: 7px 7px 0 var(--shadow); }
.desktop__menu { display: flex; align-items: center; gap: 16px; min-height: 44px; padding-left: 12px; border-bottom: 1px solid var(--ink); font-size: 12px; }
.desktop__menu > span:first-child { display: flex; gap: 8px; align-items: center; }
.desktop__menu b { color: var(--red); font-weight: 400; }
.desktop__kind { margin-left: auto; color: var(--ink-2); font: 400 12px/1.4 var(--sans); }
.desktop__pause { align-self: stretch; min-width: 72px; min-height: 44px; border: 0; border-left: 1px solid var(--ink); background: var(--paper-2); color: var(--ink); font: 400 12px/1 var(--pixel); text-transform: uppercase; }
.desktop__pause[hidden] { display: none; }
.desktop__pause:hover, .desktop__pause:active { background: var(--ink); color: var(--paper-2); }
.desktop__area { position: relative; min-height: 490px; overflow: hidden; background: conic-gradient(var(--dither) 25%, transparent 0 50%, var(--dither) 0 75%, transparent 0) 0 0 / 4px 4px, var(--wallpaper); }
.desktop__status { min-height: 40px; display: flex; align-items: center; flex-wrap: wrap; gap: 7px; padding: 8px 12px; border-top: 1px solid var(--ink); font-size: 12px; }
.desktop__status > span { color: var(--red-ink); margin-right: 2px; }
.desktop__status b { font-weight: 400; margin-left: auto; }
.setup__source { position: relative; z-index: 2; margin: 26px 0 0 7%; width: 70%; }
.setup__source-body { display: flex; align-items: center; gap: 12px; padding: 16px; font: 400 20px/1.2 var(--serif); }
.setup__source-body img { width: 30px; height: 30px; }
.setup__check { margin-left: auto; display: grid; place-items: center; height: 21px; width: 21px; flex-shrink: 0; border: 1px solid var(--ink); font: 400 16px/1 var(--sans); color: var(--red-ink); }
.setup__connections { position: relative; height: 43px; width: 78%; margin-left: 11%; display: grid; grid-template-columns: repeat(3, 1fr); }
.setup__connections::before { content: ""; position: absolute; top: 0; height: 20px; width: 1px; background: var(--red-ink); left: 50%; }
.setup__connections i { position: relative; margin-top: 19px; border-top: 1px solid var(--red-ink); transform-origin: center top; }
.setup__connections i:first-child { margin-left: 50%; }
.setup__connections i:last-child { margin-right: 50%; }
.setup__connections i::after { content: ""; position: absolute; top: 0; height: 25px; width: 1px; background: var(--red-ink); left: 50%; }
.setup__connections i:first-child::after { left: 0; }
.setup__connections i:last-child::after { left: auto; right: 0; }
.setup__window { position: relative; z-index: 1; width: 86%; margin: 0 auto 28px; }
.win__size { position: absolute; right: 7px; width: 10px; height: 10px; background: var(--paper-2); border: 1px solid var(--ink); }
.setup__jobs { display: none; grid-template-columns: repeat(3, 1fr); gap: 4px; padding: 21px 12px 14px; }
.js .setup__jobs { display: grid; }
.setup__job { display: grid; justify-items: center; gap: 9px; border: 0; background: transparent; padding: 6px 3px; color: var(--ink); font: 400 14px/1 var(--pixel); cursor: pointer; }
.setup__job > span:last-child { padding: 4px 6px; }
.setup__job[aria-selected="true"] > span:last-child { color: var(--paper-2); background: var(--ink); }
.setup__folder { width: 53px; height: 36px; border: 1px solid var(--ink); position: relative; background: var(--folder); box-shadow: 2px 2px 0 var(--shadow); display: grid; place-items: center; transition: transform 180ms var(--ease-out), box-shadow 180ms var(--ease-out); }
.setup__folder::before { content: ""; position: absolute; top: -8px; left: -1px; width: 24px; height: 7px; border: 1px solid var(--ink); border-bottom: 0; background: var(--folder); }
.setup__folder b { font: 400 20px/1 var(--pixel); }
.setup__job[aria-selected="true"] .setup__folder { background: var(--paper-2); box-shadow: 3px 3px 0 var(--red); }
.setup__job[aria-selected="true"] .setup__folder::before { background: var(--paper-2); }
@media (hover: hover) { .setup__job:hover .setup__folder { transform: translateY(-4px); box-shadow: 3px 6px 0 var(--shadow); } }
.setup__job:active .setup__folder { transform: translateY(1px); box-shadow: 1px 1px 0 var(--shadow); }
.setup__panels { min-height: 70px; border-top: 1px solid var(--ink); padding: 13px 18px; }
.setup__panels [hidden] { display: none; }
.setup__panels > div > b, .setup__panels > div > span { display: block; text-align: center; }
.setup__panels > div > b { font-size: 14px; font-weight: 500; }
.setup__panels > div > span { font-size: 14px; color: var(--ink-2); }
.setup__disk { display: none; }
@media (min-width: 1200px) {
  .setup__disk { display: grid; justify-items: center; gap: 7px; position: absolute; right: 4%; top: 26px; font-size: 12px; }
  .setup__disk > span { display: block; width: 32px; height: 24px; border: 1px solid var(--ink); background: var(--paper-2); box-shadow: 2px 2px 0 var(--shadow); position: relative; }
  .setup__disk > span::before { content: ""; position: absolute; inset: 15px 4px auto; border-top: 2px solid var(--ink); }
}
@media (max-width: 520px) {
  .desktop__menu, .desktop__pause { min-height: 44px; }
  .desktop__area { min-height: 468px; }
  .setup__source { width: 79%; margin-top: 22px; }
  .setup__source-body { padding: 14px 12px; gap: 9px; font-size: 19px; }
  .setup__source-body img { width: 25px; height: 25px; }
  .setup__jobs { padding: 20px 7px 12px; }
  .setup__job { font-size: 12px; }
  .setup__folder { width: 44px; height: 32px; }
  .setup__panels { padding-inline: 9px; }
  .desktop__status { font-size: 12px; }
}
html:not(.js) .setup__panels > div + div { margin-top: 10px; }

/* Selected folder contents: three different, deliberately schematic previews. */
.setup__preview { height: 78px; display: flex; justify-content: center; align-items: center; gap: 12px; margin-bottom: 10px; }
.setup__preview i { display: grid; place-items: center; font: 16px/1 var(--pixel); font-style: normal; }
.preview__file { position: relative; width: 49px; height: 62px; border: 1px solid var(--ink); background: var(--paper); box-shadow: 3px 3px 0 var(--shadow); }
.preview__file::after { content: ""; position: absolute; top: -1px; right: -1px; width: 12px; height: 12px; border-left: 1px solid var(--ink); border-bottom: 1px solid var(--ink); background: var(--folder); }
.preview__file + .preview__file { color: var(--red-ink); box-shadow: 3px 3px 0 var(--red); }
.preview--shows { gap: 7px; }
.preview--shows i { width: 52px; height: 47px; border: 1px solid var(--ink); border-top: 8px solid var(--ink); background: var(--paper); box-shadow: 2px 2px 0 var(--shadow); }
.preview--shows i:nth-child(2) { border-top-color: var(--red); color: var(--red-ink); }
.setup__preview .preview__record { width: 64px; height: 64px; border: 1px solid var(--ink); background: repeating-radial-gradient(circle, var(--ink) 0 2px, var(--paper-2) 3px 4px, var(--ink) 5px 7px); position: relative; box-shadow: 3px 3px 0 var(--shadow); }
.preview__record::after { content: ""; width: 18px; height: 18px; border: 6px solid var(--red); border-radius: 50%; background: var(--paper-2); }
.setup__preview .preview__tracks { display: grid; width: 65px; gap: 9px; }
.preview__tracks em { height: 6px; background: var(--ink); position: relative; }
.preview__tracks em:nth-child(2) { width: 80%; background: var(--red); }
.preview__tracks em:nth-child(3) { width: 90%; }
html:not(.js) .setup__preview { display: none; }

/* ---------- Why: today vs HolyArrs ---------- */
.cmp { display: grid; gap: 28px; margin-top: 40px; align-items: start; }
@media (min-width: 980px) { .cmp { grid-template-columns: 1.3fr 1fr; gap: 48px; } }
.cmp table { width: 100%; border-collapse: collapse; border: 1px solid var(--ink); background: var(--paper-2); box-shadow: 4px 4px 0 var(--shadow); }
.cmp th, .cmp td { padding: 14px 16px; text-align: left; border-bottom: 1px solid var(--line); }
@media (max-width: 520px) { .cmp th, .cmp td { padding: 14px 8px; } }
.cmp thead th { font: 400 14px/1 var(--pixel); text-transform: uppercase; border-bottom: 1px solid var(--ink); }
.cmp tbody th { font-weight: 400; color: var(--ink-2); }
.cmp td { font: 400 clamp(18px, 2.2vw, 28px)/1.2 var(--serif); }
.cmp td:last-child { color: var(--red-ink); }
.cmp tbody tr:last-child th, .cmp tbody tr:last-child td { border-bottom: 0; }
.app-cabinet { min-width: 0; border: 1px solid var(--ink); background: var(--paper-2); box-shadow: 4px 4px 0 var(--shadow); }
.app-cabinet__title { margin: 0; padding: 12px 16px; border-bottom: 1px solid var(--ink); font: 400 14px/1.5 var(--pixel); text-transform: uppercase; }
.cmp__apps { list-style: none; margin: 0; padding: 16px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 12px; }
.cmp__apps li { display: flex; align-items: center; gap: 10px; min-width: 0; font-size: 16px; }
.cmp__apps li > span { display: grid; gap: 2px; min-width: 0; }
.cmp__apps b { font-weight: 400; overflow-wrap: anywhere; }
.cmp__apps img { width: 28px; height: 28px; flex: 0 0 28px; object-fit: contain; }
.cmp__apps small { font: 400 13px/1.5 var(--sans); color: var(--ink-2); }
.app-cabinet__destination { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin: 0 16px 16px; padding: 10px 12px; border: 1px solid var(--red-ink); color: var(--red-ink); }
.app-cabinet__destination > span { font: 400 24px/1.1 var(--serif); }
.app-cabinet__destination small { margin-left: auto; font-size: 13px; color: var(--ink-2); }
.app-cabinet__title--keep { border-top: 1px solid var(--ink); border-bottom-color: var(--line); letter-spacing: 1.28px; }
.cmp__apps--keep { background: var(--paper); }
@media (max-width: 370px) {
  .cmp__apps { padding: 14px 10px; gap: 16px 8px; }
  .cmp__apps li { gap: 7px; font-size: 14px; }
  .cmp__apps--keep { grid-template-columns: 1fr; }
}

/* ---------- Brief entrance after the welcome; no-JS content stays visible ---------- */
@media (prefers-reduced-motion: no-preference) {
  .hero__line > span { animation: line-in .55s var(--ease-out) both; }
  .hero__line + .hero__line > span { animation-delay: .08s; }
  .hero__kicker, .hero__sub, .hero__cta, .stats { animation: copy-in .45s var(--ease-out) both; }
  .hero__sub { animation-delay: .08s; } .hero__cta { animation-delay: .14s; } .stats { animation-delay: .2s; }
  @keyframes line-in { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
  @keyframes copy-in { from { opacity: 0; transform: translateY(var(--motion-distance)); } to { opacity: 1; transform: none; } }
}

/* ---------- Body layout: side contents list + column ---------- */
.layout { display: grid; max-width: 1240px; }
@media (min-width: 1100px) { .layout { grid-template-columns: 190px 1fr; gap: 64px; } }
.toc { display: none; }
.toc.is-past-sections { visibility: hidden; }
@media (min-width: 1100px) {
  .toc { display: block; position: sticky; top: 100px; align-self: start; padding-top: 110px; }
  .toc ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
  .toc a { display: flex; gap: 14px; padding: 7px 0; font-size: 14px; text-decoration: none; color: var(--ink-2); }
  .toc a span { font: 400 13px/1.5 var(--pixel); }
  .toc a:hover, .toc a[aria-current="location"] { color: var(--ink); }
  .toc a[aria-current="location"] span { color: var(--red-ink); }
}
.toc a { transition: color 120ms steps(2); }
.toc a:hover span { color: var(--red-ink); }
.toc a span { font-size: 12px; letter-spacing: .08em; }
.content { min-width: 0; }
.sec { padding-block: 72px; }
@media (min-width: 900px) { .sec { padding-block: 104px; } }
.h2 { margin: 0; font: 400 clamp(36px, 5vw, 60px)/1.02 var(--serif); letter-spacing: -0.03em; text-wrap: balance; }
.lede { margin: 16px 0 0; max-width: 58ch; color: var(--ink-2); font-size: 18px; }

/* ---------- Old-OS windows ---------- */
.win { background: var(--paper-2); border: 1px solid var(--ink); box-shadow: 4px 4px 0 var(--shadow); }
.win__bar {
  position: relative; margin: 0; display: flex; align-items: center; justify-content: center; min-height: 26px; padding: 0 30px;
  border-bottom: 1px solid var(--ink); font: 400 14px/1 var(--pixel); text-transform: uppercase;
  background: repeating-linear-gradient(180deg, var(--paper-2) 0 2px, var(--ink) 2px 3px) 0 6px / 100% 14px no-repeat, var(--paper-2);
}
.win__close { position: absolute; left: 8px; top: 50%; width: 12px; height: 12px; margin-top: -6px; background: var(--paper-2); border: 1px solid var(--ink); }
/* title text sits on a paper patch over the stripes */
.win__t { padding: 0 8px; background: var(--paper-2); }

/* ---------- The idea: editorial two-column list ---------- */
.idea { display: grid; margin-top: 40px; border-top: 1px solid var(--ink); }
@media (min-width: 860px) { .idea { grid-template-columns: repeat(2, 1fr); column-gap: 56px; } }
.idea > div { padding: 26px 0; border-bottom: 1px solid var(--line); }
.idea b { display: block; font: 400 clamp(26px, 2.6vw, 32px)/1.1 var(--serif); letter-spacing: -0.02em; }
.idea h3 { margin: 0; font: 400 clamp(26px, 2.6vw, 32px)/1.1 var(--serif); letter-spacing: -0.02em; }
.idea ul { margin: 10px 0 0; padding-left: 20px; color: var(--ink-2); }
.idea li + li { margin-top: 10px; }
.idea p { margin: 10px 0 0; color: var(--ink-2); max-width: 46ch; }

/* ---------- How I build: terminal window ---------- */
.term { margin-top: 40px; background: var(--paper-2); color: var(--ink); border: 1px solid var(--ink); box-shadow: 4px 4px 0 var(--red); }
.term__bar .win__t { background: var(--paper-2); }

.term__body { display: grid; gap: 0; padding: 8px 22px 22px; }
@media (min-width: 900px) { .term__body { grid-template-columns: repeat(2, 1fr); column-gap: 40px; padding: 10px 34px 30px; } }
.term__item { padding: 22px 0; border-bottom: 1px dashed var(--line); }
.term__item:first-child { grid-column: 1 / -1; }
.term__item h3 { margin: 0 0 10px; font-size: clamp(17px, 1.8vw, 21px); color: var(--red-ink); text-transform: none; }
.term__item p { margin: 8px 0 0; color: var(--ink-2); max-width: 70ch; }
.term__foot { font-size: 14px; }
.maker { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; margin-top: 24px; padding: 20px 22px; background: var(--paper-2); border: 1px solid var(--ink); }
.maker img { width: 56px; height: 56px; }
.maker div { flex: 1 1 320px; }
.maker b { font: 400 22px/1.2 var(--serif); }
.maker h2 { margin: 0; font: 400 28px/1.2 var(--serif); }
.maker p { margin: 4px 0 0; color: var(--ink-2); }

/* ---------- Progress (markup generated by dev/sync-roadmap.py) ---------- */
.w0 { width: 0%; } .w5 { width: 5%; } .w10 { width: 10%; } .w15 { width: 15%; } .w20 { width: 20%; } .w25 { width: 25%; } .w30 { width: 30%; }
.w35 { width: 35%; } .w40 { width: 40%; } .w45 { width: 45%; } .w50 { width: 50%; } .w55 { width: 55%; } .w60 { width: 60%; } .w65 { width: 65%; }
.w70 { width: 70%; } .w75 { width: 75%; } .w80 { width: 80%; } .w85 { width: 85%; } .w90 { width: 90%; } .w95 { width: 95%; } .w100 { width: 100%; }
.rm__overall { margin-top: 40px; padding: 24px; background: var(--paper-2); border: 1px solid var(--ink); display: grid; gap: 14px; }
.rm__overall div { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; }
.rm__overall b { font: 400 clamp(56px, 8vw, 88px)/1 var(--serif); letter-spacing: -0.03em; }
.rm__overall span { color: var(--ink-2); }
.rm__overall small { font: 400 13px/1.4 var(--pixel); color: var(--ink-2); }
/* Desktop-style bars keep the measured fill steady while work is active. */
.rm__bar { display: block; height: 12px; border: 1px solid var(--ink); padding: 2px; background: var(--paper); }
.rm__bar--big { height: 22px; padding: 3px; }
.rm__bar i { display: block; height: 100%; background: var(--red); }
.rm__bar.is-active i { position: relative; overflow: hidden; }
@media (prefers-reduced-motion: no-preference) {
  .rm__bar.is-active i::after { content: ''; position: absolute; inset: 0 0 0 -24px; background: linear-gradient(135deg, rgb(0 0 0 / .24) 25%, transparent 25% 50%, rgb(0 0 0 / .24) 50% 75%, transparent 75%) 0 0 / 24px 24px; animation: progress-work 1.2s linear infinite paused; }
  .rm__bar.is-running i::after { animation-play-state: running; }
  @keyframes progress-work { from { transform: translateX(0); } to { transform: translateX(24px); } }
}
.rm { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 10px; }
.rm__phase details { background: var(--paper-2); border: 1px solid var(--ink); }
.rm__phase.is-now details { box-shadow: 4px 4px 0 var(--red); }
.rm summary { list-style: none; display: grid; grid-template-columns: 36px 1fr auto; gap: 6px 14px; align-items: center; padding: 16px 18px; min-height: 44px; }
.rm summary::-webkit-details-marker { display: none; }
.rm summary .rm__bar { grid-column: 2 / -1; }
.rm__num { display: grid; place-items: center; width: 30px; height: 30px; border: 1px solid var(--ink); font: 400 14px/1 var(--pixel); }
.is-now .rm__num { background: var(--red); color: #fff; border-color: var(--red); }
.is-done .rm__num { background: var(--ink); color: var(--paper); }
.is-done .rm__bar i { background: var(--ink); }
.is-later .rm__num { border-style: dashed; }
.rm__head { display: grid; gap: 2px; min-width: 0; }
.rm__head b { font: 400 24px/1.15 var(--serif); }
.rm__head small { color: var(--ink-2); font-size: 14px; }
.rm__tag { font: 400 14px/1 var(--pixel); color: var(--ink-2); white-space: nowrap; text-transform: uppercase; }
.is-now .rm__tag { color: var(--red-ink); }
.rm__steps { list-style: none; margin: 0; padding: 4px 18px 18px 68px; display: grid; gap: 8px; }
.rm__steps li { display: grid; grid-template-columns: 40px 1fr auto 48px; gap: 12px; align-items: baseline; font-size: 15px; }
.rm__sn, .rm__n { font: 400 13px/1.5 var(--pixel); color: var(--ink-2); }
.rm__p { text-align: right; color: var(--ink); }
.is-later .rm__steps li { grid-template-columns: 40px 1fr; }
@media (max-width: 599px) { .rm__steps { padding-left: 18px; } .rm__head small { display: none; } .rm__steps li { grid-template-columns: 36px 1fr auto; } .rm__steps .rm__n:not(.rm__p) { display: none; } }

/* ---------- Signup dialog ---------- */
.win--dialog { max-width: 720px; box-shadow: 6px 6px 0 var(--shadow); }
.win__body--dialog { display: block; padding: 32px 28px 30px; }
@media (min-width: 700px) { .win__body--dialog { padding: 40px 44px 36px; } }
.form { display: grid; gap: 8px; margin-top: 26px; }
.form__label { font-size: 15px; text-transform: uppercase; }
.form__row { display: grid; gap: 10px; }
@media (min-width: 560px) { .form__row { grid-template-columns: 1fr auto; } }
.form input[type="email"] { min-height: 50px; width: 100%; padding: 0 16px; border: 1px solid var(--ink); background: var(--hover); color: var(--ink); font: 400 17px/1 var(--sans); border-radius: 0; }
.form input::placeholder { color: var(--ink-2); }
.form input[aria-invalid="true"] { border-color: var(--red); box-shadow: inset 0 0 0 1px var(--red); }
.form__help { margin: 4px 0 0; font-size: 14px; color: var(--ink-2); }
.form__msg { margin: 0; min-height: 1.5em; font: 400 15px/1.4 var(--pixel); }
.form__msg[data-kind="error"] { color: var(--red-ink); }
.form[aria-busy="true"] button { opacity: .7; pointer-events: none; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Footer ---------- */
.foot { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between; padding-block: 28px 44px; border-top: 1px solid var(--ink); margin-top: 24px; }
.foot__brand { display: inline-flex; align-items: center; gap: 8px; font: 400 20px/1 var(--serif); }
.foot nav { display: flex; align-items: center; gap: 20px; }
.foot nav a, .foot nav span { min-height: 44px; display: inline-flex; align-items: center; font-size: 15px; color: var(--ink-2); text-decoration: none; }
.foot nav a:hover { color: var(--ink); text-decoration: underline; }

/* ---------- Sub pages (confirmed, function pages) ---------- */
.top { border-bottom: 1px solid var(--ink); background: var(--paper); }
.top__row { height: 64px; display: flex; align-items: center; }
.brand { display: inline-flex; align-items: center; gap: 9px; text-decoration: none; font: 400 21px/1 var(--serif); }
.brand__mark { width: 24px; height: 24px; }
.page { padding-block: 56px 80px; max-width: 680px; }
.page h1 { font: 400 clamp(36px, 5vw, 54px)/1.05 var(--serif); margin: 0 0 20px; }
.page p { color: var(--ink-2); }
.btn { display: inline-flex; align-items: center; min-height: 48px; padding: 0 20px; border: 1px solid var(--ink); font: 400 15px/1 var(--pixel); text-transform: uppercase; cursor: pointer; }
.btn--red { background: var(--red); color: #fff; }

.sr { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; border: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }


/* A brief Macintosh welcome on each fresh document, with an independent CSS exit. */
.startup { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 24px; background: var(--paper); opacity: 0; visibility: hidden; pointer-events: none; transition: opacity 180ms ease-out, visibility 180ms; }
.is-starting .startup { opacity: 1; visibility: visible; pointer-events: auto; transition: none; animation: startup-exit 1ms 2800ms forwards; }
.startup__window { width: min(100%, 390px); padding: 38px 28px 26px; border: 1px solid var(--ink); box-shadow: 5px 5px 0 var(--shadow); text-align: center; background: var(--paper-2); position: relative; }
.startup__window::before { content: ""; position: absolute; inset: 5px 6px auto; height: 12px; border-block: 1px solid var(--ink); background: repeating-linear-gradient(to bottom, transparent 0 2px, var(--line) 2px 3px); }
.startup__screen { position: relative; display: grid; place-items: center; width: 92px; height: 80px; margin: 0 auto 24px; border: 2px solid var(--ink); border-radius: 9px 9px 2px 2px; box-shadow: inset 0 0 0 7px var(--folder); background: var(--hover); }
.startup__screen::after { content: ""; position: absolute; bottom: -9px; left: 28px; right: 28px; height: 7px; border: 1px solid var(--ink); background: var(--folder); }
.startup__screen img { width: 37px; height: 37px; }
.startup__cursor { position: absolute; width: 5px; height: 2px; right: 15px; bottom: 14px; background: var(--red); }
.startup__title { margin: 0 0 22px; font: 400 clamp(25px, 6vw, 32px)/1.1 var(--serif); letter-spacing: -.02em; }
.startup__track { height: 16px; max-width: 220px; margin: auto; border: 1px solid var(--ink); padding: 2px; background: var(--hover); }
.startup__track i { display: block; height: 100%; background: repeating-linear-gradient(90deg, var(--ink) 0 12px, transparent 12px 16px); }
.is-starting .startup__track i { animation: startup-progress 1850ms steps(14) both; }
.startup__caption { margin: 13px 0 0; font: 400 12px/1.5 var(--pixel); color: var(--ink-2); }
.is-starting .hero__line > span, .is-starting .hero__kicker, .is-starting .hero__sub, .is-starting .hero__cta, .is-starting .stats { animation: none; }
@keyframes startup-progress { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes startup-exit { to { opacity: 0; visibility: hidden; pointer-events: none; } }
@media (max-height: 360px) {
  .startup { padding: 12px; }
  .startup__window { padding: 27px 20px 16px; }
  .startup__screen { width: 68px; height: 56px; margin-bottom: 16px; }
  .startup__screen img { width: 28px; height: 28px; }
  .startup__screen::after { left: 20px; right: 20px; }
  .startup__title { font-size: 26px; margin-bottom: 14px; }
  .startup__caption { margin-top: 8px; }
}
@media (prefers-reduced-motion: reduce) {
  .is-starting .startup { animation: startup-exit 1ms 1800ms forwards !important; }
  .is-starting .startup__track i { animation: none; }
}

/* =================== Polish pass =================== */
/* FK Raster is drawn on a pixel grid: keep it at sizes where the pixels land whole (12, 16, 24). */
.box, .nav .box { font-size: 16px; letter-spacing: .03em; }
.box--brand { font-size: 21px; letter-spacing: -0.01em; }
.hero__kicker, .win__bar, .desktop__menu, .rm__tag, .rm__num, .form__label, .cmp thead th { font-size: 12px; letter-spacing: .08em; }
.term__item h3 { font-size: 24px; letter-spacing: 0; }
.rm__sn, .rm__n, .rm__overall small { font-size: 12px; letter-spacing: .06em; }

/* Text selection and small comforts */
::selection { background: var(--red); color: #fff; }

/* Build log: no rule under the last row; two-column items get matching heights */
.term__item:nth-last-child(-n+2) { border-bottom: 0; }
@media (max-width: 899px) { .term__item:nth-last-child(2) { border-bottom: 1px dashed var(--line); } }

/* Progress: phases not started yet get a quiet dashed track instead of an empty box */
.is-next .rm__bar { border-style: dashed; border-color: var(--line); background: transparent; }
.is-next .rm__head b { color: var(--ink-2); }
.rm__phase details { transition: box-shadow 160ms steps(2), transform 160ms steps(2); }
@media (hover: hover) { .rm__phase:not(.is-now) details:hover { box-shadow: 4px 4px 0 var(--shadow); transform: translate(-2px, -2px); } }
.rm summary { cursor: pointer; }
.rm summary:focus-visible { outline-offset: -4px; }

/* Comparison table: numbers line up, last row reads as the punchline */
.cmp td { font-variant-numeric: tabular-nums; width: 22%; }
.cmp tbody tr:last-child td:last-child { font-style: italic; }

/* Footer: a thin dither strip above it, like the hero wallpaper */
.foot { position: relative; }
.foot::before { content: ""; position: absolute; left: 0; right: 0; top: -9px; height: 8px; background: conic-gradient(var(--ink) 25%, transparent 0 50%, var(--ink) 0 75%, transparent 0) 0 0 / 4px 4px; opacity: .18; }
.nav .box--brand { font-size: 21px; letter-spacing: -0.01em; }
@media (max-width: 399px) { .nav .box { font-size: 12px; } .nav .box--brand { font-size: 19px; } }

/* Review fixes */
input, textarea { cursor: text; }
.desktop__menu b { color: var(--red); font-weight: 400; }
.stats dt { white-space: nowrap; }
@media (max-width: 400px) { .stats { gap: 14px; } .stats dt { font-size: 28px; } }

.form[data-state="success"] .form__msg { padding: 10px 12px; border: 1px solid var(--ink); background: var(--paper); }
.form[data-state="error"] .form__msg { padding-left: 10px; border-left: 2px solid var(--red); }
.form button:disabled { cursor: wait; box-shadow: none; transform: none; }

/* The same paper-and-ink system at night; system preference needs no extra control. */
@media (prefers-color-scheme: dark) {
  :root {
    --paper: #202326;
    --paper-2: #292D30;
    --ink: #F3F0E9;
    --ink-2: #BDC1C4;
    --line: #52595E;
    --shadow: #080A0C;
    --hover: #363B3F;
    --folder: #40474B;
    --wallpaper: #252A2D;
    --dither: #3B4246;
    --tint: #4A302E;
    --red-ink: #FF9D90;
  }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .setup__folder { transform: none !important; }
}
