/* ============================================================
   ABOUT — standalone page styles (.ab-* / body.about-page)
   Same identity family as the homepage: ivory base, red wave
   ambient system, Inter Tight + Instrument Serif, glass pills.
   ============================================================ */

body.about-page {
  --bg: #f7f3ec;
  --ink: #141414;
  --muted: #6f6f6f;
  --muted-2: #8a8578;
  --glass: rgba(255, 255, 255, 0.55);
  --glass-strong: rgba(255, 255, 255, 0.72);
  --card: #fffdf9;
  --line: rgba(20, 20, 20, 0.08);
  --line-strong: rgba(20, 20, 20, 0.14);
  --champagne: #e9d9bc;
  --pale-cyan: #cfe6ea;
  --lavender: #ddd6ef;
  --mint: #d9ead9;
  --blush: #f0dcd8;
  --perla: #efe6da;
  --rw-base-1: #fffaf6;
  --rw-base-2: #f8efe8;
  --rw-base-3: #f5f1ec;
  --rw-pink-1: #ffd7d8;
  --rw-pink-2: #ffc4c8;
  --rw-pink-3: #ff9da6;
  --rw-red-1: #ff2f3f;
  --rw-red-3: #d70f24;
  --rw-red-4: #a60818;
  --accent: #c2402a;
  --shadow-soft: 0 24px 60px -30px rgba(30, 25, 15, 0.25);
  --shadow-card: 0 10px 30px -12px rgba(30, 25, 15, 0.18);
  --radius-lg: 28px;
  --radius-md: 20px;
  --font-sans: "Inter Tight", Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-display: "Instrument Serif", Georgia, serif;
  --nav-h: 76px;

  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.55;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

::selection { background: var(--champagne); color: var(--ink); }

:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ============================================================
   LIVING BACKGROUND — red wave system (homepage family)
   ============================================================ */
.ab-bg {
  position: fixed;
  inset: 0;
  z-index: -2;
  overflow: hidden;
  background: radial-gradient(120% 90% at 28% 0%, var(--rw-base-1) 0%, var(--rw-base-2) 58%, var(--rw-base-3) 100%);
}
.ab-bg-base {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(70% 55% at 84% 6%, rgba(255, 215, 216, 0.5), transparent 70%),
    radial-gradient(55% 45% at 8% 82%, rgba(255, 215, 216, 0.32), transparent 70%);
}
.ab-wave {
  position: absolute;
  border-radius: 50%;
  will-change: transform;
  pointer-events: none;
}
.ab-wave-main {
  right: -30vmax;
  bottom: -36vmax;
  width: 92vmax;
  height: 88vmax;
  opacity: 0.52;
  background:
    radial-gradient(58% 52% at 36% 24%, var(--rw-pink-2), rgba(255, 157, 166, 0) 62%),
    radial-gradient(closest-side at 56% 56%, var(--rw-red-1) 0%, var(--rw-red-3) 38%, var(--rw-red-4) 56%, rgba(166, 8, 24, 0.35) 68%, rgba(90, 0, 9, 0) 80%);
  animation: ab-wave-drift 30s ease-in-out infinite alternate;
}
.ab-wave-side {
  top: -8vmax;
  right: -16vmax;
  width: 52vmax;
  height: 48vmax;
  opacity: 0.5;
  background: radial-gradient(closest-side, var(--rw-pink-3), var(--rw-pink-1) 45%, rgba(255, 215, 216, 0) 72%);
  animation: ab-wave-drift 38s ease-in-out infinite alternate-reverse;
}
.ab-wave-deep {
  bottom: -24vmax;
  left: -20vmax;
  width: 58vmax;
  height: 52vmax;
  opacity: 0.38;
  background: radial-gradient(closest-side, var(--rw-pink-1), rgba(255, 196, 200, 0.4) 45%, rgba(255, 215, 216, 0) 72%);
  animation: ab-wave-drift 34s ease-in-out infinite alternate;
}
@keyframes ab-wave-drift {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to   { transform: translate3d(-3vmax, 2vmax, 0) scale(1.06); }
}
.ab-bg-lines {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.8;
}
.ab-bg-lines path { fill: none; stroke-linecap: round; }
.ab-bg-lines .l1 { stroke: rgba(255, 255, 255, 0.75); stroke-width: 1.6; }
.ab-bg-lines .l2 { stroke: rgba(255, 157, 166, 0.6); stroke-width: 1.2; }
.ab-bg-lines .l3 { stroke: rgba(255, 255, 255, 0.5); stroke-width: 1; }

.ab-grain {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.5;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3CfeComponentTransfer%3E%3CfeFuncA type='linear' slope='0.05'/%3E%3C/feComponentTransfer%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)'/%3E%3C/svg%3E");
}

