﻿/* ============================================
   NODESPARK — styles.css
   ============================================ */

/* ---- Design Tokens ---- */
:root {
  --bg: #0E1013;
  --surface: #1B1E24;
  --surface-2: #2B2F38;
  --muted: #5F6570;
  --text-2: #A5AAB3;
  --text: #FBFAF7;
  --accent: #F26B1F;
  --accent-light: #FFB07A;
  --accent-pale: #FFD9BE;
  --signal: #3E9EFF;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.13);
  --sheen: linear-gradient(180deg, rgba(255, 255, 255, 0.025), rgba(255, 255, 255, 0) 45%);
  --radius: 14px;
  --radius-sm: 8px;
  /* Hero/nav container: grows on large screens (up to 1560px) so the
     hero doesn't strand a huge left gutter on wide monitors */
  --hero-max: clamp(1200px, 100vw - 340px, 1560px);
}

/* ---- Global Reset ---- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

::selection {
  background: rgba(242, 107, 31, 0.35);
  color: var(--text);
}

::-webkit-scrollbar {
  width: 12px;
}

::-webkit-scrollbar-track {
  background: var(--bg);
}

::-webkit-scrollbar-thumb {
  background: var(--surface-2);
  border-radius: 6px;
  border: 3px solid var(--bg);
}

::-webkit-scrollbar-thumb:hover {
  background: #3A3F4A;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  display: block;
}

button {
  cursor: pointer;
}

*:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

/* ---- Container ---- */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
}

/* ---- Sections ---- */
section {
  padding: 100px 0;
  scroll-margin-top: 72px;
}

/* ---- Global Typography ---- */
.section-heading {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(2rem, 3.5vw, 2.8rem);
  font-weight: 700;
  color: var(--text);
  margin-top: 16px;
  line-height: 1.15;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

.section-lede {
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  color: var(--text-2);
  line-height: 1.7;
  max-width: 560px;
  margin-top: 16px;
}

.stack-header .section-lede {
  margin-left: auto;
  margin-right: auto;
}

.eyebrow {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  display: inline-block;
}

/* ---- Buttons (neon style) ----
   Adapted from the shadcn neon-button component:
   pill + hairline border + two gradient neon lines.
   ::after = bottom line, always lit, dims on hover.
   ::before = top line, lights up on hover as the bg fades out. */
.btn {
  position: relative;
  isolation: isolate;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 100px;
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  font-weight: 500;
  line-height: 1;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  overflow: hidden;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: background 0.2s, border-color 0.2s, box-shadow 0.3s, transform 0.15s;
}

/* Cursor-tracking ember glow — follows the pointer inside the button
   (position fed via --glow-x/--glow-y from JS), fades out on leave */
.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(
    110px circle at var(--glow-x, 50%) var(--glow-y, 50%),
    rgba(255, 176, 122, 0.4),
    rgba(242, 107, 31, 0.14) 45%,
    transparent 70%
  );
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.45s ease;
}

.btn:hover::after {
  opacity: 1;
}

/* Orbiting border light on hover: a conic-gradient comet masked
   to the 1px border ring, rotated via the animatable --btn-angle */
@property --btn-angle {
  syntax: '<angle>';
  initial-value: 0deg;
  inherits: false;
}

.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: conic-gradient(from var(--btn-angle),
    transparent 0deg 260deg,
    rgba(242, 107, 31, 0.35) 310deg,
    var(--accent) 336deg,
    var(--accent-light) 352deg,
    transparent 360deg);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.4s ease-in-out;
}

.btn:hover::before {
  opacity: 1;
  animation: btn-orbit 1.6s linear infinite;
}

@keyframes btn-orbit {
  from { --btn-angle: 0deg; }
  to   { --btn-angle: 360deg; }
}

@media (prefers-reduced-motion: reduce) {
  .btn:hover::before {
    animation: none;
    opacity: 0;
  }
}

.btn:active {
  transform: scale(0.975);
}

.btn-primary {
  background: rgba(242, 107, 31, 0.07);
  border-color: rgba(242, 107, 31, 0.28);
  color: var(--text);
}

.btn-primary:hover {
  background: rgba(242, 107, 31, 0.16);
  border-color: rgba(242, 107, 31, 0.55);
  box-shadow: 0 4px 24px rgba(242, 107, 31, 0.25);
}

