/* ==========================================================================
   SMA Estimating — about.css
   About page sections only. Depends on tokens from base.css.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Page hero — lighter than the home hero on purpose. This page is a
      document about the firm, not a pitch, so it opens on paper.
   -------------------------------------------------------------------------- */
.ab-hero {
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  padding-block: clamp(2.75rem, 5vw, 4.5rem);
  position: relative;
  isolation: isolate;
}
.ab-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(1, 43, 127, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(1, 43, 127, 0.045) 1px, transparent 1px);
  background-size: 62px 62px;
  mask-image: radial-gradient(110% 90% at 78% 20%, #000 15%, transparent 75%);
}
.ab-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: clamp(2.25rem, 5vw, 4rem);
  align-items: center;
}
.ab-crumb {
  font-family: var(--sans);
  font-size: 0.78rem;
  color: var(--muted-2);
  margin-bottom: 1.1rem;
}
.ab-crumb a { color: var(--muted-2); text-decoration: none; }
.ab-crumb a:hover { color: var(--blue); }
.ab-crumb span { color: var(--line-strong); margin-inline: 0.45rem; }

.ab-hero h1 { max-width: 17ch; }
.ab-hero__lede {
  font-size: var(--fs-lede);
  color: var(--muted);
  max-width: 54ch;
  margin-top: 1.35rem;
  line-height: 1.62;
}

/* Company record — a spec sheet, echoing the estimate title block on the
   home page without repeating it. */
.record {
  background: var(--white);
  border: 1px solid var(--line);
  border-top: 4px solid var(--gold);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.record__head {
  padding: 1rem 1.35rem;
  border-bottom: 1px solid var(--line);
  font-family: var(--sans);
  font-weight: 700;
  font-size: 0.9rem;
}
.record dl { margin: 0; }
.record__row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1rem;
  align-items: baseline;
  padding: 0.72rem 1.35rem;
  border-bottom: 1px solid var(--line);
}
.record__row:last-child { border-bottom: 0; }
.record dt {
  font-family: var(--sans);
  font-size: 0.78rem;
  color: var(--muted-2);
}
.record dd {
  margin: 0;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
  text-align: right;
}

@media (max-width: 900px) {
  .ab-hero__grid { grid-template-columns: 1fr; gap: 2.25rem; }
  .ab-hero h1 { max-width: 20ch; }
}

/* --------------------------------------------------------------------------
   2. Story
   -------------------------------------------------------------------------- */
.story {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}
.story__aside { position: sticky; top: 110px; }
.story__aside .s-head { margin-bottom: 1.5rem; }
.pull {
  border-left: 3px solid var(--gold);
  padding: 0.35rem 0 0.35rem 1.15rem;
  font-size: 1.1rem;
  line-height: 1.55;
  color: var(--ink);
}
.pull cite {
  display: block;
  margin-top: 0.75rem;
  font-family: var(--sans);
  font-style: normal;
  font-size: 0.8rem;
  color: var(--muted-2);
}
.story__body p { color: var(--muted); }
.story__body p + p { margin-top: 1.05rem; }
.story__body strong { color: var(--ink); font-weight: 600; }

@media (max-width: 880px) {
  .story { grid-template-columns: 1fr; }
  .story__aside { position: static; }
}

/* --------------------------------------------------------------------------
   3. Timeline
   -------------------------------------------------------------------------- */
.tl { position: relative; padding-left: 0; max-width: 840px; }
.tl > li {
  position: relative;
  display: grid;
  grid-template-columns: 84px minmax(0, 1fr);
  gap: clamp(1rem, 3vw, 2rem);
  padding: 1.35rem 0;
  border-bottom: 1px solid var(--line);
}
.tl > li:last-child { border-bottom: 0; }
.tl__year {
  font-family: var(--sans);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
  color: var(--blue);
  font-variant-numeric: tabular-nums;
  position: relative;
  padding-left: 1.15rem;
}
.tl__year::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.45rem;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gold);
}
.tl h3 { font-size: 1.02rem; margin-bottom: 0.4rem; }
.tl p { color: var(--muted); font-size: var(--fs-sm); line-height: 1.6; max-width: 62ch; }

@media (max-width: 560px) {
  .tl > li { grid-template-columns: 1fr; gap: 0.5rem; }
}

/* --------------------------------------------------------------------------
   4. Team
   -------------------------------------------------------------------------- */
