@font-face {
  font-family: "Bangers";
  src: url("./assets/Bangers.ttf") format("truetype");
  font-display: swap;
}

:root {
  color-scheme: dark;
  --ink: #0b0909;
  --charcoal: #211f1e;
  --charcoal-2: #2b2927;
  --paper: #eee1c1;
  --paper-dark: #cdbc96;
  --bone: #f3e5c0;
  --red: #d71920;
  --red-bright: #ef2d2d;
  --red-dark: #6d080d;
  --gold: #d29b35;
  --green: #66a05a;
  --cyan: #42b7c2;
  --line: rgba(243, 229, 192, 0.16);
  --shadow: 0 22px 60px rgba(0, 0, 0, 0.34);
  --shell: min(1180px, calc(100vw - 40px));
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  background:
    radial-gradient(circle at 15% 20%, rgba(215, 25, 32, 0.08), transparent 24rem),
    var(--ink);
  color: var(--bone);
  font-family: "Arial Narrow", "Roboto Condensed", Arial, sans-serif;
  line-height: 1.55;
}

button,
a {
  font: inherit;
}

button {
  color: inherit;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

.skip-link {
  position: fixed;
  z-index: 1000;
  left: 16px;
  top: -80px;
  padding: 12px 16px;
  background: var(--bone);
  color: var(--ink);
}

.skip-link:focus {
  top: 16px;
}

.shell {
  width: var(--shell);
  margin-inline: auto;
}

.hero {
  position: relative;
  min-height: 700px;
  overflow: hidden;
  border-bottom: 7px solid var(--red);
  background:
    linear-gradient(90deg, rgba(11, 9, 9, 0.98) 0%, rgba(11, 9, 9, 0.74) 52%, rgba(11, 9, 9, 0.9) 100%),
    url("./assets/hearse-concept.webp") center 54% / cover;
}

.hero::before,
.section--ink::before,
.section--optional::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.18;
  background-image:
    radial-gradient(circle, var(--bone) 0 1px, transparent 1.5px),
    linear-gradient(115deg, transparent 38%, rgba(215, 25, 32, 0.2) 38% 42%, transparent 42%);
  background-size: 7px 7px, 100% 100%;
  mix-blend-mode: overlay;
}

.hero__wash {
  position: absolute;
  inset: auto -12% -30% 35%;
  height: 74%;
  transform: rotate(-4deg);
  background: linear-gradient(120deg, rgba(215, 25, 32, 0.02), rgba(215, 25, 32, 0.42));
  filter: blur(30px);
}

.hero__inner {
  position: relative;
  z-index: 1;
  padding: 52px 0 44px;
}

.hero__brand {
  display: grid;
  grid-template-columns: minmax(260px, 420px) minmax(0, 620px);
  gap: clamp(28px, 6vw, 84px);
  align-items: center;
}

.hero__logo {
  width: 100%;
  filter: drop-shadow(0 18px 22px rgba(0, 0, 0, 0.65));
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--red-bright);
  font-weight: 900;
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin-block: 0;
  text-wrap: balance;
}

h1,
h2 {
  font-family: "Bangers", Impact, sans-serif;
  font-weight: 400;
  letter-spacing: 0.045em;
  text-transform: uppercase;
}

h1 {
  max-width: 760px;
  font-size: clamp(4.5rem, 9vw, 8rem);
  line-height: 0.86;
  color: var(--bone);
  text-shadow: 6px 6px 0 var(--red-dark), 9px 9px 0 rgba(0, 0, 0, 0.7);
}

h2 {
  font-size: clamp(2.8rem, 6vw, 5.2rem);
  line-height: 0.95;
  color: var(--ink);
}

h3 {
  font-size: 1.2rem;
  line-height: 1.2;
}

.hero__lede {
  max-width: 650px;
  margin: 24px 0 0;
  color: rgba(243, 229, 192, 0.82);
  font-size: clamp(1rem, 2vw, 1.28rem);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 48px;
}

