/* =========================================================================
   ABPV Universal One-Pager, Phase 2 wireframe
   Layout on top of colors_and_type.css (design system v2.0)
   ========================================================================= */

/* ---------- Page-scoped section-padding overrides ----------
   The design system defaults (128 / 160 / 200) are tuned for spacious single-
   statement pages. This page has 10 stacked sections, so we tighten the rhythm
   without touching the authoritative tokens. Editorial norm: ~96px between
   sections on desktop. */
:root {
  --section-y-sm: 64px;   /* was 96px  */
  --section-y-md: 88px;   /* was 128px */
  --section-y-lg: 112px;  /* was 160px */
  --section-y-xl: 144px;  /* was 200px */
}

/* ---------- Reset-ish ---------- */
*, *::before, *::after { box-sizing: border-box; }
figure { margin: 0; }
ol, ul { margin: 0; padding: 0; list-style: none; }
img { max-width: 100%; display: block; }

/* ---------- Button fixes (page-scoped) ----------
   The design system uses `<a>` for buttons. The global `a:hover` rule recolors
   text to moss, which collides with .btn-solid's hover background (also moss)
   and makes the label invisible. Also: `a { border-bottom: 1px solid }` leaks
   a hairline under button labels. Both fixed here without touching the
   authoritative design-system.css. */
.btn-solid,
.btn-solid:hover,
.btn-solid:focus,
.btn-solid:visited {
  color: var(--fg-on-dark);
  border-bottom-color: transparent;
}
.btn-solid:hover { color: var(--fg-on-dark); }

/* Image placeholder captions are wireframe artifacts (file names, specs). Hide
   them in production so a missing image never leaks dev notes to a client. */
.img-slot figcaption { display: none; }

/* ---------- Header ---------- */
.op-header {
  position: relative;
  border-bottom: 1px solid var(--rule);
  background: var(--abpv-off-white);
}
.op-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: var(--sp-5);
}
.op-wordmark {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: 14px;
  letter-spacing: 0.40em;
  text-transform: uppercase;
  color: var(--abpv-charcoal);
  border-bottom: 0;
}
.op-wordmark:hover { color: var(--abpv-moss); border-bottom: 0; }

/* ---------- Image placeholder boxes ---------- */
.img-slot {
  position: relative;
  background: var(--abpv-off-white);
  border: 1px dashed var(--rule-alt);
  color: var(--fg-muted);
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}
.img-slot::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(135deg, rgba(36,35,31,0.03) 25%, transparent 25%),
    linear-gradient(225deg, rgba(36,35,31,0.03) 25%, transparent 25%),
    linear-gradient(45deg,  rgba(36,35,31,0.03) 25%, transparent 25%),
    linear-gradient(315deg, rgba(36,35,31,0.03) 25%, transparent 25%);
  background-position: 10px 0, 10px 0, 0 0, 0 10px;
  background-size: 20px 20px;
}
.img-slot figcaption {
  position: relative;
  padding: var(--sp-5);
  font-family: var(--font-label);
  font-size: var(--fs-caption);
  line-height: 1.5;
  color: var(--fg-muted);
  max-width: 42ch;
}
.img-slot__tag {
  display: block;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--abpv-umber);
  margin-bottom: var(--sp-2);
}

/* When a real image is present inside a slot, cover the frame with it
   and hide the placeholder caption. If the file is missing, onerror
   removes the img and the placeholder re-appears. */
.img-slot img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}
.img-slot:has(img) { border-style: solid; border-color: transparent; }
.img-slot:has(img)::before { display: none; }
.img-slot:has(img) figcaption { display: none; }

.img-slot--hero     { aspect-ratio: 3 / 2; }
.img-slot--portrait { aspect-ratio: 4 / 5; }
.img-slot--square   { aspect-ratio: 1 / 1; }
.img-slot--wide     { aspect-ratio: 16 / 9; }
.img-slot--step     { aspect-ratio: 4 / 5; }

