/* Flickline — landing page
 * Editorial grid: a framed center column, mono section bars, crosshair marks
 * where rules meet, and a right rail that tracks where you are on the page.
 * Accent is the app's own cyan (ui/src/styles/tokens.css).
 */

/* ───────────── Tokens ───────────── */

:root,
:root[data-theme='dark'] {
  color-scheme: dark;
  --bg: #121215;
  --bg-raise: #18181c;
  --well: #1e1e23;
  --term: #0d0d10;
  --line: rgb(255 255 255 / 0.09);
  --line-2: rgb(255 255 255 / 0.16);
  --line-3: rgb(255 255 255 / 0.32);
  --text: #f1f1f3;
  --text-2: #a4a4ad;
  --text-3: #6c6c76;
  --accent: #3fdde6;
  --accent-strong: #00c8d4;
  --accent-ink: #032024;
  --inv-bg: #f4f4f5;
  --inv-fg: #111114;
  --strike: rgb(255 90 95 / 0.75);
  --ok: #3ccf8e;
  --shadow: 0 24px 60px -20px rgb(0 0 0 / 0.7);
  --nav-bg: rgb(18 18 21 / 0.86);
}

:root[data-theme='light'] {
  color-scheme: light;
  --bg: #f5f5f6;
  --bg-raise: #ffffff;
  --well: #ebebee;
  --term: #16161a;
  --line: rgb(0 0 0 / 0.09);
  --line-2: rgb(0 0 0 / 0.16);
  --line-3: rgb(0 0 0 / 0.34);
  --text: #111114;
  --text-2: #55555f;
  --text-3: #8a8a94;
  --accent: #008b96;
  --accent-strong: #00a3ae;
  --accent-ink: #ffffff;
  --inv-bg: #111114;
  --inv-fg: #ffffff;
  --strike: rgb(220 50 60 / 0.7);
  --ok: #138a55;
  --shadow: 0 24px 60px -24px rgb(0 0 0 / 0.25);
  --nav-bg: rgb(245 245 246 / 0.88);
}

:root {
  --display: 'Archivo', 'Arial Black', ui-sans-serif, system-ui, sans-serif;
  --sans: 'Inter', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, 'SFMono-Regular', Menlo, monospace;

  --nav-h: 52px;
  --pad: 40px;
  --side: clamp(0px, calc((100vw - 1100px) / 2), 320px);
  --frame-w: min(1280px, calc(100vw - 2 * var(--side)));
  --ease: cubic-bezier(0.2, 0.7, 0.1, 1);
}

/* ───────────── Base ───────────── */

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-h);
  -webkit-text-size-adjust: 100%;
  overflow-x: clip;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 16px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
  transition: background-color 0.35s, color 0.35s;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
h1, h2, h3 { margin: 0; }
p { margin: 0; }

code {
  font-family: var(--mono);
  font-size: 0.86em;
  padding: 0.12em 0.4em;
  background: var(--well);
  color: var(--text);
}

:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
::selection { background: var(--accent-strong); color: var(--accent-ink); }

.skip {
  position: fixed; left: 12px; top: -60px; z-index: 200;
  background: var(--inv-bg); color: var(--inv-fg);
  padding: 10px 14px; font: 700 12px/1 var(--mono); text-transform: uppercase; letter-spacing: 0.14em;
}
.skip:focus { top: 12px; }

[data-theme='dark'] .only-light,
[data-theme='light'] .only-dark { display: none !important; }

/* ───────────── Type primitives ───────────── */

.display {
  font-family: var(--display);
  font-stretch: 125%;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1;
  font-size: clamp(38px, 4.8vw, 70px);
}
.display em { font-style: normal; color: var(--accent); }
.display-sm { font-size: clamp(32px, 3.6vw, 52px); }

.label {
  font: 500 11.5px/1.5 var(--mono);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--text-3);
}
.label-link { color: var(--text-2); display: inline-flex; align-items: center; gap: 8px; transition: color 0.2s; }
.label-link:hover { color: var(--text); }
.label-accent { color: var(--accent); }
.label-dim { color: var(--text-3); }

.num {
  font: 500 11.5px/1 var(--mono);
  letter-spacing: 0.12em;
  color: var(--text-3);
}

