/* ============================================================
   dev.NoNames — landing page design system
   Deep navy + electric blue · Space Grotesk / Manrope / JetBrains Mono
   ============================================================ */

:root {
  /* color — tweakable accent is injected at runtime */
  --bg:        #0f0f11;
  --bg-2:      rgba(255, 255, 255, 0.02);
  --surface:   rgba(255, 255, 255, 0.04);
  --surface-2: rgba(255, 255, 255, 0.06);
  --line:      rgba(255,255,255,.08);
  --line-2:    rgba(255,255,255,.12);
  --text:      #f4f4f5;
  --muted:     #a1a1aa;
  --muted-2:   #71717a;
  --accent:    #ffffff;
  --accent-ink:#09090b;
  --accent-soft: rgba(255,255,255,0.06);
  --accent-line: rgba(255,255,255,0.15);
  --glow:      rgba(255,255,255,0.05);

  --font-display: 'Outfit', system-ui, sans-serif;
  --font-body:    'Inter', system-ui, sans-serif;
  --font-mono:    'JetBrains Mono', ui-monospace, monospace;

  --maxw: 1440px;
  --pad: clamp(20px, 6vw, 104px);
  --radius: 16px;

  --ease: cubic-bezier(.2,.7,.2,1);
  --reveal-dur: .7s;
}

/* motion intensity (driven by data-motion on <html>) */
html[data-motion="subtle"]  { --reveal-dur: .45s; --marquee-dur: 60s; }
html[data-motion="lively"]  { --reveal-dur: .7s;  --marquee-dur: 38s; }
html[data-motion="maximal"] { --reveal-dur: .8s;  --marquee-dur: 22s; }

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

/* ---- typography helpers ---- */
.display {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: .98;
  letter-spacing: -.02em;
  text-wrap: balance;
}
.mono {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.kicker {
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
}
.hero .kicker { white-space: normal; }
.kicker::before {
  content: "";
  width: 26px; height: 1px;
  background: var(--accent-line);
}

.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--pad); }

.accent { color: var(--accent); }
.muted  { color: var(--muted); }

/* ---- buttons ---- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  height: 50px; padding: 0 24px;
  border-radius: 10px;
  font-family: var(--font-display);
  font-weight: 600; font-size: 15px; letter-spacing: .01em;
  border: 1px solid transparent;
  transition: transform .18s var(--ease), background .2s, border-color .2s, box-shadow .25s;
  white-space: nowrap;
}
.btn .arr { display: inline-flex; align-items: center; transition: transform .25s var(--ease); }
.btn:hover .arr { transform: translateX(4px); }
.btn-primary {
  background: var(--accent); color: var(--accent-ink);
  box-shadow: 0 8px 28px -10px var(--glow);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 40px -12px var(--glow); }
.btn-ghost {
  background: transparent; color: var(--text);
  border-color: var(--line-2);
}
.btn-ghost:hover { border-color: var(--accent); color: #fff; transform: translateY(-2px); }
.btn-sm { height: 42px; padding: 0 18px; font-size: 14px; }

/* ============================================================
   SCROLL REVEAL
   ============================================================ */
/* reveal-on-scroll is driven by GSAP ScrollTrigger.batch (see useScrollReveal in
   app.jsx). CSS only sets the hidden starting state to avoid a flash before GSAP runs. */
.reveal { opacity: 0; will-change: opacity, transform; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1 !important; transform: none !important; }
  html { scroll-behavior: auto; }
}

/* ============================================================
   NAV
   ============================================================ */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  transition: background .3s, border-color .3s, backdrop-filter .3s;
  border-bottom: 1px solid transparent;
}
.nav[data-scrolled="1"] {
  background: color-mix(in oklab, var(--bg) 78%, transparent);
  -webkit-backdrop-filter: blur(18px) saturate(150%);
  backdrop-filter: blur(18px) saturate(150%);
  border-bottom-color: var(--line);
}
.nav-inner {
  height: 72px; display: flex; align-items: center; justify-content: space-between;
}
.brand { display: flex; align-items: center; gap: 11px; font-family: var(--font-display); font-weight: 600; font-size: 19px; letter-spacing: -.01em; }
.brand .dot {
  width: 11px; height: 11px; border-radius: 3px;
  background: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft);
  animation: pulse 3.2s var(--ease) infinite;
}
.brand b { font-weight: 600; }
.brand .lo { color: var(--muted); }
@keyframes pulse { 0%,100%{ box-shadow:0 0 0 3px var(--accent-soft);} 50%{ box-shadow:0 0 0 7px transparent;} }

.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-links a { font-size: 14.5px; color: var(--muted); transition: color .2s; position: relative; }
.nav-links a:hover { color: var(--text); }
.nav-links a::after {
  content:""; position:absolute; left:0; bottom:-6px; height:1.5px; width:0;
  background: var(--accent); transition: width .25s var(--ease);
}
.nav-links a:hover::after { width: 100%; }
.nav-cta { display: flex; align-items: center; gap: 14px; }
@media (max-width: 860px) { .nav-links, .nav-cross { display: none; } }
.foot-cross { color: var(--accent); }
.foot-cross:hover { color: var(--text); }

/* scroll progress bar */
.progress { position: fixed; top: 0; left: 0; height: 2px; background: var(--accent); z-index: 101; width: 0; box-shadow: 0 0 12px var(--glow); }

/* ============================================================
   SECTION SHELL
   ============================================================ */
.section { position: relative; padding-block: clamp(60px, 8vw, 100px); }
.section-head { max-width: 760px; margin-bottom: clamp(30px, 5vw, 60px); }
.section-head .title {
  font-size: clamp(32px, 4.5vw, 54px);
  margin-top: 16px;
}
.section-head .lead { color: var(--muted); font-size: clamp(16px, 1.8vw, 18px); margin-top: 16px; max-width: 640px; }
.idx { color: var(--muted-2); }

