/* ════════════════════════════════════════════════════════════════
   HOMEPAGE-SPECIFIC STYLES (hero section only)
   Brand colours are defined globally in css/styles.css. This block
   only adds tokens & rules that are unique to the hero.
   ════════════════════════════════════════════════════════════════ */
:root {
  /* Hero card surface — soft coral on the left, soft teal on the right */
  --hero-coral-soft:    #FFF1ED;            /* very light coral wash */
  --hero-coral-deep:    #FCDED5;            /* deeper coral edge */
  --hero-teal-mist:     #E5F7F4;            /* very light teal wash */
  --hero-tag-bg:        #FCE2DA;            /* coral-tinted pill behind the tag */
  --hero-card-radius:   36px;
}

/* ── Topbar uses the dark surface token from styles.css ──────── */
/*  (no override needed — .topbar { background: var(--bg-dark) } */
/*   already resolves to --surface-dark = #003B35 deep teal)     */

/* Header / logo / nav / "Get in Touch" pill / active-link dots
   are now defined globally in css/styles.css so all pages share
   the same chrome. No homepage-only override needed. */

/* ════════════════════════════════════════════════════════════════
   HERO — peach→mint card with slider, chameleons, floating chips
   ════════════════════════════════════════════════════════════════ */
.hero {
  position: relative;
  padding: 56px 0 88px;
}
.hero-container { position: relative; }

/* The big rounded card */
.hero-card {
  position: relative;
  border-radius: var(--hero-card-radius);
  padding: clamp(40px, 5vw, 72px) clamp(28px, 4vw, 64px);
  background:
    radial-gradient(120% 140% at 100% 50%, var(--hero-teal-mist) 0%, transparent 55%),
    linear-gradient(110deg,
                    var(--hero-coral-deep) 0%,
                    var(--hero-coral-soft) 38%,
                    #FFFFFF             58%,
                    var(--hero-teal-mist)  100%);
  overflow: hidden;
  isolation: isolate;
  animation: hero-card-in .9s var(--ease-out) both;
}
@keyframes hero-card-in {
  from { opacity: 0; transform: translateY(18px) scale(.985); }
  to   { opacity: 1; transform: none; }
}
/* Faint dotted texture in teal — sits on top of card gradient */
.hero-card::before {
  content: '';
  position: absolute; inset: 0;
  background-image: radial-gradient(circle at 1px 1px, var(--primary-soft) 1px, transparent 0);
  background-size: 22px 22px;
  -webkit-mask-image: radial-gradient(120% 120% at 80% 60%, #000 0%, transparent 70%);
          mask-image: radial-gradient(120% 120% at 80% 60%, #000 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.hero-card-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: clamp(24px, 4vw, 56px);
  align-items: center;
}

/* ─── LEFT: Text content ──────────────────────────────────────── */
.hero-content > * { animation: hero-up .7s var(--ease-out) both; }
.hero-content > *:nth-child(1) { animation-delay: .05s; }
.hero-content > *:nth-child(2) { animation-delay: .15s; }
.hero-content > *:nth-child(3) { animation-delay: .25s; }
.hero-content > *:nth-child(4) { animation-delay: .33s; }
.hero-content > *:nth-child(5) { animation-delay: .40s; }
@keyframes hero-up {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: none; }
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--hero-tag-bg);             /* coral-tinted pill */
  color: var(--text);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  padding: 10px 22px;
  border-radius: 999px;
  margin-bottom: 28px;
}
.hero-tag-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--secondary);               /* coral pulse */
  animation: pulse-dot 2.2s ease-in-out infinite;
}
@keyframes pulse-dot {
  0%, 100% { transform: scale(1);   opacity: 1;   }
  50%      { transform: scale(1.5); opacity: .55; }
}

.hero-title {
  font-family: 'Outfit', 'Inter', sans-serif;
  font-weight: 700;
  font-size: clamp(38px, 5.4vw, 70px);
  line-height: 1.05;
  letter-spacing: -.025em;
  color: var(--text);
  margin: 0 0 26px;
}
/* Dual-tone headline — primary teal for "digital",
   secondary coral for "experiences". Each accent word
   uses a modifier class so the colours can be swapped
   independently if you ever want to flip them. */
.hero-title-accent           { color: var(--primary);   }
.hero-title-accent--alt      { color: var(--secondary); }

.hero-desc {
  font-size: 17px;
  color: var(--text-muted);
  max-width: 480px;
  line-height: 1.75;
  margin: 0 0 28px;
}

.hero-dots {
  display: block;
  width: 56px;
  height: auto;
  margin: 0 0 22px;
  opacity: .9;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  align-items: center;
}

