/* ===================================================================
   TinyHand Windows — Ink-Graphite Design System
   Palette: Ink-Graphite (#0B0D14 / #07080D / #11141C)
            + Neon-Lime Anti-Metal Accents (hsl(75 100% 65%))
            + Silver Chrome Galaxies & Specular Borders
   Fonts: Familjen Grotesk (Display) + Inter (UI) + JetBrains Mono + Geist Pixel
   =================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Familjen+Grotesk:wght@500;600;700&family=Inter:wght@400;500;600&family=JetBrains+Mono:wght@400;500&display=swap');

@font-face {
  font-family: 'Geist Pixel';
  font-style: normal;
  font-display: swap;
  font-weight: 400 700;
  src: url('https://cdn.jsdelivr.net/npm/@fontsource-variable/geist-pixel/files/geist-pixel-latin-elsh-normal.woff2') format('woff2-variations');
}

:root {
  /* Ink-Graphite Surface Ramp (Preserved Unchanged) */
  --bg-deep: #07080d;
  --bg-page: #0b0d14;
  --bg-card: #11141c;
  --bg-raised: #1a1e28;
  --bg-hover: #222736;

  /* Hairlines */
  --rule-subtle: rgba(238, 240, 245, 0.08);
  --rule-card: rgba(238, 240, 245, 0.11);
  --rule-hover: rgba(238, 240, 245, 0.22);

  /* Text Roles */
  --text-primary: #eef0f5;
  --text-secondary: #a3a9b8;
  --text-muted: #7a8296;

  /* Active Pill Chrome */
  --cta-bg: #f4f4f6;
  --cta-hover: #ffffff;
  --cta-fg: #111318;

  /* Neon-Lime Anti-Metal Accents */
  --accent: hsl(75, 100%, 65%);
  --accent-ink: hsl(75, 95%, 68%);
  --accent-dark: hsl(75, 88%, 32%);
  --accent-soft: hsla(75, 100%, 65%, 0.10);
  --accent-bd: hsla(75, 100%, 65%, 0.45);

  /* Toned Semantic Colors (Comparison Table Pros/Cons) */
  --pos-fg: #4cc38a;
  --pos-bg: rgba(76, 195, 138, 0.10);
  --pos-bd: rgba(76, 195, 138, 0.28);
  --neg-fg: #e5484d;
  --neg-bg: rgba(229, 72, 77, 0.10);
  --neg-bd: rgba(229, 72, 77, 0.28);

  /* Fonts */
  --font-display: 'Familjen Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;

  /* Radii & Motion */
  --r-tag: 6px;
  --r-control: 8px;
  --r-card: 16px;
  --r-window: 16px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);

  /* 4px Scale Grid Metrics */
  --container: 1200px;
  --gutter: 24px;
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background-color: #090a0f;
  color: var(--text-primary);
  font-family: var(--font-body);
  overflow-x: clip;
}

body {
  background-color: #090a0f;
  min-height: 100dvh;
  font-size: 0.9375rem;
  line-height: 1.5;
  overflow-x: clip;
  text-align: start;
}

/* Layer 1 & 2 Non-Blocking Motion Canvases */
.gravity-bg-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  display: block;
}

.comet-ink-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 50;
  pointer-events: none;
  display: block;
}

main,
.footer {
  position: relative;
  z-index: 1;
}

.site-header,
main,
.footer {
  overflow-x: clip;
}

:focus-visible {
  outline: 2px solid var(--cta-bg);
  outline-offset: 2px;
}

/* Custom Scrollbar */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg-page); }
::-webkit-scrollbar-thumb { background: var(--bg-raised); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--bg-hover); }

/* Container */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* Tiny Coral Live Micro-Dot */
.accent-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--accent);
  flex-shrink: 0;
}