.btn-ghost {
  background: transparent;
  border-color: transparent;
  color: var(--text);
}

.btn-ghost:hover {
  background: rgba(242, 107, 31, 0.09);
  border-color: rgba(242, 107, 31, 0.35);
  box-shadow: 0 4px 20px rgba(242, 107, 31, 0.15);
}

.btn-large {
  padding: 15px 32px;
  font-size: 1rem;
}

.btn-full {
  width: 100%;
  justify-content: center;
}

/* ============================================
   NAV
   ============================================ */
#nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: transparent;
  padding: 20px 0;
  transition: background 0.3s, padding 0.3s, backdrop-filter 0.3s;
}

#nav.scrolled {
  background: rgba(14, 16, 19, 0.88);
  backdrop-filter: blur(16px) saturate(1.4);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  max-width: var(--hero-max);
}

.nav-logo {
  flex-shrink: 0;
  display: flex;
  align-items: center;
}

.nav-logo-img {
  height: 36px;
  width: auto;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.nav-links a {
  position: relative;
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  color: var(--text-2);
  text-decoration: none;
  transition: color 0.2s;
}

.nav-links a::after {
  content: '';
  position: absolute;
  left: 0;
  right: 100%;
  bottom: -6px;
  height: 1px;
  background: var(--accent);
  transition: right 0.25s ease;
}

.nav-links a:hover {
  color: var(--accent);
}

.nav-links a:hover::after {
  right: 0;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all 0.3s;
}

#nav.menu-open .hamburger span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

#nav.menu-open .hamburger span:nth-child(2) {
  opacity: 0;
}

#nav.menu-open .hamburger span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile Menu */
.mobile-menu {
  display: none;
  background: var(--surface);
  border-top: 1px solid var(--surface-2);
  padding: 24px 20px;
}

#nav.menu-open .mobile-menu {
  display: block;
}

.mobile-menu ul {
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
}

.mobile-menu ul li {
  border-bottom: 1px solid var(--surface-2);
}

.mobile-menu ul li a {
  display: block;
  padding: 16px 0;
  color: var(--text);
  text-decoration: none;
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  transition: color 0.2s;
}

.mobile-menu ul li a:hover {
  color: var(--accent);
}

/* ============================================
   HERO
   ============================================ */
#hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 80px;
  position: relative;
  overflow: hidden;
}

/* Animated background paths */
#hero-bg-paths {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

#hero-bg-paths svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

/* Subtle radial background glow */
#hero::before {
  content: '';
  position: absolute;
  top: 20%;
  right: 5%;
  width: 720px;
  height: 720px;
  background: radial-gradient(circle, rgba(242, 107, 31, 0.09) 0%, transparent 70%);
  pointer-events: none;
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 42fr) minmax(0, 58fr);
  gap: 48px;
  align-items: center;
  width: 100%;
  max-width: var(--hero-max);
}

.hero-content {
  position: relative;
  z-index: 1;
}

.hero-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(2.4rem, 4.5vw, 4.2rem);
  font-weight: 700;
  line-height: 1.06;
  letter-spacing: -0.025em;
  color: var(--text);
  margin: 20px 0;
  text-wrap: balance;
}

