/* ===========================================================================
   trimbloat.com

   Type has three jobs and three faces, which is the whole system:
     Bricolage Grotesque  headlines. Optical-size aware, slightly odd, and not
                          one of the four grotesques every dev-tool site uses.
     IBM Plex Sans        prose. Engineered rather than neutral; it was drawn
                          for technical documentation and reads like it.
     IBM Plex Mono        anything the machine says - commands, values, hashes.

   Colour is not decorative. Mint, amber and coral are the app's own SAFE /
   CAUTION / RISKY labels, so a colour means the same thing on this page as it
   does inside the window.
   =========================================================================== */

:root {
  --void:    #080B0C;
  --panel:   #0D1213;
  --raise:   #121A1B;
  --lift:    #17201F;
  --rule:    #1D2726;
  --rule-lit:#2B3937;

  --ink:     #ECF2F0;
  --soft:    #9AA8A4;   /* 7.4:1 on --void */
  --faint:   #71807C;   /* 4.6:1 on --void - the floor for any text */

  --mint:    #4FE0B0;
  --mint-dim:#2A6B58;
  --amber:   #F2B441;
  --coral:   #FF6F5E;

  --display: "Bricolage Grotesque", "Arial Black", system-ui, sans-serif;
  --sans:    "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono:    "IBM Plex Mono", "Cascadia Mono", Consolas, ui-monospace, monospace;

  --gutter:  clamp(1.15rem, 4vw, 3.5rem);
  /* Grows with the screen instead of pinning a 1180px column in the middle of a
     1440p monitor. Capped so line lengths stay readable rather than running the
     full width of an ultrawide. */
  --maxw:    min(94vw, 1560px);
  --radius:  10px;

  /* One motion vocabulary, used everywhere. */
  --ease:    cubic-bezier(0.16, 1, 0.3, 1);
  --quick:   180ms;

  color-scheme: dark;
}

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

html {
  scroll-behavior: smooth;
  /* Anchors land below the sticky bar instead of underneath it. */
  scroll-padding-top: 5.5rem;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--void);
  color: var(--ink);
  font-family: var(--sans);
  font-size: clamp(1rem, 0.16vw + 0.96rem, 1.12rem);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }

::selection { background: var(--mint); color: var(--void); }

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  background: var(--mint);
  color: var(--void);
  padding: 0.7rem 1.1rem;
  font: 600 0.85rem/1 var(--mono);
  border-radius: 0 0 6px 0;
}
.skip:focus { left: 0; }

.grain {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.03;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='4'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* --- top bar -------------------------------------------------------------- */

.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 0.85rem var(--gutter);
  background: color-mix(in srgb, var(--void) 82%, transparent);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--quick) ease, background var(--quick) ease;
}
.topbar.stuck { border-bottom-color: var(--rule); }

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--ink);
  text-decoration: none;
  font: 600 1rem/1 var(--mono);
  letter-spacing: -0.01em;
}
.brand { min-height: 44px; }
.brand .mark { width: 20px; height: 20px; fill: var(--mint); flex: none; }

.topnav { display: flex; align-items: center; gap: 0.35rem; }
.topnav-scroll { display: flex; align-items: center; gap: 0.35rem; min-width: 0; }
.topnav a {
  color: var(--soft);
  text-decoration: none;
  font-size: 0.86rem;
  padding: 0.5rem 0.7rem;
  border-radius: 6px;
  transition: color var(--quick) ease, background var(--quick) ease;
}
.topnav a:hover { color: var(--ink); background: var(--raise); }
.topnav .ghost {
  color: var(--ink);
  border: 1px solid var(--rule-lit);
  margin-left: 0.4rem;
}
.topnav .ghost:hover { border-color: var(--mint); color: var(--mint); background: transparent; }

/* Below the breakpoint the links move to their own scrollable row rather than
   disappearing. Hiding them was simpler and left a phone with no way to reach
   any section of the page except by scrolling the whole thing.

   The fade sits on .topnav-scroll, not on .topnav: a mask on the parent also
   fades the GitHub button pinned to the corner, which is how that button spent
   a while rendering as an empty outline. */
