/* ==========================================================================
   GlintAir Website (glintair.com)
   Modern CSS Architecture: Cascade Layers, Logical Properties, Container
   Queries, Inline Navigation, Dark Color Scheme & Forced Colors Support
   ========================================================================== */

@layer reset, base, components, utilities;

@layer reset {
  html,
  body,
  header,
  main,
  footer,
  section,
  article,
  aside,
  nav,
  div,
  ul,
  ol,
  dl,
  dt,
  dd,
  h1,
  h2,
  h3,
  p,
  a,
  button,
  img,
  canvas,
  svg,
  code,
  form,
  input,
  textarea,
  select,
  label {
    box-sizing: border-box;
  }

  body {
    margin: 0;
  }

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

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

  img,
  svg,
  canvas {
    display: block;
    max-inline-size: 100%;
  }

  img {
    block-size: auto;
  }

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

  button {
    font: inherit;
    color: inherit;
  }
}

:root {
  color-scheme: dark;

  --bg-obsidian: #02040b;
  --bg-deep: #050a18;
  --bg-surface: rgba(12, 20, 40, 0.74);
  --border-subtle: rgba(148, 163, 184, 0.18);
  --border-strong: rgba(148, 163, 184, 0.34);
  --border-sky: rgba(56, 189, 248, 0.45);

  --text-primary: #f8fafc;
  --text-secondary: #cbd5e1;
  --text-muted: #94a3b8;

  --sky: #38bdf8;
  --sky-bright: #7dd3fc;
  --blue-deep: #2563eb;
  --gold: #f5c469;
  --gold-bright: #fde68a;
  --emerald: #34d399;

  --font-sans: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;

  --radius-sm: 0.625rem;
  --radius-md: 1rem;
  --radius-lg: 1.5rem;
  --radius-xl: 1.875rem;
  --radius-pill: 999px;

  --shadow-card: 0 22px 60px rgba(0, 0, 0, 0.46), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  --shadow-glow-sky: 0 14px 36px rgba(56, 189, 248, 0.28);

  --scrollbar-track: #040916;
  --scrollbar-thumb: #475569;

  --container-max: 75rem;
  --header-height: 4.25rem;
  --target-size: 24px;

  accent-color: var(--sky);
  scrollbar-color: var(--scrollbar-thumb) var(--scrollbar-track);
}

@media (pointer: coarse) {
  :root {
    --target-size: 44px;
  }
}

@media (prefers-reduced-motion: no-preference) {
  @view-transition {
    navigation: auto;
  }

  html {
    scroll-behavior: smooth;
  }
}

@layer base {
  html {
    background-color: var(--bg-obsidian);
    scroll-padding-block-start: calc(var(--header-height) + 1rem);
    -webkit-text-size-adjust: 100%;
  }

  body {
    min-block-size: 100dvh;
    display: flex;
    flex-direction: column;
    font-family: var(--font-sans);
    background-color: var(--bg-obsidian);
    color: var(--text-primary);
    line-height: 1.55;
    text-align: start;
    overflow-wrap: break-word;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
  }

  main {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
  }

  h1,
  h2,
  h3 {
    text-wrap: balance;
  }

  p,
  li,
  dd {
    text-wrap: pretty;
  }

  :where(a, code) {
    overflow-wrap: anywhere;
  }

  code {
    font-family: var(--font-mono);
    font-size: 0.88em;
    background: rgba(56, 189, 248, 0.12);
    border: 1px solid rgba(56, 189, 248, 0.24);
    padding-block: 0.08em;
    padding-inline: 0.4em;
    border-radius: 0.375rem;
    color: #bae6fd;
  }

  ::selection {
    background: rgba(56, 189, 248, 0.32);
    color: var(--text-primary);
  }

  :where(a:any-link, button, summary, [tabindex="0"]):focus-visible {
    outline: 2px solid var(--sky-bright);
    outline-offset: 3px;
  }

  main[tabindex="-1"]:focus {
    outline: none;
  }

  @supports not (scrollbar-color: auto) {
    ::-webkit-scrollbar {
      width: 12px;
      height: 12px;
    }

    ::-webkit-scrollbar-track {
      background: var(--scrollbar-track);
    }

    ::-webkit-scrollbar-thumb {
      background: var(--scrollbar-thumb);
      border-radius: 6px;
    }
  }
}

