:root {
  color-scheme: dark;
  --ink: #f6f2e8;
  --muted: #b9c4c4;
  --charcoal: #101416;
  --panel: #182023;
  --panel-2: #22292c;
  --line: rgba(246, 242, 232, 0.18);
  --amber: #e7a94d;
  --cyan: #61c6d6;
  --green: #8dbf76;
  --red: #d96f5f;
  --violet: #8f7bd8;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--charcoal);
  color: var(--ink);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}

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

button {
  font: inherit;
}

.site-header {
  position: fixed;
  z-index: 10;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px clamp(18px, 4vw, 56px);
  background: rgba(16, 20, 22, 0.78);
  border-bottom: 1px solid rgba(246, 242, 232, 0.12);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1rem;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border: 1px solid var(--line);
  background: linear-gradient(135deg, var(--amber), var(--cyan));
  color: #101416;
  font-size: 0.8rem;
  font-weight: 900;
}

nav {
  display: flex;
  align-items: center;
  gap: clamp(12px, 3vw, 28px);
  color: var(--muted);
  font-size: 0.92rem;
}

nav a:hover,
nav a[aria-current="page"] {
  color: var(--ink);
}

.home-splash {
  position: fixed;
  z-index: 40;
  inset: 0;
  display: grid;
  place-items: center;
  pointer-events: none;
  background:
    radial-gradient(circle at 50% 46%, rgba(246, 242, 232, 0.08), transparent 36%),
    #050708;
  animation: homeSplashFade 2600ms cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.home-splash img {
  display: block;
  width: min(92vw, 1200px);
  height: min(78svh, 760px);
  object-fit: contain;
  filter: drop-shadow(0 30px 90px rgba(0, 0, 0, 0.6));
  animation: homeSplashImage 2600ms cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

@keyframes homeSplashFade {
  0%,
  46% {
    opacity: 1;
  }

  100% {
    opacity: 0;
    visibility: hidden;
  }
}

@keyframes homeSplashImage {
  0% {
    transform: scale(0.98);
  }

  46% {
    transform: scale(1);
  }

  100% {
    transform: scale(1.08);
  }
}

.hero,
.page-hero {
  position: relative;
  overflow: hidden;
  padding: 112px clamp(18px, 6vw, 76px) 56px;
}

.home-hero {
  min-height: 76svh;
  display: grid;
  align-items: center;
}

.hero-image,
.hero-shade {
  position: absolute;
  inset: 0;
}

.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-shade {
  background:
    linear-gradient(90deg, rgba(16, 20, 22, 0.92) 0%, rgba(16, 20, 22, 0.78) 38%, rgba(16, 20, 22, 0.24) 84%),
    linear-gradient(0deg, rgba(16, 20, 22, 0.72) 0%, transparent 42%);
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
}

.page-hero {
  min-height: 54svh;
  display: grid;
  align-items: end;
  background:
    linear-gradient(120deg, rgba(16, 20, 22, 0.95), rgba(16, 20, 22, 0.46)),
    radial-gradient(circle at 80% 20%, var(--accent), transparent 34%),
    linear-gradient(135deg, #111719, #20272b);
}

.page-hero > div {
  max-width: 900px;
}

.astro-hero {
  --accent: rgba(97, 198, 214, 0.56);
  background:
    linear-gradient(90deg, rgba(16, 20, 22, 0.96) 0%, rgba(16, 20, 22, 0.74) 46%, rgba(16, 20, 22, 0.22) 100%),
    linear-gradient(0deg, rgba(16, 20, 22, 0.78) 0%, rgba(16, 20, 22, 0.12) 55%),
    url("/assets/astro/gallery/ncg7000-mosaic-master-3.jpg") center center / cover no-repeat;
}

.drone-hero {
  --accent: rgba(141, 191, 118, 0.5);
  background:
    linear-gradient(90deg, rgba(16, 20, 22, 0.94) 0%, rgba(16, 20, 22, 0.72) 46%, rgba(16, 20, 22, 0.2) 100%),
    linear-gradient(0deg, rgba(16, 20, 22, 0.72) 0%, rgba(16, 20, 22, 0.1) 58%),
    url("/assets/drone/gallery/photos/dji-0017-pano-edit.jpg") center center / cover no-repeat;
}

.design-hero {
  --accent: rgba(231, 169, 77, 0.5);
}

.dashboard-hero {
  --accent: rgba(143, 123, 216, 0.52);
}

.server-hero {
  --accent: rgba(217, 111, 95, 0.48);
}

.kicker,
.eyebrow,
.tag {
  margin: 0 0 12px;
  color: var(--cyan);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0;
}

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

h1 {
  max-width: 880px;
  margin-bottom: 22px;
  font-size: clamp(2.65rem, 6vw, 4.65rem);
  line-height: 0.98;
  letter-spacing: 0;
}

h2 {
  max-width: 840px;
  margin-bottom: 0;
  font-size: clamp(2rem, 4vw, 4.25rem);
  line-height: 1;
  letter-spacing: 0;
}

h3 {
  line-height: 1.1;
}

.hero-copy {
  max-width: 680px;
  margin-bottom: 34px;
  color: var(--muted);
  font-size: clamp(1rem, 2vw, 1.25rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.auth-status {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  min-height: 44px;
  padding: 10px 14px;
  border: 1px solid var(--line);
  background: rgba(16, 20, 22, 0.68);
  color: var(--ink);
  font-weight: 900;
}

.auth-status span::before {
  content: "";
  display: inline-block;
  width: 10px;
  height: 10px;
  margin-right: 8px;
  background: var(--green);
  border-radius: 999px;
  box-shadow: 0 0 18px var(--green);
}

.auth-status a {
  color: var(--muted);
  font-size: 0.92rem;
}

.auth-status a:hover {
  color: var(--ink);
}

.auth-detail {
  max-width: 680px;
  color: var(--amber);
  font-weight: 800;
}

.button,
.layer-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 18px;
  border: 1px solid var(--line);
  font-weight: 800;
}

.button.primary {
  background: var(--ink);
  color: #101416;
}

.button.secondary,
.layer-button {
  background: rgba(246, 242, 232, 0.08);
  color: var(--ink);
}

.layer-button {
  cursor: pointer;
}

.layer-button.active {
  background: var(--green);
  color: #101416;
}

.intro-band,
.section,
.split-section,
.detail-band,
.map-shell {
  padding: clamp(58px, 8vw, 104px) clamp(18px, 6vw, 76px);
}

.intro-band {
  display: grid;
  grid-template-columns: minmax(240px, 0.8fr) minmax(280px, 1.2fr);
  gap: clamp(28px, 6vw, 72px);
  align-items: start;
  background: var(--ink);
  color: var(--charcoal);
}

.intro-band .eyebrow,
.detail-band .eyebrow {
  color: #9e503f;
}

.intro-band p:last-child {
  margin: 0;
  font-size: clamp(1.05rem, 2.2vw, 1.45rem);
}

.section-heading {
  display: flex;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: 28px;
}

.section-heading.compact {
  display: block;
}

.portal-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
}

.portal-card,
.design-card,
.status-card,
.photo-tile {
  border: 1px solid var(--line);
  background: var(--panel);
  overflow: hidden;
}

.portal-card {
  min-height: 360px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 22px;
  position: relative;
}

.portal-card::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.44;
  background:
    linear-gradient(145deg, transparent 15%, rgba(255, 255, 255, 0.13)),
    radial-gradient(circle at 24% 18%, var(--accent), transparent 34%);
}

.portal-card > * {
  position: relative;
}

.portal-card span,
.design-card span {
  color: var(--amber);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.portal-card h3,
.design-card h3,
.photo-tile h3 {
  margin: 12px 0 10px;
  font-size: 1.35rem;
}

.portal-card p,
.design-card p,
.photo-tile p,
.status-card p,
.model-list span,
.feature-list,
footer {
  color: var(--muted);
}

.astro-card {
  --accent: var(--cyan);
}

.drone-card {
  --accent: var(--green);
}

.server-card {
  --accent: var(--red);
}

.design-portal {
  --accent: var(--amber);
}

.weather-portal {
  --accent: var(--violet);
}

.split-section {
  display: grid;
  grid-template-columns: minmax(260px, 0.82fr) minmax(300px, 1.18fr);
  gap: clamp(28px, 6vw, 72px);
  background: #171717;
}

.model-list {
  display: grid;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.model-list div {
  display: grid;
  grid-template-columns: 170px 1fr;
  gap: 18px;
  padding: 20px;
  background: #171717;
}

.gallery-section {
  background: #101416;
}

.astro-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin: 0 0 24px;
}

.rss-button {
  margin-left: auto;
  background: var(--amber);
  color: #101416;
  cursor: pointer;
}

.feed-link,
.copy-status {
  color: var(--muted);
  font-size: 0.92rem;
}

.feed-link:hover {
  color: var(--ink);
}

.copy-status {
  min-width: 86px;
}

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

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

.ortho-section {
  background: #141817;
}

.ortho-gallery {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 14px;
}

.gallery-loading {
  color: var(--muted);
}

.astro-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  border: 1px solid var(--line);
  background: #141a1c;
  overflow: hidden;
}

.drone-capture-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  border: 1px solid var(--line);
  background: #141a1c;
  overflow: hidden;
}

.astro-media-button {
  width: 100%;
  display: block;
  position: relative;
  aspect-ratio: 4 / 3;
  padding: 0;
  border: 0;
  background: #070b13;
  color: var(--ink);
  cursor: pointer;
}

.drone-media-button {
  width: 100%;
  display: block;
  position: relative;
  aspect-ratio: 4 / 3;
  padding: 0;
  border: 0;
  background: #07100d;
  color: var(--ink);
  cursor: pointer;
}

.astro-media-button img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.drone-media-button img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.ortho-card .drone-media-button {
  aspect-ratio: 16 / 9;
  background:
    linear-gradient(0deg, rgba(246, 242, 232, 0.06), rgba(246, 242, 232, 0.06)),
    #07100d;
}

.ortho-card .drone-media-button img {
  object-fit: contain;
}

.video-card .astro-media-button {
  aspect-ratio: 16 / 9;
}

.play-badge {
  position: absolute;
  left: 16px;
  bottom: 16px;
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 8px 12px;
  background: var(--ink);
  color: var(--charcoal);
  font-weight: 900;
}

.astro-card-body {
  padding: 18px;
}

.drone-card-body {
  padding: 18px;
}

.astro-card-body span {
  color: var(--amber);
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
}

.drone-card-body span {
  color: var(--green);
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
}

.astro-card-body h3 {
  margin: 8px 0 8px;
  font-size: 1.18rem;
}

.drone-card-body h3 {
  margin: 8px 0 8px;
  font-size: 1.18rem;
}

.astro-card-body p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.drone-card-body p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.media-dialog {
  width: min(1120px, calc(100vw - 28px));
  max-height: calc(100svh - 28px);
  padding: 0;
  border: 1px solid var(--line);
  background: #080b0d;
  color: var(--ink);
}

.media-dialog::backdrop {
  background: rgba(0, 0, 0, 0.78);
}

.dialog-close {
  position: absolute;
  z-index: 2;
  top: 12px;
  right: 12px;
  min-height: 38px;
  border: 1px solid var(--line);
  background: rgba(16, 20, 22, 0.82);
  color: var(--ink);
  font-weight: 900;
  cursor: pointer;
}

.dialog-media {
  display: grid;
  place-items: center;
  min-height: 260px;
  background: #050708;
}

.dialog-media img,
.dialog-media video {
  display: block;
  width: 100%;
  max-height: calc(100svh - 130px);
  object-fit: contain;
}

.dialog-caption {
  padding: 14px 18px 18px;
  color: var(--muted);
}

.photo-grid,
.design-grid,
.server-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.featured-design-section {
  background: #11181a;
}

.dashboard-section {
  background: #101719;
}

.metric-grid,
.metric-panels {
  display: grid;
  gap: 14px;
}

.metric-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  margin-bottom: 14px;
}

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

