/* =========================================================
   EmendoTech — Consultancy Design System
   ========================================================= */

:root {
  /* Color */
  --ink: #0A0E1A;
  --ink-2: #131A2C;
  --ink-soft: #202844;
  --paper: #F7F5F1;
  --paper-2: #EEEAE1;
  --white: #FFFFFF;
  --violet: #7C5CFF;
  --violet-deep: #4B2FD6;
  --violet-pale: #ECE7FF;
  --cyan: #33E4C4;
  --lime: #C7FF3D;
  --line: rgba(10, 14, 26, 0.10);
  --line-soft-white: rgba(255, 255, 255, 0.14);
  --text: #12152080;
  --muted: #5B5F73;
  --muted-inv: #AEB2C6;

  /* Type */
  --font-display: 'Fraunces', 'Iowan Old Style', serif;
  --font-body: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* Layout */
  --container: 1200px;
  --radius-s: 10px;
  --radius-m: 18px;
  --radius-l: 28px;
  --ease: cubic-bezier(.22, .9, .27, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

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

body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--paper);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
button { font-family: inherit; cursor: pointer; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 28px;
}

section { position: relative; }

.eyebrow {
  display: inline-block;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 18px;
  color: var(--violet-deep);
  margin: 0 0 14px;
}
.on-dark .eyebrow { color: var(--cyan); }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.1;
  margin: 0 0 18px;
  letter-spacing: -0.01em;
}

h2 { font-size: clamp(32px, 4vw, 48px); max-width: 14ch; }
h3 { font-size: clamp(20px, 2.4vw, 26px); }

p { color: var(--muted); max-width: 62ch; }
.on-dark p { color: var(--muted-inv); }
.on-dark, .on-dark h1, .on-dark h2, .on-dark h3, .on-dark h4 { color: var(--white); }

.lede {
  font-size: clamp(17px, 1.6vw, 20px);
  line-height: 1.65;
}

.section-head {
  max-width: 620px;
  margin-bottom: 56px;
}
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

/* -------- Buttons -------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 26px;
  border-radius: 100px;
  font-weight: 700;
  font-size: 15px;
  border: 1px solid transparent;
  transition: transform .35s var(--ease), background .3s, color .3s, border-color .3s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary {
  background: var(--ink);
  color: var(--white);
}
.btn-primary:hover { background: var(--violet-deep); }
.btn-ghost {
  border-color: var(--line);
  color: var(--ink);
  background: transparent;
}
.btn-ghost:hover { border-color: var(--ink); }
.on-dark .btn-ghost { border-color: var(--line-soft-white); color: var(--white); }
.on-dark .btn-ghost:hover { border-color: var(--white); }
.btn-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--cyan);
  display: inline-block;
}

/* =========================================================
   NAV
   ========================================================= */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  padding: 18px 0;
  transition: background .4s var(--ease), padding .4s var(--ease), border-color .4s;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(10, 14, 26, 0.86);
  backdrop-filter: blur(14px);
  padding: 12px 0;
  border-color: var(--line-soft-white);
}
.nav .container { display: flex; align-items: center; justify-content: space-between; }
.brand { display: flex; align-items: center; gap: 10px; }
.brand svg { height: 26px; width: auto; }
.brand-word { font-family: var(--font-display); font-weight: 600; font-size: 21px; color: var(--white); }
.brand-word span { color: var(--cyan); }

.nav-links { display: flex; align-items: center; gap: 6px; }
.nav-links a {
  color: var(--muted-inv);
  font-size: 14.5px;
  font-weight: 600;
  padding: 10px 16px;
  border-radius: 100px;
  transition: background .25s, color .25s;
}
.nav-links a:hover, .nav-links a.active { color: var(--white); background: rgba(255,255,255,0.08); }

.nav-cta { display: flex; align-items: center; gap: 14px; }
.nav-toggle {
  display: none;
  width: 42px; height: 42px;
  border-radius: 50%;
  border: 1px solid var(--line-soft-white);
  background: transparent;
  color: var(--white);
  align-items: center; justify-content: center;
  font-size: 18px;
}

.mobile-panel {
  position: fixed; inset: 0;
  background: var(--ink);
  z-index: 300;
  display: flex; flex-direction: column;
  padding: 26px 28px;
  transform: translateY(-100%);
  transition: transform .5s var(--ease);
}
.mobile-panel.open { transform: translateY(0); }
.mobile-panel-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 50px; }
.mobile-panel a.close-btn { color: var(--white); font-size: 22px; background: none; border: none; }
.mobile-panel ul { display: flex; flex-direction: column; gap: 6px; }
.mobile-panel a {
  font-family: var(--font-display);
  font-size: 36px;
  color: var(--white);
  padding: 12px 0;
  border-bottom: 1px solid var(--line-soft-white);
}
.mobile-panel .mp-contact { margin-top: auto; color: var(--muted-inv); font-size: 14px; }
.mobile-panel .mp-contact a { font-family: var(--font-body); font-size: 15px; border: none; color: var(--cyan); padding: 4px 0; }

