.restricted-archive {
  --restricted-red: #b74039;
  --restricted-red-bright: #e25a4f;
  --restricted-paper: #d8c9a5;
  --restricted-ink: #171817;
  --restricted-signal: #75bdb5;
  position: relative;
  isolation: isolate;
  min-height: 100vh;
  overflow: clip;
  color: #e7dfcc;
  background:
    radial-gradient(circle at 50% 31%, rgba(103, 33, 29, .2), transparent 28%),
    radial-gradient(circle at 20% 66%, rgba(72, 112, 105, .08), transparent 30%),
    linear-gradient(180deg, #030404 0%, #090a09 42%, #020303 100%);
  border-top: 1px solid rgba(183, 64, 57, .24);
}

.restricted-archive::before,
.restricted-archive::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  pointer-events: none;
}

.restricted-archive::before {
  opacity: .2;
  background-image:
    repeating-linear-gradient(0deg, rgba(255, 255, 255, .025) 0 1px, transparent 1px 4px),
    radial-gradient(circle, rgba(213, 198, 159, .34) 0 1px, transparent 1.4px);
  background-size: auto, 113px 113px;
  mask-image: linear-gradient(180deg, transparent, #000 9%, #000 93%, transparent);
}

.restricted-archive::after {
  background:
    linear-gradient(90deg, transparent 49.94%, rgba(117, 189, 181, .08) 50%, transparent 50.06%),
    linear-gradient(180deg, transparent 49.94%, rgba(183, 64, 57, .07) 50%, transparent 50.06%);
}

.restricted-gate {
  position: sticky;
  z-index: 40;
  top: 0;
  min-height: 100vh;
  display: grid;
  place-items: center;
  overflow: hidden;
  margin-bottom: -100vh;
  padding: clamp(34px, 6vw, 90px) 20px;
  background: rgba(1, 3, 3, .86);
  transition: opacity 900ms ease, visibility 900ms ease;
}

.restricted-gate::before,
.restricted-gate::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.restricted-gate::before {
  z-index: -2;
  background:
    radial-gradient(circle at 50% 48%, rgba(111, 31, 26, .25), transparent 34%),
    linear-gradient(180deg, #071011, #020303);
  filter: saturate(.7) contrast(1.18) brightness(.52);
  opacity: .72;
  transform: scale(1.04);
  animation: restrictedGateDrift 18s ease-in-out infinite alternate;
}

.restricted-gate::after {
  z-index: -1;
  background:
    repeating-linear-gradient(0deg, rgba(255, 255, 255, .025) 0 1px, transparent 1px 5px),
    radial-gradient(circle at 50% 47%, transparent 0 24%, rgba(1, 3, 3, .66) 72%),
    linear-gradient(180deg, rgba(1, 3, 3, .42), rgba(1, 3, 3, .74));
}

@keyframes restrictedGateDrift {
  to { transform: scale(1.075) translateY(-.8%); filter: saturate(.65) contrast(1.25) brightness(.58); }
}

.restricted-gate-panel {
  position: relative;
  z-index: 2;
  width: min(920px, 100%);
  padding: clamp(32px, 5vw, 66px) clamp(24px, 6vw, 82px) clamp(34px, 5vw, 62px);
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, .055), transparent 24%),
    linear-gradient(180deg, rgba(5, 12, 12, .93), rgba(2, 5, 5, .95));
  border: 1px solid rgba(164, 184, 178, .34);
  box-shadow:
    inset 0 0 0 3px rgba(0, 0, 0, .76),
    inset 0 0 80px rgba(0, 0, 0, .5),
    0 32px 100px rgba(0, 0, 0, .76),
    0 0 36px rgba(183, 64, 57, .1);
  text-align: center;
  backdrop-filter: blur(12px);
}

.restricted-gate-panel::before,
.restricted-gate-panel::after {
  content: "";
  position: absolute;
  width: 70px;
  height: 70px;
  pointer-events: none;
}

.restricted-gate-panel::before {
  top: 10px;
  left: 10px;
  border-top: 1px solid rgba(226, 90, 79, .7);
  border-left: 1px solid rgba(226, 90, 79, .7);
}

.restricted-gate-panel::after {
  right: 10px;
  bottom: 10px;
  border-right: 1px solid rgba(117, 189, 181, .5);
  border-bottom: 1px solid rgba(117, 189, 181, .5);
}

