/* Advibe Agency — Landing page styles
   Tokens: ./tokens.css */

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: hidden; }
@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; transition-delay: 0ms !important; scroll-behavior: auto !important; }
}
body, h1, h2, h3, p, figure { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
img { max-width: 100%; display: block; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }
a { color: inherit; text-decoration: none; }

/* ---------- Base ---------- */
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

.container {
  max-width: var(--content-max);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

section { padding: var(--section-padding) 0; }
.section-border-top { border-top: 1px solid var(--border); }

h1, h2, h3 { font-family: var(--font-display); color: var(--text); font-weight: 700; }

.eyebrow {
  display: block;
  font-family: var(--font-body);
  font-size: var(--fs-caption);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: var(--sp-3);
}

.section-head { max-width: 640px; margin: 0 auto var(--sp-8); text-align: center; }
.section-head h2 { font-size: var(--fs-h2); line-height: 1.2; }
.section-head p { font-size: var(--fs-body-lg); color: var(--text-muted); margin-top: var(--sp-4); }

.data { font-family: var(--font-data); font-variant-numeric: tabular-nums; }

:focus-visible {
  outline: 2px solid var(--gold-400);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  font-family: var(--font-body);
  font-size: var(--fs-caption);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: var(--sp-3) var(--sp-5);
  border-radius: var(--radius-full);
  transition: transform var(--dur-micro) var(--ease-out), box-shadow var(--dur-micro) var(--ease-out), background var(--dur-micro) var(--ease-out);
  white-space: nowrap;
}
.btn-primary {
  background: var(--gold-gradient);
  color: #201200;
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 28px -8px rgba(221, 174, 92, 0.45); }
.btn-secondary {
  background: transparent;
  border: 1px solid var(--border-strong);
  color: var(--text);
}
.btn-secondary:hover { border-color: var(--gold-400); color: var(--gold-300); }

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(10, 10, 10, 0.75);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}
.logo { display: flex; align-items: center; }
.logo img { height: 32px; width: auto; }
.main-nav { display: none; }
.main-nav ul { display: flex; gap: var(--sp-6); align-items: center; }
.main-nav a {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-muted);
  transition: color var(--dur-micro) var(--ease-out);
  position: relative;
  padding-bottom: 4px;
}
.main-nav a:hover, .main-nav a.active { color: var(--text); }
.main-nav a.active::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -4px;
  height: 2px;
  background: var(--gold-gradient);
}
.header-actions { display: flex; align-items: center; gap: var(--sp-3); }
.nav-toggle {
  display: flex;
  width: 40px; height: 40px;
  align-items: center; justify-content: center;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
}
.nav-toggle svg { width: 20px; height: 20px; }

@media (min-width: 900px) {
  .main-nav { display: block; }
  .nav-toggle { display: none; }
  .btn-header-secondary { display: inline-flex; }
}
.btn-header-secondary { display: none; }

/* Below 900px the header shows only the logo + hamburger — the primary CTA
   lives in the mobile nav panel instead, so the fixed bar never has to fit
   a pill button and a toggle into a narrow viewport at once. */
@media (max-width: 899px) {
  .header-actions .btn-primary { display: none; }
}

.mobile-nav {
  position: fixed;
  inset: 76px 0 0 0;
  background: var(--bg);
  z-index: 99;
  padding: var(--sp-6) var(--gutter);
  transform: translateX(100%);
  transition: transform var(--dur-reveal) var(--ease-out);
}
.mobile-nav.open { transform: translateX(0); }
.mobile-nav ul { display: flex; flex-direction: column; gap: var(--sp-5); }
.mobile-nav a { font-family: var(--font-display); font-size: 28px; font-weight: 700; }
.mobile-nav .btn { margin-top: var(--sp-6); width: 100%; justify-content: center; }

/* ---------- Hero ---------- */
.hero {
  padding-top: calc(76px + var(--sp-9));
  padding-bottom: var(--section-padding);
  position: relative;
  overflow: hidden;
}
.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 35%;
  opacity: 0.55;
}
.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, var(--bg) 0%, var(--bg) 26%, rgba(10, 10, 10, 0.78) 46%, rgba(10, 10, 10, 0.4) 68%, rgba(10, 10, 10, 0.6) 100%),
              linear-gradient(0deg, var(--bg) 0%, transparent 18%, transparent 82%, var(--bg) 100%);
}
.hero::before {
  content: "";
  position: absolute;
  top: -10%; left: 50%;
  width: 900px; height: 900px;
  transform: translateX(-50%);
  background: radial-gradient(circle, var(--violet-glow) 0%, transparent 65%);
  pointer-events: none;
  z-index: 1;
  mix-blend-mode: screen;
}
.hero .container {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-8);
  align-items: center;
}
/* Grid/flex items default to a content-based minimum width, which lets the
   marquee's unwrapped, max-content track inflate the whole track past the
   viewport. Overriding it back to 0 restores the intended fr proportions
   and lets .marquee-mask's overflow:hidden actually clip the track. */
