/* ==========================================================
   Project Reboot TX — styles
   Identity: "shipping and workshop". Kraft paper, shipping labels, printed rules.
   Type:    Plus Jakarta Sans only (variable weight)
   Palette: only the colors in :root below. Square corners, no shadows.
   ========================================================== */

:root {
  --paper: #F6F2EA;          /* main background */
  --kraft: #C8A576;          /* accent surfaces: stat band, tag borders */
  --kraft-light: #EADBC4;    /* tags, placeholders, alternate sections */
  --green: #1F4D36;          /* brand: buttons, links (8.6:1 on paper) */
  --green-dark: #173B29;     /* hover */
  --ink: #1A1A1A;            /* text (16:1 on paper, 7.6:1 on kraft) */
  --ink-2: #4A4640;          /* secondary text (8.4:1 on paper) */
  --rule: #D9D1C3;           /* 1px rules and borders */

  --radius: 0;               /* every corner on the site; only the logo's power symbol is round */

  --serif: "Plus Jakarta Sans", "Helvetica Neue", Arial, sans-serif;   /* one family everywhere */
  --sans: "Plus Jakarta Sans", "Helvetica Neue", Arial, sans-serif;
  --cond: 87.5%;             /* condensed width for labels, buttons and tags */
  --f-head: var(--serif); --f-body: var(--sans); --f-mono: var(--sans);

  /* spacing scale: 8 · 16 · 24 · 40 · 64 · 96 */
  --s1: 8px; --s2: 16px; --s3: 24px; --s4: 40px; --s5: 64px; --s6: 96px;
  --wrap: 1120px;
  --gutter: clamp(20px, 4vw, 40px);
  --section: clamp(var(--s5), 9vw, var(--s6));
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; border-radius: var(--radius); }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 1.125rem/1.6 var(--sans); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
img, svg { max-width: 100%; display: block; }
img { height: auto; }

h1, h2, h3, h4 { font-family: var(--serif); font-weight: 700; color: var(--ink); margin: 0 0 var(--s2); }
h1 { font-size: clamp(2.25rem, 4.4vw, 3.5rem); line-height: 1.08; letter-spacing: -0.02em; }
h2 { font-size: clamp(1.75rem, 2.8vw, 2.25rem); line-height: 1.15; letter-spacing: -0.015em; }
h3 { font-size: 1.3rem; font-weight: 600; line-height: 1.3; letter-spacing: -0.005em; margin-bottom: var(--s1); }
p { margin: 0 0 var(--s2); }
p:last-child { margin-bottom: 0; }
strong { font-weight: 600; }
a { color: var(--green); text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
a:hover { color: var(--green-dark); text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; }

.skip-link { position: absolute; left: var(--s2); top: -80px; z-index: 100; padding: var(--s1) var(--s2); background: var(--green); color: var(--paper); }
.skip-link:focus { top: var(--s2); color: var(--paper); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; margin: -1px; padding: 0; border: 0; }

/* ---------- Layout ---------- */
.wrap { width: 100%; max-width: calc(var(--wrap) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: var(--section) 0; }
.section--alt { background: var(--kraft-light); }
.section--dark { background: var(--green); color: var(--paper); }
.section--dark h2, .section--dark h3 { color: var(--paper); }
.rule-top { border-top: 1px solid var(--rule); }
.mt-2 { margin-top: var(--s4); }
.mt-3 { margin-top: var(--s5); }
.muted { color: var(--ink-2); }
.measure { max-width: 40em; }
.mono { font-family: var(--sans); }
.lede { font-size: clamp(1.125rem, 1.6vw, 1.3rem); line-height: 1.55; color: var(--ink-2); max-width: 34em; }
.prose { max-width: 42em; }
.prose h2 { font-size: clamp(1.5rem, 2.4vw, 1.9rem); }
.prose ul { padding-left: 1.2rem; }
.prose li { margin-bottom: var(--s1); }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s5); align-items: start; }
.split--wide-right { grid-template-columns: 1fr 1.4fr; }
.split--label { grid-template-columns: 14rem 1fr; }
@media (max-width: 860px) { .split, .split--wide-right, .split--label { grid-template-columns: 1fr; gap: var(--s4); } }

.only-mobile { display: none; }
@media (max-width: 860px) { .only-mobile { display: block; } .only-desktop { display: none !important; } }

