/* Allward base styles. Shared by every page.
   Three voices: wide grotesque for the company, mono for the record, serif for the story.
   Witness orange (--mark) is for the mark and nothing else. Square corners. No gradients. */
:root {
  --ground: #eceeed; --plate-a: #e3e6e4; --plate-b: #d8dcda; --paper: #f8f9f8; --ink: #111a18; --ink-2: #4a5751; --hair: #b4bcb8;
  --mark: #ff5a1f; --deep: #111a18; --deep-2: #1a2521; --on-deep: #eef1ef; --on-deep-2: #a3b0aa; --deep-hair: #ffffff24;
  --wide: "Archivo", "Arial Black", Arial, sans-serif; --mono: "DM Mono", ui-monospace, Consolas, monospace; --serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  --pad: clamp(20px, 4.4vw, 68px); --gut: clamp(12px, 2vw, 28px);
  --ease: cubic-bezier(0.2, 0.9, 0.25, 1); /* fast start, firm stop, no bounce */
  color-scheme: light;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body { margin: 0; background: var(--ground); color: var(--ink); font-family: var(--wide); font-size: 17px; line-height: 1.5; -webkit-font-smoothing: antialiased; }
h1, h2, h3, h4, p, ol, ul, dl, dd, figure, table, blockquote { margin: 0; } ol, ul { padding: 0; list-style: none; }
h1, h2 { font-stretch: 112%; font-weight: 800; letter-spacing: -0.02em; text-wrap: balance; }
h1 { font-size: clamp(2.6rem, 7.4vw, 7rem); line-height: 0.93; }
h2 { font-size: clamp(2rem, 4.4vw, 4rem); line-height: 0.98; }
h3 { font-stretch: 112%; font-weight: 700; font-size: 1.2rem; line-height: 1.15; }
p { max-width: 60ch; }
a { color: inherit; text-underline-offset: 4px; }
img, svg { max-width: 100%; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
.skip { position: absolute; left: -999px; top: 0; background: var(--ink); color: var(--ground); padding: 10px 14px; z-index: 100; } .skip:focus { left: 8px; top: 8px; }

/* text roles */
.lede { font-size: clamp(1.1rem, 1.5vw, 1.3rem); line-height: 1.45; }
.dim { color: var(--ink-2); }
.tag { font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-2); }
.note { font-family: var(--serif); font-style: italic; font-size: 1.05rem; line-height: 1.4; }
.story { font-family: var(--serif); font-size: clamp(1.12rem, 1.5vw, 1.32rem); line-height: 1.5; }
.mono { font-family: var(--mono); font-size: 0.86em; font-variant-numeric: tabular-nums; }
figcaption, .cap { font-family: var(--mono); font-size: 0.74rem; letter-spacing: 0.06em; color: var(--ink-2); margin-top: 14px; max-width: 64ch; }
figcaption b, .cap b { font-weight: 500; color: var(--ink); text-transform: uppercase; letter-spacing: 0.1em; }
.ill { font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-2); } /* "Illustration" label on any invented example */

/* layout */
.wrap { max-width: 1280px; margin: 0 auto; padding-left: max(var(--pad), env(safe-area-inset-left, 0px)); padding-right: max(var(--pad), env(safe-area-inset-right, 0px)); }
.g { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gut); }
.g > * { grid-column: 1 / -1; min-width: 0; }
.sec { padding-block: clamp(72px, 9.5vw, 150px); }
.scroll { overflow-x: auto; }

/* surfaces: only for things that are objects in life */
.paper { background: var(--paper); box-shadow: 12px 14px 0 var(--plate-b); }       /* a document */
.screen { background: var(--deep); color: var(--on-deep); }                          /* the console */
.screen .tag, .on-deep .tag, .on-deep .dim, .screen .dim { color: var(--on-deep-2); }
.on-deep { background: var(--deep); color: var(--on-deep); } .on-deep :focus-visible, .screen :focus-visible { outline-color: var(--on-deep); }
.on-deep figcaption, .on-deep .cap { color: var(--on-deep-2); } .on-deep figcaption b, .on-deep .cap b { color: var(--on-deep); }

