/* Design C: poster / hyperpop. Heading face is self-hosted (latin subset, font-display: swap). */
@font-face {
  font-family: 'Unbounded';
  font-style: normal;
  font-weight: 500 900;
  font-display: swap;
  src: url(fonts/unbounded.woff2) format('woff2');
}

:root {
  color-scheme: light dark;
  --sans: 'Segoe UI', system-ui, -apple-system, Roboto, 'Helvetica Neue', Arial, sans-serif;
  --serif: 'Unbounded', 'Arial Black', 'Segoe UI', system-ui, sans-serif;
  --mono: Consolas, ui-monospace, 'SF Mono', Menlo, 'Cascadia Mono', monospace;
  --paper: #faf7ff;
  --ink: #170f2e;
  --muted: #514a6b;
  --text-2: #453e60;
  --green: #5b1fd1;
  --line: #ddd3f2;
  --line-2: #c3b5e6;
  --line-3: #8f7fc0;
  --orbit: #a58be6;
  --accent: #ff3d9a;
  --hl: #ff3d9a;
  --on-hl: #170f2e;
  --hard: #170f2e;
  --warn: #8a4300;
  --warn-line: #c2660a;
  --bad: #b3261e;
  --bad-bg: #fde7e4;
  --panel: #f1ebfd;
  --surface-1: #ece2ff;
  --surface-2: #f3eefc;
  --surface-3: #ffe6f2;
  --track: #ddd3f2;
  --focus: #d6006f;
  --link-hover: #c2005e;
  --button-bg: #5b1fd1;
  --button-hover: #4312a8;
  --on-button: #ffffff;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #0d0919;
    --ink: #f3efff;
    --muted: #aaa2c9;
    --text-2: #c4bde3;
    --green: #b9a3ff;
    --line: #2a2245;
    --line-2: #3d3364;
    --line-3: #5b4e94;
    --orbit: #6a55b8;
    --accent: #d8ff3f;
    --hl: #d8ff3f;
    --on-hl: #0d0919;
    --hard: #6a55b8;
    --warn: #f2b866;
    --warn-line: #d59a45;
    --bad: #ff9f92;
    --bad-bg: #3b1f28;
    --panel: #150f28;
    --surface-1: #1c1438;
    --surface-2: #130e26;
    --surface-3: #26122f;
    --track: #2d2450;
    --focus: #d8ff3f;
    --link-hover: #e5ff85;
    --button-bg: #6c33e0;
    --button-hover: #5a26c4;
    --on-button: #ffffff;
  }
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 35px;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 16px/1.65 var(--sans);
}

a {
  color: inherit;
  text-underline-offset: 5px;
}

header,main,footer {
  max-width: 1120px;
  margin: auto;
  padding: 0 36px;
}

header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 116px;
}

.brand {
  font: italic bold 35px var(--serif);
  text-decoration: none;
}

.brand span {
  font: 12px var(--sans);
  color: var(--warn-line);
  margin-left: 5px;
}

nav {
  display: flex;
  gap: 29px;
  font-size: 14px;
}

nav a {
  text-decoration: none;
}

nav a:hover,a:hover {
  color: var(--link-hover);
}

.hero {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  align-items: center;
  min-height: 555px;
  padding: 36px 0 85px;
}

.eyebrow {
  font-size: 11px;
  font-weight: 650;
  letter-spacing: 2px;
  color: var(--muted);
}

h1,h2,h3 {
  font-family: var(--serif);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -1.7px;
}

h1 {
  font-size: 66px;
  margin: 27px 0;
}

h1 em {
  color: var(--green);
  font-weight: 400;
}

.intro {
  max-width: 475px;
  font-size: 18px;
  color: var(--text-2);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding: 12px 21px;
  border: 1px solid var(--button-bg);
  background: var(--button-bg);
  color: var(--on-button);
  text-decoration: none;
  border-radius: 4px;
  font: 14px var(--sans);
  cursor: pointer;
  margin-top: 20px;
}

.button:hover {
  background: var(--button-hover);
  color: var(--on-button);
}

