:root {
  --ink: #0b0d0e;
  --bone: #f2eddf;
  --paper: #fffaf0;
  --cyan: #00ddeb;
  --yellow: #ffd900;
  --muted: #6d6b64;
  --line: 3px solid var(--ink);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--bone);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 16px;
  line-height: 1.5;
}
a { color: inherit; text-underline-offset: .18em; text-decoration-thickness: 2px; }
a:hover { text-decoration-style: wavy; }
a:focus-visible, summary:focus-visible { outline: 4px solid var(--cyan); outline-offset: 4px; }
.skip-link { position: fixed; left: 1rem; top: -5rem; z-index: 99; padding: .7rem 1rem; background: var(--yellow); border: var(--line); font-weight: 900; }
.skip-link:focus { top: 1rem; }

.masthead { border-bottom: var(--line); }
.masthead__bar { display: flex; justify-content: space-between; align-items: center; padding: .75rem clamp(1rem, 4vw, 4rem); color: var(--bone); background: var(--ink); font-size: .75rem; letter-spacing: .13em; font-weight: 900; }
.wordmark { text-decoration: none; }
.status { display: flex; align-items: center; gap: .5rem; }
.status i { width: .65rem; height: .65rem; background: var(--cyan); border-radius: 50%; box-shadow: 0 0 0 3px rgba(0,221,235,.25); }
.hero { min-height: 82vh; display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(290px, .7fr); gap: clamp(2rem, 6vw, 7rem); align-items: center; padding: clamp(3rem, 8vw, 8rem) clamp(1rem, 5vw, 6rem); background-image: linear-gradient(rgba(11,13,14,.07) 1px, transparent 1px), linear-gradient(90deg, rgba(11,13,14,.07) 1px, transparent 1px); background-size: 24px 24px; }
.eyebrow { margin: 0 0 1rem; font-size: .75rem; font-weight: 900; letter-spacing: .14em; text-transform: uppercase; }
h1, h2, h3, p { margin-top: 0; }
h1 { max-width: 900px; margin-bottom: .4rem; font-size: clamp(3.7rem, 10vw, 9.5rem); line-height: .78; letter-spacing: -.085em; text-transform: uppercase; }
.hero__role { display: inline-block; margin: 1.2rem 0 2rem; padding: .35rem .7rem; background: var(--yellow); border: 2px solid var(--ink); font-size: clamp(1rem, 2vw, 1.35rem); font-weight: 900; transform: rotate(-1deg); }
.hero__summary { max-width: 710px; padding-left: 1.25rem; border-left: 6px solid var(--cyan); font-size: clamp(1rem, 1.6vw, 1.25rem); font-weight: 600; }
.hero__links { display: flex; flex-wrap: wrap; gap: .6rem 1.5rem; margin-top: 2rem; font-weight: 900; }
.operator-card { position: relative; margin: 0; background: var(--paper); border: var(--line); box-shadow: 12px 12px 0 var(--cyan); transform: rotate(1.5deg); }
.portrait-wrap { position: relative; aspect-ratio: 4 / 5; margin: .7rem; overflow: hidden; border: 2px solid var(--ink); background: var(--cyan); }
.portrait-wrap img { width: 100%; height: 100%; display: block; object-fit: cover; filter: grayscale(100%) contrast(1.05); mix-blend-mode: multiply; }
.registration { position: absolute; z-index: 2; width: 35px; height: 35px; border-color: var(--yellow); border-style: solid; pointer-events: none; }
.registration--one { top: 12px; left: 12px; border-width: 5px 0 0 5px; }
.registration--two { right: 12px; bottom: 12px; border-width: 0 5px 5px 0; }
.operator-card figcaption { display: flex; justify-content: space-between; gap: 1rem; padding: .6rem 1rem 1rem; font-size: .72rem; }
.operator-card figcaption strong { font-size: .9rem; text-align: right; }

.robot { position: absolute; width: 74px; height: 88px; right: -25px; bottom: -20px; filter: drop-shadow(4px 4px 0 var(--ink)); }
.robot__antenna { position: absolute; left: 35px; top: 0; width: 4px; height: 18px; background: var(--ink); }
.robot__antenna::before { content: ""; position: absolute; width: 10px; height: 10px; left: -3px; top: -4px; border: 2px solid var(--ink); border-radius: 50%; background: var(--yellow); }
.robot__head { position: absolute; left: 9px; top: 15px; width: 58px; height: 36px; display: flex; align-items: center; justify-content: space-around; background: var(--bone); border: var(--line); border-radius: 5px; }
.robot__head i { width: 8px; height: 8px; background: var(--ink); }
.robot__body { position: absolute; left: 3px; top: 48px; width: 70px; height: 38px; display: grid; place-items: center; background: var(--cyan); border: var(--line); font-size: .7rem; font-weight: 900; }

