@charset "UTF-8";
/* ==========================================================================
   EventControl — site stylesheet
   Swiss-modernist grid, ink on paper, signal amber accent.
   Single file, no build step. Sections:
     1. Tokens      2. Reset      3. Typography   4. Layout
     5. Header      6. Buttons    7. Components   8. Sections
     9. Forms      10. Footer    11. Utilities   12. Motion / print
   ========================================================================== */

/* 1. TOKENS ---------------------------------------------------------------- */

:root {
  /* Palette — light */
  --paper:        #fbfaf8;
  --surface:      #ffffff;
  --surface-2:    #f4f2ee;
  --ink:          #14181c;
  --ink-2:        #3d454e;
  --muted:        #646d76;
  --line:         #e2dfd8;
  --line-strong:  #c9c4ba;
  --accent:       #d2570c;   /* graphic fills only — mid-luminance, fails as a text bg */
  --accent-ink:   #a8430a;   /* accent as text on paper */
  --accent-btn:   #a8430a;   /* accent as a background behind --on-accent text */
  --accent-wash:  #fdf1e7;
  --on-accent:    #ffffff;

  /* Status — used only where it carries meaning */
  --st-red:    #c02b2b;
  --st-amber:  #b7791f;
  --st-green:  #2f7d4f;

  /* Type */
  --font-display: "Inter Tight", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-body:    "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-mono:    "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  --step--1: 0.8125rem;
  --step-0:  1.0625rem;
  --step-1:  1.1875rem;
  --step-2:  clamp(1.375rem, 1.2rem + 0.7vw, 1.625rem);
  --step-3:  clamp(1.75rem, 1.45rem + 1.3vw, 2.375rem);
  --step-4:  clamp(2.25rem, 1.7rem + 2.4vw, 3.5rem);
  --step-5:  clamp(2.75rem, 1.9rem + 3.8vw, 4.75rem);

  /* Space */
  --s-1: 0.375rem;  --s-2: 0.75rem;  --s-3: 1rem;    --s-4: 1.5rem;
  --s-5: 2rem;      --s-6: 3rem;     --s-7: 4.5rem;  --s-8: 7rem;

  --container: 1360px;
  --radius: 3px;
  --border: 1px solid var(--line);
  --ease: cubic-bezier(0.32, 0.72, 0.24, 1);
}

/* Palette — dark. Media query first, explicit attribute wins in both directions. */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #0c0f12;  --surface: #12171b;  --surface-2: #1a2027;
    --ink: #eceae5;    --ink-2: #b4bac1;    --muted: #838c95;
    --line: #242b32;   --line-strong: #39424b;
    --accent: #ff8a3d; --accent-ink: #ff9c57; --accent-btn: #ff8a3d; --accent-wash: #221812;
    --on-accent: #14181c;
    --st-red: #f07070; --st-amber: #e0b050; --st-green: #62c48c;
  }
}
:root[data-theme="dark"],
:root:not(.js) {
  color-scheme: dark;
  --paper: #0c0f12;  --surface: #12171b;  --surface-2: #1a2027;
  --ink: #eceae5;    --ink-2: #b4bac1;    --muted: #838c95;
  --line: #242b32;   --line-strong: #39424b;
  --accent: #ff8a3d; --accent-ink: #ff9c57; --accent-btn: #ff8a3d; --accent-wash: #221812;
  --on-accent: #14181c;
  --st-red: #f07070; --st-amber: #e0b050; --st-green: #62c48c;
}

:root[data-theme="light"] { color-scheme: light; }

/* 2. RESET ----------------------------------------------------------------- */

*, *::before, *::after { box-sizing: border-box; }
/* The `hidden` attribute must win over any display rule we set on a class
   (e.g. .calc__row is display:flex, which would otherwise override it). */
[hidden] { display: none !important; }
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  /* Anchor targets must clear the sticky header, or #modules lands underneath it. */
  scroll-padding-top: 5.5rem;
  /* `clip` rather than `hidden`: hidden on either axis forces the other axis to
     compute as `auto`, which turns the element into a scroll container and can
     break position:sticky and produce a second scrollbar. */
  overflow-x: clip;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 var(--step-0)/1.65 var(--font-body);
  font-feature-settings: "kern", "liga", "cv05";
  -webkit-font-smoothing: antialiased;
}
img, svg, video { max-width: 100%; height: auto; display: block; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: inherit; }
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 1px;
}
::selection { background: var(--accent); color: var(--on-accent); }

/* 3. TYPOGRAPHY ------------------------------------------------------------ */

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.022em;
  line-height: 1.08;
  margin: 0;
  text-wrap: balance;
}
h1 { font-size: var(--step-5); letter-spacing: -0.032em; }
h2 { font-size: var(--step-4); letter-spacing: -0.028em; }
h3 { font-size: var(--step-2); line-height: 1.2; }
h4 { font-size: var(--step-1); line-height: 1.3; letter-spacing: -0.012em; }
p  { margin: 0 0 var(--s-3); text-wrap: pretty; }
p:last-child { margin-bottom: 0; }

.lede {
  font-size: var(--step-2);
  line-height: 1.45;
  color: var(--ink-2);
  letter-spacing: -0.012em;
  max-width: 40ch;
}
.prose { max-width: 68ch; color: var(--ink-2); }
.prose h2 { font-size: var(--step-3); color: var(--ink); margin: var(--s-6) 0 var(--s-3); }
.prose h3 { font-size: var(--step-1); color: var(--ink); margin: var(--s-5) 0 var(--s-2); }
.prose ul, .prose ol { margin: 0 0 var(--s-3); padding-left: 1.15em; }
.prose li { margin-bottom: var(--s-1); }
.prose a { color: var(--accent-ink); text-underline-offset: 3px; }
.prose > :first-child { margin-top: 0; }

