/* VOHTZ Labs — design system */

/* === TOKENS === */

@font-face {
  font-family: "Bricolage Grotesque";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url(assets/fonts/bricolage-grotesque-latin.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Figtree";
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url(assets/fonts/figtree-latin.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Metric-matched stand-ins shown until the web fonts load, so text does not jump when they arrive. */
@font-face {
  font-family: "Bricolage Fallback";
  src: local("Arial"), local("Liberation Sans"), local("Helvetica");
  size-adjust: 86.43%;
  ascent-override: 107.61%;
  descent-override: 31.24%;
  line-gap-override: 0%;
}

@font-face {
  font-family: "Figtree Fallback";
  src: local("Arial"), local("Liberation Sans"), local("Helvetica");
  size-adjust: 94.79%;
  ascent-override: 100.22%;
  descent-override: 26.37%;
  line-gap-override: 0%;
}

:root {
  --bg-deep: #050508;
  --bg-elevated: #0c0c12;
  --bg-card: rgba(12, 14, 22, 0.65);
  --border: rgba(255, 255, 255, 0.08);
  --border-hover: rgba(255, 255, 255, 0.16);
  --text: #f4f4f5;
  --text-muted: #a1a1aa;
  --text-soft: #7e7e88;
  --accent-start: #38bdf8;
  --accent-mid: #6366f1;
  --accent-text: #7174f4; /* accent for small text: 5.1:1 on --bg-elevated (--accent-mid is 4.4:1) */
  --accent-end: #a855f7;
  --accent-blue: #3868db;
  --accent-violet: #9965d4;
  --gradient-vohtz: linear-gradient(
    135deg,
    var(--accent-start) 0%,
    var(--accent-mid) 42%,
    var(--accent-end) 100%
  );
  --gradient-text: linear-gradient(120deg, #e4e4e7 0%, #22d3ee 35%, #a78bfa 85%);
  --font-display: "Bricolage Grotesque", "Bricolage Fallback", system-ui, sans-serif;
  --font-body: "Figtree", "Figtree Fallback", system-ui, sans-serif;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --header-h: 72px;
  --focus-ring: 2px solid var(--accent-mid);
  --touch-min: 44px;
  --container: min(1180px, 100% - 2.5rem);
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

/* === BASE === */

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

html {
  scroll-behavior: smooth;
  /* Sections already have 4-7rem of top padding; this closes the gap on narrow screens where it is
     smaller than the 72px sticky header. */
  scroll-padding-top: 1rem;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--text-muted);
  background: var(--bg-deep);
  -webkit-font-smoothing: antialiased;
}

.theme-future {
  background:
    radial-gradient(ellipse 120% 80% at 50% -30%, rgba(56, 104, 219, 0.14), transparent 55%),
    radial-gradient(ellipse 70% 50% at 100% 20%, rgba(153, 101, 212, 0.1), transparent 50%),
    var(--bg-deep);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' 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");
}

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

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

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

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

.skip-link {
  position: absolute;
  left: -999px;
  top: 1rem;
  z-index: 10000;
  padding: 0.75rem 1rem;
  background: var(--text);
  color: var(--bg-deep);
  border-radius: var(--radius-sm);
  font-weight: 600;
}

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

/* === LAYOUT === */

.container {
  width: var(--container);
  margin-inline: auto;
}

/* === COMPONENTS === */

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.875rem 1.5rem;
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 600;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  cursor: pointer;
  transition:
    transform 0.35s var(--ease-out),
    box-shadow 0.35s var(--ease-out),
    background 0.35s var(--ease-out),
    border-color 0.35s var(--ease-out);
}

:focus-visible {
  outline: var(--focus-ring);
  outline-offset: 3px;
}

/* Keep focused controls clear of the fixed header when the browser scrolls them into view */
:is(a, button, summary, input, textarea, select, [tabindex]) {
  scroll-margin-top: var(--header-h);
}

/* These sit inside overflow:hidden boxes that would clip an outside ring */
.faq-item summary:focus-visible,
.work-visual:focus-visible {
  outline-offset: -3px;
}

.btn-primary {
  background: var(--gradient-vohtz);
  color: #041012;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.1) inset;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow:
    0 12px 40px rgba(45, 212, 191, 0.22),
    0 0 0 1px rgba(255, 255, 255, 0.12) inset;
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.03);
  border-color: var(--border);
  color: var(--text);
}

.btn-ghost:hover {
  border-color: var(--border-hover);
  background: rgba(255, 255, 255, 0.06);
  transform: translateY(-2px);
}

.btn-sm {
  padding: 0.625rem 1.125rem;
  font-size: 0.875rem;
}

.btn-lg {
  padding: 1rem 1.75rem;
  font-size: 1rem;
}

/* Header */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--header-h);
  transition:
    background 0.4s var(--ease-out),
    border-color 0.4s var(--ease-out);
  border-bottom: 1px solid transparent;
}

.site-header.is-scrolled {
  background: rgba(5, 5, 8, 0.72);
  backdrop-filter: blur(20px);
  border-bottom-color: rgba(56, 189, 248, 0.12);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  gap: 1.5rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.125rem;
  color: var(--text);
  letter-spacing: -0.02em;
}

.logo-img {
  display: block;
  width: 40px;
  height: 40px;
  object-fit: contain;
  flex-shrink: 0;
}

.logo-img-footer {
  width: 32px;
  height: 32px;
}

.footer-logo-row {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  margin-bottom: 0.35rem;
}

.logo-accent {
  font-weight: 500;
  color: var(--text-muted);
}

.nav-list {
  display: flex;
  gap: 2rem;
}

.nav-list a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: color 0.25s;
}

.nav-list a:hover,
.nav-list a.is-active {
  color: var(--text);
}

.nav-list a.is-active {
  position: relative;
}