.hero-copy, .hero-cards, .trust-card, .marquee-mask { min-width: 0; }
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  padding: var(--sp-2) var(--sp-4);
  margin-bottom: var(--sp-4);
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-strong);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  font-size: var(--fs-caption);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  transition: background var(--dur-micro) var(--ease-out), border-color var(--dur-micro) var(--ease-out);
}
.hero-badge:hover { background: rgba(255, 255, 255, 0.09); border-color: rgba(255, 255, 255, 0.24); }
.hero-badge svg { width: 12px; height: 12px; flex-shrink: 0; color: var(--gold-400); }

.hero-copy h1 {
  font-size: var(--fs-display);
  line-height: 1.08;
  letter-spacing: -0.02em;
  max-width: 16ch;
}
.hero-copy h1 .accent {
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-copy p.lede {
  font-size: var(--fs-body-lg);
  color: var(--text-muted);
  margin-top: var(--sp-5);
  max-width: 46ch;
}
.hero-ctas { display: flex; flex-wrap: wrap; gap: var(--sp-3); margin-top: var(--sp-6); }
.hero-proof {
  margin-top: var(--sp-5);
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  font-size: 14px;
  color: var(--text-muted);
}
.hero-proof .stars { color: var(--gold-400); letter-spacing: 2px; }

/* Stagger the hero's entrance so copy and cards land in sequence, not at once */
.hero-copy > .reveal:nth-child(1) { transition-delay: 0ms; }
.hero-copy > .reveal:nth-child(2) { transition-delay: 90ms; }
.hero-copy > .reveal:nth-child(3) { transition-delay: 160ms; }
.hero-copy > .reveal:nth-child(4) { transition-delay: 230ms; }
.hero-copy > .reveal:nth-child(5) { transition-delay: 300ms; }
.hero-cards > .reveal:nth-child(1) { transition-delay: 200ms; }
.hero-cards > .reveal:nth-child(2) { transition-delay: 340ms; }

.hero-cards { display: flex; flex-direction: column; gap: var(--sp-5); }

/* Shared glass treatment for the hero's floating cards */
.glass-card {
  position: relative;
  overflow: hidden;
  background: linear-gradient(155deg, rgba(28, 28, 28, 0.72) 0%, rgba(10, 10, 10, 0.85) 100%);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(24px) saturate(140%);
  -webkit-backdrop-filter: blur(24px) saturate(140%);
  box-shadow: 0 24px 60px -24px rgba(0, 0, 0, 0.6);
  transition: transform var(--dur-reveal) var(--ease-out), box-shadow var(--dur-reveal) var(--ease-out);
}
.glass-card:hover { transform: translateY(-4px); box-shadow: 0 32px 70px -20px rgba(0, 0, 0, 0.65); }
.glass-card::before {
  content: "";
  position: absolute;
  top: -35%;
  right: -15%;
  width: 260px;
  height: 260px;
  background: radial-gradient(circle, var(--violet-glow) 0%, transparent 70%);
  pointer-events: none;
}

/* Campaign Pulse scroll-scrub video card */
.pulse-video-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 24px 60px -24px rgba(0, 0, 0, 0.6);
  transition: transform var(--dur-reveal) var(--ease-out), box-shadow var(--dur-reveal) var(--ease-out);
  aspect-ratio: 700 / 726;
}
.pulse-video-card:hover { transform: translateY(-4px); box-shadow: 0 32px 70px -20px rgba(0, 0, 0, 0.65); }
.pulse-video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
}

