/* Kosin Media Group -- shared styles */

:root {
  --bg: #000000;
  --bg-elevated: #121214;
  --bg-elevated-2: #0a0a0c;
  --border: rgba(255, 255, 255, 0.08);
  --text: #ffffff;
  --text-muted: #a4a4ac;
  --pink: #e0059f;
  --purple: #6a2be0;
  --blue: #2b5fe0;
  --cyan: #35c8f0;
  --gradient: linear-gradient(120deg, var(--pink), var(--purple) 40%, var(--blue) 70%, var(--cyan));
  --gradient-diagonal: linear-gradient(115deg, #7a0a6e 0%, #3a1fa8 35%, #1c4fd6 65%, #2fa9e8 100%);
  --max-width: 1200px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1,
h2,
h3,
h4 {
  font-family: "Cabinet Grotesk", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

svg {
  display: block;
}

.icon-sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

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

.eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 14px;
}

/* Scroll fade-in */
.scroll-reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.scroll-reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .scroll-reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* Gradient text utility */
.gradient-text {
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.about-story-accent {
  color: #a518c0;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  border: 1px solid transparent;
  cursor: pointer;
  transition: filter 0.2s ease, opacity 0.2s ease, border-color 0.2s ease;
  white-space: nowrap;
  position: relative;
}

.btn:hover {
  filter: brightness(0.65);
}

.btn-primary {
  background: linear-gradient(rgba(0, 0, 0, 0.15), rgba(0, 0, 0, 0.15)), var(--gradient);
  background-clip: border-box;
  border: none;
  color: #fff;
  box-shadow: 0 8px 24px rgba(106, 43, 224, 0.35);
}

.btn-outline {
  background: transparent;
  border-color: var(--border);
  color: var(--text);
}

.btn-outline:hover {
  border-color: rgba(255, 255, 255, 0.5);
}

.btn-dark {
  background: #000;
  border: none;
  color: #fff;
}

.btn-dark:hover {
  background: #262626;
  filter: none;
}

.btn-sm {
  padding: 10px 22px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.btn img,
.btn svg {
  width: 14px;
  height: 14px;
}

.text-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text);
  padding-bottom: 3px;
}

.text-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.2s ease;
}

.text-link:hover::after {
  transform: scaleX(1);
}

.text-link svg {
  width: 14px;
  height: 14px;
  stroke: currentColor;
  transition: transform 0.2s ease;
}

.text-link:hover svg {
  transform: translateX(2px);
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: transparent;
  transition: transform 0.35s ease;
}

.site-header.nav-hidden {
  transform: translateY(-100%);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 145px;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.brand img {
  height: 180px;
  width: auto;
  margin-left: -19px;
  transform: translate(-55px, 6px);
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.85)) drop-shadow(0 2px 10px rgba(0, 0, 0, 0.5));
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 32px;
  flex: 1;
  justify-content: flex-end;
}

.main-nav .nav-links {
  display: flex;
  align-items: center;
  gap: 46px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.main-nav .nav-links a {
  position: relative;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text);
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.9), 0 2px 12px rgba(0, 0, 0, 0.5);
  transition: color 0.2s ease;
}

.main-nav .nav-links a:hover,
.main-nav .nav-links a.active {
  color: var(--cyan);
}

.main-nav .nav-links li.menu-cta {
  display: none;
}

/* Services nav dropdown */
.nav-item-dropdown {
  position: relative;
  display: flex;
  align-items: center;
  gap: 2px;
}

/* Invisible bridge so moving the cursor down from the link to the panel
   doesn't cross a gap and lose :hover before it arrives. */
.nav-item-dropdown::after {
  content: "";
  position: absolute;
  top: 100%;
  left: -12px;
  right: -12px;
  height: 20px;
}

.nav-dropdown-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  padding: 0;
  background: transparent;
  border: none;
  color: var(--text);
  cursor: pointer;
}

.nav-dropdown-toggle svg {
  width: 12px;
  height: 12px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 0.2s ease;
}

.nav-item-dropdown:hover .nav-dropdown-toggle svg,
.nav-item-dropdown.open .nav-dropdown-toggle svg {
  transform: rotate(180deg);
}

.nav-dropdown {
  position: absolute;
  top: 100%;
  left: -16px;
  margin-top: 20px;
  min-width: 250px;
  list-style: none;
  padding: 10px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.5);
  opacity: 0;
  transform: translateY(8px);
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
  z-index: 200;
}

.nav-item-dropdown:hover .nav-dropdown,
.nav-item-dropdown:focus-within .nav-dropdown,
.nav-item-dropdown.open .nav-dropdown {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.main-nav .nav-links .nav-dropdown a {
  display: block;
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: normal;
  text-transform: none;
  text-shadow: none;
  color: var(--text);
  white-space: nowrap;
}

.main-nav .nav-links .nav-dropdown a:hover {
  background: rgba(255, 255, 255, 0.06);
  color: var(--cyan);
}

.header-cta {
  flex-shrink: 0;
}

/* Hamburger toggle -- mobile only */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 50%;
  cursor: pointer;
  padding: 0;
  flex-shrink: 0;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--text);
  margin: 0 auto;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.nav-toggle.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle.open span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Icon box (mission features, service cards, process steps) */
.icon-box {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.icon-box svg {
  width: 22px;
  height: 22px;
  color: #fff;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.step-marker {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--purple);
  background: rgba(255, 255, 255, 0.04);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 700;
  flex-shrink: 0;
}

.step-marker,
.process-detail-copy .step-number {
  opacity: 0;
  clip-path: inset(0 100% 0 0);
  transition: opacity 0.6s ease, clip-path 0.9s cubic-bezier(0.65, 0, 0.35, 1);
}

.step-marker.is-visible,
.process-detail-copy .step-number.is-visible {
  opacity: 1;
  clip-path: inset(0 0 0 0);
}

@media (prefers-reduced-motion: reduce) {
  .step-marker,
  .process-detail-copy .step-number {
    opacity: 1;
    clip-path: none;
    transition: none;
  }
}

/* ============ Legacy simple page banner (Services / Get Started / stub pages) ============ */
.hero {
  position: relative;
  overflow: hidden;
  padding: 120px 0 100px;
  text-align: center;
  isolation: isolate;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("../assets/hero-gradient.jpg") center 20% / cover no-repeat;
  opacity: 0.55;
  z-index: -2;
}

.services-hero::before,
.services-hero::after {
  display: none;
}

/* Full-bleed photo hero variant — the service's real photo fills the whole
   section as a dimmed background instead of sitting in a separate card.
   The photo lives in ::before (masked to fade out at the bottom) rather
   than the section's own background, so it bleeds smoothly into the
   fixed page gradient behind it instead of cutting off in a hard line. */
.paid-ads-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  margin-top: -145px;
  padding: 295px 0 170px;
}

/* Wrapper carries the single bottom-fade mask, applied once to the whole
   composited photo (blurred base + sharp overlay together) so it bleeds
   into the next section without needing multi-layer mask-composite. */
.paid-ads-hero-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
}

/* Base layer: the whole photo, blurred and dimmed — this is what shows
   behind the text on the left. */
.paid-ads-hero-bg::before {
  content: "";
  display: block;
  position: absolute;
  inset: -40px;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.97) 0%, rgba(0, 0, 0, 0.9) 100%),
    url("../assets/service-paid-ads.webp") 82% 30% / cover no-repeat;
  filter: blur(12px);
}

/* Top layer: the same photo, sharp, masked to fade in gradually toward the
   TV/right side — a slow, continuous blend rather than a hard split. */
.paid-ads-hero-bg::after {
  content: "";
  display: block;
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.62) 100%),
    url("../assets/service-paid-ads.webp") 82% 30% / cover no-repeat;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 95%);
  mask-image: linear-gradient(90deg, transparent 0%, #000 95%);
}

.paid-ads-hero .service-detail-row {
  display: block;
}

.paid-ads-hero .service-detail-copy {
  max-width: 900px;
}

@media (max-width: 900px) {
  .paid-ads-hero {
    padding: 250px 0 60px;
  }

  .paid-ads-hero-bg::before {
    background:
      linear-gradient(rgba(0, 0, 0, 0.9), rgba(0, 0, 0, 0.9)),
      url("../assets/service-paid-ads.webp") center 30% / cover no-repeat;
    filter: none;
  }

  .paid-ads-hero-bg::after {
    display: none;
  }
}

/* Full-bleed photo hero (AI Automation page) — same edge-to-edge sizing as
   the homepage video hero (negative margin slides it under the sticky
   header, matching padding). Simple single dark gradient overlay, no
   blur split, plus the same bottom-fade bleed into the next section. */
.ai-automation-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  margin-top: -145px;
  padding: 295px 0 190px;
}

.ai-automation-hero-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
}

.ai-automation-hero-bg::before {
  content: "";
  display: block;
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.96) 0%, rgba(0, 0, 0, 0.84) 45%, rgba(0, 0, 0, 0.68) 100%),
    url("../assets/hero-ai-automation.webp") center top / cover no-repeat;
}

.ai-automation-hero .service-detail-row {
  display: block;
}

.ai-automation-hero .service-detail-copy {
  max-width: 900px;
}

@media (max-width: 900px) {
  .ai-automation-hero {
    padding: 250px 0 60px;
  }

  .ai-automation-hero-bg::before {
    background:
      linear-gradient(rgba(0, 0, 0, 0.9), rgba(0, 0, 0, 0.9)),
      url("../assets/hero-ai-automation.webp") center top / cover no-repeat;
  }
}

/* Full-bleed photo hero (Web Design & Development page) — same treatment
   as the AI Automation hero: single dark gradient overlay photo bleeding
   into the next section, left-aligned copy. */