.ulink {
  font-size: 15px;
  color: var(--text-2);
  text-decoration: underline;
  text-decoration-color: var(--line-3);
  text-underline-offset: 4px;
  transition: color 0.2s, text-decoration-color 0.2s;
}
.ulink:hover { color: var(--text); text-decoration-color: currentColor; }

/* ───────────── Buttons ───────────── */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 48px;
  padding: 0 24px;
  border: 1px solid transparent;
  border-radius: 0;
  font: 700 12px/1 var(--mono);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 0.2s, color 0.2s, border-color 0.2s;
}
.btn-solid { background: var(--inv-bg); color: var(--inv-fg); border-color: var(--inv-bg); }
.btn-solid:hover { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn-line { background: transparent; color: var(--text); border-color: var(--line-3); }
.btn-line:hover { background: var(--well); border-color: var(--text-2); }
.btn-block { width: 100%; }
.btn .size { font-style: normal; font-weight: 500; letter-spacing: 0.04em; opacity: 0.6; }
.btn .size:empty { display: none; }

/* ───────────── Scroll progress ───────────── */

.progress {
  position: fixed; inset: 0 0 auto 0; z-index: 120;
  height: 3px;
  background: var(--line);
  pointer-events: none;
}
.progress span {
  display: block; height: 100%;
  background: var(--accent-strong);
  transform-origin: left;
  transform: scaleX(var(--p, 0));
}

/* ───────────── Nav ───────────── */

.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  height: var(--nav-h);
  display: flex;
  align-items: stretch;
  background: var(--nav-bg);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid var(--line-2);
  transition: background-color 0.35s;
}
.nav-logo {
  flex: none;
  width: 68px;
  display: grid;
  place-items: center;
  border-right: 1px solid var(--line-2);
}
.nav-logo img { border-radius: 7px; transition: transform 0.4s var(--ease); }
.nav-logo:hover img { transform: rotate(-8deg) scale(1.06); }

.nav-links {
  display: flex;
  align-items: center;
  padding: 0 8px;
  border-right: 1px solid var(--line-2);
}
.nav-links a {
  padding: 0 14px;
  font: 500 12px/52px var(--mono);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--text-2);
  transition: color 0.2s;
  position: relative;
}
.nav-links a:hover, .nav-links a[aria-current='true'] { color: var(--text); }
.nav-links a[aria-current='true']::after {
  content: '';
  position: absolute; left: 14px; right: 14px; bottom: -1px;
  height: 2px; background: var(--accent-strong);
}

.nav-badge {
  align-self: center;
  margin-left: 16px;
  padding: 5px 8px 4px;
  background: var(--inv-bg);
  color: var(--inv-fg);
  font: 700 11px/1 var(--mono);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  transition: background-color 0.2s, color 0.2s;
}
.nav-badge:hover { background: var(--accent); color: var(--accent-ink); }

.nav-end { margin-left: auto; display: flex; align-items: stretch; }
.nav-cell {
  width: 52px;
  display: grid;
  place-items: center;
  border: 0;
  border-left: 1px solid var(--line-2);
  background: transparent;
  color: var(--text-2);
  cursor: pointer;
  transition: color 0.2s, background-color 0.2s;
}
.nav-cell:hover { color: var(--text); background: var(--well); }
[data-theme='dark'] .i-moon, [data-theme='light'] .i-sun { display: none; }
.nav-menu { display: none; }
.nav-cta {
  display: flex;
  align-items: center;
  padding: 0 30px;
  background: var(--inv-bg);
  color: var(--inv-fg);
  font: 700 12px/1 var(--mono);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  transition: background-color 0.2s, color 0.2s;
}
.nav-cta:hover { background: var(--accent); color: var(--accent-ink); }

/* ───────────── Frame ───────────── */

.frame {
  position: relative;
  width: var(--frame-w);
  margin: 0 auto;
  padding-top: var(--nav-h);
}
/* The frame's side rules draw themselves in on load. */
.frame::before,
.frame::after {
  content: '';
  position: absolute;
  top: 0; bottom: 0;
  width: 1px;
  background: var(--line-2);
  transform-origin: top;
  animation: drawY 1.6s var(--ease) both;
  pointer-events: none;
  z-index: 2;
}
.frame::before { left: -1px; }
.frame::after { right: -1px; }
@keyframes drawY { from { transform: scaleY(0); } to { transform: scaleY(1); } }

.sec { position: relative; }

