/* ═══════════════════════════════════════════
   ZEROMONAD — Global Stylesheet
   Mobile-first · Flexbox layouts · 360px+
   ═══════════════════════════════════════════ */

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

/* ── Design tokens ── */
:root {
  --bg:       #06060a;
  --surface:  #0e0e14;
  --surface2: #131319;
  --border:   rgba(255,255,255,0.07);
  --border2:  rgba(255,255,255,0.13);
  --accent:   #b8ff57;
  --accent2:  #57b8ff;
  --accent3:  #ff7b57;
  --text:     #e8e8ee;
  --muted:    #6b6b7f;
  --muted2:   #9090a0;
  --font-display: 'Syne', sans-serif;
  --font-body:    'DM Mono', monospace;
  --font-serif:   'Instrument Serif', serif;
  --radius: 6px;
  --nav-h:  68px;
  /* Fluid page padding — grows with viewport */
  --pad: clamp(1rem, 5vw, 3rem);
}

/* ── Base ── */
html { scroll-behavior: smooth; overflow-x: hidden; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
/* Noise texture */
body::before {
  content: '';
  position: fixed; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.035'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 1000;
  opacity: .45;
}

::-webkit-scrollbar { width: 3px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--accent); border-radius: 2px; }

/* ── Nav ── */
nav {
  position: fixed; top: 0; left: 0; right: 0;
  height: var(--nav-h);
  z-index: 500;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--pad);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid var(--border);
  background: rgba(6,6,10,.82);
}
.logo {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1rem;
  letter-spacing: -.02em;
  color: var(--text);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: .5rem;
  flex-shrink: 0;
}
.logo span { color: var(--accent); }
.logo-mark { width: 26px; height: 26px; display: block; flex-shrink: 0; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
}
.nav-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 11px;
  letter-spacing: .08em;
  text-transform: uppercase;
  transition: color .2s;
}
.nav-links a:hover, .nav-links a.active { color: var(--text); }

.nav-cta {
  background: var(--accent);
  color: #000;
  padding: .45rem 1.1rem;
  border-radius: 4px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: .06em;
  text-decoration: none;
  text-transform: uppercase;
  transition: opacity .2s;
  white-space: nowrap;
}
.nav-cta:hover { opacity: .85; }

.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 6px;
  margin-right: -.4rem;
}
.nav-hamburger span {
  display: block;
  width: 22px; height: 1.5px;
  background: var(--text);
  transition: all .3s;
}

.mobile-menu {
  display: none;
  position: fixed;
  top: var(--nav-h); left: 0; right: 0;
  background: rgba(6,6,10,.97);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  padding: 1.5rem var(--pad);
  z-index: 490;
  flex-direction: column;
  gap: 1rem;
}
.mobile-menu a {
  color: var(--muted2);
  text-decoration: none;
  font-size: 14px;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: .4rem 0;
  border-bottom: 1px solid var(--border);
  transition: color .2s;
}
.mobile-menu a:last-child { border-bottom: none; }
.mobile-menu a:hover { color: var(--text); }
.mobile-menu.open { display: flex; }

/* ── Buttons ── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  background: var(--accent);
  color: #000;
  padding: .85rem 1.8rem;
  border-radius: 4px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 13px;
  text-decoration: none;
  letter-spacing: .03em;
  transition: opacity .2s, transform .2s;
  border: none;
  cursor: pointer;
  white-space: nowrap;
}
.btn-primary:hover { opacity: .85; transform: translateY(-2px); }

.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  border: 1px solid var(--border2);
  color: var(--text);
  padding: .85rem 1.8rem;
  border-radius: 4px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 13px;
  text-decoration: none;
  letter-spacing: .03em;
  transition: border-color .2s, transform .2s;
  white-space: nowrap;
}
.btn-ghost:hover { border-color: var(--accent); transform: translateY(-2px); }

/* ── Section ── */
.section {
  padding: clamp(3.5rem,8vw,7rem) var(--pad);
}
.section--surface {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.section-label {
  font-size: 11px;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: .8rem;
  display: flex;
  align-items: center;
  gap: .5rem;
}
.section-label::before { content: '//'; opacity: .4; }

.section-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.8rem, 5vw, 3.5rem);
  letter-spacing: -.03em;
  line-height: 1.05;
}
.section-title em {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  color: var(--accent);
}
.section-desc {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.8;
  max-width: 520px;
  margin-top: 1rem;
}

/* ── Tags ── */
.tag { font-size: 10px; letter-spacing: .06em; text-transform: uppercase; border: 1px solid var(--border); padding: .2rem .55rem; border-radius: 3px; color: var(--muted); white-space: nowrap; }
.tag--accent { border-color: var(--accent);  color: var(--accent); }
.tag--blue   { border-color: var(--accent2); color: var(--accent2); }
.tag--orange { border-color: var(--accent3); color: var(--accent3); }
.tags { display: flex; flex-wrap: wrap; gap: .4rem; }

