:root {
  --ink: #062838;
  --ink-soft: #315260;
  --paper: #f4fbfd;
  --white: #ffffff;
  --line: rgba(6, 40, 56, 0.14);
  --ocean: #008ca1;
  --ocean-dark: #006679;
  --cyan: #18d8d0;
  --cyan-pale: #c9f8f5;
  --coral: #ff6b4a;
  --coral-dark: #da4528;
  --sun: #ffd257;
  --deep: #03151f;
  --deep-two: #062837;
  --deep-three: #0b4051;
  --success: #3fbf7f;
  --shadow: 0 24px 70px rgba(4, 37, 52, 0.16);
  --shadow-soft: 0 12px 38px rgba(4, 37, 52, 0.1);
  --radius-xl: 32px;
  --radius-lg: 22px;
  --radius-md: 15px;
  --max: 1480px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 8% 14%, rgba(24, 216, 208, 0.14), transparent 26rem),
    linear-gradient(180deg, #eefcff 0, var(--paper) 30rem, #edf7f8 100%);
  font-family: "Avenir Next", Avenir, "Segoe UI", Helvetica, Arial, sans-serif;
  line-height: 1.55;
  transition: background 800ms ease, color 500ms ease;
}

body[data-active-stage="dive"],
body[data-active-stage="recover"] {
  color: #e9fbff;
  background:
    radial-gradient(circle at 18% 20%, rgba(0, 140, 161, 0.22), transparent 34rem),
    linear-gradient(180deg, #072b39 0, var(--deep) 45rem, #020c12 100%);
}

button,
input {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  color: inherit;
}

a {
  color: inherit;
}

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

[hidden] {
  display: none !important;
}

.skip-link {
  position: fixed;
  z-index: 999;
  top: 12px;
  left: 12px;
  padding: 10px 14px;
  border-radius: 10px;
  color: var(--white);
  background: var(--ink);
  transform: translateY(-160%);
}

.skip-link:focus {
  transform: none;
}

.ambient {
  position: fixed;
  z-index: -1;
  width: 320px;
  height: 320px;
  border: 1px solid rgba(0, 140, 161, 0.12);
  border-radius: 50%;
  pointer-events: none;
}

.ambient::before,
.ambient::after {
  position: absolute;
  content: "";
  border: inherit;
  border-radius: inherit;
  inset: 18%;
}

.ambient::after {
  inset: 37%;
}

.ambient-one {
  top: 15rem;
  right: -10rem;
}

.ambient-two {
  bottom: 10rem;
  left: -12rem;
  width: 420px;
  height: 420px;
}

.site-header {
  position: relative;
  z-index: 30;
  display: flex;
  width: min(calc(100% - 40px), var(--max));
  min-height: 86px;
  margin: 0 auto;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 43px;
  height: 43px;
  place-items: center;
  border-radius: 14px;
  color: var(--white);
  background: var(--ink);
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: -0.04em;
  box-shadow: 0 8px 20px rgba(6, 40, 56, 0.22);
}

body[data-active-stage="dive"] .brand-mark,
body[data-active-stage="recover"] .brand-mark {
  color: var(--deep);
  background: var(--cyan);
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-size: 0.91rem;
  letter-spacing: 0.03em;
}

.brand small {
  color: var(--ink-soft);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

body[data-active-stage="dive"] .brand small,
body[data-active-stage="recover"] .brand small {
  color: #9bc3ce;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.quiet-button,
.text-button,
.site-footer button {
  border: 0;
  background: transparent;
  cursor: pointer;
}

.quiet-button {
  padding: 10px 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 700;
}

body[data-active-stage="dive"] .quiet-button,
body[data-active-stage="recover"] .quiet-button {
  border-color: rgba(255, 255, 255, 0.18);
}

.mission-log-button span {
  display: inline-grid;
  min-width: 38px;
  margin-left: 6px;
  padding: 2px 7px;
  place-items: center;
  border-radius: 999px;
  color: var(--deep);
  background: var(--sun);
  font-size: 0.68rem;
  font-weight: 900;
}

.mission-nav {
  position: sticky;
  z-index: 25;
  top: 0;
  width: min(calc(100% - 40px), var(--max));
  margin: 0 auto;
  border: 1px solid rgba(6, 40, 56, 0.08);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.87);
  box-shadow: 0 14px 40px rgba(4, 37, 52, 0.08);
  backdrop-filter: blur(18px);
  overflow: hidden;
}

body[data-active-stage="dive"] .mission-nav,
body[data-active-stage="recover"] .mission-nav {
  border-color: rgba(255, 255, 255, 0.08);
  background: rgba(3, 21, 31, 0.88);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.28);
}

.mission-nav ol {
  display: grid;
  margin: 0;
  padding: 0;
  grid-template-columns: repeat(4, 1fr);
  list-style: none;
}

.mission-nav button {
  display: flex;
  width: 100%;
  min-height: 68px;
  padding: 10px 16px;
  align-items: center;
  gap: 11px;
  border: 0;
  border-right: 1px solid rgba(6, 40, 56, 0.08);
  color: var(--ink-soft);
  background: transparent;
  text-align: left;
  cursor: pointer;
}

body[data-active-stage="dive"] .mission-nav button,
body[data-active-stage="recover"] .mission-nav button {
  border-color: rgba(255, 255, 255, 0.08);
  color: #88afba;
}

.mission-nav li:last-child button {
  border-right: 0;
}

.mission-nav button:disabled {
  cursor: not-allowed;
  opacity: 0.44;
}

.mission-nav button .nav-number {
  display: grid;
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid currentColor;
  border-radius: 50%;
  font-size: 0.68rem;
  font-weight: 900;
}

.mission-nav button strong,
.mission-nav button small {
  display: block;
}

.mission-nav button strong {
  color: currentColor;
  font-size: 0.88rem;
}

.mission-nav button small {
  margin-top: 1px;
  font-size: 0.65rem;
}

.mission-nav button.is-active {
  color: var(--ink);
  background: linear-gradient(135deg, rgba(24, 216, 208, 0.17), rgba(255, 210, 87, 0.13));
}

body[data-active-stage="dive"] .mission-nav button.is-active,
body[data-active-stage="recover"] .mission-nav button.is-active {
  color: var(--white);
  background: linear-gradient(135deg, rgba(24, 216, 208, 0.16), rgba(255, 107, 74, 0.08));
}

.mission-nav button.is-complete .nav-number {
  color: var(--deep);
  border-color: var(--success);
  background: var(--success);
}

.mission-progress {
  height: 4px;
  background: rgba(6, 40, 56, 0.08);
}

.mission-progress span {
  display: block;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--cyan), var(--ocean), var(--coral));
  transition: width 500ms ease;
}

