/*
 * Krueger Hub — Augen-inspired visual layer
 * The original application styles remain available for the embedded-system
 * wrapper; this file restyles the Hub itself with the supplied design tokens.
 */

:root {
  --color-off-black: #0f1012;
  --color-pure-black: #020201;
  --color-off-white: #f2f2f4;
  --color-pure-white: #fdfdfd;
  --color-steel-gray: #5e5e5e;
  --color-ash-gray: #8f8f8f;
  --color-signal-blue: #0071e3;

  --font-pp-neue-montreal: "Inter", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-control: var(--font-pp-neue-montreal);
  --font-control-compressed: var(--font-pp-neue-montreal);
  --font-control-cursive: var(--font-pp-neue-montreal);
  --text-caption: 10px;
  --text-body: 16px;
  --text-subheading: 18px;
  --text-heading: 27px;

  --spacing-4: 4px;
  --spacing-6: 6px;
  --spacing-10: 10px;
  --spacing-11: 11px;
  --spacing-22: 22px;
  --spacing-30: 30px;
  --spacing-34: 34px;
  --spacing-35: 35px;
  --spacing-50: 50px;
  --spacing-69: 69px;
  --spacing-94: 94px;
  --spacing-113: 113px;
  --spacing-130: 130px;
  --spacing-144: 144px;
  --spacing-220: 220px;

  --page-max-width: 1200px;
  --radius-sm: 1.8px;
  --radius-nav: 10px;
  --radius-button: 26px;
  --radius-card: 54px;
  --radius-container: 63px;
  --radius-pill: 9999px;

  --page-canvas: var(--color-off-black);
  --page-text: var(--color-pure-white);
  --page-muted: rgba(253, 253, 253, 0.6);
  --page-subtle: rgba(253, 253, 253, 0.4);
  --page-line: rgba(253, 253, 253, 0.11);
  --surface-panel: #17181b;
  --surface-panel-hover: #1d1e22;
  --surface-soft: #121316;
  --interactive: #61adf8;
  --nav-surface: rgba(15, 16, 18, 0.78);
  --nav-border: rgba(253, 253, 253, 0.12);
  --hero-copy: var(--color-pure-white);
  --hero-muted: rgba(253, 253, 253, 0.68);
  --hero-line: rgba(253, 253, 253, 0.18);
  --hero-backdrop: url("/static/img/hero-alps-aurora.png");
  --hero-overlay: linear-gradient(90deg, rgba(2, 2, 1, 0.76) 0%, rgba(2, 2, 1, 0.34) 45%, rgba(2, 2, 1, 0.08) 74%), linear-gradient(0deg, rgba(2, 2, 1, 0.55) 0%, transparent 45%);
}

html[data-theme="light"] {
  color-scheme: light;
  --page-canvas: var(--color-off-white);
  --page-text: var(--color-off-black);
  --page-muted: var(--color-steel-gray);
  --page-subtle: var(--color-ash-gray);
  --page-line: rgba(2, 2, 1, 0.08);
  --surface-panel: var(--color-pure-white);
  --surface-panel-hover: #e9e9ec;
  --surface-soft: #ececef;
  --interactive: var(--color-signal-blue);
  --nav-surface: rgba(253, 253, 253, 0.86);
  --nav-border: rgba(2, 2, 1, 0.07);
  --hero-copy: var(--color-off-black);
  --hero-muted: rgba(15, 16, 18, 0.66);
  --hero-line: rgba(15, 16, 18, 0.14);
  --hero-backdrop: url("/static/img/hero-alps.png");
  --hero-overlay: linear-gradient(90deg, rgba(242, 242, 244, 0.88) 0%, rgba(242, 242, 244, 0.56) 40%, rgba(242, 242, 244, 0.04) 74%), linear-gradient(0deg, rgba(242, 242, 244, 0.5) 0%, transparent 42%);
}

html {
  background: var(--page-canvas);
}

