/* ==========================================================================
   Home: hero, logo ticker, mission, value scrollytelling
   ========================================================================== */

/* JS-armed reveal primitive (content visible by default if JS absent) */
.js .reveal {
  opacity: 0;
  transform: translateY(22px);
}
.js .reveal.is-visible {
  opacity: 1;
  transform: none;
  transition:
    opacity var(--dur-slow) var(--ease-out-expo),
    transform var(--dur-slow) var(--ease-out-expo);
}
@media (prefers-reduced-motion: reduce) {
  .js .reveal {
    opacity: 1;
    transform: none;
  }
}

/* ===== HERO (full-bleed moving wall of client assets) ===== */
.hero {
  position: relative;
  min-height: clamp(580px, 90vh, 880px);
  display: grid;
  place-items: center;
  text-align: center;
  overflow: clip;
  isolation: isolate;
  padding-block: clamp(3.5rem, 6vw, 7rem);
}

/* The wall: stacked rows of asset tiles, tilted, drifting horizontally. */
.hero__wall {
  position: absolute;
  inset: -26% -22%;
  z-index: -2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: clamp(0.9rem, 1.4vw, 1.5rem);
  transform: rotate(-7deg) scale(1.3);
  transform-origin: center;
  pointer-events: none;
}
.js .hero__wall {
  opacity: 0;
  transform: rotate(-7deg) scale(1.36);
}
.js .hero[data-ready="true"] .hero__wall {
  opacity: 1;
  transform: rotate(-7deg) scale(1.3);
  transition:
    opacity 1s var(--ease-out-expo),
    transform 1.6s var(--ease-out-expo);
}
@media (prefers-reduced-motion: reduce) {
  .js .hero__wall {
    opacity: 1;
    transform: rotate(-7deg) scale(1.3);
  }
}

/* Rows + tiles are generated and animated seamlessly (px-based) by hero.js */
.wall-row {
  display: flex;
  width: max-content;
  will-change: transform;
}
.wall-unit {
  display: flex;
}

/* Light scrim so the dark text stays readable over the busy wall,
   and the wall blends into the white sections above/below. */
.hero__scrim {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(
      118% 82% at 50% 42%,
      rgba(255, 255, 255, 0.97) 0%,
      rgba(255, 255, 255, 0.9) 26%,
      rgba(255, 255, 255, 0.62) 54%,
      rgba(255, 255, 255, 0.32) 78%,
      rgba(255, 255, 255, 0.12) 100%
    ),
    linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.75) 0%,
      transparent 20%,
      transparent 74%,
      var(--surface) 100%
    );
}

.hero__content {
  position: relative;
  z-index: 1;
  max-width: 56rem;
  padding-inline: var(--gutter);
  display: grid;
  justify-items: center;
  gap: var(--space-lg);
}

/* soft white glow that lifts the content off the moving wall */
.hero__content::before {
  content: "";
  position: absolute;
  z-index: -1;
  left: 50%;
  top: 47%;
  width: 118%;
  height: 138%;
  transform: translate(-50%, -50%);
  background: radial-gradient(
    closest-side,
    rgba(255, 255, 255, 0.96),
    rgba(255, 255, 255, 0.72) 46%,
    rgba(255, 255, 255, 0) 78%
  );
  filter: blur(26px);
  pointer-events: none;
}

.hero h1 {
  margin: 0;
}
.hero h1 .accent {
  position: relative;
  color: var(--brand-blue);
}
.hero h1 .accent::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -0.14em;
  height: 0.14em;
  border-radius: 4px;
  background: var(--brand-orange);
  transform: scaleX(0);
  transform-origin: left;
  animation: underline-grow 0.9s var(--ease-out-expo) 0.6s forwards;
}
@keyframes underline-grow {
  to {
    transform: scaleX(1);
  }
}
@media (prefers-reduced-motion: reduce) {
  .hero h1 .accent::after {
    animation: none;
    transform: scaleX(1);
  }
}

.hero .lead {
  margin: 0 auto;
  font-size: var(--text-lg);
  color: color-mix(in oklch, var(--brand-ink) 84%, white);
  max-width: 42rem;
}

.hero__cta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-sm);
  margin-top: var(--space-xs);
}

.hero__trust {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-md);
  margin-top: var(--space-sm);
  flex-wrap: wrap;
  padding: 0.65rem 1.1rem;
  border-radius: var(--radius-pill);
  background: color-mix(in oklch, var(--surface) 90%, transparent);
  border: 1px solid var(--line);
}
.hero__stars {
  display: inline-flex;
  gap: 2px;
  color: var(--brand-orange);
}
.hero__stars svg {
  width: 1.1rem;
  height: 1.1rem;
  fill: currentColor;
  stroke: none;
}
.hero__trust-text {
  font-size: var(--text-sm);
  color: var(--muted);
  text-align: left;
}
.hero__trust-text strong {
  color: var(--brand-ink);
  font-family: var(--font-display);
}
.hero__trust-divider {
  width: 1px;
  height: 2.2rem;
  background: var(--line-strong);
}

