:root {
  color-scheme: light;
  --ink: #080d10;
  --muted: #4e5d63;
  --paper: #eef1ed;
  --white: #ffffff;
  --steel: #ccd5d5;
  --blue: #0a7f9f;
  --hazard: #d7ff2f;
  --red: #ff3f2f;
  --line: rgba(8, 13, 16, 0.22);
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.32);
  --mono: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--ink);
}

body {
  position: relative;
  margin: 0;
  background: transparent;
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}

body::before {
  content: "";
  position: fixed;
  z-index: 2;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(115deg, transparent 0 17%, rgba(215, 255, 47, 0.12) 17.2% 17.9%, transparent 18.1% 100%),
    linear-gradient(72deg, transparent 0 62%, rgba(10, 127, 159, 0.12) 62.2% 63%, transparent 63.2% 100%);
  mix-blend-mode: hard-light;
}

.site-backdrop {
  position: fixed;
  z-index: 0;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(4, 8, 10, 0.84), rgba(4, 8, 10, 0.24) 48%, rgba(4, 8, 10, 0.68)),
    linear-gradient(0deg, rgba(4, 8, 10, 0.82), rgba(4, 8, 10, 0.12) 52%, rgba(4, 8, 10, 0.58)),
    url("/assets/broval-lab-hero.png") center 42% / cover no-repeat;
  transform: translateZ(0);
}

main,
.site-footer {
  position: relative;
  z-index: 3;
}

.lab-telemetry {
  position: fixed;
  z-index: 11;
  right: 0;
  top: 50%;
  display: flex;
  gap: 18px;
  padding: 8px 14px;
  background: var(--hazard);
  color: var(--ink);
  font-family: var(--mono);
  font-size: 0.64rem;
  font-weight: 950;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transform: translateX(calc(50% - 16px)) rotate(90deg);
  transform-origin: center;
  box-shadow: 0 0 0 2px var(--ink);
}

body::selection {
  background: var(--hazard);
  color: var(--ink);
}

a {
  color: inherit;
}

.site-header {
  position: fixed;
  z-index: 10;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 72px;
  padding: 16px clamp(18px, 4vw, 56px);
  color: var(--white);
  background: linear-gradient(180deg, rgba(8, 13, 16, 0.8), rgba(8, 13, 16, 0.06));
  border-bottom: 1px solid rgba(215, 255, 47, 0.18);
  mix-blend-mode: normal;
}

.brand,
.nav-links {
  display: flex;
  align-items: center;
}

.brand {
  gap: 10px;
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.brand-mark {
  display: inline-grid;
  width: 38px;
  height: 38px;
  place-items: center;
  color: var(--hazard);
  border: 2px solid var(--hazard);
  border-radius: 2px 14px 2px 14px;
  font-size: 0.72rem;
  transform: skewX(-12deg);
}

.nav-links {
  gap: clamp(12px, 3vw, 30px);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.nav-links a {
  text-decoration: none;
  opacity: 0.86;
  border-bottom: 2px solid transparent;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  opacity: 1;
  border-color: var(--hazard);
}

.hero {
  position: relative;
  display: grid;
  min-height: 94svh;
  overflow: hidden;
  isolation: isolate;
  background: transparent;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.08) 1px, transparent 1px);
  background-size: 88px 88px;
  mask-image: linear-gradient(90deg, rgba(0, 0, 0, 0.88), transparent 78%);
}

.hero-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 42%;
  z-index: -2;
  opacity: 0;
}

.hero-scrim {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(7, 11, 15, 0.72) 0%, rgba(7, 11, 15, 0.44) 42%, rgba(7, 11, 15, 0.1) 100%),
    linear-gradient(0deg, rgba(7, 11, 15, 0.6) 0%, rgba(7, 11, 15, 0) 36%);
}

.hero-content {
  align-self: end;
  max-width: 900px;
  padding: 128px clamp(20px, 6vw, 80px) clamp(56px, 9vw, 96px);
  color: var(--white);
}

.hero-seal {
  position: absolute;
  right: clamp(20px, 5vw, 72px);
  bottom: clamp(34px, 6vw, 82px);
  display: grid;
  width: clamp(116px, 13vw, 176px);
  aspect-ratio: 1;
  place-items: center;
  color: rgba(255, 255, 255, 0.72);
  border: 2px solid var(--hazard);
  border-radius: 4px 34px 4px 34px;
  text-transform: uppercase;
  transform: rotate(-10deg);
  opacity: 0.78;
  box-shadow: inset 0 0 0 2px rgba(215, 255, 47, 0.18), 0 0 34px rgba(215, 255, 47, 0.18);
}

.hero-seal::before,
.hero-seal::after {
  content: "";
  position: absolute;
  border-radius: 4px 28px 4px 28px;
}

.hero-seal::before {
  inset: 10px;
  border: 1px solid currentColor;
}

.hero-seal::after {
  inset: 24px;
  border: 1px dashed currentColor;
}

.hero-seal span {
  font-size: 0.62rem;
  font-weight: 950;
  letter-spacing: 0.18em;
}

.hero-seal strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 4vw, 4rem);
  line-height: 0.8;
}

.hero-briefing {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  max-width: 720px;
  margin: clamp(24px, 4vw, 44px) 0 0;
  background: rgba(215, 255, 47, 0.28);
  border: 1px solid rgba(215, 255, 47, 0.42);
}

.hero-briefing div {
  padding: 12px 14px;
  background: rgba(8, 13, 16, 0.7);
  backdrop-filter: blur(12px);
}

.hero-briefing dt,
.hero-briefing dd {
  margin: 0;
  font-family: var(--mono);
  text-transform: uppercase;
}

.hero-briefing dt {
  margin-bottom: 4px;
  color: var(--hazard);
  font-size: 0.62rem;
  letter-spacing: 0.14em;
}

.hero-briefing dd {
  font-size: 0.76rem;
  font-weight: 850;
  letter-spacing: 0.04em;
}

