/* RescueJake
   Warm canvas, olive identity, purple only as a small accent.
   Palette: #3E006B #590099 #77B300 #AAFF00 #D5FF80 #EAFFBF
*/

:root {
  --ink: #2c2924;
  --ink-soft: #4e483f;
  --canvas: #e4d9c6;
  --canvas-deep: #d8ccb6;
  --cream: #f4efe4;
  --card: #f7f3ea;
  --olive: #5c7814;
  --olive-deep: #3f4a34;
  --green: #77b300;
  --lime: #aaff00;
  --lime-soft: #d5ff80;
  --lime-mist: #eaffbf;
  --sage: #c9d3b4;
  --gunmetal: #5e625c;
  --line: rgba(74, 64, 48, 0.16);
  --purple: #590099;
  --purple-deep: #3e006b;
  --shadow: 0 12px 28px rgba(68, 52, 32, 0.08);
  --font-display: "Barlow Condensed", "Arial Narrow", sans-serif;
  --font-body: "Source Sans 3", "Segoe UI", sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, monospace;
  --header-h: 4.6rem;
  --wrap: 1120px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: auto;
  color-scheme: only light;
  background-color: var(--canvas);
}

html.is-settled {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  background-color: var(--canvas);
  background-image:
    radial-gradient(900px 420px at 100% -10%, rgba(119, 179, 0, 0.09), transparent 60%),
    radial-gradient(700px 380px at -10% 18%, rgba(89, 0, 153, 0.035), transparent 58%),
    linear-gradient(180deg, rgba(255, 250, 241, 0.45), transparent 22rem);
}

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

a {
  color: inherit;
  text-decoration: none;
}

button,
input {
  font: inherit;
}

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

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

section[id] {
  scroll-margin-top: calc(var(--header-h) + 0.75rem);
}

.wrap {
  width: min(var(--wrap), calc(100% - 2.4rem));
  margin-inline: auto;
}

.skip {
  position: absolute;
  left: 1rem;
  top: -3rem;
  z-index: 80;
  padding: 0.4rem 0.7rem;
  background: var(--cream);
  color: var(--ink);
}

.skip:focus {
  top: 0.6rem;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 2.85rem;
  padding: 0.7rem 1.2rem;
  border: 1px solid transparent;
  border-radius: 4px;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 1;
  cursor: pointer;
  transition: box-shadow 0.2s ease, transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.btn-primary {
  background: var(--green);
  color: #1c2608;
  border-color: #648f00;
}

.btn-primary:hover {
  box-shadow: 0 0 0 1px var(--lime), 0 0 14px rgba(170, 255, 0, 0.28);
}

.btn-secondary {
  background: var(--green);
  color: #1c2608;
  border-color: #648f00;
}

.btn-secondary:hover {
  box-shadow: 0 0 0 1px var(--lime), 0 0 14px rgba(170, 255, 0, 0.28);
}

.btn-small {
  min-height: 2.35rem;
  padding: 0.45rem 0.85rem;
  font-size: 0.95rem;
}

.btn-large {
  min-height: 3.3rem;
  padding: 0.9rem 1.45rem;
  font-size: 1.2rem;
}

.btn:focus-visible,
a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--purple);
  outline-offset: 3px;
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(236, 228, 212, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.bar {
  width: min(var(--wrap), calc(100% - 2.4rem));
  margin-inline: auto;
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.brand {
  flex: 0 0 auto;
}

.brand img {
  width: 48px;
  height: 48px;
  object-fit: contain;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.15rem;
  margin-left: 0.4rem;
}

.site-nav a {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-soft);
  padding: 0.2rem 0;
  border-bottom: 2px solid transparent;
}

.site-nav a:hover {
  color: var(--ink);
  border-bottom-color: var(--purple);
}

.nav-tools {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.stream-chip {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin: 0;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gunmetal);
}

.stream-chip strong {
  color: var(--ink);
  font-weight: 500;
}

.chip-label {
  color: var(--gunmetal);
}

.status-dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: #8d877c;
  box-shadow: 0 0 0 3px rgba(141, 135, 124, 0.18);
  flex: 0 0 auto;
}

