/* ============================================================
   Whenz — AI Automation Specialist
   Design tokens
   ============================================================ */
:root {
  --bg: #04060a;
  --bg-raised: #0a0e16;
  --bg-card: #0c111b;
  --ink: #f0f5fa;
  --ink-muted: #8b96aa;
  --ink-faint: #5b6474;
  --accent: #4f83ff;
  --ice: #9beaff;
  --steel: #7da2ff;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.14);
  --font-display: "Clash Display", "Satoshi", system-ui, sans-serif;
  --font-body: "Satoshi", system-ui, -apple-system, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;
  --container: 1160px;
  --radius: 14px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ============================================================
   Reset & base
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

/* Ambient light fields — the video's cold glow bleeding through the page */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(45% 32% at 12% 6%, rgba(79, 131, 255, 0.06), transparent 70%),
    radial-gradient(38% 30% at 88% 92%, rgba(155, 234, 255, 0.045), transparent 70%);
}
main, .footer { position: relative; z-index: 1; }

/* Interactive particle network — fixed site-wide background layer */
.bg-net {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul[role="list"], ol[role="list"] { list-style: none; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

::selection { background: rgba(79, 131, 255, 0.35); }

.container {
  width: min(100% - 2.5rem, var(--container));
  margin-inline: auto;
}
.container-narrow { max-width: 760px; }

/* ============================================================
   Type
   ============================================================ */
.section-title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.9rem, 1.2rem + 3vw, 3.1rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
  text-wrap: balance;
  margin-bottom: 1rem;
}

/* Node badge — the signature workflow-node eyebrow */
.node-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-muted);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.45rem 1rem 0.45rem 0.85rem;
  margin-bottom: 1.4rem;
  background: rgba(255, 255, 255, 0.02);
}
.node-port {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #35e07c;
  box-shadow: 0 0 9px rgba(53, 224, 124, 0.85);
  flex: none;
}

/* ============================================================
   Buttons
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.95rem;
  padding: 0.85rem 1.7rem;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.35s var(--ease), background 0.25s ease,
    border-color 0.25s ease, box-shadow 0.25s ease;
  will-change: transform;
}
.btn-primary {
  background: var(--ink);
  color: #0a0a0c;
  position: relative;
  overflow: hidden;
}
/* light sweep across the button on hover */
.btn-primary::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: -45%;
  width: 32%;
  background: linear-gradient(105deg, transparent, rgba(79, 131, 255, 0.35), transparent);
  transform: skewX(-18deg);
  pointer-events: none;
}
.btn-primary:hover::before { animation: btn-shine 0.65s ease; }
@keyframes btn-shine {
  from { left: -45%; }
  to { left: 118%; }
}
.btn-primary:hover {
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.25),
    0 8px 32px rgba(79, 131, 255, 0.25);
}
.btn-ghost {
  border-color: var(--line-strong);
  color: var(--ink);
  background: rgba(255, 255, 255, 0.02);
}
.btn-ghost:hover { border-color: rgba(255, 255, 255, 0.3); }
.btn-sm { padding: 0.6rem 1.25rem; font-size: 0.875rem; }
.btn-wide { width: 100%; }

/* ============================================================
   Nav
   ============================================================ */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  padding: 0.9rem 0;
  transition: background 0.3s ease, border-color 0.3s ease, padding 0.3s ease;
  border-bottom: 1px solid transparent;
  animation: nav-drop 0.7s var(--ease) 0.1s both;
}
@keyframes nav-drop {
  from { transform: translateY(-100%); opacity: 0; }
  to { transform: none; opacity: 1; }
}
.nav-links li { animation: link-drop 0.55s var(--ease) both; }
.nav-links li:nth-child(1) { animation-delay: 0.4s; }
.nav-links li:nth-child(2) { animation-delay: 0.5s; }
.nav-links li:nth-child(3) { animation-delay: 0.6s; }
.nav-links li:nth-child(4) { animation-delay: 0.7s; }
.nav-inner > .btn { animation: link-drop 0.55s var(--ease) 0.8s both; }
@keyframes link-drop {
  from { opacity: 0; transform: translateY(-14px); }
  to { opacity: 1; transform: none; }
}
.nav.scrolled {
  background: rgba(4, 6, 10, 0.72);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom-color: var(--line);
  padding: 0.6rem 0;
}
/* Scroll progress line */
.nav::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, var(--accent), var(--ice));
  box-shadow: 0 0 10px rgba(79, 131, 255, 0.55);
  transform: scaleX(var(--progress, 0));
  transform-origin: left;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.nav.scrolled::after { opacity: 1; }