.hero-grad {
  background: linear-gradient(94deg, var(--accent-light) 0%, var(--accent) 60%, #E5551A 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-sub {
  font-size: 1.1rem;
  line-height: 1.7;
  color: var(--text-2);
  max-width: 520px;
  margin-bottom: 40px;
}

.hero-ctas {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.hero-social-proof {
  margin-top: 44px;
  display: flex;
  align-items: baseline;
  gap: 12px;
  flex-wrap: wrap;
  font-family: 'IBM Plex Mono', monospace;
}

.proof-label {
  font-size: 0.68rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

.proof-names {
  font-size: 0.8rem;
  color: var(--text-2);
}

.hero-canvas-wrap {
  position: relative;
  height: 620px;
  /* Bleed past the container toward the right viewport edge (keeping
     a 56px inset) so the graph renders larger; #hero clips overflow */
  margin-right: calc(-1 * ((100vw - min(100vw, var(--hero-max))) / 2 + 40px) + 56px);
  /* Lift the graph so its midline sits on the headline+sub cluster,
     not on the full text block (which is bottom-heavy) */
  margin-top: -64px;
}

#workflow-canvas {
  width: 100%;
  height: 100%;
  display: block;
}

/* ============================================
   STATS
   ============================================ */
#stats {
  background: linear-gradient(180deg, rgba(27, 30, 36, 0.65), rgba(27, 30, 36, 0.4));
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 70px 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 48px;
  text-align: center;
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
}

@media (min-width: 769px) {
  .stat-item + .stat-item {
    border-left: 1px solid var(--line);
  }
}

.stat-row {
  display: flex;
  align-items: baseline;
  gap: 2px;
}

.stat-number {
  font-family: 'IBM Plex Mono', monospace;
  font-size: clamp(2.5rem, 4vw, 3.5rem);
  font-weight: 500;
  color: var(--accent);
  line-height: 1;
}

.stat-suffix {
  font-family: 'IBM Plex Mono', monospace;
  font-size: clamp(1.5rem, 2.4vw, 2.1rem);
  font-weight: 500;
  color: var(--accent);
  line-height: 1;
}

.stat-label {
  font-size: 0.85rem;
  color: var(--text-2);
  margin-top: 8px;
  display: block;
  font-family: 'Inter', sans-serif;
}

/* ============================================
   PROBLEM
   ============================================ */
#problem {
  padding: 100px 0;
}

.problem-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 60px;
}

.problem-card {
  background: var(--sheen), var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 40px 32px;
  transition: border-color 0.3s, background 0.3s;
}

.problem-card:hover {
  border-color: rgba(242, 107, 31, 0.55);
  box-shadow: 0 0 28px rgba(242, 107, 31, 0.09), 0 10px 28px rgba(0, 0, 0, 0.25);
}

.problem-tag {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.66rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--accent);
  background: rgba(242, 107, 31, 0.1);
  border: 1px solid rgba(242, 107, 31, 0.25);
  border-radius: 100px;
  padding: 5px 12px;
  display: inline-block;
  margin-bottom: 24px;
}

.problem-card h3 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 12px;
}

.problem-card p {
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  color: var(--text-2);
  line-height: 1.7;
}

/* ============================================
   SERVICES
   ============================================ */
#services {
  padding: 100px 0;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 60px;
}

.service-card {
  background: var(--sheen), var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 36px 32px;
  cursor: default;
  transform-style: preserve-3d;
  transition: border-color 0.3s, box-shadow 0.3s;
}

.service-card:hover {
  border-color: rgba(242, 107, 31, 0.55);
  box-shadow: 0 0 32px rgba(242, 107, 31, 0.1), 0 12px 32px rgba(0, 0, 0, 0.25);
}

.service-icon {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, rgba(242, 107, 31, 0.16), rgba(242, 107, 31, 0.05));
  border: 1px solid rgba(242, 107, 31, 0.22);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  color: var(--accent);
  flex-shrink: 0;
}

.service-card h3 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 12px;
}

.service-card p {
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  color: var(--text-2);
  line-height: 1.7;
}

/* ============================================
   PROCESS
   ============================================ */
#process {
  padding: 100px 0;
  background: linear-gradient(180deg, rgba(27, 30, 36, 0.65), rgba(27, 30, 36, 0.4));
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.process-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  gap: 32px;
  align-items: start;
  margin-top: 60px;
}

.process-num {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 4rem;
  font-weight: 400;
  color: var(--accent);
  opacity: 0.25;
  display: block;
  line-height: 1;
  margin-bottom: 20px;
}

.process-step h3 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 12px;
}

.process-step p {
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  color: var(--text-2);
  line-height: 1.7;
}

.process-arrow {
  display: flex;
  align-items: center;
  padding-top: 60px;
}

/* ============================================
   CASE STUDIES / WORK
   ============================================ */
#work {
  padding: 100px 0;
}

.cases-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-top: 60px;
}

.case-card {
  background: var(--sheen), var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color 0.3s, transform 0.3s, box-shadow 0.3s;
}

.case-card:hover {
  border-color: rgba(242, 107, 31, 0.55);
  transform: translateY(-4px);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.35), 0 0 32px rgba(242, 107, 31, 0.09);
}

.case-image-wrap {
  position: relative;
  overflow: hidden;
  height: 220px;
  border-bottom: 1px solid var(--line);
}

.case-image-wrap::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 62%, rgba(14, 16, 19, 0.3));
  pointer-events: none;
}