/* actions */
.go { background: var(--ink); color: var(--ground); font-family: var(--wide); font-stretch: 112%; font-weight: 700; padding: 13px 20px; text-decoration: none; display: inline-block; border: 0; font-size: 1rem; cursor: pointer; transition: transform 0.25s var(--ease); }
.go:hover { transform: translateY(-2px); } .go:active { transform: translateY(1px); }
.on-deep .go { background: var(--on-deep); color: var(--deep); }
.more { font-stretch: 112%; font-weight: 700; text-decoration: none; border-bottom: 2px solid currentColor; padding-bottom: 2px; display: inline-block; }
.more::after { content: " \2192"; display: inline-block; transition: transform 0.3s var(--ease); } .more:hover::after { transform: translateX(5px); }

/* the witness mark as a status: one stripe across a seam, three readings.
   whole = done · .attn = needs you (right half dropped) · .open = in progress (outline) */
.wm { display: inline-grid; grid-template-columns: 1fr 1fr; gap: 0.14em; width: 3.1em; height: 0.6em; position: relative; vertical-align: middle; flex: none; }
.wm::before { content: ""; position: absolute; left: calc(50% - 0.05em); width: 0.1em; top: -0.42em; bottom: -0.42em; background: currentColor; }
.wm i { background: var(--mark); transition: transform 0.5s var(--ease), background-color 0.3s, box-shadow 0.3s; }
.wm.attn i:last-child { transform: translateY(0.42em); }
.wm.open i { background: transparent; box-shadow: inset 0 0 0 0.08em currentColor; opacity: 0.55; }

/* top bar */
.bar { position: sticky; top: 0; z-index: 50; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 14px; background: var(--ground);
  padding-left: max(var(--pad), env(safe-area-inset-left, 0px)); padding-right: max(var(--pad), env(safe-area-inset-right, 0px)); border-bottom: 1px solid transparent; transition: border-color 0.3s; }
.bar.stuck { border-bottom-color: var(--ink); }
.logo { display: block; width: 150px; color: var(--ink); flex: none; } .logo svg { display: block; width: 100%; height: auto; }
.nav { display: flex; align-items: center; gap: clamp(16px, 2.6vw, 36px); font-size: 0.95rem; }
.nav a { text-decoration: none; padding-block: 8px; position: relative; }
.nav a:not(.go)::after { content: ""; position: absolute; left: 0; right: 0; bottom: 2px; height: 2px; background: var(--ink); transform: scaleX(0); transform-origin: left; transition: transform 0.35s var(--ease); }
.nav a:not(.go):hover::after, .nav a[aria-current="page"]:not(.go)::after { transform: scaleX(1); }
.nav .go { padding: 10px 16px; }
.menu { display: none; background: none; border: 1px solid var(--ink); padding: 9px 14px; font-family: var(--mono); font-size: 0.76rem; letter-spacing: 0.1em; text-transform: uppercase; cursor: pointer; }
@media (max-width: 860px) {
  .js .menu { display: block; }
  .bar { flex-wrap: wrap; }
  .js .nav { display: none; width: 100%; flex-direction: column; align-items: flex-start; gap: 0; padding-block: 8px 12px; font-size: 1.2rem; font-stretch: 112%; font-weight: 700; }
  .js .nav.open { display: flex; }
  .js .nav a { padding-block: 12px; width: 100%; border-top: 1px solid var(--hair); } .js .nav a.go { width: auto; margin-top: 14px; border: 0; font-size: 1rem; }
  html:not(.js) .nav { flex-wrap: wrap; }
}

/* page opening used by inner pages: a label, a large title, then whatever the page needs */
.page-top { padding-block: clamp(48px, 6.5vw, 104px) clamp(40px, 5vw, 80px); border-top: 2px solid var(--ink); }
.page-top .tag { display: block; margin-bottom: 18px; }

