:root {
  --bg-canvas: #0B0B0D;
  --bg-surface: #141418;
  --bg-elevated: #1D1E25;
  --border-soft: rgba(245, 244, 240, 0.09);
  --border-strong: rgba(245, 244, 240, 0.19);
  --ink-primary: #F5F4F0;
  --ink-secondary: #A6A8B2;
  --ink-muted: #828591;
  --brand-primary: #5EB8FF;
  --brand-primary-tint: rgba(94, 184, 255, 0.14);
  --accent-release: #FF6A45;
  --accent-release-tint: rgba(255, 106, 69, 0.13);
  --accent-ink: #0B0B0D;

  --radius-sm: 16px;
  --radius-md: 24px;
  --radius-lg: 32px;
  --radius-pill: 999px;
  --shadow-card: 0 20px 54px rgba(0, 0, 0, 0.42);
  --shadow-float: 0 22px 52px rgba(0, 0, 0, 0.58);

  --font-display: "Archivo", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-sans: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --max-w: 1240px;
  --pad-x: clamp(1rem, 3.6vw, 3rem);
  --nav-h: 76px;
}

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

html {
  background-color: var(--bg-canvas);
  color: var(--ink-primary);
  font-family: var(--font-sans);
  line-height: 1.62;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg-canvas);
  color: var(--ink-primary);
  overflow-x: clip;
}

img,
svg,
canvas,
video {
  display: block;
  max-width: 100%;
}

svg {
  height: auto;
}

a {
  color: inherit;
}

button {
  font: inherit;
  color: inherit;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -100px;
  z-index: 300;
  padding: 0.7rem 1.25rem;
  background: var(--accent-release);
  color: var(--accent-ink);
  font-weight: 700;
  text-decoration: none;
  border-radius: var(--radius-pill);
}

.skip-link:focus {
  top: 1rem;
}

:focus-visible {
  outline: 2px solid var(--accent-release);
  outline-offset: 3px;
}

.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding-left: var(--pad-x);
  padding-right: var(--pad-x);
}

/* Floating rounded header + compact mobile drawer */
.site-header {
  position: sticky;
  top: 12px;
  z-index: 150;
  padding: 0 var(--pad-x);
  margin-top: 12px;
  pointer-events: none;
}

.has-hero-stage .site-header {
  position: fixed;
  top: 12px;
  left: 0;
  right: 0;
  margin-top: 0;
}

.header-shell {
  max-width: calc(var(--max-w) - 2 * var(--pad-x));
  margin: 0 auto;
  position: relative;
  pointer-events: auto;
}

.header-pill {
  padding: 0.52rem 0.65rem 0.52rem 1.05rem;
  border-radius: var(--radius-pill);
  background: rgba(20, 20, 24, 0.88);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(245, 244, 240, 0.12);
  box-shadow: var(--shadow-float);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  color: var(--ink-primary);
  flex-shrink: 0;
}

.brand-wordmark {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 0.2rem;
}

.site-nav a {
  font-size: 0.89rem;
  font-weight: 500;
  color: var(--ink-secondary);
  text-decoration: none;
  padding: 0.48rem 0.9rem;
  border-radius: var(--radius-pill);
  transition: color 140ms ease, background-color 140ms ease;
}

.site-nav a:hover {
  color: var(--ink-primary);
  background: rgba(245, 244, 240, 0.08);
}

.site-nav a[aria-current="page"] {
  color: var(--ink-primary);
  background: var(--brand-primary-tint);
}

.nav-toggle {
  display: none;
  min-height: 40px;
  padding: 0.45rem 1rem;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-strong);
  background: var(--bg-elevated);
  color: var(--ink-primary);
  font-size: 0.86rem;
  font-weight: 600;
  cursor: pointer;
}

.mobile-drawer {
  display: none;
  margin-top: 0.6rem;
  padding: 0.75rem;
  border-radius: var(--radius-md);
  background: rgba(20, 20, 24, 0.96);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(245, 244, 240, 0.13);
  box-shadow: var(--shadow-float);
  flex-direction: column;
  gap: 0.35rem;
}

.mobile-drawer.is-open {
  display: flex;
}

.mobile-drawer a {
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  text-decoration: none;
  font-weight: 500;
  color: var(--ink-secondary);
}

.mobile-drawer a:hover,
.mobile-drawer a[aria-current="page"] {
  background: rgba(245, 244, 240, 0.08);
  color: var(--ink-primary);
}

/* Section rhythm */
.section-block {
  padding: clamp(3rem, 6vw, 5.25rem) 0;
}

