/* =========================================================
   BSD Strategic Advisors — About Bruce Darringer
   Builds on styles.css and stage.css (Why Bruce card + timeline).

    1. Hero: light, grid lines, portrait set into the grid
    2. A career across the table (seats, then ledger + education)
    3. Every function, across strategies and structures
       (section 4, the value proposition, moved to the Why BSD page 2026-10-26)
   ========================================================= */

/* =========================================================
   1. HERO
   ========================================================= */
/* Podcast button: white like the homepage, but with the dark hover of the
   site's other buttons on light backgrounds (the homepage one turns light grey) */
@media (hover: hover) {
  .ab-hero .btn.btn--play::before { background: var(--ink); }
  .ab-hero .btn--light.btn--play:hover { color: var(--white); }
}
.ab-hero {
  /* same cell size as the grid drawn by site.js, so the portrait can sit on its lines */
  --cell: clamp(92px, 15.42vw, 266px);
  align-items: flex-start;
  color: var(--ink);
  background: linear-gradient(to bottom, var(--sand), var(--bg));
}
.ab-hero .ab-hero__grid { inset: 0; }
/* one column (the homepage hero splits into two) */
.ab-hero .ab-hero__content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0;
  padding-top: calc(var(--cell) * .87 + 40px);
}
.ab-hero__content .hero__title { color: var(--ink); }
.ab-hero__tag { margin-top: clamp(20px, 2vw, 31px); }
.ab-hero__intro { margin-top: clamp(48px, 8vw, 139px); max-width: 560px; }
.ab-hero__content .btn { margin-top: 48px; }

.ab-hero__portrait {
  position: relative;
  z-index: 1;
  margin: 0;
  overflow: hidden;
  background: #8a8d8f;
}
/* pinned to all four edges: iPhone Safari doesn't resolve height: 100% inside an
   aspect-ratio box and left a grey band under the photo (2026-10-29) */
.ab-hero__portrait img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 14%; }

@media (max-width: 899px) {
  .ab-hero { flex-direction: column; align-items: stretch; }
  .ab-hero__content { padding-top: 140px; padding-bottom: 48px; }
  .ab-hero__portrait { order: 2; margin-inline: var(--gutter); aspect-ratio: 4 / 5; }
}
@media (max-width: 699px) { .ab-hero { --cell: 140px; } }

@media (min-width: 900px) {
  /* two grid columns wide, from the second horizontal line to the bottom edge;
     its right edge sits on the same margin as the content of every other section */
  .ab-hero__portrait {
    position: absolute;
    right: max(var(--gutter), (100% - var(--maxw)) / 2);
    top: calc(var(--cell) * .87);
    bottom: 0;
    width: calc(var(--cell) * 2);
  }
  /* the text block sits in the middle of the portrait's height */
  .ab-hero { align-items: stretch; }
  .ab-hero .ab-hero__content {
    justify-content: center;
    padding-top: calc(var(--cell) * .87);
    padding-bottom: 0;
  }
  /* the text never runs under the portrait */
  .ab-hero__content > * { max-width: min(600px, calc(100% - var(--cell) * 2 - 48px)); }
}

/* =========================================================
   2. A CAREER ACROSS THE FIRM
   ========================================================= */
.ab-career { padding-block: var(--section-y); background: var(--bg); }

/* Ledger: years · firm · role, one firm per row */
.ab-ledger {
  list-style: none;
  margin: clamp(32px, 2.8vw, 44px) 0 0;
  padding: 0;
  border-bottom: 1px solid rgba(12, 15, 17, .18);
}
.ab-ledger__row {
  display: grid;
  gap: 6px;
  padding: 14px 0;
  border-top: 1px solid rgba(12, 15, 17, .18);
}
/* Two sizes, one rule (2026-10-29): dark lines (firm + position) 17px phones / 18px desktop,
   grey lines (years + details) 14px */
.ab-ledger__years {
  font-family: var(--f-display);
  font-size: 14px;
  line-height: 1.4;
  color: var(--grey-500);
  font-variant-numeric: tabular-nums;
}
.ab-ledger__firm { font-family: var(--f-display); font-size: 17px; line-height: 1.3; }
/* the whole ledger is PP Mori: Familjen at 14px read smaller than the other columns */
.ab-ledger__role { display: grid; font-family: var(--f-display); font-size: 14px; line-height: 1.35; }
.ab-ledger__role > span:first-child { font-size: 17px; line-height: 1.3; }
.ab-ledger__note { color: var(--grey-500); }
.ab-ledger__role > span { text-wrap: pretty; }   /* no single word left alone on a wrapped line */
.ab-ledger__role sup { font-size: .7em; line-height: 0; }