/* Trusted-platforms marquee card */
.trust-card { padding: var(--sp-5) 0; }
.trust-card-label {
  padding: 0 var(--sp-5);
  margin: 0 0 var(--sp-4);
  font-size: var(--fs-caption);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.marquee-mask {
  overflow: hidden;
  mask-image: linear-gradient(to right, transparent, black 12%, black 88%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 12%, black 88%, transparent);
}
.marquee-track {
  display: flex;
  align-items: center;
  gap: var(--sp-7);
  width: max-content;
  padding: 0 var(--sp-5);
  animation: marquee 26s linear infinite;
}
.marquee-mask:hover .marquee-track { animation-play-state: paused; }
.platform-chip {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
  color: var(--text);
  white-space: nowrap;
  opacity: 0.65;
  transition: opacity var(--dur-micro) var(--ease-out);
}
.platform-chip:hover { opacity: 1; }
.platform-dot { width: 7px; height: 7px; border-radius: 50%; flex-shrink: 0; }
.platform-dot.gold { background: var(--gold-400); box-shadow: 0 0 8px rgba(221, 174, 92, 0.6); }
.platform-dot.violet { background: var(--violet-400); box-shadow: 0 0 8px rgba(155, 124, 240, 0.6); }
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* Brands we've worked with — logo marquee, same right-to-left loop as the
   hero's platform chips (marquee keyframes above), full-bleed instead of
   contained to a card. Client logos live in images/brands/, sourced as
   transparent-bg PNGs — see that folder's README. Each mark renders as a
   flat off-white silhouette (brightness(0) invert(1) collapses any source
   color to black-on-transparent, then to white) so 12 differently-branded
   logos read as one composed set instead of a clashing color jumble; full
   color reveals on hover as a reward for the interaction. */
.brands-section { text-align: center; }
.brands-marquee-mask {
  margin-top: var(--sp-7);
  overflow: hidden;
  mask-image: linear-gradient(to right, transparent, black 8%, black 92%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 8%, black 92%, transparent);
}
.brands-marquee-track {
  display: flex;
  align-items: center;
  gap: var(--sp-7);
  width: max-content;
  padding: 0 var(--sp-5);
  animation: marquee 34s linear infinite;
}
.brands-marquee-mask:hover .brands-marquee-track { animation-play-state: paused; }
.brand-tile {
  flex-shrink: 0;
  width: 160px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.brand-tile img {
  max-width: 100%;
  max-height: 100%;
  filter: brightness(0) invert(1);
  opacity: 0.55;
  transition: opacity var(--dur-micro) var(--ease-out), filter var(--dur-micro) var(--ease-out);
}
.brand-tile:hover img { opacity: 1; filter: none; }

@media (min-width: 960px) {
  .hero .container { grid-template-columns: 1.1fr 0.9fr; gap: var(--sp-9); }
  .hero-copy h1 { max-width: 14ch; }
}

/* ---------- Problem section ---------- */
.problem-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-6);
  max-width: 1000px;
  margin: 0 auto;
}
.problem-card {
  text-align: center;
  padding: var(--sp-5) var(--sp-3);
  border-top: 1px solid var(--border-strong);
}
.problem-card .num { font-family: var(--font-data); color: var(--text-faint); font-size: 13px; }
.problem-card h3 { font-size: var(--fs-h3); margin: var(--sp-3) 0 var(--sp-2); }
.problem-card p { color: var(--text-muted); }

@media (min-width: 800px) {
  .problem-grid { grid-template-columns: repeat(3, 1fr); }
}

/* ---------- Services ---------- */
.bg-panel { background: var(--bg-elevated); }

.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-4);
  margin-bottom: var(--sp-6);
}
.service-tile {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: background var(--dur-micro) var(--ease-out), border-color var(--dur-micro) var(--ease-out), transform var(--dur-micro) var(--ease-out), box-shadow var(--dur-micro) var(--ease-out);
}
.service-tile:hover {
  background: var(--bg-elevated-2);
  border-color: var(--border-strong);
  transform: translateY(-3px);
  box-shadow: 0 20px 36px -22px rgba(0, 0, 0, 0.55);
}
.tile-visual {
  position: relative;
  height: 168px;
  flex-shrink: 0;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
}
.tile-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: saturate(0.75) grayscale(0.15) brightness(0.5);
  transition: transform 500ms var(--ease-out), filter 500ms var(--ease-out);
}
.service-tile:hover .tile-visual img { transform: scale(1.07); filter: saturate(0.95) grayscale(0) brightness(0.68); }
.tile-visual::after {
  content: "";
  position: absolute; inset: 0;
}
.tile-visual.glow-gold::after { background: linear-gradient(155deg, rgba(176, 129, 58, 0.5) 0%, rgba(10, 10, 10, 0.32) 40%, rgba(10, 10, 10, 0.62) 100%); }
.tile-visual.glow-violet::after { background: linear-gradient(155deg, rgba(90, 52, 184, 0.52) 0%, rgba(10, 10, 10, 0.32) 40%, rgba(10, 10, 10, 0.62) 100%); }