.section-header {
  max-width: 740px;
  margin-bottom: clamp(1.75rem, 3.8vw, 2.75rem);
}

.section-kicker {
  margin: 0 0 0.55rem;
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--brand-primary);
}

.section-kicker.is-current-release {
  color: var(--accent-release);
}

.display-title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.9rem, 3.6vw, 2.75rem);
  line-height: 1.08;
  letter-spacing: -0.025em;
  color: var(--ink-primary);
}

.section-lead {
  margin: 0.9rem 0 0;
  font-size: 1.04rem;
  color: var(--ink-secondary);
  max-width: 62ch;
}

/* Full-Bleed Hero Stage */
.hero-stage {
  position: relative;
  min-height: min(92svh, 860px);
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--bg-canvas);
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-bg-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(11, 11, 13, 0.90) 0%, rgba(11, 11, 13, 0.62) 42%, rgba(11, 11, 13, 0.14) 76%, rgba(11, 11, 13, 0.25) 100%),
    linear-gradient(180deg, rgba(11, 11, 13, 0.50) 0%, rgba(11, 11, 13, 0.0) 24%, rgba(11, 11, 13, 0.0) 70%, #0B0B0D 100%);
}

.hero-stage-inner {
  position: relative;
  z-index: 2;
  padding-top: 6.5rem;
  padding-bottom: 4.5rem;
}

.hero-stage-copy {
  max-width: 660px;
}

.hero-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 1.75rem;
}

.hero-headline {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.45rem, 4.8vw, 4.05rem);
  line-height: 1.03;
  letter-spacing: -0.03em;
  color: var(--ink-primary);
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0.68rem 1.4rem;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-strong);
  background: var(--bg-elevated);
  color: var(--ink-primary);
  font-size: 0.92rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: transform 140ms ease, background-color 140ms ease, border-color 140ms ease;
}

.btn:hover {
  transform: translateY(-1px);
  border-color: var(--ink-primary);
  background: #272933;
}

.btn-primary {
  background: var(--brand-primary);
  border-color: var(--brand-primary);
  color: var(--accent-ink);
}

.btn-primary:hover {
  background: #7cc7ff;
  border-color: #7cc7ff;
  color: var(--accent-ink);
}

.btn-ink {
  background: var(--ink-primary);
  border-color: var(--ink-primary);
  color: var(--accent-ink);
}

.btn-ink:hover {
  background: #ffffff;
  border-color: #ffffff;
  color: var(--accent-ink);
}

.btn-release {
  background: var(--ink-primary);
  border-color: var(--ink-primary);
  color: var(--accent-ink);
}

.btn-release:hover {
  background: #ffffff;
  border-color: #ffffff;
  color: var(--accent-ink);
}

/* Status Badges */
.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.28rem 0.75rem;
  border-radius: var(--radius-pill);
  font-family: var(--font-mono);
  font-size: 0.76rem;
  font-weight: 600;
  white-space: nowrap;
  border: 1px solid var(--border-soft);
  background: rgba(11, 11, 13, 0.65);
  color: var(--ink-secondary);
}

.badge-pass,
.badge-done {
  border-color: rgba(94, 184, 255, 0.45);
  background: var(--brand-primary-tint);
  color: var(--brand-primary);
}

.badge-release {
  border-color: var(--border-strong);
  background: rgba(245, 244, 240, 0.08);
  color: var(--ink-primary);
}

.badge-planned {
  border-color: var(--border-soft);
  background: rgba(245, 244, 240, 0.05);
  color: var(--ink-muted);
}

/* Headline Big Results Row */
.results-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.95rem;
  margin-top: 0;
}

.result-card {
  padding: 1.35rem 1.35rem 1.4rem;
  border-radius: var(--radius-md);
  background: var(--bg-surface);
  border: 1px solid var(--border-soft);
  box-shadow: var(--shadow-card);
  display: grid;
  gap: 0.35rem;
  align-content: start;
}

.result-card.is-current-release {
  border-color: rgba(94, 184, 255, 0.28);
}

.result-figure {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-size: clamp(1.55rem, 2.5vw, 2.05rem);
  font-weight: 700;
  line-height: 1.1;
  color: var(--brand-primary);
}

.result-card.is-current-release .result-figure {
  color: var(--ink-primary);
}

.result-title {
  margin: 0.15rem 0 0;
  font-size: 1rem;
  font-weight: 600;
  color: var(--ink-primary);
}

.result-detail {
  margin: 0;
  font-size: 0.89rem;
  color: var(--ink-secondary);
}

