/* ============================================================
   ABOUT PAGE
   Depends on css/styles.css for tokens, nav, buttons, footer,
   reveal, cursor and the .visual-ring photo treatment.
============================================================ */

/* One vertical rhythm for the whole page:
   --ab-space  = padding above and below every content section
   --ab-head   = gap between a section title and what follows it  */
:root {
  --ab-space: 7rem;
  --ab-head: 3rem;
}
@media (max-width: 900px) { :root { --ab-space: 5rem; --ab-head: 2.5rem; } }
@media (max-width: 600px) { :root { --ab-space: 4rem; --ab-head: 2rem; } }

/* Nav sits on a dark hero from the first pixel */
.nav-solid {
  background: rgba(13, 24, 32, 0.96);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.nav-links a[aria-current="page"] { color: var(--red); }

/* ── HERO ──────────────────────────────────────────────────── */
#ab-hero {
  background: var(--navy);
  padding: 11rem 0 6.5rem;
  position: relative;
  overflow: hidden;
}
.ab-hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(246,246,227,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(246,246,227,0.025) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
}
#ab-hero::after {
  content: '';
  position: absolute;
  width: 620px;
  height: 620px;
  top: -180px;
  right: -140px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(207,57,23,0.12) 0%, transparent 65%);
  pointer-events: none;
}
.ab-hero-inner {
  position: relative;
  z-index: 2;
  max-width: 700px;
}

/* Decorative puzzle: three pieces coming together into a green-energy scene */
.ab-hero-puzzle {
  position: absolute;
  top: 52%;
  right: 5%;
  transform: translateY(-50%);
  width: clamp(280px, 30vw, 430px);
  aspect-ratio: 1;
  z-index: 1;
  pointer-events: none;
  opacity: 0.55;
}
.ab-hero-puzzle svg { width: 100%; height: 100%; display: block; overflow: visible; }
.pz-edge {
  fill: none;
  stroke: var(--cream);
  stroke-width: 1.5;
  stroke-opacity: 0.55;
  stroke-linejoin: round;
}
/* the last piece is still on its way in */
.pz-piece--moving {
  transform: translate(16px, 20px) rotate(5deg);
  transform-box: fill-box;
  transform-origin: center;
  animation: pz-settle 6s var(--ease) infinite alternate;
}
@keyframes pz-settle {
  0%, 20%  { transform: translate(16px, 20px) rotate(5deg); }
  80%, 100% { transform: translate(4px, 5px) rotate(1deg); }
}
@media (prefers-reduced-motion: reduce) {
  .pz-piece--moving { animation: none; }
}
@media (min-width: 901px) and (max-width: 1150px) {
  .ab-hero-puzzle {
    top: auto;
    bottom: -14%;
    right: 2%;
    transform: none;
    width: clamp(240px, 26vw, 300px);
    opacity: 0.4;
  }
}
.ab-hero-title {
  font-family: 'Unbounded', sans-serif;
  font-size: clamp(1.9rem, 4.2vw, 3.4rem);
  font-weight: 600;
  line-height: 1.18;
  color: var(--cream);
  margin-bottom: 1.75rem;
}
.ab-hero-title .accent { color: var(--red); }
.ab-hero-sub {
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--on-dark-dim);
  max-width: 620px;
}

/* ── STORY SECTIONS (market + system) ──────────────────────
   Titles share the container's left edge with the hero, the clients
   strip aside, and the approach section, so every heading lines up. */
.ab-split { padding: var(--ab-space) 0; }
#ab-market { background: var(--cream); }
#ab-system {
  background: var(--mint);
  border-top: 2px solid var(--teal);
}
.ab-story-main { max-width: 720px; }
.ab-story-main .section-title { margin-bottom: var(--ab-head); }

.ab-prose p {
  font-size: 1.08rem;
  line-height: 1.85;
  color: rgba(21,35,47,0.68);
  margin-bottom: 1.5rem;
}
.ab-prose p:last-child { margin-bottom: 0; }

/* In-text link (e.g. "The FIC Framework" → Services) */
.ab-link {
  color: var(--navy);
  font-weight: 700;
  border-bottom: 1px solid var(--red);
  transition: color var(--t), border-color var(--t);
}
.ab-link:hover { color: var(--red); }

