/* ═══════════════════════════════════════════════════════
   SITEHERO — DESIGN SYSTEM v4
   Clash Display · Inter · JetBrains Mono
   Cinematic Dark · Editorial Agency

   Clash Display (Fontshare) + Inter (Google Fonts) are loaded via <link>
   tags in each page's <head> (see app.html etc.) rather than @import here,
   to avoid a request waterfall. JetBrains Mono still needs an import since
   no page links it directly.
   ═══════════════════════════════════════════════════════ */

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

/* ── TOKENS ──────────────────────────────────────────── */
:root {
  /* Backgrounds */
  --bg-base:     #090909;
  --bg-surface:  #111111;
  --bg-elevated: #1a1a1a;
  --bg-hover:    #222222;

  /* Accent */
  --accent:        #4f8eff;
  --accent-hover:  #6b9fff;
  --accent-dim:    rgba(79,142,255,0.10);
  --accent-border: rgba(79,142,255,0.25);

  /* Text */
  --text-primary:   #ffffff;
  --text-secondary: #a0a0a0;
  --text-muted:     #555555;

  /* Borders */
  --border:       rgba(255,255,255,0.07);
  --border-hover: rgba(255,255,255,0.15);

  /* Typography */
  --font-display: 'ClashDisplay-Variable', 'Clash Display', system-ui, sans-serif;
  --font-body:    'Inter', system-ui, sans-serif;
  --font-mono:    'JetBrains Mono', 'Fira Code', monospace;

  /* Motion */
  --ease:       cubic-bezier(0.16, 1, 0.3, 1);
  --dur:        150ms;
  --transition: 150ms cubic-bezier(0.16, 1, 0.3, 1);

  /* Radius */
  --radius: 6px;

  /* Spacing scale */
  --sp-1:  4px;
  --sp-2:  8px;
  --sp-3:  12px;
  --sp-4:  16px;
  --sp-6:  24px;
  --sp-8:  32px;
  --sp-12: 48px;
  --sp-16: 64px;
  --sp-24: 96px;
  --sp-32: 128px;
}

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

html {
  background: var(--bg-base);
  color-scheme: dark;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  background: var(--bg-base);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  padding-top: 60px;
}

img, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; border: none; background: none; font: inherit; color: inherit; }
ul, ol { list-style: none; }
select { font: inherit; }

/* ── TYPOGRAPHY ──────────────────────────────────────── */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  color: var(--text-primary);
  text-wrap: balance;
}

/* Heading refinements for Clash Display - it has more character than the
   previous display font at large sizes, and its 700 weight (the heaviest
   cut Fontshare serves - there is no 800/900) already reads as heavy thanks
   to its geometric design, so weight/tracking/line-height are tuned per
   level accordingly. */
h1, .hero-headline {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 0.95;
  font-size: clamp(72px, 9vw, 130px);
}

h2, .section-title, .section-headline {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.05;
}

h3 {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.01em;
}

body, p, li, span, input, textarea, select, button {
  font-family: var(--font-body);
  font-weight: 400;
}

p { color: var(--text-secondary); line-height: 1.7; }

em { font-style: italic; color: var(--text-primary); }

strong { color: var(--text-primary); font-weight: 600; }

/* ── LAYOUT ──────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 var(--sp-6);
}

.section {
  padding: var(--sp-24) 0;
}

.section-head-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--sp-8);
  margin-bottom: var(--sp-16);
  flex-wrap: wrap;
}

/* ── SECTION LABELS & TITLES ─────────────────────────── */
.section-label {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: var(--sp-3);
}

.section-label::before {
  content: '';
  display: inline-block;
  width: 16px;
  height: 1px;
  background: var(--accent);
  opacity: 0.5;
  flex-shrink: 0;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(48px, 5vw, 72px);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: var(--text-primary);
  margin: 0;
}

.page-hero .section-title {
  font-size: clamp(40px, 4vw, 64px);
  font-weight: 700;
}

.section-sub {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.7;
  max-width: 400px;
}

/* ── VISUALLY HIDDEN ─────────────────────────────────── */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

/* ── BUTTONS ─────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  padding: var(--sp-3) var(--sp-4);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  border-radius: var(--radius);
  transition:
    background var(--transition),
    color var(--transition),
    border-color var(--transition),
    transform var(--transition),
    box-shadow var(--transition);
  cursor: pointer;
  white-space: nowrap;
  text-decoration: none;
  border: 1px solid transparent;
  touch-action: manipulation;
}

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

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

.btn-primary:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
}

.btn-ghost {
  background: transparent;
  color: var(--text-primary);
  border-color: var(--border-hover);
}

.btn-ghost:hover {
  background: var(--bg-hover);
  border-color: var(--border-hover);
  transform: translateY(-1px);
}

/* ── TAG / BADGE ─────────────────────────────────────── */
.tag {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  padding: var(--sp-1) var(--sp-3);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-dim);
  border: 1px solid var(--accent-border);
  border-radius: 4px;
}

/* ── SKIP LINK ───────────────────────────────────────── */
.skip-link {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
  z-index: 10000;
  background: var(--accent);
  color: #ffffff;
  padding: var(--sp-2) var(--sp-4);
  font-weight: 500;
  font-size: 14px;
  border-radius: 0 0 6px 0;
  font-family: var(--font-body);
}

.skip-link:focus {
  position: fixed;
  left: 0;
  top: 0;
  width: auto;
  height: auto;
  overflow: visible;
}

/* ── NAVIGATION ──────────────────────────────────────── */
.nav-wrap {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 900;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition:
    background var(--transition),
    border-color var(--transition),
    backdrop-filter var(--transition);
}

.nav-wrap.scrolled {
  background: rgba(9,9,9,0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom-color: var(--border);
}

.nav-inner {
  display: flex;
  align-items: center;
  height: 60px;
  gap: var(--sp-8);
}

/* Logo */
.logo {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-1);
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.05em;
  text-decoration: none;
  flex-shrink: 0;
  line-height: 1;
}

.logo .site,
.logo .hero {
  font-family: inherit;
  font-weight: inherit;
}

.logo .site { color: var(--text-primary); }
.logo .hero { color: var(--accent); }

.logo-dot {
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 50%;
  margin-left: 2px;
  flex-shrink: 0;
}

/* Desktop nav links */
.nav-links {
  display: flex;
  align-items: center;
  gap: var(--sp-1);
  margin-left: auto;
}

.nav-links a {
  display: inline-flex;
  align-items: center;
  padding: 6px var(--sp-3);
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: var(--text-secondary);
  border-radius: 4px;
  transition:
    color var(--transition),
    background var(--transition);
  text-decoration: none;
  font-family: var(--font-body);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text-primary);
  background: var(--bg-elevated);
}

.nav-links a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* CTA button in nav */
.nav-cta {
  display: inline-flex;
  align-items: center;
  padding: var(--sp-2) var(--sp-4);
  font-size: 13.5px;
  font-weight: 500;
  color: white;
  background: var(--accent);
  border: none;
  border-radius: var(--radius);
  text-decoration: none;
  flex-shrink: 0;
  cursor: pointer;
  font-family: var(--font-body);
  transition:
    background var(--transition),
    border-color var(--transition);
}

.nav-cta:hover {
  background: var(--accent-hover);
  color: white;
}

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

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  border-radius: 4px;
  border: 1px solid var(--border);
  margin-left: auto;
  flex-shrink: 0;
  transition: border-color var(--transition);
}