/* ---------- Shared utility: one-pager headline sizes ---------- */
.op-h2 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: var(--fs-h2);
  line-height: 1.12;
  letter-spacing: -0.01em;
  text-wrap: balance;
  margin-bottom: var(--sp-6);
}

/* ---------- Closer lines (bold one-truth sentence) ---------- */
.closer {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: var(--fs-h4);
  line-height: 1.25;
  letter-spacing: -0.005em;
  color: var(--fg);
  max-width: 42ch;
  padding-top: var(--sp-7);
  border-top: 1px solid var(--rule);
  margin-top: var(--sp-7);
}

/* =========================================================================
   1. HERO
   ========================================================================= */
.op-hero { padding-block: var(--section-y-sm); }
.op-hero__grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: var(--sp-6);
  align-items: start;
}
/* Hero image is landscape. 5:4 gives it more vertical presence than the
   default 3:2 without cropping the composition. */
.op-hero .img-slot--hero { aspect-ratio: 5 / 4; }
.op-hero__copy .eyebrow { display: inline-block; margin-bottom: var(--sp-5); }
.op-hero__headline {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(36px, 3.6vw, 56px);
  line-height: 1.06;
  letter-spacing: -0.01em;
  text-wrap: balance;
  max-width: 22ch;
  margin-bottom: var(--sp-5);
}
.op-hero__lead { max-width: 34ch; }
.op-hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--sp-5);
  margin-top: var(--sp-5);
}
.op-hero__scroll { white-space: nowrap; }

/* =========================================================================
   1b. PROOF STRIP
   Quiet credibility bridge between hero and body. Hairline dividers, eyebrow
   label + display-serif names. Never loud. Uses design-system tokens only.
   ========================================================================= */
.op-proof {
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  background: var(--abpv-off-white);
}
.op-proof__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--sp-4) var(--sp-8);
  padding-block: var(--sp-5);
}
.op-proof__group {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: var(--sp-3);
  margin: 0;
}
.op-proof__label {
  font-family: var(--font-label);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--abpv-umber);
}
.op-proof__names {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 15px;
  letter-spacing: 0.02em;
  color: var(--fg);
}
@media (max-width: 720px) {
  .op-proof__inner {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--sp-3);
  }
}

/* =========================================================================
   2. WHAT WE DO (two-column)
   ========================================================================= */
.op-two-col {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: var(--sp-10);
  align-items: start;
}
.op-two-col__body .eyebrow { display: inline-block; margin-bottom: var(--sp-6); }
.op-fragments {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(26px, 2.6vw, 36px);
  line-height: 1.28;
  color: var(--fg);
  margin-bottom: var(--sp-7);
}
.op-fragments > span { display: block; margin-bottom: var(--sp-4); }
.op-fragments > span:last-child { margin-bottom: 0; }

/* =========================================================================
   3. WHO WE SERVE
   ========================================================================= */
.op-who__head { margin-bottom: var(--sp-10); }
.op-who__head .eyebrow { display: inline-block; margin-bottom: var(--sp-6); }
.op-who__head .lead { margin-bottom: var(--sp-6); }
.op-who__body { color: var(--fg); }

.op-who__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--sp-5);
  margin-bottom: var(--sp-9);
}
.op-who__closer { max-width: 52ch; }

/* =========================================================================
   4. THE PROBLEM (sage tint)
   ========================================================================= */
.op-problem { padding-block: var(--section-y-lg); }
.op-problem .eyebrow { display: inline-block; margin-bottom: var(--sp-6); }
.op-problem__intro {
  font-family: var(--font-label);
  font-size: var(--fs-lead);
  font-weight: 400;
  color: var(--fg);
  margin-top: var(--sp-8);
  margin-bottom: var(--sp-7);
}
.op-problem__list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-8);
  margin-bottom: var(--sp-9);
  border-top: 1px solid var(--rule-alt);
  padding-top: var(--sp-7);
}
.op-problem__list li {
  padding-right: var(--sp-5);
  border-right: 1px solid var(--rule-alt);
}
.op-problem__list li:last-child { border-right: 0; }
.op-problem__label {
  display: block;
  font-family: var(--font-display);
  font-size: var(--fs-h4);
  line-height: 1.25;
  margin-bottom: var(--sp-4);
}
.op-problem__q {
  font-family: var(--font-body);
  font-size: var(--fs-body-lg);
  line-height: 1.5;
  color: var(--fg);
}
.op-problem__cost { color: var(--fg); }