.button {
  min-height: 48px;
  padding: 12px 18px;
  border: 1px solid rgba(243, 229, 192, 0.35);
  background: rgba(11, 9, 9, 0.8);
  color: var(--bone);
  font-weight: 900;
  letter-spacing: 0.055em;
  text-decoration: none;
  text-transform: uppercase;
  cursor: pointer;
  clip-path: polygon(1% 4%, 99% 0, 100% 90%, 96% 100%, 0 96%);
}

.button:hover,
.button:focus-visible {
  border-color: var(--bone);
  background: var(--charcoal-2);
}

.button--primary {
  border-color: var(--red-bright);
  background: var(--red);
}

.button--primary:hover,
.button--primary:focus-visible {
  background: var(--red-bright);
}

.button--quiet {
  color: rgba(243, 229, 192, 0.7);
}

.scope-strip {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  margin: 78px 0 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(11, 9, 9, 0.68);
  backdrop-filter: blur(9px);
}

.scope-strip div {
  min-height: 126px;
  padding: 18px 20px;
  border-right: 1px solid var(--line);
}

.scope-strip div:last-child {
  border-right: 0;
}

.scope-strip dt {
  color: var(--bone);
  font-family: "Bangers", Impact, sans-serif;
  font-size: 3.4rem;
  line-height: 1;
}

.scope-strip dd {
  margin: 6px 0 0;
  color: rgba(243, 229, 192, 0.62);
  font-size: 0.8rem;
  font-weight: 800;
  line-height: 1.25;
  text-transform: uppercase;
}

.scope-strip__optional dt {
  color: var(--gold);
}

.section-nav {
  position: sticky;
  z-index: 30;
  top: 0;
  border-bottom: 1px solid rgba(243, 229, 192, 0.12);
  background: rgba(11, 9, 9, 0.94);
  backdrop-filter: blur(14px);
}

.section-nav__inner {
  display: flex;
  gap: 4px;
  overflow-x: auto;
  scrollbar-width: thin;
}

.section-nav a {
  flex: 0 0 auto;
  padding: 18px 16px 16px;
  border-bottom: 3px solid transparent;
  color: rgba(243, 229, 192, 0.67);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-decoration: none;
  text-transform: uppercase;
}

.section-nav a:hover,
.section-nav a:focus-visible {
  border-bottom-color: var(--red);
  color: var(--bone);
}

.section {
  position: relative;
  padding-block: clamp(72px, 10vw, 128px);
}

.section:not(.section--ink, .section--optional) {
  background:
    linear-gradient(rgba(238, 225, 193, 0.97), rgba(238, 225, 193, 0.97)),
    repeating-linear-gradient(7deg, transparent 0 6px, rgba(0, 0, 0, 0.06) 6px 7px);
  color: var(--ink);
}

.section--paper {
  width: 100%;
  background:
    radial-gradient(circle at 80% 20%, rgba(215, 25, 32, 0.09), transparent 32rem),
    var(--paper) !important;
}

.section--ink,
.section--optional {
  overflow: hidden;
  background:
    radial-gradient(circle at 80% 20%, rgba(215, 25, 32, 0.18), transparent 34rem),
    var(--ink);
}

.section--optional {
  border-block: 1px solid rgba(210, 155, 53, 0.5);
}

.section-heading {
  max-width: 800px;
  margin-bottom: 46px;
}

.section-heading p:last-child {
  max-width: 690px;
  margin: 18px 0 0;
  color: rgba(11, 9, 9, 0.66);
  font-size: 1.06rem;
}

.section-heading--light h2 {
  color: var(--bone);
}

.section-heading--light p:last-child {
  color: rgba(243, 229, 192, 0.68);
}

.scope-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.scope-card {
  min-height: 360px;
  padding: 28px;
  border: 1px solid rgba(11, 9, 9, 0.2);
  background: rgba(255, 255, 255, 0.28);
  box-shadow: 8px 8px 0 rgba(11, 9, 9, 0.13);
}

