/* ============================================================
   Landio-inspired portfolio — John Jopson
   Tokens extracted from sincere-recipient-096558.framer.app
   ============================================================ */

:root {
  /* surfaces */
  --bg:            #04070D;
  --bg-2:          #0D0F17;
  --bg-3:          #10131C;
  --surface:       rgba(255, 255, 255, 0.018);
  --surface-2:     rgba(216, 231, 242, 0.03);
  --border:        rgba(255, 255, 255, 0.07);
  --border-strong: rgba(255, 255, 255, 0.14);

  /* text */
  --text:          #E4E9F2;
  --text-muted:    #D5DBE6;
  --text-subtle:   rgba(213, 219, 230, 0.7);
  --text-faint:    rgba(184, 199, 217, 0.5);

  /* accents */
  --accent:        #94D1FF;
  --accent-2:      #A6DAFF;
  --accent-glow:   rgba(148, 209, 255, 0.35);

  /* type */
  --font-sans:     'Inter', 'Inter Display', system-ui, -apple-system, Arial, sans-serif;
  --font-serif:    'Instrument Serif', 'Times New Roman', serif;

  /* radii */
  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 18px;
  --r-xl: 28px;
  --r-pill: 999px;

  /* container */
  --container-max: 1200px;
  --container-px:  24px;

  /* easing */
  --ease-out: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* ── reset ─── */
*,*::before,*::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  overflow-x: clip;            /* clip without creating a scroll context */
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  /* NO overflow-x here — it would steal scroll from window and break scroll-driven JS */
}

a { color: inherit; text-decoration: none; }
img, svg { max-width: 100%; display: block; }
button { font: inherit; }

::selection { background: var(--accent); color: var(--bg); }

/* ============================================================
   NAV
   ============================================================ */
.nav {
  position: fixed;
  top: 16px;
  left: 0;
  right: 0;
  z-index: 50;
  display: flex;
  justify-content: center;
  pointer-events: none;
}
.nav-inner {
  pointer-events: auto;
  width: min(96%, 1080px);
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
  padding: 10px 12px 10px 18px;
  background: rgba(8, 9, 10, 0.75);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  border: 1px solid var(--border);
  border-radius: var(--r-pill);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.nav-logo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text);
  font-weight: 600;
  letter-spacing: -0.01em;
}
.nav-logo-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  color: var(--accent);
  background: radial-gradient(circle at 30% 30%, rgba(148, 209, 255, 0.25), transparent 60%);
}
.nav-logo-text { font-size: 15px; }

.nav-links {
  display: flex;
  justify-content: center;
  gap: 4px;
  font-size: 14px;
}
.nav-links a {
  padding: 8px 12px;
  color: var(--text-muted);
  border-radius: var(--r-pill);
  transition: color 0.18s var(--ease-out), background 0.18s var(--ease-out);
}
@media (max-width: 980px) {
  .nav-links a { padding: 8px 10px; font-size: 13px; }
}
.nav-links a:hover { color: var(--text); background: rgba(255, 255, 255, 0.04); }

.nav-actions { display: inline-flex; }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: var(--r-pill);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.005em;
  cursor: pointer;
  transition: transform 0.18s var(--ease-out), box-shadow 0.25s var(--ease-out), background 0.2s var(--ease-out), color 0.2s var(--ease-out);
  white-space: nowrap;
  border: 1px solid transparent;
  user-select: none;
}
.btn-lg { padding: 14px 22px; font-size: 15px; }

.btn-primary {
  position: relative;
  background: linear-gradient(180deg, #FFFFFF 0%, #DBE3EE 100%);
  color: #0B0E16;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.6) inset,
    0 0 0 1px rgba(255, 255, 255, 0.1),
    0 8px 24px rgba(148, 209, 255, 0.18);
  overflow: hidden;
}
.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.7) inset,
    0 0 0 1px rgba(255, 255, 255, 0.18),
    0 12px 32px rgba(148, 209, 255, 0.28);
}

/* Shimmer sweep on .btn-shimmer (used on hero CTA) */
.btn-shimmer::before {
  content: '';
  position: absolute;
  top: 0;
  left: -120%;
  width: 60%;
  height: 100%;
  background: linear-gradient(
    100deg,
    transparent 0%,
    rgba(255, 255, 255, 0.7) 50%,
    transparent 100%
  );
  transform: skewX(-20deg);
  animation: btnShimmer 3.4s cubic-bezier(0.22, 0.61, 0.36, 1) infinite;
  pointer-events: none;
}
@keyframes btnShimmer {
  0%   { left: -120%; }
  60%  { left: 140%; }
  100% { left: 140%; }
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border-strong);
}
.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.22);
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 120px 24px 80px;
  overflow: hidden;
  isolation: isolate;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
}

/* animated mp4 background (Landio source asset)
   grayscale(1) strips the red tone of the source */
.hero-bg-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  filter: grayscale(1);
}

/* subtle perspective grid layered above video for extra depth */
.hero-bg-grid {
  --mx: 0;
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 64px 64px;
  background-position: calc(50% + (var(--mx) * 14px)) 50%;
  mask-image: radial-gradient(ellipse 70% 55% at 50% 30%, black 20%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 70% 55% at 50% 30%, black 20%, transparent 80%);
  transform: perspective(800px) rotateX(58deg) translateY(30%) scale(1.4);
  transform-origin: center top;
  opacity: 0.4;
  transition: background-position 0.05s linear;
}

/* bottom fade so the video blends into next section seamlessly */
.hero-bg-fade {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 35%;
  background: linear-gradient(to bottom, transparent, var(--bg) 90%);
  pointer-events: none;
}

/* ============================================================
   HERO BOTTOM EDGE — Landio-style transition into next section
   - Soft radial bleed (extends below hero, masked into next section)
   - Glowing horizontal divider line
   ============================================================ */
.hero { overflow: visible; }   /* let the bleed extend below */

.hero-edge {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 240px;
  pointer-events: none;
  z-index: 2;
}
/* soft radial glow centered at bottom — bleeds slightly into about */
.hero-edge-glow {
  position: absolute;
  left: 50%;
  bottom: -120px;
  width: 1200px;
  height: 360px;
  transform: translateX(-50%);
  background: radial-gradient(
    ellipse 60% 50% at 50% 50%,
    rgba(148, 209, 255, 0.22) 0%,
    rgba(148, 209, 255, 0.08) 35%,
    transparent 70%
  );
  filter: blur(20px);
  opacity: 0.9;
}
/* glowing horizontal line marking the hero/next-section seam */
.hero-edge-line {
  position: absolute;
  left: 50%;
  bottom: 0;
  width: min(82%, 1100px);
  height: 1px;
  transform: translateX(-50%);
  background: linear-gradient(
    to right,
    transparent 0%,
    rgba(148, 209, 255, 0.5) 30%,
    rgba(255, 255, 255, 0.65) 50%,
    rgba(148, 209, 255, 0.5) 70%,
    transparent 100%
  );
  box-shadow:
    0 0 12px rgba(148, 209, 255, 0.5),
    0 0 32px rgba(148, 209, 255, 0.25);
  opacity: 0.9;
}

/* central glow */
.hero-bg-glow {
  position: absolute;
  left: 50%;
  top: 35%;
  width: 1100px;
  height: 600px;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle at center, var(--accent-glow) 0%, rgba(148, 209, 255, 0.12) 25%, transparent 60%);
  filter: blur(40px);
  opacity: 0.65;
}

