/*
  Theme: cold light zinc + single cobalt accent (page-wide lock).
  Why: Fluxon/Typatro UIs are dark; a cool zinc frame makes product shots pop,
  cobalt reads blueprint/maker without newsprint red or AI-purple.
  Dials (preserve layout): VARIANCE 7 / MOTION 6 / DENSITY 5.
*/

:root {
  color-scheme: light;
  --paper: #f4f4f5;
  --paper-2: #e4e4e7;
  --ink: #18181b;
  --ink-soft: #52525b;
  --line: #18181b;
  --hazard: #1d4ed8;
  --hazard-ink: #f4f4f5;
  --chip-mark-bg: #18181b;
  --chip-mark-fg: #f4f4f5;
  --noise-opacity: 0.07;
  --noise-blend: multiply;
  --theme-color: #f4f4f5;
  --font-display: "Archivo Black", Impact, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;
  --header-h: 3.5rem;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

html[data-theme="dark"] {
  color-scheme: dark;
  --paper: #09090b;
  --paper-2: #18181b;
  --ink: #f4f4f5;
  --ink-soft: #a1a1aa;
  --line: #e4e4e7;
  --hazard: #3b82f6;
  --hazard-ink: #09090b;
  --chip-mark-bg: #27272a;
  --chip-mark-fg: #f4f4f5;
  --noise-opacity: 0.12;
  --noise-blend: soft-light;
  --theme-color: #09090b;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-mono);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.45;
  min-height: 100dvh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-transform: uppercase;
}

.page {
  overflow-x: hidden;
  width: 100%;
  max-width: 100%;
}

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

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

.skip-link {
  position: fixed;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 100;
  padding: 0.7rem 0.9rem;
  background: var(--ink);
  color: var(--paper);
  transform: translateY(-150%);
  transition: transform 0.2s ease;
}

.skip-link:focus {
  transform: translateY(0);
}

:focus-visible {
  outline: 3px solid var(--hazard);
  outline-offset: 4px;
}

#main-content:focus {
  outline: none;
}

section[id] {
  scroll-margin-top: calc(var(--header-h) + 1rem);
}

p,
.hero-line,
.hero-bio,
.scrub-text,
.pin-copy,
.stack-tagline,
.stack-card-body p,
.stack-features li,
.stack-license,
.product-desc,
.accordion-body p,
.telem-tag,
.career-head p,
.exp-body li,
.edu-degree {
  text-transform: none;
  letter-spacing: 0;
}

/* Analog grain */
.noise {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 80;
  opacity: var(--noise-opacity);
  mix-blend-mode: var(--noise-blend);
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.crosshair {
  position: fixed;
  z-index: 70;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--ink);
  opacity: 0.35;
  pointer-events: none;
}

.crosshair-tl { top: 4.25rem; left: 0.65rem; }
.crosshair-tr { top: 4.25rem; right: 0.65rem; }
.crosshair-bl { bottom: 0.65rem; left: 0.65rem; }
.crosshair-br { bottom: 0.65rem; right: 0.65rem; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
  padding: 0 clamp(1rem, 3vw, 2rem);
  background: var(--paper);
  border-bottom: 2px solid var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-family: var(--font-display);
  font-size: clamp(0.78rem, 1.6vw, 1rem);
  letter-spacing: -0.03em;
}

.brand-mark {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  width: 1.45rem;
  height: 1.45rem;
  color: var(--hazard);
  line-height: 0;
}

.brand-monogram {
  width: 100%;
  height: 100%;
  display: block;
}

.brand-monogram__ribbon {
  pointer-events: none;
}

.brand-monogram__glyph {
  fill: var(--paper);
  stroke: none;
}

.brand-name {
  letter-spacing: -0.03em;
}

.brand:hover .brand-mark {
  color: var(--ink);
}