@media (max-width: 900px) {
  .topbar { position: relative; flex-wrap: wrap; row-gap: 0.15rem; padding-bottom: 0.35rem; }
  .brand { order: 1; }
  .topnav { order: 3; width: 100%; gap: 0; }
  .topnav-scroll {
    width: 100%;
    gap: 0.1rem;
    overflow-x: auto;
    scrollbar-width: none;
    mask-image: linear-gradient(to right, #000 calc(100% - 1.5rem), transparent);
    -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 1.5rem), transparent);
  }
  .topnav-scroll::-webkit-scrollbar { display: none; }
  .topnav a {
    white-space: nowrap;
    font-size: 0.82rem;
    /* 44px minimum: these were 36px tall, under the floor for a tap target. */
    display: flex;
    align-items: center;
    min-height: 44px;
    padding: 0 0.6rem;
  }
  .topnav .ghost { min-height: 44px; padding: 0 0.8rem; }
  .topnav .ghost {
    position: absolute;
    top: 0.7rem;
    right: var(--gutter);
    margin: 0;
  }
}

/* --- shared layout -------------------------------------------------------- */

main { position: relative; z-index: 1; }

.band {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(4rem, 11vh, 7.5rem) var(--gutter);
  border-top: 1px solid var(--rule);
}

.band-head { max-width: 52ch; margin-bottom: clamp(2.5rem, 6vh, 4.5rem); }
.band-sub { color: var(--soft); margin: 1rem 0 0; max-width: 56ch; }

.eyebrow {
  font: 500 0.72rem/1 var(--mono);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--mint);
  margin: 0 0 1.1rem;
}

h1, h2, h3 { font-family: var(--display); font-weight: 800; letter-spacing: -0.025em; }

h1 {
  /* The floor is what matters on a phone. The headline carries an authored
     <br>, so the second line cannot reflow to fit - at 2.6rem it was wider
     than a 375px screen. 2.3rem fits with the break intact, which is better
     than dropping the break: the two halves have no whitespace between them
     in the markup, so hiding the <br> renders "Windowswithout". */
  /* Sized against the column it sits in, not the viewport it sits on. The
     hero splits in two above 1080px, so a headline scaled to full viewport
     width overflowed its half and stacked into four lines. */
  font-size: clamp(2.3rem, 3.5vw + 0.65rem, 4.4rem);
  line-height: 1;
  margin: 0;
  text-wrap: balance;
}

h2 {
  font-size: clamp(1.85rem, 2.4vw + 0.7rem, 3.4rem);
  line-height: 1.04;
  margin: 0;
  text-wrap: balance;
}

h3 {
  font-size: 1.08rem;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.01em;
  margin: 0 0 0.55rem;
}

p { margin: 0 0 1rem; }
p:last-child { margin-bottom: 0; }

a { color: var(--mint); text-underline-offset: 3px; }

code { font-family: var(--mono); font-size: 0.92em; }

b, strong { font-weight: 600; color: var(--ink); }

.small { font-size: 0.85rem; color: var(--faint); }

.t-safe { color: var(--mint); }

/* --- hero ----------------------------------------------------------------- */

.hero {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(3rem, 8vh, 6rem) var(--gutter) clamp(3rem, 8vh, 5rem);
  display: grid;
  gap: clamp(2.5rem, 6vw, 4rem);
  position: relative;
}

/* Measured grid behind the hero only, faded out before it meets the next
   section so there is no hard edge to explain. */
.hero::before {
  content: "";
  position: absolute;
  inset: -6rem 0 auto;
  height: 150%;
  z-index: -1;
  pointer-events: none;
  background-image:
    linear-gradient(to right, rgba(154, 168, 164, 0.05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(154, 168, 164, 0.05) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(ellipse 80% 60% at 30% 20%, #000 0%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 30% 20%, #000 0%, transparent 75%);
}

/* The product goes beside the pitch, not a screen below it. Single column was
   fine on a laptop and left roughly half a 1440p monitor empty, with the
   screenshot pushed under the fold. */
@media (min-width: 1080px) {
  .hero {
    grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr);
    align-items: center;
    gap: clamp(2.5rem, 4vw, 5rem);
    padding-top: clamp(3rem, 7vh, 6.5rem);
    padding-bottom: clamp(3.5rem, 8vh, 7rem);
  }
  .hero-shot { margin-top: 0.5rem; }
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font: 500 0.76rem/1 var(--mono);
  letter-spacing: 0.06em;
  color: var(--soft);
  background: var(--panel);
  border: 1px solid var(--rule);
  border-radius: 999px;
  padding: 0.42rem 0.85rem;
  margin: 0 0 1.8rem;
}
.dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--mint);
  box-shadow: 0 0 0 3px rgba(79, 224, 176, 0.16);
}