@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav-cta .btn-ghost { display: none; }
  .nav-toggle { display: flex; }
}

/* =========================================================
   HERO
   ========================================================= */
.hero {
  background: var(--ink);
  color: var(--white);
  padding: 168px 0 90px;
  overflow: clip;
  position: relative;
}
.hero::before {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(560px 420px at 84% 6%, rgba(124,92,255,0.35), transparent 60%),
    radial-gradient(480px 380px at 8% 90%, rgba(51,228,196,0.16), transparent 65%);
  pointer-events: none;
}
.hero .container {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  align-items: center;
  position: relative;
}
.hero h1 {
  font-size: clamp(38px, 5.1vw, 64px);
  max-width: 12ch;
}
.hero h1 em { font-style: italic; color: var(--cyan); }
.hero-lede { max-width: 46ch; margin-bottom: 36px; }
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 54px; }

.hero-stats {
  display: flex;
  gap: 40px;
  border-top: 1px solid var(--line-soft-white);
  padding-top: 26px;
}
.hero-stats div { display: flex; flex-direction: column; gap: 4px; }
.hero-stats strong { font-family: var(--font-display); font-size: 30px; color: var(--white); }
.hero-stats span { font-size: 13px; color: var(--muted-inv); }

/* --- Phone mockup --- */
.hero-visual { position: relative; height: 560px; display: flex; align-items: center; justify-content: center; }
.phone {
  width: 272px;
  height: 552px;
  border-radius: 40px;
  background: linear-gradient(180deg, #1B2138, #0D1120);
  border: 6px solid #262c46;
  box-shadow: 0 40px 90px -30px rgba(0,0,0,0.7), 0 0 0 1px rgba(255,255,255,0.04);
  position: relative;
  overflow: hidden;
}
.phone::after {
  content: "";
  position: absolute; top: 14px; left: 50%; transform: translateX(-50%);
  width: 74px; height: 18px; border-radius: 20px; background: #0D1120;
}
.phone-screen {
  position: absolute; inset: 0; top: 0;
  padding: 46px 16px 16px;
  animation: phoneScroll 13s ease-in-out infinite;
}
.phone-screen .ps-title { font-family: var(--font-display); color: #fff; font-size: 17px; margin-bottom: 14px; }
.phone-screen .ps-sub { color: var(--muted-inv); font-size: 11.5px; margin-bottom: 18px; }
.ps-card {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.09);
  border-radius: 16px;
  padding: 14px;
  margin-bottom: 12px;
}
.ps-card .ps-row { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.ps-card .ps-label { color: var(--muted-inv); font-size: 11px; font-weight: 700; }
.ps-card .ps-value { color: var(--cyan); font-size: 13px; font-weight: 700; }
.ps-bars { display: flex; align-items: flex-end; gap: 5px; height: 56px; }
.ps-bars span { flex: 1; background: linear-gradient(180deg, var(--cyan), var(--violet)); border-radius: 4px 4px 0 0; opacity: .85; }
.ps-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.ps-grid i { display: block; aspect-ratio: 1; border-radius: 11px; background: linear-gradient(135deg, var(--violet), var(--violet-deep)); }
.ps-grid i:nth-child(3n) { background: linear-gradient(135deg, var(--cyan), #1a9a83); }
.ps-line { height: 40px; position: relative; }
.ps-line svg { width: 100%; height: 100%; }

@keyframes phoneScroll {
  0%, 12% { transform: translateY(0); }
  38%, 50% { transform: translateY(-230px); }
  76%, 88% { transform: translateY(-430px); }
  100% { transform: translateY(0); }
}

.float-card {
  position: absolute;
  background: var(--white);
  color: var(--ink);
  border-radius: 16px;
  padding: 12px 16px;
  box-shadow: 0 24px 50px -20px rgba(0,0,0,0.45);
  display: flex; align-items: center; gap: 10px;
  animation: floaty 6s ease-in-out infinite;
}
.float-card strong { display: block; font-size: 14px; font-family: var(--font-display); }
.float-card span { font-size: 11px; color: var(--muted); }
.float-card .dot { width: 34px; height: 34px; border-radius: 10px; flex-shrink: 0; }
.fc-1 { top: 6%; left: -6%; animation-delay: 0s; }
.fc-1 .dot { background: linear-gradient(135deg, var(--violet), var(--violet-deep)); }
.fc-2 { bottom: 10%; right: -8%; animation-delay: 1.4s; }
.fc-2 .dot { background: linear-gradient(135deg, var(--cyan), #189683); }
@keyframes floaty {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-14px); }
}

@media (max-width: 980px) {
  .hero .container { grid-template-columns: 1fr; }
  .hero-visual { height: 460px; margin-top: 20px; }
  .phone { width: 230px; height: 468px; }
  .float-card { display: none; }
  .chat-float { display: none; }
  .hero-stats { flex-wrap: wrap; row-gap: 18px; }
}

/* --- Drifting gradient blobs (background atmosphere on dark sections) --- */
.blob-field { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 0; }
.blob { position: absolute; border-radius: 50%; filter: blur(80px); opacity: .55; animation: blobDrift 20s ease-in-out infinite; will-change: transform; }
.blob.b1 { width: 460px; height: 460px; background: var(--violet); top: -160px; left: -120px; }
.blob.b2 { width: 380px; height: 380px; background: var(--cyan); bottom: -160px; right: -100px; animation-duration: 24s; animation-delay: -7s; }
.blob.b3 { width: 260px; height: 260px; background: var(--lime); opacity: .18; top: 30%; left: 46%; animation-duration: 16s; animation-delay: -3s; }
@keyframes blobDrift {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(50px, -36px) scale(1.14); }
}
.hero .container, .process .container, .cta-banner { position: relative; z-index: 1; }

/* --- Animated chat widget (hero) --- */
.chat-float {
  position: absolute;
  width: 236px;
  top: 42%;
  left: -13%;
  background: var(--white);
  border-radius: 18px;
  padding: 16px;
  box-shadow: 0 28px 60px -22px rgba(0,0,0,0.5);
  display: flex;
  flex-direction: column;
  gap: 8px;
  z-index: 2;
}
.chat-float .cf-top { display: flex; align-items: center; gap: 8px; margin-bottom: 4px; }
.chat-float .cf-avatar { width: 22px; height: 22px; border-radius: 50%; background: linear-gradient(135deg, var(--violet), var(--cyan)); flex-shrink: 0; }
.chat-float .cf-name { font-size: 11px; font-weight: 800; color: var(--ink); }
.chat-float .cf-status { width: 6px; height: 6px; border-radius: 50%; background: var(--cyan); margin-left: auto; }
.cf-msg {
  font-size: 12.5px;
  line-height: 1.4;
  padding: 9px 12px;
  border-radius: 14px 14px 14px 4px;
  background: var(--paper-2);
  color: var(--ink);
  max-width: 86%;
  opacity: 0;
  animation: bubbleCycle 9s ease-in-out infinite;
}
.cf-msg.out {
  align-self: flex-end;
  border-radius: 14px 14px 4px 14px;
  background: linear-gradient(135deg, var(--violet), var(--violet-deep));
  color: var(--white);
}
.cf-msg:nth-child(1) { animation-delay: 0s; }
.cf-msg:nth-child(2) { animation-delay: 1.1s; }
.cf-msg:nth-child(3) { animation-delay: 2.2s; }
@keyframes bubbleCycle {
  0% { opacity: 0; transform: translateY(8px); }
  9% { opacity: 1; transform: translateY(0); }
  85% { opacity: 1; transform: translateY(0); }
  95%, 100% { opacity: 0; transform: translateY(8px); }
}
@media (max-width: 1180px) { .chat-float { left: -6%; } }

/* --- Plan vs no-plan comparison --- */
.compare-wrap { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 30px; }
.compare-side { padding: 40px; border-radius: var(--radius-l); }
.compare-side.bad { background: var(--ink-2); }
.compare-side.good { background: linear-gradient(155deg, var(--violet-deep), var(--ink)); }
.compare-side .cs-tag { font-size: 12.5px; font-weight: 800; letter-spacing: .01em; color: var(--muted-inv); margin-bottom: 16px; display: block; }
.compare-side.good .cs-tag { color: var(--lime); }
.compare-side ul { display: flex; flex-direction: column; gap: 14px; margin-top: 6px; }
.compare-side li { display: flex; gap: 12px; font-size: 15px; color: var(--muted-inv); align-items: flex-start; }
.compare-side.good li { color: var(--white); }
.compare-side li svg { width: 18px; height: 18px; flex-shrink: 0; margin-top: 2px; }
.compare-side.bad li svg { color: #6b6f86; }
.compare-side.good li svg { color: var(--lime); }
.compare-vs {
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--ink);
  border: 1px solid var(--line-soft-white);
  color: var(--muted-inv);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-style: italic; font-size: 15px;
}
@media (max-width: 880px) {
  .compare-wrap { grid-template-columns: 1fr; }
  .compare-vs { margin: 0 auto; }
}



/* =========================================================
   MARQUEE / TICKER
   ========================================================= */
.ticker-wrap {
  background: var(--paper-2);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
  padding: 18px 0;
}
.ticker { display: flex; width: max-content; animation: ticker 30s linear infinite; }
.ticker span {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 20px;
  color: var(--muted);
  padding: 0 34px;
  white-space: nowrap;
  border-right: 1px solid var(--line);
}
@keyframes ticker { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* =========================================================
   GENERIC SECTIONS
   ========================================================= */
.section { padding: 110px 0; }
.section-tight { padding: 70px 0; }
.section.on-dark { background: var(--ink); }
.section.bg-paper2 { background: var(--paper-2); }

/* Two-path (grow vs launch) */
.paths { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.path-card {
  border-radius: var(--radius-l);
  padding: 42px;
  border: 1px solid var(--line);
  background: var(--white);
  transition: transform .4s var(--ease), box-shadow .4s var(--ease);
}
.path-card:hover { transform: translateY(-6px); box-shadow: 0 30px 60px -35px rgba(10,14,26,0.25); }
.path-card .path-tag { font-size: 13px; font-weight: 700; color: var(--violet-deep); margin-bottom: 14px; display: block; }
.path-card ul { margin-top: 22px; display: flex; flex-direction: column; gap: 10px; }
.path-card li { display: flex; gap: 10px; font-size: 14.5px; color: var(--muted); align-items: flex-start; }
.path-card li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--violet); margin-top: 8px; flex-shrink: 0; }
.path-card.alt { background: var(--ink); color: var(--white); border-color: var(--ink); }
.path-card.alt p, .path-card.alt li { color: var(--muted-inv); }
.path-card.alt .path-tag { color: var(--cyan); }
.path-card.alt li::before { background: var(--cyan); }

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

/* Services list (editorial rows) */
.service-list { border-top: 1px solid var(--line); }
.service-row {
  display: grid;
  grid-template-columns: 90px 1fr auto;
  align-items: center;
  gap: 26px;
  padding: 30px 0;
  border-bottom: 1px solid var(--line);
  transition: background .3s;
}
.service-row:hover { background: rgba(124,92,255,0.045); }
.service-row .si {
  width: 58px; height: 58px; border-radius: 16px;
  display: flex; align-items: center; justify-content: center;
  background: var(--violet-pale);
  color: var(--violet-deep);
}
.service-row .si svg { width: 26px; height: 26px; }
.service-row h3 { margin: 0 0 6px; }
.service-row p { margin: 0; font-size: 14.5px; }
.service-row .sr-num { font-family: var(--font-display); font-style: italic; color: var(--line); font-size: 26px; transition: color .3s; }
.service-row:hover .sr-num { color: var(--violet); }

/* Process (genuine sequence) */
.process { position: relative; }
.process-list { display: flex; flex-direction: column; }
.process-item {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 24px;
  padding: 34px 0;
  border-top: 1px solid var(--line-soft-white);
}
.process-item:last-child { border-bottom: 1px solid var(--line-soft-white); }
.process-item .pn { font-family: var(--font-display); font-size: 34px; color: var(--cyan); }
.process-item h3 { color: var(--white); margin-bottom: 8px; }
.process-item p { max-width: 52ch; }

/* Capability / stat strip */
.stat-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; }
.stat-strip .stat strong { font-family: var(--font-display); font-size: clamp(34px, 4vw, 46px); display: block; }
.stat-strip .stat span { font-size: 13.5px; color: var(--muted); }
@media (max-width: 820px) { .stat-strip { grid-template-columns: 1fr 1fr; row-gap: 34px; } }

/* Cards grid (why us / differentiators) */
.cards-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.diff-card {
  border-radius: var(--radius-m);
  padding: 32px;
  background: var(--white);
  border: 1px solid var(--line);
}
.diff-card .di { width: 44px; height: 44px; border-radius: 12px; background: var(--ink); color: var(--cyan); display: flex; align-items: center; justify-content: center; margin-bottom: 20px; }
.diff-card .di svg { width: 20px; height: 20px; }
@media (max-width: 900px) { .cards-3 { grid-template-columns: 1fr; } }

/* Placeholder photo block */
.ph-photo {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-m);
  background: linear-gradient(135deg, #E9E4F9, #DDEFE9 60%, #F1ECE0);
  border: 1px dashed rgba(10,14,26,0.22);
  display: flex; align-items: center; justify-content: center;
  text-align: center;
  color: var(--muted);
  font-size: 13px;
  padding: 20px;
  min-height: 260px;
}
.ph-photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
}
.ph-photo b { display: block; font-family: var(--font-body); font-weight: 800; color: var(--ink); margin-bottom: 4px; font-size: 12.5px; }
.ph-photo code { display: block; margin-top: 6px; font-size: 11.5px; background: rgba(10,14,26,0.06); padding: 3px 8px; border-radius: 6px; }

/* Logos / trust row (wordmark style, no fabricated brand marks) */
.trust-row { display: flex; flex-wrap: wrap; gap: 34px; align-items: center; }
.trust-row .tr-item { font-family: var(--font-display); font-style: italic; font-size: 19px; color: var(--muted); }

/* CTA banner */
.cta-banner {
  background: var(--ink);
  border-radius: var(--radius-l);
  padding: 64px;
  display: flex; align-items: center; justify-content: space-between; gap: 30px;
  position: relative; overflow: hidden;
}
.cta-banner::before {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(420px 260px at 90% 0%, rgba(51,228,196,0.25), transparent 70%);
}
.cta-banner h2 { color: var(--white); margin: 0; max-width: 16ch; position: relative; }
.cta-banner .btn-primary { background: var(--white); color: var(--ink); }
.cta-banner .btn-primary:hover { background: var(--cyan); }
.cta-inner-actions { position: relative; display: flex; gap: 14px; flex-wrap: wrap; }
@media (max-width: 780px) { .cta-banner { flex-direction: column; text-align: center; padding: 44px 28px; } }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: calc(var(--d, 0) * 90ms); }
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* =========================================================
   FOOTER
   ========================================================= */