.scope-card--core {
  border-color: var(--red);
  background: var(--red);
  color: var(--bone);
}

.scope-card--internal {
  color: var(--bone);
  background: var(--charcoal);
}

.scope-card__number {
  display: block;
  font-family: "Bangers", Impact, sans-serif;
  font-size: 5.7rem;
  line-height: 0.9;
}

.scope-card__label {
  margin: 16px 0 4px;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.scope-card ul {
  padding-left: 20px;
  margin: 24px 0 0;
}

.scope-card li + li {
  margin-top: 7px;
}

.callout {
  margin-top: 28px;
  padding: 20px 22px;
  border-left: 6px solid var(--red);
  background: rgba(11, 9, 9, 0.08);
}

.reference-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.reference {
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(243, 229, 192, 0.15);
  background: var(--charcoal);
}

.reference--wide {
  grid-column: 1 / -1;
}

.reference__image {
  display: block;
  width: 100%;
  height: 280px;
  padding: 0;
  overflow: hidden;
  border: 0;
  background: #000;
  cursor: zoom-in;
}

.reference--wide .reference__image {
  height: min(48vw, 540px);
}

.reference img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.88) contrast(1.08);
  transition: transform 240ms ease, filter 240ms ease;
}

.reference__image:hover img {
  transform: scale(1.02);
  filter: saturate(1) contrast(1.08);
}

.reference figcaption {
  padding: 16px 18px;
  color: rgba(243, 229, 192, 0.64);
  font-size: 0.9rem;
}

.reference figcaption strong {
  display: block;
  color: var(--bone);
}

.style-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1.2fr;
  gap: 14px;
  margin-top: 16px;
}

.style-grid > article {
  padding: 26px;
  border: 1px solid rgba(243, 229, 192, 0.15);
  background: rgba(33, 31, 30, 0.72);
}

.style-grid ul {
  padding: 0;
  margin: 22px 0 0;
  list-style: none;
}

.style-grid li {
  position: relative;
  padding-left: 24px;
  color: rgba(243, 229, 192, 0.67);
}

.style-grid li + li {
  margin-top: 10px;
}

.check-list li::before,
.cross-list li::before {
  position: absolute;
  left: 0;
  font-weight: 900;
}

.check-list li::before {
  content: "✓";
  color: var(--green);
}

.cross-list li::before {
  content: "×";
  color: var(--red-bright);
}

.swatches {
  display: grid;
  gap: 8px;
  margin-top: 22px;
}

.swatches span {
  position: relative;
  display: flex;
  justify-content: space-between;
  overflow: hidden;
  padding: 12px 14px 12px 54px;
  border: 1px solid rgba(243, 229, 192, 0.12);
  color: var(--bone);
}

.swatches span::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 40px;
  background: var(--swatch);
}

.swatches small {
  color: rgba(243, 229, 192, 0.48);
}

.muted {
  color: rgba(243, 229, 192, 0.56);
  font-size: 0.9rem;
}

.brief-tools {
  position: sticky;
  z-index: 24;
  top: 59px;
  border-bottom: 1px solid rgba(243, 229, 192, 0.16);
  background: rgba(33, 31, 30, 0.97);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
  backdrop-filter: blur(12px);
}

.brief-tools__inner {
  display: grid;
  grid-template-columns: minmax(280px, 1fr) auto auto;
  gap: 16px;
  align-items: end;
  padding-block: 13px;
}

