/* ==========================================================================
   Medusa V2.0 — site stylesheet (built on top of assets/tokens.css)
   ========================================================================== */

/* tokens.css is enqueued separately by WP */

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  background: var(--bg-void);
  color: var(--fg-1);
  scroll-behavior: smooth;
}
body { overflow-x: hidden; }

body {
  background:
    radial-gradient(80% 60% at 50% 10%, rgba(74,195,255,0.05), transparent 60%),
    radial-gradient(60% 80% at 10% 80%, rgba(138,124,255,0.05), transparent 60%),
    var(--bg-void);
}

img, svg { display: block; max-width: 100%; }
button { font-family: inherit; color: inherit; background: none; border: 0; cursor: pointer; }

/* Shared containers */
.wrap { max-width: 1280px; margin: 0 auto; padding: 0 var(--s-6); position: relative; }
@media (min-width: 900px) { .wrap { padding: 0 var(--s-10); } }

/* Kicker */
.kicker {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: var(--ls-kicker);
  color: var(--cyan-300);
  font-weight: 500;
}
.kicker.dim { color: var(--fg-3); }
.kicker .num { color: var(--fg-4); margin-right: 10px; }

/* Section generic */
section {
  position: relative;
  padding: var(--s-32) 0;
  isolation: isolate;
}
@media (max-width: 900px) { section { padding: var(--s-24) 0; } }

/* Bloom transitions: radial blobs sit at section seams, never a hard color cut */
.bloom {
  position: absolute;
  pointer-events: none;
  z-index: -1;
  filter: blur(60px);
  opacity: 0.6;
}
.bloom.top-cyan { top: -200px; left: 20%; width: 700px; height: 500px; background: radial-gradient(closest-side, rgba(74,195,255,0.35), transparent 70%); }
.bloom.top-iris { top: -160px; right: 15%; width: 600px; height: 500px; background: radial-gradient(closest-side, rgba(138,124,255,0.3), transparent 70%); }
.bloom.bot-mint { bottom: -200px; left: 40%; width: 700px; height: 500px; background: radial-gradient(closest-side, rgba(24,230,200,0.2), transparent 70%); }
.bloom.center  { top: 30%; left: 50%; transform: translate(-50%, -50%); width: 900px; height: 700px; background: var(--grad-bloom); opacity: 0.4; }

/* Ambient backdrop (always present): noise + caustics + aura blobs */
.ambient {
  position: fixed; inset: 0;
  pointer-events: none;
  z-index: 1;
}
.ambient .noise-layer {
  position: absolute; inset: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.9  0 0 0 0 0.92  0 0 0 0 1  0 0 0 0.18 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  opacity: 0.35;
  mix-blend-mode: overlay;
}
.ambient .caustics-layer {
  position: absolute; inset: -10%;
  background-image: url('../images/caustics.svg');
  background-size: 1200px 1200px;
  background-repeat: repeat;
  opacity: 0.05;
  mix-blend-mode: screen;
  animation: causticDrift 60s linear infinite;
  will-change: transform;
  transform: translateZ(0);
}
@keyframes causticDrift {
  0%   { transform: translate(0,0) rotate(0deg); }
  100% { transform: translate(-200px,-100px) rotate(3deg); }
}

/* Cursor glow */
.cursor-glow {
  position: fixed;
  width: 420px; height: 420px;
  pointer-events: none;
  z-index: 2;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(74,195,255,0.14), transparent 70%);
  mix-blend-mode: screen;
  filter: blur(10px);
  transition: opacity 0.6s var(--ease-glide);
  will-change: transform;
}

/* Content z */
main, header, footer { position: relative; z-index: var(--z-content); }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(40px); transition: opacity 1s var(--ease-glide), transform 1s var(--ease-glide); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: 0.1s; }
.reveal.d2 { transition-delay: 0.2s; }
.reveal.d3 { transition-delay: 0.3s; }

/* Glass card base */
.glass {
  position: relative;
  background: rgba(12,18,48,0.5);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid var(--border-soft);
  border-radius: var(--r-lg);
  box-shadow: var(--inset-top);
}

/* ---- NAV ---- */
.nav-wrap {
  position: fixed;
  top: 20px; left: 0; right: 0;
  z-index: var(--z-overlay);
  display: flex; justify-content: center;
  pointer-events: none;
}
.nav {
  pointer-events: auto;
  display: flex; align-items: center; gap: 36px;
  padding: 10px 10px 10px 24px;
  background: rgba(7,11,34,0.55);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid var(--border-soft);
  border-radius: var(--r-pill);
  box-shadow: 0 18px 48px -18px rgba(0,0,0,0.7), var(--inset-top);
}
.nav .brand {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 20px;
  letter-spacing: -0.02em;
  color: var(--fg-1);
  text-transform: lowercase;
}
.nav .brand img { height: 22px; filter: drop-shadow(0 0 8px rgba(74,195,255,0.6)); }
.nav .links { display: flex; gap: 28px; list-style: none; padding: 0; margin: 0; }
.nav .links a {
  font-size: 13px; color: var(--fg-2); text-transform: lowercase;
  transition: color var(--dur-quick) var(--ease-glide);
  position: relative;
}
.nav .links a:hover { color: var(--cyan-200); }
.nav .links a::after {
  content: ''; position: absolute; bottom: -6px; left: 0; right: 0;
  height: 1px; background: var(--cyan-400);
  transform: scaleX(0); transform-origin: left;
  transition: transform var(--dur-base) var(--ease-glide);
}
.nav .links a:hover::after { transform: scaleX(1); }
.nav .cta {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 18px;
  background: var(--cyan-400);
  color: var(--bg-void);
  border-radius: var(--r-pill);
  font-size: 13px; font-weight: 600;
  box-shadow: 0 0 32px rgba(74,195,255,0.4);
  transition: box-shadow var(--dur-base) var(--ease-glide);
}
.nav .cta:hover { box-shadow: 0 0 56px rgba(74,195,255,0.7); }
.nav .cta svg { width: 14px; height: 14px; }

@media (max-width: 720px) {
  .nav .links { display: none; }
}