.drawing {
  height: 340px;
  position: relative;
  margin-left: 32px;
}

.orbit {
  position: absolute;
  border: 1px solid var(--orbit);
  border-radius: 50%;
  width: 275px;
  height: 275px;
  top: 30px;
  left: 20px;
}

.o2 {
  transform: rotate(55deg);
  width: 175px;
  left: 70px;
}

.o3 {
  height: 145px;
  top: 95px;
  transform: rotate(-30deg);
}

.core {
  position: absolute;
  top: 126px;
  left: 118px;
  width: 78px;
  height: 78px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--green);
  color: var(--paper);
  font: italic 38px var(--serif);
}

.note {
  position: absolute;
  background: var(--paper);
  padding: 1px 9px;
  font: italic 17px var(--serif);
  color: var(--green);
}

.n1 {
  left: 0;
  top: 45px;
}

.n2 {
  left: 252px;
  top: 178px;
}

.n3 {
  left: 60px;
  bottom: 9px;
}

.dot {
  position: absolute;
  width: 15px;
  height: 15px;
  background: var(--accent);
  border-radius: 50%;
}

.d1 {
  top: -8px;
  left: calc(50% - 7.5px);
}

.d2 {
  top: -5px;
  left: calc(50% - 4.5px);
  width: 9px;
  height: 9px;
  background: var(--green);
}

section {
  margin-bottom: 80px;
}

.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--line);
  padding: 28px 0 22px;
}

.section-heading h2 {
  font-size: 32px;
  margin: 0;
}

.section-heading h2 span {
  font: 12px var(--sans);
  color: var(--muted);
  letter-spacing: 0;
  margin-left: 12px;
}

.section-heading p {
  font-size: 13px;
  color: var(--muted);
}

.featured {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: var(--surface-1);
  border-radius: 9px;
  overflow: hidden;
}

.project-copy {
  padding: 30px 36px 36px 10px;
}

h3 {
  font-size: 34px;
  margin: 16px 0;
}

.project-copy p,.project p {
  color: var(--text-2);
  font-size: 15px;
}

.tags {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
  margin: 20px 0;
}

.tags span {
  font-size: 10px;
  border: 1px solid var(--line-2);
  border-radius: 20px;
  padding: 3px 9px;
}

.project a,.project-copy a,.source-links a,.about a {
  font-size: 13px;
  font-weight: 600;
}

.project-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 25px;
  margin-top: 25px;
}

.project {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.route-art {
  height: 125px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 25px;
  border-radius: 5px;
  background: var(--surface-3);
}

.route-art span {
  border: 1px solid var(--line-2);
  border-radius: 5px;
  padding: 8px 12px;
  font: 11px var(--mono);
}

.route-art b {
  font-weight: 400;
}

.project h3 {
  font-size: 29px;
}

.case-study {
  background: var(--surface-2);
  border-radius: 8px;
  padding: 38px;
}

.case-study h2 {
  font-size: 40px;
}

.case-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px 40px;
  margin: 25px 0;
}

.case-grid h3 {
  font: 600 14px var(--sans);
  letter-spacing: 0;
}

.case-grid p {
  font-size: 14px;
  color: var(--text-2);
}

.playground {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 55px;
}

.playground>div>p {
  font-size: 15px;
  max-width: 390px;
  color: var(--text-2);
}

label {
  display: block;
  font-size: 12px;
  margin: 22px 0 7px;
}

.sim-header {
  display: flex;
  justify-content: space-between;
  font: 10px var(--mono);
  color: var(--text-2);
  border-bottom: 1px solid var(--line);
  padding-bottom: 15px;
}

.sim-header span {
  font-size: 9px;
}

.about {
  border-top: 1px solid var(--line);
  padding-top: 30px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 55px;
}

.about>.eyebrow {
  grid-column: 1/-1;
}

.about h2 {
  font-size: 40px;
}

.about>div {
  color: var(--text-2);
  font-size: 15px;
}