/* ===================================================================
   Navigation Bar (Quiet Top Chrome)
   =================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(11, 13, 20, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--rule-subtle);
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-block-size: 64px;
  padding-block: 12px;
}

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

.brand-mark {
  display: block;
  width: 24px;
  height: 24px;
  aspect-ratio: 1;
}

.brand-name {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0;
}

.brand-version {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 400;
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 24px;
  list-style: none;
}

.nav-menu a {
  text-decoration: none;
  color: var(--text-secondary);
  font-size: 0.875rem;
  font-weight: 400;
  letter-spacing: 0;
  transition-property: color;
  transition-duration: 150ms;
  transition-timing-function: var(--ease);
}

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

.nav-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
}

.nav-link-quiet {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  transition-property: color;
  transition-duration: 150ms;
  transition-timing-function: var(--ease);
}

.nav-link-quiet:hover {
  color: var(--text-primary);
}

/* ===================================================================
   CTAs: Exact Jhey Anti-Metal Button & Framer GalaxyCursorButton
   =================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-block-size: 40px;
  padding: 8px 16px;
  border-radius: var(--r-control);
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  user-select: none;
  white-space: nowrap;
  transition-property: color, background-color, border-color, transform, box-shadow;
  transition-duration: 180ms;
  transition-timing-function: var(--ease);
}

.btn:active {
  transform: scale(0.98);
}

.btn-xs {
  min-block-size: 32px;
  padding: 4px 12px;
  font-size: 0.75rem;
}

.btn-secondary {
  background-color: var(--bg-raised);
  color: var(--text-primary);
  border-color: var(--rule-card);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.btn-secondary:hover {
  background-color: var(--bg-hover);
  border-color: var(--rule-hover);
}

/* 1. Exact Scoped Jhey / Anti-Metal CTA */
.anti-metal-btn {
  height: 52px;
  padding: 0;
  margin: 0;
  display: inline-grid;
  align-items: center;
  border-radius: 10px;
  border: 2px solid #0a0a0c;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.14), 0 12px 24px -8px rgba(0, 0, 0, 0.7);
  letter-spacing: 0.25px;
  cursor: pointer;
  position: relative;
  background: #050507;
  color: #ffffff;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 15px;
  overflow: hidden;
  outline-color: hsl(75 100% 45%);
  outline-offset: 0.25rem;
  user-select: none;
  text-decoration: none;
}

.anti-metal-btn:is(:hover, :focus-visible, .is-morphing, .is-ready) {
  --active: 1;
}

.anti-metal-btn:active {
  --pressed: 1;
}

.am-press-wrap {
  height: 100%;
  width: 100%;
  border-radius: 8px;
  position: absolute;
  inset: 0;
  pointer-events: none;
  scale: calc(1 - (var(--pressed, 0) * 0.04));
  transition: scale 0.1s;
}

.am-slab {
  --mask-image: url("https://assets.codepen.io/605876/chev-mask_1.png");
  --spread: 24px;
  --size: 28px;
  width: 58px;
  height: 100%;
  background: hsl(75 100% 65%);
  position: absolute;
  left: 0;
  top: 0;
  transition: width 0.28s cubic-bezier(0.22, 1, 0.36, 1);
  border-radius: 7px;
  box-shadow: 0 10px 10px -5px hsl(0 0% 0% / 0.5);
  container-type: inline-size;
  overflow: hidden;
}

.anti-metal-btn:is(:hover, :focus-visible, .is-morphing, .is-ready) .am-slab {
  width: 100%;
}

.am-primary {
  position: absolute;
  inset: 0;
  background: hsl(0 0% 0% / 0.18);
  z-index: 2;
  -webkit-mask: var(--mask-image) 50% 50% / var(--size) var(--size) no-repeat;
  mask: var(--mask-image) 50% 50% / var(--size) var(--size) no-repeat;
  container-type: inline-size;
}

.am-complimentary {
  position: absolute;
  inset: 0;
  opacity: calc(var(--active, 0) * 0.42);
  transition: opacity 0.25s;
  background: hsl(0 0% 0% / 0.14);
  container-type: inline-size;
  -webkit-mask:
    var(--mask-image) calc(50% - (var(--spread) * 1)) 50% / var(--size) var(--size) no-repeat,
    var(--mask-image) calc(50% - (var(--spread) * 2)) 50% / var(--size) var(--size) no-repeat,
    var(--mask-image) calc(50% - (var(--spread) * 3)) 50% / var(--size) var(--size) no-repeat,
    var(--mask-image) calc(50% - (var(--spread) * 4)) 50% / var(--size) var(--size) no-repeat,
    var(--mask-image) calc(50% - (var(--spread) * 5)) 50% / var(--size) var(--size) no-repeat,
    var(--mask-image) calc(50% + (var(--spread) * 1)) 50% / var(--size) var(--size) no-repeat,
    var(--mask-image) calc(50% + (var(--spread) * 2)) 50% / var(--size) var(--size) no-repeat,
    var(--mask-image) calc(50% + (var(--spread) * 3)) 50% / var(--size) var(--size) no-repeat,
    var(--mask-image) calc(50% + (var(--spread) * 4)) 50% / var(--size) var(--size) no-repeat,
    var(--mask-image) calc(50% + (var(--spread) * 5)) 50% / var(--size) var(--size) no-repeat;
  mask:
    var(--mask-image) calc(50% - (var(--spread) * 1)) 50% / var(--size) var(--size) no-repeat,
    var(--mask-image) calc(50% - (var(--spread) * 2)) 50% / var(--size) var(--size) no-repeat,
    var(--mask-image) calc(50% - (var(--spread) * 3)) 50% / var(--size) var(--size) no-repeat,
    var(--mask-image) calc(50% - (var(--spread) * 4)) 50% / var(--size) var(--size) no-repeat,
    var(--mask-image) calc(50% - (var(--spread) * 5)) 50% / var(--size) var(--size) no-repeat,
    var(--mask-image) calc(50% + (var(--spread) * 1)) 50% / var(--size) var(--size) no-repeat,
    var(--mask-image) calc(50% + (var(--spread) * 2)) 50% / var(--size) var(--size) no-repeat,
    var(--mask-image) calc(50% + (var(--spread) * 3)) 50% / var(--size) var(--size) no-repeat,
    var(--mask-image) calc(50% + (var(--spread) * 4)) 50% / var(--size) var(--size) no-repeat,
    var(--mask-image) calc(50% + (var(--spread) * 5)) 50% / var(--size) var(--size) no-repeat;
}