.brief-search span {
  display: block;
  margin-bottom: 4px;
  color: var(--gold);
  font-size: 0.6rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.brief-search input {
  width: 100%;
  height: 40px;
  padding: 8px 12px;
  border: 1px solid rgba(243, 229, 192, 0.2);
  outline: 0;
  background: var(--ink);
  color: var(--bone);
}

.brief-search input::placeholder {
  color: rgba(243, 229, 192, 0.35);
}

.brief-search input:focus {
  border-color: var(--red-bright);
  box-shadow: 0 0 0 2px rgba(215, 25, 32, 0.22);
}

.brief-filters {
  display: flex;
  gap: 5px;
}

.brief-filters button {
  height: 40px;
  padding: 7px 11px;
  border: 1px solid rgba(243, 229, 192, 0.18);
  background: transparent;
  color: rgba(243, 229, 192, 0.56);
  font-size: 0.67rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
}

.brief-filters button:hover,
.brief-filters button:focus-visible {
  color: var(--bone);
}

.brief-filters button[aria-pressed="true"] {
  border-color: var(--red);
  background: var(--red);
  color: white;
}

#result-count {
  min-width: 142px;
  margin: 0 0 10px;
  color: rgba(243, 229, 192, 0.48);
  font-size: 0.68rem;
  font-weight: 900;
  text-align: right;
  text-transform: uppercase;
}

.art-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.art-card {
  position: relative;
  display: flex;
  min-height: 520px;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid rgba(11, 9, 9, 0.18);
  background: rgba(255, 255, 255, 0.32);
  box-shadow: 7px 7px 0 rgba(11, 9, 9, 0.11);
  transition: transform 150ms ease, box-shadow 150ms ease;
}

.section--optional .art-card {
  border-color: rgba(210, 155, 53, 0.3);
  background: rgba(33, 31, 30, 0.78);
  box-shadow: 7px 7px 0 rgba(210, 155, 53, 0.1);
}

.art-card:hover {
  transform: translateY(-3px);
  box-shadow: 9px 11px 0 rgba(11, 9, 9, 0.16);
}

.current-reference {
  position: relative;
  display: grid;
  min-height: 250px;
  width: 100%;
  place-items: center;
  overflow: hidden;
  padding: 0;
  border: 0;
  border-bottom: 1px solid rgba(11, 9, 9, 0.22);
  background:
    radial-gradient(circle at 52% 44%, rgba(215, 25, 32, 0.16), transparent 52%),
    #090707;
  color: var(--bone);
  cursor: zoom-in;
}

.current-reference::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(to bottom, rgba(0, 0, 0, 0.05), transparent 28%, transparent 64%, rgba(0, 0, 0, 0.78)),
    radial-gradient(circle, rgba(255, 255, 255, 0.08) 0 1px, transparent 1.5px) 0 0 / 8px 8px;
  opacity: 0.56;
}

.current-reference img {
  width: 100%;
  height: 250px;
  object-fit: contain;
  transition: transform 180ms ease;
}

.current-reference:hover img,
.current-reference:focus-visible img {
  transform: scale(1.035);
}

.current-reference__kicker,
.current-reference__label {
  position: absolute;
  z-index: 1;
  left: 14px;
  text-align: left;
  text-transform: uppercase;
}

.current-reference__kicker {
  top: 12px;
  padding: 5px 7px;
  background: var(--red);
  color: white;
  font-size: 0.58rem;
  font-weight: 900;
  letter-spacing: 0.11em;
  transform: rotate(-1deg);
}

.current-reference__label {
  right: 14px;
  bottom: 12px;
  color: var(--bone);
  font-family: "Bangers", Impact, sans-serif;
  font-size: 1rem;
  letter-spacing: 0.04em;
  text-shadow: 2px 2px 0 var(--ink);
}

.concept-sketch {
  position: relative;
  display: grid;
  min-height: 220px;
  place-items: center;
  overflow: hidden;
  border-bottom: 1px solid rgba(11, 9, 9, 0.22);
  background:
    linear-gradient(140deg, rgba(215, 25, 32, 0.92), rgba(109, 8, 13, 0.82)),
    var(--red);
  isolation: isolate;
}

.reference-note {
  margin-top: -2px;
  color: rgba(11, 9, 9, 0.65);
  font-size: 0.88rem;
}

.item-reference-gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 12px 0 24px;
}

.item-reference {
  position: relative;
  display: grid;
  min-height: 210px;
  place-items: center;
  overflow: hidden;
  padding: 0;
  border: 1px solid rgba(243, 229, 192, 0.14);
  background: #090707;
  color: var(--bone);
  cursor: zoom-in;
}