.site-footer { background: var(--ink); color: var(--muted-inv); padding: 78px 0 26px; }
.footer-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 60px; }
.footer-brand p { max-width: 32ch; margin-top: 14px; }
.footer-col h4 { color: var(--white); font-size: 14px; font-family: var(--font-body); font-weight: 800; margin-bottom: 16px; }
.footer-col a { display: block; padding: 6px 0; font-size: 14.5px; color: var(--muted-inv); transition: color .25s; }
.footer-col a:hover { color: var(--cyan); }
.footer-bottom {
  border-top: 1px solid var(--line-soft-white);
  padding-top: 22px;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px;
  font-size: 13px;
}
.socials { display: flex; gap: 10px; }
.socials a { width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line-soft-white); display: flex; align-items: center; justify-content: center; }
.socials a svg { width: 15px; height: 15px; }
@media (max-width: 900px) { .footer-top { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-top { grid-template-columns: 1fr; } }

/* =========================================================
   PAGE HEADER (inner pages)
   ========================================================= */
.page-header {
  background: var(--ink);
  color: var(--white);
  padding: 168px 0 80px;
  position: relative;
  overflow: clip;
}
.page-header::before {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(520px 360px at 90% 0%, rgba(124,92,255,0.32), transparent 65%);
}
.page-header .crumb { position: relative; font-size: 13px; color: var(--muted-inv); margin-bottom: 18px; }
.page-header .crumb a { color: var(--muted-inv); }
.page-header .crumb a:hover { color: var(--white); }
.page-header h1 { position: relative; font-size: clamp(34px, 4.6vw, 54px); max-width: 16ch; }
.page-header p.lede { position: relative; max-width: 52ch; }

/* Contact page */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; }
.contact-info-card {
  background: var(--ink); color: var(--white);
  border-radius: var(--radius-l);
  padding: 44px;
}
.contact-info-card .ci-row { display: flex; gap: 14px; padding: 16px 0; border-top: 1px solid var(--line-soft-white); }
.contact-info-card .ci-row:first-of-type { border-top: none; }
.contact-info-card .ci-ic { width: 40px; height: 40px; border-radius: 10px; background: rgba(255,255,255,0.08); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.contact-info-card .ci-ic svg { width: 17px; height: 17px; color: var(--cyan); }
.contact-info-card a, .contact-info-card span.ci-label { display: block; }
.contact-info-card .ci-label { font-size: 12px; color: var(--muted-inv); margin-bottom: 3px; }
.contact-info-card a.ci-val { font-weight: 700; }

.form-field { margin-bottom: 20px; }
.form-field label { display: block; font-size: 13px; font-weight: 700; margin-bottom: 8px; }
.form-field input, .form-field textarea {
  width: 100%;
  border: 1px solid var(--line);
  background: var(--white);
  border-radius: var(--radius-s);
  padding: 14px 16px;
  font-family: inherit;
  font-size: 15px;
  transition: border-color .25s;
}
.form-field input:focus, .form-field textarea:focus { outline: none; border-color: var(--violet); }
.form-row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } .form-row-2 { grid-template-columns: 1fr; } }