.briefing-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 13px clamp(20px, 6vw, 80px);
  background: var(--hazard);
  color: var(--ink);
  font-family: var(--mono);
  font-size: 0.76rem;
  font-weight: 850;
  text-transform: uppercase;
  box-shadow: inset 0 -2px 0 var(--ink), inset 0 2px 0 var(--ink);
}

.briefing-strip p {
  margin: 0;
}

.briefing-strip span {
  flex: 0 0 auto;
}

.eyebrow,
.section-kicker {
  margin: 0 0 18px;
  color: var(--hazard);
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.section-kicker {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px 0 12px;
  background: var(--hazard);
  color: var(--ink);
  border: 1px solid var(--ink);
  box-shadow: 4px 4px 0 rgba(8, 13, 16, 0.28);
  transform: skewX(-8deg);
}

.section-kicker::before {
  content: "";
  width: 8px;
  height: 8px;
  margin-right: 9px;
  background: currentColor;
  transform: skewX(8deg);
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 11ch;
  margin-bottom: 22px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(4rem, 14vw, 10.5rem);
  line-height: 0.82;
  letter-spacing: 0;
}

.hero-copy {
  max-width: 650px;
  margin-bottom: 0;
  font-size: clamp(1.15rem, 2.2vw, 2rem);
  font-weight: 750;
  line-height: 1.16;
  text-wrap: balance;
}

.section {
  position: relative;
  overflow: hidden;
  scroll-margin-top: 72px;
  padding: clamp(68px, 10vw, 132px) clamp(20px, 6vw, 80px);
  border-top: 1px solid rgba(215, 255, 47, 0.18);
  border-bottom: 1px solid rgba(8, 13, 16, 0.22);
}

.section > * {
  position: relative;
  z-index: 1;
}

.section::before {
  content: "POLARIZED RESEARCH SURFACE // ANSI Z87.1";
  position: absolute;
  top: 18px;
  right: clamp(18px, 6vw, 80px);
  z-index: 0;
  max-width: calc(100% - 40px);
  color: rgba(8, 13, 16, 0.34);
  font-family: var(--mono);
  font-size: 0.62rem;
  font-weight: 950;
  letter-spacing: 0.14em;
  text-align: right;
  text-transform: uppercase;
}

.studies::before,
.flash-game::before,
.broval-index::before,
.contact::before {
  color: rgba(215, 255, 47, 0.52);
}

.research-section {
  background: rgba(238, 241, 237, 0.76);
  backdrop-filter: blur(7px);
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.95fr);
  gap: clamp(28px, 7vw, 88px);
  align-items: start;
}

h2 {
  max-width: 900px;
  margin-bottom: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.25rem, 5.2vw, 5.4rem);
  line-height: 0.96;
  letter-spacing: 0;
}

.copy-stack {
  max-width: 660px;
  color: var(--muted);
  font-size: clamp(1rem, 1.35vw, 1.16rem);
}

.copy-stack p:last-child {
  margin-bottom: 0;
}

.maxims {
  background: rgba(238, 241, 237, 0.78);
  backdrop-filter: blur(7px);
}

.maxims h2 {
  max-width: 1060px;
  margin-bottom: 22px;
}

.redacted-note,
.ledger-note {
  max-width: 680px;
  color: var(--muted);
  font-size: clamp(1rem, 1.2vw, 1.12rem);
}

.redacted-note {
  margin-bottom: clamp(34px, 5vw, 64px);
}

.redacted-note::after {
  content: "";
  display: inline-block;
  width: 6.5em;
  height: 0.82em;
  margin-left: 0.38em;
  background: var(--ink);
  transform: translateY(0.12em);
}

.maxim-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.maxim-strip p {
  min-height: 156px;
  margin: 0;
  padding: clamp(20px, 3vw, 30px);
  background:
    linear-gradient(135deg, rgba(215, 255, 47, 0.08), transparent 38%),
    rgba(238, 241, 237, 0.86);
  font-size: clamp(1.05rem, 1.4vw, 1.28rem);
  font-weight: 850;
  line-height: 1.08;
}

.boobs-annex {
  background:
    radial-gradient(circle at 78% 20%, rgba(255, 63, 47, 0.1), transparent 28%),
    linear-gradient(135deg, rgba(215, 255, 47, 0.08), transparent 42%),
    rgba(238, 241, 237, 0.8);
  backdrop-filter: blur(7px);
  -webkit-backdrop-filter: blur(7px);
}

.boobs-annex h2 {
  max-width: 1000px;
}

.boobs-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.boobs-grid article {
  position: relative;
  min-height: 150px;
  padding: 20px;
  background:
    linear-gradient(145deg, rgba(215, 255, 47, 0.11), transparent 42%),
    rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(8, 13, 16, 0.16);
  clip-path: polygon(0 0, calc(100% - 18px) 0, 100% 18px, 100% 100%, 0 100%);
}

.boobs-grid article::before {
  content: "";
  position: absolute;
  top: 12px;
  right: 12px;
  width: 20px;
  height: 20px;
  border-top: 3px solid var(--hazard);
  border-right: 3px solid var(--hazard);
}