/* =========================================================================
   5. THE OUTCOME (three cards)
   ========================================================================= */
.op-outcome .eyebrow { display: inline-block; margin-bottom: var(--sp-6); }
.op-outcome__head { margin-bottom: var(--sp-9); }
.op-outcome__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-7);
}
.op-outcome__card .img-slot { margin-bottom: var(--sp-6); }
.op-outcome__title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: var(--fs-h4);
  line-height: 1.22;
  letter-spacing: -0.005em;
  margin-bottom: var(--sp-4);
}

/* =========================================================================
   5b. TESTIMONIALS
   Editorial pull quotes. No stars, no avatars, no quote-mark glyphs.
   Display serif for the quote, label font for attribution. Three quotes in a
   bordered row on desktop; stacked with hairline dividers on tablet/mobile.
   ========================================================================= */
.op-testimonials .eyebrow { display: inline-block; margin-bottom: var(--sp-8); }

.op-testimonials__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-7);
  border-top: 1px solid var(--rule);
  padding-top: var(--sp-8);
}

.op-testimonial {
  margin: 0;
  padding-right: var(--sp-6);
  border-right: 1px solid var(--rule-alt);
  display: flex;
  flex-direction: column;
  gap: var(--sp-6);
}
.op-testimonial:last-child { border-right: 0; padding-right: 0; }

.op-testimonial__quote {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 22px;
  line-height: 1.35;
  letter-spacing: -0.005em;
  color: var(--fg);
  text-wrap: balance;
  text-indent: -0.38em;
}
.op-testimonial__quote::before {
  content: "\201C";
  color: var(--abpv-moss);
}
.op-testimonial__quote::after {
  content: "\201D";
  color: var(--abpv-moss);
}

.op-testimonial__attribution {
  display: flex;
  flex-direction: column;
  gap: var(--sp-1);
  margin-top: auto;
}

.op-testimonial__name {
  font-family: var(--font-label);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fg);
}

.op-testimonial__role {
  font-family: var(--font-label);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.04em;
  color: var(--abpv-umber);
}

@media (max-width: 960px) {
  .op-testimonials__grid {
    grid-template-columns: 1fr;
    gap: 0;
    padding-top: var(--sp-7);
  }
  .op-testimonial {
    border-right: 0;
    border-bottom: 1px solid var(--rule-alt);
    padding-right: 0;
    padding-bottom: var(--sp-7);
  }
  .op-testimonial:last-child {
    border-bottom: 0;
    padding-bottom: 0;
  }
}

/* =========================================================================
   6. THE WORK (five-step arc)
   ========================================================================= */
.op-work .eyebrow { display: inline-block; margin-bottom: var(--sp-6); }
.op-work__head { margin-bottom: var(--sp-9); }
.op-work__steps {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  grid-template-rows: auto auto auto 1fr;
  gap: var(--sp-5);
}
.op-step {
  display: grid;
  grid-row: span 4;
  grid-template-rows: subgrid;
  row-gap: 0;
  padding: var(--sp-5) var(--sp-5) var(--sp-5) 0;
  border-right: 1px solid var(--rule);
}
.op-step:last-child { border-right: 0; }
.op-step__num {
  display: block;
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 400;
  color: var(--abpv-clay);
  letter-spacing: 0.02em;
  margin-bottom: var(--sp-4);
}
.op-step .img-slot { margin-bottom: var(--sp-5); }
.op-step__title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 22px;
  line-height: 1.2;
  letter-spacing: -0.005em;
  margin-bottom: var(--sp-2);
}
.op-step__time {
  font-family: var(--font-label);
  font-size: var(--fs-caption);
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--abpv-umber);
  margin-bottom: var(--sp-4);
}
.op-step__body {
  font-size: 15px;
  line-height: 1.6;
  color: var(--fg);
}