/* Pull line: short accent bar above, left-aligned with the text */
.ab-prose .ab-pull {
  font-family: 'Unbounded', sans-serif;
  font-size: clamp(1.05rem, 1.7vw, 1.3rem);
  font-weight: 500;
  line-height: 1.55;
  color: var(--navy);
  margin: 2.5rem 0;
}
.ab-prose .ab-pull::before {
  content: '';
  display: block;
  width: 48px;
  height: 3px;
  background: var(--red);
  margin-bottom: 1.25rem;
}
.ab-prose .ab-pull--teal::before { background: var(--teal); }

/* Clients strip: same title and logo row as the homepage, minus the
   closing rule, with the bottom gap trimmed to match the space above. */
/* the logo row carries 2rem of its own top padding, so the bottom
   padding is trimmed by the same amount to keep the band balanced */
#clients { padding: var(--ab-space) 0 calc(var(--ab-space) - 2rem); }
#clients .clients-inner { padding-bottom: var(--ab-head); }
#clients .clients-logos {
  border-bottom: none;
  padding-bottom: 0;
}

/* ── FOUNDER ───────────────────────────────────────────────── */
#ab-founder {
  background: var(--navy);
  padding: var(--ab-space) 0;
}
.ab-founder-grid {
  display: grid;
  grid-template-columns: 420px 1fr;
  gap: 6rem;
  align-items: center;
}
.ab-founder-name {
  font-family: 'Unbounded', sans-serif;
  font-size: clamp(1.4rem, 2.4vw, 1.95rem);
  font-weight: 600;
  line-height: 1.3;
  color: var(--cream);
}
.ab-founder-role {
  font-family: 'Unbounded', sans-serif;
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--on-dark-dim);
  margin: 0.75rem 0 2rem;
}
.ab-founder-lead {
  font-size: 1.12rem;
  font-style: italic;
  line-height: 1.75;
  color: var(--on-dark);
  padding-left: 1.25rem;
  border-left: 3px solid var(--yellow);
  margin-bottom: 2rem;
}
.ab-founder-body p {
  font-size: 0.975rem;
  line-height: 1.85;
  color: var(--on-dark-dim);
}
.ab-founder-body p + p { margin-top: 1.1rem; }

/* ── APPROACH: a page from a field journal ─────────────────── */
#ab-approach {
  background: var(--cream);
  padding: var(--ab-space) 0;
  border-top: 2px solid var(--red);
}
#ab-approach .section-header {
  max-width: 760px;
  margin-bottom: var(--ab-head);
}

/* The page: ruled paper, a red margin line, punched holes, soft shadow.
   Every line of text is one --rule-gap tall, so it all sits on the rules. */
.journal-page {
  --rule-gap: 2rem;
  --rule-color: rgba(112,194,181,0.38);
  --margin-x: 7.5rem;
  position: relative;
  max-width: 980px;
  margin: 0;
  padding: var(--rule-gap) 3rem var(--rule-gap) calc(var(--margin-x) + 2.5rem);
  background-color: #FFFEF8;
  background-image:
    linear-gradient(90deg, transparent calc(var(--margin-x) - 1px), rgba(207,57,23,0.45) calc(var(--margin-x) - 1px), rgba(207,57,23,0.45) var(--margin-x), transparent var(--margin-x)),
    repeating-linear-gradient(to bottom,
      transparent 0, transparent calc(var(--rule-gap) - 7px),
      var(--rule-color) calc(var(--rule-gap) - 7px), var(--rule-color) calc(var(--rule-gap) - 6px),
      transparent calc(var(--rule-gap) - 6px), transparent var(--rule-gap));
  background-origin: padding-box;
  border: 1px solid rgba(21,35,47,0.08);
  border-radius: 2px;
  box-shadow:
    6px 6px 0 -1px var(--cream),
    6px 6px 0 0 rgba(21,35,47,0.08),
    0 24px 50px rgba(21,35,47,0.08);
}
/* punched holes down the left edge */
.journal-page::before {
  content: '';
  position: absolute;
  top: 0; bottom: 0; left: 1.6rem;
  width: 14px;
  background: radial-gradient(circle, var(--cream) 6px, rgba(21,35,47,0.12) 7px, transparent 8px) center 3rem / 14px 7.5rem repeat-y;
}

/* header row: its dark rule replaces the teal line of that row */
.journal-head {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  height: var(--rule-gap);
  line-height: var(--rule-gap);
  background: linear-gradient(var(--navy), var(--navy)) left bottom 5px / 100% 2px no-repeat;
  font-family: 'Unbounded', sans-serif;
  font-size: 0.55rem;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: rgba(21,35,47,0.5);
}