/* JJ monogram under headline — floats + reacts to mouse */
.hero-jj {
  --mx: 0;
  --my: 0;
  position: absolute;
  left: 50%;
  top: 16%;
  width: 110px;
  height: 110px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 24px;
  background:
    radial-gradient(120% 100% at 50% 0%, rgba(148, 209, 255, 0.10) 0%, rgba(255,255,255,0) 60%),
    linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.01));
  border: 1px solid rgba(255, 255, 255, 0.10);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.04),
    0 30px 80px rgba(148, 209, 255, 0.30),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
  transform:
    translateX(calc(-50% + (var(--mx) * 18px)))
    translateY(calc(var(--my) * 12px));
  animation: jjBreath 5.5s ease-in-out infinite;
  will-change: transform, filter;
  z-index: 0;
}
.hero-jj svg {
  width: 60%;
  height: 60%;
  filter: drop-shadow(0 0 14px rgba(148, 209, 255, 0.55));
}
@keyframes jjBreath {
  0%, 100% { filter: drop-shadow(0 0 0 rgba(148, 209, 255, 0)); }
  50%      { filter: drop-shadow(0 0 28px rgba(148, 209, 255, 0.50)); }
}
.hero-jj::before {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: inherit;
  background: conic-gradient(from 0deg, transparent 0%, rgba(148, 209, 255, 0.42) 25%, transparent 50%, rgba(148, 209, 255, 0.22) 75%, transparent 100%);
  filter: blur(14px);
  z-index: -1;
  animation: jjHalo 9s linear infinite;
}
.hero-jj::after {
  /* techy bracket accents on corners */
  content: '';
  position: absolute;
  inset: 8px;
  border-radius: 18px;
  background:
    linear-gradient(rgba(255,255,255,0.18), rgba(255,255,255,0.18)) top left / 10px 1px no-repeat,
    linear-gradient(rgba(255,255,255,0.18), rgba(255,255,255,0.18)) top left / 1px 10px no-repeat,
    linear-gradient(rgba(255,255,255,0.18), rgba(255,255,255,0.18)) top right / 10px 1px no-repeat,
    linear-gradient(rgba(255,255,255,0.18), rgba(255,255,255,0.18)) top right / 1px 10px no-repeat,
    linear-gradient(rgba(255,255,255,0.18), rgba(255,255,255,0.18)) bottom left / 10px 1px no-repeat,
    linear-gradient(rgba(255,255,255,0.18), rgba(255,255,255,0.18)) bottom left / 1px 10px no-repeat,
    linear-gradient(rgba(255,255,255,0.18), rgba(255,255,255,0.18)) bottom right / 10px 1px no-repeat,
    linear-gradient(rgba(255,255,255,0.18), rgba(255,255,255,0.18)) bottom right / 1px 10px no-repeat;
  pointer-events: none;
}
@keyframes jjHalo {
  to { transform: rotate(360deg); }
}


/* hero content */
.hero-inner {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 920px;
  margin: 0 auto;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
  will-change: transform, opacity;
  transition: transform 0.05s linear, opacity 0.05s linear;
}

/* staggered fade-up for hero children */
.hero-inner .reveal {
  opacity: 0;
  transform: translateY(18px);
  filter: blur(8px);
  animation: heroReveal 1.1s cubic-bezier(0.22, 0.61, 0.36, 1) forwards;
  animation-delay: var(--reveal-delay, 0ms);
}
@keyframes heroReveal {
  0%   { opacity: 0; transform: translateY(18px); filter: blur(8px); }
  60%  { filter: blur(0); }
  100% { opacity: 1; transform: none; filter: blur(0); }
}

/* Hero title — word-by-word reveal */
.hero-title { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.22em 0.32em; }
.hero-title .word {
  display: inline-block;
  opacity: 0;
  transform: translateY(0.5em);
  filter: blur(8px);
  animation: wordReveal 1.1s cubic-bezier(0.22, 0.61, 0.36, 1) forwards;
}
.hero-title .word:nth-child(1) { animation-delay: 200ms; }
.hero-title .word:nth-child(2) { animation-delay: 280ms; }
.hero-title .word:nth-child(3) { animation-delay: 360ms; }
.hero-title .word:nth-child(4) { animation-delay: 440ms; }
.hero-title .word:nth-child(5) { animation-delay: 560ms; }
@keyframes wordReveal {
  0%   { opacity: 0; transform: translateY(0.5em); filter: blur(8px); }
  60%  { filter: blur(0); }
  100% { opacity: 1; transform: none; filter: blur(0); }
}
.hero-title.reveal { animation: none; opacity: 1; transform: none; filter: none; }

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px 7px 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-pill);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: border-color 0.2s var(--ease-out), color 0.2s var(--ease-out);
}
.hero-badge:hover { color: var(--text); border-color: var(--border-strong); }

/* badge pulse: dot + 2 expanding rings */
.hero-badge-pulse {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 14px;
  height: 14px;
}
.hero-badge-dot {
  position: relative;
  z-index: 2;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent);
}
.hero-badge-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1.5px solid var(--accent);
  opacity: 0;
  animation: badgePing 2.4s cubic-bezier(0.22, 0.61, 0.36, 1) infinite;
}
.hero-badge-ring:nth-of-type(2) { animation-delay: 1.2s; }
@keyframes badgePing {
  0%   { transform: scale(0.7); opacity: 0.65; }
  80%  { transform: scale(2.6); opacity: 0; }
  100% { transform: scale(2.6); opacity: 0; }
}

.hero-title {
  margin: 0;
  max-width: 16ch;
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: clamp(40px, 7.4vw, 80px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--text);
}
.hero-title-accent {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.005em;
  background: linear-gradient(180deg, #FFFFFF 0%, #B8C7D9 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-subtitle {
  margin: 0;
  max-width: 560px;
  color: var(--text-subtle);
  font-size: clamp(15px, 1.6vw, 17px);
  line-height: 1.55;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 4px;
}

.hero-meta {
  display: inline-flex;
  align-items: center;
  gap: 24px;
  margin-top: 8px;
  padding: 14px 22px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-pill);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.hero-meta-item {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  font-size: 13px;
  color: var(--text-subtle);
}
.hero-meta-item strong {
  color: var(--text);
  font-weight: 600;
  font-size: 16px;
  letter-spacing: -0.01em;
}
.hero-meta-divider {
  width: 1px;
  height: 18px;
  background: var(--border);
}

/* Scroll indicator at hero bottom */
.hero-scroll {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-faint);
  transition: color 0.2s var(--ease-out);
  animation: scrollBounce 2.4s ease-in-out infinite;
}
.hero-scroll:hover { color: var(--text-muted); }
.hero-scroll svg { animation: arrowBounce 2.4s ease-in-out infinite; }
@keyframes scrollBounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%      { transform: translateX(-50%) translateY(-4px); }
}
@keyframes arrowBounce {
  0%, 100% { transform: translateY(0); opacity: 0.6; }
  50%      { transform: translateY(3px); opacity: 1; }
}

/* ============================================================
   SECTION SCROLL-REVEAL
   ============================================================ */
.on-enter {
  opacity: 0;
  transform: translateY(22px);
  filter: blur(6px);
  transition:
    opacity 0.9s cubic-bezier(0.22, 0.61, 0.36, 1),
    transform 0.9s cubic-bezier(0.22, 0.61, 0.36, 1),
    filter 0.7s cubic-bezier(0.22, 0.61, 0.36, 1);
  transition-delay: var(--enter-delay, 0ms);
}
.on-enter.in-view {
  opacity: 1;
  transform: none;
  filter: blur(0);
}

/* ============================================================
   CARD SPOTLIGHT (mouse-following glow)
   Apply by adding .spotlight to a card. JS sets --mx, --my (in px)
   ============================================================ */
.spotlight {
  position: relative;
  isolation: isolate;
}
.spotlight::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(
    420px circle at var(--mx, 50%) var(--my, 50%),
    rgba(148, 209, 255, 0.12),
    transparent 45%
  );
  opacity: 0;
  transition: opacity 0.3s var(--ease-out);
  pointer-events: none;
  z-index: 0;
}
.spotlight:hover::before { opacity: 1; }
.spotlight > * { position: relative; z-index: 1; }

/* (process line styles removed — replaced by .process-cycler tab layout below) */

/* ============================================================
   STAT COUNTER — animated values
   ============================================================ */
.work-card-stats strong {
  display: inline-block;
  transition: transform 0.6s var(--ease-out);
}

/* ============================================================
   CTA — pulsing glow background
   ============================================================ */
.cta::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 800px;
  height: 600px;
  transform: translate(-50%, -50%);
  background: radial-gradient(
    circle at center,
    rgba(148, 209, 255, 0.18) 0%,
    transparent 60%
  );
  filter: blur(40px);
  pointer-events: none;
  z-index: -1;
  animation: ctaGlowPulse 6s ease-in-out infinite;
}
@keyframes ctaGlowPulse {
  0%, 100% { opacity: 0.5; transform: translate(-50%, -50%) scale(1); }
  50%      { opacity: 0.9; transform: translate(-50%, -50%) scale(1.08); }
}

/* ============================================================
   SECTION TITLE — word-by-word reveal (when in view)
   ============================================================ */
.section-title.split .word {
  display: inline-block;
  opacity: 0;
  transform: translateY(0.4em);
  filter: blur(8px);
  transition:
    opacity 0.9s cubic-bezier(0.22, 0.61, 0.36, 1),
    transform 0.9s cubic-bezier(0.22, 0.61, 0.36, 1),
    filter 0.7s cubic-bezier(0.22, 0.61, 0.36, 1);
  transition-delay: calc(var(--word-i, 0) * 70ms);
}
.section-title.split.in-view .word {
  opacity: 1;
  transform: none;
  filter: blur(0);
}