.status-dot.is-live {
  background: var(--green);
  box-shadow: 0 0 0 0 rgba(119, 179, 0, 0.55);
  animation: pulse 1.8s ease-out infinite;
}

.nav-toggle {
  display: none;
  width: 2.6rem;
  height: 2.6rem;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--cream);
  padding: 0;
  align-items: center;
  justify-content: center;
}

.nav-toggle-bars,
.nav-toggle-bars::before,
.nav-toggle-bars::after {
  display: block;
  width: 1rem;
  height: 1.5px;
  background: var(--ink);
  position: relative;
}

.nav-toggle-bars::before,
.nav-toggle-bars::after {
  content: "";
  position: absolute;
  left: 0;
}

.nav-toggle-bars::before { top: -5px; }
.nav-toggle-bars::after { top: 5px; }

/* Hero */

.hero {
  position: relative;
  overflow: hidden;
  padding: 3.5rem 0 4rem;
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(94, 86, 70, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(94, 86, 70, 0.055) 1px, transparent 1px);
  background-size: 52px 52px;
  mask-image: radial-gradient(circle at 50% 42%, #000 0%, transparent 74%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.hero-mark {
  position: relative;
  width: min(280px, 70vw);
  height: min(280px, 70vw);
  display: grid;
  place-items: center;
  margin-bottom: 0.4rem;
}

.compass {
  position: absolute;
  inset: -14%;
  color: rgba(63, 74, 52, 0.58);
  transform-origin: center;
}

.hud-reticle {
  display: block;
  width: 100%;
  height: 100%;
  stroke: currentColor;
  stroke-width: 1.15;
  stroke-linecap: butt;
}

.hero-logo {
  position: relative;
  width: 74%;
  height: auto;
  filter: drop-shadow(0 10px 18px rgba(68, 52, 32, 0.12));
}

.eyebrow {
  margin-top: 0.35rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--olive);
}

h1 {
  margin-top: 0.25rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(3.4rem, 9vw, 6.4rem);
  line-height: 0.88;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.hero-sub {
  margin-top: 0.85rem;
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 2.4vw, 1.55rem);
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--olive-deep);
}

.lede {
  max-width: 38rem;
  margin-top: 1rem;
  color: var(--ink-soft);
  font-size: 1.15rem;
}

.hero-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  margin-top: 1.6rem;
}

.hero-actions-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
}

.meta-strip {
  width: min(720px, 100%);
  margin: 2.2rem 0 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.meta-strip div {
  padding: 0.85rem 0.6rem 0.95rem;
}

.meta-strip div + div {
  border-left: 1px solid var(--line);
}

.meta-strip dt {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gunmetal);
}

.meta-strip dd {
  margin: 0.2rem 0 0;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* Sections */

.band {
  padding: 4.5rem 0;
}

.band-alt {
  background: rgba(216, 204, 182, 0.55);
}

#live,
#videos,
#crew,
#flight-line {
  position: relative;
  overflow: hidden;
}

.section-watermark {
  position: absolute;
  z-index: 2;
  right: -12%;
  bottom: -16%;
  width: min(920px, 82vw);
  height: auto;
  transform: rotate(-18deg);
  opacity: 0.2;
  pointer-events: none;
  user-select: none;
}

.watermark-twitch {
  width: min(820px, 78vw);
  right: auto;
  left: -6%;
  top: -2%;
  bottom: auto;
  opacity: 0.16;
}

#live .section-head,
#live .player-card,
#live .mission-board {
  position: relative;
  z-index: 3;
}

.watermark-instagram {
  width: min(780px, 72vw);
  right: auto;
  left: -3%;
  top: -1%;
  bottom: auto;
  opacity: 0.46;
  z-index: 1;
}

.watermark-youtube {
  z-index: 0;
  right: auto;
  bottom: auto;
  left: 50%;
  top: 50%;
  width: 280%;
  max-width: none;
  transform: translate(-50%, -50%);
  opacity: 0.18;
  object-fit: cover;
}

#flight-line .wrap {
  position: relative;
  z-index: 1;
}

#videos .section-head,
#videos .section-copy,
#videos .reel-card,
#videos .crew-action {
  position: relative;
  z-index: 3;
}