.nav-inner {
  width: min(100% - 2.5rem, var(--container));
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}
.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
}
.logo-mark {
  width: 26px;
  height: 26px;
  color: var(--accent);
  display: grid;
  place-items: center;
}
.logo-mark svg { width: 100%; height: 100%; overflow: visible; }
/* the network nodes breathe in sequence */
.logo-mark circle {
  transform-box: fill-box;
  transform-origin: center;
  animation: logo-node-pulse 3.2s ease-in-out infinite;
}
.logo-mark circle:nth-of-type(2) { animation-delay: 0.55s; }
.logo-mark circle:nth-of-type(3) { animation-delay: 1.1s; }
@keyframes logo-node-pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.22); opacity: 0.7; }
}
/* hovering the logo redraws its wires */
.logo-mark path { stroke-dasharray: 12; stroke-dashoffset: 0; }
.logo:hover .logo-mark path { animation: logo-wire-draw 0.7s var(--ease); }
@keyframes logo-wire-draw {
  from { stroke-dashoffset: 12; }
  to { stroke-dashoffset: 0; }
}
.logo-word {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.15rem;
  letter-spacing: 0.01em;
  transition: color 0.25s ease;
}
.logo:hover .logo-word {
  background: linear-gradient(90deg, var(--ink), var(--ice));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.nav-links {
  display: flex;
  gap: 1.1rem;
  list-style: none;
}
.nav-links a {
  font-size: 0.9rem;
  color: rgba(240, 245, 250, 0.78);
  transition: color 0.2s ease, transform 0.3s var(--ease),
    background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
  position: relative;
  display: inline-block;
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  border: 1px solid transparent;
  text-shadow: 0 1px 3px rgba(4, 6, 10, 0.5);
}
/* status dot that lights above the active section's link */
.nav-links a::before {
  content: "";
  position: absolute;
  top: -2px;
  left: 50%;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--ice);
  box-shadow: 0 0 8px rgba(155, 234, 255, 0.9);
  transform: translateX(-50%) scale(0);
  transition: transform 0.35s var(--ease);
}
.nav-links a:hover {
  transform: translateY(-2px);
  color: var(--ink);
}
.nav-links a.active {
  color: var(--ink);
  background: rgba(155, 234, 255, 0.1);
  border-color: rgba(155, 234, 255, 0.35);
  box-shadow: 0 0 14px rgba(79, 131, 255, 0.25), inset 0 1px 0 rgba(210, 250, 255, 0.1);
}
.nav-links a.active::before { transform: translateX(-50%) scale(1); }

/* ============================================================
   Hero — scroll-scrubbed video / canvas fallback
   ============================================================ */
.hero { position: relative; }
.hero-sticky {
  position: relative;
  height: 100vh;
  height: 100svh;
  overflow: hidden;
  display: grid;
  align-items: end;
}
.hero-media { position: absolute; inset: 0; }
.hero-canvas,
.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-video { opacity: 0; transition: opacity 0.8s ease; }
.hero-video.ready { opacity: 1; }
.hero-video.ready + .hero-scrim { background:
  radial-gradient(ellipse 100% 80% at 50% 30%, rgba(79, 131, 255, 0.08), transparent 60%),
  linear-gradient(to bottom, rgba(4,6,10,0.55), rgba(4,6,10,0.35) 40%, var(--bg) 96%); }
.hero-scrim {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 90% 70% at 50% 35%, transparent 30%, rgba(4, 6, 10, 0.55) 100%),
    linear-gradient(to bottom, rgba(4, 6, 10, 0.3), transparent 30%, var(--bg) 97%);
}
.hero-topbar {
  position: absolute;
  top: clamp(4.5rem, 9vh, 6.5rem);
  left: 0;
  right: 0;
  z-index: 2;
}
.hero-topbar .node-badge { margin-bottom: 0; }

.hero-content {
  position: relative;
  z-index: 2;
  padding-bottom: clamp(7rem, 16vh, 10.5rem);
  transform: translate3d(var(--pmx, 0px), calc(var(--py, 0px) + var(--pmy, 0px)), 0);
}
/* Hero badge — glassy highlight so it reads over the video */
.hero .node-badge {
  background: rgba(4, 6, 10, 0.52);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-color: rgba(255, 255, 255, 0.24);
  color: var(--ink);
  text-shadow: 0 1px 2px rgba(4, 6, 10, 0.6);
}
.hero-title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.9rem, 1.1rem + 3.8vw, 3.4rem);
  line-height: 1.06;
  letter-spacing: -0.02em;
  margin-bottom: 1.8rem;
}
.hero-title em {
  font-style: normal;
  background: linear-gradient(100deg, var(--accent), var(--ice) 55%, var(--steel));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Word-by-word mask rise (spans injected by JS) */
.hero-title .wm {
  display: inline-block;
  overflow: hidden;
  vertical-align: bottom;
  padding-bottom: 0.08em;
  margin-bottom: -0.08em;
}
.hero-title .w {
  display: inline-block;
  transform: translateY(115%);
  animation: word-rise 0.9s var(--ease) both;
}
@keyframes word-rise {
  to { transform: translateY(0); }
}
/* once split, the gradient lives on the word spans and shimmers */
.hero-title.split em {
  background: none;
  -webkit-background-clip: border-box;
  background-clip: border-box;
  color: inherit;
}
.hero-title.split em .w {
  background: linear-gradient(100deg, var(--accent), var(--ice) 40%, var(--steel) 70%, var(--accent));
  background-size: 220% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: word-rise 0.9s var(--ease) both, hero-shimmer 6s linear infinite;
}
@keyframes hero-shimmer {
  from { background-position: 0% 0; }
  to { background-position: 220% 0; }
}
.hero-sub {
  max-width: 34rem;
  color: rgba(240, 245, 250, 0.86);
  font-size: clamp(1rem, 0.95rem + 0.3vw, 1.2rem);
  margin-bottom: 2.4rem;
  text-shadow:
    0 1px 2px rgba(4, 6, 10, 0.6),
    0 2px 28px rgba(4, 6, 10, 0.65);
}
.hero-sub strong {
  color: var(--ice);
  font-weight: 500;
}
.hero-cta { display: flex; gap: 1rem; flex-wrap: wrap; }
.hero-name {
  position: absolute;
  left: 50%;
  bottom: 5.4rem;
  transform: translateX(-50%);
  z-index: 2;
  text-align: center;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.05rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(240, 245, 250, 0.88);
  text-shadow: 0 1px 4px rgba(4, 6, 10, 0.7);
  white-space: nowrap;
}
.hero-name span {
  display: block;
  margin-top: 0.4rem;
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.34em;
  color: var(--ice);
  opacity: 0.75;
}
@media (max-width: 680px) {
  .hero-name { display: none; }
}

.scroll-hint {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--ink-faint);
}
.scroll-hint-line {
  width: 1px;
  height: 44px;
  background: linear-gradient(to bottom, transparent, var(--accent));
  animation: hint-drop 2.2s var(--ease) infinite;
  transform-origin: top;
}
@keyframes hint-drop {
  0% { transform: scaleY(0); opacity: 0; }
  40% { transform: scaleY(1); opacity: 1; }
  100% { transform: scaleY(1) translateY(10px); opacity: 0; }
}