/* Crosshairs where a section rule meets the frame. */
.sec + .sec::before,
.sec + .sec::after {
  content: '';
  position: absolute;
  top: -7px;
  width: 13px; height: 13px;
  background:
    linear-gradient(var(--text-3), var(--text-3)) center / 13px 1px no-repeat,
    linear-gradient(var(--text-3), var(--text-3)) center / 1px 13px no-repeat;
  z-index: 3;
}
.sec + .sec::before { left: -7px; }
.sec + .sec::after { right: -7px; }

/* Section bar */
.bar {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 44px;
  padding: 10px var(--pad);
  border-bottom: 1px solid var(--line-2);
  font: 500 11.5px/1.4 var(--mono);
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--text-3);
}
.bar b { font-weight: 500; color: var(--text-3); }
.bar > span:first-child { color: var(--text-2); }
.bar-meta { text-align: right; }
a.bar-meta { transition: color 0.2s; }
a.bar-meta:hover { color: var(--text); }
/* Rules that open a section run the full width of the window. */
.sec + .sec > .bar:first-child::before {
  content: '';
  position: absolute;
  top: -1px; left: -100vw; right: -100vw;
  height: 1px;
  background: var(--line-2);
}
.bar-mid { border-top: 1px solid var(--line-2); }
.bar-note { border-bottom: 1px solid var(--line-2); letter-spacing: 0.14em; }

.sec-head { padding: 80px var(--pad) 84px; }
.sec-head-tight { padding-bottom: 72px; }
.sec-lede {
  margin-top: 26px;
  max-width: 620px;
  font-size: 17.5px;
  line-height: 1.6;
  color: var(--text-2);
}

/* ───────────── Grid cells ───────────── */

.cells {
  display: grid;
  gap: 1px;
  background: var(--line-2);
  border-top: 1px solid var(--line-2);
  border-bottom: 1px solid var(--line-2);
  margin: 0;
}
.cells + .cells, .cells + .stack { border-top: 0; }
.cells-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.cells-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.cell {
  position: relative;
  background: var(--bg);
  padding: 72px 32px 40px;
  transition: background-color 0.35s;
}
.cell > .num { position: absolute; top: 34px; right: 32px; }
.cell h3 {
  font: 600 clamp(20px, 1.9vw, 26px)/1.15 var(--display);
  font-stretch: 118%;
  letter-spacing: -0.02em;
}
.cell > p { margin-top: 14px; color: var(--text-2); font-size: 16px; line-height: 1.6; }
.cells-3 .cell:hover { background: var(--bg-raise); }

/* ───────────── Hero ───────────── */

.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 88px var(--pad) 72px;
}
.hero-icon {
  width: 112px; height: 112px;
  border-radius: 26px;
  animation: iconIn 1s var(--ease) both;
}
@keyframes iconIn {
  from { opacity: 0; transform: translateY(14px) scale(0.92); }
  to { opacity: 1; transform: none; }
}