.boobs-grid span {
  display: block;
  margin-bottom: 28px;
  color: var(--red);
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 950;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.boobs-grid p {
  margin-bottom: 0;
  color: var(--muted);
  font-weight: 750;
}

.about-office {
  background:
    radial-gradient(circle at 80% 12%, rgba(215, 255, 47, 0.1), transparent 28%),
    linear-gradient(135deg, rgba(10, 127, 159, 0.1), transparent 44%),
    rgba(238, 241, 237, 0.84);
  backdrop-filter: blur(7px);
  -webkit-backdrop-filter: blur(7px);
}

.about-office h1 {
  max-width: 980px;
  color: var(--ink);
  font-size: clamp(3rem, 7vw, 7.4rem);
}

.staff-roster {
  background:
    linear-gradient(135deg, rgba(215, 255, 47, 0.08), transparent 42%),
    rgba(8, 13, 16, 0.9);
  color: var(--white);
  backdrop-filter: blur(7px);
  -webkit-backdrop-filter: blur(7px);
}

.staff-roster h2 {
  margin-bottom: clamp(34px, 6vw, 70px);
}

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

.staff-card {
  position: relative;
  min-height: 470px;
  padding: clamp(22px, 3vw, 34px);
  background:
    linear-gradient(145deg, rgba(215, 255, 47, 0.12), transparent 40%),
    #10161a;
  border: 2px solid rgba(215, 255, 47, 0.48);
  clip-path: polygon(0 0, calc(100% - 24px) 0, 100% 24px, 100% 100%, 0 100%);
  box-shadow: var(--shadow);
}

.staff-card::before {
  content: "";
  position: absolute;
  top: 12px;
  right: 12px;
  width: 22px;
  height: 22px;
  border-top: 3px solid var(--hazard);
  border-right: 3px solid var(--hazard);
}

.staff-card > span {
  display: block;
  min-height: 34px;
  margin-bottom: 54px;
  color: var(--hazard);
  font-family: var(--mono);
  font-size: 0.7rem;
  font-weight: 950;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.staff-card.has-portrait > span {
  margin-bottom: 18px;
}

.staff-portrait {
  display: block;
  width: clamp(118px, 34%, 150px);
  height: clamp(152px, 26vw, 190px);
  margin: 0 0 24px;
  object-fit: cover;
  object-position: center 30%;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.22), transparent 28%),
    #070b0d;
  border: 6px solid rgba(238, 241, 237, 0.94);
  outline: 2px solid rgba(215, 255, 47, 0.58);
  clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 14px, 100% 100%, 14px 100%, 0 calc(100% - 14px));
  filter: saturate(1.06) contrast(1.04);
  box-shadow:
    0 14px 26px rgba(0, 0, 0, 0.28),
    inset 0 0 0 1px rgba(255, 255, 255, 0.18);
}

.portrait-trotsman {
  object-position: center 20%;
}

.portrait-sickboy {
  object-position: center 23%;
}

.portrait-magnus {
  object-position: center 20%;
}

.staff-card h3 {
  color: var(--white);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 3vw, 3.3rem);
}

.staff-card p {
  color: rgba(255, 255, 255, 0.72);
  font-weight: 750;
}

.staff-card dl {
  display: grid;
  gap: 1px;
  margin: 24px 0 0;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.16);
}

.staff-card dl div {
  display: grid;
  grid-template-columns: 0.42fr 1fr;
  gap: 12px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.06);
}

.staff-card dt,
.staff-card dd {
  margin: 0;
}

.staff-card dt {
  color: rgba(255, 255, 255, 0.56);
  font-family: var(--mono);
  font-size: 0.66rem;
  font-weight: 950;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.staff-card dd {
  color: var(--hazard);
  font-weight: 900;
}

.staff-notes {
  background: rgba(238, 241, 237, 0.82);
  backdrop-filter: blur(7px);
  -webkit-backdrop-filter: blur(7px);
}

.staff-notes h2 {
  margin-bottom: clamp(34px, 6vw, 70px);
}

.divisions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  padding-top: 0;
  background: rgba(21, 25, 28, 0.18);
  backdrop-filter: blur(12px);
}

.division-card {
  position: relative;
  min-height: 310px;
  padding: clamp(24px, 4vw, 42px);
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(8, 13, 16, 0.18);
  clip-path: polygon(0 0, calc(100% - 22px) 0, 100% 22px, 100% 100%, 0 100%);
  box-shadow: inset 0 4px 0 var(--hazard);
}

.division-card::before,
.study-board article::before,
.protocol-grid div::before,
.field-grid article::before,
.index-grid article::before {
  content: "";
  position: absolute;
  top: 12px;
  right: 12px;
  width: 22px;
  height: 22px;
  border-top: 3px solid var(--hazard);
  border-right: 3px solid var(--hazard);
  pointer-events: none;
}

.division-index {
  display: block;
  margin-bottom: 52px;
  color: var(--blue);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.16em;
}

h3 {
  margin-bottom: 16px;
  font-size: clamp(1.45rem, 2vw, 2rem);
  line-height: 1;
  letter-spacing: 0;
}

.division-card p {
  max-width: 28ch;
  margin-bottom: 0;
  color: var(--muted);
}

.departments {
  background:
    linear-gradient(90deg, rgba(13, 101, 166, 0.07), transparent 38%),
    rgba(238, 241, 237, 0.78);
  backdrop-filter: blur(7px);
}

.department-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.department-list li {
  position: relative;
  min-height: 64px;
  display: flex;
  align-items: center;
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.9);
  border-left: 6px solid var(--hazard);
  clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 14px, 100% 100%, 0 100%);
  box-shadow: inset 0 0 0 1px rgba(8, 13, 16, 0.12);
  color: var(--ink);
  font-size: 0.94rem;
  font-weight: 850;
  line-height: 1.12;
}

.studies {
  background: rgba(21, 25, 28, 0.84);
  color: var(--white);
  backdrop-filter: blur(7px);
}

.studies .copy-stack {
  color: rgba(255, 255, 255, 0.72);
}

.studies-heading {
  margin-bottom: clamp(34px, 6vw, 76px);
}

.study-board {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 1px;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.study-board article {
  position: relative;
  min-height: 300px;
  padding: clamp(22px, 3vw, 34px);
  background:
    linear-gradient(145deg, rgba(215, 255, 47, 0.07), transparent 42%),
    #10161a;
  box-shadow: inset 0 4px 0 rgba(215, 255, 47, 0.72);
}

.study-board span {
  display: block;
  margin-bottom: 58px;
  color: var(--hazard);
  font-size: 0.74rem;
  font-weight: 950;
  letter-spacing: 0.16em;
}

.study-board h3 {
  color: var(--white);
}

.study-board p {
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.68);
}