.metric-card,
.metric-panel {
  border: 1px solid var(--line);
  background: var(--panel);
}

.metric-card {
  min-height: 120px;
  padding: 20px;
}

.metric-card span,
.metric-panel h3 {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 900;
  text-transform: uppercase;
}

.metric-card strong {
  display: block;
  margin-top: 10px;
  color: var(--ink);
  font-size: 2.25rem;
  line-height: 1;
}

.metric-panel {
  padding: 20px;
}

.metric-panel h3 {
  margin: 0 0 16px;
}

.metric-chart-panel {
  margin-bottom: 14px;
}

.metric-bars {
  display: grid;
  grid-template-columns: repeat(var(--metric-days, 30), minmax(22px, 1fr));
  align-items: end;
  gap: 8px;
  min-height: 210px;
  overflow-x: auto;
  padding-bottom: 4px;
}

.metric-bar {
  position: relative;
  min-height: 210px;
  border-left: 1px solid rgba(246, 242, 232, 0.12);
}

.metric-bar::before {
  content: "";
  position: absolute;
  right: 4px;
  bottom: 28px;
  left: 4px;
  height: var(--bar-height);
  min-height: 3px;
  background: linear-gradient(180deg, var(--cyan), var(--amber));
}

.metric-bar span {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  color: var(--muted);
  font-size: 0.72rem;
  text-align: center;
}