.hero-mark {
  margin-top: 22px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.chip {
  padding: 5px 7px 4px;
  background: var(--accent-strong);
  color: var(--accent-ink);
  font: 700 11px/1 var(--mono);
  letter-spacing: 0.08em;
}
.wordmark {
  font: 600 27px/1 var(--display);
  font-stretch: 112%;
  letter-spacing: -0.02em;
}
.wordmark em { font-style: normal; color: var(--accent); }

.hero-title {
  margin-top: 30px;
  font-size: clamp(44px, 6.4vw, 100px);
  line-height: 1.0;
  letter-spacing: -0.035em;
}
.hero-title .ln { display: block; overflow: hidden; padding: 0.04em 0.06em 0.1em; margin: -0.04em -0.06em -0.1em; }
.hero-title .ln > span {
  display: inline-block;
  transform: translateY(110%);
  animation: rise 1.1s var(--ease) forwards;
  animation-delay: 0.18s;
}
.hero-title .ln:nth-child(2) > span { animation-delay: 0.3s; }
@keyframes rise { to { transform: none; } }

.hero .lede {
  margin-top: 30px;
  max-width: 600px;
  font-size: 18.5px;
  line-height: 1.6;
  color: var(--text-2);
}

.h-in { opacity: 0; transform: translateY(10px); animation: fadeUp 0.9s var(--ease) forwards; animation-delay: var(--d, 0ms); }
@keyframes fadeUp { to { opacity: 1; transform: none; } }

.cta-row { margin-top: 38px; display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.cta-row-left { justify-content: flex-start; }

.hero > .label { margin-top: 22px; }
.hero > .ulink { margin-top: 10px; }
.hero > .label-link { margin-top: 32px; }
.hero > .label-dim { margin-top: 22px; }

/* Split download button + format menu */
.split { position: relative; display: inline-flex; }
.split-toggle { width: 48px; padding: 0; border-left-color: rgb(127 127 127 / 0.35); }
.split-toggle svg { transition: transform 0.25s var(--ease); }
.split-toggle[aria-expanded='true'] svg { transform: rotate(180deg); }
.menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  z-index: 30;
  width: max(100%, 360px);
  padding: 6px 0;
  background: var(--bg-raise);
  border: 1px solid var(--line-2);
  box-shadow: var(--shadow);
  text-align: left;
  animation: menuIn 0.2s var(--ease);
}
@keyframes menuIn { from { opacity: 0; transform: translateY(-4px); } }
.menu-label { padding: 10px 16px 6px; font: 500 10.5px/1 var(--mono); text-transform: uppercase; letter-spacing: 0.18em; color: var(--text-3); }
.menu a {
  display: grid;
  grid-template-columns: 92px 1fr auto;
  align-items: baseline;
  gap: 12px;
  padding: 9px 16px;
  font-size: 14px;
  transition: background-color 0.15s;
}
.menu a:hover, .menu a:focus-visible { background: var(--well); outline: none; }
.menu b { font-weight: 600; }
.menu span { color: var(--text-2); font-size: 13.5px; }
.menu i { font: 400 11.5px/1 var(--mono); font-style: normal; color: var(--text-3); }

/* Share strip */
.share {
  margin-top: 30px;
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: center;
  border: 1px solid var(--line-2);
}
.share > * {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 38px;
  padding: 0 14px;
  border: 0;
  border-left: 1px solid var(--line-2);
  background: transparent;
  font: 700 11px/1 var(--mono);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--text);
  cursor: pointer;
  transition: background-color 0.2s, color 0.2s;
}
.share > *:first-child { border-left: 0; }
.share > a:hover, .share > button:hover { background: var(--well); }
.share .share-k { color: var(--text-3); font-weight: 500; cursor: default; }
.share button.done { color: var(--ok); }

/* Screenshots */
.shot { margin: 0; overflow: hidden; }
.shot img { width: 100%; }
.shot-hero img { transform: scale(1.035); transition: transform 1.6s var(--ease); }
.shot-hero.is-in img, html:not(.js) .shot-hero img { transform: none; }

/* ───────────── Why Linux ───────────── */

.issues { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line-2); }
.issue {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr) minmax(0, 1.2fr);
  gap: 14px 40px;
  padding: 34px var(--pad);
  border-bottom: 1px solid var(--line);
  position: relative;
  transition: background-color 0.3s;
}
.issue:last-child { border-bottom-color: var(--line-2); }
.issue:hover { background: var(--bg-raise); }
.issue .num { line-height: 1.9; }
.issue::before {
  content: '';
  position: absolute; left: 0; top: -1px;
  width: 3px; height: calc(100% + 2px);
  background: var(--accent-strong);
  transform-origin: top;
  transform: scaleY(0);
  transition: transform 0.5s var(--ease);
}
.issue:hover::before { transform: scaleY(1); }

.issue-problem { font-size: 18px; line-height: 1.45; color: var(--text-3); }
.issue-problem span {
  background-image: linear-gradient(var(--strike), var(--strike));
  background-repeat: no-repeat;
  background-position: 0 58%;
  background-size: 0% 1.5px;
  transition: background-size 1.1s var(--ease) 0.35s;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}
.issue.is-in .issue-problem span, html:not(.js) .issue-problem span { background-size: 100% 1.5px; }
.issue-fix h3 {
  font: 600 20px/1.25 var(--display);
  font-stretch: 112%;
  letter-spacing: -0.015em;
}
.issue-fix p { margin-top: 8px; color: var(--text-2); font-size: 16px; }

/* ───────────── Gallery ───────────── */

.gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  background: var(--line-2);
  border-bottom: 1px solid var(--line-2);
}
.gcell { margin: 0; background: var(--bg); display: flex; flex-direction: column; }
.gcell-wide { grid-column: 1 / -1; }
.gcell figcaption {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  min-height: 46px;
  padding: 10px var(--pad);
  border-top: 1px solid var(--line-2);
  font: 500 11.5px/1.4 var(--mono);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--text-2);
}
.zoom {
  display: block;
  padding: 0;
  border: 0;
  background: none;
  cursor: zoom-in;
  overflow: hidden;
}
.zoom img { width: 100%; transition: transform 0.9s var(--ease), filter 0.4s; }
.zoom:hover img { transform: scale(1.025); }

/* Theme compare */
.compare { position: relative; user-select: none; touch-action: pan-y; overflow: hidden; }
.compare > img { width: 100%; }
.compare-top { position: absolute; inset: 0; clip-path: inset(0 0 0 var(--pos)); }
.compare-top img { width: 100%; height: 100%; object-fit: cover; }
.compare-line {
  position: absolute; top: 0; bottom: 0; left: var(--pos);
  width: 1px;
  background: var(--accent-strong);
  pointer-events: none;
}
.compare-knob {
  position: absolute; top: 50%; left: 50%;
  width: 40px; height: 40px;
  transform: translate(-50%, -50%);
  background: var(--inv-bg);
  border: 1px solid var(--accent-strong);
  transition: transform 0.25s var(--ease);
}
.compare-knob::before, .compare-knob::after {
  content: '';
  position: absolute; top: 50%;
  border: 5px solid transparent;
  transform: translateY(-50%);
}
.compare-knob::before { left: 8px; border-right: 6px solid var(--inv-fg); border-left: 0; }
.compare-knob::after { right: 8px; border-left: 6px solid var(--inv-fg); border-right: 0; }
.compare:hover .compare-knob { transform: translate(-50%, -50%) rotate(45deg) scale(0.9); }
.compare:hover .compare-knob::before, .compare:hover .compare-knob::after { opacity: 0; }
.compare input {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  margin: 0; opacity: 0;
  cursor: ew-resize;
  -webkit-appearance: none; appearance: none;
}
.compare:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: -2px; }

/* Lightbox */
.lightbox {
  width: min(1600px, 94vw);
  max-width: none;
  max-height: 92vh;
  padding: 0;
  border: 1px solid var(--line-3);
  background: var(--bg);
  color: var(--text);
}
.lightbox::backdrop { background: rgb(0 0 0 / 0.78); backdrop-filter: blur(4px); }
.lightbox[open] { animation: lbIn 0.3s var(--ease); }
@keyframes lbIn { from { opacity: 0; transform: scale(0.98); } }
.lightbox img { width: 100%; max-height: calc(92vh - 46px); object-fit: contain; }
.lightbox form { display: flex; justify-content: flex-end; border-bottom: 1px solid var(--line-2); }
.lightbox-close {
  height: 44px; padding: 0 18px;
  border: 0; border-left: 1px solid var(--line-2);
  background: transparent;
  font: 700 11px/1 var(--mono); text-transform: uppercase; letter-spacing: 0.16em;
  cursor: pointer;
}
.lightbox-close:hover { background: var(--well); }

/* ───────────── Engine ───────────── */

.spec { padding-top: 76px; }
.spec dt {
  display: flex;
  align-items: baseline;
  gap: 6px;
  font: 700 clamp(44px, 4.8vw, 68px)/1 var(--display);
  font-stretch: 125%;
  letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
}
.spec dt small { font: 500 13px/1 var(--mono); letter-spacing: 0.08em; color: var(--text-3); text-transform: uppercase; }
.spec dd { margin: 16px 0 0; color: var(--text-2); font-size: 15.5px; max-width: 30ch; }

.flicks .cell em { font-style: normal; font-family: var(--mono); color: var(--text); font-size: 0.92em; }
.rates { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 6px; }
.rates button {
  height: 32px;
  padding: 0 11px;
  border: 1px solid var(--line-2);
  background: transparent;
  font: 500 12px/1 var(--mono);
  color: var(--text-2);
  cursor: pointer;
  transition: color 0.2s, background-color 0.2s, border-color 0.2s;
}
.rates button:hover { color: var(--text); border-color: var(--line-3); }
.rates button[aria-pressed='true'] { background: var(--inv-bg); color: var(--inv-fg); border-color: var(--inv-bg); }
.rates .rates-br { flex-basis: 100%; height: 0; }