.sub {
  font-size: clamp(1.05rem, 0.55vw + 0.85rem, 1.4rem);
  line-height: 1.55;
  color: var(--soft);
  max-width: 34ch;
  margin: 1.6rem 0 0;
}
@media (max-width: 1079px) { .sub { max-width: 42ch; } }

.cta { margin-top: 2.2rem; }

.cmd {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  max-width: 34rem;
  padding: 0.9rem 0.9rem 0.9rem 1.05rem;
  background: linear-gradient(180deg, var(--raise), var(--panel));
  border: 1px solid var(--rule-lit);
  border-radius: var(--radius);
  box-shadow: 0 24px 50px -34px rgba(0, 0, 0, 1), inset 0 1px 0 rgba(255, 255, 255, 0.03);
}
.cmd.solo { margin: 2rem auto 0; text-align: left; }

.cmd-prompt { font: 500 0.85rem/1 var(--mono); color: var(--mint); opacity: 0.7; flex: none; }

.cmd-text {
  flex: 1 1 auto;
  min-width: 0;
  font-family: var(--mono);
  font-size: clamp(0.8rem, 2vw, 0.95rem);
  color: var(--ink);
  white-space: nowrap;
  overflow-x: auto;
  scrollbar-width: none;
  mask-image: linear-gradient(to right, #000 calc(100% - 1.5rem), transparent);
  -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 1.5rem), transparent);
}
.cmd-text::-webkit-scrollbar { display: none; }

.cmd-copy {
  flex: none;
  min-height: 44px;
  min-width: 62px;
  font: 500 0.74rem/1 var(--mono);
  letter-spacing: 0.06em;
  color: var(--void);
  background: var(--mint);
  border: 0;
  border-radius: 6px;
  padding: 0 0.85rem;
  cursor: pointer;
  transition: transform var(--quick) var(--ease), filter var(--quick) ease;
}
.cmd-copy:hover { filter: brightness(1.12); }
.cmd-copy:active { transform: scale(0.96); }
.cmd-copy.done { background: var(--ink); }

.cmd-note { margin: 0.9rem 0 0; font-size: 0.86rem; color: var(--faint); max-width: 34rem; }

/* On a phone the command is the single most important string on the page, so
   it wraps and is read in full rather than being clipped behind a horizontal
   scroll nobody discovers. The button drops to its own row so the text gets the
   whole width. */
@media (max-width: 620px) {
  .cmd {
    flex-wrap: wrap;
    align-items: flex-start;
    row-gap: 0.7rem;
    padding: 0.85rem;
  }
  .cmd-prompt { padding-top: 0.15rem; }
  .cmd-text {
    flex: 1 1 auto;
    white-space: normal;
    overflow-wrap: anywhere;
    overflow-x: visible;
    line-height: 1.5;
    mask-image: none;
    -webkit-mask-image: none;
  }
  .cmd-copy { margin-left: auto; }
}

/* Three even columns with the number over its label. As an inline flex row the
   labels wrapped raggedly and the third item dropped onto a line of its own the
   moment the hero split into two columns. */
.proof {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1rem, 2vw, 2rem);
  list-style: none;
  padding: clamp(1.4rem, 2.5vw, 2rem) 0 0;
  margin: clamp(2rem, 4vh, 3rem) 0 0;
  border-top: 1px solid var(--rule);
  max-width: 34rem;
}
.proof li { display: block; }
.proof strong {
  display: block;
  font-family: var(--display);
  font-size: clamp(1.6rem, 1.4vw + 1rem, 2.4rem);
  font-weight: 800;
  color: var(--mint);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.03em;
  line-height: 1;
  margin-bottom: 0.4rem;
}
.proof span { display: block; font-size: 0.8rem; color: var(--faint); line-height: 1.4; }