.item-reference img {
  width: 100%;
  height: 210px;
  object-fit: contain;
}

.item-reference span {
  position: absolute;
  right: 8px;
  bottom: 8px;
  left: 8px;
  padding: 7px 9px;
  background: rgba(11, 9, 9, 0.84);
  color: var(--bone);
  font-size: 0.66rem;
  font-weight: 900;
  text-align: left;
  text-transform: uppercase;
}

.concept-sketch::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  opacity: 0.23;
  background:
    radial-gradient(circle, var(--ink) 0 1.5px, transparent 2px) 0 0 / 8px 8px,
    repeating-linear-gradient(164deg, transparent 0 13px, rgba(11, 9, 9, 0.5) 13px 15px);
  mask-image: linear-gradient(to right, transparent, black 18%, black 82%, transparent);
}

.concept-sketch::after {
  content: "";
  position: absolute;
  z-index: -1;
  width: 260px;
  height: 260px;
  border: 35px solid rgba(11, 9, 9, 0.18);
  border-radius: 50%;
  transform: rotate(-12deg);
}

.sketch-kicker {
  position: absolute;
  top: 12px;
  left: 14px;
  color: rgba(243, 229, 192, 0.7);
  font-size: 0.62rem;
  font-weight: 900;
  letter-spacing: 0.14em;
}

.sketch-object {
  position: relative;
  z-index: 2;
  display: grid;
  width: 112px;
  min-height: 92px;
  place-items: center;
  padding: 18px 12px;
  border: 3px solid var(--bone);
  background: var(--ink);
  color: var(--bone);
  font-family: "Bangers", Impact, sans-serif;
  font-size: 1.45rem;
  letter-spacing: 0.05em;
  line-height: 0.95;
  text-align: center;
  text-transform: uppercase;
  clip-path: polygon(5% 0, 100% 8%, 95% 92%, 7% 100%, 0 50%);
}

.sketch-object small {
  display: block;
  color: var(--gold);
  font-family: Arial, sans-serif;
  font-size: 0.52rem;
  font-weight: 900;
  letter-spacing: 0.1em;
}

.sketch-effect {
  position: absolute;
  z-index: 1;
  right: 17px;
  bottom: 17px;
  max-width: 48%;
  padding: 9px 12px;
  border: 2px solid var(--ink);
  background: var(--bone);
  color: var(--ink);
  font-size: 0.66rem;
  font-weight: 900;
  line-height: 1.1;
  text-align: center;
  text-transform: uppercase;
  transform: rotate(-3deg);
}

.sketch-arrow {
  position: absolute;
  z-index: 1;
  width: 68%;
  height: 6px;
  background: var(--bone);
  transform: rotate(var(--angle, -8deg));
}

.sketch-arrow::after {
  content: "";
  position: absolute;
  top: -7px;
  right: -2px;
  border-block: 10px solid transparent;
  border-left: 18px solid var(--bone);
}

.layout-orbit .sketch-arrow {
  width: 160px;
  height: 160px;
  border: 6px dashed var(--bone);
  border-radius: 50%;
  background: transparent;
}

.layout-orbit .sketch-arrow::after {
  top: 11px;
  right: 10px;
  transform: rotate(32deg);
}

.layout-impact .sketch-object {
  transform: translateX(-34px) rotate(-3deg);
}

.layout-impact .sketch-effect {
  right: 9px;
  bottom: 62px;
  transform: rotate(4deg);
}

.layout-rescue .sketch-arrow {
  width: 36%;
  transform: rotate(0);
}

.layout-road .sketch-arrow {
  width: 90%;
  height: 70px;
  border: 4px solid var(--bone);
  border-block: 0;
  background:
    linear-gradient(90deg, transparent 48%, var(--bone) 48% 52%, transparent 52%);
  clip-path: polygon(42% 0, 58% 0, 100% 100%, 0 100%);
  transform: translateY(34px);
}