/* Mono eyebrow label with the amber tick */
.label {
  display: flex;
  align-items: center;
  gap: 0.6em;
  font: 500 var(--step--1)/1 var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.13em;
  color: var(--muted);
  /* Tight to the heading it introduces — an eyebrow belongs to its title,
     so it must sit closer to it than the title sits to anything else. */
  margin: 0 0 0.65rem;
}
.label::before {
  content: "";
  width: 9px; height: 9px;
  background: var(--accent);
  flex: none;
}
.mono { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }

/* 4. LAYOUT ---------------------------------------------------------------- */

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--s-4);
}
.section { padding-block: var(--s-8); }
.section--tight { padding-block: var(--s-7); }
.section--line { border-top: var(--border); }
.section--fill { background: var(--surface-2); }

.grid { display: grid; gap: var(--s-4); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

/* Asymmetric two-column split (form + sidebar, prose + figure) */
.split {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  gap: var(--s-7);
  align-items: start;
}
@media (max-width: 900px) { .split { grid-template-columns: 1fr; gap: var(--s-6); } }

/* Section head: title left, supporting text right — the core editorial rhythm */
.head {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: var(--s-4) var(--s-6);
  align-items: end;
  margin-bottom: var(--s-6);
}
/* Direct child only — the eyebrow is also a <p>, nested one level deeper, and
   a bare `.head p` would out-specify .label and flatten its bottom margin. */
.head > p { color: var(--ink-2); margin: 0; max-width: 46ch; }

@media (max-width: 900px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .head { grid-template-columns: 1fr; align-items: start; }
  :root { --s-8: 4.5rem; --s-7: 3.25rem; }
}
@media (max-width: 620px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .container { padding-inline: 1.25rem; }
}

/* 5. HEADER ---------------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: saturate(1.6) blur(12px);
  border-bottom: var(--border);
}
.site-header__inner {
  display: flex;
  align-items: center;
  gap: var(--s-4);
  height: 66px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.1rem;
  letter-spacing: -0.025em;
  text-decoration: none;
  margin-right: auto;
}
/* Inline SVG so it inherits currentColor and --accent, and therefore inverts
   correctly in dark mode without a second asset. */
.brand__mark {
  width: 23px;
  height: 23px;
  flex: none;
  display: block;
}

.nav { display: flex; align-items: center; gap: var(--s-1); }
.nav a {
  padding: 0.5rem 0.7rem;
  font-size: 0.95rem;
  font-weight: 450;
  color: var(--ink-2);
  text-decoration: none;
  border-radius: var(--radius);
  transition: color 0.16s var(--ease), background 0.16s var(--ease);
}
.nav a:hover { color: var(--ink); background: var(--surface-2); }
.nav a[aria-current="page"] { color: var(--ink); font-weight: 550; }
.nav a[aria-current="page"]::after {
  content: "";
  display: block;
  height: 2px;
  background: var(--accent);
  margin-top: 3px;
}

.header-actions { display: flex; align-items: center; gap: var(--s-2); margin-left: var(--s-2); }

.theme-toggle {
  width: 34px; height: 34px;
  display: grid; place-items: center;
  background: none;
  border: var(--border);
  border-radius: var(--radius);
  cursor: pointer;
  color: var(--ink-2);
  transition: border-color 0.16s var(--ease), color 0.16s var(--ease);
}
.theme-toggle:hover { color: var(--ink); border-color: var(--line-strong); }
.theme-toggle svg { width: 16px; height: 16px; }
/* The icon shows the theme you'd switch TO, matching the button's aria-label.
   Light (default): moon. Dark: sun. Explicit data-theme always wins. */
.theme-toggle .i-moon { display: block; }
.theme-toggle .i-sun  { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-toggle .i-moon { display: none; }
  :root:not([data-theme="light"]) .theme-toggle .i-sun  { display: block; }
}
:root[data-theme="dark"] .theme-toggle .i-moon { display: none; }
:root[data-theme="dark"] .theme-toggle .i-sun  { display: block; }
:root[data-theme="light"] .theme-toggle .i-moon { display: block; }
:root[data-theme="light"] .theme-toggle .i-sun  { display: none; }

.nav-toggle { display: none; }

@media (max-width: 940px) {
  .nav-toggle {
    display: grid; place-items: center;
    width: 38px; height: 38px;
    background: none; border: var(--border); border-radius: var(--radius);
    cursor: pointer;
  }
  .nav-toggle svg { width: 18px; height: 18px; }
  .nav {
    position: fixed;
    inset: 66px 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--paper);
    border-bottom: var(--border);
    padding: var(--s-2) var(--s-4) var(--s-4);
    transform: translateY(-8px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.18s var(--ease), transform 0.18s var(--ease), visibility 0.18s;
  }
  .nav[data-open="true"] { opacity: 1; transform: none; visibility: visible; }
  .nav a { padding: 0.8rem 0; border-bottom: var(--border); font-size: 1.05rem; border-radius: 0; }
  .nav a[aria-current="page"]::after { display: none; }
  .nav a[aria-current="page"] { color: var(--accent-ink); }
  .header-actions .btn { display: none; }
}

/* 6. BUTTONS --------------------------------------------------------------- */

.btn {
  --btn-bg: var(--ink);
  --btn-fg: var(--paper);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55em;
  padding: 0.72rem 1.25rem;
  background: var(--btn-bg);
  color: var(--btn-fg);
  border: 1px solid var(--btn-bg);
  border-radius: var(--radius);
  font-size: 0.975rem;
  font-weight: 550;
  letter-spacing: -0.006em;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.14s var(--ease), background 0.16s var(--ease),
              border-color 0.16s var(--ease), color 0.16s var(--ease);
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: none; }
.btn--accent { --btn-bg: var(--accent-btn); --btn-fg: var(--on-accent); }
.btn--ghost {
  --btn-bg: transparent;
  --btn-fg: var(--ink);
  border-color: var(--line-strong);
}
.btn--ghost:hover { border-color: var(--ink); background: var(--surface-2); }
.btn--sm { padding: 0.5rem 0.9rem; font-size: 0.9rem; }
.btn--lg { padding: 0.9rem 1.6rem; font-size: 1.05rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: var(--s-2); }

/* Text link that reads as an action */
.arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  font-weight: 550;
  color: var(--accent-ink);
  text-decoration: none;
  font-size: 0.975rem;
}
.arrow::after { content: "→"; transition: transform 0.16s var(--ease); }
.arrow:hover::after { transform: translateX(3px); }