footer {
  display: flex;
  justify-content: space-between;
  border-top: 1px solid var(--line);
  padding-top: 25px;
  padding-bottom: 35px;
  font-size: 12px;
  color: var(--muted);
}

.skip {
  position: absolute;
  top: -100px;
}

.skip:focus {
  top: 10px;
  left: 10px;
  background: var(--paper);
  padding: 10px;
  z-index: 5;
}

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 5px;
}

@media(max-width:800px) {
  header,main,footer {
    padding-left: 22px;
    padding-right: 22px;
  }
  header {
    height: 90px;
  }
  nav {
    gap: 14px;
    font-size: 12px;
  }
  .hero {
    grid-template-columns: 1fr;
    padding-top: 20px;
    min-height: 0;
  }
  .drawing-wrap {
    margin-top: 36px;
  }
  .drawing {
    width: 320px;
    margin: 0 auto;
  }
  .orbit-detail {
    text-align: center;
    margin-left: 0;
  }
  h1 {
    font-size: 49px;
  }
  .featured,.playground,.about {
    grid-template-columns: 1fr;
  }
  .project-copy {
    padding: 5px 28px 30px;
  }
  .project-grid {
    grid-template-columns: 1fr;
  }
  .section-heading {
    align-items: flex-start;
    gap: 15px;
  }
  .section-heading p {
    max-width: 120px;
    margin: 0;
  }
  .section-heading h2 {
    font-size: 27px;
  }
  .case-study {
    padding: 25px;
  }
  .case-grid {
    grid-template-columns: 1fr;
  }
  .case-study h2,.about h2 {
    font-size: 33px;
  }
  .playground {
    gap: 25px;
  }
  footer {
    gap: 15px;
    flex-wrap: wrap;
  }
  section {
    margin-bottom: 55px;
  }
}

@media(prefers-reduced-motion:reduce) {
  html {
    scroll-behavior: auto;
  }
}

/* Agent Harness screenshot and portrait */
.shot {
  margin: 36px;
  align-self: center;
  justify-self: center;
  text-align: center;
}

.shot img,
.shot video {
  display: block;
  max-height: 460px;
  width: auto;
  max-width: 100%;
  margin: auto;
  border: 1px solid var(--line-3);
  border-radius: 14px;
  box-shadow: 0 15px 25px #17102e20;
}

.shot figcaption {
  font-size: 12px;
  color: var(--muted);
  margin-top: 12px;
}

.about-side .portrait {
  display: block;
  width: 100%;
  max-width: 280px;
  height: auto;
  border-radius: 8px;
  margin-top: 22px;
}

.about-side .sim-note {
  margin-top: 8px;
}

.hero h1 {
  font-size: 44px;
  line-height: 1.15;
  letter-spacing: -1.2px;
}

@media(max-width:800px) {
  .shot {
    margin: 25px;
  }
  .hero h1 {
    font-size: 34px;
  }
}

/* CDS Hooks latency demo */
.simulation {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 24px;
  background: var(--panel);
}

.sim-note {
  font-size: 12px;
  color: var(--muted);
}

#cds-form .button {
  margin-top: 24px;
}

fieldset {
  border: 0;
  margin: 22px 0 0;
  padding: 0;
  min-width: 0;
}

legend {
  font-size: 12px;
  padding: 0;
  margin-bottom: 8px;
}

.choice {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 14px;
  margin: 0 0 8px;
  cursor: pointer;
}

.choice input {
  margin: 5px 0 0;
  accent-color: var(--green);
}

.choice small {
  display: block;
  font-size: 12px;
  color: var(--muted);
}

.range-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  max-width: 320px;
  margin-top: 22px;
}

.range-head label {
  margin: 0 0 7px;
}

.range-head output {
  font: 12px var(--mono);
  color: var(--green);
}

input[type=range] {
  display: block;
  width: 100%;
  max-width: 320px;
  accent-color: var(--green);
}

.sim-header {
  gap: 12px;
}

.ehr-order {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  padding-top: 16px;
}

.playground>.simulation>p {
  max-width: none;
  font-size: 13px;
}