/* Interactive Desktop Workspace Stage */
.ui-stage {
  border-radius: var(--radius-lg);
  background: var(--bg-surface);
  border: 1px solid var(--border-soft);
  box-shadow: var(--shadow-float);
  overflow: hidden;
}

.ui-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1.25rem;
  padding: 0.9rem 1.15rem;
  border-bottom: 1px solid var(--border-soft);
  background: var(--bg-elevated);
}

.ui-full-link {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--ink-secondary);
  text-decoration: none;
  padding: 0.4rem 0.85rem;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-soft);
  transition: color 140ms ease, border-color 140ms ease;
}

.ui-full-link:hover {
  color: var(--ink-primary);
  border-color: var(--border-strong);
}

.ui-frame {
  background: #0B0D12;
  border-bottom: 1px solid var(--border-soft);
}

.ui-frame img,
.ui-frame video {
  display: block;
  width: 100%;
  height: auto;
}

.ui-footer {
  padding: 1.15rem 1.4rem 1.3rem;
  display: grid;
  gap: 0.35rem;
}

.ui-step-title {
  margin: 0;
  font-size: 1.06rem;
  font-weight: 600;
  color: var(--ink-primary);
}

.ui-step-caption {
  margin: 0;
  font-size: 0.92rem;
  color: var(--ink-secondary);
  max-width: 72ch;
}

/* 3D Sticky Scrolling Video Deck */
.demos-section {
  padding-top: clamp(2rem, 4vw, 3.25rem);
  padding-bottom: clamp(2rem, 4vw, 3rem);
}

.gpu-bar {
  max-width: min(920px, calc(58vh * 16 / 9));
  margin: 0 auto 1rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem 1rem;
}

.gpu-status-tag {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0.35rem 0.9rem;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(94, 184, 255, 0.38);
  background: var(--brand-primary-tint);
  color: var(--ink-primary);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 600;
}

.gpu-select {
  min-height: 38px;
  max-width: 100%;
  padding: 0.4rem 0.85rem;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-strong);
  background: var(--bg-surface);
  color: var(--ink-primary);
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
}

.gpu-select:hover {
  border-color: var(--brand-primary);
}

.gpu-estimate-note {
  margin: 0.75rem 0 0;
  font-size: 0.92rem;
  color: var(--brand-primary);
  font-weight: 500;
}

.video-deck {
  display: flex;
  flex-direction: column;
  gap: clamp(22px, 3.2vw, 34px);
  max-width: min(920px, calc(58vh * 16 / 9));
  margin: 0 auto;
  perspective: 1200px;
  padding-bottom: 1.5rem;
}

.video-deck-card {
  border-radius: var(--radius-md);
  border: 1px solid var(--border-soft);
  background: var(--bg-surface);
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.5);
  overflow: hidden;
  transition: border-color 240ms ease, box-shadow 240ms ease;
}

html.js .video-deck-card {
  position: sticky;
  top: calc(88px + var(--stack-i, 0) * 10px);
  transform-origin: top center;
  will-change: transform, filter;
}

html.js .video-deck-card.is-active {
  border-color: rgba(94, 184, 255, 0.42);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.65);
}

.video-deck-media {
  position: relative;
  width: 100%;
  background: #070709;
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

.video-deck-media video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  cursor: pointer;
  will-change: transform;
}

.video-deck-media video:focus-visible {
  outline: 2px solid var(--accent-release);
  outline-offset: -2px;
}

.video-deck-body {
  padding: 0.85rem 1.25rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 1rem;
  border-top: 1px solid var(--border-soft);
}

.video-deck-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.06rem, 1.8vw, 1.24rem);
  font-weight: 700;
  color: var(--ink-primary);
}

.video-deck-meta {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--brand-primary);
  white-space: nowrap;
  padding-top: 0;
}

.tablist {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.tab-btn {
  min-height: 40px;
  padding: 0.45rem 1.05rem;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-soft);
  background: rgba(11, 11, 13, 0.65);
  color: var(--ink-secondary);
  font-size: 0.87rem;
  font-weight: 600;
  cursor: pointer;
}

.tab-btn:hover {
  color: var(--ink-primary);
  border-color: var(--border-strong);
}

.tab-btn[aria-selected="true"] {
  background: var(--brand-primary-tint);
  border-color: var(--brand-primary);
  color: var(--ink-primary);
}

.tab-btn.is-current-release[aria-selected="true"] {
  background: var(--brand-primary-tint);
  border-color: var(--brand-primary);
  color: var(--ink-primary);
}

.duo-panels {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.15rem;
  margin-bottom: 1.75rem;
}

