:root {
  /* Design tokens supplied with the Air reference. */
  --color-whiteout: #ffffff;
  --color-haze: #f5f5f5;
  --color-ink: #1b1b1b;
  --color-black-void: #000000;
  --color-twilight-blue: #426188;
  --color-signal-blue: #2b7fff;

  --font-control: "Inter", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-control-compressed: "Anton", Impact, sans-serif;
  --font-control-cursive: "Caveat", "Segoe Print", cursive;
  --font-control-tnt: "Inter", ui-sans-serif, system-ui, sans-serif;

  --text-caption: 13px;
  --text-body: 16px;
  --text-subheading: 20px;
  --text-heading: 32px;
  --text-heading-lg: 56px;
  --text-display: 259px;

  --spacing-4: 4px;
  --spacing-8: 8px;
  --spacing-12: 12px;
  --spacing-16: 16px;
  --spacing-20: 20px;
  --spacing-24: 24px;
  --spacing-32: 32px;
  --spacing-48: 48px;
  --spacing-52: 52px;
  --spacing-64: 64px;
  --spacing-80: 80px;
  --spacing-120: 120px;

  --page-max-width: 1150px;
  --radius-inputs: 4px;
  --radius-buttons: 8px;
  --radius-images: 11px;
  --radius-cards: 12px;
  --radius-pills: 9999px;

  --line-dark: rgba(255, 255, 255, 0.16);
  --line-dark-soft: rgba(255, 255, 255, 0.09);
  --line-light: rgba(27, 27, 27, 0.14);
  --muted-dark: rgba(255, 255, 255, 0.62);
  --muted-light: rgba(27, 27, 27, 0.62);

  /* Semantic theme surfaces. The photographic sections remain dark moments. */
  --page-canvas: var(--color-black-void);
  --page-text: var(--color-whiteout);
  --page-muted: var(--muted-dark);
  --page-line: var(--line-dark);
  --panel-surface: var(--color-haze);
  --panel-hover: var(--color-whiteout);
  --panel-hover-border: rgba(255, 255, 255, 0.8);
  --metric-surface: var(--color-whiteout);
  --script-accent: #8fa7c2;
  --news-card-surface: transparent;
  --news-hover-surface: var(--color-haze);
  --news-hover-text: var(--color-ink);
  --news-hover-muted: var(--muted-light);
}

html[data-theme="light"] {
  color-scheme: light;
  --page-canvas: var(--color-haze);
  --page-text: var(--color-ink);
  --page-muted: rgba(27, 27, 27, 0.62);
  --page-line: rgba(27, 27, 27, 0.14);
  --panel-surface: var(--color-whiteout);
  --panel-hover: var(--color-haze);
  --panel-hover-border: rgba(27, 27, 27, 0.34);
  --metric-surface: var(--color-haze);
  --script-accent: var(--color-twilight-blue);
  --news-card-surface: var(--color-whiteout);
  --news-hover-surface: var(--color-ink);
  --news-hover-text: var(--color-whiteout);
  --news-hover-muted: rgba(255, 255, 255, 0.62);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  color-scheme: dark;
  background: var(--page-canvas);
}

body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  background: var(--page-canvas);
  color: var(--page-text);
  font-family: var(--font-control);
  font-size: var(--text-body);
  font-weight: 400;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  transition: background-color 220ms ease, color 220ms ease;
}

button,
a,
select {
  font: inherit;
}

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

a {
  color: inherit;
}

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

button {
  border: 0;
}

[hidden] {
  display: none !important;
}

::selection {
  background: var(--color-twilight-blue);
  color: var(--color-whiteout);
}

:focus-visible {
  outline: 2px solid var(--color-signal-blue);
  outline-offset: 3px;
}

.eyebrow {
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: var(--text-caption);
  font-weight: 500;
  letter-spacing: 0.14em;
  line-height: 1.5;
  text-transform: uppercase;
}

.eyebrow.ink {
  color: var(--color-ink);
}

.eyebrow.twilight {
  color: var(--script-accent);
}

.manifest {
  position: relative;
  z-index: 20;
  display: flex;
  align-items: center;
  height: 32px;
  overflow: hidden;
  border-bottom: 1px solid var(--page-line);
  background: var(--page-canvas);
  color: var(--page-text);
  transition: background-color 220ms ease, color 220ms ease, border-color 220ms ease;
}

.manifest-tag {
  position: relative;
  z-index: 2;
  flex: 0 0 auto;
  height: 100%;
  display: inline-flex;
  align-items: center;
  padding: 0 var(--spacing-20);
  border-right: 1px solid var(--page-line);
  background: var(--page-canvas);
  color: var(--page-text);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.15em;
}