.nav-list a.is-active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -0.35rem;
  height: 2px;
  border-radius: 2px;
  background: var(--gradient-vohtz);
  opacity: 0.9;
}

.header-cta {
  flex-shrink: 0;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: var(--touch-min);
  min-height: var(--touch-min);
  gap: 6px;
  padding: 0.5rem;
  background: none;
  border: none;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 1px;
  transition: transform 0.3s var(--ease-out);
}

.nav-toggle[aria-expanded="true"] span:first-child {
  transform: translateY(4px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:last-child {
  transform: translateY(-4px) rotate(-45deg);
}

@media (max-width: 900px) {
  .nav-toggle {
    display: flex;
  }

  .header-cta {
    display: none;
  }

  .nav {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    background: rgba(8, 8, 10, 0.96);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    padding: 1.5rem;
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    visibility: hidden; /* keeps the closed menu out of the tab order */
    transition:
      transform 0.45s var(--ease-out),
      opacity 0.35s,
      visibility 0s linear 0.45s;
  }

  .nav.is-open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
    visibility: visible;
    transition:
      transform 0.45s var(--ease-out),
      opacity 0.35s,
      visibility 0s;
  }

  .nav-list {
    flex-direction: column;
    gap: 1.25rem;
  }

  .nav-list a {
    display: inline-flex;
    align-items: center;
    min-height: var(--touch-min);
    min-width: var(--touch-min);
    font-size: 1.125rem;
  }
}

/* Scroll progress */

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  z-index: 200;
  background: rgba(255, 255, 255, 0.04);
}

.scroll-progress-bar {
  display: block;
  height: 100%;
  width: 100%;
  background: var(--gradient-vohtz);
  box-shadow: 0 0 12px rgba(45, 212, 191, 0.45);
  transform: scaleX(0);
  transform-origin: 0 50%;
  transition: transform 0.12s linear;
}

.text-gradient {
  background: var(--gradient-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* === SECTIONS === */

/* Hero */

.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  padding: calc(var(--header-h) + 3rem) 0 4rem;
  overflow: hidden;
}

.hero-shell {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 3rem;
  align-items: center;
}

@media (min-width: 960px) {
  .hero-shell {
    grid-template-columns: 1.05fr 0.95fr;
    gap: 2.5rem;
  }
}

.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, black 20%, transparent 75%);
}

.hero-glow {
  position: absolute;
  top: 10%;
  right: -10%;
  width: min(55vw, 520px);
  height: min(55vw, 520px);
  background: radial-gradient(
    circle closest-side,
    rgba(45, 212, 191, 0.1) 0%,
    rgba(167, 139, 250, 0.08) 40%,
    rgba(167, 139, 250, 0.03) 70%,
    transparent 100%
  );
}

.hero-canvas {
  position: absolute;
  top: 50%;
  right: -8%;
  width: min(52vw, 560px);
  height: auto;
  transform: translateY(-50%);
  opacity: 0.55;
}

.hero-content {
  max-width: 640px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.85rem 0.4rem 0.55rem;
  margin-bottom: 1rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.03);
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text-muted);
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-mid);
  box-shadow: 0 0 0 0 rgba(45, 212, 191, 0.5);
  animation: pulse-ring 2.4s ease-out infinite;
}

@keyframes pulse-ring {
  0% {
    box-shadow: 0 0 0 0 rgba(45, 212, 191, 0.45);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(45, 212, 191, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(45, 212, 191, 0);
  }
}

.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 1.25rem;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}

.hero-trust li {
  font-size: 0.875rem;
  color: var(--text-soft);
  position: relative;
  padding-left: 1rem;
}

.hero-trust li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--gradient-vohtz);
}

/* Glass panels (futuristic SaaS UI) */

.glass-panel {
  position: relative;
  border-radius: 22px;
  background: rgba(10, 12, 20, 0.55);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
  box-shadow:
    0 28px 90px rgba(0, 0, 0, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.glass-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(
    145deg,
    rgba(56, 189, 248, 0.45),
    rgba(99, 102, 241, 0.25) 40%,
    rgba(168, 85, 247, 0.35) 70%,
    rgba(255, 255, 255, 0.08)
  );
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.hero-signal {
  position: relative;
}

.signal-shell {
  padding: 1.25rem;
}

.signal-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.signal-kicker {
  margin: 0;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text-muted);
}

.signal-tag {
  font-family: ui-monospace, monospace;
  font-size: 0.6875rem;
  color: var(--accent-violet);
  padding: 0.3rem 0.55rem;
  border-radius: 999px;
  border: 1px solid rgba(153, 101, 212, 0.35);
  background: rgba(153, 101, 212, 0.08);
}

.signal-visual {
  position: relative;
  display: grid;
  place-items: center;
  padding: 1.5rem 0.5rem 1.75rem;
  margin-bottom: 1rem;
  border-radius: var(--radius-md);
  background: radial-gradient(circle at 50% 50%, rgba(56, 104, 219, 0.12), transparent 65%);
}

.signal-wave-img {
  width: 100%;
  max-width: 320px;
  height: auto;
  opacity: 0.88;
  animation: signal-wave 5s ease-in-out infinite;
}

@keyframes signal-wave {
  0%,
  100% {
    transform: scaleY(1);
    opacity: 0.85;
  }
  50% {
    transform: scaleY(1.03);
    opacity: 1;
  }
}

.signal-ring {
  position: absolute;
  width: 140px;
  height: 140px;
  border-radius: 50%;
  border: 1px solid rgba(56, 189, 248, 0.2);
  box-shadow: 0 0 40px rgba(99, 102, 241, 0.15);
  animation: ring-pulse 4s ease-in-out infinite;
}

@keyframes ring-pulse {
  0%,
  100% {
    transform: scale(0.92);
    opacity: 0.5;
  }
  50% {
    transform: scale(1.05);
    opacity: 0.85;
  }
}

.signal-stream {
  display: grid;
  gap: 0.5rem;
  margin-bottom: 1.15rem;
}

.signal-line {
  font-family: ui-monospace, monospace;
  font-size: 0.75rem;
  color: var(--text-soft);
  padding: 0.55rem 0.75rem;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  transition:
    color 0.35s,
    border-color 0.35s,
    background 0.35s;
}

.signal-line.is-active {
  color: var(--text);
  border-color: rgba(56, 189, 248, 0.25);
  background: rgba(56, 104, 219, 0.08);
}

.signal-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.signal-stats > div {
  padding: 0.65rem 0.5rem;
  text-align: center;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.22);
}