body:not(.wrapper-body) {
  background: var(--page-canvas);
  color: var(--page-text);
  font-family: var(--font-pp-neue-montreal);
  font-weight: 300;
  line-height: 1.2;
  letter-spacing: -0.02em;
  transition: background-color 260ms ease, color 260ms ease;
}

body:not(.wrapper-body) button,
body:not(.wrapper-body) a,
body:not(.wrapper-body) select {
  font-weight: 300;
  letter-spacing: -0.02em;
}

body:not(.wrapper-body) strong,
body:not(.wrapper-body) b {
  font-weight: 400;
}

body:not(.wrapper-body) ::selection {
  background: rgba(0, 113, 227, 0.2);
  color: currentColor;
}

body:not(.wrapper-body) :focus-visible {
  outline: 1px solid var(--interactive);
  outline-offset: 4px;
}

.manifest {
  height: 31px;
  border-color: var(--page-line);
  background: var(--page-canvas);
  color: var(--page-text);
}

.manifest-tag {
  padding: 0 20px;
  border-color: var(--page-line);
  background: var(--page-canvas);
  color: var(--page-text);
  font-size: 9px;
  font-weight: 400;
  letter-spacing: 0.12em;
}

.manifest-track {
  gap: 54px;
  padding-left: 54px;
  animation-duration: 58s;
}

.manifest-item {
  color: var(--page-muted);
  font-size: 10px;
  font-weight: 300;
  letter-spacing: 0.02em;
}

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

.manifest-dot,
.manifest-dot.online {
  color: var(--interactive);
}

.hero {
  position: relative;
  min-height: max(790px, calc(100svh - 31px));
  overflow: hidden;
  isolation: isolate;
  background: #a7bdd6;
}

.hero-media {
  z-index: 0;
  overflow: hidden;
}

.hero-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  background-image: var(--hero-backdrop);
  background-position: center center;
  background-size: cover;
  background-repeat: no-repeat;
  animation: alpine-breathe 24s ease-in-out infinite alternate;
  will-change: transform;
}

.hero-scrim {
  z-index: 1;
  background: var(--hero-overlay);
  transition: background 320ms ease;
}