/* ============================================================
   SECTION FRAMEWORK
   ============================================================ */
.section {
  position: relative;
  padding: 72px 24px;
  isolation: isolate;
}
.section-inner {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
}
.section-inner.narrow { max-width: 760px; text-align: center; }

.section-head {
  text-align: center;
  margin-bottom: 44px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px 6px 10px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-pill);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.section-eyebrow-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 6px var(--accent);
}

.section-title {
  margin: 0;
  max-width: 18ch;
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: clamp(32px, 4.5vw, 52px);
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: var(--text);
}
.section-title-accent {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  background: linear-gradient(180deg, #FFFFFF 0%, #B8C7D9 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.section-subtitle {
  margin: 0;
  max-width: 540px;
  color: var(--text-subtle);
  font-size: 16px;
  line-height: 1.6;
}

/* ============================================================
   ABOUT ME (photo + bio)
   ============================================================ */
.about {
  padding: 90px 24px;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background:
    radial-gradient(ellipse 70% 60% at 30% 50%, rgba(148, 209, 255, 0.06), transparent 65%),
    var(--bg);
}
.about-grid {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 80px;
  align-items: center;
}

/* photo */
.about-photo-wrap {
  position: relative;
  display: flex;
  justify-content: center;
}
.about-photo-frame {
  position: relative;
  width: 100%;
  max-width: 460px;
  aspect-ratio: 4 / 5;
  border-radius: var(--r-xl);
  overflow: hidden;
  border: 1px solid var(--border-strong);
  background: var(--bg-3);
  box-shadow:
    0 20px 60px rgba(0, 0, 0, 0.4),
    0 0 0 1px rgba(255, 255, 255, 0.05) inset;

  /* entrance reveal — opacity + lift + scale (bulletproof, no clip-path) */
  opacity: 0;
  transform: translateY(40px) scale(0.96);
  filter: blur(10px);
  transition:
    opacity 1.2s cubic-bezier(0.22, 0.61, 0.36, 1) 0.1s,
    transform 1.4s cubic-bezier(0.22, 0.61, 0.36, 1) 0.1s,
    filter 1s cubic-bezier(0.22, 0.61, 0.36, 1) 0.1s;
}
.about.in-view .about-photo-frame {
  opacity: 1;
  transform: translateY(0) scale(1);
  filter: blur(0);
}

.about-photo-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.05) contrast(1.02);
  transition: transform 0.6s var(--ease-out);
}
.about-photo-frame:hover .about-photo-img {
  transform: scale(1.03);
}

/* glowing border ring around photo */
.about-photo-glow {
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  pointer-events: none;
  background: conic-gradient(
    from 0deg,
    transparent 0%,
    rgba(148, 209, 255, 0.6) 25%,
    transparent 50%,
    rgba(148, 209, 255, 0.3) 75%,
    transparent 100%
  );
  opacity: 0;
  filter: blur(20px);
  z-index: -1;
  animation: photoHalo 8s linear infinite;
}
.about.in-view .about-photo-glow {
  opacity: 0.7;
  transition: opacity 1s var(--ease-out) 0.6s;
}
@keyframes photoHalo {
  to { transform: rotate(360deg); }
}

/* "available" status badge over photo */
.about-photo-badge {
  position: absolute;
  bottom: 20px;
  left: 20px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  background: rgba(8, 9, 10, 0.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-strong);
  border-radius: var(--r-pill);
  font-size: 12px;
  font-weight: 500;
  color: var(--text);
  letter-spacing: -0.005em;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.6s var(--ease-out) 1.0s, transform 0.6s var(--ease-out) 1.0s;
}
.about.in-view .about-photo-badge {
  opacity: 1;
  transform: none;
}
.about-photo-badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #5ee29a;
  box-shadow: 0 0 10px rgba(94, 226, 154, 0.7);
  animation: dotPulse 2s ease-in-out infinite;
}
@keyframes dotPulse {
  0%, 100% { transform: scale(1); }
  50%      { transform: scale(1.25); }
}

/* content side */
.about-content {
  display: flex;
  flex-direction: column;
  gap: 22px;
  align-items: flex-start;
}
.about-title { max-width: 14ch; }
.about-statement {
  margin: 0;
  font-family: var(--font-sans);
  font-size: clamp(15px, 1.4vw, 17px);
  line-height: 1.65;
  font-weight: 400;
  color: var(--text-muted);
  letter-spacing: -0.005em;
}

/* per-word reveal (Landio-style) */
.reveal-words .word-r {
  display: inline-block;
  opacity: 0;
  transform: translateY(10px);
  filter: blur(4px);
  transition:
    opacity 0.7s cubic-bezier(0.22, 0.61, 0.36, 1),
    transform 0.7s cubic-bezier(0.22, 0.61, 0.36, 1),
    filter 0.5s cubic-bezier(0.22, 0.61, 0.36, 1);
  transition-delay: calc(var(--word-i, 0) * 28ms);
}
.reveal-words.in-view .word-r {
  opacity: 1;
  transform: none;
  filter: blur(0);
}

/* stats row */
.about-stats {
  display: flex;
  gap: 32px;
  padding: 18px 0;
  margin-top: 4px;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.about-stats > div {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.about-stats strong {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  font-size: 28px;
  color: var(--text);
  letter-spacing: -0.01em;
  background: linear-gradient(180deg, #FFFFFF 0%, #B8C7D9 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.about-stats span {
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-faint);
}

/* social links */
.about-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 4px;
}
.about-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-pill);
  font-size: 13px;
  color: var(--text-muted);
  transition: color 0.2s var(--ease-out), background 0.2s var(--ease-out), border-color 0.2s var(--ease-out), transform 0.2s var(--ease-out);
}
.about-link:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
  border-color: var(--border-strong);
  transform: translateY(-1px);
}
.about-link-primary {
  background: linear-gradient(180deg, rgba(148, 209, 255, 0.18), rgba(148, 209, 255, 0.04));
  border-color: rgba(148, 209, 255, 0.3);
  color: var(--text);
}
.about-link-primary:hover {
  background: linear-gradient(180deg, rgba(148, 209, 255, 0.25), rgba(148, 209, 255, 0.08));
  border-color: rgba(148, 209, 255, 0.5);
}

/* responsive */
@media (max-width: 980px) {
  .about-grid { grid-template-columns: 1fr; gap: 56px; }
  .about-photo-wrap { order: -1; }
  .about-photo-frame { max-width: 380px; aspect-ratio: 1 / 1; }
  .about-content { align-items: center; text-align: center; }
  .about-title { text-align: center; max-width: none; }
  .about-stats { flex-wrap: wrap; justify-content: center; gap: 24px; }
  .about-links { justify-content: center; }
}

/* ============================================================
   INTEGRATIONS GRID (3-row marquee)
   ============================================================ */
.integ-card {
  position: relative;
  max-width: 780px;
  margin: 0 auto;
  padding: 36px 18px;
  background:
    radial-gradient(120% 100% at 50% 0%, rgba(255,255,255,0.05) 0%, rgba(255,255,255,0) 60%),
    var(--surface);
  border: 1px solid var(--border);
  border-radius: 26px;
  display: flex;
  flex-direction: column;
  gap: 22px;
  overflow: hidden;
  box-shadow:
    0 30px 80px rgba(0,0,0,0.35),
    inset 0 1px 0 rgba(255,255,255,0.04);
}
.integ-row {
  position: relative;
  overflow: hidden;
  width: 100%;
  -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 12%, #000 88%, transparent 100%);
          mask-image: linear-gradient(to right, transparent 0%, #000 12%, #000 88%, transparent 100%);
}
.integ-track {
  display: inline-flex;
  align-items: center;
  gap: 22px;
  padding-right: 22px;
  will-change: transform;
}
.integ-row-1 .integ-track { animation: integScrollLeft  42s linear infinite; }
.integ-row-2 .integ-track { animation: integScrollRight 38s linear infinite; }
.integ-row-3 .integ-track { animation: integScrollLeft  46s linear infinite; }
@keyframes integScrollLeft  { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes integScrollRight { from { transform: translateX(-50%); } to { transform: translateX(0); } }

.integ-logo {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 72px;
  height: 72px;
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.005));
  border: 1px solid var(--border);
  color: rgba(213, 219, 230, 0.85);
  transition: color 0.25s var(--ease-out), border-color 0.25s var(--ease-out), background 0.25s var(--ease-out);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.04);
}
.integ-logo svg {
  width: 26px;
  height: 26px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.integ-logo:hover {
  color: #fff;
  border-color: rgba(148,209,255,0.4);
  background: linear-gradient(180deg, rgba(255,255,255,0.08), rgba(255,255,255,0.02));
}

.integ-quote {
  margin: 32px auto 0;
  max-width: 540px;
  text-align: center;
  font-size: 14px;
  color: var(--text-muted);
  font-style: italic;
}

@media (prefers-reduced-motion: reduce) {
  .integ-row-1 .integ-track,
  .integ-row-2 .integ-track,
  .integ-row-3 .integ-track { animation: none; }
}

/* ============================================================
   BENEFITS GRID
   ============================================================ */
.benefits-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.benefit-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 28px 28px 32px;
  background:
    radial-gradient(120% 80% at 50% 0%, rgba(255,255,255,0.04) 0%, rgba(255,255,255,0) 60%),
    var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  overflow: hidden;
  transition: transform 0.35s var(--ease-out), border-color 0.35s var(--ease-out), background 0.35s var(--ease-out);
}
.benefit-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(180deg, rgba(255,255,255,0.08), rgba(255,255,255,0));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  pointer-events: none;
}
.benefit-card:hover {
  transform: translateY(-3px);
  border-color: var(--border-strong);
}

