/* ==========================================================
   Sagestics Digital — SEO, Marketing & Web Development Agency
   Font: Plus Jakarta Sans
   ========================================================== */

*, *::before, *::after { box-sizing: border-box; }

:root {
  --accent: #502590;      /* brand purple */
  --accent-hi: #a37bff;   /* lighter tint for text/lines on dark surfaces */
}

html {
  scroll-behavior: smooth;
}

html, body {
  margin: 0;
  padding: 0;
  background: #000;
  color: #e9e9e7;
  font-family: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  font-weight: 400;
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; }

/* ---------- HEADER ---------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 22px 40px;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background .35s ease, padding .35s ease, border-color .35s ease;
}
.site-header.is-scrolled {
  padding: 14px 40px;
  background: rgba(8,8,10,0.94);
  border-bottom-color: rgba(255,255,255,0.07);
}
.site-header a,
.site-header button { pointer-events: auto; }

.header-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  max-width: 1720px;
  margin: 0 auto;
}
.header-right {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 14px;
}

.site-logo img {
  display: block;
  width: auto;
  height: 32px;
}

/* Menu button */
.menu-toggle {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  background: transparent;
  border: 0;
  color: #e9e9e7;
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 0.02em;
  cursor: pointer;
  padding: 8px 4px;
}
.menu-label {
  font-family: "Plus Jakarta Sans", sans-serif;
  font-weight: 500;
}
.menu-icon {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 34px;
}
.menu-icon span {
  display: block;
  height: 2px;
  background: var(--accent-hi); /* burger bars */
  width: 100%;
  transition: transform .35s ease, opacity .25s ease;
}
.menu-toggle[aria-expanded="true"] .menu-icon span:first-child {
  transform: translateY(4px) rotate(45deg);
}
.menu-toggle[aria-expanded="true"] .menu-icon span:last-child {
  transform: translateY(-4px) rotate(-45deg);
}

/* ---------- HERO ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  padding: 150px 60px 130px;
  overflow: hidden;
  background: #000;
  isolation: isolate;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: #000;
}

/* Gradient orb — recreates the soft coloured glow on black */
.orb {
  position: absolute;
  border-radius: 50%;
  opacity: 0.9;
}
.orb-a {
  width: 900px;
  height: 900px;
  right: -180px;
  top: -120px;
  background: radial-gradient(circle at 40% 50%,
      rgba(255,180,120,0.85) 0%,
      rgba(255,120,90,0.55) 25%,
      rgba(160,80,200,0.55) 55%,
      rgba(60,20,90,0.0) 75%);
}
.orb-b {
  width: 700px;
  height: 700px;
  right: 80px;
  top: 220px;
  background: radial-gradient(circle at 50% 50%,
      rgba(190,120,220,0.7) 0%,
      rgba(120,60,200,0.45) 40%,
      rgba(30,10,70,0.0) 75%);
}
.orb-c {
  width: 500px;
  height: 500px;
  right: 320px;
  top: 520px;
  background: radial-gradient(circle at 50% 50%,
      rgba(255,140,90,0.55) 0%,
      rgba(200,80,140,0.35) 40%,
      rgba(20,0,40,0.0) 75%);
}

@keyframes float {
  from { transform: translate(0,0) scale(1); }
  to   { transform: translate(-40px, 30px) scale(1.05); }
}


.hero-inner {
  position: relative;
  z-index: 2;
  max-width: 1720px;
  margin: 0 auto;
}

.hero-title {
  font-family: "Plus Jakarta Sans", sans-serif;
  font-weight: 300;
  font-size: clamp(34px, 4.3vw, 68px);
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: #f2f0ec;
  margin: 0 0 26px;
  max-width: 820px;
}