.snow-canvas {
  position: absolute;
  z-index: 2;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

html:not([data-theme="light"]) .snow-canvas {
  display: none;
}

.hero-media::after {
  content: "";
  position: absolute;
  z-index: 2;
  right: -18%;
  bottom: -9%;
  width: 82%;
  height: 34%;
  opacity: 0.42;
  pointer-events: none;
  background: radial-gradient(ellipse at 60% 60%, rgba(255, 255, 255, 0.46), transparent 62%);
  filter: blur(34px);
  transform: skewX(-12deg);
  animation: snow-drift 9s ease-in-out infinite alternate;
}

.hero::after {
  display: none;
}

@keyframes alpine-breathe {
  from { transform: scale(1.006) translate3d(0, 0, 0); }
  to { transform: scale(1.035) translate3d(-0.35%, -0.2%, 0); }
}

@keyframes snow-drift {
  from { transform: translate3d(-3%, 1%, 0) skewX(-12deg); opacity: 0.26; }
  to { transform: translate3d(8%, -2%, 0) skewX(-12deg); opacity: 0.5; }
}

.hero-nav {
  position: relative;
  z-index: 6;
  width: min(var(--page-max-width), calc(100% - 48px));
  height: 58px;
  margin: 28px auto 0;
  padding: 0 11px;
  border: 0.5px solid var(--nav-border);
  border-radius: var(--radius-nav);
  background: var(--nav-surface);
  color: var(--page-text);
  backdrop-filter: blur(22px) saturate(135%);
  -webkit-backdrop-filter: blur(22px) saturate(135%);
  transition: background-color 260ms ease, border-color 260ms ease, color 260ms ease;
}

.hero-brand {
  gap: 10px;
}

.hero-mark {
  width: 34px;
  height: 34px;
  border: 0.5px solid var(--page-text);
  border-radius: var(--radius-nav);
  color: var(--page-text);
  font-size: 13px;
  font-weight: 400;
}

.hero-brand-copy b {
  color: var(--page-text);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.11em;
}

.hero-brand-copy small {
  margin-top: 4px;
  color: var(--page-muted);
  font-size: 7px;
  font-weight: 300;
  letter-spacing: 0.16em;
}

.nav-links {
  gap: 30px;
}

.nav-links a,
.foot-links a {
  color: var(--page-text);
  font-size: 14px;
  font-weight: 300;
}

.nav-links a::after,
.foot-links a::after {
  height: 0.5px;
  background: var(--interactive);
}

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

.nav-actions {
  gap: 6px;
}

.theme-toggle,
.ghost-button {
  min-height: 36px;
  border: 0.5px solid var(--hero-line);
  border-radius: var(--radius-button);
  background: rgba(255, 255, 255, 0.04);
  color: var(--hero-copy);
  font-size: 13px;
  font-weight: 300;
  transition: border-color 180ms ease, background-color 180ms ease, color 180ms ease, transform 180ms ease;
}

.hero-nav .theme-toggle,
.hero-nav .ghost-button {
  border-color: var(--page-line);
  background: transparent;
  color: var(--page-text);
}

.theme-toggle {
  gap: 7px;
  min-width: 92px;
  padding: 0 13px;
}

.theme-toggle:hover,
.ghost-button:hover,
.hero-nav .theme-toggle:hover,
.hero-nav .ghost-button:hover {
  border-color: var(--interactive);
  background: transparent;
  color: var(--interactive);
  transform: translateY(-1px);
}

.theme-toggle-icon {
  width: 15px;
  height: 15px;
}

.theme-icon {
  stroke-width: 1.35;
}

.ghost-button {
  padding: 0 16px;
}

.hero-body {
  position: relative;
  z-index: 4;
  width: min(var(--page-max-width), calc(100% - 48px));
  min-height: calc(max(790px, 100svh - 31px) - 86px);
  margin: 0 auto;
  padding: 150px 0 156px;
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(250px, 0.55fr);
  align-items: end;
  gap: 80px;
}

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

.eyebrow {
  color: var(--page-subtle);
  font-size: 10px;
  font-weight: 300;
  line-height: 1.2;
  letter-spacing: 0.12em;
}

.hero .eyebrow {
  color: var(--hero-muted);
}

.hero-title {
  margin: 18px 0 0;
  color: var(--hero-copy);
  font-family: var(--font-pp-neue-montreal);
  font-size: clamp(58px, 7.4vw, 104px);
  font-weight: 300;
  line-height: 0.91;
  letter-spacing: -0.06em;
}

.hero-title span,
.hero-title em {
  display: block;
  color: inherit;
  font-family: inherit;
  font-size: inherit;
  font-weight: 300;
  font-style: normal;
  line-height: inherit;
  letter-spacing: inherit;
  text-transform: none;
}

.hero-title em {
  color: var(--interactive);
}

.hero-sub {
  max-width: 510px;
  margin: 28px 0 0;
  color: var(--hero-muted);
  font-size: 16px;
  font-weight: 300;
  line-height: 1.45;
  letter-spacing: -0.02em;
}

.hero-actions {
  margin-top: 30px;
  gap: 18px;
}

.hero-actions .ghost-button {
  color: var(--hero-copy);
}

.hero-actions .ghost-button:hover {
  color: var(--interactive);
}

.hero-status {
  color: var(--hero-muted);
  font-size: 12px;
  font-weight: 300;
}

.hero-status::before {
  width: 6px;
  height: 6px;
  background: var(--interactive);
}

.weather-box {
  align-self: end;
  width: 100%;
  padding: 22px;
  border: 0.5px solid var(--hero-line);
  border-radius: var(--radius-button);
  background: rgba(12, 13, 15, 0.13);
  color: var(--hero-copy);
  backdrop-filter: blur(18px) saturate(120%);
  -webkit-backdrop-filter: blur(18px) saturate(120%);
}

html[data-theme="light"] .weather-box {
  background: rgba(253, 253, 253, 0.22);
}

.weather-kicker,
.weather-time,
.weather-desc {
  color: var(--hero-muted);
  font-weight: 300;
}

.weather-kicker,
.weather-time {
  font-size: 9px;
  letter-spacing: 0.08em;
}

.weather-temp {
  color: var(--hero-copy);
  font-size: 38px;
  font-weight: 300;
  letter-spacing: -0.06em;
}

.weather-desc {
  margin-top: 3px;
  font-size: 12px;
}

.weather-chip {
  width: 46px;
  height: 46px;
  border: 0.5px solid var(--hero-line);
  border-radius: 15px;
  background: transparent;
  color: var(--interactive);
  font-size: 20px;
}

.weather-foot {
  border-color: var(--hero-line);
}

.weather-foot span,
.weather-foot b {
  color: var(--hero-muted);
  font-weight: 300;
}

.weather-foot b {
  color: var(--hero-copy);
}

.quick-access {
  z-index: 5;
  left: 50%;
  bottom: 26px;
  width: min(var(--page-max-width), calc(100% - 48px));
  min-height: 66px;
  padding: 6px;
  border: 0.5px solid var(--nav-border);
  border-radius: var(--radius-button);
  background: var(--nav-surface);
  color: var(--page-text);
  backdrop-filter: blur(22px) saturate(135%);
  -webkit-backdrop-filter: blur(22px) saturate(135%);
  transform: translateX(-50%);
}

.quick-access-label {
  padding-left: 16px;
  color: var(--page-subtle);
  font-size: 9px;
  font-weight: 300;
  letter-spacing: 0.1em;
}

.quick-access-link,
.quick-access-link:last-child {
  min-width: 0;
  border: 0;
  border-left: 0.5px solid var(--page-line);
  color: var(--page-text);
}

.quick-access-link:hover {
  background: transparent;
  color: var(--interactive);
}

.quick-access-link span,
.quick-access-link i {
  color: var(--page-subtle);
  font-size: 9px;
  font-weight: 300;
}

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

/* Neutralize the legacy light-hero declarations with the new semantic tokens. */
html[data-theme="light"] .hero-scrim {
  background: var(--hero-overlay);
}

html[data-theme="light"] .hero-nav {
  border: 0.5px solid var(--nav-border);
  background: var(--nav-surface);
}

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

html[data-theme="light"] .hero .ghost-button,
html[data-theme="light"] .theme-toggle {
  border-color: var(--hero-line);
  background: transparent;
  color: var(--hero-copy);
}

html[data-theme="light"] .hero-nav .ghost-button,
html[data-theme="light"] .hero-nav .theme-toggle {
  border-color: var(--page-line);
  color: var(--page-text);
}

html[data-theme="light"] .hero .ghost-button:hover,
html[data-theme="light"] .theme-toggle:hover,
html[data-theme="light"] .hero-nav .ghost-button:hover,
html[data-theme="light"] .hero-nav .theme-toggle:hover {
  border-color: var(--interactive);
  background: transparent;
  color: var(--interactive);
}

html[data-theme="light"] .hero-status::before {
  border: 0;
  background: var(--interactive);
  animation: status-pulse 1.8s ease-in-out infinite;
}

html[data-theme="light"] .weather-box {
  border-color: var(--hero-line);
  background: rgba(253, 253, 253, 0.22);
  color: var(--hero-copy);
}

html[data-theme="light"] .weather-chip {
  border: 0.5px solid var(--hero-line);
  background: transparent;
  color: var(--interactive);
}

html[data-theme="light"] .quick-access {
  border: 0.5px solid var(--nav-border);
  background: var(--nav-surface);
}

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

html[data-theme="light"] .quick-access-link:hover {
  background: transparent;
  color: var(--interactive);
}

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

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(250px, 0.55fr);
  gap: 69px;
  align-items: end;
  margin-bottom: 69px;
}