.sub-panel {
  border-radius: var(--radius-md);
  border: 1px solid var(--border-soft);
  background: var(--bg-surface);
  box-shadow: var(--shadow-card);
  padding: 1.45rem 1.55rem;
}

.sub-panel.is-current-release {
  border-color: var(--border-strong);
}

.sub-panel h3 {
  margin: 0 0 0.45rem;
  font-size: 1.08rem;
  font-weight: 600;
  color: var(--ink-primary);
}

.sub-panel p {
  margin: 0;
  font-size: 0.92rem;
  color: var(--ink-secondary);
}

.mono {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-size: 0.83rem;
  white-space: nowrap;
}

/* Footer */
.site-footer {
  padding: 2rem 0 3.25rem;
}

.footer-inner {
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-soft);
  background: var(--bg-surface);
  padding: 2rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1.5rem 2.5rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  font-size: 0.9rem;
  color: var(--ink-secondary);
}

.footer-links a {
  text-decoration: none;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-soft);
  background: rgba(11, 11, 13, 0.45);
}

.footer-links a:hover {
  color: var(--ink-primary);
  border-color: var(--brand-primary);
}

.footer-note {
  margin: 0.85rem 0 0;
  font-size: 0.87rem;
  color: var(--ink-muted);
  max-width: 60ch;
}

/* Brand guide page styles */
.brand-hero {
  padding: clamp(2.5rem, 5vw, 4rem) 0 clamp(2rem, 4vw, 3rem);
}

.brand-intro-header {
  margin-bottom: 0;
}

.brand-section {
  border-top: 1px solid var(--border-soft);
}

.palette-scale {
  margin: 0 0 1.4rem;
}

.palette-bar {
  height: 16px;
  border-radius: var(--radius-pill);
  overflow: hidden;
  display: flex;
  border: 1px solid var(--border-soft);
}

.palette-seg {
  display: block;
  height: 100%;
}

.palette-seg-canvas {
  background: #0B0B0D;
  flex-grow: 14;
}

.palette-seg-surface {
  background: #141418;
  flex-grow: 10;
}

.palette-seg-elevated {
  background: #1D1E25;
  flex-grow: 6;
}

.palette-seg-chalk {
  background: #F5F4F0;
  flex-grow: 8;
}

.palette-seg-azure {
  background: #5EB8FF;
  flex-grow: 5;
}

.palette-seg-coral {
  background: #FF6A45;
  flex-grow: 2;
}

.palette-caption {
  margin-top: 0.55rem;
  font-size: 0.84rem;
  color: var(--ink-muted);
}

.palette-copy-status {
  margin: 0 0 1rem;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--brand-primary);
}

.swatch-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.95rem;
}

.swatch-card {
  border-radius: var(--radius-md);
  border: 1px solid var(--border-soft);
  background: var(--bg-surface);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  text-align: left;
  padding: 0;
  cursor: pointer;
  transition: border-color 140ms ease;
}

.swatch-card:hover {
  border-color: var(--ink-secondary);
}

.swatch-chip {
  height: 76px;
  border-bottom: 1px solid var(--border-soft);
}

.swatch-chip-canvas {
  background: #0B0B0D;
}

.swatch-chip-surface {
  background: #141418;
}

.swatch-chip-elevated {
  background: #1D1E25;
}

.swatch-chip-chalk {
  background: #F5F4F0;
}

.swatch-chip-secondary {
  background: #A6A8B2;
}

.swatch-chip-muted {
  background: #828591;
}

.swatch-chip-azure {
  background: #5EB8FF;
}

.swatch-chip-coral {
  background: #FF6A45;
}

.swatch-meta {
  padding: 0.95rem 1.05rem;
  display: grid;
  gap: 0.25rem;
}

.swatch-token {
  font-family: var(--font-mono);
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--ink-primary);
}

.swatch-hex {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--ink-secondary);
}

.swatch-role {
  font-size: 0.86rem;
  color: var(--ink-secondary);
}

.logo-specimens {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.15rem;
}

.specimen-box {
  border-radius: var(--radius-md);
  border: 1px solid var(--border-soft);
  box-shadow: var(--shadow-card);
  padding: 1.6rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1rem;
}

.specimen-dark {
  background: var(--bg-surface);
  color: var(--ink-primary);
}

.specimen-light {
  background: #F5F4F0;
  color: #0B0B0D;
}

.specimen-stage {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  min-height: 52px;
}

.specimen-icons {
  gap: 1rem;
}

.specimen-wordmark {
  font-size: 1.45rem;
}

.specimen-wordmark-dark {
  color: #0B0B0D;
}

.specimen-scale-note {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--ink-secondary);
}