:where(.am-primary, .am-complimentary)::after {
  --distance: calc(100cqi + 100%);
  content: "";
  height: calc(var(--size) * 4);
  aspect-ratio: 1;
  position: absolute;
  left: 0%;
  top: 50%;
  translate: -50% -50%;
  background: radial-gradient(hsl(0 0% 0%), transparent);
  animation: am-fly-by calc((2 - var(--active, 0)) * 1s) infinite linear;
}

@keyframes am-fly-by {
  0% {
    translate: -100% -50%;
  }
  100% {
    translate: var(--distance) -50%;
  }
}

.am-label {
  position: relative;
  z-index: 3;
  padding: 0 1.25rem 0 calc(58px + 1.15rem);
  display: grid;
  place-items: center;
  height: 100%;
  white-space: nowrap;
  color: #ffffff;
  transition: color 0.22s ease, transform 0.22s ease;
}

.anti-metal-btn:is(:hover, :focus-visible, .is-morphing, .is-ready) .am-label {
  color: #090b06;
  font-weight: 600;
}

/* Compact Navbar & Floating Pill Variant (40px height) */
.anti-metal-btn--sm {
  height: 40px;
  font-size: 13.5px;
  border-radius: 9px;
}

.anti-metal-btn--sm .am-slab {
  --size: 22px;
  --spread: 20px;
  width: 44px;
  border-radius: 6px;
}

.anti-metal-btn--sm:is(:hover, :focus-visible, .is-morphing, .is-ready) .am-slab {
  width: 100%;
}

.anti-metal-btn--sm .am-label {
  padding: 0 1rem 0 calc(44px + 0.9rem);
}

/* 2. Exact Scoped Framer GalaxyCursorButton */
.galaxy-tilt-wrap {
  position: relative;
  display: inline-flex;
  transform: perspective(900px) rotateX(var(--tilt-x, 0deg)) rotateY(var(--tilt-y, 0deg));
  transform-style: preserve-3d;
  will-change: transform;
}

.galaxy-btn {
  position: relative;
  height: 52px;
  padding: 0 28px;
  border-radius: 999px;
  background: rgb(18, 18, 18);
  border: 2.5px solid rgb(166, 166, 166);
  box-shadow:
    rgb(120, 120, 120) 0px 20px 60px -20px,
    rgba(0, 0, 0, 0.6) 0px 8px 24px -8px,
    inset 0 0 0 1px rgba(255, 255, 255, 0.05);
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: #f4f4f6;
  cursor: pointer;
  user-select: none;
  isolation: isolate;
  transition: border-color 0.22s ease, box-shadow 0.22s ease;
}

.galaxy-btn:hover,
.galaxy-btn:focus-visible {
  border-color: rgb(228, 228, 228);
  box-shadow:
    rgb(165, 165, 165) 0px 22px 64px -18px,
    rgba(0, 0, 0, 0.72) 0px 10px 28px -8px,
    inset 0 0 0 1px rgba(255, 255, 255, 0.14);
}

.galaxy-canvas-inner {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
  border-radius: inherit;
}

.galaxy-spotlight {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  z-index: 2;
  pointer-events: none;
  mix-blend-mode: screen;
  opacity: 0;
  transition: opacity 0.22s ease;
  background: radial-gradient(
    180px 108px at var(--mx, 50%) var(--my, 30%),
    rgba(255, 255, 255, 0.35) 0%,
    rgba(255, 255, 255, 0.105) 45%,
    rgba(255, 255, 255, 0) 75%
  );
}

.galaxy-btn:hover .galaxy-spotlight,
.galaxy-btn:focus-visible .galaxy-spotlight {
  opacity: 1;
}

.galaxy-content {
  position: relative;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: 'Geist Pixel', 'Geist Pixel Variable', var(--font-mono);
  font-size: 13.5px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
  color: #f4f4f6;
  text-shadow: 0 1px 8px rgba(8, 8, 12, 0.95);
}

.galaxy-canvas-burst {
  position: absolute;
  inset: -140px;
  width: calc(100% + 280px);
  height: calc(100% + 280px);
  pointer-events: none;
  z-index: 20;
}

/* Tactile Win32 Keycaps */
.kbd {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  line-height: 1.2;
  color: var(--text-primary);
  background-color: var(--bg-raised);
  border: 1px solid var(--rule-card);
  border-bottom: 2px solid rgba(238, 240, 245, 0.20);
  border-radius: var(--r-tag);
  padding: 3px 8px;
}