.section-heading h2,
.deck-copy h2,
.sheet-showcase-copy h2 {
  margin: 10px 0 0;
  color: var(--page-text);
  font-family: var(--font-pp-neue-montreal);
  font-size: clamp(38px, 4.5vw, 58px);
  font-weight: 300;
  line-height: 1.02;
  letter-spacing: -0.055em;
  text-transform: none;
}

.section-heading h2 em,
.deck-copy h2 em,
.sheet-showcase-copy h2 em {
  color: var(--interactive);
  font-family: inherit;
  font-size: inherit;
  font-weight: 300;
  font-style: normal;
  line-height: inherit;
  letter-spacing: inherit;
}

.eyebrow.ink,
.eyebrow.twilight {
  color: var(--page-subtle);
}

.section-aside {
  max-width: 320px;
}

.section-aside > span {
  color: var(--interactive);
  font-size: 10px;
  font-weight: 300;
  letter-spacing: 0.03em;
}

.section-aside p,
.deck-copy > p:not(.eyebrow),
.sheet-showcase-copy > p:not(.eyebrow) {
  color: var(--page-muted);
  font-size: 16px;
  font-weight: 300;
  line-height: 1.45;
}

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

.card,
.card:nth-child(4),
.card:nth-child(5) {
  grid-column: span 2;
  min-height: 390px;
  overflow: hidden;
  border: 0.5px solid var(--page-line);
  border-radius: var(--radius-card);
  background: var(--surface-panel);
  color: var(--page-text);
  text-align: left;
  transition: background-color 220ms ease, border-color 220ms ease, transform 220ms ease;
}

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

