/* ==========================================================================
   FinWisePoint — Approach (commitment) pages.
   Loaded after styles.css and ../services/service.css (which supplies the
   shared header dropdowns). The body is intentionally EDITORIAL — different
   from the chart-led service pages: a giant watermark number, a big statement,
   a label | text grid and a pull-quote, instead of prose + an animation card.
   ========================================================================== */

/* entrance — pure CSS, reuses the svc-rise keyframe from service.css */
@media all { /* motion always on: ignores reduced-motion */
  .apr-hero .back-link,
  .apr-hero .eyebrow,
  .apr-title,
  .apr-lead { animation: svc-rise 0.7s var(--ease) both; }
  .apr-hero .eyebrow { animation-delay: 0.06s; }
  .apr-title { animation-delay: 0.12s; }
  .apr-lead { animation-delay: 0.18s; }
}

/* hero — dark band over the shared background (keeps the white header legible),
   with a giant ghosted commitment number */
.apr-hero {
  position: relative;
  z-index: 1;
  padding: clamp(8.5rem, 15vw, 12rem) 0 clamp(3.2rem, 6vw, 5rem);
  overflow: hidden;
}
.apr-hero .container { position: relative; }
.apr-watermark {
  position: absolute;
  top: 50%;
  right: 0;
  /* em/margin centering instead of transform: translateY(-46%). The % transform
     promoted this ~400px numeral to its own GPU layer and composited it at a
     fractional device pixel, so the cached glyph raster was resampled off-grid
     = the blur. margin-top keeps it static and crisp. (-0.36em ≈ the old -46%
     of the 0.78 line-box.) */
  margin-top: -0.36em;
  transform: none;
  font-family: var(--font-display);
  font-weight: 400; /* was 600 — a faint ghost numeral at ~400px reads as a fat smudge in 600 */
  font-size: clamp(11rem, 27vw, 25rem);
  line-height: 0.78;
  letter-spacing: -0.04em;
  color: rgba(255, 255, 255, 0.06); /* was 0.045 — slightly higher alpha defines the edge */
  -webkit-font-smoothing: antialiased;
  text-rendering: geometricPrecision;
  pointer-events: none;
  user-select: none;
  z-index: 0;
}
.apr-title {
  position: relative;
  z-index: 1;
  margin: 0.7rem 0 0;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(2.6rem, 7vw, 4.8rem);
  line-height: 1.02;
  letter-spacing: -0.03em;
  color: var(--text-strong);
  max-width: 18ch;
}
.apr-lead {
  position: relative;
  z-index: 1;
  margin: clamp(1.3rem, 2.5vw, 1.9rem) 0 0;
  font-size: clamp(1.1rem, 2vw, 1.4rem);
  line-height: 1.5;
  color: var(--text-muted);
  max-width: 56ch;
}

/* body — light; two columns: rich prose (reuses .svc-prose) + a reserved
   figure column on the right for an animation added later */
.apr-body { padding: clamp(3.5rem, 8vw, 6rem) 0; }
.apr-grid {
  max-width: none;
  margin-left: max(calc((100vw - var(--container)) / 2 + var(--gutter)), var(--gutter));
  margin-right: var(--gutter);
  padding-inline: 0;
  display: grid;
  grid-template-columns: minmax(0, 62ch) 1fr;
  column-gap: var(--gutter);
  align-items: start;
}
.apr-figure { position: sticky; top: clamp(96px, 14vh, 140px); align-self: start; }
@media (max-width: 1100px) {
  .apr-grid { grid-template-columns: 1fr; }
  .apr-figure { display: none; }
}

/* full-width variant: the text runs the full container width and is split in the
   middle by a full-bleed animation band (used on page 01) */
.apr-prose-wide { max-width: none; }

/* full-bleed band that divides the text: an endless marquee of brand-coloured
   pills, each with a word rotated 90deg. Built natively (not a Lottie) so it is
   reliable, on-brand and editable. The track is duplicated (two identical sets)
   and scrolled by exactly one set width for a seamless loop. */
.apr-divider {
  width: 100%;
  margin: clamp(2.6rem, 6vw, 5rem) 0;
  height: clamp(210px, 22vw, 252px); /* shared, hugs the text — pages 01 and 02 match */
  overflow: hidden;
  background: #0b1a30;
  display: flex;
  align-items: center;
}
/* shared marquee keyframe — used by every text-wall row below */
@keyframes apr-scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* the Approach divider on every page is a kinetic TEXT WALL: rows of words
   separated by arrows, scrolling in alternating directions on the dark field.
   Native + on-brand (modelled on the supplied reference). Each row's track is
   duplicated once and scrolled exactly one set width for a seamless loop. */