.tile-body { padding: var(--sp-5); display: flex; flex-direction: column; gap: var(--sp-3); flex: 1; }
.service-tile .index { font-family: var(--font-data); font-size: 12px; color: var(--text-faint); }
.service-tile h3 { font-size: 17px; font-weight: 700; margin-bottom: var(--sp-1); }
.service-tile p { font-size: 14px; color: var(--text-muted); }

@media (min-width: 640px) { .services-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .services-grid { grid-template-columns: repeat(3, 1fr); } }

.services-cta { text-align: center; }
.link-arrow { color: var(--gold-400); font-weight: 700; font-size: 14px; }
.link-arrow:hover { color: var(--gold-300); }

/* ---------- Why Advibe (bento) ---------- */
.bento {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-4);
  max-width: 1000px;
  margin: 0 auto;
}
.bento-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: var(--sp-5);
  position: relative;
  overflow: hidden;
  transition: border-color var(--dur-micro) var(--ease-out), box-shadow var(--dur-micro) var(--ease-out);
}
.bento-card:hover { border-color: var(--border-strong); box-shadow: 0 0 0 1px var(--border-strong), 0 20px 40px -20px var(--violet-glow); }
.bento-card .icon-row { display: flex; align-items: flex-start; gap: var(--sp-3); margin-bottom: var(--sp-3); }
.bento-card .icon-row svg { width: 22px; height: 22px; color: var(--gold-400); flex-shrink: 0; margin-top: 2px; }
.bento-card h3 { font-size: var(--fs-h3); }
.bento-card p { color: var(--text-muted); }
.bento-lg { grid-column: 1 / -1; }

@media (min-width: 800px) {
  .bento { grid-template-columns: repeat(12, 1fr); }
  .bento-strategy { grid-column: span 6; }
  .bento-pair { grid-column: span 6; display: grid; gap: var(--sp-4); }
  .bento-experience { grid-column: span 12; display: flex; align-items: center; gap: var(--sp-7); padding: var(--sp-6); }
  .bento-experience .icon-row { margin-bottom: var(--sp-3); }
}

.mini-sparkline { width: 100%; height: 64px; margin-top: var(--sp-4); opacity: 0.9; }

/* ---------- Results / case study ---------- */
.results-panel {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--sp-6);
  max-width: 1000px;
  margin: 0 auto;
}
.results-bars { display: flex; flex-direction: column; gap: var(--sp-5); margin-bottom: var(--sp-6); }
.bar-row {
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-areas: "label value" "track track";
  align-items: center;
  row-gap: var(--sp-2);
  column-gap: var(--sp-3);
}
.bar-row .bar-label { grid-area: label; font-size: 13px; color: var(--text-muted); }
.bar-track { grid-area: track; height: 12px; background: var(--bg-elevated-2); border-radius: var(--radius-full); overflow: hidden; }
.bar-fill { height: 100%; border-radius: var(--radius-full); width: 0%; transition: width 1.1s var(--ease-out); }
.bar-fill.before { background: linear-gradient(90deg, var(--violet-600), var(--violet-400)); }
.bar-fill.after { background: var(--gold-gradient); }
.bar-row .bar-value { grid-area: value; font-family: var(--font-data); font-size: 14px; text-align: right; white-space: nowrap; }

@media (min-width: 600px) {
  .bar-row {
    grid-template-columns: 120px 1fr 130px;
    grid-template-areas: "label track value";
    row-gap: 0;
  }
}

.results-headline {
  text-align: center;
  padding-top: var(--sp-5);
  border-top: 1px solid var(--border);
}
.results-headline .big-stat {
  font-family: var(--font-data);
  font-size: var(--fs-data-lg);
  font-weight: 700;
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.results-headline p { color: var(--text-muted); margin-top: var(--sp-1); }

/* ---------- Process ---------- */
.process-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-4);
  max-width: 1000px;
  margin: var(--sp-8) auto 0;
  text-align: left;
}
.process-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: var(--sp-5);
}
.process-card .step-num {
  font-family: var(--font-data);
  color: var(--gold-400);
  font-size: 13px;
  display: block;
  margin-bottom: var(--sp-3);
}
.process-card h3 { font-size: var(--fs-h3); margin-bottom: var(--sp-2); }
.process-card p { color: var(--text-muted); }