/* Projects grid */
.projects-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 26px; }
.project-card { border-radius: var(--radius-l); overflow: hidden; background: var(--white); border: 1px solid var(--line); }
.project-card .ph-photo { min-height: 220px; border-radius: 0; border: none; border-bottom: 1px solid var(--line); }
.project-body { padding: 26px 28px 30px; }
.project-body .pc-tag { font-size: 12.5px; font-weight: 700; color: var(--violet-deep); }
.project-body h3 { margin: 10px 0 8px; }
@media (max-width: 780px) { .projects-grid { grid-template-columns: 1fr; } }

/* =========================================================
   SERVICE DETAIL BLOCKS (services.html)
   ========================================================= */
.service-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  padding: 90px 0;
  border-bottom: 1px solid var(--line);
}
.service-detail:last-child { border-bottom: none; }
.service-detail.rev .sd-copy { order: 2; }
.service-detail.rev .sd-visual { order: 1; }
.sd-icon { width: 52px; height: 52px; border-radius: 14px; background: var(--ink); color: var(--cyan); display: flex; align-items: center; justify-content: center; margin-bottom: 20px; }
.sd-icon svg { width: 24px; height: 24px; }
.sd-copy ul { margin-top: 24px; display: flex; flex-direction: column; gap: 12px; }
.sd-copy li { display: flex; gap: 12px; font-size: 15px; color: var(--ink); align-items: flex-start; }
.sd-copy li svg { width: 18px; height: 18px; color: var(--violet); flex-shrink: 0; margin-top: 2px; }
@media (max-width: 900px) {
  .service-detail { grid-template-columns: 1fr; gap: 36px; padding: 60px 0; }
  .service-detail.rev .sd-copy, .service-detail.rev .sd-visual { order: initial; }
}