.restricted-gate-code,
.restricted-kicker,
.restricted-monitor-label,
.restricted-evidence-code,
.restricted-footer-code {
  color: rgba(117, 189, 181, .84);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .21em;
  text-transform: uppercase;
}

.restricted-age-seal {
  width: clamp(74px, 8vw, 104px);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  margin: 22px auto 27px;
  color: #f2cbc3;
  background: rgba(91, 20, 19, .22);
  border: 1px solid rgba(226, 90, 79, .7);
  border-radius: 50%;
  box-shadow:
    inset 0 0 0 7px rgba(183, 64, 57, .06),
    0 0 27px rgba(183, 64, 57, .24);
  font: 400 clamp(26px, 3.5vw, 44px)/1 Georgia, "Times New Roman", serif;
  letter-spacing: 0;
}

.restricted-gate h2 {
  max-width: 790px;
  margin: 0 auto;
  color: #eee3ca;
  font: 400 clamp(42px, 6.2vw, 82px)/.94 Georgia, "Times New Roman", serif;
  letter-spacing: 0;
  text-shadow: 0 8px 38px rgba(0, 0, 0, .9);
}

.restricted-classification {
  max-width: 710px;
  margin: 23px auto 0;
  color: rgba(231, 223, 204, .73);
  font: 400 clamp(14px, 1.25vw, 18px)/1.55 Georgia, "Times New Roman", serif;
  letter-spacing: 0;
}

.restricted-classification strong {
  color: #f0c1b6;
  font-weight: 400;
}

.restricted-hazards {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px 22px;
  margin: 25px auto 0;
  color: rgba(226, 90, 79, .7);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: .15em;
  text-transform: uppercase;
}

.restricted-hazards span::before {
  content: "+";
  margin-right: 8px;
  color: rgba(117, 189, 181, .7);
}

.restricted-enter {
  position: relative;
  min-height: 56px;
  margin-top: 34px;
  padding: 14px clamp(22px, 5vw, 58px);
  color: #efe1c3;
  background:
    linear-gradient(90deg, rgba(183, 64, 57, .08), rgba(183, 64, 57, .22), rgba(183, 64, 57, .08)),
    rgba(6, 12, 12, .9);
  border: 1px solid rgba(226, 90, 79, .58);
  border-radius: 2px;
  box-shadow: 0 0 22px rgba(183, 64, 57, .12);
  cursor: pointer;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
  transition: color 250ms ease, background 250ms ease, border-color 250ms ease, box-shadow 250ms ease;
}

.restricted-enter:hover,
.restricted-enter:focus-visible {
  color: #fff5dc;
  background: rgba(103, 28, 25, .72);
  border-color: rgba(246, 125, 112, .9);
  box-shadow: 0 0 34px rgba(183, 64, 57, .28);
  outline: none;
}

.restricted-gate-footnote {
  margin-top: 19px;
  color: rgba(191, 205, 201, .4);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: .15em;
  text-transform: uppercase;
}

.restricted-content {
  position: relative;
  z-index: 2;
  isolation: isolate;
  min-height: 1680px;
  padding: clamp(120px, 11vw, 180px) clamp(78px, 8vw, 150px) clamp(130px, 12vw, 200px);
  filter: blur(16px) brightness(.33) saturate(.45);
  opacity: .38;
  transform: scale(.987);
  transform-origin: top center;
  pointer-events: none;
  user-select: none;
  transition: filter 1200ms ease, opacity 1000ms ease, transform 1300ms cubic-bezier(.2, .75, .2, 1);
}

.restricted-archive-outer-frame {
  --restricted-frame-inset: clamp(18px, 2vw, 34px);
  position: absolute;
  z-index: 20;
  top: var(--restricted-frame-inset);
  right: var(--restricted-frame-inset);
  bottom: var(--restricted-frame-inset);
  left: var(--restricted-frame-inset);
  width: calc(100% - clamp(36px, 4vw, 68px));
  height: calc(100% - clamp(36px, 4vw, 68px));
  display: block;
  max-width: none;
  object-fit: contain;
  object-position: center;
  pointer-events: none;
  box-shadow: 0 28px 64px rgba(0, 0, 0, .58);
}

.restricted-archive[data-unlocked="true"] .restricted-gate {
  visibility: hidden;
  opacity: 0;
}