@media (prefers-reduced-motion: reduce) {
  .ab-wave { animation: none; }
}

/* ============================================================
   NAVBAR — homepage glass pill
   ============================================================ */
.ab-nav {
  position: fixed;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  width: min(1180px, calc(100% - 28px));
  z-index: 90;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 14px 12px 24px;
  border-radius: 999px;
  background: var(--glass);
  border: 1px solid var(--line);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: 0 12px 40px -20px rgba(30, 25, 15, 0.28);
  transition: background 0.35s ease, box-shadow 0.35s ease;
}
.ab-nav.scrolled { background: var(--glass-strong); }
.ab-brand { font-weight: 800; letter-spacing: 0.14em; font-size: 0.92rem; }
.ab-nav-links { display: flex; gap: 4px; }
.ab-nav-links a {
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 0.92rem;
  color: var(--muted);
  transition: color 0.25s ease, background 0.25s ease;
}
.ab-nav-links a:hover { color: var(--ink); background: rgba(20, 20, 20, 0.05); }
.ab-nav-links a[aria-current="page"] { color: var(--ink); background: rgba(20, 20, 20, 0.07); }
.ab-nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 22px;
  border-radius: 999px;
  background: var(--ink);
  color: #fdfaf4;
  font-size: 0.9rem;
  font-weight: 600;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.ab-nav-cta:hover { transform: translateY(-1px); box-shadow: 0 12px 24px -12px rgba(0, 0, 0, 0.45); }

/* ============================================================
   SHARED PRIMITIVES
   ============================================================ */
.ab-section { position: relative; padding: clamp(84px, 11vh, 140px) 24px; }
.ab-inner { max-width: 1180px; margin: 0 auto; }

.ab-section::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}
#story::before {
  background:
    radial-gradient(42% 34% at 4% 12%, color-mix(in srgb, var(--blush) 52%, transparent), transparent 70%),
    radial-gradient(44% 36% at 96% 74%, color-mix(in srgb, var(--perla) 66%, transparent), transparent 70%);
}
#why::before {
  background:
    radial-gradient(50% 42% at 20% 26%, color-mix(in srgb, var(--champagne) 56%, transparent), transparent 72%),
    radial-gradient(42% 34% at 88% 82%, color-mix(in srgb, var(--blush) 44%, transparent), transparent 70%);
}
#frames::before {
  background:
    radial-gradient(46% 40% at 12% 20%, color-mix(in srgb, var(--lavender) 54%, transparent), transparent 70%),
    radial-gradient(42% 36% at 90% 84%, color-mix(in srgb, var(--pale-cyan) 46%, transparent), transparent 70%);
}
#mission::before {
  background:
    radial-gradient(48% 40% at 82% 14%, color-mix(in srgb, var(--mint) 54%, transparent), transparent 70%),
    radial-gradient(40% 34% at 8% 88%, color-mix(in srgb, var(--pale-cyan) 44%, transparent), transparent 70%);
}
#connect::before {
  background:
    radial-gradient(52% 46% at 50% 38%, color-mix(in srgb, var(--champagne) 56%, transparent), transparent 72%),
    radial-gradient(40% 34% at 78% 92%, color-mix(in srgb, var(--lavender) 42%, transparent), transparent 70%);
}

.ab-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 20px;
}
.ab-eyebrow::before {
  content: "";
  width: 26px;
  height: 1px;
  background: var(--ink);
  opacity: 0.5;
}
.ab-eyebrow.is-centered { justify-content: center; }
.ab-eyebrow.is-centered::before { display: none; }