.kbd-lg {
  font-size: 0.8125rem;
  min-width: 36px;
  padding: 6px 12px;
}

.inline-code {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  color: var(--text-primary);
  background: var(--bg-raised);
  border: 1px solid var(--rule-subtle);
  padding: 2px 6px;
  border-radius: 4px;
}

/* ===================================================================
   Hero & Above-the-Fold Interactive Stage
   =================================================================== */
.hero {
  padding-top: 20px;
  padding-bottom: 56px;
}

.hero-header {
  text-align: center;
  max-width: 680px;
  margin-inline: auto;
  margin-bottom: 24px;
}

.hero-h1 {
  font-family: var(--font-display);
  font-size: clamp(2.25rem, 1.5rem + 2.8vw, 3.375rem);
  font-weight: 500;
  line-height: 1.06;
  letter-spacing: -0.025em;
  text-wrap: balance;
  color: var(--text-primary);
  margin-bottom: 16px;
  transform: translate3d(0, var(--hero-lift-y, 0px), 0);
  opacity: var(--hero-lift-alpha, 1);
  transition: opacity 0.12s linear;
}

.ld-word {
  display: inline-block;
  white-space: nowrap;
}

.ld-char {
  display: inline-block;
  opacity: 0;
  transform: translate3d(0, -22px, 0) rotate(var(--char-rot, 0deg));
  transition:
    transform 560ms cubic-bezier(0.34, 1.56, 0.64, 1) var(--char-delay, 0ms),
    opacity 360ms ease var(--char-delay, 0ms);
  will-change: transform, opacity;
}

.is-dropped .ld-char {
  opacity: 1;
  transform: translate3d(0, 0, 0) rotate(0deg);
}

.ld-scroll-heading .ld-char {
  transition:
    transform 380ms cubic-bezier(0.34, 1.56, 0.64, 1) var(--char-delay, 0ms),
    opacity 280ms ease var(--char-delay, 0ms);
}

.hero-desc {
  font-size: 1rem;
  line-height: 1.5;
  color: var(--text-secondary);
  max-width: 56ch;
  margin-inline: auto;
  margin-bottom: 20px;
  text-wrap: pretty;
}

.hero-cta-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.hero-meta {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.01em;
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
}

/* SmartScreen / VirusTotal trust note below hero CTA */
.hero-trust-note {
  margin-top: 0.6rem;
  font-size: 0.72rem;
  line-height: 1.5;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 0.35rem;
  flex-wrap: wrap;
}
.trust-vt-link {
  color: var(--text-muted);
  text-decoration: underline;
  text-underline-offset: 2px;
  text-decoration-style: dashed;
  transition: color 0.15s ease;
}
.trust-vt-link:hover {
  color: var(--text-secondary);
}

/* Windows 11 Framed Interactive Presentation Stage */
.stage-wrapper {
  max-width: 1080px;
  min-width: 0;
  margin-inline: auto;
}

.stage-window {
  background-color: var(--bg-deep);
  border: 1px solid var(--rule-card);
  border-radius: var(--r-window);
  min-width: 0;
  overflow: hidden;
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.48);
}

.stage-titlebar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-block-size: 40px;
  padding-inline: 16px 0;
  background-color: var(--bg-card);
  border-bottom: 1px solid var(--rule-subtle);
}

.win-titlebar-left {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.win-titlebar-icon {
  display: block;
  width: 16px;
  height: 16px;
  aspect-ratio: 1;
  flex-shrink: 0;
}

.win-titlebar-text {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.win-titlebar-meta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
}

.stage-fps {
  color: var(--pos-fg);
}

.stage-hand-readout strong {
  color: var(--text-primary);
  font-weight: 500;
}

/* Authentic Windows 11 Caption Controls */
.win11-controls {
  display: inline-flex;
  align-items: stretch;
  height: 40px;
  flex-shrink: 0;
}

.win11-btn {
  width: 44px;
  height: 40px;
  border: none;
  background: transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  cursor: pointer;
  transition-property: background-color, color;
  transition-duration: 140ms;
  transition-timing-function: var(--ease);
}

.win11-btn:hover {
  background-color: rgba(238, 240, 245, 0.08);
  color: var(--text-primary);
}

.win11-close:hover {
  background-color: #c42b1c;
  color: #ffffff;
}

.stage-viewport {
  height: 396px;
  position: relative;
  background-color: var(--bg-deep);
  background-image: radial-gradient(rgba(238, 240, 245, 0.08) 1.25px, transparent 1.25px);
  background-size: 24px 24px;
  cursor: crosshair;
  overflow: hidden;
  user-select: none;
}

.stage-canvas {
  width: 100%;
  height: 100%;
  display: block;
}

.stage-hint {
  position: absolute;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  background-color: rgba(17, 20, 28, 0.90);
  border: 1px solid var(--rule-subtle);
  color: var(--text-muted);
  font-size: 0.75rem;
  padding: 4px 12px;
  border-radius: var(--r-tag);
  pointer-events: none;
  white-space: nowrap;
  z-index: 5;
}

.stage-hud {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 4px;
  background-color: rgba(17, 20, 28, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 4px;
  border-radius: 12px;
  border: 1px solid var(--rule-card);
  z-index: 10;
}

.hud-btn {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  min-block-size: 32px;
  padding: 6px 12px;
  border-radius: var(--r-control);
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 500;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  transition-property: background-color, color, transform;
  transition-duration: 140ms;
  transition-timing-function: var(--ease);
}

.hud-btn:hover {
  background-color: var(--bg-raised);
  color: var(--text-primary);
}

.hud-btn:active {
  transform: scale(0.98);
}

.hud-btn.active {
  background-color: var(--cta-bg);
  color: var(--cta-fg);
  font-weight: 600;
}

.hud-btn.active::after {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--accent-dark);
}

.hud-divider {
  width: 1px;
  height: 16px;
  background-color: var(--rule-subtle);
  margin-inline: 4px;
}

/* ===================================================================
   Shared Section Framing
   =================================================================== */
.section {
  padding-block: 80px;
}

.section-head {
  text-align: center;
  max-width: 640px;
  margin-inline: auto;
  margin-bottom: 40px;
}

.section-eyebrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: var(--accent-ink);
  margin-bottom: 8px;
}