/* ---- HERO ---- */
.hero {
  min-height: 100vh;
  padding: 0;
  display: grid; place-items: center;
  overflow: hidden;
}
.hero canvas.shader {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  z-index: -1;
}
.hero .veil {
  position: absolute; inset: 0;
  background:
    radial-gradient(80% 60% at 50% 100%, var(--bg-void) 10%, transparent 70%),
    radial-gradient(60% 40% at 50% 0%, rgba(3,6,23,0.85), transparent 70%);
  z-index: 0;
  pointer-events: none;
}
.hero-content {
  position: relative;
  z-index: 2;
  padding: 160px 24px 120px;
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 40px;
  align-items: end;
  width: 100%;
}
.hero h1 {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(3.5rem, 10vw, 9rem);
  line-height: 0.9;
  letter-spacing: -0.03em;
  text-transform: lowercase;
  color: var(--fg-1);
  text-wrap: balance;
}
.hero h1 em {
  font-style: normal;
  background: var(--grad-aurora);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-weight: 400;
}
.hero .kicker-row {
  display: flex; align-items: center; gap: 16px;
  margin-bottom: 40px;
}
.hero .kicker-row .pulse {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--mint-400);
  box-shadow: 0 0 12px var(--mint-400);
  animation: pulse 2s var(--ease-pulse) infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.55; transform: scale(1.4); }
}
.hero .rhs {
  max-width: 380px;
  padding-bottom: 12px;
}
.hero .rhs p {
  font-size: 15px;
  color: var(--fg-2);
  line-height: 1.65;
  max-width: 42ch;
}
.hero .actions {
  display: flex; gap: 14px; flex-wrap: wrap;
  margin-top: 32px;
}
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 24px;
  border-radius: var(--r-pill);
  font-family: var(--font-body);
  font-size: 14px; font-weight: 500;
  letter-spacing: 0.02em;
  text-transform: lowercase;
  transition: transform var(--dur-quick) var(--ease-glide),
              box-shadow var(--dur-base) var(--ease-glide),
              background var(--dur-quick) var(--ease-glide),
              color var(--dur-quick) var(--ease-glide);
  border: 1px solid transparent;
  white-space: nowrap;
}
.btn svg { width: 14px; height: 14px; }
.btn-primary {
  background: var(--cyan-400);
  color: var(--bg-void);
  box-shadow: 0 0 40px rgba(74,195,255,0.4);
}
.btn-primary:hover { box-shadow: 0 0 72px rgba(74,195,255,0.75); background: var(--cyan-300); }
.btn-primary:active { transform: translateY(1px) scale(0.99); }
.btn-ghost {
  background: transparent;
  color: var(--fg-1);
  border-color: var(--border-strong);
}
.btn-ghost:hover { color: var(--cyan-200); border-color: var(--cyan-400); box-shadow: 0 0 40px rgba(74,195,255,0.2); }

/* Scroll hint */
.scroll-hint {
  position: absolute; bottom: 40px; left: 50%;
  transform: translateX(-50%);
  display: flex; align-items: center; gap: 14px;
  font-family: var(--font-mono);
  font-size: 10px; letter-spacing: 0.22em;
  color: var(--fg-3); text-transform: uppercase;
  z-index: 2;
}
.scroll-hint .line { width: 40px; height: 1px; background: var(--fg-4); position: relative; overflow: hidden; }
.scroll-hint .line::after { content: ''; position: absolute; inset: 0; background: var(--cyan-400); animation: slide 2.5s var(--ease-glide) infinite; }
@keyframes slide { 0% { transform: translateX(-100%); } 100% { transform: translateX(100%); } }

@media (max-width: 900px) {
  .hero-content { grid-template-columns: 1fr; }
  .hero .rhs { max-width: 100%; }
}

/* ---- SERVICES ---- */
.services-head {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 80px;
  align-items: end;
  margin-bottom: 80px;
}
.services-head h2 {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(2.5rem, 6vw, 5.5rem);
  line-height: 0.98;
  letter-spacing: -0.025em;
  text-transform: lowercase;
  text-wrap: balance;
}
.services-head h2 em {
  font-style: normal;
  background: var(--grad-aurora);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  font-weight: 400;
}
.services-head p {
  font-size: 16px; color: var(--fg-2); line-height: 1.7;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border-hairline);
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1px solid var(--border-soft);
}
.service-card {
  position: relative;
  padding: 40px 36px 36px;
  background: var(--bg-trench);
  min-height: 340px;
  display: flex; flex-direction: column;
  transition: background var(--dur-base) var(--ease-glide);
  cursor: pointer;
  overflow: hidden;
}
.service-card::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(80% 60% at 50% 0%, rgba(74,195,255,0.12), transparent 70%);
  opacity: 0; transition: opacity var(--dur-base) var(--ease-glide);
  pointer-events: none;
}
.service-card:hover::before { opacity: 1; }
.service-card:hover { background: var(--bg-abyss); }
.service-card .num {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--fg-4);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  margin-bottom: 36px;
}
.service-card .icon {
  color: var(--cyan-400);
  margin-bottom: 28px;
  transition: color var(--dur-base) var(--ease-glide), transform var(--dur-base) var(--ease-glide);
}
.service-card:hover .icon { color: var(--mint-400); transform: translateY(-3px); }
.service-card h3 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 32px;
  line-height: 1.05;
  letter-spacing: -0.02em;
  text-transform: lowercase;
  margin-bottom: 14px;
}
.service-card p {
  font-size: 14px; color: var(--fg-3);
  line-height: 1.65; margin-bottom: 28px;
  flex: 1;
}
.service-card .learn {
  font-family: var(--font-mono);
  font-size: 10px; letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--cyan-300);
  display: inline-flex; align-items: center; gap: 8px;
}
.service-card .learn .arrow { transition: transform var(--dur-base) var(--ease-glide); }
.service-card:hover .learn .arrow { transform: translateX(4px); }

@media (max-width: 1000px) { .services-grid { grid-template-columns: repeat(2, 1fr); } .services-head { grid-template-columns: 1fr; gap: 32px; } }
@media (max-width: 620px)  { .services-grid { grid-template-columns: 1fr; } }

/* ---- ABOUT / stats ---- */
.about {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}
.about h2 {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(2.5rem, 5.5vw, 4.5rem);
  line-height: 1;
  letter-spacing: -0.025em;
  text-transform: lowercase;
  text-wrap: balance;
  margin-bottom: 32px;
}
.about p {
  font-size: 16px; line-height: 1.7; color: var(--fg-2);
  max-width: 58ch; margin-bottom: 20px;
}
.stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px 48px;
  padding: 48px 40px;
  border: 1px solid var(--border-soft);
  border-radius: var(--r-lg);
  background: linear-gradient(180deg, rgba(12,18,48,0.4), rgba(7,11,34,0.2));
  box-shadow: var(--inset-top);
  position: relative;
  overflow: hidden;
}
.stats::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(60% 60% at 100% 0%, rgba(138,124,255,0.12), transparent 70%);
  pointer-events: none;
}
.stat .value {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(3rem, 5vw, 4.5rem);
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--fg-1);
  margin-bottom: 8px;
  position: relative;
}
.stat .value em {
  font-style: normal;
  color: var(--cyan-400);
  font-weight: 400;
}
.stat .label {
  font-family: var(--font-mono);
  font-size: 10px; letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--fg-3);
}

