:root {
  --ground: #0A0A0C;
  --surface: #101116;
  --ink: #EDE9E2;
  --muted: #8B8880;
  --oxide: #8E3428;      /* STRUCTURE only: hairlines, rules, marks */
  --oxide-text: #CE5F50; /* the same hue, lightened until it READS.
                            #8E3428 as text is 2.52:1 against the ground —
                            below the 4.5:1 needed for small text, which is why
                            the hero eyebrow was invisible. This is 5.06:1. */
  --rule: rgba(255, 255, 255, .085);
  --wrap: 1280px;
  /* ONE content measure. .prose was 780 and .tool-body 760 — arbitrarily
     different, so anything pulled out of the text aligned with one column and
     sat 20px off the other. Andreas spotted the symptom on guide.html. */
  --measure: 780px;

  /* Type scale. Andreas reported the site was hard to read on his screens
     (2026-09-05) and he was right: no base size was set, so everything sat on
     the browser's 16px default, and the mono labels ran at .58-.63rem — about
     9-10px, uppercase, with wide tracking. Sizes live here so they can be
     tuned in one place rather than hunted through the file. */
  --t-micro: .8rem;    /* mono labels, eyebrows, data captions */
  --t-small: .92rem;   /* secondary prose, notes */
  --t-body: 1.02rem;   /* running text */
  --t-lead: 1.2rem;   /* intro paragraphs */
  --sans: "Familjen Grotesk", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  /* Aliases, temporary. Fifteen pages still reference the old names until the
     rollout finishes; without these the site is broken for the whole of it.
     --accent maps to --ink, deliberately NOT --oxide: the old accent filled
     links and buttons, and oxide is a structural colour that must never do
     that. Deleted in Task 9, once no page uses them. */
  --bg: var(--ground);
  --text: var(--ink);
  --accent: var(--ink);
  --accent-2: var(--muted);
  --surface-2: var(--surface);
  --border: var(--rule);
  --font: var(--sans);
  --radius: 0;
}

* { box-sizing: border-box; }

/* 17px, not the 16px default: these are reading pages, not app chrome. */
html { font-size: 112.5%; scroll-behavior: smooth; }  /* 18px */

body {
  margin: 0;
  font-family: var(--sans);
  font-weight: 400;
  color: var(--ink);
  background: var(--ground);
  font-size: var(--t-body);
  line-height: 1.66;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Subtle starfield behind everything */
/* The starfield was six radial gradients faking stars, sitting behind
   photographs of real ones. The photographs are the strongest thing on the
   page and the decoration was competing with them. */
.stars { display: none; }

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3 {
  line-height: 1.04;
  letter-spacing: -.025em;
  text-wrap: balance;
  font-weight: 700;
  margin: 0 0 .4em;
}
h2 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); }
h3 { font-size: 1.15rem; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.center { text-align: center; }

/* --- Nav --- */
.nav {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 24px;
  background: rgba(10, 10, 12, .78);
  backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--border);
}
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); font-weight: 700; letter-spacing: -.02em; }
.brand:hover { text-decoration: none; }
.brand img { border-radius: 7px; }
.nav-links { display: flex; gap: 22px; }
.nav-links a { color: var(--muted); font-size: .95rem; }
.nav-links a:hover { color: var(--text); text-decoration: none; }