.signal-stat-val {
  display: block;
  font-family: var(--font-display);
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.25;
}

.signal-stat-lbl {
  font-size: 0.625rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-soft);
}

.signal-stack {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.65rem 0.85rem;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(56, 189, 248, 0.2);
  background: rgba(56, 104, 219, 0.06);
}

.signal-stack-label {
  flex-shrink: 0;
  font-size: 0.625rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-start);
  font-weight: 600;
}

.signal-stack p {
  margin: 0;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text);
  text-align: right;
}

.aurora {
  position: absolute;
  border-radius: 50%;
  opacity: 0.45;
  pointer-events: none;
}

.aurora-a {
  width: min(55vw, 520px);
  height: min(55vw, 520px);
  top: -10%;
  right: 5%;
  background: radial-gradient(
    circle closest-side,
    rgba(56, 104, 219, 0.55) 0%,
    rgba(56, 104, 219, 0.28) 45%,
    rgba(56, 104, 219, 0.08) 75%,
    transparent 100%
  );
  animation: aurora-drift 18s ease-in-out infinite;
}

.aurora-b {
  width: min(45vw, 420px);
  height: min(45vw, 420px);
  bottom: 5%;
  left: -5%;
  background: radial-gradient(
    circle closest-side,
    rgba(153, 101, 212, 0.45) 0%,
    rgba(153, 101, 212, 0.23) 45%,
    rgba(153, 101, 212, 0.07) 75%,
    transparent 100%
  );
  animation: aurora-drift 22s ease-in-out infinite reverse;
}

@keyframes aurora-drift {
  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }
  50% {
    transform: translate(24px, -16px) scale(1.08);
  }
}

.hero-orb {
  position: absolute;
  top: 15%;
  right: 8%;
  width: min(42vw, 420px);
  opacity: 0.35;
  pointer-events: none;
  mix-blend-mode: screen;
}

.eyebrow {
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-text);
  margin-bottom: 1.25rem;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5.5vw, 3.75rem);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.03em;
  color: var(--text);
  margin-bottom: 1.5rem;
}

.hero-lead {
  font-size: 1.125rem;
  max-width: 52ch;
  margin-bottom: 2.25rem;
}

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

@media (max-width: 768px) {
  .hero-canvas {
    right: 50%;
    transform: translate(50%, -40%);
    width: 130%;
    opacity: 0.35;
  }

  .hero-content {
    max-width: 100%;
  }

  .hero-signal {
    max-width: 520px;
    margin-inline: auto;
  }

  .hero-orb {
    opacity: 0.22;
  }
}

/* Capability strip — static, minimal */

.capability-strip {
  border-bottom: 1px solid var(--border);
  padding: 1.125rem 0;
}

.capability-text {
  margin: 0;
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  line-height: 1.6;
  color: var(--text-soft);
  text-align: center;
}

@media (max-width: 640px) {
  .capability-text {
    font-size: 0.75rem;
    line-height: 1.75;
  }
}

/* Metrics bento */

.metrics {
  padding-top: clamp(2.5rem, 6vw, 4rem);
  padding-bottom: clamp(2.5rem, 6vw, 4rem);
}

.metrics-grid {
  display: grid;
  gap: 1rem;
}

@media (min-width: 768px) {
  .metrics-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.metric-card {
  padding: 1.5rem 1.35rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--bg-card);
  transition:
    transform 0.35s var(--ease-out),
    border-color 0.35s;
}

.metric-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-hover);
}

.metric-card-feature {
  background:
    radial-gradient(ellipse at top right, rgba(167, 139, 250, 0.12), transparent 55%),
    var(--bg-card);
}

.metric-card-value {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
  margin-bottom: 0.35rem;
}

.metric-card-label {
  font-size: 0.875rem;
  color: var(--text-soft);
}

.section-head {
  margin-bottom: 2.5rem;
  max-width: 640px;
}

/* Tech stack — orbital hub layout */

.stack-orbit {
  padding-top: 0;
  overflow: hidden;
}

/* Scroll-driven start values only apply once JS is running; without JS the stack is fully shown. */

.js .stack-orbit {
  --sp-bg: 0;
  --sp-hub: 0;
}

.js [data-stack-orbit] .stack-orbit-path {
  --line-p: 0;
}

.js [data-stack-orbit] .stack-cluster {
  --sp-card: 0;
}

.js [data-stack-orbit] .stack-tech-item {
  --sp-icon: 0;
}

.stack-orbit-header {
  display: grid;
  gap: 1.75rem 2rem;
  margin-bottom: 2.5rem;
  align-items: end;
}

.stack-orbit-intro {
  max-width: 640px;
  margin-bottom: 0;
}

.stack-orbit-cta {
  display: flex;
  align-items: flex-end;
  padding-top: 0.25rem;
}

.stack-orbit-cta-btn {
  white-space: nowrap;
}

@media (min-width: 768px) {
  .stack-orbit-header {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 2rem 3rem;
  }

  .stack-orbit-cta {
    justify-content: flex-end;
    text-align: right;
    padding-bottom: 0.35rem;
  }
}

.stack-orbit-stage {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  grid-template-rows: auto auto auto;
  gap: 2rem 1rem;
  align-items: center;
  justify-items: center;
  min-height: 620px;
  padding: 1rem 0;
  isolation: isolate;
}