.header-end {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

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

.site-nav a {
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  font-weight: 500;
}

.site-nav a:hover {
  color: var(--hazard);
}

.theme-toggle {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  min-width: 44px;
  min-height: 44px;
  padding: 0;
  border: 2px solid var(--line);
  background: var(--paper);
  color: var(--ink);
  cursor: pointer;
  flex-shrink: 0;
  overflow: hidden;
  transition:
    background 0.15s ease,
    color 0.15s ease,
    border-color 0.15s ease,
    transform 0.12s ease,
    filter 0.12s ease;
}

.theme-toggle.has-theme-shader {
  background: transparent;
}

html[data-theme="dark"] .theme-toggle:not(.has-theme-shader) {
  background: var(--paper-2);
}

.theme-toggle:hover {
  border-color: var(--hazard);
  transform: scale(1.06);
  filter: brightness(1.08);
}

.theme-toggle:active {
  transform: scale(0.97);
  filter: brightness(0.96);
}

.theme-toggle:focus-visible {
  outline: 3px solid var(--hazard);
  outline-offset: 3px;
}

/* LiquidMetal diamond plate — absolute fill behind the glyph */
.theme-toggle__shader {
  position: absolute;
  inset: 0;
  display: none;
  line-height: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}

.theme-toggle.has-theme-shader .theme-toggle__shader {
  display: block;
}

.theme-toggle__shader canvas {
  display: block;
  width: 100% !important;
  height: 100% !important;
}

/* Crisp vector sun/moon — destination icon, centered over metal */
.theme-toggle__glyph {
  position: relative;
  z-index: 1;
  width: 1.125rem; /* 18px — reads instantly, leaves metal peek */
  height: 1.125rem;
  display: block;
  pointer-events: none;
  flex-shrink: 0;
  color: #0a0a0a;
  /* Hard halo so the glyph stays crisp on busy metal highlights/shadows */
  stroke: #f4f4f5;
  stroke-width: 1.35px;
  paint-order: stroke fill;
  filter: none;
}

/* No-WebGL fallback: same glyphs, solid button chrome (hazard hover) */
.theme-toggle:not(.has-theme-shader) .theme-toggle__glyph {
  color: var(--ink);
  stroke: none;
  filter: none;
}

.theme-toggle:not(.has-theme-shader):hover {
  background: var(--hazard);
  color: var(--hazard-ink);
  filter: none;
}

.theme-toggle:not(.has-theme-shader):hover .theme-toggle__glyph {
  color: inherit;
}

/* Destination icon: light → moon, dark → sun */
.theme-toggle .icon-sun {
  display: none;
}

.theme-toggle .icon-moon {
  display: block;
}

html[data-theme="dark"] .theme-toggle .icon-sun {
  display: block;
}

html[data-theme="dark"] .theme-toggle .icon-moon {
  display: none;
}

@media (prefers-reduced-motion: reduce) {
  .theme-toggle {
    transition: none;
  }

  .theme-toggle:hover,
  .theme-toggle:active {
    transform: none;
  }
}

.site-nav a:not(.micro-btn) {
  position: relative;
  padding-block: 0.35rem;
}

.site-nav a:not(.micro-btn)::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 2px;
  background: var(--hazard);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.2s ease;
}

.site-nav a:hover::after,
.site-nav a.is-active::after {
  transform: scaleX(1);
}

.nav-cta {
  padding: 0.45rem 0.7rem;
  background: var(--ink);
  color: var(--paper) !important;
}

.nav-cta:hover {
  background: var(--hazard) !important;
  color: var(--hazard-ink) !important;
}

.menu-toggle {
  display: none;
  width: 2.5rem;
  height: 2.5rem;
  border: 2px solid var(--line);
  background: var(--paper);
  cursor: pointer;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 0.28rem;
}

.menu-toggle span {
  display: block;
  width: 1.1rem;
  height: 2px;
  background: var(--ink);
}

.mobile-nav {
  display: none;
  position: sticky;
  top: var(--header-h);
  z-index: 59;
  flex-direction: column;
  border-bottom: 2px solid var(--line);
  background: var(--paper);
}

.mobile-nav a {
  padding: 0.9rem 1rem;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  border-bottom: 1px solid var(--line);
}

.mobile-nav a:last-child {
  border-bottom: 0;
}

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

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  padding: 0.7rem 1.1rem;
  border: 2px solid var(--line);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
  transition: transform 0.15s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

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

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

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

.btn-ghost {
  background: transparent;
  color: var(--ink);
}

.btn-ghost:hover {
  background: var(--ink);
  color: var(--paper);
}

.btn-xl {
  min-height: 3.25rem;
  padding: 0.9rem 1.4rem;
  font-size: 0.85rem;
}

.btn-sm {
  min-height: 2.25rem;
  padding: 0.4rem 0.75rem;
  font-size: 0.68rem;
}

/* Hero — Editorial Split */
.hero {
  border-bottom: 2px solid var(--line);
  padding: clamp(1.25rem, 3vw, 2rem) clamp(1rem, 3vw, 2rem) clamp(2rem, 4vw, 3rem);
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.5rem;
  margin-bottom: 1.25rem;
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  color: var(--ink-soft);
}