@layer utilities {
  .visually-hidden:where(:not(:focus-within, :active)),
  .skip-link:where(:not(:focus-within, :active)) {
    position: absolute !important;
    clip-path: inset(50%) !important;
    overflow: hidden !important;
    width: 1px !important;
    height: 1px !important;
    margin: -1px !important;
    padding: 0 !important;
    border: 0 !important;
    white-space: nowrap !important;
  }

  .skip-link:focus,
  .skip-link:focus-visible {
    position: fixed;
    inset-block-start: 0.75rem;
    inset-inline-start: 0.75rem;
    z-index: 250;
    background: var(--sky-bright);
    color: #020617;
    font-weight: 700;
    font-size: 0.9rem;
    padding-block: 0.625rem;
    padding-inline: 1rem;
    border-radius: var(--radius-pill);
    outline: 2px solid #ffffff;
    outline-offset: 2px;
  }

  .cosmos-backdrop {
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background:
      radial-gradient(ellipse 70% 50% at 72% 10%, rgba(37, 99, 235, 0.24) 0%, rgba(14, 34, 88, 0.12) 45%, transparent 72%),
      radial-gradient(ellipse 55% 42% at 15% 18%, rgba(56, 189, 248, 0.12) 0%, transparent 65%),
      radial-gradient(ellipse 45% 40% at 22% 88%, rgba(245, 196, 105, 0.07) 0%, transparent 68%),
      linear-gradient(180deg, #030714 0%, #02040b 48%, #040917 100%);
  }

  .container {
    inline-size: 100%;
    max-inline-size: var(--container-max);
    margin-inline: auto;
    padding-inline: clamp(1rem, 3dvw, 1.5rem);
  }
}

@layer components {
  /* ========================================================================
     Header & Inline Navigation (General Design — Zero Menu Dropdown)
     ======================================================================== */
  .site-header {
    position: sticky;
    inset-block-start: 0;
    z-index: 100;
    min-block-size: var(--header-height);
    padding-block: 0.5rem;
    padding-inline-start: env(safe-area-inset-left, 0px);
    padding-inline-end: env(safe-area-inset-right, 0px);
    background: rgba(3, 7, 18, 0.78);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-block-end: 1px solid rgba(148, 163, 184, 0.12);
    display: flex;
    align-items: center;
  }

  .header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
  }

  .brand {
    display: inline-flex;
    align-items: center;
    gap: 0.6875rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    min-block-size: var(--target-size);
    flex-shrink: 0;
  }

  .brand-icon {
    border-radius: 0.625rem;
    box-shadow: 0 6px 20px rgba(56, 189, 248, 0.32);
    flex-shrink: 0;
  }

  .brand-wordmark {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-primary);
  }

  .nav-links {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.25rem 1.5rem;
  }

  .nav-links a {
    position: relative;
    display: inline-flex;
    align-items: center;
    min-block-size: var(--target-size);
    padding-block: 0.25rem;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-secondary);
    white-space: nowrap;
  }

  .nav-links a:hover {
    color: var(--text-primary);
  }

  .nav-links a[aria-current="page"] {
    color: var(--text-primary);
    font-weight: 650;
  }

  .nav-links a[aria-current="page"]::after {
    content: "";
    position: absolute;
    inset-block-end: 0;
    inset-inline: 0;
    border-block-end: 2px solid var(--sky);
  }

  .header-actions {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    flex-shrink: 0;
  }

  /* ========================================================================
     Buttons
     ======================================================================== */
  .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    min-block-size: max(var(--target-size), 2.5rem);
    min-inline-size: var(--target-size);
    padding-block: 0.7rem;
    padding-inline: 1.35rem;
    font-size: 0.9375rem;
    font-weight: 600;
    border-radius: var(--radius-pill);
    border: 1px solid transparent;
    cursor: pointer;
    white-space: nowrap;
  }

  @media (prefers-reduced-motion: no-preference) {
    .btn {
      transition: transform 0.16s ease, box-shadow 0.2s ease, background-color 0.18s ease, border-color 0.18s ease;
    }

    .btn:hover {
      transform: translateY(-1px);
    }
  }

  .btn-sm {
    font-size: 0.875rem;
    min-block-size: max(var(--target-size), 2.375rem);
    padding-block: 0.5rem;
    padding-inline: 1rem;
  }

  .btn-lg {
    font-size: 1rem;
    min-block-size: 2.875rem;
    padding-block: 0.82rem;
    padding-inline: 1.55rem;
  }

  .btn-primary {
    background: linear-gradient(135deg, #38bdf8 0%, #2563eb 100%);
    color: #ffffff;
    border-color: rgba(186, 230, 253, 0.35);
    box-shadow: var(--shadow-glow-sky), inset 0 1px 0 rgba(255, 255, 255, 0.3);
  }

  .btn-primary:hover {
    box-shadow: 0 18px 42px rgba(56, 189, 248, 0.42), inset 0 1px 0 rgba(255, 255, 255, 0.38);
  }

  .btn-glass {
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-primary);
    border-color: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(12px);
  }

  .btn-glass:hover {
    background: rgba(255, 255, 255, 0.11);
    border-color: rgba(125, 211, 252, 0.48);
  }

  .icon-inline {
    flex-shrink: 0;
  }

  /* ========================================================================
     Hero Section & Interactive 3D Stage
     ======================================================================== */
  .hero {
    padding-block: clamp(2rem, 6dvh, 4.5rem);
  }

  .hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
    gap: clamp(1.75rem, 4dvw, 3.5rem);
    align-items: center;
  }

  .hero-copy {
    min-inline-size: 0;
  }

  .hero-title {
    margin-block-end: 1.125rem;
    font-size: clamp(2.1rem, 1.25rem + 3vw, 3.6rem);
    font-weight: 750;
    line-height: 1.07;
    letter-spacing: -0.035em;
    color: var(--text-primary);
  }

  .text-gradient {
    background: linear-gradient(120deg, #7dd3fc 0%, #f8fafc 48%, #f5c469 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
  }

  .hero-lead {
    margin-block-end: 1.75rem;
    font-size: clamp(1rem, 0.95rem + 0.35vw, 1.125rem);
    line-height: 1.62;
    color: var(--text-secondary);
    max-inline-size: 50ch;
  }

  .hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
  }

  .hero-stage-wrap {
    min-inline-size: 0;
    container: hero-stage / inline-size;
  }

  .hero-stage {
    position: relative;
    inline-size: 100%;
    aspect-ratio: 5 / 4;
    min-block-size: 16rem;
    border-radius: var(--radius-xl);
    overflow: hidden;
    contain: layout style paint;
    border: 1px solid rgba(125, 211, 252, 0.28);
    background: radial-gradient(circle at 65% 88%, rgba(56, 189, 248, 0.3) 0%, rgba(15, 36, 92, 0.48) 38%, #030715 74%);
    box-shadow:
      0 32px 90px rgba(0, 0, 0, 0.65),
      0 0 0 1px rgba(255, 255, 255, 0.05) inset,
      0 0 60px rgba(37, 99, 235, 0.22);
    cursor: grab;
    touch-action: pan-y;
  }

  .hero-stage.is-dragging {
    cursor: grabbing;
  }

  .hero-poster {
    position: absolute;
    inset: 0;
    inline-size: 100%;
    block-size: 100%;
    object-fit: cover;
    z-index: 1;
  }

  @media (prefers-reduced-motion: no-preference) {
    .hero-poster {
      transition: opacity 0.2s ease;
    }
  }

  .hero-poster.is-hidden {
    opacity: 0;
    pointer-events: none;
  }

  .hero-canvas {
    position: relative;
    z-index: 0;
    inline-size: 100%;
    block-size: 100%;
  }

  .stage-hud-top,
  .stage-hud-bottom {
    position: absolute;
    inset-inline: 0.75rem;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
  }

  .stage-hud-top {
    inset-block-start: 0.75rem;
    flex-wrap: wrap;
    pointer-events: none;
  }

  .stage-hud-bottom {
    inset-block-end: 0.75rem;
    flex-wrap: wrap;
  }

  .hud-pill,
  .hud-telemetry {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding-block: 0.375rem;
    padding-inline: 0.75rem;
    border-radius: var(--radius-pill);
    background: rgba(5, 11, 26, 0.76);
    border: 1px solid rgba(148, 163, 184, 0.24);
    backdrop-filter: blur(12px);
    font-family: var(--font-mono);
    font-size: 0.75rem;
  }

  .hud-pill {
    font-weight: 600;
    letter-spacing: 0.04em;
    color: #e0f2fe;
  }

  .hud-dot {
    inline-size: 0.375rem;
    block-size: 0.375rem;
    border-radius: 50%;
    background: var(--sky);
    box-shadow: 0 0 8px var(--sky);
  }

  .hud-telemetry {
    font-variant-numeric: tabular-nums;
    color: var(--gold-bright);
  }

  .hud-sep {
    opacity: 0.5;
  }

  .craft-switcher {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.25rem;
    border-radius: var(--radius-pill);
    background: rgba(5, 11, 26, 0.84);
    border: 1px solid rgba(148, 163, 184, 0.24);
    backdrop-filter: blur(14px);
    max-inline-size: 100%;
    overflow-x: auto;
  }

  .craft-tab {
    position: relative;
    border: 1px solid transparent;
    background: transparent;
    color: var(--text-secondary);
    font-size: 0.78rem;
    font-weight: 600;
    min-block-size: var(--target-size);
    min-inline-size: var(--target-size);
    padding-block: 0.4rem;
    padding-inline: 0.6875rem;
    border-radius: var(--radius-pill);
    cursor: pointer;
    white-space: nowrap;
    flex-shrink: 0;
  }

  .craft-tab:hover {
    color: var(--text-primary);
  }

  .craft-tab[aria-pressed="true"] {
    background: rgba(56, 189, 248, 0.22);
    border-color: rgba(125, 211, 252, 0.55);
    color: #e0f2fe;
  }

  .craft-tab[aria-pressed="true"]::after {
    content: "";
    position: absolute;
    inset-block-end: 0.14rem;
    inset-inline: 0.6875rem;
    border-block-end: 2px solid currentColor;
  }

  .stage-meta {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    flex-shrink: 0;
  }

  .renderer-badge {
    font-size: 0.72rem;
    font-weight: 500;
    color: var(--text-secondary);
    background: rgba(5, 11, 26, 0.8);
    border: 1px solid rgba(148, 163, 184, 0.22);
    padding-block: 0.35rem;
    padding-inline: 0.625rem;
    border-radius: var(--radius-pill);
    backdrop-filter: blur(10px);
    white-space: nowrap;
  }

  .stage-ctrl-btn {
    border: 1px solid rgba(148, 163, 184, 0.28);
    background: rgba(5, 11, 26, 0.84);
    color: var(--text-primary);
    font-size: 0.75rem;
    font-weight: 600;
    min-block-size: var(--target-size);
    min-inline-size: var(--target-size);
    padding-block: 0.35rem;
    padding-inline: 0.6875rem;
    border-radius: var(--radius-pill);
    cursor: pointer;
    backdrop-filter: blur(10px);
    white-space: nowrap;
  }

  .stage-ctrl-btn:hover {
    border-color: var(--sky);
    color: #bae6fd;
  }

  .stage-caption {
    margin-block-start: 0.75rem;
    margin-inline: 0.25rem;
    font-size: 0.84rem;
    color: var(--text-muted);
    text-align: center;
  }

  .stage-caption a,
  .inline-link {
    color: var(--sky-bright);
    text-decoration: underline;
    text-underline-offset: 3px;
  }

  .inline-link:hover,
  .stage-caption a:hover {
    color: #ffffff;
  }

  @container hero-stage (inline-size < 33rem) {
    .renderer-badge {
      display: none;
    }

    .hud-telemetry span:nth-child(n+4) {
      display: none;
    }
  }

  /* ========================================================================
     3D Fleet & Spacecraft Demo Gallery
     ======================================================================== */
  .section {
    padding-block: clamp(3.5rem, 7dvw, 6rem);
    position: relative;
  }

  .section-alt {
    background: linear-gradient(180deg, rgba(8, 15, 34, 0.45) 0%, rgba(5, 10, 24, 0.72) 50%, rgba(4, 8, 20, 0.32) 100%);
    border-block-start: 1px solid rgba(148, 163, 184, 0.08);
    border-block-end: 1px solid rgba(148, 163, 184, 0.08);
  }

  .section-header {
    max-inline-size: 42.5rem;
    margin-block-end: clamp(2rem, 4dvw, 3rem);
  }

  .section-header-row {
    max-inline-size: none;
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1.5rem;
  }

  .section-header-row > div:first-child {
    max-inline-size: 40rem;
  }

  .section-title {
    margin-block: 0.35rem 0.875rem;
    font-size: clamp(1.85rem, 3.2vw, 2.7rem);
    font-weight: 750;
    line-height: 1.12;
    letter-spacing: -0.03em;
    color: var(--text-primary);
    text-wrap: balance;
  }

  .section-subtitle {
    font-size: 1.02rem;
    line-height: 1.6;
    color: var(--text-secondary);
    text-wrap: pretty;
  }

  .filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
  }

  .filter-pill {
    position: relative;
    min-block-size: max(var(--target-size), 2.375rem);
    min-inline-size: var(--target-size);
    border: 1px solid var(--border-subtle);
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-secondary);
    padding-block: 0.5rem;
    padding-inline: 0.95rem;
    border-radius: var(--radius-pill);
    font-size: 0.84rem;
    font-weight: 600;
    cursor: pointer;
  }

  @media (prefers-reduced-motion: no-preference) {
    .filter-pill {
      transition: background-color 0.16s ease, border-color 0.16s ease, color 0.16s ease;
    }
  }

  .filter-pill:hover {
    border-color: var(--border-strong);
    color: var(--text-primary);
  }

  .filter-pill.active,
  .filter-pill[aria-pressed="true"] {
    background: rgba(56, 189, 248, 0.18);
    border-color: rgba(125, 211, 252, 0.58);
    color: #e0f2fe;
    box-shadow: inset 0 -2px 0 currentColor;
  }

  .model-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.25rem;
  }

  .model-card {
    min-inline-size: 0;
    display: flex;
    flex-direction: column;
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-card);
  }

  @media (prefers-reduced-motion: no-preference) {
    .model-card {
      transition: transform 0.2s ease, border-color 0.2s ease;
    }

    .model-card:hover {
      transform: translateY(-3px);
      border-color: rgba(125, 211, 252, 0.38);
    }

    .model-thumb .model-img {
      transition: transform 0.35s ease;
    }

    .model-card:hover .model-thumb .model-img {
      transform: scale(1.04);
    }
  }

  .model-card[hidden] {
    display: none;
  }

  .model-thumb {
    position: relative;
    border-block-end: 1px solid rgba(148, 163, 184, 0.12);
  }

  .thumb-media {
    aspect-ratio: 16 / 9.4;
    background: #040814;
    overflow: hidden;
  }

  .thumb-media .model-img {
    inline-size: 100%;
    block-size: 100%;
    object-fit: cover;
  }

  .model-badge {
    position: absolute;
    inset-block-start: 0.75rem;
    inset-inline-end: 0.75rem;
    z-index: 2;
    font-size: 0.72rem;
    font-weight: 700;
    padding-block: 0.25rem;
    padding-inline: 0.625rem;
    border-radius: var(--radius-pill);
    backdrop-filter: blur(8px);
  }

  .badge-sky {
    background: rgba(8, 20, 46, 0.82);
    color: #bae6fd;
    border: 1px solid rgba(56, 189, 248, 0.5);
  }

  .badge-gold {
    background: rgba(24, 18, 8, 0.82);
    color: #fde68a;
    border: 1px solid rgba(245, 196, 105, 0.5);
  }

  .badge-emerald {
    background: rgba(6, 28, 22, 0.82);
    color: #a7f3d0;
    border: 1px solid rgba(52, 211, 153, 0.5);
  }

  .model-body {
    padding-block: 1.125rem 1.25rem;
    padding-inline: 1.25rem;
    display: flex;
    flex-direction: column;
    flex: 1;
  }

  .model-meta {
    font-size: 0.74rem;
    font-weight: 600;
    color: var(--text-muted);
    margin-block-end: 0.375rem;
  }

  .model-body h3 {
    margin-block-end: 0.5rem;
    font-size: 1.15rem;
    font-weight: 700;
    letter-spacing: -0.02em;
  }

  .model-body p {
    margin-block-end: 1.125rem;
    font-size: 0.9rem;
    line-height: 1.55;
    color: var(--text-secondary);
  }

  .model-footer {
    margin-block-start: auto;
    padding-block-start: 0.75rem;
    border-block-start: 1px solid rgba(148, 163, 184, 0.12);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem 0.625rem;
  }

  .model-spec {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    color: var(--text-muted);
  }

  .model-card-actions {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-inline-start: auto;
  }

  .format-mini-links {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
  }

  .format-mini-link {
    display: inline-flex;
    align-items: center;
    min-block-size: var(--target-size);
    padding-inline: 0.45rem;
    border-radius: 0.4rem;
    border: 1px solid rgba(148, 163, 184, 0.24);
    background: rgba(255, 255, 255, 0.04);
    font-family: var(--font-mono);
    font-size: 0.68rem;
    font-weight: 600;
    color: var(--text-secondary);
  }

  .format-mini-link:hover {
    border-color: var(--border-sky);
    color: #e0f2fe;
  }

  .stage-jump-btn {
    border: 0;
    background: transparent;
    padding: 0;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    min-block-size: var(--target-size);
    font-size: 0.84rem;
    font-weight: 600;
    color: var(--sky-bright);
    white-space: nowrap;
  }

  .stage-jump-btn:hover {
    color: #ffffff;
  }

  .text-link {
    display: inline-flex;
    align-items: center;
    min-block-size: var(--target-size);
    font-size: 0.84rem;
    font-weight: 600;
    color: var(--sky-bright);
    white-space: nowrap;
    flex-shrink: 0;
  }

  .text-link:hover {
    color: #ffffff;
  }

  .studio-guarantee a {
    color: var(--sky-bright);
    text-decoration: underline;
    text-underline-offset: 3px;
  }

  .studio-guarantee a:hover {
    color: #ffffff;
  }

  .studio-guarantee {
    margin-block-start: 1.5rem;
    padding-block: 1rem;
    padding-inline: 1.375rem;
    border-radius: var(--radius-md);
    background: rgba(9, 16, 34, 0.78);
    border: 1px solid var(--border-subtle);
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 1rem;
  }

  .guarantee-item {
    display: inline-flex;
    align-items: center;
    gap: 0.625rem;
    font-size: 0.86rem;
    color: var(--text-secondary);
  }

  .guarantee-item svg {
    flex-shrink: 0;
  }

  /* ========================================================================
     Footer & Legal Pages
     ======================================================================== */
  .site-footer {
    border-block-start: 1px solid rgba(148, 163, 184, 0.14);
    background: rgba(2, 4, 11, 0.94);
    padding-block: 2.75rem 2rem;
    padding-inline-start: env(safe-area-inset-left, 0px);
    padding-inline-end: env(safe-area-inset-right, 0px);
    margin-block-start: auto;
  }

  .footer-grid {
    display: grid;
    grid-template-columns: minmax(0, 2.2fr) minmax(0, 1fr);
    gap: 2rem;
    padding-block-end: 2rem;
    border-block-end: 1px solid rgba(148, 163, 184, 0.12);
  }

  .footer-tagline {
    margin-block: 0.75rem 0.625rem;
    font-size: 0.95rem;
    color: var(--text-secondary);
    font-weight: 500;
  }

  .footer-credits {
    font-size: 0.8125rem;
    line-height: 1.6;
    color: var(--text-muted);
    max-inline-size: 48ch;
  }

  .footer-col h3 {
    margin-block-end: 0.75rem;
    font-size: 0.8125rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-primary);
  }

  .footer-col ul {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
  }

  .footer-col a {
    display: inline-flex;
    align-items: center;
    min-block-size: var(--target-size);
    font-size: 0.875rem;
    color: var(--text-muted);
  }

  .footer-col a:hover {
    color: var(--sky-bright);
  }

  .footer-bottom {
    padding-block-start: 1.25rem;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 0.75rem;
    font-size: 0.8125rem;
    color: var(--text-muted);
  }

  .footer-bottom a {
    color: var(--text-secondary);
  }

  .footer-bottom a:hover {
    color: var(--sky-bright);
  }

  .section-eyebrow {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--sky);
  }

  .legal-page {
    padding-block: clamp(2.5rem, 6dvh, 4rem) clamp(3.5rem, 8dvh, 5.5rem);
    max-inline-size: 52rem;
  }

  .legal-page h1 {
    margin-block: 0.35rem 0.4rem;
    font-size: clamp(1.85rem, 1.25rem + 2.2vw, 2.65rem);
    letter-spacing: -0.03em;
  }

  .legal-updated {
    margin-block-end: 1.5rem;
    font-size: 0.875rem;
    color: var(--text-muted);
  }

  .legal-toc {
    margin-block-end: 1.5rem;
    padding: 1.125rem 1.375rem;
    border-radius: var(--radius-md);
    background: rgba(9, 16, 34, 0.78);
    border: 1px solid var(--border-subtle);
  }

  .legal-toc-title {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-block-end: 0.625rem;
  }

  .legal-toc ol {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(13.5rem, 1fr));
    gap: 0.25rem 1rem;
    padding-inline-start: 1.2rem;
    list-style: decimal;
    color: var(--text-secondary);
    font-size: 0.875rem;
  }

  .legal-toc a {
    display: inline-flex;
    align-items: center;
    min-block-size: var(--target-size);
    color: var(--sky-bright);
  }

  .legal-toc a:hover {
    color: #ffffff;
    text-decoration: underline;
    text-underline-offset: 3px;
  }

  .legal-callout {
    margin-block: 1rem 1.5rem;
    padding: 1rem 1.25rem;
    border-radius: var(--radius-md);
    background: rgba(245, 196, 105, 0.09);
    border: 1px solid rgba(245, 196, 105, 0.42);
    color: #fef3c7;
    font-size: 0.92rem;
    line-height: 1.6;
  }

  .legal-callout strong {
    color: #fde68a;
  }

  .legal-card {
    padding: clamp(1.5rem, 4dvw, 2.375rem);
    border-radius: var(--radius-lg);
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    box-shadow: var(--shadow-card);
  }

  .legal-card h2 {
    margin-block: 1.85rem 0.625rem;
    padding-block-start: 1.25rem;
    border-block-start: 1px solid rgba(148, 163, 184, 0.14);
    font-size: 1.18rem;
    letter-spacing: -0.015em;
  }

  .legal-card h2:first-child {
    margin-block-start: 0;
    padding-block-start: 0;
    border-block-start: 0;
  }

  .legal-card h3 {
    margin-block: 1.1rem 0.35rem;
    font-size: 0.98rem;
    font-weight: 650;
    color: var(--text-primary);
  }

  .legal-card p {
    color: var(--text-secondary);
    line-height: 1.68;
    font-size: 0.95rem;
    max-inline-size: 72ch;
    margin-block-end: 0.75rem;
  }

  .legal-card p:last-child {
    margin-block-end: 0;
  }

  .legal-card ul {
    list-style: disc;
    padding-inline-start: 1.35rem;
    margin-block: 0.45rem 0.95rem;
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    color: var(--text-secondary);
    font-size: 0.94rem;
    line-height: 1.62;
    max-inline-size: 72ch;
  }

  .legal-card a {
    color: var(--sky-bright);
    text-decoration: underline;
    text-underline-offset: 3px;
  }

  /* ========================================================================
     Responsive Breakpoints & Forced Colors Accessibility
     ======================================================================== */
  @media (max-width: 64rem) {
    .hero-grid {
      grid-template-columns: 1fr;
      gap: 2rem;
    }

    .hero-stage {
      aspect-ratio: 16 / 10;
    }

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

  @media (max-width: 47.5rem) {
    .header-inner {
      flex-wrap: wrap;
      gap: 0.5rem 0.75rem;
    }

    .nav-links {
      order: 3;
      flex-basis: 100%;
      justify-content: flex-start;
      gap: 0.25rem 1.125rem;
      padding-block-start: 0.25rem;
      border-block-start: 1px solid rgba(148, 163, 184, 0.1);
    }

    .nav-links a {
      font-size: 0.84rem;
    }

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

  @media (max-width: 40rem) {
    .footer-grid {
      grid-template-columns: 1fr;
    }

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

    .hero-stage {
      aspect-ratio: 5 / 4.2;
      min-block-size: 18.5rem;
      border-radius: var(--radius-lg);
    }

    .stage-hud-bottom {
      flex-direction: column;
      align-items: stretch;
    }

    .craft-switcher {
      justify-content: space-between;
    }

    .stage-meta {
      justify-content: flex-end;
    }
  }

  @media (max-width: 24rem) {
    .brand {
      gap: 0.45rem;
    }

    .brand-icon {
      inline-size: 1.875rem;
      block-size: 1.875rem;
    }

    .brand-wordmark {
      font-size: 1rem;
    }

    .nav-links {
      gap: 0.2rem 0.72rem;
    }

    .nav-links a {
      font-size: 0.78rem;
    }

    .header-actions .btn-sm {
      padding-inline: 0.75rem;
      font-size: 0.8125rem;
    }
  }

  @media (forced-colors: active) {
    .site-header,
    .hero-stage,
    .legal-card,
    .model-card,
    .model-badge,
    .studio-guarantee,
    .filter-pill,
    .btn,
    .craft-tab,
    .stage-ctrl-btn,
    .hud-pill,
    .hud-telemetry {
      border: 1px solid ButtonBorder;
      forced-color-adjust: auto;
    }

    .text-gradient {
      background: none;
      color: CanvasText;
    }

    .craft-tab[aria-pressed="true"],
    .filter-pill[aria-pressed="true"],
    .nav-links a[aria-current="page"] {
      outline: 2px solid Highlight;
      outline-offset: -2px;
    }
  }
}