.layout-road .sketch-arrow::after {
  display: none;
}

.art-card__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 20px;
}

.art-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-bottom: 12px;
}

.pill {
  padding: 4px 7px;
  border: 1px solid rgba(11, 9, 9, 0.2);
  background: rgba(11, 9, 9, 0.06);
  color: rgba(11, 9, 9, 0.67);
  font-size: 0.62rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.section--optional .pill {
  border-color: rgba(243, 229, 192, 0.16);
  background: rgba(243, 229, 192, 0.06);
  color: rgba(243, 229, 192, 0.65);
}

.pill--derived {
  border-color: rgba(210, 155, 53, 0.45);
  color: #7d5410;
  background: rgba(210, 155, 53, 0.18);
}

.art-card h3 {
  font-size: 1.28rem;
}

.art-card__id {
  display: block;
  margin-top: 5px;
  color: rgba(11, 9, 9, 0.5);
  font-family: Consolas, monospace;
  font-size: 0.72rem;
  overflow-wrap: anywhere;
}

.section--optional .art-card h3 {
  color: var(--bone);
}

.section--optional .art-card__id {
  color: rgba(243, 229, 192, 0.42);
}

.art-card__meaning {
  margin: 14px 0 6px;
  color: var(--red-dark);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.section--optional .art-card__meaning {
  color: var(--gold);
}

.art-card__direction {
  margin: 4px 0 18px;
  color: rgba(11, 9, 9, 0.72);
  font-size: 0.92rem;
}

.section--optional .art-card__direction {
  color: rgba(243, 229, 192, 0.68);
}

.art-card__actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: auto;
}

.detail-button,
.check-button {
  border: 0;
  background: transparent;
  cursor: pointer;
}

.detail-button {
  padding: 8px 0;
  color: var(--red-dark);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.07em;
  text-decoration: underline;
  text-underline-offset: 4px;
  text-transform: uppercase;
}

.section--optional .detail-button {
  color: var(--gold);
}

.check-button {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 10px;
  border: 1px solid rgba(11, 9, 9, 0.2);
  font-size: 0.7rem;
  font-weight: 900;
  text-transform: uppercase;
}

.check-button::before {
  content: "";
  width: 12px;
  height: 12px;
  border: 2px solid currentColor;
}

.check-button[aria-pressed="true"] {
  border-color: var(--green);
  background: var(--green);
  color: white;
}

.check-button[aria-pressed="true"]::before {
  content: "✓";
  display: grid;
  place-items: center;
  border-color: white;
  font-size: 0.65rem;
}

.section--optional .check-button {
  border-color: rgba(243, 229, 192, 0.2);
}

.play-reference {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 30px;
}

.play-reference figure {
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(11, 9, 9, 0.22);
  background: var(--ink);
}

.play-reference img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
}

.play-reference figcaption {
  padding: 12px 14px;
  color: var(--bone);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.delivery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.delivery-grid article {
  min-height: 290px;
  padding: 24px;
  border-top: 6px solid var(--red);
  background: rgba(255, 255, 255, 0.3);
}

.delivery-grid__step {
  display: block;
  margin-bottom: 28px;
  font-family: "Bangers", Impact, sans-serif;
  font-size: 3.3rem;
  line-height: 0.8;
  color: var(--red);
}

.delivery-grid p {
  color: rgba(11, 9, 9, 0.65);
  font-size: 0.92rem;
}

.review-gate {
  display: grid;
  grid-template-columns: 0.75fr 1.25fr;
  gap: 40px;
  margin-top: 48px;
  padding: 34px;
  background: var(--ink);
  color: var(--bone);
  box-shadow: 9px 9px 0 var(--red-dark);
}

.review-gate ol {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 28px;
  margin: 0;
  padding-left: 26px;
}

.review-gate li {
  color: rgba(243, 229, 192, 0.68);
}

.review-gate strong {
  color: var(--bone);
}

.callout--final {
  background: rgba(215, 25, 32, 0.1);
}

footer {
  border-top: 7px solid var(--red);
  background: #050404;
}

.footer__inner {
  display: grid;
  grid-template-columns: 180px 1fr auto;
  gap: 32px;
  align-items: center;
  padding-block: 40px 90px;
}

.footer__inner img {
  width: 180px;
}

.footer__inner p {
  color: rgba(243, 229, 192, 0.5);
  font-size: 0.8rem;
}

.footer__inner a {
  color: var(--bone);
  font-weight: 900;
  text-decoration-color: var(--red);
  text-underline-offset: 4px;
}

.progress-dock {
  position: fixed;
  z-index: 35;
  right: 18px;
  bottom: 18px;
  display: flex;
  min-width: 310px;
  gap: 16px;
  align-items: center;
  padding: 12px 14px;
  border: 1px solid rgba(243, 229, 192, 0.2);
  background: rgba(11, 9, 9, 0.94);
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
}

.progress-dock > div {
  flex: 1;
}

#progress-label {
  display: block;
  margin-bottom: 6px;
  color: rgba(243, 229, 192, 0.75);
  font-size: 0.68rem;
  font-weight: 900;
  text-transform: uppercase;
}