.team {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.person {
  background: var(--white);
  padding: clamp(1.5rem, 2.5vw, 1.9rem);
  display: flex;
  flex-direction: column;
}
.person__top {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  gap: 0.9rem;
  align-items: center;
  margin-bottom: 1.05rem;
}
.person__badge {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--blue);
  color: #fff;
  display: grid;
  place-items: center;
  font-family: var(--sans);
  font-weight: 700;
  font-size: 1.02rem;
  letter-spacing: -0.02em;
}
.person__name {
  font-family: var(--sans);
  font-weight: 700;
  font-size: 1.02rem;
  letter-spacing: -0.015em;
  display: block;
  line-height: 1.25;
}
.person__role {
  font-family: var(--sans);
  font-size: 0.82rem;
  color: var(--muted-2);
  display: block;
  margin-top: 3px;
}
.person p { font-size: var(--fs-sm); color: var(--muted); line-height: 1.62; }
.person__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: auto;
  padding-top: 1.15rem;
}
.person__chips li {
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--muted);
  border: 1px solid var(--line);
  background: var(--paper);
  border-radius: 100px;
  padding: 0.32rem 0.7rem;
}

/* --------------------------------------------------------------------------
   5. Standards / how we work
   -------------------------------------------------------------------------- */
.standards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: clamp(1.25rem, 2.5vw, 2rem);
  counter-reset: std;
}
.standards > li {
  position: relative;
  padding-top: 2.4rem;
  border-top: 2px solid var(--line-strong);
}
.standards > li:first-child { border-top-color: var(--gold); }
.standards > li::before {
  counter-increment: std;
  content: counter(std, decimal-leading-zero);
  position: absolute;
  top: 0.85rem;
  left: 0;
  font-family: var(--sans);
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--blue);
}
.standards h3 { margin-bottom: 0.55rem; }
.standards p { color: var(--muted); font-size: var(--fs-sm); line-height: 1.62; }

/* --------------------------------------------------------------------------
   6. Credentials
   -------------------------------------------------------------------------- */
