/* ==========================================================================
   STAY FREE ENTERPRISE - /about page
   Layout glue for storyboard beats 1-7 (plan §5 "/about (founder)").
   Consumes tokens.css custom properties only, reuses section-shells.css
   skeletons. Zero WebGL: the margin needle and the boarding-pass reveal
   are CSS/SVG + GSAP ScrollTrigger only (about-fx.js). Palette governance:
   coral = CTA only; gold = foil/material, never additive glow; shadows are
   taupe-tinted elevation tokens.
   ========================================================================== */

/* =============================================================== BEAT 1 HERO */
.sf-ab-hero { padding-block: var(--sf-space-9) var(--sf-space-8); overflow: hidden; }
.sf-ab-hero__grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: var(--sf-space-7);
  align-items: center;
}
.sf-ab-hero__copy { max-width: 42rem; }
.sf-ab-hero__title { margin-bottom: var(--sf-space-4); font-variation-settings: 'opsz' var(--sf-fraunces-opsz-hero), 'SOFT' var(--sf-fraunces-soft-hero), 'WONK' 0; }
.sf-ab-hero__sub {
  font-size: var(--sf-text-md);
  color: var(--sf-text-secondary);
  max-width: 34rem;
  margin-bottom: var(--sf-space-5);
}
.sf-ab-hero__cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sf-space-4); }
.sf-ab-hero__note { font-size: var(--sf-text-sm); color: var(--sf-text-secondary); }

/* shared "capability image pending" plate pattern, reused per-beat below with
   its own class scope (page-scoped convention, matches /credit-repair) */
.sf-ab-hero__media,
.sf-ab-climb__media,
.sf-ab-meaning__media { position: relative; }
.sf-ab-hero__plate,
.sf-ab-climb__plate,
.sf-ab-meaning__plate {
  aspect-ratio: 4 / 5;
  border-radius: var(--sf-radius-lg);
  overflow: hidden;
  box-shadow: var(--sf-elevation-3);
}
.sf-ab-hero__plate img,
.sf-ab-climb__plate img,
.sf-ab-meaning__plate img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.sf-ab-hero__plate-label,
.sf-ab-climb__plate-label,
.sf-ab-meaning__plate-label {
  font-family: var(--sf-font-display);
  font-size: var(--sf-text-lg);
  color: var(--sf-taupe);
}
.sf-ab-hero__plate-sub,
.sf-ab-climb__plate-sub,
.sf-ab-meaning__plate-sub {
  font-size: var(--sf-text-xs);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--sf-taupe);
  max-width: 22ch;
}

@media (max-width: 900px) {
  .sf-ab-hero__grid { grid-template-columns: 1fr; gap: var(--sf-space-6); }
  .sf-ab-hero__media { order: -1; max-width: 22rem; }
}

/* =============================================================== THE THREAD */
/* Wrapper spanning beats 2-3: gives about-fx.js a single scroll range to
   drive the margin needle's rotation + fade across the whole narrative arc. */
.sf-ab-thread { position: relative; }

/* the margin needle: fixed to the viewport edge (a literal margin), not the
   page flow, so it threads past section background changes untouched.
   Purely decorative -> aria-hidden; hidden entirely under reduced motion
   and on viewports too narrow to spare a margin. */
.sf-ab-needle {
  position: fixed;
  left: clamp(10px, 2.2vw, 30px);
  top: 50%;
  transform: translateY(-50%);
  z-index: 30;
  width: 30px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sf-space-2);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s var(--sf-ease-out);
}
.sf-ab-needle.is-visible { opacity: 1; }
.sf-ab-needle__svg { width: 100%; height: auto; display: block; filter: drop-shadow(0 2px 3px rgba(138, 128, 116, 0.32)); }
.sf-ab-needle__blade,
.sf-ab-needle__tail {
  fill: #8A6B5A; /* resting = rust-taupe (stuck); JS animates toward gold (free) */
  transition: fill var(--sf-dur-slow) var(--sf-ease-out);
}
.sf-ab-needle__tail { opacity: 0.7; }
.sf-ab-needle__hub { fill: var(--sf-gold); stroke: var(--sf-teal); stroke-width: 1.5; }
.sf-ab-needle__word {
  font-family: var(--sf-font-body);
  font-size: 0.6rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  writing-mode: vertical-rl;
  color: var(--sf-taupe);
  transition: color var(--sf-dur-slow) var(--sf-ease-out);
}
.sf-ab-needle__word.is-free { color: var(--sf-teal); }

@media (max-width: 1100px) {
  .sf-ab-needle { display: none; } /* no margin to spare; the narrative reads fine without it */
}
@media (prefers-reduced-motion: reduce) {
  .sf-ab-needle { display: none; }
}

/* ============================================================ BEAT 2 TURN */
.sf-ab-turn__head { margin-bottom: var(--sf-space-4); }

/* editable-block marker: Holly's real bio is pending (BRIEF §"still open").
   Visible dashed-outline + label convention, same visual language as the
   capability-image plates and the testimonial NOT-REAL watermark, so it
   reads as "honest placeholder," not a bug. Never shown as an error state. */