/* ===== WALL TILES (placeholder client assets — swap for real screenshots) ===== */
.tile {
  flex: none;
  width: clamp(186px, 19vw, 268px);
  height: clamp(138px, 14.5vw, 186px);
  margin-right: clamp(0.9rem, 1.4vw, 1.5rem);
  border-radius: var(--radius-md);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-md);
  overflow: hidden;
}

.tile__bar {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 8px 11px;
  background: var(--surface-2);
  border-bottom: 1px solid var(--line);
}
.tile__bar i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--line-strong);
}
.tile__bar span {
  margin-left: 8px;
  font-size: 10px;
  color: var(--muted);
}

.ph-line {
  height: 8px;
  border-radius: 4px;
  background: var(--line);
}
.ph-line.w-70 {
  width: 70%;
}
.ph-line.w-50 {
  width: 50%;
}
.ph-line.accent {
  background: var(--brand-green);
  width: 40%;
  height: 16px;
  border-radius: var(--radius-pill);
}

/* website */
.tile--site .ph-hero {
  height: 64px;
  background: var(--brand-blue);
}
.tile--site .ph-body {
  padding: 12px;
  display: grid;
  gap: 7px;
}

/* ads dashboard */
.tile--dash {
  padding: 14px;
}
.tile--dash .dash-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 10px;
}
.tile--dash .dash-kpi {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 20px;
  color: var(--brand-ink);
}
.tile--dash .dash-kpi small {
  display: block;
  font-size: 9px;
  font-weight: 500;
  color: var(--muted);
}
.tile--dash .dash-up {
  font-size: 10px;
  font-weight: 700;
  color: var(--brand-green-600);
  font-family: var(--font-display);
}
.chart {
  display: flex;
  align-items: flex-end;
  gap: 6px;
  height: 70px;
}
.chart i {
  flex: 1;
  border-radius: 4px 4px 0 0;
  background: var(--tint-blue-100);
}
.chart i.hi {
  background: var(--brand-blue);
}
.chart i.peak {
  background: var(--brand-green);
}

/* GBP (landscape) */
.tile--gbp {
  padding: 14px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.tile--gbp .gbp-pin {
  width: 44px;
  height: 44px;
  flex: none;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--tint-green-050);
  color: var(--brand-green-600);
}
.tile--gbp .gbp-pin svg {
  width: 22px;
  height: 22px;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
}
.tile--gbp .gbp-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 13px;
  color: var(--brand-ink);
}
.tile--gbp .gbp-stars {
  color: var(--brand-orange);
  font-size: 14px;
  letter-spacing: 1px;
  margin: 3px 0;
}
.tile--gbp .gbp-meta {
  font-size: 10px;
  color: var(--muted);
}

/* social post */
.tile--social {
  display: flex;
  flex-direction: column;
}
.tile--social .post-img {
  height: 60%;
  background: var(--brand-orange);
  display: grid;
  place-items: center;
  color: #fff;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 14px;
  text-align: center;
  padding: 0 10px;
}
.tile--social .post-body {
  padding: 10px 12px;
  display: grid;
  gap: 6px;
}

/* call report */
.tile--call {
  padding: 13px 15px;
  display: grid;
  align-content: center;
  gap: 9px;
}
.tile--call .call-row {
  display: flex;
  align-items: center;
  gap: 8px;
}
.tile--call .call-ico {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--tint-blue-050);
  color: var(--brand-blue);
  display: grid;
  place-items: center;
  flex: none;
}
.tile--call .call-ico svg {
  width: 14px;
  height: 14px;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
}
.tile--call .call-label {
  font-size: 10px;
  color: var(--muted);
}
.tile--call .call-val {
  margin-left: auto;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 13px;
  color: var(--brand-ink);
}
.tile--call .call-val.good {
  color: var(--brand-green-600);
}

/* reviews */
.tile--review {
  padding: 14px 16px;
  display: grid;
  align-content: center;
  gap: 6px;
}
.tile--review .rev-stars {
  color: var(--brand-orange);
  font-size: 15px;
  letter-spacing: 1px;
}
.tile--review .rev-quote {
  font-size: 11px;
  color: var(--brand-ink);
  line-height: 1.45;
}
.tile--review .rev-name {
  font-size: 10px;
  color: var(--muted);
  font-family: var(--font-display);
  font-weight: 600;
}

@media (max-width: 600px) {
  .hero {
    min-height: 84vh;
  }
  .hero__wall {
    transform: rotate(-9deg) scale(1.5);
  }
  .js .hero__wall {
    transform: rotate(-9deg) scale(1.58);
  }
  .js .hero[data-ready="true"] .hero__wall {
    transform: rotate(-9deg) scale(1.5);
  }
  .hero__trust {
    gap: var(--space-sm);
  }
}

/* ===== LOGO TICKER ===== */
.ticker {
  padding-block: var(--space-xl);
  border-block: 1px solid var(--line);
  background: var(--surface);
}

.ticker__label {
  text-align: center;
  font-size: var(--text-sm);
  color: var(--muted);
  margin-bottom: var(--space-md);
}
.ticker__label strong {
  color: var(--brand-ink);
  font-family: var(--font-display);
}