.stack-orbit-fx {
  position: absolute;
  inset: -5% -2%;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  border-radius: var(--radius-lg);
}

.stack-orbit-bg-glow {
  position: absolute;
  left: 50%;
  top: 52%;
  width: min(70%, 520px);
  aspect-ratio: 1;
  transform: translate(-50%, -50%) scale(calc(0.55 + var(--sp-bg, 1) * 0.55));
  background: radial-gradient(
    circle,
    rgba(56, 104, 219, calc(0.22 * var(--sp-bg, 1))) 0%,
    rgba(168, 85, 247, calc(0.12 * var(--sp-bg, 1))) 38%,
    transparent 68%
  );
  opacity: calc(0.25 + var(--sp-bg, 1) * 0.75);
  transition: opacity 0.15s linear;
}

.stack-orbit-bg-grid {
  position: absolute;
  inset: 0;
  opacity: calc(var(--sp-bg, 1) * 0.35);
  background-image:
    linear-gradient(rgba(56, 189, 248, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(56, 189, 248, 0.06) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 70% 65% at 50% 50%, #000 15%, transparent 72%);
}

.stack-orbit-particles {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: calc(0.08 + var(--sp-bg, 1) * 0.22);
}

[data-stack-orbit].is-ambient .stack-orbit-bg-glow {
  animation: stack-ambient-glow 14s ease-in-out infinite;
}

[data-stack-orbit].is-ambient .stack-hub-pulse {
  animation: stack-hub-pulse 5s ease-in-out infinite;
}

@keyframes stack-ambient-glow {
  0%,
  100% {
    opacity: 0.85;
  }
  50% {
    opacity: 1;
  }
}

@keyframes stack-hub-pulse {
  0%,
  100% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 0.35;
  }
  50% {
    transform: translate(-50%, -50%) scale(1.08);
    opacity: 0.55;
  }
}

.stack-orbit-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

.stack-orbit-ring {
  opacity: calc(0.1 + var(--sp-hub, 1) * 0.35);
  transform-box: fill-box;
  transform-origin: center;
  transform: rotate(calc(var(--sp-hub, 1) * 18deg));
}

.stack-orbit-path {
  opacity: calc(0.12 + var(--line-p, 1) * 0.48);
  stroke-dasharray: var(--path-len, 600);
  stroke-dashoffset: calc(var(--path-len, 600) * (1 - var(--line-p, 1)));
  vector-effect: non-scaling-stroke;
  transition: stroke-width 0.3s ease;
}

/* The curve to the card under the pointer (class set by main.js) */
.stack-orbit-path.is-hot {
  opacity: 1;
  stroke-width: 2.5;
}

.stack-orbit-dot {
  filter: drop-shadow(0 0 6px rgba(34, 211, 238, 0.85));
}

.stack-hub {
  position: relative;
  z-index: 2;
  grid-column: 2;
  grid-row: 2;
  width: clamp(140px, 16vw, 176px);
  height: clamp(140px, 16vw, 176px);
  border-radius: 50%;
  border: 2px solid transparent;
  background-clip: padding-box;
}

.stack-hub-ripples {
  position: absolute;
  inset: -8%;
  z-index: 0;
  pointer-events: none;
  opacity: calc(var(--sp-hub, 1) * 0.95);
}

.stack-hub-ripple {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1px solid rgba(56, 189, 248, 0.35);
  box-shadow: 0 0 12px rgba(56, 104, 219, 0.08);
  opacity: 0;
  transform: scale(0.92);
}

.stack-hub-ripple:nth-child(2) {
  border-color: rgba(99, 102, 241, 0.45);
}

[data-stack-orbit].is-hub-live .stack-hub-ripple {
  animation: stack-hub-ripple 5.5s cubic-bezier(0.22, 0.61, 0.36, 1) infinite;
}

[data-stack-orbit].is-hub-live .stack-hub-ripple:nth-child(2) {
  animation-delay: 2.75s;
}

@keyframes stack-hub-ripple {
  0% {
    transform: scale(0.92);
    opacity: 0.32;
  }
  100% {
    transform: scale(2.1);
    opacity: 0;
  }
}

.stack-hub-rings {
  position: absolute;
  inset: -18%;
  pointer-events: none;
}

.stack-hub-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1px solid rgba(56, 189, 248, 0.22);
  opacity: calc(var(--sp-hub, 1) * 0.85);
}

.stack-hub-ring-a {
  animation: stack-ring-spin 36s linear infinite;
  animation-play-state: paused;
}

.stack-hub-ring-b {
  inset: 10%;
  border-color: rgba(168, 85, 247, 0.2);
  animation: stack-ring-spin 48s linear infinite reverse;
  animation-play-state: paused;
}

[data-stack-orbit].is-ambient .stack-hub-ring-a,
[data-stack-orbit].is-ambient .stack-hub-ring-b {
  animation-play-state: running;
}

@keyframes stack-ring-spin {
  to {
    transform: rotate(360deg);
  }
}

.stack-hub-pulse {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 130%;
  height: 130%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(34, 211, 238, 0.14), transparent 65%);
  opacity: calc(var(--sp-hub, 1) * 0.7);
  pointer-events: none;
}

.stack-hub-inner {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 0.15rem;
  padding: 1rem;
  background:
    radial-gradient(circle at 30% 20%, rgba(34, 211, 238, 0.12), transparent 55%),
    rgba(8, 10, 18, 0.95);
  box-shadow:
    0 0 0 1px rgba(56, 189, 248, 0.25),
    0 0 40px rgba(99, 102, 241, 0.2);
  opacity: var(--sp-hub, 1);
  transform: scale(calc(0.85 + var(--sp-hub, 1) * 0.15));
}