.ab-h2 {
  font-size: clamp(2rem, 4.4vw, 3.4rem);
  line-height: 1.06;
  font-weight: 650;
  letter-spacing: -0.03em;
  max-width: 16em;
}
.ab-h2 em {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  letter-spacing: 0;
}
.ab-sub {
  margin-top: 18px;
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 52ch;
}

.ab-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 30px;
  border-radius: 999px;
  font-size: 0.98rem;
  font-weight: 600;
  border: 1px solid transparent;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease, color 0.25s ease;
}
.ab-btn-dark { background: var(--ink); color: #fdfaf4; }
.ab-btn-dark:hover { transform: translateY(-2px); box-shadow: 0 16px 30px -14px rgba(0, 0, 0, 0.5); }
.ab-btn-ghost {
  background: var(--glass);
  border-color: var(--line-strong);
  color: var(--ink);
  backdrop-filter: blur(10px);
}
.ab-btn-ghost:hover { transform: translateY(-2px); background: var(--glass-strong); }

/* ============================================================
   1 — HERO
   ============================================================ */
.ab-hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: calc(var(--nav-h) + 46px) 24px 70px;
}
.ab-hero-grid {
  max-width: 1180px;
  margin: 0 auto;
  width: 100%;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(32px, 5vw, 76px);
  align-items: center;
}

.ab-hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 7px 16px 7px 12px;
  border-radius: 999px;
  background: var(--glass);
  border: 1px solid var(--line);
  backdrop-filter: blur(10px);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 26px;
}
.ab-hero-eyebrow .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--rw-red-1);
  box-shadow: 0 0 0 4px rgba(255, 47, 63, 0.16);
  animation: ab-pulse 2.6s ease-in-out infinite;
}
@keyframes ab-pulse {
  0%, 100% { box-shadow: 0 0 0 4px rgba(255, 47, 63, 0.16); }
  50%      { box-shadow: 0 0 0 8px rgba(255, 47, 63, 0.05); }
}
@media (prefers-reduced-motion: reduce) {
  .ab-hero-eyebrow .dot { animation: none; }
}

.ab-hero-title {
  font-size: clamp(2.6rem, 6.2vw, 5rem);
  line-height: 1.02;
  font-weight: 650;
  letter-spacing: -0.035em;
}
.ab-hero-title em {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  letter-spacing: 0;
}
.ab-line { overflow: hidden; display: block; }
.ab-line > span { display: block; will-change: transform; }

.ab-hero-sub {
  margin-top: 24px;
  color: var(--muted);
  font-size: clamp(1rem, 1.5vw, 1.12rem);
  max-width: 44ch;
}

.ab-hero-actions {
  margin-top: 34px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* Hero photo stack */
.ab-hero-stage {
  position: relative;
  perspective: 1200px;
}
.ab-photo-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--card);
  box-shadow: var(--shadow-soft);
  transform-style: preserve-3d;
  will-change: transform;
  transition: box-shadow 0.4s ease;
}
.ab-photo-card img {
  width: 100%;
  /* height:auto is required so the img's width/height attributes (a
     presentational hint) don't win over aspect-ratio */
  height: auto;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: 50% 28%;
  transform: scale(1.04);
  transition: transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}
.ab-hero-stage:hover .ab-photo-card img { transform: scale(1.08); }
.ab-photo-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(200deg, rgba(255, 255, 255, 0.28), transparent 42%);
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}
.ab-hero-stage:hover .ab-photo-card::after { opacity: 1; }

/* floating credential chips around the portrait */
.ab-chip {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 11px 18px;
  border-radius: 999px;
  background: rgba(255, 253, 249, 0.86);
  border: 1px solid var(--line);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 16px 34px -18px rgba(30, 25, 15, 0.4);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: -0.005em;
  white-space: nowrap;
  z-index: 3;
  will-change: transform;
}
.ab-chip span.k {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted-2);
}
.ab-chip-1 { top: 9%; left: -34px; animation: ab-float 7s ease-in-out infinite; }
.ab-chip-2 { bottom: 22%; right: -30px; animation: ab-float 9s ease-in-out infinite reverse; }
.ab-chip-3 { bottom: 5%; left: 6%; animation: ab-float 8s ease-in-out infinite 0.6s; }
@keyframes ab-float {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-9px); }
}
@media (prefers-reduced-motion: reduce) {
  .ab-chip { animation: none; }
}