.nav-toggle:hover { border-color: var(--border-hover); }

.nav-toggle:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 1.5px;
  background: var(--text-primary);
  border-radius: 1px;
  transform-origin: center;
  transition:
    transform var(--transition),
    opacity var(--transition);
}

.nav-toggle.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* Mobile menu */
.mobile-menu {
  display: none;
  position: fixed;
  inset: 60px 0 0;
  background: var(--bg-base) !important;
  padding: var(--sp-6);
  flex-direction: column;
  gap: var(--sp-1);
  border-top: 1px solid var(--border);
  z-index: 899;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition);
}

.mobile-menu.open {
  opacity: 1;
  pointer-events: all;
}

.mobile-menu a {
  display: flex;
  align-items: center;
  padding: 14px var(--sp-3);
  font-size: 15px;
  font-family: var(--font-body);
  color: var(--text-secondary);
  border-radius: 4px;
  transition:
    color var(--transition),
    background var(--transition);
  text-decoration: none;
  min-height: 44px;
}

.mobile-menu a:hover,
.mobile-menu a.active {
  color: var(--text-primary);
  background: var(--bg-elevated);
}

.mobile-menu a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.mobile-cta {
  margin-top: var(--sp-2);
  background: var(--accent) !important;
  color: #ffffff !important;
  justify-content: center !important;
  font-weight: 500;
  border-radius: var(--radius) !important;
  min-height: 48px;
}

/* ── CURSOR ──────────────────────────────────────────── */
* { cursor: auto !important; }
a, button, [role="button"] { cursor: pointer !important; }

/* ── HERO ────────────────────────────────────────────── */
.hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: calc(100svh - 60px);
  padding: 140px 0 120px;
  overflow: hidden;
}

/* Layer 1 — dot grid + pulsing glow */
.hero-grid-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image: radial-gradient(circle, rgba(255,255,255,0.06) 1px, transparent 1px);
  background-size: 32px 32px;
  pointer-events: none;
}

.hero-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 0;
  width: 600px;
  height: 600px;
  transform: translate(-50%, -55%);
  background: radial-gradient(
    ellipse at center,
    var(--accent-dim) 0%,
    rgba(79,142,255,0.04) 40%,
    transparent 70%
  );
  pointer-events: none;
  animation: glowPulse 4s ease-in-out infinite;
  will-change: transform, opacity;
}

@keyframes glowPulse {
  0%, 100% { opacity: 0.8; transform: translate(-50%, -55%) scale(1); }
  50%       { opacity: 1;   transform: translate(-50%, -55%) scale(1.08); }
}

/* Layer 2 — animated SVG node network */
.hero-network {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  opacity: 0.4;
  pointer-events: none;
}

/* Layer 3 — content */
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 720px;
}

/* Hidden until GSAP entrance timeline runs — prevents flash of final state on load */
.hero-eyebrow,
.hero-headline,
.hero-sub,
.hero-actions,
.hero-stats,
.scroll-hint {
  opacity: 0;
  visibility: hidden;
}

/* These must always end up visible: the entrance timeline's gsap.set(opacity:0)
   followed by a .from({opacity:0}) tween on the same elements collapses to a
   0→0 no-op, leaving them permanently hidden. !important overrides both the
   pre-hide rule above and GSAP's inline opacity so the content is never lost,
   regardless of whether the entrance animation completes. */
.hero-eyebrow,
.hero-sub,
.hero-actions,
.hero-stats,
.scroll-hint {
  opacity: 1 !important;
  visibility: visible !important;
}

.hero-eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 28px;
}

.hero-eyebrow::before {
  content: '';
  display: block;
  width: 32px;
  height: 1px;
  background: var(--accent);
  flex-shrink: 0;
}

.eyebrow-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  display: inline-block;
  flex-shrink: 0;
  animation: dotPulse 2s ease-in-out infinite;
}

@keyframes dotPulse {
  0%, 100% { opacity: 1;   transform: scale(1); }
  50%       { opacity: 0.4; transform: scale(0.7); }
}

.hero-headline {
  font-family: var(--font-display);
  font-size: clamp(72px, 9vw, 130px);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 0.95;
  text-transform: none;
  color: var(--text-primary);
  margin-bottom: var(--sp-6);
}

.word-cycle {
  color: var(--accent);
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 700;
  letter-spacing: -0.02em;
  display: inline-block;
  min-width: 220px;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.hero-sub {
  font-size: 20px;
  color: var(--text-secondary);
  max-width: 560px;
  line-height: 1.8;
  margin-top: 24px;
  margin-bottom: 48px;
  font-family: var(--font-body);
  text-wrap: pretty;
}

.hero-section.is-offscreen .hero-glow,
.hero-section.is-offscreen .eyebrow-dot,
.hero-section.is-offscreen .scroll-line {
  animation-play-state: paused;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  flex-wrap: wrap;
  margin-bottom: var(--sp-12);
}

.btn-arrow {
  display: inline-flex;
  transition: transform 150ms ease;
}

.btn-primary:hover {
  box-shadow: 0 8px 24px rgba(79,142,255,0.35);
}

.btn-primary:hover .btn-arrow {
  transform: translateX(4px);
}

.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--sp-6);
  max-width: 600px;
  margin-top: 64px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
}

.stat-num {
  font-family: var(--font-display);
  font-size: clamp(28px, 3vw, 42px);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  line-height: 1;
  margin-bottom: 6px;
  font-variant-numeric: tabular-nums;
}

.stat-lbl {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* Scroll hint */
.scroll-hint {
  position: absolute;
  bottom: var(--sp-8);
  left: 50%;
  z-index: 2;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

/* Collides with the 2x2 hero-stats grid on mobile - hide it there.
   Placed immediately after the base rule so it wins the cascade. */
@media (max-width: 768px) {
  .scroll-hint,
  .scroll-indicator,
  [class*="scroll-hint"] {
    display: none !important;
  }
}

.scroll-label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.scroll-line {
  width: 1px;
  height: 48px;
  background: linear-gradient(var(--accent), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
  0%, 100% { opacity: 0.3; transform: scaleY(1); }
  50%       { opacity: 1;   transform: scaleY(1.1); }
}

/* ── TICKER ──────────────────────────────────────────── */
.ticker-outer {
  overflow: hidden;
  width: 100%;
  background: var(--bg-surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 16px 0;
}

.ticker-inner {
  display: flex;
  width: max-content;
  gap: 0;
  animation: tickerMove 28s linear infinite;
  will-change: transform;
}

.ticker-item {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-secondary);
  white-space: nowrap;
  padding: 0 32px;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  line-height: 1;
}

.ticker-sep {
  color: var(--accent);
  font-size: 10px;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  line-height: 1;
  padding: 0 4px;
}

@keyframes tickerMove {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ── SERVICE CARDS ───────────────────────────────────── */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  overflow: visible;
}

.service-card {
  position: relative;
  background: linear-gradient(160deg, rgb(16,29,56) 0%, rgb(10,18,32) 100%);
  border: 1px solid rgba(79,142,255,0.14);
  border-radius: var(--radius);
  box-shadow: rgba(0,0,0,0.3) 0px 4px 24px,
              rgba(79,142,255,0.05) 0px 1px 0px inset;
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
  overflow: hidden;
  transition: transform 300ms var(--ease),
              border-color 300ms var(--ease),
              box-shadow 300ms var(--ease);
}

.service-card::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  width: 2px;
  height: 100%;
  border-radius: var(--radius) 0 0 var(--radius);
  background: var(--accent);
  box-shadow: rgba(79,142,255,0.4) 2px 0px 12px;
}

.service-card:hover {
  transform: translateY(-3px);
  border-color: rgba(79,142,255,0.3);
  box-shadow: rgba(0,0,0,0.4) 0px 8px 32px,
              rgba(79,142,255,0.08) 0px 1px 0px inset;
}

.sc-num {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  color: var(--text-muted);
}

.sc-icon {
  font-size: 32px;
  color: var(--accent);
  line-height: 1;
}

.service-card h3 {
  font-size: clamp(20px, 2vw, 26px);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: var(--text-primary);
}

.service-card p {
  font-size: 13.5px;
  color: var(--text-secondary);
  line-height: 1.65;
  flex: 1;
}

.sc-arrow {
  font-size: 16px;
  color: var(--text-muted);
  margin-top: auto;
  transition:
    color var(--transition),
    transform var(--transition);
}

.service-card:hover .sc-arrow {
  color: var(--accent);
  transform: translateX(4px);
}

/* ── PORTFOLIO GRID ──────────────────────────────────── */
.portfolio-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: var(--sp-3);
}

.portfolio-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--bg-surface);
  cursor: pointer;
  border: 1px solid var(--border);
  transition: border-color var(--transition);
}

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