@media (max-width: 900px) { .about { grid-template-columns: 1fr; gap: 40px; } }

/* ---- WORK (scroll-zoom) ---- */
.work-wrap {
  position: relative;
  height: 300vh; /* scroll runway */
}
.work-sticky {
  position: sticky; top: 0;
  height: 100vh;
  overflow: hidden;
  display: grid; place-items: center;
}
.work-header {
  position: absolute;
  top: 12%; left: 50%;
  transform: translateX(-50%);
  text-align: center;
  z-index: 3;
  pointer-events: none;
}
.work-header .kicker { margin-bottom: 16px; }
.work-header h2 {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(2rem, 5vw, 4rem);
  line-height: 1;
  letter-spacing: -0.025em;
  text-transform: lowercase;
  text-wrap: balance;
}
.work-header h2 em {
  font-style: normal;
  background: var(--grad-aurora);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.work-header p {
  margin-top: 14px;
  font-size: 13px; color: var(--fg-3);
  max-width: 52ch; margin-left: auto; margin-right: auto;
}

.work-grid {
  position: relative;
  width: 100vw; height: 100vh;
  transform-origin: 50% 50%;
  will-change: transform;
}
.work-tile {
  position: absolute;
  border-radius: var(--r-md);
  overflow: hidden;
  border: 1px solid var(--border-soft);
  box-shadow: 0 24px 48px rgba(0,0,0,0.45), var(--inset-top);
  background: var(--bg-abyss);
  transition: transform var(--dur-base) var(--ease-glide);
}
.work-tile .bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  filter: saturate(0.85) brightness(0.8);
}
.work-tile .tint {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(3,6,23,0) 45%, rgba(3,6,23,0.8));
}
.work-tile .meta {
  position: absolute; left: 16px; right: 16px; bottom: 14px;
  display: flex; justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 9px; letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--fg-2);
  z-index: 2;
}
.work-tile .cat { color: var(--cyan-300); }
.work-tile.center {
  display: grid; place-items: center;
  background: linear-gradient(135deg, var(--bg-current), var(--bg-abyss));
}
.work-tile.center .label {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: 22px;
  color: var(--fg-1);
  text-transform: lowercase;
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 24px;
  border-radius: var(--r-pill);
  background: rgba(74,195,255,0.12);
  border: 1px solid rgba(74,195,255,0.35);
  box-shadow: 0 0 32px rgba(74,195,255,0.25);
  backdrop-filter: blur(8px);
  z-index: 3;
}

/* ---- PROCESS ---- */
.process-head { text-align: center; margin-bottom: 80px; }
.process-head h2 {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  line-height: 1;
  letter-spacing: -0.025em;
  text-transform: lowercase;
  text-wrap: balance;
  margin-top: 12px;
}
.process-head h2 em { font-style: normal; background: var(--grad-aurora); -webkit-background-clip: text; background-clip: text; color: transparent; }
.process-head p {
  margin: 16px auto 0;
  max-width: 56ch;
  color: var(--fg-3);
  font-size: 15px;
}
.process-steps {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1px;
  background: var(--border-hairline);
  border: 1px solid var(--border-soft);
  border-radius: var(--r-lg);
  overflow: hidden;
}
.step {
  padding: 36px 28px 40px;
  background: var(--bg-trench);
  min-height: 280px;
  transition: background var(--dur-base) var(--ease-glide);
  position: relative;
  overflow: hidden;
}
.step:hover { background: var(--bg-abyss); }
.step::after {
  content: ''; position: absolute; left: 0; right: 0; top: 0; height: 2px;
  background: var(--grad-aurora);
  transform: scaleX(0); transform-origin: left;
  transition: transform var(--dur-slow) var(--ease-glide);
}
.step:hover::after { transform: scaleX(1); }
.step .num {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: 72px;
  line-height: 1;
  color: var(--cyan-400);
  letter-spacing: -0.04em;
  margin-bottom: 28px;
  opacity: 0.85;
  text-shadow: 0 0 24px rgba(74,195,255,0.35);
}
.step h4 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 22px;
  letter-spacing: -0.02em;
  text-transform: lowercase;
  margin-bottom: 12px;
}
.step p { font-size: 13px; color: var(--fg-3); line-height: 1.65; }

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

/* ---- TESTIMONIALS (marquee columns) ---- */
.test-head { text-align: center; margin-bottom: 72px; }
.test-head h2 {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  line-height: 1;
  letter-spacing: -0.025em;
  text-transform: lowercase;
  margin-top: 14px;
}
.test-head p { margin: 16px auto 0; max-width: 52ch; color: var(--fg-3); font-size: 14px; }

.test-cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-height: 640px;
  overflow: hidden;
  mask-image: linear-gradient(180deg, transparent 0%, #000 15%, #000 85%, transparent 100%);
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 15%, #000 85%, transparent 100%);
}
.test-col {
  display: flex; flex-direction: column; gap: 24px;
  animation: scrollUp 40s linear infinite;
}
.test-col.alt { animation-direction: reverse; animation-duration: 50s; }
.test-col.slow { animation-duration: 60s; }
@keyframes scrollUp {
  0% { transform: translateY(0); }
  100% { transform: translateY(-50%); }
}
.test-card {
  padding: 28px 28px 24px;
  background: rgba(12,18,48,0.5);
  border: 1px solid var(--border-soft);
  border-radius: var(--r-lg);
  box-shadow: var(--inset-top);
  transition: border-color var(--dur-base) var(--ease-glide), box-shadow var(--dur-base) var(--ease-glide);
}
.test-card:hover { border-color: var(--cyan-400); box-shadow: 0 0 32px rgba(74,195,255,0.2), var(--inset-top); }
.test-card .quote {
  font-size: 14px;
  color: var(--fg-1);
  line-height: 1.65;
  margin-bottom: 24px;
  text-wrap: pretty;
}
.test-card .author { display: flex; align-items: center; gap: 12px; }
.test-card .avatar {
  width: 36px; height: 36px; border-radius: 50%;
  background: linear-gradient(135deg, var(--cyan-400), var(--iris-400));
  display: grid; place-items: center;
  font-family: var(--font-display);
  font-size: 16px;
  color: var(--bg-void);
  font-weight: 500;
}
.test-card .who { display: flex; flex-direction: column; }
.test-card .who .n { font-size: 13px; color: var(--fg-1); font-weight: 500; }
.test-card .who .r { font-size: 11px; color: var(--fg-3); font-family: var(--font-mono); letter-spacing: 0.1em; text-transform: uppercase; margin-top: 2px; }