.study-docket {
  display: grid;
  grid-template-columns: minmax(220px, 0.34fr) minmax(0, 1fr);
  gap: clamp(28px, 6vw, 72px);
  margin-top: clamp(34px, 5vw, 64px);
  padding-top: clamp(28px, 4vw, 46px);
  border-top: 1px solid rgba(255, 255, 255, 0.18);
}

.study-docket h3 {
  max-width: 9ch;
  color: var(--hazard);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 4vw, 4rem);
}

.study-docket ol {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 34px;
  margin: 0;
  padding-left: 1.2rem;
  color: rgba(255, 255, 255, 0.78);
}

.study-docket li {
  padding: 12px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  font-weight: 750;
}

.flash-game {
  display: grid;
  grid-template-columns: minmax(280px, 0.42fr) minmax(0, 1fr);
  gap: clamp(30px, 6vw, 82px);
  align-items: center;
  background:
    radial-gradient(circle at 18% 20%, rgba(215, 255, 47, 0.18), transparent 30%),
    linear-gradient(135deg, rgba(10, 127, 159, 0.12), transparent 45%),
    rgba(8, 13, 16, 0.91);
  color: var(--white);
  backdrop-filter: blur(7px);
  -webkit-backdrop-filter: blur(7px);
}

.game-copy p:not(.section-kicker) {
  max-width: 520px;
  color: rgba(255, 255, 255, 0.72);
  font-size: clamp(1rem, 1.3vw, 1.16rem);
}

.artifact-manifest {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  max-width: 520px;
  margin-top: 24px;
}

.artifact-manifest span {
  padding: 7px 9px;
  background: rgba(215, 255, 47, 0.12);
  color: var(--hazard);
  border: 1px solid rgba(215, 255, 47, 0.48);
  clip-path: polygon(0 0, calc(100% - 8px) 0, 100% 8px, 100% 100%, 0 100%);
  font-family: var(--mono);
  font-size: 0.68rem;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.game-shell {
  background: #10161a;
  border: 3px solid var(--hazard);
  box-shadow:
    0 30px 80px rgba(0, 0, 0, 0.42),
    inset 0 0 0 2px rgba(8, 13, 16, 0.9),
    0 0 44px rgba(215, 255, 47, 0.14);
}

.game-chrome,
.game-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 10px 12px;
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.game-chrome {
  background: linear-gradient(180deg, #f4ffe7, #a9b6a3);
  color: var(--ink);
  border-bottom: 3px solid var(--ink);
}

.game-stage {
  position: relative;
  overflow: hidden;
  background: #05070a;
}

#broval-game {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  image-rendering: pixelated;
  touch-action: none;
}

.game-stage::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: repeating-linear-gradient(
    0deg,
    rgba(255, 255, 255, 0.06),
    rgba(255, 255, 255, 0.06) 1px,
    transparent 1px,
    transparent 4px
  );
  mix-blend-mode: overlay;
}

.game-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  gap: 14px;
  padding: 28px;
  text-align: center;
  background: rgba(5, 7, 10, 0.42);
  color: var(--white);
  pointer-events: none;
}

.game-overlay[hidden] {
  display: none;
}

.game-overlay strong {
  color: var(--hazard);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 5vw, 4.8rem);
  line-height: 0.86;
  text-shadow: 4px 4px 0 #0d65a6, 8px 8px 0 #ba3833;
}

.game-overlay span {
  max-width: 620px;
  justify-self: center;
  font-weight: 850;
}

.game-controls {
  align-items: center;
  background: #0f1418;
  color: rgba(255, 255, 255, 0.72);
  border-top: 3px solid #07090b;
}

.game-controls button {
  min-height: 42px;
  padding: 0 16px;
  background: var(--hazard);
  color: var(--ink);
  border: 2px solid var(--hazard);
  border-radius: 0;
  font: inherit;
  cursor: pointer;
  clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 0 100%);
}

.game-controls button:hover,
.game-controls button:focus-visible {
  background: var(--white);
  border-color: var(--white);
}

.game-controls p {
  margin: 0;
  margin-left: auto;
  text-align: right;
}

.page-hub {
  background:
    linear-gradient(135deg, rgba(215, 255, 47, 0.08), transparent 42%),
    rgba(238, 241, 237, 0.82);
  backdrop-filter: blur(7px);
  -webkit-backdrop-filter: blur(7px);
}

.page-hub h2 {
  margin-bottom: clamp(34px, 6vw, 72px);
}

.route-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.route-grid a {
  position: relative;
  min-height: 280px;
  padding: clamp(22px, 3vw, 34px);
  background:
    linear-gradient(145deg, rgba(215, 255, 47, 0.1), transparent 42%),
    rgba(255, 255, 255, 0.9);
  clip-path: polygon(0 0, calc(100% - 20px) 0, 100% 20px, 100% 100%, 0 100%);
  color: var(--ink);
  text-decoration: none;
}

.route-grid a::before {
  content: "";
  position: absolute;
  top: 12px;
  right: 12px;
  width: 22px;
  height: 22px;
  border-top: 3px solid var(--hazard);
  border-right: 3px solid var(--hazard);
}

.route-grid a:hover,
.route-grid a:focus-visible {
  background:
    linear-gradient(145deg, rgba(215, 255, 47, 0.3), transparent 42%),
    var(--white);
}

.route-grid span {
  display: block;
  margin-bottom: 52px;
  color: var(--red);
  font-family: var(--mono);
  font-size: 0.74rem;
  font-weight: 950;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.route-grid p {
  margin-bottom: 0;
  color: var(--muted);
  font-weight: 750;
}

.office-seal-section {
  display: grid;
  grid-template-columns: minmax(240px, 0.64fr) minmax(0, 1fr);
  gap: clamp(28px, 7vw, 90px);
  align-items: center;
  background:
    linear-gradient(90deg, rgba(8, 13, 16, 0.9), rgba(8, 13, 16, 0.72)),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.035) 0 1px, transparent 1px 10px);
  color: var(--white);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.office-seal-section::before {
  color: rgba(215, 255, 47, 0.5);
  content: "FEDERAL-ISH FORM BO-1776 // COUNTERSIGNED IN BLUE PEN";
}