.portfolio-card.tall {
  grid-row: span 1;
}

.pc-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 400ms var(--ease);
  min-height: 280px;
}

.portfolio-card.tall .pc-img {
  min-height: 360px;
}

.portfolio-card:hover .pc-img {
  transform: scale(1.04);
}

.pc-link {
  position: absolute;
  top: var(--sp-4);
  right: var(--sp-4);
  width: 32px;
  height: 32px;
  background: rgba(9,9,9,0.85);
  border: 1px solid var(--border-hover);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  color: var(--text-primary);
  opacity: 0;
  transition: opacity var(--transition);
}

.portfolio-card:hover .pc-link {
  opacity: 1;
}

.pc-info {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 48px var(--sp-4) var(--sp-4);
  background: linear-gradient(
    to top,
    rgba(9,9,9,0.96) 0%,
    rgba(9,9,9,0.6) 55%,
    transparent 100%
  );
}

.pc-tag {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: var(--sp-1);
}

.pc-title {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  margin-bottom: 2px;
}

.pc-meta {
  font-size: 12px;
  color: var(--text-secondary);
}

.portfolio-card-link {
  display: block;
  text-decoration: none;
  position: relative;
  cursor: pointer;
}

.portfolio-card-link:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.card-overlay {
  position: absolute;
  inset: 0;
  background: rgba(9,9,9,0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: var(--sp-4);
  opacity: 0;
  transition: opacity var(--transition);
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--accent);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.portfolio-card-link:hover .card-overlay,
.portfolio-card-link:focus-visible .card-overlay {
  opacity: 1;
}

/* ── STEP CARDS ──────────────────────────────────────── */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.step-card {
  position: relative;
  background: var(--bg-base);
  padding: var(--sp-8);
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
  overflow: hidden;
  transition: background var(--transition);
}

.step-card:hover {
  background: var(--bg-elevated);
}

.step-num {
  font-family: var(--font-display);
  font-size: clamp(48px, 6vw, 80px);
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
  opacity: 0.15;
  letter-spacing: -0.04em;
  margin-bottom: 16px;
  display: block;
  pointer-events: none;
}

.step-card h3 {
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

.step-card p {
  font-size: 13.5px;
  color: var(--text-secondary);
  line-height: 1.65;
}

/* ── PRICING ─────────────────────────────────────────── */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: visible;
}

/* overflow:visible above lets the Most Popular badge render above the card;
   round the outer corners explicitly since the container clip that used to
   do this job is gone. */
.pricing-grid > .price-card:first-child {
  border-radius: var(--radius) 0 0 var(--radius);
}

.pricing-grid > .price-card:last-child {
  border-radius: 0 var(--radius) var(--radius) 0;
}

.price-card {
  position: relative;
  background: var(--bg-base);
  padding: var(--sp-8);
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
  transition:
    background var(--transition),
    transform var(--transition),
    box-shadow var(--transition);
}

.price-card:hover {
  background: var(--bg-elevated);
  transform: translateY(-4px);
  box-shadow: 0 0 0 1px var(--accent), 0 20px 40px rgba(79,142,255,0.1);
  z-index: 1;
}

.featured-badge {
  position: absolute;
  top: -1px;
  left: 50%;
  transform: translateX(-50%) translateY(-100%);
  padding: 3px var(--sp-3);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #fff;
  background: var(--accent);
  border-radius: 4px 4px 0 0;
  white-space: nowrap;
}

.price-name {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.price-amount {
  font-family: var(--font-display);
  font-size: 54px;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--text-primary);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.price-amount sup {
  font-family: var(--font-body);
  font-size: 22px;
  font-weight: 700;
  vertical-align: top;
  margin-top: var(--sp-2);
  display: inline-block;
}

/* Some display grotesque fonts render £ as a garbled glyph at display weights —
   the body font renders it correctly, so currency symbols use it instead. */
.price-currency {
  font-family: var(--font-body);
}

.price-desc {
  font-size: 13.5px;
  color: var(--text-secondary);
  line-height: 1.65;
  font-family: var(--font-body);
}

.price-divider {
  height: 1px;
  background: var(--border);
}

.price-features {
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
  flex: 1;
}

.price-feature {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.45;
  font-family: var(--font-body);
}

.price-feature.off {
  opacity: 0.28;
}

.pf-icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  color: var(--accent);
  margin-top: 1px;
}

.price-feature.off .pf-icon {
  color: var(--text-muted);
}

/* ── TESTIMONIALS ────────────────────────────────────── */
.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-3);
}

.tcard {
  background: linear-gradient(160deg, rgb(16,29,56) 0%, rgb(10,18,32) 100%);
  border: 1px solid rgba(79,142,255,0.14);
  border-radius: var(--radius);
  box-shadow: rgba(0,0,0,0.3) 0px 4px 24px,
              rgba(79,142,255,0.05) 0px 1px 0px inset;
  padding: 36px;
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
  transition:
    border-color var(--transition),
    box-shadow var(--transition),
    transform var(--transition);
}

.tcard-mark {
  display: block;
  font-family: Georgia, serif;
  font-size: 64px;
  color: var(--accent);
  opacity: 0.3;
  line-height: 0.8;
  margin-bottom: 12px;
  font-weight: 400;
}

.tcard:hover {
  border-color: rgba(79,142,255,0.3);
  box-shadow: rgba(0,0,0,0.4) 0px 8px 32px,
              rgba(79,142,255,0.08) 0px 1px 0px inset;
  transform: translateY(-4px);
}

.tcard-stars {
  color: var(--accent);
  font-size: 13px;
  letter-spacing: 2px;
}

.tcard-quote {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.75;
  flex: 1;
  font-family: var(--font-body);
}

.tcard-foot {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  padding-top: var(--sp-4);
  border-top: 1px solid var(--border);
}

