/* WILDCATTER '82: the public page.
   Composed like print: hard cuts between black sheets and cream paper, thin rules, square corners, captions fixed to
   their pictures. Effects (grain, scanlines, flicker) are cosmetic and sit after the composition. */

@font-face { font-family: "Heros"; src: url("../fonts/texgyreheros-regular.otf") format("opentype"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Heros"; src: url("../fonts/texgyreheros-italic.otf") format("opentype"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Heros"; src: url("../fonts/texgyreheros-bold.otf") format("opentype"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "OCR-B"; src: url("../fonts/ocrb10.otf") format("opentype"); font-weight: 400; font-style: normal; font-display: swap; }

:root {
  /* palette */
  --ink: #0d0e10;
  --coal: #16181b;
  --coal-2: #1f2226;
  --bone: #ece5d2;
  --bone-dim: #b9b3a3;
  --paper: #e7dcc0;
  --paper-2: #d9ccab;
  --paper-ink: #1c1a15;
  --paper-dim: #5d5646;
  --cyan: #62b7c4;
  --amber: #f0b323;
  --amber-deep: #c98d0b;
  --rust: #c4421f;
  --rule-dark: rgba(236, 229, 210, .28);
  --rule-paper: rgba(28, 26, 21, .55);

  /* type */
  --display: "Heros", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --body: "Heros", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --label: "OCR-B", "Courier New", monospace;

  /* spacing */
  --gutter: clamp(16px, 4vw, 56px);
  --sheet-pad: clamp(56px, 9vw, 128px);
  --max: 1240px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--bone);
  font: 400 1.0625rem/1.55 var(--body);
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
ul, ol, dl, dd, figure { margin: 0; padding: 0; }
ul, ol { list-style: none; }
h1, h2, h3, p { margin: 0; }
:focus-visible { outline: 3px solid var(--amber); outline-offset: 3px; }
.skip { position: absolute; left: -999px; top: 0; z-index: 99; background: var(--amber); color: var(--ink); padding: 10px 16px; font-family: var(--label); text-transform: uppercase; }
.skip:focus { left: 0; }

.wrap { width: 100%; max-width: calc(var(--max) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }

/* ---------- shared furniture ---------- */
.runhead {
  font: 400 .78rem/1.2 var(--label);
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--paper-dim);
  padding-bottom: 8px;
  border-bottom: 1px solid var(--rule-paper);
  margin-bottom: clamp(20px, 3vw, 36px);
}
.runhead span { float: right; }
.runhead--dark { color: var(--bone-dim); border-color: var(--rule-dark); }

.h-sheet, .h-film, .duty h2 {
  font-family: var(--display);
  font-weight: 700;
  text-transform: uppercase;
  line-height: .92;
  letter-spacing: -.025em;
}
.h-sheet { font-size: clamp(2rem, 4.4vw, 3.4rem); }
.h-sheet--dark { color: var(--bone); }

.paper {
  color: var(--paper-ink);
  background-color: var(--paper);
  /* paper grain: a static noise tile, multiplied in; an uneven tone laid over it */
  background-image:
    radial-gradient(ellipse at 18% 12%, rgba(255, 250, 230, .45), transparent 55%),
    radial-gradient(ellipse at 90% 100%, rgba(150, 120, 60, .18), transparent 60%),
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='240' height='240'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' seed='7'/><feColorMatrix values='0 0 0 0 .25  0 0 0 0 .2  0 0 0 0 .1  0 0 0 .55 -.12'/></filter><rect width='240' height='240' filter='url(%23n)'/></svg>");
  position: relative;
  padding-block: var(--sheet-pad);
  border-top: 1px solid #000;
}
/* crop marks at the sheet corners */
.paper::before, .paper::after {
  content: ""; position: absolute; top: 14px; width: 18px; height: 18px; pointer-events: none;
  border-color: var(--rule-paper); border-style: solid; opacity: .8;
}
.paper::before { left: 14px; border-width: 1px 0 0 1px; }
.paper::after { right: 14px; border-width: 1px 1px 0 0; }

/* ---------- controls: printed command bars ---------- */
.cmds { display: grid; gap: 0; width: min(100%, 330px); }
.cmd {
  display: grid; grid-template-columns: 44px 1fr; align-items: stretch;
  text-decoration: none; text-transform: uppercase;
  font: 400 .95rem/1 var(--label); letter-spacing: .12em;
  color: var(--bone); background: rgba(13, 14, 16, .86);
  border: 1px solid var(--bone); margin-top: -1px;
}
.cmd__key { display: grid; place-items: center; border-right: 1px solid var(--bone); font-size: .8rem; padding: 14px 0; }
.cmd__txt { padding: 14px 16px; }
.cmd:hover, .cmd:focus-visible { background: var(--bone); color: var(--ink); animation: flicker .22s steps(2, end) 1; }
.cmd:hover .cmd__key, .cmd:focus-visible .cmd__key { border-color: var(--ink); }
.cmd--primary { background: var(--amber); color: var(--ink); border-color: var(--amber); }
.cmd--primary .cmd__key { border-color: var(--ink); }
.cmd--primary:hover, .cmd--primary:focus-visible { background: #ffd052; border-color: #ffd052; }
.cmds--row { display: flex; flex-wrap: wrap; width: auto; gap: 0 12px; }
.cmds--row .cmd { margin-top: 0; min-width: 240px; }
@keyframes flicker { 0% { opacity: .55; } 50% { opacity: 1; } 75% { opacity: .75; } 100% { opacity: 1; } }

/* ---------- CRT: on media only ---------- */
.crt { position: relative; display: block; overflow: hidden; }
.crt::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    repeating-linear-gradient(to bottom, rgba(0, 0, 0, .22) 0 1px, transparent 1px 3px),
    radial-gradient(ellipse at center, transparent 62%, rgba(0, 0, 0, .35) 100%);
  mix-blend-mode: multiply;
}

/* ============ 1. HERO ============ */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: min(100svh, 880px);
  display: flex; align-items: flex-end;
  padding-block: clamp(84px, 8vw, 110px) clamp(32px, 4vw, 60px);
}
.hero__plate { position: absolute; inset: 0; z-index: -2; }
.hero__plate img { width: 100%; height: 100%; object-fit: cover; object-position: 60% 50%; transform: scaleX(-1); } /* mirrored: the world on the right, clear of the copy; no text in the frame */
.hero__shade {
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(to right, rgba(13, 14, 16, .94) 0, rgba(13, 14, 16, .72) 26%, rgba(13, 14, 16, .1) 40%, transparent 52%),
    linear-gradient(to top, rgba(13, 14, 16, .85), transparent 34%);
}
.hero__nav { position: absolute; top: 0; right: 0; left: 0; z-index: 2; }
.hero__nav ul { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 6px clamp(14px, 2.6vw, 34px); padding: 22px var(--gutter); }
.hero__nav a {
  font: 400 .78rem/1 var(--label); letter-spacing: .18em; text-transform: uppercase; text-decoration: none;
  color: var(--bone); padding: 8px 0; border-bottom: 2px solid transparent;
}
.hero__nav a[aria-current] { border-color: var(--amber); }
.hero__nav a:hover { border-color: var(--bone); }
.hero__copy { position: relative; }
.logo { width: min(88vw, 470px); margin: 0 0 4px -2%; }
.logo img { width: 100%; height: auto; filter: drop-shadow(0 2px 0 rgba(0, 0, 0, .6)); }
.hero__tag { font: 400 .8rem/1 var(--label); letter-spacing: .5em; text-transform: uppercase; color: var(--bone-dim); margin-bottom: clamp(28px, 5vw, 52px); }
.hero__statement {
  font: 700 clamp(1.5rem, 3.2vw, 2.4rem)/1.02 var(--display); text-transform: uppercase; letter-spacing: -.015em;
  max-width: 14em; margin-bottom: 18px;
}
.hero__sub { font: 400 1rem/1.5 var(--label); letter-spacing: .06em; color: var(--bone); margin-bottom: clamp(24px, 3vw, 36px); }
.hero__cap {
  position: absolute; right: var(--gutter); bottom: clamp(36px, 5vw, 72px); z-index: 1;
  font: 400 .66rem/1.5 var(--label); letter-spacing: .2em; text-transform: uppercase; text-align: right; color: var(--bone-dim);
}
.hero__cap span { display: block; opacity: .75; }

/* ============ 2. SERVICE ============ */
.service__grid {
  display: grid; gap: clamp(28px, 4vw, 56px);
  grid-template-columns: 1fr;
}
.service__text { font-size: 1.0625rem; max-width: 34rem; }
.service__text .h-sheet { margin-bottom: 22px; }
.service__text .lede { font-weight: 700; font-size: 1.15rem; line-height: 1.4; margin-bottom: 1em; }
.service__text p + p { margin-top: 1em; }
.service__plate .plate { border: 1px solid #000; }
.service__plate img { width: 100%; }
.service__plate figcaption, .kestrel__plate figcaption, .kestrel__views figcaption, .film__draw figcaption, .book figcaption {
  font: 400 .72rem/1.4 var(--label); letter-spacing: .1em; text-transform: uppercase;
  padding-top: 8px; border-top: 1px solid currentColor; margin-top: 0;
}
.service__plate figcaption { border: 0; border-bottom: 1px solid var(--rule-paper); border-top: 0; padding: 8px 0 0; }
figcaption b { color: var(--rust); font-weight: 400; margin-right: .6em; }
.callouts { display: grid; gap: 0; align-content: start; }
.callouts > div { padding: 18px 0 20px; border-top: 1px solid var(--rule-paper); display: grid; gap: 8px; grid-template-columns: 1fr; }
.callouts > div:first-child { border-top: 2px solid var(--paper-ink); }
.callouts dt { font: 700 clamp(2rem, 4.4vw, 3rem)/.9 var(--display); text-transform: uppercase; letter-spacing: -.03em; color: var(--rust); }
.callouts dd { font-size: .95rem; line-height: 1.45; max-width: 24rem; }

@media (min-width: 900px) {
  .service__grid { grid-template-columns: 1fr 1.2fr .8fr; align-items: start; }
  .service__plate { margin-top: 84px; }
  .callouts { margin-top: 38px; }
  .callouts > div { grid-template-columns: 1fr; }
}

/* ============ 3. FILM ============ */
.film { background: var(--ink); padding-block: var(--sheet-pad); border-top: 6px solid var(--amber); }
.h-film {
  font-size: clamp(3.4rem, 11vw, 8.5rem); color: var(--bone); letter-spacing: -.035em;
  text-shadow: 3px 0 0 rgba(196, 66, 31, .75); /* a little mis-registration, as from a two-colour press */
  margin-bottom: clamp(24px, 4vw, 48px);
}
.film__grid { display: grid; gap: clamp(24px, 4vw, 56px); }
.reel { border: 1px solid var(--cyan); padding: 0; background: #000; aspect-ratio: 16 / 9; }
.reel img, .reel iframe { width: 100%; height: 100%; object-fit: cover; border: 0; }
.reel__play { position: absolute; inset: 0; z-index: 2; display: grid; place-content: center; justify-items: center; gap: 14px; text-decoration: none; background: rgba(0, 0, 0, .28); }
.reel__btn { width: 76px; height: 76px; display: grid; place-items: center; background: var(--amber); color: var(--ink); font-size: 1.6rem; padding-left: 6px; }
.reel__label { font: 400 .8rem/1 var(--label); letter-spacing: .2em; text-transform: uppercase; background: var(--ink); padding: 8px 12px; border: 1px solid var(--bone); }
.reel__play:hover .reel__btn, .reel__play:focus-visible .reel__btn { background: #ffd052; animation: flicker .22s steps(2, end) 1; }
.reel.is-playing::after { display: none; }
.reel__cap { font: 400 .72rem/1.4 var(--label); letter-spacing: .1em; text-transform: uppercase; color: var(--bone-dim); padding-top: 8px; margin-top: 8px; border-top: 1px solid var(--rule-dark); }
.reel__cap b { color: var(--amber); font-weight: 400; margin-right: .6em; }

.blueprint {
  border: 1px solid var(--cyan); background: #0b1418;
  background-image:
    linear-gradient(rgba(98, 183, 196, .09) 1px, transparent 1px),
    linear-gradient(90deg, rgba(98, 183, 196, .09) 1px, transparent 1px);
  background-size: 24px 24px;
  padding: 12px;
}
/* the manual's drawing is black ink on white: inverted it is white line on black, tinted toward the cyan rule */
.blueprint img { width: 100%; filter: invert(1) sepia(.35) hue-rotate(150deg) saturate(1.6) brightness(.95); mix-blend-mode: screen; }
.film__draw figcaption { color: var(--cyan); border-color: var(--rule-dark); }

.film__line {
  margin-top: clamp(32px, 6vw, 72px);
  font: 700 clamp(2rem, 6.4vw, 5rem)/.95 var(--display); text-transform: uppercase; letter-spacing: -.03em;
  color: var(--amber);
  max-width: 14em;
}
.film__line em { font-style: normal; color: var(--bone); }

@media (min-width: 900px) {
  .film__grid { grid-template-columns: 1.5fr 1fr; align-items: start; }
  .film__draw { margin-top: 0; }
}

/* ============ 4. PRINCIPLES ============ */
.rules { display: grid; gap: 0; border-top: 2px solid var(--paper-ink); }
.rules li { display: grid; gap: 10px; padding: 22px 0 26px; border-bottom: 1px solid var(--rule-paper); align-content: start; }
.rules__n { font: 700 2.2rem/1 var(--display); color: var(--rust); letter-spacing: -.04em; }
.rules h3 { font: 700 1.2rem/1.02 var(--display); text-transform: uppercase; letter-spacing: -.01em; }
.rules p { font-size: .92rem; line-height: 1.42; color: #2a271f; }
.rules figure { aspect-ratio: 16 / 10; overflow: hidden; border: 1px solid #000; background: #111; }
.rules figure img { width: 100%; height: 100%; object-fit: cover; }
/* duotone: the screenshot as a one-ink print, dark ink on cream */
.rules .duo { background: #3b1709; }
.rules .duo img { filter: grayscale(1) contrast(1.5) brightness(1.7); mix-blend-mode: screen; }
.rules .ink { background: transparent; border-color: var(--rule-paper); }
.rules .ink img { object-fit: contain; mix-blend-mode: multiply; padding: 4px; }
@media (min-width: 640px) { .rules { grid-template-columns: repeat(2, 1fr); column-gap: 28px; } }
@media (min-width: 1000px) {
  .rules { grid-template-columns: repeat(5, 1fr); column-gap: 0; border-top: 2px solid var(--paper-ink); }
  .rules li { padding: 22px 18px 8px; border-bottom: 0; border-left: 1px solid var(--rule-paper); }
  .rules li:first-child { border-left: 0; padding-left: 0; }
  .rules li:nth-child(even) { padding-top: 54px; }   /* a stagger, as set by hand */
}

/* ============ 5. RECORDS ============ */
.records { background: var(--coal); padding-block: var(--sheet-pad); border-top: 1px solid #000; }
.records .h-sheet { margin-bottom: clamp(24px, 4vw, 44px); }
.plates { display: grid; gap: 22px 14px; grid-template-columns: 1fr; }
.plates li { display: block; }
.plates button { all: unset; display: block; width: 100%; cursor: zoom-in; }
.plates button:focus-visible { outline: 3px solid var(--amber); outline-offset: 4px; }
.plates .crt { border: 1px solid var(--rule-dark); background: #000; }
.plates img { width: 100%; }
.plates button:hover .crt { border-color: var(--amber); }
.plate__cap { display: block; font: 400 .74rem/1.3 var(--label); letter-spacing: .16em; text-transform: uppercase; padding-top: 8px; color: var(--bone); }
.plate__cap b { color: var(--amber); font-weight: 400; margin-right: .8em; }
.pending {
  aspect-ratio: 16 / 9; position: relative; display: grid; place-items: center; border: 1px dashed var(--bone-dim);
  background: repeating-linear-gradient(135deg, transparent 0 9px, rgba(236, 229, 210, .07) 9px 10px);
}
.pending__t { font: 400 .74rem/1 var(--label); letter-spacing: .2em; text-transform: uppercase; color: var(--bone-dim); background: var(--coal); padding: 6px 10px; }

@media (min-width: 640px) {
  .plates { grid-template-columns: repeat(6, 1fr); align-items: start; }
  .plate-a { grid-column: 1 / span 4; }
  .plate-b { grid-column: 5 / span 2; margin-top: 54px; }
  .plate-c { grid-column: 1 / span 2; }
  .plate-d { grid-column: 3 / span 2; margin-top: 38px; }
  .plate-e { grid-column: 5 / span 2; }
  .plate-f { grid-column: 1 / span 3; margin-top: 12px; }
  .plate-g { grid-column: 4 / span 3; margin-top: 56px; }
  .plate-h { grid-column: 2 / span 4; }
}

/* ============ 6 + 7. DESK ============ */
.desk { background: var(--coal); padding-block: 0 var(--sheet-pad); }
.desk__grid { display: grid; gap: clamp(36px, 6vw, 72px); align-items: start; }
.sheet {
  color: var(--paper-ink);
  background-color: #e6d49a;
  background-image:
    radial-gradient(ellipse at 20% 0%, rgba(255, 246, 205, .55), transparent 60%),
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='240' height='240'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' seed='3'/><feColorMatrix values='0 0 0 0 .3  0 0 0 0 .22  0 0 0 0 .05  0 0 0 .6 -.12'/></filter><rect width='240' height='240' filter='url(%23n)'/></svg>");
  padding: clamp(22px, 3.4vw, 40px);
  box-shadow: 0 1px 0 #000, 0 10px 30px rgba(0, 0, 0, .55);
  transform: rotate(-.35deg);
}
.sheet .h-sheet { margin-bottom: 20px; }
.can { counter-reset: n; border-top: 2px solid var(--paper-ink); }
.can li {
  counter-increment: n; display: grid; grid-template-columns: 2.4em 1fr; gap: 6px;
  padding: 9px 0; border-bottom: 1px solid var(--rule-paper); font-size: .98rem; line-height: 1.3;
}
.can li::before { content: counter(n, decimal-leading-zero); font: 400 .85rem/1.5 var(--label); color: var(--rust); letter-spacing: .06em; }
.manual { display: grid; gap: 22px; padding-top: clamp(36px, 6vw, 72px); }
.h-manual { margin-bottom: 0; }
.manual__books { position: relative; padding: 0 0 80px; min-height: 280px; }
.book img { background: #fff; box-shadow: 0 2px 0 rgba(0, 0, 0, .6), 0 14px 34px rgba(0, 0, 0, .7); }
.book--cover { position: absolute; left: 0; top: 18px; width: 44%; transform: rotate(-5deg); z-index: 0; }
.book--cover img { width: 100%; }
.book--spread { position: relative; z-index: 1; margin-left: 24%; transform: rotate(1.2deg); }
.spread { display: grid; grid-template-columns: 1fr 1fr; box-shadow: 0 2px 0 rgba(0, 0, 0, .6), 0 14px 34px rgba(0, 0, 0, .7); background: #fff; position: relative; }
.spread img { box-shadow: none; width: 100%; }
.spread::after { content: ""; position: absolute; top: 0; bottom: 0; left: 50%; width: 36px; transform: translateX(-50%); background: linear-gradient(90deg, transparent, rgba(0, 0, 0, .22) 48%, rgba(0, 0, 0, .3) 50%, rgba(0, 0, 0, .22) 52%, transparent); pointer-events: none; }
.book figcaption { color: var(--bone-dim); border-color: var(--rule-dark); margin-top: 12px; }
.book figcaption b { color: var(--amber); }
.manual__copy { max-width: 26rem; color: var(--bone); }
@media (min-width: 900px) {
  .desk__grid { grid-template-columns: 1.1fr .9fr; }
  .sheet { margin-top: -28px; }
  .manual { padding-top: 64px; }
}

/* ============ 8. DISPLAY SYSTEMS ============ */
.displays { background: var(--ink); padding-block: clamp(44px, 7vw, 88px); border-top: 1px solid var(--rule-dark); }
.displays__grid { display: grid; gap: 26px; }
.displays__cap { font: 400 .8rem/1.5 var(--label); letter-spacing: .16em; text-transform: uppercase; color: var(--amber); margin-top: 14px; max-width: 18rem; }
.modes { display: grid; gap: 10px; grid-template-columns: repeat(2, 1fr); }
.modes li { display: block; }
.mode { display: block; position: relative; overflow: hidden; border: 1px solid var(--rule-dark); background: #000; aspect-ratio: 16 / 10; }
.mode img { width: 100%; height: 100%; object-fit: cover; object-position: 0 0; transform: scale(1.7); transform-origin: 66% 46%; }
.modes b { display: block; font: 400 .7rem/1 var(--label); letter-spacing: .18em; text-transform: uppercase; padding-top: 7px; color: var(--bone-dim); }
.mode::after { content: ""; position: absolute; inset: 0; pointer-events: none; }
/* approximations in CSS and SVG filters; real captures can replace the images later */
.m-scan .mode::after, .m-arcade .mode::after, .m-green .mode::after, .m-amber .mode::after, .m-white .mode::after,
.m-blue .mode::after, .m-comp .mode::after { background: repeating-linear-gradient(to bottom, rgba(0, 0, 0, .38) 0 1px, transparent 1px 3px); }
.m-arcade .mode img { filter: saturate(1.5) contrast(1.2) blur(.4px); }
.m-arcade .mode::after { background: repeating-linear-gradient(to bottom, rgba(0, 0, 0, .45) 0 1px, transparent 1px 3px), radial-gradient(ellipse at center, transparent 50%, rgba(0, 0, 0, .6) 100%); }
.m-green .mode img { filter: url(#f-green) contrast(1.2); }
.m-amber .mode img { filter: url(#f-amber) contrast(1.2); }
.m-white .mode img { filter: url(#f-white) contrast(1.15); }
.m-blue .mode img { filter: url(#f-blue) contrast(1.15); }
.m-comp .mode img { filter: url(#f-composite) saturate(1.1); }
.m-rf .mode img { filter: url(#f-rf); }
.m-cga .mode img { filter: url(#f-cga); image-rendering: pixelated; }
@media (min-width: 640px) { .modes { grid-template-columns: repeat(5, 1fr); } }
@media (min-width: 1000px) {
  .displays__grid { grid-template-columns: 220px 1fr; align-items: start; gap: 40px; }
}

/* ============ 9. KESTREL ============ */
.kestrel__grid { display: grid; gap: clamp(28px, 4vw, 56px); }
.kestrel__text { max-width: 30rem; }
.kestrel__text .h-sheet { margin-bottom: 22px; }
.kestrel__text .lede { font-weight: 700; font-size: 1.15rem; line-height: 1.4; margin-bottom: 1em; }
.kestrel__text p + p { margin-top: 1em; }
.kestrel__plate img { width: 100%; border: 1px solid #000; background: #000; }
.kestrel__plate figcaption, .kestrel__views figcaption { color: var(--paper-ink); border-color: var(--rule-paper); }
.kestrel__views { max-width: 20rem; }
.kestrel__views img { width: 100%; border: 1px solid var(--rule-paper); background: #fff; padding: 8px; mix-blend-mode: multiply; }
@media (min-width: 900px) {
  .kestrel__grid { grid-template-columns: 1fr 1.3fr; grid-template-areas: "text plate" "views plate"; }
  .kestrel__text { grid-area: text; }
  .kestrel__plate { grid-area: plate; margin-top: 28px; }
  .kestrel__views { grid-area: views; }
}

/* ============ 10. ABOUT ============ */
.about { background: var(--coal); padding-block: var(--sheet-pad); border-top: 1px solid #000; }
.about__grid { display: grid; gap: 28px; }
.about__text { max-width: 34rem; font-size: 1.15rem; line-height: 1.5; border-left: 3px solid var(--amber); padding-left: 22px; }
.about__close { margin-top: 1em; color: var(--bone-dim); }
@media (min-width: 900px) { .about__grid { grid-template-columns: 1fr 1.2fr; align-items: start; gap: 72px; } }

/* ============ 11. DUTY ============ */
.duty { background: var(--amber); color: var(--ink); padding-block: var(--sheet-pad); border-top: 1px solid #000; position: relative; }
.duty__grid { display: grid; gap: clamp(28px, 5vw, 56px); align-items: end; }
.duty h2 { font-size: clamp(3.2rem, 11vw, 9rem); letter-spacing: -.04em; }
.bars { display: grid; gap: 0; }
.bar {
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  background: var(--ink); color: var(--bone); text-decoration: none; margin-top: -2px;
  border: 2px solid var(--ink); padding: 20px 22px;
  font: 400 1rem/1 var(--label); letter-spacing: .16em; text-transform: uppercase;
}
.bar i { font-style: normal; }
.bar:hover, .bar:focus-visible { background: var(--bone); color: var(--ink); animation: flicker .22s steps(2, end) 1; }
.bar:focus-visible { outline-color: var(--ink); outline-offset: 4px; }
.bar.is-off { background: transparent; color: rgba(13, 14, 16, .55); border-style: dashed; cursor: not-allowed; animation: none; }
.bar.is-off:hover { background: transparent; color: rgba(13, 14, 16, .55); }
@media (min-width: 900px) { .duty__grid { grid-template-columns: 1.3fr 1fr; } }

/* ============ 12. FOOTER ============ */
.foot { background: var(--ink); padding-block: clamp(40px, 6vw, 72px); border-top: 1px solid #000; }
.foot__grid { display: grid; gap: 36px; }
.foot__make { font: 700 1.2rem/1 var(--display); text-transform: uppercase; letter-spacing: .04em; margin-bottom: 14px; }
.foot__id { font: 400 .86rem/1.7 var(--label); letter-spacing: .1em; color: var(--bone-dim); }
.foot__sites { margin-top: 14px; }
.foot__sites a { text-decoration: none; border-bottom: 1px solid var(--rule-dark); }
.foot__sites a:hover { color: var(--amber); border-color: var(--amber); }
.foot__motto { font: 700 clamp(1.4rem, 3.4vw, 2.2rem)/1.02 var(--display); text-transform: uppercase; letter-spacing: -.02em; }
.foot__motto em { font-style: normal; color: var(--amber); }
@media (min-width: 800px) { .foot__grid { grid-template-columns: 1fr 1fr; align-items: end; } .foot__motto { text-align: right; } }

/* ============ LIGHTBOX ============ */
.lightbox { border: 1px solid var(--bone); background: var(--ink); color: var(--bone); padding: 12px; max-width: min(96vw, 1400px); width: 100%; }
.lightbox::backdrop { background: rgba(0, 0, 0, .9); }
.lightbox img { width: 100%; max-height: calc(100vh - 150px); object-fit: contain; background: #000; }
.lightbox figcaption { font: 400 .8rem/1 var(--label); letter-spacing: .18em; text-transform: uppercase; padding: 10px 0 0; }
.lightbox__n { color: var(--amber); margin-right: .8em; }
.lightbox__bar { display: flex; gap: 8px; flex-wrap: wrap; padding-top: 12px; }
.lightbox__bar button {
  font: 400 .8rem/1 var(--label); letter-spacing: .14em; text-transform: uppercase; cursor: pointer;
  background: var(--ink); color: var(--bone); border: 1px solid var(--bone); padding: 12px 16px;
}
.lightbox__bar button:hover, .lightbox__bar button:focus-visible { background: var(--bone); color: var(--ink); }
.lightbox__bar [data-lb="close"] { margin-left: auto; background: var(--amber); color: var(--ink); border-color: var(--amber); }

/* ---------- small screens ---------- */
@media (max-width: 639px) {
  .hero { min-height: 100svh; }
  .hero__shade { background: linear-gradient(to top, rgba(13, 14, 16, .96) 0, rgba(13, 14, 16, .82) 55%, rgba(13, 14, 16, .1) 100%); }
  .hero__plate img { object-position: 78% 50%; }
  .hero__cap { display: none; }
  .hero__tag { letter-spacing: .3em; }
  .hero__nav a { font-size: .7rem; letter-spacing: .12em; }
  .hero__nav ul { justify-content: flex-start; }
  .cmds { width: 100%; }
  .book--cover { width: 50%; }
  .book--spread { margin-left: 14%; }
  .paper::before, .paper::after { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation: none !important; transition: none !important; }
}
@media (forced-colors: active) {
  .cmd, .bar { border: 2px solid ButtonText; }
}
