/* ═══════════════════════════════════════════════════════════
   NexaWeb Studio — Home Page Stylesheet
   ───────────────────────────────────────────────────────────
   1.  Design tokens
   2.  Reset & base
   3.  Layout helpers
   4.  Buttons & links
   5.  Shared components (logo, avatars, stars, doodles)
   6.  Header / nav
   7.  Hero
   8.  Services
   9.  Stats band
   10. Featured work carousel
   11. Testimonials
   12. CTA band
   13. Footer
   14. Scroll animations
   15. Responsive
   ═══════════════════════════════════════════════════════════ */


/* ═══ 1. DESIGN TOKENS ═══════════════════════════════════ */
:root {
  /* Palette */
  --ink:          #0d1526;
  --ink-soft:     #1b2436;
  --body:         #5a6478;
  --body-light:   #7b869a;

  --blue:         #2f7ff6;
  --blue-600:     #2563eb;
  --blue-400:     #60a5fa;
  --blue-100:     #dbe8fb;
  --blue-50:      #eaf2fe;
  --wash:         #eff5ff;
  --wash-deep:    #dfeaff;

  --white:        #ffffff;
  --line:         #e6ecf5;
  --line-soft:    #eff3f9;

  --green:        #2fae6a;
  --purple:       #7c5cf0;
  --gold:         #f5b53f;

  /* Type */
  --font: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --hand: 'Caveat', 'Comic Sans MS', cursive;

  /* Radii */
  --r-sm:   10px;
  --r-md:   16px;
  --r-lg:   22px;
  --r-xl:   30px;
  --r-pill: 999px;

  /* Shadows */
  --sh-sm:  0 2px 8px rgba(17, 38, 76, .05);
  --sh-md:  0 8px 24px rgba(17, 38, 76, .07);
  --sh-lg:  0 18px 48px rgba(17, 38, 76, .10);
  --sh-xl:  0 30px 70px rgba(17, 38, 76, .13);

  /* Metrics */
  --shell:  1240px;
  --gutter: 24px;
  --nav-h:  84px;
}


/* ═══ 2. RESET & BASE ════════════════════════════════════ */
*, *::before, *::after { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.65;
  color: var(--body);
  background: var(--white);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  margin: 0;
  color: var(--ink);
  font-weight: 800;
  letter-spacing: -.028em;
  line-height: 1.06;
}

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

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

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

.ico { width: 18px; height: 18px; flex: 0 0 auto; }