@media (min-width: 800px) { .process-grid { grid-template-columns: repeat(3, 1fr); } }

/* ---------- FAQ ---------- */
.faq-list { max-width: 760px; margin: 0 auto; display: flex; flex-direction: column; gap: var(--sp-3); }
.faq-item {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
}
.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-3);
  padding: var(--sp-4) var(--sp-5);
  text-align: left;
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 600;
}
.faq-question .plus {
  flex-shrink: 0;
  width: 24px; height: 24px;
  position: relative;
}
.faq-question .plus::before, .faq-question .plus::after {
  content: "";
  position: absolute;
  background: var(--gold-400);
  transition: transform var(--dur-micro) var(--ease-out);
}
.faq-question .plus::before { top: 50%; left: 0; width: 100%; height: 2px; transform: translateY(-50%); }
.faq-question .plus::after { left: 50%; top: 0; height: 100%; width: 2px; transform: translateX(-50%); }
.faq-item.open .plus::after { transform: translateX(-50%) rotate(90deg); opacity: 0; }
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--dur-reveal) var(--ease-out);
}
.faq-answer p { padding: 0 var(--sp-5) var(--sp-4); color: var(--text-muted); }
.faq-item.open .faq-answer { max-height: 240px; }

/* ---------- Final CTA ---------- */
.final-cta { text-align: center; }
.final-cta h2 { font-size: var(--fs-display); line-height: 1.1; max-width: 18ch; margin: 0 auto var(--sp-4); }
.final-cta p.lede { color: var(--text-muted); font-size: var(--fs-body-lg); max-width: 52ch; margin: 0 auto var(--sp-6); }
.final-cta .btn { padding: var(--sp-4) var(--sp-7); }
.final-cta .fineprint { margin-top: var(--sp-4); color: var(--text-faint); font-size: 14px; font-style: italic; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--bg);
  padding: var(--sp-7) 0 var(--sp-6);
}
.footer-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--sp-6) var(--sp-5) var(--sp-5);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-6);
  padding-bottom: var(--sp-6);
}

.footer-brand img { height: 28px; margin-bottom: var(--sp-4); }
.footer-brand p { color: var(--text-muted); max-width: 320px; margin-bottom: var(--sp-4); }
.footer-socials { display: flex; flex-wrap: wrap; gap: var(--sp-2); }
.footer-socials a {
  display: flex; align-items: center; justify-content: center;
  width: 36px; height: 36px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-full);
  color: var(--text-muted);
  transition: color var(--dur-micro) var(--ease-out), border-color var(--dur-micro) var(--ease-out);
}
.footer-socials a svg { width: 16px; height: 16px; }
.footer-socials a:hover { color: var(--gold-400); border-color: var(--gold-400); }

.footer-col { display: flex; flex-direction: column; align-items: flex-start; gap: var(--sp-3); }
.footer-col h3 {
  font-family: var(--font-body);
  font-size: var(--fs-caption);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: var(--sp-1);
}
.footer-col a:not(.btn) { color: var(--text-muted); font-size: 14px; transition: color var(--dur-micro) var(--ease-out); }
.footer-col a:not(.btn):hover { color: var(--gold-400); }

.footer-contact-col .footer-eyebrow { font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--gold-400); margin-top: calc(var(--sp-3) * -1); }
.footer-contact-col address { font-style: normal; color: var(--text-muted); font-size: 14px; line-height: 1.6; }
.footer-contact-col .btn { margin-top: var(--sp-1); }

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: var(--sp-5);
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
  align-items: center;
  text-align: center;
}
.footer-copyright, .footer-legal a { color: var(--text-muted); font-size: 13px; }
.footer-quote { color: var(--text-muted); font-size: 13px; font-style: italic; }
.footer-legal { display: flex; gap: var(--sp-4); }
.footer-legal a:hover { color: var(--text); }

@media (min-width: 640px) {
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 960px) {
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1.2fr; }
  .footer-bottom { flex-direction: row; justify-content: space-between; text-align: left; }
}

/* ---------- Scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity var(--dur-reveal) var(--ease-out), transform var(--dur-reveal) var(--ease-out); }
.reveal.in-view { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- Section divider (arrow tick motif) ---------- */
.divider {
  display: block;
  width: 100%;
  height: 24px;
  margin: 0 auto;
}

/* ---------- Consultation modal ---------- */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--sp-4);
  background: rgba(6, 5, 4, 0.72);
  backdrop-filter: blur(6px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity var(--dur-reveal) var(--ease-out), visibility var(--dur-reveal) var(--ease-out);
}
.modal-overlay.open { opacity: 1; visibility: visible; pointer-events: auto; }