.restricted-archive[data-unlocked="true"] .restricted-content {
  filter: none;
  opacity: 1;
  transform: none;
  pointer-events: auto;
  user-select: auto;
}

.restricted-heading {
  width: min(1120px, 100%);
  margin: 0 auto clamp(64px, 8vw, 110px);
  text-align: center;
}

.restricted-heading h2 {
  margin: 16px auto 0;
  color: #e9dec4;
  font: 400 clamp(44px, 6.5vw, 94px)/.92 Georgia, "Times New Roman", serif;
  letter-spacing: 0;
  text-shadow: 0 12px 44px rgba(0, 0, 0, .9);
}

.restricted-heading .restricted-classification {
  margin-top: 26px;
}

.restricted-heading::after {
  content: "";
  display: block;
  width: min(640px, 72vw);
  height: 1px;
  margin: 32px auto 0;
  background: linear-gradient(90deg, transparent, rgba(183, 64, 57, .66), rgba(117, 189, 181, .45), transparent);
  box-shadow: 0 0 18px rgba(183, 64, 57, .18);
}

.restricted-stage {
  position: relative;
  display: grid;
  grid-template-columns: minmax(220px, .72fr) minmax(590px, 1.8fr) minmax(220px, .72fr);
  gap: clamp(16px, 2.2vw, 36px);
  width: min(1800px, 100%);
  margin: 0 auto;
  align-items: center;
}

.restricted-stage::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: 50%;
  left: 50%;
  width: min(1060px, 72vw);
  aspect-ratio: 1;
  border: 1px solid rgba(183, 64, 57, .12);
  border-radius: 50%;
  box-shadow:
    0 0 0 54px rgba(117, 189, 181, .015),
    0 0 0 55px rgba(117, 189, 181, .055),
    0 0 130px rgba(183, 64, 57, .08);
  transform: translate(-50%, -50%);
}

.restricted-evidence {
  position: relative;
  overflow: hidden;
  margin: 0;
  background: #050606;
  border: 1px solid rgba(216, 201, 165, .3);
  box-shadow:
    inset 0 0 0 3px rgba(0, 0, 0, .75),
    0 26px 58px rgba(0, 0, 0, .55);
  transition: transform 700ms cubic-bezier(.2, .75, .2, 1), border-color 450ms ease, filter 450ms ease;
}

.restricted-evidence::before,
.restricted-evidence::after {
  content: "";
  position: absolute;
  z-index: 3;
  pointer-events: none;
}

.restricted-evidence::before {
  inset: 0;
  background:
    linear-gradient(110deg, rgba(255, 255, 255, .08), transparent 15% 80%),
    linear-gradient(180deg, transparent 62%, rgba(2, 3, 3, .82));
}

.restricted-evidence::after {
  top: 8px;
  right: 8px;
  width: 42px;
  height: 42px;
  border-top: 1px solid rgba(226, 90, 79, .75);
  border-right: 1px solid rgba(226, 90, 79, .75);
}

.restricted-evidence:hover,
.restricted-evidence:focus-within {
  z-index: 9;
  border-color: rgba(216, 201, 165, .66);
  filter: brightness(1.08) contrast(1.03);
  transform: translateY(-7px) scale(1.015);
}

.restricted-evidence img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  filter: saturate(.72) contrast(1.1) brightness(.78);
  transition: filter 500ms ease, transform 900ms ease;
}

.restricted-evidence:hover img {
  filter: saturate(.9) contrast(1.08) brightness(.98);
  transform: scale(1.025);
}

.restricted-evidence figcaption {
  position: absolute;
  z-index: 5;
  right: 14px;
  bottom: 13px;
  left: 14px;
  color: rgba(234, 223, 198, .88);
  font: 400 clamp(12px, 1vw, 15px)/1.25 Georgia, "Times New Roman", serif;
  letter-spacing: 0;
}

.restricted-evidence-code {
  display: block;
  margin-bottom: 5px;
  color: rgba(226, 90, 79, .78);
  font-size: 7px;
}

.restricted-notebook {
  aspect-ratio: 2 / 3;
}

.restricted-right-stack {
  display: grid;
  gap: clamp(16px, 2vw, 30px);
}

.restricted-right-stack .restricted-evidence {
  aspect-ratio: 16 / 10;
}