/* ============================================================
   Sections — shared rhythm
   ============================================================ */
.section { padding: clamp(3rem, 2.2rem + 2.4vw, 4.5rem) 0; position: relative; }

/* thin wire between sections — draws itself in as the section enters view */
.section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  width: 1px;
  height: clamp(2.2rem, 1.6rem + 2.4vw, 3.6rem);
  transform: translateY(-50%) scaleY(0);
  transform-origin: center top;
  transition: transform 1.1s var(--ease) 0.1s;
  background: linear-gradient(to bottom, transparent, rgba(155, 234, 255, 0.35), transparent);
}
.section.wire-in::before { transform: translateY(-50%) scaleY(1); }
.hero + .section::before { display: none; }

/* ============================================================
   About
   ============================================================ */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: start;
}
.about-stack {
  position: relative;
  margin-top: 2.8rem;
  max-width: 26rem;
  aspect-ratio: 4 / 3;
}
.about-stack img {
  position: absolute;
  width: 70%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: center 30%;
  border-radius: 12px;
  border: 1px solid var(--line-strong);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.55), inset 0 1px 0 rgba(210, 250, 255, 0.06);
  transition: transform 0.6s var(--ease);
}
.about-stack img:nth-child(1) { top: 0; left: 0; transform: rotate(-3deg); z-index: 1; }
.about-stack img:nth-child(2) { top: 13%; left: 15%; transform: rotate(1.5deg); z-index: 2; }
.about-stack img:nth-child(3) { top: 26%; left: 30%; transform: rotate(4.5deg); z-index: 3; }
.about-stack:hover img:nth-child(1) { transform: rotate(-5deg) translate(-10px, -6px); }
.about-stack:hover img:nth-child(2) { transform: rotate(0.5deg) translateY(-5px); }
.about-stack:hover img:nth-child(3) { transform: rotate(6deg) translate(10px, -6px); }
.about-stack-caption {
  position: absolute;
  bottom: -1.6rem;
  left: 0.2rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

.about-body p { color: var(--ink-muted); margin-bottom: 1.2rem; }
.about-body p:first-child { color: var(--ink); }
.about-facts {
  margin-top: 2.5rem;
  border-top: 1px solid var(--line);
  display: grid;
  gap: 0;
}
.about-facts li {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  padding: 1.1rem 0;
  border-bottom: 1px solid var(--line);
}
.fact-value {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 2rem;
  letter-spacing: -0.02em;
  color: var(--ink);
  min-width: 4.2rem;
}
.fact-label { color: var(--ink-muted); font-size: 0.95rem; }

/* ============================================================
   Services
   ============================================================ */
.services-grid {
  margin-top: 3rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.service-card {
  background: var(--bg-raised);
  padding: 2.2rem 1.9rem;
  transition: background 0.3s ease;
  position: relative;
}
.service-card::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.4s ease;
  background: radial-gradient(600px circle at var(--mx, 50%) var(--my, 0%),
    rgba(79, 131, 255, 0.08), transparent 45%);
  pointer-events: none;
}
.service-card:hover::after { opacity: 1; }
.service-card h3 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.2rem;
  letter-spacing: -0.01em;
  margin-bottom: 0.7rem;
}
.service-card p { color: var(--ink-muted); font-size: 0.95rem; margin-bottom: 1.4rem; }

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}
.tag-row li {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-faint);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.25rem 0.7rem;
}

/* ============================================================
   Comparison
   ============================================================ */
.compare-grid {
  margin-top: 3rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.4rem;
}
.compare-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2.2rem 2rem;
  background: var(--bg-raised);
}

/* Ice edge — a cold 1px top highlight on all raised surfaces */
.service-card,
.compare-card,
.work-card,
.testimonial,
.contact-card {
  box-shadow: inset 0 1px 0 rgba(210, 250, 255, 0.06);
}
.compare-card h3 {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 1.6rem;
}
.compare-dot { width: 8px; height: 8px; border-radius: 50%; flex: none; }
.compare-without h3 { color: var(--ink-faint); }
.compare-without .compare-dot { background: var(--ink-faint); }
.compare-with { border-color: rgba(79, 131, 255, 0.35); position: relative; }
.compare-with::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, rgba(79, 131, 255, 0.6), transparent 40%, rgba(155, 234, 255, 0.4));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}
.compare-with h3 { color: var(--accent); }
.compare-with .compare-dot {
  background: var(--accent);
  box-shadow: 0 0 10px rgba(79, 131, 255, 0.9);
}
.compare-card ul { display: grid; gap: 0.9rem; }
.compare-card li {
  padding-left: 1.4rem;
  position: relative;
  color: var(--ink-muted);
  font-size: 0.97rem;
}
.compare-card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 0.55rem;
  height: 1px;
  background: currentColor;
  opacity: 0.5;
}
.compare-with li { color: var(--ink); }