.modal-card {
  position: relative;
  width: 100%;
  max-width: 460px;
  max-height: calc(100vh - var(--sp-6));
  overflow-y: auto;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: 0 40px 90px -20px rgba(0, 0, 0, 0.65);
  padding: var(--sp-6);
  transform: translateY(16px) scale(0.98);
  transition: transform var(--dur-reveal) var(--ease-out);
}
.modal-overlay.open .modal-card { transform: translateY(0) scale(1); }
@media (prefers-reduced-motion: reduce) {
  .modal-overlay, .modal-card { transition: none; }
}

.modal-close {
  position: absolute;
  top: var(--sp-4);
  right: var(--sp-4);
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  color: var(--text-muted);
  transition: color var(--dur-micro) var(--ease-out), border-color var(--dur-micro) var(--ease-out), background var(--dur-micro) var(--ease-out);
}
.modal-close svg { width: 16px; height: 16px; }
.modal-close:hover { color: var(--gold-300); border-color: var(--border-strong); background: var(--bg-elevated-2); }

.modal-body h3 { font-size: var(--fs-h3); line-height: 1.25; margin-top: var(--sp-2); }
.modal-sub { color: var(--text-muted); font-size: 14px; line-height: 1.6; margin-top: var(--sp-2); margin-bottom: var(--sp-5); }

.form-row { margin-bottom: var(--sp-4); }
.form-row label {
  display: block;
  font-size: var(--fs-caption);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: var(--sp-2);
}
.form-row input, .form-row select, .form-row textarea {
  width: 100%;
  background: var(--bg-elevated-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: var(--sp-3);
  color: var(--text);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  transition: border-color var(--dur-micro) var(--ease-out), box-shadow var(--dur-micro) var(--ease-out);
}
.form-row input::placeholder, .form-row textarea::placeholder { color: var(--text-faint); }
.form-row input:focus, .form-row select:focus, .form-row textarea:focus {
  outline: none;
  border-color: var(--gold-400);
  box-shadow: 0 0 0 3px rgba(221, 174, 92, 0.18);
}
.form-row textarea { resize: vertical; min-height: 96px; }
.form-row select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: calc(var(--sp-6) + 4px);
  color-scheme: dark;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23DDAE5C' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right var(--sp-3) center;
  background-size: 16px;
}
.form-row select:invalid { color: var(--text-faint); }
.form-row select option { background: var(--bg-elevated-2); color: var(--text); }

.form-submit { width: 100%; justify-content: center; margin-top: var(--sp-2); }
.form-submit[disabled] { opacity: 0.6; cursor: not-allowed; }
.form-submit:disabled:hover { transform: none; box-shadow: none; }

.form-error { color: var(--negative); font-size: 13px; line-height: 1.5; margin-top: var(--sp-3); text-align: center; }
.form-error a { text-decoration: underline; }

.modal-success { text-align: center; padding: var(--sp-4) 0; }
.modal-success svg { width: 48px; height: 48px; color: var(--gold-400); margin: 0 auto var(--sp-4); }
.modal-success h3 { font-size: var(--fs-h3); margin-bottom: var(--sp-2); }
.modal-success p { color: var(--text-muted); }

/* ---------- Contact page: inline form (not the popup modal) ---------- */
.contact-form-wrap { max-width: 480px; margin: 0 auto; }

/* ---------- About page: text-only hero ---------- */
.page-hero { padding-top: calc(76px + var(--sp-9)); text-align: center; }
.page-hero .container { max-width: 800px; }
.page-hero h1 { font-size: var(--fs-display); line-height: 1.1; letter-spacing: -0.02em; margin-top: var(--sp-3); }
.page-hero p.lede { font-size: var(--fs-body-lg); color: var(--text-muted); margin-top: var(--sp-5); max-width: 60ch; margin-left: auto; margin-right: auto; }

/* ---------- About page: large hero image ---------- */
.hero-image-frame {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: 0 24px 60px -24px rgba(0, 0, 0, 0.6);
  aspect-ratio: 16 / 7;
}
.hero-image-frame img { width: 100%; height: 100%; object-fit: cover; object-position: center 35%; display: block; }
/* Grounds the photo in the copy above it instead of leaving it purely
   decorative — a scrim for legibility plus the HQ chip it's carrying. */
