/* =========================================================
   AdsZify — Design tokens
   ========================================================= */
:root{
  --ink: #14161F;
  --ink-soft: #24273A;
  --paper: #F1F0EB;
  --paper-raise: #FFFFFF;
  --muted: #4A4B55;
  --muted-soft: #686A76;
  --signal: #FF9800;
  --signal-light: #FFB84D;
  --signal-dark: #E68600;
  --signal-ink: #3A2400;
  --indigo: #4A4DE6;
  --line: rgba(20,22,31,0.12);
  --line-strong: rgba(20,22,31,0.22);

  --display: "Space Grotesk", "Helvetica Neue", Arial, sans-serif;
  --body: "Inter", "Helvetica Neue", Arial, sans-serif;
  --mono: "IBM Plex Mono", "SFMono-Regular", Consolas, monospace;

  --container: 1180px;
  --radius: 14px;
}

*,*::before,*::after{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior: auto; }
  *,*::before,*::after{ animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}

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

h1,h2,h3,h4{
  font-family: var(--display);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.01em;
  margin: 0 0 0.5em;
  color: var(--ink);
  word-break: break-word;
  overflow-wrap: break-word;
}
h1{ font-size: clamp(2rem, 5vw, 4.2rem); font-weight: 700; }
h2{ font-size: clamp(1.6rem, 3.4vw, 2.9rem); }
h3{ font-size: clamp(1.1rem, 2vw, 1.3rem); }
p{ margin: 0 0 1em; color: var(--muted); }
a{ color: inherit; text-decoration: none; }
img,svg{ display:block; max-width:100%; }
ul{ padding: 0; margin: 0; list-style: none; }

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

.eyebrow{
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--indigo);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
}
.eyebrow::before{
  content: "";
  width: 7px; height: 7px;
  background: var(--signal);
  border-radius: 2px;
  display: inline-block;
  flex-shrink: 0;
}

/* Buttons */
.btn{
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--body);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 14px 24px;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .18s ease, background .18s ease, color .18s ease, border-color .18s ease;
  white-space: nowrap;
}
.btn:focus-visible{ outline: 3px solid var(--indigo); outline-offset: 3px; }
.btn-primary{ background: var(--ink); color: var(--paper); }
.btn-primary:hover{ background: var(--signal); color: var(--signal-ink); transform: translateY(-2px); }
.btn-signal{ background: var(--signal); color: var(--signal-ink); }
.btn-signal:hover{ background: var(--ink); color: var(--paper); transform: translateY(-2px); }
.btn-ghost{ background: transparent; border-color: var(--line-strong); color: var(--ink); }
.btn-ghost:hover{ border-color: var(--ink); background: var(--ink); color: var(--paper); }
.btn-sm{ padding: 10px 18px; font-size: 0.85rem; }
.btn-block{ width: 100%; justify-content: center; }

/* =========================================================
   Header / Nav
   ========================================================= */
.site-header{
  position: sticky; top: 0; z-index: 200;
  background: rgba(241,240,235,0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav{
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 0;
  gap: 16px;
}
.logo{
  font-family: var(--display); font-weight: 700; font-size: 1.35rem;
  display: flex; align-items: center; gap: 8px;
  flex-shrink: 0;
}
.logo .dot{ color: var(--signal); }
.nav-links{ display: flex; align-items: center; gap: 28px; }
.nav-links a{
  font-size: 0.9rem; font-weight: 500; color: var(--ink);
  position: relative; padding: 4px 0;
  white-space: nowrap;
}
.nav-links a:hover{ color: var(--indigo); }
.nav-cta{ display: flex; align-items: center; gap: 10px; flex-shrink: 0; }

/* Hamburger toggle */
.nav-toggle{
  display: none;
  background: var(--ink);
  border: none;
  cursor: pointer;
  width: 42px; height: 42px;
  border-radius: 10px;
  align-items: center;
  justify-content: center;
  transition: background .18s ease;
  flex-shrink: 0;
  padding: 0;
}
.nav-toggle:hover{ background: var(--indigo); }
.nav-toggle svg path{ stroke: var(--paper); }
.nav-toggle.is-open{ background: var(--signal); }
.nav-toggle.is-open svg path{ stroke: var(--signal-ink); }

.dropdown{ position: relative; }
.dropdown-menu{
  position: absolute; top: calc(100% + 14px); left: 50%; transform: translateX(-50%);
  background: var(--paper-raise); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 10px; min-width: 230px; box-shadow: 0 18px 40px rgba(20,22,31,0.12);
  opacity: 0; visibility: hidden; translate: 0 6px;
  transition: all .18s ease;
  z-index: 300;
}
.dropdown:hover .dropdown-menu, .dropdown:focus-within .dropdown-menu{
  opacity: 1; visibility: visible; translate: 0 0;
}
.dropdown-menu a{ display:block; padding: 9px 12px; border-radius: 8px; font-size: 0.9rem; }
.dropdown-menu a:hover{ background: var(--paper); color: var(--indigo); }

/* Close button for the mobile full-screen menu — hidden by default on all
   screen sizes; only shown (via the media query below) once the mobile
   menu is open, so it never leaks into the desktop header layout. */
.nav-close-btn{ display: none; }

/* ---- MOBILE NAV ---- */
@media (max-width: 960px){
  .nav-links{
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: var(--paper);
    flex-direction: column;
    align-items: stretch;
    padding: 80px 24px 32px;
    gap: 0;
    transform: translateX(100%);
    opacity: 0;
    visibility: hidden;
    transition: transform .28s cubic-bezier(.4,0,.2,1), opacity .28s ease, visibility .28s ease;
    overflow-y: auto;
    z-index: 900;
    border-top: none;
  }
  .nav-links.open{
    transform: translateX(0);
    opacity: 1;
    visibility: visible;
  }
  .nav-links > a{
    padding: 15px 0;
    font-size: 1.05rem;
    width: 100%;
    border-bottom: 1px solid var(--line);
    display: block;
  }
  .nav-links > a:last-child{ border-bottom: none; }
  .dropdown{ width: 100%; }
  .dropdown > a{
    padding: 15px 0;
    font-size: 1.05rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--line);
  }
  .dropdown-menu{
    position: static;
    transform: none;
    translate: none;
    box-shadow: none;
    border: none;
    border-radius: 0;
    background: rgba(20,22,31,0.04);
    width: 100%;
    opacity: 1;
    visibility: visible;
    display: none;
    padding: 4px 0 4px 16px;
    margin-bottom: 8px;
  }
  .dropdown.open .dropdown-menu{ display: block; }
  .dropdown-menu a{
    border-bottom: none;
    padding: 10px 12px;
    font-size: 0.92rem;
  }
  .nav-toggle{ display: flex; }
  .nav-cta .btn-ghost{ display: none; }
  body.menu-open{ overflow: hidden; }

  /* Mobile close button inside menu */
  .nav-close-btn{
    position: fixed;
    top: 16px;
    right: 24px;
    z-index: 910;
    width: 42px; height: 42px;
    border-radius: 50%;
    background: var(--ink);
    border: none;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    color: var(--paper);
    font-size: 1.2rem;
    line-height: 1;
  }
  .nav-links.open ~ .nav-close-btn{ display: flex; }
}

@media (max-width: 640px){
  .nav-cta .btn-sm:not(.nav-toggle){ font-size: 0.78rem; padding: 9px 14px; }
}

/* =========================================================
   Hero + content-grid signature
   ========================================================= */
.hero{ padding: 70px 0 50px; }
.hero-grid{ display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 56px; align-items: center; }
.hero h1{ margin-bottom: 20px; }
.hero-sub{ font-size: 1.1rem; color: var(--ink-soft); max-width: 46ch; }
.hero-lede{ font-size: 1rem; max-width: 46ch; }
.hero-actions{ display:flex; gap:12px; align-items:center; margin-top: 28px; flex-wrap: wrap; }
.hero-note{ font-family: var(--mono); font-size: 0.75rem; color: var(--muted-soft); margin-top: 24px; }

@media (max-width: 960px){
  .hero-grid{ grid-template-columns: 1fr; gap: 36px; }
  .hero{ padding: 50px 0 36px; }
}

/* =========================================================
   FULL-WIDTH HERO — light background, centered content
   ========================================================= */
.hero-full{
  position: relative;
  padding: 0;
  min-height: 620px;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--paper);
}

/* Full-width professional background photos behind the hero text —
   4 real images, automatic crossfade only. No dots/arrows/controls. */