#live .player-card {
  position: relative;
  z-index: 3;
}

.section-head {
  display: flex;
  align-items: flex-start;
  gap: 0.9rem;
  margin-bottom: 1.1rem;
}

.section-index {
  margin: 0.15rem 0 0;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  color: var(--olive);
}

.section-head h2 {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 4vw, 3.3rem);
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 0.95;
  text-transform: uppercase;
}

.section-kicker {
  margin-top: 0.35rem;
  color: var(--ink-soft);
}

.section-copy {
  max-width: 40rem;
  color: var(--ink-soft);
  margin-bottom: 1.5rem;
}

/* Live */

.live-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(240px, 0.75fr);
  gap: 1.1rem;
  align-items: stretch;
}

.player-card,
.mission-board,
.story-card,
.info-card,
.media-card,
.reel-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: var(--shadow);
}

.player-slot {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: 10px;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(213, 255, 128, 0.05), transparent 30%),
    #45503c;
  color: var(--cream);
}

.twitch-embed {
  position: absolute;
  inset: 0;
  overflow-anchor: none;
}

.twitch-embed iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.player-hold {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-end;
  gap: 0.35rem;
  padding: 1.4rem 1.4rem 1.35rem;
  background-image:
    linear-gradient(rgba(244, 239, 228, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(244, 239, 228, 0.04) 1px, transparent 1px);
  background-size: 28px 28px;
}

.player-slot.is-live .player-hold {
  display: none;
}

.player-kicker,
.player-type {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--lime-soft);
}

.player-hold h3 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  line-height: 0.9;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin: 0.35rem 0 0.7rem;
  padding: 0.35rem 0.65rem;
  border: 1px solid rgba(234, 255, 191, 0.28);
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.status-pill strong {
  font-weight: 500;
  color: var(--lime-mist);
}

.hud-corner {
  position: absolute;
  width: 16px;
  height: 16px;
  border: 1.5px solid rgba(170, 255, 0, 0.55);
}

.hud-corner.nw { top: 12px; left: 12px; border-right: 0; border-bottom: 0; }
.hud-corner.ne { top: 12px; right: 12px; border-left: 0; border-bottom: 0; }
.hud-corner.sw { bottom: 12px; left: 12px; border-right: 0; border-top: 0; }
.hud-corner.se { bottom: 12px; right: 12px; border-left: 0; border-top: 0; }

.mission-board {
  padding: 0;
  overflow: hidden;
  clip-path: polygon(0 0, calc(100% - 18px) 0, 100% 18px, 100% 100%, 0 100%);
  display: flex;
  flex-direction: column;
}

.board-head {
  margin: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.85rem 1rem;
  background: #efe6d4;
  border-bottom: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.board-tag {
  color: var(--olive);
}

.mission-board dl {
  margin: 0;
  padding: 0.4rem 1rem 1rem;
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  flex: 1;
}

.mission-board dl div {
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--line);
}

.mission-board dl div:last-child {
  border-bottom: 0;
}

.mission-board dt {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gunmetal);
}

.mission-board dd {
  margin: 0.25rem 0 0;
  font-family: var(--font-display);
  font-size: 1.55rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  line-height: 1.1;
  text-transform: uppercase;
}

/* Flight line */

.flight-grid,
.highlight-grid,
.crew-grid {
  display: grid;
  gap: 1rem;
}

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

.story-card,
.media-card,
.reel-card {
  overflow: hidden;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.story-card:hover,
.media-card:hover,
.reel-card:hover,
.info-card:hover {
  transform: translateY(-3px);
  border-color: rgba(92, 120, 20, 0.45);
}

.story-visual {
  position: relative;
  aspect-ratio: 16 / 10;
  display: grid;
  place-items: center;
  overflow: hidden;
}

.visual-aircrew {
  background:
    linear-gradient(180deg, #e7e1cf 0%, #c9d3b4 58%, #b7c4a0 100%);
}

.story-photo {
  background: #2c2924;
}

.story-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  display: block;
}

.story-video {
  aspect-ratio: 16 / 9;
  background: #2c2924;
}

.story-video iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

.visual-mission {
  background:
    radial-gradient(circle at 50% 50%, #f4efe4 0 28%, #d5dcc4 70%);
}

.story-visual svg {
  width: min(92%, 320px);
  height: auto;
}

.frame-id {
  position: absolute;
  top: 0.7rem;
  left: 0.75rem;
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--olive-deep);
}

.story-body,
.media-body {
  padding: 1rem 1rem 1.15rem;
}

.meta-row {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--olive);
}