.manifest-viewport {
  min-width: 0;
  overflow: hidden;
}

.manifest-track {
  width: max-content;
  display: flex;
  align-items: center;
  gap: var(--spacing-48);
  padding-left: var(--spacing-48);
  white-space: nowrap;
  animation: manifest-scroll 48s linear infinite;
}

.manifest-track:hover {
  animation-play-state: paused;
}

.manifest-item {
  color: var(--page-muted);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.06em;
}

.manifest-item b {
  color: var(--page-text);
  font-weight: 500;
}

.manifest-dot {
  margin-right: var(--spacing-4);
  color: var(--color-twilight-blue);
  font-size: 8px;
}

.manifest-dot.online {
  color: var(--page-text);
}

.manifest-dot.soon {
  color: var(--page-line);
}

@keyframes manifest-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.hub-shell,
.page {
  width: 100%;
}

.hero {
  position: relative;
  min-height: max(760px, calc(100svh - 32px));
  overflow: hidden;
  isolation: isolate;
  background: #05080d;
}

.hero-media,
.hero-media img,
.hero-scrim {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-media {
  z-index: -2;
}

.hero-media img {
  object-fit: cover;
  object-position: center center;
  animation: hero-breathe 18s ease-in-out infinite alternate;
}

.hero-scrim {
  z-index: 1;
  background: rgba(0, 0, 0, 0.48);
}

.hero::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background: rgba(0, 0, 0, 0.1);
  pointer-events: none;
}

@keyframes hero-breathe {
  from { transform: scale(1.01); }
  to { transform: scale(1.055); }
}

.hero-nav {
  position: relative;
  z-index: 3;
  width: min(var(--page-max-width), calc(100% - 48px));
  height: 72px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: var(--spacing-32);
  border-bottom: 1px solid var(--line-dark);
}

.hero-brand {
  width: fit-content;
  display: inline-flex;
  align-items: center;
  gap: var(--spacing-12);
  text-decoration: none;
}

.hero-mark {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border: 1px solid var(--color-whiteout);
  border-radius: var(--radius-buttons);
  color: var(--color-whiteout);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.04em;
}

.hero-brand-copy {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.hero-brand-copy b {
  color: var(--color-whiteout);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.14em;
}

.hero-brand-copy small {
  margin-top: 5px;
  color: rgba(255, 255, 255, 0.5);
  font-size: 8px;
  font-weight: 500;
  letter-spacing: 0.2em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--spacing-32);
}

.nav-links a,
.foot-links a {
  position: relative;
  color: rgba(255, 255, 255, 0.72);
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  transition: color 160ms ease;
}

.nav-links a::after,
.foot-links a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -5px;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 180ms ease;
}

.nav-links a:hover,
.foot-links a:hover {
  color: var(--color-whiteout);
}

.nav-links a:hover::after,
.foot-links a:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.ghost-button {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--spacing-12);
  border: 1px solid var(--color-whiteout);
  border-radius: var(--radius-buttons);
  background: transparent;
  color: var(--color-whiteout);
  padding: 9px var(--spacing-16);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transition: background 160ms ease, color 160ms ease, transform 160ms ease;
}

.ghost-button:hover {
  background: var(--color-whiteout);
  color: var(--color-ink);
  transform: translateY(-1px);
}

.nav-action {
  flex: 0 0 auto;
}

.nav-actions {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: var(--spacing-8);
}

.theme-toggle {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--spacing-8);
  border: 1px solid rgba(255, 255, 255, 0.48);
  border-radius: var(--radius-pills);
  background: rgba(0, 0, 0, 0.34);
  color: var(--color-whiteout);
  padding: 8px var(--spacing-12);
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: background 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.theme-toggle:hover {
  border-color: var(--color-whiteout);
  background: rgba(255, 255, 255, 0.12);
  transform: translateY(-1px);
}

.theme-toggle-icon {
  width: 16px;
  height: 16px;
  display: grid;
  place-items: center;
}