/* 7. COMPONENTS ------------------------------------------------------------ */

/* Card */
.card {
  background: var(--surface);
  border: var(--border);
  border-radius: var(--radius);
  padding: var(--s-4);
  transition: border-color 0.18s var(--ease), transform 0.18s var(--ease);
}
.card h3, .card h4 { margin-bottom: var(--s-2); }
/* Cards sit under an h2, so their titles are h3 for correct document outline —
   this keeps them at the smaller visual size regardless. */
.card h3, .h-sm {
  font-size: var(--step-1);
  line-height: 1.3;
  letter-spacing: -0.012em;
}
.h-sm { font-family: var(--font-display); font-weight: 600; }
.card p { color: var(--ink-2); font-size: 0.9875rem; margin: 0; }
.card--hover:hover { border-color: var(--line-strong); transform: translateY(-2px); }

/* Numbered feature — the Swiss index motif */
.numbered { position: relative; padding-top: var(--s-4); border-top: 2px solid var(--ink); }
.numbered__n {
  font: 500 var(--step--1)/1 var(--font-mono);
  color: var(--accent-ink);
  letter-spacing: 0.08em;
  display: block;
  margin-bottom: var(--s-2);
}
.numbered h3 { font-size: var(--step-1); margin-bottom: var(--s-2); }
.numbered p { color: var(--ink-2); font-size: 0.9875rem; margin: 0; }

/* Stat strip */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  overflow: hidden;
}
.stat { padding: var(--s-4); border-right: var(--border); }
.stat:last-child { border-right: 0; }
.stat__v {
  font: 500 var(--step-3)/1 var(--font-mono);
  letter-spacing: -0.03em;
  display: block;
  margin-bottom: 0.35rem;
}
.stat__k { font-size: 0.9rem; color: var(--muted); }
@media (max-width: 760px) {
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(2n) { border-right: 0; }
  .stat:nth-child(-n+2) { border-bottom: var(--border); }
}

/* Spec list — key/value rows in mono */
.spec { border-top: var(--border); }
.spec__row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr);
  gap: var(--s-3);
  padding: var(--s-3) 0;
  border-bottom: var(--border);
  align-items: baseline;
}
.spec__k {
  font: 500 var(--step--1)/1.4 var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
}
/* Capped independently of the container: the value column is 1.6fr, so on a
   wide monitor it would otherwise run to 110+ characters a line. */
.spec__v { color: var(--ink-2); font-size: 0.975rem; max-width: 68ch; }
@media (max-width: 620px) { .spec__row { grid-template-columns: 1fr; gap: var(--s-1); } }

/* Animated shared log — a stylised illustration of the product's log, not a
   screenshot. Fixed height so nothing reflows as entries commit. */
.log {
  background: var(--surface);
  border: var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.log__bar {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.7rem var(--s-3);
  border-bottom: var(--border);
  background: var(--surface-2);
  font: 500 0.75rem/1 var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
}
.log__dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--st-green);
  flex: none;
  box-shadow: 0 0 0 0 color-mix(in srgb, var(--st-green) 70%, transparent);
  animation: log-pulse 2.4s var(--ease) infinite;
}
@keyframes log-pulse {
  0%   { box-shadow: 0 0 0 0 color-mix(in srgb, var(--st-green) 60%, transparent); }
  70%  { box-shadow: 0 0 0 6px color-mix(in srgb, var(--st-green) 0%, transparent); }
  100% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--st-green) 0%, transparent); }
}
.log__ref { color: var(--accent-ink); }
.log__title { color: var(--ink-2); text-transform: none; letter-spacing: 0; font-size: 0.8125rem; }
.log__status {
  margin-left: auto;
  padding: 0.2rem 0.45rem;
  border: 1px solid currentColor;
  border-radius: 2px;
  font-size: 0.6875rem;
  color: var(--st-amber);
  transition: color 0.3s var(--ease);
}
.log__status[data-state="closed"] { color: var(--st-green); }

/* Role colours mirror the application's own --ec-role-* scale so the site and
   the product read as one system. */