.benefit-visual {
  position: relative;
  aspect-ratio: 22 / 14;
  margin-bottom: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text);
}
.benefit-visual::after {
  content: "";
  position: absolute;
  inset: auto 10% -8px 10%;
  height: 40px;
  background: radial-gradient(50% 100% at 50% 0%, rgba(148,209,255,0.10), transparent 70%);
  filter: blur(8px);
  pointer-events: none;
}

.benefit-title {
  margin: 0 0 10px;
  font-size: 20px;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--text);
  text-align: center;
}
.benefit-body {
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-subtle);
  text-align: center;
  max-width: 32ch;
  margin-inline: auto;
}

/* --- Card 1: Gauge needle sweep --- */
.bv-gauge-needle {
  transform-box: view-box;
  transform-origin: 110px 120px;
  animation: bvGaugeSweep 4.2s var(--ease-out) infinite;
}
@keyframes bvGaugeSweep {
  0%   { transform: rotate(-70deg); }
  45%  { transform: rotate(60deg); }
  55%  { transform: rotate(60deg); }
  100% { transform: rotate(-70deg); }
}

/* --- Card 2: Bars grow with stagger --- */
.bv-bar {
  transform-box: fill-box;
  transform-origin: bottom center;
  animation: bvBarGrow 3.6s var(--ease-out) infinite;
}
.bv-bar-1 { animation-delay: 0s; }
.bv-bar-2 { animation-delay: 0.15s; }
.bv-bar-3 { animation-delay: 0.30s; }
.bv-bar-4 { animation-delay: 0.45s; }
@keyframes bvBarGrow {
  0%, 100% { transform: scaleY(0.4); opacity: 0.55; }
  40%, 60% { transform: scaleY(1);   opacity: 1; }
}

/* --- Card 3: Network nodes pulse + lines shimmer --- */
.bv-node circle,
.bv-node-center circle {
  transform-box: fill-box;
  transform-origin: center;
}
.bv-node { animation: bvNodePulse 2.8s var(--ease-out) infinite; }
.bv-node-1 { animation-delay: 0.0s; }
.bv-node-2 { animation-delay: 0.4s; }
.bv-node-3 { animation-delay: 0.8s; }
.bv-node-4 { animation-delay: 1.2s; }
.bv-node-5 { animation-delay: 1.6s; }
.bv-node-6 { animation-delay: 2.0s; }
@keyframes bvNodePulse {
  0%, 100% { opacity: 0.55; }
  50%      { opacity: 1; }
}
.bv-node-center > circle:first-child {
  animation: bvCenterRing 2.8s var(--ease-out) infinite;
  transform-origin: 110px 70px;
  transform-box: view-box;
}
@keyframes bvCenterRing {
  0%   { transform: scale(0.8); opacity: 0.6; }
  100% { transform: scale(1.6); opacity: 0; }
}
.bv-line {
  stroke-dasharray: 4 6;
  animation: bvLineFlow 3s linear infinite;
}
@keyframes bvLineFlow {
  to { stroke-dashoffset: -40; }
}

@media (prefers-reduced-motion: reduce) {
  .bv-gauge-needle,
  .bv-bar,
  .bv-node,
  .bv-node-center > circle:first-child,
  .bv-line { animation: none; }
}

/* ============================================================
   SERVICES BENTO
   ============================================================ */
.services-bento {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: auto;
  gap: 20px;
}
.service-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 24px;
  background:
    radial-gradient(120% 80% at 50% 0%, rgba(255,255,255,0.04) 0%, rgba(255,255,255,0) 60%),
    var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  overflow: hidden;
  min-height: 360px;
  transition: transform 0.35s var(--ease-out), border-color 0.35s var(--ease-out);
}
.service-card:hover {
  transform: translateY(-3px);
  border-color: var(--border-strong);
}
.service-card-lg { grid-column: span 2; }

.svc-visual {
  position: relative;
  flex: 1;
  margin-bottom: 22px;
  min-height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text);
  overflow: hidden;
  border-radius: 14px;
}
.service-card-meta { display: flex; flex-direction: column; gap: 8px; }
.service-card-title {
  margin: 0;
  font-size: 20px;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--text);
}
.service-card-body {
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-subtle);
}

/* ---------- Card A: Task list (vertical marquee) ---------- */
.svc-tasks .svc-visual { padding: 0; align-items: stretch; justify-content: stretch; min-height: 220px; }
.task-scroll {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 220px;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 18%, #000 82%, transparent 100%);
          mask-image: linear-gradient(180deg, transparent 0%, #000 18%, #000 82%, transparent 100%);
}
.task-track {
  position: absolute;
  inset: 0 0 auto 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 8px 6px;
  animation: taskScroll 14s linear infinite;
}
@keyframes taskScroll {
  from { transform: translateY(0); }
  to   { transform: translateY(-50%); }
}
.task-row {
  display: grid;
  grid-template-columns: 28px 1fr 28px;
  align-items: center;
  gap: 10px;
  padding: 11px 12px;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  border-radius: 12px;
  font-size: 13px;
  color: var(--text);
  flex-shrink: 0;
}
.task-ico {
  display: inline-flex; align-items: center; justify-content: center;
  width: 22px; height: 22px; border-radius: 6px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  color: var(--text);
}
.task-label { color: var(--text); }
.task-state {
  display: inline-flex; align-items: center; justify-content: center;
  width: 22px; height: 22px; border-radius: 50%;
  background: rgba(255,255,255,0.04);
  color: var(--text-muted);
}
.task-state-check { color: #b5e3a8; background: rgba(140,220,120,0.10); }
.task-state-loop svg { animation: taskLoopSpin 2.2s linear infinite; }
@keyframes taskLoopSpin { to { transform: rotate(360deg); } }

/* ---------- Card B: Orbit / workflow ---------- */
.svc-visual-orbit {
  min-height: 320px;
  position: relative;
}
.orbit-core {
  position: relative;
  width: 96px;
  height: 96px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 40%, rgba(255,255,255,0.16), rgba(0,0,0,0.7) 68%);
  display: flex; align-items: center; justify-content: center;
  color: #fff;
  box-shadow:
    0 0 80px rgba(148,209,255,0.28),
    inset 0 0 40px rgba(148,209,255,0.12);
  z-index: 3;
  animation: orbitBreath 3.6s ease-in-out infinite;
}
@keyframes orbitBreath {
  0%, 100% { box-shadow: 0 0 60px rgba(148,209,255,0.20), inset 0 0 30px rgba(148,209,255,0.10); }
  50%      { box-shadow: 0 0 100px rgba(148,209,255,0.40), inset 0 0 50px rgba(148,209,255,0.18); }
}
.orbit-core > svg { filter: drop-shadow(0 0 8px rgba(148,209,255,0.6)); }

.orbit-dashed {
  position: absolute;
  inset: -16px;
  border-radius: 50%;
  border: 1px dashed rgba(255,255,255,0.22);
  animation: orbitDashSpin 18s linear infinite;
}
@keyframes orbitDashSpin { to { transform: rotate(360deg); } }

.orbit-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1px solid rgba(148,209,255,0.30);
  animation: orbitPulse 3.6s ease-out infinite;
  pointer-events: none;
}
.orbit-ring-2 { animation-delay: 1.2s; }
.orbit-ring-3 { animation-delay: 2.4s; }
@keyframes orbitPulse {
  0%   { transform: scale(0.8); opacity: 0.7; }
  100% { transform: scale(2.6); opacity: 0; }
}