/* ---------- Shipping-label tag (main sections only) ---------- */
.label {
  display: inline-block; margin: 0 0 var(--s2); padding: 5px 10px;
  background: var(--kraft-light); border: 1px solid var(--kraft); color: var(--ink);
  font: 600 0.75rem/1.2 var(--sans); letter-spacing: 0.14em; text-transform: uppercase;
}
.section--alt .label { background: var(--paper); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s1);
  padding: 15px 26px; border: 0; background: var(--green); color: var(--paper);
  font: 600 0.875rem/1.2 var(--sans); letter-spacing: 0.08em; text-transform: uppercase;
  text-decoration: none; cursor: pointer; transition: background-color 0.15s ease;
}
.btn:hover, .btn:active { background: var(--green-dark); color: var(--paper); text-decoration: none; }
.btn--primary { background: var(--green); color: var(--paper); }
.btn--ghost, .text-link, .cta-link {
  display: inline-flex; align-items: center; gap: 6px; padding: 15px 2px; background: none; border: 0;
  color: var(--green); font: 500 1rem/1.2 var(--sans); letter-spacing: 0; text-transform: none;
  text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.25em;
}
.btn--ghost::after { content: "\2192"; }
.btn--ghost:hover, .text-link:hover { background: none; color: var(--green-dark); text-decoration-thickness: 2px; }
.section--dark .btn--ghost { color: var(--paper); }
.section--dark .btn--primary { background: var(--paper); color: var(--green); }
.section--dark .btn--primary:hover { background: var(--kraft-light); color: var(--green-dark); }
.btn-row { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s2) var(--s3); margin-top: var(--s4); }
.arrow { display: inline-block; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--paper); border-bottom: 1px solid var(--rule); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: var(--s3); min-height: 72px; position: relative; }
.brand { display: inline-flex; align-items: center; text-decoration: none; }
.brand-logo { display: block; height: 22px; width: auto; max-width: none; }
.nav { display: flex; align-items: center; gap: var(--s3); }
.nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: var(--s3); }
.nav a:not(.btn) { display: block; padding: 6px 0; color: var(--ink); font-size: 0.95rem; font-weight: 500; text-decoration: none; border-bottom: 2px solid transparent; }
.nav a:not(.btn):hover { color: var(--green); }
.nav a[aria-current="page"] { color: var(--green); border-bottom-color: var(--green); }
.nav .btn { padding: 11px 18px; font-size: 0.8rem; }
.nav-toggle { display: none; padding: 8px 14px; border: 1px solid var(--rule); background: none; color: var(--ink); font: 600 0.8rem var(--sans); letter-spacing: 0.1em; text-transform: uppercase; cursor: pointer; }
@media (max-width: 960px) {
  .nav-toggle { display: inline-flex; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch; gap: 0; background: var(--paper); border-bottom: 1px solid var(--rule); padding: var(--s1) var(--gutter) var(--s3); }
  .nav.is-open { display: flex; }
  .nav ul { flex-direction: column; gap: 0; }
  .nav a:not(.btn) { padding: var(--s2) 0; border-bottom: 1px solid var(--rule); font-size: 1.05rem; }
  .nav a[aria-current="page"] { border-bottom-color: var(--rule); }
  .nav .btn { margin-top: var(--s2); padding: 15px; }
}
@media (max-width: 420px) { .brand-logo { height: 17px; } }

/* ---------- Page header (inner pages) ---------- */
.page-head { padding: var(--s5) 0 var(--s4); border-bottom: 1px solid var(--rule); }
.page-head h1 { max-width: 17em; }
.page-head .lede { margin: 0; }

/* ---------- Home: hero ---------- */
.hero { padding: var(--s5) 0 var(--s6); }
.hero-boot { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: var(--s5); align-items: center; }
.hero h1 { max-width: 13em; margin-bottom: var(--s3); }
.hero .lede { margin: 0; }
.hero-media { margin: 0; }
.hero-media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border: 1px solid var(--rule); }
@media (max-width: 860px) { .hero { padding: var(--s4) 0 var(--s5); } .hero-boot { grid-template-columns: 1fr; gap: var(--s4); } }

/* ---------- Home: the stat (kraft band, number in the serif) ---------- */
.stat-band { background: var(--kraft); color: var(--ink); padding: var(--s5) 0; border-top: 1px solid var(--ink); border-bottom: 1px solid var(--ink); }
.stat-band .wrap { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: var(--s2) var(--s5); }
.stat-num { margin: 0; font-family: var(--serif); font-weight: 700; font-size: clamp(4rem, 11vw, 8.5rem); line-height: 0.9; letter-spacing: -0.03em; color: var(--ink); font-variant-numeric: lining-nums tabular-nums; white-space: nowrap; }
.stat-lede { margin: 0; max-width: 20em; font-family: var(--serif); font-weight: 600; font-size: clamp(1.35rem, 2.3vw, 1.85rem); line-height: 1.25; }
.stat-link { color: var(--ink); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
.stat-link:hover { color: var(--ink); text-decoration-thickness: 2px; }
[data-countup]::before { content: attr(data-shown); }
.is-waiting [data-countup] { opacity: 0; }
@media (max-width: 760px) { .stat-band .wrap { grid-template-columns: 1fr; } }

/* ---------- Home: mission ---------- */
.mission-doc { max-width: 44rem; }
.mission-doc.mission-split { max-width: none; display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: var(--s5); align-items: start; }
.mission-text { max-width: 42rem; }
.mission-doc h2 { margin-bottom: var(--s3); }
.mission-doc h3 { margin: var(--s4) 0 var(--s1); }
.mission-doc h2 + h3 { margin-top: 0; }
.mission-media { position: sticky; top: 112px; padding-top: 64px; }
.mission-sources { margin-top: var(--s4) !important; padding-top: var(--s2); border-top: 1px solid var(--rule); font-size: 0.85rem; line-height: 1.6; color: var(--ink-2); }
.mission-sources a { color: var(--ink-2); }
.mission--about { border-top: 1px solid var(--rule); }
@media (max-width: 860px) { .mission-doc.mission-split { grid-template-columns: 1fr; gap: var(--s4); } .mission-media { position: static; padding-top: 0; } }

/* ---------- Photo placeholders: kraft card with a dashed edge and a small label ---------- */
.img-slot {
  margin: 0; position: relative; aspect-ratio: 4 / 3; max-width: 360px; width: 100%;
  background: var(--kraft-light); border: 1px dashed var(--kraft);
}
.img-slot figcaption {
  position: absolute; left: 12px; top: 12px; right: 12px;
  font: 600 0.72rem/1.4 var(--sans); letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-2);
}

/* ---------- How it works: truck journey ---------- */
.journey { --hdr: 73px; position: relative; border-top: 1px solid var(--rule); }
.journey-inner { padding-top: var(--s5); padding-bottom: var(--s3); }
.journey-head h2 { margin: 0 0 var(--s1); }
.journey-head p { margin: 0 0 var(--s3); color: var(--ink-2); }
.journey-stage { position: relative; border: 1px solid var(--rule); }
.journey-svg { display: block; width: 100%; height: clamp(220px, 40vh, 330px); background: var(--kraft-light); }
.journey-steps { list-style: none; margin: var(--s3) 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s3); }
.j-step-btn { display: inline-flex; align-items: center; gap: var(--s1); margin: 0 0 var(--s1); padding: 0; border: 0; background: none; color: var(--ink); font: 600 0.8rem/1.3 var(--sans); letter-spacing: 0.1em; text-transform: uppercase; cursor: pointer; }
.j-step-btn:focus-visible { outline: 2px solid var(--green); outline-offset: 4px; }
.j-num { display: inline-grid; place-items: center; width: 24px; height: 24px; background: var(--green); color: var(--paper); font-size: 0.75rem; letter-spacing: 0; }
.j-sub { display: none; }
.j-text h3 { margin: 0 0 6px; }
.j-text p { margin: 0; color: var(--ink-2); }
.j-step { opacity: 1; }
.j-rail { display: none; }
.journey-cta { padding-top: var(--s3); padding-bottom: var(--s5); }