/* Pill buttons (override only inside the hero) */
.hero .btn-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 30px;
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: .01em;
  border-radius: 999px;
  border: 1.5px solid transparent;
  transition: transform .25s var(--ease-out), box-shadow .25s var(--ease-out),
              background .25s var(--ease-out), border-color .25s var(--ease-out),
              color .25s var(--ease-out);
  cursor: pointer;
}
.hero .btn-pill svg {
  width: 16px; height: 16px;
  stroke: currentColor; fill: none; stroke-width: 2;
  stroke-linecap: round; stroke-linejoin: round;
  transition: transform .25s var(--ease-out);
}
/* Primary action — solid teal */
.hero .btn-pill--solid {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 8px 20px var(--primary-glow);
}
.hero .btn-pill--solid:hover {
  background: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 14px 30px var(--primary-glow);
}
.hero .btn-pill--solid:hover svg { transform: translateX(4px); }
/* Secondary action — coral outline (uses the secondary brand colour) */
.hero .btn-pill--outline {
  background: transparent;
  color: var(--secondary-hover);
  border-color: var(--secondary);
}
.hero .btn-pill--outline:hover {
  background: var(--secondary);
  color: #fff;
  border-color: var(--secondary);
  transform: translateY(-2px);
  box-shadow: 0 10px 24px var(--secondary-glow);
}

/* ─── RIGHT: Slider stage ─────────────────────────────────────── */
.hero-stage {
  position: relative;
  min-height: 460px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Decorative chase-arrows tucked between text & image */
.hero-arrows {
  position: absolute;
  left: -68px; top: 50%;
  transform: translate(var(--px, 0px), calc(-50% + var(--py, 0px)));
  width: 96px;
  opacity: .85;
  pointer-events: none;
  display: none; /* shown on >=1024px below */
}

/* Slider window */
.hero-slider {
  position: relative;
  width: 100%;
  max-width: 560px;
  aspect-ratio: 11 / 9;
  overflow: hidden;            /* clip side-by-side slides to one viewport */
  border-radius: 24px;          /* gentle softening of slide edges */
  z-index: 1;
}
.hero-slider-track {
  display: flex;
  width: 100%;
  height: 100%;
  transition: transform .85s cubic-bezier(.65, .04, .25, 1);
  will-change: transform;
}
.hero-slide {
  flex: 0 0 100%;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 6px;
}
.hero-slide img {
  width: 100%;
  height: 100%;
  max-height: 100%;
  object-fit: contain;
  /* default state: slightly lower & faded; .is-active scales/lifts */
  opacity: .55;
  transform: scale(.96);
  transition: opacity .85s var(--ease-out), transform .85s var(--ease-out);
  filter: drop-shadow(0 30px 40px rgba(15, 23, 42, 0.12));
}
.hero-slide.is-active img {
  opacity: 1;
  transform: scale(1);
  animation: prop-bob 7s ease-in-out 1s infinite;
}
@keyframes prop-bob {
  0%, 100% { transform: translateY(0)    scale(1);    }
  50%      { transform: translateY(-8px) scale(1.01); }
}

/* Floating service chips */
.hero-chip {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #fff;
  color: var(--text);
  font-size: 14px;
  font-weight: 600;
  padding: 12px 20px;
  border-radius: 999px;
  box-shadow: 0 14px 30px rgba(15, 23, 42, .10),
              0 2px 6px rgba(15, 23, 42, .04);
  z-index: 3;
  white-space: nowrap;
  letter-spacing: .005em;
}
.hero-chip-dot {
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 0 0 4px var(--primary-soft);
}
/* Bottom chip uses the amber accent — keeps the 3-colour
   brand visible at a glance (teal + coral + amber). */
.hero-chip--bottom .hero-chip-dot {
  background: var(--accent-amber);
  box-shadow: 0 0 0 4px var(--accent-amber-soft);
}
.hero-chip--top {
  top: 6%; left: -4%;
  animation: chip-float 5.5s ease-in-out infinite;
}
.hero-chip--bottom {
  bottom: 8%; right: -6%;
  animation: chip-float 6.5s ease-in-out -2s infinite;
}
@keyframes chip-float {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-10px); }
}

/* Pagination dots beneath slider */
.hero-pagination {
  position: absolute;
  left: 50%;
  bottom: -8px;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 4;
}
.hero-pagination .hero-dot {
  width: 9px; height: 9px;
  border-radius: 999px;
  border: 0;
  padding: 0;
  background: var(--neutral-300);
  cursor: pointer;
  transition: width .35s var(--ease-out), background .25s var(--ease-out);
}
.hero-pagination .hero-dot.is-active {
  width: 28px;
  background: var(--primary);
}
.hero-pagination .hero-dot:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 3px;
}