.card::before {
  display: none;
}

.card:hover {
  border-color: rgba(0, 113, 227, 0.45);
  background: var(--surface-panel-hover);
  color: var(--page-text);
  transform: translateY(-4px);
}

.card-inner {
  min-height: 390px;
  padding: 34px;
}

.card-code,
.card-port,
.card-brand-index {
  color: var(--page-subtle);
  font-size: 9px;
  font-weight: 300;
  letter-spacing: 0.05em;
}

.badge {
  min-height: 21px;
  padding: 2px 9px;
  border: 0.5px solid var(--interactive);
  border-radius: var(--radius-pill);
  background: transparent;
  color: var(--interactive);
  font-size: 9px;
  font-weight: 300;
  letter-spacing: 0.02em;
}

.badge::before {
  display: none;
}

.card-logo-stage {
  min-height: 170px;
  margin: 18px 0;
}

.card-logo {
  width: 88px;
  height: 88px;
  padding: 15px;
  border: 0.5px solid var(--page-line);
  border-radius: 30px;
  background: transparent;
  transition: border-color 220ms ease, transform 280ms ease;
}

.card:hover .card-logo {
  border-color: var(--interactive);
  transform: rotate(-2deg) scale(1.035);
}

.card-logo img {
  max-width: 72%;
  max-height: 72%;
  object-fit: contain;
}

.card-orbit {
  width: 142px;
  height: 142px;
  border: 0.5px solid var(--page-line);
  opacity: 0.8;
}

.card-orbit::after {
  width: 5px;
  height: 5px;
  background: var(--interactive);
}

.card-brand-index {
  font-size: 10px;
}

.card-name {
  color: var(--page-text);
  font-size: 27px;
  font-weight: 300;
  line-height: 1.08;
  letter-spacing: -0.04em;
}

.card-copy p {
  max-width: 360px;
  color: var(--page-muted);
  font-size: 13px;
  font-weight: 300;
  line-height: 1.4;
}

.card-foot {
  padding-top: 20px;
  border-top: 0.5px solid var(--page-line);
}

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