.ticker__track {
  --gap: clamp(2rem, 4vw, 4rem);
  display: flex;
  overflow: hidden;
  gap: var(--gap);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.ticker__group {
  display: flex;
  align-items: center;
  gap: var(--gap);
  padding-right: var(--gap);
  flex: none;
  animation: marquee 38s linear infinite;
}

.ticker:hover .ticker__group {
  animation-play-state: paused;
}

@keyframes marquee {
  to {
    transform: translateX(-100%);
  }
}
@media (prefers-reduced-motion: reduce) {
  .ticker__group {
    animation: none;
  }
  .ticker__track {
    overflow-x: auto;
  }
}

.ticker__logo {
  flex: none;
  height: 30px;
  width: auto;
  max-width: 200px;
  display: block;
  object-fit: contain;
  filter: grayscale(1);
  opacity: 0.55;
  transition: opacity var(--dur-fast), filter var(--dur-fast);
}
.ticker__logo:hover {
  filter: grayscale(0);
  opacity: 1;
}

/* ===== MISSION (phrase as the hero + scattered marketing-element stickers) ===== */
.mission {
  position: relative;
  overflow: visible;
}
.mission .container {
  position: relative;
  z-index: 1;
}
.mission .eyebrow {
  margin-bottom: var(--space-lg);
}
.mission__phrase {
  font-family: var(--font-display);
  font-weight: 900;
  text-transform: uppercase;
  font-size: clamp(1.95rem, 0.3rem + 5.4vw, 4.7rem);
  line-height: 1.1;
  letter-spacing: -0.025em;
  max-width: 19ch;
  text-wrap: balance;
}

/* transformation arrow (inline) */
.mission__arrow {
  display: inline-block;
  width: 0.82em;
  height: 0.82em;
  vertical-align: -0.02em;
  margin: 0 0.14em;
  color: var(--brand-orange);
  stroke: currentColor;
  stroke-width: 2.4;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* scattered 3D marketing icons (3dicons.co, CC0, "color" finish; see assets/icons/) */
.mission__deco {
  position: absolute;
  inset: 0;
  z-index: 0; /* behind the text */
  pointer-events: none;
}
.msticker {
  position: absolute;
  left: var(--x);
  top: var(--y);
  width: var(--s, 110px);
  /* independent channels: transform = mouse parallax (JS), translate = idle
     float (CSS), rotate = static tilt */
  rotate: var(--r, 0deg);
  animation: deco-float var(--d, 7s) ease-in-out var(--delay, 0s) infinite alternate;
  will-change: transform;
}
.msticker img {
  display: block;
  width: 100%;
  height: auto;
  /* glossy 3D icons are transparent PNGs; a soft drop-shadow lets them float
     as objects on the white surface (no blend mode — it would crush the gloss) */
  filter: drop-shadow(0 14px 22px rgba(30, 42, 51, 0.18));
}
@keyframes deco-float {
  to {
    translate: 0 -8px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .msticker {
    animation: none;
  }
}

@media (max-width: 820px) {
  /* keep the phrase clean on small screens */
  .mission__deco {
    display: none;
  }
}

/* green marker highlight behind the key words (text stays ink = legible) */
.mission__hl {
  background-image: linear-gradient(
    transparent 58%,
    color-mix(in oklch, var(--brand-green) 55%, white) 0
  );
  padding-inline: 0.06em;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}

.mission__sub {
  margin-top: var(--space-xl);
  font-size: var(--text-lg);
  color: var(--muted);
  max-width: 56ch;
}
.mission__sub strong {
  color: var(--brand-ink);
}

/* ===== VALUE (scannable proof grid) ===== */
.value {
  background: var(--surface-2);
}
.value__head {
  margin-bottom: var(--space-2xl);
}
.value__head > h2 {
  max-width: 14ch;
}
.value__head > p {
  max-width: 40ch;
}
.value__head p {
  margin-top: var(--space-md);
  font-size: var(--text-lg);
  color: var(--muted);
}

.value__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-lg);
}
@media (max-width: 720px) {
  .value__grid {
    grid-template-columns: 1fr;
  }
}

.value-item {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  padding: var(--space-xl);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  transition:
    transform var(--dur-normal) var(--ease-out-quint),
    box-shadow var(--dur-normal);
}
.value-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

/* proof row: sticker + the number that backs the claim (always visible) */
.value-item__proof {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding-bottom: var(--space-md);
  border-bottom: 1px solid var(--line);
}
.value-item__proof .sticker {
  width: 3.4rem;
  height: 3.4rem;
  flex: none;
}
.value-item__stat {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: var(--text-2xl);
  line-height: 1;
  color: var(--brand-ink);
}
.value-item__stat span {
  display: block;
  font-size: var(--text-xs);
  font-weight: 500;
  color: var(--muted);
  margin-top: 0.3rem;
  max-width: 24ch;
}
.value-item h3 {
  font-size: var(--text-lg);
}
.value-item p {
  color: var(--muted);
}