.tcard-avatar {
  width: 36px;
  height: 36px;
  border-radius: 4px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  color: var(--accent);
  flex-shrink: 0;
}

.tcard-name {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--text-primary);
}

.tcard-role {
  font-size: 11px;
  color: var(--text-muted);
  font-family: var(--font-mono);
  letter-spacing: 0.03em;
}

/* ── CTA SECTION ─────────────────────────────────────── */
.cta-section {
  padding: 120px 0;
  text-align: center;
  background: var(--bg-surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(
    ellipse 50% 80% at 50% 100%,
    var(--accent-dim) 0%,
    transparent 65%
  );
  pointer-events: none;
}

.cta-title {
  font-family: var(--font-display);
  font-size: clamp(32px, 5vw, 64px);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.02;
  color: var(--text-primary);
  margin-bottom: var(--sp-4);
  position: relative;
}

.cta-sub {
  font-size: 16px;
  color: var(--text-secondary);
  max-width: 460px;
  margin: 0 auto var(--sp-8);
  line-height: 1.65;
  font-family: var(--font-body);
}

.cta-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-3);
  flex-wrap: wrap;
  position: relative;
}

/* ── CONTACT & FORM ──────────────────────────────────── */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: var(--sp-16);
  align-items: flex-start;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: var(--sp-8);
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-4);
  padding: var(--sp-4);
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 14px;
  color: var(--text-primary);
  transition: border-color var(--transition);
  font-family: var(--font-body);
}

.contact-item:hover {
  border-color: var(--border-hover);
}

.contact-item i {
  font-size: 18px;
  color: var(--accent);
  margin-top: 1px;
  flex-shrink: 0;
}

.form-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: var(--sp-8);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-4);
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: var(--sp-4);
}

.form-group.full {
  grid-column: 1 / -1;
}

.form-group label {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 10px 14px;
  background: var(--bg-base);
  border: 1px solid var(--border);
  border-radius: 4px;
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 14px;
  appearance: none;
  -webkit-appearance: none;
  transition:
    border-color var(--transition),
    background var(--transition);
  min-height: 44px;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--text-muted);
}

.form-group input:hover,
.form-group select:hover,
.form-group textarea:hover {
  border-color: var(--border-hover);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent);
  background: var(--bg-elevated);
}

.form-group select {
  color-scheme: dark;
}

.form-group textarea {
  min-height: 120px;
  resize: vertical;
  line-height: 1.6;
}

.form-submit {
  width: 100%;
  justify-content: center;
  padding: 14px;
  font-size: 15px;
  font-weight: 500;
  min-height: 48px;
}

.form-submit:disabled {
  opacity: 0.75;
  cursor: not-allowed;
}

.btn-spinner {
  display: inline-block;
  width: 14px;
  height: 14px;
  border: 2px solid rgba(255,255,255,0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  margin-left: 8px;
  vertical-align: middle;
}

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

.form-error-msg {
  display: none;
  font-size: 12.5px;
  color: #ef4444;
  text-align: center;
  margin-top: 10px;
  font-family: var(--font-body);
}

.form-error-msg.show {
  display: block;
}

/* ── FOOTER ──────────────────────────────────────────── */
.footer {
  padding: var(--sp-16) 0 80px;
  background: var(--bg-base);
  border-top: 1px solid var(--border);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: var(--sp-12);
  margin-bottom: var(--sp-12);
}

.footer-brand p {
  font-size: 13.5px;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: var(--sp-4);
  max-width: 260px;
  font-family: var(--font-body);
}

.footer-col h4 {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: var(--sp-4);
}

.footer-col a {
  display: block;
  font-size: 13.5px;
  color: var(--text-secondary);
  margin-bottom: 10px;
  text-decoration: none;
  font-family: var(--font-body);
  transition: color var(--transition);
}

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

.footer-col a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 2px;
}

.social-row {
  display: flex;
  gap: var(--sp-2);
}

.social-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 4px;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  font-size: 16px;
  text-decoration: none;
  transition:
    background var(--transition),
    color var(--transition),
    border-color var(--transition);
}

.social-btn:hover {
  background: var(--bg-elevated);
  color: var(--text-primary);
  border-color: var(--border-hover);
}

.social-btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: var(--sp-6);
  border-top: 1px solid var(--border);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  flex-wrap: wrap;
  gap: var(--sp-2);
}

/* ── PAGE HERO (sub-page header) ─────────────────────── */
.page-hero {
  padding: 100px 0 64px;
  background: linear-gradient(180deg, rgba(79,142,255,0.05) 0%, transparent 100%);
  border-bottom: 1px solid var(--border);
}

/* ── PAGE LOADING ────────────────────────────────────── */
.page-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 50vh;
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.08em;
}

/* ── PAGE CONTENT TRANSITION (SPA) ──────────────────── */
#page-content {
  transition:
    opacity 200ms var(--ease),
    transform 220ms var(--ease);
  will-change: opacity, transform;
  min-height: 60vh;
}

#page-content.out {
  opacity: 0;
  transform: translateY(6px);
}

/* ── REVEALS ─────────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition:
    opacity 500ms var(--ease),
    transform 500ms var(--ease);
}

.reveal.up {
  opacity: 1;
  transform: none;
}

.reveal-stagger > * {
  opacity: 0;
  transform: translateY(16px);
  transition:
    opacity 500ms var(--ease),
    transform 500ms var(--ease);
}

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

.reveal-stagger.up > *:nth-child(2) { transition-delay: 80ms; }
.reveal-stagger.up > *:nth-child(3) { transition-delay: 160ms; }
.reveal-stagger.up > *:nth-child(4) { transition-delay: 240ms; }
.reveal-stagger.up > *:nth-child(5) { transition-delay: 320ms; }
.reveal-stagger.up > *:nth-child(6) { transition-delay: 400ms; }

/* ── PAGE-SPECIFIC: SERVICES ─────────────────────────── */

/* Hero: muted eyebrow tag + asymmetric glow + bold divider */
.tag-filled {
  background: rgba(79,142,255,0.08);
  color: rgba(79,142,255,0.9);
  border: 1px solid rgba(79,142,255,0.2);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 500;
}

.svc-hero-glow {
  position: absolute;
  top: -10%;
  right: -10%;
  z-index: 0;
  width: 900px;
  height: 900px;
  max-width: 70vw;
  max-height: 70vw;
  background: radial-gradient(
    circle at center,
    rgba(79,142,255,0.30) 0%,
    rgba(79,142,255,0.10) 45%,
    transparent 72%
  );
  pointer-events: none;
}

.svc-divider {
  width: 72px;
  height: 4px;
  background: var(--accent);
  border-radius: 2px;
  margin: 28px 0;
}

.accent-word {
  color: var(--accent);
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
}

/* Service directory: sticky rail + detail column */
.service-directory {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 56px;
  align-items: start;
}

.service-rail {
  position: sticky;
  top: 92px;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-surface);
}

.service-rail-item {
  display: flex;
  align-items: baseline;
  gap: 10px;
  width: 100%;
  padding: 16px 18px;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--border);
  text-align: left;
  cursor: pointer;
  font-family: var(--font-mono);
  color: var(--text-secondary);
  transition:
    background 250ms var(--ease),
    color 250ms var(--ease),
    padding-left 250ms var(--ease);
}

.service-rail-item:last-child {
  border-bottom: none;
}