/* --- the screenshot frame ------------------------------------------------- */

.shot {
  position: relative;
  border: 1px solid var(--rule-lit);
  border-radius: 12px;
  overflow: hidden;
  background: var(--panel);
  box-shadow:
    0 2px 0 rgba(255, 255, 255, 0.02) inset,
    0 40px 80px -50px rgba(0, 0, 0, 1),
    0 0 100px -60px rgba(79, 224, 176, 0.5);
}
.shot img { width: 100%; }

.hero-shot { margin: 0; }
.hero-shot figcaption,
.shot-cap {
  margin: 0.9rem 0 0;
  font-size: 0.84rem;
  color: var(--faint);
  max-width: 44rem;
}

/* --- what it does --------------------------------------------------------- */

/* Five cards, so the column count is chosen rather than left to auto-fit.
   Four columns leaves the fifth card alone on its own row beside three empty
   cells, which read as a large grey hole because the grid's own background is
   what shows through the 1px gaps. Only counts that divide five cleanly with a
   spanning last card are used: 1, 2, then 4. */
.jobs {
  display: grid;
  gap: 1px;
  background: var(--rule);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  overflow: hidden;
  grid-template-columns: 1fr;
}
@media (min-width: 700px) {
  .jobs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .job:last-child { grid-column: 1 / -1; }
}
@media (min-width: 1200px) {
  .jobs { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* The full-width card gets its content laid out across the width rather than
   left in one narrow column with a lot of empty space to its right. */
@media (min-width: 700px) {
  .job:last-child {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr) auto;
    gap: 0 clamp(1.5rem, 3vw, 3rem);
    align-items: start;
  }
  .job:last-child .job-n { grid-column: 1 / -1; }
  .job:last-child p { margin-bottom: 0; }
  .job:last-child .tags { align-self: center; }
}

.job {
  background: var(--panel);
  padding: clamp(1.5rem, 3vw, 2.1rem);
  transition: background var(--quick) ease;
}
.job:hover { background: var(--raise); }

.job-n {
  font: 500 0.72rem/1 var(--mono);
  letter-spacing: 0.12em;
  color: var(--mint);
  opacity: 0.75;
  display: block;
  margin-bottom: 1.1rem;
}
.job p { color: var(--soft); font-size: 0.92rem; margin-bottom: 1.1rem; }

.tags { display: flex; flex-wrap: wrap; gap: 0.35rem; list-style: none; padding: 0; margin: 0; }
.tags li {
  font: 400 0.7rem/1 var(--mono);
  color: var(--faint);
  border: 1px solid var(--rule-lit);
  border-radius: 999px;
  padding: 0.28rem 0.6rem;
}

/* --- product tour --------------------------------------------------------- */

.tourbox {
  display: grid;
  gap: clamp(1.5rem, 3vw, 2.5rem);
}
@media (min-width: 950px) {
  .tourbox { grid-template-columns: 20rem minmax(0, 1fr); align-items: start; }
}

.tabs { display: flex; flex-direction: column; gap: 0.4rem; }

.tabs button {
  display: block;
  width: 100%;
  min-height: 44px;
  text-align: left;
  font-family: var(--sans);
  background: transparent;
  color: var(--soft);
  border: 1px solid transparent;
  border-left: 2px solid var(--rule);
  border-radius: 0 8px 8px 0;
  padding: 0.75rem 1rem;
  cursor: pointer;
  transition: background var(--quick) ease, border-color var(--quick) ease, color var(--quick) ease;
}
.tabs button:hover { background: var(--panel); color: var(--ink); }
.tabs button[aria-selected="true"] {
  background: var(--panel);
  border-left-color: var(--mint);
  color: var(--ink);
}
.tab-t { display: block; font-size: 0.95rem; font-weight: 600; }
.tab-d { display: block; font-size: 0.78rem; color: var(--faint); margin-top: 0.15rem; }

/* Horizontal, scrollable tab strip on narrow screens. */
@media (max-width: 949px) {
  .tabs {
    flex-direction: row;
    overflow-x: auto;
    gap: 0.5rem;
    padding-bottom: 0.4rem;
    scrollbar-width: none;
  }
  .tabs::-webkit-scrollbar { display: none; }
  .tabs button {
    width: auto;
    flex: none;
    border: 1px solid var(--rule);
    border-radius: 999px;
    padding: 0.55rem 0.95rem;
  }
  .tabs button[aria-selected="true"] { border-color: var(--mint); color: var(--mint); }
  .tab-d { display: none; }
}

[role="tabpanel"] { animation: fade 320ms var(--ease) both; }
@keyframes fade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* --- steps ---------------------------------------------------------------- */

.stepgrid {
  display: grid;
  gap: 1.6rem;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  list-style: none;
  padding: 0;
  margin: 0;
  counter-reset: step;
}
.stepgrid li { position: relative; padding-top: 2.6rem; border-top: 1px solid var(--rule); }
.step-n {
  position: absolute;
  top: -0.9rem;
  left: 0;
  width: 1.8rem; height: 1.8rem;
  display: grid;
  place-items: center;
  font: 600 0.8rem/1 var(--mono);
  color: var(--void);
  background: var(--mint);
  border-radius: 50%;
}
.stepgrid p { color: var(--soft); font-size: 0.92rem; }
.stepgrid code { color: var(--ink); font-size: 0.82rem; word-break: break-all; }

/* --- trust ---------------------------------------------------------------- */

/* Explicit column counts rather than auto-fit. With three cards and an auto-fit
   track list, the two-column case leaves the third card alone in a row and the
   empty cell shows through as a lighter panel - so at two columns the last card
   spans instead. */
.checks {
  display: grid;
  gap: 1px;
  background: var(--rule);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  overflow: hidden;
  grid-template-columns: 1fr;
}
@media (min-width: 620px) {
  .checks { grid-template-columns: 1fr 1fr; }
  .check.hero-check { grid-column: 1 / -1; }
}
@media (min-width: 1020px) {
  .checks { grid-template-columns: repeat(3, 1fr); }
  .check.hero-check { grid-column: auto; }
}
.check { background: var(--panel); padding: clamp(1.4rem, 3vw, 2rem); display: flex; flex-direction: column; }
.check.hero-check { background: var(--raise); }
.check p { color: var(--soft); font-size: 0.9rem; }
.chk-n { font: 500 0.72rem/1 var(--mono); color: var(--mint); margin-right: 0.5rem; opacity: 0.8; }

.check pre {
  background: var(--void);
  border: 1px solid var(--rule);
  border-radius: 8px;
  padding: 0.8rem 0.9rem;
  margin: 0.5rem 0 0.9rem;
  overflow-x: auto;
  font-size: 0.75rem;
  line-height: 1.65;
  color: var(--ink);
}

.hash {
  font-family: var(--mono);
  font-size: 0.68rem;
  line-height: 1.6;
  color: var(--mint);
  background: var(--void);
  border: 1px solid var(--rule);
  border-radius: 8px;
  padding: 0.7rem 0.8rem;
  word-break: break-all;
}

.link {
  margin-top: auto;
  display: inline-flex;
  align-items: flex-end;
  min-height: 44px;
  padding-top: 0.9rem;
  font-size: 0.85rem;
  text-decoration: none;
}
.link::after { content: " →"; }
.link:hover { text-decoration: underline; }

.never { margin-top: clamp(2.5rem, 5vh, 3.5rem); }
.never h3 { font-size: 1.25rem; font-weight: 800; margin-bottom: 1.3rem; }
.never ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 1rem 2.2rem;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
}
.never li {
  position: relative;
  padding-left: 1.6rem;
  color: var(--soft);
  font-size: 0.9rem;
}
.never li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 0.85rem;
  height: 1px;
  background: var(--coral);
}