.creds {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(330px, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.creds > li { background: var(--white); padding: 1.4rem 1.5rem; }
.creds h3 { font-size: 0.95rem; margin-bottom: 0.45rem; }
.creds p { font-size: 0.85rem; color: var(--muted); line-height: 1.55; }

/* --------------------------------------------------------------------------
   7. Coverage note strip
   -------------------------------------------------------------------------- */
.note-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: clamp(1.25rem, 3vw, 2.5rem);
  padding: clamp(1.75rem, 3vw, 2.4rem);
  background: var(--paper);
  border: 1px solid var(--line);
  border-left: 3px solid var(--gold);
  border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
}
.note-strip__n {
  font-family: var(--sans);
  font-weight: 700;
  font-size: clamp(1.5rem, 1.1rem + 1.4vw, 2.1rem);
  letter-spacing: -0.035em;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
  display: block;
  line-height: 1.05;
}
.note-strip__l {
  font-family: var(--sans);
  font-size: 0.8rem;
  color: var(--muted);
  display: block;
  margin-top: 0.45rem;
  line-height: 1.4;
}

/* ==========================================================================
   Animated review-flow figure (standards section)

   Shows a file moving through the firm: measured, checked by a second
   estimator, then issued. Illustrates the first and third commitments below
   it rather than decorating them.

   Track and travelling document are SVG; the station labels are HTML so they
   scale with the page instead of the viewBox. Nodes sit at 12.5 / 37.5 /
   62.5 / 87.5 percent so they line up with the four label columns at any
   width.

   One 10s loop, timing encoded as keyframe percentages so nothing drifts.
   Only opacity, transform and stroke-dashoffset animate.
   ========================================================================== */

.flow {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(1.25rem, 2.5vw, 2rem);
  margin: 0 0 clamp(2rem, 3.5vw, 3rem);
}
.flow__svg { width: 100%; height: auto; display: block; overflow: visible; }

.flow__labels {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.5rem;
  margin-top: 0.85rem;
}
.flow__labels li { text-align: center; }
.flow__t {
  display: block;
  font-family: var(--sans);
  font-weight: 600;
  font-size: clamp(0.76rem, 0.68rem + 0.3vw, 0.92rem);
  color: var(--ink);
  line-height: 1.3;
}
.flow__s {
  display: block;
  font-family: var(--sans);
  font-size: clamp(0.66rem, 0.6rem + 0.2vw, 0.76rem);
  color: var(--muted-2);
  margin-top: 2px;
  line-height: 1.35;
}

.flow__note {
  margin: 1rem 0 0;
  padding-top: 0.9rem;
  border-top: 1px solid var(--line);
  font-family: var(--sans);
  font-size: 0.78rem;
  color: var(--muted-2);
}
.flow__note strong { color: var(--ink); font-weight: 600; }

/* --- Static state: the finished flow ------------------------------------ */
.fl-track { fill: none; stroke: var(--line-strong); stroke-width: 2; }
.fl-done  { fill: none; stroke: var(--gold); stroke-width: 2.5; stroke-linecap: round; }
.fl-node  { fill: var(--white); stroke: var(--blue); stroke-width: 2; }
.fl-ring  { fill: none; stroke: var(--gold); stroke-width: 2.5; opacity: 0; }
.fl-tick  { fill: none; stroke: var(--blue); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.fl-doc   { fill: var(--white); stroke: var(--blue-900); stroke-width: 2; }
.fl-docline { stroke: #8ea3c9; stroke-width: 2; stroke-linecap: round; }
/* Tint via fill-opacity, not opacity — the reveal animation drives opacity,
   and would otherwise stamp this solid blue. */
.fl-sealbox { fill: var(--blue); fill-opacity: 0.09; }
.fl-sealtx  { font-family: var(--sans); font-size: 11px; font-weight: 700; letter-spacing: 0.06em; fill: var(--blue); }
.fl-carrier { opacity: 0; }

/* --- Animated ------------------------------------------------------------ */
@media (prefers-reduced-motion: no-preference) {
  .js .flow.is-in .fl-done    { stroke-dasharray: 600; animation: fl-fill 10s linear infinite; }
  .js .flow.is-in .fl-carrier { animation: fl-move 10s cubic-bezier(.65,0,.35,1) infinite; }
  .js .flow.is-in .fl-ring    { animation: fl-ring 10s linear infinite; }
  .js .flow.is-in .fl-ring--2 { animation-name: fl-ring2; }
  .js .flow.is-in .fl-ring--3 { animation-name: fl-ring3; }
  .js .flow.is-in .fl-ring--4 { animation-name: fl-ring4; }
  .js .flow.is-in .fl-seal    { animation: fl-seal 10s linear infinite; }
}

/* The gold progress line fills behind the document as it advances. */
@keyframes fl-fill {
  0%, 8%    { stroke-dashoffset: 600; }
  72%, 92%  { stroke-dashoffset: 0; opacity: 1; }
  97%, 100% { stroke-dashoffset: 0; opacity: 0; }
}

/* Four hops with a pause at each station, then off. */
@keyframes fl-move {
  0%, 6%    { opacity: 0; transform: translateX(0); }
  10%, 20%  { opacity: 1; transform: translateX(0); }
  30%, 40%  { opacity: 1; transform: translateX(200px); }
  50%, 60%  { opacity: 1; transform: translateX(400px); }
  70%, 92%  { opacity: 1; transform: translateX(600px); }
  97%, 100% { opacity: 0; transform: translateX(600px); }
}

@keyframes fl-ring {
  0%, 8%    { opacity: 0; transform: scale(0.6); }
  14%, 92%  { opacity: 1; transform: scale(1); }
  97%, 100% { opacity: 0; transform: scale(0.6); }
}
@keyframes fl-ring2 {
  0%, 28%   { opacity: 0; transform: scale(0.6); }
  34%, 92%  { opacity: 1; transform: scale(1); }
  97%, 100% { opacity: 0; transform: scale(0.6); }
}
@keyframes fl-ring3 {
  0%, 48%   { opacity: 0; transform: scale(0.6); }
  54%, 92%  { opacity: 1; transform: scale(1); }
  97%, 100% { opacity: 0; transform: scale(0.6); }
}
@keyframes fl-ring4 {
  0%, 68%   { opacity: 0; transform: scale(0.6); }
  74%, 92%  { opacity: 1; transform: scale(1); }
  97%, 100% { opacity: 0; transform: scale(0.6); }
}
@keyframes fl-seal {
  0%, 74%   { opacity: 0; }
  82%, 92%  { opacity: 1; }
  97%, 100% { opacity: 0; }
}