/* Tangaza Promos landing page.
   Radius rule: buttons and chips are pills, surfaces are 20px, phone frames 34px. */

@font-face {
  font-family: "Geist";
  src: url("assets/fonts/geist-latin.woff2") format("woff2");
  font-weight: 400 700;
  font-display: swap;
}

:root {
  --bg: #f6f8fb;            /* the app's background */
  --surface: #fcfdfe;
  --surface-2: #eef3fc;
  --text: #10192b;          /* the app's text colour */
  --muted: #566176;
  --border: #e1e7f0;
  --accent: #0b5fff;        /* Tangaza blue */
  --accent-strong: #0848c4;
  --accent-soft: #e5edff;
  --on-accent: #f7f9ff;
  --seg-print: #6f97ff;
  --seg-fee: #b7c6e6;
  --shadow: 0 24px 60px -24px rgb(11 39 102 / 0.28);

  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);

  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b1020;
    --surface: #121a2e;
    --surface-2: #17213a;
    --text: #e8edf7;
    --muted: #9aa6bc;
    --border: #223049;
    --accent: #3d7bff;
    --accent-strong: #6a9bff;
    --accent-soft: #1a2a52;
    --on-accent: #f7f9ff;
    --seg-print: #2c56b8;
    --seg-fee: #3a4866;
    --shadow: 0 24px 60px -24px rgb(0 0 0 / 0.6);
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; }
body {
  margin: 0;
  font-family: "Geist", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { margin: 0; letter-spacing: -0.03em; line-height: 1.08; font-weight: 650; }
h2 { font-size: clamp(1.9rem, 1.2rem + 2.6vw, 3rem); max-width: 22ch; text-wrap: balance; }
h3 { font-size: 1.15rem; letter-spacing: -0.015em; }
p { margin: 0; }

.wrap { width: 100%; max-width: 1200px; margin-inline: auto; padding-inline: 20px; }
@media (min-width: 768px) { .wrap { padding-inline: 32px; } }

/* Icons: Phosphor SVGs used as masks so they take the text colour. */
.i { display: inline-block; width: 1.25em; height: 1.25em; background: currentColor; flex: none;
  mask: var(--icon) center / contain no-repeat; -webkit-mask: var(--icon) center / contain no-repeat; }
.i-arrow-right { --icon: url("assets/icons/arrow-right.svg"); }
.i-wallet { --icon: url("assets/icons/wallet.svg"); }
.i-printer { --icon: url("assets/icons/printer.svg"); }
.i-map-pin { --icon: url("assets/icons/map-pin.svg"); }
.i-camera { --icon: url("assets/icons/camera.svg"); }
.i-storefront { --icon: url("assets/icons/storefront.svg"); }
.i-car-profile { --icon: url("assets/icons/car-profile.svg"); }
.i-plus { --icon: url("assets/icons/plus.svg"); }
.i-whatsapp { --icon: url("assets/icons/whatsapp-logo.svg"); }
.i-pen-nib { --icon: url("assets/icons/pen-nib.svg"); }
.i-trend-up { --icon: url("assets/icons/trend-up.svg"); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 52px; padding-inline: 24px; border-radius: 999px;
  font: inherit; font-weight: 600; font-size: 1rem; text-decoration: none; white-space: nowrap;
  border: 1px solid transparent; cursor: pointer;
  transition: background-color 150ms ease, border-color 150ms ease, transform 120ms var(--ease-out);
}
.btn:active { transform: scale(0.97); }
.btn:focus-visible, .nav-links a:focus-visible, summary:focus-visible {
  outline: 3px solid var(--accent); outline-offset: 3px;
}
.btn-sm { height: 42px; padding-inline: 18px; font-size: 0.95rem; }
.btn-primary { background: var(--accent); color: var(--on-accent); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--border); }
.btn-light { background: #f7f9ff; color: #0b2a6b; }
@media (hover: hover) and (pointer: fine) {
  .btn-primary:hover { background: var(--accent-strong); }
  .btn-ghost:hover { border-color: var(--muted); }
  .btn-light:hover { background: #e5edff; }
  .btn .i-arrow-right { transition: transform 150ms var(--ease-out); }
  .btn:hover .i-arrow-right { transform: translateX(3px); }
}

/* Navigation: border appears once the page scrolls (sentinel + IntersectionObserver). */
.nav-sentinel { position: absolute; top: 0; height: 8px; width: 1px; }
.nav {
  position: sticky; top: 0; z-index: 10;
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 200ms ease;
}
.nav.scrolled { border-bottom-color: var(--border); }
.nav-inner { display: flex; align-items: center; gap: 24px; height: 68px; }
.brand img { border-radius: 8px; }
@media (prefers-color-scheme: dark) { .brand img { background: #f7f9ff; padding: 3px 4px; } }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 650; letter-spacing: -0.02em; text-decoration: none; white-space: nowrap; }
@media (max-width: 420px) { .nav-inner { gap: 12px; } .nav .btn-sm { padding-inline: 14px; } }
.nav-links { display: none; gap: 28px; margin-left: auto; }
.nav-links a { text-decoration: none; color: var(--muted); font-size: 0.95rem; transition: color 150ms ease; }
.nav .btn { margin-left: auto; }
@media (hover: hover) and (pointer: fine) { .nav-links a:hover { color: var(--text); } }
@media (min-width: 900px) {
  .nav-links { display: flex; }
  .nav .btn { margin-left: 8px; }
}

/* Hero */
.hero {
  display: grid; gap: 40px; align-items: center;
  min-height: calc(100dvh - 68px); padding-block: 40px 56px;
}
.hero h1 { font-size: clamp(2.4rem, 1.4rem + 3.4vw, 3.7rem); max-width: 20ch; text-wrap: balance; }
.hero-sub { margin-top: 20px; font-size: 1.15rem; color: var(--muted); max-width: 40ch; }
.hero-ctas { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 12px; }
.hero-visual { position: relative; height: 520px; overflow-x: clip; }
@media (min-width: 960px) {
  .hero { grid-template-columns: 1.05fr 1fr; padding-block: 24px 48px; }
  .hero-visual { height: 600px; }
}

.phone {
  position: absolute; margin: 0; overflow: hidden;
  width: min(270px, 62vw); border-radius: 34px;
  border: 8px solid #0f172a; background: #0f172a;
  box-shadow: var(--shadow);
}
.phone img { border-radius: 26px; }
.phone-front { left: 50%; top: 0; transform: translateX(-62%); z-index: 2; }
.phone-back { left: 50%; top: 56px; transform: translateX(-2%) rotate(5deg) scale(0.9); z-index: 1; opacity: 0.95; }

/* Section rhythm */
section { padding-block: 88px; }
@media (min-width: 768px) { section { padding-block: 120px; } }
.eyebrow { font-size: 0.8rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); margin-bottom: 14px; }
.lead { margin-top: 18px; font-size: 1.1rem; color: var(--muted); max-width: 60ch; }

/* On the road: before (small) and after (large), same bajaj */
.road { display: grid; gap: 40px; }
.road .lead { max-width: 52ch; }
.road-pair { display: grid; gap: 16px; align-items: end; }
.road-shot { margin: 0; }
.road-frame { position: relative; overflow: hidden; border-radius: 20px; border: 1px solid var(--border); background: var(--surface-2); }
.road-after .road-frame { box-shadow: var(--shadow); }
.road-frame img { width: 100%; }
.road-shot figcaption { margin-top: 12px; color: var(--muted); font-size: 0.95rem; }
.road-shot figcaption strong { color: var(--text); margin-right: 8px; }
/* The free canopy, marked out on the plain photo */
.road-space {
  position: absolute; left: 25%; right: 25%; top: 6%; height: 37%;
  border: 2px dashed rgb(255 255 255 / 0.85); border-radius: 18px 18px 8px 8px;
  display: grid; place-items: end center; padding-bottom: 8%;
}
.road-space span {
  padding: 6px 14px; border-radius: 999px; background: var(--accent); color: var(--on-accent);
  font-size: 0.85rem; font-weight: 600; white-space: nowrap;
}
@media (min-width: 960px) {
  .road { grid-template-columns: 1fr 1.6fr; align-items: center; column-gap: 56px; }
  .road-pair { grid-template-columns: 0.62fr 1fr; }
  .road-before { margin-bottom: 48px; }
}

/* How it works */
.how { background: var(--surface); border-block: 1px solid var(--border); }
.steps {
  list-style: none; margin: 56px 0 0; padding: 0; position: relative;
  display: grid; gap: 36px;
}
.step p { margin-top: 8px; color: var(--muted); max-width: 32ch; }
.step h3 { margin-top: 18px; }
.step-icon {
  display: grid; place-items: center; width: 52px; height: 52px; border-radius: 999px;
  background: var(--accent-soft); color: var(--accent); font-size: 1.15rem;
  position: relative; z-index: 1;
}
@media (min-width: 860px) {
  .steps { grid-template-columns: repeat(4, 1fr); gap: 28px; }
  /* The connecting line. Drawn by scroll where supported, static otherwise. */
  .steps::before {
    content: ""; position: absolute; left: 26px; right: 12%; top: 25px; height: 2px;
    background: var(--accent); opacity: 0.35; transform-origin: left;
  }
}

/* Targeting */
.targeting .lead { max-width: 58ch; }
.marquee {
  margin-top: 48px; display: flex; overflow: hidden; gap: 12px;
  mask: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  -webkit-mask: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee-track { list-style: none; margin: 0; padding: 0; display: flex; gap: 12px; flex: none; }
.marquee-track li {
  padding: 12px 22px; border-radius: 999px; background: var(--surface);
  border: 1px solid var(--border); font-weight: 550; white-space: nowrap;
}
.marquee-track li:nth-child(3n + 1) { background: var(--accent-soft); border-color: transparent; color: var(--accent-strong); }

.route {
  margin-top: 40px; padding: 24px; border-radius: 20px;
  background: var(--surface); border: 1px solid var(--border);
  display: grid; gap: 18px; max-width: 640px;
}
.route-label { font-size: 0.9rem; color: var(--muted); }
.route-stops { list-style: none; margin: 0; padding: 0; display: flex; justify-content: space-between; position: relative; }
.route-stops::before {
  content: ""; position: absolute; left: 7px; right: 7px; top: 7px; height: 3px; border-radius: 3px;
  background: var(--accent); transform-origin: left; transform: scaleX(var(--route-progress, 1));
  transition: transform 1100ms var(--ease-in-out);
}
.route-stops li { position: relative; padding-top: 26px; font-weight: 600; }
.route-stops li::before {
  content: ""; position: absolute; top: 0; left: 0; width: 16px; height: 16px; border-radius: 999px;
  background: var(--surface); border: 3px solid var(--accent);
}
.route-stops li:last-child { text-align: right; }
.route-stops li:last-child::before { left: auto; right: 0; background: var(--accent); }
.route-stops li:nth-child(2) { text-align: center; }
.route-stops li:nth-child(2)::before { left: 50%; transform: translateX(-50%); }

/* Bento: advertiser spans two rows on desktop */
.audiences .bento { margin-top: 48px; display: grid; gap: 16px; }
.cell {
  position: relative; overflow: hidden; border-radius: 20px; padding: 28px;
  background: var(--surface); border: 1px solid var(--border);
  display: flex; flex-direction: column; gap: 24px;
}
.cell-copy p { margin-top: 8px; color: var(--muted); max-width: 38ch; }
.cell-copy h3 { margin-top: 14px; font-size: 1.35rem; }
.cell-icon {
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: 999px;
  background: var(--accent-soft); color: var(--accent); font-size: 1.05rem;
}
.cell-shot { border-radius: 16px; border: 1px solid var(--border); box-shadow: var(--shadow); }
.cell-advertiser .cell-shot { width: 100%; max-width: 420px; margin-top: auto; align-self: center; }
.cell-owner {
  background: linear-gradient(150deg, #0b5fff 0%, #0a3fb0 100%); border-color: transparent; color: #f7f9ff;
}
.cell-owner .cell-copy p { color: #d6e2ff; }
.cell-owner .cell-icon { background: rgb(255 255 255 / 0.16); color: #fff; }
.cell-owner .cell-shot { width: 60%; max-width: 230px; align-self: flex-end; margin-bottom: -120px; border-color: transparent; }
.cell-printer { background: var(--surface-2); }
@media (min-width: 900px) {
  .audiences .bento { grid-template-columns: 1.15fr 1fr; grid-template-rows: auto auto; }
  .cell-advertiser { grid-row: span 2; }
  .cell-owner { flex-direction: row; align-items: flex-start; }
  .cell-owner .cell-shot { width: 44%; margin-bottom: -150px; }
}

/* Money split */
.money { background: var(--surface); border-block: 1px solid var(--border); }
.split {
  margin-top: 48px; display: flex; height: 64px; border-radius: 20px; overflow: hidden; gap: 4px;
}
.seg { flex: var(--w) 1 0; transform-origin: left; border-radius: 6px; }
.seg-owners { background: var(--accent); }
.seg-print { background: var(--seg-print); }
.seg-fee { background: var(--seg-fee); }
.split-legend { margin: 28px 0 0; display: grid; gap: 20px; }
.split-legend div { display: grid; gap: 4px; }
.split-legend dt { display: flex; align-items: center; gap: 10px; color: var(--muted); }
.split-legend dd { margin: 0; font-size: clamp(1.5rem, 1.1rem + 1.4vw, 2.1rem); font-weight: 650; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.dot-key { width: 12px; height: 12px; border-radius: 4px; }
.note { margin-top: 28px; color: var(--muted); font-size: 0.95rem; }
@media (min-width: 768px) { .split-legend { grid-template-columns: repeat(3, 1fr); } }
.split-legend dd { white-space: nowrap; }

/* FAQ */
.faq { display: grid; gap: 40px; }
@media (min-width: 900px) { .faq { grid-template-columns: 0.8fr 1.2fr; align-items: start; } }
.faq-list { border-top: 1px solid var(--border); }
.faq details { border-bottom: 1px solid var(--border); }
.faq summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 22px 0; font-weight: 600; font-size: 1.05rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary .i { color: var(--accent); transition: transform 200ms var(--ease-out); }
.faq details[open] summary .i { transform: rotate(45deg); }
.faq-body { padding-bottom: 22px; color: var(--muted); max-width: 60ch; }

/* Closing CTA */
.cta { padding-block: 0 96px; }
.cta-inner {
  border-radius: 20px; padding: 48px 28px;
  background: linear-gradient(150deg, #0b5fff 0%, #0a3fb0 100%); color: #f7f9ff;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px;
}
.cta-inner h2 { max-width: 18ch; }
@media (min-width: 768px) { .cta-inner { padding: 64px 56px; } }

/* Footer */
.footer { border-top: 1px solid var(--border); padding-block: 40px; }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; gap: 20px 32px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 12px 28px; }
.footer-links a { color: var(--muted); text-decoration: none; font-size: 0.95rem; }
.footer-links a:hover { color: var(--text); }
.copyright { color: var(--muted); font-size: 0.9rem; margin-left: auto; }

/* Legal pages (privacy policy) */
.legal { padding-block: 56px 96px; display: grid; gap: 40px; }
.legal-head h1 { font-size: clamp(2.2rem, 1.6rem + 2.4vw, 3.2rem); }
.legal-date { margin-top: 10px; color: var(--muted); }
.legal-toc ol { margin: 0; padding-left: 1.2em; display: grid; gap: 8px; color: var(--muted); }
.legal-toc a { color: var(--muted); text-decoration: none; }
.legal-toc a:hover { color: var(--accent); }
.legal-body { max-width: 68ch; }
.legal-body > p, .legal-body li, .legal-body dd { color: var(--muted); }
.legal-body > p + p { margin-top: 12px; }
.legal-body h2 { font-size: 1.5rem; margin: 48px 0 14px; max-width: none; scroll-margin-top: 96px; }
.legal-body h2:first-of-type { margin-top: 32px; }
.legal-body ul { margin: 12px 0; padding-left: 1.2em; display: grid; gap: 8px; }
.legal-body li strong, .legal-body dt { color: var(--text); }
.legal-body dl { margin: 16px 0 0; }
.legal-body dt { font-weight: 600; }
.legal-body dd { margin: 4px 0 18px; }
.legal-body a { color: var(--accent); }
.legal-contact { font-style: normal; line-height: 1.8; margin-bottom: 16px; color: var(--muted); }
.legal-contact strong { color: var(--text); }
.footer-links a[aria-current="page"] { color: var(--text); }
@media (min-width: 1000px) {
  .legal { grid-template-columns: 240px 1fr; column-gap: 64px; align-items: start; }
  .legal-head { grid-column: 1 / -1; }
  .legal-toc { position: sticky; top: 96px; }
}

/* ---------------------------------------------------------------
   Digital marketing page. Artwork tiles use 14px, logo tiles 16px,
   everything else follows the 20px surface rule above.
   --------------------------------------------------------------- */

/* Hero: a fan of three real pieces plus one real result */
.dm-hero { display: grid; gap: 48px; align-items: center; padding-block: 48px 72px; }
.dm-hero h1 { font-size: clamp(2.4rem, 1.4rem + 3.4vw, 3.9rem); max-width: 14ch; text-wrap: balance; }
.dm-fan { position: relative; height: 420px; max-width: 560px; width: 100%; justify-self: center; }
.fan-card {
  position: absolute; border-radius: 14px; box-shadow: var(--shadow);
  transition: translate 400ms var(--ease-out), rotate 400ms var(--ease-out);
}
.fan-left { width: 44%; left: 2%; top: 4%; rotate: -7deg; }
.fan-right { width: 44%; right: 2%; top: 0; rotate: 6deg; }
.fan-front { width: 52%; left: 24%; top: 24%; rotate: -1deg; z-index: 2; }
.fan-chip {
  position: absolute; z-index: 3; left: 0; bottom: 2%;
  display: flex; align-items: center; gap: 14px; padding: 14px 18px 14px 16px;
  border-radius: 20px; background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow);
}
.fan-chip-value { font-size: 1.9rem; font-weight: 650; letter-spacing: -0.03em; color: var(--accent); }
.fan-chip-label { font-size: 0.85rem; line-height: 1.35; color: var(--muted); }
.fan-chip-label strong { color: var(--text); }
@media (hover: hover) and (pointer: fine) {
  .dm-fan:hover .fan-left { translate: -14px 6px; rotate: -10deg; }
  .dm-fan:hover .fan-right { translate: 14px 0; rotate: 9deg; }
}
@media (min-width: 960px) {
  .dm-hero { grid-template-columns: 1fr 1fr; min-height: calc(100dvh - 68px); padding-block: 24px 56px; }
  .dm-fan { height: 540px; }
}

/* Client logos */
.clients { padding-block: 24px 72px; }
.clients-title { color: var(--muted); font-size: 0.95rem; }
.logo-grid { list-style: none; margin: 24px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.logo-grid li {
  position: relative; aspect-ratio: 1; overflow: hidden;
  background: #fff; border: 1px solid var(--border); border-radius: 16px;
}
.logo-grid img { position: absolute; inset: 8px; width: calc(100% - 16px); height: calc(100% - 16px); object-fit: contain; }
@media (prefers-color-scheme: dark) { .logo-grid li { border-color: transparent; } }
@media (min-width: 600px) { .logo-grid li { aspect-ratio: 3 / 2; } .logo-grid img { inset: 12px 16px; width: calc(100% - 32px); height: calc(100% - 24px); } .logo-grid { gap: 12px; } }
@media (min-width: 1000px) { .logo-grid { grid-template-columns: repeat(8, minmax(0, 1fr)); } }

/* Services: two clusters (design, growth), spacing instead of rules */
.services { display: grid; gap: 48px; border-top: 1px solid var(--border); }
.service-groups { display: grid; gap: 40px; }
.service-group-title {
  display: flex; align-items: center; gap: 10px; font-size: 1rem; color: var(--accent);
  padding-bottom: 14px; border-bottom: 1px solid var(--border);
}
.service-group dl { margin: 0; }
.service-group dt { margin-top: 22px; font-weight: 600; font-size: 1.15rem; letter-spacing: -0.015em; }
.service-group dd { margin: 6px 0 0; color: var(--muted); max-width: 40ch; }
@media (min-width: 720px) { .service-groups { grid-template-columns: 1fr 1fr; column-gap: 40px; } }
@media (min-width: 1040px) {
  .services { grid-template-columns: 0.8fr 1.2fr; column-gap: 72px; align-items: start; }
  .services-head { position: sticky; top: 110px; }
}

/* Work wall. Without scroll-driven animations (or with reduced motion)
   each row is a swipeable strip; with them, the rows drift with scroll. */
.work { background: var(--surface); border-block: 1px solid var(--border); }
.wall { margin-top: 48px; display: grid; gap: 16px; overflow-x: clip; }
.wall-row {
  list-style: none; margin: 0; padding: 0 20px 4px; display: flex; gap: 16px;
  overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: none;
}
.wall-row::-webkit-scrollbar { display: none; }
.wall-row li { flex: none; scroll-snap-align: start; }
.wall-row img { height: 220px; width: auto; border-radius: 14px; box-shadow: 0 14px 30px -18px rgb(11 39 102 / 0.4); }
@media (min-width: 768px) { .wall-row img { height: 280px; } .wall-row { padding-inline: 32px; } }

/* Packaging: always a dark stage, in both themes */
.packaging {
  --stage-glow: #d3e0ff; --pack-shadow: rgb(11 39 102 / 0.32);
  background: radial-gradient(70% 60% at 50% 100%, var(--stage-glow) 0%, var(--surface-2) 55%, var(--bg) 100%);
}
@media (prefers-color-scheme: dark) { .packaging { --stage-glow: #16337e; --pack-shadow: rgb(0 0 0 / 0.5); } }
.shelf {
  list-style: none; margin: 56px 0 0; padding: 0;
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 32px 16px; align-items: end;
}
.shelf li { display: flex; justify-content: center; min-width: 0; }
.shelf img { max-height: 200px; width: auto; filter: drop-shadow(0 26px 24px var(--pack-shadow)); }
@media (min-width: 900px) {
  .shelf { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 20px; }
  .shelf img { max-height: 290px; }
}

/* Results */
.results { display: grid; gap: 56px; align-items: center; }
.stats { margin: 40px 0 0; display: grid; gap: 28px; }
.stat { border-top: 1px solid var(--border); padding-top: 18px; }
.stat dt { color: var(--muted); font-size: 0.95rem; }
.stat dd { margin: 4px 0 0; font-size: clamp(2.2rem, 1.6rem + 2vw, 3rem); font-weight: 650; letter-spacing: -0.03em; line-height: 1.1; font-variant-numeric: tabular-nums; }
.stat p { margin-top: 6px; color: var(--muted); font-size: 0.95rem; max-width: 34ch; }
.page-digital .phone.results-phone, .social-row .phone { position: relative; inset: auto; transform: none; }
.results-phone { width: min(300px, 72vw); justify-self: center; }
@media (min-width: 640px) { .stats { grid-template-columns: 1fr 1fr; column-gap: 32px; } }
@media (min-width: 960px) { .results { grid-template-columns: 1.4fr 0.6fr; column-gap: 72px; } }

/* Social pages */
.social { padding-top: 0; }
.social-row { list-style: none; margin: 48px 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 16px; }
.social-row .phone { width: 100%; max-width: 240px; margin-inline: auto; border-width: 6px; border-radius: 26px; }
.social-row .phone img { border-radius: 20px; }
.social-row p { margin-top: 14px; text-align: center; display: grid; gap: 2px; font-size: 0.95rem; }
.social-row p span { color: var(--muted); }
.tools { margin-top: 64px; color: var(--muted); max-width: 60ch; }
@media (min-width: 900px) {
  .social-row { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
  .social-row li:nth-child(even) { margin-top: 56px; }
}

/* Contact */
.dm-contact-meta { margin-top: 12px; color: #d6e2ff; }
.dm-contact-meta a { color: #f7f9ff; }
.dm-contact-meta { line-height: 1.7; }
.dm-contact-road { margin-top: 18px; color: #d6e2ff; }
.dm-contact-road a { color: #f7f9ff; font-weight: 600; }

/* ---------------------------------------------------------------
   Motion. Everything below runs only for people who haven't asked
   for reduced motion; the reduced-motion block keeps gentle fades.
   --------------------------------------------------------------- */
@media (prefers-reduced-motion: no-preference) {
  /* Hero: first-visit entrance, staggered so the eye reads headline,
     then subtext, then the actions. CSS animation stays smooth while
     the page is still loading. */
  .enter { animation: rise 700ms var(--ease-out) both; animation-delay: calc(var(--i) * 70ms + 60ms); }
  .enter-phone { animation: phone-in 900ms var(--ease-out) both; animation-delay: var(--d); }
  @keyframes rise { from { opacity: 0; transform: translateY(14px); } }
  @keyframes phone-in { from { opacity: 0; translate: 0 28px; } }

  /* Scroll reveals for section headings and cards. */
  .js .reveal { opacity: 0; transform: translateY(18px);
    transition: opacity 600ms var(--ease-out), transform 600ms var(--ease-out);
    transition-delay: calc(var(--i, 0) * 70ms); }
  .js .reveal.in { opacity: 1; transform: none; }

  /* Route line draws once the card is in view. */
  .js .route { --route-progress: 0; }
  .js .route.in { --route-progress: 1; }

  /* Budget split: segments grow in order so the proportions read as a sequence. */
  .js .split .seg { transform: scaleX(0); transition: transform 900ms var(--ease-out); transition-delay: calc(var(--i) * 140ms + 150ms); }
  .js .split.in .seg { transform: none; }

  /* How it works: the connecting line is tied to scroll position where
     the browser supports scroll-driven animations. */
  @supports (animation-timeline: view()) {
    @media (min-width: 860px) {
      .steps::before { animation: draw linear both; animation-timeline: view(); animation-range: entry 20% cover 55%; }
      @keyframes draw { from { transform: scaleX(0); } }
    }
  }

  /* Places marquee: constant motion, so linear. Pauses under the pointer. */
  .marquee-track { animation: marquee 48s linear infinite; }
  @keyframes marquee { to { transform: translateX(calc(-100% - 12px)); } }
  @media (hover: hover) and (pointer: fine) {
    .marquee:hover .marquee-track { animation-play-state: paused; }
  }

  .faq details[open] .faq-body { animation: fade-down 260ms var(--ease-out); }
  @keyframes fade-down { from { opacity: 0; transform: translateY(-6px); } }

  /* Digital page hero: the artwork lands one piece at a time. Fill mode
     is backwards so the hover spread can transition afterwards. */
  .fan-card, .fan-chip { animation: fan-in 900ms var(--ease-out) backwards; animation-delay: var(--d); }
  @keyframes fan-in { from { opacity: 0; translate: 0 36px; } }

  /* Work wall: rows drift in opposite directions, tied to scroll position. */
  @supports (animation-timeline: view()) {
    .wall-row { width: max-content; overflow: visible; animation: wall-a linear both; animation-timeline: view(); animation-range: cover; }
    .wall-row-b { animation-name: wall-b; }
    @keyframes wall-a { from { transform: translateX(0); } to { transform: translateX(-28%); } }
    @keyframes wall-b { from { transform: translateX(-28%); } to { transform: translateX(0); } }
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 0; transition: opacity 300ms ease; }
  .js .reveal.in { opacity: 1; }
  .marquee { flex-wrap: wrap; mask: none; -webkit-mask: none; padding-inline: 20px; }
  .marquee-track { flex-wrap: wrap; }
  .marquee-track[aria-hidden="true"] { display: none; }
  .btn:active { transform: none; }
}