.restricted-monitor {
  position: relative;
  min-width: 0;
  padding: clamp(13px, 1.6vw, 24px);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, .045), transparent 22%),
    #0a0b0a;
  border: 1px solid rgba(207, 191, 153, .38);
  box-shadow:
    inset 0 0 0 4px #020303,
    inset 0 0 0 5px rgba(117, 189, 181, .1),
    inset 0 0 66px rgba(0, 0, 0, .7),
    0 35px 80px rgba(0, 0, 0, .74),
    0 0 34px rgba(183, 64, 57, .08);
}

.restricted-monitor::before,
.restricted-monitor::after {
  content: "";
  position: absolute;
  z-index: 8;
  width: 54px;
  height: 54px;
  pointer-events: none;
}

.restricted-monitor::before {
  top: 7px;
  left: 7px;
  border-top: 1px solid rgba(226, 90, 79, .78);
  border-left: 1px solid rgba(226, 90, 79, .78);
}

.restricted-monitor::after {
  right: 7px;
  bottom: 7px;
  border-right: 1px solid rgba(117, 189, 181, .62);
  border-bottom: 1px solid rgba(117, 189, 181, .62);
}

.restricted-monitor-bar {
  min-height: 38px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 0 6px 10px;
}

.restricted-monitor-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: rgba(226, 90, 79, .78);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: .15em;
  text-transform: uppercase;
}

.restricted-monitor-status::before {
  content: "";
  width: 7px;
  aspect-ratio: 1;
  background: var(--restricted-red-bright);
  border-radius: 50%;
  box-shadow: 0 0 10px rgba(226, 90, 79, .86);
  animation: restrictedStatusPulse 1.1s ease-in-out infinite alternate;
}

@keyframes restrictedStatusPulse {
  to { opacity: .32; box-shadow: 0 0 3px rgba(226, 90, 79, .4); }
}

.restricted-video-shell {
  position: relative;
  aspect-ratio: 1926 / 1076;
  overflow: hidden;
  background: #000;
  border: 1px solid rgba(210, 194, 158, .32);
  box-shadow:
    inset 0 0 60px rgba(0, 0, 0, .84),
    0 0 0 3px rgba(0, 0, 0, .72),
    0 0 28px rgba(183, 64, 57, .08);
}

.restricted-video-shell::before,
.restricted-video-shell::after {
  content: "";
  position: absolute;
  z-index: 4;
  inset: 0;
  pointer-events: none;
}

.restricted-video-shell::before {
  background:
    repeating-linear-gradient(0deg, rgba(255, 255, 255, .025) 0 1px, transparent 1px 4px),
    linear-gradient(110deg, rgba(255, 255, 255, .08), transparent 15% 78%);
  mix-blend-mode: screen;
}

.restricted-video-shell::after {
  box-shadow: inset 0 0 70px rgba(0, 0, 0, .68);
}

.restricted-video {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  background: #000;
  filter: saturate(.82) contrast(1.09) brightness(.9);
}

.restricted-monitor-footer {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 20px;
  align-items: center;
  min-height: 70px;
  padding: 15px 7px 0;
}

.restricted-monitor-copy h3 {
  margin: 5px 0 0;
  color: #e8dcc1;
  font: 400 clamp(21px, 2vw, 32px)/1 Georgia, "Times New Roman", serif;
  letter-spacing: 0;
}

.restricted-sound {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 8px 13px;
  color: #e8dcc1;
  background: rgba(4, 7, 7, .9);
  border: 1px solid rgba(183, 64, 57, .45);
  border-radius: 2px;
  cursor: pointer;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: .13em;
  text-transform: uppercase;
  white-space: nowrap;
}

.restricted-sound:hover,
.restricted-sound:focus-visible,
.restricted-sound[aria-pressed="true"] {
  color: #fff0ce;
  border-color: rgba(226, 90, 79, .85);
  box-shadow: 0 0 18px rgba(183, 64, 57, .2);
  outline: none;
}

.restricted-sound-glyph {
  width: 22px;
  height: 12px;
  background: var(--restricted-red-bright);
  clip-path: polygon(0 47%, 10% 47%, 17% 8%, 25% 91%, 34% 25%, 43% 77%, 52% 0, 61% 100%, 70% 20%, 79% 80%, 88% 47%, 100% 47%, 100% 56%, 88% 56%, 79% 89%, 70% 29%, 61% 100%, 52% 9%, 43% 86%, 34% 34%, 25% 100%, 17% 17%, 10% 56%, 0 56%);
  filter: drop-shadow(0 0 5px rgba(226, 90, 79, .72));
}