/* ── Marquee ── */
.marquee-bar { border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); padding: 1rem 0; overflow: hidden; background: var(--surface); }
.marquee-track { display: flex; gap: 3rem; width: max-content; animation: marquee 30s linear infinite; }
.marquee-item { font-family: var(--font-display); font-weight: 700; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); white-space: nowrap; display: flex; align-items: center; gap: 1rem; }
.marquee-item::after { content: '◆'; font-size: 7px; color: var(--accent); }
@keyframes marquee { from { transform: translateX(0) } to { transform: translateX(-50%) } }

/* ── Glow / grid helpers ── */
.glow { position: absolute; border-radius: 50%; pointer-events: none; }
.glow-green  { background: radial-gradient(circle, rgba(184,255,87,.07) 0%, transparent 70%); }
.glow-blue   { background: radial-gradient(circle, rgba(87,184,255,.06) 0%, transparent 70%); }
.glow-orange { background: radial-gradient(circle, rgba(255,123,87,.06) 0%, transparent 70%); }
.grid-bg {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(184,255,87,.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(184,255,87,.03) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 40%, black, transparent);
  pointer-events: none;
}

/* ── Animations ── */
@keyframes fadeUp    { from { opacity: 0; transform: translateY(20px) } to { opacity: 1; transform: translateY(0) } }
@keyframes pulse     { 0%,100% { opacity: 1 } 50% { opacity: .25 } }
@keyframes glowPulse { 0%,100% { box-shadow: 0 0 0 0 rgba(87,184,255,0) } 50% { box-shadow: 0 0 20px 6px rgba(87,184,255,.12) } }
.fade-up   { animation: fadeUp .65s ease both; }
.fade-up-1 { animation: fadeUp .65s .1s ease both; }
.fade-up-2 { animation: fadeUp .65s .2s ease both; }
.fade-up-3 { animation: fadeUp .65s .3s ease both; }
.fade-up-4 { animation: fadeUp .65s .4s ease both; }

/* ── CTA Banner ── */
.cta-banner {
  padding: clamp(4rem,10vw,9rem) var(--pad);
  text-align: center;
  position: relative;
  overflow: hidden;
  background: var(--bg);
}
.cta-banner .section-label { justify-content: center; }
.cta-banner .section-title { font-size: clamp(2rem, 6vw, 4.5rem); margin: 1rem auto 1.2rem; max-width: 700px; }
.cta-banner .section-title em { display: block; }
.cta-banner p { color: var(--muted); max-width: 400px; margin: 0 auto 2.5rem; font-size: 13px; line-height: 1.8; }
.cta-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* ── Footer ── */
footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: clamp(2.5rem,6vw,4rem) var(--pad) 2rem;
}
/* Flex wrap — brand takes full row on narrow, cols wrap below */
.footer-top {
  display: flex;
  flex-wrap: wrap;
  gap: 2.5rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid var(--border);
}
.footer-brand { flex: 1 1 240px; }
.footer-brand p { color: var(--muted); font-size: 12px; line-height: 1.8; margin-top: .8rem; max-width: 260px; }
.footer-col { flex: 1 1 120px; }
.footer-col h4 { font-family: var(--font-display); font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 1rem; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: .6rem; }
.footer-col ul a { color: var(--muted); text-decoration: none; font-size: 12px; transition: color .2s; }
.footer-col ul a:hover { color: var(--accent); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 1.5rem;
  flex-wrap: wrap;
  gap: .8rem;
}
.footer-bottom p { color: var(--muted); font-size: 11px; }
.footer-socials { display: flex; gap: 1.5rem; }
.footer-socials a { color: var(--muted); font-size: 11px; text-decoration: none; letter-spacing: .05em; transition: color .2s; }
.footer-socials a:hover { color: var(--accent); }

/* ═══════════════════════════════════════
   HOME PAGE
   ═══════════════════════════════════════ */

/* Hero */
#hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: calc(var(--nav-h) + clamp(3rem,8vw,6rem)) clamp(1.5rem,6vw,4rem) clamp(3rem,8vw,5rem);
  position: relative;
  overflow: hidden;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  border: 1px solid var(--border);
  padding: .38rem 1rem;
  border-radius: 100px;
  font-size: 11px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: clamp(1rem,3vw,2rem);
  width: fit-content;
}
.hero-badge::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
  animation: pulse 2s infinite;
  flex-shrink: 0;
}
.hero-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.8rem, 10vw, 8.5rem);
  line-height: .94;
  letter-spacing: -.04em;
  max-width: 950px;
}
.hero-title em { font-family: var(--font-serif); font-style: italic; font-weight: 400; color: var(--accent); }
.hero-sub {
  max-width: 480px;
  color: var(--muted);
  font-size: clamp(12px, 2.5vw, 14px);
  line-height: 1.8;
  margin-top: clamp(1rem,3vw,1.8rem);
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .8rem;
  margin-top: clamp(1.5rem,4vw,2.5rem);
}
/* Stats — flex wrap, 2-up naturally on narrow */
.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem 3rem;
  margin-top: clamp(2.5rem,6vw,5rem);
  padding-top: clamp(1.5rem,4vw,2.5rem);
  border-top: 1px solid var(--border);
}
.hero-stats > div { flex: 1 1 80px; min-width: 0; }
.stat-num { font-family: var(--font-display); font-size: clamp(1.6rem,5vw,2.4rem); font-weight: 800; color: var(--text); line-height: 1; }
.stat-num span { color: var(--accent); }
.stat-label { font-size: 11px; color: var(--muted); letter-spacing: .05em; text-transform: uppercase; margin-top: .25rem; }