.visual-interlude {
  width: min(var(--page-max-width), calc(100% - 48px));
  height: min(68vw, 690px);
  min-height: 500px;
  margin: 0 auto 94px;
  overflow: hidden;
  border: 0.5px solid var(--page-line);
  border-radius: var(--radius-container);
  background: var(--surface-panel);
}

.visual-interlude img {
  transform: scale(1.02);
  transition: transform 1.2s cubic-bezier(0.22, 1, 0.36, 1);
}

.visual-interlude:hover img {
  transform: scale(1.045);
}

.visual-3d-scene {
  transform: none;
}

.visual-interlude-3d .visual-3d-image {
  transform: scale(1.02);
}

.visual-shade {
  background: linear-gradient(180deg, rgba(2, 2, 1, 0.04), rgba(2, 2, 1, 0.68));
}

.visual-copy,
.interlude-band-copy {
  inset: auto 50px 50px;
  color: var(--color-pure-white);
}

.visual-copy > span,
.interlude-band-copy > span {
  color: rgba(253, 253, 253, 0.62);
  font-size: 10px;
  font-weight: 300;
  letter-spacing: 0.1em;
}

.visual-copy strong,
.interlude-band-copy strong,
.interlude-band-copy-center strong {
  margin-top: 10px;
  color: var(--color-pure-white);
  font-family: var(--font-pp-neue-montreal);
  font-size: clamp(42px, 6.2vw, 82px);
  font-weight: 300;
  line-height: 0.95;
  letter-spacing: -0.055em;
}

.interlude-band-copy strong em {
  color: #b8d7f5;
  font-family: inherit;
  font-weight: 300;
  font-style: normal;
}

.control-deck,
.sheet-showcase {
  width: min(var(--page-max-width), calc(100% - 48px));
  margin: 0 auto 94px;
  padding: 69px;
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(420px, 1.2fr);
  gap: 69px;
  border: 0.5px solid var(--page-line);
  border-radius: var(--radius-container);
  background: var(--surface-panel);
  color: var(--page-text);
}

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

.deck-copy > p:not(.eyebrow),
.sheet-showcase-copy > p:not(.eyebrow) {
  max-width: 390px;
}

.underline-link {
  color: var(--interactive);
  font-size: 14px;
  font-weight: 300;
}

.underline-link::after {
  height: 0.5px;
  background: var(--interactive);
}

.deck-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
}

.deck-metric {
  min-height: 210px;
  padding: 30px;
  border: 0.5px solid var(--page-line);
  border-radius: 38px;
  background: var(--page-canvas);
  color: var(--page-text);
}

.deck-metric > span,
.deck-metric small {
  color: var(--page-muted);
  font-size: 10px;
  font-weight: 300;
}

.deck-metric strong {
  color: var(--page-text);
  font-size: clamp(42px, 4.6vw, 64px);
  font-weight: 300;
  letter-spacing: -0.06em;
}

.journey {
  padding-top: 20px;
}

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

.journey-card {
  min-height: 390px;
  overflow: hidden;
  border: 0.5px solid var(--page-line);
  border-radius: var(--radius-card);
  background: var(--surface-panel);
  color: var(--page-text);
}

.journey-body {
  padding: 50px;
}

.journey-heading {
  border-color: var(--page-line);
}

.journey-index,
.journey-kicker {
  color: var(--page-subtle);
  font-size: 10px;
  font-weight: 300;
  letter-spacing: 0.04em;
}

.journey-kicker {
  color: var(--interactive);
}

.journey-card h3 {
  color: var(--page-text);
  font-size: 27px;
  font-weight: 300;
  letter-spacing: -0.04em;
}

.journey-card p {
  color: var(--page-muted);
  font-size: 14px;
  font-weight: 300;
  line-height: 1.45;
}

.journey-progress {
  height: 1px;
  background: var(--page-line);
}

.journey-progress span {
  background: var(--interactive);
}

.journey-facts {
  border-color: var(--page-line);
}