.service-rail-item .rail-num {
  font-size: 11px;
  color: var(--text-muted);
  flex-shrink: 0;
  transition: color 250ms var(--ease);
}

.service-rail-item .rail-name {
  font-size: 12.5px;
  letter-spacing: 0.02em;
  line-height: 1.3;
}

.service-rail-item:hover {
  background: var(--bg-elevated);
  color: var(--text-primary);
}

.service-rail-item.active {
  padding-left: 24px;
  font-weight: 600;
}

/* Each nav item lights up in its matching panel's accent colour when active -
   see .service-detail-panel:nth-of-type(N) below for the paired panel colours. */
.service-rail-item:nth-child(1).active,
.service-rail-item:nth-child(2).active,
.service-rail-item:nth-child(3).active,
.service-rail-item:nth-child(4).active,
.service-rail-item:nth-child(5).active,
.service-rail-item:nth-child(6).active {
  background: rgba(79, 142, 255, 0.12);
  color: rgb(79, 142, 255);
  border-left: 2px solid rgb(79, 142, 255);
  box-shadow: 0 8px 24px rgba(79, 142, 255, 0.2);
}

.service-rail-item.active .rail-num {
  color: currentColor;
  opacity: 0.65;
}

.service-detail-col {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.service-detail-panel {
  position: relative;
  padding: 48px;
  border-radius: var(--radius);
  background: linear-gradient(160deg, #101d38 0%, #0a1220 100%);
  border: 1px solid rgba(79,142,255,0.14);
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(0,0,0,0.3), inset 0 1px 0 rgba(79,142,255,0.05);
  transition:
    border-color var(--transition),
    box-shadow var(--transition),
    transform var(--transition);
}

.service-detail-panel:hover {
  transform: translateY(-2px);
}

.service-detail-panel::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  width: 2px;
  height: 0;
  background: var(--accent);
  box-shadow: 2px 0 12px rgba(79,142,255,0.4);
  transition: height 0.8s cubic-bezier(0.16,1,0.3,1);
}

.service-detail-panel.in-view::before {
  height: 100%;
}

/* Six distinct service identities - same structure, different accent per panel
   so the row reads as 6 services rather than 6 copies of one component. */
.service-detail-panel:nth-of-type(1) {
  background-image: linear-gradient(135deg, rgb(16, 29, 56) 0%, rgb(9, 9, 9) 100%);
  border-color: rgba(79, 142, 255, 0.2);
  border-left: 3px solid rgba(79, 142, 255, 0.6);
}
.service-detail-panel:nth-of-type(1)::before { background: rgb(79, 142, 255); box-shadow: 2px 0 12px rgba(79, 142, 255, 0.4); }
.service-detail-panel:nth-of-type(1):hover {
  border-color: rgba(79, 142, 255, 0.4);
  box-shadow: 0 8px 40px rgba(0,0,0,0.4), 0 0 0 1px rgba(79, 142, 255, 0.3), inset 0 1px 0 rgba(79, 142, 255, 0.1);
}

.service-detail-panel:nth-of-type(2) {
  background-image: linear-gradient(135deg, rgb(14, 26, 52) 0%, rgb(9, 9, 9) 100%);
  border-color: rgba(79, 142, 255, 0.15);
  border-left: 3px solid rgba(79, 142, 255, 0.5);
}
.service-detail-panel:nth-of-type(2)::before { background: rgb(79, 142, 255); box-shadow: 2px 0 12px rgba(79, 142, 255, 0.4); }
.service-detail-panel:nth-of-type(2):hover {
  border-color: rgba(79, 142, 255, 0.35);
  box-shadow: 0 8px 40px rgba(0,0,0,0.4), 0 0 0 1px rgba(79, 142, 255, 0.3), inset 0 1px 0 rgba(79, 142, 255, 0.1);
}

.service-detail-panel:nth-of-type(3) {
  background-image: linear-gradient(135deg, rgb(13, 24, 50) 0%, rgb(9, 9, 9) 100%);
  border-color: rgba(79, 142, 255, 0.15);
  border-left: 3px solid rgba(79, 142, 255, 0.45);
}
.service-detail-panel:nth-of-type(3)::before { background: rgb(79, 142, 255); box-shadow: 2px 0 12px rgba(79, 142, 255, 0.4); }
.service-detail-panel:nth-of-type(3):hover {
  border-color: rgba(79, 142, 255, 0.35);
  box-shadow: 0 8px 40px rgba(0,0,0,0.4), 0 0 0 1px rgba(79, 142, 255, 0.3), inset 0 1px 0 rgba(79, 142, 255, 0.1);
}

.service-detail-panel:nth-of-type(4) {
  background-image: linear-gradient(135deg, rgb(15, 27, 54) 0%, rgb(9, 9, 9) 100%);
  border-color: rgba(79, 142, 255, 0.15);
  border-left: 3px solid rgba(79, 142, 255, 0.4);
}
.service-detail-panel:nth-of-type(4)::before { background: rgb(79, 142, 255); box-shadow: 2px 0 12px rgba(79, 142, 255, 0.4); }
.service-detail-panel:nth-of-type(4):hover {
  border-color: rgba(79, 142, 255, 0.35);
  box-shadow: 0 8px 40px rgba(0,0,0,0.4), 0 0 0 1px rgba(79, 142, 255, 0.3), inset 0 1px 0 rgba(79, 142, 255, 0.1);
}

.service-detail-panel:nth-of-type(5) {
  background-image: linear-gradient(135deg, rgb(14, 26, 52) 0%, rgb(9, 9, 9) 100%);
  border-color: rgba(79, 142, 255, 0.18);
  border-left: 3px solid rgba(79, 142, 255, 0.5);
}
.service-detail-panel:nth-of-type(5)::before { background: rgb(79, 142, 255); box-shadow: 2px 0 12px rgba(79, 142, 255, 0.4); }
.service-detail-panel:nth-of-type(5):hover {
  border-color: rgba(79, 142, 255, 0.38);
  box-shadow: 0 8px 40px rgba(0,0,0,0.4), 0 0 0 1px rgba(79, 142, 255, 0.3), inset 0 1px 0 rgba(79, 142, 255, 0.1);
}

.service-detail-panel:nth-of-type(6) {
  background-image: linear-gradient(135deg, rgb(12, 22, 46) 0%, rgb(9, 9, 9) 100%);
  border-color: rgba(79, 142, 255, 0.15);
  border-left: 3px solid rgba(79, 142, 255, 0.35);
}
.service-detail-panel:nth-of-type(6)::before { background: rgb(79, 142, 255); box-shadow: 2px 0 12px rgba(79, 142, 255, 0.4); }
.service-detail-panel:nth-of-type(6):hover {
  border-color: rgba(79, 142, 255, 0.35);
  box-shadow: 0 8px 40px rgba(0,0,0,0.4), 0 0 0 1px rgba(79, 142, 255, 0.3), inset 0 1px 0 rgba(79, 142, 255, 0.1);
}

.service-label {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.service-label-line {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--accent);
  border-radius: 1px;
  flex-shrink: 0;
}

.service-label-text {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}

.service-detail-headline {
  position: relative;
  font-family: var(--font-display);
  font-size: clamp(26px, 3vw, 38px);
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.12;
  letter-spacing: -0.025em;
  padding-bottom: 12px;
  margin-bottom: 20px;
  max-width: 560px;
}

.service-detail-headline::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
}