/* Seats: six cells, the current one dark */
.ab-seats { display: grid; gap: 16px; margin-top: clamp(24px, 2vw, 32px); }
.ab-seats__list {
  list-style: none;
  margin: 0; padding: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  border-top: 1px solid rgba(12, 15, 17, .18);
  border-left: 1px solid rgba(12, 15, 17, .18);
}
.ab-seats__list li {
  position: relative;
  display: grid;
  align-content: space-between;
  gap: 40px;
  min-height: 130px;
  padding: 20px;
  border-right: 1px solid rgba(12, 15, 17, .18);
  border-bottom: 1px solid rgba(12, 15, 17, .18);
}
.ab-seats__num { font-family: var(--f-display); font-size: 12px; color: var(--grey-500); }
.ab-seats__name { font-family: var(--f-display); font-size: var(--t-list); line-height: 1.2; }
/* The dark box: Strategic Advisor ("Now") by default, it moves to whichever seat is hovered */
.ab-seats__list li.is-dark { background: var(--ink); border-color: var(--ink); color: var(--white); }
.ab-seats__list li.is-dark .ab-seats__num { color: var(--grey-400); }
.ab-seats__now {
  position: absolute;
  top: 20px; right: 20px;
  font-family: var(--f-display);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: .1em;
  text-transform: uppercase;
}

/* Hovering a seat keeps its rows (grey band behind them) and fades the rest
   (about.js sets the classes). A soft ease-out: the change starts at once,
   then settles gently instead of moving at an even, mechanical speed. The fade and the band sit on the row's children / ::before
   so they never fight the row's own reveal transition. */
.ab-seats, .ab-ledger { --hover-t: .55s cubic-bezier(.22, 1, .36, 1); }
.ab-seats__list li { cursor: default; transition: background-color var(--hover-t), color var(--hover-t), border-color var(--hover-t); }
.ab-seats__num { transition: color var(--hover-t); }
.ab-seats__list li:focus-visible { outline: 1px solid var(--ink); outline-offset: 2px; }
/* once the entrance stagger is done, drop its per-box delays so hover responds at once */
.ab-seats__list.is-settled > li, .ab-ledger.is-settled > li { transition-delay: 0s !important; }
.ab-ledger__row { position: relative; isolation: isolate; }
.ab-ledger__row::before {
  content: "";
  position: absolute;
  inset: 0 -20px;
  z-index: -1;
  background: rgba(12, 15, 17, .07);
  opacity: 0;
  transition: opacity var(--hover-t);
}
.ab-ledger.is-filtering .ab-ledger__row.is-match::before { opacity: 1; }
.ab-ledger__row > * { transition: opacity var(--hover-t); }
.ab-ledger.is-filtering .ab-ledger__row:not(.is-match) > * { opacity: .25; }

/* Phones + tablets (stacked rows): firm and position read as one title block, a little air
   before the details (2026-10-29) */
@media (max-width: 899px) {
  .ab-ledger { margin-top: 64px; }   /* more air between the six boxes and the timeline */
  .ab-range { padding-top: 32px; }   /* timeline → "Every Function…" was too far apart (2026-10-29) */
  .ab-ledger__row { gap: 2px; }
  .ab-ledger__years { margin-bottom: 6px; }
  .ab-ledger__firm, .ab-ledger__role > span:first-child { line-height: 1.25; }
  .ab-ledger__role > span:first-child { margin-bottom: 6px; }
}

@media (min-width: 900px) {
  .ab-ledger__row {
    /* role column wide enough for King Street's committees on one line */
    /* years · firm · role. The role column starts where the right-hand column starts in the
       two-column sections (half the width + half the 48px gap), e.g. the paragraph below (2026-10-27) */
    grid-template-columns: 150px minmax(0, 1fr) calc(50% - 24px);
    align-items: baseline;
    column-gap: 24px;
    padding-block: 8px;
  }
  .ab-ledger__firm, .ab-ledger__role > span:first-child { font-size: 18px; }
  
  .ab-seats__list { grid-template-columns: repeat(6, 1fr); }
  .ab-seats__list li { min-height: 94px; padding: 16px 20px; gap: 22px; }
  .ab-seats__now { top: 20px; right: 22px; }
}

/* =========================================================
   3. ACROSS ASSET CLASSES AND STRUCTURES
   ========================================================= */
.ab-range { background: var(--bg); padding-block: var(--section-y); }
.ab-range__head { display: grid; gap: 24px; }
.ab-range__head .body-l { max-width: 620px; }
.ab-range__cols { display: grid; gap: 56px; margin-top: clamp(56px, 7vw, 120px); }
.ab-range__col { display: grid; gap: 24px; align-content: start; }
.ab-range__list {
  list-style: none;
  margin: 0; padding: 0;
  border-bottom: 1px solid rgba(12, 15, 17, .18);
}
.ab-range__list li {
  display: grid;
  grid-template-columns: 56px 1fr;
  align-items: baseline;
  padding-block: 20px;
  border-top: 1px solid rgba(12, 15, 17, .18);
  font-size: var(--t-body);
  line-height: 1.3;
}
.ab-range__num { font-family: var(--f-display); font-size: 12px; color: var(--grey-500); }