.hero-image-frame::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(0deg, rgba(10, 10, 10, 0.75) 0%, transparent 32%);
  pointer-events: none;
}
.hero-image-caption { position: absolute; left: var(--sp-5); bottom: var(--sp-5); z-index: 1; }
@media (max-width: 640px) {
  .hero-image-frame { aspect-ratio: 4 / 5; }
  .hero-image-caption { left: var(--sp-4); bottom: var(--sp-4); }
}

/* ---------- About page: "What drives us" value cards ---------- */
.values-grid { display: grid; grid-template-columns: 1fr; gap: var(--sp-4); }
@media (min-width: 640px) { .values-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .values-grid { grid-template-columns: repeat(3, 1fr); } }
/* Contact page grid holds 4 cards (Email, Phone, Studio, Dubai) — 2x2 reads
   more balanced than a 3+1 layout with a dangling last card. */
@media (min-width: 960px) { .values-grid--contact { grid-template-columns: repeat(2, 1fr); } }
.value-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: var(--sp-5);
  transition: border-color var(--dur-micro) var(--ease-out), transform var(--dur-micro) var(--ease-out), box-shadow var(--dur-micro) var(--ease-out);
}
.value-card:hover { border-color: var(--border-strong); transform: translateY(-3px); box-shadow: 0 20px 36px -22px rgba(0, 0, 0, 0.55); }
.value-card svg { width: 22px; height: 22px; color: var(--gold-400); margin-bottom: var(--sp-3); }
.value-card h3 { font-size: var(--fs-h3); margin-bottom: var(--sp-2); }
.value-card p { color: var(--text-muted); font-size: 14px; }
.value-card .link-arrow { display: inline-block; margin-top: var(--sp-3); }

/* ---------- About page: "Where we work" location chips ---------- */
.location-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--sp-3); margin-top: var(--sp-6); }
.location-chip {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  padding: var(--sp-2) var(--sp-4);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-full);
  background: var(--bg-elevated);
  font-size: 14px;
  font-weight: 600;
}
.location-chip svg { width: 14px; height: 14px; color: var(--gold-400); flex-shrink: 0; }
.location-chip.is-hq { border-color: var(--gold-400); }

/* ---------- About page: "We are part of" partner badges ---------- */
.badges-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--sp-4); }
.badge-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-3);
  min-width: 200px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: var(--sp-5) var(--sp-6);
  transition: border-color var(--dur-micro) var(--ease-out), transform var(--dur-micro) var(--ease-out);
}
.badge-card:hover { border-color: var(--gold-400); transform: translateY(-3px); }
.badge-card svg { width: 32px; height: 32px; color: var(--gold-400); }
.badge-card span { font-family: var(--font-display); font-weight: 700; font-size: 15px; }

/* ---------- About page: founder ---------- */
.founder-intro { max-width: 640px; margin: 0 auto; text-align: center; }

.founder-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-7);
  align-items: start;
  margin-top: var(--sp-8);
}
@media (min-width: 860px) {
  .founder-grid { grid-template-columns: 320px 1fr; gap: var(--sp-9); }
}

/* Profile card — the real photo, background removed and set into a
   dashboard-style tile (see .tile-visual) instead of floating on its
   original flat studio backdrop. */