.issue-index { display: grid; grid-template-columns: .65fr 1.35fr; gap: 3rem; padding: clamp(3rem, 7vw, 7rem) clamp(1rem, 5vw, 6rem); color: var(--bone); background: var(--ink); border-bottom: var(--line); }
.issue-index h2, .credentials h2, .references h2 { margin: 0; font-size: clamp(2.5rem, 6vw, 6rem); line-height: .9; letter-spacing: -.06em; text-transform: uppercase; }
.issue-index ol { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0; margin: 0; padding: 0; list-style: none; border-top: 1px solid #555; }
.issue-index li { border-bottom: 1px solid #555; }
.issue-index li:nth-child(odd) { border-right: 1px solid #555; }
.issue-index a { display: flex; gap: 1rem; padding: 1rem; text-decoration: none; font-weight: 800; }
.issue-index a:hover { color: var(--cyan); background: #171b1c; }
.issue-index a span { color: var(--cyan); font-family: monospace; }

.story { padding: clamp(3rem, 7vw, 7rem) clamp(1rem, 3vw, 3rem); border-bottom: var(--line); scroll-margin-top: 1rem; }
.story:nth-child(even) { background: var(--paper); }
.story__header { display: flex; justify-content: space-between; margin: 0 auto 1rem; max-width: 1500px; font: 800 .76rem/1 monospace; letter-spacing: .1em; }
.story__header p { margin: 0; }
.strip { max-width: 1500px; margin: auto; display: grid; grid-template-columns: repeat(4, 1fr); border-top: var(--line); border-left: var(--line); box-shadow: 9px 9px 0 var(--ink); }
.panel { position: relative; min-width: 0; min-height: 470px; display: flex; flex-direction: column; justify-content: flex-end; overflow: hidden; padding: 1rem; background: var(--paper); border-right: var(--line); border-bottom: var(--line); }
.panel__number { position: absolute; z-index: 3; top: .7rem; left: .7rem; padding: .18rem .4rem; background: var(--ink); color: var(--bone); font: 900 .68rem/1.4 monospace; letter-spacing: .06em; }
.panel h2 { margin-bottom: .35rem; font-size: clamp(1.7rem, 2.4vw, 3rem); line-height: .9; letter-spacing: -.05em; text-transform: uppercase; }
.panel__text > p { margin: 0; font-weight: 900; }
.scene--nodes { position: absolute; inset: 20% 12% 37%; }
.scene--nodes i { position: absolute; width: 45px; height: 45px; background: var(--cyan); border: var(--line); }
.scene--nodes i:nth-child(2) { right: 0; top: 20%; border-radius: 50%; }
.scene--nodes i:nth-child(3) { left: 42%; bottom: 0; background: var(--yellow); transform: rotate(45deg); }
.scene--nodes b { position: absolute; left: 18%; top: 40%; width: 70%; height: 3px; background: var(--ink); transform: rotate(12deg); }
.scene--nodes span { position: absolute; right: 0; top: -25%; padding: .5rem; background: white; border: 2px solid; border-radius: 50%; font-size: .7rem; font-weight: 900; }
.panel--complication { background: var(--cyan); justify-content: flex-end; }
.sound { position: absolute; top: 15%; right: 6%; font-size: clamp(2.5rem, 4vw, 5rem); font-weight: 900; font-style: italic; letter-spacing: -.1em; transform: rotate(8deg); text-shadow: 4px 4px 0 var(--yellow); }
.scene--alert { position: absolute; left: 10%; top: 38%; width: 38%; height: 25%; border: var(--line); background: var(--ink); }
.scene--alert span { color: var(--yellow); font-size: 4rem; font-weight: 900; padding-left: 1rem; }
.scene--alert i { position: absolute; left: 110%; width: 90%; height: 3px; background: var(--ink); transform-origin: left; }
.scene--alert i:nth-of-type(1) { top: 10%; transform: rotate(-20deg); }.scene--alert i:nth-of-type(2) { top: 50%; }.scene--alert i:nth-of-type(3) { top: 90%; transform: rotate(20deg); }
.speech { position: relative; z-index: 2; margin: 0; padding: .85rem; background: white; border: var(--line); border-radius: 12px; font-size: .88rem; font-weight: 700; box-shadow: 5px 5px 0 var(--ink); }
.speech::before { content: ""; position: absolute; top: -13px; left: 18px; width: 18px; height: 18px; background: white; border-top: var(--line); border-left: var(--line); transform: rotate(45deg); }
.panel--intervention { justify-content: flex-end; background-image: radial-gradient(var(--ink) 1px, transparent 1px); background-size: 13px 13px; }
.route { position: absolute; inset: 18% 8% auto; height: 120px; }
.route::before { content: ""; position: absolute; left: 5%; top: 50%; width: 80%; border-top: 6px solid var(--ink); transform: rotate(-8deg); }
.route i { position: absolute; z-index: 1; width: 34px; height: 34px; border: var(--line); background: var(--yellow); border-radius: 50%; }
.route i:nth-child(1) { left: 0; top: 53%; }.route i:nth-child(2) { left: 43%; top: 35%; }.route i:nth-child(3) { right: 5%; top: 15%; }
.route span { position: absolute; right: 0; top: -20%; font-size: 5rem; font-weight: 900; transform: rotate(-15deg); }
.panel__notes { position: relative; z-index: 2; }
.panel__notes p { padding: .65rem; margin: .5rem 0 0; background: var(--paper); border: 2px solid; font-size: .8rem; font-weight: 700; }
.panel__notes .system-note { background: var(--yellow); font-family: monospace; }
.panel--outcome { background: var(--yellow); }
.robot--panel { top: 23%; right: calc(50% - 37px); bottom: auto; transform: scale(1.4); }
.panel--outcome .speech { margin-top: auto; }
.epilogue { margin: 1.5rem -.5rem -.5rem; padding: .45rem; color: var(--bone); background: var(--ink); font: 700 .65rem/1.4 monospace; text-align: center; }
.appendix { max-width: 1500px; margin: 1.3rem auto 0; border: 2px solid var(--ink); background: var(--paper); }
.appendix summary { display: flex; justify-content: space-between; padding: .85rem 1rem; cursor: pointer; font-size: .75rem; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; }
.appendix summary::marker { content: ""; }
.appendix[open] summary { color: var(--bone); background: var(--ink); }
.appendix ul { display: flex; flex-wrap: wrap; gap: .5rem; padding: 1rem; margin: 0; list-style: none; }
.appendix li, .skills span { padding: .35rem .65rem; border: 2px solid var(--ink); background: var(--bone); font: 800 .8rem/1.2 monospace; }
.next-story { display: block; width: max-content; margin: 1.6rem auto 0; font-size: .75rem; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }

.credentials { padding: clamp(4rem, 9vw, 9rem) clamp(1rem, 5vw, 6rem); color: var(--bone); background: var(--ink); }
.credentials__heading { max-width: 900px; }
.skills { display: flex; flex-wrap: wrap; gap: .7rem; margin: 3rem 0 5rem; }
.skills span { color: var(--ink); background: var(--cyan); box-shadow: 3px 3px 0 var(--bone); transform: rotate(-1deg); }
.skills span:nth-child(3n) { background: var(--yellow); transform: rotate(1deg); }
.records { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; border-top: 1px solid #555; }
.records > section { padding-top: 1.5rem; }
.records > section + section { border-left: 1px solid #555; padding-left: 2rem; }
.record-label { color: var(--cyan); font: 800 .75rem/1 monospace; text-transform: uppercase; }
.records h3 { margin-bottom: .25rem; font-size: clamp(1.3rem, 2vw, 2rem); }
.records article p { color: #aaa; }
.references { padding: clamp(4rem, 8vw, 8rem) clamp(1rem, 5vw, 6rem); overflow: hidden; }
.references header { margin-bottom: 3rem; }
.references__track { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
.references figure { display: flex; flex-direction: column; justify-content: space-between; margin: 0; padding: clamp(1.5rem, 3vw, 3rem); border: var(--line); background: var(--paper); box-shadow: 7px 7px 0 var(--cyan); }
.references figure:nth-child(3n+2) { box-shadow-color: var(--yellow); }
.references blockquote { margin: 0 0 2rem; font-size: clamp(1.1rem, 1.8vw, 1.5rem); font-weight: 700; line-height: 1.35; }
.references figcaption { display: flex; flex-direction: column; border-top: 2px solid; padding-top: 1rem; }
.references figcaption span { color: var(--muted); font-size: .8rem; }
footer { display: flex; justify-content: space-between; padding: 2rem clamp(1rem, 5vw, 6rem); border-top: var(--line); background: var(--yellow); font-weight: 900; }
footer p { margin: 0; }

@media (max-width: 1000px) {
  .hero { grid-template-columns: 1fr .65fr; }
  .strip { grid-template-columns: repeat(2, 1fr); }
  .issue-index { grid-template-columns: 1fr; }
}
@media (max-width: 700px) {
  .masthead__bar { padding-inline: 1rem; }
  .status { font-size: 0; }
  .hero { min-height: 0; grid-template-columns: 1fr; padding-block: 3.5rem; }
  h1 { font-size: clamp(3.3rem, 18vw, 6rem); }
  .operator-card { width: min(88%, 390px); margin-inline: auto; }
  .issue-index ol { grid-template-columns: 1fr; }
  .issue-index li:nth-child(odd) { border-right: 0; }
  .story { padding-inline: 0; }
  .story__header { padding-inline: 1rem; }
  .strip { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; box-shadow: none; border-left: 0; scrollbar-color: var(--cyan) var(--ink); }
  .panel { flex: 0 0 88vw; min-height: 500px; scroll-snap-align: center; border-left: var(--line); }
  .appendix { margin-inline: 1rem; }
  .records, .references__track { grid-template-columns: 1fr; }
  .records > section + section { border-left: 0; border-top: 1px solid #555; padding: 1.5rem 0 0; }
  footer { flex-direction: column; gap: 1rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .strip { scroll-snap-type: none; }
}