.journey-facts span,
.journey-facts span:last-child {
  border-color: var(--page-line);
}

.journey-facts b {
  color: var(--page-text);
  font-size: 14px;
  font-weight: 300;
}

.journey-facts small {
  color: var(--page-subtle);
  font-size: 9px;
  font-weight: 300;
}

.visual-interlude-band {
  height: min(52vw, 600px);
  min-height: 430px;
}

.sheet-showcase {
  grid-template-columns: minmax(260px, 0.62fr) minmax(0, 1.38fr);
}

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

.sheet-card {
  min-height: 180px;
  padding: 28px;
  border: 0.5px solid var(--page-line);
  border-radius: 38px;
  background: var(--page-canvas);
  color: var(--page-text);
  text-align: left;
  transition: border-color 200ms ease, background-color 200ms ease, transform 200ms ease;
}

.sheet-card::after {
  color: var(--interactive);
  font-size: 16px;
}

.sheet-card:hover {
  border-color: rgba(0, 113, 227, 0.45);
  background: var(--surface-panel-hover);
  color: var(--page-text);
  transform: translateY(-3px);
}

.sheet-card > span {
  width: fit-content;
  padding: 2px 9px;
  border: 0.5px solid var(--interactive);
  border-radius: var(--radius-pill);
  color: var(--interactive);
  font-size: 9px;
  font-weight: 300;
}

.sheet-card:hover > span {
  color: var(--interactive);
}

.sheet-card strong {
  max-width: 260px;
  color: var(--page-text);
  font-size: 18px;
  font-weight: 300;
  line-height: 1.15;
}

.sheet-card small,
.sheet-card:hover small {
  color: var(--page-muted);
  font-size: 10px;
  font-weight: 300;
}

.visual-interlude-last {
  margin-bottom: 94px;
}

.radar {
  padding-top: 20px;
}

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

.news-card {
  min-height: 250px;
  padding: 34px;
  border: 0.5px solid var(--page-line);
  border-radius: 38px;
  background: var(--surface-panel);
  color: var(--page-text);
  transition: background-color 200ms ease, border-color 200ms ease, transform 200ms ease;
}

.news-card:hover {
  border-color: rgba(0, 113, 227, 0.45);
  background: var(--surface-panel-hover);
  color: var(--page-text);
  transform: translateY(-3px);
}

.news-source {
  width: fit-content;
  padding: 2px 9px;
  border: 0.5px solid var(--interactive);
  border-radius: var(--radius-pill);
  color: var(--interactive);
  font-size: 9px;
  font-weight: 300;
  letter-spacing: 0.02em;
}

.news-title {
  color: var(--page-text);
  font-size: 18px;
  font-weight: 300;
  line-height: 1.25;
  letter-spacing: -0.03em;
}

.news-date,
.news-card:hover .news-date {
  color: var(--page-muted);
  font-size: 10px;
  font-weight: 300;
}

.news-empty {
  grid-column: 1 / -1;
  padding: 50px;
  border: 0.5px solid var(--page-line);
  border-radius: 38px;
  background: var(--surface-panel);
  color: var(--page-muted);
}

.page-foot {
  min-height: 300px;
  padding: 69px max(24px, calc((100% - var(--page-max-width)) / 2));
  border: 0;
  background: var(--color-off-black);
  color: var(--color-pure-white);
}

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

.page-foot .hero-brand-copy b,
.page-foot .hero-brand-copy small,
.page-foot p,
.page-foot .foot-links a,
.foot-clock {
  color: var(--color-pure-white);
  font-weight: 300;
}

.page-foot .hero-brand-copy small,
.page-foot p,
.foot-clock {
  color: rgba(253, 253, 253, 0.52);
}

.foot-links {
  gap: 22px;
}

.foot-links a:hover {
  color: #6eb8ff;
}

.toast {
  border: 0.5px solid var(--page-line);
  border-radius: var(--radius-button);
  background: var(--surface-panel);
  color: var(--page-text);
  box-shadow: none;
}