.theme-icon {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

.theme-icon-moon {
  display: none;
}

html[data-theme="light"] .theme-icon-sun {
  display: none;
}

html[data-theme="light"] .theme-icon-moon {
  display: block;
}

.hero-body {
  position: relative;
  z-index: 2;
  width: min(var(--page-max-width), calc(100% - 48px));
  min-height: 605px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 250px;
  align-items: end;
  gap: var(--spacing-48);
  padding: var(--spacing-80) 0 155px;
}

.hero-copy {
  max-width: 900px;
}

.hero-title {
  margin: var(--spacing-20) 0 var(--spacing-24);
  color: var(--color-whiteout);
  font-weight: 400;
}

.hero-title span {
  display: block;
  font-family: var(--font-control-compressed);
  font-size: clamp(82px, 10.5vw, 168px);
  font-weight: 400;
  letter-spacing: -0.035em;
  line-height: 0.82;
  text-transform: uppercase;
  white-space: nowrap;
}

.hero-title em {
  display: block;
  margin-top: -0.09em;
  color: #c6d2df;
  font-family: var(--font-control-cursive);
  font-size: clamp(80px, 10vw, 158px);
  font-style: normal;
  font-weight: 400;
  letter-spacing: -0.045em;
  line-height: 0.83;
}

.hero-sub {
  max-width: 600px;
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: var(--text-body);
  font-weight: 400;
  line-height: 1.5;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: var(--spacing-20);
  margin-top: var(--spacing-32);
}

.hero-status {
  display: inline-flex;
  align-items: center;
  gap: var(--spacing-8);
  color: rgba(255, 255, 255, 0.72);
  font-size: 13px;
  font-weight: 500;
}

.hero-status::before {
  content: "";
  width: 7px;
  height: 7px;
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  background: transparent;
  animation: status-pulse 1.8s ease-in-out infinite;
}

@keyframes status-pulse {
  50% { background: var(--color-whiteout); }
}

.weather-box {
  align-self: end;
  border: 1px solid rgba(255, 255, 255, 0.26);
  border-radius: var(--radius-cards);
  background: rgba(0, 0, 0, 0.38);
  color: var(--color-whiteout);
  padding: var(--spacing-20);
}

.weather-top,
.weather-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--spacing-12);
}

.weather-kicker,
.weather-time {
  color: rgba(255, 255, 255, 0.62);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.weather-main {
  margin-top: var(--spacing-20);
}

.weather-temp {
  display: block;
  font-size: 34px;
  font-weight: 500;
  letter-spacing: -0.05em;
  line-height: 1;
}

.weather-desc {
  display: block;
  margin-top: var(--spacing-8);
  color: rgba(255, 255, 255, 0.68);
  font-size: 12px;
}

.weather-chip {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: var(--radius-buttons);
  background: var(--color-haze);
  color: var(--color-ink);
  font-size: 23px;
}

.weather-foot {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--spacing-8);
  margin-top: var(--spacing-20);
  padding-top: var(--spacing-16);
  border-top: 1px solid var(--line-dark);
}

.weather-foot span {
  color: rgba(255, 255, 255, 0.5);
  font-size: 10px;
}

.weather-foot b {
  display: block;
  color: var(--color-whiteout);
  font-size: 13px;
  font-weight: 500;
}

.quick-access {
  position: absolute;
  z-index: 3;
  left: 0;
  right: 0;
  bottom: 0;
  min-height: 92px;
  display: grid;
  grid-template-columns: minmax(130px, 0.75fr) repeat(4, 1fr);
  align-items: stretch;
  padding-inline: max(24px, calc((100% - var(--page-max-width)) / 2));
  border-top: 1px solid var(--line-dark);
  background: rgba(0, 0, 0, 0.54);
}

.quick-access-label {
  display: flex;
  align-items: center;
  padding-right: var(--spacing-20);
  color: rgba(255, 255, 255, 0.5);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.14em;
}

.quick-access-link {
  min-width: 0;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: var(--spacing-12);
  border-left: 1px solid var(--line-dark);
  padding: var(--spacing-20);
  color: var(--color-whiteout);
  text-decoration: none;
  transition: background 160ms ease;
}

.quick-access-link:last-child {
  border-right: 1px solid var(--line-dark);
}

.quick-access-link:hover {
  background: rgba(255, 255, 255, 0.08);
}

.quick-access-link span {
  color: rgba(255, 255, 255, 0.42);
  font-size: 10px;
  font-weight: 500;
}