/* Services section header */
.services-header {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  align-items: flex-end;
  margin-bottom: clamp(2rem,5vw,4rem);
}
.services-header > * { flex: 1 1 260px; min-width: 0; }

/* Services grid — cards wrap to 1 col below ~580px */
.services-grid {
  display: flex;
  flex-wrap: wrap;
  background: var(--border);
  border: 1px solid var(--border);
  gap: 1px;
}
.service-card {
  flex: 1 1 260px;
  min-width: 0;
  background: var(--bg);
  padding: clamp(1.5rem,4vw,2.5rem);
  position: relative;
  overflow: hidden;
  transition: background .3s;
}
.service-card:hover { background: var(--surface); }
.service-card:hover .s-icon { color: var(--accent); transform: scale(1.1); }
.s-num { position: absolute; top: 1.2rem; right: 1.2rem; font-size: 10px; color: var(--border2); letter-spacing: .1em; }
.s-icon { font-size: 1.8rem; margin-bottom: 1.2rem; display: block; transition: color .3s, transform .3s; }
.s-name { font-family: var(--font-display); font-weight: 700; font-size: 1rem; letter-spacing: -.02em; margin-bottom: .6rem; }
.s-desc { color: var(--muted); font-size: 12px; line-height: 1.8; }
.s-tags { margin-top: 1.2rem; }

/* Process steps — wrap to 2, then 1 col */
.process-wrap { position: relative; }
.process-line { display: none; } /* decorative, skip on mobile */
.process-steps {
  display: flex;
  flex-wrap: wrap;
  gap: 2.5rem;
}
.step {
  flex: 1 1 160px;
  min-width: 0;
  text-align: center;
}
.step-circle {
  width: 44px; height: 44px;
  border: 1px solid var(--accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 13px;
  color: var(--accent);
  background: var(--surface);
}
.step-title { font-family: var(--font-display); font-weight: 700; font-size: .9rem; margin-bottom: .4rem; }
.step-desc { color: var(--muted); font-size: 12px; line-height: 1.7; }

/* AI section */
#ai {
  position: relative;
  overflow: hidden;
}
.ai-grid {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(2rem,6vw,5rem);
  align-items: center;
}
.ai-grid > * { flex: 1 1 280px; min-width: 0; }
.ai-visual {
  height: 340px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.ai-node-wrap { position: relative; width: 240px; height: 240px; }
.node { position: absolute; border-radius: 50%; background: var(--surface); border: 1px solid var(--border); display: grid; place-items: center; font-size: 9px; color: var(--muted); font-family: var(--font-body); text-align: center; line-height: 1.3; }
.node-c { width: 72px; height: 72px; top: 50%; left: 50%; transform: translate(-50%,-50%); border-color: var(--accent2); color: var(--accent2); animation: glowPulse 3s ease infinite; }
.node-s { width: 50px; height: 50px; }
.node-s:nth-child(2) { top: 4%; left: 50%; transform: translateX(-50%); }
.node-s:nth-child(3) { top: 55%; right: 2%; }
.node-s:nth-child(4) { top: 55%; left: 2%; }
.node-s:nth-child(5) { top: 85%; left: 50%; transform: translateX(-50%); }
.ai-list { list-style: none; display: flex; flex-direction: column; gap: .9rem; margin-top: 1.8rem; }
.ai-list li { display: flex; align-items: flex-start; gap: .8rem; font-size: 12.5px; color: var(--muted); }
.ai-list li::before { content: '→'; color: var(--accent2); flex-shrink: 0; margin-top: 2px; }

/* Home work preview */
.work-grid {
  display: flex;
  flex-wrap: wrap;
  background: var(--border);
  border: 1px solid var(--border);
  gap: 1px;
}
.work-card {
  flex: 1 1 260px;
  min-width: 0;
  background: var(--surface);
  padding: clamp(1.5rem,4vw,2.5rem);
  overflow: hidden;
  transition: background .3s;
  text-decoration: none;
  color: inherit;
  display: block;
}
.work-card:hover { background: var(--surface2); }
.work-card:hover .wc-arrow { transform: translateX(4px); }
.wc-cat { font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); margin-bottom: .8rem; }
.wc-cat.blue { color: var(--accent2); }
.wc-cat.orange { color: var(--accent3); }
.wc-title { font-family: var(--font-display); font-weight: 700; font-size: 1.15rem; letter-spacing: -.02em; margin-bottom: .6rem; }
.wc-desc { color: var(--muted); font-size: 12px; line-height: 1.8; }
.wc-arrow { display: inline-block; margin-top: 1.2rem; font-size: 12px; color: var(--accent); transition: transform .2s; }
.wc-badge { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: 1rem; }

/* ═══════════════════════════════════════
   WORK PAGE
   ═══════════════════════════════════════ */