.section-h2 {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 1.35rem + 1.5vw, 2.5rem);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.15;
  text-wrap: balance;
  color: var(--text-primary);
  margin-bottom: 12px;
}

.section-sub {
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.5;
  text-wrap: pretty;
}

/* ===================================================================
   Architecture 3-Card Row (Non-Redundant Engineering Summary)
   =================================================================== */
.arch-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.arch-card {
  background-color: var(--bg-card);
  border: 1px solid var(--rule-card);
  border-radius: var(--r-card);
  padding: 24px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  transition-property: border-color, background-color;
  transition-duration: 160ms;
  transition-timing-function: var(--ease);
}

.arch-card:hover {
  border-color: var(--rule-hover);
}

.arch-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.arch-kicker svg {
  color: var(--accent-ink);
  flex-shrink: 0;
}

.arch-h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 500;
  letter-spacing: -0.015em;
  line-height: 1.25;
  color: var(--text-primary);
  margin-bottom: 8px;
  text-wrap: balance;
}

.arch-p {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 20px;
  text-wrap: pretty;
}

.arch-panel {
  margin-top: auto;
  border-radius: var(--r-control);
  background-color: var(--bg-deep);
  border: 1px solid var(--rule-subtle);
  padding: 16px;
}

/* Card 1: Broadcast & App Compatibility Chips */
.app-compat-list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.app-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-primary);
  background-color: var(--bg-card);
  border: 1px solid var(--rule-card);
  border-radius: var(--r-tag);
  padding: 6px 10px;
}

/* Card 2: Tactile Keycaps */
.shortcut-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.shortcut-pair {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.shortcut-keys {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.kbd-plus {
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 0.75rem;
}

.shortcut-desc {
  font-size: 0.75rem;
  color: var(--text-secondary);
  text-align: end;
}

/* Card 3: Native Win32 Specs (No Progress Bars) */
.footprint-specs {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footprint-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-variant-numeric: tabular-nums;
}

.footprint-row dt {
  color: var(--text-muted);
}

.footprint-row dd {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--text-primary);
  font-weight: 500;
}

/* ===================================================================
   Shared Bento Grid (FAQ)
   =================================================================== */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 16px;
}

.bento-card {
  background-color: var(--bg-card);
  border: 1px solid var(--rule-card);
  border-radius: var(--r-card);
  padding: 24px;
  position: relative;
  min-width: 0;
  display: flex;
  flex-direction: column;
  transition-property: border-color, background-color;
  transition-duration: 160ms;
  transition-timing-function: var(--ease);
}

.bento-card:hover {
  border-color: var(--rule-hover);
}

.span-6 { grid-column: span 6; }

.bento-h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 500;
  letter-spacing: -0.015em;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.bento-p {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.5;
  max-width: 58ch;
  text-wrap: pretty;
}

.mb-0 {
  margin-bottom: 0;
}

/* ===================================================================
   36 Hands Catalog Section
   =================================================================== */
.gallery-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}

.filter-tab {
  min-block-size: 36px;
  padding: 6px 16px;
  border-radius: var(--r-control);
  background-color: var(--bg-card);
  border: 1px solid var(--rule-card);
  color: var(--text-secondary);
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition-property: background-color, border-color, color, transform;
  transition-duration: 150ms;
  transition-timing-function: var(--ease);
}

.filter-tab:hover {
  background-color: var(--bg-raised);
  color: var(--text-primary);
  border-color: var(--rule-hover);
}

.filter-tab:active {
  transform: scale(0.98);
}