.hero-split {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: start;
}

.hero-kicker {
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  color: var(--hazard);
  margin-bottom: 0.75rem;
  text-transform: uppercase;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(3rem, 8vw, 6.5rem);
  line-height: 0.88;
  letter-spacing: -0.05em;
  max-width: 100%;
  margin-bottom: 1rem;
  overflow: visible;
}

.hero-line {
  max-width: 34rem;
  font-size: clamp(0.95rem, 1.6vw, 1.1rem);
  color: var(--ink-soft);
  margin-bottom: 0.85rem;
  line-height: 1.55;
}

.hero-bio {
  max-width: 34rem;
  font-size: clamp(0.88rem, 1.4vw, 1rem);
  color: var(--ink-soft);
  margin-bottom: 1.35rem;
  line-height: 1.6;
  opacity: 0.92;
}

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

.hero-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  max-width: 34rem;
}

.hero-links a {
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  font-weight: 700;
  transition: color 0.2s ease;
}

.hero-links a:hover {
  color: var(--hazard);
}

.hero-visual {
  min-width: 0;
}

.hero-frame {
  position: relative;
  border: 2px solid var(--line);
  background: var(--ink);
  overflow: hidden;
  max-height: min(52vh, 460px);
}

.hero-frame img {
  width: 100%;
  height: 100%;
  max-height: min(52vh, 460px);
  object-fit: cover;
  object-position: top left;
  filter: contrast(1.08) grayscale(0.15);
}

/* Portrait plate — personal headshot (studio bg follows theme) */
.hero-frame--portrait {
  background: var(--paper);
  aspect-ratio: 4 / 5;
  max-height: min(58vh, 520px);
}

.hero-frame--portrait img {
  max-height: none;
  height: 100%;
  object-fit: cover;
  object-position: center 18%;
  filter: contrast(1.04) saturate(0.96);
}

.hero-frame--portrait .halftone {
  opacity: calc(var(--noise-opacity) * 0.7);
  mix-blend-mode: var(--noise-blend);
}

.halftone {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: var(--noise-opacity);
  mix-blend-mode: var(--noise-blend);
  background-image: radial-gradient(circle, var(--ink) 0.9px, transparent 1.1px);
  background-size: 4px 4px;
}

/* Sections */
.section {
  padding: clamp(4rem, 10vw, 8rem) clamp(1rem, 3vw, 2rem);
  border-bottom: 2px solid var(--line);
}

.section-rule {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 1rem;
  align-items: center;
  margin-bottom: clamp(2rem, 4vw, 3rem);
}

.rule-id {
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  white-space: nowrap;
}

.rule-line {
  height: 2px;
  background: var(--line);
}

.telemetry-head,
.raycast-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(1.5rem, 4vw, 3rem);
  margin-bottom: clamp(2rem, 4vw, 3rem);
  align-items: end;
}

.telemetry-head h2,
.raycast-head h2,
.stack-pin h2,
.cta-title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 6vw, 5rem);
  line-height: 0.9;
  letter-spacing: -0.04em;
}

.scrub-text,
.raycast-head p,
.pin-copy {
  font-size: 1rem;
  color: var(--ink-soft);
  max-width: 36rem;
  line-height: 1.6;
}

/* Dense telemetry grid — visual catalog shelf */
.telemetry-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 2px;
  background: var(--line);
  border: 2px solid var(--line);
  grid-auto-flow: dense;
}

.telem-cell {
  background: var(--paper);
  min-height: 11rem;
  display: flex;
  flex-direction: column;
  transition: background 0.25s ease;
}

.telem-cell:hover {
  background: var(--paper-2);
}

.telem-cell.has-media {
  padding: 0;
}

.telem-cell:not(.has-media) {
  padding: 1.25rem;
}

.telem-media {
  position: relative;
  display: block;
  overflow: hidden;
  background: var(--ink);
  aspect-ratio: 16 / 9;
  border-bottom: 2px solid var(--line);
}

.telem-media.is-empty {
  min-height: 0;
  aspect-ratio: auto;
  border: 0;
}

.telem-media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center center;
  transition: transform 0.7s var(--ease);
}

.telem-cell:hover .telem-media img {
  transform: scale(1.04);
}