.readout { display: flex; flex-direction: column; justify-content: center; }
.readout > .label { color: var(--text); }
.ro { margin-top: 18px; border-top: 1px solid var(--line-2); }
.ro-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}
.ro-v {
  font: 400 clamp(16px, 1.7vw, 21px)/1.2 var(--mono);
  font-variant-numeric: tabular-nums;
  text-align: right;
  overflow-wrap: anywhere;
}
.ro-float .ro-v { color: var(--text-2); }
.ro-float.inexact .ro-v { color: var(--text-3); text-decoration: line-through; text-decoration-color: var(--strike); text-decoration-thickness: 1.5px; }
.ro-exact .ro-v {
  font: 700 clamp(28px, 3.2vw, 44px)/1 var(--display);
  font-stretch: 125%;
  letter-spacing: -0.03em;
  color: var(--accent);
}
.ro-ok { color: var(--ok); }
.ro-v.tick { animation: tick 0.45s var(--ease); }
@keyframes tick { from { opacity: 0.15; transform: translateY(8px); } }

.stack {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  background: var(--line-2);
  border-bottom: 1px solid var(--line-2);
}
.stack li {
  background: var(--bg);
  padding: 22px 24px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  transition: background-color 0.25s;
}
.stack li:hover { background: var(--bg-raise); }
.stack b { font: 600 18px/1.1 var(--display); font-stretch: 112%; letter-spacing: -0.01em; }
.stack span { font: 500 11px/1.4 var(--mono); text-transform: uppercase; letter-spacing: 0.14em; color: var(--text-3); }

/* ───────────── Headless ───────────── */