.filter-tab.active {
  background-color: var(--cta-bg);
  color: var(--cta-fg);
  border-color: var(--cta-bg);
  font-weight: 600;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(136px, 1fr));
  gap: 12px;
}

.hand-tile {
  position: relative;
  background-color: var(--bg-card);
  border: 1px solid var(--rule-card);
  border-radius: var(--r-card);
  padding: 16px 12px;
  text-align: center;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  color: inherit;
  font-family: inherit;
  transition-property: background-color, border-color, transform;
  transition-duration: 150ms;
  transition-timing-function: var(--ease);
}

.hand-tile:hover {
  background-color: var(--bg-raised);
  border-color: var(--rule-hover);
}

.hand-tile:active {
  transform: scale(0.98);
}

.hand-tile.selected {
  background-color: var(--accent-soft);
  border-color: var(--accent-bd);
}

.hand-tile.selected::after {
  content: '';
  position: absolute;
  top: 10px;
  right: 10px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: var(--accent);
}

.hand-tile picture,
.hand-tile img,
.hand-tile-vector {
  width: 72px;
  height: 72px;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hand-tile img {
  object-fit: contain;
  margin-bottom: 0;
}

.hand-tile-vector {
  color: var(--text-primary);
}

.hand-tile-name {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  width: 100%;
}

.hand-tile-sub {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 4px;
}

/* ===================================================================
   Comparison Table (Subtle Semantic Green/Red Preserved)
   =================================================================== */
.table-wrap {
  background-color: var(--bg-card);
  border: 1px solid var(--rule-card);
  border-radius: var(--r-card);
  max-width: 100%;
  min-width: 0;
  overflow-x: auto;
}

.spec-table {
  width: 100%;
  border-collapse: collapse;
  text-align: start;
}

.spec-table th,
.spec-table td {
  padding: 16px 20px;
  border-bottom: 1px solid var(--rule-subtle);
  font-size: 0.875rem;
}

.spec-table th {
  background-color: var(--bg-raised);
  font-family: var(--font-display);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
  text-wrap: balance;
}

.spec-table tr:last-child td {
  border-bottom: none;
}

.spec-table td:first-child {
  font-weight: 500;
  color: var(--text-primary);
}

.spec-table td {
  color: var(--text-secondary);
}

.status-badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: var(--r-tag);
  font-size: 0.75rem;
  font-weight: 500;
  line-height: 1.3;
}

.status-pro {
  background-color: var(--pos-bg);
  color: var(--pos-fg);
  border: 1px solid var(--pos-bd);
}

.status-con {
  background-color: var(--neg-bg);
  color: var(--neg-fg);
  border: 1px solid var(--neg-bd);
}

/* ===================================================================
   Download Callout
   =================================================================== */
.download-box {
  background-color: var(--bg-card);
  border: 1px solid var(--rule-card);
  border-radius: var(--r-card);
  padding: 48px 32px;
  text-align: center;
}

.download-h2 {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 1.35rem + 1.5vw, 2.5rem);
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  margin-bottom: 12px;
  text-wrap: balance;
}

.download-p {
  font-size: 1rem;
  color: var(--text-secondary);
  max-width: 52ch;
  margin-inline: auto;
  margin-bottom: 24px;
  text-wrap: pretty;
}

.download-meta {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
}

/* ===================================================================
   Footer
   =================================================================== */
.footer {
  padding-top: 48px;
  padding-bottom: 96px;
  border-top: 1px solid var(--rule-subtle);
  font-size: 0.875rem;
  color: var(--text-muted);
}

.footer-grid {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 32px;
  margin-bottom: 32px;
}

.footer-brand-col {
  max-width: 340px;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1rem;
  color: var(--text-primary);
  margin-bottom: 12px;
}

.footer-tagline {
  line-height: 1.5;
  color: var(--text-secondary);
}

.footer-col h4 {
  font-family: var(--font-display);
  color: var(--text-primary);
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 12px;
}

.footer-col ul {
  list-style: none;
}

.footer-col li {
  margin-bottom: 8px;
}

.footer-col a,
.footer-copy a {
  color: var(--text-secondary);
  text-decoration: none;
  transition-property: color;
  transition-duration: 150ms;
  transition-timing-function: var(--ease);
}

.footer-col a:hover,
.footer-copy a:hover {
  color: var(--text-primary);
}

.footer-copy {
  border-top: 1px solid var(--rule-subtle);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 0.75rem;
  font-variant-numeric: tabular-nums;
}

/* Layer 4: Giant Interactive Dotmark Footer Wordmark */
.dotmark-section {
  margin-top: 40px;
  padding-top: 28px;
  border-top: 1px solid var(--rule-subtle);
  text-align: center;
}

.dotmark-creator-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px 14px;
  margin-bottom: 14px;
  position: relative;
  z-index: 10;
}

.dotmark-kicker {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  color: var(--text-muted);
  margin-bottom: 0;
}