.metric-list {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.metric-list li {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 16px;
  align-items: baseline;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.metric-list span,
.visitor-list span,
.recent-events span,
.recent-events em,
.metric-empty {
  color: var(--muted);
}

.metric-list strong {
  color: var(--ink);
}

.visitor-list,
.recent-events {
  display: grid;
  gap: 10px;
}

.visitor-list article,
.recent-events article {
  display: grid;
  gap: 5px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.visitor-list p {
  margin: 0;
  color: var(--muted);
}

.recent-events article {
  grid-template-columns: 150px 140px 1fr minmax(120px, 0.4fr);
  align-items: baseline;
}

.recent-events time {
  color: var(--amber);
  font-weight: 800;
}

.recent-events em {
  font-style: normal;
}

.featured-design {
  display: grid;
  grid-template-columns: minmax(320px, 0.95fr) minmax(320px, 1fr);
  gap: clamp(24px, 5vw, 56px);
  align-items: stretch;
  border: 1px solid var(--line);
  background: var(--panel);
}

.print-entry {
  scroll-margin-top: 96px;
}

.featured-design .model-preview {
  min-height: 430px;
  border-right: 1px solid var(--line);
  border-bottom: 0;
}

.featured-design-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding: clamp(24px, 5vw, 46px);
}

.featured-design-copy h3 {
  margin: 14px 0 14px;
  font-size: 2.1rem;
  line-height: 1;
}

.featured-design-copy p {
  max-width: 660px;
  margin: 0;
  color: var(--muted);
}

.design-status {
  color: var(--amber);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.design-specs {
  width: 100%;
  margin: 24px 0;
}

.photo-tile {
  background: #141a1c;
}

.photo-art {
  min-height: 260px;
  border-bottom: 1px solid var(--line);
}

.photo-tile h3,
.photo-tile p,
.design-card h3,
.design-card p,
.design-card span,
.status-card p,
.status-card dl,
.status-row {
  margin-left: 20px;
  margin-right: 20px;
}

.photo-tile h3,
.design-card h3 {
  margin-top: 20px;
}

.photo-tile p,
.design-card p,
.status-card p {
  margin-bottom: 22px;
}

.star-citizen-section {
  background: #0e1418;
}

.star-citizen-panel {
  display: grid;
  grid-template-columns: minmax(280px, 1fr) minmax(260px, 0.42fr);
  gap: clamp(22px, 4vw, 48px);
  align-items: end;
  margin-bottom: 34px;
  padding: clamp(22px, 4vw, 36px);
  border: 1px solid var(--line);
  background:
    linear-gradient(135deg, rgba(97, 198, 214, 0.14), rgba(141, 191, 118, 0.08)),
    #121a1f;
}

.star-citizen-panel p:last-child {
  max-width: 680px;
  margin-bottom: 0;
  color: var(--muted);
}

.star-citizen-facts {
  margin: 0;
}

.star-citizen-grid {
  display: grid;
  grid-template-columns: minmax(280px, 0.82fr) minmax(320px, 1.18fr);
  gap: 14px;
}

.star-citizen-feed {
  min-width: 0;
  border: 1px solid var(--line);
  background: #141a1c;
  padding: 22px;
}

.star-citizen-feed .section-heading {
  margin-bottom: 18px;
}

.star-citizen-feed h3 {
  margin-bottom: 0;
  font-size: 1.35rem;
}

.operation-list {
  display: grid;
  gap: 10px;
}

.operation-card {
  border: 1px solid var(--line);
  background: #101416;
  padding: 16px;
}

.operation-card time,
.operation-card span {
  color: var(--green);
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
}

.operation-card h4 {
  margin: 8px 0;
  font-size: 1.08rem;
  line-height: 1.2;
}

.operation-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

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

.sc-screenshot-link {
  display: block;
  min-width: 0;
  aspect-ratio: 4 / 3;
  width: 100%;
  padding: 0;
  border: 1px solid var(--line);
  background: #070b13;
  cursor: pointer;
  overflow: hidden;
}

.sc-screenshot-link img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sc-empty-state {
  border: 1px dashed var(--line);
  color: var(--muted);
  padding: 16px;
  background: rgba(246, 242, 232, 0.04);
}

.nebula .photo-art {
  background:
    radial-gradient(circle at 58% 42%, rgba(217, 111, 95, 0.78), transparent 10%),
    radial-gradient(circle at 43% 50%, rgba(97, 198, 214, 0.64), transparent 18%),
    radial-gradient(circle at 80% 18%, #fff, transparent 1px),
    radial-gradient(circle at 22% 26%, #fff, transparent 1px),
    radial-gradient(circle at 68% 72%, #fff, transparent 1px),
    #070b13;
}

.moon .photo-art {
  background:
    radial-gradient(circle at 50% 50%, #e4dfcf 0 22%, #a7a18f 23% 25%, transparent 26%),
    radial-gradient(circle at 46% 46%, rgba(16, 20, 22, 0.28), transparent 4%),
    radial-gradient(circle at 55% 57%, rgba(16, 20, 22, 0.25), transparent 5%),
    #07111b;
}

.wide .photo-art {
  background:
    linear-gradient(0deg, #151614 0 28%, transparent 29%),
    radial-gradient(circle at 40% 18%, rgba(246, 242, 232, 0.9), transparent 1px),
    radial-gradient(circle at 70% 30%, rgba(246, 242, 232, 0.9), transparent 1px),
    radial-gradient(circle at 24% 42%, rgba(246, 242, 232, 0.75), transparent 1px),
    linear-gradient(180deg, #061120, #172538 72%, #202116);
}

.detail-band {
  display: grid;
  grid-template-columns: minmax(250px, 0.9fr) minmax(280px, 1.1fr);
  gap: clamp(28px, 6vw, 72px);
  background: var(--ink);
  color: var(--charcoal);
}

.feature-list {
  margin: 0;
  padding-left: 20px;
  color: #4a5351;
  font-size: clamp(1rem, 2vw, 1.22rem);
}

.feature-list li + li {
  margin-top: 12px;
}

.discord-hub-actions {
  margin-top: 22px;
}

.map-shell {
  display: grid;
  grid-template-columns: minmax(280px, 0.38fr) minmax(320px, 0.62fr);
  gap: 0;
  background: #111614;
}

.map-panel {
  border: 1px solid var(--line);
  border-right: 0;
  padding: 28px;
  background: #18201d;
}

.map-panel p {
  color: var(--muted);
}

.layer-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.map-canvas {
  min-height: 620px;
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  background:
    linear-gradient(32deg, rgba(141, 191, 118, 0.38), transparent 38%),
    linear-gradient(128deg, rgba(97, 198, 214, 0.18), transparent 32%),
    repeating-linear-gradient(0deg, rgba(246, 242, 232, 0.06) 0 1px, transparent 1px 54px),
    repeating-linear-gradient(90deg, rgba(246, 242, 232, 0.06) 0 1px, transparent 1px 54px),
    #26352f;
}

.map-canvas[data-layer="elevation"] {
  background:
    radial-gradient(circle at 34% 42%, rgba(231, 169, 77, 0.72), transparent 20%),
    radial-gradient(circle at 70% 28%, rgba(217, 111, 95, 0.58), transparent 18%),
    repeating-linear-gradient(0deg, rgba(246, 242, 232, 0.08) 0 1px, transparent 1px 44px),
    #263125;
}

.map-canvas[data-layer="flight"] {
  background:
    repeating-linear-gradient(0deg, rgba(246, 242, 232, 0.06) 0 1px, transparent 1px 54px),
    repeating-linear-gradient(90deg, rgba(246, 242, 232, 0.06) 0 1px, transparent 1px 54px),
    #1c2830;
}

.map-pin {
  position: absolute;
  width: 16px;
  height: 16px;
  border: 3px solid var(--ink);
  background: var(--red);
  transform: rotate(45deg);
}

.pin-one {
  left: 31%;
  top: 38%;
}

.pin-two {
  left: 68%;
  top: 58%;
}

.flight-line {
  position: absolute;
  left: 18%;
  top: 48%;
  width: 68%;
  height: 3px;
  background: repeating-linear-gradient(90deg, var(--amber) 0 18px, transparent 18px 28px);
  transform: rotate(-14deg);
}

.design-card {
  padding: 0 0 8px;
}

.model-preview {
  min-height: 250px;
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(135deg, rgba(246, 242, 232, 0.1), transparent),
    #151b1d;
  position: relative;
}

.model-preview::before,
.model-preview::after {
  content: "";
  position: absolute;
  border: 1px solid rgba(246, 242, 232, 0.35);
  background: rgba(231, 169, 77, 0.28);
  transform: skewY(-10deg);
}

.stl-viewer {
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 26%, rgba(97, 198, 214, 0.24), transparent 28%),
    linear-gradient(135deg, rgba(231, 169, 77, 0.12), rgba(143, 123, 216, 0.12)),
    #151b1d;
  cursor: grab;
  touch-action: none;
}

.stl-viewer:active {
  cursor: grabbing;
}

.stl-viewer::before,
.stl-viewer::after {
  display: none;
}

.stl-viewer canvas {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
}

.stl-viewer p {
  position: absolute;
  z-index: 1;
  left: 18px;
  right: 18px;
  bottom: 18px;
  margin: 0;
  color: var(--muted);
  font-weight: 800;
}

.stl-viewer.loaded p {
  display: none;
}

.stl-viewer > span {
  position: absolute;
  z-index: 1;
  right: 16px;
  bottom: 14px;
  padding: 7px 10px;
  border: 1px solid rgba(246, 242, 232, 0.22);
  background: rgba(16, 20, 22, 0.62);
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
}

.status-card {
  padding: 22px 0 4px;
}

.status-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}

.status-row em {
  color: var(--muted);
  font-style: normal;
  font-weight: 800;
}

.status-dot {
  width: 12px;
  height: 12px;
  background: var(--accent);
  border-radius: 999px;
  box-shadow: 0 0 22px var(--accent);
}

.online {
  --accent: var(--green);
}

.planned {
  --accent: var(--amber);
}

.maintenance {
  --accent: var(--cyan);
}

.offline {
  --accent: var(--red);
}

.weather-hero {
  --accent: rgba(97, 198, 214, 0.46);
  background:
    linear-gradient(90deg, rgba(16, 20, 22, 0.96) 0%, rgba(16, 20, 22, 0.74) 48%, rgba(16, 20, 22, 0.32) 100%),
    radial-gradient(circle at 78% 24%, rgba(231, 169, 77, 0.28), transparent 26%),
    linear-gradient(155deg, #101416 0%, #1b2a2e 48%, #30282f 100%);
}

.weather-section {
  background: #101416;
}

.forecast-section {
  background: #141817;
}

.weather-heading {
  align-items: end;
}

.weather-updated,
.weather-muted,
.weather-attribution {
  color: var(--muted);
}

.weather-updated {
  margin: 0;
  font-weight: 800;
  text-align: right;
}

.weather-grid {
  display: grid;
  grid-template-columns: minmax(420px, 1fr) minmax(300px, 360px);
  gap: 14px;
  align-items: start;
}

.weather-alert-band {
  padding-top: 14px;
  padding-bottom: 0;
}

.weather-alert-band[hidden] {
  display: none;
}

.weather-map-panel,
.weather-card,
.hourly-panel,
.daily-card,
.hourly-card {
  border: 1px solid var(--line);
  background: var(--panel);
}

.weather-map-panel {
  min-width: 0;
  overflow: hidden;
}

.weather-panel-heading {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: start;
  padding: 20px;
}

.weather-panel-heading h3 {
  margin: 0;
  font-size: 1.35rem;
}

.weather-panel-heading > span {
  color: var(--amber);
  font-size: 0.82rem;
  font-weight: 900;
  white-space: nowrap;
}

.weather-quickviews,
.hour-range-toggle {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0 20px 18px;
}

.hour-range-toggle {
  justify-content: flex-end;
  padding: 0;
}

.weather-quickviews .button,
.hour-range-toggle .button {
  min-width: 0;
}

.weather-quickviews .button.is-active,
.hour-range-toggle .button.is-active {
  border-color: rgba(97, 198, 214, 0.48);
  background: rgba(97, 198, 214, 0.12);
  color: var(--ink);
}

.weather-radar-map {
  min-height: 560px;
  background:
    repeating-linear-gradient(0deg, rgba(246, 242, 232, 0.06) 0 1px, transparent 1px 48px),
    repeating-linear-gradient(90deg, rgba(246, 242, 232, 0.06) 0 1px, transparent 1px 48px),
    #1b2527;
}

.weather-radar-map .leaflet-control-attribution {
  background: rgba(16, 20, 22, 0.82);
  color: var(--muted);
}

.weather-radar-map .leaflet-control-attribution a {
  color: var(--ink);
}

.weather-radar-map .leaflet-popup-content-wrapper,
.weather-radar-map .leaflet-popup-tip {
  background: rgba(16, 20, 22, 0.94);
  color: var(--ink);
}

.weather-radar-map .leaflet-popup-content {
  color: var(--ink);
  line-height: 1.45;
}

.weather-radar-map .leaflet-interactive {
  filter: drop-shadow(0 0 4px rgba(0, 0, 0, 0.55));
}

.weather-radar-error {
  display: grid;
  place-items: center;
  padding: 24px;
  color: var(--muted);
}

.radar-controls {
  display: grid;
  grid-template-columns: auto minmax(180px, 1fr) minmax(150px, 0.45fr);
  gap: 14px;
  align-items: center;
  padding: 16px 20px;
  border-top: 1px solid var(--line);
}

.radar-controls label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.radar-controls input {
  width: 100%;
  accent-color: var(--cyan);
}

.weather-map-meta {
  display: grid;
  gap: 12px;
  padding: 14px 20px 18px;
  border-top: 1px solid var(--line);
}

.weather-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.weather-legend span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
}

.weather-legend i {
  width: 12px;
  height: 12px;
  border-radius: 999px;
  display: inline-block;
}

.weather-legend i[data-severity="extreme"] {
  background: #cf3a30;
}

.weather-legend i[data-severity="severe"] {
  background: #f08a2d;
}

.weather-legend i[data-severity="moderate"] {
  background: #e7b647;
}

.weather-legend i[data-severity="minor"] {
  background: #53bfd6;
}

.weather-attribution {
  margin: 0;
  font-size: 0.86rem;
}

.weather-attribution a {
  color: var(--ink);
  font-weight: 800;
}

.weather-side {
  display: grid;
  gap: 14px;
  align-content: start;
}

.weather-card {
  padding: 20px;
}

.weather-card h3 {
  margin: 8px 0 12px;
  font-size: 1.22rem;
}

.weather-now-temp,
.station-temp {
  display: block;
  margin: 8px 0 2px;
  color: var(--ink);
  font-size: clamp(2.5rem, 7vw, 4rem);
  line-height: 0.92;
}

.weather-facts {
  margin: 16px 0 0;
}

.weather-facts div {
  grid-template-columns: minmax(92px, 0.72fr) 1fr;
  padding-right: 12px;
  padding-left: 12px;
}

.station-compare {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 16px;
}

.station-compare div,
.forecast-summary-card {
  padding: 12px;
  border: 1px solid rgba(185, 196, 196, 0.2);
  background: rgba(185, 196, 196, 0.06);
}

.station-compare span,
.forecast-summary-card span {
  display: block;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.station-compare strong,
.forecast-summary-card strong {
  display: block;
  margin-top: 8px;
  color: var(--ink);
  font-size: 1rem;
}

.weather-alert-band {
  border-top: 1px solid rgba(217, 111, 95, 0.18);
}

.weather-alert-title {
  margin: 0 0 12px;
  font-size: clamp(1.05rem, 1.8vw, 1.45rem);
  line-height: 1;
}

.weather-alert-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.weather-alert-item {
  padding: 10px;
  border: 1px solid rgba(185, 196, 196, 0.28);
  background: rgba(185, 196, 196, 0.06);
}

.weather-alert-item[data-active="true"] {
  box-shadow: inset 0 0 0 1px rgba(246, 242, 232, 0.26);
}

.weather-alert-item[data-severity="extreme"] {
  border-color: rgba(201, 58, 46, 0.72);
  background: rgba(201, 58, 46, 0.14);
}

.weather-alert-item[data-severity="severe"] {
  border-color: rgba(242, 140, 58, 0.64);
  background: rgba(242, 140, 58, 0.12);
}

.weather-alert-item[data-severity="moderate"] {
  border-color: rgba(231, 169, 77, 0.56);
  background: rgba(231, 169, 77, 0.11);
}

.weather-alert-item[data-severity="minor"] {
  border-color: rgba(97, 198, 214, 0.56);
  background: rgba(97, 198, 214, 0.1);
}

.weather-alert-item summary {
  cursor: pointer;
  list-style: none;
}

.weather-alert-item summary::-webkit-details-marker {
  display: none;
}

.weather-alert-item summary::after {
  content: "Read more";
  display: inline-block;
  margin-top: 10px;
  color: var(--ink);
  font-size: 0.82rem;
  font-weight: 900;
}

.weather-alert-item[open] summary::after {
  content: "Hide details";
}

.weather-alert-list strong,
.weather-alert-list span,
.weather-alert-list summary p {
  display: block;
}

.weather-alert-list span {
  margin: 4px 0 6px;
  color: var(--amber);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.weather-alert-item[data-severity="extreme"] span {
  color: #ff9b92;
}

.weather-alert-item[data-severity="severe"] span {
  color: #ffc58a;
}

.weather-alert-item[data-severity="moderate"] span {
  color: #ffd47e;
}

.weather-alert-item[data-severity="minor"] span {
  color: #8dd8e4;
}

.weather-alert-list p {
  margin: 0;
  color: var(--muted);
  font-size: 0.84rem;
}

.weather-alert-list summary p {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}

.weather-alert-body {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid rgba(246, 242, 232, 0.12);
}

.weather-alert-area,
.weather-alert-meta {
  margin-bottom: 10px;
  color: var(--ink);
  font-weight: 800;
}

.weather-alert-detail {
  white-space: pre-line;
}

.weather-alert-focus {
  margin-top: 12px;
}

.weather-alert-rail {
  min-height: 0;
}

.weather-alert-rail-list {
  display: grid;
  gap: 10px;
}

.weather-alert-rail-item {
  padding: 12px;
  border: 1px solid rgba(185, 196, 196, 0.24);
  background: rgba(185, 196, 196, 0.06);
  text-align: left;
  color: inherit;
}

.weather-alert-rail-item[data-active="true"] {
  border-color: rgba(246, 242, 232, 0.34);
  background: rgba(246, 242, 232, 0.08);
}

.weather-alert-rail-item[data-severity="extreme"] {
  border-left: 4px solid #cf3a30;
}

.weather-alert-rail-item[data-severity="severe"] {
  border-left: 4px solid #f08a2d;
}

.weather-alert-rail-item[data-severity="moderate"] {
  border-left: 4px solid #e7b647;
}

.weather-alert-rail-item[data-severity="minor"] {
  border-left: 4px solid #53bfd6;
}

.weather-alert-rail-item strong,
.weather-alert-rail-item span,
.weather-alert-rail-item p {
  display: block;
}

.weather-alert-rail-item span {
  margin: 6px 0;
  color: var(--amber);
  font-size: 0.75rem;
  font-weight: 900;
  text-transform: uppercase;
}

.weather-alert-rail-item p {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
}

.forecast-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 18px;
}

.daily-forecast {
  display: grid;
  grid-template-columns: repeat(10, minmax(150px, 1fr));
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 12px;
}

.daily-card {
  min-height: 174px;
  padding: 16px;
}

.daily-card time,
.daily-card span {
  display: block;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.daily-card strong {
  display: block;
  margin: 14px 0 8px;
  font-size: 1.5rem;
  line-height: 1;
}

.daily-card p {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.hourly-panel {
  margin-top: 18px;
  overflow: hidden;
}

.hourly-chart {
  min-height: 240px;
  padding: 0 18px 12px;
}

.hourly-chart svg {
  display: block;
  width: 100%;
  height: auto;
}

.chart-grid-line {
  stroke: rgba(246, 242, 232, 0.16);
  stroke-width: 1;
}

.chart-label {
  fill: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.chart-time-label {
  text-anchor: middle;
}

.precip-bar {
  fill: rgba(97, 198, 214, 0.36);
}

.precip-bar.past {
  fill: rgba(185, 196, 196, 0.16);
}

.past-forecast-shade {
  fill: rgba(16, 20, 22, 0.48);
}

.now-line {
  stroke: var(--ink);
  stroke-width: 2;
  stroke-dasharray: 5 5;
}

.now-label {
  fill: var(--ink);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.temp-line,
.dew-line {
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 4;
}

.temp-line {
  stroke: var(--amber);
}

.dew-line {
  stroke: var(--cyan);
}

.temp-line.past,
.dew-line.past {
  opacity: 0.3;
}

.hourly-strip {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(126px, 1fr);
  gap: 10px;
  overflow-x: auto;
  padding: 0 18px 18px;
}

.hourly-card {
  min-height: 142px;
  padding: 14px;
}

.hourly-card time,
.hourly-card span {
  display: block;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
}

.hourly-card strong {
  display: block;
  margin: 10px 0 4px;
  font-size: 1.7rem;
  line-height: 1;
}

.hourly-card p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.weather-city-label {
  border: 0;
  background: transparent;
  box-shadow: none;
  color: rgba(246, 242, 232, 0.92);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.weather-city-label::before {
  display: none;
}

dl {
  display: grid;
  gap: 1px;
  margin-top: 18px;
  background: var(--line);
}

dl div {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 12px;
  padding: 12px 0;
  background: var(--panel);
}

dt {
  color: var(--muted);
}

dd {
  margin: 0;
  color: var(--ink);
  font-weight: 800;
}

footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 28px clamp(18px, 6vw, 76px);
  border-top: 1px solid var(--line);
  background: #101416;
}

footer span:first-child {
  color: var(--ink);
  font-weight: 900;
}

@media (prefers-reduced-motion: reduce) {
  .home-splash {
    display: none;
  }
}

@media (max-width: 980px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }

  nav {
    width: 100%;
    justify-content: space-between;
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .hero,
  .page-hero {
    padding-top: 148px;
  }

  .home-hero {
    min-height: 78svh;
  }

  .intro-band,
  .split-section,
  .detail-band,
  .featured-design,
  .star-citizen-panel,
  .star-citizen-grid,
  .weather-grid,
  .map-shell {
    grid-template-columns: 1fr;
  }

  .featured-design .model-preview {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .map-panel {
    border-right: 1px solid var(--line);
    border-bottom: 0;
  }

  .portal-grid,
  .astro-gallery,
  .drone-gallery,
  .sc-screenshot-grid,
  .photo-grid,
  .design-grid,
  .server-grid,
  .metric-grid,
  .metric-panels,
  .forecast-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .weather-updated {
    text-align: left;
  }

  .recent-events article {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  h1 {
    font-size: clamp(2.35rem, 13vw, 3.6rem);
  }

  h2 {
    font-size: clamp(2rem, 10vw, 3rem);
  }

  .portal-grid,
  .astro-gallery,
  .drone-gallery,
  .sc-screenshot-grid,
  .photo-grid,
  .design-grid,
  .server-grid,
  .metric-grid,
  .metric-panels,
  .forecast-summary {
    grid-template-columns: 1fr;
  }

  .metric-bars {
    grid-template-columns: repeat(7, minmax(24px, 1fr));
    overflow-x: auto;
  }

  .portal-card {
    min-height: 260px;
  }

  .model-list div,
  dl div {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .map-canvas {
    min-height: 430px;
  }

  .weather-radar-map {
    min-height: 430px;
  }

  .weather-panel-heading,
  .radar-controls {
    grid-template-columns: 1fr;
  }

  .weather-panel-heading {
    display: grid;
  }

  .weather-side {
    grid-template-columns: 1fr;
  }

  .weather-alert-list {
    grid-template-columns: 1fr;
  }

  .station-compare {
    grid-template-columns: 1fr;
  }

  .weather-map-meta {
    gap: 14px;
  }

  footer {
    flex-direction: column;
  }
}