.specimen-caption {
  font-size: 0.87rem;
  opacity: 0.82;
  margin: 0;
}

.specimen-actions {
  padding-top: 0.25rem;
}

.specimen-dl {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 600;
  text-decoration: none;
  padding: 0.42rem 0.9rem;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-strong);
  color: var(--ink-primary);
  background: rgba(11, 11, 13, 0.45);
  transition: border-color 140ms ease, background-color 140ms ease;
}

.specimen-dl:hover {
  border-color: var(--brand-primary);
  background: rgba(94, 184, 255, 0.12);
}

.specimen-dl-light {
  border-color: rgba(11, 11, 13, 0.24);
  color: #0B0B0D;
  background: rgba(11, 11, 13, 0.05);
}

.specimen-dl-light:hover {
  border-color: #0B0B0D;
  background: rgba(11, 11, 13, 0.12);
}

.type-specimen-list {
  display: grid;
  gap: 0.9rem;
}

.type-row {
  padding: 1.4rem 1.55rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-soft);
  background: var(--bg-surface);
  display: grid;
  grid-template-columns: minmax(180px, 230px) 72px minmax(0, 1fr);
  align-items: center;
  gap: 0.85rem 1.5rem;
}

.type-meta {
  display: grid;
  gap: 0.2rem;
}

.type-role {
  font-weight: 600;
  font-size: 0.96rem;
  color: var(--ink-primary);
}

.type-spec {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--ink-muted);
}

.type-aa {
  font-size: 2.3rem;
  line-height: 1;
  color: var(--brand-primary);
}

.type-aa-display,
.type-sample-display {
  font-family: var(--font-display);
  font-weight: 700;
}

.type-aa-sans,
.type-sample-sans {
  font-family: var(--font-sans);
}

.type-aa-mono,
.type-sample-mono {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
}

.type-sample {
  margin: 0;
  color: var(--ink-primary);
}

.type-sample-display {
  font-size: clamp(1.2rem, 2.1vw, 1.5rem);
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.type-sample-sans {
  font-size: 0.98rem;
  color: var(--ink-secondary);
}

.type-sample-mono {
  font-size: 0.9rem;
  overflow-wrap: anywhere;
}

.brand-controls-panel {
  padding: 1.65rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-soft);
  background: var(--bg-surface);
  display: grid;
  gap: 1.5rem;
}

.brand-action-row {
  margin-top: 0;
}

.radius-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.9rem;
  padding-top: 1.35rem;
  border-top: 1px solid var(--border-soft);
}

.radius-item {
  display: grid;
  gap: 0.35rem;
  align-content: start;
}

.radius-preview {
  height: 76px;
  border: 1px solid var(--border-strong);
  background: var(--bg-elevated);
  margin-bottom: 0.25rem;
}

.radius-preview-sm {
  border-radius: var(--radius-sm);
}

.radius-preview-md {
  border-radius: var(--radius-md);
}

.radius-preview-lg {
  border-radius: var(--radius-lg);
}

.radius-preview-pill {
  border-radius: var(--radius-pill);
}

/* Responsive Breakpoints */
@media (max-width: 1080px) {
  .results-grid,
  .swatch-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 860px) {
  .site-nav {
    display: none;
  }

  .nav-toggle {
    display: inline-flex;
    align-items: center;
  }

  .duo-panels,
  .logo-specimens,
  .type-row {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 760px) {
  .hero-stage {
    min-height: 68svh;
    align-items: flex-end;
  }

  .hero-bg-video {
    height: 112%;
    object-position: 53% 50%;
    transform: translateY(-7%);
  }

  .hero-stage-inner {
    padding-top: 5.25rem;
    padding-bottom: 2.5rem;
  }

  .hero-scrim {
    background: linear-gradient(180deg, rgba(11, 11, 13, 0.36) 0%, rgba(11, 11, 13, 0.14) 34%, rgba(11, 11, 13, 0.86) 72%, #0B0B0D 100%);
  }

  html.js .video-deck-card {
    top: calc(76px + var(--stack-i, 0) * 8px);
  }

  .video-deck-body {
    padding: 0.85rem 1.05rem;
  }
}

@media (max-width: 640px) {
  .results-grid,
  .swatch-grid,
  .radius-strip {
    grid-template-columns: 1fr;
  }

  .footer-inner {
    border-radius: var(--radius-md);
  }

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

  .hero-actions .btn,
  .hero-cta-row .btn {
    width: 100%;
  }

  .gpu-bar {
    flex-direction: column;
    align-items: stretch;
  }

  .gpu-select {
    width: 100%;
  }
}

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

  .btn,
  .site-nav a,
  .tab-btn,
  .video-deck-card {
    transition: none;
    animation: none;
  }

  .btn:hover {
    transform: none;
  }

  html.js .video-deck-card {
    position: static !important;
    transform: none !important;
    filter: none !important;
  }

  .video-deck-media video {
    transform: none !important;
  }
}


/* Commercial Storefront, Student Verification, Downloads & EULA */
.commerce-banner {
  margin-bottom: 1.75rem;
  padding: 1.25rem 1.5rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-strong);
  background: var(--bg-surface);
  box-shadow: var(--shadow-card);
}