#main-content {
  width: min(calc(100% - 40px), var(--max));
  min-height: 70vh;
  margin: 0 auto;
}

.intro-panel {
  display: grid;
  min-height: calc(100vh - 174px);
  padding: 48px 0 62px;
  align-items: center;
  gap: clamp(32px, 5vw, 82px);
  grid-template-columns: minmax(0, 1.12fr) minmax(360px, 0.88fr);
}

.intro-media {
  position: relative;
  min-height: 580px;
  border-radius: var(--radius-xl);
  background: var(--deep);
  box-shadow: var(--shadow);
  isolation: isolate;
  overflow: hidden;
}

.intro-media::after {
  position: absolute;
  z-index: 1;
  content: "";
  background:
    linear-gradient(180deg, transparent 45%, rgba(3, 21, 31, 0.72) 100%),
    linear-gradient(90deg, rgba(0, 140, 161, 0.12), transparent);
  inset: 0;
}

.intro-media img {
  width: 100%;
  height: 100%;
  min-height: 580px;
  object-fit: cover;
}

.sonar-rings {
  position: absolute;
  z-index: 2;
  top: 28px;
  right: 28px;
  width: 122px;
  height: 122px;
  border: 1px solid rgba(24, 216, 208, 0.62);
  border-radius: 50%;
}

.sonar-rings::before,
.sonar-rings::after {
  position: absolute;
  content: "";
  border: inherit;
  border-radius: inherit;
  inset: 22%;
}

.sonar-rings::after {
  background: var(--cyan);
  box-shadow: 0 0 24px var(--cyan);
  inset: 48%;
}

.depth-tag {
  position: absolute;
  z-index: 3;
  bottom: 24px;
  left: 24px;
  padding: 9px 12px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  color: var(--white);
  background: rgba(3, 21, 31, 0.56);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  backdrop-filter: blur(12px);
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--ocean-dark);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

body[data-active-stage="dive"] .eyebrow,
body[data-active-stage="recover"] .eyebrow {
  color: var(--cyan);
}

.intro-copy h1 {
  margin: 0;
  font-size: clamp(4.1rem, 8vw, 8.3rem);
  font-weight: 900;
  letter-spacing: -0.085em;
  line-height: 0.78;
}

.intro-copy h1 em {
  color: var(--coral);
  font-style: normal;
}

.intro-lede {
  max-width: 650px;
  margin: 34px 0 24px;
  color: var(--ink-soft);
  font-size: clamp(1.05rem, 1.5vw, 1.3rem);
}

.mission-facts {
  display: flex;
  margin-bottom: 28px;
  flex-wrap: wrap;
  gap: 8px;
}

.mission-facts span {
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.5);
  font-size: 0.72rem;
  font-weight: 800;
}

.intro-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.primary-button,
.secondary-button,
.play-button {
  display: inline-flex;
  min-height: 48px;
  padding: 0 18px;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border: 0;
  border-radius: 14px;
  text-decoration: none;
  cursor: pointer;
  font-weight: 900;
}

.primary-button {
  color: var(--white);
  background: var(--coral);
  box-shadow: 0 10px 24px rgba(218, 69, 40, 0.26);
}

.primary-button:hover {
  background: var(--coral-dark);
  transform: translateY(-1px);
}

.primary-button:disabled {
  color: rgba(255, 255, 255, 0.64);
  background: #7a939c;
  box-shadow: none;
  cursor: not-allowed;
  transform: none;
}

.secondary-button {
  border: 1px solid var(--line);
  color: var(--ink);
  background: var(--white);
}

body[data-active-stage="dive"] .secondary-button,
body[data-active-stage="recover"] .secondary-button {
  border-color: rgba(255, 255, 255, 0.16);
  color: var(--white);
  background: rgba(255, 255, 255, 0.08);
}

.text-button {
  padding: 10px 8px;
  color: var(--ocean-dark);
  font-weight: 800;
  text-decoration: underline;
  text-decoration-color: rgba(0, 102, 121, 0.28);
  text-underline-offset: 4px;
}

.independence-note {
  max-width: 580px;
  margin: 20px 0 0;
  color: #63808c;
  font-size: 0.72rem;
}

.stage-panel {
  min-height: 75vh;
  padding: 72px 0 100px;
  animation: stage-in 500ms ease both;
}

@keyframes stage-in {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
}

.stage-heading,
.section-heading,
.split-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 28px;
}

.stage-heading {
  margin-bottom: 34px;
}

.stage-heading h2 {
  margin: 0;
  font-size: clamp(2.7rem, 5vw, 5.8rem);
  letter-spacing: -0.065em;
  line-height: 0.92;
}

.stage-heading > p {
  max-width: 470px;
  margin: 0;
  color: var(--ink-soft);
  font-size: 1rem;
}

body[data-active-stage="dive"] .stage-heading > p,
body[data-active-stage="recover"] .stage-heading > p {
  color: #a5c4cc;
}

.inspect-layout,
.launch-layout,
.debrief-layout {
  display: grid;
  align-items: stretch;
  gap: 24px;
  grid-template-columns: minmax(0, 1.45fr) minmax(300px, 0.55fr);
}