.work-hero {
  padding: calc(var(--nav-h) + clamp(3rem,8vw,5rem)) var(--pad) clamp(2.5rem,5vw,4rem);
  position: relative;
  overflow: hidden;
}
.work-hero .section-title { font-size: clamp(2.5rem, 8vw, 6rem); }

.filter-bar { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 2rem; }
.filter-btn {
  padding: .4rem .9rem;
  border: 1px solid var(--border);
  border-radius: 4px;
  font-size: 11px;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--muted);
  background: transparent;
  cursor: pointer;
  transition: all .2s;
  font-family: var(--font-body);
}
.filter-btn:hover, .filter-btn.active { border-color: var(--accent); color: var(--accent); background: rgba(184,255,87,.04); }

.projects-section { padding: 2rem var(--pad) clamp(4rem,8vw,7rem); }
.projects-grid {
  display: flex;
  flex-wrap: wrap;
  background: var(--border);
  border: 1px solid var(--border);
  gap: 1px;
}
.proj-card {
  flex: 1 1 280px;
  min-width: 0;
  background: var(--surface);
  padding: clamp(1.5rem,4vw,2.5rem);
  position: relative;
  display: block;
  text-decoration: none;
  color: inherit;
  transition: background .3s;
  overflow: hidden;
}
.proj-card::after { content: ''; position: absolute; inset: 0; border: 1px solid var(--accent); opacity: 0; transition: opacity .3s; pointer-events: none; }
.proj-card:hover { background: var(--surface2); }
.proj-card:hover::after { opacity: .15; }
.proj-card:hover .proj-arrow { transform: translate(3px,-3px); }
.proj-card.featured { flex: 2 1 480px; }
.proj-card.featured .proj-name { font-size: clamp(1.5rem,4vw,2rem); }

.proj-num { font-size: 11px; color: var(--border2); letter-spacing: .1em; margin-bottom: 1.2rem; }
.proj-type { font-size: 10px; letter-spacing: .1em; text-transform: uppercase; margin-bottom: .7rem; }
.proj-name { font-family: var(--font-display); font-weight: 800; font-size: 1.5rem; letter-spacing: -.03em; line-height: 1.1; margin-bottom: .9rem; }
.proj-desc { color: var(--muted); font-size: 12px; line-height: 1.8; margin-bottom: 1.2rem; }
.proj-tags { display: flex; flex-wrap: wrap; gap: .4rem; margin-bottom: 1.5rem; }
.proj-footer { display: flex; justify-content: space-between; align-items: center; padding-top: 1.2rem; border-top: 1px solid var(--border); flex-wrap: wrap; gap: .5rem; }
.proj-year { font-size: 11px; color: var(--muted); }
.proj-arrow { font-size: 12px; transition: transform .25s; }