.cli { border-top: 0; }
.cli .cell { padding-top: 64px; }
.cli-copy .sec-lede { font-size: 16.5px; }
.checks { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 10px; }
.checks-row { display: flex; flex-wrap: wrap; gap: 10px 26px; }
.checks li {
  display: flex;
  align-items: center;
  gap: 10px;
  font: 500 11.5px/1.4 var(--mono);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--text-2);
}
.checks li::before {
  content: '';
  width: 10px; height: 6px;
  border-left: 1.5px solid var(--accent);
  border-bottom: 1.5px solid var(--accent);
  transform: rotate(-45deg) translateY(-2px);
}
.term-cell { padding: 0; background: var(--term); display: flex; }
.term { width: 100%; display: flex; align-items: center; }
.term pre {
  margin: 0;
  width: 100%;
  padding: 40px 36px;
  overflow-x: auto;
  font: 400 13.5px/1.8 var(--mono);
  color: #e6e6ea;
}
.term code { background: none; padding: 0; font-size: inherit; color: inherit; }
.term .c { color: #6c6c76; }
.term .p { color: #3fdde6; user-select: none; }
.term .ln { transition: opacity 0.35s var(--ease); }
.js .term:not(.is-done) .ln { opacity: 0; }
.js .term .ln.on { opacity: 1; }
.caret {
  display: inline-block;
  width: 8px; height: 1.1em;
  margin-left: 4px;
  vertical-align: -0.2em;
  background: #3fdde6;
  animation: blink 1.1s steps(1) infinite;
}
@keyframes blink { 50% { opacity: 0; } }

/* ───────────── Get it ───────────── */

.cells-get { grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); border-top: 0; }
.get-main { padding: 56px var(--pad) 52px; }
.get-main > .label { display: flex; align-items: center; gap: 14px; margin-bottom: 28px; }
.get-icon { border-radius: 8px; }
.get-main .sec-lede { font-size: 16.5px; }
.get-news { padding: 56px var(--pad) 48px; display: flex; flex-direction: column; }
.news { list-style: none; margin: 18px 0 24px; padding: 0; }
.news:empty { display: none; }
.news li {
  display: grid;
  gap: 4px;
  padding: 14px 0;
  border-top: 1px solid var(--line);
}
.news li:last-child { border-bottom: 1px solid var(--line); }
.news b { font-weight: 600; font-size: 15px; }
.news span {
  color: var(--text-2); font-size: 14px; line-height: 1.5;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.get-news .label-link { margin-top: auto; }

.platforms {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: var(--line-2);
  border-bottom: 1px solid var(--line-2);
}
.plat { background: var(--bg); display: flex; flex-direction: column; }
.plat-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 44px;
  padding: 10px 32px;
  border-bottom: 1px solid var(--line-2);
}
.plat-k { font: 500 11.5px/1 var(--mono); text-transform: uppercase; letter-spacing: 0.18em; color: var(--text-3); }
.plat.is-yours .plat-k { color: var(--accent); }
.plat-body { padding: 36px 32px 40px; display: flex; flex-direction: column; }
.plat-name {
  display: flex;
  align-items: center;
  gap: 14px;
  font: 700 30px/1 var(--display);
  font-stretch: 118%;
  letter-spacing: -0.02em;
}
.plat-ico {
  width: 40px; height: 40px;
  display: grid; place-items: center;
  border: 1px solid var(--line-2);
  color: var(--text-2);
}
.plat.is-yours .plat-ico { border-color: var(--accent-strong); color: var(--accent); }
.plat-main { margin: 24px 0 22px; display: grid; gap: 2px; }
.plat-main b { font-weight: 500; font-size: 15.5px; }
.plat-main span { color: var(--text-2); font-size: 15px; }
.plat.is-yours [data-plat-btn] { background: var(--inv-bg); color: var(--inv-fg); border-color: var(--inv-bg); }
.plat.is-yours [data-plat-btn]:hover { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }

.files-k { margin-top: 36px; padding-bottom: 10px; font-size: 10.5px; }
.files { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line-2); }
.files li { border-bottom: 1px solid var(--line); }
.files a {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 24px;
  column-gap: 12px;
  padding: 14px 0;
  transition: padding 0.25s var(--ease);
}
.files a:hover { padding-left: 6px; }
.f-t { grid-column: 1; font-size: 15px; font-weight: 500; }
.f-d { grid-column: 1; font-size: 14px; color: var(--text-2); line-height: 1.5; }
.f-n {
  grid-column: 1;
  margin-top: 6px;
  font: 400 11.5px/1.3 var(--mono);
  color: var(--text-3);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.f-n i { font-style: normal; }
.f-n i:not(:empty)::before { content: '· '; }
.f-i {
  grid-column: 2;
  grid-row: 1 / span 3;
  align-self: center;
  justify-self: end;
  font: 400 15px/1 var(--mono);
  color: var(--text-3);
  transition: color 0.2s, transform 0.25s var(--ease);
}
.f-i::before { content: '↓'; }
.files a.ext .f-i::before { content: '↗'; }
.files a:hover .f-i { color: var(--accent); transform: translateY(2px); }
.files a.ext:hover .f-i { transform: translate(2px, -2px); }

.req p:not(.label) { font-size: 14px; color: var(--text-2); margin-bottom: 8px; }
.req code {
  display: block;
  margin-top: 6px;
  padding: 9px 12px;
  font-size: 12px;
  overflow-wrap: anywhere;
}

/* ───────────── Contribute + footer ───────────── */

.contribute { padding: 80px var(--pad) 88px; }
.contribute .cta-row { margin-top: 34px; }

.footer .bar { border-bottom: 1px solid var(--line); }
.footer-links { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px 22px; }
.footer-links a { transition: color 0.2s; }
.footer-links a:hover { color: var(--text); }
.fineprint { padding: 22px var(--pad) 56px; font-size: 13px; color: var(--text-3); }

/* ───────────── Right rail ───────────── */

.rail { display: none; }

@media (min-width: 1500px) {
  .rail {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: fixed;
    z-index: 40;
    top: var(--nav-h);
    bottom: 0;
    right: 0;
    width: calc((100vw - var(--frame-w)) / 2);
    padding: 26px 76px 30px 20px;
    text-align: right;
    pointer-events: none;
    container-type: inline-size;
    font-family: var(--display);
    font-stretch: 125%;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.01em;
  }
  .rail ol { list-style: none; margin: 0; padding: 0; }
  .rail-past li, .rail-next li {
    font-size: min(19px, 7cqi);
    line-height: 1.08;
    color: var(--text-3);
    white-space: nowrap;
    animation: railIn 0.5s var(--ease);
  }
  .rail-current {
    margin-top: 14px;
    overflow: hidden;
    font-size: min(38px, 10.5cqi);
    line-height: 1.05;
    color: var(--text);
    white-space: nowrap;
  }
  .rail-current span { display: inline-block; }
  .rail-current span.swap { animation: railSwap 0.6s var(--ease); }
  @keyframes railSwap { from { transform: translateY(105%); opacity: 0; } }
  @keyframes railIn { from { opacity: 0; } }
}

.ruler {
  position: absolute;
  top: 0; right: 0; bottom: 0;
  width: 64px;
  overflow: hidden;
}
.ruler-strip {
  position: absolute;
  top: 0; right: 0;
  width: 64px;
  height: 2001px;
  background:
    repeating-linear-gradient(to bottom, var(--line-3) 0 1px, transparent 1px 100px) right top / 24px 100% no-repeat,
    repeating-linear-gradient(to bottom, var(--line-2) 0 1px, transparent 1px 20px) right top / 9px 100% no-repeat;
  will-change: transform;
}
.ruler-strip span {
  position: absolute;
  right: 30px;
  transform: translateY(-50%);
  font: 500 10px/1 var(--mono);
  letter-spacing: 0.06em;
  color: var(--text-3);
}
.ruler-marker {
  position: absolute;
  top: 0;
  right: 0;
  width: 64px;
  height: 1px;
  background: var(--accent-strong);
  will-change: transform;
}
.ruler-marker span {
  position: absolute;
  right: 4px; top: 5px;
  font: 500 10px/1 var(--mono);
  letter-spacing: 0.06em;
  color: var(--accent);
}

/* ───────────── Reveal ───────────── */

.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease), background-color 0.35s;
  transition-delay: var(--rd, 0ms), var(--rd, 0ms), 0ms;
}
.js .reveal.is-in { opacity: 1; transform: none; }