/* ═══ 3. LAYOUT HELPERS ═════════════════════════════════ */
.container {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section        { position: relative; padding: 92px 0; }
.section-flush  { position: relative; padding: 26px 0; }

.eyebrow {
  display: block;
  margin-bottom: 14px;
  color: var(--blue);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .13em;
  text-transform: uppercase;
}

.section-title { font-size: clamp(30px, 3.5vw, 44px); }

.section-head {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 40px;
  margin-bottom: 46px;
}

/* Stable containing block so absolute doodles don't shift
   when the .reveal transform is removed */
.section-head > div { position: relative; }

.section-aside {
  max-width: 330px;
  padding-bottom: 6px;
  color: var(--body);
  font-size: 15px;
  line-height: 1.6;
}

/* Hand-drawn underline behind a word */
.underlined { position: relative; display: inline-block; }
.doodle-underline {
  position: absolute;
  left: -2%;
  bottom: -.16em;
  width: 104%;
  height: .3em;
  color: var(--ink);
  overflow: visible;
}


/* ═══ 4. BUTTONS & LINKS ════════════════════════════════ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 15px 26px;
  border-radius: var(--r-pill);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -.01em;
  white-space: nowrap;
  transition: transform .22s ease, box-shadow .22s ease,
              background-color .22s ease, color .22s ease;
}
.btn .ico { transition: transform .22s ease; }
.btn:hover { transform: translateY(-2px); }
.btn:hover .ico { transform: translateX(3px); }

.btn-dark {
  background: var(--ink);
  color: #fff;
  box-shadow: 0 6px 18px rgba(13, 21, 38, .18);
}
.btn-dark:hover { background: #17233c; box-shadow: 0 12px 26px rgba(13, 21, 38, .26); }

.btn-blue { background: var(--blue); color: #fff; box-shadow: 0 6px 18px rgba(47,127,246,.3); }
.btn-blue:hover { background: var(--blue-600); }

.btn-ghost {
  background: #fff;
  color: var(--ink);
  border: 1.6px solid var(--line);
  box-shadow: var(--sh-sm);
}
.btn-ghost:hover { border-color: #cddbee; box-shadow: var(--sh-md); }

.btn-sm { padding: 12px 22px; font-size: 14px; }
.btn-lg { padding: 17px 30px; font-size: 16px; }

.ico-plane { transform: rotate(0deg); }

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--blue);
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
}
.text-link .ico { width: 16px; height: 16px; transition: transform .2s ease; }
.text-link:hover .ico { transform: translateX(4px); }


/* ═══ 5. SHARED COMPONENTS ══════════════════════════════ */

/* ── Logo ── */
.logo {
  position: relative;
  display: inline-block;
  line-height: 1;
}
.logo-main {
  display: block;
  color: var(--ink);
  font-size: 25px;
  font-weight: 800;
  letter-spacing: -.045em;
}
.logo-sub {
  display: block;
  margin-top: -1px;
  padding-left: 30px;
  color: var(--blue);
  font-family: var(--hand);
  font-size: 21px;
  font-weight: 700;
  letter-spacing: .02em;
}
.logo-spark {
  position: absolute;
  top: -8px;
  right: -14px;
  width: 15px;
  height: 15px;
  color: var(--ink);
}

/* ── Avatars ── */
.avatar-stack { display: flex; align-items: center; }
.avatar {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  margin-right: -10px;
  border: 2.4px solid #fff;
  border-radius: 50%;
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .02em;
  box-shadow: 0 2px 6px rgba(17,38,76,.12);
}
.avatar.lg { width: 42px; height: 42px; font-size: 12px; margin-right: 0; }
.avatar-stack.sm .avatar { width: 22px; height: 22px; border-width: 2px; margin-right: -7px; }

.av-1 { background: linear-gradient(140deg, #6f8bb0, #3f577a); }
.av-2 { background: linear-gradient(140deg, #d8a08c, #b06f57); }
.av-3 { background: linear-gradient(140deg, #7f9f8c, #4d7461); }
.av-4 { background: linear-gradient(140deg, #9aa7d0, #5f6ea3); }

.avatar-more {
  margin-left: 12px;
  color: var(--body-light);
  font-size: 10px;
  font-weight: 700;
}

/* ── Stars ── */
.stars { display: flex; gap: 2px; }
.stars svg { width: 15px; height: 15px; color: var(--gold); }

/* ── Handwritten scribbles ── */
.scribble {
  color: var(--blue);
  font-family: var(--hand);
  font-size: 25px;
  font-weight: 700;
  line-height: 1.05;
}

/* ── Doodles ── */
.doodle {
  position: absolute;
  color: var(--blue);
  pointer-events: none;
  overflow: visible;
}

/* Illustrations. Each is its own file with its own transform, so the float
   animations below never move two of them in lockstep. `height: auto` lets the
   intrinsic ratio drive height while width/height attrs still reserve space. */
.illus {
  position: absolute;
  height: auto;
  pointer-events: none;
  user-select: none;
}

/* Screen-reader-only text — used where copy is baked into an image */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}


/* ═══ 6. HEADER ═════════════════════════════════════════ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 90;
  padding: 16px 0;
  background: rgba(239, 245, 255, .82);
  backdrop-filter: blur(14px);
  transition: box-shadow .3s ease, background-color .3s ease, padding .3s ease;
}
.site-header.is-stuck {
  padding: 10px 0;
  background: rgba(255, 255, 255, .93);
  box-shadow: 0 4px 24px rgba(17, 38, 76, .07);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.main-nav > ul {
  display: flex;
  align-items: center;
  gap: 4px;
}
.main-nav a {
  display: block;
  padding: 9px 18px;
  border-radius: var(--r-pill);
  color: var(--ink-soft);
  font-size: 14.5px;
  font-weight: 600;
  transition: background-color .2s ease, color .2s ease;
}
.main-nav a:hover { background: rgba(47, 127, 246, .09); color: var(--blue-600); }
.main-nav a.is-active { background: var(--blue); color: #fff; box-shadow: 0 4px 12px rgba(47,127,246,.32); }

/* Higher specificity than .btn so it stays hidden on desktop */
.main-nav .nav-cta-mobile { display: none; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2.4px;
  border-radius: 2px;
  background: var(--ink);
  transition: transform .28s ease, opacity .2s ease;
}
.nav-toggle.is-open span:nth-child(1) { transform: translateY(7.4px) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.nav-toggle.is-open span:nth-child(3) { transform: translateY(-7.4px) rotate(-45deg); }


/* ═══ 7. HERO ═══════════════════════════════════════════ */
.hero {
  position: relative;
  padding: 46px 0 110px;
  background: linear-gradient(180deg, var(--wash) 0%, #f5f9ff 62%, #fff 100%);
  overflow: hidden;
}

/* Soft background blobs */
.blob {
  position: absolute;
  z-index: 0;
  border-radius: 50%;
  filter: blur(2px);
}
.blob-a {
  top: -80px;
  right: -60px;
  width: 720px;
  height: 620px;
  background: radial-gradient(ellipse at 40% 40%, #dceafd 0%, rgba(220,234,253,.55) 55%, rgba(220,234,253,0) 72%);
}
.blob-b {
  top: 180px;
  left: 44%;
  width: 520px;
  height: 460px;
  background: radial-gradient(ellipse at 50% 50%, #d6e6fc 0%, rgba(214,230,252,0) 70%);
}

.hero-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, .84fr) minmax(0, 1.16fr);
  align-items: start;
  gap: 40px;
}

/* ── Badge ── */
.pill-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px 8px 14px;
  margin-bottom: 26px;
  border: 1.4px solid #d6e4f7;
  border-radius: var(--r-pill);
  background: #fff;
  box-shadow: var(--sh-sm);
  color: var(--ink);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.pill-badge strong { color: var(--blue); font-weight: 800; }
.badge-bird { width: 17px; height: 17px; color: #6f8db3; }

/* ── Headline ── */
.hero-title {
  margin-bottom: 26px;
  font-size: clamp(38px, 4.6vw, 60px);
  line-height: 1.03;
  letter-spacing: -.038em;
}
.hero-title .accent { display: block; }

.hero-lead {
  max-width: 400px;
  margin-bottom: 32px;
  font-size: 15.5px;
  line-height: 1.72;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 13px;
  margin-bottom: 40px;
}

/* ── Social proof ── */
.social-proof {
  display: flex;
  align-items: center;
  gap: 22px;
}
.proof-text { display: flex; flex-direction: column; gap: 1px; }
.proof-text > span {
  color: var(--body);
  font-size: 13px;
  font-weight: 600;
}

/* ── Visual column ── */
.hero-visual {
  position: relative;
  min-height: 520px;
  /* Top padding leaves room for the tui to stand on the mockup's top edge
     without breaching the hero's overflow boundary. */
  padding: 84px 0 60px;
}

/* Browser mockup */
.mockup {
  position: relative;
  z-index: 2;
  width: 100%;
  border-radius: var(--r-xl);
  background: #fff;
  box-shadow: var(--sh-xl);
  overflow: hidden;
}
.mockup-topbar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 20px 22px 6px;
}
.mockup-logo {
  color: var(--ink);
  font-size: 15px;
  font-weight: 800;
  letter-spacing: -.04em;
  line-height: 1;
}
.mockup-logo em {
  display: block;
  padding-left: 18px;
  color: var(--blue);
  font-family: var(--hand);
  font-size: 13px;
  font-style: normal;
  font-weight: 700;
}
.mockup-nav {
  display: flex;
  flex: 0 1 auto;
  gap: 13px;
  margin-left: auto;
  color: var(--ink-soft);
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
}
.mockup-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 15px;
  border-radius: var(--r-pill);
  background: var(--ink);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}
.mockup-btn .ico { width: 13px; height: 13px; }

.mockup-body { padding: 26px 26px 34px; }
.mockup-head {
  margin-bottom: 12px;
  font-size: clamp(20px, 2.1vw, 30px);
  line-height: 1.1;
}
.mockup-head .wave { display: inline-block; font-size: .9em; }
.mockup-sub {
  margin-bottom: 20px;
  color: var(--body);
  font-size: 12.5px;
  font-weight: 500;
}
.mockup-cta {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 11px 20px;
  border-radius: var(--r-pill);
  background: var(--blue);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  box-shadow: 0 6px 16px rgba(47,127,246,.3);
}
.mockup-cta .ico { width: 14px; height: 14px; }

.mockup-dots {
  display: flex;
  gap: 14px;
  margin-top: 30px;
}
.mockup-dots svg { width: 17px; height: 17px; }

/* Floating stat cards */
.float-card {
  position: absolute;
  z-index: 4;
  border-radius: var(--r-lg);
  background: #fff;
  box-shadow: var(--sh-lg);
}
.fc-label {
  display: block;
  color: var(--body-light);
  font-size: 10.5px;
  font-weight: 700;
}
.fc-value {
  display: block;
  margin-top: 2px;
  color: var(--ink);
  font-size: 25px;
  font-weight: 800;
  letter-spacing: -.035em;
  line-height: 1.1;
}
.fc-note {
  display: block;
  color: var(--body-light);
  font-size: 9.5px;
  font-weight: 600;
}

.card-traffic {
  top: 27%;          /* clears the mockup's own nav row */
  right: -10px;
  width: 47%;
  min-width: 210px;
  padding: 16px 18px 8px;
}
.card-traffic .spark { width: 100%; height: 74px; margin-top: 4px; }
.spark-line {
  stroke-dasharray: 700;
  stroke-dashoffset: 700;
  animation: draw 1.9s .4s ease forwards;
}
@keyframes draw { to { stroke-dashoffset: 0; } }

.card-leads {
  top: 56%;
  right: 2%;
  display: flex;
  align-items: center;
  gap: 16px;
  width: 54%;
  min-width: 250px;
  padding: 18px 22px;
}
.donut { flex: 0 0 auto; width: 82px; }
.donut-arc {
  stroke-dasharray: 276;
  stroke-dashoffset: 276;
  animation: arc 1.6s .5s cubic-bezier(.4,0,.2,1) forwards;
}
@keyframes arc { to { stroke-dashoffset: 90; } }
.leads-info { min-width: 0; }
.leads-info .avatar-stack { margin-top: 8px; }

.float-thumb {
  position: absolute;
  z-index: 5;
  bottom: 26px;
  left: 38%;
  width: 128px;
  border: 4px solid #fff;
  border-radius: var(--r-md);
  box-shadow: var(--sh-lg);
  overflow: hidden;
}
.float-thumb svg,
.float-thumb img { width: 100%; height: 80px; object-fit: cover; }

/* Hero illustrations & doodles */
.illus-tui {
  /* Below the mockup (z-index 2) so the topbar crops the tui's legs and it
     reads as perched behind the window rather than standing on it. */
  z-index: 1;
  top: 18px;
  right: 11%;
  width: 116px;
}
.illus-fern-hero {
  z-index: 1;
  top: 158px;
  right: -76px;      /* reaches past the mockup so the tips actually show */
  width: 200px;
  rotate: 4deg;
}
.doodle-hero-lines  { top: 26px;  left: 2%;    width: 40px; }
.doodle-hero-arrow  { bottom: -6px; left: -4%;  width: 220px; color: var(--blue); z-index: 3; }
.doodle-hero-squiggle { bottom: 26px; right: 8%; width: 58px; }


/* ═══ 8. SERVICES ═══════════════════════════════════════ */
.services { padding-top: 30px; }

.doodle-head-arrow { top: 56px; left: 300px; width: 74px; color: var(--ink); }
.doodle-crown      { top: 26px; right: 34px; width: 36px; }

.service-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 18px;
}

.service-card {
  position: relative;
  padding: 24px 22px 60px;
  border: 1.4px solid var(--line);
  border-radius: var(--r-lg);
  background: #fff;
  box-shadow: var(--sh-sm);
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}
.service-card:hover {
  transform: translateY(-7px);
  border-color: #d2e2f8;
  box-shadow: var(--sh-lg);
}

.svc-icon {
  display: flex;
  align-items: flex-end;
  width: 78px;
  height: 78px;
  margin-bottom: 24px;
}
.svc-icon svg,
.svc-icon img {
  width: 100%;
  height: auto;
  max-height: 100%;
  object-fit: contain;
  transition: transform .38s cubic-bezier(.34, 1.56, .64, 1);
}
/* Icons lift and tilt independently of the card itself */
.service-card:hover .svc-icon img { transform: translateY(-6px) scale(1.07) rotate(-3deg); }

.service-card h3 {
  margin-bottom: 10px;
  font-size: 16.5px;
  line-height: 1.28;
  letter-spacing: -.022em;
}
.service-card p {
  font-size: 13px;
  line-height: 1.62;
  color: var(--body);
}

.svc-link {
  position: absolute;
  bottom: 22px;
  left: 22px;
  display: grid;
  place-items: center;
  width: 33px;
  height: 33px;
  border: 1.4px solid var(--blue-100);
  border-radius: 50%;
  background: var(--blue-50);
  color: var(--blue);
  transition: background-color .25s ease, color .25s ease, transform .25s ease;
}
.svc-link .ico { width: 15px; height: 15px; }
.service-card:hover .svc-link {
  background: var(--blue);
  border-color: var(--blue);
  color: #fff;
  transform: translateX(3px);
}


/* ═══ 9. STATS BAND ═════════════════════════════════════ */
.stats-band {
  position: relative;
  display: flex;
  align-items: center;
  gap: 30px;
  padding: 30px 170px 30px 40px;   /* right padding clears the island */
  border-radius: var(--r-xl);
  background: linear-gradient(100deg, #dceaff 0%, #d3e4ff 55%, #cfe3ff 100%);
  overflow: hidden;
}

.stats-tag {
  position: relative;
  flex: 0 0 auto;
  color: var(--ink);
  font-family: var(--hand);
  font-size: 24px;
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: .04em;
  text-transform: uppercase;
  transform: rotate(-9deg);
}
.doodle-stats-lines { top: -18px; left: -22px; width: 26px; color: var(--ink); }

.stats-list {
  position: relative;   /* keeps stats above the island illustration */
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  flex: 1;
  margin: 0;
}
.stats-list .stat {
  padding: 4px 18px;
  text-align: center;
}
.stats-list .stat + .stat { border-left: 1.5px solid rgba(19, 55, 110, .16); }

.stat-num {
  color: var(--ink);
  font-size: clamp(24px, 2.4vw, 33px);
  font-weight: 800;
  letter-spacing: -.04em;
  line-height: 1.1;
}
.stats-list dd {
  margin: 3px 0 0;
  color: #43536d;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.42;
}

.illus-island {
  right: -4px;
  bottom: -6px;
  width: 196px;
}


/* ═══ 10. FEATURED WORK ═════════════════════════════════ */
.work { padding-top: 76px; }
.work-head { align-items: flex-end; }
.doodle-work-swoosh { right: -8px; top: 44px; width: 46px; color: var(--ink); }

.carousel-wrap {
  position: relative;
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.carousel {
  overflow: hidden;
  padding: 6px 0 4px;
}

.carousel-track {
  display: flex;
  gap: 18px;
  transition: transform .55s cubic-bezier(.4, 0, .2, 1);
  will-change: transform;
}

.work-card {
  /* Three real projects, so three across on desktop. */
  flex: 0 0 calc((100% - 2 * 18px) / 3);
  min-width: 0;
}

.wc-media {
  position: relative;
  display: flex;
  align-items: flex-end;
  height: 300px;
  padding: 20px;
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--sh-md);
  transition: transform .35s ease, box-shadow .35s ease;
}
.work-card:hover .wc-media { transform: translateY(-6px); box-shadow: var(--sh-lg); }

/* ── Cards backed by a real screenshot ──
   The photo carries its own headline and button, so the CSS placeholder scene
   (::before / ::after gradients) is switched off. Add `has-image` + an <img>
   to any card as its artwork arrives; nothing else needs changing. */
.wc-media.has-image::before,
.wc-media.has-image::after { display: none; }

.wc-media.has-image { background: var(--line-soft); }

.wc-media.has-image img {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .6s cubic-bezier(.22, .8, .3, 1);
}
.work-card:hover .wc-media.has-image img { transform: scale(1.05); }

.wc-inner { position: relative; z-index: 3; color: #fff; }
.wc-inner.dark-text { color: var(--ink); }
.wc-inner h3 {
  margin-bottom: 8px;
  color: inherit;
  font-size: 19px;
  line-height: 1.15;
  letter-spacing: -.03em;
}
.wc-inner p {
  margin-bottom: 14px;
  font-size: 10.5px;
  line-height: 1.5;
  opacity: .82;
}
.wc-btn {
  display: inline-block;
  padding: 7px 14px;
  border-radius: var(--r-pill);
  background: #fff;
  color: var(--ink);
  font-size: 10px;
  font-weight: 700;
}
.wc-btn.green  { background: var(--green);  color: #fff; }
.wc-btn.purple { background: var(--purple); color: #fff; }

.wc-chip {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 4;
  padding: 4px 11px;
  border-radius: var(--r-pill);
  background: var(--green);
  color: #fff;
  font-size: 8.5px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.wc-chip.light  { background: #cfe3d3; color: #2b5c3c; }
.wc-chip.purple { background: var(--purple); }

.wc-tag {
  display: inline-block;
  margin: 14px auto 0;
  padding: 5px 14px;
  border-radius: var(--r-pill);
  background: var(--line-soft);
  color: var(--ink-soft);
  font-size: 11px;
  font-weight: 700;
}
.work-card { display: flex; flex-direction: column; align-items: center; }
.work-card .wc-media { width: 100%; }

/* Card scene backgrounds */
.wc-tourism {
  background:
    radial-gradient(120% 60% at 50% 8%, #6d94bd 0%, rgba(109,148,189,0) 60%),
    linear-gradient(180deg, #5c7fa6 0%, #2f4a6b 46%, #16283d 100%);
}
.wc-tourism::before {
  content: '';
  position: absolute;
  inset: 34% 0 0;
  background:
    linear-gradient(150deg, transparent 46%, #24405f 46%),
    linear-gradient(-140deg, transparent 42%, #1b3350 42%);
  opacity: .95;
}
.wc-tourism::after {
  content: '';
  position: absolute;
  inset: auto 0 0 0;
  height: 42%;
  background: linear-gradient(180deg, rgba(9,17,30,0) 0%, rgba(9,17,30,.86) 62%);
}

.wc-ecom { background: linear-gradient(180deg, #eee9df 0%, #e4ddce 100%); }
.wc-ecom::after {
  content: '';
  position: absolute;
  inset: auto 0 0 0;
  height: 46%;
  background: linear-gradient(180deg, rgba(238,233,223,0), rgba(232,226,213,.9));
}

.wc-construct {
  background: linear-gradient(180deg, #16233a 0%, #1d3050 55%, #101b2d 100%);
}
.wc-construct::after {
  content: '';
  position: absolute;
  inset: auto 0 0 0;
  height: 52%;
  background: linear-gradient(180deg, rgba(11,18,32,0), rgba(11,18,32,.9));
}

.wc-saas { background: linear-gradient(180deg, #efeafd 0%, #e3dbfa 100%); }
.wc-saas::after {
  content: '';
  position: absolute;
  inset: auto 0 0 0;
  height: 44%;
  background: linear-gradient(180deg, rgba(239,234,253,0), rgba(230,222,250,.92));
}

.wc-marketing {
  background: linear-gradient(180deg, #2b5f3a 0%, #1c4327 52%, #0f2a18 100%);
}
.wc-marketing::before {
  content: '';
  position: absolute;
  inset: 20% -10% -10% -10%;
  border-radius: 50% 50% 0 0 / 30% 30% 0 0;
  background: radial-gradient(60% 70% at 30% 20%, #4b8a5b 0%, rgba(75,138,91,0) 70%),
              linear-gradient(180deg, #33693f, #14311d);
}
.wc-marketing::after {
  content: '';
  position: absolute;
  inset: auto 0 0 0;
  height: 46%;
  background: linear-gradient(180deg, rgba(8,25,14,0), rgba(8,25,14,.85));
}

/* Product-bottle placeholders */
.wc-bottles {
  position: absolute;
  z-index: 2;
  top: 40%;
  left: 50%;
  display: flex;
  align-items: flex-end;
  gap: 9px;
  transform: translate(-50%, -34%);
}
.bottle {
  display: block;
  border-radius: 5px 5px 7px 7px;
  background: linear-gradient(160deg, #fdfcf9, #ded6c6);
  box-shadow: 0 8px 18px rgba(60,50,30,.18);
}
.bottle::before {
  content: '';
  display: block;
  width: 46%;
  height: 12%;
  margin: -12% auto 0;
  border-radius: 3px 3px 0 0;
  background: #cfc6b3;
}
.b1 { width: 26px; height: 62px; }
.b2 { width: 32px; height: 80px; }
.b3 { width: 24px; height: 54px; }
.wc-bottles.pale .bottle { background: linear-gradient(160deg, #fbfaff, #d9d0f5); }
.wc-bottles.pale .bottle::before { background: #c3b7ea; }

/* Building placeholder */
.wc-building {
  position: absolute;
  z-index: 2;
  bottom: 32%;
  left: 12%;
  right: 12%;
  display: flex;
  align-items: flex-end;
  gap: 6px;
  height: 42%;
}
.wc-building span {
  flex: 1;
  border-radius: 4px 4px 0 0;
  background: linear-gradient(180deg, #3f6288, #223a58);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.08);
}
.wc-building span:nth-child(1) { height: 58%; }
.wc-building span:nth-child(2) { height: 84%; }
.wc-building span:nth-child(3) { height: 70%; }
.wc-building span:nth-child(4) { height: 92%; }

/* Carousel buttons */
.car-btn {
  position: absolute;
  top: 132px;
  z-index: 12;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1.4px solid var(--line);
  border-radius: 50%;
  background: #fff;
  color: var(--ink);
  box-shadow: var(--sh-md);
  transition: transform .2s ease, box-shadow .2s ease, opacity .2s ease;
}
.car-btn:hover { transform: scale(1.08); box-shadow: var(--sh-lg); }
/* Nothing to scroll to, so get the arrows out of the way entirely. */
.car-btn:disabled { opacity: 0; pointer-events: none; transform: none; }
.car-prev { left: 0; }
.car-next { right: 0; }

.illus-gull { top: -48px; right: 6%; width: 112px; z-index: 3; }


/* ═══ 11. TESTIMONIALS ══════════════════════════════════ */
.testimonials { padding-top: 76px; overflow: hidden; }

.test-grid {
  display: grid;
  grid-template-columns: minmax(0, .62fr) minmax(0, 1.38fr);
  align-items: start;
  gap: 40px;
}

.test-intro { position: relative; padding-bottom: 180px; }
.doodle-test-heart { top: 106px; left: 176px; width: 34px; }

/* Kiwi sits in front; the fern is dropped down and tucked behind it. */
.illus-kiwi { bottom: 0; left: 10px; width: 212px; z-index: 2; }
.illus-fern-test { bottom: -14px; left: -56px; width: 152px; rotate: -5deg; z-index: 1; }

.test-cards {
  position: relative;
  align-self: start;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.test-card {
  padding: 22px 22px 24px;
  border: 1.4px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--blue-50);
  transition: transform .3s ease, box-shadow .3s ease, background-color .3s ease;
}
.test-card:hover {
  transform: translateY(-6px);
  background: #fff;
  box-shadow: var(--sh-lg);
}

.tc-top {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.test-card blockquote {
  margin: 0 0 18px;
  color: var(--ink-soft);
  font-size: 12.5px;
  font-style: italic;
  line-height: 1.66;
}
.test-card footer { display: flex; flex-direction: column; }
.test-card footer strong {
  color: var(--ink);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: -.015em;
}
.test-card footer span {
  color: var(--body-light);
  font-size: 11px;
  font-weight: 600;
}

.scribble-cheers {
  position: absolute;
  right: -46px;
  bottom: 40px;
  text-align: center;
  transform: rotate(-8deg);
}
.doodle-thumb { right: -50px; bottom: 6px; width: 30px; }


/* ═══ 12. CTA BAND ══════════════════════════════════════ */
.cta-section { padding: 46px 0 20px; }
.cta-section .container { position: relative; }

.cta-band {
  position: relative;
  display: flex;
  align-items: center;
  gap: 34px;
  padding: 44px 52px 44px 168px;
  border-radius: var(--r-xl);
  background: linear-gradient(100deg, #e3eefe 0%, #dbe9fe 60%, #d6e6fe 100%);
  overflow: hidden;
}

.cta-copy { position: relative; flex: 1; min-width: 0; }
.cta-copy .section-title { margin-bottom: 12px; font-size: clamp(24px, 2.6vw, 33px); }
.cta-copy p {
  color: #4b5b74;
  font-size: 14px;
  line-height: 1.6;
}
.doodle-cta-swirl {
  top: 42px;
  right: -6px;
  width: 42px;
  color: var(--ink);
  transform: rotate(-14deg);
}

/* position + z-index so the button sits in front of the NZ map, which passes
   behind its lower-right corner exactly as in the reference */
.cta-action { position: relative; z-index: 3; flex: 0 0 auto; }

/* The generated board is a tall upright portrait, so it's sized by width to
   land at roughly the height of the band. */
.illus-surf { left: 26px; bottom: -10px; width: 112px; z-index: 2; }
/* Positioned against .cta-section .container, so it overhangs the band's
   lower-right corner the way the reference does. */
.illus-nz    { right: 30px; bottom: -54px; width: 118px; opacity: .92; z-index: 2; }


/* ═══ 13. FOOTER ════════════════════════════════════════ */
.site-footer {
  position: relative;
  padding: 56px 0 24px;
  background: #fff;
  overflow: hidden;
}
.site-footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  width: 92%;
  max-width: var(--shell);
  height: 1px;
  background: var(--line);
  transform: translateX(-50%);
}

.footer-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.45fr .8fr .8fr 1.05fr .9fr;
  gap: 36px;
  padding-bottom: 34px;
}

.footer-brand { max-width: 250px; }
.footer-brand .logo { margin-bottom: 16px; }
.footer-brand p {
  margin-bottom: 18px;
  font-size: 12.5px;
  line-height: 1.68;
}
.scribble-aotearoa {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 22px;
}
.inline-heart { position: static; width: 17px; height: 17px; }

.footer-col h4 {
  margin-bottom: 15px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: -.01em;
}
.footer-col li + li { margin-top: 8px; }
.footer-col a {
  color: var(--body);
  font-size: 12.5px;
  font-weight: 500;
  transition: color .2s ease;
}
.footer-col a:hover { color: var(--blue); }

.contact-list li + li { margin-top: 6px; }

.socials {
  display: flex;
  gap: 10px;
  margin-top: 20px;
}
.socials a {
  display: grid;
  place-items: center;
  width: 33px;
  height: 33px;
  border-radius: 50%;
  background: var(--line-soft);
  color: var(--ink-soft);
  transition: background-color .22s ease, color .22s ease, transform .22s ease;
}
.socials svg { width: 16px; height: 16px; }
.socials a:hover { background: var(--blue); color: #fff; transform: translateY(-3px); }

.footer-flourish {
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  gap: 10px;
  padding-bottom: 4px;
}
.scribble-proudly {
  text-align: center;
  font-size: 23px;
  transform: rotate(-4deg);
}
.footer-heart { position: static; width: 26px; height: 26px; color: var(--ink); }

.footer-bottom {
  padding-top: 18px;
  border-top: 1px solid var(--line-soft);
  text-align: center;
}
.footer-bottom p {
  color: var(--body-light);
  font-size: 11.5px;
  font-weight: 500;
}


/* ═══ 13b. AMBIENT MOTION ═══════════════════════════════
   Each illustration is its own file, so each gets its own drift.
   These animate `translate` rather than `transform`, which leaves the static
   `rotate` on the ferns untouched — no need to re-declare it in keyframes.
   Mismatched durations plus negative delays mean nothing ever syncs up.      */

@keyframes driftY  { 50% { translate: 0 -13px; } }
@keyframes driftYX { 50% { translate: -7px -10px; } }
@keyframes glideBy { 50% { translate: -22px -12px; } }

.float-slow { animation: driftY  8.5s  ease-in-out -1.2s infinite; }
.float-med  { animation: driftYX 6.4s  ease-in-out -3.7s infinite; }
.glide      { animation: glideBy 11s   ease-in-out -5s   infinite; }

/* Per-element overrides so no two share a period */
.illus-tui       { animation-duration: 7.2s;  animation-delay: -0.4s; }
.illus-fern-hero { animation-duration: 9.8s;  animation-delay: -2.1s; }
.illus-island    { animation-duration: 8.1s;  animation-delay: -5.3s; }
.illus-kiwi      { animation-duration: 6.9s;  animation-delay: -3.1s; }
.illus-fern-test { animation-duration: 11.4s; animation-delay: -6.8s; }

/* Parallax — JS writes --pz per element on scroll */
.parallax { translate: 0 calc(var(--pz, 0) * 1px); }


/* ═══ 14. SCROLL ANIMATIONS ═════════════════════════════ */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .72s cubic-bezier(.22,.8,.3,1),
              transform .72s cubic-bezier(.22,.8,.3,1);
}
.reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .spark-line { stroke-dashoffset: 0; animation: none; }
  .donut-arc  { stroke-dashoffset: 90; animation: none; }
  .carousel-track { transition: none; }
  .float-slow, .float-med, .glide { animation: none; translate: none; }
  .parallax { translate: none; }
  .service-card:hover .svc-icon img,
  .work-card:hover .wc-media.has-image img { transform: none; }
  * { animation-duration: .001s !important; }
}


/* ═══ 15. RESPONSIVE ════════════════════════════════════ */

/* ── ≤1180px : tighter grids ── */
@media (max-width: 1180px) {
  .service-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .work-card    { flex-basis: calc((100% - 2 * 18px) / 3); }
  .doodle-head-arrow { display: none; }
  .cta-band { padding-left: 180px; }
  .illus-surf { width: 140px; }
}

/* ── ≤1024px : stack hero, nav drawer ── */
@media (max-width: 1024px) {
  .section { padding: 68px 0; }
  .work, .testimonials, .services { padding-top: 56px; }

  /* Nav drawer */
  .header-cta { display: none; }
  .nav-toggle { position: relative; z-index: 96; display: flex; }

  .main-nav {
    position: fixed;
    inset: 0 0 0 auto;
    z-index: 95;
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: min(320px, 84vw);
    padding: 100px 28px 40px;
    background: #fff;
    box-shadow: -12px 0 48px rgba(17,38,76,.16);
    transform: translateX(100%);
    transition: transform .38s cubic-bezier(.4,0,.2,1);
  }
  .main-nav.is-open { transform: none; }
  .main-nav > ul { flex-direction: column; align-items: stretch; gap: 4px; }
  .main-nav a { padding: 13px 18px; font-size: 16px; }
  .main-nav .nav-cta-mobile { display: inline-flex; margin-top: 14px; justify-content: center; }
  body.nav-open { overflow: hidden; }

  /* Hero */
  .hero { padding-bottom: 80px; }
  .hero-grid { grid-template-columns: 1fr; gap: 20px; }
  .hero-copy { max-width: 620px; }
  .hero-title br { display: none; }
  .hero-title .accent { display: inline; }
  .hero-lead { max-width: 560px; }
  .hero-visual { min-height: 0; padding-bottom: 190px; }
  .card-traffic { top: 40px; right: -6px; width: 44%; }
  .card-leads { top: auto; bottom: 66px; right: 0; width: 60%; }
  .float-thumb { top: auto; bottom: 6px; left: 4%; }
  .illus-tui { top: 22px; right: 6%; width: 92px; }
  .illus-fern-hero { top: 84px; right: -40px; width: 138px; }
  .doodle-hero-arrow { display: none; }

  /* Sections */
  .section-head { grid-template-columns: 1fr; gap: 18px; }
  .section-aside { max-width: 460px; }
  .doodle-crown, .doodle-work-swoosh { display: none; }

  /* Stats */
  .stats-band { flex-direction: column; align-items: stretch; gap: 20px; padding: 28px 26px 34px; }
  .cta-band { padding-right: 34px; }
  .stats-tag { align-self: flex-start; }
  .illus-island { width: 156px; }
  .stats-list { padding-right: 0; }
  .stats-band { padding-right: 26px; }

  /* Testimonials */
  .test-grid { grid-template-columns: 1fr; }
  .test-intro { padding-bottom: 200px; }
  .illus-kiwi { left: 50%; margin-left: -110px; width: 192px; }
  .illus-fern-test { left: -30px; bottom: -12px; width: 132px; }
  .doodle-test-heart { left: auto; right: 24%; top: 96px; }
  .scribble-cheers, .doodle-thumb { display: none; }

  /* CTA */
  .cta-band { flex-direction: column; align-items: flex-start; padding: 34px 34px 40px 150px; }
  .illus-surf { left: 20px; bottom: -8px; width: 104px; }
  .illus-nz { right: 18px; bottom: -40px; width: 92px; }
  .doodle-cta-swirl { display: none; }

  /* Footer */
  .footer-grid { grid-template-columns: repeat(2, 1fr); gap: 32px; padding-bottom: 24px; }
  .footer-brand { grid-column: 1 / -1; max-width: 420px; }
  .footer-flourish { grid-column: 1 / -1; justify-content: center; }
  .scribble-proudly { font-size: 20px; }
}

/* ── ≤760px : two-up cards ── */
@media (max-width: 760px) {
  :root { --gutter: 18px; }

  .service-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .work-card    { flex-basis: calc((100% - 18px) / 2); }
  .test-cards   { grid-template-columns: 1fr; }

  .wc-media { height: 268px; }
  .car-btn { top: 120px; width: 38px; height: 38px; }
  .car-prev { left: 4px; }
  .car-next { right: 4px; }
  .illus-gull { display: none; }

  .stats-list { grid-template-columns: repeat(2, 1fr); gap: 22px 0; padding-right: 0; }
  .stats-list .stat + .stat { border-left: 0; }
  .stats-list .stat:nth-child(even) { border-left: 1.5px solid rgba(19,55,110,.16); }
  .illus-island { width: 118px; bottom: -6px; right: -12px; opacity: .6; }
}

/* ── ≤560px : single column ── */
@media (max-width: 560px) {
  .section { padding: 54px 0; }
  .services, .work, .testimonials { padding-top: 44px; }

  .hero { padding: 30px 0 60px; }
  .hero-title { font-size: 34px; }
  .hero-actions .btn { flex: 1 1 100%; justify-content: center; }
  .social-proof { gap: 16px; }

  .hero-visual { padding-bottom: 210px; }
  .card-traffic { width: 62%; min-width: 0; top: 24px; }
  .card-leads { width: 84%; min-width: 0; gap: 12px; padding: 14px 16px; }
  .donut { width: 62px; }
  .fc-value { font-size: 21px; }
  .float-thumb { width: 100px; }
  .illus-tui { width: 72px; top: 26px; right: 4%; }
  .illus-fern-hero { width: 106px; top: 56px; right: -32px; }
  .doodle-hero-lines, .doodle-hero-squiggle { display: none; }

  .mockup-nav { display: none; }
  .mockup-topbar { justify-content: space-between; }
  .mockup-btn { margin-left: auto; }

  .service-grid { grid-template-columns: 1fr; }
  .work-card { flex-basis: 100%; }
  .svc-icon { width: 64px; height: 64px; margin-bottom: 18px; }

  .stats-band { padding: 24px 20px 30px; }
  .stats-list .stat { padding-inline: 8px; }

  .cta-band { padding: 26px 22px 34px 112px; border-radius: var(--r-lg); }
  .cta-action .btn { width: 100%; justify-content: center; }
  .illus-surf { left: 8px; width: 84px; }
  .illus-nz { width: 66px; right: 10px; bottom: -28px; opacity: .8; }

  .footer-grid { grid-template-columns: 1fr; padding-bottom: 20px; }
}
/* === NexaWeb Group :: partner strip === */
.nwg-partners{ padding:26px 0 30px; border-top:1px solid var(--line) }
.nwg-partners-title{
  margin:0 0 16px; font-size:12px; font-weight:800; letter-spacing:.12em;
  text-transform:uppercase; color:var(--body-light);
}
.nwg-partner-list{ list-style:none; margin:0; padding:0; display:flex; flex-wrap:wrap; gap:12px }
.nwg-partner{
  display:flex; align-items:center; gap:11px; padding:11px 17px 11px 13px;
  border:1px solid var(--line); border-radius:var(--r-md); background:var(--white);
  transition:border-color .22s ease, box-shadow .22s ease, transform .22s ease;
}
.nwg-partner svg{ width:24px; height:24px; flex:none; color:var(--blue) }
.nwg-partner b{ display:block; font-size:13.5px; font-weight:700; line-height:1.2; color:var(--ink) }
.nwg-partner small{ display:block; margin-top:2px; font-size:11.5px; font-weight:500; color:var(--body-light) }
.nwg-partner.is-self{ background:var(--line-soft); border-color:transparent }
.nwg-partner.is-self svg{ color:var(--body-light) }
@media (max-width:600px){ .nwg-partner-list{ gap:10px } .nwg-partner{ padding:10px 14px 10px 11px } }
/* === /NexaWeb Group === */