.proj-visual { margin: 1.5rem 0; height: 180px; border-radius: 4px; border: 1px solid var(--border); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.proj-card.featured .proj-visual { height: 220px; }
.vis-crm { background: linear-gradient(135deg,#0d1a0a,#0a160d); }
.vis-crm-inner { display: grid; grid-template-columns: repeat(3,1fr); gap: 8px; padding: 20px; width: 100%; }
.vis-crm-col { display: flex; flex-direction: column; gap: 6px; }
.vis-bar { height: 8px; border-radius: 2px; background: rgba(184,255,87,.15); }
.vis-bar.fill  { background: rgba(184,255,87,.4); }
.vis-bar.fill2 { background: rgba(184,255,87,.25); }
.vis-edge { background: linear-gradient(135deg,#070d1a,#060f16); display: flex; align-items: center; justify-content: center; gap: 10px; flex-wrap: wrap; padding: 1rem; }
.vis-circle { width: 46px; height: 46px; border-radius: 50%; border: 1px solid rgba(87,184,255,.3); display: flex; align-items: center; justify-content: center; font-size: 16px; }
.vis-split { background: linear-gradient(135deg,#12080a,#160a08); display: flex; align-items: center; justify-content: center; }
.vis-phone { width: 56px; height: 90px; border: 1.5px solid rgba(255,123,87,.3); border-radius: 10px; background: rgba(255,123,87,.04); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; padding: 7px; }
.vis-phone-line { height: 3px; border-radius: 2px; background: rgba(255,123,87,.3); width: 100%; }
.vis-phone-line.hi { background: rgba(255,123,87,.6); }

/* ═══════════════════════════════════════
   SERVICES PAGE
   ═══════════════════════════════════════ */
.svc-hero {
  padding: calc(var(--nav-h) + clamp(3rem,8vw,5rem)) var(--pad) clamp(2.5rem,5vw,4rem);
  position: relative;
  overflow: hidden;
}
.svc-hero .section-title { font-size: clamp(2.5rem, 8vw, 5.5rem); }

.service-full {
  padding: clamp(3rem,7vw,5rem) var(--pad);
  border-top: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}
.service-full:nth-child(even) { background: var(--surface); }

/* Flex pair — text first, then visual; reverse on alternating rows */
.sf-inner {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(2rem,5vw,4rem);
  align-items: flex-start;
  max-width: 1100px;
  margin: 0 auto;
}
.sf-inner > *:first-child { flex: 1 1 280px; min-width: 0; }
.sf-inner > *:last-child  { flex: 2 1 300px; min-width: 0; }

/* Reverse order on desktop only for alternating blocks */
.sf-inner.reverse { flex-direction: row-reverse; }

.sf-num { font-size: clamp(3rem,8vw,5rem); font-family: var(--font-display); font-weight: 800; color: var(--border); line-height: 1; margin-bottom: 1rem; }
.sf-title { font-family: var(--font-display); font-weight: 800; font-size: clamp(1.5rem,3.5vw,2.4rem); letter-spacing: -.03em; margin-bottom: .8rem; line-height: 1.1; }
.sf-desc { color: var(--muted2); font-size: 13px; line-height: 1.9; margin-bottom: 1.5rem; }
.sf-features { list-style: none; display: flex; flex-direction: column; gap: .75rem; }
.sf-features li { display: flex; gap: .8rem; color: var(--muted2); font-size: 12.5px; line-height: 1.7; }
.sf-features li::before { content: '→'; flex-shrink: 0; margin-top: 1px; }
.sf-tech { margin-top: 1.5rem; }
.sf-tech-label { font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: .7rem; }

.sf-visual {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  min-height: 240px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  overflow: hidden;
}
.service-full:nth-child(even) .sf-visual { background: var(--bg); }

.grid-dots { display: grid; grid-template-columns: repeat(8,1fr); gap: 8px; width: 100%; }
.dot { width: 100%; aspect-ratio: 1; border-radius: 50%; background: var(--border2); }
.dot.lit  { background: var(--accent);  opacity: .5; }
.dot.lit2 { background: var(--accent2); opacity: .4; }
.dot.lit3 { background: var(--accent3); opacity: .4; }

.mobile-screens { display: flex; gap: 10px; align-items: flex-end; }
.ms { width: 72px; background: var(--bg); border: 1px solid var(--border2); border-radius: 12px; overflow: hidden; flex-shrink: 0; }
.ms-header { height: 22px; background: var(--surface2); display: flex; align-items: center; justify-content: center; }
.ms-notch { width: 24px; height: 7px; background: var(--bg); border-radius: 0 0 5px 5px; }
.ms-content { padding: 7px; display: flex; flex-direction: column; gap: 4px; }
.ms-bar { height: 4px; border-radius: 2px; background: var(--border2); }
.ms-bar.a { background: rgba(184,255,87,.25); }
.ms-bar.b { background: rgba(87,184,255,.2); }

.ecom-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 6px; width: 100%; }
.ecom-item { background: var(--bg); border: 1px solid var(--border); border-radius: 4px; padding: 8px; text-align: center; }
.ecom-emoji { font-size: 1.3rem; display: block; margin-bottom: 4px; }
.ecom-price { font-size: 10px; color: var(--accent); font-family: var(--font-display); font-weight: 700; }

.ai-orbs { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; justify-content: center; }
.orb { border-radius: 50%; border: 1px solid; display: flex; align-items: center; justify-content: center; font-size: 10px; text-align: center; line-height: 1.3; }

/* ═══════════════════════════════════════
   CASE STUDY — shared styles
   ═══════════════════════════════════════ */
.case-nav-back {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  color: var(--muted);
  font-size: 11px;
  letter-spacing: .08em;
  text-transform: uppercase;
  text-decoration: none;
  margin-bottom: 2rem;
  transition: color .2s;
}
.case-nav-back::before { content: '←'; }
.case-nav-back:hover { color: var(--accent); }

.case-hero {
  padding: calc(var(--nav-h) + clamp(2.5rem,7vw,4rem)) var(--pad) 0;
  position: relative;
  overflow: hidden;
}
.case-hero-inner { max-width: 1100px; margin: 0 auto; }
.case-meta { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; margin-bottom: 1.2rem; }
.case-tag { font-size: 10px; letter-spacing: .1em; text-transform: uppercase; padding: .2rem .7rem; border-radius: 3px; border: 1px solid; }

.case-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.8rem, 10vw, 6.5rem);
  letter-spacing: -.04em;
  line-height: .95;
  margin-bottom: 1rem;
}
.case-title em { font-family: var(--font-serif); font-style: italic; font-weight: 400; display: block; }
.case-tagline { color: var(--muted2); font-size: clamp(13px,2.5vw,15px); line-height: 1.7; max-width: 560px; }

/* Stats — 4 up on desktop, 2×2 on mobile */
.case-stats {
  display: flex;
  flex-wrap: wrap;
  background: var(--border);
  border: 1px solid var(--border);
  gap: 1px;
  margin-top: clamp(2.5rem,6vw,4rem);
}
.case-stat {
  flex: 1 1 120px;
  min-width: 0;
  background: var(--surface);
  padding: clamp(1.2rem,3vw,2rem);
  text-align: center;
}
.case-stat-num { font-family: var(--font-display); font-weight: 800; font-size: clamp(1.6rem,4vw,2.2rem); line-height: 1; }
.case-stat-label { font-size: 10px; color: var(--muted); letter-spacing: .05em; text-transform: uppercase; margin-top: .4rem; }

/* Hero visual band */
.case-visual {
  margin-top: clamp(2.5rem,5vw,4rem);
  border-left: 1px solid var(--border);
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  padding: clamp(1.5rem,4vw,2.5rem);
}

/* Content area */
.case-content { max-width: 1100px; margin: 0 auto; padding: 0 var(--pad); }
.case-section { padding: clamp(2.5rem,6vw,5rem) 0; border-top: 1px solid var(--border); }
.case-section-label { font-size: 11px; letter-spacing: .15em; text-transform: uppercase; margin-bottom: .8rem; display: flex; align-items: center; gap: .5rem; }
.case-section-label::before { content: '//'; opacity: .4; }
.case-section-title { font-family: var(--font-display); font-weight: 700; font-size: clamp(1.4rem, 3.5vw, 2.2rem); letter-spacing: -.03em; margin-bottom: 1.2rem; }
.case-body { color: var(--muted2); font-size: 13px; line-height: 1.9; max-width: 680px; }
.case-body p + p { margin-top: 1rem; }

/* Two column — stacks on mobile */
.case-grid2 {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(2rem,5vw,4rem);
  align-items: flex-start;
}
.case-grid2 > * { flex: 1 1 280px; min-width: 0; }

/* Three column feature cards — stacks at ~280px min */
.case-grid3 {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2rem;
}
.feature-card {
  flex: 1 1 240px;
  min-width: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: clamp(1.2rem,3vw,1.8rem);
  transition: border-color .25s;
}
.feature-icon { font-size: 1.4rem; margin-bottom: .8rem; }
.feature-title { font-family: var(--font-display); font-weight: 700; font-size: .9rem; margin-bottom: .5rem; }
.feature-desc { color: var(--muted); font-size: 12px; line-height: 1.75; }

.challenge-list { list-style: none; display: flex; flex-direction: column; gap: .85rem; }
.challenge-list li { display: flex; gap: .8rem; color: var(--muted2); font-size: 12.5px; line-height: 1.7; }
.challenge-list li::before { content: '◆'; font-size: 8px; flex-shrink: 0; margin-top: 5px; }
.tech-stack { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.2rem; }

/* Result grid — 2 up, wraps to 1 */
.result-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1.5rem;
}
.result-item {
  flex: 1 1 160px;
  min-width: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: clamp(1.2rem,3vw,1.8rem);
}
.result-num { font-family: var(--font-display); font-size: clamp(1.5rem,4vw,2rem); font-weight: 800; }
.result-label { color: var(--muted); font-size: 12px; margin-top: .3rem; }

/* Flow steps (ActivityEdge) */
.flow-steps {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-top: 2rem;
  position: relative;
}
.flow-step { flex: 1 1 100px; min-width: 0; text-align: center; }
.flow-circle { width: 44px; height: 44px; border: 1px solid var(--accent2); border-radius: 50%; display: flex; align-items: center; justify-content: center; margin: 0 auto .8rem; font-size: 14px; background: var(--surface); }
.flow-label { font-size: 10px; color: var(--muted); line-height: 1.5; }

/* Screen flow (Split4You) */
.screen-flow {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1.5rem;
}
.screen-item { flex: 1 1 120px; min-width: 0; text-align: center; }
.screen-box { height: 100px; background: var(--surface); border: 1px solid var(--border); border-radius: 8px; display: flex; align-items: center; justify-content: center; font-size: 2rem; margin-bottom: .7rem; position: relative; overflow: hidden; }
.screen-box::after { content: ''; position: absolute; inset: 0; background: linear-gradient(135deg,rgba(255,123,87,.04),transparent); }
.screen-label { font-size: 10px; color: var(--muted); line-height: 1.5; }

/* Next projects */
.next-projects {
  display: flex;
  flex-wrap: wrap;
  background: var(--border);
  border: 1px solid var(--border);
  gap: 1px;
  margin-top: 2rem;
}
.next-card {
  flex: 1 1 240px;
  min-width: 0;
  background: var(--surface);
  padding: clamp(1.5rem,3vw,2.2rem);
  display: block;
  text-decoration: none;
  color: inherit;
  transition: background .3s;
}
.next-card:hover { background: var(--surface2); }
.next-card-label { font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: .6rem; }
.next-card-name { font-family: var(--font-display); font-weight: 700; font-size: 1.15rem; letter-spacing: -.02em; margin-bottom: .5rem; }
.next-card-arrow { font-size: 12px; margin-top: .8rem; display: block; }

/* ─── YourWay CRM — dashboard mock ─── */
.case-visual.crm-visual { height: 440px; background: linear-gradient(135deg,#0a1408 0%,#0d1a0c 60%,#071008 100%); }
.dashboard-mock { width: 100%; max-width: 680px; background: rgba(6,6,10,.9); border: 1px solid var(--border2); border-radius: 8px; overflow: hidden; box-shadow: 0 30px 80px rgba(0,0,0,.5); }
.dash-header { height: 40px; background: var(--surface); border-bottom: 1px solid var(--border); display: flex; align-items: center; gap: 7px; padding: 0 14px; }
.dash-dot { width: 10px; height: 10px; border-radius: 50%; }
.dash-title { font-size: 10px; color: var(--muted); margin-left: auto; letter-spacing: .05em; }
.dash-body { display: flex; min-height: 320px; overflow: hidden; }
.dash-sidebar { width: 160px; flex-shrink: 0; border-right: 1px solid var(--border); padding: 12px 0; }
.dash-nav-item { padding: 7px 14px; font-size: 10px; color: var(--muted); letter-spacing: .05em; display: flex; align-items: center; gap: 7px; }
.dash-nav-item.active { background: rgba(184,255,87,.06); color: var(--accent); border-right: 2px solid var(--accent); }
.dash-nav-item::before { content: ''; width: 5px; height: 5px; border-radius: 50%; background: currentColor; opacity: .5; flex-shrink: 0; }
.dash-main { flex: 1; padding: 14px; min-width: 0; }
.dash-row { display: flex; gap: 8px; margin-bottom: 10px; }
.dash-kpi { flex: 1; background: rgba(184,255,87,.04); border: 1px solid rgba(184,255,87,.1); border-radius: 4px; padding: 9px 10px; min-width: 0; }
.dash-kpi-val { font-family: var(--font-display); font-size: 1rem; font-weight: 700; color: var(--accent); }
.dash-kpi-lbl { font-size: 8px; color: var(--muted); letter-spacing: .05em; margin-top: 2px; }
.dash-table-header { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 6px; padding: 5px 7px; font-size: 8px; color: var(--muted); letter-spacing: .06em; text-transform: uppercase; border-bottom: 1px solid var(--border); }
.dash-table-row { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 6px; padding: 6px 7px; font-size: 8px; color: var(--muted2); border-bottom: 1px solid rgba(255,255,255,.03); }
.dash-status { font-size: 7px; padding: 2px 5px; border-radius: 2px; width: fit-content; }
.dash-status.active  { background: rgba(184,255,87,.12); color: var(--accent); }
.dash-status.pending { background: rgba(87,184,255,.1);  color: var(--accent2); }

/* ─── ActivityEdge — activity cards ─── */
.case-visual.edge-visual { height: 440px; background: linear-gradient(135deg,#060d1a,#070f1a); overflow-x: auto; overflow-y: hidden; justify-content: flex-start; padding: 2rem 1.5rem; }
.activity-card { background: rgba(6,14,28,.9); border: 1px solid rgba(87,184,255,.2); border-radius: 10px; padding: 18px; width: 180px; min-width: 180px; flex-shrink: 0; transition: transform .3s; }
.activity-card:hover { transform: translateY(-6px); }
.ac-emoji { font-size: 2rem; margin-bottom: 10px; }
.ac-name { font-family: var(--font-display); font-weight: 700; font-size: .9rem; color: var(--text); margin-bottom: 5px; }
.ac-info { font-size: 10px; color: var(--muted); line-height: 1.6; }
.ac-price { font-size: 13px; color: var(--accent2); font-family: var(--font-display); font-weight: 700; margin-top: 9px; }
.ac-badge { display: inline-block; font-size: 8px; letter-spacing: .06em; text-transform: uppercase; background: rgba(87,184,255,.1); color: var(--accent2); border-radius: 3px; padding: 2px 5px; margin-top: 6px; }
.ac-btn { display: block; background: rgba(87,184,255,.1); border: 1px solid rgba(87,184,255,.25); color: var(--accent2); text-align: center; padding: 7px; border-radius: 5px; font-size: 10px; letter-spacing: .05em; margin-top: 10px; font-family: var(--font-display); font-weight: 600; }

/* ─── Split4You — phone mockups ─── */
.case-visual.split-visual { min-height: 420px; background: linear-gradient(135deg,#160808,#180c08); flex-wrap: nowrap; gap: 20px; padding: 2rem; }
.phone-frame { width: 180px; min-width: 180px; background: #0a0404; border: 1.5px solid rgba(255,123,87,.25); border-radius: 24px; overflow: hidden; flex-shrink: 0; box-shadow: 0 20px 60px rgba(0,0,0,.4); }
.phone-frame.secondary { transform: translateY(24px) scale(.92); opacity: .7; }
.phone-frame.tertiary  { transform: translateY(-16px) scale(.86); opacity: .5; }
.phone-status { height: 26px; background: #0a0404; display: flex; align-items: center; justify-content: space-between; padding: 0 14px; font-size: 8px; color: var(--muted); }
.phone-content { padding: 11px; }
.phone-header { font-family: var(--font-display); font-weight: 700; font-size: 11px; color: var(--text); margin-bottom: 10px; display: flex; justify-content: space-between; align-items: center; }
.phone-header span { font-size: 8px; color: var(--accent3); background: rgba(255,123,87,.1); padding: 2px 6px; border-radius: 3px; }
.expense-item { background: rgba(255,123,87,.04); border: 1px solid rgba(255,123,87,.1); border-radius: 7px; padding: 9px; margin-bottom: 7px; }
.expense-row { display: flex; justify-content: space-between; align-items: center; }
.expense-name   { font-size: 9px; color: var(--text); }
.expense-amount { font-family: var(--font-display); font-weight: 700; font-size: 10px; color: var(--accent3); }
.expense-by { font-size: 7px; color: var(--muted); margin-top: 2px; }
.phone-total { background: rgba(255,123,87,.08); border: 1px solid rgba(255,123,87,.2); border-radius: 7px; padding: 9px; text-align: center; margin-top: 9px; }
.phone-total-label { font-size: 8px; color: var(--muted); }
.phone-total-val { font-family: var(--font-display); font-weight: 800; font-size: 1.3rem; color: var(--accent3); margin-top: 3px; }
.phone-btn { display: block; background: var(--accent3); color: #000; text-align: center; border-radius: 7px; padding: 9px; font-family: var(--font-display); font-weight: 700; font-size: 10px; letter-spacing: .04em; margin-top: 9px; }

/* ═══════════════════════════════════════
   CONTACT PAGE
   ═══════════════════════════════════════ */
.contact-wrap {
  display: flex;
  flex-wrap: wrap;
  min-height: 100vh;
}
.contact-left {
  flex: 1 1 320px;
  min-width: 0;
  padding: calc(var(--nav-h) + clamp(3rem,7vw,5rem)) clamp(1rem,5vw,5rem) clamp(3rem,6vw,5rem) var(--pad);
  position: relative;
  overflow: hidden;
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
}
.contact-left .section-title { font-size: clamp(2rem, 6vw, 4rem); margin-top: .8rem; }
.contact-left .section-title em { display: block; }
.contact-info { margin-top: clamp(2rem,5vw,3.5rem); display: flex; flex-direction: column; gap: 1.8rem; }
.info-item { display: flex; flex-direction: column; gap: .3rem; }
.info-label { font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.info-value { font-size: 13px; color: var(--text); }
.info-value a { color: var(--text); text-decoration: none; transition: color .2s; }
.info-value a:hover { color: var(--accent); }
.response-badge { display: inline-flex; align-items: center; gap: .5rem; margin-top: auto; padding-top: 3rem; font-size: 12px; color: var(--muted); }
.response-badge::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); animation: pulse 2s infinite; flex-shrink: 0; }

.contact-right {
  flex: 1 1 320px;
  min-width: 0;
  padding: calc(var(--nav-h) + clamp(3rem,7vw,5rem)) var(--pad) clamp(3rem,6vw,5rem) clamp(1rem,5vw,5rem);
}
.email-cta { display: flex; flex-direction: column; justify-content: center; height: 100%; padding: 2rem 0; }
.email-cta-label { font-size: 11px; letter-spacing: .15em; text-transform: uppercase; color: var(--accent); margin-bottom: 1rem; display: flex; align-items: center; gap: .5rem; }
.email-cta-label::before { content: '//'; opacity: .4; }
.email-cta-desc { color: var(--muted2); font-size: 14px; line-height: 1.85; max-width: 400px; margin-bottom: 2.5rem; }
.email-cta-address {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1rem, 3.5vw, 2rem);
  letter-spacing: -.02em;
  color: var(--text);
  text-decoration: none;
  border-bottom: 2px solid var(--accent);
  padding-bottom: .2rem;
  margin-bottom: 2rem;
  transition: color .2s;
  display: inline-block;
  word-break: break-all;
}
.email-cta-address:hover { color: var(--accent); }
.email-cta-note { margin-top: 1rem; font-size: 11px; color: var(--muted); display: flex; align-items: center; gap: .5rem; }
.email-cta-note::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); animation: pulse 2s infinite; flex-shrink: 0; }

/* ═══════════════════════════════════════
   MOBILE OVERRIDE  ≤ 640px
   Only what flex-wrap can't handle alone
   ═══════════════════════════════════════ */
@media (max-width: 640px) {
  /* Nav */
  .nav-links, .nav-cta { display: none; }
  .nav-hamburger { display: flex; }

  /* Hero buttons — full width stack */
  .hero-actions { flex-direction: column; }
  .hero-actions .btn-primary,
  .hero-actions .btn-ghost { width: 100%; }

  /* CTA buttons — full width stack */
  .cta-actions { flex-direction: column; align-items: stretch; }
  .cta-actions .btn-primary,
  .cta-actions .btn-ghost { width: 100%; max-width: 340px; align-self: center; }

  /* Process — single column */
  .process-steps { flex-direction: column; }
  .step { text-align: left; display: flex; align-items: flex-start; gap: 1rem; }
  .step-circle { margin: 0; flex-shrink: 0; }
  .step-content { flex: 1; }

  /* Services page — visual below text, no reverse */
  .sf-inner.reverse { flex-direction: column; }

  /* AI visual — hide on small screens */
  .ai-visual { display: none; }

  /* Dashboard mock — hide sidebar, show only main pane */
  .dash-sidebar { display: none; }
  .dash-body { flex-direction: column; }

  /* Activity cards visual — keep scrollable, but constrain height */
  .case-visual.edge-visual { height: 280px; }
  .activity-card { width: 160px; min-width: 160px; }

  /* Phone mockup — show only primary phone */
  .phone-frame.secondary,
  .phone-frame.tertiary { display: none; }
  .case-visual.split-visual { justify-content: center; }

  /* Contact — remove border */
  .contact-left { border-right: none; border-bottom: 1px solid var(--border); }
  .response-badge { padding-top: 2rem; }
  .email-cta { padding: 1.5rem 0; }
}