.case-canvas {
  width: 100%;
  height: 100%;
  display: block;
  background: radial-gradient(ellipse at 50% 40%, rgba(242, 107, 31, 0.04), transparent 70%), #14171c;
}

.case-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.case-card:hover .case-image {
  transform: scale(1.07);
}

.case-body {
  padding: 28px;
}

.case-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.case-client {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.75rem;
  color: var(--muted);
}

.case-badge {
  font-size: 0.7rem;
  font-family: 'IBM Plex Mono', monospace;
  padding: 3px 10px;
  border-radius: 20px;
  font-weight: 500;
}

.badge-gtm {
  background: rgba(242, 107, 31, 0.15);
  color: var(--accent);
}

.badge-outreach {
  background: rgba(62, 158, 255, 0.15);
  color: var(--signal);
}

.badge-research {
  background: rgba(139, 92, 246, 0.15);
  color: #8B5CF6;
}

.badge-ai {
  background: rgba(242, 107, 31, 0.15);
  color: var(--accent);
}

.badge-content {
  background: rgba(16, 185, 129, 0.15);
  color: #10B981;
}

.badge-enrich {
  background: var(--surface-2);
  color: var(--text-2);
}

.case-card h3 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 10px;
}

.case-card p {
  font-family: 'Inter', sans-serif;
  font-size: 0.875rem;
  color: var(--text-2);
  line-height: 1.65;
}

.case-outcome {
  display: block;
  margin-top: 16px;
  font-size: 0.85rem;
  color: var(--accent);
  font-family: 'IBM Plex Mono', monospace;
}


/* ============================================
   TECH STACK / MARQUEE
   ============================================ */
#stack {
  padding: 100px 0;
}

.stack-header {
  text-align: center;
}

.marquee-wrap {
  margin-top: 60px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.marquee-row {
  overflow: hidden;
  padding: 4px 0;
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
  mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
}

/* Row 2: flip container so leftward scroll appears rightward */
.marquee-row-reverse {
  transform: scaleX(-1);
}
/* Counter-flip chips so logos and text render correctly */
.marquee-row-reverse .stack-chip {
  transform: scaleX(-1);
}
.marquee-row-reverse .stack-chip:hover {
  transform: scaleX(-1) translateY(-3px);
}

.marquee-track {
  display: flex;
  width: max-content;
  align-items: stretch;
}


.stack-chip {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 132px;
  height: 116px;
  padding: 18px 10px;
  margin-right: 20px;
  background: var(--sheen), var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  flex-shrink: 0;
  cursor: default;
  transition: border-color 0.25s, transform 0.25s, box-shadow 0.25s;
}

.stack-chip:hover {
  border-color: rgba(242, 107, 31, 0.55);
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3), 0 0 20px rgba(242, 107, 31, 0.1);
}

.stack-logo {
  width: 40px;
  height: 40px;
  object-fit: contain;
}

.stack-name {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.68rem;
  color: var(--text);
  white-space: nowrap;
  transition: color 0.25s;
}

.stack-chip:hover .stack-name {
  color: var(--accent-light);
}

/* ============================================
   ABOUT
   ============================================ */
#about {
  padding: 100px 0;
}

.about-intro {
  font-family: 'Inter', sans-serif;
  font-size: 1.05rem;
  color: var(--text-2);
  max-width: 620px;
  line-height: 1.75;
  margin: 24px 0 60px;
}

.about-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}

.about-card {
  background: var(--sheen), var(--surface);
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius);
  padding: 36px;
  display: flex;
  gap: 24px;
  align-items: flex-start;
  transition: box-shadow 0.3s, border-color 0.3s;
}

.about-card:hover {
  border-color: rgba(242, 107, 31, 0.4);
  border-left-color: var(--accent);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.25), 0 0 24px rgba(242, 107, 31, 0.07);
}

.about-avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(242, 107, 31, 0.28), rgba(242, 107, 31, 0.08));
  border: 1px solid rgba(242, 107, 31, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--accent);
  flex-shrink: 0;
  overflow: hidden;
}

.about-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.about-info h3 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 4px;
}

.about-role {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.75rem;
  color: var(--muted);
  display: block;
  margin-bottom: 16px;
}

.about-info p {
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  color: var(--text-2);
  line-height: 1.7;
}

/* ============================================
   CONTACT
   ============================================ */