.story-body h3,
.media-body h3,
.info-card h3 {
  margin-top: 0.35rem;
  font-family: var(--font-display);
  font-size: 1.7rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  line-height: 1;
}

.story-body p:last-child,
.media-body p:last-child,
.info-card p:last-child {
  margin-top: 0.4rem;
  color: var(--ink-soft);
}

/* About */

.about-grid {
  display: grid;
  grid-template-columns: minmax(200px, 320px) minmax(0, 1fr);
  gap: 2.5rem;
  align-items: center;
}

.about-mark {
  position: relative;
  display: grid;
  place-items: center;
  padding: 1.5rem;
}

.mark-ring {
  position: absolute;
  inset: 8%;
  border-radius: 50%;
  border: 1px solid rgba(63, 74, 52, 0.28);
  background:
    repeating-conic-gradient(from 0deg, rgba(63, 74, 52, 0.45) 0 1deg, transparent 1deg 30deg);
  mask: radial-gradient(circle, transparent 72%, #000 73%, #000 78%, transparent 79%);
}

.about-mark img {
  position: relative;
  width: min(240px, 70%);
}

.about-copy p {
  color: var(--ink-soft);
  margin-bottom: 0.9rem;
  max-width: 40rem;
}

.badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.4rem;
}

.badges li {
  padding: 0.35rem 0.65rem;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: rgba(244, 239, 228, 0.7);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.badge-accent {
  border-bottom: 2px solid var(--purple);
}

/* Crew */

.crew-lead {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--ink);
  margin-bottom: 0.4rem;
}

.crew-action {
  margin: 0.2rem 0 0.55rem;
}

.server-line {
  margin: 0 0 1.4rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gunmetal);
}

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