/* footer: the name across the seam closes every page */
.foot { background: var(--deep); color: var(--on-deep); margin-top: 0; overflow: hidden; }
.foot .tag, .foot .dim { color: var(--on-deep-2); } .foot :focus-visible { outline-color: var(--on-deep); }
.foot-top { padding-block: clamp(56px, 7vw, 110px) clamp(40px, 5vw, 72px); row-gap: 40px; }
.foot-line { grid-column: 1 / 7; font-stretch: 112%; font-weight: 800; font-size: clamp(1.5rem, 2.6vw, 2.3rem); line-height: 1.08; letter-spacing: -0.015em; max-width: 20ch; }
.foot-nav { grid-column: 7 / 13; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gut); font-size: 0.96rem; }
.foot-nav div { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; } .foot-nav .tag { margin-bottom: 4px; }
.foot-nav a { text-decoration: none; } .foot-nav a:hover { text-decoration: underline; }
.foot-mark { position: relative; padding-block: clamp(20px, 3vw, 44px) clamp(28px, 4vw, 60px); border-top: 1px solid var(--deep-hair); }
.foot-mark::before { content: ""; position: absolute; left: 50%; top: 0; bottom: 0; width: 2px; margin-left: -1px; background: var(--on-deep); opacity: 0.5; }
.foot-mark svg { display: block; width: 76vw; max-width: none; margin-left: 22.12vw; height: auto; color: var(--on-deep); overflow: visible; position: relative; }
.foot-mark svg rect[fill="#ff5a1f"] { transform-box: fill-box; transform-origin: 0 50%; transition: transform 0.7s var(--ease); }
.js .foot-mark:not(.in) .fm-l, .js .foot-mark:not(.in) .fm-r { transform: scaleX(0); }
.foot-mark .fm-r { transition-delay: 0.22s; }
.foot-base { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding-block: 22px; font-size: 0.86rem; color: var(--on-deep-2); border-top: 1px solid var(--deep-hair); }
.foot-base a { text-decoration: none; } .foot-base a:hover { text-decoration: underline; }
@media (max-width: 900px) { .foot-line, .foot-nav { grid-column: 1 / -1; } .foot-nav { grid-template-columns: 1fr 1fr; row-gap: 32px; } }
@media (max-width: 520px) { .foot-nav { grid-template-columns: 1fr; } }

/* motion: engineered, not decorative. Content is always readable before it moves.
   data-in="rule"  a hairline draws left to right
   data-in="seat"  a block slides 14px into place and stops
   data-in="set"   children seat one after another (use on short lists only) */
.js [data-in="seat"], .js [data-in="set"] > * { transform: translateY(14px); opacity: 0.4; transition: transform 0.7s var(--ease), opacity 0.5s linear; }
.js [data-in="seat"].in, .js [data-in="set"].in > * { transform: none; opacity: 1; }
.js [data-in="set"].in > *:nth-child(2) { transition-delay: 0.07s; } .js [data-in="set"].in > *:nth-child(3) { transition-delay: 0.14s; }
.js [data-in="set"].in > *:nth-child(4) { transition-delay: 0.21s; } .js [data-in="set"].in > *:nth-child(5) { transition-delay: 0.28s; }
.js [data-in="set"].in > *:nth-child(n+6) { transition-delay: 0.35s; }
[data-in="rule"] { position: relative; }
[data-in="rule"]::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 2px; background: currentColor; transform-origin: 0 50%; transition: transform 0.9s var(--ease); }
.js [data-in="rule"]:not(.in)::before { transform: scaleX(0); }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.001s !important; transition-delay: 0s !important; animation-duration: 0.001s !important; animation-iteration-count: 1 !important; }
  .js [data-in] , .js [data-in="set"] > * { transform: none !important; opacity: 1 !important; }
  .js [data-in="rule"]::before, .js .foot-mark .fm-l, .js .foot-mark .fm-r { transform: none !important; }
}
@media (max-width: 900px) { .g > * { grid-column: 1 / -1 !important; } }