.web-design-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  margin-top: -145px;
  padding: 295px 0 190px;
  min-height: 100vh;
  display: flex;
  align-items: center;
}

.web-design-hero .container {
  width: 100%;
}

.web-design-hero-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
}

.web-design-hero-bg::before {
  content: "";
  display: block;
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.96) 0%, rgba(0, 0, 0, 0.82) 45%, rgba(0, 0, 0, 0.55) 100%),
    url("../assets/hero-web-design.webp") center 30% / cover no-repeat;
}

.web-design-hero .service-detail-row {
  display: block;
}

.web-design-hero .service-detail-copy {
  max-width: 900px;
}

@media (max-width: 900px) {
  .web-design-hero {
    padding: 250px 0 60px;
  }

  .web-design-hero-bg::before {
    background:
      linear-gradient(rgba(0, 0, 0, 0.9), rgba(0, 0, 0, 0.9)),
      url("../assets/hero-web-design.webp") center top / cover no-repeat;
  }
}

body.page-about::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  opacity: 0.5;
  background:
    radial-gradient(ellipse at 10% 20%, rgba(224, 5, 159, 0.45) 0%, transparent 50%),
    radial-gradient(ellipse at 100% 60%, rgba(53, 200, 240, 0.4) 0%, transparent 55%),
    linear-gradient(160deg, #05040f 0%, #1b1240 25%, #1c2e73 55%, #1c5aa8 80%, #2f8fce 100%);
}

body.services-page::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  opacity: 0.5;
  background:
    radial-gradient(ellipse at 10% 20%, rgba(224, 5, 159, 0.45) 0%, transparent 50%),
    radial-gradient(ellipse at 100% 60%, rgba(53, 200, 240, 0.4) 0%, transparent 55%),
    linear-gradient(160deg, #05040f 0%, #1b1240 25%, #1c2e73 55%, #1c5aa8 80%, #2f8fce 100%);
}

body.our-process-page::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  opacity: 0.5;
  background:
    radial-gradient(ellipse at 10% 20%, rgba(224, 5, 159, 0.45) 0%, transparent 50%),
    radial-gradient(ellipse at 100% 60%, rgba(53, 200, 240, 0.4) 0%, transparent 55%),
    linear-gradient(160deg, #05040f 0%, #1b1240 25%, #1c2e73 55%, #1c5aa8 80%, #2f8fce 100%);
}

body.our-process-page::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background: rgba(0, 0, 0, 0.3);
}

body.our-process-page .hero::before,
body.our-process-page .hero::after {
  display: none;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.35) 0%, var(--bg) 92%);
  z-index: -1;
}

.hero-mark {
  width: 64px;
  margin: 0 auto 28px;
}

.hero h1 {
  font-size: clamp(2.4rem, 5vw, 4rem);
  margin: 0 0 20px;
  letter-spacing: -0.02em;
}

.hero p.lead {
  max-width: 560px;
  margin: 0 auto 36px;
  color: var(--text-muted);
  font-size: 1.05rem;
}

.hero-actions {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

/* Services index page: left-aligned hero, matching a full-service agency layout */
.services-index-hero {
  text-align: left;
  padding: 100px 0 70px;
}

.services-index-hero h1 {
  font-size: clamp(2.4rem, 4.4vw, 3.8rem);
  max-width: 780px;
  margin: 0 0 24px;
  letter-spacing: -0.02em;
  line-height: 1.08;
}

.services-index-hero p.lead {
  margin: 0;
  max-width: 480px;
}

/* ============ Homepage hero (photo background, left aligned) ============ */
.home-hero {
  position: relative;
  overflow: hidden;
  margin-top: -145px;
  padding: 295px 0 190px;
  isolation: isolate;
  min-height: 100vh;
  display: flex;
  align-items: center;
}

.home-hero .container {
  width: 100%;
}

.home-hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -3;
  will-change: transform;
  transform: scale(1.1);
}

.home-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("../assets/hero-gradient.jpg") center 30% / cover no-repeat;
  z-index: -4;
}

.home-hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: -2;
}

.home-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 60%, var(--bg) 100%);
  z-index: -1;
}

.home-hero-content {
  max-width: 900px;
}

.home-hero h1 {
  font-size: clamp(3.4rem, 7.4vw, 6.2rem);
  line-height: 0.98;
  margin: 0 0 28px;
  letter-spacing: -0.03em;
}

.home-hero p.lead {
  color: var(--text-muted);
  max-width: 480px;
  margin: 0 0 36px;
  font-size: 1.15rem;
}

.home-hero-actions {
  display: flex;
  align-items: center;
  gap: 28px;
  flex-wrap: wrap;
  margin-top: 40px;
}

.home-hero-actions .btn.btn-primary {
  padding: 15px 30px;
  font-size: 0.76rem;
  background: #a518c0;
  box-shadow: 0 8px 24px rgba(165, 24, 192, 0.35);
}


.home-hero-actions .text-link {
  font-size: 0.82rem;
  gap: 8px;
}

.home-hero-actions .text-link svg {
  width: 15px;
  height: 15px;
}

/* ============ Mission section (diagonal gradient banner) ============ */
.mission {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 10% 20%, rgba(224, 5, 159, 0.45) 0%, transparent 50%),
    radial-gradient(ellipse at 100% 60%, rgba(53, 200, 240, 0.4) 0%, transparent 55%),
    linear-gradient(160deg, #05040f 0%, #1b1240 25%, #1c2e73 55%, #1c5aa8 80%, #2f8fce 100%);
  padding: 200px 0;
}

/* A field of small aura points, each independently pulsing brighter/dimmer
   and drifting, on top of the static base gradient — many light sources
   rather than one or two shapes, so the whole field feels alive. */
.mission .aura-points {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.mission .aura-point {
  position: absolute;
  top: var(--y);
  left: var(--x);
  width: var(--s);
  height: var(--s);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(var(--c), 0.9), transparent 72%);
  filter: blur(38px);
  mix-blend-mode: screen;
  opacity: 0.3;
  animation: aura-pulse-drift var(--dur, 4s) ease-in-out infinite;
  animation-delay: var(--delay, 0s);
}

.mission .container {
  position: relative;
  z-index: 1;
}

@keyframes aura-pulse-drift {
  0% { opacity: 0.28; transform: translate(-50%, -50%) translate(0, 0) scale(0.85); }
  25% { opacity: 0.95; transform: translate(-50%, -50%) translate(18px, -14px) scale(1.3); }
  50% { opacity: 0.32; transform: translate(-50%, -50%) translate(-12px, 16px) scale(0.9); }
  75% { opacity: 0.9; transform: translate(-50%, -50%) translate(14px, 12px) scale(1.25); }
  100% { opacity: 0.28; transform: translate(-50%, -50%) translate(0, 0) scale(0.85); }
}

@media (prefers-reduced-motion: reduce) {
  .mission .aura-point {
    animation: none;
    opacity: 0.45;
  }
}

@media (max-width: 720px) {
  .mission .aura-points {
    display: none;
  }
}

/* Alternate treatment: vertical aura stripes spanning left to right, each
   bobbing up/down independently instead of circular pulsing points. */
.aura-stripes {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.aura-stripes:not(.in-view) .aura-stripe,
.aura-stripes:not(.in-view) .aura-color {
  animation-play-state: paused;
}

.aura-stripe {
  position: absolute;
  top: -10%;
  left: var(--x);
  width: calc(var(--w, 140px) * 1.8);
  height: 115%;
  margin-left: calc(var(--w, 140px) * -0.4);
  will-change: transform;
  animation: aura-stripe-flow var(--dur, 5s) ease-in-out infinite;
}

/* Only translate — never scale a blurred layer, since resizing forces the
   browser to re-rasterize the blur on every frame instead of reusing one
   cached bitmap. That re-rasterization was the real scroll cost. */
@keyframes aura-stripe-flow {
  0%, 100% { transform: translateY(-50px); }
  50% { transform: translateY(45px); }
}

/* Each stripe holds 4 color layers (light blue, dark blue, purple, pink)
   that cross-fade in sequence — an ombre pulse instead of one flat color.
   Every layer's own gradient content never changes, only its opacity, so
   each blur is computed once and cached rather than re-rendered per frame. */
.aura-color {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: radial-gradient(ellipse at center, rgba(var(--c), 0.7) 0%, rgba(var(--c), 0.4) 30%, rgba(var(--c), 0.15) 55%, transparent 75%);
  filter: blur(40px);
  opacity: 0;
  will-change: opacity;
  animation: aura-color-pulse var(--cdur, 5.6s) ease-in-out infinite;
  animation-delay: var(--delay, 0s);
}

/* Confined to roughly a quarter of the cycle (double the 1/8 spacing between
   the 8 layers) so at most two neighboring layers ever overlap at a time —
   a full-cycle sine kept every layer partly visible simultaneously, which
   stacked 8 overlapping gradient edges into a "rings" artifact. */
@keyframes aura-color-pulse {
  0%, 37.5%, 62.5%, 100% { opacity: 0; }
  43.75% { opacity: 0.25; }
  50% { opacity: 0.5; }
  56.25% { opacity: 0.25; }
}

/* Pink gets extra punch so it still reads clearly on the right side, where
   it's competing against the static base gradient's blue corner. */
.aura-color--pink {
  animation-name: aura-color-pulse-pink;
}

@keyframes aura-color-pulse-pink {
  0%, 37.5%, 62.5%, 100% { opacity: 0; }
  43.75% { opacity: 0.38; }
  50% { opacity: 0.75; }
  56.25% { opacity: 0.38; }
}

@media (prefers-reduced-motion: reduce) {
  .aura-stripe {
    animation: none;
  }

  .aura-color {
    animation: none;
    opacity: 0.5;
  }
}

/* High-tech touch: soft glow that follows the cursor on hero/gradient sections */
.spotlight-target {
  position: relative;
  overflow: hidden;
}

.spotlight-target::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(circle 480px at var(--spot-x, 50%) var(--spot-y, 50%), rgba(255, 255, 255, 0.12), transparent 70%);
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}