.orbit-icon {
  position: absolute;
  display: inline-flex; align-items: center; justify-content: center;
  width: 48px; height: 48px;
  border-radius: 13px;
  background: linear-gradient(180deg, rgba(255,255,255,0.05), rgba(255,255,255,0.01));
  border: 1px solid var(--border);
  color: var(--text);
  animation: orbitPulseIcon 2.6s ease-in-out infinite;
  z-index: 1;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.04);
  will-change: transform, box-shadow, border-color;
}
.orbit-i-1 { top: 18%;  left: 10%;  animation-delay: 0.0s; }
.orbit-i-2 { top: 10%;  left: 36%;  animation-delay: 0.3s; }
.orbit-i-3 { top: 14%;  right: 18%; animation-delay: 0.6s; }
.orbit-i-4 { top: 42%;  right: 6%;  animation-delay: 0.9s; }
.orbit-i-5 { bottom: 18%; left: 8%;  animation-delay: 1.2s; }
.orbit-i-6 { bottom: 14%; left: 38%; animation-delay: 1.5s; }
.orbit-i-7 { bottom: 22%; right: 14%; animation-delay: 1.8s; }
@keyframes orbitPulseIcon {
  0%, 100% {
    transform: scale(1) translateY(0);
    border-color: var(--border);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.04), 0 0 0 0 rgba(148,209,255,0);
    color: var(--text-subtle);
  }
  50% {
    transform: scale(1.08) translateY(-4px);
    border-color: rgba(148,209,255,0.55);
    box-shadow:
      inset 0 1px 0 rgba(255,255,255,0.06),
      0 0 22px rgba(148,209,255,0.30),
      0 0 0 4px rgba(148,209,255,0.06);
    color: #ffffff;
  }
}

/* ---------- Card C: Intel rows ---------- */
.intel-search {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 8px 8px 12px;
  background: var(--bg-3);
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  font-size: 12px;
  color: var(--text-subtle);
  margin-bottom: 10px;
}
.intel-search-ico { color: var(--text-muted); display: inline-flex; }
.intel-search-text { flex: 1; }
.intel-caret { display: inline-block; margin-left: 2px; animation: blink 1.1s steps(2) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.intel-search-btn {
  padding: 5px 12px;
  background: rgba(255,255,255,0.08);
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  font-size: 11px;
  color: var(--text);
}
.intel-rows { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; width: 100%; }
.intel-rows li {
  display: flex; align-items: center; justify-content: space-between;
  gap: 10px;
  padding: 9px 12px;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  border-radius: 10px;
  font-size: 12px;
  color: var(--text-subtle);
}
.intel-spark { color: rgba(148,209,255,0.85); flex-shrink: 0; }
.intel-rows li .intel-spark polyline {
  stroke-dasharray: 120;
  stroke-dashoffset: 120;
  animation: sparkDraw 4s var(--ease-out) infinite;
}
.intel-rows li:nth-child(2) .intel-spark polyline { animation-delay: 0.3s; }
.intel-rows li:nth-child(3) .intel-spark polyline { animation-delay: 0.6s; }
@keyframes sparkDraw {
  0%   { stroke-dashoffset: 120; }
  50%, 100% { stroke-dashoffset: 0; }
}
.svc-intel .svc-visual { flex-direction: column; align-items: stretch; justify-content: flex-start; padding: 4px; }

/* ---------- Card D: Code window ---------- */
.code-window {
  width: 100%;
  background: #0a0c10;
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 11px;
}
.code-window-head {
  display: flex; align-items: center; gap: 6px;
  padding: 8px 10px;
  border-bottom: 1px solid var(--border);
}
.code-dot { width: 9px; height: 9px; border-radius: 50%; background: rgba(255,255,255,0.18); }
.code-tab { margin-left: auto; font-size: 10px; color: var(--text-muted); }
.code-body {
  margin: 0; padding: 10px 12px;
  color: var(--text-subtle);
  line-height: 1.55;
  white-space: pre;
  overflow: hidden;
}
.code-ln {
  display: block;
  opacity: 0;
  animation: codeFade 7s var(--ease-out) infinite;
}
.code-ln:nth-child(1) { animation-delay: 0.0s; }
.code-ln:nth-child(2) { animation-delay: 0.3s; }
.code-ln:nth-child(3) { animation-delay: 0.6s; }
.code-ln:nth-child(4) { animation-delay: 0.9s; }
.code-ln:nth-child(5) { animation-delay: 1.2s; }
.code-ln:nth-child(6) { animation-delay: 1.5s; }
.code-ln:nth-child(7) { animation-delay: 1.8s; }
@keyframes codeFade {
  0%  { opacity: 0; transform: translateY(2px); }
  12%, 92% { opacity: 1; transform: translateY(0); }
  100% { opacity: 0; }
}
.code-num { display: inline-block; width: 18px; color: rgba(255,255,255,0.18); }
.code-tk-k { color: #c197fb; }
.code-tk-c { color: #f0a07a; }
.code-tk-f { color: #94d1ff; }
.code-tk-v { color: #e6e6e6; }
.code-tk-s { color: #b5e3a8; }

/* ---------- Card E: Strategy nodes ---------- */
.strategy-link {
  stroke-dasharray: 4 6;
  animation: bvLineFlow 3s linear infinite;
}
.strategy-node circle { transform-box: view-box; transform-origin: center; }
.strategy-node-a { animation: strategyFloatA 5s ease-in-out infinite; transform-box: view-box; transform-origin: 60px 50px; }
.strategy-node-b { animation: strategyFloatB 5s ease-in-out infinite; transform-box: view-box; transform-origin: 160px 90px; }
@keyframes strategyFloatA {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-4px); }
}
@keyframes strategyFloatB {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(4px); }
}

@media (prefers-reduced-motion: reduce) {
  .task-row, .task-state-loop,
  .orbit-ring, .orbit-icon,
  .intel-caret, .intel-rows li .intel-spark polyline,
  .code-ln,
  .strategy-link, .strategy-node-a, .strategy-node-b { animation: none; opacity: 1; }
}

/* responsive bento */
@media (max-width: 980px) {
  .benefits-grid { grid-template-columns: repeat(2, 1fr); }
  .services-bento { grid-template-columns: repeat(2, 1fr); }
  .service-card-lg { grid-column: span 2; grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .section { padding: 56px 20px; }
  .benefits-grid { grid-template-columns: 1fr; }
  .services-bento { grid-template-columns: 1fr; }
  .service-card-lg { grid-column: span 1; }
}

/* ============================================================
   PROCESS — Landio-style auto-cycling tabs
   ============================================================ */
.process-cycler {
  position: relative;
  padding: 14px;
  background:
    radial-gradient(120% 80% at 50% 0%, rgba(255,255,255,0.03) 0%, rgba(255,255,255,0) 60%),
    var(--surface);
  border: 1px solid var(--border);
  border-radius: 22px;
  overflow: hidden;
}
.process-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 24px;
}
.process-tab {
  position: relative;
  padding: 18px 20px;
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--border);
  border-radius: 14px;
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-align: center;
  cursor: pointer;
  overflow: hidden;
  transition: color 0.3s var(--ease-out), background 0.3s var(--ease-out), border-color 0.3s var(--ease-out);
}
.process-tab:hover { color: var(--text); }
.process-tab.is-active {
  background: linear-gradient(180deg, rgba(255,255,255,0.05), rgba(255,255,255,0.01));
  border-color: var(--border-strong);
  color: var(--text);
}
.process-tab-label { position: relative; z-index: 2; }
.process-tab-progress {
  position: absolute;
  left: 0; bottom: 0;
  height: 2px;
  width: 0%;
  background: linear-gradient(90deg, rgba(148,209,255,0.55), rgba(148,209,255,0.9));
  box-shadow: 0 0 10px rgba(148,209,255,0.4);
  z-index: 1;
}

.process-stage {
  position: relative;
  min-height: 460px;
}
.process-panel {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 40px;
  align-items: center;
  padding: 20px 24px 24px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: opacity 0.55s var(--ease-out), transform 0.55s var(--ease-out);
}
.process-panel.is-active {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.process-visual {
  position: relative;
  min-height: 380px;
}
.process-text { max-width: 460px; }
.process-num {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 18px;
  color: var(--text-muted);
  margin-bottom: 14px;
}
.process-title {
  margin: 0 0 14px;
  font-size: 28px;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--text);
}
.process-body {
  margin: 0;
  font-size: 15px;
  line-height: 1.7;
  color: var(--text-subtle);
}

/* ----- Panel 1 visuals: stats + Weakest Systems overlay ----- */
.pv-stats {
  position: absolute;
  top: 0; left: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  width: 70%;
}
.pv-stat {
  padding: 14px;
  background: linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0));
  border: 1px solid var(--border);
  border-radius: 12px;
  color: var(--text);
}
.pv-stat-head {
  display: flex; justify-content: space-between; align-items: center;
  font-size: 11px; color: var(--text-muted);
  margin-bottom: 6px;
}
.pv-chip {
  padding: 2px 8px; border-radius: 999px;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border);
  font-size: 9px; letter-spacing: 0.08em;
}
.pv-stat-val {
  font-size: 26px; font-weight: 500; letter-spacing: -0.02em;
}
.pv-stat-val span { font-size: 16px; color: var(--text-muted); }
.pv-spark { width: 100%; height: 32px; color: rgba(255,255,255,0.55); margin-top: 4px; }
.pv-spark path { stroke-dasharray: 400; stroke-dashoffset: 400; animation: sparkDraw 5s var(--ease-out) infinite; }