.stack-hub-inner::before {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: inherit;
  padding: 2px;
  background: var(--gradient-vohtz);
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  z-index: -1;
}

.stack-hub-inner span {
  font-size: 0.8125rem;
  color: var(--text-muted);
  line-height: 1.2;
}

.stack-hub-inner strong {
  font-family: var(--font-display);
  font-size: clamp(1rem, 2vw, 1.25rem);
  font-weight: 700;
  color: var(--text);
  line-height: 1.15;
}

.stack-cluster {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 340px;
  padding: 1rem 1rem 1.1rem;
  border-radius: var(--radius-md);
  border: 1px solid rgba(168, 85, 247, calc(0.12 + var(--sp-card, 1) * 0.45));
  background: rgba(8, 10, 18, 0.88);
  box-shadow:
    0 16px 40px rgba(0, 0, 0, calc(0.15 + var(--sp-card, 1) * 0.2)),
    0 0 24px rgba(56, 104, 219, calc(var(--sp-card, 1) * 0.12));
  opacity: var(--sp-card, 1);
  transform: translateY(calc((1 - var(--sp-card, 1)) * 20px)) scale(calc(0.96 + var(--sp-card, 1) * 0.04));
  transition:
    border-color 0.3s ease,
    box-shadow 0.3s ease;
}

/* The port where a curve meets its card. main.js sets --port-y (from the card's top) when it lays the
   curves out and adds "is-linked"; until then, and without JS, there are no curves and no ports. */
.stack-cluster::after {
  content: "";
  position: absolute;
  top: var(--port-y, 50%);
  width: 9px;
  height: 9px;
  margin-top: -5.5px;
  border-radius: 50%;
  border: 1.5px solid #22d3ee;
  background: #0b1020;
  box-shadow: 0 0 10px rgba(34, 211, 238, 0.65);
  opacity: 0;
  transition:
    background-color 0.3s ease,
    box-shadow 0.3s ease;
}

.stack-cluster-tl::after,
.stack-cluster-bl::after {
  right: -5.5px;
}

.stack-cluster-tr::after,
.stack-cluster-br::after {
  left: -5.5px;
}

.stack-cluster-br::after {
  border-color: #a855f7;
  box-shadow: 0 0 10px rgba(168, 85, 247, 0.65);
}

[data-stack-orbit].is-linked .stack-cluster::after {
  opacity: var(--sp-card, 1);
}

@media (hover: hover) {
  .stack-cluster:hover {
    border-color: rgba(56, 189, 248, 0.55);
    box-shadow:
      0 16px 40px rgba(0, 0, 0, 0.35),
      0 0 32px rgba(56, 189, 248, 0.16);
  }

  .stack-cluster:hover::after {
    background: #22d3ee;
    box-shadow: 0 0 14px rgba(34, 211, 238, 0.95);
  }

  .stack-cluster-br:hover::after {
    background: #a855f7;
    box-shadow: 0 0 14px rgba(168, 85, 247, 0.95);
  }
}

/* Promote clusters to their own layer only while the section is on screen (class set by main.js) */

[data-stack-orbit].is-active .stack-cluster {
  will-change: transform, opacity;
}

/* Cards sit in the stage's corners, in line with the header, with their inner edges lined up around the hub. */

.stack-cluster-tl {
  grid-column: 1;
  grid-row: 1;
  justify-self: start;
  align-self: end;
}

.stack-cluster-tr {
  grid-column: 3;
  grid-row: 1;
  justify-self: end;
  align-self: end;
}

.stack-cluster-bl {
  grid-column: 1;
  grid-row: 3;
  justify-self: start;
  align-self: start;
}

.stack-cluster-br {
  grid-column: 3;
  grid-row: 3;
  justify-self: end;
  align-self: start;
}

.stack-cluster-title {
  display: inline-block;
  margin: 0 0 0.85rem;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  background: var(--text);
  color: #0a0a0c;
  font-family: var(--font-display);
  font-size: 0.8125rem;
  font-weight: 700;
}

/* Same-size tiles in every card; a short last row is centred rather than leaving a hole. */
.stack-tech-grid {
  --cols: 3;
  --gap-x: 0.5rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem var(--gap-x);
  margin: 0;
  padding: 0;
  list-style: none;
}

.stack-tech-grid > li {
  flex: 0 0 calc((100% - (var(--cols) - 1) * var(--gap-x)) / var(--cols));
  min-width: 0;
}

.stack-tech-grid li,
.stack-tech-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  text-align: center;
}

.stack-tech-item {
  padding: 0.65rem 0.25rem 0.55rem;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.025);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.05);
  opacity: var(--sp-icon, 1);
  transform: scale(calc(0.82 + var(--sp-icon, 1) * 0.18));
}

.stack-tech-grid img {
  width: 24px;
  height: 24px;
  object-fit: contain;
  filter: brightness(0) invert(1);
  opacity: calc(0.35 + var(--sp-icon, 1) * 0.65);
}

.stack-tech-item span {
  opacity: var(--sp-icon, 1);
}

.stack-tech-grid span {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-muted);
  line-height: 1.25;
  overflow-wrap: anywhere;
}

@media (max-width: 900px) {
  .stack-orbit-header {
    align-items: stretch;
  }

  .stack-orbit-cta {
    align-items: stretch;
  }

  .stack-orbit-cta-btn {
    width: 100%;
    justify-content: center;
  }

  .stack-orbit-stage {
    min-height: auto;
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    gap: 0.75rem;
    padding: 0;
  }

  .stack-orbit-svg,
  .stack-hub,
  .stack-orbit-fx {
    display: none;
  }

  .stack-cluster,
  .stack-cluster-tl,
  .stack-cluster-tr,
  .stack-cluster-bl,
  .stack-cluster-br {
    grid-column: 1;
    grid-row: auto;
    justify-self: stretch;
    align-self: stretch;
    max-width: none;
    width: 100%;
    padding: 1rem 1.1rem 1.15rem;
    opacity: 1;
    transform: none;
  }

  .stack-tech-grid {
    --gap-x: 0.4rem;
  }

  .stack-tech-item {
    opacity: 1;
    transform: none;
  }

  .stack-tech-grid img {
    opacity: 1;
  }

  .stack-tech-item span {
    opacity: 1;
  }

  .stack-cluster-title {
    display: block;
    width: fit-content;
    max-width: 100%;
    margin-bottom: 0.75rem;
  }
}