.log {
  --r-90: #a8430a;   /* event manager */
  --r-70: #856812;   /* supervisor */
  --r-50: #1f5f8b;   /* operator */
  --r-remote: #1f4d73;
  --r-check: #059669;
  --r-check-bg: #ecfdf5;
  --r-check-fg: #064e3b;
}
:root[data-theme="dark"] .log {
  --r-90: #ff9c57; --r-70: #e0b050; --r-50: #7ab8e8;
  --r-remote: #9fcdf0; --r-check: #34d399;
  --r-check-bg: #0e2a20; --r-check-fg: #a7f3d0;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .log {
    --r-90: #ff9c57; --r-70: #e0b050; --r-50: #7ab8e8;
    --r-remote: #9fcdf0; --r-check: #34d399;
    --r-check-bg: #0e2a20; --r-check-fg: #a7f3d0;
  }
}

/* Entries are bottom-anchored: new ones appear at the base and push older
   ones up out of view, the way a live log actually behaves. */
.log__entries {
  height: 244px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
  mask-image: linear-gradient(to bottom, transparent 0, #000 30px);
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 30px);
}

/* Three columns, as in the application: timestamp | body | author. */
.log__row {
  flex: none;
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr) 84px;
  gap: 0.5rem;
  align-items: start;
  padding: 0.4rem var(--s-3);
  border-bottom: var(--border);
}
.log__t {
  font: 400 0.6875rem/1.45 var(--font-mono);
  color: var(--muted);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.log__msg {
  margin: 0;
  font-size: 0.75rem;
  line-height: 1.45;
  font-weight: 700;
  color: var(--ink);
  overflow-wrap: anywhere;
}
.log__author {
  font: 400 0.625rem/1.25 var(--font-mono);
  text-align: right;
  color: var(--r-50);
}
.log__author b { display: block; font-weight: 700; }
.log__author span { opacity: 0.8; }
.log__row[data-level="70"] .log__author { color: var(--r-70); }
.log__row[data-level="90"] .log__author { color: var(--r-90); }

/* Token-link submissions from people with no account */
.log__row--remote .log__author { color: var(--r-remote); }
.log__row--remote .log__msg { color: var(--r-remote); }

/* System-generated entries */
.log__row--system .log__msg,
.log__row--system .log__author { font-style: italic; font-weight: 400; color: var(--muted); }

/* Checklist completions */
.log__row--check {
  background: var(--r-check-bg);
  box-shadow: inset 3px 0 0 0 var(--r-check);
}
.log__row--check .log__msg { color: var(--r-check-fg); font-weight: 600; }
.log__row--check .log__author { color: var(--r-check); }
.log__tick { color: var(--r-check); margin-right: 0.3em; }

.log__row--in { animation: log-in 0.34s var(--ease) both; }
@keyframes log-in {
  from { opacity: 0; transform: translateY(7px); }
  to   { opacity: 1; transform: none; }
}
/* Brief highlight when an entry lands from elsewhere */
.log__row--in.log__row--remote { animation: log-in 0.34s var(--ease) both, log-flash 1.6s var(--ease) both; }
@keyframes log-flash {
  0%, 40% { background: color-mix(in srgb, var(--accent) 13%, transparent); }
  100%    { background: transparent; }
}

/* Checklist progress strip — appears once a checklist is opened */
.log__checklist {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.3rem var(--s-3);
  align-items: center;
  padding: 0.5rem var(--s-3);
  border-top: var(--border);
  background: var(--r-check-bg);
  box-shadow: inset 3px 0 0 0 var(--r-check);
  font-family: var(--font-mono);
  overflow: hidden;
}
.log__checklist[hidden] { display: none; }
.log__checklist-name {
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  color: var(--r-check-fg);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.log__checklist-count {
  font-size: 0.625rem;
  font-weight: 700;
  color: var(--r-check);
  font-variant-numeric: tabular-nums;
}
.log__checklist-item {
  grid-column: 1 / -1;
  font-size: 0.625rem;
  color: var(--r-check-fg);
  opacity: 0.85;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.log__bar-fill {
  grid-column: 1 / -1;
  height: 2px;
  background: color-mix(in srgb, var(--r-check) 25%, transparent);
  border-radius: 1px;
  overflow: hidden;
}
.log__bar-fill i {
  display: block;
  height: 100%;
  width: 0;
  background: var(--r-check);
  transition: width 0.5s var(--ease);
}

.log__composer {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem var(--s-3);
  border-top: var(--border);
  background: var(--surface);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  min-height: 40px;
}
.log__prompt {
  color: var(--muted);
  flex: none;
  font-weight: 700;
}
.log__field {
  flex: 1 1 auto;
  min-width: 0;
  color: var(--ink);
  display: flex;
  align-items: center;
  overflow: hidden;
  white-space: nowrap;
  text-transform: uppercase;   /* the application upper-cases as you type */
  font-weight: 700;
}
.log__field:empty::before,
.log__field[data-empty="true"]::before {
  content: "TYPE LOG ENTRY, ENTER TO SUBMIT";
  color: var(--muted);
  font-weight: 400;
}
.log__caret {
  display: inline-block;
  width: 2px;
  height: 1.05em;
  background: var(--accent);
  margin-left: 1px;
  flex: none;
  animation: log-caret 1.06s steps(1) infinite;
}
@keyframes log-caret { 0%, 50% { opacity: 1; } 50.01%, 100% { opacity: 0; } }
.log__composer[data-busy="true"] .log__caret { animation: none; opacity: 1; }
.log__enter {
  flex: none;
  font-size: 0.75rem;
  color: var(--muted);
  border: var(--border);
  border-radius: 2px;
  padding: 0.1rem 0.3rem;
  transition: color 0.15s var(--ease), border-color 0.15s var(--ease);
}
.log__composer[data-send="true"] .log__enter { color: var(--accent); border-color: var(--accent); }
.log__note {
  font: 400 0.75rem/1.4 var(--font-body);
  color: var(--muted);
  padding: 0.55rem var(--s-3);
  border-top: var(--border);
  background: var(--surface);
  margin: 0;
}

@media (prefers-reduced-motion: reduce) {
  .log__dot, .log__caret, .log__row--in, .log__row--remote .log__msg { animation: none; }
  .log__caret { opacity: 1; }
}

/* Log tape — stylised illustration of the shared incident log, not a screenshot */
.tape {
  background: var(--surface);
  border: var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  font-family: var(--font-mono);
  font-size: 0.8125rem;
}
.tape__bar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem var(--s-3);
  border-bottom: var(--border);
  background: var(--surface-2);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
}
.tape__dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--st-green);
  flex: none;
}
.tape__rows { padding: 0.35rem 0; }
.tape__row {
  display: grid;
  grid-template-columns: auto auto 1fr;
  gap: 0.85rem;
  align-items: baseline;
  padding: 0.42rem var(--s-3);
  border-bottom: 1px dashed var(--line);
  white-space: nowrap;
}
.tape__row:last-child { border-bottom: 0; }
.tape__t { color: var(--muted); font-variant-numeric: tabular-nums; }
.tape__tag {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  padding: 0.1rem 0.4rem;
  border: 1px solid currentColor;
  border-radius: 2px;
}
.tape__tag--med { color: var(--st-red); }
.tape__tag--lost { color: var(--st-amber); }
.tape__tag--acc { color: var(--st-green); }
.tape__tag--wel { color: var(--accent-ink); }
.tape__msg {
  color: var(--ink-2);
  overflow: hidden;
  text-overflow: ellipsis;
}
.tape__note {
  font: 400 0.75rem/1.4 var(--font-body);
  color: var(--muted);
  padding: 0.55rem var(--s-3);
  border-top: var(--border);
  background: var(--surface-2);
}