.progress-track {
  height: 5px;
  overflow: hidden;
  background: rgba(243, 229, 192, 0.14);
}

.progress-track span {
  display: block;
  width: 0;
  height: 100%;
  background: var(--red-bright);
  transition: width 160ms ease;
}

.progress-dock button {
  padding: 5px;
  border: 0;
  background: transparent;
  color: rgba(243, 229, 192, 0.48);
  font-size: 0.62rem;
  font-weight: 900;
  text-transform: uppercase;
  cursor: pointer;
}

.progress-dock button:hover {
  color: var(--bone);
}

dialog {
  padding: 0;
  border: 0;
  color: var(--bone);
}

dialog::backdrop {
  background: rgba(0, 0, 0, 0.84);
  backdrop-filter: blur(6px);
}

.art-dialog {
  width: min(820px, calc(100vw - 32px));
  max-height: calc(100vh - 32px);
  overflow: auto;
  border: 1px solid rgba(243, 229, 192, 0.24);
  background: var(--charcoal);
  box-shadow: 0 28px 100px black;
}

.art-dialog__close,
.lightbox__close {
  position: sticky;
  z-index: 4;
  top: 12px;
  float: right;
  width: 42px;
  height: 42px;
  margin: 12px 12px -54px 0;
  border: 1px solid rgba(243, 229, 192, 0.24);
  background: var(--ink);
  color: var(--bone);
  font-size: 1.6rem;
  cursor: pointer;
}

.dialog-hero {
  padding: 42px 42px 26px;
  border-bottom: 6px solid var(--red);
  background:
    radial-gradient(circle at 80% 20%, rgba(215, 25, 32, 0.33), transparent 20rem),
    var(--ink);
}

.dialog-hero h2 {
  color: var(--bone);
  font-size: clamp(2.5rem, 8vw, 4.5rem);
}

.dialog-id {
  color: rgba(243, 229, 192, 0.45);
  font-family: Consolas, monospace;
}

.dialog-body {
  padding: 34px 42px 42px;
}