/* =========================================================================
   7. ON THE ROAD
   ========================================================================= */
.op-travel__head { margin-bottom: var(--sp-8); }
.op-travel__head .eyebrow { display: inline-block; margin-bottom: var(--sp-6); }
.op-travel__lede {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: var(--sp-9);
  align-items: start;
  margin-bottom: var(--sp-9);
}
.op-travel__lede .lead { max-width: 26ch; }
.op-travel__ground { margin-top: var(--sp-5); }
.op-travel__ground-label {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: inherit;
  color: var(--fg);
  margin-right: var(--sp-2);
}

.op-travel .img-slot--wide { margin-bottom: var(--sp-10); }

.op-travel__pillars-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: var(--fs-h3);
  line-height: 1.2;
  letter-spacing: -0.005em;
  margin-bottom: var(--sp-8);
  max-width: 24ch;
}
.op-travel__pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-7);
  border-top: 1px solid var(--rule);
  padding-top: var(--sp-7);
}
.op-pillar { padding-right: var(--sp-5); }
.op-pillar__num {
  display: block;
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 400;
  color: var(--abpv-clay);
  margin-bottom: var(--sp-4);
}
.op-pillar__title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 22px;
  line-height: 1.22;
  letter-spacing: -0.005em;
  margin-bottom: var(--sp-3);
  max-width: 22ch;
}
.op-pillar p {
  font-size: 15px;
  line-height: 1.65;
  color: var(--fg);
}

/* =========================================================================
   8. THREE WAYS IN (tier comparison)
   ========================================================================= */
.op-tiers .eyebrow { display: inline-block; margin-bottom: var(--sp-6); }
.op-tiers__head { margin-bottom: var(--sp-8); }
.op-tiers__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: auto auto auto auto;
  gap: 0;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
.op-tier {
  display: grid;
  grid-row: span 4;
  grid-template-rows: subgrid;
  padding: var(--sp-7) var(--sp-6);
  border-right: 1px solid var(--rule);
}
.op-tier:last-child { border-right: 0; }
.op-tier__head { margin-bottom: var(--sp-6); }
.op-tier__label {
  display: block;
  font-family: var(--font-label);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--abpv-umber);
  margin-bottom: var(--sp-3);
}
.op-tier__name {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: var(--fs-h3);
  line-height: 1.15;
  letter-spacing: -0.005em;
}
.op-tier__rows {
  display: contents;
}
.op-tier__rows > div {
  display: grid;
  grid-template-columns: 1fr;
  grid-auto-rows: max-content;
  align-content: start;
  gap: var(--sp-1);
  padding-block: var(--sp-4);
  border-top: 1px solid var(--rule);
}
.op-tier__rows > div:first-child { border-top: 0; padding-top: 0; }
.op-tier__rows dt {
  font-family: var(--font-label);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--abpv-umber);
}
.op-tier__rows dd {
  margin: 0;
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.55;
  color: var(--fg);
}
.op-tier__rows dd ul {
  margin: 0;
  padding-left: 1.3em;
  list-style: disc outside;
}
.op-tier__rows dd li {
  display: list-item;
}
.op-tier__rows dd li + li {
  margin-top: var(--sp-1);
}

/* =========================================================================
   9. WHO'S BEHIND THIS
   ========================================================================= */
.op-who-we .eyebrow { display: inline-block; margin-bottom: var(--sp-5); }
.op-who-we__body > .op-h2 { margin-bottom: var(--sp-6); }
.op-who-we__body p { margin-bottom: var(--sp-5); }
.op-who-we__body p:last-of-type { margin-bottom: 0; }
.op-who-we__speaking .meta { display: block; margin-bottom: var(--sp-2); }