.quick-access-link b {
  overflow: hidden;
  font-size: 12px;
  font-weight: 500;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.quick-access-link i {
  color: rgba(255, 255, 255, 0.62);
  font-size: 13px;
  font-style: normal;
}

.modules,
.journey,
.radar {
  width: min(var(--page-max-width), calc(100% - 48px));
  margin: 0 auto;
  padding: var(--spacing-120) 0;
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  align-items: end;
  gap: var(--spacing-64);
  margin-bottom: var(--spacing-64);
}

.section-heading h2,
.deck-copy h2,
.sheet-showcase-copy h2 {
  margin: var(--spacing-16) 0 0;
  font-family: var(--font-control-tnt);
  font-size: clamp(42px, 5vw, var(--text-heading-lg));
  font-weight: 500;
  letter-spacing: -0.055em;
  line-height: 0.98;
}

.section-heading h2 em,
.deck-copy h2 em,
.sheet-showcase-copy h2 em {
  color: var(--script-accent);
  font-family: var(--font-control-cursive);
  font-size: 1.22em;
  font-style: normal;
  font-weight: 400;
  letter-spacing: -0.035em;
}

.section-aside {
  padding-left: var(--spacing-20);
  border-left: 1px solid var(--page-line);
}

.section-aside > span {
  display: block;
  color: var(--page-text);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.section-aside p {
  margin: var(--spacing-12) 0 0;
  color: var(--page-muted);
  font-size: 14px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: var(--spacing-24);
}

.card {
  position: relative;
  grid-column: span 2;
  min-width: 0;
  min-height: 360px;
  overflow: hidden;
  border: 1px solid transparent;
  border-radius: var(--radius-cards);
  background: var(--panel-surface);
  color: var(--color-ink);
  padding: 0;
  text-align: left;
  cursor: pointer;
  transition: transform 220ms ease, border-color 220ms ease, background 220ms ease;
}

.card:nth-child(4),
.card:nth-child(5) {
  grid-column: span 3;
}

.card:hover {
  border-color: var(--panel-hover-border);
  background: var(--panel-hover);
  transform: translateY(-5px);
}

.card[aria-disabled="true"] {
  cursor: default;
  opacity: 0.62;
}

.card.loading {
  cursor: wait;
  opacity: 0.72;
}

.card-inner {
  height: 100%;
  min-height: 358px;
  display: flex;
  flex-direction: column;
  padding: var(--spacing-20);
}

.card-top,
.card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--spacing-12);
}

.card-code,
.card-port {
  color: var(--muted-light);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid var(--line-light);
  border-radius: var(--radius-inputs);
  padding: 5px 7px;
  color: var(--color-ink);
  font-size: 10px;
  font-weight: 500;
  line-height: 1;
  text-transform: uppercase;
}

.badge::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--color-twilight-blue);
}

.badge[data-status="online"]::before {
  background: var(--color-ink);
}

.badge[data-status="em_breve"]::before {
  background: rgba(27, 27, 27, 0.28);
}

.card-logo-stage {
  position: relative;
  flex: 1 1 auto;
  min-height: 150px;
  display: grid;
  place-items: center;
  overflow: hidden;
  margin: var(--spacing-12) 0 var(--spacing-16);
  border-bottom: 1px solid var(--line-light);
}

.card-logo {
  position: relative;
  z-index: 2;
  width: min(64%, 170px);
  height: 70px;
  display: grid;
  place-items: center;
  transition: transform 220ms ease;
}

.card:hover .card-logo {
  transform: scale(1.045);
}

.card-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: grayscale(1) contrast(1.1);
}

.card-orbit {
  position: absolute;
  width: 132px;
  height: 132px;
  border: 1px solid rgba(27, 27, 27, 0.12);
  border-radius: 50%;
  transition: transform 400ms ease;
}

.card-orbit::after {
  content: "";
  position: absolute;
  inset: 16px;
  border: 1px solid rgba(27, 27, 27, 0.08);
  border-radius: 50%;
}

.card:hover .card-orbit {
  transform: rotate(18deg) scale(1.1);
}

.card-brand-index {
  position: absolute;
  right: 0;
  bottom: var(--spacing-12);
  color: rgba(27, 27, 27, 0.24);
  font-family: var(--font-control-compressed);
  font-size: 28px;
}

.card-copy {
  min-height: 94px;
}

.card-name {
  display: block;
  font-size: var(--text-subheading);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.card-copy p {
  margin: var(--spacing-8) 0 0;
  color: var(--muted-light);
  font-size: 13px;
  line-height: 1.45;
}

.card-foot {
  margin-top: var(--spacing-16);
  padding-top: var(--spacing-16);
  border-top: 1px solid var(--line-light);
}

.card-open {
  color: var(--color-ink);
  font-size: 12px;
  font-weight: 500;
}

.visual-interlude {
  position: relative;
  width: 100%;
  min-height: 680px;
  overflow: hidden;
  background: #07090d;
}

.visual-interlude img {
  position: absolute;
  inset: -3%;
  width: 106%;
  height: 106%;
  max-width: none;
  object-fit: cover;
}

.visual-interlude-3d {
  perspective: 1200px;
}

.visual-interlude-3d .visual-3d-image {
  transform: rotateX(var(--tilt-y, 0deg)) rotateY(var(--tilt-x, 0deg)) scale(1.055);
  transition: transform 420ms ease-out;
}

.visual-shade {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.38);
}