.service-detail-body {
  position: relative;
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 28px;
  max-width: 460px;
}

.service-features {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 8px;
  list-style: none;
  margin: 0 0 28px;
  padding: 0;
}

.service-features li {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  color: var(--text-secondary);
  font-family: var(--font-body);
  line-height: 1.4;
}

.service-features li::before {
  content: '';
  width: 16px;
  height: 16px;
  background: var(--accent-dim);
  border: 1px solid var(--accent-border);
  border-radius: 4px;
  flex-shrink: 0;
}

/* Checkmark glyph is a masked shape filled with currentColor (rather than a
   baked-in SVG background-image) so each panel can tint it via the ::after
   color override below - background-image data URIs can't read currentColor. */
.service-features li::after {
  content: '';
  position: absolute;
  left: 3px;
  top: 50%;
  width: 10px;
  height: 8px;
  transform: translateY(-50%);
  background-color: currentColor;
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg width='10' height='8' viewBox='0 0 10 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 4L3.5 6.5L9 1' stroke='black' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg width='10' height='8' viewBox='0 0 10 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 4L3.5 6.5L9 1' stroke='black' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
}

.service-detail-panel .service-features li { color: rgba(79,142,255,0.9); }

.service-illustration {
  position: relative;
  width: 100%;
  height: 220px;
  border-radius: var(--radius);
  overflow: hidden;
  margin-top: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.2);
  transition: transform 600ms cubic-bezier(0.16,1,0.3,1);
}

.service-illustration svg {
  width: 100%;
  height: 100%;
  display: block;
}

.service-detail-panel:hover .service-illustration {
  transform: scale(1.02);
}

/* Blue statement band: the contrast beat */
.blue-band {
  position: relative;
  background: linear-gradient(90deg, rgb(59, 112, 235) 0%, rgb(79, 142, 255) 50%, rgb(59, 112, 235) 100%);
  border-top: 1px solid rgba(255,255,255,0.1);
  border-bottom: 1px solid rgba(255,255,255,0.1);
  padding: 88px 0;
  overflow: hidden;
}

.blue-band::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 100% at 0% 0%, rgba(9,9,9,0.18) 0%, transparent 60%),
    radial-gradient(ellipse 60% 100% at 100% 100%, rgba(9,9,9,0.18) 0%, transparent 60%);
  pointer-events: none;
}

.blue-band::after {
  content: '';
  position: absolute;
  top: 0;
  left: -50%;
  width: 50%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.06), transparent);
  animation: guaranteeSheen 4s ease-in-out infinite;
  pointer-events: none;
}

/* Sweeps the same visual path as left:-100% -> left:200%, but via transform
   (compositor-only) instead of animating left, which would thrash layout
   continuously on a full-width surface. */
@keyframes guaranteeSheen {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(500%); }
}

.blue-band-text {
  position: relative;
  font-family: var(--font-display);
  font-size: clamp(28px, 4.2vw, 48px);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: #ffffff;
  text-align: center;
  max-width: 880px;
  margin: 0 auto;
}

/* Process strip */
.process-strip {
  background: var(--bg-surface);
  padding: 80px 0;
  border-top: 1px solid rgba(79,142,255,0.16);
}

.process-grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  margin-top: 48px;
}

/* Thin connecting line between step circles - desktop only, sits behind the
   circles (z-index:0) which are lifted above it (z-index:1). */
.process-grid::before {
  content: '';
  position: absolute;
  top: 16px;
  left: 12.5%;
  right: 12.5%;
  height: 1px;
  background: rgba(79,142,255,0.2);
}

.process-grid .process-step {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-align: center;
}

.process-step-num {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--accent);
  color: white;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 12px;
  position: relative;
  z-index: 1;
}

.process-title {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-primary);
}

.process-body {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.65;
}

/* Closing CTA: bookend glow */
.cta-glow-strong {
  position: absolute;
  top: -20%;
  left: 50%;
  z-index: 0;
  width: 720px;
  height: 720px;
  max-width: 90vw;
  transform: translateX(-50%);
  background: radial-gradient(
    ellipse at center,
    rgba(79,142,255,0.24) 0%,
    rgba(79,142,255,0.06) 50%,
    transparent 75%
  );
  pointer-events: none;
}

@media (max-width: 768px) {
  .svc-hero-glow {
    width: 500px;
    height: 500px;
  }

  .service-directory {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .service-rail {
    position: static;
    flex-direction: row;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
  }

  .service-rail-item {
    flex: 0 0 auto;
    border-bottom: none;
    border-right: 1px solid var(--border);
    white-space: nowrap;
    scroll-snap-align: start;
  }

  .service-rail-item.active {
    padding-left: 18px;
  }

  .service-detail-panel {
    padding: 32px 24px;
  }

  .process-grid {
    grid-template-columns: 1fr 1fr;
    gap: 24px;
  }

  .process-grid::before {
    display: none;
  }
}

/* ── PAGE-SPECIFIC: PORTFOLIO ────────────────────────── */
.portfolio-section-title {
  font-size: clamp(28px, 3vw, 40px);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.featured-project {
  position: relative;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 64px;
  background: var(--bg-surface);
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  transition: border-color var(--transition);
}

.live-badge {
  position: absolute;
  top: 16px;
  left: 16px;
  z-index: 2;
  background: var(--accent);
  color: #fff;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 3px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.demo-badge {
  position: absolute;
  top: var(--sp-4);
  left: var(--sp-4);
  z-index: 2;
  background: rgba(9,9,9,0.85);
  color: rgba(255,255,255,0.85);
  border: 1px solid rgba(255,255,255,0.15);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 400;
  padding: 3px 10px;
  border-radius: 4px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* ── PORTFOLIO TAG CONSISTENCY ───────────────────────── */
.portfolio-card .tag,
.card-tags .tag {
  background: rgba(255,255,255,0.06);
  color: rgba(255,255,255,0.7);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 4px;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 3px 10px;
}

.pc-tag,
.pc-meta {
  text-shadow: 0 1px 4px rgba(0,0,0,0.8);
}

.featured-project:hover {
  border-color: var(--border-hover);
}

.featured-project img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  min-height: 380px;
}

.featured-project-info {
  padding: 48px 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 20px;
}

.portfolio-full-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

/* ── PORTFOLIO: SECTION DIVIDER ──────────────────────── */
.portfolio-divider {
  margin: 80px 0;
}

.portfolio-divider hr {
  border: none;
  border-top: 1px solid rgba(255,255,255,0.06);
}

/* ── PORTFOLIO: NICHE CARDS (WHAT WE BUILD) ──────────── */
.niche-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

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

@media (max-width: 600px) {
  .niche-grid { grid-template-columns: 1fr; }
}

.niche-card {
  position: relative;
  padding: 40px 40px 40px 48px;
  border-radius: var(--radius);
  background: linear-gradient(160deg, rgb(16,29,56) 0%, rgb(10,18,32) 100%);
  border: 1px solid rgba(79,142,255,0.14);
  box-shadow: rgba(0,0,0,0.3) 0px 4px 24px,
              rgba(79,142,255,0.05) 0px 1px 0px inset;
  overflow: visible;
  display: flex;
  flex-direction: column;
  transition: transform 300ms var(--ease),
              border-color 300ms var(--ease),
              box-shadow 300ms var(--ease);
}

.niche-card::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  width: 2px;
  height: 100%;
  border-radius: var(--radius) 0 0 var(--radius);
  background: var(--accent);
  box-shadow: rgba(79,142,255,0.4) 2px 0px 12px;
}

.niche-card:hover {
  transform: translateY(-5px);
  border-color: rgba(79,142,255,0.35);
  box-shadow: rgba(0,0,0,0.5) 0px 12px 40px,
              rgba(79,142,255,0.08) 0px 1px 0px inset;
}

.niche-card__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 16px;
}