/* --- undo ----------------------------------------------------------------- */

.undo-grid { display: grid; gap: clamp(2rem, 5vw, 4rem); }
@media (min-width: 900px) {
  .undo-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 0.95fr); align-items: start; }
}
.undo-grid > div > p { color: var(--soft); margin-top: 1.2rem; }

.path {
  background: var(--panel);
  border: 1px solid var(--rule);
  border-left: 2px solid var(--mint);
  border-radius: 8px;
  padding: 0.85rem 1rem;
  margin: 1.4rem 0;
  overflow-x: auto;
  font-size: 0.82rem;
  color: var(--ink);
}

.undo-facts { list-style: none; padding: 0; margin: 0; display: grid; gap: 1px; background: var(--rule); border: 1px solid var(--rule); border-radius: var(--radius); overflow: hidden; }
.undo-facts li { background: var(--panel); padding: 1.3rem 1.4rem; }
.undo-facts p { color: var(--soft); font-size: 0.88rem; margin: 0; }

/* --- faq ------------------------------------------------------------------ */

.faqlist { border-top: 1px solid var(--rule); max-width: 52rem; }

details { border-bottom: 1px solid var(--rule); }

summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 44px;
  padding: 1.05rem 0;
  cursor: pointer;
  list-style: none;
  font-family: var(--display);
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--ink);
  transition: color var(--quick) ease;
}
summary::-webkit-details-marker { display: none; }
summary:hover { color: var(--mint); }