.hero-bg{ position: absolute; inset: 0; z-index: 0; }
.hero-bg-layer{
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0;
  animation: heroBgSlide 24s ease-in-out infinite;
}
.hero-bg-layer-1{ background-image: url('images/backgrounds/marketing-workspace.jpg'); animation-delay: 0s; }
.hero-bg-layer-2{ background-image: url('images/backgrounds/team-campaign.jpg'); animation-delay: 6s; }
.hero-bg-layer-3{ background-image: url('images/backgrounds/creative-studio.jpg'); animation-delay: 12s; }
.hero-bg-layer-4{ background-image: url('images/backgrounds/growth-strategy.jpg'); animation-delay: 18s; }
@keyframes heroBgSlide{
  0%{ opacity: 0; }
  3%{ opacity: 1; }
  21%{ opacity: 1; }
  25%{ opacity: 0; }
  100%{ opacity: 0; }
}

.hero-overlay{
  position: absolute; inset: 0; z-index: 1;
   background: linear-gradient(105deg, rgba(10,13,20,0.64) 0%, rgba(10,13,20,0.57) 52%, rgba(10,13,20,0.66) 100%);
}
@media (prefers-reduced-motion: reduce){
  .hero-bg-layer{ animation: none; opacity: 0; }
  .hero-bg-layer-1{ opacity: 1; }
}

.hero-content{
  position: relative; z-index: 2;
  padding: 96px 0 84px;
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
  display: flex; flex-direction: column; align-items: center;
}
.eyebrow-light{ color: var(--signal-dark); }
.hero-h1-light{ color: var(--paper); margin-bottom: 20px; }
.hero-sub-light{ color: rgba(241,240,235,0.9); }
.hero-lede-light{ color: rgba(241,240,235,0.72); }
.hero-content .hero-actions{ justify-content: center; }
.btn-ghost-light{ border-color: rgba(241,240,235,0.42); color: var(--paper); }
.btn-ghost-light:hover{ border-color: var(--signal); background: var(--signal); color: var(--signal-ink); }

.hero-chip-row{ display: flex; flex-wrap: wrap; gap: 10px; margin-top: 32px; justify-content: center; }
.hero-chip{
  display: inline-flex; align-items: center; gap: 8px;
   background: rgba(20,22,31,0.7); border: 1px solid rgba(241,240,235,0.25);
   color: rgba(241,240,235,0.82); font-family: var(--mono); font-size: 0.72rem;
  padding: 8px 14px; border-radius: 999px;
  box-shadow: 0 2px 10px rgba(20,22,31,0.05);
}
.hero-chip .dot-signal{ width:7px; height:7px; border-radius:50%; background: var(--signal); box-shadow: 0 0 6px rgba(255,152,0,0.5); }
.hero-chip-signal{ background: rgba(255,152,0,0.1); border-color: rgba(255,152,0,0.3); color: var(--signal-dark); }

/* Typewriter heading */
.hero-typewriter{ position: relative; display: inline; }
.hero-typewriter .tw-cursor{
  display: inline-block; width: 3px; margin-left: 2px;
  background: var(--signal); animation: twBlink 0.9s step-end infinite;
}
@keyframes twBlink{ 0%, 100%{ opacity: 1; } 50%{ opacity: 0; } }

@media (max-width: 960px){
  .hero-full{ min-height: 560px; }
  .hero-content{ padding: 76px 0 60px; max-width: 100%; }
}
@media (max-width: 768px){
  .hero-full{ min-height: 520px; }
  .hero-content{ padding: 64px 0 48px; }
}
@media (max-width: 480px){
  .hero-full{ min-height: 480px; }
  .hero-content{ padding: 56px 0 40px; }
  .hero-chip{ font-size: 0.66rem; padding: 7px 11px; }
}
@media (prefers-reduced-motion: reduce){
  .tw-cursor{ animation: none; opacity: 0; }
}


/* =========================================================
   ABOUT STORY — slow background image slider behind text
   (no arrows, no dots, no controls — automatic crossfade only)
   ========================================================= */
.about-story{ position: relative; overflow: hidden; }
.about-story-bg{ position: absolute; inset: 0; z-index: 0; }
.about-story-bg-layer{
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0;
   animation: heroBgSlide 24s ease-in-out infinite;
}
.about-story-bg-layer-1{ background-image: url('images/backgrounds/marketing-workspace.jpg'); animation-delay: 0s; }
.about-story-bg-layer-2{ background-image: url('images/backgrounds/team-campaign.jpg'); animation-delay: 6s; }
.about-story-bg-layer-3{ background-image: url('images/backgrounds/creative-studio.jpg'); animation-delay: 12s; }
.about-story-bg-layer-4{ background-image: url('images/backgrounds/growth-strategy.jpg'); animation-delay: 18s; }
@keyframes aboutStorySlide{
  0%{ opacity: 0; }
  4%{ opacity: 1; }
  28%{ opacity: 1; }
  33%{ opacity: 0; }
  100%{ opacity: 0; }
}
.about-story-overlay{
  position: absolute; inset: 0; z-index: 1;
   background: linear-gradient(105deg, rgba(10,13,20,0.64) 0%, rgba(10,13,20,0.57) 52%, rgba(10,13,20,0.66) 100%);
}
.about-story-content{ position: relative; z-index: 2; }
.about-story-content h2{ color: var(--paper); }
.about-story-content p{ color: rgba(241,240,235,0.76); }
@media (prefers-reduced-motion: reduce){
  .about-story-bg-layer{ animation: none; opacity: 0; }
  .about-story-bg-layer-1{ opacity: 1; }
}

/* =========================================================
   HOMEPAGE "WHO WE ARE" — 4-image background crossfade slider
   behind the About preview text (no arrows, no dots, no controls)
   ========================================================= */
.about-home{ position: relative; overflow: hidden; }
.about-home-bg{ position: absolute; inset: 0; z-index: 0; }
.about-home-bg-layer{
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0;
  animation: heroBgSlide 24s ease-in-out infinite;
}
.about-home-bg-layer-1{ background-image: url('images/backgrounds/marketing-workspace.jpg'); animation-delay: 0s; }
.about-home-bg-layer-2{ background-image: url('images/backgrounds/team-campaign.jpg'); animation-delay: 6s; }
.about-home-bg-layer-3{ background-image: url('images/backgrounds/creative-studio.jpg'); animation-delay: 12s; }
.about-home-bg-layer-4{ background-image: url('images/backgrounds/growth-strategy.jpg'); animation-delay: 18s; }
.about-home-overlay{
  position: absolute; inset: 0; z-index: 1;
   background: linear-gradient(105deg, rgba(10,13,20,0.64) 0%, rgba(10,13,20,0.57) 52%, rgba(10,13,20,0.66) 100%);
}
.about-home-content{ position: relative; z-index: 2; }
.about-home-content h2{ color: var(--paper); }
.about-home-content p{ color: rgba(241,240,235,0.76); }
.about-home-content .eyebrow{ color: var(--signal-light); }
.about-home-content .btn-ghost{ border-color: rgba(241,240,235,0.42); color: var(--paper); }
.about-home-content .btn-ghost:hover{ border-color: var(--signal); background: var(--signal); color: var(--signal-ink); }
.about-enter.reveal{ opacity: 0; transform: translateY(22px); }
.about-enter.reveal.in-view{ opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce){
  .about-home-bg-layer{ animation: none; opacity: 0; }
  .about-home-bg-layer-1{ opacity: 1; }
}

/* =========================================================
   TEAM PANEL — replaces founder/team video placeholder
   ========================================================= */