.commerce-banner.is-success {
  border-color: rgba(94, 184, 255, 0.55);
  background: rgba(94, 184, 255, 0.08);
}

.commerce-banner.is-warn {
  border-color: rgba(255, 106, 69, 0.55);
  background: rgba(255, 106, 69, 0.08);
}

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

.price-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1.25rem;
  padding: 1.6rem;
  border-radius: var(--radius-md);
  background: var(--bg-surface);
  border: 1px solid var(--border-soft);
  box-shadow: var(--shadow-card);
}

.price-card.is-featured {
  border-color: rgba(94, 184, 255, 0.45);
  background: linear-gradient(180deg, rgba(94, 184, 255, 0.08) 0%, var(--bg-surface) 42%);
}

.price-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
}

.price-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--ink-primary);
}

.price-amount-row {
  margin-top: 0.85rem;
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.price-figure {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 3vw, 2.45rem);
  font-weight: 700;
  line-height: 1;
  color: var(--ink-primary);
}

.price-unit {
  font-size: 0.92rem;
  color: var(--ink-secondary);
}

.price-desc {
  margin: 0.7rem 0 0;
  font-size: 0.94rem;
  color: var(--ink-secondary);
}

.feature-list {
  margin: 1rem 0 0;
  padding-left: 1.15rem;
  display: grid;
  gap: 0.42rem;
  color: var(--ink-secondary);
  font-size: 0.9rem;
}

.store-form {
  display: grid;
  gap: 0.78rem;
  margin-top: 0.5rem;
}

.field-group {
  display: grid;
  gap: 0.32rem;
}

.field-label {
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--ink-primary);
}

.field-hint {
  font-size: 0.8rem;
  color: var(--ink-secondary);
}

.field-input,
.field-file {
  width: 100%;
  min-height: 44px;
  padding: 0.62rem 0.85rem;
  border-radius: 12px;
  border: 1px solid var(--border-strong);
  background: var(--bg-canvas);
  color: var(--ink-primary);
  font: inherit;
  font-size: 0.92rem;
}

.field-input::placeholder {
  color: var(--ink-muted);
}

.seat-stepper-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.stepper-btn {
  min-width: 44px;
  min-height: 44px;
  border-radius: 12px;
  border: 1px solid var(--border-strong);
  background: var(--bg-elevated);
  color: var(--ink-primary);
  font-size: 1.1rem;
  font-weight: 700;
  cursor: pointer;
}

.stepper-btn:hover {
  border-color: var(--brand-primary);
  background: #272933;
}

.seat-number-input {
  width: 84px;
  text-align: center;
  font-family: var(--font-mono);
  font-weight: 600;
}

.seat-presets {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.25rem;
}

.seat-chip {
  min-height: 36px;
  padding: 0.28rem 0.7rem;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-soft);
  background: var(--bg-canvas);
  color: var(--ink-secondary);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
}

.seat-chip:hover,
.seat-chip.is-active {
  border-color: var(--brand-primary);
  background: var(--brand-primary-tint);
  color: var(--ink-primary);
}

.check-row {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-size: 0.84rem;
  color: var(--ink-secondary);
  cursor: pointer;
}

.check-row input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  flex-shrink: 0;
  accent-color: var(--brand-primary);
}

.enterprise-box {
  padding: 0.95rem 1.05rem;
  border-radius: 14px;
  border: 1px solid rgba(255, 106, 69, 0.45);
  background: rgba(255, 106, 69, 0.09);
  font-size: 0.88rem;
  color: var(--ink-primary);
}

.enterprise-box p {
  margin: 0 0 0.55rem;
}

.enterprise-box p:last-child {
  margin-bottom: 0;
}

.contact-stack {
  display: grid;
  gap: 0.65rem;
}

.contact-pill-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.78rem 1rem;
  border-radius: 14px;
  border: 1px solid var(--border-strong);
  background: var(--bg-canvas);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.92rem;
}

.contact-pill-link:hover {
  border-color: var(--brand-primary);
  background: var(--bg-elevated);
}