/* desktop: the section pins while scroll drives the truck */
@media (min-width: 861px) and (prefers-reduced-motion: no-preference) {
  .journey.is-pinned .journey-track { height: 660vh; }
  .journey.is-pinned .journey-pin { position: sticky; top: var(--hdr); height: calc(100vh - var(--hdr)); display: flex; align-items: center; }
  .journey.is-pinned .journey-inner { width: 100%; padding-top: var(--s3); padding-bottom: var(--s2); }
  .journey.is-pinned .journey-head p { margin-bottom: var(--s2); }
  .journey.is-pinned .journey-svg { height: clamp(190px, 33vh, 300px); }
  /* progress rail: four labels on a thin line; the square marker moves with the truck */
  .journey.is-pinned .j-rail { display: block; position: relative; height: 10px; margin-top: var(--s3); }
  .journey.is-pinned .j-rail-line { position: absolute; top: 4px; height: 1px; background: var(--ink-2); }
  .journey.is-pinned .j-dot { position: absolute; left: 0; top: 0; width: 10px; height: 10px; background: var(--green); will-change: transform; }
  .journey.is-pinned .journey-steps { margin-top: var(--s1); column-gap: 0; row-gap: var(--s3); }
  .journey.is-pinned .j-step { display: contents; }
  .journey.is-pinned .j-step:nth-child(1) .j-step-btn { grid-row: 1; grid-column: 1; }
  .journey.is-pinned .j-step:nth-child(2) .j-step-btn { grid-row: 1; grid-column: 2; }
  .journey.is-pinned .j-step:nth-child(3) .j-step-btn { grid-row: 1; grid-column: 3; }
  .journey.is-pinned .j-step:nth-child(4) .j-step-btn { grid-row: 1; grid-column: 4; }
  .journey.is-pinned .j-step-btn { justify-self: center; margin: 0; padding: 4px 0; color: var(--ink-2); opacity: 0.75; transition: color 0.25s ease, opacity 0.25s ease; }
  .journey.is-pinned .j-step.is-active .j-step-btn { color: var(--green); opacity: 1; }
  .journey.is-pinned .j-num { display: none; }
  /* the active step's title on the left, its text on the right */
  .journey.is-pinned .j-text {
    grid-column: 1 / -1; grid-row: 2; display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.7fr); column-gap: var(--s5); align-items: start;
    padding-top: var(--s3); border-top: 1px solid var(--rule);
    opacity: 0; transform: translateY(8px); transition: opacity 0.12s ease, transform 0.12s ease; pointer-events: none;
  }
  .journey.is-pinned .j-step.is-active .j-text { opacity: 1; transform: none; pointer-events: auto; transition: opacity 0.35s ease 0.14s, transform 0.35s ease 0.14s; }
  .journey.is-pinned .j-text h3 { margin: 0; font-size: clamp(1.5rem, 2.2vw, 1.9rem); font-weight: 700; line-height: 1.2; }
  .journey.is-pinned .j-text p { color: var(--ink); max-width: 38em; }
}
/* phones: text only */
@media (max-width: 860px) {
  .journey-stage { display: none; }
  .journey-steps { grid-template-columns: 1fr; gap: var(--s4); margin-top: var(--s1); }
  .j-step-btn { pointer-events: none; }
}