@media (max-width: 1000px) { .test-cols { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .test-cols { grid-template-columns: 1fr; } }

/* ---- PRICING ---- */
.pricing-head { text-align: center; margin-bottom: 72px; }
.pricing-head h2 {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  line-height: 1;
  letter-spacing: -0.025em;
  text-transform: lowercase;
  margin-top: 14px;
}
.pricing-head h2 em { font-style: normal; background: var(--grad-aurora); -webkit-background-clip: text; background-clip: text; color: transparent; }
.pricing-head p { margin: 16px auto 0; max-width: 56ch; color: var(--fg-3); font-size: 15px; }

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.price-card {
  position: relative;
  padding: 36px 32px 32px;
  background: rgba(12,18,48,0.5);
  backdrop-filter: blur(8px);
  border: 1px solid var(--border-soft);
  border-radius: var(--r-lg);
  box-shadow: var(--inset-top);
  transition: border-color var(--dur-base) var(--ease-glide),
              box-shadow var(--dur-slow) var(--ease-glide),
              transform var(--dur-base) var(--ease-glide);
  overflow: hidden;
}
.price-card::before {
  content: ''; position: absolute; inset: -1px;
  background: linear-gradient(180deg, transparent, rgba(74,195,255,0.3), transparent);
  border-radius: var(--r-lg);
  opacity: 0; transition: opacity var(--dur-slow) var(--ease-glide);
  pointer-events: none; z-index: -1;
  -webkit-mask: linear-gradient(#000,#000) content-box, linear-gradient(#000,#000);
}
.price-card:hover { border-color: rgba(74,195,255,0.3); box-shadow: 0 24px 60px rgba(3,6,23,0.6), 0 0 0 1px rgba(74,195,255,0.15), var(--inset-top); transform: translateY(-3px); }
.price-card.featured {
  background: linear-gradient(180deg, rgba(74,195,255,0.06), rgba(12,18,48,0.5));
  border-color: rgba(74,195,255,0.25);
  box-shadow: 0 24px 60px rgba(3,6,23,0.7), 0 0 64px rgba(74,195,255,0.12), var(--inset-top);
}
.price-card.featured::after {
  content: ''; position: absolute; top: 0; left: 20%; right: 20%; height: 1px;
  background: linear-gradient(90deg, transparent, var(--cyan-400), transparent);
  box-shadow: 0 0 24px rgba(74,195,255,0.7);
}
.price-badges { display: flex; gap: 8px; margin-bottom: 24px; flex-wrap: wrap; }
.badge {
  display: inline-flex;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  padding: 6px 10px;
  border-radius: var(--r-pill);
  background: rgba(255,255,255,0.05);
  color: var(--fg-3);
  border: 1px solid var(--border-hairline);
}
.badge.primary { background: rgba(74,195,255,0.12); color: var(--cyan-300); border-color: rgba(74,195,255,0.3); }
.badge.mint { background: rgba(24,230,200,0.12); color: var(--mint-300); border-color: rgba(24,230,200,0.3); }
.price-amount {
  display: flex; align-items: baseline; gap: 10px;
  margin-bottom: 28px;
}
.price-amount .n {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: 76px;
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--fg-1);
}
.price-amount .prefix {
  font-family: var(--font-display);
  font-size: 22px;
  color: var(--fg-3);
  font-weight: 300;
}
.price-amount .unit {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--fg-3);
  line-height: 1.3;
}
.price-features { list-style: none; display: grid; gap: 12px; margin-bottom: 28px; }
.price-features li {
  display: flex; gap: 12px;
  font-size: 13px;
  color: var(--fg-2);
  line-height: 1.55;
}
.price-features .check {
  flex-shrink: 0;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: rgba(74,195,255,0.15);
  color: var(--cyan-400);
  display: grid; place-items: center;
  margin-top: 2px;
}
.price-card .btn {
  width: 100%;
  justify-content: center;
  padding: 13px 20px;
}

@media (max-width: 1000px) { .pricing-grid { grid-template-columns: 1fr; gap: 20px; } }

/* ---- FAQ ---- */
.faq-head { text-align: center; margin-bottom: 40px; }
.faq-head h2 {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  line-height: 1;
  letter-spacing: -0.025em;
  text-transform: lowercase;
  margin-top: 12px;
}
.faq-head h2 em { font-style: normal; background: var(--grad-aurora); -webkit-background-clip: text; background-clip: text; color: transparent; }

.faq-tabs {
  display: flex; justify-content: center; gap: 10px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}
.faq-tab {
  padding: 9px 18px;
  border-radius: var(--r-pill);
  border: 1px solid var(--border-soft);
  background: transparent;
  color: var(--fg-3);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  transition: color var(--dur-base) var(--ease-glide), border-color var(--dur-base) var(--ease-glide), background var(--dur-base) var(--ease-glide);
}
.faq-tab:hover { color: var(--fg-1); border-color: var(--border-strong); }
.faq-tab.active { color: var(--bg-void); background: var(--cyan-300); border-color: var(--cyan-300); box-shadow: 0 0 24px rgba(74,195,255,0.35); }