.restricted-sound[aria-pressed="true"] .restricted-sound-glyph {
  animation: restrictedSoundPulse .66s ease-in-out infinite alternate;
}

@keyframes restrictedSoundPulse {
  to { transform: scaleY(1.4); filter: drop-shadow(0 0 9px rgba(226, 90, 79, .95)); }
}

.restricted-evidence-floor {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: clamp(18px, 2.6vw, 42px);
  width: min(1600px, 100%);
  margin: clamp(50px, 6vw, 94px) auto 0;
  align-items: stretch;
}

.restricted-dome {
  aspect-ratio: 16 / 9;
}

.restricted-subject-files {
  aspect-ratio: 16 / 9;
}

.restricted-terminal-note {
  width: min(920px, 100%);
  margin: clamp(72px, 8vw, 120px) auto 0;
  padding: 30px clamp(22px, 5vw, 58px);
  color: rgba(225, 215, 194, .7);
  background:
    linear-gradient(90deg, rgba(183, 64, 57, .05), transparent 30% 70%, rgba(117, 189, 181, .045)),
    rgba(5, 8, 8, .78);
  border-top: 1px solid rgba(183, 64, 57, .25);
  border-bottom: 1px solid rgba(117, 189, 181, .18);
  text-align: center;
}

.restricted-terminal-note p {
  margin: 10px auto 0;
  font: 400 clamp(18px, 2vw, 27px)/1.35 Georgia, "Times New Roman", serif;
  letter-spacing: 0;
}

@media (max-width: 1120px) {
  .restricted-stage {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
  }

  .restricted-monitor {
    grid-column: 1 / -1;
    grid-row: 1;
  }

  .restricted-notebook {
    grid-column: 1;
    grid-row: 2;
    aspect-ratio: 4 / 5;
  }

  .restricted-right-stack {
    grid-column: 2;
    grid-row: 2;
  }
}

@media (max-width: 700px) {
  .restricted-gate {
    padding: 14px;
  }

  .restricted-gate-panel {
    padding: 30px 18px 32px;
  }

  .restricted-gate h2 {
    font-size: clamp(39px, 12vw, 56px);
  }

  .restricted-hazards {
    gap: 7px 12px;
    font-size: 7px;
  }

  .restricted-content {
    padding: 90px 58px 110px;
  }

  .restricted-archive-outer-frame {
    --restricted-frame-inset: 8px;
    width: calc(100% - 16px);
    height: calc(100% - 16px);
  }

  .restricted-heading h2 {
    font-size: clamp(42px, 13vw, 62px);
  }

  .restricted-stage,
  .restricted-evidence-floor {
    display: flex;
    flex-direction: column;
  }

  .restricted-monitor { order: 1; }
  .restricted-notebook { order: 2; aspect-ratio: 3 / 4; }
  .restricted-right-stack { order: 3; }

  .restricted-monitor-bar,
  .restricted-monitor-footer {
    gap: 10px;
  }

  .restricted-monitor-label,
  .restricted-monitor-status {
    font-size: 6px;
  }

  .restricted-monitor-footer {
    grid-template-columns: 1fr;
  }

  .restricted-sound {
    justify-self: start;
  }
}

@media (prefers-reduced-motion: reduce) {
  .restricted-gate::before,
  .restricted-monitor-status::before,
  .restricted-sound[aria-pressed="true"] .restricted-sound-glyph {
    animation: none;
  }

  .restricted-content,
  .restricted-evidence,
  .restricted-evidence img {
    transition-duration: .001ms;
  }
}

/* Two-chamber archive rebuild */
.restricted-content {
  min-height: 0;
  padding: clamp(110px, 10vw, 170px) clamp(18px, 4vw, 72px) clamp(120px, 11vw, 190px);
}

.restricted-heading {
  width: min(1180px, 100%);
  margin-bottom: clamp(72px, 8vw, 124px);
}

.restricted-video-chamber,
.restricted-carousel-chamber {
  position: relative;
  width: min(1500px, 100%);
  margin-inline: auto;
}

.restricted-carousel-chamber {
  margin-top: clamp(110px, 13vw, 210px);
}

.restricted-chamber-heading {
  position: relative;
  z-index: 8;
  width: min(900px, 92%);
  margin: 0 auto clamp(20px, 2.5vw, 36px);
  text-align: center;
}