/* ============================================================
   Benefits
   ============================================================ */
.benefits-grid {
  margin-top: 3rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.6rem, 3vw, 3rem) clamp(1.6rem, 3vw, 2.5rem);
}
.benefit { border-top: 1px solid var(--line); padding-top: 1.4rem; }
.benefit h3 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.15rem;
  margin-bottom: 0.5rem;
}
.benefit p { color: var(--ink-muted); font-size: 0.95rem; }

/* ============================================================
   Portfolio
   ============================================================ */
/* ---------- Platform groups ---------- */
.platform-group { margin-top: clamp(2.4rem, 2rem + 1.8vw, 3.6rem); }
.platform-group:first-of-type { margin-top: 2.2rem; }

.platform-head {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding-bottom: 1.1rem;
  border-bottom: 1px solid var(--line);
  margin-bottom: 1.8rem;
}
.platform-logo {
  width: 44px;
  height: 44px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 11px;
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.03);
  box-shadow: inset 0 1px 0 rgba(210, 250, 255, 0.07);
}
.platform-logo svg { width: 24px; height: 24px; display: block; }
.platform-name {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.35rem;
  letter-spacing: -0.01em;
  line-height: 1.15;
}
.platform-meta {
  display: block;
  margin-top: 0.15rem;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-faint);
  font-weight: 400;
}
.platform-flag {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ice);
  border: 1px solid rgba(155, 234, 255, 0.35);
  background: rgba(155, 234, 255, 0.08);
  border-radius: 999px;
  padding: 0.3rem 0.7rem;
  white-space: nowrap;
}
@media (max-width: 560px) {
  .platform-flag { display: none; }
}

/* ---------- Featured case study (flagship) ---------- */
.case-featured {
  margin-top: 3rem;
  border: 1px solid rgba(155, 234, 255, 0.22);
  border-radius: calc(var(--radius) + 6px);
  background:
    radial-gradient(120% 100% at 50% 0%, rgba(79, 131, 255, 0.09), transparent 60%),
    var(--bg-raised);
  box-shadow: inset 0 1px 0 rgba(210, 250, 255, 0.08), 0 24px 60px rgba(0, 0, 0, 0.45);
  padding: clamp(1.8rem, 1.4rem + 2vw, 3.2rem);
}
.case-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ice);
  margin-bottom: 1.1rem;
}
.case-star { color: var(--ice); font-size: 0.8rem; }
.case-featured-head h3 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.5rem, 1.1rem + 1.8vw, 2.4rem);
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}
.case-lead {
  color: var(--ink-muted);
  max-width: 62ch;
  margin-bottom: 1.3rem;
}
.case-lead strong { color: var(--ink); font-weight: 500; }
.case-gallery {
  margin-top: 2.2rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
.case-shot {
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  background: #070b12;
  position: relative;
  transition: border-color 0.35s ease, transform 0.5s var(--ease);
}
.case-shot:hover {
  border-color: rgba(155, 234, 255, 0.4);
  transform: translateY(-3px);
}
.case-shot img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
}
.case-shot figcaption {
  padding: 0.7rem 0.9rem 0.85rem;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.06em;
  color: var(--ink-faint);
  border-top: 1px solid var(--line);
}
.case-featured-result { margin-top: 1.6rem; }

.case-divider {
  margin: clamp(3rem, 2.5rem + 2vw, 4.5rem) 0 0;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-faint);
  display: flex;
  align-items: center;
  gap: 1rem;
}
.case-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, var(--line-strong), transparent);
}

/* ---------- Workflow screenshots: show the whole diagram ---------- */
.case-media {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background: #070b12;
  display: grid;
  place-items: center;
  padding: 0.6rem;
}
.case-media img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  transform: translateY(var(--py, 0px)) scale(1);
  transition: transform 0.5s var(--ease);
}
.work-card:hover .case-media img { transform: translateY(var(--py, 0px)) scale(1.04); }

.work-grid {
  margin-top: 2rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.6rem;
}
.work-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-raised);
  transition: border-color 0.35s ease, transform 0.5s var(--ease);
}
.work-card:hover {
  border-color: rgba(79, 131, 255, 0.4);
  --lift: -4px;
}
.work-media {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}
.work-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  transform: translateY(var(--py, 0px)) scale(1.12);
  transition: transform 0.4s cubic-bezier(0.25, 0.1, 0.25, 1);
}
.work-card:hover .work-media img { transform: translateY(var(--py, 0px)) scale(1.17); }
.work-body { padding: 1.8rem 1.8rem 2rem; }
.work-body h3 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.25rem;
  margin-bottom: 0.6rem;
}
.work-body > p { color: var(--ink-muted); font-size: 0.95rem; margin-bottom: 1.2rem; }
.work-body p.work-result {
  margin-top: 1.2rem;
  margin-bottom: 0;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  color: var(--ice);
}

/* ============================================================
   Branded watermark — Whenz logo + wordmark on media
   ============================================================ */