/* ---- Entity link chart (3D) ----------------------------------------------
   Geometry is driven entirely by assets/js/netgraph3d.js, which writes the
   transform ATTRIBUTE on each node and the opacity inline. So nothing here may
   animate `transform` or `opacity` on those elements — a CSS transform beats
   the attribute and would collapse every node onto the origin. */
.netgraph-figure {
  margin: 0;
  /* Palette lives here, not on .netgraph — the legend is a SIBLING of the svg,
     so anything scoped to .netgraph is invisible to the legend swatches. */
  --ng-incident: var(--accent);
  --ng-person:   #1f5f8b;
  --ng-vehicle:  #856812;
  --ng-location: #059669;
  --ng-object:   #6e7781;
}
:root[data-theme="dark"] .netgraph-figure,
:root:not(.js) .netgraph-figure {
  --ng-person: #7ab8e8; --ng-vehicle: #e0b050;
  --ng-location: #34d399; --ng-object: #939ba3;
}
.netgraph {
  width: 100%;
  height: auto;
  display: block;
  /* A hairline frame for grounding, but no fill — a radial wash was tried and
     terminated in a hard rectangular edge, because a background paints to the
     element's box rather than fading out. The constellation is verified to stay
     inside the viewBox across a full rotation, so nothing crosses the border. */
  background: none;
  border: var(--border);
  border-radius: var(--radius);
}

.ng-line { stroke: var(--line-strong); stroke-width: 1.2; }
.ng-edge { transition: opacity 0.2s linear; }
.ng-edgelabel {
  fill: var(--muted);
  font: 500 9px/1 var(--font-mono);
  letter-spacing: 0.1em;
  text-anchor: middle;
  dominant-baseline: middle;
}
.ng-dot { fill: color-mix(in srgb, var(--c) 18%, var(--surface)); stroke: var(--c); stroke-width: 1.5; }
.ng-core { fill: var(--c); }
.ng-halo { fill: none; stroke: var(--c); stroke-width: 1; opacity: 0.3; }
.ng-node--incident .ng-dot { stroke-width: 2; }
.ng-label {
  fill: var(--ink);
  font: 600 11px/1 var(--font-mono);
  letter-spacing: 0.05em;
  text-anchor: middle;
}
.ng-sub {
  fill: var(--muted);
  font: 400 8.5px/1 var(--font-mono);
  letter-spacing: 0.09em;
  text-anchor: middle;
}
/* Fade the whole thing up once the script has taken over, so the jump from the
   static frame-0 projection into motion isn't visible. */
.netgraph { opacity: 1; }
.netgraph.is-3d .ng-nodes, .netgraph.is-3d .ng-edges { transition: none; }

.netgraph-legend {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.1rem;
  margin: var(--s-3) 0 0;
  padding: 0;
  font: 500 0.6875rem/1 var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
}
.netgraph-legend li { display: flex; align-items: center; gap: 0.4rem; }
.ng-key,
.sm-key { width: 9px; height: 9px; border-radius: 50%; background: var(--c); flex: none; }
.netgraph-figure figcaption {
  margin-top: var(--s-2);
  font-size: 0.8125rem;
  color: var(--muted);
  max-width: 60ch;
}

/* Real screenshots. The app is dark-chrome, so a hairline border and a soft
   shadow stop it floating on the light page without boxing it in. */