.spotlight-target:hover::after {
  opacity: 1;
}

@media (prefers-reduced-motion: reduce) {
  .spotlight-target::after {
    display: none;
  }
}

.mission .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.mission h2 {
  font-size: clamp(2.6rem, 5.4vw, 4.4rem);
  line-height: 1.02;
  letter-spacing: -0.02em;
  max-width: 1050px;
  margin: 0 0 24px;
}

.mission h2 .no-wrap {
  white-space: nowrap;
}

@media (max-width: 720px) {
  .mission h2 .no-wrap {
    white-space: normal;
  }
}

.mission p.lead {
  color: rgba(255, 255, 255, 0.82);
  max-width: 620px;
  margin-left: auto;
  margin-right: auto;
  font-size: 1.05rem;
}

.mission-features {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.mission-feature {
  display: flex;
  gap: 14px;
  align-items: center;
}

.mission .icon-box {
  width: 44px;
  height: 44px;
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.3);
}

.mission .icon-box svg {
  width: 20px;
  height: 20px;
}

.mission-feature h3 {
  margin: 0 0 4px;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.mission-feature p {
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.88rem;
}

/* ============ Section heading patterns ============ */
.section-heading {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 56px;
}

.section-heading h2 {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  margin: 0;
}

.split-heading {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 40px;
  margin-bottom: 56px;
  flex-wrap: wrap;
}

.split-heading .heading-main h2 {
  font-size: clamp(2.4rem, 4.6vw, 3.6rem);
  margin: 0;
  line-height: 1.05;
  letter-spacing: -0.02em;
}

.split-heading p {
  max-width: 380px;
  color: var(--text-muted);
  font-size: 0.92rem;
  margin: 0;
}

/* ============ Ticker (large rotating photo cards) ============ */
.ticker-section {
  position: relative;
  overflow: hidden;
  padding: 48px 0;
}

.ticker-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.55);
  border: 1px solid var(--border);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #fff;
  padding: 0;
  transition: background 0.2s ease;
}

.ticker-nav:hover {
  background: rgba(0, 0, 0, 0.8);
}

.ticker-nav svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.ticker-nav-prev {
  left: 16px;
}

.ticker-nav-next {
  right: 16px;
}

@media (max-width: 720px) {
  .ticker-nav {
    width: 36px;
    height: 36px;
  }

  .ticker-nav svg {
    width: 16px;
    height: 16px;
  }
}

.ticker-track {
  display: flex;
  width: max-content;
  gap: 22px;
  align-items: flex-start;
  cursor: grab;
  touch-action: pan-y;
  -webkit-user-select: none;
  user-select: none;
}

.ticker-track.dragging {
  cursor: grabbing;
}

.ticker-item {
  position: relative;
  display: block;
  flex-shrink: 0;
  width: 300px;
  height: 340px;
  border-radius: 20px;
  overflow: hidden;
  background-color: var(--bg-elevated);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transition: transform 0.35s ease;
}

.ticker-item--wide {
  width: 380px;
  background-position: top center;
}

.ticker-item::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(5, 5, 10, 0.58);
  transition: opacity 0.3s ease;
}

/* Dedicated bottom scrim just for the label — stays independent of the
   full-image dim film above, so the text keeps contrast even once the
   photo brightens to full color on hover. */
.ticker-item::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, transparent 45%, rgba(0, 0, 0, 0.85) 100%);
  opacity: 0;
  transition: opacity 0.25s ease;
}

.ticker-item:hover::before,
.ticker-item:focus-visible::before {
  opacity: 1;
}

.ticker-item span {
  position: absolute;
  left: 20px;
  right: 20px;
  bottom: 20px;
  z-index: 2;
  color: #fff;
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  line-height: 1.25;
  text-transform: uppercase;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.9), 0 2px 12px rgba(0, 0, 0, 0.6);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.ticker-item:hover,
.ticker-item:focus-visible {
  transform: scale(1.03);
}

.ticker-item:hover::after,
.ticker-item:focus-visible::after {
  opacity: 0;
}

.ticker-item:hover span,
.ticker-item:focus-visible span {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 720px) {
  .ticker-item {
    width: 190px;
    height: 260px;
  }

  .ticker-item--wide {
    width: 280px;
  }
}

/* ============ Services grid ============ */
.services-section {
  padding: 130px 0;
}

.services-detail-section {
  position: relative;
  overflow: hidden;
  padding: 100px 0 60px;
}

/* Large abstract gradient shapes drifting slowly behind the service rows.
   mix-blend-mode: screen makes these punch through the page's existing
   fixed gradient wash instead of blending invisibly into it. */
.services-bg-shape {
  position: absolute;
  border-radius: 50%;
  filter: blur(35px);
  mix-blend-mode: screen;
  pointer-events: none;
  z-index: -1;
  animation: services-shape-bob-vertical 6s ease-in-out infinite;
}

.services-bg-shape--a {
  width: 560px;
  height: 560px;
  top: 2%;
  left: -8%;
  background: radial-gradient(circle at 40% 40%, rgba(255, 45, 190, 0.4), rgba(224, 5, 159, 0.16) 45%, transparent 72%);
  animation-name: services-shape-bob-vertical;
  animation-duration: 6.5s;
}

.services-bg-shape--b {
  width: 480px;
  height: 480px;
  top: 42%;
  right: -10%;
  background: radial-gradient(circle at 55% 40%, rgba(70, 225, 255, 0.6), rgba(53, 200, 240, 0.22) 45%, transparent 72%);
  animation-name: services-shape-bob-diagonal;
  animation-duration: 7s;
  animation-delay: -2s;
}

.services-bg-shape--c {
  width: 520px;
  height: 520px;
  top: 80%;
  left: -6%;
  background: radial-gradient(circle at 45% 50%, rgba(155, 80, 255, 0.36), rgba(106, 43, 224, 0.13) 45%, transparent 72%);
  animation-name: services-shape-bob-diagonal-rev;
  animation-duration: 5.5s;
  animation-delay: -3.5s;
}

.services-bg-shape--small {
  filter: blur(22px);
}

.services-bg-shape--d {
  width: 220px;
  height: 220px;
  top: 24%;
  right: 8%;
  background: radial-gradient(circle at 45% 45%, rgba(155, 80, 255, 0.3), rgba(106, 43, 224, 0.12) 45%, transparent 72%);
  animation-name: services-shape-bob-vertical-small;
  animation-duration: 4.5s;
  animation-delay: -1s;
}

.services-bg-shape--e {
  width: 180px;
  height: 180px;
  top: 62%;
  left: 6%;
  background: radial-gradient(circle at 45% 45%, rgba(255, 45, 190, 0.43), rgba(224, 5, 159, 0.18) 45%, transparent 72%);
  animation-name: services-shape-bob-diagonal-small;
  animation-duration: 5.5s;
  animation-delay: -3s;
}

.services-bg-shape--f {
  width: 200px;
  height: 200px;
  top: 94%;
  right: 12%;
  background: radial-gradient(circle at 45% 45%, rgba(70, 225, 255, 0.5), rgba(53, 200, 240, 0.2) 45%, transparent 72%);
  animation-name: services-shape-bob-diagonal-rev-small;
  animation-duration: 5s;
  animation-delay: -1.8s;
}

@keyframes services-shape-bob-vertical {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(0, -130px) scale(1.1); }
}

@keyframes services-shape-bob-diagonal {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(85px, -110px) scale(1.1); }
}

@keyframes services-shape-bob-diagonal-rev {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-85px, -110px) scale(1.1); }
}

@keyframes services-shape-bob-vertical-small {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(0, -80px) scale(1.12); }
}

@keyframes services-shape-bob-diagonal-small {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(55px, -75px) scale(1.12); }
}

@keyframes services-shape-bob-diagonal-rev-small {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-55px, -75px) scale(1.12); }
}

@media (prefers-reduced-motion: reduce) {
  .services-bg-shape { animation: none; }
}

@media (max-width: 900px) {
  .services-bg-shape { display: none; }
}

.service-rows {
  display: flex;
  flex-direction: column;
  gap: 160px;
}