.turntable-card,
.task-card,
.launch-viewer,
.procedure-card,
.quiz-card,
.report-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.82);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}

.turntable-toolbar {
  display: flex;
  min-height: 54px;
  padding: 0 17px;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  color: var(--ink-soft);
  font-size: 0.73rem;
  font-weight: 800;
}

.status-light {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.73rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.status-light i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 0 5px rgba(63, 191, 127, 0.15);
}

.turntable {
  position: relative;
  display: grid;
  min-height: 470px;
  place-items: center;
  background:
    linear-gradient(rgba(255, 255, 255, 0.4), rgba(255, 255, 255, 0)),
    repeating-linear-gradient(0deg, transparent 0 39px, rgba(0, 140, 161, 0.06) 39px 40px),
    repeating-linear-gradient(90deg, transparent 0 39px, rgba(0, 140, 161, 0.06) 39px 40px),
    #dff4f7;
  cursor: ew-resize;
  touch-action: pan-y;
  user-select: none;
}

.turntable img {
  width: 100%;
  pointer-events: none;
  user-select: none;
}

.drag-cue {
  position: absolute;
  bottom: 18px;
  left: 50%;
  padding: 8px 12px;
  border-radius: 999px;
  color: var(--white);
  background: rgba(3, 21, 31, 0.7);
  font-size: 0.72rem;
  font-weight: 800;
  transform: translateX(-50%);
  backdrop-filter: blur(10px);
  transition: opacity 300ms ease;
}

.drag-cue span {
  margin-right: 7px;
  color: var(--cyan);
}

.rotation-control {
  display: flex;
  min-height: 60px;
  padding: 0 18px;
  align-items: center;
  gap: 18px;
}