.rotator {
  display: inline-block;
  position: relative;
  vertical-align: top;
  white-space: nowrap;
}
.rotator .word {
  display: inline-block;
  opacity: 0;
  transform: translateY(0.42em);
  transition: opacity .45s ease, transform .55s cubic-bezier(.22,.8,.28,1);
  position: absolute;
  left: 0;
  top: 0;
  white-space: nowrap;
  font-style: italic;
  font-weight: 300;
  padding-right: .08em;
  background: linear-gradient(95deg, #d3bcff 0%, #a37bff 40%, #ffab7a 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}
.rotator .word.is-active {
  opacity: 1;
  transform: translateY(0);
  position: relative;
}
.rotator .word.is-out {
  opacity: 0;
  transform: translateY(-0.42em);
}

/* Reel button (play icon + text) */
.reel-btn {
  display: inline-flex;
  align-items: center;
  gap: 22px;
  margin-bottom: 0;
  color: #f2f0ec;
  font-weight: 500;
  font-size: 17px;
}
.play-icon {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 34% 28%, #8a4fc4 0%, #5a2a9e 45%, #34176a 100%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  position: relative;
  box-shadow:
    inset 0 1px 1px rgba(255,255,255,0.28),
    0 8px 30px rgba(90,42,158,0.35);
  transition: transform .3s ease;
}
.play-icon svg {
  width: 26px;
  height: 26px;
  margin-left: 3px;
  display: block;
}
.reel-btn:hover .play-icon {
  transform: scale(1.06);
}

.hero-tag {
  max-width: 560px;
  color: #cfcdc7;
  font-size: 17px;
  font-weight: 400;
  line-height: 1.6;
  margin: 0 0 38px;
}

/* Right-side social rail */
.social-rail {
  list-style: none;
  margin: 0;
  padding: 0;
  position: absolute;
  right: 34px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 22px;
  z-index: 3;
}
.social-rail a {
  color: #e9e9e7;
  font-size: 18px;
  opacity: 0.85;
  transition: opacity .25s ease, color .25s ease;
}
.social-rail a:hover {
  opacity: 1;
  color: var(--accent-hi);
}

/* ---------- DROPDOWN MENU CARD ---------- */
.menu-overlay {
  position: fixed;
  inset: 0;
  z-index: 120;
  background: rgba(0,0,0,0.35);
  opacity: 0;
  visibility: hidden;
  transition: opacity .35s ease, visibility .35s ease;
}
.menu-overlay.is-open {
  opacity: 1;
  visibility: visible;
}
.menu-panel {
  position: absolute;
  top: 10px;
  right: 10px;
  width: min(480px, calc(100vw - 20px));
  max-height: calc(100vh - 20px);
  overflow-y: auto;
  background: #fff;
  color: #111;
  border-radius: 22px;
  box-shadow: 0 30px 80px rgba(0,0,0,0.45);
  transform-origin: top right;
  transform: scale(.92) translateY(-10px);
  opacity: 0;
  transition: transform .45s cubic-bezier(.22,.8,.28,1), opacity .3s ease;
}
.menu-overlay.is-open .menu-panel {
  transform: scale(1) translateY(0);
  opacity: 1;
}
.menu-close {
  position: absolute;
  top: 22px;
  right: 22px;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #111;
  cursor: pointer;
  transition: transform .35s ease;
}
.menu-close svg { width: 100%; height: 100%; display: block; }
.menu-close:hover { transform: rotate(90deg); color: var(--accent); }

.menu-list {
  list-style: none;
  margin: 0;
  padding: 30px 30px 22px;
}
.menu-list a,
.menu-list button {
  display: block;
  width: 100%;
  text-align: left;
  background: none;
  border: 0;
  cursor: pointer;
  font: inherit;
  font-size: 26px;
  font-weight: 400;
  line-height: 1.2;
  color: #111;
  padding: 8px 0;
  transition: transform .3s ease, color .3s ease;
}
.menu-list a:hover,
.menu-list button:hover { color: #111; }
.menu-sub {
  display: flex;
  align-items: center;
  gap: 26px;
  padding: 20px 30px;
  border-top: 1px solid rgba(0,0,0,0.08);
  font-size: 15px;
  font-weight: 500;
}
.menu-sub a { color: #111; transition: color .25s ease; }
.menu-sub a:hover { color: var(--accent); }
.menu-sub .menu-cta {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 999px;
  background: #111;
  color: #fff;
  transition: background .3s ease, transform .3s ease;
}
.menu-sub .menu-cta:hover { background: var(--accent); color: #fff; transform: translateY(-1px); }
.menu-social {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 26px;
  padding: 18px 30px;
  background: #ebebe9;
  font-size: 14px;
  color: #666;
}
.menu-social a:hover { color: var(--accent); }

/* ---------- SERVICES MODAL ---------- */
.svc-modal {
  position: fixed;
  inset: 0;
  z-index: 130;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(4,4,8,0.88);
  opacity: 0;
  visibility: hidden;
  transition: opacity .4s ease, visibility .4s ease;
}
.svc-modal.is-open { opacity: 1; visibility: visible; }
.svc-dialog {
  position: relative;
  width: min(1240px, 100%);
  max-height: calc(100vh - 48px);
  overflow-y: auto;
  border-radius: 26px;
  background: linear-gradient(160deg, #15121d 0%, #0b0a10 60%);
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: 0 40px 120px rgba(0,0,0,0.6);
  padding: 44px 44px 40px;
  transform: translateY(28px) scale(.97);
  transition: transform .5s cubic-bezier(.22,.8,.28,1);
}
.svc-modal.is-open .svc-dialog { transform: translateY(0) scale(1); }
.svc-dialog::before {
  content: "";
  position: absolute;
  top: -140px; right: -100px;
  width: 460px; height: 460px;
  background: radial-gradient(circle, rgba(160,90,220,0.35), rgba(255,140,110,0.12) 50%, transparent 70%);
  pointer-events: none;
}
.svc-head {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 34px;
}
.svc-head h2 {
  margin: 12px 0 0;
  font-size: clamp(30px, 4vw, 52px);
  font-weight: 300;
  letter-spacing: -0.02em;
  color: #f2f0ec;
}
.svc-head h2 em { font-style: italic; }
.svc-close {
  flex-shrink: 0;
  width: 46px; height: 46px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.18);
  background: rgba(255,255,255,0.05);
  color: #fff;
  cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
  transition: background .3s ease, transform .35s ease;
}
.svc-close:hover { background: var(--accent); border-color: var(--accent); transform: rotate(90deg); }
.svc-close svg { width: 18px; height: 18px; }

.svc-grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.svc-card {
  position: relative;
  padding: 26px 24px 28px;
  border-radius: 18px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  opacity: 0;
  transform: translateY(20px);
  transition: background .35s ease, border-color .35s ease, transform .5s cubic-bezier(.22,.8,.28,1), opacity .5s ease;
}
.svc-modal.is-open .svc-card { opacity: 1; transform: translateY(0); }
.svc-modal.is-open .svc-card:nth-child(1) { transition-delay: .10s; }
.svc-modal.is-open .svc-card:nth-child(2) { transition-delay: .16s; }
.svc-modal.is-open .svc-card:nth-child(3) { transition-delay: .22s; }
.svc-modal.is-open .svc-card:nth-child(4) { transition-delay: .28s; }
.svc-modal.is-open .svc-card:nth-child(5) { transition-delay: .34s; }
.svc-modal.is-open .svc-card:nth-child(6) { transition-delay: .40s; }
.svc-modal.is-open .svc-card:nth-child(7) { transition-delay: .46s; }
.svc-modal.is-open .svc-card:nth-child(8) { transition-delay: .52s; }
.svc-card:hover, .svc-card.is-focus {
  background: rgba(255,255,255,0.08);
  border-color: var(--accent-hi);
}
.svc-num {
  display: block;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--accent-hi);
  margin-bottom: 14px;
}
.svc-card h3 {
  margin: 0 0 18px;
  padding-bottom: 16px;
  font-size: 21px;
  font-weight: 500;
  line-height: 1.25;
  color: #f2f0ec;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.svc-card ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.svc-card li {
  position: relative;
  padding-left: 18px;
  font-size: 14.5px;
  color: #b9b7b1;
}
.svc-card li::before {
  content: "";
  position: absolute; left: 0; top: .62em;
  width: 8px; height: 1px;
  background: var(--accent-hi);
}
.svc-card--cta {
  display: flex; flex-direction: column; justify-content: space-between;
  background: linear-gradient(150deg, #7b3fe0 0%, #c1568a 55%, #f2a06a 100%);
  border-color: transparent;
}
.svc-card--cta:hover { background: linear-gradient(150deg, #502590 0%, #8a3f9a 55%, #e0855f 100%); border-color: transparent; }
.svc-card--cta h3 { border-bottom-color: rgba(255,255,255,0.3); color: #fff; }
.svc-card--cta p { margin: 0 0 22px; color: rgba(255,255,255,0.9); font-size: 14.5px; }
.svc-cta-btn {
  align-self: flex-start;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 11px 18px;
  border-radius: 999px;
  background: #fff; color: #111;
  font-size: 14px; font-weight: 600;
  transition: transform .3s ease;
}
.svc-cta-btn:hover { transform: translateY(-2px); background: var(--accent); color: #fff; }

.work-head-right { display: flex; align-items: center; gap: 14px; }
.work-all-btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 11px 18px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.16);
  background: rgba(255,255,255,0.04);
  color: #e9e9e7;
  font-size: 13px; font-weight: 500;
  cursor: pointer;
  transition: background .25s ease, border-color .25s ease;
}
.work-all-btn:hover { background: var(--accent); border-color: var(--accent); }
.work-card { cursor: pointer; }

@media (max-width: 1100px) {
  .svc-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .svc-modal { padding: 10px; }
  .svc-dialog { padding: 26px 18px 22px; border-radius: 20px; max-height: calc(100vh - 20px); }
  .svc-grid { grid-template-columns: 1fr; gap: 12px; }
  .svc-card { padding: 22px 20px 24px; }
  .menu-list { padding: 26px 22px 16px; }
  .menu-list a, .menu-list button { font-size: 23px; padding: 7px 0; }
  .menu-sub { padding: 16px 22px; gap: 18px; flex-wrap: wrap; }
  .menu-social { padding: 16px 22px; }
  .work-head-right { flex-wrap: wrap; }
  .work-all-btn { padding: 9px 14px; }
}

/* ---------- Section eyelet ---------- */
.eyelet {
  display: inline-block;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: none;
  color: #e9e9e7;
  padding: 8px 16px;
  border-radius: 999px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
}
.eyelet.dark {
  color: #1a1a1a;
  background: rgba(0,0,0,0.06);
  border-color: rgba(0,0,0,0.10);
}

.section-head {
  padding: 20px 60px;
}
.section-head.light .eyelet { color: #1a1a1a; }

/* ---------- SELECTED WORK ---------- */
.work {
  background: #0a0a0a;
  color: #e9e9e7;
  padding: 40px 0 40px;
}
.work .section-head { padding-bottom: 24px; }

.work-head-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

/* Prev / next controls */
.work-nav {
  display: flex;
  gap: 10px;
}
.work-nav-btn {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.16);
  background: rgba(255,255,255,0.04);
  color: #e9e9e7;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background .25s ease, border-color .25s ease, transform .2s ease;
}
.work-nav-btn svg { width: 20px; height: 20px; display: block; }
.work-nav-btn:hover {
  background: var(--accent);
  border-color: var(--accent);
}
.work-nav-btn:active { transform: scale(0.94); }
.work-nav-btn:disabled {
  opacity: 0.35;
  cursor: default;
  pointer-events: none;
}

.work-viewport {
  overflow: hidden;
  padding: 0 0 24px;
}
.work-track {
  display: flex;
  gap: 28px;
  padding: 0 60px 4px;
  transition: transform .6s cubic-bezier(.22,.7,.2,1);
  will-change: transform;
}

.work-card {
  flex: 0 0 auto;
  width: min(78vw, 640px);
}
.work-media {
  position: relative;
  aspect-ratio: 4/3;
  border-radius: 14px;
  overflow: hidden;
  background: linear-gradient(135deg, var(--card-a,#111), var(--card-b,#333));
}
.work-cover {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 30% 40%, rgba(255,255,255,0.14), transparent 40%),
    radial-gradient(circle at 75% 70%, rgba(0,0,0,0.35), transparent 55%);
}
.work-media[data-mood="mono"]::after {
  content: "";
  position: absolute;
  inset: 12% 28% 12% 28%;
  border-radius: 50%;
  background: radial-gradient(circle at 40% 40%, #d6c7b8 0%, #33221a 55%, #0a0705 100%);
  filter: contrast(1.05);
}
.work-media[data-mood="green"]::after {
  content: "";
  position: absolute;
  inset: 22% 32%;
  background: linear-gradient(180deg, #1c6b45, #0b3a25);
  border-radius: 12px;
  box-shadow: inset 0 0 40px rgba(255,255,255,0.15);
}
.work-media[data-mood="peach"]::after {
  content: "";
  position: absolute;
  inset: 20% 34%;
  border-radius: 50%;
  background: radial-gradient(circle at 40% 30%, #fff4ee 0%, #f2c6b0 60%, #b76a4b 100%);
}
.work-media[data-mood="coffee"]::after {
  content: "";
  position: absolute;
  inset: 25% 28%;
  border-radius: 8px;
  background: linear-gradient(160deg, #f7c99b, #a55a2e);
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}
.work-media[data-mood="olive"]::after {
  content: "";
  position: absolute;
  inset: 20% 30%;
  border-radius: 50% 50% 40% 40% / 60% 60% 40% 40%;
  background: radial-gradient(circle at 45% 35%, #c9d68a 0%, #7f9539 50%, #2f3a1a 100%);
}
.work-media[data-mood="dark"]::after {
  content: "";
  position: absolute;
  inset: 10% 20%;
  border-radius: 6px;
  background: linear-gradient(180deg, #1f1f21 0%, #0a0a0b 100%);
  border: 1px solid rgba(255,255,255,0.08);
}
.work-corner {
  position: absolute;
  width: 18px; height: 18px;
  border: 2px solid rgba(255,255,255,0.9);
}
.work-corner.tl { top: 10px; left: 10px; border-right: 0; border-bottom: 0; }
.work-corner.tr { top: 10px; right: 10px; border-left: 0; border-bottom: 0; }
.work-corner.bl { bottom: 10px; left: 10px; border-right: 0; border-top: 0; }
.work-corner.br { bottom: 10px; right: 10px; border-left: 0; border-top: 0; }

.work-caption {
  padding: 22px 6px 4px;
}
.work-tag {
  font-size: 11px;
  letter-spacing: 0.14em;
  color: #b9b7b1;
  margin: 0 0 12px;
}
.work-title {
  font-size: 42px;
  font-weight: 400;
  margin: 0 0 8px;
  color: #f2f0ec;
}
.work-desc {
  color: #a9a7a1;
  margin: 0;
  max-width: 520px;
  font-size: 15px;
}

.work-footnote {
  padding: 20px 60px 8px;
  color: #6b6a66;
  font-size: 13px;
  border-top: 1px solid rgba(255,255,255,0.08);
  margin-top: 40px;
}

/* ---------- WHAT WE DO ---------- */
.what {
  background: #ecebe4;
  color: #1a1a1a;
  padding: 120px 60px 90px;
  position: relative;
}
.what-grid {
  display: grid;
  grid-template-columns: 0.9fr 2.9fr;
  gap: 24px;
  max-width: 1600px;
}
.what-head {
  font-size: 15px;
  font-weight: 500;
  color: #17181a;
  letter-spacing: 0.01em;
  padding-top: 6px;
}
.what-lede {
  margin: 0;
  font-size: clamp(32px, 3.6vw, 58px);
  line-height: 1.22;
  font-weight: 400;
  color: #bcb9b2;               /* base grey — scroll fills to black */
  letter-spacing: -0.01em;
}
.what-lede .w {
  color: inherit;
  transition: color .12s linear;
}
.what-more {
  padding-top: 90px;
  display: flex;
  justify-content: flex-start;
}
.tiny-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: #17181a;
  padding: 10px 16px;
  border-radius: 999px;
  background: rgba(0,0,0,0.04);
  border: 1px solid rgba(0,0,0,0.10);
  transition: background .25s ease;
  font-weight: 500;
}
.tiny-link:hover { background: var(--accent); border-color: var(--accent); color: #fff; }

/* ---------- CAPABILITIES ---------- */
.capabilities {
  background: #ecebe4;
  color: #17181a;
  padding: 40px 60px 120px;
}
.cap-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.55fr 1.55fr;
  grid-auto-rows: 1fr;
  gap: 24px;
  max-width: 1500px;
}
.cap-head {
  grid-column: 1;
  grid-row: 1;
  font-size: 15px;
  font-weight: 500;
  color: #17181a;
  letter-spacing: 0.01em;
  padding-top: 4px;
}
.cap-card {
  background: #f3f2ec;
  border-radius: 4px;
  padding: 40px 40px 44px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 380px;
  transition: background .3s ease;
}
.cap-card:hover { background: #f7f6f1; box-shadow: inset 0 0 0 1px var(--accent); }
.cap-grid > .cap-card:nth-child(2) { grid-column: 2; grid-row: 1; }
.cap-grid > .cap-card:nth-child(3) { grid-column: 3; grid-row: 1; }
.cap-grid > .cap-card:nth-child(4) { grid-column: 2; grid-row: 2; }
.cap-grid > .cap-card:nth-child(5) { grid-column: 3; grid-row: 2; }

.cap-icon {
  color: #17181a;
  margin-bottom: 40px;
}
.cap-icon svg { width: 64px; height: 64px; display: block; }
.cap-text { margin-top: auto; }
.cap-card h4 {
  font-size: 30px;
  font-weight: 400;
  margin: 0 0 20px;
  color: #17181a;
  letter-spacing: -0.01em;
}
.cap-card p {
  font-size: 15px;
  line-height: 1.7;
  color: #56544e;
  margin: 0;
  max-width: 560px;
}
.cap-card p b {
  font-weight: 600;
  color: #17181a;
  white-space: nowrap;
}

/* ---------- STATS ---------- */
.stats {
  background: #0a0a0a;
  color: #e9e9e7;
  padding: 80px 60px 60px;
  position: relative;
  overflow: hidden;
}
.stats-orb {
  position: absolute;
  left: -180px; top: -80px;
  width: 900px; height: 900px;
  z-index: 0;
  pointer-events: none;
}
.stats-orb .orb { position: absolute; }
.stats-orb .orb-a {
  width: 460px; height: 460px;
  left: 60px; top: 60px;
  background: radial-gradient(circle at 45% 40%,
      rgba(255,210,200,0.95) 0%,
      rgba(255,170,160,0.55) 25%,
      rgba(200,110,140,0.35) 50%,
      rgba(80,30,90,0.0) 72%);
}
.stats-orb .orb-b {
  width: 720px; height: 720px;
  left: 40px; top: 220px;
  background: radial-gradient(circle at 50% 50%,
      rgba(160,90,200,0.5) 0%,
      rgba(100,50,150,0.30) 45%,
      rgba(30,10,50,0.0) 72%);
}
.stats-orb .orb-c {
  width: 500px; height: 500px;
  left: 200px; top: 380px;
  background: radial-gradient(circle at 55% 45%,
      rgba(255,150,110,0.55) 0%,
      rgba(200,80,110,0.30) 45%,
      rgba(30,10,20,0.0) 72%);
}

.stats-lede {
  position: relative;
  z-index: 1;
  max-width: 640px;
  margin: 0 0 100px auto;   /* push to right */
  text-align: left;
  color: #e0dfd9;
  font-size: 20px;
  line-height: 1.5;
  padding-right: 40px;
}

.stats-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px;
  max-width: 1400px;
  margin: 0 auto 100px;
  align-items: end;
}
.stat { text-align: left; }
.stat-num {
  font-size: clamp(64px, 8vw, 132px);
  font-weight: 300;
  line-height: 1;
  color: #f2f0ec;
  letter-spacing: -0.03em;
}
.stat-label {
  margin-top: 20px;
  color: #a9a7a1;
  font-size: 15px;
  letter-spacing: 0.01em;
}
.client-strip {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 40px;
  padding: 30px 0 0;
  border-top: 1px solid rgba(255,255,255,0.12);
  max-width: 1400px;
  margin: 0 auto;
  flex-wrap: wrap;
}
.client-strip .client {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: #e9e9e7;
  font-size: 22px;
  font-weight: 500;
  letter-spacing: 0.005em;
  opacity: 0.9;
  transition: opacity .3s;
}
.client-strip .client:hover { opacity: 1; }
.client-strip .client svg {
  width: 28px; height: 28px;
  fill: #e9e9e7;
  flex-shrink: 0;
}
/* Per-client typographic tweak */
.client--coiffure { font-family: "Plus Jakarta Sans", serif; font-style: italic; font-weight: 400; }
.client--tecnologia { font-family: "Plus Jakarta Sans", sans-serif; }
.client--fabrik { font-weight: 700; letter-spacing: 0.02em; }
.client--numerique { font-weight: 400; }
.client--macchina { font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; font-size: 20px; }

/* ---------- REVIEWS ---------- */
.reviews {
  background: #ecebe4;
  color: #17181a;
  padding: 110px 60px 90px;
}
.reviews-head {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 60px;
}
.rv-label {
  font-size: 15px;
  font-weight: 500;
  color: #17181a;
  letter-spacing: 0.01em;
}
.rv-line {
  width: 70px;
  height: 1px;
  background: rgba(0,0,0,0.28);
}
.rating {
  color: #17181a;
  font-size: 15px;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.rating i { font-size: 12px; }
.reviews-lede {
  max-width: 760px;
  color: #33322e;
  font-size: 18px;
  line-height: 1.55;
  margin: 0 0 90px auto;   /* push block to the right */
}

.review-slider {
  overflow: hidden;
  max-width: 1500px;
}
.review-track {
  display: flex;
  transition: transform .7s cubic-bezier(.22,.7,.2,1);
  will-change: transform;
}
.review-slide {
  flex: 0 0 100%;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 80px;
}
.review {
  margin: 0;
  padding: 0;
  color: #33322e;
  position: relative;
}
.review .qm {
  display: block;
  font-size: 64px;
  line-height: 0.5;
  height: 34px;
  color: #17181a;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 700;
  margin-bottom: 30px;
}
.review p {
  font-size: 17px;
  line-height: 1.6;
  margin: 0 0 34px;
  color: #17181a;
}
.review footer {
  font-size: 14px;
  color: #6b6963;
}
.review-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 70px;
}
.review-dots button {
  width: 8px; height: 8px;
  border: 0;
  padding: 0;
  border-radius: 999px;
  background: rgba(0,0,0,0.20);
  cursor: pointer;
  transition: width .35s ease, background .35s ease;
}
.review-dots button.active {
  width: 26px;
  background: #17181a;
}

/* ---------- TEAM ---------- */
.team {
  background: #0a0a0a;
  color: #e9e9e7;
  padding: 120px 60px 80px;
}
.team-head { margin-bottom: 80px; }
.team-head .eyelet { margin-bottom: 24px; }
.team-title {
  font-size: clamp(46px, 6.6vw, 104px);
  font-weight: 300;
  line-height: 1.05;
  margin: 26px 0 0;
  color: #f2f0ec;
  letter-spacing: -0.02em;
}
.team-title em {
  font-style: italic;
  font-weight: 300;
  color: #f2f0ec;
}

.team-intro {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 60px;
  align-items: center;
  margin-bottom: 90px;
}
.team-photo-pair {
  display: flex;
  gap: 12px;
}
.tp {
  flex: 1;
  aspect-ratio: 3/4;
  border-radius: 4px;
  position: relative;
  overflow: hidden;
}
.tp::after {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 50% 32%, rgba(255,255,255,0.10), transparent 55%),
    radial-gradient(circle at 50% 38%, rgba(220,200,180,0.35) 0%, rgba(0,0,0,0) 40%);
}
.tp-a {
  background:
    radial-gradient(circle at 50% 36%, #746b60 0%, #362f28 30%, #17140f 70%),
    #0a0a0a;
}
.tp-b {
  background:
    radial-gradient(circle at 55% 36%, #8b7660 0%, #3d2f22 30%, #1a1310 70%),
    #0a0a0a;
}
.team-copy p {
  color: #cfcdc7;
  font-size: 16px;
  line-height: 1.7;
  margin: 0 0 18px;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-bottom: 50px;
}
.member { margin: 0; }
.member-photo {
  aspect-ratio: 1/1.15;
  border-radius: 4px;
  margin-bottom: 20px;
  position: relative;
  overflow: hidden;
}
.member-photo::after {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 50% 32%, rgba(255,240,220,0.14), transparent 55%),
    radial-gradient(circle at 50% 40%, rgba(230,210,190,0.30) 0%, rgba(0,0,0,0) 42%);
}
.mono-a { background: radial-gradient(circle at 50% 38%, #6c6459 0%, #2a2620 32%, #131110 74%); }
.mono-b { background: radial-gradient(circle at 55% 40%, #7c6c57 0%, #2f261c 32%, #14100c 74%); }
.mono-c { background: radial-gradient(circle at 50% 38%, #64615c 0%, #26231e 32%, #121110 74%); }
.mono-d { background: radial-gradient(circle at 55% 40%, #8a745c 0%, #382a1c 32%, #17110a 74%); }

.member figcaption strong {
  display: block;
  font-size: 18px;
  font-weight: 500;
  color: #f2f0ec;
  margin-bottom: 4px;
  letter-spacing: -0.005em;
}
.member figcaption span {
  display: block;
  font-size: 13px;
  color: #9d9b95;
  margin-bottom: 14px;
}
.member-social {
  display: flex;
  gap: 14px;
  font-size: 14px;
  color: #b6b3ab;
}
.member-social a { color: inherit; transition: color .2s; }
.member-social a:hover { color: var(--accent-hi); }

.team-actions {
  display: flex;
  justify-content: flex-end;
  gap: 14px;
  padding-top: 30px;
}
.team-actions .tiny-link {
  background: rgba(255,255,255,0.06);
  border-color: rgba(255,255,255,0.12);
  color: #e9e9e7;
}
.team-actions .tiny-link:hover { background: var(--accent); border-color: var(--accent); }

/* ---------- COLLAGE ---------- */
.collage {
  background: #0a0a0a;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 4px;
  padding: 4px;
}
.cimg {
  aspect-ratio: 1/0.85;
  border-radius: 2px;
  position: relative;
  overflow: hidden;
}
.cimg::after {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 30% 30%, rgba(255,255,255,0.14), transparent 45%),
    radial-gradient(ellipse at 70% 70%, rgba(0,0,0,0.4), transparent 55%);
}
.c1 { background: linear-gradient(140deg, #4b3020 0%, #7f4a25 55%, #d69860 100%); }
.c2 { background: linear-gradient(160deg, #e0cfae 0%, #6b5c40 60%, #221c14 100%); }
.c3 { background: linear-gradient(200deg, #2a2a2a 0%, #524638 60%, #1a1610 100%); }
.c4 { background: linear-gradient(210deg, #55402c 0%, #a07a4e 55%, #e8c898 100%); }
.c5 { background: linear-gradient(190deg, #d9be9a 0%, #7a5a3a 60%, #2b1f14 100%); }

/* ---------- FOOTER ---------- */
.site-footer {
  background: #ecebe4;
  color: #17181a;
  padding: 90px 60px 30px;
}
.footer-mark { display: block; margin-bottom: 40px; }
.footer-mark img {
  display: block;
  width: auto;
  height: 40px;
}
.footer-title {
  font-size: clamp(80px, 12vw, 220px);
  font-weight: 300;
  line-height: 0.95;
  letter-spacing: -0.03em;
  margin: 30px 0 90px;
  color: #17181a;
  display: flex;
  align-items: flex-start;
  gap: 20px;
}
.footer-title .arrow {
  font-size: 0.4em;
  font-weight: 300;
  margin-top: 0.15em;
  color: #17181a;
}
.footer-cols {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 2fr;
  gap: 40px;
  padding: 32px 0 24px;
  border-top: 1px solid rgba(0,0,0,0.14);
  align-items: start;
}
.fcol h5 {
  font-size: 15px;
  font-weight: 500;
  color: #17181a;
  margin: 0;
  letter-spacing: 0.01em;
}
.fcol.grow { justify-self: end; }
.fcontact {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
  font-size: 15px;
  color: #17181a;
}
.fcontact a { color: inherit; }
.footer-links {
  display: flex;
  justify-content: flex-end;
  gap: 28px;
  padding: 26px 0;
  font-size: 14px;
  color: #55534d;
}
.footer-links span:hover { color: var(--accent); cursor: pointer; }
.footer-address {
  padding-top: 22px;
  border-top: 1px solid rgba(0,0,0,0.14);
  font-size: 12px;
  color: #7a7873;
  letter-spacing: 0.02em;
}

/* ---------- Scroll-reveal + hover polish ---------- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .7s cubic-bezier(.22,.7,.2,1), transform .7s cubic-bezier(.22,.7,.2,1);
}
.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

.work-card { transition: transform .35s ease; }
.work-card:hover { transform: translateY(-6px); }
.work-media { transition: box-shadow .35s ease; }
.work-card:hover .work-media { box-shadow: 0 20px 50px rgba(0,0,0,0.45); }

.member-photo { transition: transform .4s ease; }
.member:hover .member-photo { transform: translateY(-4px); }

.cimg { transition: transform .5s ease, filter .5s ease; }
.cimg:hover { transform: scale(1.03); }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .what-grid { grid-template-columns: 1fr; gap: 30px; }

  /* Capabilities: drop the desktop offset-grid entirely below 1024px —
     a plain auto-flow grid avoids the fr/row sizing quirks of the
     nth-child positioned layout and is far more robust on small screens. */
  .cap-grid {
    grid-template-columns: 1fr 1fr;
    grid-auto-rows: auto;
  }
  .cap-head { grid-column: 1 / -1; grid-row: auto; padding-bottom: 6px; }
  .cap-grid > .cap-card:nth-child(2),
  .cap-grid > .cap-card:nth-child(3),
  .cap-grid > .cap-card:nth-child(4),
  .cap-grid > .cap-card:nth-child(5) { grid-column: auto; grid-row: auto; }
  .cap-card { min-height: 0; }

  .review-slide { grid-template-columns: 1fr; gap: 40px; }
  .team-grid { grid-template-columns: repeat(2, 1fr); }
  .team-intro { grid-template-columns: 1fr; }
  .footer-cols { grid-template-columns: 1fr 1fr; }
  .stats-grid { grid-template-columns: 1fr; gap: 30px; }
  .collage { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .site-header { padding: 14px 20px; }
  .site-logo img { height: 26px; }
  .hero { padding: 110px 22px 56px; min-height: 92vh; }
  .social-rail { display: none; }
  .reel-btn { gap: 16px; font-size: 16px; margin-bottom: 34px; }
  .play-icon { width: 58px; height: 58px; }

  .section-head { padding: 16px 22px; }
  .work { padding: 28px 0 28px; }
  .work-head-row { padding: 16px 22px; flex-wrap: wrap; gap: 14px; }
  .work-nav-btn { width: 40px; height: 40px; }
  .work-nav-btn svg { width: 17px; height: 17px; }
  .work-track { padding: 0 22px 20px; gap: 18px; }
  .work-title { font-size: 32px; }
  .work-footnote { padding: 18px 22px; margin-top: 24px; }

  .what, .capabilities, .stats, .reviews, .team, .site-footer { padding-left: 22px; padding-right: 22px; }
  .what { padding-top: 64px; padding-bottom: 48px; }
  .what-more { padding-top: 44px; }

  .capabilities { padding-top: 20px; padding-bottom: 56px; }
  .cap-grid { grid-template-columns: 1fr; gap: 16px; }
  .cap-card { padding: 30px 24px 34px; }
  .cap-icon { margin-bottom: 24px; }
  .cap-icon svg { width: 48px; height: 48px; }
  .cap-card h4 { font-size: 24px; margin-bottom: 14px; }

  .stats { padding: 64px 22px 44px; }
  .stats-lede { font-size: 17px; margin-bottom: 56px; padding-right: 0; }
  .stats-orb { left: -220px; top: -140px; width: 620px; height: 620px; }
  .client-strip { justify-content: center; font-size: 15px; gap: 22px 28px; }

  .reviews { padding-top: 64px; padding-bottom: 56px; }
  .reviews-lede { margin-bottom: 48px; font-size: 16px; }
  .review-slide { gap: 34px; }
  .review { padding-bottom: 4px; }

  .team { padding: 72px 22px 56px; }
  .team-head { margin-bottom: 44px; }
  .team-intro { margin-bottom: 48px; gap: 24px; }
  .team-photo-pair { gap: 8px; }
  .team-grid { grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 36px; }

  .footer-cols { grid-template-columns: 1fr; }
  .fcontact { align-items: flex-start; }
  .footer-links { justify-content: flex-start; flex-wrap: wrap; }
  .footer-title { font-size: 56px; margin-bottom: 56px; }
  .team-actions { justify-content: flex-start; }
}

@media (max-width: 480px) {
  .team-grid { grid-template-columns: 1fr; }
  .collage { grid-template-columns: repeat(2, 1fr); }
}


/* ---------- DESKTOP NAVBAR ---------- */
.header-nav {
  position: relative;
  display: flex;
  align-items: center;
  gap: 2px;
  justify-self: center;
}
.header-nav a,
.header-nav button.nav-link {
  position: relative;
  z-index: 1;
  background: none;
  border: 0;
  cursor: pointer;
  font: inherit;
  font-size: 16.5px;
  font-weight: 500;
  color: #f2f0ec;
  padding: 10px 15px;
  border-radius: 999px;
  transition: color .25s ease;
}
.header-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 999px;
  background: var(--accent);
  border: 1px solid rgba(255,255,255,0.16);
  color: #fff;
  font-size: 15.5px;
  font-weight: 600;
  transition: transform .3s ease, box-shadow .3s ease;
}
.header-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 26px rgba(80,37,144,0.55);
}


/* Burger only on smaller screens; navbar only on desktop */
.menu-toggle { display: none; }
@media (max-width: 1280px) {
  .header-inner { display: flex; justify-content: space-between; }
  .header-nav, .header-right .header-cta { display: none; }
  .menu-toggle { display: inline-flex; }
}
@media (max-width: 768px) {
  .site-header, .site-header.is-scrolled { padding-left: 20px; padding-right: 20px; }
}


/* ---------- HERO ENHANCEMENTS ---------- */
.hero-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.05) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(ellipse 70% 70% at 30% 45%, #000 0%, transparent 75%);
  mask-image: radial-gradient(ellipse 70% 70% at 30% 45%, #000 0%, transparent 75%);
  pointer-events: none;
}

@keyframes heroUp {
  from { opacity: 0; transform: translateY(26px); }
  to   { opacity: 1; transform: translateY(0); }
}
.hero-anim { animation: heroUp .9s cubic-bezier(.22,.8,.28,1) both; animation-delay: var(--d, 0s); }

.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  margin-bottom: 26px;
  padding: 9px 16px 9px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(255,255,255,0.06);
  font-size: 13.5px; font-weight: 500; letter-spacing: .02em;
  color: #eceae5;
}
.hero-eyebrow .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: #7ce0a8;
  box-shadow: 0 0 0 0 rgba(124,224,168,.6);
  animation: blink 2s ease-in-out infinite;
}

.hero-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 26px 30px; }
.btn-primary {
  position: relative; overflow: hidden;
  display: inline-flex; align-items: center; gap: 10px;
  padding: 17px 30px;
  border-radius: 999px;
  background: linear-gradient(135deg, #502590 0%, #7a3fd0 100%);
  border: 1px solid rgba(255,255,255,0.2);
  color: #fff; font-size: 16px; font-weight: 600;
  box-shadow: 0 14px 40px rgba(80,37,144,0.55);
  transition: transform .3s ease, box-shadow .3s ease;
}
.btn-primary::after {
  content: ""; position: absolute; top: 0; left: 0;
  width: 40%; height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,.35), transparent);
  transform: translateX(-150%) skewX(-20deg);
  animation: sheen 3.6s ease-in-out infinite;
}
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 20px 50px rgba(80,37,144,0.7); }

/* Floating glass visual */
.hero-visual {
  position: absolute;
  right: 6%; top: 44%;
  width: 460px; height: 440px;
  margin-top: -220px;
  z-index: 2;
  animation: heroUp 1.1s .35s cubic-bezier(.22,.8,.28,1) both;
}
.hv-card {
  position: absolute; left: 30px; right: 20px; top: 62px;
  padding: 22px 22px 18px;
  border-radius: 24px;
  background: linear-gradient(160deg, rgba(255,255,255,0.14), rgba(255,255,255,0.04));
  border: 1px solid rgba(255,255,255,0.2);
  box-shadow: 0 30px 80px rgba(0,0,0,0.45), inset 0 1px 0 rgba(255,255,255,0.25);
  animation: floatY 7s ease-in-out infinite;
}
.hv-card-top { display: flex; justify-content: space-between; align-items: center; font-size: 14px; font-weight: 600; color: #f4f2ee; margin-bottom: 18px; }
.hv-live { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 500; color: #bff0d6; }
.hv-live i { width: 7px; height: 7px; border-radius: 50%; background: #7ce0a8; animation: blink 2s ease-in-out infinite; }
.hv-chart { position: relative; height: 170px; }
.hv-bars { position: absolute; inset: 0; display: flex; align-items: flex-end; gap: 9px; }
.hv-bars b {
  flex: 1; height: var(--h);
  border-radius: 7px 7px 3px 3px;
  background: linear-gradient(180deg, rgba(163,123,255,0.85), rgba(80,37,144,0.35));
  transform-origin: bottom; transform: scaleY(0);
  animation: barUp .9s cubic-bezier(.22,.8,.28,1) forwards;
  animation-delay: calc(.9s + var(--i) * .08s);
}
@keyframes barUp { to { transform: scaleY(1); } }
.hv-line { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.hv-line path {
  fill: none; stroke-width: 3; stroke-linecap: round;
  stroke-dasharray: 420; stroke-dashoffset: 420;
  animation: draw 1.8s 1.3s ease-out forwards;
}
@keyframes draw { to { stroke-dashoffset: 0; } }
.hv-legend { display: flex; gap: 18px; margin-top: 16px; font-size: 12.5px; color: #d6d3cc; }
.hv-legend i { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 6px; }

.hv-chip {
  position: absolute;
  display: inline-flex; align-items: center; gap: 9px;
  padding: 11px 17px;
  border-radius: 999px;
  background: rgba(18,12,30,0.82);
  border: 1px solid rgba(255,255,255,0.18);
  color: #f4f2ee; font-size: 14px; font-weight: 500;
  box-shadow: 0 14px 34px rgba(0,0,0,0.4);
  animation: floatY 6s ease-in-out infinite;
}
.hv-chip i { color: #b795ff; font-size: 14px; }
.hv-chip.c1 { top: 8px;  left: 0;    animation-delay: -1s; }
.hv-chip.c2 { top: 14px; right: -16px; animation-delay: -3s; }
.hv-chip.c3 { bottom: 96px; left: -26px; animation-delay: -2s; }
.hv-chip.c4 { bottom: 18px; right: 6px; animation-delay: -4s; }
.hv-chip.c5 { top: -22px; right: 140px; animation-delay: -5s; }
@keyframes floatY { 0%,100% { translate: 0 0; } 50% { translate: 0 -14px; } }

/* Services marquee strip */
.hero-marquee {
  position: absolute; left: 0; right: 0; bottom: 0;
  z-index: 2;
  padding: 18px 0;
  border-top: 1px solid rgba(255,255,255,0.1);
  background: linear-gradient(180deg, transparent, rgba(0,0,0,0.45));
  overflow: hidden;
}
.hm-track { display: flex; width: max-content; animation: marquee 38s linear infinite; }
.hm-track span {
  display: inline-flex; align-items: center; gap: 28px;
  padding-right: 28px;
  font-size: 14px; font-weight: 500; letter-spacing: .06em; text-transform: uppercase;
  color: rgba(240,238,232,0.72);
  white-space: nowrap;
}
.hm-track span::after { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #a37bff; }
@keyframes marquee { to { transform: translateX(-50%); } }

@media (max-width: 1280px) { .hero-visual { display: none; } }
@media (max-width: 768px) {
  .hero { padding: 108px 22px 96px; }
  .hero-title { font-size: clamp(32px, 9vw, 44px); }
  .hero-eyebrow { font-size: 12.5px; margin-bottom: 20px; }
  .hero-tag { font-size: 15.5px; margin-bottom: 28px; }
  .btn-primary { padding: 15px 24px; font-size: 15px; }
  .hero-marquee { padding: 14px 0; }
  .hm-track span { font-size: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-anim, .hero-visual, .hv-card, .hv-chip, .hm-track, .btn-primary::after { animation: none !important; }
  .hv-bars b { transform: none; }
  .hv-line path { stroke-dashoffset: 0; }
}


/* ---------- PERFORMANCE PASS ---------- */
.ic { width: 1em; height: 1em; display: inline-block; vertical-align: -0.125em; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.rating .ic { width: 12px; height: 12px; fill: currentColor; stroke: none; }
.hv-chip .ic { color: #b795ff; width: 15px; height: 15px; }

/* pause hero animations when the hero is off-screen */
.hero.is-paused *, .hero.is-paused *::after { animation-play-state: paused !important; }

/* cheap cursor ring: no blend modes, transform-only */
.cursor-dot {
  position: fixed; top: 0; left: 0;
  width: 34px; height: 34px; margin: -17px 0 0 -17px;
  border-radius: 50%;
  border: 1.5px solid rgba(163,123,255,0.95);
  background: rgba(163,123,255,0.12);
  pointer-events: none;
  z-index: 9999;
  opacity: 0;
  transition: opacity .2s ease, background .2s ease;
}
.cursor-dot.is-on { opacity: 1; }
.cursor-dot.is-hover { background: rgba(163,123,255,0.28); }

@keyframes blink { 0%,100% { opacity: 1; } 50% { opacity: .35; } }
@keyframes sheen { 0%,55% { transform: translateX(-150%) skewX(-20deg); } 100% { transform: translateX(450%) skewX(-20deg); } }

.hero-marquee::before, .hero-marquee::after {
  content: ""; position: absolute; top: 0; bottom: 0; width: 90px; z-index: 1; pointer-events: none;
}
.hero-marquee::before { left: 0;  background: linear-gradient(90deg, #000, transparent); }
.hero-marquee::after  { right: 0; background: linear-gradient(270deg, #000, transparent); }


/* ---------- CHAT WIDGET (WhatsApp look) ---------- */
.chat { position: fixed; right: 22px; bottom: 22px; z-index: 110; font-family: inherit; }
.chat-fab {
  position: relative;
  width: 62px; height: 62px;
  border-radius: 50%;
  border: 0; padding: 0; cursor: pointer;
  background: #25d366;
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 10px 28px rgba(37,211,102,0.45), 0 4px 10px rgba(0,0,0,0.3);
  transition: transform .3s cubic-bezier(.22,.8,.28,1), box-shadow .3s ease;
}
.chat-fab:hover { transform: scale(1.08); }
.chat-fab svg { width: 32px; height: 32px; display: block; }
.chat-fab .ico-close { display: none; width: 24px; height: 24px; }
.chat.is-open .chat-fab .ico-chat { display: none; }
.chat.is-open .chat-fab .ico-close { display: block; }
.chat-badge {
  position: absolute; top: -2px; right: -2px;
  min-width: 20px; height: 20px; padding: 0 5px;
  border-radius: 10px;
  background: #ff3b30; color: #fff;
  font-size: 12px; font-weight: 700; line-height: 20px; text-align: center;
  border: 2px solid #0a0a0a;
}
.chat.is-open .chat-badge, .chat.is-read .chat-badge { display: none; }

.chat-teaser {
  position: absolute; right: 74px; bottom: 10px;
  width: max-content; max-width: 230px;
  padding: 11px 32px 11px 14px;
  border-radius: 12px 12px 0 12px;
  background: #fff; color: #111b21;
  font-size: 14px; line-height: 1.35;
  box-shadow: 0 10px 30px rgba(0,0,0,0.35);
  opacity: 0; transform: translateY(8px) scale(.96); transform-origin: bottom right;
  visibility: hidden;
  transition: opacity .35s ease, transform .35s cubic-bezier(.22,.8,.28,1), visibility .35s;
}
.chat-teaser.is-on { opacity: 1; transform: none; visibility: visible; }
.chat-teaser button {
  position: absolute; top: 6px; right: 8px;
  border: 0; background: none; color: #667781; font-size: 18px; line-height: 1; cursor: pointer;
}
.chat.is-open .chat-teaser { display: none; }

.chat-panel {
  position: absolute; right: 0; bottom: 78px;
  width: 372px; max-width: calc(100vw - 28px);
  height: 560px; max-height: calc(100vh - 120px);
  display: flex; flex-direction: column;
  border-radius: 16px; overflow: hidden;
  background: #efeae2;
  box-shadow: 0 24px 70px rgba(0,0,0,0.5);
  transform-origin: bottom right;
  opacity: 0; visibility: hidden; transform: translateY(16px) scale(.94);
  transition: opacity .3s ease, transform .4s cubic-bezier(.22,.8,.28,1), visibility .4s;
}
.chat.is-open .chat-panel { opacity: 1; visibility: visible; transform: none; }

.chat-head {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 14px;
  background: #008069; color: #fff;
}
.chat-avatar {
  flex-shrink: 0;
  width: 42px; height: 42px; border-radius: 50%;
  background: #0b0a10;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; font-weight: 700;
  background-image: linear-gradient(135deg, #ffab7a, #a37bff);
  -webkit-background-clip: padding-box;
  color: #fff;
}
.chat-who { flex: 1; min-width: 0; line-height: 1.25; }
.chat-who strong { display: block; font-size: 16px; font-weight: 600; }
.chat-who span { font-size: 12.5px; opacity: .85; }
.chat-x { border: 0; background: none; color: #fff; cursor: pointer; padding: 6px; opacity: .9; }
.chat-x svg { width: 20px; height: 20px; display: block; }

.chat-body {
  flex: 1; overflow-y: auto;
  padding: 14px 12px 8px;
  display: flex; flex-direction: column; gap: 6px;
  background-color: #efeae2;
  background-image: radial-gradient(rgba(0,0,0,0.045) 1px, transparent 1.4px);
  background-size: 18px 18px;
  scroll-behavior: smooth;
}
.chat-day {
  align-self: center; margin: 2px 0 6px;
  padding: 5px 12px; border-radius: 8px;
  background: #fff; color: #54656f; font-size: 12px;
  box-shadow: 0 1px 1px rgba(0,0,0,0.08);
}
.msg {
  position: relative; max-width: 82%;
  padding: 7px 10px 6px;
  border-radius: 8px;
  font-size: 14.5px; line-height: 1.4; color: #111b21;
  box-shadow: 0 1px 1px rgba(0,0,0,0.1);
  animation: msgIn .28s ease both;
  word-wrap: break-word;
}
@keyframes msgIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.msg-in  { align-self: flex-start; background: #fff; border-top-left-radius: 0; }
.msg-out { align-self: flex-end; background: #d9fdd3; border-top-right-radius: 0; }
.msg-in::before, .msg-out::before { content: ""; position: absolute; top: 0; width: 9px; height: 12px; }
.msg-in::before  { left: -8px;  background: #fff;    clip-path: polygon(100% 0, 100% 100%, 0 0); }
.msg-out::before { right: -8px; background: #d9fdd3; clip-path: polygon(0 0, 100% 0, 0 100%); }
.msg .t { display: block; text-align: right; margin: 2px 0 -2px 14px; font-size: 11px; color: #667781; }
.msg-out .t::after { content: " \2713\2713"; color: #53bdeb; letter-spacing: -3px; margin-left: 3px; }
.msg-cta {
  display: inline-block; margin-top: 8px;
  padding: 8px 14px; border-radius: 8px;
  background: #008069; color: #fff !important; font-weight: 600; font-size: 13.5px;
}
.msg-typing { display: flex; gap: 4px; padding: 12px 14px; }
.msg-typing i { width: 7px; height: 7px; border-radius: 50%; background: #8696a0; animation: blink 1s ease-in-out infinite; }
.msg-typing i:nth-child(2) { animation-delay: .15s; }
.msg-typing i:nth-child(3) { animation-delay: .3s; }

.chat-quick { display: flex; flex-wrap: wrap; gap: 7px; padding: 6px 12px 10px; background: #efeae2; }
.chat-quick button {
  border: 1px solid #008069; background: #fff; color: #008069;
  padding: 7px 13px; border-radius: 999px; cursor: pointer;
  font-size: 13px; font-weight: 500;
  transition: background .2s ease, color .2s ease;
}
.chat-quick button:hover { background: #008069; color: #fff; }

.chat-form { display: flex; align-items: center; gap: 8px; padding: 8px 10px 10px; background: #f0f2f5; }
.chat-form input {
  flex: 1; min-width: 0;
  border: 0; outline: 0; border-radius: 22px;
  padding: 12px 16px; font: inherit; font-size: 14.5px; color: #111b21; background: #fff;
}
.chat-form button {
  flex-shrink: 0; width: 44px; height: 44px; border-radius: 50%;
  border: 0; cursor: pointer; background: #00a884; color: #fff;
  display: flex; align-items: center; justify-content: center;
  transition: transform .2s ease;
}
.chat-form button:hover { transform: scale(1.06); }
.chat-form button svg { width: 20px; height: 20px; display: block; }

@media (max-width: 640px) {
  .chat { right: 14px; bottom: 14px; }
  .chat-fab { width: 56px; height: 56px; }
  .chat-panel { bottom: 70px; height: min(560px, calc(100vh - 100px)); }
  .chat-teaser { right: 66px; }
}
@media (prefers-reduced-motion: reduce) {
  .msg, .msg-typing i { animation: none; }
}