.shot-img {
  width: 100%;
  height: auto;
  border: var(--border);
  border-radius: var(--radius);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06), 0 12px 28px -12px rgba(0, 0, 0, 0.22);
  background: var(--surface-2);
}
:root[data-theme="dark"] .shot-img { box-shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 12px 28px -14px rgba(0, 0, 0, 0.6); }

/* Screenshot placeholder — swap for a real image, keep the dimensions */
.shot {
  position: relative;
  display: grid;
  place-items: center;
  text-align: center;
  padding: var(--s-5) var(--s-4);
  border: 1.5px dashed var(--line-strong);
  border-radius: var(--radius);
  background:
    repeating-linear-gradient(
      -45deg,
      transparent 0 11px,
      color-mix(in srgb, var(--line) 45%, transparent) 11px 12px
    ),
    var(--surface);
  color: var(--muted);
  min-height: 220px;
}
.shot__inner { max-width: 46ch; }
.shot__badge {
  display: inline-block;
  font: 500 0.6875rem/1 var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--on-accent);
  background: var(--accent-btn);
  padding: 0.35rem 0.55rem;
  border-radius: 2px;
  margin-bottom: var(--s-3);
}
.shot__title {
  display: block;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--step-1);
  color: var(--ink-2);
  letter-spacing: -0.015em;
  margin-bottom: 0.4rem;
}
.shot__desc { font-size: 0.9rem; line-height: 1.5; margin-bottom: var(--s-3); }
.shot__dims {
  font: 500 0.8125rem/1 var(--font-mono);
  color: var(--ink-2);
  border: var(--border);
  background: var(--surface-2);
  padding: 0.4rem 0.6rem;
  border-radius: 2px;
  display: inline-block;
}

/* Accordion (FAQ) */
.faq { border-top: var(--border); }
.faq details { border-bottom: var(--border); }
.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-3);
  padding: var(--s-4) 0;
  cursor: pointer;
  list-style: none;
  font-family: var(--font-display);
  font-weight: 550;
  font-size: var(--step-1);
  letter-spacing: -0.015em;
  transition: color 0.16s var(--ease);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--accent-ink); }
.faq summary::after {
  content: "+";
  font-family: var(--font-mono);
  font-size: 1.35rem;
  line-height: 1;
  color: var(--accent);
  flex: none;
  transition: transform 0.2s var(--ease);
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq__body { padding: 0 0 var(--s-4); color: var(--ink-2); max-width: 70ch; }
.faq__body p { font-size: 0.9875rem; }

/* Pricing */
.tier-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.975rem;
}
.tier-table th, .tier-table td {
  text-align: left;
  padding: var(--s-3);
  border-bottom: var(--border);
}
.tier-table thead th {
  font: 500 var(--step--1)/1.3 var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  border-bottom: 2px solid var(--ink);
}
.tier-table td:not(:first-child) { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
.tier-table tbody tr:hover { background: var(--surface-2); }
.tier-table__name { font-weight: 600; }

.calc {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.85fr);
  gap: 0;
  border: var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface);
}
.calc__controls { padding: var(--s-5); }
.calc__out {
  padding: var(--s-5);
  background: var(--ink);
  color: var(--paper);
  border-left: var(--border);
}
.calc__field { margin-bottom: var(--s-5); }
.calc__field:last-child { margin-bottom: 0; }
.calc__legend {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--s-3);
  margin-bottom: var(--s-2);
}
.calc__legend label { font-weight: 550; font-size: 0.975rem; }
.calc__val {
  font: 500 var(--step-1)/1 var(--font-mono);
  font-variant-numeric: tabular-nums;
  color: var(--accent-ink);
}
.calc__ticks {
  display: flex;
  justify-content: space-between;
  font: 400 0.75rem/1 var(--font-mono);
  color: var(--muted);
  margin-top: 0.5rem;
}
.calc__total {
  font: 500 var(--step-5)/1 var(--font-mono);
  letter-spacing: -0.04em;
  display: block;
  margin: 0.25rem 0 var(--s-4);
}
.calc__tier {
  font: 500 var(--step--1)/1 var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--accent);
}
.calc__rows { border-top: 1px solid rgba(255, 255, 255, 0.16); }
.calc__row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--s-3);
  padding: 0.7rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
  font-size: 0.9375rem;
}
.calc__row span:last-child { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
.calc__row--total { font-weight: 600; }
.calc__note { font-size: 0.8125rem; color: rgba(255, 255, 255, 0.62); margin-top: var(--s-3); }
:root[data-theme="dark"] .calc__out { background: var(--surface-2); color: var(--ink); }
:root[data-theme="dark"] .calc__rows,
:root[data-theme="dark"] .calc__row { border-color: var(--line); }
:root[data-theme="dark"] .calc__note { color: var(--muted); }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .calc__out { background: var(--surface-2); color: var(--ink); }
  :root:not([data-theme="light"]) .calc__rows,
  :root:not([data-theme="light"]) .calc__row { border-color: var(--line); }
  :root:not([data-theme="light"]) .calc__note { color: var(--muted); }
}
@media (max-width: 860px) {
  .calc { grid-template-columns: 1fr; }
  .calc__out { border-left: 0; border-top: var(--border); }
}

/* Range input */
input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 3px;
  background: var(--line-strong);
  border-radius: 2px;
  cursor: pointer;
}
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 20px; height: 20px;
  border-radius: 50%;
  background: var(--accent);
  border: 2px solid var(--surface);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.25);
  cursor: grab;
}
input[type="range"]::-moz-range-thumb {
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--accent);
  border: 2px solid var(--surface);
  cursor: grab;
}