summary::after {
  content: "";
  flex: none;
  width: 10px; height: 10px;
  border-right: 1.5px solid var(--faint);
  border-bottom: 1.5px solid var(--faint);
  transform: rotate(45deg) translate(-2px, -2px);
  transition: transform var(--quick) var(--ease), border-color var(--quick) ease;
}
details[open] summary::after {
  transform: rotate(225deg) translate(-2px, -2px);
  border-color: var(--mint);
}

details > div { padding: 0 0 1.3rem; animation: fade 260ms var(--ease) both; }
details p { color: var(--soft); font-size: 0.93rem; max-width: 46rem; }

/* --- closer --------------------------------------------------------------- */

.closer {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(4.5rem, 12vh, 8rem) var(--gutter);
  border-top: 1px solid var(--rule);
  text-align: center;
}
.closer p { color: var(--soft); margin-top: 0.9rem; }
.closer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0 1.6rem;
  margin-top: 1.4rem !important;
  font-size: 0.85rem;
}
.closer-links a {
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}
.closer-links a:hover { text-decoration: underline; }

/* --- footer --------------------------------------------------------------- */

footer {
  border-top: 1px solid var(--rule);
  background: var(--panel);
  position: relative;
  z-index: 1;
}
.foot-grid {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(2.5rem, 6vh, 4rem) var(--gutter);
  display: grid;
  gap: 2.5rem;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
}
.foot-brand .mark { width: 26px; height: 26px; fill: var(--mint); margin-bottom: 1rem; }
.foot-brand p { color: var(--faint); font-size: 0.85rem; }

.foot-credit h2 { font-size: 1rem; font-weight: 600; margin-bottom: 0.7rem; }
.foot-credit p { color: var(--faint); font-size: 0.83rem; }
.go-use { color: var(--soft) !important; }

.foot-links { display: flex; flex-direction: column; font-size: 0.85rem; }
.foot-links a {
  color: var(--soft);
  text-decoration: none;
  display: flex;
  align-items: center;
  min-height: 44px;
}
.foot-links a:hover { color: var(--mint); }

/* --- motion --------------------------------------------------------------- */

/* Hero elements animate on load; everything below animates when scrolled to.
   Both use the same transform+opacity pair so nothing triggers layout. */
.r { animation: rise 700ms var(--d, 0ms) var(--ease) both; }
@keyframes rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }

.reveal { opacity: 0; transform: translateY(20px); }
.reveal.in {
  opacity: 1;
  transform: none;
  transition: opacity 640ms var(--ease), transform 640ms var(--ease);
  transition-delay: var(--d, 0ms);
}

/* Every animated element is already legible in its final state, so switching
   the motion off costs nothing but the flourish. */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-delay: 0ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* --- focus ---------------------------------------------------------------- */

:focus-visible {
  outline: 2px solid var(--mint);
  outline-offset: 3px;
  border-radius: 3px;
}