.niche-card__icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: rgba(79,142,255,0.1);
  border: 1px solid rgba(79,142,255,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.niche-card__icon svg {
  width: 18px;
  height: 18px;
  stroke: var(--accent);
  stroke-width: 1.5;
  fill: none;
}

.niche-card__badge {
  display: inline-block;
  background: rgba(79,142,255,0.1);
  border: 1px solid rgba(79,142,255,0.2);
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 4px;
  white-space: nowrap;
}

.niche-card__eyebrow {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 8px;
}

.niche-card__eyebrow::before {
  content: '';
  display: block;
  width: 24px;
  height: 2px;
  background: var(--accent);
  flex-shrink: 0;
}

.niche-card__title {
  position: relative;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 24px;
  color: white;
  letter-spacing: -0.02em;
  line-height: 1.2;
  min-height: calc(24px * 1.2 * 2);
  padding-bottom: 14px;
  margin-bottom: 6px;
}

.niche-card__title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
}

.niche-card__tagline {
  font-family: var(--font-body);
  font-size: 14px;
  color: rgba(255,255,255,0.55);
  line-height: 1.65;
  margin-top: 8px;
  margin-bottom: 0;
}

.niche-card__divider {
  height: 1px;
  background: rgba(79,142,255,0.12);
  margin: 18px 0;
}

.niche-card__section-label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.35);
  margin-bottom: 10px;
}

.niche-card__features {
  list-style: none;
  padding: 0;
  margin: 0 0 16px;
}

.niche-card__features li {
  font-family: var(--font-body);
  font-size: 13px;
  color: rgba(79,142,255,0.9);
  line-height: 1.6;
  padding: 5px 0 5px 26px;
  position: relative;
  gap: 8px;
}

.niche-card__features li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  width: 14px;
  height: 14px;
  border-radius: 3px;
  border: 1px solid rgba(79,142,255,0.35);
  background-color: rgba(79,142,255,0.08);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'%3E%3Cpath d='M2.5 7l3 3 6-6' stroke='%234f8eff' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-size: contain;
}

.niche-card__addons {
  margin-bottom: 0;
}

.niche-card__addon-line {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px;
  padding: 6px 0;
  border-bottom: 1px solid rgba(255,255,255,0.09);
}

.niche-card__addon-line:last-child {
  border-bottom: none;
}

.niche-card__addon-name {
  font-family: var(--font-body);
  font-size: 12px;
  color: rgba(255,255,255,0.55);
}

.niche-card__addon-price {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--accent);
  white-space: nowrap;
  flex-shrink: 0;
}

.niche-card__cta {
  margin-top: auto;
  padding-top: 18px;
  border-top: 1px solid rgba(255,255,255,0.06);
}

.niche-card__cta a {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 500;
  color: var(--accent);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: gap 200ms ease;
}

.niche-card__cta a:hover {
  gap: 10px;
}

.niche-card__cta a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 2px;
}

.niche-card__cta a::after {
  content: '→';
}

/* ── PAGE-SPECIFIC: PRICING ──────────────────────────── */
.addon-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.addon-card {
  position: relative;
  cursor: pointer;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  transition:
    border-color 120ms ease,
    background 120ms ease,
    box-shadow 120ms ease;
}

.addon-card:hover {
  border-color: var(--accent);
  background: var(--bg-elevated);
  box-shadow: 0 0 0 1px var(--accent-border);
}

.addon-card:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.addon-card.addon-selected {
  border-color: var(--accent);
  background: var(--bg-elevated);
  box-shadow: 0 0 0 2px var(--accent),
              0 0 20px rgba(79,142,255,0.15);
}

.addon-card.addon-selected .addon-icon {
  background: var(--accent);
  color: white;
}

.addon-card.addon-selected::after {
  content: '✓';
  position: absolute;
  top: 12px;
  right: 12px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--accent);
  color: white;
  font-size: 11px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 20px;
  text-align: center;
}

.addon-icon {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: var(--accent-dim);
  border: 1px solid var(--accent-border);
  color: var(--accent);
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.addon-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}

.addon-price {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--accent);
  white-space: nowrap;
}

.addon-price span:not(.price-currency) {
  font-size: 12px;
  font-weight: 400;
  color: var(--text-muted);
  font-family: var(--font-mono);
}

.addon-name {
  font-weight: 600;
  font-size: 14px;
  color: var(--text-primary);
  font-family: var(--font-display);
  letter-spacing: -0.01em;
}

.addon-desc {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.6;
  font-family: var(--font-body);
}

.faq-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.faq-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  transition:
    border-color var(--transition),
    background var(--transition);
}

.faq-card:hover {
  border-color: var(--border-hover);
  background: var(--bg-elevated);
}

.faq-card h3 {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  margin-bottom: 10px;
}

.faq-card p {
  font-size: 13.5px;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ── PAGE-SPECIFIC: CONTACT ──────────────────────────── */
.process-step {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.process-num {
  width: 24px;
  height: 24px;
  border-radius: 4px;
  background: var(--accent-dim);
  border: 1px solid var(--accent-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  color: var(--accent);
  flex-shrink: 0;
  font-family: var(--font-mono);
}

.process-text {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.55;
  padding-top: 3px;
  font-family: var(--font-body);
}

.process-box {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}

.process-box-label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 16px;
}

/* ── GUARANTEE STRIP ─────────────────────────────────── */
.guarantee-strip {
  margin-top: 32px;
  padding: 20px 24px;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  display: flex;
  gap: 32px;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
}

.guarantee-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--text-secondary);
  font-family: var(--font-body);
}

.guarantee-item i {
  color: var(--accent);
  font-size: 18px;
  flex-shrink: 0;
}

/* ── HOMEPAGE VISUAL UPGRADE (scoped to .page-home) ───────
   .section-label, .price-card and .portfolio-card are shared with
   services.html, pricing.html and portfolio.html, so these overrides
   are scoped to the homepage wrapper in index.html and never touch
   those other pages. The .price-card.featured highlight below is the
   exception - it applies globally so the "Most popular" card is
   highlighted on pricing.html too, not only in the homepage preview.
   ─────────────────────────── */
.page-home .section-label {
  margin-bottom: 16px;
}

.page-home .price-card {
  background: var(--bg-surface);
}

.page-home .price-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 0 0 1px var(--accent), 0 20px 60px rgba(79,142,255,0.12);
}

.price-card.featured {
  background: var(--bg-elevated);
  box-shadow: 0 0 0 1px var(--accent), 0 20px 60px rgba(79,142,255,0.12);
}

.price-card.featured:hover {
  transform: translateY(-8px);
  box-shadow: 0 0 0 1px var(--accent-hover), 0 32px 80px rgba(79,142,255,0.18);
}

.page-home .price-amount {
  font-size: clamp(48px, 4vw, 64px);
  letter-spacing: -0.03em;
}