.faq-list { max-width: 800px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }
.faq-item {
  background: rgba(12,18,48,0.4);
  border: 1px solid var(--border-soft);
  border-radius: var(--r-lg);
  overflow: hidden;
  transition: border-color var(--dur-base) var(--ease-glide), box-shadow var(--dur-base) var(--ease-glide);
}
.faq-item.open { border-color: rgba(74,195,255,0.3); box-shadow: 0 0 32px rgba(74,195,255,0.12); }
.faq-q {
  width: 100%;
  display: flex; align-items: center; justify-content: space-between;
  gap: 20px;
  padding: 22px 26px;
  text-align: left;
}
.faq-q span {
  font-size: 15px;
  color: var(--fg-1);
  font-weight: 500;
  line-height: 1.4;
  transition: color var(--dur-base) var(--ease-glide);
}
.faq-item.open .faq-q span { color: var(--cyan-200); }
.faq-q .toggle {
  width: 30px; height: 30px;
  border-radius: 50%;
  border: 1px solid var(--border-soft);
  display: grid; place-items: center;
  color: var(--fg-2);
  flex-shrink: 0;
  transition: transform var(--dur-base) var(--ease-glide), border-color var(--dur-base) var(--ease-glide), background var(--dur-base) var(--ease-glide);
}
.faq-item.open .toggle { transform: rotate(45deg); border-color: var(--cyan-400); color: var(--cyan-300); background: rgba(74,195,255,0.1); }
.faq-a {
  overflow: hidden;
  max-height: 0;
  transition: max-height var(--dur-base) var(--ease-glide);
}
.faq-item.open .faq-a { max-height: 400px; }
.faq-a p {
  padding: 0 26px 22px;
  font-size: 14px;
  color: var(--fg-2);
  line-height: 1.7;
  max-width: none;
}

/* ---- CONTACT + CTA ---- */
.cta-final {
  text-align: center;
  padding: 200px 0 140px;
}
.cta-final .kicker { margin-bottom: 28px; }
.cta-final h2 {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(3rem, 10vw, 9rem);
  line-height: 0.95;
  letter-spacing: -0.03em;
  text-transform: lowercase;
  text-wrap: balance;
  margin: 0 auto;
  max-width: 16ch;
}
.cta-final h2 em { font-style: normal; background: var(--grad-aurora); -webkit-background-clip: text; background-clip: text; color: transparent; font-weight: 400; }
.cta-final .btn { margin-top: 48px; font-size: 16px; padding: 18px 34px; }

.contact {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 32px;
  max-width: 1080px; margin: 0 auto;
}
.contact-left {
  padding: 40px 36px;
  background: rgba(7,11,34,0.5);
  border: 1px solid var(--border-soft);
  border-radius: var(--r-lg);
  box-shadow: var(--inset-top);
  position: relative; overflow: hidden;
}
.contact-left::after {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(60% 50% at 100% 100%, rgba(138,124,255,0.12), transparent 70%);
  pointer-events: none;
}
.contact-left .kicker { margin-bottom: 20px; }
.contact-left h3 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
  text-transform: lowercase;
  color: var(--fg-1);
  text-wrap: balance;
  margin-bottom: 20px;
  position: relative; z-index: 1;
}
.contact-left h3 em { font-style: normal; color: var(--cyan-300); }
.contact-left p { font-size: 14px; color: var(--fg-2); line-height: 1.65; margin-bottom: 32px; position: relative; z-index: 1; }
.contact-left ul { list-style: none; display: grid; gap: 14px; position: relative; z-index: 1; }
.contact-left li {
  display: flex; gap: 12px; align-items: center;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--fg-2);
}
.contact-left .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--mint-400); flex-shrink: 0;
  box-shadow: 0 0 8px var(--mint-400);
}

.contact-form {
  padding: 40px 36px;
  background: rgba(7,11,34,0.5);
  border: 1px solid var(--border-soft);
  border-radius: var(--r-lg);
  box-shadow: var(--inset-top);
  display: flex; flex-direction: column; gap: 20px;
}
.field label {
  display: block;
  font-family: var(--font-mono);
  font-size: 10px; letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--fg-3);
  margin-bottom: 10px;
}
.field input, .field textarea {
  width: 100%;
  padding: 14px 16px;
  background: rgba(3,6,23,0.5);
  border: 1px solid var(--border-soft);
  border-radius: var(--r-md);
  color: var(--fg-1);
  font-family: var(--font-body);
  font-size: 14px;
  transition: border-color var(--dur-base) var(--ease-glide), background var(--dur-base) var(--ease-glide), box-shadow var(--dur-base) var(--ease-glide);
  outline: none;
}
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field textarea:focus { border-color: var(--cyan-400); box-shadow: 0 0 0 3px rgba(74,195,255,0.15); background: rgba(12,18,48,0.6); }
.contact-form .btn { align-self: flex-start; margin-top: 8px; }

/* CF7-specific resets: form emits <p> wrapping label+input — strip default margins, add strong vertical rhythm between fields */
.contact-form .wpcf7-form { display: flex; flex-direction: column; gap: 15px; }
.contact-form .field { margin: 0; }
.contact-form .field > p { margin: 0; display: flex; flex-direction: column; gap: 12px; }
.contact-form .field label { margin-bottom: 0; }
.contact-form .wpcf7-form-control-wrap { display: block; }
.contact-form .wpcf7-form > p:not(.field p) { margin: 0; }
.contact-form .hidden-fields-container { border: 0; padding: 0; margin: 0; }
.contact-form .wpcf7-response-output { margin: 0; padding: 12px 16px; border-radius: var(--r-md); }

/* FAQ answer content padding — works for both <p> wrapped and plain */
.faq-a { padding: 0 26px; }
.faq-item.open .faq-a { padding-bottom: 22px; }
.faq-a p { padding: 0; margin: 0 0 12px; }
.faq-a p:last-child { margin-bottom: 0; }

/* FAQ: <button> reset + cursor so tabs/questions are clickable */
.faq-tab {
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
}
.faq-q {
  cursor: pointer;
  font: inherit;
  appearance: none;
  -webkit-appearance: none;
}
.faq-q {
  background: transparent;
  border: none;
  color: inherit;
}
/* Panels: only active visible; hidden attribute respected */
.faq-list[hidden] { display: none; }
.faq-list + .faq-list { margin-top: 0; }

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

/* ---- FOOTER (performance) ---- */
.footer-stage {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  padding: 120px 0 60px;
  display: flex; flex-direction: column;
  justify-content: space-between;
}
.footer-stage canvas.footer-shader {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  z-index: 0;
  opacity: 0.7;
}
.footer-stage .veil {
  position: absolute; inset: 0;
  background:
    radial-gradient(80% 50% at 50% 0%, var(--bg-void), transparent 60%),
    linear-gradient(180deg, transparent 30%, var(--bg-void) 100%);
  z-index: 1; pointer-events: none;
}
.footer-stage .wrap { z-index: 2; }