.branded { position: relative; }
.branded::after {
  content: "Whenz";
  position: absolute;
  right: 0.8rem;
  bottom: 0.6rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.02em;
  color: rgba(240, 245, 250, 0.45);
  padding-left: 1.35rem;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%239beaff' stroke-width='1.5'%3E%3Ccircle cx='5' cy='12' r='2.4'/%3E%3Ccircle cx='19' cy='5' r='2.4'/%3E%3Ccircle cx='19' cy='19' r='2.4'/%3E%3Cpath d='M7.2 11 16.7 5.9M7.2 13l9.5 5.1'/%3E%3C/svg%3E") left center / 1.05rem no-repeat;
  opacity: 0.8;
  pointer-events: none;
  text-shadow: 0 1px 3px rgba(4, 6, 10, 0.7);
  z-index: 2;
}

/* Service card icons */
.svc-icon {
  width: 58px;
  height: 58px;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  margin-bottom: 1.15rem;
  box-shadow: inset 0 1px 0 rgba(210, 250, 255, 0.08), 0 6px 18px rgba(0, 0, 0, 0.35);
}
.svc-icon img { width: 100%; height: 100%; object-fit: cover; }

/* About banner */
.about-banner {
  margin-top: clamp(2.5rem, 2rem + 3vw, 4.5rem);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: inset 0 1px 0 rgba(210, 250, 255, 0.06);
}
.about-banner img {
  width: 100%;
  aspect-ratio: 21 / 8;
  object-fit: cover;
  display: block;
}

/* Contact backdrop visual */
.contact-visual {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.14;
  pointer-events: none;
}
.contact-card { position: relative; overflow: hidden; }
.contact-card > :not(.contact-visual) { position: relative; z-index: 1; }

/* ============================================================
   Process — timeline
   ============================================================ */
.process-track {
  margin-top: 3rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem 2rem;
  counter-reset: step;
  position: relative;
}
.process-step {
  counter-increment: step;
  position: relative;
  padding-top: 1.6rem;
}
.process-step::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--line);
}
.process-step::after {
  content: "";
  position: absolute;
  top: -3.5px;
  left: 0;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--bg);
  border: 1px solid var(--accent);
}
.step-media {
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--line);
  margin-bottom: 1.1rem;
}
.step-media img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  display: block;
  transition: transform 0.6s var(--ease);
}
.process-step:hover .step-media img { transform: scale(1.05); }
.process-step h3 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.15rem;
  margin-bottom: 0.5rem;
}
.process-step h3::before {
  content: counter(step, decimal-leading-zero);
  display: block;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  color: var(--accent);
  margin-bottom: 0.7rem;
}
.process-step p { color: var(--ink-muted); font-size: 0.93rem; }

/* ============================================================
   Testimonials
   ============================================================ */
.testimonial-grid {
  margin-top: 3rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.4rem;
}
.testimonial {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-raised);
  padding: 2rem 1.8rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1.8rem;
}
.testimonial blockquote {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--ink);
}
.testimonial figcaption { display: grid; gap: 0.15rem; }
.t-name { font-weight: 700; font-size: 0.92rem; }
.t-role { color: var(--ink-faint); font-size: 0.82rem; }

/* ============================================================
   Proof band — real numbers, no invented faces
   ============================================================ */
.proof-lead {
  color: var(--ink-muted);
  max-width: 58ch;
  margin-bottom: 2.2rem;
}
.proof-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.proof-stat {
  background: var(--bg-raised);
  padding: 2rem 1.6rem;
  display: grid;
  gap: 0.7rem;
  align-content: start;
  box-shadow: inset 0 1px 0 rgba(210, 250, 255, 0.05);
}
.proof-value {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2.4rem, 2rem + 2vw, 3.4rem);
  line-height: 1;
  letter-spacing: -0.03em;
  background: linear-gradient(150deg, var(--ink), var(--ice));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.proof-sub { font-size: 0.5em; letter-spacing: 0; }
.proof-label {
  font-size: 0.9rem;
  color: var(--ink-muted);
  line-height: 1.45;
}

.proof-strip {
  margin-top: 2.4rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem;
}
.proof-strip-label {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-right: 0.3rem;
}
.proof-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--ink-muted);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.4rem 0.9rem;
  background: rgba(255, 255, 255, 0.02);
  transition: color 0.25s ease, border-color 0.25s ease;
}
.proof-chip:hover { color: var(--ink); border-color: var(--line-strong); }
.proof-chip i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--c, var(--accent));
  box-shadow: 0 0 8px var(--c, var(--accent));
  flex: none;
}

@media (max-width: 860px) {
  .proof-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 460px) {
  .proof-grid { grid-template-columns: 1fr; }
  .proof-stat { padding: 1.5rem 1.3rem; }
}

/* ============================================================
   FAQ
   ============================================================ */
.faq-list {
  margin-top: 2.5rem;
  border-top: 1px solid var(--line);
}
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.35rem 0.2rem;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.05rem;
  transition: color 0.2s ease;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  font-family: var(--font-mono);
  font-size: 1.1rem;
  color: var(--ink-faint);
  transition: transform 0.3s var(--ease), color 0.2s ease;
  flex: none;
}
.faq-item[open] summary { color: var(--accent); }
.faq-item[open] summary::after { transform: rotate(45deg); color: var(--accent); }
.faq-item p {
  color: var(--ink-muted);
  font-size: 0.97rem;
  padding: 0 0.2rem 1.4rem;
  max-width: 60ch;
}