.page-home .price-amount sup {
  font-size: 0.4em;
  vertical-align: super;
  margin-top: 0;
}

.page-home .portfolio-card {
  transition: border-color 300ms ease, transform 300ms var(--ease);
}

.page-home .portfolio-card:hover {
  border-color: var(--accent-border);
  transform: translateY(-4px);
}

.page-home .pc-img {
  transition: transform 600ms var(--ease);
}

/* ── UTILITY ─────────────────────────────────────────── */
[aria-hidden="true"] { pointer-events: none; }

/* ── RESPONSIVE ──────────────────────────────────────── */
@media (max-width: 1024px) {
  .services-grid         { grid-template-columns: repeat(2, 1fr); }
  .testimonial-grid      { grid-template-columns: repeat(2, 1fr); }
  .portfolio-grid        { grid-template-columns: 1fr 1fr; }
  .portfolio-card.tall   { grid-column: span 2; }
  .footer-grid           { grid-template-columns: 1fr 1fr; gap: var(--sp-8); }
  .pricing-grid          { grid-template-columns: repeat(3, 1fr); }
  .portfolio-full-grid   { grid-template-columns: repeat(2, 1fr); }
  .addon-grid            { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .section { padding: var(--sp-16) 0; }

  .nav-links,
  .nav-cta      { display: none; }
  .nav-toggle   { display: flex; }
  .mobile-menu  { display: flex; }

  .hero-section        { min-height: 100svh; padding: 64px 0 var(--sp-16); }
  .hero-headline       { font-size: clamp(36px, 8vw, 52px); }
  .hero-glow           { width: 300px; height: 300px; }
  .hero-network        { opacity: 0.2; }
  .hero-stats          { grid-template-columns: 1fr 1fr; gap: var(--sp-6); }

  .services-grid,
  .steps-grid,
  .pricing-grid,
  .testimonial-grid    { grid-template-columns: 1fr; }

  .portfolio-grid         { grid-template-columns: 1fr; }
  .portfolio-card.tall    { grid-column: auto; }

  .section-head-row       { flex-direction: column; align-items: flex-start; }
  .contact-grid           { grid-template-columns: 1fr; gap: var(--sp-8); }
  .form-row               { grid-template-columns: 1fr; }
  .footer-grid            { grid-template-columns: 1fr; gap: var(--sp-8); }

  .cta-section            { padding: var(--sp-16) 0; }
  .hero-actions           { flex-direction: column; align-items: flex-start; }
  .hero-actions .btn      { width: 100%; justify-content: center; }

  .featured-project       { grid-template-columns: 1fr; }
  .featured-project img   { min-height: 260px; }
  .featured-project-info  { padding: 28px 24px; }
  .portfolio-full-grid    { grid-template-columns: 1fr; }

  .faq-grid               { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .container    { padding: 0 var(--sp-4); }
  .hero-stats   { gap: var(--sp-4); }
  .cta-actions  { flex-direction: column; align-items: stretch; }
  .cta-actions .btn { justify-content: center; }
  .pricing-grid { grid-template-columns: 1fr; }
  .pricing-grid > .price-card:first-child {
    border-radius: var(--radius) var(--radius) 0 0;
  }
  .pricing-grid > .price-card:last-child {
    border-radius: 0 0 var(--radius) var(--radius);
  }
  .addon-grid   { grid-template-columns: 1fr; }
}

/* ── PROJECT INTAKE FORM (start.html) ───────────────── */
.intake-hero {
  padding: 100px 0 48px;
  background: linear-gradient(180deg, rgba(79,142,255,0.06) 0%, transparent 100%);
  border-bottom: 1px solid var(--border);
}

.intake-hero-inner {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--sp-12);
  flex-wrap: wrap;
}

.intake-progress-wrap {
  min-width: 280px;
  flex-shrink: 0;
}

.intake-step-labels {
  display: flex;
  gap: var(--sp-3);
  margin-bottom: 10px;
  flex-wrap: wrap;
}

.isl {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  transition: color var(--transition);
}

.isl.active {
  color: var(--accent);
}

.intake-progress-track {
  height: 3px;
  background: var(--border);
  border-radius: 2px;
  overflow: hidden;
  margin-bottom: 8px;
}

.intake-progress-fill {
  height: 100%;
  background: var(--accent);
  border-radius: 2px;
  transition: width 300ms var(--ease);
}

.intake-step-counter {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
  letter-spacing: 0.06em;
}

.intake-form-wrap {
  max-width: 800px;
  margin: 0 auto;
}

.intake-step {
  display: none;
  animation: none;
}

.intake-step.active {
  display: block;
}

.intake-step-title {
  font-family: var(--font-display);
  font-size: clamp(22px, 3vw, 30px);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.intake-step-sub {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 28px;
}

.intake-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 10px;
  margin-bottom: 28px;
}

.intake-card-grid--single {
  grid-template-columns: repeat(2, 1fr);
}

.intake-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 20px 16px;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 13px;
  color: var(--text-secondary);
  text-align: center;
  cursor: pointer;
  transition:
    background var(--transition),
    border-color var(--transition),
    color var(--transition);
  min-height: 88px;
  line-height: 1.35;
}

.intake-card i {
  font-size: 22px;
  color: var(--text-muted);
  transition: color var(--transition);
}

.intake-card:hover {
  background: var(--bg-elevated);
  border-color: var(--border-hover);
  color: var(--text-primary);
}

.intake-card:hover i {
  color: var(--accent);
}

.intake-card:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.intake-card.selected {
  background: var(--accent-dim);
  border-color: var(--accent);
  color: var(--text-primary);
}

.intake-card.selected i {
  color: var(--accent);
}

.intake-card--wide {
  flex-direction: row;
  text-align: left;
  min-height: 64px;
  padding: 16px 20px;
}

.intake-card--wide i {
  font-size: 20px;
  flex-shrink: 0;
}

.intake-text-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-4);
}

.intake-nav-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

.intake-checkbox-row {
  margin-top: 20px;
}

.intake-checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13.5px;
  color: var(--text-secondary);
  cursor: pointer;
  line-height: 1.5;
}

.intake-checkbox-label input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  flex-shrink: 0;
  accent-color: var(--accent);
  cursor: pointer;
}

.intake-success {
  text-align: center;
  padding: var(--sp-24) var(--sp-6);
}

.intake-success-inner {
  max-width: 480px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-4);
}

.intake-success-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(34,197,94,0.12);
  border: 2px solid rgba(34,197,94,0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  color: #22c55e;
}

.intake-success-title {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--text-primary);
  margin: 0;
}

.intake-success-msg {
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.65;
  margin: 0;
}

@media (max-width: 768px) {
  .intake-hero-inner { flex-direction: column; }
  .intake-progress-wrap { min-width: auto; width: 100%; }
  .intake-card-grid--single { grid-template-columns: 1fr; }
  .intake-text-row { grid-template-columns: 1fr; }
  .intake-nav-row { flex-direction: column; gap: 12px; align-items: stretch; }
  .intake-nav-row .btn { justify-content: center; }
}

@media (max-width: 480px) {
  .intake-card-grid { grid-template-columns: 1fr; }
}

/* ── REDUCED MOTION ──────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .ticker-inner {
    animation: none;
  }

  .hero-glow,
  .scroll-line,
  .eyebrow-dot {
    animation: none;
  }

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