.rotation-control span {
  flex: 0 0 auto;
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.rotation-control input {
  width: 100%;
  accent-color: var(--coral);
}

.task-card,
.procedure-card,
.report-card {
  display: flex;
  padding: clamp(24px, 3vw, 42px);
  flex-direction: column;
  justify-content: center;
}

.task-label {
  margin: 0 0 11px;
  color: var(--ocean-dark);
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.task-card h3,
.procedure-card h3,
.report-card h3 {
  margin: 0;
  font-size: clamp(1.7rem, 2.7vw, 2.8rem);
  letter-spacing: -0.045em;
  line-height: 1;
}

.big-counter {
  display: flex;
  margin: 34px 0 12px;
  align-items: end;
  gap: 10px;
}

.big-counter strong {
  color: var(--coral);
  font-size: 4.7rem;
  line-height: 0.75;
}

.big-counter span {
  max-width: 130px;
  color: var(--ink-soft);
  font-size: 0.78rem;
  font-weight: 800;
  line-height: 1.25;
}

.big-counter.compact strong {
  font-size: 3.5rem;
}

.task-hint {
  margin: 12px 0 26px;
  color: var(--ink-soft);
  font-size: 0.85rem;
}

.stage-complete-button {
  width: 100%;
  margin-top: auto;
}

.equipment-section,
.mission-choice,
.media-lab {
  margin-top: 78px;
}

.section-heading {
  margin-bottom: 22px;
}

.section-heading h3 {
  margin: 0;
  font-size: clamp(1.8rem, 3.5vw, 3.5rem);
  letter-spacing: -0.055em;
  line-height: 1;
}

.equipment-grid {
  display: grid;
  gap: 12px;
}

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

.interior-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.equipment-button {
  position: relative;
  display: grid;
  min-height: 122px;
  padding: 18px;
  align-items: end;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  color: var(--ink);
  background: rgba(255, 255, 255, 0.72);
  text-align: left;
  cursor: pointer;
  overflow: hidden;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

body[data-active-stage="dive"] .equipment-button {
  border-color: rgba(255, 255, 255, 0.12);
  color: #effcff;
  background: rgba(255, 255, 255, 0.055);
}

.equipment-button::after {
  position: absolute;
  width: 80px;
  height: 80px;
  content: "";
  border: 1px solid rgba(0, 140, 161, 0.16);
  border-radius: 50%;
  top: -36px;
  right: -22px;
}

.equipment-button:hover,
.equipment-button:focus-visible {
  border-color: var(--ocean);
  background: var(--white);
  outline: none;
  transform: translateY(-3px);
}

body[data-active-stage="dive"] .equipment-button:hover,
body[data-active-stage="dive"] .equipment-button:focus-visible {
  border-color: var(--cyan);
  background: rgba(24, 216, 208, 0.08);
}

.equipment-button .equipment-number {
  position: absolute;
  top: 14px;
  left: 14px;
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border-radius: 50%;
  color: var(--deep);
  background: var(--sun);
  font-size: 0.66rem;
  font-weight: 900;
}

.equipment-button strong {
  position: relative;
  z-index: 1;
  padding-top: 28px;
  font-size: 0.92rem;
  line-height: 1.2;
}

.equipment-button .check-mark {
  position: absolute;
  z-index: 2;
  top: 15px;
  right: 15px;
  display: grid;
  width: 27px;
  height: 27px;
  place-items: center;
  border-radius: 50%;
  color: var(--white);
  background: var(--success);
  opacity: 0;
  transform: scale(0.5);
  transition: 180ms ease;
}

.equipment-button.is-viewed {
  border-color: var(--success);
  background: rgba(63, 191, 127, 0.1);
}

.equipment-button.is-viewed .check-mark {
  opacity: 1;
  transform: none;
}

.launch-viewer {
  padding: 22px;
  background:
    radial-gradient(circle at 50% 45%, rgba(24, 216, 208, 0.14), transparent 42%),
    var(--deep);
}

.launch-frame {
  position: relative;
  display: grid;
  min-height: 530px;
  place-items: center;
  border-radius: 16px;
  background: linear-gradient(180deg, #092734, #03141d);
  overflow: hidden;
}

.launch-frame img {
  width: min(90%, 740px);
  max-height: 510px;
  object-fit: contain;
}

.launch-step-number {
  position: absolute;
  top: 16px;
  left: 17px;
  color: rgba(255, 255, 255, 0.16);
  font-size: 5rem;
  font-weight: 900;
  line-height: 1;
}

.launch-controls {
  display: grid;
  padding: 18px 2px 0;
  align-items: center;
  gap: 18px;
  grid-template-columns: auto 1fr auto;
  color: var(--white);
}

.launch-controls > div {
  text-align: center;
}

.launch-controls p {
  margin: 0 0 8px;
  font-size: 0.82rem;
  font-weight: 800;
}

.round-button,
.monitor-arrow {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 50%;
  color: var(--white);
  background: rgba(255, 255, 255, 0.08);
  cursor: pointer;
}

.frame-dots,
.media-dots {
  display: flex;
  justify-content: center;
  gap: 6px;
}

.frame-dots button,
.media-dots button {
  width: 7px;
  height: 7px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.24);
  cursor: pointer;
  transition: width 180ms ease, background 180ms ease;
}

.frame-dots button.is-active,
.media-dots button.is-active {
  width: 24px;
  background: var(--cyan);
}

.procedure-card > p:not(.task-label),
.report-card > p:not(.task-label) {
  color: var(--ink-soft);
}

.observation-box {
  margin: 24px 0 10px;
  padding: 16px;
  border: 1px dashed rgba(0, 140, 161, 0.36);
  border-radius: 14px;
  background: rgba(24, 216, 208, 0.08);
}

.observation-box span {
  color: var(--ocean-dark);
  font-size: 0.67rem;
  font-weight: 900;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.observation-box p {
  margin: 6px 0 0;
  font-weight: 800;
}

.dive-hero {
  display: grid;
  min-height: 580px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-xl);
  background: #020d13;
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.28);
  grid-template-columns: 1fr 280px;
  overflow: hidden;
}

.dive-photo {
  position: relative;
  min-height: 580px;
  overflow: hidden;
}

.dive-photo::after {
  position: absolute;
  content: "";
  background: linear-gradient(90deg, rgba(3, 21, 31, 0.94) 0, rgba(3, 21, 31, 0.2) 55%, rgba(3, 21, 31, 0.5) 100%);
  inset: 0;
}

.dive-photo > img {
  width: 100%;
  height: 100%;
  min-height: 580px;
  object-fit: cover;
}

.dive-overlay {
  position: absolute;
  z-index: 2;
  bottom: 0;
  left: 0;
  max-width: 550px;
  padding: clamp(28px, 5vw, 64px);
}

.dive-overlay h3 {
  margin: 22px 0 10px;
  color: var(--white);
  font-size: clamp(2.4rem, 5vw, 5.2rem);
  letter-spacing: -0.065em;
  line-height: 0.9;
}

.dive-overlay p {
  margin: 0 0 24px;
  color: #b8d4dc;
}

.depth-column {
  position: relative;
  display: flex;
  padding: 32px 26px;
  flex-direction: column;
  justify-content: space-between;
  background: linear-gradient(180deg, #128aa1 0%, #0b4c63 34%, #052b3a 63%, #020e16 100%);
}

.depth-column::after {
  position: absolute;
  content: "";
  background: repeating-linear-gradient(180deg, transparent 0 71px, rgba(255, 255, 255, 0.07) 71px 72px);
  inset: 0;
  pointer-events: none;
}

.depth-marker {
  position: relative;
  z-index: 2;
  max-width: 190px;
  padding-left: 20px;
  color: var(--white);
  font-size: 0.68rem;
  font-weight: 800;
}

.depth-marker::before {
  position: absolute;
  top: 0.35em;
  left: 2px;
  width: 8px;
  height: 8px;
  content: "";
  border-radius: 50%;
  background: var(--sun);
  box-shadow: 0 0 0 4px rgba(255, 210, 87, 0.15);
}

.depth-line {
  position: absolute;
  z-index: 1;
  top: 38px;
  bottom: 38px;
  left: 32px;
  width: 1px;
  background: rgba(255, 255, 255, 0.27);
}

.split-heading > span {
  color: #99bac4;
  font-size: 0.76rem;
  font-weight: 800;
}

.media-lab {
  padding: clamp(22px, 4vw, 46px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-xl);
  background: rgba(255, 255, 255, 0.035);
}

.monitor-console {
  display: grid;
  align-items: center;
  gap: 18px;
  grid-template-columns: auto minmax(0, 1fr) auto;
}

.monitor-screen {
  position: relative;
  min-height: 430px;
  border: 14px solid #153944;
  border-radius: 28px;
  background: #020a0f;
  box-shadow:
    inset 0 0 0 2px rgba(255, 255, 255, 0.08),
    0 24px 60px rgba(0, 0, 0, 0.32);
  overflow: hidden;
}

.monitor-screen::after {
  position: absolute;
  content: "";
  background: linear-gradient(90deg, rgba(2, 10, 15, 0.9), rgba(2, 10, 15, 0.16) 62%, rgba(2, 10, 15, 0.48));
  inset: 0;
}

.monitor-screen > img {
  width: 100%;
  height: 430px;
  object-fit: cover;
}

.monitor-scanlines {
  position: absolute;
  z-index: 2;
  opacity: 0.13;
  background: repeating-linear-gradient(180deg, transparent 0 3px, #ffffff 3px 4px);
  inset: 0;
  pointer-events: none;
}

.monitor-copy {
  position: absolute;
  z-index: 3;
  bottom: 0;
  left: 0;
  max-width: 660px;
  padding: clamp(24px, 4vw, 48px);
}

.monitor-copy > span {
  color: var(--cyan);
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.monitor-copy h4 {
  margin: 8px 0 10px;
  color: var(--white);
  font-size: clamp(2rem, 4vw, 4rem);
  letter-spacing: -0.055em;
  line-height: 0.95;
}

.monitor-copy p {
  max-width: 560px;
  margin: 0 0 20px;
  color: #b9d4db;
}

.play-button {
  color: var(--deep);
  background: var(--sun);
}

.play-button b {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border-radius: 50%;
  color: var(--white);
  background: var(--coral);
  font-size: 0.68rem;
}

.media-dots {
  margin-top: 18px;
}

.media-source {
  margin: 10px 0 0;
  color: #84a9b3;
  font-size: 0.68rem;
  text-align: center;
}

.mission-card-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.mission-card {
  position: relative;
  display: grid;
  min-height: 390px;
  padding: 28px;
  align-content: end;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-lg);
  color: var(--white);
  background: linear-gradient(145deg, rgba(19, 85, 102, 0.72), rgba(3, 21, 31, 0.9));
  text-align: left;
  cursor: pointer;
  box-shadow: 0 18px 54px rgba(0, 0, 0, 0.18);
  overflow: hidden;
}

.mission-card::before {
  position: absolute;
  content: "";
  opacity: 0.22;
  background:
    radial-gradient(circle at 75% 20%, var(--cyan), transparent 11rem),
    repeating-radial-gradient(circle at 82% 10%, transparent 0 28px, rgba(255, 255, 255, 0.17) 29px 30px);
  inset: 0;
}

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

.mission-card .mission-icon {
  position: absolute;
  top: 26px;
  right: 26px;
  width: 100px;
  height: 100px;
  object-fit: contain;
  filter: drop-shadow(0 12px 22px rgba(0, 0, 0, 0.24));
}

.mission-card span {
  color: var(--cyan);
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.mission-card h4 {
  max-width: 480px;
  margin: 10px 0;
  font-size: clamp(2rem, 4vw, 4rem);
  letter-spacing: -0.055em;
  line-height: 0.94;
}

.mission-card p {
  max-width: 600px;
  margin: 0;
  color: #b7d1d8;
}

.mission-card .mission-select {
  display: inline-flex;
  margin-top: 22px;
  align-items: center;
  gap: 8px;
  color: var(--white);
  font-weight: 900;
}

.mission-card.is-selected {
  border-color: var(--success);
  box-shadow: 0 0 0 3px rgba(63, 191, 127, 0.18), 0 18px 54px rgba(0, 0, 0, 0.18);
}

.mission-card.is-selected .mission-select {
  color: #7ff0af;
}

.stage-action-row {
  display: flex;
  margin-top: 28px;
  padding: 20px;
  align-items: center;
  justify-content: flex-end;
  gap: 24px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.04);
}

.stage-action-row p {
  margin: 0 auto 0 0;
  color: #9ec0c9;
  font-size: 0.82rem;
}

.recovery-banner {
  display: grid;
  min-height: 430px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-xl);
  background: #092e3c;
  grid-template-columns: minmax(0, 1.25fr) minmax(330px, 0.75fr);
  overflow: hidden;
}

.recovery-banner > img {
  width: 100%;
  height: 100%;
  min-height: 430px;
  object-fit: cover;
}

.recovery-banner > div {
  display: flex;
  padding: clamp(28px, 4vw, 54px);
  flex-direction: column;
  justify-content: center;
}

.recovery-banner h3 {
  margin: 0;
  font-size: clamp(2.4rem, 4vw, 4.8rem);
  letter-spacing: -0.06em;
  line-height: 0.92;
}

.recovery-banner p:not(.eyebrow) {
  color: #acd0d8;
}

.debrief-layout {
  margin-top: 34px;
  grid-template-columns: minmax(0, 1.3fr) minmax(310px, 0.7fr);
}

.quiz-card,
.report-card {
  border-color: rgba(255, 255, 255, 0.1);
  color: #eaffff;
  background: rgba(255, 255, 255, 0.055);
}

.quiz-card {
  padding: clamp(24px, 4vw, 44px);
}

.quiz-question {
  margin: 0 0 18px;
  padding: 21px 0 25px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.quiz-question:last-child {
  border-bottom: 0;
}

.quiz-question legend {
  margin-bottom: 14px;
  font-weight: 900;
}

.quiz-options {
  display: grid;
  gap: 8px;
}

.quiz-option {
  display: flex;
  padding: 12px 14px;
  align-items: flex-start;
  gap: 10px;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 11px;
  color: #bcd7de;
  background: rgba(255, 255, 255, 0.04);
  cursor: pointer;
}

.quiz-option:has(input:checked) {
  border-color: var(--cyan);
  color: var(--white);
  background: rgba(24, 216, 208, 0.08);
}

.quiz-option input {
  margin-top: 4px;
  accent-color: var(--cyan);
}

.quiz-feedback {
  margin: 10px 0 0;
  padding: 10px 12px;
  border-radius: 10px;
  color: #dff8ff;
  background: rgba(63, 191, 127, 0.1);
  font-size: 0.78rem;
}

.report-card {
  position: sticky;
  top: 98px;
  min-height: 430px;
  justify-content: flex-start;
}

.report-card .task-label {
  color: var(--cyan);
}

.report-card > p:not(.task-label) {
  color: #9fc1ca;
}

.score-ring {
  display: grid;
  width: 144px;
  height: 144px;
  margin: 30px auto 18px;
  place-content: center;
  border: 10px solid rgba(255, 255, 255, 0.08);
  border-top-color: var(--cyan);
  border-right-color: var(--coral);
  border-radius: 50%;
  text-align: center;
}

.score-ring strong {
  font-size: 3.6rem;
  line-height: 0.8;
}

.score-ring span {
  color: #8fb4be;
  font-size: 0.76rem;
}

.report-card .primary-button,
.report-card .secondary-button {
  width: 100%;
  margin-top: 10px;
}

.site-footer {
  display: flex;
  width: min(calc(100% - 40px), var(--max));
  min-height: 160px;
  margin: 0 auto;
  padding: 35px 0;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-top: 1px solid var(--line);
}

body[data-active-stage="dive"] .site-footer,
body[data-active-stage="recover"] .site-footer {
  border-color: rgba(255, 255, 255, 0.09);
}

.site-footer p {
  margin: 3px 0 0;
  color: var(--ink-soft);
  font-size: 0.78rem;
}

body[data-active-stage="dive"] .site-footer p,
body[data-active-stage="recover"] .site-footer p {
  color: #88adb7;
}

.site-footer nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 18px;
}

.site-footer a,
.site-footer button {
  padding: 0;
  font-size: 0.76rem;
  font-weight: 800;
}

dialog {
  color: var(--ink);
}

dialog::backdrop {
  background: rgba(1, 10, 15, 0.76);
  backdrop-filter: blur(10px);
}

.content-dialog {
  width: min(calc(100% - 32px), 780px);
  max-height: min(86vh, 900px);
  padding: clamp(28px, 5vw, 56px);
  border: 0;
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at 100% 0, rgba(24, 216, 208, 0.14), transparent 22rem),
    var(--white);
  box-shadow: 0 34px 110px rgba(0, 0, 0, 0.42);
  overflow: auto;
}

.content-dialog h2 {
  max-width: 680px;
  margin: 0 0 18px;
  font-size: clamp(2.2rem, 5vw, 4.7rem);
  letter-spacing: -0.065em;
  line-height: 0.93;
}

.dialog-close {
  position: absolute;
  z-index: 5;
  top: 13px;
  right: 13px;
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 0;
  border-radius: 50%;
  color: var(--white);
  background: var(--ink);
  cursor: pointer;
  font-size: 1.4rem;
  line-height: 1;
}

.dialog-number {
  margin-bottom: 20px;
  color: rgba(0, 140, 161, 0.15);
  font-size: 6.5rem;
  font-weight: 900;
  letter-spacing: -0.08em;
  line-height: 0.7;
}

.dialog-lede {
  color: var(--ink-soft);
  font-size: 1.12rem;
}

.question-panel,
.evidence-note {
  margin-top: 24px;
  padding: 18px;
  border: 1px solid rgba(0, 140, 161, 0.23);
  border-radius: 14px;
  background: rgba(24, 216, 208, 0.08);
}

.question-panel > span,
.evidence-note > strong {
  color: var(--ocean-dark);
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.question-panel p,
.evidence-note p {
  margin: 7px 0 14px;
}

.question-panel .answer {
  margin-bottom: 0;
  color: #176140;
  font-weight: 800;
}

.mission-dialog {
  width: min(calc(100% - 32px), 1180px);
}

.mission-dialog-layout {
  display: grid;
  gap: 34px;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 0.76fr);
}

.mission-steps {
  display: grid;
  padding-left: 24px;
  gap: 8px;
}

.video-shell {
  align-self: start;
  padding: 15px;
  border-radius: 18px;
  color: var(--white);
  background: var(--deep);
}

.video-shell iframe,
.media-player iframe,
.media-player video {
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 0;
  border-radius: 12px;
  background: #000;
}

.video-placeholder {
  display: grid;
  min-height: 260px;
  place-content: center;
  border-radius: 12px;
  color: #8eafb8;
  background: linear-gradient(145deg, #0e3b4a, #020c12);
  text-align: center;
}

.video-placeholder span {
  display: grid;
  width: 64px;
  height: 64px;
  margin: 0 auto 10px;
  place-items: center;
  border-radius: 50%;
  color: var(--deep);
  background: var(--sun);
}

.video-placeholder p {
  margin: 0;
  font-weight: 800;
}

.video-fallback {
  color: #8fb2bc;
  font-size: 0.68rem;
}

.video-fallback a {
  color: var(--cyan);
}

.video-shell .primary-button {
  width: 100%;
}

.media-dialog {
  width: min(calc(100% - 32px), 1040px);
}

.media-player {
  margin-top: 24px;
}

.resource-launch {
  display: grid;
  min-height: 390px;
  padding: 40px;
  place-content: center;
  border-radius: 18px;
  color: var(--white);
  background:
    radial-gradient(circle at 70% 15%, rgba(24, 216, 208, 0.28), transparent 16rem),
    var(--deep);
  text-align: center;
}

.resource-launch > span {
  color: var(--cyan);
  font-size: 4rem;
}

.resource-launch h3 {
  margin: 8px auto;
  font-size: 2.2rem;
  line-height: 1;
}

.resource-launch p {
  max-width: 520px;
  margin: 8px auto 22px;
  color: #a7c5cd;
}

.pano-dialog {
  width: 100vw;
  max-width: none;
  height: 100dvh;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  color: var(--white);
  background: var(--deep);
  overflow: hidden;
}

.pano-header {
  display: flex;
  height: 82px;
  padding: 0 22px;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.pano-header .eyebrow {
  margin-bottom: 2px;
}

.pano-header h2 {
  margin: 0;
  font-size: 1.35rem;
}

.pano-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.inline-close {
  position: static;
}

#pano {
  width: 100%;
  height: calc(100dvh - 82px);
  background: #000;
}

.pano-instruction {
  position: fixed;
  z-index: 4;
  bottom: 16px;
  left: 50%;
  margin: 0;
  padding: 9px 14px;
  border-radius: 999px;
  color: #d8f9ff;
  background: rgba(3, 21, 31, 0.66);
  font-size: 0.68rem;
  font-weight: 800;
  transform: translateX(-50%);
  backdrop-filter: blur(10px);
}

.instruction-grid {
  display: grid;
  margin: 30px 0;
  gap: 12px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.instruction-grid div {
  display: flex;
  min-height: 110px;
  padding: 18px;
  align-items: center;
  gap: 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
}

.instruction-grid strong {
  color: var(--coral);
  font-size: 2.2rem;
}

.disclosure {
  padding: 15px;
  border-left: 4px solid var(--sun);
  background: rgba(255, 210, 87, 0.12);
  font-size: 0.8rem;
}

.log-stage-list {
  display: grid;
  margin: 26px 0;
  gap: 8px;
}

.log-stage {
  display: flex;
  padding: 12px 14px;
  align-items: center;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 11px;
}

.log-stage .log-check {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border-radius: 50%;
  color: var(--ink-soft);
  background: #e5eff2;
}

.log-stage.is-complete .log-check {
  color: var(--white);
  background: var(--success);
}

.log-stage strong {
  font-size: 0.84rem;
}

.log-stage span:last-child {
  margin-left: auto;
  color: var(--ink-soft);
  font-size: 0.72rem;
}

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

.log-stats div {
  padding: 15px 8px;
  border-radius: 12px;
  background: #eaf5f7;
  text-align: center;
}

.log-stats strong,
.log-stats span {
  display: block;
}

.log-stats strong {
  color: var(--ocean-dark);
  font-size: 1.5rem;
}

.log-stats span {
  color: var(--ink-soft);
  font-size: 0.62rem;
}

.reset-button {
  margin-top: 24px;
  color: var(--coral-dark);
}

.print-record {
  display: none;
}

.info-page {
  background:
    radial-gradient(circle at 82% 8%, rgba(24, 216, 208, 0.14), transparent 25rem),
    var(--paper);
}

.info-main {
  width: min(calc(100% - 40px), 1180px);
  margin: 0 auto;
}

.info-hero {
  padding: clamp(70px, 10vw, 140px) 0 90px;
}

.compact-hero {
  padding-bottom: 60px;
}

.info-hero h1 {
  max-width: 1050px;
  margin: 0;
  font-size: clamp(3.2rem, 7vw, 7.2rem);
  letter-spacing: -0.075em;
  line-height: 0.9;
}

.info-hero > p:not(.eyebrow) {
  max-width: 760px;
  margin: 28px 0 0;
  color: var(--ink-soft);
  font-size: 1.14rem;
}

.info-meta {
  display: flex;
  margin-top: 30px;
  flex-wrap: wrap;
  gap: 8px;
}

.info-meta span {
  padding: 8px 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.68);
  font-size: 0.72rem;
  font-weight: 800;
}

.info-section {
  display: grid;
  padding: 70px 0;
  gap: 48px;
  border-top: 1px solid var(--line);
  grid-template-columns: 190px minmax(0, 1fr);
}

.info-section-label {
  color: var(--ocean-dark);
  font-size: 0.7rem;
  font-weight: 900;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.info-section h2 {
  max-width: 800px;
  margin: 0 0 22px;
  font-size: clamp(2.2rem, 4.5vw, 4.6rem);
  letter-spacing: -0.06em;
  line-height: 0.95;
}

.info-section p {
  max-width: 820px;
  color: var(--ink-soft);
}

.large-list {
  display: grid;
  margin: 0;
  padding: 0;
  gap: 0;
  list-style: none;
}

.large-list li {
  position: relative;
  padding: 17px 0 17px 38px;
  border-bottom: 1px solid var(--line);
  font-size: 1.02rem;
  font-weight: 700;
}

.large-list li::before {
  position: absolute;
  top: 21px;
  left: 4px;
  display: grid;
  width: 20px;
  height: 20px;
  content: "✓";
  place-items: center;
  border-radius: 50%;
  color: var(--deep);
  background: var(--cyan);
  font-size: 0.66rem;
  font-weight: 900;
}

.teacher-route,
.prompt-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.teacher-route article,
.prompt-grid article {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 17px;
  background: rgba(255, 255, 255, 0.7);
}

.teacher-route strong {
  color: var(--coral);
  font-size: 2.8rem;
  letter-spacing: -0.06em;
}

.teacher-route h3,
.prompt-grid h3,
.credit-columns h3 {
  margin: 5px 0;
  font-size: 1.35rem;
  letter-spacing: -0.025em;
}

.teacher-route p,
.prompt-grid p {
  margin-bottom: 0;
  font-size: 0.85rem;
}

.timeline-list {
  display: grid;
  margin: 0;
  padding: 0;
  gap: 0;
  list-style: none;
}

.timeline-list li {
  display: grid;
  padding: 18px 0;
  gap: 20px;
  border-bottom: 1px solid var(--line);
  grid-template-columns: 100px 1fr;
}

.timeline-list b {
  color: var(--ocean-dark);
}

.safety-section {
  margin: 20px 0 70px;
  padding: 48px;
  border: 0;
  border-radius: var(--radius-lg);
  background: rgba(255, 210, 87, 0.16);
}

.info-cta {
  display: flex;
  margin: 0 0 90px;
  padding: clamp(26px, 5vw, 56px);
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  border-radius: var(--radius-lg);
  color: var(--white);
  background:
    radial-gradient(circle at 85% 20%, rgba(24, 216, 208, 0.28), transparent 19rem),
    var(--deep);
}

.info-cta h2 {
  max-width: 690px;
  margin: 0;
  font-size: clamp(2.1rem, 4vw, 4rem);
  letter-spacing: -0.055em;
  line-height: 0.95;
}

.source-list {
  display: grid;
  gap: 12px;
}

.source-list article {
  padding: 25px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.72);
}

.source-list article > p:first-child {
  margin: 0 0 8px;
  color: var(--ocean-dark);
  font-size: 0.67rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.source-list h2 {
  margin-bottom: 8px;
  font-size: clamp(1.6rem, 3vw, 2.5rem);
  line-height: 1;
}

.source-list article > p:not(:first-child) {
  margin: 0 0 16px;
  font-size: 0.84rem;
}

.source-list a {
  color: var(--ocean-dark);
  font-size: 0.78rem;
  font-weight: 900;
  text-underline-offset: 4px;
}

.credit-intro {
  margin-bottom: 28px;
}

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

.credit-columns article {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.65);
}

.credit-columns p {
  margin-bottom: 0;
  font-size: 0.78rem;
}

@media (max-width: 1050px) {
  .intro-panel {
    grid-template-columns: 1fr;
  }

  .intro-copy {
    grid-row: 1;
  }

  .intro-media {
    min-height: 470px;
  }

  .intro-media img {
    min-height: 470px;
  }

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

  .dive-hero {
    grid-template-columns: 1fr 210px;
  }
}

@media (max-width: 840px) {
  .mission-nav {
    width: 100%;
    border-right: 0;
    border-left: 0;
    border-radius: 0;
  }

  .mission-nav button {
    min-height: 60px;
    padding: 8px;
    justify-content: center;
  }

  .mission-nav button > span:last-child {
    display: none;
  }

  .inspect-layout,
  .launch-layout,
  .debrief-layout {
    grid-template-columns: 1fr;
  }

  .task-card,
  .procedure-card,
  .report-card {
    min-height: 340px;
  }

  .report-card {
    position: static;
  }

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

  .mission-card-grid {
    grid-template-columns: 1fr;
  }

  .dive-hero,
  .recovery-banner {
    grid-template-columns: 1fr;
  }

  .depth-column {
    min-height: 350px;
  }

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

  .monitor-arrow {
    position: absolute;
    z-index: 5;
    margin-top: 200px;
  }

  #media-next {
    right: 50px;
  }

  #media-prev {
    left: 50px;
  }

  .mission-dialog-layout {
    grid-template-columns: 1fr;
  }

  .info-section {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 620px) {
  .site-header,
  #main-content,
  .site-footer,
  .info-main {
    width: min(calc(100% - 24px), var(--max));
  }

  .site-header {
    min-height: 72px;
  }

  .brand small {
    display: none;
  }

  .header-actions .quiet-button:first-child {
    display: none;
  }

  .mission-log-button {
    padding: 7px 9px;
    font-size: 0;
  }

  .mission-log-button::before {
    content: "Log";
    font-size: 0.72rem;
  }

  .intro-panel {
    min-height: auto;
    padding: 44px 0 58px;
  }

  .intro-copy h1 {
    font-size: clamp(3.7rem, 20vw, 6rem);
  }

  .intro-lede {
    margin-top: 26px;
  }

  .intro-media,
  .intro-media img {
    min-height: 320px;
  }

  .intro-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .intro-actions .primary-button {
    width: 100%;
  }

  .stage-panel {
    padding: 54px 0 78px;
  }

  .stage-heading,
  .section-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }

  .stage-heading h2 {
    font-size: 3.5rem;
  }

  .turntable {
    min-height: 330px;
  }

  .rotation-control {
    align-items: stretch;
    flex-direction: column;
    justify-content: center;
    gap: 3px;
  }

  .exterior-grid,
  .interior-grid {
    grid-template-columns: 1fr 1fr;
  }

  .equipment-button {
    min-height: 108px;
    padding: 14px;
  }

  .launch-frame {
    min-height: 370px;
  }

  .launch-frame img {
    max-height: 350px;
  }

  .launch-step-number {
    font-size: 3.5rem;
  }

  .dive-hero,
  .dive-photo,
  .dive-photo > img {
    min-height: 520px;
  }

  .dive-overlay {
    padding: 26px;
  }

  .monitor-screen,
  .monitor-screen > img {
    min-height: 500px;
  }

  .monitor-copy {
    padding: 24px;
  }

  .monitor-copy h4 {
    font-size: 2.6rem;
  }

  #media-prev {
    left: 24px;
  }

  #media-next {
    right: 24px;
  }

  .mission-card {
    min-height: 420px;
    padding: 22px;
  }

  .stage-action-row {
    align-items: stretch;
    flex-direction: column;
  }

  .recovery-banner > img {
    min-height: 280px;
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .site-footer nav {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }

  .content-dialog {
    width: calc(100% - 16px);
    max-height: calc(100dvh - 16px);
    padding: 48px 22px 28px;
    border-radius: 18px;
  }

  .dialog-number {
    font-size: 5rem;
  }

  .instruction-grid,
  .log-stats {
    grid-template-columns: 1fr 1fr;
  }

  .pano-header {
    height: 70px;
    padding: 0 12px;
  }

  .pano-header h2 {
    font-size: 1rem;
  }

  .pano-fullscreen {
    display: none;
  }

  #pano {
    height: calc(100dvh - 70px);
  }

  .pano-instruction {
    width: calc(100% - 28px);
    text-align: center;
  }

  .teacher-route,
  .prompt-grid {
    grid-template-columns: 1fr;
  }

  .timeline-list li {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .safety-section {
    padding: 28px 22px;
  }

  .info-cta {
    align-items: stretch;
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

@media print {
  @page {
    margin: 0.65in;
  }

  body > * {
    display: none !important;
  }

  .print-record {
    display: block !important;
    color: #111;
    font-family: Arial, sans-serif;
  }

  .print-record > p:first-child {
    color: #315260;
    font-size: 9pt;
    font-weight: bold;
    letter-spacing: 0.1em;
    text-transform: uppercase;
  }

  .print-record h1 {
    margin: 0 0 26pt;
    color: #062838;
    font-size: 28pt;
  }

  .print-record h2 {
    margin: 22pt 0 7pt;
    color: #006679;
    font-size: 13pt;
  }

  .print-fields {
    display: flex;
    justify-content: space-between;
    gap: 30pt;
  }

  .write-lines {
    height: 140pt;
    background: repeating-linear-gradient(180deg, transparent 0 26pt, #9aa 26pt 27pt);
  }

  .print-disclosure {
    margin-top: 32pt;
    color: #666;
    font-size: 8pt;
  }
}