/* ─── Chameleon mascots ───────────────────────────────────────── */
.hero-chameleon {
  position: absolute;
  z-index: 5;
  pointer-events: none;
  transform: translate(var(--px, 0px), var(--py, 0px));
  transition: transform .6s cubic-bezier(.2, .8, .2, 1);
}
.hero-chameleon--orange {
  top: -48px;
  left: 64px;
  width: 92px;
  animation: rock 5s ease-in-out infinite;
  transform-origin: bottom center;
}
.hero-chameleon--green {
  top: 38%;
  right: -20px;                /* was -42px — pulled in closer to the card edge */
  width: 78px;
  animation: bob 6s ease-in-out infinite;
}
@keyframes rock {
  0%, 100% { transform: translate(var(--px, 0px), var(--py, 0px)) rotate(-4deg);  }
  50%      { transform: translate(var(--px, 0px), var(--py, 0px)) rotate(4deg);   }
}
@keyframes bob {
  0%, 100% { transform: translate(var(--px, 0px), var(--py, 0px))             rotate(-3deg); }
  50%      { transform: translate(var(--px, 0px), calc(var(--py, 0px) - 12px)) rotate(2deg); }
}

/* ════════════════════════════════════════════════════════════════
   STATS / SERVICES / ABOUT / WORKS — UNCHANGED FROM ORIGINAL
   (these classes are untouched, only re-tinted via --accent var)
   ════════════════════════════════════════════════════════════════ */
.stats-strip {
  padding: 56px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  text-align: center;
}
.stat-num {
  font-family: 'Outfit', sans-serif;
  font-size: 40px;
  font-weight: 700;
  line-height: 1;
  background: linear-gradient(135deg, var(--accent), var(--indigo));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.stat-label {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 6px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.about-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.about-img-wrap {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.about-img-wrap .dot-pattern {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 2px 2px, var(--border) 1px, transparent 0);
  background-size: 24px 24px;
  opacity: .4;
}
.about-img-wrap img {
  width: 80%; height: 80%;
  object-fit: cover;
  border-radius: var(--radius);
  position: relative;
  z-index: 1;
}
.works-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

/* ════════════════════════════════════════════════════════════════
   RESPONSIVE — hero, then untouched original breakpoints
   ════════════════════════════════════════════════════════════════ */
@media (min-width: 1024px) {
  .hero-arrows { display: block; animation: arrows-chase 2.6s ease-in-out infinite; }
}
@keyframes arrows-chase {
  0%, 100% { opacity: .55; transform: translate(var(--px,0), calc(-50% + var(--py,0)))            ; }
  50%      { opacity: 1;   transform: translate(calc(var(--px,0) + 8px), calc(-50% + var(--py,0))); }
}

@media (max-width: 1024px) {
  .hero { padding: 32px 0 64px; }
  .hero-card { padding: 56px 32px; }
  .hero-card-grid {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: left;
  }
  .hero-stage { order: -1; min-height: 360px; }
  .hero-slider { max-width: 480px; }
  .hero-chameleon--green { right: -22px; width: 68px; }
  .hero-chameleon--orange { left: 28px; top: -32px; width: 80px; }
  .about-split { grid-template-columns: 1fr; gap: 48px; }
  .services-grid { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .hero { padding: 20px 0 56px; }
  .hero-card {
    padding: 56px 22px 48px;
    border-radius: 28px;
  }
  .hero-title { font-size: clamp(34px, 8.4vw, 44px); }
  .hero-desc  { font-size: 16px; }
  .hero-stage { min-height: 300px; }
  .hero-slider { max-width: 100%; }
  .hero-chip { font-size: 12px; padding: 9px 14px; }
  .hero-chip--top    { top: 0; left: -2%; }
  .hero-chip--bottom { bottom: 4%; right: -2%; }
  .hero-chameleon--orange { left: 18px; top: -26px; width: 64px; }
  .hero-chameleon--green  { right: -10px; width: 56px; }
  .hero-actions { gap: 10px; }
  .hero .btn-pill { padding: 14px 22px; font-size: 14px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .works-grid { grid-template-columns: 1fr; }
}

@media (max-width: 420px) {
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero .btn-pill { justify-content: center; }
  .hero-chameleon--orange { width: 56px; left: 12px; top: -22px; }
}

/* Reduced-motion users: kill heavy animations */
@media (prefers-reduced-motion: reduce) {
  .hero-card,
  .hero-chameleon,
  .hero-chip,
  .hero-slide.is-active img,
  .hero-arrows,
  .hero-content > * { animation: none !important; }
  .hero-slider-track { transition-duration: .01ms !important; }
}