/* ============================================================
   OUTSCOPE DESIGNS — STYLESHEET
   ============================================================ */

/* ===== DESIGN TOKENS ===== */
:root {
  --color-bg: #FAFAF7;
  --color-surface: #FFFFFF;
  --color-text: #1A1A1A;
  --color-text-muted: #6B6B68;
  --color-primary: #5B6CFF;
  --color-secondary: #FF8966;
  --color-accent: #4ECCA3;
  --color-border: #ECECE6;

  --font-display: "Clash Display", "Space Grotesk", system-ui, sans-serif;
  --font-body: "General Sans", "Plus Jakarta Sans", system-ui, sans-serif;

  --radius-sm: 10px;
  --radius: 18px;
  --radius-lg: 28px;

  --shadow-sm: 0 4px 16px rgba(26, 26, 26, 0.06);
  --shadow: 0 14px 40px rgba(26, 26, 26, 0.08);
  --shadow-lg: 0 28px 70px rgba(26, 26, 26, 0.14);

  --container: 1200px;
  --nav-h: 76px;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ===== RESET / BASE ===== */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: var(--nav-h); overflow-x: hidden; width: 100%; }

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

h1, h2, h3 { font-family: var(--font-display); line-height: 1.08; margin: 0; letter-spacing: -0.02em; }
p { margin: 0; }
a { color: inherit; text-decoration: none; }
img, iframe { display: block; }
ul { margin: 0; padding: 0; list-style: none; }

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

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 12px 22px;
  border-radius: 999px;
  border: 1.5px solid transparent;
  cursor: pointer;
  /* transform is animated by Motion (spring) on hover; CSS only handles colour/shadow */
  transition: box-shadow 0.25s var(--ease), background 0.25s var(--ease),
              color 0.25s var(--ease), border-color 0.25s var(--ease);
  white-space: nowrap;
}
.btn--lg { padding: 15px 30px; font-size: 1.02rem; }

.btn--primary {
  background: var(--color-primary);
  color: #fff;
  box-shadow: 0 8px 22px rgba(91, 108, 255, 0.32);
}
.btn--primary:hover { box-shadow: 0 14px 30px rgba(91, 108, 255, 0.42); }

.btn--outline {
  background: transparent;
  color: var(--color-text);
  border-color: var(--color-border);
}
.btn--outline:hover { border-color: var(--color-primary); color: var(--color-primary); box-shadow: var(--shadow-sm); }

.btn--dark {
  background: var(--color-text);
  color: #fff;
  box-shadow: var(--shadow);
}
.btn--dark:hover { box-shadow: var(--shadow-lg); }

/* ===== SHARED SECTION BITS ===== */
.section { padding: clamp(70px, 10vw, 130px) 0; position: relative; overflow: hidden; }

.section-label {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--color-primary);
  margin-bottom: 14px;
}
.section-title {
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 700;
  margin-bottom: 48px;
}

.text-gradient {
  background: linear-gradient(100deg, var(--color-primary), var(--color-secondary), var(--color-accent));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

.grid { display: grid; gap: 24px; }

/* ===== BRAND / LOGO ===== */
.brand { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 700; font-size: 1.18rem; }

.brand__mark { position: relative; width: 26px; height: 26px; display: inline-block; flex: none; }
.brand__shape { position: absolute; }
.brand__shape--circle { width: 18px; height: 18px; border-radius: 50%; background: var(--color-primary); top: 0; left: 0; }
.brand__shape--square { width: 16px; height: 16px; border-radius: 5px; background: var(--color-secondary); bottom: 0; right: 0; mix-blend-mode: multiply; }

/* ===== NAVIGATION ===== */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  z-index: 100;
  display: flex;
  align-items: center;
  /* Persistent bar so every bit of header text stays legible over the hero
     gradient and any content scrolling behind it. */
  background: rgba(250, 250, 247, 0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--color-border);
  transition: background 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.nav.scrolled {
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow-sm);
}
.nav__inner { display: flex; align-items: center; justify-content: space-between; width: 100%; }
.nav__links { display: flex; gap: 30px; }
.nav__links a { font-weight: 500; font-size: 0.95rem; color: var(--color-text); position: relative; transition: color 0.2s; }
.nav__links a::after {
  content: ""; position: absolute; left: 0; bottom: -5px; height: 2px; width: 0;
  background: var(--color-primary); transition: width 0.25s var(--ease);
}
.nav__links a:hover { color: var(--color-primary); }
.nav__links a:hover::after { width: 100%; }