#contact {
  padding: 100px 0;
  background: linear-gradient(180deg, rgba(27, 30, 36, 0.65), rgba(27, 30, 36, 0.4));
  border-top: 1px solid var(--line);
}

.contact-intro {
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  color: var(--text-2);
  max-width: 560px;
  line-height: 1.75;
  margin: 24px 0 56px;
}

/* Calendar card full-width first, message form stacked below —
   the Cal.com embed auto-grows too tall to sit beside the short form */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}

.contact-grid .contact-card:not(.contact-card--primary) {
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
}

.contact-card {
  background: var(--sheen), var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 40px;
}

.contact-card--primary {
  border-color: rgba(242, 107, 31, 0.55);
  box-shadow: 0 0 56px rgba(242, 107, 31, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.contact-card h3 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 12px;
}

.contact-card > p {
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  color: var(--text-2);
  line-height: 1.7;
  margin-bottom: 28px;
}

.contact-features {
  list-style: none;
  margin: 0 0 32px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.contact-features li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  color: var(--text-2);
}

.contact-features li svg {
  color: var(--accent);
  flex-shrink: 0;
}

/* ---- Form ---- */
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 0;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 16px;
}

.form-group label {
  font-family: 'Inter', sans-serif;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-2);
}

.form-group input,
.form-group textarea {
  background: var(--bg);
  border: 1px solid var(--surface-2);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  color: var(--text);
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  transition: border-color 0.2s, box-shadow 0.2s;
  width: 100%;
  appearance: none;
  -webkit-appearance: none;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--muted);
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--accent);
  outline: none;
  box-shadow: 0 0 0 3px rgba(242, 107, 31, 0.15);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.form-group input:disabled,
.form-group textarea:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.contact-card .btn-ghost {
  margin-top: 4px;
}

.form-status {
  margin-top: 16px;
  font-family: 'Inter', sans-serif;
  font-size: 0.85rem;
  text-align: center;
  min-height: 20px;
}

.form-status.success {
  color: #10B981;
}

.form-status.error {
  color: #EF4444;
}

/* ============================================
   FOOTER
   ============================================ */
#footer {
  background: var(--bg);
  border-top: 1px solid var(--line);
  padding: 60px 0 32px;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 48px;
  flex-wrap: wrap;
  gap: 32px;
}

.footer-logo {
  height: 32px;
  width: auto;
}

.footer-brand p {
  font-family: 'Inter', sans-serif;
  font-size: 0.85rem;
  color: var(--muted);
  margin-top: 10px;
}

.footer-nav {
  display: flex;
  gap: 32px;
  flex-wrap: wrap;
}

.footer-nav a {
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  color: var(--text-2);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-nav a:hover {
  color: var(--accent);
}

.footer-social {
  display: flex;
  gap: 16px;
}

.social-link {
  color: var(--text-2);
  transition: color 0.2s;
  display: flex;
  align-items: center;
}

.social-link:hover {
  color: var(--accent);
}

.footer-copy {
  font-family: 'Inter', sans-serif;
  font-size: 0.8rem;
  color: var(--muted);
  text-align: center;
  margin-top: 32px;
  border-top: 1px solid var(--line);
  padding-top: 24px;
}

/* ============================================
   RESPONSIVE — 1024px
   ============================================ */
@media (max-width: 1024px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .process-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .process-arrow {
    display: none;
  }

  .hero-inner {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 40px;
  }

  .stats-grid {
    gap: 32px;
  }
}

/* ============================================
   RESPONSIVE — 768px
   ============================================ */
@media (max-width: 768px) {
  .container {
    padding: 0 20px;
  }

  section {
    padding: 80px 0;
  }

  /* Nav */
  .nav-links {
    display: none;
  }

  .hamburger {
    display: flex;
  }

  .nav-cta {
    display: none;
  }

  /* Hero */
  #hero {
    padding-top: 80px;
    padding-bottom: 60px;
    min-height: auto;
  }

  .hero-inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .hero-canvas-wrap {
    display: none;
  }

  .hero-title {
    font-size: 2.2rem;
  }

  .hero-sub {
    font-size: 1rem;
  }

  /* Stats */
  #stats {
    padding: 60px 0;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
  }

  /* Grids */
  .problem-grid {
    grid-template-columns: 1fr;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }

  .cases-grid {
    grid-template-columns: 1fr;
  }

  .about-grid {
    grid-template-columns: 1fr;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  /* Footer */
  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
  }

  .footer-nav {
    flex-wrap: wrap;
    gap: 16px;
  }

  /* Stack section */
  #stack {
    padding: 80px 0;
  }

  /* Process */
  #process {
    padding: 80px 0;
  }

  .process-num {
    font-size: 3rem;
  }

  /* About */
  .about-card {
    flex-direction: column;
    gap: 16px;
  }

  /* Contact */
  .contact-card {
    padding: 28px 24px;
  }
}