.founder-card {
  position: relative;
  background: var(--bg-elevated-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.founder-card::before {
  content: "";
  position: absolute; top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--gold-gradient);
  z-index: 2;
}
.founder-portrait { position: relative; aspect-ratio: 4 / 5; overflow: hidden; }
.founder-portrait::before {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(circle at 50% 15%, var(--violet-glow) 0%, transparent 60%);
}
.founder-portrait img { position: relative; z-index: 1; width: 100%; height: 100%; object-fit: cover; object-position: center 12%; }
.founder-portrait::after {
  content: "";
  position: absolute; inset: 0;
  z-index: 1;
  background: linear-gradient(0deg, var(--bg-elevated-2) 2%, transparent 34%);
  pointer-events: none;
}
.founder-card-body { padding: var(--sp-5); }
.founder-name { font-family: var(--font-display); font-weight: 700; font-size: 18px; }
.founder-title { color: var(--gold-400); font-size: 13px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; margin-top: var(--sp-1); }
.founder-contact-row { display: flex; flex-direction: column; gap: var(--sp-2); margin-top: var(--sp-4); padding-top: var(--sp-4); border-top: 1px solid var(--border); font-size: 14px; }
.founder-contact-row a { color: var(--text-muted); transition: color var(--dur-micro) var(--ease-out); }
.founder-contact-row a:hover { color: var(--gold-400); }

/* Growth timeline — the founder's own path to Advibe, told as an ascending
   sequence rather than a pull-quote. Order carries real information here
   (it's an actual chronology), and the line running gold at its endpoint
   echoes the arrow built into the "i" of the wordmark — brand/guidelines.md §1. */
.growth-timeline > .eyebrow { margin-bottom: var(--sp-5); }
.timeline-list { position: relative; list-style: none; margin: 0; padding: 0; }
.timeline-list::before {
  content: "";
  position: absolute;
  left: 11px;
  top: 6px;
  bottom: 6px;
  width: 2px;
  background: linear-gradient(180deg, var(--violet-400) 0%, var(--gold-400) 100%);
  opacity: 0.5;
}
.timeline-step { position: relative; padding-left: var(--sp-7); padding-bottom: var(--sp-6); }
.timeline-step:last-child { padding-bottom: 0; }
.timeline-marker {
  position: absolute;
  left: 4px; top: 4px;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: var(--bg-elevated);
  border: 2px solid var(--violet-400);
}
.timeline-step:nth-child(2) .timeline-marker { border-color: var(--gold-600); }
.timeline-step:nth-child(3) .timeline-marker { border-color: var(--gold-400); }
.timeline-marker.is-final {
  width: 28px; height: 28px;
  left: -2px; top: -2px;
  background: var(--gold-gradient);
  border: none;
  display: flex; align-items: center; justify-content: center;
  color: #201200;
  box-shadow: 0 0 0 4px var(--bg-elevated), 0 0 20px rgba(221, 174, 92, 0.4);
}
.timeline-marker.is-final svg { width: 15px; height: 15px; }
.timeline-step h3 { font-size: 17px; margin-bottom: var(--sp-1); }
.timeline-step p { color: var(--text-muted); }
.timeline-step-final h3 { color: var(--gold-300); }
.timeline-step:nth-child(1) { transition-delay: 0ms; }
.timeline-step:nth-child(2) { transition-delay: 90ms; }
.timeline-step:nth-child(3) { transition-delay: 180ms; }
.timeline-step:nth-child(4) { transition-delay: 270ms; }

.timeline-closer {
  margin-top: var(--sp-6);
  padding-top: var(--sp-6);
  border-top: 1px solid var(--border);
  font-family: var(--font-display);
  font-size: var(--fs-h3);
  font-weight: 600;
  line-height: 1.35;
  color: var(--text);
}

/* ---------- About page: CTA contact row ---------- */
.cta-contact-row { display: flex; align-items: center; justify-content: center; gap: var(--sp-3); margin-top: var(--sp-5); color: var(--text-muted); font-size: 14px; }
.cta-contact-row a { color: var(--text-muted); transition: color var(--dur-micro) var(--ease-out); }
.cta-contact-row a:hover { color: var(--gold-400); }

/* ---------- Services hub page: 12-card service grid ---------- */
.service-hub-grid { display: grid; grid-template-columns: 1fr; gap: var(--sp-4); }
@media (min-width: 640px) { .service-hub-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .service-hub-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1200px) { .service-hub-grid { grid-template-columns: repeat(4, 1fr); } }

.service-hub-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: var(--sp-5);
  transition: border-color var(--dur-micro) var(--ease-out), transform var(--dur-micro) var(--ease-out), box-shadow var(--dur-micro) var(--ease-out);
}
.service-hub-card:hover { border-color: var(--border-strong); transform: translateY(-3px); box-shadow: 0 20px 36px -22px rgba(0, 0, 0, 0.55); }
.service-hub-card .icon-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px; height: 44px;
  border-radius: var(--radius-sm);
  background: var(--bg-elevated-2);
  border: 1px solid var(--border);
  margin-bottom: var(--sp-4);
}
.service-hub-card .icon-badge svg { width: 22px; height: 22px; color: var(--gold-400); }
.service-hub-card h3 { font-size: var(--fs-h3); margin-bottom: var(--sp-2); }
.service-hub-card p { color: var(--text-muted); font-size: 14px; flex: 1; }
.service-hub-card .link-arrow { margin-top: var(--sp-4); }

/* ---------- Services hub page: "Why Advibe" pillar strip ---------- */
.pillars-grid { display: grid; grid-template-columns: 1fr; gap: var(--sp-4); }
@media (min-width: 640px) { .pillars-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .pillars-grid { grid-template-columns: repeat(4, 1fr); } }