/* Publications mosaic container — sits below the two-column bio, full width. */
.op-who-we__publications {
  margin-top: var(--sp-9);
}
.op-publications-wrap {
  padding-top: var(--sp-7);
  border-top: 1px solid var(--rule);
}
.op-publications__label {
  display: block;
  margin-bottom: var(--sp-6);
}
.op-publications {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--sp-5) var(--sp-6);
}
.op-publications li {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: 20px;
  letter-spacing: 0.02em;
  line-height: 1.3;
  color: var(--fg);
  white-space: nowrap;
}
@media (max-width: 960px) {
  .op-publications { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 640px) {
  .op-publications {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--sp-4) var(--sp-5);
  }
  .op-publications li {
    font-size: 17px;
    white-space: normal;
  }
}

/* =========================================================================
   10. CTA (charcoal)
   ========================================================================= */
.op-cta { text-align: left; }
.op-cta__inner { max-width: 780px; }
.op-cta .eyebrow { display: inline-block; margin-bottom: var(--sp-6); color: var(--accent-clay); }
.op-cta__headline {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(56px, 7vw, 96px);
  line-height: 1.02;
  letter-spacing: -0.01em;
  color: var(--fg-on-dark);
  margin-bottom: var(--sp-6);
}
.op-cta__body {
  font-size: var(--fs-lead);
  line-height: 1.6;
  color: var(--fg-on-dark-muted);
  margin-bottom: var(--sp-8);
}
.op-cta__actions { display: flex; align-items: center; gap: var(--sp-7); flex-wrap: wrap; }
/* .on-dark .op-cta__btn = higher specificity than the design-system's
   .on-dark a rule, so the text color override actually applies. */
.on-dark .op-cta__btn {
  background: var(--abpv-off-white);
  color: var(--abpv-charcoal);
  border-color: var(--abpv-off-white);
}
.on-dark .op-cta__btn:hover {
  background: var(--abpv-moss);
  color: var(--abpv-off-white);
  border-color: var(--abpv-moss);
}
.op-cta__alt { color: var(--fg-on-dark); }
.op-cta__alt:hover { color: var(--accent-clay); }

/* ---------- Footer ---------- */
.op-footer {
  border-top: 1px solid var(--rule);
  padding-block: var(--sp-5);
  background: var(--abpv-off-white);
}
.op-footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-5);
}
.op-footer__mark {
  height: 22px;
  width: auto;
  display: block;
  opacity: 0.8;
}
.op-footer .meta {
  font-size: 11px;
  color: var(--fg-soft);
  letter-spacing: 0.08em;
}
@media (max-width: 560px) {
  .op-footer__inner { gap: var(--sp-3); }
  .op-footer .meta { font-size: 10px; }
}

/* =========================================================================
   Responsive collapses
   ========================================================================= */
@media (max-width: 960px) {
  /* Scale down global section padding on mobile so every section breathes less */
  :root {
    --section-y-sm: var(--sp-7);  /* 48px */
    --section-y-md: var(--sp-8);  /* 64px */
    --section-y-lg: var(--sp-9);  /* 96px */
    --section-y-xl: var(--sp-10); /* 128px */
  }
  .op-hero__grid,
  .op-two-col,
  .op-travel__lede {
    grid-template-columns: 1fr;
    gap: var(--sp-7);
  }
  .op-who__grid { grid-template-columns: repeat(2, 1fr); }
  .op-problem__list,
  .op-outcome__grid,
  .op-travel__pillars,
  .op-tiers__grid {
    grid-template-columns: 1fr;
    grid-template-rows: none;
    gap: 0;
  }
  .op-problem__list li,
  .op-tier,
  .op-pillar {
    border-right: 0;
    border-bottom: 1px solid var(--rule-alt);
    padding-bottom: var(--sp-6);
    padding-right: 0;
  }
  .op-tier, .op-tier__rows { display: block; }
  .op-problem__list li:last-child,
  .op-tier:last-child { border-bottom: 0; }

  .op-work__steps { grid-template-columns: 1fr; grid-template-rows: none; }
  .op-step { display: block; border-right: 0; border-bottom: 1px solid var(--rule); padding: var(--sp-6) 0; }
  .op-step:last-child { border-bottom: 0; }

  .op-outcome__grid { gap: var(--sp-7); }
  .op-outcome__grid > .op-outcome__card { padding-bottom: var(--sp-6); border-bottom: 1px solid var(--rule); }
  .op-outcome__grid > .op-outcome__card:last-child { border-bottom: 0; }
}