.journal { list-style: none; }

.entry {
  --accent: var(--red);
  position: relative;
  padding-top: var(--rule-gap); /* one empty line between entries */
}
.entry:nth-child(2) { --accent: #1D443D; }
.entry:nth-child(3) { --accent: #C9A21B; }
.entry:nth-child(4) { --accent: var(--navy); }

/* the number sits in the margin, on the same line as the title */
.entry-no {
  position: absolute;
  top: var(--rule-gap);
  left: calc(-1 * var(--margin-x) - 2.5rem + 2.75rem);
  width: calc(var(--margin-x) - 3.5rem);
  text-align: right;
  font-family: 'Unbounded', sans-serif;
  font-size: 1.5rem;
  font-weight: 400;
  line-height: var(--rule-gap);
  color: var(--accent);
}

.entry-body { max-width: 640px; }

.entry-title {
  font-family: 'Unbounded', sans-serif;
  font-size: clamp(1.02rem, 1.8vw, 1.3rem);
  font-weight: 600;
  line-height: var(--rule-gap);
  color: var(--navy);
}
/* highlighter stroke */
.entry-title mark {
  color: inherit;
  background: linear-gradient(to top, transparent 0 18%, rgba(246,205,69,0.55) 18% 52%, transparent 52%);
  padding: 0 0.1em;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

.entry-text {
  font-size: 1.02rem;
  font-style: italic;
  line-height: var(--rule-gap);
  color: rgba(21,35,47,0.72);
}

/* Handwritten signature: two ruled lines tall, with the baseline of the
   handwriting (52% down the image) resting on the second rule. */
.journal-sign {
  --sig-h: 72px;
  position: relative;
  height: calc(var(--rule-gap) * 2);
  margin-top: var(--rule-gap);
}
.journal-sign img {
  position: absolute;
  right: 0;
  top: calc(var(--rule-gap) * 2 - 6.5px - var(--sig-h) * 0.52);
  height: var(--sig-h);
  width: auto;
}

/* ── CTA ───────────────────────────────────────────────────── */
#ab-cta {
  background: var(--red);
  padding: var(--ab-space) 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}
#ab-cta::before {
  content: '';
  position: absolute;
  width: 700px; height: 700px;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,0.08) 0%, transparent 65%);
  pointer-events: none;
}
#ab-cta .cta-headline { margin-bottom: 2.5rem; }

/* ── RESPONSIVE ────────────────────────────────────────────── */
@media (max-width: 1000px) {
  .ab-founder-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  #ab-founder .about-visual { justify-content: flex-start; }
}

@media (max-width: 900px) {
  #ab-hero { padding: 9rem 0 5rem; }
  .ab-hero-puzzle {
    top: auto;
    bottom: -10%;
    right: -12%;
    transform: none;
    width: clamp(240px, 40vw, 320px);
    opacity: 0.22;
  }
  .journal-page {
    --margin-x: 4.5rem;
    padding: var(--rule-gap) 1.75rem var(--rule-gap) calc(var(--margin-x) + 1.5rem);
  }
  .journal-page::before { left: 0.9rem; }
  .entry-no {
    left: calc(-1 * var(--margin-x) - 1.5rem + 1.9rem);
    width: calc(var(--margin-x) - 2.4rem);
    font-size: 1.25rem;
  }
}

@media (max-width: 600px) {
  #ab-hero { padding: 8rem 0 4rem; }
  .ab-hero-title { font-size: 1.65rem; line-height: 1.3; }
  .ab-hero-sub { font-size: 0.92rem; }
  #clients .clients-logos { border-bottom: none; }
  .journal-sign { --sig-h: 56px; }
  .ab-prose p { font-size: 0.98rem; }
  .entry-text { font-size: 0.95rem; }
  .ab-hero-puzzle { width: 240px; right: -22%; bottom: -8%; opacity: 0.16; }
  .journal-page {
    --margin-x: 3rem;
    padding: var(--rule-gap) 1.25rem var(--rule-gap) calc(var(--margin-x) + 1rem);
  }
  .journal-page::before { display: none; }
  .journal-head span:last-child { display: none; }
  .entry-no {
    left: calc(-1 * var(--margin-x) - 1rem + 0.5rem);
    width: calc(var(--margin-x) - 1rem);
    font-size: 1rem;
  }
  .ab-founder-lead { font-size: 1rem; }
  .ab-prose .ab-pull { margin: 1.5rem 0; }
}