.restricted-chamber-heading span {
  display: block;
  margin-bottom: 11px;
  color: rgba(117, 189, 181, .86);
  font-size: clamp(7px, .68vw, 10px);
  font-weight: 800;
  letter-spacing: .2em;
  text-transform: uppercase;
}

.restricted-carousel-chamber .restricted-chamber-heading span {
  color: rgba(226, 90, 79, .86);
}

.restricted-chamber-heading h3 {
  margin: 0;
  color: #e7dcc1;
  font: 400 clamp(25px, 3vw, 46px)/1.08 Georgia, "Times New Roman", serif;
  letter-spacing: 0;
  text-wrap: balance;
  text-shadow: 0 8px 28px rgba(0, 0, 0, .9);
}

.restricted-video-stage,
.restricted-carousel-stage {
  position: relative;
  width: 100%;
  aspect-ratio: 2752 / 1536;
  isolation: isolate;
}

.restricted-video-stage::before,
.restricted-carousel-stage::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 9% 8% 6%;
  border-radius: 46%;
  pointer-events: none;
  background: radial-gradient(ellipse, rgba(105, 179, 171, .18), rgba(35, 24, 20, .1) 48%, transparent 73%);
  box-shadow: 0 0 90px rgba(117, 189, 181, .08);
}

.restricted-carousel-stage::before {
  background: radial-gradient(ellipse, rgba(142, 48, 43, .17), rgba(48, 27, 26, .1) 48%, transparent 74%);
  box-shadow: 0 0 90px rgba(183, 64, 57, .1);
}

.restricted-video-viewport,
.restricted-carousel-viewport {
  position: absolute;
  z-index: 1;
  overflow: hidden;
  background: #010202;
  box-shadow:
    inset 0 0 38px rgba(0, 0, 0, .76),
    0 0 42px rgba(83, 151, 145, .13);
}

.restricted-video-viewport {
  inset: 19.5% 17.2% 17.5% 17.2%;
  border: 1px solid rgba(199, 177, 126, .32);
  border-radius: 43% 42% 34% 38% / 31% 32% 40% 42%;
}

.restricted-video {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
  background: #010202;
}

.restricted-video-glass {
  position: absolute;
  z-index: 3;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(118deg, rgba(255, 255, 255, .075), transparent 19% 69%, rgba(151, 216, 209, .035)),
    radial-gradient(circle at 52% 42%, transparent 46%, rgba(0, 0, 0, .34) 100%);
  box-shadow: inset 0 0 62px rgba(0, 0, 0, .45);
}

.restricted-chamber-frame,
.restricted-carousel-frame {
  position: absolute;
  z-index: 5;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  pointer-events: none;
  user-select: none;
}

.restricted-video-controls {
  width: min(960px, 86%);
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin: clamp(5px, 1vw, 14px) auto 0;
  padding: 8px 14px;
  border-top: 1px solid rgba(117, 189, 181, .17);
  border-bottom: 1px solid rgba(183, 64, 57, .14);
  background: linear-gradient(90deg, transparent, rgba(5, 10, 10, .76) 12% 88%, transparent);
}

.restricted-video-controls .restricted-monitor-status {
  font-size: clamp(7px, .72vw, 10px);
}

.restricted-video-controls .restricted-sound {
  flex: 0 0 auto;
}

.restricted-carousel-viewport {
  inset: 24.5% 18.8% 20% 18.8%;
  border: 1px solid rgba(187, 202, 197, .24);
  border-radius: 42% 42% 32% 32% / 34% 34% 41% 41%;
}

.restricted-carousel-slide {
  position: absolute;
  inset: 0;
  z-index: 1;
  margin: 0;
  opacity: 0;
  visibility: hidden;
  transform: translateX(5%) scale(.985);
  transition: opacity .7s ease, transform .95s cubic-bezier(.2, .75, .18, 1), visibility .7s;
}

.restricted-carousel-slide.is-active {
  z-index: 2;
  opacity: 1;
  visibility: visible;
  transform: translateX(0) scale(1);
}

.restricted-carousel-slide img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
  filter: contrast(1.04) saturate(.84) brightness(.88);
  transform: scale(1.015);
  transition: transform 7s ease-out, filter .7s ease;
}

.restricted-carousel-slide.is-active img {
  transform: scale(1.065);
  filter: contrast(1.08) saturate(.9) brightness(.96);
}