.student-panel {
  margin-top: 1.75rem;
  padding: clamp(1.35rem, 3vw, 2rem);
  border-radius: var(--radius-lg);
  background: var(--bg-surface);
  border: 1px solid rgba(94, 184, 255, 0.32);
  box-shadow: var(--shadow-card);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  gap: clamp(1.25rem, 3vw, 2.25rem);
  align-items: start;
}

.student-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
}

.student-form-grid .span-2 {
  grid-column: 1 / -1;
}

.privacy-callout {
  padding: 0.85rem 1rem;
  border-radius: 14px;
  border: 1px solid var(--border-strong);
  background: rgba(94, 184, 255, 0.08);
  font-size: 0.84rem;
  color: var(--ink-secondary);
}

.result-box {
  margin-top: 0.75rem;
  padding: 1rem;
  border-radius: 14px;
  border: 1px solid var(--border-strong);
  background: var(--bg-canvas);
  font-size: 0.88rem;
}

.result-box.is-ok {
  border-color: rgba(94, 184, 255, 0.55);
}

.result-box.is-err {
  border-color: rgba(255, 106, 69, 0.6);
  color: #ffb8a6;
}

.key-copy-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem;
  margin-top: 0.6rem;
}

.license-code {
  padding: 0.5rem 0.8rem;
  border-radius: 10px;
  border: 1px solid var(--border-strong);
  background: var(--bg-elevated);
  font-family: var(--font-mono);
  font-size: 0.94rem;
  color: var(--ink-primary);
  word-break: break-all;
}

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

.portal-panel {
  margin-top: 1.5rem;
  padding: 1.5rem;
  border-radius: var(--radius-md);
  background: var(--bg-surface);
  border: 1px solid var(--border-soft);
}

.portal-form-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto;
  gap: 0.75rem;
  align-items: end;
  margin-top: 0.85rem;
}

.eula-grid {
  display: grid;
  gap: 1.25rem;
}

.eula-grid .sub-panel h2 {
  margin: 0 0 0.75rem;
  font-family: var(--font-display);
  font-size: 1.32rem;
  color: var(--ink-primary);
}

.eula-grid .sub-panel p {
  margin: 0 0 0.75rem;
  color: var(--ink-secondary);
}

.eula-grid .sub-panel p:last-child {
  margin-bottom: 0;
}

.eula-list {
  margin: 0;
  padding-left: 1.2rem;
  color: var(--ink-secondary);
  display: grid;
  gap: 0.35rem;
}

.hp-trap {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

@media (max-width: 980px) {
  .pricing-grid,
  .student-panel,
  .download-grid,
  .portal-form-row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .student-form-grid {
    grid-template-columns: 1fr;
  }
}


#download {
  padding-bottom: clamp(3.5rem, 7vw, 5.5rem);
}

/* Compact Cards & Accessible Modals */
.nav-cta {
  margin-left: 0.35rem;
  min-height: 36px;
  padding: 0.42rem 0.95rem;
  border-radius: var(--radius-pill);
  border: 1px solid var(--ink-primary);
  background: var(--ink-primary);
  color: var(--accent-ink);
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  transition: background-color 140ms ease, border-color 140ms ease;
}

.nav-cta:hover {
  background: #ffffff;
  border-color: #ffffff;
  color: var(--accent-ink);
}

.student-banner-compact {
  margin-top: 1.25rem;
  padding: 1.25rem 1.5rem;
  border-radius: var(--radius-md);
  border: 1px solid rgba(94, 184, 255, 0.38);
  background: rgba(94, 184, 255, 0.07);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 1.5rem;
}

.ts-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 400;
  background: rgba(6, 7, 10, 0.78);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  overflow-y: auto;
}

.ts-modal-backdrop[hidden] {
  display: none;
}

.ts-modal-dialog {
  width: 100%;
  max-width: 500px;
  max-height: calc(100vh - 2rem);
  overflow-y: auto;
  padding: 1.5rem 1.65rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-strong);
  background: var(--bg-surface);
  box-shadow: var(--shadow-float);
}

.ts-modal-dialog.ts-modal-wide {
  max-width: 620px;
}

.ts-modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.ts-modal-close {
  min-height: 36px;
  padding: 0.3rem 0.85rem;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-strong);
  background: var(--bg-elevated);
  color: var(--ink-primary);
  font-size: 0.84rem;
  font-weight: 600;
  cursor: pointer;
}

.ts-modal-close:hover {
  border-color: var(--brand-primary);
}

@media (max-width: 640px) {
  .nav-cta {
    display: none;
  }
}