.creator-ig-pill,
.creator-ig-pill:link,
.creator-ig-pill:visited,
.creator-ig-pill:active {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  padding: 6px 14px;
  color: #F4F4F6 !important;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  line-height: 1;
  text-decoration: none !important;
  cursor: pointer;
  position: relative;
  z-index: 10;
  pointer-events: auto;
  transition: border-color 180ms var(--ease), transform 180ms var(--ease), background-color 180ms var(--ease);
}

.creator-ig-icon,
.creator-ig-arrow {
  color: #F4F4F6;
  transition: color 180ms var(--ease);
  flex-shrink: 0;
}

.creator-ig-pill:hover,
.creator-ig-pill:focus-visible {
  border-color: hsl(75 100% 65%);
  background: rgba(255, 255, 255, 0.06);
  transform: translateY(-1px);
  text-decoration: none !important;
}

.creator-ig-pill:hover .creator-ig-icon,
.creator-ig-pill:hover .creator-ig-arrow,
.creator-ig-pill:focus-visible .creator-ig-icon,
.creator-ig-pill:focus-visible .creator-ig-arrow {
  color: hsl(75 100% 65%);
}

.dotmark-canvas-wrap {
  width: 100%;
  height: clamp(140px, 20vw, 240px);
  position: relative;
}

.dotmark-canvas {
  width: 100%;
  height: 100%;
  display: block;
  touch-action: pan-y;
  cursor: crosshair;
}

/* ===================================================================
   Windows-Native Quick-Start Modal (<dialog>)
   =================================================================== */
.win-modal {
  margin: auto;
  border: 1px solid var(--rule-card);
  border-radius: 14px;
  background-color: var(--bg-card);
  color: var(--text-primary);
  width: min(588px, calc(100vw - 24px));
  max-height: calc(100dvh - 32px);
  padding: 0;
  overflow: hidden;
  box-shadow: 0 28px 64px rgba(0, 0, 0, 0.72);
}

.win-modal::backdrop {
  background-color: rgba(7, 8, 13, 0.78);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.win-modal-shell {
  display: flex;
  flex-direction: column;
}

.win-modal-titlebar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-block-size: 40px;
  padding-inline: 16px 0;
  background-color: var(--bg-raised);
  border-bottom: 1px solid var(--rule-subtle);
}

.win-modal-body {
  padding: 24px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.modal-head-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.modal-heading {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.modal-sub {
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.modal-version-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-primary);
  background-color: var(--bg-deep);
  border: 1px solid var(--rule-card);
  border-radius: 999px;
  padding: 6px 12px;
  font-variant-numeric: tabular-nums;
}

.modal-steps {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.modal-steps li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.step-num {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background-color: var(--bg-raised);
  border: 1px solid var(--rule-card);
  color: var(--accent-ink);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}

.modal-steps li > div > strong {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: 2px;
}

.modal-steps p {
  font-size: 0.8125rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.modal-steps p strong {
  color: var(--text-primary);
  font-weight: 600;
}

.checksum-box {
  background-color: var(--bg-deep);
  border: 1px solid var(--rule-subtle);
  border-radius: var(--r-control);
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.checksum-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.checksum-label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
}

.checksum-code {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-primary);
  word-break: break-all;
  line-height: 1.45;
  background-color: var(--bg-card);
  border: 1px solid var(--rule-subtle);
  border-radius: 6px;
  padding: 8px 10px;
}

.checksum-cli {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
}

.modal-footer-wrap {
  padding-top: 12px;
  border-top: 1px solid var(--rule-subtle);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.modal-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 0.8125rem;
}

.modal-creator-line {
  font-size: 0.75rem;
  color: var(--text-muted);
  line-height: 1.45;
}

.modal-creator-ig,
.modal-creator-ig:link,
.modal-creator-ig:visited,
.modal-creator-ig:active {
  color: #E4E7EF !important;
  text-decoration: none !important;
  font-weight: 500;
  transition: color 180ms var(--ease);
  position: relative;
  z-index: 10;
  pointer-events: auto;
}

.modal-creator-ig:hover,
.modal-creator-ig:focus-visible {
  color: hsl(75 100% 65%) !important;
  text-decoration: none !important;
}

.modal-fallback-label {
  color: var(--text-muted);
}

.modal-fallback-actions {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text-muted);
}

.modal-link-btn {
  background: none;
  border: none;
  padding: 0;
  font-family: inherit;
  font-size: inherit;
  color: var(--text-primary);
  font-weight: 500;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.modal-link-btn:hover {
  color: var(--accent-ink);
}

.modal-link {
  color: var(--accent-ink);
  text-decoration: none;
  font-weight: 500;
}

.modal-link:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ===================================================================
   Bottom-Right Stacked Toast Notifications (Gallery-to-Stage Sync)
   =================================================================== */
.toast-stack {
  position: fixed;
  right: 24px;
  bottom: 20px;
  z-index: 120;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
  max-width: calc(100vw - 32px);
  pointer-events: none;
}

.stage-toast {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  max-width: 100%;
  padding: 9px 10px 9px 14px;
  background-color: rgba(17, 20, 28, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--rule-card);
  border-radius: 12px;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.52);
  font-size: 0.8125rem;
  color: var(--text-primary);
  opacity: 0;
  transform: translateY(10px) scale(0.98);
  pointer-events: auto;
  transition-property: opacity, transform;
  transition-duration: 200ms;
  transition-timing-function: var(--ease);
}

.stage-toast.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.toast-message {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.toast-sep {
  color: var(--text-muted);
}

.toast-jump-btn {
  background: var(--bg-raised);
  border: 1px solid var(--rule-card);
  border-radius: var(--r-tag);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 500;
  padding: 4px 10px;
  cursor: pointer;
  white-space: nowrap;
  transition-property: background-color, border-color;
  transition-duration: 140ms;
  transition-timing-function: var(--ease);
}

.toast-jump-btn:hover {
  background-color: var(--bg-hover);
  border-color: var(--rule-hover);
}

.toast-dismiss-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  width: 24px;
  height: 24px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.toast-dismiss-btn:hover {
  background-color: var(--bg-raised);
  color: var(--text-primary);
}

/* ===================================================================
   Scroll-Triggered Compact CTA Pill
   =================================================================== */
.floating-cta {
  position: fixed;
  left: 50%;
  bottom: 20px;
  transform: translate(-50%, 16px);
  z-index: 110;
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 8px 8px 8px 16px;
  background-color: rgba(17, 20, 28, 0.94);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--rule-card);
  border-radius: 999px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.56);
  opacity: 0;
  pointer-events: none;
  transition-property: opacity, transform;
  transition-duration: 220ms;
  transition-timing-function: var(--ease);
}