.office-seal {
  display: grid;
  place-items: center;
}

.office-seal-image {
  display: block;
  width: clamp(220px, 30vw, 380px);
  height: auto;
  border-radius: 50%;
  box-shadow:
    0 26px 70px rgba(0, 0, 0, 0.44),
    0 0 0 1px rgba(215, 255, 47, 0.28);
  transform: rotate(-2deg);
}

.seal-copy h2 {
  max-width: 840px;
  margin-bottom: 32px;
  color: var(--white);
}

.seal-ledger {
  display: grid;
  max-width: 760px;
  margin: 0;
  border: 1px solid rgba(215, 255, 47, 0.35);
  background: rgba(255, 255, 255, 0.08);
}

.seal-ledger div {
  display: grid;
  grid-template-columns: minmax(130px, 0.34fr) 1fr;
  gap: 16px;
  padding: 14px 16px;
  border-bottom: 1px solid rgba(215, 255, 47, 0.22);
}

.seal-ledger div:last-child {
  border-bottom: 0;
}

.seal-ledger dt,
.seal-ledger dd {
  margin: 0;
}

.seal-ledger dt {
  color: var(--hazard);
  font-family: var(--mono);
  font-size: 0.68rem;
  font-weight: 950;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.seal-ledger dd {
  color: rgba(255, 255, 255, 0.82);
  font-weight: 850;
}

.artifact-lab {
  background:
    radial-gradient(circle at 82% 12%, rgba(215, 255, 47, 0.12), transparent 28%),
    linear-gradient(135deg, rgba(10, 127, 159, 0.12), transparent 44%),
    rgba(238, 241, 237, 0.84);
  backdrop-filter: blur(7px);
  -webkit-backdrop-filter: blur(7px);
}

.artifact-heading {
  display: grid;
  gap: 24px;
  margin-bottom: clamp(34px, 6vw, 72px);
}

.artifact-heading .section-kicker {
  grid-column: 1 / -1;
  margin-bottom: 0;
  justify-self: start;
}

.artifact-heading h2 {
  max-width: 980px;
}

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

.lab-widget {
  position: relative;
  min-height: 330px;
  padding: 18px;
  background:
    linear-gradient(145deg, rgba(215, 255, 47, 0.08), transparent 38%),
    #10161a;
  color: var(--white);
  border: 2px solid rgba(215, 255, 47, 0.5);
  clip-path: polygon(0 0, calc(100% - 22px) 0, 100% 22px, 100% 100%, 0 100%);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.22);
}

.lab-widget::before {
  content: "";
  position: absolute;
  top: 12px;
  right: 12px;
  width: 20px;
  height: 20px;
  border-top: 3px solid var(--hazard);
  border-right: 3px solid var(--hazard);
}

.widget-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin: -6px -6px 18px;
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid rgba(215, 255, 47, 0.24);
  font-family: var(--mono);
  font-size: 0.68rem;
  font-weight: 950;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.widget-title strong {
  color: var(--hazard);
  white-space: nowrap;
}

.specimen-buttons,
.quiz-options,
.form-buttons,
.sound-buttons {
  display: grid;
  gap: 8px;
}

.specimen-buttons {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.specimen-buttons button,
.quiz-options button,
.incident-ticker button,
.form-buttons button,
.sound-buttons button {
  min-height: 42px;
  padding: 8px 10px;
  background: #eef1ed;
  color: var(--ink);
  border: 2px solid var(--ink);
  clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 0 100%);
  font: inherit;
  font-family: var(--mono);
  font-size: 0.68rem;
  font-weight: 950;
  letter-spacing: 0.06em;
  text-align: left;
  text-transform: uppercase;
  cursor: pointer;
}

.specimen-buttons button:hover,
.specimen-buttons button:focus-visible,
.quiz-options button:hover,
.quiz-options button:focus-visible,
.incident-ticker button:hover,
.incident-ticker button:focus-visible,
.form-buttons button:hover,
.form-buttons button:focus-visible,
.sound-buttons button:hover,
.sound-buttons button:focus-visible {
  background: var(--hazard);
  box-shadow: 4px 4px 0 rgba(255, 255, 255, 0.16);
}

.specimen-report,
.quiz-result,
.form-preview {
  margin-top: 16px;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.06);
}

.specimen-report span,
.quiz-result span,
.form-preview span,
.terminal-widget label span {
  display: block;
  margin-bottom: 8px;
  color: var(--hazard);
  font-family: var(--mono);
  font-size: 0.66rem;
  font-weight: 950;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.specimen-report h3,
.certification-quiz h3,
.quiz-result strong {
  margin-bottom: 10px;
  color: var(--hazard);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.45rem, 2vw, 2.25rem);
  line-height: 0.96;
}

.specimen-report p,
.forms-locker p,
.soundboard p {
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.72);
  font-weight: 750;
}

.form-preview pre {
  max-height: 210px;
  margin: 0;
  padding: 12px;
  overflow: auto;
  white-space: pre-wrap;
  background: #eef1ed;
  color: var(--ink);
  border: 2px solid var(--ink);
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 800;
  line-height: 1.45;
}

.form-preview a {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  margin-top: 12px;
  padding: 0 12px;
  background: var(--hazard);
  color: var(--ink);
  border: 2px solid var(--hazard);
  clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 0 100%);
  font-family: var(--mono);
  font-size: 0.68rem;
  font-weight: 950;
  letter-spacing: 0.06em;
  text-decoration: none;
  text-transform: uppercase;
}

.form-preview a:hover,
.form-preview a:focus-visible {
  background: var(--white);
  border-color: var(--white);
}