.footer-letsgo {
  text-align: center;
  padding: 60px 0 120px;
}
.footer-letsgo .kicker { margin-bottom: 24px; }
.footer-letsgo h2 {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(5rem, 18vw, 18rem);
  line-height: 0.85;
  letter-spacing: -0.04em;
  text-transform: lowercase;
  color: var(--fg-1);
  text-wrap: balance;
}
.footer-letsgo h2 em {
  font-style: normal;
  font-weight: 400;
  background: var(--grad-aurora);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  display: inline-block;
  animation: shimmer 8s ease-in-out infinite;
  background-size: 200% 200%;
}
@keyframes shimmer {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}
.footer-letsgo .email {
  margin-top: 48px;
  display: inline-flex; align-items: center; gap: 14px;
  font-family: var(--font-mono);
  font-size: 16px;
  color: var(--cyan-300);
  padding: 16px 28px;
  border-radius: var(--r-pill);
  background: rgba(74,195,255,0.08);
  border: 1px solid rgba(74,195,255,0.25);
  transition: box-shadow var(--dur-base) var(--ease-glide), background var(--dur-base) var(--ease-glide);
}
.footer-letsgo .email:hover { background: rgba(74,195,255,0.16); box-shadow: 0 0 48px rgba(74,195,255,0.35); }

.footer-meta {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr 1fr;
  gap: 48px;
  padding-top: 72px;
  border-top: 1px solid var(--border-hairline);
  margin-top: 60px;
}
.footer-brand img { width: 120px; opacity: 0.9; margin-bottom: 20px; }
.footer-brand p { font-size: 13px; color: var(--fg-3); max-width: 34ch; line-height: 1.6; }
.footer-col .lbl {
  font-family: var(--font-mono);
  font-size: 10px; letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--fg-4);
  display: block; margin-bottom: 16px;
}
.footer-col a, .footer-col span {
  display: block;
  font-size: 13px;
  color: var(--fg-2);
  padding: 6px 0;
  transition: color var(--dur-quick) var(--ease-glide);
  text-transform: lowercase;
}
.footer-col a:hover { color: var(--cyan-200); }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  margin-top: 72px; padding-top: 28px;
  border-top: 1px solid var(--border-hairline);
  font-family: var(--font-mono);
  font-size: 10px; letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--fg-4);
}

@media (max-width: 900px) {
  .footer-meta { grid-template-columns: 1fr 1fr; gap: 32px; }
}
@media (max-width: 560px) {
  .footer-meta { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 16px; align-items: flex-start; }
}

/* ---- TWEAKS ---- */
.tweaks-panel {
  position: fixed;
  right: 20px; bottom: 20px;
  z-index: 10000;
  width: 280px;
  padding: 20px 22px 22px;
  background: rgba(7,11,34,0.88);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid var(--border-strong);
  border-radius: var(--r-lg);
  box-shadow: 0 32px 64px rgba(0,0,0,0.6), var(--inset-top);
  transform: translateY(20px); opacity: 0; pointer-events: none;
  transition: transform var(--dur-base) var(--ease-glide), opacity var(--dur-base) var(--ease-glide);
}
.tweaks-panel.open { transform: none; opacity: 1; pointer-events: auto; }
.tweaks-panel h4 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 22px;
  letter-spacing: -0.02em;
  text-transform: lowercase;
  margin-bottom: 4px;
}
.tweaks-panel .sub {
  font-family: var(--font-mono);
  font-size: 9px; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--fg-4);
  margin-bottom: 20px;
}
.tweak-row { margin-bottom: 14px; }
.tweak-row label {
  display: block;
  font-family: var(--font-mono);
  font-size: 9px; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--fg-3);
  margin-bottom: 8px;
}
.tweak-chips { display: flex; gap: 6px; flex-wrap: wrap; }
.tweak-chip {
  padding: 7px 11px;
  border-radius: var(--r-pill);
  border: 1px solid var(--border-soft);
  background: transparent;
  color: var(--fg-2);
  font-size: 11px;
  font-family: var(--font-mono);
  letter-spacing: 0.06em;
  transition: all var(--dur-quick) var(--ease-glide);
}
.tweak-chip:hover { color: var(--fg-1); border-color: var(--border-strong); }
.tweak-chip.on { background: var(--cyan-400); color: var(--bg-void); border-color: var(--cyan-400); box-shadow: 0 0 16px rgba(74,195,255,0.4); }
.tweak-row input[type="range"] {
  width: 100%;
  -webkit-appearance: none; appearance: none;
  height: 4px; background: var(--border-soft); border-radius: 2px; outline: none;
}
.tweak-row input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none;
  width: 14px; height: 14px; border-radius: 50%;
  background: var(--cyan-400); box-shadow: 0 0 8px rgba(74,195,255,0.7);
  cursor: pointer;
}
.tweak-row input[type="range"]::-moz-range-thumb {
  width: 14px; height: 14px; border-radius: 50%; border: 0;
  background: var(--cyan-400); box-shadow: 0 0 8px rgba(74,195,255,0.7);
  cursor: pointer;
}


/* ==========================================================================
   WORK — scroll-zoom: hero tile scales 1 → 0.28, ring tiles fade/scale in
   ========================================================================== */
.work-section {
  padding: 0 !important;
  background: var(--bg-void);
  position: relative;
}
.work-section .bloom {
  position: absolute;
  pointer-events: none;
  z-index: 0;
}
.work-section .bloom.top-cyan {
  top: -160px; left: 50%; transform: translateX(-50%);
  width: 70vw; height: 320px;
  background: radial-gradient(closest-side, rgba(74,195,255,0.28), transparent 70%);
  filter: blur(40px);
}

/* outer wrap provides the scroll runway: 300vh total, sticky pins 100vh */
.work-wrap {
  position: relative;
  height: 320vh;
}
.work-sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: hidden;
  background:
    radial-gradient(100% 60% at 50% 50%, rgba(30,38,84,0.55), transparent 70%),
    var(--bg-void);
}

/* floating header appears near end of scroll */
.work-header {
  position: absolute;
  left: 50%; top: 50%;
  z-index: 5;
  text-align: center;
  max-width: 640px;
  transition: opacity 0.4s cubic-bezier(.2,.8,.2,1);
  pointer-events: none;
}
.work-header .kicker { margin-bottom: 20px; }
.work-header h2 {
  font-family: var(--font-display);
  font-weight: 200;
  font-size: clamp(2.4rem, 5vw, 4.4rem);
  line-height: 1.02;
  letter-spacing: -0.04em;
  color: var(--fg-1);
  margin-bottom: 16px;
}
.work-header h2 em {
  font-style: italic;
  color: var(--cyan-300);
  font-weight: 300;
}
.work-header p {
  color: var(--fg-3);
  font-size: 1.05rem;
  line-height: 1.5;
  max-width: 460px;
  margin: 0 auto;
}