/* ============================================
   RESPONSIVE — 480px
   ============================================ */
@media (max-width: 480px) {
  .hero-title {
    font-size: 1.9rem;
  }

  .hero-ctas {
    flex-direction: column;
  }

  .hero-ctas .btn {
    width: 100%;
    justify-content: center;
  }

  .stats-grid {
    grid-template-columns: 1fr 1fr;
    gap: 24px;
  }

  .section-heading {
    font-size: 1.8rem;
  }
}

/* ============================================
   REDUCED MOTION
   ============================================ */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  html {
    scroll-behavior: auto;
  }
}

/* ============================================
   MULTI-PAGE COMPONENTS (2026-07 site split)
   ============================================ */

/* ---- Active nav item ---- */
.nav-links a[aria-current="page"] {
  color: var(--text);
}

.nav-links a[aria-current="page"]::after {
  right: 0;
}

/* ---- Page hero (subpages) ---- */
.page-hero {
  position: relative;
  padding: 180px 0 56px;
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  top: -200px;
  right: 10%;
  width: 640px;
  height: 640px;
  background: radial-gradient(circle, rgba(242, 107, 31, 0.07) 0%, transparent 70%);
  pointer-events: none;
}

.page-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(2.4rem, 4vw, 3.4rem);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.025em;
  color: var(--text);
  margin-top: 16px;
  text-wrap: balance;
}

/* ---- Services teaser (homepage) ---- */
.teaser-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 48px;
}

.teaser-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 20px;
  background: var(--sheen), var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: border-color 0.25s, box-shadow 0.25s, transform 0.25s;
}

.teaser-card:hover {
  border-color: rgba(242, 107, 31, 0.55);
  box-shadow: 0 0 24px rgba(242, 107, 31, 0.08);
  transform: translateY(-2px);
}

.teaser-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(242, 107, 31, 0.16), rgba(242, 107, 31, 0.05));
  border: 1px solid rgba(242, 107, 31, 0.22);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  flex-shrink: 0;
}

.teaser-card span {
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text);
}

/* ---- Arrow link ("View all work") ---- */
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 40px;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.85rem;
  color: var(--accent);
  transition: color 0.2s, gap 0.2s;
}

.link-arrow:hover {
  color: var(--accent-light);
  gap: 12px;
}

/* ---- CTA band (page bottoms) ---- */
.cta-band {
  position: relative;
  padding: 96px 0;
  background: linear-gradient(180deg, rgba(27, 30, 36, 0.65), rgba(27, 30, 36, 0.4));
  border-top: 1px solid var(--line);
  text-align: center;
  overflow: hidden;
}

.cta-band::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 720px;
  height: 480px;
  background: radial-gradient(ellipse, rgba(242, 107, 31, 0.08) 0%, transparent 70%);
  pointer-events: none;
}

.cta-band .section-lede {
  margin-left: auto;
  margin-right: auto;
}

.cta-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 36px;
}

/* ---- Customer journey timeline (services page) ---- */
.journey {
  position: relative;
  max-width: 780px;
  margin-top: 64px;
}

.journey::before {
  content: '';
  position: absolute;
  left: 27px;
  top: 12px;
  bottom: 40px;
  width: 1px;
  background: linear-gradient(180deg,
    rgba(242, 107, 31, 0.5),
    var(--line-strong) 25%,
    var(--line-strong) 75%,
    rgba(242, 107, 31, 0.5));
}

.journey-step {
  position: relative;
  display: flex;
  gap: 26px;
  padding-bottom: 52px;
}

.journey-step:last-child {
  padding-bottom: 0;
}

.journey-icon {
  position: relative;
  z-index: 1;
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(242, 107, 31, 0.16), rgba(242, 107, 31, 0.05)), var(--surface);
  border: 1px solid rgba(242, 107, 31, 0.28);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-light);
  flex-shrink: 0;
}