/* ---------- lively text animations ---------- */
.grad-text {
  background: linear-gradient(100deg, #22c55e, #18bfa6, #1fa2d6, #22c55e);
  background-size: 230% 100%;
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
  animation: nn-grad 6.5s ease-in-out infinite;
}
@keyframes nn-grad { 0%, 100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }

/* shimmer sweep across every section kicker */
.kicker {
  background: linear-gradient(100deg, var(--accent) 40%, #ffffff 50%, var(--accent) 60%);
  background-size: 240% 100%;
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: nn-shine 6s linear infinite;
}
@keyframes nn-shine { 0% { background-position: 200% 0; } 100% { background-position: -60% 0; } }

/* hero headline builds in word-by-word on load */
.hero-h1 .w { display: inline-block; opacity: 0; transform: translateY(34px) rotate(3deg); animation: wordUp .72s var(--ease) forwards; animation-delay: calc(var(--i) * 75ms + 180ms); }
.hero-h1 .w.grad-text { will-change: transform, opacity; }
@keyframes wordUp { to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
  .grad-text, .kicker { animation: none; }
  .hero-h1 .w { opacity: 1; transform: none; animation: none; }
}

/* ---------- card hover animations ----------
   Cards are .reveal elements; their entrance animation (revealIn, fill: forwards)
   pins `transform`, and CSS animations outrank normal declarations — so hover
   transforms MUST be !important to take effect. */
.stat, .step, .work { transition: transform .32s var(--ease), border-color .3s, box-shadow .32s; }
.stat:hover, .step:hover, .work:hover {
  transform: translateY(-9px) scale(1.015) !important;
  border-color: var(--accent-line) !important;
  box-shadow: 0 36px 70px -28px rgba(0,0,0,.92);
}
.stat:hover .v { color: var(--accent); transition: color .3s; }
.faq-item { transition: border-color .25s, background .25s; }
.faq-item:hover { border-color: var(--accent-line); background: rgba(255,255,255,.03); }
.plan { transition: transform .35s var(--ease), box-shadow .35s, filter .3s; }
.plan:hover { box-shadow: 0 70px 120px -30px rgba(0,0,0,.95), 0 0 44px -6px rgba(52,211,153,.6); filter: brightness(1.1) saturate(1.08); }
/* buttons get a touch more life */
.btn { transition: transform .2s var(--ease), box-shadow .2s, background .2s, color .2s, border-color .2s; }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 30px -12px color-mix(in oklab, var(--accent) 60%, transparent); }
.btn-ghost:hover { transform: translateY(-2px); }

.rule { height: 1px; background: var(--line); border: 0; }

/* ============================================================
   HERO (shared)
   ============================================================ */
.hero { position: relative; padding-top: 150px; overflow: clip; }
.hero-bg {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(50% 50% at 50% -20%, rgba(255,255,255,0.06), transparent 100%),
    radial-gradient(40% 40% at 85% 20%, rgba(255,255,255,0.03), transparent 80%);
}
.hero-grid {
  position: absolute; inset: 0; z-index: 0; pointer-events: none; opacity: .5;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(110% 80% at 50% 0%, #000 30%, transparent 75%);
          mask-image: radial-gradient(110% 80% at 50% 0%, #000 30%, transparent 75%);
}
html[data-motion="maximal"] .hero-grid { animation: gridDrift 24s linear infinite; }
@keyframes gridDrift { to { background-position: 64px 64px, 64px 64px; } }
.hero .container { position: relative; z-index: 2; }

.avail {
  display: inline-flex; align-items: center; gap: 9px;
  margin-bottom: 28px;
  font-family: var(--font-mono); font-size: 12px; letter-spacing: .06em;
  color: var(--muted); padding: 7px 13px 7px 11px;
  border: 1px solid var(--line); border-radius: 999px;
  background: color-mix(in oklab, var(--surface) 60%, transparent);
}
.avail .live { width: 8px; height: 8px; border-radius: 50%; background: #2bd576; box-shadow: 0 0 0 0 #2bd576; animation: blip 2.4s infinite; }
@keyframes blip { 0%{ box-shadow:0 0 0 0 color-mix(in oklab,#2bd576 70%,transparent);} 70%{ box-shadow:0 0 0 7px transparent;} 100%{ box-shadow:0 0 0 0 transparent;} }

.hero h1 { font-size: clamp(32px, 5vw, 56px); }
.hero h1 .line { display: block; overflow: hidden; }
.hero-sub { color: var(--muted); font-size: clamp(16px, 1.6vw, 18px); max-width: 560px; margin-top: 22px; line-height: 1.55; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }
.hero-meta { display: flex; gap: 30px; flex-wrap: wrap; margin-top: 38px; }
.hero-meta .m .n { font-family: var(--font-display); font-weight: 600; font-size: 22px; }
.hero-meta .m .l { color: var(--muted-2); font-size: 12.5px; }

/* hero: statement (centered) */
.hero-statement .container { display: flex; flex-direction: column; align-items: center; }
.hero-statement { text-align: center; }
.hero-statement .kicker, .hero-statement .avail { margin-inline: auto; }
.hero-statement h1 { margin-top: 24px; }
.hero-statement .hero-sub { margin-inline: auto; }
.hero-statement .hero-cta { justify-content: center; }
.hero-statement .hero-meta { justify-content: center; }

/* hero: split — copy on left, IDE stage on right (~40/60) */
.hero-split .hero-row { display: grid; grid-template-columns: minmax(0, .74fr) minmax(0, 1.2fr); gap: clamp(40px, 6.5vw, 96px); align-items: center; }
@media (max-width: 980px){ .hero-split .hero-row { grid-template-columns: 1fr; } }
.hero-split .hero-copy { min-width: 0; }
.hero-split .hero-sub { max-width: 460px; }

/* hero: terminal */
.hero-terminal .hero-row { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(36px, 6vw, 72px); align-items: center; }
@media (max-width: 940px){ .hero-terminal .hero-row { grid-template-columns: 1fr; } }

/* ---- browser mock (split hero) ---- */
.mock {
  border: 1px solid var(--line-2); border-radius: 14px; overflow: hidden;
  background: var(--surface);
  box-shadow: 0 40px 90px -40px rgba(0,0,0,.8), 0 0 0 1px var(--line);
  transform: perspective(1400px) rotateY(-9deg) rotateX(3deg);
  transition: transform .5s var(--ease);
}
.mock:hover { transform: perspective(1400px) rotateY(-3deg) rotateX(1deg); }
.mock-bar { display: flex; align-items: center; gap: 8px; padding: 12px 14px; background: var(--surface-2); border-bottom: 1px solid var(--line); }
.mock-bar .dots { display: flex; gap: 6px; }
.mock-bar .dots i { width: 11px; height: 11px; border-radius: 50%; background: var(--muted-2); opacity: .55; }
.mock-bar .url { flex: 1; height: 26px; border-radius: 7px; background: var(--bg-2); display: flex; align-items: center; padding: 0 12px; font-family: var(--font-mono); font-size: 11.5px; color: var(--muted); }
.mock-body { aspect-ratio: 16/11; position: relative; background:
  radial-gradient(50% 60% at 20% 0%, var(--accent-soft), transparent 70%), var(--surface); padding: 22px; }
.mock-line { height: 11px; border-radius: 4px; background: var(--line-2); margin-bottom: 12px; }
.mock-block { border-radius: 10px; border: 1px solid var(--line); background: var(--bg-2); }
.mock-skel { position:absolute; inset:0; }
.mock-build .mock-line, .mock-build .mock-block { animation: skel 1.6s var(--ease) infinite; }
@keyframes skel { 0%,100%{ opacity:.5; } 50%{ opacity:1; } }

/* ---- terminal panel ---- */
.term {
  border: 1px solid var(--line-2); border-radius: 14px; overflow: hidden;
  background: #070b14;
  box-shadow: 0 40px 90px -40px rgba(0,0,0,.8);
  font-family: var(--font-mono); font-size: 13.5px; line-height: 1.9;
}
.term-bar { display:flex; align-items:center; gap:8px; padding: 11px 14px; background: var(--surface-2); border-bottom: 1px solid var(--line); }
.term-bar .dots { display:flex; gap:6px; }
.term-bar .dots i { width:11px;height:11px;border-radius:50%; }
.term-bar .dots i:nth-child(1){ background:#ff5f57;} .term-bar .dots i:nth-child(2){ background:#febc2e;} .term-bar .dots i:nth-child(3){ background:#28c840;}
.term-bar .ttl { color: var(--muted-2); font-size: 12px; margin-left: 4px; }
.term-body { padding: 18px 20px; min-height: 280px; }
.term-line { white-space: pre-wrap; }
.term-line .pr { color: var(--accent); }
.term-line .ok { color: #2bd576; }
.term-line .dim { color: var(--muted-2); }
.term-cursor { display:inline-block; width:8px; height:16px; background: var(--accent); vertical-align:-2px; animation: cur 1s steps(2) infinite; }
@keyframes cur { 50%{ opacity:0; } }

/* ---- IDE composition (split hero): browser window + floating editor overlay ---- */
.ide-stage {
  position: relative;
  min-width: 0;
  min-height: 560px;
  padding-bottom: 32px;     /* room for the editor's bottom overhang */
  perspective: 1800px;
}

.ide-bar { display:flex; align-items:center; gap:10px; padding: 11px 14px; background: var(--surface-2); border-bottom: 1px solid var(--line); }
.ide-bar .dots { display:flex; gap:6px; }
.ide-bar .dots i { width:11px; height:11px; border-radius:50%; }
.ide-bar .dots i:nth-child(1){ background:#ff5f57;} .ide-bar .dots i:nth-child(2){ background:#febc2e;} .ide-bar .dots i:nth-child(3){ background:#28c840;}
.ide-bar .url { flex:1; height:26px; border-radius:7px; background: var(--bg-2); display:flex; align-items:center; padding: 0 12px; font-family: var(--font-mono); font-size: 11.5px; color: var(--muted); }
.ide-bar-sm { padding: 8px 12px; }
.ide-bar-sm .dots i { width: 9px; height: 9px; }

/* Browser window — the larger, lower-layer surface */
.ide-browser {
  position: relative;
  width: 95%;
  margin-left: auto;       /* anchor to the right edge of the stage */
  border: 1px solid var(--line-2); border-radius: 14px; overflow: hidden;
  background: var(--surface);
  box-shadow: 0 50px 110px -40px rgba(0,0,0,.85), 0 0 0 1px var(--line);
  transform: rotateY(-4deg) rotateX(2deg);
  transition: transform .5s var(--ease);
}
.ide-stage:hover .ide-browser { transform: rotateY(-1deg) rotateX(.5deg); }
.ide-pv {
  position: relative;
  padding: 18px 20px 22px;
  min-height: 460px;
  background:
    radial-gradient(55% 60% at 75% 0%, var(--accent-soft), transparent 70%),
    var(--surface);
  display:flex; flex-direction:column; gap: 14px;
}
.ide-pv-nav { display:flex; align-items:center; gap:12px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.ide-pv-logo {
  font-family: var(--font-display); font-weight: 800; font-size: 14px; letter-spacing: -.01em;
  color: var(--accent);
  opacity: 0; transform: translateY(-4px);
  transition: opacity .35s var(--ease), transform .35s var(--ease);
}
.ide-pv-logo.on { opacity: 1; transform: none; }
.ide-pv-links { display:flex; gap: 16px; flex:1; padding-left: 24px; }
.ide-pv-links span {
  font-family: var(--font-body); font-weight: 600; font-size: 11px;
  color: var(--muted);
  opacity: 0; transform: translateY(-4px);
  transition: opacity .35s var(--ease), transform .35s var(--ease);
}
.ide-pv-links span.on { opacity: 1; transform: none; }
.ide-pv-links span.on:nth-child(2) { transition-delay: .06s; }
.ide-pv-links span.on:nth-child(3) { transition-delay: .12s; }
.ide-pv-cart {
  display:inline-flex; align-items:center; gap: 6px;
  height: 28px; padding: 0 10px; border-radius: 7px;
  border: 1px solid var(--line); background: var(--bg-2);
  color: var(--muted);
  opacity: 0; transform: translateY(-4px) scale(.9);
  transition: opacity .35s var(--ease), transform .35s var(--ease), color .25s, border-color .25s, background .25s, box-shadow .25s;
}
.ide-pv-cart.on {
  opacity: 1; transform: none;
  color: var(--accent);
  border-color: var(--accent-line);
  background: color-mix(in oklab, var(--accent) 12%, var(--bg-2));
  box-shadow: 0 0 0 4px color-mix(in oklab, var(--accent) 16%, transparent);
}
.ide-pv-badge { font-family: var(--font-mono); font-size: 10px; padding: 1px 5px; border-radius: 9px; background: var(--accent); color: #06180f; font-weight: 700; }

.ide-pv-body { flex: 1; display: flex; flex-direction: column; gap: 14px; }

.ide-pv-banner {
  display: flex; flex-direction: column; gap: 8px;
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid var(--line-2);
  background:
    linear-gradient(90deg, color-mix(in oklab, var(--accent) 22%, var(--bg-2)) 0%, var(--bg-2) 80%);
  opacity: 0; transform: translateY(8px);
  transition: opacity .4s var(--ease), transform .4s var(--ease), border-color .25s;
}
.ide-pv-banner.on { opacity: 1; transform: none; border-color: var(--accent-line); }
.ide-pv-banner-title {
  font-family: var(--font-display); font-weight: 800;
  font-size: 17px; letter-spacing: -.01em; color: var(--text);
}
.ide-pv-banner-sub {
  font-family: var(--font-body); font-size: 11.5px; color: var(--muted);
}
.ide-pv-banner-btn {
  align-self: flex-start;
  margin-top: 6px;
  padding: 5px 12px;
  border-radius: 7px;
  background: var(--accent);
  color: #06180f;
  font-family: var(--font-display); font-weight: 700; font-size: 11px;
  letter-spacing: .02em;
}

.ide-pv-products {
  margin-top: auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.ide-pv-product {
  border-radius: 12px; overflow: hidden;
  border: 1px solid var(--line-2); background: var(--bg-2);
  opacity: 0; transform: translateY(10px) scale(.96);
  transition: opacity .45s var(--ease), transform .45s var(--ease), border-color .25s, box-shadow .25s;
}
.ide-pv-product.on {
  opacity: 1; transform: none;
  border-color: var(--accent-line);
  box-shadow: 0 0 0 3px color-mix(in oklab, var(--accent) 12%, transparent);
}
.ide-pv-product.on.d2 { transition-delay: .12s; }
.ide-pv-product-img {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background:
    radial-gradient(120% 80% at 70% 20%, color-mix(in oklab, var(--accent) 40%, transparent), transparent 70%),
    linear-gradient(135deg, #1a2740 0%, #0e1726 100%);
  display: grid; place-items: center;
  color: color-mix(in oklab, var(--accent) 70%, #e9edfb);
}
.ide-pv-product-img img {
  width: 100%; height: 100%;
  object-fit: cover; display: block;
}
.ide-pv-product-ph {
  font-family: var(--font-display); font-weight: 800;
  font-size: 34px; letter-spacing: -.02em;
  color: color-mix(in oklab, var(--accent) 75%, #e9edfb);
  opacity: .9;
}
.ide-pv-product-meta {
  display:flex; align-items:center; justify-content: space-between;
  gap: 8px; padding: 9px 11px;
}
.ide-pv-product-name {
  font-family: var(--font-display); font-weight: 600;
  font-size: 12px; color: var(--text);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.ide-pv-product-price {
  font-family: var(--font-display); font-weight: 700;
  font-size: 13.5px; color: var(--accent);
}

.ide-pv-toast {
  position: absolute; right: 14px; bottom: 14px;
  padding: 6px 10px; border-radius: 8px;
  background: color-mix(in oklab, var(--accent) 14%, var(--bg-2));
  border: 1px solid var(--accent-line); color: var(--accent);
  font-family: var(--font-mono); font-size: 11px; letter-spacing: .02em;
  animation: ideToastIn .35s var(--ease) both;
}
@keyframes ideToastIn { from { opacity:0; transform: translateY(6px);} to { opacity:1; transform:none; } }

/* Floating editor — overlaid on the browser's bottom-left corner */
.ide-editor {
  position: absolute;
  bottom: -18px;    /* hangs slightly off the bottom edge */
  left: -28px;      /* hangs slightly off the left edge */
  width: 44%;
  max-width: 360px;
  border: 1px solid var(--line-2);
  border-radius: 12px;
  background: #070b14;
  overflow: hidden;
  box-shadow: 0 30px 70px -22px rgba(0,0,0,.9), 0 0 0 1px rgba(255,255,255,.05);
  transform: rotateY(3deg) rotateX(1deg);
  transition: transform .5s var(--ease);
  z-index: 2;
}
.ide-stage:hover .ide-editor { transform: rotateY(0) rotateX(0); }
.ide-editor .ide-bar { background: #0b1224; }
.ide-tabs { display:flex; gap:0; flex:1; }
.ide-tab { padding: 4px 10px; font-family: var(--font-mono); font-size: 10.5px; color: var(--muted-2); letter-spacing: .04em; border-radius: 5px; }
.ide-tab.on { color: var(--text); background: rgba(255,255,255,.05); box-shadow: inset 0 -2px 0 var(--accent); }

.ide-code {
  padding: 8px 12px 12px 4px;
  font-family: var(--font-mono); font-size: 11px; line-height: 1.65;
  max-height: 260px; overflow: hidden;
  scrollbar-width: none;
}
.ide-code::-webkit-scrollbar { display: none; }
.ide-line { display:grid; grid-template-columns: 22px 1fr; gap: 8px; animation: ideLineIn .24s var(--ease) both; }
@keyframes ideLineIn { from { opacity:0; transform: translateX(-6px);} to { opacity:1; transform: none; } }
.ide-num { color: rgba(255,255,255,.2); text-align:right; font-variant-numeric: tabular-nums; }
.ide-toks { color: #e9edfb; white-space: pre; overflow:hidden; text-overflow: clip; }
.tk-cmt { color: rgba(255,255,255,.32); font-style: italic; }
.tk-kw  { color: #c792ea; }
.tk-fn  { color: #82aaff; }
.tk-str { color: var(--accent); }
.tk-tag { color: #ff8a65; }
.tk-num { color: #ffcb6b; }
.tk-pn  { color: rgba(255,255,255,.55); }
.ide-caret { display:inline-block; width:7px; height:13px; background: var(--accent); vertical-align:-2px; animation: cur 1s steps(2) infinite; }

/* "Make it yours" — once typing finishes, a card floats centered over the
   (dimmed) code, so the editor keeps its full size. */
.ide-editor-body { position: relative; }
.ide-prompt-overlay {
  position: absolute; inset: 0; z-index: 2;
  display: grid; place-items: center; padding: 12px;
  background: color-mix(in oklab, #070b14 70%, transparent);
  backdrop-filter: blur(2px); -webkit-backdrop-filter: blur(2px);
  animation: idePromptIn .35s var(--ease) both;
}
.ide-prompt {
  display: flex; flex-direction: column; gap: 10px;
  width: 100%; max-width: 250px; padding: 15px;
  background: #0b1224; border: 1px solid var(--line-2); border-radius: 11px;
  box-shadow: 0 22px 50px -22px rgba(0,0,0,.85);
}
@keyframes idePromptIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.ide-prompt-head { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted-2); margin-bottom: 2px; }
.ide-prompt-input {
  width: 100%; height: 38px; padding: 0 12px;
  border-radius: 8px; border: 1px solid var(--line-2);
  background: #0b1224; color: #e9edfb;
  font-family: var(--font-body); font-size: 13px;
  outline: none; transition: border-color .2s, box-shadow .2s;
}
.ide-prompt-input::placeholder { color: rgba(233,237,251,.38); }
.ide-prompt-input:focus { border-color: var(--accent-line); box-shadow: 0 0 0 3px color-mix(in oklab, var(--accent) 16%, transparent); }
.ide-prompt-input:disabled { opacity: .55; }
.ide-prompt-btn {
  margin-top: 4px; height: 40px; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border-radius: 8px; border: 0;
  background: var(--accent); color: #06180f;
  font-family: var(--font-display); font-weight: 700; font-size: 13.5px; letter-spacing: .01em;
  transition: transform .18s var(--ease), box-shadow .25s, opacity .2s;
}
.ide-prompt-btn:hover:not(:disabled) { transform: translateY(-1px); box-shadow: 0 12px 26px -12px var(--glow); }
.ide-prompt-btn:disabled { opacity: .5; cursor: default; }
.ide-prompt-btn .arr { display: inline-flex; align-items: center; }
.ide-prompt-done { align-items: flex-start; gap: 6px; }
.ide-prompt-ok { display: inline-flex; align-items: center; gap: 6px; font-family: var(--font-mono); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--accent); }
.ide-prompt-brand { font-family: var(--font-display); font-weight: 800; font-size: 22px; letter-spacing: -.02em; color: #e9edfb; line-height: 1.1; word-break: break-word; }
.ide-prompt-meta { font-family: var(--font-mono); font-size: 11px; color: var(--muted); }
.ide-prompt-reset {
  margin-top: 8px; padding: 7px 12px; cursor: pointer;
  border-radius: 7px; border: 1px solid var(--line-2); background: transparent;
  color: var(--muted); font-family: var(--font-body); font-weight: 600; font-size: 12px;
  transition: color .2s, border-color .2s;
}
.ide-prompt-reset:hover { color: var(--text); border-color: var(--accent-line); }
.ide-pv-rebuild {
  position: absolute; inset: 0; z-index: 3;
  display: grid; place-items: center;
  background: color-mix(in oklab, var(--surface) 62%, transparent);
  backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px);
  animation: ideToastIn .25s var(--ease) both; overflow: hidden;
}
.ide-pv-rebuild::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(100deg, transparent 30%, color-mix(in oklab, var(--accent) 20%, transparent) 50%, transparent 70%);
  transform: translateX(-100%); animation: ideShimmer 1.1s var(--ease) infinite;
}
@keyframes ideShimmer { to { transform: translateX(100%); } }
.ide-pv-rebuild-txt { position: relative; z-index: 1; font-family: var(--font-mono); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); }

@media (max-width: 980px) {
  .ide-stage { min-height: 0; perspective: none; padding-bottom: 0; }
  .ide-browser { width: 100%; margin-left: 0; transform: none; }
  .ide-editor { position: static; width: 100%; max-width: none; transform: none; margin-top: 14px; bottom: auto; left: auto; }
  .ide-pv { min-height: 380px; }

  /* mobile hero order: code block → title → paragraph → browser → CTA.
     hero-copy and ide-stage are flattened (display:contents) so their children
     all become direct items of .hero-row and can be reordered with `order`. */
  .hero-split .hero-row { display: flex; flex-direction: column; gap: 0; align-items: stretch; }
  .hero-split .hero-copy, .hero-split .ide-stage { display: contents; }
  .hero-split .ide-editor  { order: 1; margin: 0; }
  .hero-split .hero-h1     { order: 2; margin-top: 36px; text-align: center; }
  .hero-split .hero-sub    { order: 3; margin-top: 16px; text-align: center; margin-inline: auto; }
  .hero-split .ide-browser { order: 4; margin-top: 36px; }
  .hero-split .hero-cta    { order: 5; margin-top: 28px; }
  /* shorter code block on mobile */
  .hero-split .ide-code { max-height: 230px; }
  /* the "build ✓" toast collides with the product grid on a narrow preview — hide it */
  .ide-pv-toast { display: none; }
}

/* ============================================================
   MARQUEE
   ============================================================ */
.marquee { position: relative; overflow: hidden; border-block: 1px solid var(--line); padding-block: 26px; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee-track { display: flex; gap: 56px; width: max-content; animation: marq var(--marquee-dur, 38s) linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-item { display: inline-flex; align-items: center; gap: 14px; font-family: var(--font-display); font-weight: 600; font-size: 22px; color: var(--muted); white-space: nowrap; }
.marquee-item .s { color: var(--accent); font-size: 14px; }
@keyframes marq { to { transform: translateX(-50%); } }

/* ============================================================
   CAPABILITIES STRIP
   ============================================================ */
.caps { padding-block: clamp(34px, 5vw, 56px); border-bottom: 1px solid var(--line); }
.caps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(16px, 3vw, 36px);
  align-items: end;
}
.caps-item {
  display: flex; flex-direction: column; gap: 6px;
  padding-left: 18px;
  border-left: 1px solid var(--line-2);
}
.caps-n {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(22px, 2.6vw, 30px);
  letter-spacing: -.01em;
  color: var(--text);
}
.caps-l {
  color: var(--muted);
  font-size: 14px;
}
.caps-item:first-child { border-left-color: var(--accent); }
@media (max-width: 720px) {
  .caps-grid { grid-template-columns: 1fr; gap: 18px; }
}

/* ============================================================
   SERVICES
   ============================================================ */
/* --- taller header with illustration in front --- */
.section-svc { padding-block: clamp(56px, 8vw, 100px); }
.svc-hero {
  position: relative;
  display: grid;
  grid-template-columns: 1.18fr 0.82fr;   /* SVG (left) bigger, text (right) contained */
  gap: clamp(24px, 4vw, 64px);
  align-items: center;
  min-height: clamp(400px, 46vw, 580px);
  margin-bottom: clamp(44px, 6vw, 86px);
}
.svc-hero-copy { max-width: 440px; justify-self: start; }
.svc-hero-copy .title { font-size: clamp(32px, 4.6vw, 56px); line-height: 1.03; margin-top: 18px; }
.svc-hero-copy .lead { color: var(--muted); font-size: clamp(16px, 1.8vw, 18px); margin-top: 22px; max-width: 420px; line-height: 1.6; }
.svc-hero-art { position: relative; align-self: stretch; display: grid; place-items: center; min-height: 340px; }
.svc-hero-art .art-glow {
  position: absolute; inset: -12% -8%; z-index: 0; pointer-events: none;
  background:
    radial-gradient(46% 48% at 50% 46%, rgba(34,197,94,.20), transparent 70%),
    radial-gradient(62% 62% at 50% 52%, var(--accent-soft), transparent 72%);
  filter: blur(8px);
}
.svc-hero-art .art-grid {
  position: absolute; inset: 0; z-index: 0; pointer-events: none; opacity: .5;
  background-image: radial-gradient(var(--line-2) 1px, transparent 1.4px);
  background-size: 22px 22px;
  -webkit-mask-image: radial-gradient(58% 58% at 50% 50%, #000, transparent 76%);
          mask-image: radial-gradient(58% 58% at 50% 50%, #000, transparent 76%);
}
.svc-hero-art img {
  position: relative; z-index: 1;
  width: 100%; max-width: 660px; height: auto;   /* bigger */
  margin-right: clamp(-60px, -4vw, 0px);          /* overlaps into the text column → sits in front */
  filter: drop-shadow(0 34px 56px rgba(0,0,0,.6));
}
@media (max-width: 900px){
  .svc-hero { grid-template-columns: 1fr; min-height: 0; }
  .svc-hero-art { min-height: 0; order: -1; }
  .svc-hero-art img { margin: 0 auto 8px; max-width: 460px; }
  .svc-hero-copy { max-width: 100%; }
}

/* --- service scroll: pinned rotating blob + synced detail panels ---
   Default styling below is the FALLBACK (stacked cards) for no-JS / mobile /
   reduced-motion. The .is-pinned class (added by JS when enhancing) switches to
   the pinned blob layout. */
.svc-scroll { max-width: var(--maxw); margin-inline: auto; padding-inline: var(--pad); }
.svc-scroll.is-pinned { max-width: none; margin-inline: 0; padding-inline: 0; }
.svc-panels { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 1023px){ .svc-panels { grid-template-columns: 1fr; max-width: 540px; margin-inline: auto; } }

/* blob runs a touch smaller on small laptops (1024–1299) */
@media (min-width: 1024px) and (max-width: 1299px) {
  .svc-blob svg { width: 760px; height: 760px; }
  .svc-ic-badge { width: 100px; height: 100px; border-radius: 30px; }
  .svc-scroll.is-pinned .svc-panels { width: min(560px, 48vw); }
  .svc-scroll.is-pinned .svc-blob-wrap { right: 120px; top: 244px; }
}
.svc-steps { display: none; }
.svc-panel {
  position: relative; border: 1px solid var(--line-2); border-radius: 20px;
  background: linear-gradient(180deg, rgba(255,255,255,.045), rgba(255,255,255,.018));
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  padding: 30px 28px 32px;
}
.svc-panel .svc-no { font-family: var(--font-mono); font-size: 12px; color: var(--svc-accent, var(--accent)); letter-spacing: .1em; }
.svc-panel .ic { width: 50px; height: 50px; border-radius: 14px; border: 1px solid var(--line-2); display: grid; place-items: center; margin: 18px 0; background: var(--bg-2); color: var(--svc-accent, var(--accent)); }
.svc-panel h3 { font-family: var(--font-display); font-size: clamp(24px, 3vw, 34px); font-weight: 600; letter-spacing: -.01em; }
.svc-panel p { color: var(--muted); margin-top: 12px; font-size: clamp(15px, 1.7vw, 17px); line-height: 1.6; max-width: 460px; }
.svc-panel ul { list-style: none; margin-top: 20px; display: flex; flex-direction: column; gap: 10px; }
.svc-panel li { display: flex; gap: 12px; align-items: center; font-size: 15px; color: var(--text); }
.svc-panel li::before { content:""; width: 6px; height: 6px; border-radius: 2px; background: var(--svc-accent, var(--accent)); flex: none; transform: rotate(45deg); }
.svc-panel .btn { margin-top: 26px; }
.svc-blob-wrap { display: none; }

/* enhanced: pinned stage, rotating blob on the right, panel swaps on the left */
.svc-scroll.is-pinned .svc-stage { height: 100vh; clip-path: inset(-1600px 0 0 0); display: flex; align-items: flex-end; }
.svc-scroll.is-pinned .svc-panels {
  position: relative; display: block;
  width: min(720px, 52vw);
  margin-left: calc(max((100vw - var(--maxw)) / 2, 0px) + var(--pad));
  margin-bottom: clamp(28px, 5vh, 60px);  /* sit lower so the blob owns the top-right corner */
  min-height: 470px; z-index: 2;
}
.svc-scroll.is-pinned .svc-steps { display: flex; gap: 9px; margin-bottom: 26px; }
.svc-dot { width: 26px; height: 4px; border-radius: 2px; background: var(--line-2); transition: background .3s, width .3s; }
.svc-dot.on { width: 40px; background: var(--svc-accent, var(--accent)); }
.svc-scroll.is-pinned .svc-panel { position: absolute; top: 56px; left: 0; right: 0; border: 0; background: none; backdrop-filter: none; padding: 0; }
.svc-scroll.is-pinned .svc-panel .ic { width: 58px; height: 58px; border-radius: 16px; background: rgba(255,255,255,.03); }
.svc-scroll.is-pinned .svc-panel h3 { font-size: clamp(40px, 5.4vw, 74px); line-height: 1.02; }
.svc-scroll.is-pinned .svc-panel p { font-size: clamp(17px, 1.7vw, 22px); max-width: 600px; margin-top: 16px; }
.svc-scroll.is-pinned .svc-panel ul { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 32px; margin-top: 28px; max-width: 600px; }
.svc-scroll.is-pinned .svc-panel li { font-size: clamp(15px, 1.25vw, 17.5px); }
.svc-scroll.is-pinned .svc-blob-wrap { display: block; position: absolute; top: 268px; right: 110px; width: 0; height: 0; z-index: 1; }
.svc-blob { position: absolute; left: 0; top: 0; will-change: transform; }
.svc-blob svg { display: block; width: 900px; height: 900px; filter: drop-shadow(0 40px 90px rgba(0,0,0,.5)); }
.svc-blob-path { opacity: .92; }
.svc-blob-hi { filter: blur(7px); mix-blend-mode: screen; } /* glassy sheen */
.svc-blob::after { /* soft accent glow behind the blob */
  content:""; position: absolute; left: 50%; top: 50%; width: 900px; height: 900px; transform: translate(-50%,-50%);
  background: radial-gradient(circle at 44% 42%, var(--svc-accent, #34d399), transparent 60%);
  opacity: .28; filter: blur(46px); z-index: -1; pointer-events: none;
}
.svc-wheel { position: absolute; left: 0; top: 0; }
.svc-ic { position: absolute; left: 0; top: 0; }
.svc-ic-badge {
  display: grid; place-items: center; width: 118px; height: 118px; border-radius: 34px;
  background: rgba(12,14,18,.74); border: 1.5px solid var(--svc-accent, var(--accent)); color: #fff;
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  box-shadow: 0 0 0 7px color-mix(in oklab, var(--svc-accent, #34d399) 18%, transparent), 0 26px 50px -16px rgba(0,0,0,.9);
}

/* ============================================================
   STATS
   ============================================================ */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
@media (max-width: 760px){ .stats { grid-template-columns: repeat(2, 1fr); } }
.stat { border: 1px solid var(--line-2); border-radius: var(--radius); padding: 30px 26px; background: rgba(255, 255, 255, 0.03); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); }
.stat .v { font-family: var(--font-display); font-weight: 600; font-size: clamp(38px, 5vw, 52px); letter-spacing: -.02em; line-height: 1; }
.stat .v .u { color: var(--accent); }
.stat .k { color: var(--muted); margin-top: 12px; font-size: 14.5px; }

/* ============================================================
   PROCESS
   ============================================================ */
.proc-layout { display: grid; grid-template-columns: 1.06fr 0.94fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
@media (max-width: 920px){ .proc-layout { grid-template-columns: 1fr; } }
.proc-head { margin-bottom: clamp(22px, 3vw, 34px); max-width: 560px; }
.proc { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 460px){ .proc { grid-template-columns: 1fr; } }
.step {
  padding: 24px 22px 26px; border: 1px solid var(--line-2); border-radius: 16px;
  background: rgba(255,255,255,.03); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  transition: transform .3s var(--ease), border-color .3s;
}
.step:hover { transform: translateY(-4px); border-color: var(--accent-line); }
.step .no { font-family: var(--font-mono); font-size: 12px; color: var(--accent); letter-spacing: .1em; }
.step h4 { font-family: var(--font-display); font-size: 19px; font-weight: 600; margin-top: 12px; }
.step p { color: var(--muted); font-size: 14px; line-height: 1.5; margin-top: 8px; }
.proc-art { position: relative; display: flex; align-items: flex-end; justify-content: center; gap: 1%; }
.proc-art::before {
  content:""; position: absolute; inset: 8% 2%; z-index: 0; pointer-events: none;
  background: radial-gradient(52% 52% at 60% 46%, color-mix(in oklab, var(--accent) 20%, transparent), transparent 70%);
  filter: blur(44px);
}
/* Person illustration (just the figure from the original art) stands beside the line */
.proc-girl { position: relative; z-index: 1; display: block; width: 38%; max-width: 150px; height: auto; margin-bottom: 6%; }
/* Animated process illustration */
.proc-svg { position: relative; z-index: 1; display: block; width: 60%; max-width: 250px; height: auto; overflow: visible; }
.proc-track { stroke: var(--line-2); stroke-width: 2; opacity: .12; fill: none; }
.proc-glow { stroke: var(--accent); stroke-width: 8; opacity: .45; fill: none; stroke-linecap: round; filter: url(#procGlow); }
.proc-line { stroke: url(#procGrad); stroke-width: 3; fill: none; stroke-linecap: round; }
.proc-node .proc-halo { fill: var(--accent); opacity: 0; filter: url(#procGlow); }
.proc-node .proc-ring { fill: var(--surface); stroke: var(--line-2); stroke-width: 2; }
.proc-node .proc-ic { stroke: var(--muted-2); stroke-width: 2; fill: none; stroke-linecap: round; stroke-linejoin: round; }
/* fallback / reduced-motion: fully lit */
.proc-node.lit { opacity: 1; }
.proc-node.lit .proc-halo { opacity: .85; }
.proc-node.lit .proc-ring { stroke: var(--accent); }
.proc-node.lit .proc-ic { stroke: #fff; }
@media (max-width: 920px){ .proc-art { order: -1; max-width: 520px; margin-inline: auto; } }

/* ============================================================
   WORK
   ============================================================ */
.work-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 18px; }
@media (max-width: 880px){ .work-grid { grid-template-columns: 1fr; } }
.work {
  position: relative; border: 1px solid var(--line-2); border-radius: var(--radius); overflow: hidden;
  background: rgba(255, 255, 255, 0.03); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); transition: transform .3s var(--ease), border-color .3s;
  display: flex; flex-direction: column;
}
.work:hover { transform: translateY(-5px); border-color: var(--accent-line); }
.ph {
  position: relative; aspect-ratio: 16/10; overflow: hidden;
  background:
    repeating-linear-gradient(135deg, var(--surface-2) 0 11px, var(--bg-2) 11px 22px);
}
.work.tall .ph { aspect-ratio: auto; flex: 1 1 auto; min-height: 340px; }
.work.tall .work-info { flex: 0 0 auto; }
a.ph { display: block; }
.ph img { width: 100%; height: 100%; object-fit: cover; object-position: top center; display: block; transition: transform .55s var(--ease); }
.work:hover .ph img { transform: scale(1.045); }
.ph-go {
  position: absolute; top: 12px; right: 12px; width: 36px; height: 36px; border-radius: 50%;
  display: grid; place-items: center; color: #fff;
  background: color-mix(in oklab, var(--bg) 55%, transparent); border: 1px solid var(--line-2);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  opacity: 0; transform: translateY(-5px) rotate(-12deg); transition: opacity .3s, transform .3s;
}
a.ph:hover .ph-go { opacity: 1; transform: translateY(0) rotate(0); }
/* live, scrollable site embed */
.ph-embed { position: relative; background: #fff; }
.ph-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; display: block; }
.ph-visit {
  position: absolute; top: 12px; right: 12px; z-index: 3;
  display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 999px;
  font-size: 12.5px; font-weight: 600; color: #fff; text-decoration: none;
  background: color-mix(in oklab, var(--bg) 48%, transparent); border: 1px solid var(--line-2);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); transition: background .25s, color .25s;
}
.ph-visit:hover { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.ph .ph-tag {
  position: absolute; left: 16px; bottom: 16px;
  font-family: var(--font-mono); font-size: 11px; letter-spacing: .08em; color: var(--muted);
  background: color-mix(in oklab, var(--bg) 70%, transparent); border: 1px solid var(--line);
  padding: 6px 11px; border-radius: 7px; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.work-info { padding: 22px 24px 26px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.work-info .row { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.work-info h3 { font-family: var(--font-display); font-size: 21px; font-weight: 600; }
.work-info .yr { font-family: var(--font-mono); font-size: 12px; color: var(--muted-2); }
.work-info p { color: var(--muted); font-size: 14.5px; }
.work-info .chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.chip { font-family: var(--font-mono); font-size: 11px; letter-spacing: .06em; color: var(--muted); border: 1px solid var(--line); padding: 5px 10px; border-radius: 999px; }
.work-note { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap;
  border: 1px dashed var(--line-2); border-radius: var(--radius); padding: 24px 28px; background: rgba(255, 255, 255, 0.02); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.work-note p { color: var(--muted); font-size: 15.5px; }
.work-note b { color: var(--text); font-weight: 600; }

/* ============================================================
   PRICING
   ============================================================ */
/* 3D fanned stack of green cards with a wave foot (reference style) */
.price-grid { display: flex; justify-content: center; align-items: center; gap: 0; padding: 36px 0 24px; }
.plan {
  position: relative; flex: none; width: clamp(264px, 27vw, 344px); min-height: 452px;
  border-radius: 26px; overflow: hidden; color: #fff;
  background: linear-gradient(165deg, #25b673, #128a52);
  box-shadow: 0 34px 60px -32px rgba(0,0,0,.82);
  transition: transform .35s var(--ease), box-shadow .35s;
}
.plan:nth-child(1) { transform: translateX(58px) translateY(28px) scale(.9) !important; z-index: 1; background: linear-gradient(165deg, #1f9c5e, #0e6a3d); border-top-right-radius: 0; border-bottom-right-radius: 0; }
.plan:nth-child(3) { transform: translateX(-58px) translateY(28px) scale(.9) !important; z-index: 1; background: linear-gradient(165deg, #25b673, #11854f); border-top-left-radius: 0; border-bottom-left-radius: 0; }
.plan.feat { z-index: 3; min-height: 520px; color: #0d5b38; transform: translateY(-14px) scale(1.05) !important; background: linear-gradient(165deg, #62e8a8, #8cf0d6); box-shadow: 0 60px 104px -34px rgba(0,0,0,.92); }
/* the middle card's shadow falling onto the inner edges of the side cards */
.plan:not(.feat)::after { content:""; position:absolute; inset:0; z-index: 2; pointer-events:none; }
.plan:nth-child(1)::after { background: linear-gradient(to right, rgba(5,28,16,.06) 0%, rgba(5,28,16,.06) 52%, rgba(0,0,0,.32) 100%); }
.plan:nth-child(3)::after { background: linear-gradient(to left,  rgba(5,28,16,.06) 0%, rgba(5,28,16,.06) 52%, rgba(0,0,0,.32) 100%); }
@media (max-width: 880px){
  .price-grid { flex-direction: column; gap: 24px; }
  .plan, .plan:nth-child(1), .plan:nth-child(3), .plan.feat { transform: none !important; width: min(340px, 90vw); border-radius: 26px; }
  .plan:not(.feat)::after { display: none; }
}

.plan-c { position: relative; z-index: 3; padding: 32px 26px; display: flex; flex-direction: column; height: 100%; }
/* side cards overlap under the middle — keep their content in the visible outer half */
.plan:nth-child(1) .plan-c { padding-right: 86px; }
.plan:nth-child(3) .plan-c { padding-left: 86px; }
@media (max-width: 880px){ .plan:nth-child(1) .plan-c, .plan:nth-child(3) .plan-c { padding-left: 26px; padding-right: 26px; } }
.plan-name { font-family: var(--font-display); font-weight: 700; font-size: 21px; letter-spacing: .05em; text-transform: uppercase; text-align: center; }
.plan-name span { display: block; font-family: var(--font-mono); font-size: 9px; letter-spacing: .22em; opacity: .65; margin-top: 7px; font-weight: 500; }
/* One size for every price. Numbers/words wrap only at spaces ("LKR" / "150,000",
   "Custom" / "packages") and never break mid-token. Sized to fit the narrow side cards. */
.plan-price { font-family: var(--font-display); font-weight: 800; font-size: clamp(34px, 3.4vw, 44px); letter-spacing: -.02em; text-align: center; margin: 22px 0 4px; line-height: 1.08; overflow-wrap: normal; word-break: keep-all; hyphens: none; }
.plan-price .per { display: block; font-size: 12px; font-weight: 500; opacity: .72; letter-spacing: .04em; margin-top: 9px; font-family: var(--font-body); }
.plan ul { list-style: none; margin: 14px 0 0; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.plan li { font-size: 12.5px; line-height: 1.45; opacity: .92; padding-left: 13px; position: relative; }
.plan li::before { content: "–"; position: absolute; left: 0; opacity: .65; }
.plan-btn {
  margin: 18px auto 0; display: inline-flex; align-items: center; justify-content: center;
  padding: 11px 26px; border-radius: 999px; font-weight: 600; font-size: 13px;
  background: rgba(255,255,255,.94); color: #0d6b42; box-shadow: 0 12px 24px -8px rgba(0,0,0,.55);
  transition: transform .2s;
}
.plan.feat .plan-btn { background: #0d5b38; color: #fff; }
.plan-btn:hover { transform: translateY(-2px); }

.plan-wave { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: 92px; z-index: 1; }
.plan-wave path { fill: rgba(255,255,255,.13); }
.plan-wave path.w2 { fill: rgba(255,255,255,.09); }
.plan.feat .plan-wave path { fill: rgba(13,91,56,.10); }
.plan.feat .plan-wave path.w2 { fill: rgba(13,91,56,.07); }

/* ============================================================
   FAQ
   ============================================================ */
.faq { border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-q { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 26px 4px; background: transparent; border: 0; text-align: left; color: var(--text); font-family: var(--font-display); font-weight: 600; font-size: clamp(18px, 2.4vw, 23px); letter-spacing: -.01em; transition: color .2s; }
.faq-q:hover { color: var(--accent); }
.faq-ic { flex: none; width: 30px; height: 30px; border: 1px solid var(--line-2); border-radius: 8px; display: grid; place-items: center; position: relative; transition: border-color .2s, background .2s; }
.faq-q:hover .faq-ic { border-color: var(--accent); }
.faq-ic::before, .faq-ic::after { content:""; position:absolute; background: currentColor; border-radius: 2px; }
.faq-ic::before { width: 13px; height: 2px; }
.faq-ic::after  { width: 2px; height: 13px; transition: transform .3s var(--ease); }
.faq-item[data-open="1"] .faq-ic::after { transform: rotate(90deg); opacity: 0; }
.faq-item[data-open="1"] .faq-ic { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.faq-a { overflow: hidden; max-height: 0; }
.faq-item[data-open="1"] .faq-a { max-height: 900px; }
.faq-a-inner { padding: 0 4px 28px; color: var(--muted); font-size: 16px; max-width: 760px; line-height: 1.65; }

/* ============================================================
   CONTACT / CTA
   ============================================================ */
.cta { position: relative; overflow: clip; }
.cta-card { position: relative; border: 1px solid var(--line-2); border-radius: 24px; padding: clamp(36px, 6vw, 72px); overflow: hidden;
  background: rgba(255, 255, 255, 0.03); backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px); }
.cta-card .glow { position: absolute; inset: 0; background: radial-gradient(60% 80% at 80% 10%, var(--accent-soft), transparent 60%); pointer-events: none; }
.cta-grid { position: relative; display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(32px, 6vw, 64px); align-items: start; }
@media (max-width: 880px){ .cta-grid { grid-template-columns: 1fr; } }
.cta h2 { font-family: var(--font-display); font-weight: 600; font-size: clamp(34px, 5vw, 58px); letter-spacing: -.02em; line-height: 1; }
.cta .sub { color: var(--muted); margin-top: 20px; font-size: 18px; max-width: 420px; }
.cta-contact { margin-top: 32px; display: flex; flex-direction: column; gap: 14px; }
.cta-contact a { display: inline-flex; align-items: center; gap: 12px; font-family: var(--font-mono); font-size: 14px; color: var(--text); transition: color .2s; }
.cta-contact a:hover { color: var(--accent); }
.cta-contact a .ic { width: 34px; height: 34px; border-radius: 9px; border: 1px solid var(--line); display: grid; place-items: center; color: var(--accent); }

/* form */
.form { display: flex; flex-direction: column; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field label { font-family: var(--font-mono); font-size: 11.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.field input, .field textarea, .field select {
  width: 100%; background: var(--bg-2); border: 1px solid var(--line-2); border-radius: 11px;
  color: var(--text); font-family: var(--font-body); font-size: 15.5px; padding: 14px 16px; outline: none;
  transition: border-color .2s, box-shadow .2s; resize: none;
}
.field textarea { min-height: 104px; }
.field input::placeholder, .field textarea::placeholder { color: var(--muted-2); }
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.field.invalid input, .field.invalid textarea { border-color: #ff6b6b; }
.field .err { color: #ff8585; font-size: 12.5px; font-family: var(--font-mono); display: none; }
.field.invalid .err { display: block; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 480px){ .form-row { grid-template-columns: 1fr; } }
.form .btn { margin-top: 6px; justify-content: center; height: 54px; }
.form .btn:disabled { opacity: .6; cursor: default; }
.form-senderr { color: #ff8585; font-size: 13px; font-family: var(--font-mono); text-align: center; margin-top: -4px; }
.form-ok { border: 1px solid var(--accent-line); background: var(--accent-soft); border-radius: 14px; padding: 28px; text-align: center; }
.form-ok .big { font-family: var(--font-display); font-size: 24px; font-weight: 600; }
.form-ok p { color: var(--muted); margin-top: 8px; }
.form-ok .check { width: 52px; height: 52px; border-radius: 50%; background: var(--accent); display: grid; place-items: center; margin: 0 auto 16px; color: var(--accent-ink); }

/* ============================================================
   FOOTER
   ============================================================ */
.footer { border-top: 1px solid var(--line); padding-block: 48px; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.footer .links { display: flex; gap: 26px; flex-wrap: wrap; }
.footer .links a { color: var(--muted); font-size: 14px; transition: color .2s; }
.footer .links a:hover { color: var(--text); }
.footer .cr { color: var(--muted-2); font-size: 13px; font-family: var(--font-mono); }

/* utility */
.eyebrow-row { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }

/* ============================================================
   MOBILE OPTIMISATION
   ============================================================ */
/* clip (not hidden) for horizontal containment: `hidden` forces the vertical axis
   to `auto`, turning body into a scroll container that breaks position:sticky. */
html, body { overflow-x: clip; }
*, *::before, *::after { min-width: 0; }
/* on tablet/phone, stop any wide element (IDE mock, embeds) from stretching the
   page so text/nav/buttons lay out to the real viewport width */
/* NOT `main` and NOT `.section-svc` — those are ancestors of the sticky blob stage
   and any overflow on them breaks position:sticky. Other sections still clip. */
@media (max-width: 1023px) { .section:not(.section-svc), .marquee { overflow-x: clip; } }

@media (max-width: 760px) {
  /* section vertical rhythm: ~40–56px (mobile standard) */
  /* sections: roomy, consistent 64px (8-pt) top & bottom for clear separation */
  .section, .section-svc { padding-block: 64px; }
  /* extra breathing room between the hero CTA and the What-we-do illustration */
  .section-svc { padding-top: 92px; }
  /* keep the site's standard gutter (~22–24px) — don't crowd the edges */
  :root { --pad: clamp(22px, 6vw, 104px); }
  /* nav */
  .nav-inner { height: 58px; gap: 10px; }
  .brand { font-size: 17px; }
  .nav-cta .btn { padding: 10px 14px; font-size: 13px; }
  /* hero: clear the fixed nav (58px) + a small gap before the first element */
  .hero { padding-top: 88px; }
  .hero h1, .hero-h1 { font-size: clamp(30px, 8.5vw, 40px); line-height: 1.12; }
  .hero-h1 br { display: none; }
  .hero-sub { font-size: 16px; line-height: 1.55; margin-top: 20px; }
  .hero-cta { gap: 16px; margin-top: 32px; }
  .hero-cta .btn { flex: 1 1 auto; justify-content: center; min-height: 48px; }
  /* section heads — proximity hierarchy: eyebrow hugs title (8), lead close (16),
     then a clear, larger gap (40) to the content/card */
  .section-head { margin-bottom: 48px; }
  .section-head .title, .proc-head .title, .svc-hero-copy .title { font-size: clamp(26px, 7vw, 34px); line-height: 1.14; margin-top: 16px; }
  .svc-hero-copy .title { font-size: clamp(28px, 7.5vw, 36px); line-height: 1.1; }
  .section-head .lead, .svc-hero-copy .lead, .proc-head .lead { font-size: 16px; line-height: 1.6; margin-top: 24px; }
  .kicker { font-size: 12px; }
  /* what-we-do header — roomier gap between the illustration and the eyebrow/title */
  .svc-hero { gap: 44px; min-height: 0; margin-bottom: 32px; }
  /* gaps: 24 (8-pt) */
  .work-grid, .proc, .stats, .svc-panels { gap: 24px; }
  /* cards / panels: 28px inner padding (roomier) */
  .svc-panel { padding: 28px; }
  .svc-panel h3 { font-size: 22px; }
  .work-info { padding: 28px; }
  .work.tall .ph { min-height: 232px; }
  .proc-art { max-width: 360px; padding: 0; }
  .step { padding: 28px; }
  /* pricing */
  .price-grid { padding: 8px 0; gap: 24px; }
  .plan-name { font-size: 19px; }
  .plan-price { font-size: clamp(32px, 9vw, 44px); }
  /* stats */
  .stat { padding: 28px; }
  .stat .v { font-size: clamp(34px, 9vw, 44px); }
  /* contact */
  .cta-card { padding: 28px 24px; }
  .cta-card, .cta-grid { gap: 24px; }
  /* tap targets >= 44px */
  .btn { min-height: 46px; }

  /* ---- inner content rhythm: ONE premium scale across every card below the blob ----
     micro-label -> heading 12-14 | heading -> body 10-14 | body -> list 20-22 |
     list row -> row 11-16 | block -> CTA 26 (the CTA gets the most air). Larger,
     more readable body/list fonts so nothing feels dense. */
  /* process steps */
  .step h4 { font-size: 20px; margin-top: 14px; }
  .step p  { font-size: 15px; line-height: 1.55; margin-top: 10px; }
  /* work cards */
  .work-info { gap: 14px; }
  .work-info h3 { font-size: 20px; }
  .work-info p  { font-size: 15px; line-height: 1.55; }
  .work-info .chips { margin-top: 6px; }
  /* stats */
  .stat .v { line-height: 1; }
  .stat .k { font-size: 15px; margin-top: 14px; }
  /* pricing */
  .plan-price { margin: 20px 0 4px; }
  .plan ul { margin-top: 22px; gap: 11px; }
  .plan li { font-size: 13.5px; line-height: 1.5; }
  .plan-btn { margin-top: 26px; padding: 13px 28px; font-size: 14px; }
  /* faq */
  .faq-q { font-size: 19px; padding: 24px 4px; }
  .faq-a-inner { font-size: 16px; line-height: 1.65; padding-bottom: 26px; }
}

@media (max-width: 420px) {
  .hero h1, .hero-h1 { font-size: clamp(28px, 9vw, 36px); }
  .nav-cta .btn .arr { display: none; }
}

/* ---- mobile/tablet blob: small, vertical (blob up top, detail card below) ---- */
/* MOBILE FREEZE = native CSS position:sticky (not ScrollTrigger's JS pin). Sticky is
   handled by the browser on the scroll thread, so it never jumps on enter/exit and
   doesn't require any JS scroll engine — the page keeps its native smooth scroll.
   svh height keeps the detail card fully on-screen; clip(0) stops the blob bleeding
   up over the section above it. */
.svc-scroll.is-pinned.is-mobile .svc-stage {
  position: sticky; top: 0; height: 100vh; height: 100svh;
  align-items: flex-end; justify-content: center; clip-path: inset(-260px 0 0 0);
}
.svc-scroll.is-pinned.is-mobile .svc-panels {
  position: relative; display: grid; grid-template-columns: 1fr; grid-template-rows: auto auto;
  width: 100%; max-width: 100%; margin: 0 auto; padding-inline: var(--pad);
  /* sit the card lower so there's more gap between the blob and the info card */
  margin-bottom: clamp(12px, 2.5vh, 24px); min-height: 0;
}
/* raise the freeze above the "Web comes first…" header so the header can't cover
   (cut off) the top of the blob during the scroll-in handoff */
.svc-scroll.is-pinned.is-mobile { position: relative; z-index: 3; }
.svc-scroll.is-pinned.is-mobile .svc-blob-wrap { top: 19%; right: 16%; }
.svc-scroll.is-pinned.is-mobile .svc-blob svg { width: 400px; height: 400px; }
.svc-scroll.is-pinned.is-mobile .svc-blob::after { width: 410px; height: 410px; }
.svc-scroll.is-pinned.is-mobile .svc-ic-badge { width: 58px; height: 58px; border-radius: 17px; }
.svc-scroll.is-pinned.is-mobile .svc-ic-badge svg { width: 26px; height: 26px; }
/* the panels are absolutely positioned (left:0/right:0 ignore parent padding),
   so the gutter must live on the panel itself to keep text off the edges */
/* mobile: panels share one grid cell (overlap for the cross-fade) but the cell
   auto-sizes to the tallest card, so the button never overflows and the steps
   indicator stays directly above the title */
.svc-scroll.is-pinned.is-mobile .svc-panel { position: static; grid-row: 2; grid-column: 1; top: auto; bottom: auto; padding-inline: 0; align-self: start; }
.svc-scroll.is-pinned.is-mobile .svc-panel h3 { font-size: clamp(28px, 8vw, 38px); }
.svc-scroll.is-pinned.is-mobile .svc-panel p { font-size: 16px; line-height: 1.6; }
/* premium inner rhythm (8-pt, internal <= external, CTA gets the most space):
   label -> title 12 | title -> lead 16 | lead -> bullets 32 | row -> row 18 | bullets -> CTA 40 */
.svc-scroll.is-pinned.is-mobile .svc-panel .svc-no { margin-bottom: 12px; }
.svc-scroll.is-pinned.is-mobile .svc-panel p { margin-top: 16px; }
.svc-scroll.is-pinned.is-mobile .svc-panel ul { margin-top: 32px; gap: 18px 28px; }
.svc-scroll.is-pinned.is-mobile .svc-panel li { font-size: 15px; line-height: 1.45; }
.svc-scroll.is-pinned.is-mobile .svc-panel .btn { margin-top: 40px; }
.svc-scroll.is-pinned.is-mobile .svc-steps { grid-row: 1; grid-column: 1; padding-inline: 0; margin-bottom: 22px; }