.floating-cta.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
  pointer-events: auto;
}

.floating-cta-meta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-secondary);
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.floating-cta .anti-metal-btn--sm,
.floating-cta .anti-metal-btn--sm .am-slab,
.floating-cta .anti-metal-btn--sm .am-press-wrap {
  border-radius: 999px;
}

/* ===================================================================
   Responsive & Reduced Motion
   =================================================================== */
@media (max-width: 1024px) {
  .arch-grid {
    grid-template-columns: 1fr;
  }

  .span-6 {
    grid-column: span 12;
  }
}

@media (max-width: 768px) {
  :root {
    --gutter: 16px;
  }

  .nav-menu,
  .win-titlebar-meta {
    display: none;
  }

  .stage-viewport {
    height: 360px;
  }

  .stage-hint {
    display: none;
  }

  .stage-hud {
    width: calc(100% - 24px);
    max-width: 320px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 4px;
    bottom: 12px;
  }

  .hud-divider {
    display: none;
  }

  .hud-btn {
    justify-content: center;
    padding: 6px 10px;
    font-size: 0.75rem;
  }

  .section {
    padding-block: 48px;
  }

  .gallery-grid {
    grid-template-columns: repeat(auto-fill, minmax(112px, 1fr));
  }

  .toast-stack {
    left: 16px;
    right: 16px;
    bottom: 78px;
    align-items: stretch;
  }

  .stage-toast {
    justify-content: space-between;
  }
}

@media (max-width: 520px) {
  .navbar {
    gap: 8px;
  }

  .brand {
    gap: 8px;
  }

  .brand-name {
    font-size: 0.875rem;
  }

  .brand-version {
    display: none;
  }

  .nav-actions {
    gap: 8px;
  }

  .nav-link-quiet {
    font-size: 0.8125rem;
  }

  .nav-actions .anti-metal-btn--sm {
    height: 34px;
    font-size: 12px;
  }

  .nav-actions .anti-metal-btn--sm .am-slab {
    width: 34px;
    --size: 18px;
  }

  .nav-actions .anti-metal-btn--sm .am-label {
    padding: 0 0.75rem 0 calc(34px + 0.65rem);
  }

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

  .download-box {
    padding: 32px 16px;
  }

  .shortcut-pair {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }

  .shortcut-desc {
    text-align: start;
  }

  .floating-cta {
    max-width: calc(100vw - 24px);
    gap: 10px;
    padding: 6px 6px 6px 12px;
  }
}

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

  .hero-h1 {
    transform: none !important;
    opacity: 1 !important;
  }

  .ld-char {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }

  :where(.am-primary, .am-complimentary)::after {
    animation: none !important;
  }

  .btn,
  .anti-metal-btn,
  .am-slab,
  .am-complimentary,
  .am-label,
  .am-press-wrap,
  .galaxy-btn,
  .galaxy-spotlight,
  .hud-btn,
  .filter-tab,
  .hand-tile,
  .stage-toast,
  .floating-cta,
  .creator-ig-pill {
    transition-property: color, background-color, border-color, opacity;
  }
}