/* ===== HAMBURGER / MOBILE MENU ===== */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none; border: none; cursor: pointer; padding: 8px;
  z-index: 110;
}
.hamburger span { width: 24px; height: 2.5px; background: var(--color-text); border-radius: 2px; transition: transform 0.3s var(--ease), opacity 0.3s; }
.hamburger.open span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

.mobile-menu {
  position: fixed; inset: 0; z-index: 105;
  background: rgba(250, 250, 247, 0.97);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none;
  transition: opacity 0.35s var(--ease);
}
.mobile-menu.open { opacity: 1; pointer-events: auto; }
.mobile-menu__close { position: absolute; top: 22px; right: 26px; font-size: 2.4rem; line-height: 1; background: none; border: none; cursor: pointer; color: var(--color-text); }
.mobile-menu__links { display: flex; flex-direction: column; align-items: center; gap: 26px; }
.mobile-menu__links a { font-family: var(--font-display); font-weight: 600; font-size: 1.8rem; opacity: 0; transform: translateY(18px); }
.mobile-menu.open .mobile-menu__links a { animation: menuIn 0.5s var(--ease) forwards; }
.mobile-menu.open .mobile-menu__links a:nth-child(1) { animation-delay: 0.08s; }
.mobile-menu.open .mobile-menu__links a:nth-child(2) { animation-delay: 0.14s; }
.mobile-menu.open .mobile-menu__links a:nth-child(3) { animation-delay: 0.20s; }
.mobile-menu.open .mobile-menu__links a:nth-child(4) { animation-delay: 0.26s; }
.mobile-menu.open .mobile-menu__links a:nth-child(5) { animation-delay: 0.32s; }
.mobile-menu.open .mobile-menu__links a:nth-child(6) { animation-delay: 0.38s; }
.mobile-menu.open .mobile-menu__links a:nth-child(7) { animation-delay: 0.44s; }
.mobile-menu__cta { font-size: 1.05rem !important; margin-top: 10px; }
@keyframes menuIn { to { opacity: 1; transform: translateY(0); } }

/* ===== GRADIENT MESH (animated blobs) ===== */
.gradient-mesh { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 0; }
/* Fade the hero mesh out toward the bottom so the colors dissolve into the
   background instead of cutting off in a hard line at the section edge. */
.hero .gradient-mesh {
  -webkit-mask-image: linear-gradient(to bottom, #000 45%, rgba(0,0,0,0.55) 72%, transparent 100%);
  mask-image: linear-gradient(to bottom, #000 45%, rgba(0,0,0,0.55) 72%, transparent 100%);
}
.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.5;
  will-change: transform;
}
.blob--1 { width: 46vw; height: 46vw; background: var(--color-primary); top: -10%; left: -8%; animation: drift1 26s ease-in-out infinite; }
.blob--2 { width: 40vw; height: 40vw; background: var(--color-secondary); top: 20%; right: -10%; animation: drift2 30s ease-in-out infinite; }
.blob--3 { width: 38vw; height: 38vw; background: var(--color-accent); bottom: -14%; left: 25%; animation: drift3 24s ease-in-out infinite; }

@keyframes drift1 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(8vw, 6vh) scale(1.12); }
  66% { transform: translate(-4vw, 10vh) scale(0.92); }
}
@keyframes drift2 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(-7vw, 8vh) scale(0.9); }
  66% { transform: translate(5vw, -6vh) scale(1.15); }
}
@keyframes drift3 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(6vw, -8vh) scale(1.1); }
  66% { transform: translate(-8vw, 4vh) scale(0.95); }
}

/* ============================================================
   DECORATIVE ACCENTS — add visual texture without clutter
   ============================================================ */

/* Keep section content above any decorative orbs/textures */
.section > .container { position: relative; z-index: 1; }

/* Floating geometric shapes — animated (float + slow spin) by Motion.
   Shape "look" is position-agnostic; each instance is placed with inline
   top/left/right styles so the same shapes can scatter through any section. */