/* ============================================================
   Contact
   ============================================================ */
.contact-card {
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 6px);
  background:
    radial-gradient(120% 100% at 50% 0%, rgba(79, 131, 255, 0.08), transparent 55%),
    var(--bg-raised);
  padding: clamp(2.2rem, 2rem + 3vw, 4rem);
  text-align: center;
}
.contact-card .node-badge { margin-inline: auto; }
.contact-sub {
  color: var(--ink-muted);
  max-width: 34rem;
  margin: 0 auto 2.5rem;
}
/* ============================================================
   Live booking calendar (powered by n8n)
   ============================================================ */
.booker { margin-top: 2.6rem; text-align: left; }
.booker-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1.5rem, 1rem + 2vw, 2.6rem);
  align-items: start;
}
.booker-panel { min-width: 0; }
.booker-step {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: 1rem;
}
.booker-step span {
  width: 20px;
  height: 20px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid rgba(155, 234, 255, 0.4);
  background: rgba(155, 234, 255, 0.1);
  color: var(--ice);
  font-size: 0.65rem;
}

/* --- calendar --- */
.cal {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.02);
  padding: 1rem;
}
.cal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.9rem;
}
.cal-month {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.02rem;
}
.cal-nav {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.02);
  color: var(--ink-muted);
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
  transition: color 0.2s ease, border-color 0.2s ease;
}
.cal-nav:hover:not(:disabled) { color: var(--ink); border-color: rgba(155, 234, 255, 0.45); }
.cal-nav:disabled { opacity: 0.3; cursor: default; }
.cal-dow, .cal-days {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
}
.cal-dow {
  margin-bottom: 6px;
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.1em;
  color: var(--ink-faint);
  text-align: center;
}
.cal-day {
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border-radius: 8px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 0.85rem;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}
.cal-day:hover:not(:disabled) { background: rgba(255, 255, 255, 0.06); }
.cal-day:disabled {
  color: var(--ink-faint);
  opacity: 0.4;
  cursor: default;
}
.cal-day.is-empty { pointer-events: none; }
.cal-day.is-today { border-color: var(--line-strong); }
.cal-day.is-selected {
  background: rgba(155, 234, 255, 0.14);
  border-color: rgba(155, 234, 255, 0.55);
  color: var(--ink);
  box-shadow: 0 0 12px rgba(79, 131, 255, 0.25);
}
.cal-tz {
  margin-top: 0.9rem;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.06em;
  color: var(--ink-faint);
}

/* --- slots --- */
.slots {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  min-height: 3rem;
  margin-bottom: 1.8rem;
}
.slots-empty, .slots-loading {
  font-size: 0.9rem;
  color: var(--ink-faint);
  margin: 0;
}
.slots-loading { color: var(--ice); }
.slot {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  color: var(--ink);
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.03);
  border-radius: 999px;
  padding: 0.5rem 0.95rem;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.25s var(--ease);
}
.slot:hover { border-color: rgba(155, 234, 255, 0.5); transform: translateY(-2px); }
.slot.is-selected {
  background: rgba(155, 234, 255, 0.16);
  border-color: rgba(155, 234, 255, 0.65);
  box-shadow: 0 0 12px rgba(79, 131, 255, 0.3);
}
.booker-details { border-top: 1px solid var(--line); padding-top: 1.6rem; }
.booker-note {
  margin-top: 2rem;
  padding-top: 1.3rem;
  border-top: 1px solid var(--line);
  font-size: 0.85rem;
  color: var(--ink-faint);
  max-width: 46ch;
}
.booker-success {
  text-align: center;
  padding: 1rem 0 0.5rem;
}
.booker-success h3 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.5rem;
  margin-bottom: 0.6rem;
}
.booker-success p { color: var(--ink-muted); }
.booker-success .ok-mark {
  width: 46px;
  height: 46px;
  margin: 0 auto 1.1rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  border: 1px solid rgba(53, 224, 124, 0.5);
  background: rgba(53, 224, 124, 0.12);
  color: #35e07c;
  font-size: 1.3rem;
}

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

/* Mobile: give the calendar room and make every target thumb-sized */
@media (max-width: 560px) {
  .contact .container { width: min(100% - 1.6rem, var(--container)); }
  .contact-card { padding: 1.5rem 1.1rem 1.8rem; }
  .cal { padding: 0.75rem; }
  .cal-dow, .cal-days { gap: 3px; }
  .cal-day {
    aspect-ratio: auto;
    min-height: 42px;
    font-size: 0.92rem;
    border-radius: 9px;
  }
  .cal-nav { width: 38px; height: 38px; }
  .slot {
    padding: 0.7rem 1rem;
    font-size: 0.82rem;
    flex: 1 1 calc(50% - 0.25rem);
    text-align: center;
  }
  .booker { margin-top: 2rem; }
  .booker-note { margin-top: 1.5rem; }
  .field input { padding: 0.9rem 1rem; font-size: 16px; }

  /* The flow strip must not force the form wider than the screen —
     let the chips wrap and drop the connecting wires on small phones. */
  .form-flow {
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.35rem;
    min-width: 0;
  }
  .ff-wire { display: none; }
  .ff-node { font-size: 0.58rem; padding: 0.3rem 0.6rem; }
}

/* Safety: nothing in the booking column may set its own minimum width */
.booker-panel,
.booker-details,
.contact-form,
.contact-form .field,
.form-flow { min-width: 0; }