/* --- Hero --- */
.hero {
  position: relative;
  padding: clamp(90px, 15vw, 180px) 24px clamp(80px, 11vw, 140px);
  text-align: center;
  /* CSS nebula — no baked-in text, so the wordmark stays crisp */
  background:
    radial-gradient(1000px 520px at 24% 18%, rgba(142, 52, 40, .16), transparent 62%),
    radial-gradient(820px 520px at 82% 26%, rgba(150,58,120,.24), transparent 60%),
    radial-gradient(760px 520px at 62% 96%, rgba(142, 52, 40, .10), transparent 62%),
    linear-gradient(180deg, #0a1533 0%, #081027 60%, var(--bg) 100%);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}
/* faint starfield inside the hero */
.hero::before {
  content: "";
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(1.5px 1.5px at 18% 32%, rgba(255,255,255,.8), transparent),
    radial-gradient(1.5px 1.5px at 72% 22%, rgba(255,255,255,.6), transparent),
    radial-gradient(1px 1px at 42% 68%, rgba(255,255,255,.7), transparent),
    radial-gradient(1px 1px at 88% 58%, rgba(255,255,255,.6), transparent),
    radial-gradient(1.5px 1.5px at 58% 84%, rgba(255,255,255,.55), transparent),
    radial-gradient(1px 1px at 8% 76%, rgba(255,255,255,.5), transparent);
}
.hero-inner { position: relative; z-index: 1; }
.hero-inner { max-width: 760px; margin: 0 auto; }
.wordmark { font-size: clamp(3rem, 11vw, 6rem); font-weight: 800; letter-spacing: -.04em; margin: 0; text-shadow: 0 2px 30px rgba(0,0,0,.6); }
.tagline { font-size: clamp(1.05rem, 2.4vw, 1.35rem); color: #cdd6ea; max-width: 620px; margin: 18px auto 32px; }
/* The hero H1 is the descriptive line; "Nocturne" above it is the visual
   wordmark. Both keep their original classes so the look is unchanged — only
   the heading level moved, so the H1 says what the product IS. */
h1.tagline { font-weight: 400; margin-bottom: 6px; }
.tagline-sub { margin-top: 0; }
.hero-note { color: var(--muted); font-size: .85rem; margin-top: 28px; }

.cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* --- Buttons --- */
.btn {
  display: inline-flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 14px 26px; border-radius: 12px; font-weight: 650; font-size: 1.02rem;
  border: 1px solid transparent; transition: transform .12s ease, box-shadow .2s ease, background .2s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.btn-primary { background: var(--ink); color: var(--ground); box-shadow: none; }
.btn-primary:hover { background: #35e3cd; }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--border); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn-sub { font-size: .72rem; font-weight: 500; opacity: .8; margin-top: 2px; }
.btn.big { font-size: 1.15rem; padding: 18px 40px; }

/* --- Sections --- */
.section { padding: clamp(56px, 9vw, 96px) 0; }
.section.alt { background: linear-gradient(180deg, transparent, var(--surface), transparent); }
.lead { color: var(--muted); font-size: 1.1rem; max-width: 640px; margin: 0 0 2.2em; }

/* --- Feature grid --- */
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; }
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px 24px;
}
.card h3 { margin-top: 4px; }
.card p { color: var(--muted); margin: 0; font-size: .95rem; }
.ic {
  display: inline-flex; width: 44px; height: 44px; border-radius: 11px;
  align-items: center; justify-content: center; margin-bottom: 14px;
  background: var(--surface); color: var(--oxide-text);
}
.ic svg { width: 24px; height: 24px; }

/* --- How it works --- */
.beats { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; }
.beat { padding: 22px 24px; border-left: 2px solid var(--oxide); background: var(--surface); border-radius: 0; }
.beat p { color: var(--muted); margin: 0; }

/* --- Screenshots --- */
.shots-main { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-bottom: 18px; }
.shots-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
figure.shot { margin: 0; }
.shot {
  border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden;
  background: var(--surface);
}
.shot img { display: block; width: 100%; height: auto; }
.shot figcaption { padding: 12px 16px; color: var(--muted); font-size: .9rem; border-top: 1px solid var(--border); }
/* The lightbox styles itself inline (see lightbox.js) so it works even if this
   file is stale/uncached. */
.shot.small figcaption { text-align: center; font-size: .85rem; }
@media (max-width: 760px) { .shots-main, .shots-row { grid-template-columns: 1fr; } }

/* --- Requirements --- */
.reqs { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 18px; }
.req { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 26px 24px; }
.req p { color: var(--muted); margin: 0; }
.tag { font-size: .68rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; padding: 3px 8px; border-radius: 999px; vertical-align: middle; margin-left: 6px; }
.tag.free { background: var(--surface); color: var(--oxide-text); }
.tag.optional { background: rgba(154,166,189,.16); color: var(--muted); }
.fine { color: var(--muted); font-size: .88rem; }
.fine.install { max-width: 560px; margin: 14px auto 0; }

/* --- Download band --- */
.download { background: linear-gradient(180deg, var(--surface), transparent); }
.download .btn { margin: 8px 0 6px; }

/* --- Footer --- */
.footer { border-top: 1px solid var(--border); padding: 40px 0; color: var(--muted); }
.footer p { margin: 0 0 8px; font-size: .9rem; }

/* --- Contribute form --- */
.contribute-form { max-width: 620px; margin: 26px 0; display: grid; gap: 12px; }
.contribute-form input[type=text], .contribute-form input[type=email], .contribute-form textarea, .contribute-form input[type=file] {
  width: 100%; padding: 12px 14px; border-radius: 10px; border: 1px solid var(--border);
  background: var(--surface); color: var(--text); font: inherit;
}
.contribute-form input:focus, .contribute-form textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.consent { display: flex; align-items: flex-start; gap: 10px; color: var(--muted); font-size: .92rem; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; }
.progress { height: 12px; background: var(--surface-2); border-radius: 999px; overflow: hidden; border: 1px solid var(--border); }
.progress-bar { height: 100%; width: 0; background: linear-gradient(90deg, var(--accent-2), var(--accent)); transition: width .15s linear; }
.form-status { color: var(--text); font-size: .95rem; min-height: 1.3em; margin: 0; font-variant-numeric: tabular-nums; }
.form-status.error { color: #ff6b6b; }
.form-status.ok { color: var(--accent); }

/* --- Responsive --- */
@media (max-width: 640px) {
  .field-row { grid-template-columns: 1fr; }
  .nav { flex-direction: column; gap: 10px; }
  .nav-links { gap: 16px; flex-wrap: wrap; justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
}

/* ===== Sub-pages (Guide / FAQ / Changelog) ===== */

/* Page header */
.page-head {
  position: relative;
  padding: clamp(72px, 12vw, 116px) 0 clamp(26px, 5vw, 44px);
  text-align: center;
  border-bottom: 1px solid var(--border);
  background: radial-gradient(900px 420px at 50% -12%, rgba(142,52,40,.14), transparent 62%);
}
.page-head h1 { font-size: clamp(2rem, 5vw, 3rem); }
.page-head p { color: var(--muted); max-width: 640px; margin: 0 auto; font-size: 1.08rem; }
.page-head .eyebrow { margin-bottom: .5em; }

/* Table of contents / jump chips */
.toc { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin: 26px 0 0; }
.toc a {
  padding: 8px 15px; border-radius: 999px; border: 1px solid var(--border);
  background: var(--surface); color: var(--muted); font-size: .9rem;
}
.toc a:hover { border-color: var(--accent); color: var(--accent); text-decoration: none; }

/* Prose column for the Guide */
.prose { max-width: var(--measure); }
.prose > p, .prose li { color: var(--muted); }
.prose h3 { margin-top: 1.8em; color: var(--text); }
.prose strong { color: var(--text); }
.prose a { color: var(--accent); }
.prose code, .kbd {
  background: var(--surface-2); border: 1px solid var(--border); border-radius: 6px;
  padding: 2px 7px; font-size: .86em; color: #cdd6ea;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}
.callout {
  border-left: 3px solid var(--oxide); background: var(--surface);
  padding: 14px 18px; border-radius: 0 10px 10px 0; margin: 18px 0; color: var(--muted);
}
.callout strong { color: var(--text); }

/* External-tool cards in the Guide */
.tool { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; margin: 0 0 16px; }
.tool h3 { margin-top: 0; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.tool p { color: var(--muted); margin: .4em 0 0; }
.tool ul { color: var(--muted); margin: .6em 0 0; padding-left: 1.1em; }

/* Changelog releases */
.release { border-left: 2px solid var(--accent); padding: 2px 0 2px 22px; margin: 0 0 34px; }
.release .ver { font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
                font-size: .82rem; letter-spacing: .04em; color: var(--accent);
                font-weight: 650; margin: 0 0 2px; }
/* Releases are prepended, so the first article is always the newest -- the badge
   stays correct with no generator support and no back-editing of old entries. */
.release:first-of-type .ver::after { content: " · Latest"; color: var(--muted); font-weight: 400; }
.release h2 { font-size: 1.3rem; margin: 0 0 3px; }
.release .when { color: var(--muted); font-size: .8rem; text-transform: uppercase; letter-spacing: .1em; margin: 0 0 14px; }
.release ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 9px; }
.release li { color: var(--muted); padding-left: 20px; position: relative; }
.release li::before { content: "›"; position: absolute; left: 2px; color: var(--accent); font-weight: 700; }
.release li strong { color: var(--text); font-weight: 650; }

/* FAQ — native <details> accordion */
.qa { border: 1px solid var(--border); border-radius: 12px; background: var(--surface); margin: 0 0 12px; overflow: hidden; }
.qa > summary {
  cursor: pointer; padding: 18px 22px; font-weight: 650; color: var(--text);
  list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
.qa > summary::-webkit-details-marker { display: none; }
.qa > summary::after { content: "+"; color: var(--accent); font-size: 1.4rem; line-height: 1; flex: none; }
.qa[open] > summary::after { content: "\2013"; }
.qa .a { padding: 0 22px 20px; color: var(--muted); }
.qa .a a { color: var(--accent); }
.qa .a p { margin: 0 0 .7em; }
.qa .a p:last-child { margin-bottom: 0; }

/* Before / after image pair */
.ba { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 760px) { .ba { grid-template-columns: 1fr; } }

/* ===== Flair — calm, subtle motion (progressive enhancement) ===== */

/* Cards & tools gain a quiet teal-tinted edge and shadow on hover */
.card, .req, .tool { transition: border-color .3s ease, box-shadow .3s ease, transform .3s cubic-bezier(.22,1,.36,1); }
.card:hover, .req:hover, .tool:hover { border-color: rgba(255,255,255,.22); box-shadow: none; }

/* Nav links: a growing teal underline rather than the default text-underline */
.nav-links a { position: relative; }
.nav-links a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -5px; height: 1.5px; border-radius: 2px;
  background: var(--accent); transform: scaleX(0); transform-origin: left;
  transition: transform .3s cubic-bezier(.22, 1, .36, 1);
}
.nav-links a:hover { text-decoration: none; }
.nav-links a:hover::after { transform: scaleX(1); }

/* FAQ +/- marker eases */
.qa > summary::after { transition: color .2s ease, transform .25s ease; }

@media (prefers-reduced-motion: no-preference) {
  /* Gentle scroll-reveal — main.js adds .reveal to below-the-fold blocks,
     then .is-in when they scroll into view. Above-fold blocks are left alone. */
  .reveal { opacity: 0; transform: translateY(16px);
            transition: opacity .7s cubic-bezier(.22, 1, .36, 1), transform .7s cubic-bezier(.22, 1, .36, 1); }
  .reveal.is-in { opacity: 1; transform: none; }

  /* Cards lift a little on hover */
  .card:hover, .req:hover, .tool:hover { transform: translateY(-3px); }

  /* A quietly living hero sky — the faint star layer breathes and drifts, very slowly */
  @keyframes hero-sky {
    0%, 100% { opacity: .7; transform: translate3d(0, 0, 0); }
    50%      { opacity: 1;  transform: translate3d(-1.1%, .7%, 0); }
  }
  .hero::before { animation: hero-sky 30s ease-in-out infinite; }
}

/* ============================================================
   Tool pages: page header, before/after slider, tap grid
   ============================================================ */
/* Left-aligned. Centred before, which put a centred head over a left-aligned
   text column — two pages stacked — and is the centred-everything tell besides.
   The WIDTH is not set here: it comes from the markup, so the head sits on the
   same column as whatever the page puts underneath it. A prose page writes
   `wrap prose`, a wide page writes `wrap`. Setting it here instead centred a
   780px head above a 1280px grid, which is the same misalignment in reverse. */
.subhead { padding: clamp(64px, 10vw, 104px) 0 8px; }
.subhead h1 { font-size: clamp(2.1rem, 5vw, 3.1rem); }
.subhead .lead { max-width: var(--measure); margin: .5em 0 0; }

/* Tool-page rhythm. The screenshot sits close under the head and close over
   the body: as two ordinary .section blocks its own bottom padding plus the
   body's top padding stacked to ~150px of nothing between a caption and the
   text it captions. */
.section-shot { padding: clamp(24px, 4vw, 40px) 0 0; }
.section-body { padding: clamp(36px, 5vw, 56px) 0 clamp(56px, 9vw, 96px); }

/* Tool-page furniture. The download used to be a centred button in its own
   full-width section on every tool page — nine identical closing slabs. It is
   now a line at the foot of the text column, separated by a rule. */
.tool-cta { margin-top: 2.6em; padding-top: 1.7em; border-top: 1px solid var(--rule); }
.tool-cta .btn { display: inline-flex; }
.tool-shot-note { color: var(--muted); font-size: var(--t-small); max-width: 62ch; margin: 16px 0 0; }
/* .ba-solo is a 1040px box centred in its wrap, so a note left-aligned to the
   wrap starts 140px to the left of the picture it describes. Match the box. */
.ba-solo + .tool-shot-note { max-width: 1040px; margin: 16px auto 0; }
.tool-body .s-rail { margin: 0 0 2.4em; }

.crumbs { font-size: .85rem; color: var(--muted); margin-bottom: 8px; }
.crumbs a { color: var(--muted); }

/* Before/after slider */
.ba {
  position: relative; margin: 0; overflow: hidden; cursor: ew-resize;
  border-radius: var(--radius); border: 1px solid var(--border);
  background: #05070f; line-height: 0; touch-action: none; user-select: none;
  --pos: 50%;
}
.ba-img { display: block; width: 100%; height: 100%; object-fit: cover;
  position: absolute; inset: 0; pointer-events: none; }
/* Both layers are absolute so they size against the aspect-ratio box; the
   container's height comes from aspect-ratio, not from an in-flow child. */
.ba-after { z-index: 0; }                       /* base layer (bottom) */
.ba-before { z-index: 1; clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.ba-divider, .ba-handle { z-index: 2; }
.ba-divider { position: absolute; top: 0; bottom: 0; left: var(--pos);
  width: 2px; background: rgba(255,255,255,.85); transform: translateX(-1px);
  pointer-events: none; box-shadow: 0 0 0 1px rgba(0,0,0,.35); }
.ba-handle { position: absolute; top: 50%; left: 50%; width: 38px; height: 38px;
  transform: translate(-50%,-50%); border-radius: 50%;
  background: rgba(10,16,32,.7); border: 2px solid rgba(255,255,255,.9);
  backdrop-filter: blur(4px); }
.ba-handle::before, .ba-handle::after { content: ""; position: absolute; top: 50%;
  width: 0; height: 0; border: 5px solid transparent; }
.ba-handle::before { left: 6px; border-right-color: #fff; transform: translateY(-50%); }
.ba-handle::after  { right: 6px; border-left-color: #fff; transform: translateY(-50%); }
.ba-range { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0;
  opacity: 0; pointer-events: none; -webkit-appearance: none; appearance: none; background: none; }
.ba-range:focus-visible { outline: none; }
.ba:focus-within .ba-handle { border-color: var(--accent); }
.ba-tag { position: absolute; bottom: 10px; padding: 3px 9px; font-size: .72rem;
  font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: #fff;
  background: rgba(5,7,15,.6); border-radius: 999px; pointer-events: none; backdrop-filter: blur(4px); }
.ba-tag-before { left: 10px; } .ba-tag-after { right: 10px; }

/* Enhancement tap grid */
.wrap-wide { max-width: 1440px; margin: 0 auto; padding: 0 24px; }
.tap-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(560px, 1fr)); gap: 34px 28px; }
.tap { display: flex; flex-direction: column; }
.tap .ba { aspect-ratio: 1536 / 850; }
@media (max-width: 640px) { .tap-grid { grid-template-columns: 1fr; } }
.tap h3 { margin: 12px 0 2px; }
.tap p { margin: 0; color: var(--muted); font-size: .92rem; }
.group-label { grid-column: 1 / -1; margin: 8px 0 -6px; font-size: .8rem;
  text-transform: uppercase; letter-spacing: .08em; color: var(--accent); font-weight: 700; }

/* Sample data cards — image beside the facts, stacking on a narrow screen */
.samples { display: grid; gap: 34px; }
.sample { display: grid; grid-template-columns: minmax(0, 420px) 1fr; gap: 28px;
  align-items: start; padding: 22px; border: 1px solid var(--border);
  border-radius: var(--radius); background: var(--surface); }
.sample-shot { margin: 0; }
.sample-shot img { width: 100%; height: auto; display: block; border-radius: var(--radius); }
.sample-body h3 { margin: 0 0 6px; }
.sample-body p { margin: 0 0 14px; color: var(--muted); }
.sample-body .btn { margin: 0 8px 8px 0; }
@media (max-width: 760px) { .sample { grid-template-columns: 1fr; } }

/* Tools index cards */
.toolgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px; }
.toolcard { display: block; padding: 20px; border: 1px solid var(--border);
  border-radius: var(--radius); background: var(--surface); color: var(--text); transition: border-color .2s, transform .2s; }
.toolcard:hover { text-decoration: none; border-color: var(--accent); transform: translateY(-2px); }
.toolcard h3 { margin: 0 0 4px; }
.toolcard p { margin: 0; color: var(--muted); font-size: .92rem; }
.toolcard.soon { opacity: .55; pointer-events: none; }
.toolcard .pill { display: inline-block; margin-top: 10px; font-size: .7rem; text-transform: uppercase;
  letter-spacing: .06em; color: var(--muted); border: 1px solid var(--border); border-radius: 999px; padding: 2px 8px; }

/* Single-tool pages: hero screenshot + body copy */
.tool-shot { margin: 0; }
.tool-shot img { display: block; width: 100%; height: auto;
  border-radius: var(--radius); border: 1px solid var(--border);
  box-shadow: 0 24px 70px rgba(0,0,0,.45); }
.tool-shot figcaption { margin-top: 14px; text-align: center; color: var(--muted); font-size: .9rem; }
.tool-body { max-width: var(--measure); }
.tool-body h2 { font-size: 1.3rem; margin: 1.6em 0 .3em; }
.tool-body h2:first-child { margin-top: 0; }
.tool-body ol, .tool-body ul { padding-left: 1.2em; }
.tool-body li { margin: .3em 0; }
.deltas { width: 100%; border-collapse: collapse; margin: 1.4em 0; font-size: .95rem; }
.deltas th, .deltas td { text-align: left; padding: 9px 12px; border-bottom: 1px solid var(--border); }
.deltas th { color: var(--text); font-weight: 650; }
.deltas td { color: var(--muted); }
.deltas td:last-child { text-align: right; font-variant-numeric: tabular-nums; color: var(--text); }
.tool-body blockquote { margin: 1.6em 0; padding: 16px 20px; border-left: 3px solid var(--accent);
  background: var(--surface); border-radius: 0; }
.tool-body blockquote p { margin: 0; }
.tool-body h3 { margin-top: 1.6em; }
.tool-body figure.tool-shot { margin: 1.4em 0; }
.tool-body .ba { aspect-ratio: 1536 / 850; margin: 8px 0 4px; }

/* Standalone hero before/after slider (Auto Enhance page) */
.ba-solo { aspect-ratio: 1400 / 780; max-width: 1040px; margin: 0 auto; }

/* Masonry gallery of finished results (CSS columns — no JS dependency) */
.masonry { columns: 2; column-gap: 20px; }

/* --- Showcase banner ---
   Full-bleed, because the mosaic's whole point is width: boxing a 1.85:1 frame
   into the 1080px column would throw away the thing being demonstrated. */
.showcase { padding-bottom: clamp(28px, 4vw, 48px); }
.banner { margin: 0; }
.banner img {
  display: block; width: 100%; height: auto;
  border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
}
.banner figcaption {
  max-width: var(--wrap); margin: 14px auto 0; padding: 0 20px;
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px;
}
.banner figcaption strong { font-weight: 650; }
.banner figcaption span { color: var(--muted); }
.banner-data { flex-basis: 100%; font-size: .82rem; font-variant-numeric: tabular-nums; }

/* --- Gallery ---
   Photographs, not screenshots, so the chrome steps back: no surface card, a
   hairline on the image itself, and the capture data as quiet type beneath.
   A bordered panel around a nebula competes with it. */
.gallery { columns: 3; column-gap: clamp(14px, 2vw, 26px); }
@media (max-width: 900px) { .gallery { columns: 2; } }
@media (max-width: 560px) { .gallery { columns: 1; } }

/* Multicol, not a grid with computed row spans. The span approach needs the
   column width at build time, and the column width depends on the viewport —
   so every size but one was wrong, and captions overlapped the next picture.
   Multicol balances at any width, at the cost of columns that end unevenly. */
.frame { break-inside: avoid; margin: 0 0 clamp(20px, 2.6vw, 32px); }
.frame-img {
  display: block; overflow: hidden; border-radius: var(--radius);
  border: 1px solid var(--border); background: var(--surface);
}
.frame-img img { display: block; width: 100%; height: auto; cursor: zoom-in; }
.frame figcaption {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px;
  padding: 10px 2px 0;
}
.frame-target { font-weight: 650; letter-spacing: -.01em; }
.frame-common { color: var(--muted); }
.frame-data {
  flex-basis: 100%; color: var(--muted); font-size: .82rem;
  /* aligned digits: the numbers are the point of this line */
  font-variant-numeric: tabular-nums; letter-spacing: .01em;
}

@media (prefers-reduced-motion: no-preference) {
  .frame-img img { transition: transform .5s cubic-bezier(.22,1,.36,1); }
  .frame-img:hover img, .frame-img:focus-visible img { transform: scale(1.03); }
}
.frame-img:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.masonry .shot { break-inside: avoid; margin: 0 0 20px; width: 100%; }
.masonry .shot img { cursor: zoom-in; }
@media (max-width: 640px) { .masonry { columns: 1; } }


/* ---- Type details ---------------------------------------------------------
   Running text near 65 characters; mono for anything that is data rather than
   prose; tabular figures wherever numbers sit in a column. */
p { max-width: 66ch; }

.eyebrow {
  font-family: var(--mono);
  font-size: var(--t-micro);
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--oxide-text);
  margin: 0 0 .6em;
}

.banner-data, .num, table td, .s-rail b { font-variant-numeric: tabular-nums; }

/* ---- Section shapes -------------------------------------------------------
   Five shapes, five jobs, replacing the one card grid that was repeated down
   every page. A page uses what fits its content; no page uses all five. */

.s-bleed { position: relative; }
.s-bleed img {
  display: block; width: 100%; height: auto;
  /* Capped: at 2200x1189 across a wide screen this was ~1080px tall and pushed
     everything below the fold. object-fit keeps the crop honest. */
  max-height: 74vh; object-fit: cover; object-position: center 42%;
}
.s-bleed .cap {
  position: absolute; inset: auto 0 0 0; padding: clamp(20px, 4vw, 38px);
  background: linear-gradient(to top, rgba(10,10,12,.94) 12%, rgba(10,10,12,0));
}
.s-bleed .cap h1, .s-bleed .cap h2 {
  margin: 0 0 10px;
  font-size: clamp(2.1rem, 4.6vw, 4.1rem);
  max-width: 20ch;
}
.s-bleed .cap .meta { max-width: 60ch; }
.s-bleed .cap .meta {
  font-family: var(--mono); font-size: var(--t-micro); letter-spacing: .18em;
  text-transform: uppercase; color: var(--muted); margin: 0;
}

.s-split { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--rule); }
.s-split > * { padding: clamp(24px, 3.4vw, 40px); border-right: 1px solid var(--rule); }
.s-split > *:last-child { border-right: 0; }
.s-split img { display: block; width: 100%; height: auto; }
.s-split .flush { padding: 0; }

.s-rail {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule);
}
.s-rail div { padding: 13px 16px; border-right: 1px solid var(--rule); }
.s-rail div:last-child { border-right: 0; }
.s-rail b {
  display: block; font-family: var(--mono); font-size: 1.02rem;
  font-weight: 500; font-variant-numeric: tabular-nums;
}
.s-rail span {
  font-family: var(--mono); font-size: var(--t-micro); letter-spacing: .15em;
  text-transform: uppercase; color: var(--muted);
}

.s-index ol, .s-index ul {
  list-style: none; margin: 0; padding: 0; display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1px; background: var(--rule);
}
.s-index li { background: var(--ground); padding: 16px 15px; }
/* When a cell is a link the whole cell is the target, not just the words.
   The negative margin cancels the li padding so the hit area fills the cell. */
.s-index li:has(> a) { padding: 0; }
.s-index li > a { display: block; padding: 16px 15px; color: inherit; }
.s-index li > a:hover { background: var(--surface); text-decoration: none; }
.s-index li > a:hover b { color: var(--oxide-text); }
/* Nine tools divide evenly into three columns; auto-fit would leave a ragged
   last row. Used where the count is known, not as a default. */
.s-index.cols-3 ul { grid-template-columns: repeat(3, 1fr); }
/* Descriptions here are sentences, not data labels — mono over two lines reads
   as terminal output rather than prose. */
.s-index.cols-3 span { font-family: inherit; letter-spacing: 0; font-size: var(--t-small); }
@media (max-width: 760px) { .s-index.cols-3 ul { grid-template-columns: 1fr 1fr; } }
@media (max-width: 460px) { .s-index.cols-3 ul { grid-template-columns: 1fr; } }
.s-index b { display: block; font-size: .96rem; font-weight: 600; margin-bottom: 3px; }
.s-index span {
  font-family: var(--mono); font-size: var(--t-micro); color: var(--muted); letter-spacing: .07em;
}

.s-statement {
  background: var(--surface); border-top: 1px solid var(--rule);
  padding: clamp(28px, 4vw, 44px);
}
/* When the statement holds a .wrap, the wrap owns the horizontal inset. Both
   applying it put the statement 28-52px right of the prose it interrupts —
   invisible on desktop, where the inner column is centred, and obvious on a
   phone, where it is not. */
.s-statement:has(> .wrap) { padding-left: 0; padding-right: 0; }
.s-statement p {
  font-size: clamp(1.05rem, 2.1vw, 1.32rem); max-width: 52ch;
  margin: 0 0 10px; line-height: 1.45;
}
.s-statement cite {
  font-family: var(--mono); font-size: var(--t-micro); letter-spacing: .16em;
  text-transform: uppercase; color: var(--muted); font-style: normal;
}

@media (max-width: 720px) {
  .s-split { grid-template-columns: 1fr; }
  .s-split > * { border-right: 0; border-bottom: 1px solid var(--rule); }
}