.visual-copy,
.interlude-band-copy {
  position: absolute;
  z-index: 2;
  left: max(24px, calc((100% - var(--page-max-width)) / 2));
  right: max(24px, calc((100% - var(--page-max-width)) / 2));
  bottom: var(--spacing-64);
}

.visual-copy > span,
.interlude-band-copy > span {
  display: block;
  margin-bottom: var(--spacing-20);
  color: rgba(255, 255, 255, 0.68);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
}

.visual-copy strong {
  display: block;
  color: var(--color-whiteout);
  font-family: var(--font-control-compressed);
  font-size: clamp(76px, 12vw, 170px);
  font-weight: 400;
  letter-spacing: -0.035em;
  line-height: 0.82;
}

.control-deck,
.sheet-showcase {
  width: min(var(--page-max-width), calc(100% - 48px));
  margin: var(--spacing-120) auto;
  display: grid;
  grid-template-columns: 0.9fr 1.35fr;
  gap: var(--spacing-64);
  border-radius: var(--radius-cards);
  background: var(--panel-surface);
  color: var(--color-ink);
  padding: var(--spacing-48);
}

.deck-copy,
.sheet-showcase-copy {
  align-self: center;
}

.deck-copy h2 em,
.sheet-showcase-copy h2 em {
  color: var(--color-twilight-blue);
}

.deck-copy > p:not(.eyebrow),
.sheet-showcase-copy > p:not(.eyebrow) {
  max-width: 410px;
  margin: var(--spacing-24) 0 0;
  color: var(--muted-light);
  font-size: 14px;
}

.underline-link {
  width: fit-content;
  display: inline-flex;
  align-items: center;
  gap: var(--spacing-12);
  margin-top: var(--spacing-24);
  border-bottom: 2px solid currentColor;
  color: var(--color-signal-blue);
  padding: var(--spacing-8);
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
}

.deck-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid var(--line-light);
  border-left: 1px solid var(--line-light);
}

.deck-metric {
  min-height: 160px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border-right: 1px solid var(--line-light);
  border-bottom: 1px solid var(--line-light);
  background: var(--metric-surface);
  color: var(--color-ink);
  padding: var(--spacing-20);
}

.deck-metric > span {
  color: var(--muted-light);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.deck-metric strong {
  margin-top: auto;
  font-size: clamp(34px, 4vw, 48px);
  font-weight: 500;
  letter-spacing: -0.06em;
  line-height: 1;
}

.deck-metric small {
  margin-top: var(--spacing-8);
  color: var(--muted-light);
  font-size: 11px;
}

.journey {
  padding-top: 0;
}

.journey-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--spacing-24);
}

.journey-card {
  min-width: 0;
  overflow: hidden;
  border-radius: var(--radius-cards);
  background: var(--panel-surface);
  color: var(--color-ink);
}

.journey-body {
  padding: var(--spacing-24);
}

.journey-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--spacing-20);
  padding-bottom: var(--spacing-20);
  border-bottom: 1px solid var(--line-light);
}

.journey-index,
.journey-kicker {
  color: var(--muted-light);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.journey-card h3 {
  margin: var(--spacing-32) 0 var(--spacing-12);
  font-size: var(--text-heading);
  font-weight: 500;
  letter-spacing: -0.045em;
  line-height: 1.1;
}

.journey-card p {
  min-height: 48px;
  margin: 0;
  color: var(--muted-light);
  font-size: 14px;
}

.journey-progress {
  height: 4px;
  overflow: hidden;
  margin-top: var(--spacing-32);
  border-radius: var(--radius-inputs);
  background: rgba(27, 27, 27, 0.1);
}

.journey-progress span {
  display: block;
  height: 100%;
  background: var(--color-ink);
  transform-origin: left;
  animation: progress-in 800ms ease both;
}

@keyframes progress-in {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}

.journey-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--spacing-8);
  margin-top: var(--spacing-20);
}

.journey-facts span {
  min-width: 0;
  border-right: 1px solid var(--line-light);
  padding-right: var(--spacing-8);
}

.journey-facts span:last-child {
  border-right: 0;
}

.journey-facts b,
.journey-facts small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.journey-facts b {
  font-size: 14px;
  font-weight: 500;
}

.journey-facts small {
  margin-top: var(--spacing-4);
  color: var(--muted-light);
  font-size: 10px;
}

.visual-interlude-band {
  min-height: 720px;
}