.telem-body {
  padding: 1.15rem 1.25rem 1.25rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1rem;
  flex: 1;
}

.telem-cell:not(.has-media) .telem-body {
  padding: 0;
  height: 100%;
}

.telem-cell.is-app {
  grid-column: span 4;
  min-height: 0;
}

.telem-cell.is-plugin {
  grid-column: span 6;
  min-height: 12rem;
}

.telem-top {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.65rem;
  letter-spacing: 0.08em;
}

.telem-status {
  color: var(--hazard);
}

.telem-name {
  font-family: var(--font-display);
  font-size: clamp(1.45rem, 2.6vw, 2rem);
  letter-spacing: -0.03em;
  line-height: 0.95;
  margin: 0.5rem 0;
}

.telem-name a {
  display: inline;
}

.telem-name a:hover {
  color: var(--hazard);
}

.telem-tag {
  text-transform: none;
  color: var(--ink-soft);
  font-size: 0.88rem;
  max-width: 34rem;
  line-height: 1.45;
}

.telem-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

/* Pinned stack / product stages */
.stack-section {
  background: var(--paper-2);
  padding-top: clamp(3rem, 8vw, 6rem);
  padding-bottom: clamp(3rem, 8vw, 6rem);
}

.stack-layout {
  display: grid;
  grid-template-columns: minmax(220px, 0.72fr) minmax(0, 1.55fr);
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: start;
}

.stack-pin {
  position: relative;
}

.pin-kicker {
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  color: var(--hazard);
  margin-bottom: 0.85rem;
}

.stage-jump {
  margin-top: 1.75rem;
  display: grid;
  gap: 2px;
  background: var(--line);
  border: 2px solid var(--line);
}

.stage-jump-link {
  display: grid;
  gap: 0.2rem;
  padding: 0.85rem 0.95rem;
  background: var(--paper);
  transition: background 0.2s ease, color 0.2s ease;
}

.stage-jump-link:hover,
.stage-jump-link.is-active {
  background: var(--ink);
  color: var(--paper);
}

.stage-jump-link.is-active .stage-jump-meta,
.stage-jump-link:hover .stage-jump-meta {
  color: color-mix(in srgb, var(--paper) 70%, transparent);
}

.stage-jump-name {
  font-family: var(--font-display);
  font-size: 1.05rem;
  letter-spacing: -0.02em;
  line-height: 1;
}

.stage-jump-meta {
  font-size: 0.62rem;
  letter-spacing: 0.08em;
  color: var(--ink-soft);
  text-transform: uppercase;
}

.stack-cards {
  display: grid;
  gap: 1.75rem;
}

.stack-card {
  border: 2px solid var(--line);
  background: var(--paper);
  display: grid;
  grid-template-columns: 1fr;
  overflow: hidden;
  will-change: transform, opacity;
  scroll-margin-top: calc(var(--header-h) + 1rem);
}

.stack-card-media {
  position: relative;
  overflow: hidden;
  background: var(--ink);
  min-height: clamp(220px, 38vw, 420px);
  aspect-ratio: 16 / 9;
  border-bottom: 2px solid var(--line);
}

.stack-card-media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center center;
  transition: transform 0.7s var(--ease);
}

.stack-card:hover .stack-card-media img {
  transform: scale(1.03);
}

.stack-card-body {
  padding: clamp(1.25rem, 3vw, 1.85rem);
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) auto;
  gap: 1.25rem 2rem;
  align-items: end;
}

.stack-card-body > div:first-child {
  min-width: 0;
}

.stack-card-body h3 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.5vw, 3.4rem);
  letter-spacing: -0.04em;
  line-height: 0.92;
  margin: 0.45rem 0 0.65rem;
}

.stack-tagline {
  font-size: 1.05rem;
  color: var(--ink);
  font-weight: 500;
  margin-bottom: 0.55rem;
  max-width: 40rem;
}

.stack-card-body p {
  text-transform: none;
  color: var(--ink-soft);
  font-size: 0.92rem;
  max-width: 42rem;
  line-height: 1.55;
}

.stack-features {
  list-style: none;
  margin: 0.7rem 0 0;
  padding: 0;
  max-width: 42rem;
}

.stack-features li {
  position: relative;
  padding-left: 0.9rem;
  font-size: 0.84rem;
  color: var(--ink-soft);
  line-height: 1.5;
  text-transform: none;
  letter-spacing: 0;
}

.stack-features li + li {
  margin-top: 0.28rem;
}