@media (max-width: 560px) {
  /* Tighter section padding on phones */
  :root {
    --section-y-sm: var(--sp-6);  /* 32px */
    --section-y-md: var(--sp-7);  /* 48px */
    --section-y-lg: var(--sp-8);  /* 64px */
    --section-y-xl: var(--sp-9);  /* 96px */
  }
  .op-who__grid { grid-template-columns: 1fr; }
  .op-hero { padding-block: var(--section-y-md); }
  .op-hero__grid { gap: var(--sp-6); }
  .op-hero__headline { font-size: 40px; margin-bottom: var(--sp-5); }
  .op-hero__actions { margin-top: var(--sp-5); }
  .op-cta__headline { font-size: 48px; }
  .op-header__inner .cta-link { display: none; }
}

/* =========================================================================
   REVEAL ON SCROLL
   Targets marked with [data-reveal]. Hidden = 16px down, 0 opacity.
   Revealed (.is-revealed added by IntersectionObserver) returns to rest.
   Stagger via --reveal-index custom property on child elements.
   ========================================================================= */
[data-reveal] {
  opacity: 0;
  transform: translateY(16px);
  transition:
    opacity 700ms var(--ease),
    transform 700ms var(--ease);
  transition-delay: calc(var(--reveal-index, 0) * 90ms);
  will-change: opacity, transform;
}
[data-reveal].is-revealed {
  opacity: 1;
  transform: none;
}

/* =========================================================================
   TICK RAIL
   Fixed right-edge section indicator. One dot per section. Hidden below 900px.
   Active dot fills with charcoal; inactive is moss hairline ring.
   ========================================================================= */
.tick-rail {
  position: fixed;
  top: 50%;
  right: 18px;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 90;
}
.tick-rail__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: 1px solid var(--abpv-moss);
  background: transparent;
  padding: 0;
  cursor: pointer;
  transition: background 220ms var(--ease), transform 220ms var(--ease), border-color 220ms var(--ease);
}
.tick-rail__dot:hover { transform: scale(1.3); }
.tick-rail__dot.is-active {
  background: var(--abpv-charcoal);
  border-color: var(--abpv-charcoal);
}
.tick-rail__dot:focus-visible {
  outline: 2px solid var(--abpv-moss);
  outline-offset: 3px;
}
@media (max-width: 900px) {
  .tick-rail { display: none; }
}

/* =========================================================================
   BACK TO TOP BUTTON
   Fixed bottom-right. Hidden until user scrolls past 400px. Charcoal circle,
   off-white chevron. Fades in/out. Respects reduced-motion.
   ========================================================================= */
.back-to-top {
  position: fixed;
  right: clamp(16px, 3vw, 32px);
  bottom: clamp(16px, 3vw, 32px);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 0;
  background: var(--abpv-charcoal);
  color: var(--abpv-off-white);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 300ms ease, visibility 300ms ease, transform 300ms ease, background 200ms ease;
  box-shadow: 0 4px 16px rgba(36, 35, 31, 0.18);
  z-index: 100;
}
.back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.back-to-top:hover {
  background: var(--abpv-moss);
}
.back-to-top:focus-visible {
  outline: 2px solid var(--abpv-moss);
  outline-offset: 3px;
}
.back-to-top svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Reduced motion — respect user preference */
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
  [data-reveal] { opacity: 1 !important; transform: none !important; }
}