.dialog-body h3 {
  margin-top: 28px;
  color: var(--gold);
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.dialog-body p,
.dialog-body li {
  color: rgba(243, 229, 192, 0.7);
}

.filename-list,
.reference-list {
  padding: 0;
  list-style: none;
}

.filename-list code,
.reference-list code {
  display: block;
  padding: 10px 12px;
  overflow-wrap: anywhere;
  border-left: 3px solid var(--red);
  background: rgba(11, 9, 9, 0.5);
  color: var(--bone);
  font-size: 0.78rem;
}

.filename-list li + li,
.reference-list li + li {
  margin-top: 6px;
}

.lightbox {
  max-width: min(96vw, 1600px);
  max-height: 94vh;
  background: transparent;
}

.lightbox img {
  max-width: 94vw;
  max-height: 90vh;
  object-fit: contain;
}

.noscript {
  position: fixed;
  z-index: 100;
  inset: auto 20px 20px;
  padding: 16px;
  background: var(--red);
  color: white;
}

[hidden] {
  display: none !important;
}

@media (max-width: 980px) {
  .hero {
    min-height: auto;
  }

  .hero__brand {
    grid-template-columns: 240px 1fr;
  }

  .scope-strip {
    grid-template-columns: repeat(3, 1fr);
  }

  .scope-strip div:nth-child(3) {
    border-right: 0;
  }

  .scope-strip div:nth-child(n + 4) {
    border-top: 1px solid var(--line);
  }

  .scope-cards,
  .style-grid,
  .art-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .brief-tools__inner {
    grid-template-columns: 1fr auto;
  }

  .brief-search {
    grid-column: 1 / -1;
  }

  .scope-card--internal,
  .palette-card {
    grid-column: 1 / -1;
  }

  .delivery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 680px) {
  :root {
    --shell: min(100% - 28px, 1180px);
  }

  .hero__inner {
    padding-top: 24px;
  }

  .hero__brand {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .hero__logo {
    width: min(72vw, 330px);
  }

  h1 {
    font-size: clamp(4rem, 20vw, 6rem);
  }

  .hero__actions {
    display: grid;
    margin-top: 32px;
  }

  .button {
    width: 100%;
    text-align: center;
  }

  .scope-strip {
    grid-template-columns: repeat(2, 1fr);
    margin-top: 48px;
  }

  .scope-strip div {
    min-height: 106px;
    border-top: 1px solid var(--line);
  }

  .scope-strip div:nth-child(even) {
    border-right: 0;
  }

  .scope-strip div:first-child,
  .scope-strip div:nth-child(2) {
    border-top: 0;
  }

  .scope-strip dt {
    font-size: 2.7rem;
  }

  .scope-cards,
  .reference-grid,
  .style-grid,
  .art-grid,
  .item-reference-gallery,
  .play-reference,
  .delivery-grid,
  .review-gate {
    grid-template-columns: 1fr;
  }

  .brief-tools {
    position: relative;
    top: auto;
  }

  .brief-tools__inner {
    grid-template-columns: 1fr;
  }

  .brief-filters {
    overflow-x: auto;
  }

  .brief-filters button {
    flex: 0 0 auto;
  }

  #result-count {
    min-width: 0;
    margin: 0;
    text-align: left;
  }

  .scope-card--internal,
  .palette-card,
  .reference--wide {
    grid-column: auto;
  }

  .scope-card {
    min-height: 0;
  }

  .reference__image,
  .reference--wide .reference__image {
    height: 260px;
  }

  .art-card {
    min-height: 0;
  }

  .review-gate {
    gap: 24px;
    padding: 26px;
  }

  .review-gate ol {
    grid-template-columns: 1fr;
  }

  .footer__inner {
    grid-template-columns: 1fr;
    padding-bottom: 130px;
  }

  .progress-dock {
    right: 10px;
    bottom: 10px;
    left: 10px;
    min-width: 0;
  }

  .dialog-hero,
  .dialog-body {
    padding-inline: 24px;
  }
}

@media print {
  :root {
    color-scheme: light;
  }

  body {
    background: white;
    color: black;
  }

  .hero {
    min-height: 0;
    background: #111;
  }

  .hero__inner {
    padding-block: 24px;
  }

  .hero__actions,
  .section-nav,
  .brief-tools,
  .progress-dock,
  .detail-button,
  .check-button,
  .reference-grid,
  footer {
    display: none !important;
  }

  .scope-strip {
    margin-top: 24px;
  }

  .section {
    padding-block: 44px;
    break-before: page;
  }

  #overview {
    break-before: auto;
  }

  .art-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .art-card {
    min-height: 0;
    break-inside: avoid;
    box-shadow: none;
  }

  .concept-sketch {
    min-height: 150px;
  }
}