.restricted-carousel-slide figcaption {
  position: absolute;
  z-index: 3;
  right: 0;
  bottom: 0;
  left: 0;
  padding: clamp(40px, 5vw, 78px) clamp(28px, 5vw, 76px) clamp(18px, 2.4vw, 36px);
  color: rgba(236, 226, 209, .92);
  background: linear-gradient(180deg, transparent, rgba(1, 3, 3, .88));
  font: 400 clamp(14px, 1.45vw, 22px)/1.3 Georgia, "Times New Roman", serif;
  letter-spacing: 0;
  text-align: center;
  text-shadow: 0 2px 12px #000;
}

.restricted-carousel-slide figcaption span {
  display: block;
  margin-bottom: 7px;
  color: rgba(205, 176, 124, .9);
  font: 800 clamp(6px, .65vw, 9px)/1.2 Arial, sans-serif;
  letter-spacing: .17em;
  text-transform: uppercase;
}

.restricted-carousel-arrow {
  position: absolute;
  z-index: 8;
  top: 50%;
  width: clamp(38px, 4.1vw, 58px);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  padding: 0;
  color: #e8d8b4;
  background: rgba(4, 7, 7, .78);
  border: 1px solid rgba(196, 164, 107, .55);
  border-radius: 50%;
  box-shadow:
    inset 0 0 0 4px rgba(0, 0, 0, .45),
    0 0 22px rgba(0, 0, 0, .8);
  font: 400 clamp(20px, 2.2vw, 31px)/1 Georgia, serif;
  cursor: pointer;
  transform: translateY(-50%);
  transition: color .25s ease, border-color .25s ease, background .25s ease, transform .25s ease;
}

.restricted-carousel-prev { left: 8.8%; }
.restricted-carousel-next { right: 8.8%; }

.restricted-carousel-arrow:hover,
.restricted-carousel-arrow:focus-visible {
  color: #fff4d8;
  border-color: rgba(117, 189, 181, .82);
  background: rgba(11, 29, 28, .9);
  outline: none;
  transform: translateY(-50%) scale(1.07);
}

.restricted-carousel-stage:focus-visible {
  outline: 1px solid rgba(117, 189, 181, .55);
  outline-offset: 8px;
}

.restricted-carousel-navigation {
  width: min(720px, 80%);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin: clamp(8px, 1.4vw, 20px) auto 0;
}