/* Hero stat row */
.ab-hero-meta {
  margin-top: 40px;
  display: flex;
  flex-wrap: wrap;
  gap: 38px;
}
.ab-hero-meta .m {
  display: flex;
  flex-direction: column;
}
.ab-hero-meta .m strong {
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
}
.ab-hero-meta .m span {
  font-size: 0.82rem;
  color: var(--muted);
}

/* ============================================================
   2 — CREDITS MARQUEE
   ============================================================ */
.ab-credits {
  position: relative;
  padding: 26px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--glass);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  overflow: hidden;
}
.ab-credits::before,
.ab-credits::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 120px;
  z-index: 2;
  pointer-events: none;
}
.ab-credits::before { left: 0; background: linear-gradient(90deg, var(--bg), transparent); }
.ab-credits::after { right: 0; background: linear-gradient(270deg, var(--bg), transparent); }

.ab-marquee {
  display: flex;
  width: max-content;
  gap: 0;
  animation: ab-marquee 34s linear infinite;
}
.ab-marquee-track { display: flex; align-items: center; }
.ab-credits:hover .ab-marquee { animation-play-state: paused; }
@keyframes ab-marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .ab-marquee { animation: none; }
}
.ab-marquee-item {
  display: inline-flex;
  align-items: center;
  gap: 22px;
  padding: 0 22px;
  font-size: clamp(1.05rem, 2vw, 1.5rem);
  font-weight: 650;
  letter-spacing: -0.02em;
  color: var(--ink);
  opacity: 0.72;
  transition: opacity 0.3s ease, color 0.3s ease;
}
.ab-marquee-item:hover { opacity: 1; color: var(--accent); }
.ab-marquee-item::after {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--rw-red-1);
  opacity: 0.45;
}
.ab-marquee-item em {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  opacity: 0.7;
}

/* ============================================================
   3 — STORY TIMELINE
   ============================================================ */
.ab-story-head { margin-bottom: clamp(44px, 6vw, 72px); }

.ab-timeline {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: clamp(28px, 4vw, 46px);
  padding-left: 78px;
}
/* the rail */
.ab-timeline::before {
  content: "";
  position: absolute;
  left: 27px;
  top: 10px;
  bottom: 10px;
  width: 2px;
  background: var(--line-strong);
  border-radius: 2px;
}
.ab-rail-fill {
  position: absolute;
  left: 27px;
  top: 10px;
  width: 2px;
  height: 0;
  border-radius: 2px;
  background: linear-gradient(180deg, var(--rw-red-1), var(--rw-red-4));
  box-shadow: 0 0 14px -2px rgba(255, 47, 63, 0.6);
  transition: height 0.25s linear;
}

.ab-step { position: relative; }
.ab-step-age {
  position: absolute;
  left: -78px;
  top: 0;
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--card);
  border: 1px solid var(--line-strong);
  font-size: 1.02rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--muted);
  z-index: 2;
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1),
              background 0.45s ease, color 0.45s ease,
              border-color 0.45s ease, box-shadow 0.45s ease;
}
.ab-step.is-active .ab-step-age {
  background: var(--ink);
  color: #fdfaf4;
  border-color: var(--ink);
  transform: scale(1.1);
  box-shadow: 0 14px 30px -14px rgba(0, 0, 0, 0.55);
}

.ab-step-card {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: rgba(255, 253, 249, 0.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  overflow: hidden;
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1),
              box-shadow 0.4s ease, border-color 0.4s ease;
}
.ab-step.has-photo .ab-step-card { grid-template-columns: 1fr 292px; }
.ab-step.is-active .ab-step-card {
  transform: translateY(-4px);
  box-shadow: var(--shadow-soft);
  border-color: var(--line-strong);
}
.ab-step-body { padding: clamp(24px, 3vw, 34px); }
.ab-step-tag {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}
.ab-step-title {
  font-size: clamp(1.25rem, 2.3vw, 1.7rem);
  font-weight: 650;
  letter-spacing: -0.025em;
  line-height: 1.14;
  margin-bottom: 12px;
}
.ab-step-title em {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  letter-spacing: 0;
}
.ab-step-text { color: var(--muted); font-size: 0.98rem; max-width: 54ch; }
.ab-step-chips {
  margin-top: 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.ab-step-chips span {
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.6);
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--muted);
}
.ab-step-media { position: relative; overflow: hidden; min-height: 240px; }
.ab-step-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.06);
  transition: transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}