.team-panel{
  position: relative; border-radius: var(--radius); overflow: hidden;
  background: linear-gradient(150deg, var(--ink) 0%, #262a40 100%);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 30px 60px -24px rgba(20,22,31,0.4);
}
.team-panel-glow{
  position: absolute; width: 60%; height: 60%; border-radius: 50%;
  background: radial-gradient(circle, rgba(255,178,0,0.28), transparent 70%);
  top: -10%; right: -10%; filter: blur(10px);
  animation: hbnPulse 5s ease-in-out infinite;
}
.team-panel-grid{
  position: absolute; inset: 0;
  background-image: linear-gradient(rgba(241,240,235,0.05) 1px, transparent 1px), linear-gradient(90deg, rgba(241,240,235,0.05) 1px, transparent 1px);
  background-size: 34px 34px;
  mask-image: radial-gradient(ellipse 70% 70% at 50% 40%, black 30%, transparent 90%);
}
.team-panel-body{ position: relative; z-index: 1; padding: 40px; text-align: center; max-width: 420px; }
.team-panel-avatars{ display: flex; justify-content: center; gap: -8px; margin-bottom: 22px; }
.tp-avatar{
  width: 56px; height: 56px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--display); font-weight: 700; font-size: 0.85rem;
  color: var(--ink); border: 3px solid var(--ink);
  margin-left: -14px;
}
.tp-avatar:first-child{ margin-left: 0; }
.tp-a1{ background: var(--signal); z-index: 3; }
.tp-a2{ background: #C9C7BE; z-index: 2; }
.tp-a3{ background: var(--indigo); color: var(--paper); z-index: 1; }
.tp-waveform{ display:flex; align-items:flex-end; justify-content:center; gap:4px; height: 28px; margin-bottom: 22px; }
.tp-waveform span{ width: 3px; border-radius: 2px; background: var(--signal); opacity: 0.75; animation: tpWave 1.2s ease-in-out infinite; }
.tp-waveform span:nth-child(odd){ background: var(--indigo); }
.tp-waveform span:nth-child(1){ height: 40%; animation-delay: 0s; }
.tp-waveform span:nth-child(2){ height: 70%; animation-delay: .1s; }
.tp-waveform span:nth-child(3){ height: 100%; animation-delay: .2s; }
.tp-waveform span:nth-child(4){ height: 55%; animation-delay: .3s; }
.tp-waveform span:nth-child(5){ height: 85%; animation-delay: .4s; }
.tp-waveform span:nth-child(6){ height: 45%; animation-delay: .5s; }
.tp-waveform span:nth-child(7){ height: 90%; animation-delay: .6s; }
.tp-waveform span:nth-child(8){ height: 35%; animation-delay: .7s; }
.tp-waveform span:nth-child(9){ height: 65%; animation-delay: .8s; }
.tp-waveform span:nth-child(10){ height: 50%; animation-delay: .9s; }
@keyframes tpWave{ 0%,100%{ transform: scaleY(0.4); } 50%{ transform: scaleY(1); } }
.tp-title{ color: var(--paper); font-size: 1.2rem; margin-bottom: 10px; }
.tp-sub{ color: rgba(241,240,235,0.68); font-size: 0.92rem; margin-bottom: 20px; }
.tp-tags{ display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.tp-tags span{
  font-family: var(--mono); font-size: 0.66rem; color: var(--signal);
  border: 1px solid rgba(255,178,0,0.35); background: rgba(255,178,0,0.08);
  padding: 6px 10px; border-radius: 999px;
}
@media (prefers-reduced-motion: reduce){ .team-panel-glow, .tp-waveform span{ animation: none; } }
@media (max-width: 480px){ .team-panel-body{ padding: 28px 22px; } .tp-avatar{ width:48px; height:48px; font-size:.75rem; } }

/* =========================================================
   WORK VISUALS — recent-work card graphics
   ========================================================= */
.work-card{ display: flex; flex-direction: column; }
.work-visual{
  border-radius: 10px; background: var(--ink); padding: 14px 10px;
  margin-bottom: 16px; aspect-ratio: 200/120;
}
.work-visual svg{ width: 100%; height: 100%; }
.work-visual rect, .work-visual path, .work-visual circle{ fill: rgba(241,240,235,0.16); }
.work-visual .wv-accent{ fill: var(--signal); fill-opacity: 0.85; }
.work-visual .wv-accent-line{ stroke: var(--ink); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; fill: none; }
.work-visual .wv-line{ stroke: var(--signal); stroke-width: 3; stroke-linecap: round; }
.work-visual .wv-dot{ fill: var(--ink); }
.work-visual .wv-dim{ fill-opacity: 0.5; }
.badge-sample{
  display: inline-block; font-family: var(--mono); font-size: 0.68rem;
  color: var(--indigo); border: 1px solid rgba(74,77,230,0.3); background: rgba(74,77,230,0.08);
  padding: 5px 10px; border-radius: 999px;
}

/* =========================================================
   SAMPLE CLIENT-EXPERIENCE CARDS — replaces testimonial video placeholders
   ========================================================= */
.sample-card{
  position: relative; border-radius: var(--radius); overflow: hidden;
  background: linear-gradient(150deg, var(--ink), #262a40);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 26px 20px; gap: 12px;
}
.sc-avatar{
  width: 52px; height: 52px; border-radius: 50%; background: var(--signal); color: var(--signal-ink);
  display: flex; align-items: center; justify-content: center; font-family: var(--display); font-weight: 700;
}
.sample-card.sc-2 .sc-avatar{ background: var(--indigo); color: var(--paper); }
.sample-card.sc-3 .sc-avatar{ background: #C9C7BE; color: var(--ink); }
.sample-card.sc-4 .sc-avatar{ background: var(--signal); color: var(--signal-ink); }
.sample-card.sc-5 .sc-avatar{ background: var(--indigo); color: var(--paper); }
.sc-quote{ color: rgba(241,240,235,0.86); font-size: 0.88rem; line-height: 1.5; max-width: 26ch; }
.sc-wave{ position: absolute; top: 16px; display:flex; align-items:flex-end; gap:3px; height: 18px; opacity: 0.5; }
.sc-wave span{ width: 2.5px; border-radius: 2px; background: var(--signal); animation: tpWave 1.3s ease-in-out infinite; }
.sc-wave span:nth-child(even){ background: var(--indigo); }
.sc-wave span:nth-child(1){ height:30%; } .sc-wave span:nth-child(2){ height:60%; animation-delay:.1s; }
.sc-wave span:nth-child(3){ height:90%; animation-delay:.2s; } .sc-wave span:nth-child(4){ height:45%; animation-delay:.3s; }
.sc-wave span:nth-child(5){ height:75%; animation-delay:.4s; } .sc-wave span:nth-child(6){ height:55%; animation-delay:.5s; }
.sc-wave span:nth-child(7){ height:40%; animation-delay:.6s; }
.badge-sample-dark{ color: var(--signal); border-color: rgba(255,178,0,0.35); background: rgba(255,178,0,0.1); }
@media (prefers-reduced-motion: reduce){ .sc-wave span{ animation: none; } }

/* =========================================================
   Sections / general layout
   ========================================================= */
section{ padding: 88px 0; }
.section-tight{ padding: 60px 0; }
.section-head{ max-width: 640px; margin-bottom: 48px; }
.section-head.center{ margin-left:auto; margin-right:auto; text-align:center; }
.bg-ink{ background: var(--ink); color: var(--paper); }
.bg-ink h2, .bg-ink h3, .bg-ink .eyebrow{ color: var(--paper); }
.bg-ink p{ color: rgba(241,240,235,0.72); }
.bg-raise{ background: var(--paper-raise); }
.divider{ border: none; border-top: 1px solid var(--line); margin: 0; }

@media (max-width: 768px){
  section{ padding: 60px 0; }
  .section-tight{ padding: 44px 0; }
  .section-head{ margin-bottom: 32px; }
}

/* Service / feature cards */
.grid-3{ display:grid; grid-template-columns: repeat(3,1fr); gap: 22px; }
.grid-2{ display:grid; grid-template-columns: repeat(2,1fr); gap: 22px; }
.grid-4{ display:grid; grid-template-columns: repeat(4,1fr); gap: 20px; }
@media (max-width: 900px){
  .grid-3,.grid-4{ grid-template-columns: repeat(2,1fr); }
  .grid-2{ grid-template-columns: 1fr; }
}
@media (max-width: 600px){
  .grid-3,.grid-4{ grid-template-columns: 1fr; }
  .grid-2{ grid-template-columns: 1fr; }
}

.card{
  background: var(--paper-raise); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px; transition: border-color .2s ease, transform .2s ease;
  box-shadow: 0 1px 2px rgba(20,22,31,0.04);
}
.card:hover{ border-color: var(--line-strong); transform: translateY(-3px); box-shadow: 0 22px 44px -18px rgba(20,22,31,0.22); }
.card .icon{
  width: 44px; height: 44px; border-radius: 10px; background: var(--ink);
  display:flex; align-items:center; justify-content:center; margin-bottom: 18px;
  color: var(--signal); font-family: var(--display); font-weight:700;
  flex-shrink: 0;
}
.card a.card-link{ font-family: var(--mono); font-size: 0.8rem; color: var(--indigo); display:inline-flex; gap:6px; margin-top: 6px; }
.card a.card-link:hover{ text-decoration: underline; }

/* SVG icon inside service cards */
.card .icon svg{ width:22px; height:22px; stroke: var(--signal); fill:none; stroke-width:1.8; stroke-linecap:round; stroke-linejoin:round; }
.card .icon.icon-signal{ background: var(--signal); }
.card .icon.icon-signal svg{ stroke: var(--signal-ink) !important; }

/* Stats */
.stat{ text-align:left; }
.stat .num{ font-family: var(--display); font-size: 2.4rem; font-weight: 700; color: var(--signal); font-variant-numeric: tabular-nums; }
.stat .label{ font-family: var(--mono); font-size: 0.8rem; color: var(--muted-soft); text-transform: uppercase; letter-spacing: .04em; }

/* Process */
.process-row{ display:grid; grid-template-columns: repeat(4,1fr); gap: 0; border-top:1px solid var(--line-strong); }
.process-step{ padding: 30px 24px 0; border-right: 1px solid var(--line); }
.process-step:last-child{ border-right:none; }
.process-step .index{ font-family: var(--mono); color: var(--signal); font-size: 0.85rem; }
@media (max-width: 800px){
  .process-row{ grid-template-columns: 1fr 1fr; }
  .process-step{ border-bottom: 1px solid var(--line); padding-bottom: 24px; }
  .process-step:nth-child(2n){ border-right: none; }
}
@media (max-width: 520px){
  .process-row{ grid-template-columns: 1fr; }
  .process-step{ border-right: none; }
}

/* Quote / testimonial */
.quote-card{ background: var(--paper-raise); border:1px solid var(--line); border-radius: var(--radius); padding: 34px; box-shadow: 0 20px 50px -26px rgba(20,22,31,0.2); }
.quote-card p.quote-text{ font-family: var(--display); font-size: 1.25rem; color: var(--ink); font-weight: 500; }
.quote-meta{ font-family: var(--mono); font-size: 0.8rem; color: var(--muted-soft); }

/* Placeholder note box */
.placeholder-note{
  border: 1px dashed var(--line-strong); border-radius: 10px; padding: 14px 16px;
  font-family: var(--mono); font-size: 0.8rem; color: var(--muted-soft); background: rgba(20,22,31,0.02);
}

/* Table-ish package list */
.list-check li{ display:flex; gap:10px; padding: 9px 0; border-bottom:1px solid var(--line); font-size:0.95rem; color: var(--ink-soft); }
.list-check li:last-child{ border-bottom:none; }
.list-check li::before{ content:"→"; color: var(--signal-ink); background:var(--signal); width:20px; height:20px; border-radius:50%; display:inline-flex; align-items:center; justify-content:center; font-size:.7rem; flex:none; }

/* Breadcrumb */
.breadcrumb{ font-family: var(--mono); font-size: 0.78rem; color: var(--muted-soft); padding-top: 26px; }
.breadcrumb a{ color: var(--indigo); }

/* =========================================================
   FAQ accordion — full version
   ========================================================= */
.faq-section{ padding: 88px 0; }
.faq-section .section-head{ margin-bottom: 40px; }

.faq-item{ border-bottom: 1px solid var(--line); }
.faq-q{
  width: 100%; text-align: left; background: none; border: none;
  padding: 22px 0;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  cursor: pointer; font-family: var(--display); font-size: 1.05rem; color: var(--ink);
  transition: color .18s ease;
}
.faq-q:hover{ color: var(--indigo); }
.faq-q .plus{
  font-family: var(--mono); color: var(--signal-ink); background: var(--signal);
  width: 28px; height: 28px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; flex: none;
  transition: transform .2s ease, background .2s ease;
  font-size: 1rem;
}
.faq-item[open] .plus{ transform: rotate(45deg); background: var(--indigo); color: #fff; }
.faq-a{ padding: 0 0 22px; color: var(--muted); max-width: 68ch; }
.faq-q::-webkit-details-marker{ display:none; }

@media (max-width: 768px){
  .faq-q{ font-size: 0.95rem; padding: 18px 0; }
  .faq-section{ padding: 60px 0; }
}

/* Form */
.form-card{ background: var(--paper-raise); border:1px solid var(--line); border-radius: var(--radius); padding: 34px; box-shadow: 0 30px 60px -30px rgba(20,22,31,0.25); }
.form-row{ display:grid; grid-template-columns: 1fr 1fr; gap:16px; }
@media (max-width:640px){ .form-row{ grid-template-columns: 1fr; } }
label{ font-family: var(--mono); font-size: 0.72rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted-soft); display:block; margin-bottom:6px; }
input,select,textarea{
  width:100%; font-family: var(--body); font-size: 0.95rem; padding: 12px 14px; margin-bottom: 18px;
  border:1px solid var(--line-strong); border-radius: 9px; background: var(--paper); color: var(--ink);
}
input:focus,select:focus,textarea:focus{ outline: 2px solid var(--indigo); outline-offset: 1px; }
textarea{ resize: vertical; min-height: 110px; }

/* CTA band */
.cta-band{ text-align:center; }
.cta-band h2{ max-width: 20ch; margin-left:auto; margin-right:auto; }

/* Footer */
.site-footer{ background: var(--ink); color: rgba(241,240,235,0.75); padding: 70px 0 30px; }
.footer-grid{ display:grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 50px; border-bottom: 1px solid rgba(241,240,235,0.14); }
@media (max-width: 860px){ .footer-grid{ grid-template-columns: 1fr 1fr; gap: 32px; } }
@media (max-width: 540px){ .footer-grid{ grid-template-columns: 1fr; gap:28px; } }
.footer-grid h4{ color: var(--paper); font-size: 0.85rem; font-family: var(--mono); text-transform: uppercase; letter-spacing: .05em; margin-bottom: 18px; }
.footer-grid a{ display:block; padding: 6px 0; font-size: 0.92rem; color: rgba(241,240,235,0.7); }
.footer-grid a:hover{ color: var(--signal); }
.footer-logo{ font-family: var(--display); font-weight:700; font-size:1.4rem; color: var(--paper); margin-bottom: 14px; }
.footer-bottom{ display:flex; justify-content:space-between; align-items:center; padding-top: 26px; font-size: 0.82rem; flex-wrap:wrap; gap:12px; }
.footer-bottom a{ color: rgba(241,240,235,0.6); margin-left: 18px; }
.footer-bottom a:hover{ color: var(--signal); }

/* Utility */
.mt-0{margin-top:0} .center{text-align:center}
.tag-row{ display:flex; gap:10px; flex-wrap:wrap; margin-bottom: 10px; }
.tag{
  font-family: var(--mono); font-size: 0.72rem; text-transform:uppercase; letter-spacing:.04em;
  padding: 7px 12px; border:1px solid var(--line-strong); border-radius: 999px; color: var(--muted);
  transition: background .18s ease, color .18s ease, border-color .18s ease;
}
.tag:hover{ background: var(--ink); color: var(--paper); border-color: var(--ink); }

/* =========================================================
   VISUAL UPGRADE PASS — glows, motion, portfolio, polish
   ========================================================= */

.hero{ position: relative; overflow: hidden; }

.bg-ink{ position: relative; overflow:hidden; }
.bg-ink::before{
  content:""; position:absolute; width:500px; height:500px; border-radius:50%;
  background: radial-gradient(circle, rgba(255,178,0,0.18), transparent 70%);
  top:-220px; right:-160px; pointer-events:none;
}

/* Scroll-reveal */
.reveal{ opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.7,.2,1); }
.reveal.in-view{ opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce){ .reveal{ opacity:1; transform:none; transition:none; } }

/* Button shine */
.btn{ position: relative; overflow: hidden; }
.btn-signal::after, .btn-primary::after{
  content:""; position:absolute; inset:0; background: linear-gradient(115deg, transparent 30%, rgba(255,255,255,0.35) 50%, transparent 70%);
  transform: translateX(-120%); transition: transform .6s ease;
}
.btn-signal:hover::after, .btn-primary:hover::after{ transform: translateX(120%); }

/* Logo image */
.logo{ position:relative; display:flex; align-items:center; }
.logo-img{
  width: 210px;          /* Desktop */
  height: auto;
  display: block;
  object-fit: contain;
  image-rendering: -webkit-optimize-contrast; /* keep sharp at any size */
}

/* Footer logo image */
.footer-logo-img{
  width: 190px;
  height: auto;
  display: block;
  object-fit: contain;
  image-rendering: -webkit-optimize-contrast;
  filter: invert(1) hue-rotate(180deg) saturate(1.5) brightness(1.1);
}

@media (max-width: 960px){
  .logo-img{ width: 190px; }
  .footer-logo-img{ width: 175px; }
}
@media (max-width: 768px){
  .logo-img{ width: 170px; }
  .footer-logo-img{ width: 155px; }
}
@media (max-width: 480px){
  .logo-img{ width: 150px; }
  .footer-logo-img{ width: 135px; }
}
@media (max-width: 360px){
  .logo-img{ width: 132px; }
  .footer-logo-img{ width: 118px; }
}

/* =========================================================
   PORTFOLIO — grid with hover reveal
   ========================================================= */
.portfolio-toolbar{ display:flex; flex-wrap:wrap; gap:10px; margin-bottom: 34px; }
.filter-btn{
  font-family: var(--mono); font-size: .78rem; text-transform: uppercase; letter-spacing:.04em;
  padding: 9px 16px; border-radius: 999px; border: 1px solid var(--line-strong); background: transparent;
  color: var(--muted); cursor:pointer; transition: all .18s ease;
}
.filter-btn:hover{ border-color: var(--ink); color: var(--ink); }
.filter-btn.active{ background: var(--ink); border-color: var(--ink); color: var(--paper); }

.portfolio-grid{ display:grid; grid-template-columns: repeat(3,1fr); gap: 26px; }
@media (max-width:900px){ .portfolio-grid{ grid-template-columns: repeat(2,1fr); } }
@media (max-width:600px){ .portfolio-grid{ grid-template-columns: 1fr; } }

.pf-item{ display:block; transition: opacity .25s ease, transform .25s ease; }
.pf-item.hidden-item{ display:none; }

.pf-card{
  position: relative; border-radius: 18px; overflow: hidden; aspect-ratio: 4/5;
  display:flex; flex-direction:column; justify-content:flex-end; padding: 22px;
  isolation: isolate; cursor: pointer;
  transition: transform .35s cubic-bezier(.2,.8,.2,1);
}
.pf-card:hover{ transform: translateY(-8px); }
.pf-card::before{ content:""; position:absolute; inset:0; z-index:-2; }
.pf-card::after{
  content:""; position:absolute; inset:0; z-index:-1;
  background: linear-gradient(180deg, transparent 30%, rgba(0,0,0,0.72) 100%);
}
.pf-card .pf-tag{
  align-self:flex-start; font-family: var(--mono); font-size:.68rem; text-transform:uppercase; letter-spacing:.05em;
  background: rgba(255,255,255,0.16); backdrop-filter: blur(6px); color:#fff; padding:5px 11px; border-radius:999px;
  margin-bottom: auto;
}
.pf-card h3{ color:#fff; font-size:1.18rem; margin-bottom:4px; }
.pf-card p{ color: rgba(255,255,255,0.78); font-size:.85rem; margin:0; }
.pf-card .pf-glyph{ position:absolute; top:20px; right:20px; font-family:var(--display); font-weight:700; font-size:1.4rem; color:rgba(255,255,255,.85); }
.pf-card .pf-view{
  position:absolute; inset:0; display:flex; align-items:center; justify-content:center;
  font-family: var(--mono); font-size:.8rem; letter-spacing:.04em; color:#fff;
  background: rgba(20,22,31,0.55); opacity:0; transition: opacity .25s ease; z-index:2;
}
.pf-card:hover .pf-view{ opacity:1; }

.pf-c1::before{ background: linear-gradient(135deg, #2A2D45, #14161F); }
.pf-c2::before{ background: linear-gradient(135deg, #FFC93C, #FF8A00); }
.pf-c3::before{ background: linear-gradient(135deg, #6366F1, #312E81); }
.pf-c4::before{ background: linear-gradient(135deg, #14161F, #3A3D55); }
.pf-c5::before{ background: linear-gradient(135deg, #FFDD8A, #FFB200); }
.pf-c6::before{ background: linear-gradient(135deg, #4A4DE6, #1B1D6E); }

.pf-note{ margin-top:34px; max-width:70ch; }

/* Floating WhatsApp button */
.float-wa{
  position: fixed; right: 20px; bottom: 20px; z-index: 120;
  width: 56px; height:56px; border-radius: 50%; background: #25D366;
  display:flex; align-items:center; justify-content:center; box-shadow: 0 14px 30px rgba(37,211,102,0.4);
  transition: transform .2s ease;
}
.float-wa:hover{ transform: scale(1.08); }

/* =========================================================
   HERO visual area — hero-visual wrapper
   ========================================================= */
.hero-visual{ position: relative; }
.dm-float{
  position:absolute; background: var(--ink); color: var(--paper); border-radius: 12px; padding: 10px 14px;
  font-family: var(--mono); font-size:.7rem; box-shadow: 0 20px 40px rgba(20,22,31,0.3);
  display:flex; align-items:center; gap:8px; z-index: 5;
}
.dm-float-1{ top:-16px; right:-16px; }
.dm-float-1 .dot-signal{ width:8px;height:8px;border-radius:50%; background:var(--signal); }
.dm-float-2{ bottom:-14px; left:-18px; background: var(--signal); color: var(--signal-ink); }

@media (max-width: 640px){ .dm-float{ display:none; } }

/* Bento layout */
.bento{ display:grid; grid-template-columns: repeat(4,1fr); gap:16px; }
.bento .card{ padding:22px; }
.bento .card:nth-child(1){ grid-column: span 2; }
@media (max-width:900px){ .bento{ grid-template-columns: repeat(2,1fr); } .bento .card:nth-child(1){ grid-column: span 2; } }
@media (max-width:560px){ .bento{ grid-template-columns: 1fr; } .bento .card:nth-child(1){ grid-column: span 1; } }

.badge-new{
  font-family: var(--mono); font-size:.62rem; text-transform:uppercase; letter-spacing:.05em;
  background: var(--signal); color: var(--signal-ink); padding:3px 8px; border-radius:6px; margin-left:8px; vertical-align:middle;
}

/* =========================================================
   VIDEO EMBED + CLIENT SUCCESS STORY
   ========================================================= */
.video-embed{
  position: relative; width: 100%; aspect-ratio: 16/9;
  border-radius: 16px; overflow: hidden; background: var(--ink);
  border: 1px solid var(--line); box-shadow: 0 30px 60px -30px rgba(20,22,31,0.3);
}
.video-embed iframe, .video-embed video{
  position:absolute; inset:0; width:100%; height:100%; border:0;
}
.video-embed.is-placeholder{
  display:flex; align-items:center; justify-content:center; flex-direction:column; gap:10px;
  background: linear-gradient(135deg, var(--ink), var(--ink-soft));
  color: var(--paper); text-align:center; padding: 20px;
}
.video-embed.is-placeholder .play-btn{
  width:60px; height:60px; border-radius:50%; background: var(--signal); color: var(--signal-ink);
  display:flex; align-items:center; justify-content:center; font-size:1.3rem;
}
.video-embed.is-placeholder .ph-label{ font-family: var(--mono); font-size:.72rem; color: rgba(241,240,235,0.65); max-width: 32ch; }

.client-story{
  background: var(--paper-raise); border:1px solid var(--line); border-radius: 18px; overflow:hidden;
  display:flex; flex-direction:column; box-shadow: 0 1px 2px rgba(20,22,31,0.04);
  transition: transform .2s ease, box-shadow .2s ease;
}
.client-story:hover{ transform: translateY(-4px); box-shadow: 0 24px 46px -22px rgba(20,22,31,0.22); }
.client-story .video-embed{ border-radius: 0; border: none; box-shadow:none; }
.client-story-body{ padding: 24px 26px 28px; }
.client-story .cs-service{
  font-family: var(--mono); font-size:.68rem; text-transform:uppercase; letter-spacing:.05em;
  color: var(--indigo); margin-bottom: 10px; display:block;
}
.client-story .cs-quote{ font-family: var(--display); font-size: 1.05rem; color: var(--ink); margin-bottom: 16px; }
.client-story .cs-person{ display:flex; align-items:center; gap:12px; }
.client-story .cs-avatar{
  width:42px; height:42px; border-radius:50%; background: var(--ink);
  display:flex; align-items:center; justify-content:center; color: var(--signal);
  font-family: var(--display); font-weight:700; font-size:.9rem; flex:none;
}
.client-story .cs-name{ font-weight:600; font-size:.92rem; }
.client-story .cs-role{ font-family: var(--mono); font-size:.75rem; color: var(--muted-soft); }

/* =========================================================
   REEL-SCROLL — video carousel (hero + testimonials)
   ========================================================= */
.reel-scroll-wrap{ position: relative; }
.reel-scroll{
  display:flex; gap:16px; overflow-x:auto; scroll-snap-type:x mandatory;
  padding: 4px 4px 14px; -webkit-overflow-scrolling: touch; scrollbar-width: thin;
}
.reel-scroll::-webkit-scrollbar{ height:6px; }
.reel-scroll::-webkit-scrollbar-thumb{ background: var(--line-strong); border-radius:99px; }

.reel-card{
  flex: 0 0 auto; width: 200px; aspect-ratio: 9/16; scroll-snap-align:start;
  border-radius:16px; overflow:hidden; position:relative;
  border:1px solid var(--line); box-shadow: 0 20px 40px -22px rgba(20,22,31,0.25);
}
.reel-card .video-embed{ position:absolute; inset:0; border-radius:0; border:none; box-shadow:none; }
.reel-card .reel-caption{
  position:absolute; left:0; right:0; bottom:0; padding:12px;
  background: linear-gradient(180deg, transparent, rgba(0,0,0,.75));
  color:#fff; z-index:2;
}
.reel-card .reel-caption .rc-name{ font-weight:600; font-size:.82rem; }
.reel-card .reel-caption .rc-role{ font-family: var(--mono); font-size:.66rem; color:rgba(255,255,255,.75); }

.reel-arrows{ display:flex; gap:10px; justify-content:flex-end; margin-top:12px; }
.reel-arrow{
  width:42px; height:42px; border-radius:50%; border:1px solid var(--line-strong); background: var(--paper-raise);
  display:flex; align-items:center; justify-content:center; cursor:pointer; transition: all .18s ease;
  font-size: 1.1rem;
}
.reel-arrow:hover{ background: var(--ink); border-color: var(--ink); color:var(--paper); }
@media (max-width: 700px){
  .reel-arrows{ justify-content: center; }
  .reel-card{ width: min(160px, 44vw); }
}

/* =========================================================
   TEXT TESTIMONIAL SLIDER
   ========================================================= */
.tsx-scroll{
  display:flex; gap:20px; overflow-x:auto; scroll-snap-type:x mandatory;
  padding: 4px 4px 16px; -webkit-overflow-scrolling: touch; scrollbar-width: none;
}
.tsx-scroll::-webkit-scrollbar{ display: none; }
.tsx-card{
  flex: 0 0 auto; width: min(420px, 85vw); scroll-snap-align:start;
  background: var(--paper-raise); border:1px solid var(--line); border-radius:16px; padding:26px;
  box-shadow: 0 20px 40px -24px rgba(20,22,31,0.2);
}
.tsx-card .tsx-quote{ font-family: var(--display); font-size:1.05rem; color:var(--ink); margin-bottom:16px; }
.tsx-card .tsx-person{ display:flex; align-items:center; gap:12px; }
.tsx-card .tsx-avatar{ width:40px;height:40px;border-radius:50%; background:var(--ink); color:var(--signal); display:flex; align-items:center; justify-content:center; font-family:var(--display); font-weight:700; font-size:.85rem; flex:none; }
.tsx-card .tsx-name{ font-weight:600; font-size:.9rem; }
.tsx-card .tsx-role{ font-family: var(--mono); font-size:.72rem; color: var(--muted-soft); }

/* Testimonial auto-slide progress bar */
.reel-progress-bar{
  height: 3px;
  background: var(--line-strong);
  border-radius: 3px;
  margin-top: 6px;
  overflow: hidden;
}
.reel-progress-fill{
  height: 100%;
  background: var(--signal);
  border-radius: 3px;
  width: 0%;
  transition: width linear;
}

/* =========================================================
   BRAND LOGO STRIP — two-direction infinite marquee
   ========================================================= */
.logo-marquee-wrap{
  display:flex; flex-direction:column; gap:22px; margin-top: 8px;
}
.logo-marquee{
  position:relative; overflow:hidden; width:100%;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 8%, #000 92%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0, #000 8%, #000 92%, transparent 100%);
}
.logo-marquee-track{
  display:flex; align-items:center; width:max-content;
  animation: logo-scroll-ltr 32s linear infinite;
}
.logo-marquee.reverse .logo-marquee-track{
  animation-name: logo-scroll-rtl;
}
.logo-marquee:hover .logo-marquee-track{
  animation-play-state: paused;
}
.logo-item{
  flex: 0 0 auto;
  display:flex; align-items:center; justify-content:center;
  height: 44px; padding: 0 28px;
}
.logo-item img{
  max-height: 100%; max-width: 140px; width:auto; height:auto;
  object-fit: contain;
  filter: grayscale(1); opacity:.7; transition: all .2s ease;
}
.logo-item img:hover{ filter:none; opacity:1; }

@keyframes logo-scroll-ltr{
  from{ transform: translateX(-50%); }
  to{ transform: translateX(0); }
}
@keyframes logo-scroll-rtl{
  from{ transform: translateX(0); }
  to{ transform: translateX(-50%); }
}

@media (max-width: 860px){
  .logo-item{ height: 36px; padding: 0 20px; }
  .logo-item img{ max-width: 110px; }
}
@media (max-width: 540px){
  .logo-item{ height: 30px; padding: 0 16px; }
  .logo-item img{ max-width: 90px; }
}
@media (prefers-reduced-motion: reduce){
  .logo-marquee-track{ animation: none; }
  .logo-marquee{ overflow-x: auto; }
}

/* =========================================================
   Lead popup modal
   ========================================================= */
.lead-modal-overlay{
  position: fixed; inset:0; background: rgba(20,22,31,0.6); backdrop-filter: blur(3px);
  display:flex; align-items:center; justify-content:center; z-index: 950; padding:20px;
  opacity:0; visibility:hidden; transition: all .25s ease;
}
.lead-modal-overlay.open{ opacity:1; visibility:visible; }
.lead-modal{
  background: var(--paper); border-radius:18px; max-width: 460px; width:100%; padding: 34px;
  position:relative; box-shadow: 0 40px 80px rgba(0,0,0,0.35);
  transform: translateY(14px); transition: transform .25s ease;
  max-height: 90vh; overflow-y: auto;
}
.lead-modal-overlay.open .lead-modal{ transform: translateY(0); }
.lead-modal-close{
  position:absolute; top:16px; right:16px; width:32px; height:32px; border-radius:50%;
  border:1px solid var(--line-strong); background:none; cursor:pointer; display:flex; align-items:center; justify-content:center;
}
.lead-modal h3{ font-size:1.3rem; margin-bottom:8px; }
.lead-modal p{ margin-bottom:20px; }

/* AI service sub-cards */
.ai-subcard{ background: var(--ink); color: var(--paper); border-radius:16px; padding:26px; }
.ai-subcard h3{ color: var(--paper); }
.ai-subcard p{ color: rgba(241,240,235,0.72); }
.ai-subcard .badge-new{ margin-left:0; margin-bottom:10px; display:inline-block; }

/* =========================================================
   MOTION PLACEHOLDER — animated stand-in for non-client videos
   ========================================================= */
.motion-placeholder{
  position:absolute; inset:0; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:14px;
  background-size: 200% 200%; animation: motionShift 6s ease infinite;
  color:#fff; text-align:center; padding:18px;
}
@keyframes motionShift{ 0%{background-position:0% 50%;} 50%{background-position:100% 50%;} 100%{background-position:0% 50%;} }
.motion-placeholder.mp-1{ background-image: linear-gradient(120deg, #14161F, #2A2D45, #4A4DE6); }
.motion-placeholder.mp-2{ background-image: linear-gradient(120deg, #14161F, #FF8A00, #FFC93C); }
.motion-placeholder.mp-3{ background-image: linear-gradient(120deg, #14161F, #312E81, #6366F1); }
.motion-placeholder.mp-4{ background-image: linear-gradient(120deg, #24273A, #14161F, #3A2900); }

.mp-play{
  width:54px; height:54px; border-radius:50%; background: rgba(255,255,255,0.16); backdrop-filter: blur(6px);
  display:flex; align-items:center; justify-content:center; font-size:1.1rem; border:1px solid rgba(255,255,255,0.35);
}
.mp-label{ font-family: var(--mono); font-size:.7rem; letter-spacing:.04em; color: rgba(255,255,255,.85); max-width:22ch; }
.mp-eq{ display:flex; align-items:flex-end; gap:3px; height:20px; }
.mp-eq span{ width:3px; background: var(--signal); border-radius:2px; animation: eqBounce 1s ease-in-out infinite; }
.mp-eq span:nth-child(1){ animation-delay:0s; height:40%; }
.mp-eq span:nth-child(2){ animation-delay:.15s; height:80%; }
.mp-eq span:nth-child(3){ animation-delay:.3s; height:55%; }
.mp-eq span:nth-child(4){ animation-delay:.45s; height:90%; }
.mp-eq span:nth-child(5){ animation-delay:.6s; height:35%; }
@keyframes eqBounce{ 0%,100%{ transform: scaleY(0.4); } 50%{ transform: scaleY(1); } }
@media (prefers-reduced-motion: reduce){ .motion-placeholder{ animation:none; } .mp-eq span{ animation:none; height:60% !important; } }

/* =========================================================
   CUSTOM CURSOR — desktop only
   ========================================================= */
body.custom-cursor-active, body.custom-cursor-active *{ cursor: none !important; }

#cursor-dot, #cursor-ring{
  position: fixed; top:0; left:0; z-index: 9999; pointer-events: none;
  border-radius: 50%; will-change: transform;
  transform: translate(-50%, -50%);
}
#cursor-dot{
  width: 8px; height: 8px; background: var(--signal);
  transition: opacity .2s ease, width .2s ease, height .2s ease, background .2s ease;
}
#cursor-ring{
  width: 34px; height: 34px; border: 1.5px solid var(--ink);
  opacity: .55;
  transition: opacity .2s ease, width .25s cubic-bezier(.2,.8,.2,1), height .25s cubic-bezier(.2,.8,.2,1), border-color .2s ease, background .2s ease;
}
body.cursor-hover #cursor-ring{
  width: 54px; height: 54px; background: rgba(255,178,0,0.12); border-color: var(--signal); opacity: .9;
}
body.cursor-hover #cursor-dot{ width: 6px; height: 6px; background: var(--ink); }
body.cursor-hidden #cursor-dot, body.cursor-hidden #cursor-ring{ opacity: 0; }

@media (max-width: 900px), (pointer: coarse), (any-pointer: coarse){
  #cursor-dot, #cursor-ring{ display: none !important; }
  body.custom-cursor-active, body.custom-cursor-active *{ cursor: auto !important; }
}

/* =========================================================
   Subtle dotted texture on paper sections
   ========================================================= */
body{
  background-image: radial-gradient(rgba(20,22,31,0.05) 1px, transparent 1px);
  background-size: 26px 26px;
  background-position: -4px -4px;
}
.bg-raise, .card, .form-card, .quote-card{ background-image: none; }

/* =========================================================
   GLOBAL — prevent horizontal overflow on all screens
   ========================================================= */
html{
  overflow-x: hidden;
  max-width: 100%;
}

/* =========================================================
   HERO two-column layout → single column on tablet
   ========================================================= */
@media (max-width: 960px){
  /* All hero-grids (index, about, contact, etc.) go single col */
  .hero-grid{ grid-template-columns: 1fr !important; gap: 32px; }
  /* Restore natural source order; inline order styles are
     overridden below only for the about page swap */
  .hero-grid > div{ order: unset !important; }

  /* Fix: CSS Grid items default to min-width:auto, which lets a child's
     content (e.g. the image slider's slides) force the single column wider
     than the actual viewport — pushing the slider/text off-screen on mobile.
     min-width:0 allows the column to respect the real container width. */
  .hero-grid > div{ min-width: 0; }

  /* Hero text section stays on top, visual below */
  section > .container > .hero-grid > div:first-child,
  .hero > .container > .hero-grid > div:first-child{ order: 1 !important; }
  section > .container > .hero-grid > div:last-child,
  .hero > .container > .hero-grid > div:last-child{ order: 2 !important; }

  /* Pages where the visual column comes first in source (about/why) —
     the inline style "order:1 / order:2" drives it; let the inline styles win */
}

/* =========================================================
   NAV — mobile header stays in one row, no overflow
   ========================================================= */
@media (max-width: 960px){
  /* Nav wrapper: logo | [spacer] | cta (btn + hamburger) */
  .nav{
    padding: 12px 0;
    flex-wrap: nowrap;
    min-height: 0;
  }

  /* Only show the "Book a Consultation" CTA + hamburger on mobile.
     Hide the "Get a Quote" ghost button. */
  .nav-cta .btn-ghost{ display: none !important; }

  /* Keep the signal CTA visible up to 480px then hide it too */
  .nav-cta{ gap: 8px; flex-shrink: 0; }

  /* Full-screen slide-in menu must render above the sticky header,
     the floating WhatsApp button, and every other fixed element. */
  .nav-links{ z-index: 900; }
  .site-header{ z-index: 200; }
}

@media (max-width: 480px){
  /* At very small widths, hide the Book CTA too — just hamburger */
  .nav-cta .btn-signal{ display: none !important; }
}

/* =========================================================
   SECTION PADDING — reduce on small screens
   ========================================================= */
@media (max-width: 768px){
  section{ padding: 56px 0; }
  .section-tight{ padding: 38px 0; }
  .faq-section{ padding: 56px 0; }
  .container{ padding: 0 18px; }
  .section-head{ margin-bottom: 28px; }
  .section-head h2{ font-size: clamp(1.5rem, 4vw, 2rem); }
}

@media (max-width: 480px){
  section{ padding: 44px 0; }
  .section-tight{ padding: 30px 0; }
  .container{ padding: 0 16px; }
}

@media (max-width: 360px){
  section{ padding: 36px 0; }
  .container{ padding: 0 14px; }
}

/* =========================================================
   TYPOGRAPHY — fluid and readable on all widths
   ========================================================= */
@media (max-width: 768px){
  h1{ font-size: clamp(1.8rem, 6.5vw, 2.6rem); }
  h2{ font-size: clamp(1.4rem, 5vw, 2rem); }
  h3{ font-size: clamp(1rem, 3.5vw, 1.15rem); }
  p{ font-size: 0.95rem; }
}

@media (max-width: 480px){
  h1{ font-size: clamp(1.65rem, 7vw, 2.1rem); }
  h2{ font-size: clamp(1.3rem, 5.5vw, 1.7rem); }
}

@media (max-width: 360px){
  h1{ font-size: clamp(1.5rem, 7.5vw, 1.9rem); }
  h2{ font-size: clamp(1.2rem, 6vw, 1.5rem); }
}

/* =========================================================
   HERO SECTION — glow blobs, text, actions
   ========================================================= */
@media (max-width: 768px){
  .hero{ padding: 44px 0 32px; overflow: hidden; }
  .hero-sub{ font-size: 1rem; max-width: 100%; }
  .hero-lede{ font-size: 0.92rem; max-width: 100%; }
  .hero-actions{ flex-wrap: wrap; gap: 10px; margin-top: 22px; }
  .hero-actions .btn{ font-size: 0.88rem; padding: 12px 20px; }
  .hero-note{ font-size: 0.7rem; margin-top: 16px; }
}

@media (max-width: 480px){
  .hero{ padding: 36px 0 28px; }
  .hero-actions{ flex-direction: column; align-items: stretch; }
  .hero-actions .btn{ justify-content: center; text-align: center; }
}

/* =========================================================
   IMAGE SLIDER — hero-img-slider
   ========================================================= */
@media (max-width: 768px){
  .hero-img-slider{ aspect-ratio: 3/2; border-radius: 16px; }
  .his-slide{ padding: 18px; }
  .his-slide h3{ font-size: 1rem; line-height: 1.25; }
  .his-slide p{ font-size: 0.8rem; max-width: 100%; }
  .his-stat{ font-size: 0.66rem; padding: 5px 10px; }
  /* Reduce decorative art opacity further to avoid obscuring text */
  .his-slide-art{ opacity: 0.12; }
}

@media (max-width: 480px){
  .hero-img-slider{ aspect-ratio: 4/3; border-radius: 12px; }
  .his-slide{ padding: 14px; }
  .his-slide-icon{ width: 38px; height: 38px; margin-bottom: 10px; }
  .his-slide-icon svg{ width: 20px; height: 20px; }
  .his-slide h3{ font-size: 0.92rem; }
  .his-slide p{ font-size: 0.78rem; }
  /* Hide decorative art on small screens — avoids content overlap */
  .his-slide-art{ display: none; }
  .his-arrow{ width: 34px; height: 34px; font-size: 1rem; }
  .his-prev{ left: 8px; }
  .his-next{ right: 8px; }
}

@media (max-width: 360px){
  .hero-img-slider{ aspect-ratio: 5/4; }
  .his-slide{ padding: 12px; }
}

/* =========================================================
   BUTTONS — never overflow the viewport
   ========================================================= */
.btn{
  white-space: normal;        /* allow wrap if content is too long */
  word-break: break-word;
  text-align: center;
}

/* Keep inline CTAs tidy */
.nav-cta .btn{ white-space: nowrap; }

@media (max-width: 480px){
  .btn-sm{ padding: 10px 16px; font-size: 0.82rem; }
}

/* =========================================================
   CARDS — no fixed widths, proper padding on small screens
   ========================================================= */
.card{
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

@media (max-width: 768px){
  .card{ padding: 22px 18px; }
  .ai-subcard{ padding: 22px 18px; }
  .quote-card{ padding: 22px 18px; }
}

@media (max-width: 480px){
  .card{ padding: 18px 16px; }
  .ai-subcard{ padding: 18px 16px; }
  .quote-card{ padding: 18px 16px; }
}

/* =========================================================
   GRIDS — collapse at right breakpoints
   ========================================================= */
@media (max-width: 900px){
  .grid-3,.grid-4{ grid-template-columns: repeat(2,1fr); }
}

@media (max-width: 600px){
  .grid-3,.grid-4{ grid-template-columns: 1fr; }
  .grid-2{ grid-template-columns: 1fr; }
}

/* Stats grid: stay 2-col on mobile for visual balance */
@media (max-width: 600px){
  .hero-grid .grid-2{ grid-template-columns: repeat(2,1fr); }
}

/* =========================================================
   BENTO GRID
   ========================================================= */
@media (max-width: 900px){
  .bento{ grid-template-columns: repeat(2,1fr); }
  .bento .card:nth-child(1){ grid-column: span 2; }
}

@media (max-width: 560px){
  .bento{ grid-template-columns: 1fr; }
  .bento .card:nth-child(1){ grid-column: span 1; }
}

/* =========================================================
   PROCESS STEPS
   ========================================================= */
@media (max-width: 800px){
  .process-row{ grid-template-columns: 1fr 1fr; }
  .process-step{ border-bottom: 1px solid var(--line); padding-bottom: 24px; }
  .process-step:nth-child(2n){ border-right: none; }
}

@media (max-width: 520px){
  .process-row{ grid-template-columns: 1fr; }
  .process-step{ border-right: none; padding: 18px 0; }
}

/* =========================================================
   REEL SCROLL — video testimonials
   ========================================================= */
@media (max-width: 768px){
  .reel-card{ width: min(180px, 48vw); }
  .reel-arrows{ justify-content: center; }
}

@media (max-width: 480px){
  .reel-card{ width: min(155px, 44vw); }
  .reel-scroll{ gap: 10px; }
}

@media (max-width: 360px){
  .reel-card{ width: 42vw; }
}

/* =========================================================
   TEXT TESTIMONIAL CARDS
   ========================================================= */
.tsx-card{
  width: min(420px, 85vw);
  max-width: 100%;
}

@media (max-width: 480px){
  .tsx-card{ width: min(300px, 88vw); padding: 20px 16px; }
  .tsx-card .tsx-quote{ font-size: 0.95rem; }
}

@media (max-width: 360px){
  .tsx-card{ width: 92vw; }
}

/* =========================================================
   LOGO STRIP
   ========================================================= */
@media (max-width: 860px){ .logo-strip{ grid-template-columns: repeat(3,1fr); } }
@media (max-width: 540px){ .logo-strip{ grid-template-columns: repeat(2,1fr); } }
@media (max-width: 360px){ .logo-strip{ grid-template-columns: repeat(2,1fr); gap: 10px; } }

/* =========================================================
   PORTFOLIO GRID
   ========================================================= */
@media (max-width: 900px){ .portfolio-grid{ grid-template-columns: repeat(2,1fr); } }
@media (max-width: 600px){ .portfolio-grid{ grid-template-columns: 1fr; } }

/* Portfolio card: on mobile, limit height so card isn't taller than screen */
@media (max-width: 600px){
  .pf-card{ aspect-ratio: 3/2; }
}

/* =========================================================
   FORM
   ========================================================= */
@media (max-width: 768px){
  .form-card{ padding: 22px 18px; }
  .form-row{ grid-template-columns: 1fr; gap: 0; }
}

@media (max-width: 480px){
  .form-card{ padding: 18px 14px; }
  input, select, textarea{ font-size: 0.9rem; padding: 10px 12px; }
}

/* =========================================================
   STATS
   ========================================================= */
@media (max-width: 768px){
  .stat .num{ font-size: 2rem; }
  .stat .label{ font-size: 0.72rem; }
}

@media (max-width: 480px){
  .stat .num{ font-size: 1.8rem; }
}

/* =========================================================
   FOOTER
   ========================================================= */
@media (max-width: 860px){
  .footer-grid{ grid-template-columns: 1fr 1fr; gap: 28px; }
  .site-footer{ padding: 50px 0 24px; }
}

@media (max-width: 540px){
  .footer-grid{ grid-template-columns: 1fr; gap: 24px; }
}

@media (max-width: 768px){
  .footer-bottom{
    flex-direction: column; align-items: center; text-align: center; gap: 8px;
  }
  .footer-bottom div{ display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
  .footer-bottom a{ margin-left: 0; }
  .site-footer{ padding: 44px 0 20px; }
}

/* =========================================================
   FAQ
   ========================================================= */
@media (max-width: 768px){
  .faq-q{ font-size: 0.95rem; padding: 16px 0; gap: 12px; }
  .faq-a{ font-size: 0.9rem; }
  .faq-q .plus{ width: 26px; height: 26px; font-size: 0.9rem; flex-shrink: 0; }
}

@media (max-width: 480px){
  .faq-q{ font-size: 0.9rem; }
}

/* =========================================================
   VIDEO EMBED
   ========================================================= */
.video-embed{ max-width: 100%; }

@media (max-width: 480px){
  .video-embed{ border-radius: 12px; }
}

/* =========================================================
   LEAD MODAL
   ========================================================= */
@media (max-width: 480px){
  .lead-modal{ padding: 24px 18px; border-radius: 14px; }
  .lead-modal h3{ font-size: 1.1rem; }
}

/* =========================================================
   BREADCRUMB
   ========================================================= */
@media (max-width: 480px){
  .breadcrumb{ font-size: 0.72rem; padding-top: 18px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
}

/* =========================================================
   TAG ROW — industry tags
   ========================================================= */
.tag-row{ flex-wrap: wrap; }
.tag{ word-break: break-word; }

@media (max-width: 480px){
  .tag{ font-size: 0.68rem; padding: 6px 10px; }
}

/* =========================================================
   FLOATING WHATSAPP BUTTON
   ========================================================= */
@media (max-width: 480px){
  .float-wa{ width: 50px; height: 50px; right: 14px; bottom: 14px; }
}

/* =========================================================
   HERO VISUAL floating badges
   ========================================================= */
@media (max-width: 640px){
  .dm-float{ display: none !important; }
}

/* =========================================================
   IMAGES & MEDIA — never overflow their container
   ========================================================= */
img, video, embed, object, svg{
  max-width: 100%;
}
/* Restore 100% height on elements that require it */
.video-embed iframe,
.video-embed video,
.reel-card .video-embed,
.hero-img-slider,
.his-track,
.his-slide{
  height: 100%;
  max-width: none; /* inside a fixed-size slider; let it be 100% of the flex item */
}

/* =========================================================
   OVERFLOW GUARD — targeted elements that can bleed
   ========================================================= */
/* Cards and content blocks: never wider than their container */
.card,
.ai-subcard,
.quote-card,
.form-card,
.client-story,
.pf-item,
.tsx-card,
.reel-card,
.video-embed,
.logo-box,
.process-step,
.stat,
.breadcrumb,
.tag-row,
.footer-grid > div{
  min-width: 0; /* allow flex/grid items to shrink */
  word-break: break-word;
  overflow-wrap: break-word;
}