/* Checkbox row */
.check {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  cursor: pointer;
  font-size: 0.975rem;
}
.check input { width: 18px; height: 18px; accent-color: var(--accent); margin-top: 0.15rem; flex: none; cursor: pointer; }

/* Callout */
.callout {
  border-left: 3px solid var(--accent);
  background: var(--accent-wash);
  padding: var(--s-4);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-size: 0.9875rem;
  color: var(--ink-2);
}

/* Tick list */
.ticks { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s-2); }
.ticks li { display: flex; gap: 0.65rem; align-items: flex-start; color: var(--ink-2); font-size: 0.9875rem; }
.ticks li::before {
  content: "";
  width: 7px; height: 7px;
  margin-top: 0.55em;
  flex: none;
  background: var(--accent);
}

/* 8. SECTIONS -------------------------------------------------------------- */

/* Hero with a photographic background (homepage only).
   The section goes permanently dark in BOTH themes — a photo can't carry
   light-theme ink text at any usable contrast, and a scrim strong enough to
   try would hide the image anyway. So: dark band, light text, always. */
.hero--media {
  position: relative;
  isolation: isolate;
  background: #0b0e11;
  border-bottom: var(--border);
}
.hero--media::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background-image: image-set(
    url("../img/hero-1920.webp") 1x,
    url("../img/hero-1920.webp") 2x);
  background-size: cover;
  background-position: center 42%;
  /* Desaturated and dimmed at source so the scrim does less work */
  filter: grayscale(0.35) brightness(0.55) contrast(1.05);
}
/* Two-stop scrim: heavy on the left where the text sits, lighter to the right
   so the photograph is still legible as an image rather than a dark smear. */
.hero--media::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(100deg,
      rgba(11, 14, 17, 0.94) 0%,
      rgba(11, 14, 17, 0.86) 38%,
      rgba(11, 14, 17, 0.62) 70%,
      rgba(11, 14, 17, 0.72) 100%),
    linear-gradient(to bottom,
      rgba(11, 14, 17, 0.55) 0%,
      rgba(11, 14, 17, 0.10) 30%,
      rgba(11, 14, 17, 0.45) 100%);
}
.hero--media .label { color: #b9c0c7; }
.hero--media h1 { color: #ffffff; }
.hero--media .lede { color: rgba(255, 255, 255, 0.82); }
.hero--media .btn { --btn-bg: #ffffff; --btn-fg: #14181c; border-color: #ffffff; }
.hero--media .btn--ghost {
  --btn-bg: transparent;
  --btn-fg: #ffffff;
  border-color: rgba(255, 255, 255, 0.45);
}
.hero--media .btn--ghost:hover { border-color: #fff; background: rgba(255, 255, 255, 0.1); }
/* The log panel sits on the photo, so it needs its own solid ground */
.hero--media .log {
  background: rgba(18, 23, 27, 0.94);
  backdrop-filter: blur(6px);
  border-color: rgba(255, 255, 255, 0.14);
  box-shadow: 0 24px 60px -24px rgba(0, 0, 0, 0.85);
}
.hero--media .log__bar,
.hero--media .log__composer { background: rgba(255, 255, 255, 0.04); }
.hero--media .log__note { background: transparent; }
.hero--media .log__row { border-color: rgba(255, 255, 255, 0.09); }
.hero--media .log__msg { color: #eceae5; }
.hero--media .log__t,
.hero--media .log__note,
.hero--media .log__prompt { color: #98a1a9; }
.hero--media .log { --r-90: #ff9c57; --r-70: #e0b050; --r-50: #7ab8e8;
                    --r-remote: #9fcdf0; --r-check: #34d399;
                    --r-check-bg: #0e2a20; --r-check-fg: #a7f3d0; }

@media (max-width: 700px) {
  /* On a phone the photo is mostly hidden behind text anyway — drop to the
     smaller file rather than shipping 1920px to a 390px screen. */
  .hero--media::before {
    background-image: url("../img/hero-1100.webp");
  }
}

/* Hero */
.hero { padding-block: var(--s-8) var(--s-7); }
.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: var(--s-6);
  align-items: center;
}
.hero h1 { margin-bottom: var(--s-4); }
.hero .lede { max-width: 46ch; margin-bottom: var(--s-5); }
@media (max-width: 940px) { .hero__grid { grid-template-columns: 1fr; } }

/* Page header for interior pages */
.page-head { padding-block: var(--s-7) var(--s-6); border-bottom: var(--border); }
.page-head h1 { font-size: var(--step-4); margin-bottom: var(--s-3); }
.page-head .lede { max-width: 56ch; }

/* Big CTA band */
.cta-band {
  background: var(--ink);
  color: var(--paper);
  padding-block: var(--s-7);
}
.cta-band h2 { color: var(--paper); margin-bottom: var(--s-3); }
.cta-band p { color: rgba(255, 255, 255, 0.72); max-width: 48ch; }
.cta-band .btn--ghost { --btn-fg: var(--paper); border-color: rgba(255, 255, 255, 0.35); }
.cta-band .btn--ghost:hover { border-color: var(--paper); background: rgba(255, 255, 255, 0.08); }
.cta-band__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) auto;
  gap: var(--s-5);
  align-items: center;
}
@media (max-width: 800px) { .cta-band__grid { grid-template-columns: 1fr; } }
:root[data-theme="dark"] .cta-band { background: var(--surface-2); color: var(--ink); }
:root[data-theme="dark"] .cta-band h2 { color: var(--ink); }
:root[data-theme="dark"] .cta-band p { color: var(--ink-2); }
:root[data-theme="dark"] .cta-band .btn--ghost { --btn-fg: var(--ink); border-color: var(--line-strong); }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .cta-band { background: var(--surface-2); color: var(--ink); }
  :root:not([data-theme="light"]) .cta-band h2 { color: var(--ink); }
  :root:not([data-theme="light"]) .cta-band p { color: var(--ink-2); }
  :root:not([data-theme="light"]) .cta-band .btn--ghost { --btn-fg: var(--ink); border-color: var(--line-strong); }
}

/* 9. FORMS ----------------------------------------------------------------- */

/* Vertical gap between rows is deliberately larger than the horizontal gap
   within a row, so paired fields read as a pair rather than as a loose grid. */
.form { display: grid; gap: var(--s-5); }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-4); align-items: start; }
@media (max-width: 620px) { .form__row { grid-template-columns: 1fr; gap: var(--s-5); } }
.field { display: grid; gap: 0.45rem; align-content: start; }
/* Grouped fields: the legend is an eyebrow, so it needs a little more air
   beneath it than a plain field label, and separation from the row above. */
.form__group { border: 0; padding: 0; margin: 0; }
.form__group > .label { margin-bottom: var(--s-3); }
.form__group .form__row + .field,
.form__group .field + .form__row { margin-top: var(--s-4); }

.field label { font-weight: 550; font-size: 0.9375rem; }
.field label .req { color: var(--accent-ink); }
.field .hint { font-size: 0.8125rem; color: var(--muted); }
.field input, .field select, .field textarea {
  width: 100%;
  padding: 0.7rem 0.85rem;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  transition: border-color 0.16s var(--ease), box-shadow 0.16s var(--ease);
}
.field textarea { resize: vertical; min-height: 140px; line-height: 1.6; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 22%, transparent);
}
.field[data-invalid="true"] input,
.field[data-invalid="true"] textarea,
.field[data-invalid="true"] select { border-color: var(--st-red); }
.field__err { font-size: 0.8125rem; color: var(--st-red); display: none; }
.field[data-invalid="true"] .field__err { display: block; }