.playground>.simulation>.ehr-label,.ehr-order .ehr-label {
  font: 600 10px var(--mono);
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--muted);
  margin: 18px 0 6px;
}

.ehr-order .ehr-label {
  margin-top: 0;
}

.playground>.simulation>.sim-note {
  font-size: 12px;
  color: var(--muted);
  margin-top: 18px;
}

.order-name {
  font: 20px var(--serif);
  margin: 0;
}

.status {
  font: 11px var(--mono);
  margin: 0;
  padding: 3px 9px;
  border: 1px solid var(--line-2);
  border-radius: 20px;
  white-space: nowrap;
  color: var(--muted);
}

.status.waiting {
  color: var(--warn);
  border-color: var(--warn-line);
}

.status.good {
  color: var(--green);
  border-color: var(--green);
}

.status.bad {
  color: var(--bad);
  border-color: var(--bad);
}

.timeline {
  margin-top: 34px;
}

.track {
  position: relative;
  height: 12px;
  background: var(--track);
  border-radius: 6px;
}

.fill-ok,.fill-late {
  position: absolute;
  top: 0;
  height: 100%;
}

.fill-ok {
  left: 0;
  background: var(--green);
  border-radius: 6px 0 0 6px;
}

.fill-late {
  left: 16.667%;
  background: var(--bad);
  border-radius: 0 6px 6px 0;
}

.budget-mark {
  position: absolute;
  left: 16.667%;
  top: -8px;
  bottom: -8px;
  border-left: 2px solid var(--ink);
}

.budget-mark span {
  position: absolute;
  bottom: 100%;
  left: 4px;
  margin-bottom: 2px;
  font: 10px var(--mono);
  white-space: nowrap;
  color: var(--ink);
}

.ticks {
  display: flex;
  justify-content: space-between;
  margin-top: 12px;
  font: 10px var(--mono);
  color: var(--muted);
}

.clinician {
  min-height: 96px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--paper);
  padding: 12px 14px;
}

.clinician p {
  margin: 0;
}

.idle,.blocked {
  color: var(--muted);
  font-size: 13px;
}

.blocked {
  color: var(--warn);
}

.card {
  font-size: 13px;
}

.card p {
  margin: 0 0 4px;
}

.card-indicator {
  font: 700 10px var(--mono);
  letter-spacing: 1px;
  text-transform: uppercase;
}

.card-warning {
  border-left: 4px solid var(--warn-line);
  padding-left: 12px;
}

.card-warning .card-indicator {
  color: var(--warn);
}

.card-info {
  border-left: 4px solid var(--green);
  padding-left: 12px;
}

.card-info .card-indicator {
  color: var(--green);
}

.card-summary {
  font-weight: 600;
}

.card-detail {
  color: var(--text-2);
}

.card-source {
  font-size: 11px;
  color: var(--muted);
}

.card-link {
  display: inline-block;
  margin-top: 4px;
  font-size: 12px;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 4px;
  color: var(--green);
}

#trace {
  padding: 0;
  margin: 0;
  list-style: none;
  min-height: 70px;
  font: 12px/1.5 var(--mono);
}

#trace li {
  border-bottom: 1px dashed var(--line);
  padding: 6px 0;
  white-space: pre-wrap;
}

#trace li.good {
  color: var(--green);
}

#trace li.bad {
  color: var(--bad);
}

#trace li.late {
  color: var(--muted);
}

#trace li.idle {
  color: var(--muted);
}

.late-panel {
  margin-top: 14px;
  padding: 12px 14px;
  border: 1px dashed var(--line-3);
  border-radius: 6px;
  opacity: .75;
}

.late-panel[hidden],.insight[hidden] {
  display: none;
}

.late-label {
  font-size: 12px;
  color: var(--muted);
  margin: 0 0 8px;
}

.late-body {
  font: 12px var(--mono);
  margin: 0;
}

#result {
  color: var(--green);
  margin: 16px 0 0;
}

