:root {
  color-scheme: light;
  --background: #a19f97;
  --text: #22271f;
  --muted: #30362c;
  --yellow: #eab72a;
  --panel-light: #e5e5dccc;
  --panel-dark: #c6c7bdeb;
  --page-width: 1600px;
  --gutter: clamp(20px, 5.5vw, 100px);
  font-family: Arial, Helvetica, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 26px; }
body {
  margin: 0;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  color: var(--text);
  background: var(--background) url('/assets/sector51-gray-texture.webp') 0 0 / 746px 527px repeat;
}
a { color: inherit; }
img { display: block; max-width: 100%; height: auto; }
figure, p, h1, h2, h3, h4 { margin: 0; }
button, input { font: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 3px solid #8b5a00; outline-offset: 4px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.skip-link { position: fixed; left: 1rem; top: 1rem; z-index: 10; padding: .75rem 1rem; background: var(--yellow); color: #101113; font-weight: 700; transform: translateY(-200%); }
.skip-link:focus { transform: translateY(0); }
.site-header, .site-main, .site-footer { width: min(calc(100% - var(--gutter) * 2), var(--page-width)); margin-inline: auto; }
.site-header { display: flex; align-items: center; justify-content: space-between; gap: 2rem; padding-block: 30px 20px; }
.brand { display: block; width: 260px; max-width: 56%; }
.brand img { width: 100%; }
.site-header nav { display: flex; align-items: center; gap: clamp(18px, 3vw, 44px); flex-shrink: 0; }
.contact-link { display: inline-block; font-size: .9375rem; line-height: 1.5; font-weight: 700; text-decoration: underline; text-underline-offset: .3em; text-decoration-thickness: 1px; }
.contact-link:hover { color: #654200; }
.site-main { padding-block: 12px 56px; }
.content-section { width: min(100%, 1120px); margin-inline: auto; margin-top: 56px; }
.intro-section { margin-top: 0; }
.section-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 28px; margin-bottom: 22px; }
.eyebrow, .section-number, .record-header, .playback-header, .image-loading, .panel-kicker, .panel-detail, .footnote-label, .pipeline-number, .pipeline-list h4, .pod-kicker, .pod-detail, .pod-dimensions > p > span { font-family: 'Courier New', Courier, monospace; }
.eyebrow { display: flex; align-items: center; gap: 10px; font-size: .6875rem; font-weight: 700; letter-spacing: .05em; margin-bottom: 13px; }
.section-number { background: var(--text); color: var(--yellow); padding: 5px 6px; }
.section-heading h1, .section-heading h2 { font-family: 'Arial Black', Arial, Helvetica, sans-serif; font-size: clamp(26px, 2.7vw, 40px); font-weight: 900; line-height: 1.12; letter-spacing: -.035em; }
.section-intro { max-width: 215px; font-size: .875rem; line-height: 1.55; padding-bottom: 2px; }
.content-panel {
  --image-column: 340px;
  --panel-gap: 32px;
  --panel-padding: 24px;
  --panel-tone: var(--panel-light);
  padding: var(--panel-padding);
  border: 1px solid #3d46302b;
  border-radius: 4px;
  background: var(--panel-tone);
  box-shadow: 0 7px 20px #22291b20;
  position: relative;
}
.panel-dark { --panel-tone: var(--panel-dark); }
.content-grid, .pod-panel { display: grid; grid-template-columns: minmax(0, var(--image-column)) minmax(0, 1fr); gap: var(--panel-gap); align-items: center; }
.square-frame { min-width: 0; width: 100%; background: #20271e; border: 1px solid #4c5640; box-shadow: 0 3px 10px #22291b26; }
.square-frame img { width: 100%; height: auto; aspect-ratio: 1; object-fit: contain; }
.architecture-image a { display: block; }
.panel-copy { min-width: 0; }
.panel-copy h3 { font-family: 'Arial Black', Arial, Helvetica, sans-serif; font-size: clamp(24px, 2vw, 30px); line-height: 1.12; font-weight: 900; letter-spacing: -.025em; margin-bottom: 14px; }
.panel-copy > p:not(.panel-kicker):not(.panel-detail) { color: #2e3529; font-size: 1rem; line-height: 1.65; }
.panel-copy > p + p { margin-top: 12px; }
.panel-kicker { color: #353e2c; font-size: .6875rem; font-weight: 700; letter-spacing: .045em; line-height: 1.5; margin-bottom: 14px; }
.sector-logo { width: 240px; max-width: 75%; margin-bottom: 15px; }
.panel-detail { margin-top: 20px !important; padding-top: 15px; border-top: 1px solid #3f493947; font-size: .625rem; font-weight: 700; line-height: 1.7; letter-spacing: .03em; }
.pipeline-list { list-style: none; margin: 18px 0; padding: 0; }
.pipeline-list li { display: flex; align-items: flex-start; gap: 12px; padding-block: 12px; border-top: 1px solid #3f493938; }
.pipeline-list li:last-child { border-bottom: 1px solid #3f493938; }
.pipeline-number { flex: 0 0 27px; display: grid; place-items: center; min-height: 27px; color: var(--yellow); background: var(--text); font-size: .625rem; font-weight: 700; }
.pipeline-list h4 { font-size: .6875rem; font-weight: 700; line-height: 1.55; margin-bottom: 5px; overflow-wrap: anywhere; }
.pipeline-list p { font-size: .875rem; line-height: 1.55; }
.diagram-link { display: inline-block; margin-top: 16px; padding-block: 5px; font-size: .75rem; font-weight: 700; text-underline-offset: .25em; }
.diagram-link:hover { color: #654200; }
.story-player { row-gap: 20px; }
.story-image-wrap { position: relative; aspect-ratio: 1; }
.story-image-wrap img { width: 100%; height: 100%; aspect-ratio: 1; object-fit: contain; }
.image-loading { position: absolute; left: 10px; bottom: 10px; max-width: calc(100% - 20px); color: var(--yellow); background: #141813eb; padding: 7px 9px; font-size: .625rem; line-height: 1.5; }
.story-content { min-width: 0; }
.story-record { min-height: 275px; }
.record-header { display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px; color: #4a5140; font-size: .625rem; font-weight: 700; line-height: 1.5; text-transform: uppercase; letter-spacing: .035em; margin-bottom: 13px; }
.record-header strong { color: #685009; }
.record-divider { color: #777d67; }
.story-record h3 { font-family: 'Arial Black', Arial, Helvetica, sans-serif; font-size: clamp(24px, 2vw, 30px); line-height: 1.12; font-weight: 900; letter-spacing: -.025em; text-transform: uppercase; overflow-wrap: break-word; margin-bottom: 14px; }
.story-copy { color: #2e3529; font-size: 1rem; line-height: 1.65; }
.story-copy p + p { margin-top: 12px; }
.console-footnote { grid-column: 1 / -1; display: flex; align-items: center; justify-content: center; gap: 20px; padding-top: 18px; border-top: 1px solid #505c3838; }
.console-footnote p { font-size: .875rem; line-height: 1.6; text-align: center; }
.footnote-label { display: block; font-size: .625rem; font-weight: 700; letter-spacing: .06em; margin-bottom: 5px; }
.hazard-stripes { flex: 0 0 44px; height: 40px; background: repeating-linear-gradient(135deg, var(--text) 0 7px, var(--yellow) 7px 14px); border: 1px solid #424a37; }
.archive-controls { margin-top: 12px; padding-top: 12px; border-top: 1px solid #505c3838; }
.playback-header { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; font-size: .625rem; font-weight: 700; letter-spacing: .05em; }
.playback-header label { cursor: pointer; }
#chapter-counter { color: #685009; white-space: nowrap; }
.range-wrap { position: relative; height: 52px; margin-top: 5px; }
.range-track { position: absolute; inset-inline: 22px; top: 23px; height: 6px; background: #6d775642; border: 1px solid #5c684440; border-radius: 2px; }
.range-fill { display: block; height: 100%; width: calc(100% * var(--progress)); background: #9e7500; }
.scrubber-grip { display: block; position: absolute; top: 4px; left: calc(22px + (100% - 44px) * var(--progress)); transform: translateX(-50%); width: 44px; height: 44px; filter: drop-shadow(0 2px 3px #0005); pointer-events: none; }
.scrubber-grip svg { width: 100%; height: 100%; }
.story-range { position: absolute; inset: 4px 0; width: 100%; height: 44px; margin: 0; padding: 0; opacity: 0; cursor: grab; touch-action: pan-y; -webkit-appearance: none; appearance: none; }
.story-range:active { cursor: grabbing; }
.story-range::-webkit-slider-thumb { -webkit-appearance: none; appearance: none; width: 44px; height: 44px; }
.story-range::-moz-range-thumb { width: 44px; height: 44px; border: none; }
.story-range::-moz-range-track { background: transparent; height: 6px; }
.range-wrap:focus-within .scrubber-grip { outline: 2px solid #242b1e; outline-offset: 3px; border-radius: 11px; }
.step-buttons { display: flex; justify-content: space-between; gap: 20px; }
.step-button { min-height: 36px; min-width: 58px; padding: 6px 0; border: none; color: #2b3522; background: transparent; font-size: .75rem; font-weight: 700; text-decoration: underline; text-underline-offset: .25em; }
.step-button:first-child { text-align: left; }
.step-button:last-child { text-align: right; }
.step-button:disabled { opacity: .35; cursor: default; text-decoration: none; }
.step-button:hover:enabled { color: #765000; }
.story-fallback { background: #eeeddf; padding: 20px; margin-top: 20px; }
.story-fallback details { border-top: 1px solid #babba9; margin-top: 20px; padding-top: 15px; }
.story-fallback summary { font-weight: 700; cursor: pointer; }
.story-fallback img { max-width: 340px; margin-block: 16px; }
.story-fallback p { line-height: 1.6; margin-block: 10px; }
.pod-tabs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 9px; }
.pod-tabs button { min-height: 46px; padding: 12px 14px; border: 1px solid #3f49395c; border-radius: 3px; background: #dddcd2b8; color: #283122; font-size: .8125rem; font-weight: 800; line-height: 1.3; letter-spacing: .025em; text-transform: uppercase; box-shadow: 0 1px 0 #ffffef50 inset; }
.pod-tabs button:hover { background: #edebdd; border-color: #4d5a38; }
.pod-tabs button[aria-selected='true'] { color: #232c1d; background: var(--yellow); border-color: #9d7c18; box-shadow: 0 2px 0 #ffedb475 inset, 0 3px 10px #483e1920; }
.pod-panel { margin-top: 24px; min-height: 340px; }
.pod-panel:focus-visible { outline: 2px solid #77600f; outline-offset: 5px; }
.pod-copy { min-width: 0; }
.pod-kicker { font-size: .6875rem; line-height: 1.5; font-weight: 700; letter-spacing: .045em; color: #353e2c; margin-bottom: 17px; }
.pod-copy h3 { font-family: 'Arial Black', Arial, Helvetica, sans-serif; font-size: clamp(24px, 2vw, 30px); line-height: 1.12; font-weight: 900; letter-spacing: -.025em; margin-bottom: 18px; }
.pod-copy > p:not(.pod-kicker):not(.pod-detail) { font-size: 1rem; line-height: 1.65; color: #252e20; }
.pod-copy > p + p { margin-top: 14px; }
.pod-copy .pod-detail { border-top: 1px solid #3f493947; margin-top: 22px; padding-top: 16px; color: #3b432e; font-size: .625rem; line-height: 1.6; font-weight: 700; }
.pod-dimensions { display: flex; gap: 40px; margin: 0 0 20px; }
.pod-dimensions p { display: flex; flex-direction: column; gap: 6px; }
.pod-dimensions strong { font-size: 2.125rem; line-height: 1; letter-spacing: -.03em; }
.pod-dimensions strong span { font-size: 1rem; font-weight: 400; letter-spacing: 0; }
.pod-dimensions > p > span { font-size: .625rem; font-weight: 700; letter-spacing: .06em; }
.site-footer { margin-top: auto; padding-block: 30px 38px; display: flex; justify-content: space-between; align-items: flex-start; gap: 2rem; border-top: 1px solid #282b254f; }
.footer-brand, .footer-hidbox { display: flex; flex-direction: column; gap: .85rem; }
.footer-brand { align-items: flex-start; }
.footer-hidbox { align-items: flex-end; }
.footer-name { font-size: 1.35rem; line-height: 1.2; font-weight: 800; letter-spacing: .085em; }
.trademark { display: inline-block; font-size: .5em; vertical-align: top; margin-left: .1em; }
.copyright { color: var(--muted); font-size: .875rem; line-height: 1.55; }
.hidbox-brand { display: block; width: 155px; }
.hidbox-brand img { width: 100%; }
@media (max-width: 1100px) {
  .content-panel { --image-column: 300px; --panel-gap: 26px; --panel-padding: 20px; }
  .story-record { min-height: 310px; }
  .story-copy { font-size: .9375rem; }
  .section-heading h1, .section-heading h2 { font-size: 29px; }
  .panel-copy > p:not(.panel-kicker):not(.panel-detail) { font-size: .9375rem; }
  .pod-panel { min-height: 340px; }
  .pod-copy h3 { font-size: 28px; }
  .pod-copy > p:not(.pod-kicker):not(.pod-detail) { font-size: .9375rem; }
}
@media (max-width: 900px) {
  .content-panel { --image-column: 260px; --panel-gap: 22px; --panel-padding: 18px; }
  .story-record { min-height: 330px; }
  .story-record h3 { font-size: 24px; }
  .section-intro { max-width: 190px; font-size: .8125rem; }
  .pod-copy h3 { font-size: 26px; }
  .panel-copy h3 { font-size: 26px; }
}
@media (max-width: 720px) {
  .section-heading { display: block; }
  .section-heading h1, .section-heading h2 { font-size: clamp(26px, 5vw, 32px); }
  .section-intro { max-width: none; font-size: .875rem; margin-top: 12px; }
  .section-intro br { display: none; }
  .section-intro br::after { content: ' '; }
  .content-panel { --panel-gap: 22px; --panel-padding: 20px; }
  .content-grid, .pod-panel { grid-template-columns: minmax(0, 1fr); }
  .square-frame { width: min(100%, 280px); margin-inline: auto; }
  .story-record { min-height: 0; }
  .story-record h3 { font-size: 26px; }
  .archive-controls { margin-top: 20px; }
  .pod-panel { min-height: 0; margin-top: 22px; }
  .pod-copy h3, .panel-copy h3 { font-size: 26px; }
  .pod-tabs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
  :root { --gutter: 20px; }
  .site-header { padding-block: 23px 14px; gap: 14px; }
  .brand { width: 188px; max-width: 55%; }
  .site-header nav { gap: 14px; }
  .site-header .contact-link { font-size: .75rem; }
  .site-main { padding-block: 10px 40px; }
  .content-section { margin-top: 38px; }
  .intro-section { margin-top: 0; }
  .section-heading { margin-bottom: 18px; }
  .eyebrow { font-size: .625rem; margin-bottom: 12px; }
  .content-panel { --panel-padding: 16px; --panel-gap: 22px; }
  .square-frame { width: min(100%, 250px); }
  .record-header { gap: 8px; font-size: .5625rem; }
  .story-record h3 { font-size: 24px; }
  .story-copy { font-size: .9375rem; }
  .pod-tabs { gap: 8px; }
  .pod-tabs button { font-size: .75rem; padding: 12px 10px; }
  .pod-panel { gap: 18px; }
  .pod-copy h3, .panel-copy h3 { font-size: 24px; margin-bottom: 18px; }
  .pod-kicker { font-size: .625rem; margin-bottom: 13px; }
  .sector-logo { width: 210px; }
  .console-footnote { gap: 12px; }
  .console-footnote p { font-size: .8125rem; }
  .hazard-stripes { flex-basis: 20px; height: 44px; }
  .pipeline-list li { gap: 10px; }
  .pipeline-list h4 { font-size: .625rem; }
  .site-footer { padding-block: 25px 30px; gap: 1rem; }
  .footer-name { font-size: 1.025rem; letter-spacing: .04em; }
  .copyright { font-size: .75rem; }
  .hidbox-brand { width: 120px; }
  .footer-hidbox .contact-link { font-size: .8125rem; }
}
@media (max-width: 360px) {
  .site-header nav { gap: 9px; }
  .brand { max-width: 49%; }
  .site-header .contact-link { font-size: .6875rem; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