/* Development Log Page */
.dev-hero {
  padding-top: clamp(2.5rem, 5vw, 4rem);
  padding-bottom: 1.5rem;
}

.dev-progress-wrap {
  margin-top: 1.75rem;
  padding: 1.15rem 1.35rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-soft);
  background: var(--bg-surface);
}

.dev-progress-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem 1rem;
  margin-bottom: 0.7rem;
  font-family: var(--font-mono);
  font-size: 0.84rem;
}

.dev-updated-label {
  color: var(--ink-secondary);
}

.dev-progress-count {
  color: var(--brand-primary);
  font-weight: 600;
}

.dev-progress-track {
  width: 100%;
  height: 10px;
  border-radius: var(--radius-pill);
  background: var(--bg-elevated);
  overflow: hidden;
  border: 1px solid var(--border-soft);
}

.dev-progress-fill {
  height: 100%;
  border-radius: var(--radius-pill);
  background: linear-gradient(90deg, var(--brand-primary), #90d1ff);
  transition: width 240ms ease;
}

.dev-summary-grid {
  margin-top: 1.25rem;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.dev-summary-card {
  padding: 1.15rem 1.25rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-soft);
  background: var(--bg-surface);
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.dev-summary-label {
  font-size: 0.82rem;
  color: var(--ink-secondary);
}

.dev-summary-value {
  font-family: var(--font-display);
  font-size: 1.28rem;
  color: var(--ink-primary);
}

.dev-milestones-section {
  padding-top: 1.5rem;
  padding-bottom: 4.5rem;
}

.dev-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.dev-section-heading {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.5vw, 2rem);
}

.dev-filter-bar {
  display: inline-flex;
  gap: 0.45rem;
  padding: 0.3rem;
  border-radius: var(--radius-pill);
  background: var(--bg-surface);
  border: 1px solid var(--border-soft);
}

.dev-filter-btn {
  min-height: 36px;
  padding: 0.35rem 0.95rem;
  border: 0;
  border-radius: var(--radius-pill);
  background: transparent;
  color: var(--ink-secondary);
  font-size: 0.86rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 140ms ease, color 140ms ease;
}

.dev-filter-btn:hover {
  color: var(--ink-primary);
}

.dev-filter-btn.is-active {
  background: var(--brand-primary);
  color: #0B0B0D;
}

.dev-list {
  display: grid;
  gap: 1.25rem;
}

.dev-card {
  padding: 1.6rem 1.75rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-soft);
  background: var(--bg-surface);
  box-shadow: var(--shadow-card);
}

.dev-card-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem 1.25rem;
}

.dev-tag {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--brand-primary);
  margin-bottom: 0.3rem;
}

.dev-card-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.18rem, 2vw, 1.45rem);
  line-height: 1.28;
  color: var(--ink-primary);
}

.dev-status-pill {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0.2rem 0.85rem;
  border-radius: var(--radius-pill);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 600;
  white-space: nowrap;
}

.dev-status-done {
  background: rgba(74, 222, 128, 0.16);
  color: #86EFAC;
  border: 1px solid rgba(74, 222, 128, 0.4);
}

.dev-status-active {
  background: var(--brand-primary-tint);
  color: #8FD0FF;
  border: 1px solid rgba(94, 184, 255, 0.45);
}

.dev-status-planned {
  background: var(--bg-elevated);
  color: var(--ink-secondary);
  border: 1px solid var(--border-strong);
}

.dev-card-summary {
  margin: 0.9rem 0 0;
  color: var(--ink-primary);
  font-size: 0.98rem;
}

.dev-where {
  margin: 0.7rem 0 0;
  font-size: 0.9rem;
  color: var(--ink-secondary);
}

.dev-where strong {
  color: var(--ink-primary);
}

.dev-highlights {
  margin: 0.9rem 0 0;
  padding-left: 1.25rem;
  display: grid;
  gap: 0.38rem;
  color: var(--ink-secondary);
  font-size: 0.93rem;
}

.dev-metrics-row {
  margin-top: 1.15rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0.75rem;
}

.dev-metric-chip {
  padding: 0.7rem 0.9rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-soft);
  background: var(--bg-elevated);
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.dev-metric-label {
  font-size: 0.76rem;
  color: var(--ink-secondary);
}

.dev-metric-val {
  font-family: var(--font-mono);
  font-size: 0.92rem;
  color: var(--ink-primary);
}

@media (max-width: 900px) {
  .dev-summary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .dev-summary-grid {
    grid-template-columns: 1fr;
  }
  .dev-card {
    padding: 1.25rem;
  }
}