/* Browser chrome mockup */
.browser-frame {
  border-radius: var(--radius-m);
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: 0 30px 60px -35px rgba(10,14,26,0.28);
  overflow: hidden;
}
.browser-bar { display: flex; gap: 6px; padding: 12px 14px; background: var(--paper-2); border-bottom: 1px solid var(--line); }
.browser-bar i { width: 9px; height: 9px; border-radius: 50%; background: var(--line); }
.browser-body { padding: 22px; display: flex; flex-direction: column; gap: 12px; }
.bb-line { height: 12px; border-radius: 6px; background: var(--paper-2); }
.bb-block { height: 110px; border-radius: 12px; background: linear-gradient(135deg, var(--violet-pale), #E4F6F1); }
.bb-row { display: flex; gap: 12px; }
.bb-row .bb-block { flex: 1; height: 70px; }

/* Static small phone (non-animated variant for App Dev block) */
.mini-phone { width: 220px; margin: 0 auto; height: 448px; border-radius: 34px; background: linear-gradient(180deg, #1B2138, #0D1120); border: 6px solid #262c46; box-shadow: 0 30px 60px -30px rgba(10,14,26,0.4); padding: 40px 14px 14px; }
.mini-phone .ps-title { font-family: var(--font-display); color: #fff; font-size: 15px; margin-bottom: 12px; }
.mini-phone .ps-grid i { aspect-ratio: 1; }

/* Feed mockup (Social Media) */
.feed-mock { display: flex; flex-direction: column; gap: 12px; }
.feed-card { background: var(--white); border: 1px solid var(--line); border-radius: 16px; padding: 16px; box-shadow: 0 20px 40px -30px rgba(10,14,26,0.25); }
.feed-top { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.feed-avatar { width: 30px; height: 30px; border-radius: 50%; background: linear-gradient(135deg, var(--violet), var(--cyan)); }
.feed-name { height: 8px; width: 90px; background: var(--paper-2); border-radius: 4px; }
.feed-body { height: 120px; border-radius: 10px; background: linear-gradient(135deg, #EFE9FF, #DFF5EE); margin-bottom: 10px; }
.feed-stats { display: flex; gap: 16px; font-size: 12px; color: var(--muted); }

/* Donut (Media Planning) */
.donut-wrap { display: flex; align-items: center; gap: 26px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-m); padding: 30px; box-shadow: 0 30px 60px -35px rgba(10,14,26,0.25); }
.donut-legend { display: flex; flex-direction: column; gap: 10px; font-size: 13px; }
.donut-legend span { display: flex; align-items: center; gap: 8px; color: var(--muted); }
.donut-legend i { width: 10px; height: 10px; border-radius: 3px; }

/* Network graphic (Influencer marketing) */
.network-wrap { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-m); padding: 30px; box-shadow: 0 30px 60px -35px rgba(10,14,26,0.25); }

/* Roadmap graphic (Consultancy) */
.roadmap-wrap { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-m); padding: 34px 30px; box-shadow: 0 30px 60px -35px rgba(10,14,26,0.25); }
.roadmap-step { display: flex; align-items: center; gap: 14px; padding: 10px 0; }
.roadmap-step .rs-dot { width: 12px; height: 12px; border-radius: 50%; background: var(--violet); flex-shrink: 0; }
.roadmap-step.done .rs-dot { background: var(--cyan); }
.roadmap-step .rs-line { flex: 1; height: 2px; background: var(--line); }
.roadmap-step span.rs-label { font-size: 13px; font-weight: 700; white-space: nowrap; }

/* Counter helper */
[data-count] { font-variant-numeric: tabular-nums; }

/* =========================================================
   PROJECTS PAGE — landing-project cards (client-supplied markup)
   ========================================================= */
.landing-project-section { padding: 110px 0; }
.landing-project-section.bg-gray-light { background: var(--paper-2); }
.landing-project-primary-title {
  font-family: var(--font-display);
  font-size: clamp(30px, 3.6vw, 42px);
  color: var(--ink);
  margin-bottom: 50px;
  text-align: center;
}
.landing-projects-wrapper {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
@media (max-width: 980px) { .landing-projects-wrapper { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .landing-projects-wrapper { grid-template-columns: 1fr; } }

.landing-project {
  position: relative;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-l);
  transition: transform .4s var(--ease), box-shadow .4s var(--ease);
}
.landing-project:hover { transform: translateY(-6px); box-shadow: 0 30px 60px -35px rgba(10,14,26,0.25); }

.landing-project-img {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: var(--radius-l) var(--radius-l) 0 0;
  background: linear-gradient(135deg, #E9E4F9, #DDEFE9 60%, #F1ECE0);
}
.landing-project-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.landing-project-img.img-missing img { display: none; }
.landing-project-img.img-missing::after {
  content: "Add a project screenshot here";
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  text-align: center; padding: 20px;
  font-size: 12.5px; color: var(--muted);
}

.landing-project-content { padding: 26px 26px 28px; }
.landing-project-icon {
  position: absolute;
  top: -22px; right: 22px;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--white);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 16px 30px -10px rgba(10,14,26,0.5);
  transition: background .3s, transform .3s;
}
.landing-project-icon svg { width: 15px; height: 15px; }
.landing-project-icon:hover { background: var(--violet-deep); transform: scale(1.08) rotate(8deg); }
.landing-project-title { font-family: var(--font-display); font-size: 19px; color: var(--ink); margin: 8px 0 8px; }
.landing-project-details { font-size: 14px; line-height: 1.55; color: var(--muted); }

/* =========================================================
   STORY DEVICES — chapter dot-nav, 30/70 split, mobile accordion,
   sticky mobile action bar
   ========================================================= */

/* Chapter dot-nav (desktop only — a story needs a spine, not clutter) */
.chapter-nav {
  position: fixed;
  left: 26px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 150;
  display: flex;
  flex-direction: column;
  gap: 16px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .4s;
}
.chapter-nav.is-active { opacity: 1; pointer-events: auto; }
.chapter-nav a {
  position: relative;
  width: 9px; height: 9px;
  border-radius: 50%;
  background: rgba(10,14,26,0.18);
  transition: background .3s, transform .3s;
}
.chapter-nav a:hover { transform: scale(1.3); }
.chapter-nav a.active { background: var(--violet); transform: scale(1.35); }
.chapter-nav a .cn-label {
  position: absolute; left: 20px; top: 50%; transform: translateY(-50%);
  white-space: nowrap;
  font-size: 12px; font-weight: 700;
  background: var(--ink); color: var(--white);
  padding: 5px 10px; border-radius: 100px;
  opacity: 0; pointer-events: none;
  transition: opacity .25s;
}
.chapter-nav a:hover .cn-label { opacity: 1; }
@media (max-width: 1340px) { .chapter-nav { display: none; } }

/* Chapter eyebrow (numbered story beats) */
.chapter-mark {
  display: inline-flex; align-items: baseline; gap: 10px;
  font-family: var(--font-display); font-style: italic;
  font-size: 15px; color: var(--violet-deep);
  margin-bottom: 14px;
}
.on-dark .chapter-mark { color: var(--cyan); }
.chapter-mark .cm-line { width: 30px; height: 1px; background: currentColor; opacity: .5; align-self: center; }

/* 30/70 split section */
.split-wrap { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 56px; align-items: center; }
.split-bar-card {
  border-radius: var(--radius-l);
  background: var(--white);
  border: 1px solid var(--line);
  padding: 36px;
  box-shadow: 0 30px 60px -35px rgba(10,14,26,0.22);
}
.split-bar { display: flex; height: 54px; border-radius: 100px; overflow: hidden; margin-bottom: 18px; }
.split-bar .sb-seg { display: flex; align-items: center; justify-content: center; font-family: var(--font-display); font-size: 20px; color: var(--white); }
.split-bar .sb-us { width: 30%; background: linear-gradient(120deg, var(--violet-deep), var(--violet)); }
.split-bar .sb-you { width: 70%; background: var(--ink); }
.split-caption { display: flex; justify-content: space-between; font-size: 13px; color: var(--muted); }

.split-cols { display: flex; flex-direction: column; gap: 22px; }
.split-col .sc-head { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.split-col .sc-pct { font-family: var(--font-display); font-size: 26px; }
.split-col.theirs .sc-pct { color: var(--violet-deep); }
.split-col.yours .sc-pct { color: var(--ink); }
.split-col h4 { font-family: var(--font-body); font-weight: 800; font-size: 15px; margin: 0; }
.split-col ul { display: flex; flex-direction: column; gap: 10px; padding-left: 2px; }
.split-col li { font-size: 14.5px; color: var(--muted); display: flex; gap: 10px; align-items: flex-start; }
.split-col li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--violet); margin-top: 8px; flex-shrink: 0; }
.split-col.yours li::before { background: var(--ink); }
@media (max-width: 900px) {
  .split-wrap { grid-template-columns: 1fr; gap: 34px; }
}

/* Service row → accordion (valuable + interactive on every screen, essential on mobile) */
.service-row { cursor: pointer; }
.sr-right { display: flex; align-items: center; gap: 12px; }
.service-row p {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  margin: 0;
  transition: max-height .4s var(--ease), opacity .3s, margin .3s;
}
.service-row.open p { max-height: 160px; opacity: 1; margin-top: 10px; }
.service-row .sr-chevron {
  width: 26px; height: 26px; border-radius: 50%;
  border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center;
  transition: transform .35s var(--ease), background .3s, border-color .3s;
  flex-shrink: 0;
}
.service-row .sr-chevron svg { width: 12px; height: 12px; }
.service-row.open .sr-chevron { transform: rotate(45deg); background: var(--ink); border-color: var(--ink); color: var(--white); }
.service-row .sr-num { display: none; }
@media (min-width: 721px) {
  .service-row .sr-num { display: block; }
}
@media (max-width: 720px) {
  .service-row { grid-template-columns: 46px 1fr auto; }
  .service-row .si { width: 46px; height: 46px; }
  .service-row .si svg { width: 21px; height: 21px; }
  .service-row h3 { font-size: 17px; }
}

/* Sticky mobile action bar — always-available, always-useful */
.mobile-action-bar {
  display: none;
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 250;
  background: rgba(10,14,26,0.94);
  backdrop-filter: blur(12px);
  border-top: 1px solid var(--line-soft-white);
  padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
}
.mab-row { display: flex; gap: 10px; }
.mab-btn {
  flex: 1;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 10px;
  border-radius: 100px;
  font-size: 13.5px; font-weight: 700;
  color: var(--white);
  border: 1px solid var(--line-soft-white);
}
.mab-btn svg { width: 16px; height: 16px; }
.mab-btn.primary { background: var(--violet); border-color: var(--violet); }
@media (max-width: 780px) {
  .mobile-action-bar { display: block; }
  body { padding-bottom: 70px; }
}

/* Mobile menu items with icons — scannable, not just a text stack */
.mobile-panel .mp-icon-row { display: flex; align-items: center; gap: 16px; }
.mobile-panel .mp-icon-row .mi-ic {
  width: 40px; height: 40px; border-radius: 12px;
  background: rgba(255,255,255,0.06);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.mobile-panel .mp-icon-row .mi-ic svg { width: 18px; height: 18px; color: var(--cyan); }
.mobile-panel .mp-icon-row a { flex: 1; padding: 0; border: none; font-size: 24px; }
.mobile-panel li { border-bottom: 1px solid var(--line-soft-white); }
.mobile-panel li:last-child { border-bottom: none; }

/* Utility */
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.center-text { text-align: center; }
.text-cyan { color: var(--cyan); }
.text-violet { color: var(--violet); }