.ab-step.is-active .ab-step-media img { transform: scale(1); }

/* ============================================================
   4 — WHY I DO IT
   ============================================================ */
.ab-quote-wrap {
  max-width: 980px;
  margin: 0 auto clamp(56px, 7vw, 90px);
  text-align: center;
}
/* The quote alternates two voices: tight bold sans for the plain
   statements, Instrument Serif italic for the emotional beats. */
.ab-quote {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: clamp(1.6rem, 3.9vw, 2.9rem);
  line-height: 1.22;
  letter-spacing: -0.03em;
}
.ab-quote .seg-fancy {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.005em;
  /* the serif runs optically small next to the bold sans */
  font-size: 1.1em;
}
.ab-quote .w {
  display: inline-block;
  opacity: 0.16;
  transition: opacity 0.5s ease, color 0.5s ease;
}
.ab-quote .w.lit { opacity: 1; }
.ab-quote .seg-accent .w.lit { color: var(--accent); }
.ab-quote-by {
  margin-top: 26px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
}

.ab-reasons {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.ab-reason {
  position: relative;
  padding: clamp(26px, 3vw, 36px);
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: rgba(255, 253, 249, 0.72);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1),
              box-shadow 0.4s ease, border-color 0.4s ease;
}
.ab-reason::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: 0;
  transition: opacity 0.45s ease;
  background: radial-gradient(120% 90% at 50% 0%, color-mix(in srgb, var(--tone, var(--blush)) 70%, transparent), transparent 68%);
}
.ab-reason:hover,
.ab-reason.is-open {
  transform: translateY(-6px);
  box-shadow: var(--shadow-soft);
  border-color: var(--line-strong);
}
.ab-reason:hover::before,
.ab-reason.is-open::before { opacity: 1; }

.ab-reason-num {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 2.2rem;
  line-height: 1;
  color: var(--muted-2);
  opacity: 0.55;
  margin-bottom: 18px;
}
.ab-reason h3 {
  font-size: 1.14rem;
  font-weight: 680;
  letter-spacing: -0.02em;
  margin-bottom: 10px;
}
.ab-reason p { font-size: 0.94rem; color: var(--muted); }
.ab-reason-more {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.5s cubic-bezier(0.22, 1, 0.36, 1),
              opacity 0.4s ease;
  opacity: 0;
}
.ab-reason-more > div { overflow: hidden; }
.ab-reason.is-open .ab-reason-more { grid-template-rows: 1fr; opacity: 1; }
.ab-reason-more p { margin-top: 14px; }
.ab-reason-toggle {
  margin-top: 20px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0;
  border: none;
  background: none;
  font-size: 0.82rem;
  font-weight: 650;
  letter-spacing: 0.02em;
  color: var(--ink);
}
.ab-reason-toggle svg { transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1); }
.ab-reason.is-open .ab-reason-toggle svg { transform: rotate(45deg); }

/* ============================================================
   5 — PHOTO FRAMES (expanding accordion)
   ============================================================ */
.ab-frames-head { text-align: center; margin-bottom: clamp(38px, 5vw, 60px); }
.ab-frames-head .ab-h2 { margin: 0 auto; }
.ab-frames-head .ab-sub { margin-left: auto; margin-right: auto; }

.ab-frames {
  display: flex;
  gap: 12px;
  height: clamp(400px, 56vh, 560px);
}
.ab-frame {
  position: relative;
  flex: 1;
  min-width: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--card);
  cursor: pointer;
  padding: 0;
  text-align: left;
  transition: flex-grow 0.65s cubic-bezier(0.22, 1, 0.36, 1),
              box-shadow 0.5s ease;
}
.ab-frame.is-open {
  flex-grow: 3.4;
  box-shadow: var(--shadow-soft);
}
.ab-frame img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.86) contrast(1.02);
  transform: scale(1.08);
  transition: transform 0.9s cubic-bezier(0.22, 1, 0.36, 1), filter 0.6s ease;
}
.ab-frame.is-open img { transform: scale(1); filter: saturate(1) contrast(1); }
.ab-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 42%, rgba(12, 10, 8, 0.72) 100%);
  opacity: 0.85;
  transition: opacity 0.5s ease;
}
.ab-frame.is-open::after { opacity: 1; }