.contact-form {
  display: grid;
  gap: 1.1rem;
  text-align: left;
}
.field { display: grid; gap: 0.45rem; }
.field label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-muted);
}
.field input {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1rem;
  padding: 0.85rem 1rem;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}
.field input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(79, 131, 255, 0.18);
}
.contact-form .btn { margin-top: 0.4rem; }

/* Field focus choreography */
.field label {
  transition: color 0.25s ease, transform 0.25s var(--ease), letter-spacing 0.25s ease;
}
.field:focus-within label {
  color: var(--ice);
  transform: translateX(4px);
  letter-spacing: 0.22em;
}
.field input.filled {
  border-color: rgba(53, 224, 124, 0.45);
}

/* The form-flow strip — the automation this form triggers,
   lighting up node by node as the visitor completes it */
.form-flow {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0.6rem 0 0.2rem;
}
.ff-node {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-faint);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.3rem 0.65rem;
  transition: color 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease;
  white-space: nowrap;
}
.ff-node::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--ink-faint);
  transition: background 0.4s ease, box-shadow 0.4s ease;
}
.ff-node.lit {
  color: var(--ice);
  border-color: rgba(155, 234, 255, 0.45);
}
.ff-node.lit::before {
  background: var(--ice);
  box-shadow: 0 0 8px rgba(155, 234, 255, 0.9);
}
.ff-node.sent {
  color: #35e07c;
  border-color: rgba(53, 224, 124, 0.5);
}
.ff-node.sent::before {
  background: #35e07c;
  box-shadow: 0 0 8px rgba(53, 224, 124, 0.9);
}
.ff-wire {
  flex: 1;
  height: 1px;
  min-width: 0.6rem;
  background: linear-gradient(90deg, var(--accent), var(--ice)) no-repeat, var(--line);
  background-size: 0% 100%, 100% 100%;
  transition: background-size 0.6s var(--ease);
}
.ff-wire.lit { background-size: 100% 100%, 100% 100%; }
.form-status {
  min-height: 1.4em;
  font-size: 0.9rem;
  color: var(--ice);
  text-align: center;
}
.form-status.error { color: #f0768b; }

/* ============================================================
   Voice assistant dock (VAPI)
   ============================================================ */
.vapi-dock {
  position: fixed;
  right: clamp(1rem, 2vw, 1.8rem);
  bottom: clamp(1rem, 2vw, 1.8rem);
  z-index: 60;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.8rem;
}

.vapi-fab {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.8rem 1.3rem 0.8rem 1rem;
  border-radius: 999px;
  border: 1px solid rgba(155, 234, 255, 0.35);
  background: rgba(10, 14, 22, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  color: var(--ink);
  cursor: pointer;
  position: relative;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(210, 250, 255, 0.1);
  transition: transform 0.35s var(--ease), border-color 0.25s ease;
}
.vapi-fab:hover { transform: translateY(-2px); border-color: rgba(155, 234, 255, 0.6); }
.vapi-fab svg { width: 20px; height: 20px; color: var(--ice); flex: none; }
.vapi-fab-label {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.9rem;
  white-space: nowrap;
}
.vapi-fab-pulse {
  position: absolute;
  left: 0.85rem;
  top: 50%;
  width: 26px;
  height: 26px;
  margin-top: -13px;
  border-radius: 50%;
  border: 1px solid rgba(155, 234, 255, 0.5);
  animation: vapi-pulse 2.6s ease-out infinite;
  pointer-events: none;
}
@keyframes vapi-pulse {
  0%   { transform: scale(0.7); opacity: 0.9; }
  70%  { transform: scale(1.7); opacity: 0; }
  100% { transform: scale(1.7); opacity: 0; }
}
.vapi-dock.is-live .vapi-fab { border-color: rgba(53, 224, 124, 0.6); }
.vapi-dock.is-live .vapi-fab svg { color: #35e07c; }

.vapi-panel {
  width: min(21rem, calc(100vw - 2.5rem));
  border: 1px solid var(--line-strong);
  border-radius: 16px;
  background: rgba(10, 14, 22, 0.94);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(210, 250, 255, 0.08);
  padding: 1.2rem;
  animation: vapi-in 0.35s var(--ease) both;
}
@keyframes vapi-in {
  from { opacity: 0; transform: translateY(12px) scale(0.98); }
  to   { opacity: 1; transform: none; }
}
.vapi-panel-head {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.9rem;
}
.vapi-avatar {
  position: relative;
  width: 40px;
  height: 40px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid rgba(155, 234, 255, 0.35);
  background: rgba(155, 234, 255, 0.08);
  color: var(--ice);
}
.vapi-avatar svg { width: 19px; height: 19px; }
.vapi-ring {
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 1px solid rgba(155, 234, 255, 0.35);
  opacity: 0;
}
.vapi-dock.is-live .vapi-ring { animation: vapi-pulse 1.8s ease-out infinite; opacity: 1; }
.vapi-who { display: grid; gap: 0.1rem; }
.vapi-who strong {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1rem;
}
.vapi-status {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-faint);
}
.vapi-dock.is-live .vapi-status { color: #35e07c; }
.vapi-close {
  margin-left: auto;
  background: none;
  border: none;
  color: var(--ink-faint);
  font-size: 0.85rem;
  cursor: pointer;
  padding: 0.2rem;
  transition: color 0.2s ease;
}
.vapi-close:hover { color: var(--ink); }
.vapi-copy {
  font-size: 0.86rem;
  color: var(--ink-muted);
  margin-bottom: 1rem;
}
.vapi-levels {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 4px;
  height: 26px;
  margin-bottom: 1rem;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.vapi-dock.is-live .vapi-levels { opacity: 1; }
.vapi-levels span {
  width: 3px;
  height: 4px;
  border-radius: 2px;
  background: var(--ice);
  transition: height 0.12s ease-out;
}
.vapi-hint {
  margin-top: 0.7rem;
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.06em;
  color: var(--ink-faint);
  text-align: center;
}

@media (max-width: 560px) {
  .vapi-fab-label { display: none; }
  .vapi-fab { padding: 0.85rem; }
  .vapi-fab-pulse { left: 50%; margin-left: -13px; }
}

/* ============================================================
   Footer
   ============================================================ */
.footer {
  border-top: 1px solid var(--line);
  padding: 3rem 0;
  position: relative;
  overflow: hidden;
}
.footer::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -70%;
  height: 130%;
  background: radial-gradient(55% 100% at 50% 100%, rgba(79, 131, 255, 0.16), transparent 70%);
  pointer-events: none;
}
.footer-inner { position: relative; }
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.footer-note, .footer-copy { color: var(--ink-faint); font-size: 0.85rem; }

/* ============================================================
   Custom cursor — glowing dot + trailing ring (fine pointers)
   ============================================================ */
@media (pointer: fine) {
  html.has-cursor,
  html.has-cursor a,
  html.has-cursor button,
  html.has-cursor summary,
  html.has-cursor .btn {
    cursor: none;
  }
  html.has-cursor input,
  html.has-cursor textarea {
    cursor: text;
  }
}
.cursor-dot,
.cursor-ring {
  position: fixed;
  top: 0;
  left: 0;
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  opacity: 0;
  transition: opacity 0.25s ease;
}
.cursor-dot.on, .cursor-ring.on { opacity: 1; }
.cursor-dot {
  width: 6px;
  height: 6px;
  margin: -3px 0 0 -3px;
  background: var(--ice);
  box-shadow: 0 0 12px rgba(155, 234, 255, 0.9);
}
.cursor-ring {
  width: 36px;
  height: 36px;
  margin: -18px 0 0 -18px;
  border: 1px solid rgba(155, 234, 255, 0.45);
  transition: opacity 0.25s ease, width 0.25s var(--ease), height 0.25s var(--ease),
    margin 0.25s var(--ease), border-color 0.25s ease, background 0.25s ease;
}
.cursor-ring.is-hover {
  width: 58px;
  height: 58px;
  margin: -29px 0 0 -29px;
  border-color: rgba(155, 234, 255, 0.85);
  background: rgba(155, 234, 255, 0.07);
}
.cursor-ring.is-press {
  width: 26px;
  height: 26px;
  margin: -13px 0 0 -13px;
  background: rgba(155, 234, 255, 0.14);
}
.cursor-ring.is-text { opacity: 0; }
.cursor-dot.is-text { opacity: 0.4; }

/* ============================================================
   3D tilt cards — driven by --rx/--ry from JS
   ============================================================ */
.card3d {
  transform: perspective(950px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg))
    translateY(var(--lift, 0px));
  transform-style: preserve-3d;
  transition: transform 0.16s ease-out;
  will-change: transform;
}
.card3d .work-body,
.card3d h3 {
  transform: translateZ(22px);
}
.card3d .tag-row,
.card3d figcaption {
  transform: translateZ(12px);
}

/* ============================================================
   Reveal animations
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  filter: blur(6px);
  transition:
    opacity 0.9s var(--ease) var(--stagger, 0s),
    transform 0.9s var(--ease) var(--stagger, 0s),
    filter 0.9s var(--ease) var(--stagger, 0s);
}
.reveal[data-delay="1"] { --stagger: 0.12s; }
.reveal[data-delay="2"] { --stagger: 0.24s; }
.reveal[data-delay="3"] { --stagger: 0.36s; }
.reveal.in {
  opacity: 1;
  transform: none;
  filter: none;
}

/* Section titles rise out of a clip mask instead of blurring in */
.section-title.reveal {
  opacity: 1;
  filter: none;
  clip-path: inset(0 0 100% 0);
  transform: translateY(30px);
  transition:
    clip-path 1s var(--ease) var(--stagger, 0s),
    transform 1s var(--ease) var(--stagger, 0s);
}
.section-title.reveal.in {
  clip-path: inset(-10% 0 -10% 0);
  transform: none;
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 960px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .benefits-grid { grid-template-columns: repeat(2, 1fr); }
  .process-track { grid-template-columns: repeat(2, 1fr); }
  .testimonial-grid { grid-template-columns: 1fr; }
  .about-grid { grid-template-columns: 1fr; }
}

@media (max-width: 960px) {
  .case-gallery { grid-template-columns: 1fr; }
}

@media (max-width: 680px) {
  .nav-links { display: none; }
  .services-grid,
  .benefits-grid,
  .process-track,
  .compare-grid,
  .work-grid { grid-template-columns: 1fr; }
  .hero-cta .btn { width: 100%; }
  .footer-inner { flex-direction: column; text-align: center; }
}

/* ============================================================
   Reduced motion
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .reveal { opacity: 1; transform: none; filter: none; }
}