/* Honeypot — hidden from people, visible to naive bots */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form-status { padding: var(--s-4); border-radius: var(--radius); font-size: 0.9375rem; display: none; }
.form-status[data-state="ok"] {
  display: block;
  background: color-mix(in srgb, var(--st-green) 12%, transparent);
  border: 1px solid color-mix(in srgb, var(--st-green) 45%, transparent);
}
.form-status[data-state="err"] {
  display: block;
  background: color-mix(in srgb, var(--st-red) 10%, transparent);
  border: 1px solid color-mix(in srgb, var(--st-red) 40%, transparent);
}

/* 10. FOOTER --------------------------------------------------------------- */

.site-footer {
  border-top: var(--border);
  padding-block: var(--s-6) var(--s-5);
  background: var(--surface);
}
.site-footer__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr));
  gap: var(--s-5);
  margin-bottom: var(--s-6);
}
.site-footer h5 {
  font: 500 var(--step--1)/1 var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.13em;
  color: var(--muted);
  margin: 0 0 var(--s-3);
}
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.55rem; }
.site-footer a { color: var(--ink-2); text-decoration: none; font-size: 0.9375rem; }
.site-footer a:hover { color: var(--accent-ink); }
.site-footer__blurb { color: var(--muted); font-size: 0.9375rem; max-width: 34ch; margin-top: var(--s-3); }
.site-footer__base {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-3) var(--s-5);
  justify-content: space-between;
  padding-top: var(--s-4);
  border-top: var(--border);
  font-size: 0.875rem;
  color: var(--muted);
}
@media (max-width: 860px) { .site-footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .site-footer__grid { grid-template-columns: 1fr; } }

/* Placeholder marker — anything still needing real content from the client */
.todo {
  background: color-mix(in srgb, var(--st-amber) 18%, transparent);
  border-bottom: 1px dashed var(--st-amber);
  padding: 0 0.2em;
  cursor: help;
}

/* 11. UTILITIES ------------------------------------------------------------ */

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--ink);
  color: var(--paper);
  padding: 0.75rem 1.25rem;
  z-index: 200;
  text-decoration: none;
}
.skip:focus { left: 0; }
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.muted { color: var(--muted); }
.center { text-align: center; }
.mt-4 { margin-top: var(--s-4); }
.mt-5 { margin-top: var(--s-5); }
.mt-6 { margin-top: var(--s-6); }
.mb-4 { margin-bottom: var(--s-4); }
.mb-5 { margin-bottom: var(--s-5); }
.mb-6 { margin-bottom: var(--s-6); }
.narrow { max-width: 72ch; }

/* 12. MOTION / PRINT ------------------------------------------------------- */

/* Visible by default so content survives JS failure / crawlers.
   Only the .js flag (set inline in <head>) opts into the animation. */
.js .reveal {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.42s var(--ease), transform 0.42s var(--ease);
}
.js .reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}

@media print {
  .site-header, .site-footer, .cta-band, .nav-toggle, .theme-toggle { display: none !important; }
  body { background: #fff; color: #000; }
  .shot { border: 1px solid #999; }
  a[href^="http"]::after { content: " (" attr(href) ")"; font-size: 0.8em; color: #555; }
}