.service-detail-row {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

/* The row itself stays put — only its photo and text animate in
   independently as it scrolls into view. */
.service-detail-row.scroll-reveal {
  opacity: 1;
  transform: none;
  transition: none;
}

.service-detail-copy {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.service-detail-row.is-visible .service-detail-copy {
  opacity: 1;
  transform: translateY(0);
}

.service-detail-media {
  opacity: 0;
  transform: scale(1.06);
  transition: opacity 0.8s ease 0.12s, transform 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.12s;
}

.service-detail-row.is-visible .service-detail-media {
  opacity: 1;
  transform: scale(1);
}

@media (prefers-reduced-motion: reduce) {
  .service-detail-copy,
  .service-detail-media {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

.service-detail-copy h3 {
  font-size: clamp(2rem, 3.4vw, 2.8rem);
  margin: 0 0 18px;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.service-detail-copy p {
  color: var(--text-muted);
  font-size: 1rem;
  max-width: 440px;
  margin: 0 0 28px;
}

.service-detail-list {
  list-style: none;
  margin: 0 0 32px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.service-detail-list li {
  font-size: 0.92rem;
  color: var(--text);
  padding-left: 20px;
  position: relative;
}

.service-detail-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 8px;
  height: 1px;
  background: var(--purple);
}

.service-detail-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text);
  border-bottom: 1px solid var(--border);
  padding-bottom: 4px;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.service-detail-link svg {
  width: 14px;
  height: 14px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  transition: transform 0.2s ease;
}

.service-detail-link:hover {
  color: var(--purple);
  border-color: var(--purple);
}

.service-detail-link:hover svg {
  transform: translate(2px, -2px);
}

.service-detail-media img,
.service-detail-media .photo-placeholder {
  width: 100%;
  aspect-ratio: 4 / 3;
  display: block;
}

.service-detail-media img {
  object-fit: cover;
  object-position: center 20%;
  transition: transform 0.25s ease;
}

.service-detail-media {
  overflow: hidden;
}

.service-detail-media:hover img {
  transform: scale(1.04);
}

.service-detail-media img.media-contain {
  object-fit: contain;
  object-position: center;
  background: #050505;
  box-sizing: border-box;
  padding: 34px 50px;
}

@media (max-width: 900px) {
  .service-detail-row {
    grid-template-columns: 1fr;
  }

  .service-detail-media {
    order: -1;
  }
}

.mission-cta {
  margin-top: 36px;
}

/* ============ Portfolio / phone mockups ============ */
.portfolio-section {
  padding: 180px 0;
  background: var(--bg-elevated-2);
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  justify-items: center;
  align-items: end;
}

.portfolio-grid > div {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.scroll-reveal.is-visible .portfolio-grid > div {
  opacity: 1;
  transform: translateY(0);
}

.scroll-reveal.is-visible .portfolio-grid > div:nth-child(1) {
  transition-delay: 0s;
}

.scroll-reveal.is-visible .portfolio-grid > div:nth-child(2) {
  transition-delay: 0.12s;
}

.scroll-reveal.is-visible .portfolio-grid > div:nth-child(3) {
  transition-delay: 0.24s;
}

@media (prefers-reduced-motion: reduce) {
  .portfolio-grid > div {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

.phone-mockup {
  width: 100%;
  max-width: 230px;
  border-radius: 32px;
  border: 8px solid #1a1a1e;
  background: #050506;
  overflow: hidden;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.45);
}

.phone-mockup-photo {
  width: 100%;
  max-width: 260px;
  height: auto;
  transition: transform 0.25s ease;
}

.phone-mockup:hover .phone-mockup-photo {
  transform: scale(1.04);
}

.phone-topbar {
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.phone-topbar::before {
  content: "";
  width: 50px;
  height: 5px;
  border-radius: 4px;
  background: #1a1a1e;
}

.phone-profile {
  padding: 4px 14px 12px;
}

.phone-profile-top {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.phone-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--purple);
  flex-shrink: 0;
}

.phone-name {
  font-size: 0.7rem;
  font-weight: 700;
  color: #fff;
}

.phone-stats {
  display: flex;
  gap: 12px;
  font-size: 0.62rem;
  color: #9a9aa2;
}

.phone-stats strong {
  color: #fff;
  display: block;
  font-size: 0.68rem;
}

.phone-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
}

.phone-grid div {
  aspect-ratio: 1;
  background: linear-gradient(135deg, rgba(224, 5, 159, 0.35), rgba(43, 95, 224, 0.35));
}

.phone-grid div:nth-child(2n) {
  background: linear-gradient(135deg, rgba(106, 43, 224, 0.35), rgba(53, 200, 240, 0.35));
}

.phone-grid div:nth-child(3n) {
  background: linear-gradient(135deg, rgba(53, 200, 240, 0.3), rgba(224, 5, 159, 0.3));
}

.phone-caption {
  text-align: center;
  margin-top: 16px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.portfolio-cta {
  text-align: center;
  margin-top: 48px;
}

/* ============ Process section ============ */
.process-section {
  padding: 180px 0;
}

.process-layout {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 40px;
  flex-wrap: wrap;
}

.process-heading {
  max-width: 320px;
}

.process-heading h2 {
  font-size: clamp(2.4rem, 4.6vw, 3.6rem);
  margin: 0;
  line-height: 1.05;
  letter-spacing: -0.02em;
}

@media (max-width: 720px) {
  .process-heading h2 {
    font-size: clamp(2.2rem, 9vw, 3rem);
  }
}

.process-steps {
  display: flex;
  gap: 44px;
  flex-wrap: wrap;
}

.process-step {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 150px;
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.scroll-reveal.is-visible .process-step {
  opacity: 1;
  transform: translateY(0);
}

.scroll-reveal.is-visible .process-step:nth-child(1) {
  transition-delay: 0s;
}

.scroll-reveal.is-visible .process-step:nth-child(2) {
  transition-delay: 0.1s;
}

.scroll-reveal.is-visible .process-step:nth-child(3) {
  transition-delay: 0.2s;
}

.scroll-reveal.is-visible .process-step:nth-child(4) {
  transition-delay: 0.3s;
}

@media (prefers-reduced-motion: reduce) {
  .process-step {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

.process-step h3 {
  margin: 0;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.process-step p {
  margin: 0;
  font-size: 0.82rem;
  color: var(--text-muted);
}

/* ============ Our Process detail page ============ */
.process-detail-section {
  position: relative;
  overflow: visible;
  padding: 20px 0 100px;
}

.process-detail-list {
  display: flex;
  flex-direction: column;
}

.process-detail-step {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.3fr);
  gap: 56px;
  align-items: center;
  padding: 48px 0;
}


.process-detail-copy .step-number {
  font-size: 2.6rem;
  font-weight: 800;
  line-height: 1;
  margin-bottom: 14px;
}

.process-detail-copy .step-bar {
  width: 48px;
  height: 4px;
  border-radius: 999px;
  background: var(--purple);
  margin-bottom: 20px;
}

.process-detail-copy h3 {
  font-size: 1.8rem;
  margin: 0 0 14px;
  line-height: 1.3;
}

.process-detail-copy p {
  color: var(--text-muted);
  font-size: 0.95rem;
  max-width: 420px;
  margin: 0;
}

.process-detail-media {
  overflow: hidden;
}

.process-detail-media img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border-radius: 0;
  display: block;
  transition: transform 0.25s ease;
}

.process-detail-media:hover img {
  transform: scale(1.04);
}

/* The row itself stays put — only its text and photo animate in
   independently as it scrolls into view, matching the services page. */
.process-detail-step.scroll-reveal {
  opacity: 1;
  transform: none;
  transition: none;
}

.process-detail-copy {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.process-detail-step.is-visible .process-detail-copy {
  opacity: 1;
  transform: translateY(0);
}

.process-detail-step .process-detail-media {
  opacity: 0;
  transform: scale(1.06);
  transition: opacity 0.8s ease 0.12s, transform 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.12s;
}

.process-detail-step.is-visible .process-detail-media {
  opacity: 1;
  transform: scale(1);
}

@media (prefers-reduced-motion: reduce) {
  .process-detail-copy,
  .process-detail-step .process-detail-media {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* Unified editorial color grade across all content photography, so
   images from different sources read as one consistent, intentional
   art direction rather than a mismatched grab-bag. */
.home-hero-video,
.about-hero-photo,
.about-story-media img,
.about-why-media img,
.service-detail-media img,
.process-detail-media img,
.phone-mockup-photo {
  filter: saturate(0.9) contrast(1.06) brightness(0.97) sepia(0.05);
}

@media (max-width: 800px) {
  .process-detail-step {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 36px 0;
  }
}

/* ============ CTA banner ============ */
.cta-banner {
  background:
    linear-gradient(180deg, transparent 95%, var(--bg) 95%),
    radial-gradient(ellipse at 10% 20%, rgba(224, 5, 159, 0.45) 0%, transparent 50%),
    radial-gradient(ellipse at 100% 60%, rgba(53, 200, 240, 0.4) 0%, transparent 55%),
    linear-gradient(160deg, #05040f 0%, #1b1240 25%, #1c2e73 55%, #1c5aa8 80%, #2f8fce 100%);
  padding: 140px 0;
  text-align: center;
}

.cta-banner h2 {
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 0 0 32px;
}

.cta-banner--split {
  text-align: left;
}

.cta-banner--dark {
  background: var(--bg);
}

.cta-banner--split .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 40px;
  flex-wrap: wrap;
}

.cta-banner--split h2 {
  margin: 0;
  max-width: 600px;
}

.cta-banner--split .cta-side {
  max-width: 360px;
}

.cta-banner--split .cta-side .btn {
  padding: 17px 36px;
  font-size: 0.88rem;
}

.cta-banner--split .cta-side p {
  color: rgba(255, 255, 255, 0.85);
  margin: 0 0 20px;
  font-size: 0.95rem;
}

/* ============ About page ============ */
.accent-bar {
  width: 48px;
  height: 4px;
  border-radius: 999px;
  background: var(--purple);
  margin: 4px 0 20px;
}

.photo-placeholder {
  width: 100%;
  aspect-ratio: 3 / 2;
  border-radius: 12px;
  border: 1px dashed var(--border);
  background: var(--bg-elevated);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.about-why-media {
  overflow: hidden;
}

.about-why-media img {
  width: 100%;
  aspect-ratio: 3 / 2;
  border-radius: 0;
  object-fit: cover;
  display: block;
  transition: transform 0.25s ease;
}

.about-why-media:hover img {
  transform: scale(1.04);
}

.about-story-media {
  overflow: hidden;
}

.about-story-media img {
  width: 100%;
  aspect-ratio: 3 / 2;
  border-radius: 0;
  object-fit: cover;
  display: block;
  transition: transform 0.25s ease;
}

.about-story-media:hover img {
  transform: scale(1.04);
}

.about-hero {
  position: relative;
  overflow: hidden;
  margin-top: -145px;
  padding: 295px 0 190px;
  isolation: isolate;
  min-height: 100vh;
  display: flex;
  align-items: center;
}

.about-hero .container {
  width: 100%;
}

.about-hero-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -3;
  will-change: transform;
  transform: scale(1.1);
}

.about-hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.42);
  z-index: -2;
}

@media (max-width: 720px) {
  .about-hero-overlay {
    background: rgba(0, 0, 0, 0.52);
  }
}

.about-hero-copy {
  max-width: 950px;
}

.about-hero-copy .eyebrow {
  font-size: 0.9rem;
}

.about-hero-copy h1 {
  font-size: clamp(2.9rem, 5.6vw, 4rem);
  line-height: 1.15;
  margin: 0 0 20px;
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.about-hero-copy .btn.btn-primary {
  padding: 15px 30px;
  font-size: 0.76rem;
  justify-content: center;
  background: #a518c0;
  box-shadow: 0 8px 24px rgba(165, 24, 192, 0.35);
}


.about-hero-copy p.lead {
  color: var(--text-muted);
  max-width: 460px;
  margin: 0 0 32px;
  font-size: 1.2rem;
}

.about-story {
  padding: 110px 0 100px;
}

/* Row stays put — copy and photo animate in independently, matching the
   services page's entrance treatment. */
.about-story.scroll-reveal,
.about-why.scroll-reveal {
  opacity: 1;
  transform: none;
  transition: none;
}

.about-story-copy,
.about-why-copy {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.about-story.is-visible .about-story-copy,
.about-why.is-visible .about-why-copy {
  opacity: 1;
  transform: translateY(0);
}

.about-story-media,
.about-why-media {
  opacity: 0;
  transform: scale(1.06);
  transition: opacity 0.8s ease 0.12s, transform 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.12s;
}

.about-story.is-visible .about-story-media,
.about-why.is-visible .about-why-media {
  opacity: 1;
  transform: scale(1);
}

@media (prefers-reduced-motion: reduce) {
  .about-story-copy,
  .about-why-copy,
  .about-story-media,
  .about-why-media {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

.about-story-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 48px;
  align-items: center;
}

.about-story-copy .eyebrow {
  font-size: 0.9rem;
}

.about-story-copy h2 {
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  margin: 0 0 20px;
  line-height: 1.2;
}

.about-story-copy p {
  color: #d3d3d3;
  font-size: 1.12rem;
  margin: 0 0 16px;
}

.about-story-media {
  width: 100%;
}

.about-values {
  position: relative;
  overflow: hidden;
  padding: 80px 0 110px;
}

.about-values .container {
  position: relative;
  z-index: 1;
}

.about-values-header {
  text-align: center;
  margin-bottom: 48px;
}

.about-values-header .eyebrow {
  font-size: 0.9rem;
}

.about-values-header h2 {
  margin: 0;
  font-size: clamp(1.9rem, 3.4vw, 2.6rem);
}

.about-values-divider {
  width: 60px;
  height: 4px;
  border-radius: 999px;
  background: var(--gradient);
  margin: 0 auto 48px;
}

.about-values-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  justify-content: space-between;
  gap: 0 48px;
  border: none;
  position: relative;
  background: transparent;
}

.value-item {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  text-align: left;
  background: transparent;
  overflow: visible;
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.value-index {
  display: block;
  margin-bottom: 16px;
  font-family: "Cabinet Grotesk", "Inter", sans-serif;
  font-size: clamp(3.6rem, 5.5vw, 5.6rem);
  font-weight: 800;
  line-height: 0.85;
  letter-spacing: -0.07em;
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  opacity: 0.6;
  pointer-events: none;
  user-select: none;
}

.value-item h3,
.value-item p {
  position: relative;
  z-index: 1;
}

.scroll-reveal.is-visible .value-item {
  opacity: 1;
  transform: translateY(0);
}

.scroll-reveal.is-visible .value-item:nth-child(1) {
  transition-delay: 0s;
}

.scroll-reveal.is-visible .value-item:nth-child(2) {
  transition-delay: 0.1s;
}

.scroll-reveal.is-visible .value-item:nth-child(3) {
  transition-delay: 0.2s;
}

.scroll-reveal.is-visible .value-item:nth-child(4) {
  transition-delay: 0.3s;
}

.scroll-reveal.is-visible .value-item:nth-child(5) {
  transition-delay: 0.4s;
}

@media (prefers-reduced-motion: reduce) {
  .value-item {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .value-item::before {
    transition: none;
  }
}

.value-item h3 {
  font-size: clamp(1.2rem, 1.5vw, 1.45rem);
  margin: 0 0 10px;
  letter-spacing: -0.03em;
}

.value-item p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin: 0;
  line-height: 1.5;
}

.about-why {
  padding: 40px 0 100px;
}

.about-why-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 48px;
  align-items: center;
}

.about-why-copy .eyebrow {
  font-size: 0.9rem;
}

.about-why-copy h2 {
  font-size: clamp(1.9rem, 3.2vw, 2.5rem);
  margin: 0 0 4px;
  line-height: 1.3;
}

.about-why-copy p {
  color: var(--text-muted);
  margin: 0;
  font-size: 1.2rem;
}

@media (max-width: 900px) {
  .about-why-grid {
    grid-template-columns: 1fr;
  }

  .about-story-grid {
    grid-template-columns: 1fr;
  }

  .value-item h3 {
    font-size: 1.15rem;
  }
}

@media (max-width: 700px) {
  .about-values-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

/* Get Started page */
/* ============ Get Started page ============ */
.gs-section {
  padding: 40px 0 100px;
  background: #0a0e24;
}

.gs-section .container {
  max-width: 1440px;
}

.gs-card {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  padding: 72px 68px;
  background: #0a0a0f;
}

.gs-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 100px;
  align-items: start;
  position: relative;
  z-index: 1;
}

.gs-grid > * {
  min-width: 0;
}

.gs-heading {
  display: flex;
  flex-direction: column;
  font-size: clamp(2.4rem, 3.8vw, 3.4rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 0 0 28px;
  white-space: normal;
}

.gs-heading-accent {
  background: linear-gradient(90deg, var(--pink), var(--purple) 40%, var(--blue) 70%, var(--cyan));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.gs-heading-white {
  color: #fff;
}

.gs-lead {
  color: rgba(255, 255, 255, 0.85);
  font-size: 20px;
  font-weight: 400;
  line-height: 1.5;
  max-width: none;
  margin: 0 0 45px;
}

.gs-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  max-width: 680px;
}

.gs-gallery-item {
  min-width: 0;
  aspect-ratio: 3 / 4;
  border-radius: 12px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.08);
}

.gs-gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gs-form {
  position: relative;
  z-index: 1;
  overflow: hidden;
  border: none;
  padding: 40px 36px;
  border-radius: 12px;
  gap: 16px;
  background:
    radial-gradient(ellipse at 10% 20%, rgba(224, 5, 159, 0.45) 0%, transparent 50%),
    radial-gradient(ellipse at 100% 60%, rgba(53, 200, 240, 0.4) 0%, transparent 55%),
    linear-gradient(160deg, #05040f 0%, #1b1240 25%, #1c2e73 55%, #1c5aa8 80%, #2f8fce 100%);
}

.gs-form .field label {
  color: #fff;
  text-transform: none;
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0;
}

.gs-form .field input,
.gs-form .field select,
.gs-form .field textarea {
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #fff;
  backdrop-filter: blur(4px);
}

.gs-form .field input::placeholder,
.gs-form .field textarea::placeholder {
  color: rgba(255, 255, 255, 0.6);
}

.gs-form .field select {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, rgba(255, 255, 255, 0.7) 50%), linear-gradient(135deg, rgba(255, 255, 255, 0.7) 50%, transparent 50%);
  background-position: calc(100% - 20px) calc(1.1em), calc(100% - 15px) calc(1.1em);
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
}

.gs-form .field input:focus,
.gs-form .field select:focus,
.gs-form .field textarea:focus {
  border-color: rgba(255, 255, 255, 0.7);
}

.gs-form button[type="submit"] {
  justify-self: stretch;
  width: 100%;
  background: #202028;
  color: #fff;
  border: none;
}

.gs-form button[type="submit"]:hover {
  background: #2c2c36;
}

.gs-form .form-status {
  color: rgba(255, 255, 255, 0.7);
}

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

  .gs-card {
    padding: 44px 28px;
  }

  .gs-heading {
    white-space: normal;
  }
}

@media (max-width: 480px) {
  .gs-card {
    padding: 32px 18px;
  }

  .gs-gallery {
    max-width: 240px;
    gap: 8px;
  }

  .gs-form,
  form.contact-form {
    max-width: 100%;
  }
}

.form-section {
  padding: 20px 0 100px;
}

.form-layout {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 56px;
  align-items: start;
}

.form-copy p {
  color: var(--text-muted);
  font-size: 1rem;
  max-width: 420px;
}

form.contact-form {
  display: grid;
  gap: 18px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 36px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}

.field label {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.field input,
.field select,
.field textarea {
  background: #0a0a0c;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px 14px;
  color: var(--text);
  font-family: inherit;
  font-size: 0.95rem;
}

.field select {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--text-muted) 50%), linear-gradient(135deg, var(--text-muted) 50%, transparent 50%);
  background-position: calc(100% - 20px) calc(1.1em), calc(100% - 15px) calc(1.1em);
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: rgba(255, 255, 255, 0.4);
}

.field textarea {
  resize: vertical;
  min-height: 120px;
}

form.contact-form button {
  justify-self: start;
  margin-top: 6px;
}

.form-status {
  font-size: 0.9rem;
  color: var(--text-muted);
  min-height: 1.2em;
}

.form-status.success {
  color: #35d089;
}

.form-status.error {
  color: #e0596c;
}

/* Stub / coming-soon pages */
.stub-section {
  padding: 60px 0 120px;
  text-align: center;
}

.stub-section p {
  color: var(--text-muted);
  max-width: 480px;
  margin: 0 auto 32px;
}

body.resources-page .stub-section {
  padding-bottom: 40px;
}

/* FAQ accordion (resources.html) */
.faq-section {
  padding: 20px 0 120px;
}

.faq-section h2 {
  margin: 12px 0 40px;
  max-width: 640px;
}

.faq-list {
  display: grid;
  gap: 12px;
  max-width: 800px;
}

.faq-item {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 4px 24px;
}

.faq-question {
  list-style: none;
  cursor: pointer;
  padding: 20px 32px 20px 0;
  position: relative;
  font-weight: 600;
  color: var(--text);
}

.faq-question::-webkit-details-marker {
  display: none;
}

.faq-question::after {
  content: "+";
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.4rem;
  font-weight: 400;
  color: var(--text-muted);
  transition: transform 0.2s ease;
}

.faq-item[open] .faq-question::after {
  content: "\2212";
}

.faq-answer p {
  color: var(--text-muted);
  margin: 0 0 20px;
  line-height: 1.6;
}

.faq-answer a {
  color: var(--cyan);
}

/* ============ Individual service detail pages ============ */
.service-detail-features {
  padding: 20px 0 100px;
}

.service-features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}

.service-feature {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.service-feature-icon {
  height: 132px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  margin-bottom: 4px;
}

.service-feature-icon .service-icon-row-photo {
  margin: 0;
}

.service-feature h3 {
  font-size: 1rem;
  margin: 0;
}

.service-feature p {
  color: var(--text-muted);
  font-size: 0.88rem;
  margin: 0;
}

/* "Why it matters" single-row section on individual service detail pages */
.service-why-section {
  padding: 40px 0 120px;
}

body.web-design-page .service-why-section {
  padding-top: 90px;
}

.service-why-section h2 {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 18px;
}

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

@media (max-width: 520px) {
  .service-features-grid {
    grid-template-columns: 1fr;
  }
}

/* Checklist with circular checkmark icons (service detail "why it matters" rows) */
.check-list {
  list-style: none;
  margin: 0 0 32px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.check-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.92rem;
  color: var(--text);
}

.check-icon {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 1px solid var(--blue);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.check-icon svg {
  width: 12px;
  height: 12px;
  stroke: var(--cyan);
  fill: none;
  stroke-width: 2.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Hero phone photo (service detail page hero, right column) — a transparent
   cutout floating on the hero gradient, not a standard cropped 4:3 photo. */
.service-detail-media--phone {
  display: flex;
  justify-content: center;
  overflow: visible;
}

.service-detail-media--phone img.hero-phone-photo {
  width: 100%;
  max-width: 460px;
  aspect-ratio: auto;
  height: auto;
  object-fit: contain;
}

.service-detail-media--phone:hover img.hero-phone-photo {
  transform: none;
}

/* Scale the hero headline/lead up to match the larger phone photo beside it */
.service-detail-copy h1 {
  font-size: clamp(3rem, 5.4vw, 5.2rem);
  line-height: 1.03;
}

.service-detail-copy .lead {
  font-size: 1.2rem;
  max-width: 500px;
}

/* Nudge the hero text block up so its visual center lines up with the
   phone photo's center, rather than the grid's plain geometric centering.
   Selector matches the scroll-reveal "is-visible" rule's specificity so it
   correctly wins (by source order) once the entrance animation completes. */
.hero-row.is-visible .service-detail-copy {
  transform: translateY(-80px);
}

/* Also lift the phone itself slightly, so the whole hero fits inside a
   typical viewport height without scrolling. */
.hero-row.is-visible .service-detail-media--phone {
  transform: translateY(-24px);
}

/* On mobile the row stacks vertically, so the desktop-only vertical nudges
   above (meant to visually center the text against the phone photo when
   they sit side-by-side) just crowd/overlap the stacked layout. Cancel them
   out and give the phone photo sensible spacing instead. */
@media (max-width: 720px) {
  .hero-row.is-visible .service-detail-copy,
  .hero-row.is-visible .service-detail-media--phone {
    transform: none;
  }

  .service-detail-media--phone {
    margin-bottom: 8px;
  }

  .service-detail-media--phone img.hero-phone-photo {
    max-width: 210px;
    margin: 0 auto;
  }

  .hero-row.service-detail-row {
    gap: 16px;
  }

  .hero-row .service-detail-copy {
    text-align: center;
  }

  .hero-row-eyebrow {
    display: none;
  }

  .hero-row-break {
    display: none;
  }

  .hero-row .service-detail-copy h1 {
    font-size: clamp(1.5rem, 6.2vw, 2.6rem);
    line-height: 1.1;
    white-space: nowrap;
  }

  .hero-row .service-detail-copy .lead {
    font-size: 1rem;
    max-width: 420px;
    margin-left: auto;
    margin-right: auto;
  }

  .hero-row .service-detail-copy .service-detail-link {
    margin: 0 auto;
  }
}

/* "Complete Social Media Management" style 5-card grid section */
.service-grid-section {
  padding: 100px 0;
}

.service-grid-section .section-heading {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 56px;
}

.service-grid-section .section-heading h2 {
  font-size: clamp(2rem, 3.6vw, 2.6rem);
  margin: 14px 0 14px;
  letter-spacing: -0.02em;
}

.service-grid-section .section-heading p {
  color: var(--text-muted);
  margin: 0;
}

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

.service-grid-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.scroll-reveal.is-visible .service-grid-card {
  opacity: 1;
  transform: none;
}

.scroll-reveal.is-visible .service-grid-card:nth-child(1) { transition-delay: 0s; }
.scroll-reveal.is-visible .service-grid-card:nth-child(2) { transition-delay: 0.1s; }
.scroll-reveal.is-visible .service-grid-card:nth-child(3) { transition-delay: 0.2s; }
.scroll-reveal.is-visible .service-grid-card:nth-child(4) { transition-delay: 0.3s; }
.scroll-reveal.is-visible .service-grid-card:nth-child(5) { transition-delay: 0.4s; }

@media (prefers-reduced-motion: reduce) {
  .service-grid-card {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

.service-grid-media {
  aspect-ratio: 3 / 4;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(224, 5, 159, 0.35), rgba(43, 95, 224, 0.35));
}

.service-grid-card:nth-child(2n) .service-grid-media {
  background: linear-gradient(135deg, rgba(106, 43, 224, 0.35), rgba(53, 200, 240, 0.35));
}

.service-grid-card:nth-child(3n) .service-grid-media {
  background: linear-gradient(135deg, rgba(53, 200, 240, 0.3), rgba(224, 5, 159, 0.3));
}

.service-grid-media svg {
  width: 34px;
  height: 34px;
  stroke: rgba(255, 255, 255, 0.92);
  fill: none;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.service-grid-card h3 {
  font-size: 0.95rem;
  margin: 0;
}

.service-grid-card p {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin: 0;
}

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

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

/* Compact "Our Process" section on individual service detail pages */
.service-process-section {
  padding: 40px 0 140px;
}

.service-process-list {
  display: flex;
  flex-direction: column;
  gap: 32px;
  margin-top: 32px;
}

.service-process-item {
  display: flex;
  align-items: flex-start;
  gap: 20px;
}

.service-process-item h3 {
  font-size: 1rem;
  margin: 0 0 6px;
}

.service-process-item p {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin: 0;
  max-width: 380px;
}

/* Centered 3-up icon row with vertical dividers (service detail pages) */
.service-icon-row-section {
  padding: 40px 0 100px;
}

.service-icon-row-section .section-heading p {
  color: var(--text-muted);
  margin: 14px 0 0;
}

.service-icon-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}

.service-icon-row-item {
  text-align: center;
  padding: 0 36px;
}

.service-icon-row-item:not(:last-child) {
  border-right: 1px solid var(--border);
}

.service-icon-row-item .icon-box {
  margin: 0 auto 20px;
}

.service-icon-row-photo {
  width: 112px;
  height: 112px;
  object-fit: contain;
  margin: 0 auto 20px;
  display: block;
}

.service-icon-row-photo--lg {
  width: 132px;
  height: 132px;
}

.service-icon-row-item h3 {
  font-size: 1rem;
  margin: 0 0 10px;
}

.service-icon-row-item p {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin: 0;
}

@media (max-width: 800px) {
  .service-icon-row {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .service-icon-row-item:not(:last-child) {
    border-right: none;
    border-bottom: 1px solid var(--border);
    padding-bottom: 40px;
  }
}

/* ============ Paid ads: channel grid ============ */
.ad-channels-section {
  padding: 40px 0 100px;
}

.ad-channels-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 48px;
}

.ad-channel-card {
  padding: 12px;
  text-align: center;
  transition: transform 0.25s ease;
}

.ad-channel-card:hover {
  transform: translateY(-4px);
}

.ad-channel-card .icon-box {
  margin: 0 auto 18px;
}

.ad-channel-photo {
  width: 112px;
  height: 112px;
  object-fit: contain;
  margin: 0 auto 18px;
  display: block;
}

.ad-channel-photo--ott {
  width: 128px;
  height: 128px;
}

.ad-channel-photo--display {
  width: 96px;
  height: 96px;
}

.ad-channel-card h3 {
  font-size: 1.02rem;
  margin: 0 0 8px;
}

.ad-channel-card p {
  font-size: 0.86rem;
  color: var(--text-muted);
  margin: 0;
}

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

@media (max-width: 560px) {
  .ad-channels-grid {
    grid-template-columns: 1fr;
  }
}

/* ============ AI Automation page: mockup feature cards ============ */
.ai-feature-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
}

.ai-feature-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.scroll-reveal.is-visible .ai-feature-card {
  opacity: 1;
  transform: none;
}

.scroll-reveal.is-visible .ai-feature-card:nth-child(1) { transition-delay: 0s; }
.scroll-reveal.is-visible .ai-feature-card:nth-child(2) { transition-delay: 0.1s; }
.scroll-reveal.is-visible .ai-feature-card:nth-child(3) { transition-delay: 0.2s; }
.scroll-reveal.is-visible .ai-feature-card:nth-child(4) { transition-delay: 0.3s; }

@media (prefers-reduced-motion: reduce) {
  .ai-feature-card {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* A bolder, more electric accent just for these mockup cards — deliberately
   NOT the site's own pink/purple/blue/cyan brand gradient, so the cards
   read as their own distinct product UI rather than blending into the
   page's usual color language. */
.ai-feature-grid {
  --ai-accent: linear-gradient(135deg, #8b3bff 0%, #2563eb 100%);
  --ai-accent-solid: #8b3bff;
}

.ai-feature-media {
  aspect-ratio: 9 / 16;
  border-radius: 16px;
  background: var(--bg-elevated);
  border: 1px solid rgba(139, 59, 255, 0.35);
  box-shadow: 0 0 0 1px rgba(139, 59, 255, 0.06), 0 24px 48px rgba(139, 59, 255, 0.16);
  overflow: hidden;
  display: flex;
  align-items: stretch;
  justify-content: center;
  padding: 20px 18px;
}

.icon-box-sm {
  width: 36px;
  height: 36px;
  border-radius: 10px;
}

.icon-box-sm svg {
  width: 16px;
  height: 16px;
}

.ai-feature-card h3 {
  font-size: 1.3rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  margin: 4px 0 0;
}

.ai-feature-card p {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin: 0;
}

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

@media (max-width: 560px) {
  .ai-feature-grid {
    grid-template-columns: 1fr;
  }
}

/* Shared small status dot (used across the mockup cards) */
.ai-mock-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #3ddc84;
  display: inline-block;
  flex-shrink: 0;
}

/* AI Receptionist mockup: full call screen, header to footer actions */
.ai-mock-call {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.ai-mock-call-topstatus {
  font-size: 0.6rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin: 0;
}

.ai-mock-call-center {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.ai-mock-call-avatar {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--ai-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 4px;
}

.ai-mock-call-avatar svg {
  width: 24px;
  height: 24px;
  stroke: #fff;
  fill: none;
  stroke-width: 1.8;
}

.ai-mock-call-name {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text);
  margin: 0;
}

.ai-mock-call-status {
  font-size: 0.68rem;
  color: var(--text-muted);
  margin: 0;
  display: flex;
  align-items: center;
  gap: 6px;
}

.ai-mock-call-wave {
  display: flex;
  align-items: flex-end;
  gap: 3px;
  height: 28px;
  margin-top: 10px;
}

.ai-mock-call-wave span {
  width: 3px;
  border-radius: 2px;
  background: var(--ai-accent);
}

.ai-mock-call-wave span:nth-child(1) { height: 40%; }
.ai-mock-call-wave span:nth-child(2) { height: 70%; }
.ai-mock-call-wave span:nth-child(3) { height: 100%; }
.ai-mock-call-wave span:nth-child(4) { height: 55%; }
.ai-mock-call-wave span:nth-child(5) { height: 85%; }
.ai-mock-call-wave span:nth-child(6) { height: 45%; }
.ai-mock-call-wave span:nth-child(7) { height: 65%; }
.ai-mock-call-wave span:nth-child(8) { height: 30%; }

.ai-mock-call-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  padding-top: 14px;
}

.ai-mock-call-action {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.ai-mock-call-action--end {
  background: linear-gradient(135deg, #ff3b5c, #e0059f);
  transform: rotate(135deg);
}

.ai-mock-call-action--end svg {
  width: 16px;
  height: 16px;
  stroke: #fff;
  fill: none;
  stroke-width: 1.8;
}

/* AI Chatbots mockup: header, bubble thread, and input bar */
.ai-mock-chat {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 14px;
  text-align: left;
}

.ai-mock-chat-header {
  display: flex;
  align-items: center;
  gap: 10px;
}

.ai-mock-chat-avatar {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--ai-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 0.65rem;
  font-weight: 800;
  flex-shrink: 0;
}

.ai-mock-chat-name {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--text);
  margin: 0;
}

.ai-mock-chat-online {
  font-size: 0.6rem;
  color: var(--text-muted);
  margin: 0;
  display: flex;
  align-items: center;
  gap: 5px;
}

.ai-mock-chat-bubbles {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
  overflow: hidden;
}

.ai-mock-chat-bubble {
  font-size: 0.66rem;
  line-height: 1.4;
  padding: 8px 10px;
  border-radius: 10px;
  max-width: 92%;
}

.ai-mock-chat-bubble--bot {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  align-self: flex-start;
  border-bottom-left-radius: 2px;
}

.ai-mock-chat-bubble--user {
  background: var(--ai-accent);
  color: #fff;
  align-self: flex-end;
  border-bottom-right-radius: 2px;
}

.ai-mock-chat-input {
  font-size: 0.62rem;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 9px 14px;
}

/* AI Note Takers mockup: call summary, key points, next step */
.ai-mock-summary {
  width: 100%;
  height: 100%;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.ai-mock-summary-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--text);
  border-bottom: 1px solid var(--border);
  padding-bottom: 8px;
}

.ai-mock-summary-date {
  font-size: 0.58rem;
  font-weight: 500;
  color: var(--text-muted);
}

.ai-mock-summary-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.ai-mock-summary-label {
  font-size: 0.6rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin: 4px 0 0;
}

.ai-mock-summary-label:first-child {
  margin-top: 0;
}

.ai-mock-summary-lines {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.ai-mock-line {
  display: block;
  height: 6px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.1);
}

.ai-mock-bullets {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.ai-mock-bullet {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 0.64rem;
  line-height: 1.4;
  color: var(--text-muted);
}

.ai-mock-bullet span {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--text-muted);
  margin-top: 6px;
  flex-shrink: 0;
}

.ai-mock-summary-next {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.66rem;
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
  padding: 10px 12px;
  border-radius: 8px;
}

.ai-mock-check {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--ai-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.ai-mock-check svg {
  width: 9px;
  height: 9px;
  stroke: #fff;
  fill: none;
  stroke-width: 3;
}

/* Call & Appointment Scheduling mockup: full month + appointment list */
.ai-mock-calendar {
  width: 100%;
  height: 100%;
  text-align: left;
  display: flex;
  flex-direction: column;
}

.ai-mock-calendar-header {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 10px;
}

.ai-mock-calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px;
  text-align: center;
}

.ai-mock-calendar-grid span {
  font-size: 0.54rem;
  color: var(--text-muted);
  padding: 3px 0;
}

.ai-mock-calendar-dow {
  font-weight: 700;
  color: var(--text);
  text-transform: uppercase;
}

.ai-mock-calendar-grid span.is-selected {
  background: var(--ai-accent);
  color: #fff;
  border-radius: 50%;
  font-weight: 700;
}

.ai-mock-calendar-appts {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}

.ai-mock-calendar-appt {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.64rem;
  color: var(--text);
}

/* Horizontal 4-step process row with connecting lines (AI Automation page) */
.ai-process-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
}

.ai-process-item {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.ai-process-item:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 22px;
  left: calc(50% + 34px);
  width: calc(100% - 44px);
  height: 1px;
  background: var(--border);
}

.ai-process-item .step-marker {
  margin-bottom: 16px;
}

.ai-process-item h3 {
  font-size: 0.95rem;
  margin: 0 0 8px;
}

.ai-process-item p {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin: 0;
  max-width: 220px;
}

@media (max-width: 900px) {
  .ai-process-row {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .ai-process-item:not(:last-child)::after {
    display: none;
  }
}

/* Open up the whole page's rhythm to match the homepage's spacious feel —
   scoped to this page only so the other service pages keep their current,
   tighter spacing. */
body.ai-automation-page .service-grid-section {
  padding: 180px 0;
}

body.ai-automation-page .service-grid-section .section-heading {
  margin-bottom: 80px;
}

body.ai-automation-page .ai-feature-grid {
  gap: 40px;
}

body.ai-automation-page .service-why-section {
  padding: 80px 0 180px;
}

body.ai-automation-page .service-detail-row {
  gap: 100px;
}

body.ai-automation-page .check-list {
  gap: 20px;
  margin-bottom: 40px;
}

body.ai-automation-page .service-process-section {
  padding: 60px 0 200px;
}

body.ai-automation-page .service-process-section .section-heading {
  margin-bottom: 90px;
}

body.ai-automation-page .ai-process-row {
  gap: 40px;
}

body.ai-automation-page .cta-banner {
  padding: 180px 0;
}

@media (max-width: 900px) {
  body.ai-automation-page .service-grid-section,
  body.ai-automation-page .service-why-section,
  body.ai-automation-page .service-process-section,
  body.ai-automation-page .cta-banner {
    padding-top: 90px;
    padding-bottom: 90px;
  }

  body.ai-automation-page .service-detail-row {
    gap: 48px;
  }
}

/* ============ Footer ============ */
.site-footer {
  position: relative;
  z-index: 1;
  background: var(--bg);
  padding: 70px 0 30px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 32px;
  padding-bottom: 48px;
}

.footer-brand img {
  height: 144px;
  margin-bottom: 16px;
}

.footer-brand p {
  color: var(--text-muted);
  max-width: 260px;
  font-size: 0.88rem;
}

.footer-col h4 {
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin: 0 0 18px;
}

.footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
}

.footer-col a {
  font-size: 0.85rem;
  color: var(--text);
  opacity: 0.85;
  transition: opacity 0.2s ease;
}

.footer-col a:hover {
  opacity: 1;
}

.footer-social {
  display: flex;
  gap: 12px;
  margin-top: 20px;
}

.footer-social a {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.footer-social svg {
  width: 22px;
  height: 22px;
  stroke: #fff;
  fill: none;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.footer-bottom {
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.footer-bottom-links {
  display: flex;
  gap: 20px;
}

/* Responsive */
@media (max-width: 1000px) {

  .footer-grid {
    grid-template-columns: 1fr 1fr 1fr;
  }
}

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

  .form-layout {
    grid-template-columns: 1fr;
  }

  .process-layout {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .process-heading {
    max-width: 100%;
  }

  .process-steps {
    justify-content: center;
  }

  .process-step {
    align-items: center;
  }
}

@media (max-width: 720px) {
  .site-header {
    background: #000;
    backdrop-filter: none;
  }

  .site-header .container {
    height: 96px;
  }

  .paid-ads-hero,
  .ai-automation-hero,
  .web-design-hero,
  .home-hero,
  .about-hero {
    margin-top: -96px;
  }

  .home-hero,
  .about-hero {
    min-height: 0;
    display: block;
  }

  .nav-toggle {
    width: 40px;
    height: 40px;
  }

  .nav-toggle span {
    width: 17px;
  }

  .main-nav .nav-links {
    position: fixed;
    top: 96px;
    left: 0;
    right: 0;
    height: calc(100vh - 96px);
    background: #000;
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    align-items: flex-start;
    padding: 24px;
    gap: 24px;
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.25s ease, opacity 0.25s ease;
  }

  .main-nav .nav-links.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .main-nav .nav-links a {
    font-size: 1.15rem;
  }

  .main-nav .nav-links li.menu-cta {
    display: block;
    margin-top: 8px;
  }

  .main-nav .nav-links li.menu-cta a {
    font-size: 0.85rem;
  }

  .header-cta {
    display: none;
  }

  .nav-item-dropdown {
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
  }

  .nav-item-dropdown::after {
    display: none;
  }

  .nav-dropdown-toggle {
    position: absolute;
    top: -6px;
    right: -6px;
    width: 44px;
    height: 44px;
  }

  .nav-dropdown {
    position: static;
    opacity: 1;
    pointer-events: auto;
    transform: none;
    background: transparent;
    border: none;
    box-shadow: none;
    padding: 0 0 0 4px;
    margin: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.25s ease;
  }

  .nav-item-dropdown.open .nav-dropdown {
    max-height: 400px;
    margin-top: 18px;
  }

  .main-nav .nav-links .nav-dropdown a {
    padding: 12px 0;
    font-size: 0.95rem;
  }

  .nav-toggle {
    display: flex;
  }

  .brand img {
    height: 134px;
    margin-left: -14px;
    transform: translateY(2px);
  }

  .about-hero-copy h1 {
    white-space: normal;
    font-size: clamp(2rem, 8vw, 2.6rem);
  }

  .services-grid {
    grid-template-columns: 1fr;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .cta-banner--split .container {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* AI CHAT WIDGET START — styles */
.ai-chat-widget {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 300;
}

.ai-chat-toggle {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--purple);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(106, 43, 224, 0.4);
  color: #fff;
  padding: 0;
}

@media (prefers-reduced-motion: reduce) {
  .ai-chat-toggle {
    animation: none;
  }
}

.ai-chat-toggle svg {
  width: 24px;
  height: 24px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.ai-chat-toggle .ai-chat-icon-close {
  display: none;
}

.ai-chat-widget.open .ai-chat-icon-open {
  display: none;
}

.ai-chat-widget.open .ai-chat-icon-close {
  display: block;
}

.ai-chat-panel {
  position: absolute;
  bottom: 76px;
  right: 0;
  width: 350px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  opacity: 0;
  transform: translateY(16px) scale(0.97);
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

.ai-chat-widget.open .ai-chat-panel {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.ai-chat-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
  background: var(--purple);
  flex-shrink: 0;
}

.ai-chat-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.ai-chat-header-text {
  min-width: 0;
}

.ai-chat-title {
  margin: 0;
  font-weight: 700;
  font-size: 0.88rem;
  color: #fff;
}

.ai-chat-subtitle {
  margin: 0;
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.85);
}

.ai-chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: 360px;
  min-height: 220px;
}

.ai-chat-message {
  max-width: 85%;
  padding: 10px 14px;
  border-radius: 12px;
  font-size: 0.85rem;
  line-height: 1.45;
  white-space: pre-wrap;
}

.ai-chat-message--bot {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border);
  color: var(--text);
  align-self: flex-start;
  border-bottom-left-radius: 4px;
}

.ai-chat-message--user {
  background: var(--purple);
  color: #fff;
  align-self: flex-end;
  border-bottom-right-radius: 4px;
}

.ai-chat-message--typing {
  display: flex;
  gap: 4px;
  align-items: center;
  padding: 12px 14px;
}

.ai-chat-message--typing span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--text-muted);
  animation: aiChatTypingBounce 1.2s infinite ease-in-out;
}

.ai-chat-message--typing span:nth-child(2) {
  animation-delay: 0.15s;
}

.ai-chat-message--typing span:nth-child(3) {
  animation-delay: 0.3s;
}

@keyframes aiChatTypingBounce {
  0%, 60%, 100% {
    transform: translateY(0);
    opacity: 0.5;
  }
  30% {
    transform: translateY(-4px);
    opacity: 1;
  }
}

.ai-chat-input-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px;
  border-top: 1px solid var(--border);
  flex-shrink: 0;
}

.ai-chat-input-row input {
  flex: 1;
  min-width: 0;
  background: #0a0a0c;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 10px 14px;
  color: var(--text);
  font-size: 0.85rem;
  font-family: inherit;
}

.ai-chat-input-row input:focus {
  outline: none;
  border-color: rgba(255, 255, 255, 0.4);
}

.ai-chat-input-row button {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--purple);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  color: #fff;
}

.ai-chat-input-row button:disabled {
  opacity: 0.5;
  cursor: default;
}

.ai-chat-input-row button svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

@media (max-width: 480px) {
  .ai-chat-widget {
    bottom: 16px;
    right: 16px;
  }

  .ai-chat-panel {
    width: calc(100vw - 32px);
    right: -8px;
  }
}
/* AI CHAT WIDGET END — styles */

/* On mobile, show every section fully in place immediately instead of
   fading/sliding it in as it scrolls into view. With the site's solid
   black (#000) base background, that scroll-triggered reveal made new
   text look like it was rising up out of a black bar at the bottom of
   the screen, page after page. Desktop keeps the reveal animation —
   this only resets the "hidden until scrolled into view" starting state
   on small screens. */
@media (max-width: 720px) {
  .scroll-reveal,
  .service-detail-copy,
  .service-detail-media,
  .portfolio-grid > div,
  .process-step,
  .process-detail-copy,
  .process-detail-step .process-detail-media,
  .about-story-copy,
  .about-why-copy,
  .about-story-media,
  .about-why-media,
  .value-item,
  .service-grid-card,
  .ai-feature-card {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .step-marker,
  .process-detail-copy .step-number {
    opacity: 1;
    clip-path: none;
    transition: none;
  }
}

/* Remove the small divider bar under the "Why We Do It" heading on mobile. */
@media (max-width: 720px) {
  .about-why-copy .accent-bar {
    display: none;
  }
}

/* Fix: on real iOS Safari, the fixed full-screen gradient layer behind the
   About page and every services page (body.page-about::before /
   body.services-page::before / body.our-process-page::before, ::after) can
   fail to repaint smoothly during momentum scrolling. Because part of that
   gradient is very dark, the glitch reads as a black bar that "stays put"
   while page text scrolls over/out of it. This does not change the layer's
   color, size, or position at all — it only forces the browser to render it
   on its own GPU-composited layer, which is the standard fix for this exact
   class of fixed-position scroll glitch on iOS. Mobile only; desktop is
   untouched. */
@media (max-width: 900px) {
  body.page-about::before,
  body.services-page::before,
  body.our-process-page::before,
  body.our-process-page::after {
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    will-change: transform;
  }
}

/* Fix, take 2: the glitch above (compositing hint) did not fix it. On iPhone
   Safari, the address bar and bottom toolbar grow/shrink as you scroll, which
   changes the real visible viewport height. This fixed gradient layer was
   sized with `inset: 0`, which is calculated once and can end up shorter than
   the *current* visible viewport after the toolbar hides — leaving a gap at
   the bottom where the layer doesn't reach, so the plain black page
   background shows through there instead of the chosen gradient. `100dvh`
   ("dynamic viewport height") is a unit that tracks the real, current visible
   height instead of a stale one, so the layer always reaches all the way to
   the true bottom of the screen. This does not change the gradient's colors,
   position, or opacity — only makes sure the box is always exactly as tall as
   the screen actually is. Mobile only; desktop untouched. */
@media (max-width: 900px) {
  body.page-about::before,
  body.services-page::before,
  body.our-process-page::before,
  body.our-process-page::after {
    height: 100dvh;
  }
}

/* Hide the AI chat widget on mobile only; it stays visible on desktop. */
@media (max-width: 720px) {
  .ai-chat-widget {
    display: none;
  }
}