.certification-quiz h3 {
  color: var(--white);
}

.incident-ticker ul {
  display: grid;
  gap: 10px;
  max-height: 220px;
  padding: 0;
  margin: 0 0 16px;
  overflow: auto;
  list-style: none;
}

.incident-ticker li {
  padding: 10px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.78);
  font-family: var(--mono);
  font-size: 0.78rem;
  font-weight: 800;
}

.terminal-screen {
  min-height: 178px;
  max-height: 220px;
  padding: 14px;
  overflow: auto;
  background: #05070a;
  border: 1px solid rgba(215, 255, 47, 0.36);
  color: var(--hazard);
  font-family: var(--mono);
  font-size: 0.78rem;
  font-weight: 800;
}

.terminal-screen p {
  margin-bottom: 8px;
}

.terminal-widget label {
  display: grid;
  gap: 8px;
  margin-top: 14px;
}

.terminal-widget input {
  min-height: 44px;
  padding: 0 12px;
  background: #eef1ed;
  color: var(--ink);
  border: 2px solid var(--ink);
  font: inherit;
  font-family: var(--mono);
  font-weight: 900;
}

.personnel-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  margin-top: 16px;
  background: var(--line);
  border: 1px solid var(--line);
}

.personnel-strip article {
  min-height: 240px;
  padding: clamp(20px, 3vw, 28px);
  background:
    linear-gradient(145deg, rgba(215, 255, 47, 0.1), transparent 40%),
    rgba(255, 255, 255, 0.88);
}

.personnel-strip span {
  display: block;
  margin-bottom: 36px;
  color: var(--red);
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 950;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.personnel-strip p {
  margin-bottom: 0;
  color: var(--muted);
  font-weight: 750;
}

.field-console {
  display: grid;
  grid-template-columns: minmax(280px, 0.38fr) minmax(0, 1fr);
  gap: clamp(30px, 6vw, 82px);
  align-items: center;
  background:
    linear-gradient(130deg, rgba(215, 255, 47, 0.08), transparent 44%),
    rgba(238, 241, 237, 0.78);
  backdrop-filter: blur(7px);
  -webkit-backdrop-filter: blur(7px);
}

.console-copy p:not(.section-kicker) {
  max-width: 520px;
  color: var(--muted);
  font-size: clamp(1rem, 1.3vw, 1.16rem);
}

.console-app {
  background: #10161a;
  border: 2px solid var(--hazard);
  box-shadow: var(--shadow), 0 0 34px rgba(215, 255, 47, 0.12);
}

.console-titlebar,
.console-tabs,
.memo-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.console-titlebar {
  justify-content: space-between;
  padding: 12px 14px;
  background: var(--ink);
  color: var(--white);
  border-bottom: 1px solid rgba(215, 255, 47, 0.28);
}

.console-tabs {
  padding: 10px;
  background: #cbd4d0;
  border-bottom: 2px solid var(--ink);
}

.console-tabs button,
.memo-actions button {
  min-height: 38px;
  padding: 0 14px;
  background: var(--white);
  color: var(--ink);
  border: 2px solid var(--ink);
  border-radius: 0;
  font: inherit;
  cursor: pointer;
  clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 0 100%);
}

.console-tabs button.is-active,
.console-tabs button:hover,
.console-tabs button:focus-visible,
.memo-actions button:hover,
.memo-actions button:focus-visible {
  background: var(--hazard);
  box-shadow: 4px 4px 0 var(--ink);
}

.console-screen {
  min-height: 470px;
  padding: clamp(18px, 3vw, 28px);
  color: var(--white);
}

.console-pane {
  display: none;
}

.console-pane.is-active {
  display: grid;
}

.console-pane[data-console-pane="audit"] {
  grid-template-columns: minmax(0, 1fr) minmax(260px, 0.78fr);
  gap: clamp(18px, 3vw, 34px);
}

.console-form,
.console-output,
.loadout-grid,
.loadout-output {
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.06);
}

.console-form {
  display: grid;
  gap: 18px;
  padding: 18px;
}

.console-form label,
.console-form fieldset {
  margin: 0;
}

.console-form label {
  display: grid;
  gap: 8px;
}

.console-form span,
.console-form legend,
.loadout-output span {
  color: var(--hazard);
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 850;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.console-form input[type="range"] {
  accent-color: var(--hazard);
}

.console-form select {
  min-height: 44px;
  padding: 0 12px;
  background: var(--white);
  color: var(--ink);
  border: 2px solid var(--ink);
  font: inherit;
  font-weight: 750;
}

.console-form fieldset {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.console-form fieldset label,
.loadout-grid label {
  display: flex;
  align-items: center;
  gap: 9px;
  color: rgba(255, 255, 255, 0.78);
  font-weight: 750;
}

.console-form input[type="checkbox"],
.loadout-grid input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--hazard);
}

.console-output {
  display: grid;
  grid-template-columns: 1fr;
}

.console-output div {
  padding: 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.13);
}

.console-output div:last-child {
  border-bottom: 0;
}

.console-output span {
  display: block;
  margin-bottom: 8px;
  color: rgba(255, 255, 255, 0.55);
  font-family: var(--mono);
  font-size: 0.68rem;
  font-weight: 850;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.console-output strong,
.loadout-output strong {
  display: block;
  color: var(--hazard);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.6rem, 3vw, 3.2rem);
  line-height: 0.92;
}

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

.loadout-grid label {
  min-height: 94px;
  padding: 18px;
  background: rgba(255, 255, 255, 0.06);
}

.loadout-output {
  margin-top: 18px;
  padding: 22px;
}

.loadout-output p {
  margin: 12px 0 0;
  color: rgba(255, 255, 255, 0.7);
  font-weight: 750;
}

.console-pane[data-console-pane="memo"] textarea {
  width: 100%;
  min-height: 300px;
  resize: vertical;
  padding: 18px;
  background: #f5f3ee;
  color: var(--ink);
  border: 2px solid var(--ink);
  font-family: var(--mono);
  font-size: 0.9rem;
  line-height: 1.5;
}