.pv-overlay {
  position: absolute;
  left: 18%;
  bottom: 0;
  width: 78%;
  padding: 16px;
  background: linear-gradient(180deg, rgba(20,22,28,0.95), rgba(14,16,22,0.95));
  border: 1px solid var(--border-strong);
  border-radius: 14px;
  box-shadow: 0 24px 60px rgba(0,0,0,0.5);
  backdrop-filter: blur(4px);
}
.pv-overlay-head {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 12px;
  letter-spacing: -0.005em;
}
.pv-bars { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.pv-bars li {
  display: grid;
  grid-template-columns: 28px 1fr 1.4fr auto;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  color: var(--text);
}
.pv-bar-ico {
  display: inline-flex; align-items: center; justify-content: center;
  width: 24px; height: 24px; border-radius: 6px;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border);
  color: var(--text);
}
.pv-bar-label { color: var(--text); }
.pv-bar-track {
  position: relative;
  height: 4px;
  background: rgba(255,255,255,0.06);
  border-radius: 999px;
  overflow: hidden;
}
.pv-bar-fill {
  display: block;
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, rgba(255,255,255,0.55), rgba(255,255,255,0.95));
  border-radius: 999px;
  transition: width 1.4s cubic-bezier(.22,.61,.36,1);
}
.process-panel.is-active .pv-bar-fill { width: var(--w); }
.pv-bar-score { font-size: 11px; color: var(--text-muted); }
.pv-bar-score strong { color: var(--text); font-weight: 500; margin-right: 4px; }

/* ----- Panel 2: code window ----- */
.pv-code {
  position: absolute;
  inset: 6% 4% 6% 4%;
  background: #0b0d12;
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(0,0,0,0.5);
}
.pv-code-head {
  display: flex; gap: 6px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
}
.pv-code-dot { width: 9px; height: 9px; border-radius: 50%; background: rgba(255,255,255,0.15); }
.pv-code-body {
  margin: 0;
  padding: 16px 18px;
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 12px;
  line-height: 1.7;
  color: var(--text-subtle);
  white-space: pre;
  overflow: hidden;
}
.pv-cmt { color: #6f8aa8; }
.pv-k   { color: #c197fb; }
.pv-f   { color: #94d1ff; }
.pv-s   { color: #b5e3a8; }

/* ----- Panel 3: growth chart + overlay ----- */
.pv-chart {
  position: absolute;
  top: 0; left: 0;
  width: 70%;
  height: 220px;
  padding: 16px 16px 16px 40px;
  background: linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0));
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
}
.pv-chart svg { display: block; width: 100%; height: 100%; }
.pv-chart-line {
  stroke-dasharray: 800;
  stroke-dashoffset: 800;
  animation: chartDraw 3.6s var(--ease-out) forwards;
}
.process-panel:not(.is-active) .pv-chart-line { animation: none; stroke-dashoffset: 800; }
.process-panel.is-active .pv-chart-line { animation: chartDraw 3.6s var(--ease-out) forwards; }
@keyframes chartDraw { to { stroke-dashoffset: 0; } }
.pv-chart-area { opacity: 0; transition: opacity 0.6s var(--ease-out) 1.8s; }
.process-panel.is-active .pv-chart-area { opacity: 1; }
.pv-chart-y {
  position: absolute;
  top: 16px; left: 8px; bottom: 16px;
  display: flex; flex-direction: column; justify-content: space-between;
  font-size: 10px; color: var(--text-muted);
}
.pv-mini-stats {
  position: absolute;
  top: 240px; left: 0;
  width: 60%;
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.pv-mini-stats > div {
  display: grid;
  grid-template-columns: auto auto 1fr;
  align-items: baseline; gap: 6px;
  padding: 10px 12px;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  border-radius: 10px;
  font-size: 11px; color: var(--text-muted);
}
.pv-mini-stats strong { justify-self: end; font-size: 18px; font-weight: 500; color: var(--text); letter-spacing: -0.01em; }
.pv-mini-ico { display: inline-flex; color: var(--text-muted); }

@media (max-width: 900px) {
  .process-panel { grid-template-columns: 1fr; gap: 28px; }
  .process-stage { min-height: 720px; }
  .pv-stats, .pv-chart, .pv-mini-stats { position: relative; width: 100%; top: auto; left: auto; }
  .pv-overlay { position: relative; left: 0; bottom: auto; width: 100%; margin-top: 12px; }
  .pv-code { position: relative; inset: auto; }
  .pv-mini-stats { top: auto; margin-top: 12px; }
}

/* ============================================================
   SELECTED WORK — stacked-card "unfolding" carousel
   ============================================================ */
.work-shell {
  position: relative;
  max-width: 820px;
  margin: 0 auto;
}
.work-tabs {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
  margin-bottom: 36px;
}
.work-tab {
  position: relative;
  padding: 14px 16px;
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--border);
  border-radius: 12px;
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.04em;
  cursor: pointer;
  overflow: hidden;
  transition: color 0.3s var(--ease-out), background 0.3s var(--ease-out), border-color 0.3s var(--ease-out);
}
.work-tab:hover { color: var(--text); }
.work-tab.is-active {
  background: linear-gradient(180deg, rgba(255,255,255,0.05), rgba(255,255,255,0.01));
  border-color: var(--border-strong);
  color: var(--text);
}

.stories-stack {
  position: relative;
  height: 740px;
  /* Allow back-card window heads to peek above without clipping */
  padding-top: 108px;
  box-sizing: content-box;
}
.stories-stack.is-empty::before {
  content: "Projects coming soon.";
  position: absolute;
  inset: 108px 0 0 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  color: var(--text-muted);
  letter-spacing: 0.01em;
  border: 1px dashed var(--border);
  border-radius: 22px;
  background: rgba(255,255,255,0.015);
}
.story-card {
  position: absolute;
  left: 0;
  right: 0;
  top: 108px;
  margin: 0;
  display: flex;
  flex-direction: column;
  background:
    radial-gradient(120% 80% at 50% 0%, rgba(255,255,255,0.04) 0%, rgba(255,255,255,0) 55%),
    #0b0e15;
  border: 1px solid var(--border);
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0,0,0,0.55);
  transform: translateY(-160px) scale(0.92);
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
  transition:
    transform 0.85s cubic-bezier(0.22, 0.61, 0.36, 1),
    opacity 0.7s cubic-bezier(0.22, 0.61, 0.36, 1),
    visibility 0s linear 0.7s;
  z-index: 1;
}
.story-card.is-front,
.story-card.is-second,
.story-card.is-third {
  visibility: visible;
  transition:
    transform 0.85s cubic-bezier(0.22, 0.61, 0.36, 1),
    opacity 0.7s cubic-bezier(0.22, 0.61, 0.36, 1);
}
.story-card.is-front  { transform: translateY(0)     scale(1);    opacity: 1;    z-index: 5; pointer-events: auto; }
.story-card.is-second { transform: translateY(-54px) scale(1);    opacity: 1;    z-index: 4; }
.story-card.is-third  { transform: translateY(-108px) scale(1);   opacity: 1;    z-index: 3; }
/* Slightly dim the back cards' BODIES so the front clearly reads as active */
.story-card.is-second .story-body { opacity: 0.35; transition: opacity 0.6s var(--ease-out); }
.story-card.is-third  .story-body { opacity: 0.18; transition: opacity 0.6s var(--ease-out); }
.story-card.is-front  .story-body { opacity: 1;    transition: opacity 0.6s var(--ease-out); }

.story-window-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
  color: var(--text-muted);
}
.story-window-ico {
  display: inline-flex; align-items: center; justify-content: center;
  width: 28px; height: 28px;
  border-radius: 8px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
}
.story-window-dots { display: inline-flex; gap: 6px; }
.story-window-dots span { width: 6px; height: 6px; border-radius: 50%; background: rgba(255,255,255,0.18); }