.insight {
  margin: 8px 0 0;
  padding: 10px 12px;
  border-left: 3px solid var(--bad);
  background: var(--bad-bg);
}

@media(max-width:800px) {
  .simulation {
    padding: 18px;
  }
  .sim-header {
    flex-direction: column;
  }
}

/* CRD card spans the grid; demo tucked into the case study */
.project-wide {
  grid-column: 1/-1;
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 0 36px;
  align-items: center;
}

.project-wide .route-art {
  grid-row: 1/span 4;
  margin-bottom: 0;
  height: 100%;
  min-height: 160px;
}

.try {
  margin: 10px 0 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
}

.try > summary {
  cursor: pointer;
  padding: 16px 20px;
  font-size: 15px;
  list-style-position: inside;
}

.try > summary::marker {
  color: var(--green);
}

.try-label {
  font: 600 10px var(--sans);
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--paper);
  background: var(--green);
  border-radius: 20px;
  padding: 3px 9px;
  margin: 0 8px 0 4px;
  vertical-align: 2px;
}

.try[open] > summary {
  border-bottom: 1px solid var(--line);
}

.try .playground {
  padding: 24px 20px 20px;
  gap: 36px;
}

.source-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  margin: 0;
}

/* Workbench replay (vendored in workbench/, mounted on first open). Map its colours to the site tokens. */
.workbench-panel {
  padding: 24px 20px 20px;
}

.workbench-panel > p {
  max-width: 680px;
  margin: 0 0 20px;
}

.workbench-mount.pw-replay {
  --pw-accent: var(--focus);
  --pw-fail: var(--bad);
  --pw-mono: var(--mono);
  --pw-radius: 8px;
}

.workbench-mount section {
  margin-bottom: 0;
}

/* The scenario cards are labels; drop the site's form label and legend sizing. */
.workbench-mount .pw-choice {
  margin: 0;
  font-size: inherit;
}

.workbench-mount legend {
  font-size: inherit;
}

@media(max-width:800px) {
  .project-wide {
    grid-template-columns: 1fr;
  }
  .project-wide .route-art {
    grid-row: auto;
    height: 125px;
    min-height: 0;
    margin-bottom: 25px;
  }
  .try .playground,
  .workbench-panel {
    padding: 18px 14px;
  }
}

/* Integration failure lab section */
.lab-intro {
  max-width: 640px;
  margin-bottom: 22px;
}

.lab-intro p {
  font-size: 15px;
  color: var(--text-2);
}

.lab-intro .sim-note {
  font-size: 12px;
  color: var(--muted);
}

/* 404 page */
.not-found {
  min-height: 60vh;
  padding-top: 40px;
  padding-bottom: 80px;
}

/* Interactive orbit (hero) */
.orbit-set {
  position: absolute;
  inset: 0;
  transition: transform .4s ease-out;
}

button.note {
  border: 0;
  font: italic 17px var(--serif);
  color: var(--green);
  background: var(--paper);
  cursor: pointer;
  border-radius: 20px;
  padding: 2px 11px;
}

button.note:hover {
  text-decoration: underline dotted;
  text-underline-offset: 4px;
}

button.note[aria-expanded="true"] {
  background: var(--green);
  color: var(--paper);
}

.orbit-detail {
  min-height: 3.2em;
  max-width: 340px;
  margin: 6px 0 0 32px;
  font-size: 14px;
  color: var(--text-2);
}

.orbit-hint {
  font-size: 12px;
  color: var(--muted);
}

@media (prefers-reduced-motion: reduce) {
  .orbit-set {
    transition: none;
  }
}

/* Orbit motion: rings spin around the core; labels stay put */
.satellite {
  position: absolute;
  top: 30px;
  left: 20px;
  width: 275px;
  height: 275px;
  transform: rotate(25deg);
}

@media (prefers-reduced-motion: no-preference) {
  .o2 {
    animation: spin-o2 38s linear infinite;
  }

  .o3 {
    animation: spin-o3 52s linear infinite;
  }

  .satellite {
    animation: spin-sat 24s linear infinite;
  }
}