/* Tablets: two cards a row instead of one wide, sparse card per row */
@media (min-width: 601px) and (max-width: 900px) {
  .stack-orbit-stage {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
  }

  .stack-cluster,
  .stack-cluster-tl,
  .stack-cluster-tr,
  .stack-cluster-bl,
  .stack-cluster-br {
    grid-column: auto;
    display: flex;
    flex-direction: column;
  }

  /* Cards in a row share its height; a card with fewer tools centres them in the space. */
  .stack-tech-grid {
    flex: 1;
    align-content: center;
  }
}

@media (max-width: 380px) {
  .stack-tech-item {
    padding-inline: 0.15rem;
  }

  .stack-tech-grid span {
    font-size: 0.6875rem;
  }
}

/* Sections */

.section {
  padding: clamp(4rem, 10vw, 7rem) 0;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.12;
  color: var(--text);
  margin-bottom: 1rem;
}

.section-lead {
  font-size: 1.125rem;
  max-width: 48ch;
}

/* About */

/* The pillars start 32px to the right of their slot (pop-in), which would make the page wider than the screen. */
.about {
  overflow-x: hidden;
  overflow-x: clip;
}

.about-grid {
  display: grid;
  gap: 3.5rem;
}

@media (min-width: 900px) {
  .about-grid {
    grid-template-columns: 0.9fr 1.1fr;
    align-items: start;
  }
}

.about-pillars {
  display: grid;
  gap: 1rem;
}

.about-pillars li {
  display: flex;
  gap: 1rem;
  padding: 1.25rem 1.35rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--bg-card);
  transition: border-color 0.35s var(--ease-out);
}

.about-pillars li.pop-on-scroll {
  opacity: 0;
  transform: translate3d(32px, 16px, 0) scale(0.94);
  transition:
    opacity 0.55s var(--ease-out),
    transform 0.65s cubic-bezier(0.22, 1.25, 0.36, 1),
    border-color 0.35s var(--ease-out),
    box-shadow 0.45s var(--ease-out);
}

.about-pillars li.pop-on-scroll.is-popped {
  opacity: 1;
  transform: translate3d(0, 0, 0) scale(1);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.22);
}

.about-pillars li.pop-on-scroll.is-popped:hover {
  border-color: var(--border-hover);
  transform: translate3d(6px, 0, 0) scale(1.01);
}

.about-pillars li.pop-on-scroll .pillar-icon {
  transform: scale(0.75);
  opacity: 0.5;
  transition:
    transform 0.5s cubic-bezier(0.22, 1.2, 0.36, 1) 0.08s,
    opacity 0.45s var(--ease-out) 0.05s;
}

.about-pillars li.pop-on-scroll.is-popped .pillar-icon {
  transform: scale(1);
  opacity: 1;
}

.pillar-icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: var(--radius-sm);
  background: rgba(45, 212, 191, 0.08);
  color: var(--accent-mid);
}

.pillar-icon svg {
  width: 22px;
  height: 22px;
}

.about-pillars strong {
  display: block;
  color: var(--text);
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.about-pillars p {
  font-size: 0.9375rem;
}

/* Services */

.services {
  background: linear-gradient(180deg, transparent, rgba(15, 15, 18, 0.6) 30%, transparent);
}

.service-grid {
  display: grid;
  gap: 1.25rem;
  margin-top: 2.5rem;
}

@media (min-width: 640px) {
  .service-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 960px) {
  .service-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.service-card {
  position: relative;
  padding: 1.75rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  overflow: hidden;
  transition:
    transform 0.4s var(--ease-out),
    border-color 0.4s var(--ease-out),
    box-shadow 0.4s var(--ease-out);
}

.service-card::before {
  content: "";
  position: absolute;
  width: 220px;
  height: 220px;
  left: var(--spot-x, -999px);
  top: var(--spot-y, -999px);
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(167, 139, 250, 0.14), transparent 68%);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.35s;
}

.service-card:hover::before {
  opacity: 1;
}

.service-card:hover {
  transform: translateY(-6px);
  border-color: rgba(99, 102, 241, 0.35);
  box-shadow:
    0 24px 48px rgba(0, 0, 0, 0.35),
    0 0 40px rgba(56, 104, 219, 0.08);
}

.service-icon {
  display: inline-flex;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  color: var(--accent-mid);
}

.service-icon svg {
  width: 26px;
  height: 26px;
}

.service-card h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.5rem;
}

.service-card p {
  font-size: 0.9375rem;
}

/* Process */

.process-steps {
  display: grid;
  gap: 1rem;
  margin-top: 2.5rem;
  counter-reset: none;
}

@media (min-width: 768px) {
  .process-steps {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .process-steps {
    grid-template-columns: repeat(4, 1fr);
  }
}

.process-step {
  position: relative;
  padding: 1.5rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.02);
}

.step-num {
  font-family: var(--font-display);
  font-size: 0.875rem;
  font-weight: 700;
  background: var(--gradient-vohtz);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  display: block;
  margin-bottom: 0.75rem;
}

.process-step h3 {
  font-family: var(--font-display);
  font-size: 1.125rem;
  color: var(--text);
  margin-bottom: 0.5rem;
}

.process-step p {
  font-size: 0.875rem;
}

/* Work */

.work-header {
  display: grid;
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}