.apr-wall {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: clamp(0.45rem, 1.3vw, 1rem);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
}
.apr-wall-row { overflow: hidden; }
.apr-wall-track {
  display: inline-flex;
  align-items: center;
  /* spacing lives on the children (margin-inline below) instead of a flex `gap`,
     so the two duplicated halves tile with IDENTICAL spacing across the wrap
     boundary and translateX(-50%) loops with no snap. A flex `gap` left a half-gap
     seam at the -50% wrap point (~15px jump once per loop). */
  width: max-content;
  white-space: nowrap;
  will-change: transform;
  animation: apr-scroll 45s linear infinite; /* fallback; per-row duration set inline */
}
.apr-wall-row.is-reverse .apr-wall-track { animation-direction: reverse; }
.apr-wall-word {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.45rem, 3vw, 2.5rem);
  letter-spacing: -0.02em;
  line-height: 1.1;
  color: #ffffff;
  margin-inline: clamp(0.45rem, 1.1vw, 1rem); /* half the old gap — spacing now lives in the items so -50% tiles exactly */
}
.apr-wall-row:nth-child(even) .apr-wall-word { color: rgba(255, 255, 255, 0.42); }
.apr-wall-arrow {
  flex: none;
  font-style: normal;
  font-size: clamp(1rem, 2vw, 1.7rem);
  color: #e8965a;
  margin-inline: clamp(0.45rem, 1.1vw, 1rem); /* half the old gap — see .apr-wall-word */
}
@media (prefers-reduced-motion: reduce) and (min-width: 100000px) { .apr-wall-track { animation: none; } } /* disabled: marquee always animates */

.apr-statement {
  max-width: 26ch;
  margin: 0 0 clamp(2.6rem, 5vw, 4rem);
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.7rem, 3.8vw, 2.9rem);
  line-height: 1.18;
  letter-spacing: -0.025em;
  color: var(--text-strong);
}
.apr-blocks { border-top: 1px solid var(--line); }
.apr-block {
  display: grid;
  grid-template-columns: minmax(0, 13rem) minmax(0, 1fr);
  gap: clamp(0.6rem, 3vw, 3.5rem);
  padding: clamp(1.8rem, 3.2vw, 2.6rem) 0;
  border-bottom: 1px solid var(--line);
  align-items: start;
}
.apr-block-label {
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  padding-top: 0.35rem;
}
.apr-block-body {
  margin: 0;
  font-size: clamp(1.05rem, 1.6vw, 1.2rem);
  line-height: 1.72;
  color: var(--text);
  max-width: 58ch;
}
.apr-quote {
  margin: clamp(2.8rem, 6vw, 4.5rem) 0 0;
  padding-left: clamp(1.1rem, 2vw, 1.6rem);
  border-left: 3px solid var(--accent);
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.45rem, 3.2vw, 2.2rem);
  line-height: 1.3;
  letter-spacing: -0.02em;
  color: var(--text-strong);
  max-width: 24ch;
}
@media (max-width: 760px) {
  .apr-block { grid-template-columns: 1fr; gap: 0.5rem; }
  .apr-block-label { padding-top: 0; }
}

/* ==========================================================================
   PHONE TUNING (≤600px). Only a 760px .apr-block stack existed before.
   ========================================================================== */
@media (max-width: 600px) {
  /* The giant ghost number has an 11rem (176px) floor — on a 342px box it
     overlaps the title and clips on the left. Shrink it and anchor to the top. */
  .apr-watermark { font-size: clamp(6rem, 34vw, 9rem); top: 0; margin-top: 0; right: -0.06em; }
  .apr-hero { padding-top: clamp(7rem, 22vw, 9rem); }

  /* The marquee band's 210px floor holds only ~125px of words = dead navy;
     shrink the band and scale the words up slightly to fill it. */
  .apr-divider { height: clamp(150px, 42vw, 200px); margin: clamp(1.8rem, 7vw, 2.6rem) 0; }
  .apr-wall { gap: 0.55rem; }
  .apr-wall-word { font-size: clamp(1.25rem, 5vw, 1.6rem); }

  .apr-statement { font-size: clamp(1.5rem, 6vw, 1.9rem); }
  .apr-quote { padding-left: 1rem; font-size: clamp(1.3rem, 5.5vw, 1.7rem); }
}