@keyframes spin-o2 {
  from { transform: rotate(55deg); }
  to { transform: rotate(415deg); }
}

@keyframes spin-o3 {
  from { transform: rotate(-30deg); }
  to { transform: rotate(-390deg); }
}

@keyframes spin-sat {
  from { transform: rotate(25deg); }
  to { transform: rotate(385deg); }
}

.lab-intro .sim-note a {
  font-weight: 600;
}

/* Hero "currently" line */
.currently {
  max-width: 475px;
  margin-top: 26px;
  font-size: 13px;
  color: var(--text-2);
}

.currently span {
  display: inline-block;
  margin-right: 8px;
  padding: 1px 8px;
  border: 1px solid var(--line-2);
  border-radius: 20px;
  font: 600 10px var(--mono);
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--muted);
  vertical-align: 1px;
}

/* ==========================================================================
   Design C: poster / hyperpop
   Wide display type, hard offset shadows, a hot highlight colour, and a few
   things that move (all switched off under prefers-reduced-motion).
   ========================================================================== */
h1,h2,h3 {
  font-weight: 700;
  letter-spacing: -.045em;
  line-height: 1.08;
}

.brand {
  font: 800 30px var(--serif);
  font-style: normal;
  letter-spacing: -.06em;
}

.brand span {
  color: var(--accent);
  font-size: 18px;
  margin-left: 2px;
}

nav {
  font: 600 12px var(--serif);
  letter-spacing: -.01em;
  gap: 22px;
}

nav a {
  padding: 4px 2px;
  white-space: nowrap;
  text-decoration: none;
}

nav a:hover {
  color: var(--on-hl);
  background: var(--hl);
}

.eyebrow {
  font: 700 11px var(--mono);
  letter-spacing: .14em;
  color: var(--green);
}

.hero h1 {
  font-size: 38px;
  line-height: 1.16;
  letter-spacing: -.05em;
  font-weight: 700;
}

h1 { font-size: 52px; }

.intro {
  font-size: 17px;
}

.button {
  font: 700 13px var(--serif);
  letter-spacing: -.01em;
  border: 2px solid var(--hard);
  border-radius: 999px;
  padding: 13px 24px;
  box-shadow: 4px 4px 0 var(--hard);
}

.button:hover {
  background: var(--hl);
  color: var(--on-hl);
}

@media (prefers-reduced-motion: no-preference) {
  .button {
    transition: transform .12s ease, box-shadow .12s ease, background .12s;
  }

  .button:hover {
    transform: translate(3px, 3px) rotate(-1deg);
    box-shadow: 1px 1px 0 var(--hard);
  }
}

.currently span {
  background: var(--hl);
  color: var(--on-hl);
  border-color: var(--hl);
  font-weight: 700;
}

/* Hero orbit, loud version */
.orbit {
  border-width: 2px;
}

.o2 {
  border-style: dashed;
}

.core {
  font: 800 30px var(--serif);
  font-style: normal;
  letter-spacing: -.06em;
  background: var(--green);
  color: var(--paper);
  border: 3px solid var(--hard);
  box-shadow: 4px 4px 0 var(--hard);
}

.note,
button.note {
  font: 700 12px var(--serif);
  font-style: normal;
  letter-spacing: -.02em;
  color: var(--ink);
  background: var(--paper);
  border: 2px solid var(--hard);
  border-radius: 999px;
  padding: 5px 13px;
  box-shadow: 3px 3px 0 var(--hard);
}

button.note:hover {
  text-decoration: none;
  background: var(--hl);
  color: var(--on-hl);
}

button.note[aria-expanded="true"] {
  background: var(--hl);
  color: var(--on-hl);
}

.n1 { transform: rotate(-4deg); }
.n2 { transform: rotate(3deg); }
.n3 { transform: rotate(-2deg); }

.dot {
  border: 2px solid var(--hard);
}

.d1 {
  width: 20px;
  height: 20px;
  top: -10px;
  left: calc(50% - 10px);
}