.ab-frame-label {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  padding: 22px;
  color: #fffdf9;
}
.ab-frame-label .k {
  display: block;
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  opacity: 0.7;
  margin-bottom: 6px;
}
.ab-frame-label .t {
  display: block;
  font-size: 1.02rem;
  font-weight: 650;
  letter-spacing: -0.015em;
}
/* collapsed to zero height so the closed frames don't reserve room
   for copy nobody can read yet */
.ab-frame-label .d {
  display: block;
  max-width: 34ch;
  font-size: 0.86rem;
  opacity: 0;
  max-height: 0;
  transform: translateY(8px);
  transition: opacity 0.4s ease, max-height 0.55s cubic-bezier(0.22, 1, 0.36, 1),
              margin-top 0.55s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}
.ab-frame.is-open .ab-frame-label .d {
  opacity: 0.82;
  max-height: 140px;
  margin-top: 8px;
  transform: none;
  transition-delay: 0.12s;
}

/* ============================================================
   6 — MISSION
   ============================================================ */
.ab-mission-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(30px, 5vw, 70px);
  align-items: center;
}
.ab-mission-photo {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
}
.ab-mission-photo img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: 50% 35%;
  will-change: transform;
}

.ab-pillars {
  margin-top: 34px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.ab-pillar {
  display: flex;
  gap: 16px;
  padding: 20px 22px;
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
  background: rgba(255, 253, 249, 0.7);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}
.ab-pillar:hover {
  transform: translateX(5px);
  box-shadow: var(--shadow-card);
  border-color: var(--line-strong);
}
.ab-pillar-icon {
  flex-shrink: 0;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  background: rgba(20, 20, 20, 0.05);
  color: var(--ink);
}
.ab-pillar-icon svg { width: 20px; height: 20px; }
.ab-pillar h3 { font-size: 1rem; font-weight: 680; letter-spacing: -0.015em; margin-bottom: 5px; }
.ab-pillar p { font-size: 0.9rem; color: var(--muted); }

/* ============================================================
   7 — FINAL CTA
   ============================================================ */
.ab-cta {
  position: relative;
  text-align: center;
  padding: clamp(90px, 13vh, 160px) 24px;
  overflow: hidden;
}
.ab-cta .ab-h2 { margin: 0 auto; max-width: 18ch; }
.ab-cta .ab-sub { margin-left: auto; margin-right: auto; text-align: center; }
.ab-cta-actions {
  margin-top: 36px;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
}
.ab-cta-orb {
  position: absolute;
  left: 50%;
  top: 50%;
  width: min(680px, 90vw);
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  z-index: -1;
  background: radial-gradient(closest-side, rgba(255, 157, 166, 0.32), rgba(255, 215, 216, 0.12) 55%, transparent 74%);
  animation: ab-orb 12s ease-in-out infinite alternate;
}
@keyframes ab-orb {
  from { transform: translate(-50%, -50%) scale(1); }
  to   { transform: translate(-50%, -50%) scale(1.1); }
}
@media (prefers-reduced-motion: reduce) {
  .ab-cta-orb { animation: none; }
}

/* ============================================================
   FOOTER
   ============================================================ */
.ab-footer {
  border-top: 1px solid var(--line);
  background: var(--glass);
  backdrop-filter: blur(16px);
  padding: 70px 24px 40px;
}
.ab-footer-inner {
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 44px;
}
.ab-footer .f-brand { font-weight: 800; letter-spacing: 0.14em; font-size: 1rem; }
.ab-footer .f-tag { margin-top: 12px; color: var(--muted); font-size: 0.92rem; max-width: 32ch; }
.ab-footer h4 {
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 16px;
}
.ab-footer nav { display: flex; flex-direction: column; gap: 10px; }
.ab-footer nav a { font-size: 0.94rem; color: var(--ink); opacity: 0.8; transition: opacity 0.2s ease; }
.ab-footer nav a:hover { opacity: 1; }
.ab-footer-bottom {
  max-width: 1180px;
  margin: 50px auto 0;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 0.82rem;
  color: var(--muted);
}

/* ============================================================
   MOBILE BOTTOM PILL NAV — shown only under 860px, where the
   top nav links collapse away.
   ============================================================ */
.ab-bottom-nav {
  display: none;
  position: fixed;
  bottom: 14px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 95;
  gap: 2px;
  padding: 8px;
  border-radius: 999px;
  background: rgba(250, 247, 240, 0.82);
  border: 1px solid var(--line);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 14px 40px -14px rgba(30, 25, 15, 0.38);
}
.ab-bottom-nav a {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: 8px 10px;
  border-radius: 999px;
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--muted);
  transition: color 0.25s ease, background 0.25s ease, transform 0.15s ease;
  min-width: 48px;
}
.ab-bottom-nav a:active { transform: scale(0.92); }
.ab-bottom-nav a svg { width: 20px; height: 20px; }
.ab-bottom-nav a.is-active {
  color: var(--ink);
  background: rgba(20, 20, 20, 0.07);
}
.ab-bottom-nav a.is-active::after {
  content: "";
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--ink);
  margin-top: 1px;
}