/* ───────────── Responsive ───────────── */

@media (max-width: 1180px) {
  .frame::before, .frame::after, .sec + .sec::before, .sec + .sec::after { display: none; }
  .nav-links a { padding: 0 10px; letter-spacing: 0.12em; }
}

@media (max-width: 1020px) {
  :root { --pad: 28px; }
  .nav-menu { display: grid; }
  .nav-links {
    position: absolute;
    top: 100%; left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    padding: 6px 0;
    background: var(--bg-raise);
    border: 0;
    border-bottom: 1px solid var(--line-2);
    box-shadow: var(--shadow);
    display: none;
  }
  .nav.is-open .nav-links { display: flex; }
  .nav-links a { padding: 0 var(--pad); line-height: 48px; }
  .nav-links a[aria-current='true']::after { display: none; }
  .cells-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .platforms { grid-template-columns: 1fr; }
  .cells-get, .cli { grid-template-columns: 1fr; }
  .issue { grid-template-columns: 56px minmax(0, 1fr); }
  .issue-fix { grid-column: 2; }
  .stack { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 700px) {
  :root { --pad: 18px; }
  .nav-badge { display: none; }
  .nav-cta { padding: 0 18px; }
  .hero { padding-top: 64px; }
  .hero-icon { width: 88px; height: 88px; border-radius: 20px; }
  .cta-row { flex-direction: column; align-items: stretch; width: 100%; }
  .split { display: flex; }
  .split > .btn:first-child { flex: 1; }
  .menu { width: 100%; }
  .menu a { grid-template-columns: 80px 1fr auto; }
  .share { display: grid; grid-template-columns: repeat(3, auto); }
  .share > * { border-top: 1px solid var(--line-2); justify-content: center; }
  .share > *:nth-child(-n+3) { border-top: 0; }
  .share > *:nth-child(3n+1) { border-left: 0; }
  .bar { letter-spacing: 0.14em; }
  .bar-meta { display: none; }
  .sec-head { padding: 56px var(--pad) 60px; }
  .cells-2, .cells-3, .gallery { grid-template-columns: 1fr; }
  .cell { padding: 60px var(--pad) 32px; }
  .cell > .num { top: 28px; right: var(--pad); }
  .issue { grid-template-columns: 1fr; gap: 10px; padding: 28px var(--pad); }
  .issue-fix { grid-column: auto; }
  .gcell figcaption { letter-spacing: 0.12em; }
  .term pre { padding: 28px var(--pad); font-size: 12.5px; }
  .plat-bar { padding: 10px var(--pad); }
  .plat-body { padding: 30px var(--pad) 34px; }
  .get-main, .get-news { padding: 44px var(--pad); }
  .contribute { padding: 60px var(--pad); }
  .compare-knob { width: 32px; height: 32px; }
}

@media (max-width: 420px) {
  .nav-cell[aria-label='Flickline on GitHub'] { display: none; }
  .stack li { padding: 18px 16px; }
}

/* ───────────── Reduced motion ───────────── */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-delay: 0ms !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0ms !important;
  }
  .caret { animation: none; }
}