/* The stage is a 100vw × 100vh coord space; tiles position within it */
.work-stage {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.work-tile {
  position: absolute;
  overflow: hidden;
  border-radius: 16px;
  background: #0a0f28;
  border: 1px solid rgba(255,255,255,0.05);
  will-change: transform, opacity;
  isolation: isolate;
}
.work-tile .bg {
  position: absolute; inset: 0;
  transition: transform 0.8s cubic-bezier(.2,.8,.2,1);
}
.work-tile .tint {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(2,5,20,0) 40%, rgba(2,5,20,0.85) 100%);
  pointer-events: none;
}
.work-tile .meta {
  position: absolute;
  left: 14px; right: 14px; bottom: 12px;
  display: flex; flex-direction: column; gap: 4px;
  z-index: 2;
}
.work-tile .meta .cat {
  font-family: var(--font-mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--cyan-300);
  opacity: 0.8;
}
.work-tile .meta .ttl {
  font-family: var(--font-display);
  font-size: clamp(0.9rem, 1.2vw, 1.25rem);
  font-weight: 300;
  letter-spacing: -0.02em;
  color: var(--fg-1);
}
.work-tile .meta .arr {
  color: var(--cyan-300);
  margin-left: 4px;
  display: inline-block;
  transition: transform 0.3s ease;
}
.work-tile:hover .meta .arr { transform: translate(3px, -3px); }

/* Ring tiles (8 surrounding) */
.work-tile.ring {
  transition:
    opacity 0.7s cubic-bezier(.2,.8,.2,1),
    transform 0.9s cubic-bezier(.2,.8,.2,1);
  transform-origin: center;
  box-shadow:
    0 20px 60px rgba(0,0,0,0.5),
    0 0 0 1px rgba(255,255,255,0.04) inset;
}
.work-tile.ring:hover .bg { transform: scale(1.05); }

/* Hero tile — starts full-viewport, scales to center */
.work-tile.hero {
  position: absolute;
  left: 50%; top: 50%;
  width: 100vw;
  height: 100vh;
  transform-origin: center;
  z-index: 3;
  box-shadow:
    0 60px 160px rgba(0,0,0,0.65),
    0 0 120px rgba(138,124,255,0.15);
}
.work-tile.hero .bg::after {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(80% 60% at 30% 20%, rgba(74,195,255,0.25), transparent 60%),
    radial-gradient(60% 70% at 80% 80%, rgba(138,124,255,0.3), transparent 60%);
  mix-blend-mode: screen;
}
.work-tile.hero .hero-shine {
  position: absolute;
  top: -50%; left: -20%;
  width: 140%; height: 200%;
  background: linear-gradient(115deg, transparent 40%, rgba(255,255,255,0.06) 50%, transparent 60%);
  pointer-events: none;
  animation: heroShine 9s ease-in-out infinite;
}
@keyframes heroShine {
  0%, 100% { transform: translateX(-30%); }
  50% { transform: translateX(30%); }
}

.work-hero-content {
  position: absolute;
  left: 8%; bottom: 10%;
  max-width: 620px;
  z-index: 3;
  transition: opacity 0.3s ease;
}
.work-hero-content .kicker {
  margin-bottom: 18px;
}
.work-hero-content .kicker .num {
  color: var(--cyan-300);
  margin: 0;
  text-transform: uppercase;
}
.work-hero-content h3 {
  font-family: var(--font-display);
  font-weight: 200;
  font-size: clamp(2.4rem, 5.5vw, 5.2rem);
  line-height: 0.95;
  letter-spacing: -0.04em;
  color: var(--fg-1);
  margin-bottom: 16px;
}
.work-hero-content p {
  color: var(--fg-2);
  font-size: clamp(1rem, 1.3vw, 1.25rem);
  line-height: 1.5;
  max-width: 520px;
  margin-bottom: 32px;
}
.hero-stats {
  display: flex;
  gap: 40px;
}
.hero-stats > div {
  display: flex; flex-direction: column; gap: 4px;
}
.hero-stats b {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  color: var(--cyan-300);
  letter-spacing: -0.02em;
}
.hero-stats span {
  font-family: var(--font-mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--fg-3);
}

/* mini meta appears on the hero tile once it's scaled down */
.hero-mini-meta {
  position: absolute;
  left: 16px; right: 16px; bottom: 14px;
  display: flex; flex-direction: column; gap: 4px;
  z-index: 3;
  transition: opacity 0.5s ease;
}
.hero-mini-meta .cat {
  font-family: var(--font-mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--cyan-300);
}
.hero-mini-meta .ttl {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 300;
  letter-spacing: -0.02em;
  color: var(--fg-1);
}
.hero-mini-meta .arr { color: var(--cyan-300); margin-left: 4px; }

/* scroll rail — tells the user to scroll */
.work-rail {
  position: absolute;
  left: 50%;
  bottom: 28px;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  z-index: 6;
  pointer-events: none;
}
.work-rail .rail-track {
  width: 180px;
  height: 2px;
  background: rgba(255,255,255,0.12);
  border-radius: 2px;
  overflow: hidden;
}
.work-rail .rail-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--cyan-300), var(--iris-400));
  box-shadow: 0 0 12px rgba(74,195,255,0.6);
  transition: width 0.1s linear;
}
.work-rail .rail-label {
  font-family: var(--font-mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--fg-4);
}

@media (max-width: 900px) {
  .work-wrap { height: 260vh; }
  .work-header h2 { font-size: 2rem; }
  .hero-stats { gap: 20px; }
  .hero-stats b { font-size: 1.4rem; }
  .work-hero-content { left: 6%; bottom: 12%; max-width: 90%; }
}

/* ==========================================================================
   Mobile horizontal overflow fix — 2026-04-22
   Issue: .bloom decorative elements (up to 900px wide) + .cursor-glow (420px)
   + .caustics-layer spilled past 375px viewport, scrollWidth hit 850px.
   Solution: clip at html/body/main, hide cursor-glow on touch, scale bloom.
   ========================================================================== */
html, body { overflow-x: clip; max-width: 100%; }
main, main > section { overflow-x: clip; }

@media (hover: none), (max-width: 768px) {
  .cursor-glow { display: none !important; }
}

@media (max-width: 768px) {
  .bloom { transform: scale(0.45) !important; }
  .bloom.center { transform: translate(-50%, -50%) scale(0.45) !important; }
  .caustics-layer { transform: scale(0.6) !important; transform-origin: center; }
}