/* ============================================================
   REVEAL SYSTEM — hidden state only applied by JS, so a JS
   failure leaves everything visible.
   ============================================================ */
.ab-pending {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.55s cubic-bezier(0.22, 1, 0.36, 1), transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}
.ab-pending.is-in { opacity: 1; transform: none; }
.ab-pending-3d {
  opacity: 0;
  transform: translateY(38px) rotateX(5deg) scale(0.98);
  transform-origin: bottom center;
  transition: opacity 0.6s cubic-bezier(0.22, 1, 0.36, 1), transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}
.ab-pending-3d.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .ab-pending, .ab-pending-3d { transition: none; opacity: 1; transform: none; }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .ab-reasons { grid-template-columns: 1fr; }
  .ab-step.has-photo .ab-step-card { grid-template-columns: 1fr 230px; }
}

@media (max-width: 860px) {
  .ab-nav-links { display: none; }
  .ab-nav { padding: 10px 12px 10px 20px; }
  .ab-bottom-nav { display: flex; }
  /* keep the footer clear of the floating pill */
  .ab-footer { padding-bottom: 108px; }

  .ab-hero { min-height: auto; padding-top: calc(var(--nav-h) + 26px); }
  .ab-hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .ab-hero-stage { order: -1; max-width: 420px; margin: 0 auto; width: 100%; }
  .ab-chip { padding: 9px 14px; font-size: 0.72rem; gap: 7px; }
  .ab-chip span.k { font-size: 0.56rem; }
  .ab-chip-1 { left: -8px; }
  .ab-chip-2 { right: -6px; }
  .ab-chip-3 { left: 8px; }
  .ab-hero-meta { gap: 26px; }

  .ab-credits::before, .ab-credits::after { width: 60px; }

  .ab-timeline { padding-left: 58px; }
  .ab-timeline::before, .ab-rail-fill { left: 20px; }
  .ab-step-age { left: -58px; width: 42px; height: 42px; font-size: 0.9rem; }
  .ab-step.has-photo .ab-step-card { grid-template-columns: 1fr; }
  .ab-step-media { min-height: 220px; order: -1; }

  .ab-frames {
    height: auto;
    flex-direction: column;
  }
  .ab-frame { height: 260px; flex: none; }
  .ab-frame.is-open { flex: none; height: 340px; }
  .ab-frame .ab-frame-label .d { opacity: 0.8; max-height: 140px; margin-top: 8px; transform: none; }

  .ab-mission-grid { grid-template-columns: 1fr; }
  .ab-mission-photo { max-width: 460px; }

  .ab-footer-inner { grid-template-columns: 1fr 1fr; gap: 32px; }
}

@media (max-width: 560px) {
  .ab-section { padding: 74px 18px; }
  .ab-hero { padding-left: 18px; padding-right: 18px; }
  .ab-footer-inner { grid-template-columns: 1fr; }
  .ab-hero-actions .ab-btn { flex: 1; }
}