html[data-theme="light"] .toast:not(.err) {
  background: var(--color-pure-white);
  color: var(--color-off-black);
}

.reveal,
.magnetic-field {
  opacity: 1;
  transform: translateY(20px);
  transition-duration: 620ms;
  transition-timing-function: cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal.in-view,
.magnetic-field.in-view,
.card.reveal.in-view {
  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, 1.25fr) minmax(230px, 0.55fr);
    gap: 40px;
  }

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

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

  .quick-access-link:first-of-type {
    border-left: 0;
  }

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

  .card:last-child:nth-child(odd) {
    grid-column: 2 / span 4;
  }

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

  .sheet-showcase-copy {
    max-width: 560px;
  }

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

@media (max-width: 780px) {
  .manifest-tag {
    display: none;
  }

  .hero {
    min-height: 900px;
  }

  .hero-image {
    background-position: 62% center;
  }

  .hero-nav {
    width: calc(100% - 28px);
    margin-top: 14px;
  }

  .nav-action {
    display: none;
  }

  .hero-body {
    width: calc(100% - 40px);
    min-height: 805px;
    padding: 110px 0 190px;
    grid-template-columns: 1fr;
    align-content: end;
    gap: 30px;
  }

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

  .hero-title {
    font-size: clamp(52px, 15vw, 82px);
  }

  .hero-sub {
    max-width: 460px;
  }

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

  .quick-access {
    bottom: 14px;
    width: calc(100% - 28px);
    display: flex;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scrollbar-width: none;
  }

  .quick-access::-webkit-scrollbar {
    display: none;
  }

  .quick-access-link,
  .quick-access-link:last-child {
    flex: 0 0 190px;
    min-height: 52px;
  }

  .quick-access-link:first-of-type {
    border-left: 0;
  }

  .modules,
  .journey,
  .radar {
    width: calc(100% - 32px);
    padding: 94px 0;
  }

  .section-heading {
    grid-template-columns: 1fr;
    gap: 30px;
    margin-bottom: 50px;
  }

  .section-aside {
    max-width: 480px;
  }

  .card,
  .card:nth-child(4),
  .card:nth-child(5),
  .card:last-child:nth-child(odd) {
    grid-column: 1 / -1;
  }

  .visual-interlude,
  .control-deck,
  .sheet-showcase {
    width: calc(100% - 32px);
    margin-bottom: 69px;
  }

  .visual-interlude {
    min-height: 480px;
    border-radius: 46px;
  }

  .control-deck,
  .sheet-showcase {
    padding: 50px 34px;
    gap: 50px;
    border-radius: 46px;
  }

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

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

  .interlude-band-copy,
  .visual-copy {
    inset: auto 30px 36px;
  }

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

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

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

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

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

  .theme-toggle {
    min-width: 38px;
    width: 38px;
    padding: 0;
    justify-content: center;
  }

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

  .hero-body {
    width: calc(100% - 32px);
  }

  .hero-title {
    font-size: clamp(48px, 16.5vw, 72px);
  }

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

  .hero-actions {
    flex-wrap: wrap;
  }

  .hero-weather {
    padding: 18px;
  }

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

  .card-inner {
    padding: 30px;
  }

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

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

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

  .journey-body {
    padding: 34px 28px;
  }

  .visual-interlude {
    min-height: 420px;
  }

  .visual-copy strong,
  .interlude-band-copy strong,
  .interlude-band-copy-center strong {
    font-size: 44px;
  }

  .page-foot {
    grid-template-columns: 1fr;
    min-height: 380px;
    padding: 50px 24px;
  }

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

@media (prefers-reduced-motion: reduce) {
  .hero-image,
  .hero-media::after {
    animation: none !important;
  }

  .card:hover,
  .sheet-card:hover,
  .news-card:hover,
  .theme-toggle:hover,
  .ghost-button:hover {
    transform: none;
  }
}