.stack-features li::before {
  content: "—";
  position: absolute;
  left: 0;
  color: var(--hazard);
  font-family: var(--font-mono);
}

.stack-license {
  margin-top: 0.55rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--ink-soft);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.stack-card-body .telem-actions {
  justify-content: flex-end;
  align-self: end;
}

/* Accordion */
.accordion {
  display: flex;
  gap: 2px;
  background: var(--line);
  border: 2px solid var(--line);
  min-height: 300px;
}

.accordion-item {
  background: var(--paper);
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1rem;
  flex: 1;
  transition: flex 0.55s var(--ease), background 0.25s ease, padding 0.35s ease;
  overflow: hidden;
  min-width: 0;
  cursor: pointer;
}

.accordion-item:hover,
.accordion-item.is-open {
  flex: 2.2;
  background: var(--paper-2);
}

.accordion-item:focus-visible {
  outline-offset: -5px;
}

.accordion-item h3 {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2.8vw, 2rem);
  letter-spacing: -0.03em;
  line-height: 0.95;
}

.accordion-meta {
  font-size: 0.65rem;
  letter-spacing: 0.08em;
  color: var(--hazard);
  margin-bottom: 0.5rem;
}

.accordion-body {
  opacity: 0.55;
  transform: translateY(6px);
  transition: opacity 0.35s ease, transform 0.35s ease;
}

.accordion-item:hover .accordion-body,
.accordion-item.is-open .accordion-body {
  opacity: 1;
  transform: translateY(0);
}

.accordion-body p {
  margin-bottom: 1rem;
  color: var(--ink-soft);
  font-size: 0.9rem;
}

.scrub-text .scrub-word {
  display: inline;
  margin-right: 0.28em;
}

.store-note {
  margin-top: 1.5rem;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
}

.store-note a {
  color: var(--hazard);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-transform: none;
}

/* CTA */
.cta-band {
  padding: clamp(5rem, 12vw, 9rem) clamp(1rem, 3vw, 2rem);
  border-bottom: 2px solid var(--line);
  text-align: left;
  background:
    repeating-linear-gradient(
      -45deg,
      transparent,
      transparent 10px,
      color-mix(in srgb, var(--hazard) 8%, transparent) 10px,
      color-mix(in srgb, var(--hazard) 8%, transparent) 20px
    );
}

.cta-kicker {
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  color: var(--hazard);
  margin-bottom: 0.75rem;
}

.cta-title {
  margin-bottom: 1.75rem;
}

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

.cta-email-fallback {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem 0.85rem;
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
}

.cta-email-label {
  color: color-mix(in srgb, var(--ink) 70%, transparent);
}

.cta-email-address {
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.cta-email-address:hover {
  color: var(--hazard);
}

.cta-email-copy {
  font: inherit;
  letter-spacing: inherit;
  font-weight: 700;
  padding: 0.35rem 0.75rem;
  border: 1px solid var(--line);
  background: transparent;
  color: inherit;
  cursor: pointer;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.cta-email-copy:hover {
  border-color: var(--hazard);
  color: var(--hazard);
}

.cta-email-copy:focus-visible {
  outline: 2px solid var(--hazard);
  outline-offset: 2px;
}

/* Footer */
.site-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem clamp(1rem, 3vw, 2rem);
  font-size: 0.65rem;
  letter-spacing: 0.08em;
}

.footer-left {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

/* Responsive */
@media (max-width: 960px) {
  .hero-split,
  .telemetry-head,
  .raycast-head,
  .stack-layout {
    grid-template-columns: 1fr;
  }

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

  .stack-card-body .telem-actions {
    justify-content: flex-start;
  }

  .telem-cell.is-app {
    grid-column: span 6;
  }

  .telem-cell.is-plugin {
    grid-column: span 12;
  }

  .stage-jump {
    grid-template-columns: repeat(3, 1fr);
  }

  .accordion {
    flex-direction: column;
    min-height: 0;
  }

  .accordion-item,
  .accordion-item:hover,
  .accordion-item.is-open {
    flex: none;
  }
}

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

  .menu-toggle {
    display: inline-flex;
  }

  .hero-title {
    font-size: clamp(3rem, 14vw, 4.5rem);
  }

  .telem-cell.is-app,
  .telem-cell.is-plugin {
    grid-column: span 12;
  }

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

  .stack-card-media {
    min-height: 200px;
    aspect-ratio: 16 / 9;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
