/* The Cypher Network — "Orbit to Packet". See CREATIVE-DIRECTION.md. */

@font-face { font-family: "Instrument Serif"; src: url("/fonts/instrument-serif.woff2") format("woff2"); font-display: swap; }
@font-face { font-family: "Instrument Serif"; src: url("/fonts/instrument-serif-italic.woff2") format("woff2"); font-style: italic; font-display: swap; }
@font-face { font-family: "JetBrains Mono"; src: url("/fonts/jetbrains-mono.woff2") format("woff2"); font-weight: 100 800; font-display: swap; }
@font-face { font-family: "IBM Plex Sans"; src: url("/fonts/plex-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "IBM Plex Sans"; src: url("/fonts/plex-400i.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "IBM Plex Sans"; src: url("/fonts/plex-500.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "IBM Plex Sans"; src: url("/fonts/plex-600.woff2") format("woff2"); font-weight: 600; font-display: swap; }
/* Brand font from the brand kit: logo wordmark only. */
@font-face { font-family: "Julius Sans One"; src: url("/fonts/julius-sans-one.ttf") format("truetype"); font-display: swap; }

:root {
  --field: #07090c;
  --bone: #ece8df;
  --amber: #ffb547;
  --blue: #4a81c7;
  --graphite: #8a8f98;
  --rule: rgba(236, 232, 223, .14);
  --serif: "Instrument Serif", "Times New Roman", serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
  --sans: "IBM Plex Sans", system-ui, sans-serif;
  --margin: clamp(20px, 8vw, 128px);
  --rail: 0px;
  --d: 0; /* descent depth 0–1, driven by scroll on the homepage */
}
@media (min-width: 1000px) { .page-home { --rail: 72px; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--field);
  color: var(--bone);
  font: 400 1.125rem/1.65 var(--sans);
  -webkit-font-smoothing: antialiased;
}
img, video, canvas { display: block; max-width: 100%; }
a { color: var(--bone); text-decoration-color: var(--blue); text-underline-offset: 4px; text-decoration-thickness: 1px; }
a:hover { color: var(--blue); }
:focus-visible { outline: 1px solid var(--amber); outline-offset: 4px; }
::selection { background: var(--amber); color: var(--field); }
p { margin: 0 0 1em; max-width: 64ch; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4 { margin: 0; font-weight: 400; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--amber); color: var(--field); padding: 8px 14px; font: 500 .8rem var(--mono); }
.skip:focus { left: 8px; }

/* ---------- type: boardroom / battlefield / briefing ---------- */
.display { font-family: var(--serif); font-size: clamp(2.6rem, min(8vw, 12.5vh), 8.5rem); line-height: .95; letter-spacing: -.01em; text-wrap: balance; }
.display em, .headline em { font-style: italic; color: var(--amber); }
.headline { font-family: var(--serif); font-size: clamp(2.25rem, 5vw, 4.75rem); line-height: 1; letter-spacing: -.005em; text-wrap: balance; }
.title { font-family: var(--serif); font-size: clamp(1.5rem, 2.4vw, 2.1rem); line-height: 1.1; }
.label { font: 500 .75rem/1.4 var(--mono); text-transform: uppercase; letter-spacing: .12em; color: var(--graphite); }
.label.amber { color: var(--amber); }
.lede { font-size: clamp(1.15rem, 1.6vw, 1.4rem); line-height: 1.55; color: var(--bone); max-width: 52ch; }
.muted { color: var(--graphite); }
.mono { font-family: var(--mono); }

/* ---------- backdrop: the globe, behind everything ---------- */
.backdrop { position: fixed; inset: 0; z-index: -2; overflow: hidden; background: var(--field); }
.backdrop video, .backdrop img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  transform: scale(calc(1 + var(--d) * .7));
  filter: brightness(calc(.85 - var(--d) * .6));
  transform-origin: 50% 50%; /* scene.js aligns its orbital shell to the globe's centre */
}
/* A flat veil (not a gradient) deepens with descent so copy stays legible over the footage. */
.backdrop::after { content: ""; position: absolute; inset: 0; background: var(--field); opacity: calc(min(var(--d) * 2.5, 1) * .66); }
/* Body copy sits over moving footage and particles: a soft shadow of the field colour keeps it legible. */
.alt-section p, .alt-section h3, .alt-section summary, .alt-section li { text-shadow: 0 1px 12px rgba(7, 9, 12, .9), 0 0 2px rgba(7, 9, 12, .6); }
.page-inner .backdrop img { filter: brightness(.32); }
#scene { position: fixed; inset: 0; z-index: -1; width: 100%; height: 100%; pointer-events: none; }

/* ---------- header ---------- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 40;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 20px var(--margin) 20px calc(var(--margin) + var(--rail));
  border-bottom: 1px solid transparent;
  transition: background .4s, border-color .4s;
}
.site-header.solid { background: var(--field); border-color: var(--rule); }
.wordmark { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--bone); }
/* Brand lockup: reverse (white) cube with the brand-blue right faces, Julius Sans One wordmark. */
.wordmark svg { width: 28px; height: 32px; flex: none; }
.wordmark .cube-b { fill: #3f86c2; }
.wordmark span { font: 400 1.05rem/1 "Julius Sans One", var(--sans); letter-spacing: .04em; font-variant: small-caps; text-transform: none; }
.nav { display: flex; align-items: center; gap: 32px; }
.nav a { font: 500 .75rem var(--mono); letter-spacing: .12em; text-transform: uppercase; text-decoration: none; color: var(--graphite); }
.nav a:hover, .nav a[aria-current="page"] { color: var(--bone); }
.cta {
  display: inline-flex; align-items: center; gap: .6em;
  font: 500 .8rem var(--mono); letter-spacing: .1em; text-transform: uppercase; text-decoration: none;
  color: var(--field); background: var(--amber); padding: 12px 18px;
  transition: background .2s, color .2s;
}
.cta:hover { background: var(--bone); color: var(--field); }
.cta .arrow { transition: transform .2s; }
.cta:hover .arrow { transform: translateX(4px); }
.nav .cta { color: var(--field); }
.menu-btn { display: none; background: none; border: 0; padding: 6px; color: var(--bone); cursor: pointer; }
.menu-btn svg { width: 24px; height: 24px; }
.drawer { display: none; }
@media (max-width: 860px) {
  .nav { display: none; }
  .menu-btn { display: block; }
  .drawer.open { display: block; position: fixed; inset: 67px 0 auto 0; z-index: 39; background: var(--field); border-bottom: 1px solid var(--rule); padding: 8px var(--margin) 24px; }
  .drawer a { display: block; padding: 16px 0; border-bottom: 1px solid var(--rule); font: 500 .85rem var(--mono); letter-spacing: .12em; text-transform: uppercase; text-decoration: none; }
  .drawer .cta { margin-top: 20px; border: 0; justify-content: center; }
}

/* ---------- the altimeter ---------- */
.altimeter { display: none; }
@media (min-width: 1000px) {
  .altimeter {
    display: flex; flex-direction: column; justify-content: flex-start; padding-top: 128px;
    position: fixed; z-index: 30; left: 0; top: 0; bottom: 0; width: var(--rail);
    border-right: 1px solid var(--rule);
  }
  .altimeter ol { position: relative; display: flex; flex-direction: column; gap: 20px; align-items: center; }
  .altimeter a { display: grid; place-items: center; width: 28px; height: 28px; text-decoration: none; position: relative; }
  .altimeter a::before { content: ""; width: 5px; height: 5px; background: var(--graphite); transition: background .3s, transform .3s; }
  .altimeter a:hover::before { background: var(--bone); }
  .altimeter a[aria-current="true"]::before { background: var(--amber); transform: scale(1.6); }
  .altimeter a span {
    position: absolute; left: 34px; white-space: nowrap; opacity: 0; transform: translateX(-4px);
    font: 500 .7rem var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--bone);
    transition: opacity .2s, transform .2s; pointer-events: none;
  }
  .altimeter a:hover span, .altimeter a:focus-visible span { opacity: 1; transform: none; }
}
/* The readout runs up the rail itself, so it can never sit on top of copy.
   Without the rail (below 1000px) the altimeter isn't shown and neither is this. */
.readout { display: none; }
@media (min-width: 1000px) {
  .readout {
    display: flex; gap: 14px; position: fixed; z-index: 30; bottom: 28px; left: 0; width: var(--rail);
    align-items: center; writing-mode: vertical-rl; transform: rotate(180deg);
    font: 500 .62rem var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--graphite);
  }
  .readout b { color: var(--amber); font-weight: 500; }
}
@media (min-width: 1000px) and (max-height: 780px) { .readout span { display: none; } }

/* ---------- layout ---------- */
main { position: relative; overflow-x: clip; } /* the cropped section numerals must not cause sideways scroll */
.alt-section { position: relative; min-height: 100vh; padding: 18vh var(--margin) 14vh calc(var(--margin) + var(--rail)); }
.alt-section > .index {
  position: absolute; right: -0.06em; top: 10vh; z-index: -1;
  font: 400 clamp(10rem, 30vw, 30rem)/.8 var(--serif); color: transparent;
  -webkit-text-stroke: 1px var(--rule); user-select: none; pointer-events: none;
}
.col { max-width: 760px; }
.stack > * + * { margin-top: 28px; }
.coords { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.rule-top { border-top: 1px solid var(--rule); padding-top: 20px; }

/* 00 orbit */
.orbit { display: flex; flex-direction: column; justify-content: flex-end; padding-top: 128px; padding-bottom: max(14vh, 72px); }
.orbit .label { margin-bottom: 24px; }
.orbit .display { max-width: 13ch; }
.orbit .lede { margin-top: 32px; }
.orbit .actions { display: flex; flex-wrap: wrap; align-items: center; gap: 28px; margin-top: 40px; }
.orbit .actions a:not(.cta) { font: 500 .8rem var(--mono); letter-spacing: .1em; text-transform: uppercase; }
.cursor { display: inline-block; width: 7px; height: 12px; margin-right: 12px; vertical-align: -1px; background: var(--amber); animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.intro { opacity: 0; transform: translateY(10px); animation: rise .9s cubic-bezier(.2, .7, .2, 1) forwards; }
.intro.d1 { animation-delay: .9s; } .intro.d2 { animation-delay: 1.8s; } .intro.d3 { animation-delay: 2.2s; }
@keyframes rise { to { opacity: 1; transform: none; } }

/* 01 stratosphere: boardroom / battlefield */
.split { display: grid; grid-template-columns: auto 1fr auto; align-items: baseline; gap: clamp(16px, 3vw, 40px); margin: 6vh 0 10vh; }
.split .board { font: italic 400 clamp(2.6rem, 7vw, 7rem)/1 var(--serif); }
.split .field { font: 500 clamp(1rem, 2.6vw, 2.4rem)/1 var(--mono); letter-spacing: .1em; }
.bridge { height: 1px; background: var(--rule); position: relative; align-self: center; }
.bridge::after { content: ""; position: absolute; inset: 0; background: var(--amber); transform: scaleX(var(--p, 0)); transform-origin: left; }
.duo { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 48px; max-width: 1100px; }
@media (max-width: 640px) { .split { grid-template-columns: 1fr; } .bridge { height: 40px; width: 1px; justify-self: start; margin-left: 1em; } .bridge::after { transform: scaleY(var(--p, 0)); transform-origin: top; } }

/* 02 continent */
.annotations { display: flex; flex-wrap: wrap; gap: 12px 0; margin: 40px 0 72px; }
.annotations li { font: 500 .8rem var(--mono); letter-spacing: .12em; padding: 6px 18px 6px 0; margin-right: 18px; border-right: 1px solid var(--rule); }
.annotations li:last-child { border: 0; }
.numbered { counter-reset: n; max-width: 1100px; }
.numbered li { counter-increment: n; display: grid; grid-template-columns: 64px minmax(0, 1fr) minmax(0, 1.3fr); gap: 24px; padding: 26px 0; border-top: 1px solid var(--rule); }
.numbered li::before { content: counter(n, decimal-leading-zero); font: 500 .8rem var(--mono); color: var(--amber); padding-top: .5em; }
.numbered h3 { font: 400 clamp(1.4rem, 2.2vw, 1.9rem)/1.1 var(--serif); }
.numbered p { color: var(--graphite); margin: 0; }
@media (max-width: 760px) { .numbered li { grid-template-columns: 40px 1fr; } .numbered p { grid-column: 2; } }

/* 03 network: the practice index */
.index-list { max-width: 1100px; margin-top: 56px; border-bottom: 1px solid var(--rule); }
.index-list details { border-top: 1px solid var(--rule); }
.index-list summary {
  display: grid; grid-template-columns: 48px 1fr auto 24px; align-items: baseline; gap: 20px;
  padding: 24px 0; cursor: pointer; list-style: none;
}
.index-list summary::-webkit-details-marker { display: none; }
.index-list summary .n { font: 500 .75rem var(--mono); color: var(--graphite); }
.index-list summary .title { transition: color .2s, transform .3s; }
.index-list summary:hover .title { color: var(--amber); transform: translateX(6px); }
.index-list summary .plus { font: 400 1.4rem var(--mono); color: var(--graphite); transition: transform .3s; }
.index-list details[open] .plus { transform: rotate(45deg); color: var(--amber); }
.index-list .body { padding: 0 0 28px 68px; color: var(--graphite); max-width: 760px; }
@media (max-width: 640px) { .index-list summary { grid-template-columns: 32px 1fr 20px; } .index-list summary .label { display: none; } .index-list .body { padding-left: 52px; } }

/* 04 device: annotated labs */
.labs { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 0; max-width: 1100px; margin-top: 56px; }
.labs li { padding: 28px 28px 28px 0; border-top: 1px solid var(--rule); position: relative; }
.labs li::before { content: ""; position: absolute; top: -4px; left: 0; width: 7px; height: 7px; border: 1px solid var(--amber); background: var(--field); }
.labs h3 { margin: 18px 0 10px; }
.labs p { color: var(--graphite); margin: 0; font-size: 1rem; }

/* 05 packet */
.packet .col { margin-left: auto; text-align: left; }
.projects li { display: flex; justify-content: space-between; gap: 24px; padding: 18px 0; border-top: 1px solid var(--rule); font: 400 1.05rem/1.4 var(--sans); }
.projects li span { font: 500 .7rem var(--mono); color: var(--graphite); letter-spacing: .12em; white-space: nowrap; padding-top: .3em; }

/* 06 cleartext */
.principles { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 48px 40px; max-width: 1200px; margin-top: 64px; }
.principles li { border-top: 1px solid var(--rule); padding-top: 20px; }
.principles h3 { margin: 12px 0 10px; }
.principles p { color: var(--graphite); font-size: 1rem; margin: 0; }
.closer { margin-top: 22vh; padding-top: 10vh; border-top: 1px solid var(--rule); }
.closer .display { max-width: 11ch; }
.closer .actions { display: flex; flex-wrap: wrap; align-items: center; gap: 28px; margin-top: 44px; }
.closer .email { font: 500 .9rem var(--mono); letter-spacing: .06em; }
.closer .email, .brief .email { font: 500 .9rem var(--mono); letter-spacing: .06em; }
.brief { padding: 16vh 0 18vh; }
.brief .label { margin-bottom: 24px; }
.brief .headline { max-width: 18ch; }
.brief .actions { display: flex; flex-wrap: wrap; align-items: center; gap: 28px; margin-top: 40px; }

/* ---------- inner pages ---------- */
.page-inner main { padding: 0 var(--margin); }
.page-title { padding: 24vh 0 10vh; border-bottom: 1px solid var(--rule); }
.page-title .label { margin-bottom: 24px; }
.page-title .lede { margin-top: 28px; }
.section { padding: 12vh 0; border-bottom: 1px solid var(--rule); }
.section-head { margin-bottom: 48px; max-width: 900px; }
.section-head .label { margin-bottom: 18px; }
.section-head h2 { font: 400 clamp(2rem, 4.2vw, 3.6rem)/1.02 var(--serif); }
.section-head .lede { margin-top: 20px; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 48px 40px; }
.card { border-top: 1px solid var(--rule); padding-top: 20px; }
.card h3, .card h4 { font: 400 clamp(1.35rem, 2vw, 1.75rem)/1.1 var(--serif); margin-bottom: 12px; }
.card p, .card li { color: var(--graphite); font-size: 1rem; }
.card ul li { padding: 8px 0; border-bottom: 1px solid var(--rule); margin: 0; }
.card ul li:last-child { border: 0; }
.tag { display: inline-block; font: 500 .7rem var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--amber); margin-bottom: 14px; }
.center-note { margin: 56px 0 0; }

/* ---------- the practice: index, featured engagement, capabilities, signature ---------- */
.toc ol { display: flex; flex-wrap: wrap; gap: 4px 36px; margin-top: 56px; }
.toc a { display: inline-flex; gap: 10px; padding-block: 8px; font: 500 .75rem var(--mono); letter-spacing: .12em; text-transform: uppercase; text-decoration: none; color: var(--graphite); }
.toc a span { color: var(--amber); }
.toc a:hover { color: var(--bone); }
.section[id] { scroll-margin-top: 80px; }
.feature { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px 8vw; align-items: end; }
.feature .projects { align-self: end; }
.caps { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 56px 8vw; }
.caps > div > .label { padding-bottom: 14px; }
.caps li { padding: 20px 0; border-top: 1px solid var(--rule); }
.caps h3 { font: 400 clamp(1.3rem, 1.9vw, 1.6rem)/1.15 var(--serif); margin-bottom: 6px; }
.caps p { color: var(--graphite); margin: 0; font-size: 1rem; }
.index-list .dl li { padding: 10px 0; border-top: 1px solid var(--rule); }
.index-list .dl li:first-child { border-top: 0; padding-top: 0; }
.signature { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 48px 8vw; align-items: start; border-top: 1px solid var(--amber); }
.signature .headline em { color: var(--amber); }
.beats { counter-reset: beat; }
.beats li { counter-increment: beat; display: grid; grid-template-columns: 116px 1fr; gap: 20px; padding: 22px 0; border-top: 1px solid var(--rule); color: var(--graphite); }
.beats li span { font: 500 .75rem/1.9 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--bone); }
.beats li span::before { content: counter(beat, decimal-leading-zero) " "; color: var(--amber); }
/* ---------- brief builder ---------- */
.builder { max-width: 900px; }
.builder fieldset { border: 0; padding: 0; margin: 0 0 40px; }
.builder legend, .builder .field > .label { display: block; margin-bottom: 16px; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chips label { position: relative; cursor: pointer; }
.chips input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.chips span {
  display: inline-block; padding: 10px 16px; border: 1px solid var(--rule); color: var(--graphite);
  font: 400 .95rem/1.3 var(--sans); transition: border-color .2s, color .2s, background .2s;
}
.chips label:hover span { border-color: var(--graphite); color: var(--bone); }
.chips input:checked + span { border-color: var(--amber); color: var(--bone); background: rgba(255, 181, 71, .08); }
.chips input:checked + span::before { content: "✓ "; color: var(--amber); }
.chips input:focus-visible + span { outline: 1px solid var(--amber); outline-offset: 3px; }
.builder textarea {
  width: 100%; padding: 14px 16px; background: rgba(7, 9, 12, .6); border: 1px solid var(--rule); color: var(--bone);
  font: 400 1rem/1.5 var(--sans); resize: vertical;
}
.builder textarea:focus { border-color: var(--amber); outline: none; }
.builder .actions { display: flex; flex-wrap: wrap; align-items: center; gap: 20px 28px; margin-top: 40px; }
.builder button.cta { border: 0; cursor: pointer; }
.ghost { background: none; border: 1px solid var(--rule); color: var(--bone); padding: 12px 18px; cursor: pointer; font: 500 .8rem var(--mono); letter-spacing: .1em; text-transform: uppercase; }
.ghost:hover { border-color: var(--bone); }
.status { margin: 0; font: 500 .75rem var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--amber); }

@media (max-width: 860px) {
  .feature, .signature { grid-template-columns: 1fr; }
  .beats li { grid-template-columns: 1fr; gap: 6px; }
}
.spaced { margin-top: 2em; }

/* prose: privacy + field notes */
.prose { max-width: 720px; padding: 10vh 0; }
.prose p, .prose li { color: #d6d2c9; }
.prose h2, .prose h3 { font: 400 clamp(1.6rem, 2.6vw, 2.2rem)/1.1 var(--serif); color: var(--bone); margin: 2em 0 .6em; }
.prose h3 strong { font-weight: 400; }
.prose ul, .prose ol { margin: 0 0 1.4em; padding-left: 1.4em; }
.prose ul { list-style: square; }
.prose ol { list-style: decimal-leading-zero; }
.prose li { margin-bottom: .6em; padding-left: .3em; }
.prose li::marker { color: var(--amber); font-family: var(--mono); font-size: .8em; }
.prose figure { margin: 0 0 2.5em; }
.plate { margin: 7vh 0 0; max-width: 1200px; border: 1px solid var(--rule); }
.plate img { display: block; width: 100%; height: auto; }
.plate + .prose { padding-top: 7vh; }
.prose sup a { font: 500 .7em var(--mono); color: var(--amber); text-decoration: none; padding: 0 .15em; }
.prose sup + sup a::before { content: ","; color: var(--graphite); }
.prose .refs { margin-top: 3.5em; padding-top: 28px; border-top: 1px solid var(--rule); }
.prose .refs h2 { font: 500 .75rem var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--graphite); margin: 0 0 18px; }
.prose .refs ol { list-style: decimal; }
.prose .refs li { font-size: .92rem; color: var(--graphite); overflow-wrap: anywhere; }
.prose .refs li:target { color: var(--bone); }
.prose [id^="ref-"] { scroll-margin-top: 96px; }
.prose figcaption { font: 500 .7rem var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--graphite); margin-top: 12px; }
.duotone { filter: grayscale(1) contrast(1.1) brightness(.9) sepia(.35) hue-rotate(-12deg); }
.tags { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 3em; padding-top: 20px; border-top: 1px solid var(--rule); }
.tags li { font: 500 .7rem var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--graphite); }
.back { display: inline-block; margin-top: 3em; font: 500 .8rem var(--mono); letter-spacing: .1em; text-transform: uppercase; }
.progress { position: fixed; top: 0; left: 0; height: 2px; width: 100%; background: var(--amber); transform: scaleX(var(--read, 0)); transform-origin: left; z-index: 50; }