.journey-body {
  padding-top: 4px;
}

.journey-num {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.68rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--accent);
  display: block;
  margin-bottom: 6px;
}

.journey-body h3 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 10px;
}

.journey-body p {
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  color: var(--text-2);
  line-height: 1.7;
  max-width: 62ch;
}

/* ---- Pricing tiers ---- */
.tiers-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 64px;
  align-items: stretch;
}

.tier-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--sheen), var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 40px 32px 32px;
  transition: border-color 0.3s, box-shadow 0.3s;
}

.tier-card:hover {
  border-color: rgba(242, 107, 31, 0.45);
  box-shadow: 0 0 28px rgba(242, 107, 31, 0.07);
}

.tier-card--featured {
  border-color: rgba(242, 107, 31, 0.55);
  box-shadow: 0 0 48px rgba(242, 107, 31, 0.1);
}

.tier-badge {
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%);
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.66rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--bg);
  background: var(--accent);
  border-radius: 100px;
  padding: 5px 14px;
  white-space: nowrap;
}

.tier-name {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--text);
}

.tier-scope {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
  display: block;
  margin-top: 4px;
}

.tier-price {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 2.4rem;
  font-weight: 500;
  color: var(--accent);
  margin-top: 22px;
  line-height: 1;
}

.tier-price span {
  font-size: 1rem;
  color: var(--text);
}

.tier-note {
  font-family: 'Inter', sans-serif;
  font-size: 0.8rem;
  color: var(--text);
  margin-top: 6px;
}

.tier-desc {
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  color: var(--text-2);
  line-height: 1.65;
  margin-top: 18px;
}

.tier-features {
  list-style: none;
  margin: 22px 0 0;
  padding: 22px 0 0;
  border-top: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 11px;
  flex: 1;
}

.tier-features li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Inter', sans-serif;
  font-size: 0.88rem;
  color: var(--text-2);
}

.tier-features li svg {
  color: var(--accent);
  flex-shrink: 0;
}

.tier-card .btn {
  margin-top: 28px;
}

/* ---- FAQ accordion ---- */
.faq-list {
  max-width: 780px;
  margin-top: 56px;
  border-top: 1px solid var(--line);
}

.faq-list details {
  border-bottom: 1px solid var(--line);
}

.faq-list summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 22px 4px;
  cursor: pointer;
  list-style: none;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.02rem;
  font-weight: 600;
  color: var(--text);
  transition: color 0.2s;
}

.faq-list summary::-webkit-details-marker {
  display: none;
}

.faq-list summary::after {
  content: '+';
  font-family: 'IBM Plex Mono', monospace;
  font-size: 1.35rem;
  font-weight: 400;
  color: var(--accent);
  flex-shrink: 0;
  transition: transform 0.25s;
  line-height: 1;
}

.faq-list details[open] summary::after {
  transform: rotate(45deg);
}

.faq-list summary:hover {
  color: var(--accent-light);
}

.faq-list details p {
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  color: var(--text-2);
  line-height: 1.7;
  padding: 0 40px 24px 4px;
  max-width: 70ch;
}

/* ---- Cal.com embed (contact page) ----
   NOTE: Cal's injected iframe uses class "cal-embed" and Cal ships its own
   .cal-embed stylesheet — our wrapper must NOT reuse that class name.
   Full-bleed inside the card: Cal's desktop booker needs ~1100px, so the
   embed swallows the card's side padding via negative margins. */
.cal-embed-shell {
  background: var(--sheen), var(--surface);
  border-top: 1px solid var(--line);
  border-radius: 0 0 calc(var(--radius) - 1px) calc(var(--radius) - 1px);
  overflow: hidden;
  min-height: 570px;
  margin: 0 -40px -40px;
}

/* Cal's booker breaks between ~768px and ~1100px iframe width (desktop grid
   that doesn't fit → internal scrollbars). Below 1200px viewport, cap the
   embed under Cal's mobile breakpoint so it uses its stacked layout. */
@media (max-width: 1199px) {
  .cal-embed-shell {
    max-width: 720px;
    margin: 0 auto;
    border: 1px solid var(--line);
    border-radius: var(--radius);
  }
}