.interlude-band-copy strong {
  display: block;
  max-width: 950px;
  color: var(--color-whiteout);
  font-family: var(--font-control-tnt);
  font-size: clamp(54px, 7.2vw, 98px);
  font-weight: 500;
  letter-spacing: -0.065em;
  line-height: 0.92;
}

.interlude-band-copy strong em {
  color: #c6d2df;
  font-family: var(--font-control-cursive);
  font-size: 1.12em;
  font-style: normal;
  font-weight: 400;
}

.sheet-showcase {
  grid-template-columns: 0.76fr 1.45fr;
}

.sheet-card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--spacing-12);
}

.sheet-card {
  position: relative;
  min-width: 0;
  min-height: 170px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  border: 1px solid var(--line-light);
  border-radius: var(--radius-buttons);
  background: var(--metric-surface);
  color: var(--color-ink);
  padding: var(--spacing-20);
  text-align: left;
  cursor: pointer;
  transition: background 160ms ease, color 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.sheet-card::after {
  content: "↗";
  position: absolute;
  top: var(--spacing-20);
  right: var(--spacing-20);
  font-size: 14px;
}

.sheet-card:hover {
  border-color: var(--color-ink);
  background: var(--color-ink);
  color: var(--color-whiteout);
  transform: translateY(-3px);
}

.sheet-card > span {
  color: var(--color-signal-blue);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.sheet-card:hover > span {
  color: #91baff;
}

.sheet-card strong {
  max-width: 85%;
  margin: auto 0 var(--spacing-12);
  font-size: 16px;
  font-weight: 500;
  line-height: 1.25;
}

.sheet-card small {
  color: var(--muted-light);
  font-size: 11px;
}

.sheet-card:hover small {
  color: rgba(255, 255, 255, 0.58);
}

.visual-interlude-last {
  min-height: 760px;
}

.visual-interlude-last img {
  object-position: center 62%;
}

.interlude-band-copy-center {
  text-align: center;
}

.interlude-band-copy-center strong {
  max-width: none;
  font-family: var(--font-control-compressed);
  font-size: clamp(92px, 15vw, 210px);
  font-weight: 400;
  letter-spacing: -0.045em;
  line-height: 0.8;
}

.radar {
  padding-bottom: var(--spacing-80);
}

.news {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--page-line);
  border-left: 1px solid var(--page-line);
}

.news-card {
  min-height: 230px;
  display: flex;
  flex-direction: column;
  border-right: 1px solid var(--page-line);
  border-bottom: 1px solid var(--page-line);
  background: var(--news-card-surface);
  color: var(--page-text);
  padding: var(--spacing-20);
  text-decoration: none;
  transition: background 180ms ease, color 180ms ease;
}

.news-card:hover {
  background: var(--news-hover-surface);
  color: var(--news-hover-text);
}

.news-source {
  width: fit-content;
  border-bottom: 2px solid currentColor;
  color: var(--color-signal-blue);
  padding-bottom: var(--spacing-4);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.news-title {
  margin: var(--spacing-32) 0;
  font-size: 17px;
  font-weight: 500;
  letter-spacing: -0.025em;
  line-height: 1.35;
}

.news-date {
  margin-top: auto;
  color: var(--page-muted);
  font-size: 11px;
}

.news-card:hover .news-date {
  color: var(--news-hover-muted);
}

.news-empty {
  grid-column: 1 / -1;
  min-height: 180px;
  display: grid;
  place-items: center;
  border-right: 1px solid var(--page-line);
  border-bottom: 1px solid var(--page-line);
  color: var(--page-muted);
  padding: var(--spacing-32);
  text-align: center;
}

.page-foot {
  width: min(var(--page-max-width), calc(100% - 48px));
  min-height: 240px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr auto;
  align-items: start;
  gap: var(--spacing-48);
  border-top: 1px solid var(--page-line);
  padding: var(--spacing-48) 0 var(--spacing-64);
}

.page-foot p {
  margin: 0;
  color: var(--page-muted);
  font-size: 13px;
}

.foot-links {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--spacing-12);
}

.foot-clock {
  color: var(--page-text);
  font-size: var(--text-heading);
  font-weight: 500;
  letter-spacing: -0.05em;
  line-height: 1;
}

.toast {
  position: fixed;
  z-index: 80;
  right: var(--spacing-24);
  bottom: var(--spacing-24);
  max-width: min(420px, calc(100vw - 48px));
  border: 1px solid var(--color-whiteout);
  border-radius: var(--radius-buttons);
  background: var(--color-haze);
  color: var(--color-ink);
  padding: var(--spacing-16) var(--spacing-20);
  font-size: 13px;
  font-weight: 500;
  opacity: 0;
  pointer-events: none;
  transform: translateY(16px);
  transition: opacity 180ms ease, transform 180ms ease;
}

.page-foot .hero-mark {
  border-color: var(--page-text);
  color: var(--page-text);
}

.page-foot .hero-brand-copy b {
  color: var(--page-text);
}

.page-foot .hero-brand-copy small,
.foot-links a {
  color: var(--page-muted);
}

.foot-links a:hover {
  color: var(--page-text);
}

html[data-theme="light"] .toast:not(.err) {
  border-color: var(--color-ink);
  background: var(--color-ink);
  color: var(--color-whiteout);
}

/* The same Alpine photograph becomes a true light hero without a second asset. */
html[data-theme="light"] .hero {
  background: #dfe7ee;
}

html[data-theme="light"] .hero-scrim {
  background: rgba(255, 255, 255, 0.26);
}

html[data-theme="light"] .hero::after {
  background: rgba(255, 255, 255, 0.04);
}

html[data-theme="light"] .hero-nav {
  border-bottom-color: rgba(27, 27, 27, 0.24);
}

html[data-theme="light"] .hero .hero-mark {
  border-color: var(--color-ink);
  color: var(--color-ink);
}

html[data-theme="light"] .hero .hero-brand-copy b,
html[data-theme="light"] .hero-title,
html[data-theme="light"] .hero-status,
html[data-theme="light"] .nav-links a,
html[data-theme="light"] .quick-access-link {
  color: var(--color-ink);
}

html[data-theme="light"] .hero .hero-brand-copy small,
html[data-theme="light"] .hero-sub,
html[data-theme="light"] .quick-access-label,
html[data-theme="light"] .quick-access-link span,
html[data-theme="light"] .quick-access-link i {
  color: rgba(27, 27, 27, 0.58);
}

html[data-theme="light"] .hero-title em {
  color: var(--color-twilight-blue);
}

html[data-theme="light"] .hero .eyebrow {
  color: rgba(27, 27, 27, 0.7);
}

html[data-theme="light"] .hero .ghost-button {
  border-color: var(--color-ink);
  color: var(--color-ink);
}

html[data-theme="light"] .hero .ghost-button:hover {
  background: var(--color-ink);
  color: var(--color-whiteout);
}

html[data-theme="light"] .theme-toggle {
  border-color: rgba(27, 27, 27, 0.46);
  background: rgba(255, 255, 255, 0.38);
  color: var(--color-ink);
}

html[data-theme="light"] .theme-toggle:hover {
  border-color: var(--color-ink);
  background: rgba(255, 255, 255, 0.7);
}

html[data-theme="light"] .hero-status::before {
  border-color: var(--color-ink);
  background: var(--color-ink);
  animation: none;
}

html[data-theme="light"] .weather-box {
  border-color: rgba(27, 27, 27, 0.24);
  background: rgba(255, 255, 255, 0.7);
  color: var(--color-ink);
}

html[data-theme="light"] .weather-kicker,
html[data-theme="light"] .weather-time,
html[data-theme="light"] .weather-desc {
  color: rgba(27, 27, 27, 0.62);
}

html[data-theme="light"] .weather-chip {
  background: var(--color-ink);
  color: var(--color-whiteout);
}

html[data-theme="light"] .weather-foot {
  border-top-color: rgba(27, 27, 27, 0.18);
}

html[data-theme="light"] .weather-foot span {
  color: rgba(27, 27, 27, 0.54);
}

html[data-theme="light"] .weather-foot b {
  color: var(--color-ink);
}

html[data-theme="light"] .quick-access {
  border-top-color: rgba(27, 27, 27, 0.18);
  background: rgba(255, 255, 255, 0.74);
}

html[data-theme="light"] .quick-access-link,
html[data-theme="light"] .quick-access-link:last-child {
  border-color: rgba(27, 27, 27, 0.16);
}

html[data-theme="light"] .quick-access-link:hover {
  background: rgba(255, 255, 255, 0.94);
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

.toast.err {
  border-color: var(--color-ink);
  background: var(--color-ink);
  color: var(--color-whiteout);
}

.reveal,
.magnetic-field {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 700ms ease var(--stagger, 0ms), transform 700ms ease var(--stagger, 0ms);
}

.reveal.in-view,
.magnetic-field.in-view {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1040px) {
  .hero-nav {
    grid-template-columns: 1fr auto;
  }

  .nav-links {
    display: none;
  }

  .hero-body {
    grid-template-columns: minmax(0, 1fr) 230px;
  }

  .hero-title span {
    font-size: clamp(76px, 11.5vw, 116px);
  }

  .hero-title em {
    font-size: clamp(74px, 11vw, 112px);
  }

  .quick-access {
    grid-template-columns: repeat(4, 1fr);
  }

  .quick-access-label {
    display: none;
  }

  .control-deck,
  .sheet-showcase {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 780px) {
  .manifest {
    height: 30px;
  }

  .manifest-tag {
    padding-inline: var(--spacing-12);
  }

  .hero {
    min-height: 900px;
  }

  .hero-nav,
  .hero-body,
  .modules,
  .journey,
  .radar,
  .control-deck,
  .sheet-showcase,
  .page-foot {
    width: min(100% - 32px, var(--page-max-width));
  }

  .hero-nav {
    height: 64px;
  }

  .hero-brand-copy small {
    display: none;
  }

  .nav-action {
    min-height: 36px;
    padding: 7px var(--spacing-12);
  }

  .hero-body {
    min-height: 740px;
    grid-template-columns: 1fr;
    align-content: center;
    gap: var(--spacing-32);
    padding: var(--spacing-64) 0 190px;
  }

  .hero-copy {
    align-self: end;
  }

  .hero-title {
    margin-top: var(--spacing-16);
  }

  .hero-title span {
    font-size: clamp(60px, 18vw, 104px);
    white-space: normal;
  }

  .hero-title em {
    font-size: clamp(64px, 19vw, 108px);
  }

  .hero-sub {
    font-size: 15px;
  }

  .hero-weather {
    width: min(100%, 330px);
  }

  .quick-access {
    grid-template-columns: repeat(2, 1fr);
    min-height: 152px;
    padding-inline: var(--spacing-16);
  }

  .quick-access-link {
    min-height: 76px;
    padding: var(--spacing-12);
  }

  .quick-access-link:nth-child(3) {
    border-right: 1px solid var(--line-dark);
  }

  .quick-access-link:nth-child(n+4) {
    border-top: 1px solid var(--line-dark);
  }

  .modules,
  .journey,
  .radar {
    padding: var(--spacing-80) 0;
  }

  .section-heading {
    grid-template-columns: 1fr;
    gap: var(--spacing-24);
    margin-bottom: var(--spacing-48);
  }

  .section-aside {
    padding: var(--spacing-16) 0 0;
    border-top: 1px solid var(--page-line);
    border-left: 0;
  }

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

  .card,
  .card:nth-child(4),
  .card:nth-child(5) {
    grid-column: auto;
  }

  .card,
  .card-inner {
    min-height: 335px;
  }

  .visual-interlude,
  .visual-interlude-band,
  .visual-interlude-last {
    min-height: 600px;
  }

  .visual-copy,
  .interlude-band-copy {
    bottom: var(--spacing-48);
  }

  .visual-copy strong {
    font-size: clamp(64px, 22vw, 118px);
  }

  .control-deck,
  .sheet-showcase {
    gap: var(--spacing-48);
    margin: var(--spacing-80) auto;
    padding: var(--spacing-24);
  }

  .journey {
    padding-top: 0;
  }

  .journey-grid,
  .sheet-card-grid {
    grid-template-columns: 1fr;
  }

  .sheet-card {
    min-height: 145px;
  }

  .interlude-band-copy strong {
    font-size: clamp(48px, 14vw, 74px);
  }

  .interlude-band-copy-center strong {
    font-size: clamp(82px, 24vw, 136px);
  }

  .page-foot {
    grid-template-columns: 1fr 1fr;
  }

  .foot-clock {
    justify-self: end;
  }
}

@media (max-width: 520px) {
  .hero-mark {
    width: 32px;
    height: 32px;
  }

  .hero-brand-copy b {
    font-size: 12px;
  }

  .nav-action {
    display: none;
  }

  .theme-toggle {
    width: 40px;
    padding: 8px;
  }

  .theme-toggle-label {
    display: none;
  }

  .hero-actions {
    align-items: flex-start;
    flex-direction: column;
  }

  .weather-box {
    padding: var(--spacing-16);
  }

  .quick-access-link span {
    display: none;
  }

  .quick-access-link {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .section-heading h2,
  .deck-copy h2,
  .sheet-showcase-copy h2 {
    font-size: 40px;
  }

  .deck-metrics {
    grid-template-columns: 1fr;
  }

  .deck-metric {
    min-height: 135px;
  }

  .journey-facts {
    gap: var(--spacing-4);
  }

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

  .news-card {
    min-height: 200px;
  }

  .page-foot {
    grid-template-columns: 1fr;
  }

  .foot-clock {
    justify-self: start;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }

  .reveal,
  .magnetic-field {
    opacity: 1;
    transform: none;
  }
}