.floaters { position: absolute; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.floater { position: absolute; pointer-events: none; will-change: transform;
  animation: floatSpin 16s ease-in-out infinite; }

/* Float (gentle vertical drift) + slow continuous spin. Pure CSS so it always
   runs. nth-child variations stagger speed/direction for an organic feel. */
@keyframes floatSpin {
  0%   { transform: translateY(0) rotate(0deg); }
  50%  { transform: translateY(-22px) rotate(180deg); }
  100% { transform: translateY(0) rotate(360deg); }
}
@keyframes floatSpinRev {
  0%   { transform: translateY(0) rotate(0deg); }
  50%  { transform: translateY(-26px) rotate(-180deg); }
  100% { transform: translateY(0) rotate(-360deg); }
}
.floater:nth-child(2n) { animation-name: floatSpinRev; animation-duration: 21s; animation-delay: -3s; }
.floater:nth-child(3n) { animation-duration: 25s; animation-delay: -7s; }
.floater:nth-child(4n) { animation-duration: 18s; animation-delay: -11s; }
.floater:nth-child(5n) { animation-duration: 23s; animation-delay: -5s; }

.floater.is-ring { width: 70px; height: 70px; border: 3px solid var(--color-primary); border-radius: 50%; opacity: 0.32; }
.floater.is-square { width: 46px; height: 46px; border: 3px solid var(--color-secondary); border-radius: 12px; opacity: 0.36; }
.floater.is-dot { width: 22px; height: 22px; background: var(--color-accent); border-radius: 50%; opacity: 0.5; }
.floater.is-plus { width: 40px; height: 40px; opacity: 0.4;
  background:
    linear-gradient(currentColor, currentColor) center / 100% 3px no-repeat,
    linear-gradient(currentColor, currentColor) center / 3px 100% no-repeat;
  color: var(--color-primary);
}
.floater.is-triangle {
  width: 0; height: 0; opacity: 0.3;
  border-left: 22px solid transparent; border-right: 22px solid transparent;
  border-bottom: 38px solid var(--color-secondary);
}

/* colour variants (apply to the relevant property per shape) */
.floater.c-primary { border-color: var(--color-primary); color: var(--color-primary); }
.floater.c-secondary { border-color: var(--color-secondary); color: var(--color-secondary); }
.floater.c-accent { border-color: var(--color-accent); color: var(--color-accent); }
.floater.is-dot.c-primary { background: var(--color-primary); }
.floater.is-dot.c-secondary { background: var(--color-secondary); }
.floater.is-triangle.c-primary { border-bottom-color: var(--color-primary); }
.floater.is-triangle.c-accent { border-bottom-color: var(--color-accent); }

/* Hide the small drifting shapes on phones to keep things clean */
@media (max-width: 640px) {
  .section .floaters { display: none; }
}

/* Soft ambient colour orbs that fill the airy sections — slowly drifting so
   the background gradients flow gently throughout the page. */
.section { isolation: isolate; }
.section-orb {
  position: absolute; border-radius: 50%; filter: blur(90px);
  opacity: 0.16; z-index: 0; pointer-events: none; will-change: transform;
  animation: orbFlow 26s ease-in-out infinite alternate;
}
.services .section-orb { width: 460px; height: 460px; background: var(--color-primary); top: -120px; right: -120px; }
.process .section-orb { width: 420px; height: 420px; background: var(--color-accent); bottom: -140px; left: -120px; animation-duration: 32s; animation-delay: -6s; }
.pricing .section-orb { width: 480px; height: 480px; background: var(--color-secondary); top: 40px; left: -160px; animation-duration: 29s; animation-delay: -12s; }
.about .section-orb { width: 440px; height: 440px; background: var(--color-primary); bottom: -120px; right: -140px; opacity: 0.13; animation-duration: 35s; animation-delay: -3s; }

@keyframes orbFlow {
  0%   { transform: translate(0, 0) scale(1); }
  50%  { transform: translate(60px, -40px) scale(1.15); }
  100% { transform: translate(-40px, 30px) scale(0.95); }
}

/* Faint dot-grid texture for a touch of depth on alternating sections */
.dotted {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background-image: radial-gradient(var(--color-border) 1.4px, transparent 1.4px);
  background-size: 26px 26px;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 50%, #000 40%, transparent 80%);
  mask-image: radial-gradient(ellipse 70% 60% at 50% 50%, #000 40%, transparent 80%);
  opacity: 0.6;
}

/* Gradient underline accent beneath section + hero headings */
.section-title { position: relative; display: inline-block; }
.section-title::after {
  content: ""; position: absolute; left: 0; bottom: -14px;
  width: 64px; height: 4px; border-radius: 4px;
  background: linear-gradient(90deg, var(--color-primary), var(--color-secondary));
}

/* ===== HERO ===== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: var(--nav-h);
  overflow: hidden;
}
.hero__inner { position: relative; z-index: 1; text-align: center; max-width: 960px; }
.eyebrow {
  font-size: 0.8rem; font-weight: 600; letter-spacing: 0.24em;
  text-transform: uppercase; color: var(--color-primary); margin-bottom: 22px;
}
.hero__title { font-size: clamp(2.7rem, 7.5vw, 5.8rem); font-weight: 700; margin-bottom: 26px; }
.hero__sub { font-size: clamp(1.05rem, 2vw, 1.3rem); color: var(--color-text-muted); max-width: 640px; margin: 0 auto 38px; }
.hero__ctas { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; margin-bottom: 44px; }

.trust-row { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.pill {
  display: inline-flex; align-items: center; gap: 9px;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid var(--color-border);
  backdrop-filter: blur(8px);
  padding: 9px 16px; border-radius: 999px;
  font-size: 0.85rem; font-weight: 500; color: var(--color-text);
}
.pill__dot { width: 9px; height: 9px; border-radius: 50%; }
.pill__dot--primary { background: var(--color-primary); }
.pill__dot--secondary { background: var(--color-secondary); }
.pill__dot--accent { background: var(--color-accent); }

/* ===== PORTFOLIO CAROUSEL ===== */
.work { overflow: hidden; }
.carousel { position: relative; width: 100%; overflow: hidden; padding: 12px 0 20px; -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.carousel__track {
  display: flex;
  gap: 26px;
  width: max-content;
  animation: marquee 48s linear infinite;
}
.carousel:hover .carousel__track { animation-play-state: paused; }
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(calc(-50% - 13px)); } /* half = one card-set + half a gap */
}

.work-card {
  flex: none;
  width: 360px;
  height: 240px;
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.work-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }

/* iframe scaled down to render full site inside small card */
.work-card__frame-wrap {
  position: absolute; inset: 0;
  overflow: hidden;
}
.work-card__frame {
  width: 1280px;
  height: 853px; /* preserves ~3:2 desktop-ish ratio */
  border: 0;
  transform: scale(0.281); /* 360 / 1280 */
  transform-origin: top left;
  pointer-events: none; /* JS controls scroll, not the user */
  background: #fff;
}

/* fallback when iframe fails */
.work-card__fallback {
  position: absolute; inset: 0;
  display: none;
  align-items: center; justify-content: center;
  text-align: center; padding: 20px;
  color: #fff; font-family: var(--font-display); font-weight: 600; font-size: 1.3rem;
}
.work-card.failed .work-card__frame-wrap { display: none; }
.work-card.failed .work-card__fallback { display: flex; }

.work-card__label {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 2;
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 12px 14px;
  background: linear-gradient(0deg, rgba(255,255,255,0.96), rgba(255,255,255,0.0));
  background-color: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(6px);
}
.work-card__name { font-family: var(--font-display); font-weight: 600; font-size: 1rem; }
.work-card__tag {
  font-size: 0.72rem; font-weight: 600; letter-spacing: 0.04em;
  padding: 4px 10px; border-radius: 999px;
  background: rgba(91, 108, 255, 0.12); color: var(--color-primary);
}
.work-card__visit { display: none; }

/* ===== SERVICES ===== */
.services__grid { grid-template-columns: repeat(4, 1fr); }
.service-card { padding: 30px 26px; transition: box-shadow 0.3s var(--ease), border-color 0.3s var(--ease); }
.service-card:hover { box-shadow: var(--shadow); border-color: var(--color-primary); }
.service-card h3 { font-size: 1.18rem; margin: 18px 0 10px; }
.service-card p { color: var(--color-text-muted); font-size: 0.95rem; }
.svc-icon {
  display: inline-block; width: 46px; height: 46px; border-radius: 14px;
  position: relative; transition: transform 0.3s var(--ease);
}
.service-card:hover .svc-icon { transform: scale(1.12) rotate(-6deg); }
.svc-icon--primary { background: linear-gradient(135deg, var(--color-primary), #8b97ff); }
.svc-icon--secondary { background: linear-gradient(135deg, var(--color-secondary), #ffb39c); }
.svc-icon--accent { background: linear-gradient(135deg, var(--color-accent), #84e0c4); }
.svc-icon--mixed { background: linear-gradient(135deg, var(--color-primary), var(--color-secondary)); }
.svc-icon::after {
  content: ""; position: absolute; inset: 13px;
  border: 2.5px solid rgba(255,255,255,0.9); border-radius: 6px;
}

/* ===== PROCESS / TIMELINE ===== */
.timeline { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.timeline__line {
  position: absolute; top: 28px; left: 12.5%; right: 12.5%; height: 3px;
  background: var(--color-border); border-radius: 3px; z-index: 0;
}
.timeline__progress {
  display: block; height: 100%; width: 0;
  background: linear-gradient(90deg, var(--color-primary), var(--color-accent));
  border-radius: 3px; transition: width 1.4s var(--ease);
}
.timeline.drawn .timeline__progress { width: 100%; }
.step { position: relative; z-index: 1; text-align: center; padding: 0 8px; }
.step__num {
  width: 56px; height: 56px; margin: 0 auto 18px;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-weight: 700; font-size: 1.3rem; color: #fff;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
  box-shadow: 0 8px 20px rgba(91, 108, 255, 0.3);
  border: 4px solid var(--color-bg);
}
.step__title { font-size: 1.15rem; margin-bottom: 8px; }
.step__desc { color: var(--color-text-muted); font-size: 0.92rem; }

/* ===== PRICING ===== */
.pricing__grid { grid-template-columns: repeat(3, 1fr); align-items: stretch; }
.price-card {
  padding: 36px 30px; display: flex; flex-direction: column;
  transition: box-shadow 0.3s var(--ease);
  position: relative;
}
.price-card:hover { box-shadow: var(--shadow); }
.price-card--featured {
  border: 2px solid var(--color-primary);
  box-shadow: 0 20px 50px rgba(91, 108, 255, 0.22);
  transform: scale(1.04); /* rest scale; Motion preserves this on hover-out */
}
.price-card__badge {
  position: absolute; top: -14px; left: 50%; transform: translateX(-50%);
  background: var(--color-accent); color: #08322a;
  font-size: 0.74rem; font-weight: 700; letter-spacing: 0.04em;
  padding: 6px 16px; border-radius: 999px; white-space: nowrap;
}
.price-card__name { font-size: 1.3rem; margin-bottom: 6px; }
.price-card__price { font-family: var(--font-display); font-weight: 700; font-size: 2.4rem; margin-bottom: 4px; }
.price-card__range { font-size: 1.4rem; color: var(--color-text-muted); font-weight: 600; }
.price-card__note { color: var(--color-primary); font-weight: 600; font-size: 0.9rem; margin-bottom: 22px; }
.price-card__features { display: flex; flex-direction: column; gap: 12px; margin-bottom: 28px; flex-grow: 1; }
.price-card__features li { position: relative; padding-left: 30px; color: var(--color-text-muted); font-size: 0.95rem; }
.price-card__features li::before {
  content: "✓"; position: absolute; left: 0; top: 0;
  width: 20px; height: 20px; display: flex; align-items: center; justify-content: center;
  background: rgba(78, 204, 163, 0.16); color: var(--color-accent);
  border-radius: 50%; font-size: 0.75rem; font-weight: 700;
}
.price-card__cta { width: 100%; }

.retainer-strip {
  margin-top: 30px;
  background: linear-gradient(100deg, rgba(91,108,255,0.08), rgba(255,137,102,0.08));
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 22px 28px; text-align: center;
}
.retainer-strip p { color: var(--color-text); font-size: 1rem; }

/* ===== ABOUT ===== */
.about__intro { max-width: 720px; color: var(--color-text-muted); font-size: 1.08rem; margin-bottom: 50px; }
.about__team { grid-template-columns: repeat(3, 1fr); margin-bottom: 56px; }
.team-card { text-align: center; padding: 16px; }
.avatar {
  width: 92px; height: 92px; margin: 0 auto 18px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%; color: #fff;
  font-family: var(--font-display); font-weight: 700; font-size: 1.5rem;
  box-shadow: var(--shadow-sm);
}
.avatar--1 { background: linear-gradient(135deg, var(--color-primary), #9aa4ff); }
.avatar--2 { background: linear-gradient(135deg, var(--color-secondary), #ffb39c); }
.avatar--3 { background: linear-gradient(135deg, var(--color-accent), #7fdcc0); }
.team-card__name { font-size: 1.2rem; }
.team-card__role { color: var(--color-primary); font-weight: 600; font-size: 0.9rem; margin: 4px 0 10px; }
.team-card__bio { color: var(--color-text-muted); font-size: 0.92rem; }

.stats-row {
  display: flex; justify-content: center; gap: clamp(30px, 8vw, 90px);
  flex-wrap: wrap; padding: 36px; border-top: 1px solid var(--color-border);
}
.stat { text-align: center; }
.stat__num { display: block; font-family: var(--font-display); font-weight: 700; font-size: 2.6rem; color: var(--color-primary); }
.stat__label { font-size: 0.82rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--color-text-muted); }

/* ===== CONTACT ===== */
.contact { position: relative; overflow: hidden; }
.gradient-mesh--saturated .blob { opacity: 0.7; filter: blur(80px); }
/* Fade the saturated mesh in/out at the top & bottom edges so the colour
   blends into the neighbouring sections instead of cutting off in a hard line. */
.contact .gradient-mesh {
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 16%, #000 84%, transparent 100%);
  mask-image: linear-gradient(to bottom, transparent 0%, #000 16%, #000 84%, transparent 100%);
}
.contact__inner { position: relative; z-index: 1; max-width: 820px; }
.contact__title { text-align: center; font-size: clamp(2rem, 5vw, 3.2rem); font-weight: 700; margin-bottom: 14px; }
.contact__sub { text-align: center; color: var(--color-text-muted); font-size: 1.05rem; max-width: 560px; margin: 0 auto 40px; }

/* Intake form call-to-action (link-out) */
.intake-cta { text-align: center; padding: 44px 32px; box-shadow: var(--shadow-lg); }
.intake-cta__icon {
  width: 60px; height: 60px; margin: 0 auto 20px;
  border-radius: 18px;
  background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
  position: relative;
}
.intake-cta__icon::after {
  content: ""; position: absolute; inset: 16px 18px;
  border: 2.6px solid #fff; border-radius: 4px;
  background:
    linear-gradient(#fff, #fff) center 6px / 14px 2.4px no-repeat,
    linear-gradient(#fff, #fff) center 12px / 14px 2.4px no-repeat,
    linear-gradient(#fff, #fff) center 18px / 9px 2.4px no-repeat;
}
.intake-cta__title { font-size: clamp(1.4rem, 3vw, 1.9rem); margin-bottom: 10px; }
.intake-cta__text { color: var(--color-text-muted); max-width: 440px; margin: 0 auto 26px; }

/* Prominent reach-out band */
.reachout {
  margin-top: 44px; text-align: center;
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 38px 28px;
  box-shadow: var(--shadow);
}
.reachout__title { font-size: clamp(1.5rem, 3vw, 2rem); margin-bottom: 6px; }
.reachout__sub { color: var(--color-text-muted); margin-bottom: 28px; }
.reachout__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.reachout__card {
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  padding: 24px 16px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  transition: box-shadow 0.25s var(--ease), border-color 0.25s var(--ease);
}
.reachout__card:hover { box-shadow: var(--shadow); border-color: var(--color-primary); }
.reachout__label { font-family: var(--font-display); font-weight: 600; font-size: 1.02rem; }
.reachout__value { font-size: 0.85rem; color: var(--color-text-muted); word-break: break-word; }
.reachout__icon {
  width: 50px; height: 50px; border-radius: 14px; margin-bottom: 4px;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-weight: 700; font-style: normal; font-size: 1.1rem;
}
.reachout__icon--email { background: linear-gradient(135deg, var(--color-primary), #8b97ff); position: relative; }
.reachout__icon--email::after { content: ""; width: 24px; height: 17px; border: 2.4px solid #fff; border-radius: 4px; }
.reachout__icon--email::before { content: ""; position: absolute; width: 22px; height: 12px; border-left: 2.4px solid #fff; border-right: 2.4px solid #fff; transform: rotate(0deg) skewX(0); clip-path: polygon(0 0, 50% 70%, 100% 0); top: 17px; }
.reachout__icon--phone { background: linear-gradient(135deg, var(--color-accent), #84e0c4); position: relative; }
.reachout__icon--phone::after { content: ""; width: 14px; height: 22px; border: 2.4px solid #fff; border-radius: 4px; }
.reachout__icon--ig { background: linear-gradient(135deg, var(--color-secondary), #ffb39c); position: relative; }
.reachout__icon--ig::after { content: ""; width: 22px; height: 22px; border: 2.6px solid #fff; border-radius: 7px; }
.reachout__icon--ig::before { content: ""; position: absolute; width: 9px; height: 9px; border: 2.4px solid #fff; border-radius: 50%; }
.reachout__icon--li { background: linear-gradient(135deg, #0a66c2, #378fe9); }

.contact__socials { display: flex; gap: 12px; }

.social {
  width: 42px; height: 42px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--color-surface); border: 1px solid var(--color-border);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.social:hover { transform: translateY(-3px) scale(1.05); box-shadow: var(--shadow-sm); }
.social__icon { display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 0.85rem; color: var(--color-primary); }
.social__icon--ig { width: 18px; height: 18px; border: 2.4px solid var(--color-primary); border-radius: 6px; position: relative; }
.social__icon--ig::after { content: ""; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 7px; height: 7px; border: 2.2px solid var(--color-primary); border-radius: 50%; }
.social__icon--li { font-style: normal; }

/* ===== FOOTER ===== */
.footer { background: var(--color-surface); border-top: 1px solid var(--color-border); padding: 56px 0 28px; }
.footer__inner { display: flex; justify-content: space-between; align-items: flex-start; gap: 40px; flex-wrap: wrap; }
.footer__tag { color: var(--color-text-muted); font-size: 0.92rem; margin-top: 12px; max-width: 280px; }
.footer__links { display: flex; flex-wrap: wrap; gap: 18px; }
.footer__links a { font-weight: 500; font-size: 0.95rem; color: var(--color-text-muted); transition: color 0.2s; }
.footer__links a:hover { color: var(--color-primary); }
.footer__socials { display: flex; gap: 12px; }
.footer__copy { text-align: center; color: var(--color-text-muted); font-size: 0.85rem; margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--color-border); }

/* ===== SCROLL REVEAL =====
   Motion (motion.dev) animates these from JS. Content is visible by
   default; we only pre-hide it when JS is active so there's no flash
   of empty page if the Motion CDN ever fails to load. */
.reveal { opacity: 1; }
html.js .reveal { opacity: 0; will-change: transform, opacity; }
html.force-reveal .reveal { opacity: 1 !important; transform: none !important; }

/* ===== RESPONSIVE ===== */
@media (max-width: 980px) {
  .nav__links, .nav__cta { display: none; }
  .hamburger { display: flex; }
  .services__grid { grid-template-columns: repeat(2, 1fr); }
  .timeline { grid-template-columns: 1fr; gap: 0; }
  .timeline__line { display: none; }
  .step { display: grid; grid-template-columns: 56px 1fr; gap: 16px; text-align: left; padding: 18px 0; position: relative; }
  .step__num { margin: 0; }
  .step__title, .step__desc { grid-column: 2; }
  .step:not(:last-child)::before {
    content: ""; position: absolute; left: 27px; top: 56px; bottom: -18px; width: 3px;
    background: linear-gradient(var(--color-primary), var(--color-accent)); opacity: 0.4;
  }
  .pricing__grid { grid-template-columns: 1fr; max-width: 440px; margin-inline: auto; }
  .price-card--featured { transform: scale(1); }
  .price-card--featured:hover { transform: translateY(-5px); }
  .about__team { grid-template-columns: 1fr; max-width: 360px; margin-inline: auto 56px; }
}

@media (max-width: 980px) {
  .reachout__grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  .services__grid { grid-template-columns: 1fr; }
  .reachout__grid { grid-template-columns: 1fr; }
  .footer__inner { flex-direction: column; }

  /* Touch / mobile: static cards, no auto-scroll, show Visit button */
  .carousel__track { animation: none; gap: 18px; padding-inline: 18px; overflow-x: auto; -webkit-overflow-scrolling: touch; scroll-snap-type: x mandatory; }
  .carousel { -webkit-mask-image: none; mask-image: none; overflow-x: auto; }
  .work-card { scroll-snap-align: center; width: 86vw; max-width: 340px; }
  .work-card__visit {
    display: inline-block; font-size: 0.72rem; font-weight: 600;
    padding: 4px 12px; border-radius: 999px; background: var(--color-primary); color: #fff;
  }
}

/* ===== REDUCED MOTION ===== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}