.restricted-carousel-dots {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.restricted-carousel-dot {
  width: 8px;
  height: 8px;
  padding: 0;
  border: 1px solid rgba(213, 190, 146, .5);
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
  transition: transform .25s ease, background .25s ease, box-shadow .25s ease;
}

.restricted-carousel-dot.is-active {
  background: #75bdb5;
  border-color: #a7e0da;
  box-shadow: 0 0 12px rgba(117, 189, 181, .72);
  transform: scale(1.35);
}

.restricted-carousel-dot:focus-visible {
  outline: 1px solid #e7d4aa;
  outline-offset: 4px;
}

.restricted-carousel-count {
  min-width: 52px;
  color: rgba(226, 217, 195, .58);
  font: 700 8px/1 Arial, sans-serif;
  letter-spacing: .18em;
}

.restricted-terminal-note {
  margin-top: clamp(90px, 10vw, 150px);
}

@media (max-width: 700px) {
  .restricted-content {
    padding: 92px 6px 112px;
  }

  .restricted-heading {
    width: calc(100% - 24px);
    margin-bottom: 72px;
  }

  .restricted-video-chamber,
  .restricted-carousel-chamber {
    width: 100%;
  }

  .restricted-carousel-chamber {
    margin-top: 100px;
  }

  .restricted-chamber-heading {
    width: calc(100% - 38px);
    margin-bottom: 13px;
  }

  .restricted-chamber-heading h3 {
    font-size: clamp(23px, 7vw, 34px);
  }

  .restricted-video-viewport {
    inset: 19.5% 17.2% 17.5%;
  }

  .restricted-carousel-viewport {
    inset: 24.5% 18.8% 20%;
  }

  .restricted-carousel-slide figcaption {
    padding: 30px 20px 11px;
    font-size: clamp(9px, 2.7vw, 13px);
  }

  .restricted-carousel-slide figcaption span {
    display: none;
  }

  .restricted-carousel-arrow {
    width: 34px;
    font-size: 19px;
  }

  .restricted-carousel-prev { left: 4%; }
  .restricted-carousel-next { right: 4%; }

  .restricted-video-controls {
    width: calc(100% - 38px);
    min-height: 38px;
    padding-inline: 5px;
  }

  .restricted-video-controls .restricted-monitor-status {
    font-size: 6px;
  }

  .restricted-video-controls .restricted-sound {
    font-size: 6px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .restricted-carousel-slide,
  .restricted-carousel-slide img,
  .restricted-carousel-arrow,
  .restricted-carousel-dot {
    transition-duration: .001ms;
  }
}

/* Layered recovered journals behind the restricted interface */
.restricted-content > :not(.restricted-journal-wall) {
  position: relative;
  z-index: 2;
}

.restricted-journal-wall {
  position: absolute;
  z-index: 0;
  inset: 0;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: clamp(2px, .25vw, 5px);
  padding: clamp(2px, .25vw, 5px);
  overflow: hidden;
  pointer-events: none;
  background: #050403;
}

.restricted-journal-wall::after {
  content: "";
  position: absolute;
  z-index: 7;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(1, 3, 3, .3), rgba(1, 3, 3, .5)),
    radial-gradient(circle at 50% 45%, rgba(1, 2, 2, .04) 0 24%, rgba(2, 3, 3, .34) 100%);
}

.restricted-journal-sheet {
  position: relative;
  z-index: 1;
  display: block;
  width: calc(100% + 4px);
  height: calc(100% + 4px);
  margin: -2px;
  object-fit: cover;
  opacity: 1;
  filter: saturate(.88) contrast(1.12) brightness(.72);
  box-shadow:
    0 0 0 1px rgba(230, 211, 164, .16),
    0 5px 18px rgba(0, 0, 0, .38);
  mask-image: none;
  animation: none;
  transform: scale(1.035) rotate(-.35deg);
}

.restricted-journal-wall-gate {
  z-index: 0;
  grid-template-rows: repeat(4, minmax(0, 1fr));
}

.restricted-journal-wall-content {
  grid-template-rows: repeat(8, minmax(0, 1fr));
}

.restricted-journal-wall-gate .restricted-journal-sheet {
  opacity: 1;
  filter: saturate(.86) contrast(1.13) brightness(.68);
}

.restricted-heading,
.restricted-chamber-heading {
  background: linear-gradient(90deg, transparent, rgba(1, 3, 3, .78) 16% 84%, transparent);
  box-shadow: 0 18px 44px rgba(0, 0, 0, .24);
}

.restricted-journal-sheet:nth-child(5n + 2) {
  transform: scale(1.045) rotate(.45deg);
  object-position: 72% 48%;
}

.restricted-journal-sheet:nth-child(5n + 3) {
  transform: scale(1.04) rotate(-.6deg);
  object-position: 38% 62%;
}

.restricted-journal-sheet:nth-child(5n + 4) {
  transform: scale(1.05) rotate(.28deg);
  object-position: 64% 34%;
}

.restricted-journal-sheet:nth-child(5n) {
  transform: scale(1.038) rotate(-.2deg);
  object-position: 50% 76%;
}

@media (max-width: 980px) {
  .restricted-journal-wall {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .restricted-journal-wall-gate {
    grid-template-rows: repeat(6, minmax(0, 1fr));
  }

  .restricted-journal-wall-content {
    grid-template-rows: repeat(12, minmax(0, 1fr));
  }
}

@media (max-width: 600px) {
  .restricted-journal-wall {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .restricted-journal-wall-gate {
    grid-template-rows: repeat(8, minmax(0, 1fr));
  }

  .restricted-journal-wall-content {
    grid-template-rows: repeat(16, minmax(0, 1fr));
  }
}

.restricted-gate {
  background: rgba(1, 3, 3, .16);
}

.restricted-gate::before {
  background: none;
  filter: none;
  animation: none;
}

.restricted-gate::after {
  background:
    repeating-linear-gradient(0deg, rgba(255, 255, 255, .016) 0 1px, transparent 1px 5px),
    radial-gradient(circle at 50% 48%, transparent 0 26%, rgba(1, 3, 3, .16) 78%);
}

.restricted-gate-panel {
  background: rgba(2, 5, 5, .8);
  backdrop-filter: blur(4px);
}

@media (prefers-reduced-motion: reduce) {
  .restricted-journal-sheet {
    animation: none;
  }
}