@media (min-width: 768px) {
  .work-header {
    grid-template-columns: 1fr 1fr;
    align-items: end;
  }
}

.work-note {
  font-size: 0.875rem;
  color: var(--text-soft);
  max-width: 42ch;
}

.work-grid {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .work-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .work-card-wide {
    grid-column: span 2;
    display: grid;
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
    align-items: stretch;
  }

  .work-card-wide .work-visual {
    min-height: 0;
    height: 100%;
    max-height: clamp(11rem, 20vw, 13rem);
  }
}

.work-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg-card);
  transition: border-color 0.35s var(--ease-out);
}

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

.work-visual {
  position: relative;
  height: clamp(9.5rem, 17vw, 11.25rem);
  max-height: 11.25rem;
  overflow: hidden;
}

.work-visual:where(a) {
  display: block;
  color: inherit;
  text-decoration: none;
}

.work-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
  transition: opacity 0.35s var(--ease-out);
}

.work-visual:where(a):hover img {
  opacity: 0.92;
}

.work-visual-1 {
  background:
    radial-gradient(circle at 30% 40%, rgba(45, 212, 191, 0.35), transparent 50%),
    linear-gradient(145deg, #0c1218 0%, #111827 100%);
}

.work-visual-2 {
  background:
    radial-gradient(circle at 70% 30%, rgba(56, 189, 248, 0.3), transparent 45%),
    linear-gradient(145deg, #0a0f14 0%, #1a1a2e 100%);
}

.work-visual-3 {
  background:
    radial-gradient(circle at 50% 60%, rgba(52, 211, 153, 0.25), transparent 50%),
    linear-gradient(145deg, #0d1117 0%, #161b22 100%);
}

.work-visual-4 {
  background:
    radial-gradient(ellipse at 20% 50%, rgba(45, 212, 191, 0.2), transparent 55%),
    radial-gradient(ellipse at 80% 50%, rgba(56, 189, 248, 0.15), transparent 55%),
    linear-gradient(90deg, #0a0a0c 0%, #121218 100%);
}

.work-body {
  padding: 1.25rem 1.5rem 1.5rem;
}

.work-category {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-text);
  margin-bottom: 0.5rem;
}

.work-body h3 {
  font-family: var(--font-display);
  font-size: 1.375rem;
  color: var(--text);
  margin-bottom: 0.5rem;
}

.work-body h3 a {
  color: inherit;
  text-decoration: none;
  transition: color 0.25s var(--ease-out);
}

.work-body h3 a:hover {
  color: var(--accent-start);
}

.work-body > p {
  font-size: 0.9375rem;
  margin-bottom: 1rem;
}

.work-actions {
  margin: 0;
  margin-top: 1.15rem;
}

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

.tags li {
  font-size: 0.75rem;
  font-weight: 500;
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  color: var(--text-soft);
}

/* Principles */

.principles-grid {
  display: grid;
  gap: 1.25rem;
  margin-top: 2.5rem;
}

@media (min-width: 768px) {
  .principles-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .principles-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.principle-card {
  padding: 1.75rem 1.5rem;
  border-top: 2px solid transparent;
  border-image: var(--gradient-vohtz) 1;
  background: rgba(255, 255, 255, 0.02);
  border-radius: 0 0 var(--radius-md) var(--radius-md);
  transition: background 0.35s;
}

.principle-card:hover {
  background: rgba(45, 212, 191, 0.04);
}

.principle-card h3 {
  font-family: var(--font-display);
  font-size: 1.0625rem;
  color: var(--text);
  margin-bottom: 0.5rem;
}

.principle-card p {
  font-size: 0.875rem;
}

/* CTA */

.cta-section {
  position: relative;
  padding: clamp(5rem, 12vw, 8rem) 0;
  overflow: hidden;
}

.cta-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 50% 100%, rgba(45, 212, 191, 0.15), transparent 60%),
    linear-gradient(180deg, var(--bg-deep) 0%, #0a1210 50%, var(--bg-deep) 100%);
  border-block: 1px solid var(--border);
}

.cta-grid {
  position: relative;
  display: grid;
  gap: 2rem;
  align-items: center;
}

@media (min-width: 900px) {
  .cta-grid {
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
  }
}

.cta-title {
  font-family: var(--font-display);
  font-size: clamp(2.25rem, 5vw, 3.25rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--text);
  margin-bottom: 1.25rem;
}

.cta-lead {
  font-size: 1.125rem;
  margin-bottom: 1.5rem;
}

.cta-points {
  display: grid;
  gap: 0.65rem;
}

.cta-points li {
  font-size: 0.9375rem;
  color: var(--text-soft);
  padding-left: 1.1rem;
  position: relative;
}

.cta-points li::before {
  content: "→";
  position: absolute;
  left: 0;
  color: var(--accent-mid);
}

.cta-card {
  padding: 2rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: linear-gradient(160deg, rgba(22, 22, 28, 0.95), rgba(12, 12, 16, 0.9));
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35);
}

.cta-card-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-text);
  margin-bottom: 0.75rem;
}

.cta-card-title {
  font-family: var(--font-display);
  font-size: 1.375rem;
  color: var(--text);
  margin-bottom: 0.65rem;
}

.cta-card-text {
  font-size: 0.9375rem;
  margin-bottom: 1.5rem;
}

.btn-block {
  width: 100%;
}

.btn[hidden] {
  display: none;
}

.btn-block + .btn-block {
  margin-top: 0.75rem;
}

.cta-card-status {
  min-height: 1.5em;
  margin-top: 0.5rem;
  font-size: 0.8125rem;
  color: var(--text-muted);
  text-align: center;
}

.cta-card-meta {
  margin-top: 1rem;
  font-size: 0.8125rem;
  color: var(--text-soft);
  text-align: center;
}

/* FAQ */

.faq-layout {
  display: grid;
  gap: 2.5rem;
}