/* the drawing: square frame, kraft sky, palette colors only, no outlines */
.s-sky { fill: #EADBC4; }
.j-cloud ellipse { fill: #F6F2EA; }
.s-skyline { fill: #D9D1C3; }
.s-walk { fill: #D9D1C3; }
.s-curb { fill: #C8A576; }
.s-road { fill: #5A5650; }
.j-dash { fill: #EADBC4; }
.s-wall { fill: #F6F2EA; }
.s-wall--warm { fill: #EADBC4; }
.s-wall-shade { fill: #D9D1C3; }
.s-parapet { fill: #C8A576; }
.s-glass { fill: #D9D1C3; }
.s-glass-shine { fill: #EADBC4; }
.s-dark { fill: #1A1A1A; }
.s-door { fill: #1F4D36; }
.s-door-split { fill: #173B29; }
.s-sign { fill: #1F4D36; }
.s-sign-text { fill: #F6F2EA; font: 600 9.5px var(--sans); letter-spacing: 0.12em; text-anchor: middle; }
.s-rollup { fill: #D9D1C3; }
.s-rollup-slat { fill: #C8A576; }
.s-lamp, .s-pallet, .s-bench, .s-planter, .s-knob { fill: #C8A576; }
.s-roof { fill: #1F4D36; }
.s-roof-shade { fill: #173B29; }
.s-roof-trim, .s-porch-roof, .s-interior { fill: #1A1A1A; }
.s-tool, .s-bench-leg, .s-chimney, .s-trunk { fill: #5A5650; }
.s-attic, .s-window-dim { fill: #D9D1C3; }
.s-window-warm { fill: #C8A576; opacity: 0.3; transition: opacity 0.9s ease 0.6s; }
.r3 .s-window-warm { opacity: 1; }
.s-post, .s-step { fill: #D9D1C3; }
.s-step--low { fill: #C8A576; }
.s-leaf { fill: #1F4D36; }
.s-leaf-shade { fill: #173B29; }
.s-box { fill: #C8A576; }
.s-tape { fill: #EADBC4; }
.s-laptop-base { fill: #5A5650; }
.s-laptop-shell { fill: #D9D1C3; }
.s-screen { fill: #1A1A1A; }
.j-bar-track { fill: #5A5650; }
.j-bar { fill: #C8A576; }
.j-screen-check { fill: none; stroke: #C8A576; stroke-width: 3; stroke-linecap: square; }
.j-status-bg { fill: #1A1A1A; }
.j-lbl, .j-lbl text { fill: #F6F2EA; font: 500 14px var(--sans); text-anchor: middle; opacity: 0; }
.j-lbl--done text { opacity: 1; }
.j-lbl--done circle { fill: #C8A576; }
.j-lbl--done path { fill: none; stroke: #1A1A1A; stroke-width: 2.2; }
.j-puff { fill: #D9D1C3; transform-box: fill-box; transform-origin: center; }
.j-shadow { fill: #1A1A1A; opacity: 0.2; }
/* truck */
.t-box { fill: #F6F2EA; }
.t-box-shade { fill: #D9D1C3; }
.t-band { fill: #1F4D36; }
.t-chassis, .t-bumper, .t-tire, .t-spoke { fill: #1A1A1A; }
.t-spoke { stroke: #1A1A1A; stroke-width: 2.2; }
.t-cab { fill: #1F4D36; }
.t-cab-shade { fill: #173B29; }
.t-glass, .t-handle, .t-head { fill: #EADBC4; }
.t-hub { fill: #D9D1C3; }
.t-brake { fill: #C8A576; }

/* scene motion (only transform and opacity) */
.j-drift { animation: j-drift 70s linear infinite alternate; }
@keyframes j-drift { to { transform: translateX(-160px); } }
.j-box { transition: transform 0.6s cubic-bezier(.45,0,.2,1), opacity 0.45s ease; }
.r1 .j-box { opacity: 0; transform: translate(70px, -12px); }
.r1 .j-box--1 { transition-delay: 0.15s; }
.r1 .j-box--2 { transition-delay: 0.45s; }
.r1 .j-box--3 { transition-delay: 0.75s; }
.j-ubox, .j-dbox { opacity: 0; }
.r2 .j-ubox--1 { animation: j-unload 1.1s 0.2s cubic-bezier(.45,0,.2,1) both; }
.r2 .j-ubox--2 { animation: j-unload 1.1s 0.55s cubic-bezier(.45,0,.2,1) both; }
@keyframes j-unload { 0% { opacity: 0; transform: translate(0, 0); } 15% { opacity: 1; } 80% { opacity: 1; transform: translate(-86px, -24px); } 100% { opacity: 0; transform: translate(-96px, -24px); } }
.j-lid { transform-box: fill-box; transform-origin: 50% 100%; transform: scaleY(0.08); transition: transform 0.6s cubic-bezier(.3,.7,.2,1) 1.1s; }
.r2 .j-lid { transform: scaleY(1); }
.j-bar { transform-box: fill-box; transform-origin: 0 50%; transform: scaleX(0); transition: transform 2.6s linear 1.7s; }
.r2 .j-bar { transform: scaleX(1); }
.j-screen-check { opacity: 0; transition: opacity 0.3s ease 4.4s; }
.r2 .j-screen-check { opacity: 1; }
.j-status { opacity: 0; transition: opacity 0.3s ease 1.5s; }
.r2 .j-status { opacity: 1; }
.r2 .j-lbl--1 { animation: j-lbl 0.9s 1.7s both; }
.r2 .j-lbl--2 { animation: j-lbl 0.9s 2.6s both; }
.r2 .j-lbl--3 { animation: j-lbl 0.9s 3.5s both; }
.r2 .j-lbl--done { animation: j-show 0.3s 4.4s both; }
@keyframes j-lbl { 0% { opacity: 0; } 15%, 85% { opacity: 1; } 100% { opacity: 0; } }
@keyframes j-show { from { opacity: 0; } to { opacity: 1; } }
.r3 .j-dbox { animation: j-deliver 1s 0.2s cubic-bezier(.45,0,.2,1) both; }
@keyframes j-deliver { 0% { opacity: 0; transform: translate(0, 0); } 15% { opacity: 1; } 80% { opacity: 1; transform: translate(-78px, -24px); } 100% { opacity: 0; transform: translate(-82px, -26px); } }
@media (prefers-reduced-motion: reduce) { .j-lbl--done { opacity: 1 !important; } }

/* ---------- Home: closing line ---------- */
.cta-final { padding: var(--s5) 0; }
.cta-final .wrap { position: relative; }
.cta-final .wrap::before { content: ""; position: absolute; top: calc(-1 * var(--s5)); left: var(--gutter); right: var(--gutter); border-top: 1px solid var(--rule); }
.line-row { display: flex; align-items: center; justify-content: space-between; gap: var(--s3) var(--s4); flex-wrap: wrap; }
.line-row h2 { margin: 0; max-width: 16em; }

/* ---------- For businesses: alternating rows ---------- */
.benefits h2 { margin-bottom: var(--s4); }
.benefit-row { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: var(--s5); align-items: start; padding: var(--s4) 0; border-top: 1px solid var(--rule); }
.benefit-row--flip { grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr); }
.benefit-media { width: 100%; }
.benefit-row--flip .benefit-media { order: 2; }
.benefit-row--flip .img-slot { margin-left: auto; }
.benefit-text h3 { margin-bottom: 6px; }
.benefit-text p { color: var(--ink-2); margin-bottom: var(--s3); }
.benefit-text p:last-child { margin-bottom: 0; }
@media (max-width: 860px) {
  .benefit-row, .benefit-row--flip { grid-template-columns: 1fr; gap: var(--s3); }
  .benefit-row--flip .benefit-media { order: 0; }
  .benefit-row--flip .img-slot { margin-left: 0; }
}

/* ---------- Forms (like a printed form) ---------- */
.form-panel { background: var(--paper); border: 1px solid var(--rule); padding: clamp(var(--s3), 4vw, var(--s4)); }
.form { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s3); }
.form[hidden] { display: none; }
.form .full { grid-column: 1 / -1; }
.form .field { display: flex; flex-direction: column; }
.form .field > input, .form .field > select { margin-top: auto; }
.field label { display: block; margin-bottom: 6px; font: 600 0.8rem/1.3 var(--sans); letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink); }
.field .req { color: var(--green); }
.field .hint { display: block; margin-top: 2px; font-size: 0.85rem; font-weight: 400; letter-spacing: 0; text-transform: none; color: var(--ink-2); }
.field .hint--inline { display: inline; margin-top: 0; }
.field input, .field select, .field textarea {
  width: 100%; padding: 12px 14px; border: 0; border-bottom: 1px solid var(--ink-2); background: var(--kraft-light);
  color: var(--ink); font: 400 1rem/1.4 var(--sans);
}
.field textarea { min-height: 8rem; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--green); outline-offset: 0; }
.hp { position: absolute; left: -9999px; }
.form-note { font-size: 0.9rem; color: var(--ink-2); }
.form-after p { margin: 0 0 6px; font-size: 0.92rem; color: var(--ink-2); }
.form-status { display: none; margin: 0; padding: 12px 14px; border: 1px solid var(--rule); font-size: 0.95rem; }
.form-status.is-visible { display: block; }
.form-status.is-ok { background: var(--kraft-light); border-color: var(--kraft); }
.form-status.is-error { background: var(--paper); border-color: var(--ink-2); }
@media (max-width: 620px) { .form { grid-template-columns: 1fr; } }

/* ---------- FAQ ---------- */
.faq details { border-top: 1px solid var(--rule); }
.faq details:last-child { border-bottom: 1px solid var(--rule); }
.faq summary { position: relative; cursor: pointer; list-style: none; padding: var(--s3) var(--s4) var(--s3) 0; font: 600 1.15rem/1.35 var(--serif); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 50%; transform: translateY(-50%); color: var(--green); font: 400 1.4rem var(--sans); }
.faq details[open] summary::after { content: "\2212"; }
.faq .answer { padding: 0 0 var(--s3); max-width: 42em; color: var(--ink-2); }

/* ---------- Data security page ---------- */
.sec-block { max-width: 46rem; padding: var(--s5) 0; border-top: 1px solid var(--rule); }
.sec-block:first-of-type { border-top: 0; }
.sec-block h2 { font-size: clamp(1.5rem, 2.4vw, 1.9rem); }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 1rem; }
caption { text-align: left; padding-bottom: var(--s1); color: var(--ink-2); font-size: 0.9rem; }
th, td { text-align: left; vertical-align: top; padding: 14px 16px 14px 0; border-bottom: 1px solid var(--rule); }
thead th { font: 600 0.78rem/1.3 var(--sans); letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-2); border-bottom: 1px solid var(--ink-2); }
tbody th { font-weight: 600; }
@media (max-width: 640px) {
  .table-stack thead { display: none; }
  .table-stack tr { display: block; padding: var(--s2) 0; border-bottom: 1px solid var(--rule); }
  .table-stack th, .table-stack td { display: block; border: 0; padding: 2px 0; }
  .table-stack td::before { content: attr(data-label) ": "; color: var(--ink-2); }
}
.custody { list-style: none; margin: var(--s2) 0 0; padding: 0 0 0 var(--s3); border-left: 1px solid var(--rule); }
.custody li { position: relative; padding: 0 0 var(--s3); }
.custody li:last-child { padding-bottom: 0; }
.custody li::before { content: ""; position: absolute; left: calc(-1 * var(--s3) - 5px); top: 8px; width: 9px; height: 9px; background: var(--green); }
.custody .mono { display: block; font: 600 0.75rem/1.4 var(--sans); letter-spacing: 0.12em; text-transform: uppercase; color: var(--green); }
.checklist { list-style: none; margin: 0; padding: 0; }
.checklist li { position: relative; padding: 12px 0 12px 32px; border-bottom: 1px solid var(--rule); }
.checklist li:first-child { border-top: 1px solid var(--rule); }
.checklist li::before { content: ""; position: absolute; left: 0; top: 16px; width: 16px; height: 16px; border: 1px solid var(--ink-2); }
.checklist--never li::before { content: "\2715"; display: grid; place-items: center; font-size: 0.7rem; color: var(--green); }

/* ---------- Contact / About ---------- */
.contact-list { margin: 0; }
.contact-list dt { margin-top: var(--s3); font: 600 0.75rem/1.4 var(--sans); letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-2); }
.contact-list > div:first-child dt { margin-top: 0; }
.contact-list dd { margin: 4px 0 0; font: 600 clamp(1.2rem, 2vw, 1.45rem)/1.3 var(--serif); word-break: break-word; }
.callout { padding: var(--s2) var(--s3); border: 1px solid var(--rule); background: var(--kraft-light); }
.placeholder { background: var(--kraft-light); outline: 1px dashed var(--kraft); padding: 0 0.2em; }
.cta-band .wrap { display: flex; justify-content: space-between; align-items: center; gap: var(--s3) var(--s4); flex-wrap: wrap; }
.cta-band h2 { margin: 0; max-width: 16em; }

/* ---------- 404 ---------- */
.boot-error { min-height: 60vh; display: flex; align-items: center; cursor: pointer; }
.boot-error .wrap { padding-top: var(--s5); padding-bottom: var(--s5); }
.be-code { font: 600 0.78rem/1.4 var(--sans); letter-spacing: 0.12em; text-transform: uppercase; color: var(--green); }
.boot-error h1 { margin-bottom: var(--s2); }
.be-key, .be-alt { color: var(--ink-2); }
.cursor { display: none; }

/* ---------- Footer: deep green, paper text, thin rules ---------- */
.site-footer { background: var(--green); color: var(--paper); padding: var(--s5) 0 var(--s4); font-size: 0.95rem; }
.site-footer a { color: var(--paper); text-decoration: none; }
.site-footer a:hover { color: var(--paper); text-decoration: underline; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr; border-top: 1px solid var(--kraft); }
.footer-grid > div { padding: var(--s3) var(--s3) 0 0; }
.footer-grid > div + div { padding-left: var(--s3); border-left: 1px solid var(--kraft); }
.footer-grid .brand-logo { height: 19px; }
.footer-grid .label { background: none; border: 0; padding: 0; color: var(--kraft-light); }
.footer-grid ul { list-style: none; margin: 0; padding: 0; }
.footer-grid li { margin-bottom: var(--s1); }
.footer-note { margin-top: var(--s2); max-width: 26em; color: var(--kraft-light); }
.footer-base { display: flex; justify-content: space-between; flex-wrap: wrap; gap: var(--s2); margin-top: var(--s4); padding-top: var(--s2); border-top: 1px solid var(--kraft); font-size: 0.85rem; color: var(--kraft-light); }
@media (max-width: 760px) {
  .footer-grid { grid-template-columns: 1fr; }
  .footer-grid > div + div { padding-left: 0; border-left: 0; border-top: 1px solid var(--kraft); margin-top: var(--s3); }
}
.site-footer { border-top: 1px solid var(--kraft); }


/* ==========================================================
   Typography: Plus Jakarta Sans everywhere
   ========================================================== */
body { font: 400 1.125rem/1.6 var(--sans); color: var(--ink); }
h1, h2, h3, h4 { font-family: var(--sans); font-weight: 750; letter-spacing: -0.01em; font-stretch: 100%; }
h1, .hero h1 { font-size: clamp(2.375rem, 4.6vw, 3.75rem); line-height: 1.1; }
h2, .prose h2, .sec-block h2 { font-size: clamp(1.75rem, 3vw, 2.375rem); line-height: 1.2; }
h3, .journey.is-pinned .j-text h3 { font-size: clamp(1.25rem, 1.6vw, 1.375rem); line-height: 1.2; font-weight: 700; letter-spacing: 0; }
@media (max-width: 600px) { body { font-size: 1.0625rem; } }

/* body copy is ink, not gray; secondary text uses --ink-2 */
.lede, .journey-head p, .j-text p, .benefit-text p, .faq .answer { color: var(--ink); }

/* labels, buttons and tags: condensed, uppercase, slightly spaced */
.label, .btn, .j-step-btn, .field label, thead th, .contact-list dt, .custody .mono, .be-code, .img-slot figcaption, .nav-toggle {
  font-family: var(--sans); font-stretch: var(--cond); font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em;
}
.btn--ghost, .text-link, .cta-link { font-stretch: 100%; text-transform: none; letter-spacing: 0; font-weight: 500; }
.nav a:not(.btn) { font-weight: 500; }
.faq summary { font-family: var(--sans); font-weight: 650; }
.contact-list dd { font-family: var(--sans); font-weight: 650; }

/* the stat: big number, plain sentence beside it */
.stat-num { font-family: var(--sans); font-weight: 800; letter-spacing: -0.02em; }
.stat-lede { font-family: var(--sans); font-weight: 500; }
.stat-link, .stat-link:hover { color: var(--ink); text-decoration: none; }

/* ==========================================================
   Picked from the type lab: C (headings) + 4 (body) + ii (labels)
   ========================================================== */
h1, h2, h3, .stat-num, .journey.is-pinned .j-text h3 { font-weight: 800; font-stretch: 90%; }
body, p, li { line-height: 1.75; }
.label, .btn, .j-step-btn, .field label, thead th, .contact-list dt, .custody .mono, .be-code, .nav-toggle {
  font-stretch: 100%; letter-spacing: 0.08em; text-transform: uppercase;
}

/* quiet photo placeholders: plain light-kraft boxes until real photos go in */
.img-slot { background: var(--kraft-light); border: 0; }
.photo { display: block; width: 100%; max-width: 360px; aspect-ratio: 4 / 3; object-fit: cover; }
.benefit-row--flip .photo { margin-left: auto; }
@media (max-width: 860px) { .benefit-row--flip .photo { margin-left: 0; } }
.mission-media { padding-top: 0; }

/* one rhythm: every section gets the same top and bottom padding */
.section, .hero, .stat-band, .page-head, .cta-final, .sec-block { padding-top: var(--section); padding-bottom: var(--section); }
.journey-inner { padding-top: var(--section); }
.journey-cta { padding-bottom: var(--section); }
.cta-final .wrap::before { top: calc(-1 * var(--section)); }
.btn--ghost, .text-link, .cta-link { text-transform: none; letter-spacing: 0; }
/* real photos fill their column (placeholders stay small) */
.photo { max-width: none; aspect-ratio: 4 / 3; border: 1px solid var(--rule); }

/* ==========================================================
   Dense, compact pass: smaller type, half the section padding
   ========================================================== */
:root { --section: clamp(32px, 4.5vw, 48px); }
body { font-size: 1rem; line-height: 1.55; color: var(--ink); }
body, p, li { line-height: 1.55; }
p { margin: 0 0 12px; }
main p, main li { max-width: 70ch; }
h1, .hero h1, .page-head h1 { font-size: clamp(2rem, 3.4vw, 2.75rem); line-height: 1.1; margin-bottom: 12px; }
h2, .prose h2, .sec-block h2, .line-row h2, .cta-band h2 { font-size: 1.625rem; line-height: 1.2; margin-bottom: 10px; }
h3, .journey.is-pinned .j-text h3 { font-size: 1.125rem; font-weight: 700; font-stretch: 100%; letter-spacing: 0; line-height: 1.3; margin: 24px 0 6px; }
h2 + h3 { margin-top: 12px; }
.lede { font-size: 1.0625rem; line-height: 1.55; color: var(--ink); max-width: 62ch; }
.btn-row { margin-top: var(--s3); }
.btn { padding: 12px 20px; font-size: 0.8rem; }
.btn--ghost, .text-link, .cta-link { padding: 12px 2px; font-size: 0.95rem; }

/* hero: text only, compact, with a small power mark */
.hero-boot { grid-template-columns: 1fr; }
.hero h1 { max-width: 20em; }
.hero .lede { max-width: 58ch; }
.hero-mark { width: 30px; height: 30px; color: var(--green); margin-bottom: var(--s2); }

/* stat band, a little tighter */
.stat-num { font-size: clamp(3rem, 8vw, 5.5rem); }
.stat-lede { font-size: clamp(1.1rem, 1.8vw, 1.35rem); }

/* mission: main column + fact-box sidebar */
.mission-grid { display: grid; grid-template-columns: minmax(0, 65fr) minmax(0, 30fr); gap: var(--s4); align-items: start; }
.mission-main h2 { margin-bottom: 4px; }
.mission-facts { border-left: 1px solid var(--rule); padding-left: var(--s3); display: grid; gap: var(--s2); }
.fact { border: 1px solid var(--rule); background: var(--paper); }
.fact .fact-h { margin: 0; padding: 6px 10px; background: var(--green); color: #FFFFFF; font: 600 0.75rem/1.3 var(--sans); letter-spacing: 0.08em; text-transform: uppercase; font-stretch: 100%; }
.fact p { margin: 0; padding: 8px 10px 10px; font-size: 0.875rem; line-height: 1.45; }
.mission-sources { font-size: 0.8125rem !important; margin-top: var(--s3) !important; }
@media (max-width: 860px) {
  .mission-grid { grid-template-columns: 1fr; gap: var(--s3); }
  .mission-facts { border-left: 0; padding-left: 0; border-top: 1px solid var(--rule); padding-top: var(--s3); }
}

/* Contact: three short items in a grid, no pictures */
.benefits h2 { margin-bottom: var(--s2); }
.benefit-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 var(--s4); border-top: 1px solid var(--rule); }
.benefit { padding: var(--s2) 0; border-bottom: 1px solid var(--rule); }
.benefit h3 { margin-top: 0; }
.benefit p { margin: 0; }
@media (max-width: 700px) { .benefit-grid { grid-template-columns: 1fr; } }

/* About: founder note; the photo only appears once images/photos/luke.jpg exists */
.founder { display: grid; grid-template-columns: 1fr; gap: var(--s4); align-items: start; }
.founder:has(.founder-photo:not([hidden])) { grid-template-columns: 220px minmax(0, 1fr); }
.founder-photo { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border: 1px solid var(--rule); }
.founder-text h2 { margin-top: 0; }
@media (max-width: 600px) { .founder:has(.founder-photo:not([hidden])) { grid-template-columns: 1fr; } .founder-photo { max-width: 220px; } }

/* journey + forms + misc follow the smaller scale */
.journey-head p, .j-text p { font-size: 1rem; }
.journey.is-pinned .j-text h3 { margin: 0; font-size: 1.25rem; }
.faq summary { font-size: 1rem; padding: var(--s2) var(--s4) var(--s2) 0; }
.faq .answer { padding-bottom: var(--s2); }
.contact-list dd { font-size: 1.1rem; }
.form { gap: var(--s2); }
.page-head .lede { margin-top: 0; }
@media (max-width: 600px) { body { font-size: 1rem; } h1, .hero h1, .page-head h1 { font-size: 2rem; } }
.journey { padding-bottom: var(--section); }

/* Contact: one line, then the donation form */
.contact-form { max-width: 760px; }
.contact-line { margin-bottom: var(--s3); }

/* Data security: two options */
.wipe-options { display: grid; gap: var(--s4); max-width: 760px; }
.wipe-option + .wipe-option { padding-top: var(--s4); border-top: 1px solid var(--rule); }
.wipe-steps { margin: 0 0 6px; padding-left: 1.3rem; }
.wipe-steps li { margin-bottom: 4px; }
.wipe-link { font-size: 0.9rem; }

/* About: founder only */
.founder-page .founder-text h1 { margin-top: 0; }
.signoff { font-weight: 600; }
.contact-form, .wipe-options { max-width: calc(var(--wrap) + 2 * var(--gutter)); }
.contact-form > *, .wipe-options > * { max-width: 760px; }
.founder:has(.founder-photo:not([hidden])) { grid-template-columns: 280px minmax(0, 1fr); }
@media (max-width: 600px) { .founder:has(.founder-photo:not([hidden])) { grid-template-columns: 1fr; } .founder-photo { max-width: 100%; } }

/* Contact: donation page */
.contact-after { margin: var(--s3) 0 0; }
.benefit p a { white-space: nowrap; }
[id] { scroll-margin-top: 80px; }

/* ==========================================================
   Home top: power-button hero + dark stat band (kraft colours)
   ========================================================== */
.hero--power { position: relative; overflow: hidden; padding: clamp(56px, 9vw, 128px) 0; border-bottom: 1px solid var(--rule); }
.hero--power .hero-boot { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: var(--s5); align-items: center; position: relative; z-index: 1; }
.hero--power h1 { font-size: clamp(2.4rem, 4.9vw, 4.75rem); line-height: 1; letter-spacing: -0.025em; max-width: none; margin-bottom: var(--s4); }
.hero--power .lede { font-size: clamp(1.1rem, 1.5vw, 1.35rem); line-height: 1.5; color: var(--ink-2); max-width: 32em; margin: 0 0 var(--s4); }
.hero--power .cursor { display: inline-block; width: 0.42em; height: 0.72em; margin-left: 0.12em; vertical-align: baseline; background: var(--green); animation: rp-blink 1.1s steps(1) infinite; }
@keyframes rp-blink { 50% { opacity: 0; } }
.hero--power .btn-row { margin: 0; }
.power-wrap { justify-self: center; width: clamp(180px, 19vw, 270px); }
.power-btn { display: block; width: 100%; padding: 0; border: 0; background: none; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.power-btn:focus-visible { outline: 2px solid var(--green); outline-offset: 10px; }
.hero-power { display: block; width: 100%; height: auto; overflow: visible; }
.hp-ring, .hp-bar { fill: none; stroke-width: 18; stroke-linecap: round; stroke-dasharray: 100; stroke-dashoffset: 0; transition: stroke 0.25s ease; }
.hp-ring { stroke: var(--ink); }
.hp-bar { stroke: var(--green); }
.power-btn:hover .hp-bar { stroke: var(--green-dark); }
/* on load: the ring draws itself, the bar drops in red, then the LED turns green */
@keyframes hp-draw { from { stroke-dashoffset: 100; } to { stroke-dashoffset: 0; } }
@keyframes hp-red { 0%, 62% { stroke: #C8402F; } 100% { stroke: var(--green); } }
.hero--power .hp-ring { animation: hp-draw 0.8s 0.15s cubic-bezier(.6,0,.2,1) both; }
.hero--power .hp-bar { animation: hp-draw 0.45s 0.75s ease-out both, hp-red 2.1s ease-in both; }
/* charging back up: green fills the grey symbol */
.hp-charge { fill: none; stroke: var(--green); stroke-width: 18; stroke-linecap: round; stroke-dasharray: 100; stroke-dashoffset: 100; opacity: 0; }
.hero--power.is-charging .hp-charge { opacity: 1; }
.hero--power.is-charging .hp-ring, .hero--power.is-charging .hp-bar { stroke: #BDB4A4; }
/* after the load animation, plain states take over (off = grey, charging, on) */
.hero--power.is-booted .hp-ring, .hero--power.is-booted .hp-bar { animation: none; }
.green-wave { position: fixed; inset: 0; z-index: 100; background: var(--green); pointer-events: none; }
/* switched off: text and symbol fade to grey; the page stays light */
.hero--power .hero-copy > * { transition: opacity 0.25s ease; }
.hero--power.is-off .hero-copy > * { opacity: 0.22; }
.hero--power.is-off .hp-ring, .hero--power.is-off .hp-bar { stroke: #BDB4A4; }
.hero--power.is-off .cursor { visibility: hidden; animation: none; }
.hero-flash { display: none; }
@media (prefers-reduced-motion: reduce) { .hero--power .hp-ring, .hero--power .hp-bar { animation: none; } }
@media (max-width: 860px) {
  .hero--power { padding: var(--s5) 0; }
  .hero--power .hero-boot { grid-template-columns: 1fr; gap: var(--s3); }
  .power-wrap { order: -1; justify-self: start; width: 64px; }
  .h1-br { display: none; }
}
@media (prefers-reduced-motion: reduce) { .hero--power .cursor { animation: none; } }

/* stat band: big paper number on near-black, kraft underline */
.stat-band { background: var(--ink); color: var(--paper); border: 0; padding: clamp(48px, 7vw, 96px) 0; }
.stat-band .wrap { display: block; }
.stat-band .stat-num { color: var(--paper); font-size: clamp(4.5rem, 13vw, 11rem); line-height: 0.9; letter-spacing: -0.03em; margin: 0 0 var(--s3); }
.stat-band .stat-lede { max-width: none; font-size: clamp(1.25rem, 2.2vw, 2rem); font-weight: 700; }
.stat-band .stat-link, .stat-band .stat-link:hover { color: var(--paper); text-decoration: underline; text-decoration-color: var(--kraft); text-decoration-thickness: 3px; text-underline-offset: 0.28em; }

/* No light-kraft fill: plain paper sections, white form */
.section--alt { background: var(--paper); }
.form-panel { background: #FFFFFF; border-color: var(--rule); }
.field input, .field select, .field textarea { background: #FFFFFF; border: 1px solid var(--rule); border-bottom-color: var(--ink-2); }
.form-status.is-ok { background: #FFFFFF; }
.fact-photo { display: block; margin-top: var(--s2); }
.fact-photo img { display: block; width: 100%; height: auto; border: 1px solid var(--rule); }

/* headings: no single word stranded on its own line */
h1, h2, h3 { text-wrap: balance; }

/* Donation form: thank-you panel shown after a successful send */
.form-thanks { position: relative; overflow: hidden; text-align: center; padding: var(--s5) var(--s2); }
.form-thanks > :not(canvas) { position: relative; z-index: 1; }
.form-thanks-rain { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.form-thanks:focus { outline: none; }
.form-thanks h3 { margin: 0 0 var(--s2); font-size: clamp(1.75rem, 4vw, 2.25rem); }
.form-thanks p { max-width: 34rem; margin: 0 auto var(--s1); color: var(--ink-2); }
.form-thanks .btn { margin-top: var(--s3); }
@media (prefers-reduced-motion: no-preference) {
  .form-thanks:not([hidden]) { animation: thanks-in 0.45s ease-out both; }
}
@keyframes thanks-in { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.confetti-canvas { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 1000; }

/* Form field errors: a small shipping-label style note under the field */
:root { --alert: #C8402F; --alert-text: #A3301F; }   /* the red from the power symbol; text shade is 6:1 on white */
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: var(--alert); border-bottom-width: 2px; }
.field.has-error input:focus, .field.has-error select:focus, .field.has-error textarea:focus { outline-color: var(--alert); }
.field-error {
  display: flex; align-items: flex-start; gap: 8px; margin: 8px 0 0;
  font: 500 0.85rem/1.4 var(--sans); color: var(--alert-text);
}
.field-error::before {
  content: "!"; flex: none; display: grid; place-items: center; width: 18px; height: 18px; margin-top: 1px;
  background: var(--alert); color: #FFFFFF; font: 700 0.75rem/1 var(--sans);
}
@media (prefers-reduced-motion: no-preference) {
  .field-error { animation: field-error-in 0.2s ease-out both; }
}
@keyframes field-error-in { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
/* Keep label, box and error lined up across each row of the form, even when one field shows an error */
@supports (grid-template-rows: subgrid) {
  .form .field { display: grid; grid-row: span 3; grid-template-rows: subgrid; row-gap: 0; align-content: start; }
  .form .field > label { align-self: end; }
  .form .field > input, .form .field > select { margin-top: 0; align-self: start; }
}