.story-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 20px 22px 26px;
}
.story-media {
  position: relative;
  width: 100%;
  height: 380px;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: #0a0c12;
  flex-shrink: 0;
  order: -1;
}
.story-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}
.story-text { display: flex; flex-direction: column; gap: 12px; }
.story-title {
  margin: 0;
  font-size: 24px;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--text);
  line-height: 1.25;
}
.story-blurb {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.65;
  color: var(--text-subtle);
}
.story-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 4px;
}
.story-stat {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 12px 14px;
  background: rgba(255,255,255,0.025);
  border: 1px solid var(--border);
  border-radius: 12px;
}
.story-stat strong {
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--text);
}
.story-stat span {
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--text-muted);
}

@media (max-width: 860px) {
  .work-tabs { grid-template-columns: repeat(2, 1fr); }
  .stories-stack { height: 700px; padding-top: 90px; }
  .story-card.is-second { transform: translateY(-44px); }
  .story-card.is-third  { transform: translateY(-88px); }
  .story-card { top: 90px; }
  .story-body { padding: 16px 18px 22px; gap: 16px; }
  .story-media { height: 240px; }
  .story-title { font-size: 20px; }
  .story-stat strong { font-size: 18px; }
}

/* (legacy .integrations orbit removed — replaced by .integ-card 3-row marquee) */

/* ============================================================
   REVIEWS / TESTIMONIALS
   ============================================================ */
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.review-card {
  margin: 0;
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: border-color 0.25s var(--ease-out);
}
.review-card:hover { border-color: var(--border-strong); }
.review-stars {
  font-size: 13px;
  letter-spacing: 0.12em;
  color: var(--accent);
}
.review-card blockquote {
  margin: 0;
  font-size: 15px;
  line-height: 1.55;
  color: var(--text);
  font-weight: 400;
  letter-spacing: -0.005em;
}
.review-card figcaption {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid var(--border);
  font-size: 13px;
  color: var(--text-subtle);
}
.review-card figcaption strong {
  font-size: 14px;
  color: var(--text);
  font-weight: 500;
}

/* ============================================================
   FAQ
   ============================================================ */
.faq-inner {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 64px;
  align-items: start;
}
.faq-aside {
  position: sticky;
  top: 120px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: flex-start;
}
.section-title-left { text-align: left; max-width: 12ch; }
.section-subtitle-left { text-align: left; }
.faq-cta { margin-top: 8px; }

.faq-list { display: flex; flex-direction: column; gap: 12px; }
.faq-item {
  padding: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  overflow: hidden;
  transition: border-color 0.2s var(--ease-out);
}
.faq-item[open] { border-color: var(--border-strong); }
.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 18px 22px;
  font-size: 15px;
  font-weight: 500;
  color: var(--text);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '';
  width: 12px;
  height: 12px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  transition: transform 0.2s var(--ease-out);
  flex-shrink: 0;
  opacity: 0.5;
}
.faq-item[open] summary::after { transform: rotate(-135deg); }
.faq-item p {
  margin: 0;
  padding: 0 22px 22px;
  font-size: 14px;
  line-height: 1.65;
  color: var(--text-subtle);
}

/* ============================================================
   COMPARISON
   ============================================================ */
.comparison-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.comparison-col {
  padding: 32px 28px;
  border-radius: var(--r-lg);
  border: 1px solid var(--border);
  background: var(--surface);
}
.comparison-col-me {
  border-color: rgba(148, 209, 255, 0.3);
  background: linear-gradient(180deg, rgba(148, 209, 255, 0.06), rgba(148, 209, 255, 0.02));
  box-shadow: 0 8px 28px rgba(148, 209, 255, 0.08);
}
.comparison-col-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 18px;
  margin-bottom: 18px;
  border-bottom: 1px solid var(--border);
}
.comparison-col-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: linear-gradient(180deg, rgba(148, 209, 255, 0.25), rgba(148, 209, 255, 0.08));
  border: 1px solid rgba(148, 209, 255, 0.3);
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 15px;
  color: var(--accent);
}
.comparison-col-mark-muted {
  background: var(--bg-3);
  border-color: var(--border-strong);
  color: var(--text-faint);
}
.comparison-col-head h3 {
  margin: 0;
  font-size: 17px;
  font-weight: 500;
  color: var(--text);
}
.comparison-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.comparison-col li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.5;
}
.comparison-col li svg { flex-shrink: 0; margin-top: 3px; }
.comparison-col-me li svg { color: var(--accent); }
.comparison-col-them li svg { color: rgba(255, 99, 99, 0.7); }
.comparison-col-them li { color: var(--text-faint); }

/* ============================================================
   CTA
   ============================================================ */
.cta {
  padding: 96px 24px;
  background:
    radial-gradient(ellipse 70% 60% at 50% 50%, rgba(148, 209, 255, 0.12), transparent 70%),
    var(--bg);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.cta-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
  text-align: center;
  max-width: 760px;
}
.cta-title {
  font-size: clamp(36px, 5.5vw, 64px);
  max-width: 18ch;
  line-height: 1.05;
}
.cta-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 4px;
}
.cta-email {
  font-size: 14px;
  color: var(--text-subtle);
  text-decoration: underline;
  text-decoration-color: rgba(213, 219, 230, 0.3);
  text-underline-offset: 4px;
  transition: color 0.2s var(--ease-out);
}
.cta-email:hover { color: var(--text); }

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  padding: 40px 24px;
  border-top: 1px solid var(--border);
  background: var(--bg);
}
.footer-inner {
  max-width: var(--container-max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 32px;
  font-size: 13px;
  color: var(--text-subtle);
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}
.footer-brand strong {
  display: block;
  color: var(--text);
  font-weight: 600;
  font-size: 14px;
}
.footer-brand span {
  display: block;
  font-size: 12px;
  color: var(--text-faint);
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px;
}
.footer-links a {
  padding: 6px 12px;
  color: var(--text-muted);
  border-radius: var(--r-pill);
  font-size: 13px;
  transition: color 0.2s var(--ease-out), background 0.2s var(--ease-out);
}
.footer-links a:hover { color: var(--text); background: rgba(255, 255, 255, 0.04); }
.footer-copy { margin: 0; text-align: right; font-size: 12px; }
.footer-copy a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }

/* ============================================================
   RESPONSIVE — new sections
   ============================================================ */
@media (max-width: 980px) {
  .work-grid { grid-template-columns: 1fr 1fr; }
  .reviews-grid { grid-template-columns: 1fr 1fr; }
  .faq-inner { grid-template-columns: 1fr; gap: 32px; }
  .faq-aside { position: static; }
  .section-title-left { max-width: none; text-align: center; align-self: center; }
  .section-subtitle-left { text-align: center; }
  .faq-aside { align-items: center; }
}
@media (max-width: 720px) {
  .work-grid { grid-template-columns: 1fr; }
  .reviews-grid { grid-template-columns: 1fr; }
  .comparison-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; text-align: center; gap: 18px; }
  .footer-copy { text-align: center; }
  .integrations-orbit { width: 90%; }
  .orbit-node { font-size: 11px; padding: 6px 10px; }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 720px) {
  .nav-links { display: none; }
  .nav-inner { grid-template-columns: auto 1fr auto; padding: 8px 8px 8px 14px; }

  .hero { padding: 110px 20px 60px; }
  .hero-meta { flex-wrap: wrap; gap: 14px; padding: 12px 18px; }
  .hero-meta-divider { display: none; }
  .hero-jj { width: 84px; height: 84px; top: 14%; }
}