.cal-embed-fallback {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
  min-height: 580px;
  padding: 40px;
  text-align: center;
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  color: var(--text-2);
}

/* ---- Client roster (work page) ---- */
.roster {
  margin-top: 64px;
  text-align: center;
}

.roster-label {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--muted);
  display: block;
  margin-bottom: 14px;
}

.roster-names {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.9rem;
  color: var(--text-2);
  line-height: 2;
}

/* ---- Values row (about page) ---- */
.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 48px;
}

.value-card {
  background: var(--sheen), var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 28px;
  transition: border-color 0.25s;
}

.value-card:hover {
  border-color: rgba(242, 107, 31, 0.4);
}

.value-card h3 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.02rem;
  font-weight: 600;
  color: var(--text);
  margin: 14px 0 8px;
}

.value-card p {
  font-family: 'Inter', sans-serif;
  font-size: 0.88rem;
  color: var(--text-2);
  line-height: 1.65;
}

/* ---- Multi-page responsive ---- */
@media (max-width: 1024px) {
  .teaser-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .tiers-grid {
    grid-template-columns: 1fr;
    max-width: 540px;
    margin-left: auto;
    margin-right: auto;
  }

  .values-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .page-hero {
    padding: 140px 0 40px;
  }

  .teaser-grid {
    grid-template-columns: 1fr;
  }

  .values-grid {
    grid-template-columns: 1fr;
  }

  .journey::before {
    left: 23px;
  }

  .journey-icon {
    width: 48px;
    height: 48px;
  }

  .cta-band {
    padding: 72px 0;
  }
}

/* Section directly after a page-hero: hero already provides the heading */
.section-flush {
  padding-top: 24px;
}

.section-flush .services-grid,
.section-flush .cases-grid,
.section-flush .tiers-grid {
  margin-top: 0;
}

/* ---- Legal pages (privacy / terms) ---- */
.legal {
  max-width: 780px;
}

.legal-updated {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
  margin-bottom: 8px;
}

.legal h2 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--text);
  margin: 44px 0 14px;
  padding-top: 30px;
  border-top: 1px solid var(--line);
}

.legal h3 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text);
  margin: 26px 0 10px;
}

.legal p,
.legal li {
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  color: var(--text-2);
  line-height: 1.75;
}

.legal p {
  margin-bottom: 14px;
}

.legal ul {
  list-style: disc;
  padding-left: 22px;
  margin-bottom: 14px;
}

.legal li {
  margin-bottom: 8px;
}

.legal strong {
  color: var(--text);
  font-weight: 600;
}

.legal a {
  color: var(--accent);
  transition: color 0.2s;
}

.legal a:hover {
  color: var(--accent-light);
}

.section-lede a {
  color: var(--accent);
  transition: color 0.2s;
}

.section-lede a:hover {
  color: var(--accent-light);
}

/* ---- Footer bottom row with legal links ---- */
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 32px;
  border-top: 1px solid var(--line);
  padding-top: 24px;
}

.footer-bottom .footer-copy {
  margin-top: 0;
  border-top: none;
  padding-top: 0;
  text-align: left;
}

.footer-legal {
  display: flex;
  gap: 24px;
}

.footer-legal a {
  font-family: 'Inter', sans-serif;
  font-size: 0.8rem;
  color: var(--muted);
  transition: color 0.2s;
}

.footer-legal a:hover {
  color: var(--accent);
}

/* Hide the Cal.com fallback once the real calendar iframe has loaded */
.cal-embed-shell:has(iframe) .cal-embed-fallback {
  display: none;
}

/* Six nav items need tighter tracking on smaller desktops */
@media (max-width: 1180px) {
  .nav-links {
    gap: 22px;
  }

  .nav-links a {
    font-size: 0.85rem;
  }
}

/* ---- Case study category filters ---- */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 44px;
}

.filter-pill {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.68rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-2);
  background: var(--sheen), var(--surface);
  border: 1px solid var(--line);
  border-radius: 100px;
  padding: 8px 16px;
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}

.filter-pill:hover {
  color: var(--accent-light);
  border-color: rgba(242, 107, 31, 0.45);
}

.filter-pill[aria-pressed="true"] {
  color: var(--accent);
  background: rgba(242, 107, 31, 0.12);
  border-color: rgba(242, 107, 31, 0.55);
}

.case-card.is-hidden {
  display: none;
}