.sf-ab-bio-block,
blockquote.sf-ab-quote__text[data-bio-pending="true"],
p[data-bio-pending="true"] {
  position: relative;
  outline: 2px dashed var(--sf-taupe);
  outline-offset: 10px;
  border-radius: var(--sf-radius-sm);
  /* the label (::before, translated above the box) and the offset outline
     both render OUTSIDE the normal box model, so plain block margins won't
     reserve room for them on their own; explicit top/bottom margin here
     is what keeps them clear of neighbouring copy regardless of which
     beat's spacing rules apply around them. */
  margin-block: var(--sf-space-7) var(--sf-space-5);
}
.sf-ab-bio-block::before,
blockquote.sf-ab-quote__text[data-bio-pending="true"]::before,
p[data-bio-pending="true"]::before {
  content: "Editable, Holly's bio pending";
  position: absolute;
  top: -10px;
  left: var(--sf-space-3);
  transform: translateY(-100%);
  font-size: var(--sf-text-xs);
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--sf-charcoal);
  background: var(--sf-ivory);
  border: 1px solid var(--sf-taupe);
  padding: 2px 8px;
  border-radius: var(--sf-radius-sm);
  white-space: nowrap;
}
.sf-ab-bio-block p + p { margin-top: var(--sf-space-3); }

/* ============================================================ BEAT 3 CLIMB */
.sf-ab-climb__copy p { margin-top: var(--sf-space-3); }
.sf-ab-climb__copy h2 { margin-bottom: var(--sf-space-3); }
/* higher specificity than .sf-ab-climb__copy p above so the pending-marker's
   own top margin (label clearance) isn't clobbered by the generic paragraph
   rhythm rule here */
.sf-ab-climb__copy p[data-bio-pending="true"] { margin-top: var(--sf-space-7); }
@media (max-width: 820px) { .sf-ab-climb__media { max-width: 22rem; margin-inline: auto; } }

/* ========================================================== BEAT 4 MEANING */
.sf-ab-meaning { position: relative; overflow: hidden; }
.sf-ab-meaning__grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: var(--sf-space-7);
  align-items: center;
  text-align: left;
}
.sf-ab-meaning__copy p { margin-top: var(--sf-space-3); }
.sf-ab-meaning__copy h2 { margin-bottom: var(--sf-space-3); }
@media (max-width: 900px) {
  .sf-ab-meaning__grid { grid-template-columns: 1fr; }
  .sf-ab-meaning__media { order: -1; max-width: 22rem; margin-inline: auto; }
}

/* boarding-pass host needs its own bleed background painted underneath the
   panels/content (the shared .sf-shell--full-bleed bg lives behind both). */
.sf-ab-meaning.sf-boarding-pass { border-radius: 0; }
.sf-ab-meaning .sf-shell__bleed-bg { background: linear-gradient(135deg, var(--sf-sand), var(--sf-ivory) 65%); }
.sf-ab-meaning .sf-boarding-pass__content { position: relative; z-index: 1; }
.sf-ab-meaning .sf-container { text-align: left; padding-block: var(--sf-space-8); }

/* ======================================================= BEAT 5 AUTHORITY */
.sf-ab-authority__head { max-width: 40rem; margin-bottom: var(--sf-space-6); }
.sf-ab-authority__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--sf-space-3);
}
.sf-ab-badge {
  border: 1px solid rgba(14, 74, 60, 0.20);
  border-left: 3px solid var(--sf-gold); /* rectangular badge, gold accent as material */
  border-radius: var(--sf-radius-sm);    /* rectangular, explicitly NOT a rosette */
  background: var(--sf-ivory);
  padding: var(--sf-space-4);
  box-shadow: var(--sf-elevation-1);
  display: grid;
  gap: 6px;
}
.sf-ab-badge__label {
  font-family: var(--sf-font-display);
  font-size: var(--sf-text-md);
  font-weight: 540;
  color: var(--sf-charcoal);
  line-height: 1.15;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--sf-space-2);
}
.sf-ab-badge__desc { font-size: var(--sf-text-sm); color: var(--sf-text-secondary); max-width: none; }
.sf-ab-pending-tag {
  font-family: var(--sf-font-body);
  font-size: 0.6rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--sf-taupe);
  background: var(--sf-sand);
  border: 1px solid rgba(138, 128, 116, 0.3);
  padding: 2px 7px;
  border-radius: 999px;
}
@media (max-width: 820px) {
  .sf-ab-authority__grid { grid-template-columns: 1fr; }
}

/* ============================================================ BEAT 6 QUOTE */
.sf-ab-quote__text {
  font-family: var(--sf-font-display);
  font-style: italic;
  font-weight: 460;
  font-size: clamp(var(--sf-text-lg), 3.4vw, var(--sf-text-2xl));
  line-height: 1.35;
  color: var(--sf-text-primary);
  margin-bottom: var(--sf-space-4);
  padding: var(--sf-space-4);
}
.sf-ab-quote__cite {
  display: block;
  font-style: normal;
  font-size: var(--sf-text-sm);
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--sf-teal);
}

/* ============================================================= BEAT 7 CLOSE */
.sf-ab-close__inner { max-width: 38rem; margin-inline: auto; text-align: center; }
.sf-ab-close__inner h2 { margin-bottom: var(--sf-space-3); }
.sf-ab-close__inner p { margin-inline: auto; margin-bottom: var(--sf-space-5); color: var(--sf-text-secondary); }

/* ---- reduced motion: kill the transition polish this page owns ---- */
@media (prefers-reduced-motion: reduce) {
  .sf-ab-needle__blade,
  .sf-ab-needle__tail,
  .sf-ab-needle__word { transition: none !important; }
}