.memo-actions {
  margin-top: 16px;
  color: rgba(255, 255, 255, 0.68);
}

.ledger {
  display: grid;
  grid-template-columns: minmax(280px, 0.55fr) minmax(0, 1fr);
  gap: clamp(32px, 6vw, 84px);
  align-items: start;
  background:
    linear-gradient(120deg, rgba(10, 127, 159, 0.08), transparent 42%),
    rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(7px);
}

.ledger h2 {
  font-size: clamp(2.4rem, 4.8vw, 4.8rem);
  margin-bottom: 20px;
}

.ledger-note {
  margin-bottom: 0;
}

.ledger-table {
  border-top: 4px solid var(--hazard);
}

.ledger-table div {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) 0.45fr 0.5fr;
  gap: 18px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}

.ledger-table div:first-child {
  color: var(--blue);
  font-size: 0.72rem;
  font-weight: 950;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.ledger-table span {
  min-width: 0;
}

.classified-panel {
  grid-column: 2;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  margin-top: 28px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.finding-button {
  min-height: 48px;
  padding: 0 18px;
  background: var(--ink);
  color: var(--white);
  border: 2px solid var(--ink);
  border-radius: 0;
  font: inherit;
  font-weight: 950;
  cursor: pointer;
  clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 0 100%);
  transition:
    background 160ms ease,
    color 160ms ease,
    transform 160ms ease;
}

.finding-button:hover,
.finding-button:focus-visible {
  background: var(--hazard);
  color: var(--ink);
  transform: translateY(-2px);
}

#classified-finding {
  margin: 0;
  color: var(--muted);
  font-weight: 750;
}

.publications {
  background: rgba(245, 243, 238, 0.8);
  backdrop-filter: blur(7px);
}

.publication-stack {
  border-top: 2px solid var(--ink);
}

.publication-stack article {
  display: grid;
  grid-template-columns: 86px minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}

.publication-stack span {
  color: var(--blue);
  font-size: 0.72rem;
  font-weight: 950;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.publication-stack h3 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.45rem, 2vw, 2.15rem);
  line-height: 1.05;
}

.protocol {
  background:
    linear-gradient(135deg, rgba(10, 127, 159, 0.16), rgba(215, 255, 47, 0.1)),
    rgba(204, 213, 213, 0.8);
  backdrop-filter: blur(7px);
}

.protocol h2 {
  max-width: 1080px;
}

.protocol-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-top: clamp(34px, 6vw, 70px);
}

.protocol-grid div {
  position: relative;
  min-height: 210px;
  padding: 24px;
  background:
    linear-gradient(145deg, rgba(215, 255, 47, 0.12), transparent 44%),
    rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(21, 25, 28, 0.1);
  box-shadow: var(--shadow);
}

.protocol-grid span {
  display: block;
  margin-bottom: 34px;
  color: var(--red);
  font-weight: 950;
}

.protocol-grid p {
  margin-bottom: 0;
  font-size: 1.12rem;
  font-weight: 720;
  line-height: 1.18;
}

.broval-index {
  background:
    radial-gradient(circle at 90% 10%, rgba(215, 255, 47, 0.12), transparent 30%),
    rgba(8, 13, 16, 0.88);
  color: var(--white);
  backdrop-filter: blur(7px);
}

.broval-index h2 {
  margin-bottom: clamp(34px, 6vw, 70px);
}