@media (min-width: 900px) {
  .faq-layout {
    grid-template-columns: 0.85fr 1.15fr;
    align-items: start;
  }
}

.faq-list {
  display: grid;
  gap: 0.75rem;
}

.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.02);
  overflow: hidden;
  transition: border-color 0.3s;
}

.faq-item[open] {
  border-color: rgba(45, 212, 191, 0.28);
}

.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 1.15rem 1.25rem;
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  font-size: 1.25rem;
  font-weight: 400;
  color: var(--text-soft);
  transition: transform 0.3s var(--ease-out);
}

.faq-item[open] summary::after {
  transform: rotate(45deg);
}

.faq-item p {
  padding: 0 1.25rem 1.15rem;
  font-size: 0.9375rem;
}

/* Footer */

.site-footer {
  padding: 3.5rem 0 2rem;
  border-top: 1px solid var(--border);
}

.footer-grid {
  display: grid;
  gap: 2.5rem;
  margin-bottom: 2.5rem;
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: 1.5fr 1fr 1fr;
  }
}

.footer-logo {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text);
  margin: 0;
}

.footer-tagline {
  font-size: 0.875rem;
  font-weight: 600;
  background: var(--gradient-vohtz);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.footer-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-soft);
  margin-bottom: 0.75rem;
}

.footer-nav ul,
.footer-social ul {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-nav a,
.footer-social a {
  font-size: 0.9375rem;
  color: var(--text-muted);
  transition: color 0.25s;
}

.footer-nav a:hover,
.footer-social a:hover {
  color: var(--text);
}

/* Touch-sized links on narrow screens */

@media (max-width: 900px) {
  .footer-nav a,
  .footer-social a {
    display: inline-flex;
    align-items: center;
    min-height: var(--touch-min);
    min-width: var(--touch-min);
  }

  .work-actions .btn {
    min-height: var(--touch-min);
  }
}

.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}

.footer-bottom p {
  font-size: 0.8125rem;
  color: var(--text-soft);
}

/* === MOTION === */

/* Reveal animations */

.js .reveal,
.js .reveal-stagger > * {
  opacity: 0;
  transform: translateY(20px);
  transition:
    opacity 0.7s var(--ease-out),
    transform 0.7s var(--ease-out);
}

.js .reveal.is-visible,
.js .reveal-stagger.is-visible > * {
  opacity: 1;
  transform: translateY(0);
}

.js .reveal-stagger.is-visible > *:nth-child(1) {
  transition-delay: 0.05s;
}

.js .reveal-stagger.is-visible > *:nth-child(2) {
  transition-delay: 0.1s;
}

.js .reveal-stagger.is-visible > *:nth-child(3) {
  transition-delay: 0.15s;
}

.js .reveal-stagger.is-visible > *:nth-child(4) {
  transition-delay: 0.2s;
}

.js .reveal-stagger.is-visible > *:nth-child(5) {
  transition-delay: 0.25s;
}

.js .reveal-stagger.is-visible > *:nth-child(6) {
  transition-delay: 0.3s;
}

/* Hero entrance: CSS-only so the headline paints without waiting for JS */

@keyframes hero-in {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
}

.hero-in {
  animation: hero-in 0.7s var(--ease-out) both;
}

.hero-content > .hero-in:nth-child(1) {
  animation-delay: 0.06s;
}

.hero-content > .hero-in:nth-child(2) {
  animation-delay: 0.12s;
}

.hero-content > .hero-in:nth-child(3) {
  animation-delay: 0s; /* the h1 is the largest contentful paint: no delay */
}

.hero-content > .hero-in:nth-child(4) {
  animation-delay: 0.18s;
}

.hero-content > .hero-in:nth-child(5) {
  animation-delay: 0.24s;
}

.hero-content > .hero-in:nth-child(6) {
  animation-delay: 0.3s;
}

.hero-signal.hero-in {
  animation-delay: 0.15s;
}

/* WebGL layer: main.js adds a canvas and the "is-gl" class once Three.js is running, and the
   static visual below it fades out. Without JS or WebGL none of this applies. */
.gl-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.is-gl .gl-canvas {
  animation: gl-in 0.6s ease both;
}

.signal-visual.is-gl .signal-wave-img,
[data-stack-orbit].is-gl .stack-orbit-svg {
  animation: gl-out 0.6s ease forwards;
}

[data-stack-orbit].is-gl .stack-orbit-particles {
  display: none;
}

@keyframes gl-in {
  from {
    opacity: 0;
  }
}

@keyframes gl-out {
  to {
    opacity: 0;
  }
}

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

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  [data-stack-orbit] .stack-hub-inner,
  [data-stack-orbit] .stack-cluster,
  [data-stack-orbit] .stack-tech-item {
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
  }

  [data-stack-orbit] .stack-orbit-path {
    stroke-dashoffset: 0;
    opacity: 0.55;
  }

  [data-stack-orbit].is-ambient .stack-orbit-bg-glow,
  [data-stack-orbit].is-ambient .stack-hub-pulse,
  [data-stack-orbit].is-ambient .stack-hub-ring-a,
  [data-stack-orbit].is-ambient .stack-hub-ring-b,
  [data-stack-orbit].is-hub-live .stack-hub-ripple {
    animation: none;
  }

  [data-stack-orbit].is-hub-live .stack-hub-ripple {
    opacity: 0;
  }

  .js .reveal,
  .js .reveal-stagger > * {
    opacity: 1;
    transform: none;
  }

  .hero-in {
    animation: none;
  }

  .about-pillars li.pop-on-scroll,
  .about-pillars li.pop-on-scroll .pillar-icon {
    opacity: 1;
    transform: none;
    box-shadow: none;
  }

  .pulse-dot {
    animation: none;
  }

  .aurora,
  .signal-wave-img,
  .signal-ring {
    animation: none;
  }
}