/* field notes index */
.notes { padding: 6vh 0 12vh; }
.notes li { border-bottom: 1px solid var(--rule); }
.notes a { display: grid; grid-template-columns: 180px minmax(0, 1fr) 260px; gap: 40px; align-items: start; padding: 48px 0; text-decoration: none; }
.notes img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.notes h2 { font: 400 clamp(1.8rem, 3.2vw, 2.8rem)/1.05 var(--serif); margin: 12px 0 16px; transition: color .2s; }
.notes a:hover h2 { color: var(--amber); }
.notes p { color: var(--graphite); margin: 0; }
@media (max-width: 860px) { .notes a { grid-template-columns: 1fr; gap: 18px; } .notes img { order: -1; aspect-ratio: 16 / 9; } }

/* ---------- footer ---------- */
.site-footer {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px 32px; align-items: center;
  padding: 32px var(--margin) 64px calc(var(--margin) + var(--rail)); border-top: 1px solid var(--rule);
  font: 500 .7rem var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--graphite);
  background: var(--field);
}
.site-footer ul { display: flex; flex-wrap: wrap; gap: 12px 28px; }
.site-footer a { color: var(--graphite); text-decoration: none; }
.site-footer a:hover { color: var(--bone); }
.site-footer a[href^="mailto"] { text-transform: none; letter-spacing: .04em; }
/* Stand-alone text links get a 24px+ touch target (WCAG 2.5.8) without changing the layout. */
.site-footer a, .actions a:not(.cta) { display: inline-block; padding-block: 6px; }

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  .intro { animation: none; opacity: 1; transform: none; }
  .cursor { animation: none; }
  .bridge::after { transform: none; }
  * { transition-duration: 0s !important; }
}