.index-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.index-grid article {
  position: relative;
  min-height: 260px;
  padding: clamp(22px, 3vw, 34px);
  background:
    linear-gradient(180deg, rgba(255, 203, 73, 0.13), rgba(255, 255, 255, 0.03)),
    #10161a;
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.index-grid span {
  display: block;
  margin-bottom: 38px;
  color: var(--hazard);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(3.2rem, 6vw, 6rem);
  line-height: 0.8;
  transition: color 180ms ease;
}

.index-grid p {
  margin: 0;
  color: rgba(255, 255, 255, 0.7);
}

.field-lab {
  background:
    linear-gradient(110deg, rgba(215, 255, 47, 0.08), transparent 34%),
    rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(7px);
}

.field-lab h2 {
  margin-bottom: clamp(34px, 6vw, 70px);
}

.field-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.field-grid article {
  position: relative;
  min-height: 250px;
  padding: clamp(22px, 3vw, 32px);
  background: var(--paper);
  clip-path: polygon(0 0, calc(100% - 18px) 0, 100% 18px, 100% 100%, 0 100%);
}

.field-grid span {
  display: block;
  margin-bottom: 42px;
  color: var(--red);
  font-size: 0.74rem;
  font-weight: 950;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.field-grid p {
  margin: 0;
  color: var(--muted);
}

.research-section,
.maxims,
.departments,
.ledger,
.publications,
.protocol,
.field-lab {
  -webkit-backdrop-filter: blur(7px);
}

.studies,
.broval-index,
.contact {
  -webkit-backdrop-filter: blur(7px);
}

.contact {
  position: relative;
  background:
    linear-gradient(135deg, rgba(10, 127, 159, 0.14), transparent 44%),
    rgba(8, 13, 16, 0.89);
  color: var(--white);
  overflow: hidden;
  backdrop-filter: blur(7px);
}

.contact::after {
  content: "APPROVED FOR FIELD SUBMISSION";
  position: absolute;
  right: clamp(18px, 7vw, 92px);
  bottom: clamp(28px, 7vw, 80px);
  color: rgba(255, 203, 73, 0.14);
  border: 3px solid currentColor;
  padding: 12px 16px;
  font-family: var(--mono);
  font-size: clamp(1rem, 2vw, 2.2rem);
  font-weight: 950;
  letter-spacing: 0.08em;
  transform: rotate(-8deg);
  pointer-events: none;
}

.contact h2 {
  max-width: 980px;
  margin-bottom: 24px;
}

.contact-copy {
  max-width: 760px;
  margin-bottom: 34px;
  color: rgba(255, 255, 255, 0.72);
  font-size: clamp(1rem, 1.3vw, 1.16rem);
}

.contact-link {
  display: inline-flex;
  align-items: center;
  min-height: 52px;
  padding: 0 20px;
  background: var(--hazard);
  color: var(--ink);
  border: 2px solid var(--hazard);
  clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 14px, 100% 100%, 0 100%);
  text-decoration: none;
  font-weight: 950;
}

.contact-link:hover,
.contact-link:focus-visible {
  background: var(--white);
  border-color: var(--white);
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 22px clamp(20px, 6vw, 80px);
  background: #0a0d10;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.76rem;
  font-weight: 850;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

@media (max-width: 1050px) {
  .site-header {
    gap: 14px;
    padding-inline: clamp(14px, 2.8vw, 28px);
  }

  .brand {
    font-size: 0.76rem;
  }

  .brand-mark {
    width: 34px;
    height: 34px;
  }

  .nav-links {
    gap: clamp(9px, 1.7vw, 16px);
    font-size: 0.66rem;
  }
}

@media (max-width: 1100px) {
  .artifact-heading,
  .artifact-workbench,
  .route-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .artifact-heading .section-kicker {
    grid-column: 1 / -1;
  }

  .artifact-heading h2 {
    grid-column: 1 / -1;
  }

  .personnel-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .staff-grid {
    grid-template-columns: 1fr;
  }

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

  .field-console {
    grid-template-columns: 1fr;
  }

  .console-copy p:not(.section-kicker) {
    max-width: 720px;
  }

  .console-pane[data-console-pane="audit"] {
    grid-template-columns: 1fr;
  }

  .console-form fieldset {
    grid-template-columns: repeat(2, minmax(180px, 1fr));
  }
}

@media (max-width: 820px) {
  .lab-telemetry {
    display: none;
  }

  .site-header {
    min-height: 64px;
    align-items: flex-start;
  }

  .brand {
    max-width: 150px;
  }

  .nav-links {
    gap: 12px;
    font-size: 0.62rem;
  }

  .hero {
    min-height: 92svh;
  }

  .hero-image {
    object-position: 48% 48%;
  }

  .hero-scrim {
    background:
      linear-gradient(90deg, rgba(7, 11, 15, 0.78), rgba(7, 11, 15, 0.34)),
      linear-gradient(0deg, rgba(7, 11, 15, 0.72) 0%, rgba(7, 11, 15, 0.05) 44%);
  }

  .hero-content {
    padding-top: 116px;
  }

  .hero-seal {
    top: 104px;
    right: 18px;
    bottom: auto;
    width: 94px;
  }

  .hero-briefing {
    grid-template-columns: 1fr;
    max-width: 320px;
  }

  .briefing-strip {
    align-items: flex-start;
    flex-direction: column;
  }

  h1 {
    max-width: 100%;
    font-size: clamp(3.35rem, 18vw, 6rem);
    line-height: 0.86;
  }

  .split,
  .divisions,
  .artifact-heading,
  .artifact-workbench,
  .route-grid,
  .protocol-grid,
  .study-board,
  .ledger,
  .maxim-strip,
  .department-list,
  .study-docket,
  .study-docket ol,
  .flash-game,
  .office-seal-section,
  .field-console,
  .index-grid,
  .field-grid {
    grid-template-columns: 1fr;
  }

  .classified-panel {
    grid-column: auto;
    grid-template-columns: 1fr;
  }

  .personnel-strip {
    grid-template-columns: 1fr;
  }

  .specimen-buttons {
    grid-template-columns: 1fr;
  }

  .division-card {
    min-height: 230px;
  }

  .study-board article {
    min-height: 230px;
  }

  .study-docket h3 {
    max-width: none;
  }

  .study-board span {
    margin-bottom: 32px;
  }

  .game-controls {
    align-items: stretch;
    flex-direction: column;
  }

  .game-controls p {
    margin-left: 0;
    text-align: left;
  }

  .console-pane[data-console-pane="audit"],
  .loadout-grid,
  .console-form fieldset {
    grid-template-columns: 1fr;
  }

  .console-titlebar,
  .memo-actions {
    align-items: flex-start;
    flex-direction: column;
  }

  .protocol-grid {
    gap: 12px;
  }

  .protocol-grid div {
    min-height: 150px;
  }

  .division-index {
    margin-bottom: 32px;
  }

  .site-footer {
    flex-direction: column;
  }
}

@media (max-width: 540px) {
  .site-header {
    position: absolute;
    flex-direction: column;
    gap: 14px;
    mix-blend-mode: normal;
  }

  .nav-links {
    display: grid;
    width: 100%;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px 12px;
    justify-content: initial;
  }

  .nav-links a {
    font-size: 0.58rem;
    text-align: left;
  }

  .hero-image {
    object-position: 51% 50%;
  }

  .hero-content {
    padding-top: 154px;
  }

  .hero-copy {
    max-width: 360px;
  }

  .hero-seal {
    display: none;
  }

  .hero-briefing {
    margin-top: 22px;
  }

  .contact-link {
    width: 100%;
    justify-content: center;
    padding-inline: 12px;
    font-size: 0.92rem;
  }

  .ledger-table div {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .seal-ledger div {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .ledger-table div:first-child {
    display: none;
  }

  .publication-stack article {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .game-overlay {
    gap: 8px;
    padding: 12px;
  }

  .game-overlay strong {
    font-size: clamp(1.35rem, 8.5vw, 2.2rem);
    text-shadow: 2px 2px 0 #0d65a6, 4px 4px 0 #ba3833;
  }

  .game-overlay span {
    font-size: 0.78rem;
    line-height: 1.18;
  }

  .contact::after {
    display: none;
  }
}

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

  .finding-button,
  .index-grid span {
    transition: none;
  }
}