/* ==========================================================================
   Blog — Faza C 2026-04-24
   - wrap-narrow — reading-width container for article body
   - blog-grid — archive + related list (reuses .services-grid)
   - blog-card — individual post card w/ thumbnail
   - article-body — post typography (h2, h3, p, ul, blockquote, a)
   - pagination — prev/next links
   ========================================================================== */
.wrap-narrow {
  max-width: 780px;
  margin: 0 auto;
  padding: 0 var(--s-6);
  position: relative;
}
@media (min-width: 900px) { .wrap-narrow { padding: 0 var(--s-10); } }

.blog-grid { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 32px; }
.blog-card { display: flex; flex-direction: column; gap: 16px; text-decoration: none; }
.blog-card-thumb {
  overflow: hidden;
  border-radius: 12px;
  aspect-ratio: 16 / 10;
  margin-bottom: 8px;
}
.blog-card-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.blog-card:hover .blog-card-thumb img { transform: scale(1.04); }
.blog-card h3 { margin: 0 0 8px; line-height: 1.25; }
.blog-card p { color: var(--fg-3); font-size: var(--fs-base); margin: 0 0 14px; }
.blog-card .learn { color: var(--cyan-400); font-size: var(--fs-sm); letter-spacing: 0.02em; }

.blog-empty { text-align: center; padding: 80px 0 120px; }
.blog-empty h2 { font-size: var(--fs-3xl); margin-bottom: 16px; }
.blog-empty p { color: var(--fg-3); }

.pagination {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin: 60px 0 40px;
  flex-wrap: wrap;
}
.pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  padding: 10px 16px;
  background: var(--bg-surface);
  border: 1px solid var(--border-1);
  border-radius: 10px;
  color: var(--fg-2);
  font-size: var(--fs-sm);
  letter-spacing: 0.04em;
  text-decoration: none;
  transition: all 0.2s ease;
}
.pagination .page-numbers:hover { border-color: var(--cyan-400); color: var(--cyan-400); }
.pagination .page-numbers.current { background: var(--cyan-400); color: var(--bg-abyss); border-color: var(--cyan-400); }
.pagination .prev, .pagination .next { padding: 10px 20px; }

/* Single post — article body typography */
.hero-article h1 { font-size: clamp(2rem, 5vw, 3.5rem); line-height: 1.12; }
.hero-article .hero-desc { font-size: var(--fs-lg); color: var(--fg-2); max-width: 720px; }

.article-hero {
  margin: 40px 0 20px;
  border-radius: 16px;
  overflow: hidden;
}
.article-hero img { width: 100%; height: auto; display: block; }

.article-body { padding: 60px 0 40px; }
.article-content {
  font-size: var(--fs-lg);
  line-height: 1.75;
  color: var(--fg-2);
}
.article-content > * + * { margin-top: 1.25em; }
.article-content h2 {
  font-size: var(--fs-3xl);
  line-height: 1.25;
  color: var(--fg-1);
  margin-top: 2em;
  margin-bottom: 0.4em;
}
.article-content h3 {
  font-size: var(--fs-2xl);
  line-height: 1.3;
  color: var(--fg-1);
  margin-top: 1.5em;
  margin-bottom: 0.4em;
}
.article-content p { color: var(--fg-2); }
.article-content a {
  color: var(--cyan-400);
  text-decoration: underline;
  text-decoration-color: rgba(74, 195, 255, 0.35);
  text-underline-offset: 3px;
  transition: text-decoration-color 0.2s ease;
}
.article-content a:hover { text-decoration-color: var(--cyan-400); }
.article-content ul, .article-content ol { padding-left: 1.5em; }
.article-content li { margin-bottom: 0.5em; color: var(--fg-2); }
.article-content blockquote {
  border-left: 3px solid var(--cyan-400);
  padding: 4px 0 4px 24px;
  margin: 1.75em 0;
  font-style: italic;
  color: var(--fg-1);
}
.article-content strong { color: var(--fg-1); font-weight: 600; }
.article-content code {
  background: var(--bg-surface);
  border: 1px solid var(--border-1);
  border-radius: 6px;
  padding: 2px 8px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.92em;
}
.article-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5em 0;
  font-size: var(--fs-base);
}
.article-content th, .article-content td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--border-1);
  text-align: left;
}
.article-content th {
  background: var(--bg-surface);
  color: var(--fg-1);
  font-weight: 600;
  letter-spacing: 0.02em;
}
.article-content td { color: var(--fg-2); }

.article-meta {
  margin-top: 40px;
  padding-top: 30px;
  border-top: 1px solid var(--border-1);
}
.article-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.article-tag {
  display: inline-block;
  padding: 6px 12px;
  background: var(--bg-surface);
  border: 1px solid var(--border-1);
  border-radius: 999px;
  color: var(--fg-3);
  font-size: var(--fs-sm);
  text-decoration: none;
  transition: all 0.2s ease;
}
.article-tag:hover { border-color: var(--cyan-400); color: var(--cyan-400); }

/* Single post hero — featured image background w/ 20% dark overlay (no shader) */
.hero-article.hero-has-image {
  background-color: var(--bg-abyss);
  /* background-image set inline via PHP */
}
.hero-article.hero-has-image .hero-image-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.2); /* 20% dark per spec */
  z-index: 1;
  pointer-events: none;
}
.hero-article.hero-has-image .hero-content {
  position: relative;
  z-index: 2;
}
.hero-article.hero-has-image .shader,
.hero-article.hero-has-image .veil {
  display: none;
}

/* Ensure article body content is always visible (no reveal hide) */
.article-content { opacity: 1 !important; transform: none !important; }

/* ---- GRID ORPHAN FIX ---- */
/* services-grid: auto-adjust columns by item count to prevent empty ghost cells */
.services-grid:has(> *:first-child:nth-last-child(1)) { grid-template-columns: 1fr; }
.services-grid:has(> *:first-child:nth-last-child(2)) { grid-template-columns: repeat(2, 1fr); }
.services-grid:has(> *:first-child:nth-last-child(4)) { grid-template-columns: repeat(2, 1fr); }

/* Tablet (≤1000px): lone last item in 2-col grid spans full row */
@media (max-width: 1000px) {
  .services-grid > *:last-child:nth-child(odd) { grid-column: 1 / -1; }
  .process-steps > *:last-child:nth-child(odd) { grid-column: 1 / -1; }
}
.article-content > * { opacity: 1; }