/* Group name as a button: a plain tag on desktop, a dropdown row on phones/tablets */
.ab-range__toggle {
  display: grid; grid-template-columns: 1fr 14px; align-items: center; column-gap: 16px;
  width: 100%; padding: 0; border: 0; background: none; color: inherit; text-align: left;
}
/* plus that turns into a minus (as on Why BSD) */
.ab-range__icon { position: relative; width: 14px; height: 14px; }
.ab-range__icon::before, .ab-range__icon::after {
  content: "";
  position: absolute;
  left: 0; top: 50%;
  width: 14px; height: 1px;
  background: currentColor;
  transition: transform .6s var(--ease-out);
}
.ab-range__icon::after { transform: rotate(90deg); }
.ab-range__toggle[aria-expanded="true"] .ab-range__icon::after { transform: rotate(0deg); }

@media (max-width: 899px) {
  .ab-range__cols { gap: 0; border-bottom: 1px solid rgba(12, 15, 17, .18); }
  .ab-range__col { gap: 0; border-top: 1px solid rgba(12, 15, 17, .18); }
  .ab-range__toggle { min-height: 64px; padding-block: 18px; -webkit-tap-highlight-color: transparent; }
  .ab-range__body { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .7s var(--ease-out); }
  .ab-range__toggle[aria-expanded="true"] + .ab-range__body { grid-template-rows: 1fr; }
  .ab-range__inner { overflow: hidden; }
  /* inside the dropdown: lighter rows, no stagger (it would run while closed) */
  .ab-range__list { border-bottom: 0; padding-bottom: 12px; }
  .ab-range__list li { grid-template-columns: 40px 1fr; padding-block: 12px; border-top-color: rgba(12, 15, 17, .1); }
  .ab-range__list.reveal-stagger > * { opacity: 1; transform: none; }
}

@media (min-width: 900px) {
  .ab-range__toggle { pointer-events: none; }
  .ab-range__icon { display: none; }
  .ab-range__head { grid-template-columns: 1fr 1fr; column-gap: 48px; }
  .ab-range__cols { grid-template-columns: repeat(3, 1fr); column-gap: 48px; }   /* functions, asset classes, fund products */
  .ab-range__head .body-l { padding-top: .3em; }
  .ab-range__list li { padding-block: 21px; }
}

/* The three lists as dark blue cards (Bruce 2026-11-02: "more visually appealing", nothing elaborate).
   Hover (desktop): the card under the cursor rises slightly; the other two fade and settle a little lower.
   Not a link, so no pointer or arrow. */
.ab-range__col {
  position: relative; overflow: hidden;
  border-radius: 24px;
  background: linear-gradient(176deg, #58778d 6%, #182127 92%);
  color: var(--white);
}
.ab-range__col .tag { color: var(--white); }
.ab-range__col .bullet { background: var(--white); }
.ab-range__col .ab-range__list { border-bottom: 0; }
.ab-range__col .ab-range__list li { border-top-color: rgba(255, 255, 255, .16); color: rgba(255, 255, 255, .82); }
.ab-range__col .ab-range__list li:first-child { border-top: 0; }
.ab-range__col .ab-range__num { color: rgba(255, 255, 255, .45); }
@media (min-width: 900px) and (hover: hover) and (prefers-reduced-motion: no-preference) {
  .ab-range__col { transition: transform .9s var(--ease-out), opacity .9s var(--ease-out); }
  .ab-range__col:hover { transform: translateY(-6px); }
  .ab-range__cols:has(.ab-range__col:hover) .ab-range__col:not(:hover) { transform: translateY(8px); opacity: .85; }
}
/* Phones/tablets: one card holding the three dropdowns, a fine line between them (2026-11-02) */
@media (max-width: 899px) {
  .ab-range__cols {
    gap: 0; border-bottom: 0; padding-inline: 24px;
    border-radius: 24px; overflow: hidden;
    background: linear-gradient(176deg, #58778d 6%, #182127 92%);
  }
  .ab-range__col { background: none; border-radius: 0; border-top: 1px solid rgba(255, 255, 255, .16); }
  .ab-range__col:first-child { border-top: 0; }
  .ab-range__col .ab-range__list li { border-top-color: rgba(255, 255, 255, .12); }
}
@media (min-width: 900px) {
  .ab-range__cols { column-gap: 24px; margin-top: clamp(48px, 4.6vw, 80px); }
  .ab-range__col { gap: 20px; padding: 40px 36px 16px; }
  .ab-range__list li { padding-block: 15px; }
}

/* LinkedIn icon on the portrait, top right (2026-10-29);
   44px tap area around the 20px icon */
.ab-hero__in {
  position: absolute; right: 12px; top: 12px; z-index: 1;
  display: grid; place-items: center; width: 44px; height: 44px;
  color: var(--white); opacity: .8; transition: opacity .3s ease;
}
@media (hover: hover) { .ab-hero__in:hover { opacity: 1; } }