/* systemic risk: orders of effect */
.orders-wrap { margin: 48px 0 0; grid-column: 1 / -1; grid-row: 2; }
.orders-wrap > .label { margin-bottom: 18px; }
.orders { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; counter-reset: none; }
.orders li { padding: 22px 22px 26px; border-top: 2px solid var(--amber); display: flex; flex-direction: column; gap: 10px; }
.orders li:nth-child(1) { border-top-color: rgba(255,181,71,.35); }
.orders li:nth-child(2) { border-top-color: rgba(255,181,71,.55); }
.orders li:nth-child(3) { border-top-color: rgba(255,181,71,.8); }
.orders li + li { border-left: 1px solid var(--rule); }
.orders .o { font: 500 .75rem/1.6 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--amber); }
.orders h3 { font-size: 1.15rem; color: var(--bone); margin: 0; }
.orders p { color: var(--graphite); margin: 0; }
.orders .q { margin-top: auto; padding-top: 8px; color: var(--bone); font-style: italic; }
@media (max-width: 900px) {
  .orders { grid-template-columns: 1fr 1fr; }
  .orders li:nth-child(3) { border-left: 0; }
}
@media (max-width: 560px) {
  .orders { grid-template-columns: 1fr; }
  .orders li + li { border-left: 0; }
}