.info-card {
  padding: 1.1rem 1.1rem 1.2rem;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.card-index {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  color: var(--olive);
}

/* Highlights */

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

.reel-embed {
  display: block;
  width: 100%;
  height: 540px;
  border: 0;
  background: #3f4a34;
}

.reel-card h3 a:hover {
  color: var(--olive);
}

.flight-grid + .crew-action,
.reel-grid + .crew-action {
  margin-top: 1.4rem;
}

.media-thumb {
  aspect-ratio: 16 / 10;
  display: flex;
  align-items: flex-end;
  padding: 0.75rem;
  background-color: #d7decc;
  background-image:
    linear-gradient(rgba(44, 41, 36, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(44, 41, 36, 0.05) 1px, transparent 1px);
  background-size: 22px 22px;
}

.media-thumb span {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--olive-deep);
}

.thumb-a { background-color: #d5dcc0; }
.thumb-b { background-color: #e4ddc4; }
.thumb-c { background-color: #d8d3c2; }
.thumb-d { background-color: #dce6c4; }
.thumb-e { background-color: #cdd6bc; }
.thumb-f { background-color: #e7e2d0; }

.thumb-b, .thumb-d, .thumb-f {
  background-image:
    linear-gradient(115deg, transparent 40%, rgba(119, 179, 0, 0.16) 40% 42%, transparent 42%),
    linear-gradient(rgba(44, 41, 36, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(44, 41, 36, 0.05) 1px, transparent 1px);
  background-size: auto, 22px 22px, 22px 22px;
}

/* Footer */

.site-footer {
  background: #ddd2bd;
  border-top: 1px solid var(--line);
}

.footer-grid {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  padding: 2.4rem 0 1.8rem;
  align-items: center;
}

.footer-brand {
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: 0.85rem;
  align-items: center;
}

.footer-brand img {
  width: 64px;
  height: 64px;
  grid-row: span 2;
  object-fit: contain;
}

.footer-name {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: 1;
}

.footer-line {
  color: var(--ink-soft);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.2rem;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.footer-links a:hover {
  color: var(--purple-deep);
}

.footer-bar {
  border-top: 1px solid var(--line);
}

.footer-bar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 0;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gunmetal);
}

.footer-tick {
  width: 2.2rem;
  height: 2px;
  background: linear-gradient(90deg, var(--green), var(--purple));
}

.back-top {
  position: fixed;
  z-index: 30;
  right: 1.15rem;
  bottom: 1.15rem;
  width: 3.25rem;
  height: 3.25rem;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: var(--olive-deep);
  color: var(--lime);
  box-shadow: 0 10px 22px rgba(44, 41, 36, 0.22);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  pointer-events: none;
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s ease, background 0.18s ease;
}

.back-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: none;
  pointer-events: auto;
}

.back-top:hover {
  background: #2c3824;
}

.back-top svg {
  width: 1.35rem;
  height: 1.35rem;
  display: block;
}

@media (prefers-reduced-motion: reduce) {
  .back-top {
    transition: none;
  }
}

/* Motion */

@keyframes spin {
  to { transform: rotate(360deg); }
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(119, 179, 0, 0.5); }
  70% { box-shadow: 0 0 0 7px rgba(119, 179, 0, 0); }
  100% { box-shadow: 0 0 0 0 rgba(119, 179, 0, 0); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .status-dot.is-live {
    animation: none;
  }
  .story-card,
  .media-card,
  .info-card,
  .btn {
    transition: none;
  }
  .story-card:hover,
  .media-card:hover,
  .info-card:hover {
    transform: none;
  }
}

/* Responsive */

@media (max-width: 980px) {
  .live-grid,
  .about-grid {
    grid-template-columns: 1fr;
  }

  .flight-grid,
  .highlight-grid {
    grid-template-columns: 1fr 1fr;
  }

  .about-mark {
    max-width: 280px;
    margin-inline: auto;
  }

  .mission-board {
    clip-path: none;
  }
}

@media (max-width: 800px) {
  .nav-toggle {
    display: inline-flex;
  }

  .site-nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.2rem;
    padding: 0.6rem 1.2rem 1rem;
    background: #efe6d4;
    border-bottom: 1px solid var(--line);
  }

  .site-header.is-open .site-nav {
    display: flex;
  }

  .site-nav a {
    width: 100%;
    padding: 0.55rem 0;
  }

  .chip-label {
    display: none;
  }

  .nav-tools .btn {
    display: none;
  }

  .site-nav::after {
    content: none;
  }

  .site-header.is-open .nav-tools .btn {
    display: inline-flex;
  }
}

@media (max-width: 640px) {
  .section-watermark {
    width: 420px;
    right: -90px;
    bottom: -70px;
    opacity: 0.16;
  }

  .watermark-twitch {
    width: 300px;
    right: auto;
    left: -36px;
    top: 6px;
    bottom: auto;
    opacity: 0.16;
  }

  .watermark-instagram {
    width: 340px;
    right: auto;
    left: -28px;
    top: 4px;
    bottom: auto;
    opacity: 0.42;
  }

  .watermark-youtube {
    width: 340%;
    left: 50%;
    top: 42%;
    right: auto;
    bottom: auto;
    transform: translate(-50%, -50%);
    opacity: 0.16;
  }

  .wrap,
  .bar {
    width: min(var(--wrap), calc(100% - 1.5rem));
  }

  .hero {
    padding: 2.2rem 0 2.8rem;
  }

  .hero-mark {
    width: min(190px, 58vw);
    height: min(190px, 58vw);
  }

  .hero-actions,
  .hero-actions-row {
    align-items: stretch;
    width: min(100%, 22rem);
  }

  .hero-actions-row {
    flex-direction: column;
  }

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

  .meta-strip div + div {
    border-left: 0;
    border-top: 1px solid var(--line);
  }

  .flight-grid,
  .highlight-grid,
  .crew-grid {
    grid-template-columns: 1fr;
  }

  .band {
    padding: 3.2rem 0;
  }

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

  .player-hold .btn {
    width: 100%;
  }
}