@media (prefers-reduced-motion: no-preference) {
  .o2 { animation-duration: 20s; }
  .o3 { animation-duration: 28s; }
  .satellite { animation-duration: 11s; }
}

/* Section headings: big, ruled, highlighted index */
.section-heading {
  border-top: 4px solid var(--hard);
  padding-top: 24px;
}

.section-heading h2 {
  font-size: 40px;
  font-weight: 800;
  letter-spacing: -.055em;
}

.section-heading h2 span {
  display: inline-block;
  font: 700 12px var(--mono);
  letter-spacing: 0;
  background: var(--hl);
  color: var(--on-hl);
  padding: 2px 8px;
  border-radius: 999px;
  vertical-align: 12px;
  transform: rotate(-3deg);
}

.about {
  border-top: 4px solid var(--hard);
}

.about h2,
.case-study h2 {
  font-weight: 800;
  letter-spacing: -.055em;
}

.about h2 { font-size: 40px; }
.case-study h2 { font-size: 34px; }

h3 {
  font-size: 26px;
  font-weight: 700;
}

.project h3 { font-size: 24px; }
.case-grid h3 { font: 700 15px var(--serif); letter-spacing: -.03em; }

/* Cards: thick outline, hard shadow */
.featured,
.project,
.case-study,
.simulation,
main .ifl {
  border: 2px solid var(--hard);
  box-shadow: 6px 6px 0 var(--hard);
  border-radius: 14px;
}

.featured {
  background: var(--surface-1);
  overflow: visible;
}

.project {
  background: var(--surface-3);
}

.project-grid {
  gap: 32px;
  margin-top: 32px;
}

.case-study {
  background: var(--surface-2);
}

.route-art {
  background: var(--paper);
  border: 2px solid var(--hard);
  border-radius: 10px;
}

.route-art span {
  border: 2px solid var(--hard);
  border-radius: 999px;
  font: 700 11px var(--mono);
  background: var(--hl);
  color: var(--on-hl);
}

.tags span {
  border: 2px solid var(--hard);
  border-radius: 999px;
  font-weight: 700;
  font-size: 10px;
}

.try {
  border: 2px solid var(--hard);
  border-radius: 10px;
}

.try-label,
.status {
  font-family: var(--mono);
  font-weight: 700;
}

.try-label {
  background: var(--hl);
  color: var(--on-hl);
}

.shot img {
  border: 2px solid var(--hard);
  box-shadow: 6px 6px 0 var(--hard);
}

.portrait {
  border: 3px solid var(--hard);
  box-shadow: 6px 6px 0 var(--hard);
  border-radius: 14px !important;
}

.order-name {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 17px;
}

footer {
  border-top: 4px solid var(--hard);
}

a {
  text-decoration-thickness: 2px;
  text-decoration-color: var(--hl);
}

.not-found h1 {
  font-size: 44px;
}

/* Kinetic headings: slide and straighten as they scroll into view (where supported) */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .section-heading h2,
    .about h2,
    .case-study h2 {
      animation: poster-in linear both;
      animation-timeline: view();
      animation-range: entry 0% entry 60%;
    }
  }
}

@keyframes poster-in {
  from { transform: translateX(-40px) skewX(-8deg); }
  to { transform: none; }
}

@media(max-width:800px) {
  nav {
    font-size: 11px;
    gap: 12px;
  }

  h1 { font-size: 40px; }

  .hero h1 {
    font-size: 27px;
  }

  .section-heading h2 {
    font-size: 28px;
  }

  .about h2 { font-size: 32px; }
  .case-study h2 { font-size: 26px; }

  .featured,
  .project,
  .case-study,
  .simulation,
  main .ifl {
    box-shadow: 4px 4px 0 var(--hard);
  }

  .not-found h1 {
    font-size: 32px;
  }
}

.route-art span {
  white-space: nowrap;
}

@media(max-width:800px) {
  .route-art {
    gap: 6px;
  }

  .route-art span {
    padding: 6px 8px;
    font-size: 10px;
  }
}

.shot figcaption code {
  font: 11px var(--mono);
}