@media (max-width: 480px) {
  .nav-actions .btn span { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ============================================================
   RESPONSIVE — Tablet & Mobile polish (Landio-style sections)
   ============================================================ */

/* Tablet (≤1024px) */
@media (max-width: 1024px) {
  .nav-links { display: none; }
  .nav-inner { grid-template-columns: auto 1fr auto; padding: 8px 10px 8px 14px; }
  .nav-logo-text { white-space: nowrap; }
  .section { padding: 64px 22px; }
  .section-head { margin-bottom: 38px; }
  .section-title { font-size: clamp(28px, 4.2vw, 44px); }

  /* Why Choose */
  .benefits-grid { gap: 16px; }
  .benefit-card { padding: 24px; }
  .benefit-title { font-size: 18px; }

  /* Services bento */
  .services-bento { gap: 16px; }
  .service-card { padding: 22px; min-height: 320px; }
  .svc-visual { min-height: 180px; margin-bottom: 18px; }
  .svc-visual-orbit { min-height: 280px; }
  .orbit-core { width: 84px; height: 84px; }
  .orbit-icon { width: 42px; height: 42px; }
  .service-card-title { font-size: 18px; }

  /* Process cycler */
  .process-tab { padding: 14px 14px; font-size: 11px; letter-spacing: 0.14em; }
  .process-panel { gap: 26px; padding: 16px 18px; }
  .process-title { font-size: 24px; }
  .process-visual { min-height: 340px; }

  /* Integrations card */
  .integ-card { max-width: 100%; padding: 30px 14px; }
  .integ-logo { width: 64px; height: 64px; border-radius: 14px; }
  .integ-logo svg { width: 24px; height: 24px; }
  .integ-track { gap: 18px; padding-right: 18px; }

  /* Selected Work */
  .work-shell { max-width: 100%; }
  .work-tabs { gap: 6px; }
  .work-tab { padding: 12px 10px; font-size: 11px; letter-spacing: 0.02em; }
  .stories-stack { height: 700px; padding-top: 100px; }
  .story-card { top: 100px; }
  .story-card.is-second { transform: translateY(-50px); }
  .story-card.is-third  { transform: translateY(-100px); }
  .story-media { height: 340px; }
  .story-title { font-size: 22px; }
}

/* Small tablet / large phone (≤768px) */
@media (max-width: 768px) {
  /* Hero */
  .hero { padding: 96px 18px 56px; }
  .hero-actions { flex-wrap: wrap; gap: 10px; }
  .hero-actions .btn { flex: 1 1 auto; justify-content: center; }
  .hero-jj { width: 90px; height: 90px; top: 10%; }
  .hero-meta { flex-wrap: wrap; justify-content: center; gap: 12px; padding: 12px 16px; }
  .hero-meta-divider { display: none; }

  /* Process visual children stack */
  .pv-stats, .pv-chart, .pv-mini-stats, .pv-overlay, .pv-code {
    position: relative; left: 0; top: 0; bottom: auto; width: 100%; margin-top: 0;
  }
  .pv-chart { height: 200px; padding-left: 36px; }
  .pv-overlay { margin-top: 12px; }
  .pv-mini-stats { margin-top: 12px; }
  .process-stage { min-height: 780px; }

  /* Work tabs: horizontal-scroll on tight viewports */
  .work-tabs {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 4px;
    margin-bottom: 24px;
  }
  .work-tabs::-webkit-scrollbar { display: none; }
  .work-tab { flex: 0 0 auto; min-width: 110px; scroll-snap-align: start; white-space: nowrap; }
}

/* Mobile (≤600px) */
@media (max-width: 600px) {
  .section { padding: 48px 16px; }
  .section-head { margin-bottom: 28px; gap: 12px; }
  .section-title { font-size: 28px; line-height: 1.12; max-width: none; }
  .section-subtitle { font-size: 14px; line-height: 1.55; }
  .section-eyebrow { font-size: 10px; padding: 5px 10px 5px 9px; letter-spacing: 0.12em; }

  /* Hero */
  .hero-title { font-size: 38px !important; line-height: 1.08; letter-spacing: -0.015em; }
  .hero-subtitle { font-size: 14px; }
  .hero-jj { width: 76px; height: 76px; top: 6%; border-radius: 18px; }
  .hero-jj svg { width: 58%; height: 58%; }
  .hero-jj::after { inset: 6px; }
  .hero-meta { font-size: 11px; padding: 10px 14px; }

  /* Why Choose */
  .benefit-card { padding: 20px 18px; }
  .benefit-visual { aspect-ratio: 22 / 12; margin-bottom: 20px; }
  .benefit-title { font-size: 17px; }
  .benefit-body { font-size: 13.5px; }

  /* Services bento */
  .service-card { padding: 18px; min-height: 300px; }
  .svc-visual { min-height: 180px; margin-bottom: 16px; }
  .svc-visual-orbit { min-height: 260px; }
  .orbit-core { width: 72px; height: 72px; }
  .orbit-icon { width: 38px; height: 38px; }
  .orbit-icon svg { width: 16px; height: 16px; }
  .service-card-title { font-size: 17px; }
  .service-card-body { font-size: 13.5px; }
  .task-row { padding: 9px 11px; font-size: 12px; }
  .code-body { font-size: 10px; }
  .intel-search { font-size: 11px; padding: 7px 7px 7px 11px; }
  .intel-rows li { padding: 8px 11px; font-size: 11px; }

  /* Process cycler */
  .process-cycler { padding: 10px; border-radius: 18px; }
  .process-tabs { gap: 5px; margin-bottom: 18px; }
  .process-tab { padding: 11px 8px; font-size: 10px; letter-spacing: 0.08em; }
  .process-panel { gap: 18px; padding: 12px 10px 14px; }
  .process-title { font-size: 20px; }
  .process-body { font-size: 13.5px; }
  .process-stage { min-height: 880px; }
  .pv-stats { grid-template-columns: 1fr 1fr; gap: 10px; }
  .pv-stat { padding: 12px; }
  .pv-stat-val { font-size: 22px; }
  .pv-overlay { padding: 14px; }
  .pv-overlay-head { font-size: 11px; margin-bottom: 10px; }
  .pv-bars li { grid-template-columns: 24px 1fr auto; gap: 8px; font-size: 11px; }
  .pv-bar-track { grid-column: 1 / -1; height: 4px; margin-top: 4px; }
  .pv-bar-score { font-size: 10.5px; }
  .pv-chart { height: 180px; padding: 12px 12px 12px 30px; }
  .pv-chart-y { font-size: 9px; left: 6px; }
  .pv-mini-stats > div { padding: 8px 10px; font-size: 10.5px; }
  .pv-mini-stats strong { font-size: 16px; }
  .pv-code-body { padding: 12px 14px; font-size: 10.5px; line-height: 1.6; }

  /* Integrations */
  .integ-card { padding: 22px 8px; gap: 14px; border-radius: 20px; }
  .integ-logo { width: 54px; height: 54px; border-radius: 12px; }
  .integ-logo svg { width: 22px; height: 22px; }
  .integ-track { gap: 12px; padding-right: 12px; }
  .integ-quote { font-size: 13px; margin-top: 18px; }

  /* Selected Work */
  .work-tabs { margin-bottom: 20px; }
  .work-tab { padding: 11px 14px; font-size: 11px; min-width: 96px; }
  .stories-stack { height: 600px; padding-top: 82px; }
  .story-card { top: 82px; border-radius: 18px; }
  .story-card.is-second { transform: translateY(-40px); }
  .story-card.is-third  { transform: translateY(-80px); }
  .story-window-head { padding: 11px 14px; }
  .story-body { padding: 12px 14px 18px; gap: 14px; }
  .story-media { height: 200px; border-radius: 12px; }
  .story-title { font-size: 18px; line-height: 1.25; }
  .story-blurb { font-size: 13px; line-height: 1.55; }
  .story-stats { gap: 8px; }
  .story-stat { padding: 10px 12px; gap: 1px; }
  .story-stat strong { font-size: 16px; }
  .story-stat span { font-size: 10px; }
  .stories-stack.is-empty::before { font-size: 13px; inset: 82px 0 0 0; border-radius: 18px; }

  /* Reviews */
  .reviews-grid { gap: 12px; }
  .review-card { padding: 20px 18px; }

  /* CTA */
  .cta { padding: 68px 18px; }
  .cta-actions { flex-direction: column; gap: 10px; width: 100%; }
  .cta-actions .btn { width: 100%; justify-content: center; }

  /* About */
  .about { padding: 64px 18px; }

  /* Nav: tighten the Book button label */
  .nav-inner { padding: 6px 6px 6px 12px; }
  .nav-logo-text { font-size: 14px; }
}

/* Tiny phones (≤400px) */
@media (max-width: 400px) {
  .hero-title { font-size: 32px !important; }
  .hero-subtitle { font-size: 13px; }
  .section-title { font-size: 24px; }
  .stories-stack { height: 580px; padding-top: 72px; }
  .story-card { top: 72px; }
  .story-card.is-second { transform: translateY(-36px); }
  .story-card.is-third  { transform: translateY(-72px); }
  .story-media { height: 180px; }
  .work-tab { font-size: 10.5px; padding: 10px 12px; min-width: 88px; }
  .orbit-core { width: 64px; height: 64px; }
  .orbit-icon { width: 34px; height: 34px; border-radius: 10px; }
  .nav-actions .btn { padding: 8px 12px; }
}
