/* The family office case page's own styles (3 Nov 2026, a proposal for Xavi). It shares the case pages' frame (the
   private equity page's hero, nav, table, questions, closing and sheet) and draws its own figures, so it reads as its
   own case and not as the AGSA page or the buyers' register with other numbers: the index as a field of 2,500 dots that a
   line sweeps once in the hero, the weekly screen as a board of answers with the 10-K passage behind each, before and
   now in two sentences on the Fathom band, and the week in four steps.
   The book's rules hold: the tokens and their pairs, PP Neue Montreal at 400 and 500, figures in Medium, spacing from its
   scale, radius 4, no shadows, no opacity on a brand colour. One Sea Mist per view: the hero's eyebrow; none below it. */

.vh{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}

/* ---------- 1. the hero's field: 2,500 dots on a canvas (case.js), Harbor Slate until the sweep has read them, white
   after; under it the two figures in Medium at the KPI's size, and one line ---------- */
.fo-field{grid-column:8/span 5;min-width:0;margin:0;display:flex;flex-direction:column;align-items:flex-end}
.fo-disc{display:block;width:100%;max-width:400px;aspect-ratio:1}
.fo-field figcaption{width:100%;max-width:400px;margin-top:24px}
/* the two figures, each in its own half with a hairline between them, at a size the wider one fits in its half, so they
   never read as one number (Xavi, 3 Nov: "se leen pegados... 2,50035") */
.fo-rec{display:grid;grid-template-columns:1fr 1fr;border-top:1px solid var(--slate);font-size:var(--t-lead);line-height:1.3;color:var(--grey)}
.fo-rec li{padding:16px 24px 0 0}
.fo-rec li + li{padding:16px 0 0 24px;border-left:1px solid var(--slate)}
.fo-rec b{display:block;font-size:clamp(40px,3.9vw,72px);font-weight:500;line-height:1;letter-spacing:-.02em;color:var(--white);margin-bottom:8px}
.fo-field figcaption > p{margin-top:16px;font-size:var(--t-lead);line-height:1.3;color:var(--grey)}
html.motion .fo-field{transition:opacity .9s ease .55s,transform 1s cubic-bezier(.2,.7,.2,1) .55s}
html.motion:not(.revealed) .fo-field{opacity:0;transform:translateY(10px)}
@media (max-width:900px){.fo-field{grid-column:1/-1;margin-top:var(--head);align-items:flex-start}.fo-disc,.fo-field figcaption{max-width:320px}}

/* ---------- 3. the weekly screen: the board (a table of answers) and the card of the answer chosen. A filled Deep Teal
   dot meets the criterion, a Coastal Grey ring doesn't; the answer chosen is ringed in Fathom. Told once (case.js): the
   cells wait as small grey points, then each criterion's column takes its answers in turn (c0 to c3), then the shortlist
   shows (s4). With the script the card shows one answer at a time, from the list under the table; without it the list
   stands as it is ---------- */
.fo-screen{margin:0;display:grid;grid-template-columns:minmax(0,7fr) minmax(0,5fr);column-gap:clamp(32px,4vw,64px);align-items:start;margin-top:var(--head)}
.fo-board,.fo-card{background:var(--white);border:1px solid var(--grey);border-radius:var(--r);padding:clamp(16px,2vw,32px)}
.fo-grid{width:100%;border-collapse:collapse;font-size:clamp(15px,1vw,18px);line-height:1.3}
.fo-grid th,.fo-grid td{padding:6px 4px;border-bottom:1px solid var(--grey);text-align:center;vertical-align:middle}
.fo-grid tbody tr:last-child > *{border-bottom:0}
.fo-grid thead th{border-bottom-color:var(--fathom);padding-bottom:12px}
.fo-grid tbody th{text-align:left;font-weight:500;white-space:nowrap;padding-right:12px}
.fo-cn{font-size:13px;font-weight:500;letter-spacing:.08em;text-transform:uppercase;color:var(--deep)}
.fo-cell{display:grid;place-items:center;width:44px;height:44px;margin:0 auto;border:0;border-radius:var(--r);background:none;cursor:pointer;outline-offset:-2px}
.fo-cell i{display:block;width:18px;height:18px;border-radius:50%;border:1.5px solid var(--grey);transition:background-color .4s ease,border-color .4s ease,transform .4s ease}
.fo-cell.y i{background:var(--deep);border-color:var(--deep)}
.fo-cell[aria-pressed="true"]{box-shadow:none;outline:2px solid var(--fathom)}
.fo-cell:hover{outline:1px solid var(--grey)}
.fo-cell[aria-pressed="true"]:hover{outline:2px solid var(--fathom)}
.fo-cell:hover i{transform:scale(1.15)}
.fo-cell:focus-visible{outline:2px solid var(--fathom);outline-offset:2px}
/* the answer chosen, marked in the headers: its criterion and its company in Fathom, underlined */
.fo-grid thead th.on .fo-cn,.fo-grid tbody th.on{color:var(--fathom);text-decoration:underline 2px;text-underline-offset:.35em}
.fo-grid thead th .fo-cn,.fo-grid tbody th{transition:color .3s ease}
.fo-list{text-align:right !important}
.fo-tag{display:inline-block;padding:4px 8px;border-radius:var(--r);background:var(--fathom);color:var(--white);font-size:13px;font-weight:500;letter-spacing:.06em;text-transform:uppercase;white-space:nowrap}
.fo-no{color:var(--deep)}
.fo-in > th{color:var(--fathom)}
.fo-key{display:flex;gap:24px;margin-top:16px;font-size:15px;color:var(--deep)}
.fo-key li{display:flex;align-items:center;gap:8px}
.fo-key .fo-tap{margin-left:auto;color:var(--fathom)}
.fo-key i{width:12px;height:12px;border-radius:50%;border:1.5px solid var(--grey)}
.fo-key i.y{background:var(--deep);border-color:var(--deep)}
.fo-quotes li,.fo-card{display:flex;flex-direction:column;gap:12px}
.fo-quotes li{padding-block:16px;border-bottom:1px solid var(--grey)}
.fo-crit{font-size:var(--t-h3);line-height:1.25}
.fo-v{font-weight:500;color:var(--deep)}
.fo-v.y{color:var(--fathom)}
.fo-v::before{content:"";display:inline-block;width:12px;height:12px;margin-right:8px;border-radius:50%;border:1.5px solid var(--grey);vertical-align:-.05em}
.fo-v.y::before{background:var(--deep);border-color:var(--deep)}
.fo-card blockquote,.fo-quotes blockquote{margin:4px 0 0;padding-left:16px;border-left:2px solid var(--deep);font-size:var(--t-lead);line-height:1.45;color:var(--fathom);text-wrap:pretty}
.fo-card{display:none}
.fo-card.swap > *{animation:fo-in calc(.5s*var(--pace,1) + .1s) cubic-bezier(.2,.7,.2,1) both}
.fo-card.swap > :nth-child(2){animation-delay:40ms}.fo-card.swap > :nth-child(3){animation-delay:80ms}.fo-card.swap > :nth-child(4){animation-delay:120ms}
@keyframes fo-in{from{opacity:0;transform:translateY(6px)}to{opacity:1;transform:none}}
@media (prefers-reduced-motion:reduce){.fo-card.swap > *{animation:none}}
.fo-screen.live .fo-card{display:flex}
.fo-screen.live .fo-quotes{display:none}
.fo-screen > figcaption{grid-column:1/-1;margin-top:24px;color:var(--deep)}
.fo-screen.js .fo-cell i{transition-delay:calc(var(--r-i,0)*70ms*var(--pace,1))}
.fo-screen.js .fo-grid tbody tr:nth-child(2){--r-i:1}.fo-screen.js .fo-grid tbody tr:nth-child(3){--r-i:2}
.fo-screen.js .fo-grid tbody tr:nth-child(4){--r-i:3}.fo-screen.js .fo-grid tbody tr:nth-child(5){--r-i:4}
.fo-screen.js:not(.c0) [data-c="0"] i,.fo-screen.js:not(.c1) [data-c="1"] i,
.fo-screen.js:not(.c2) [data-c="2"] i,.fo-screen.js:not(.c3) [data-c="3"] i{background:var(--grey);border-color:var(--grey);transform:scale(.35)}
.fo-screen.js .fo-tag,.fo-screen.js .fo-no,.fo-screen.js .fo-in > th{transition:background-color .5s ease,color .5s ease}
.fo-screen.js:not(.s4) .fo-tag{background:var(--white);color:var(--white)}
.fo-screen.js:not(.s4) .fo-no{color:var(--white)}
/* on a phone the board keeps its five columns inside the screen: the companies by their letter alone, the headers and
   the tag a size down */
@media (max-width:760px){
  .fo-screen{grid-template-columns:1fr;row-gap:24px}
  .fo-board{padding:12px}
  .fo-grid th,.fo-grid td{padding:4px 2px}
  .fo-co{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
  .fo-cell{width:34px;height:34px}
  .fo-cell i{width:16px;height:16px}
  .fo-grid tbody th{font-size:16px;padding-right:4px}
  .fo-cn{font-size:10px;letter-spacing:.02em}
  .fo-tag{font-size:10px;letter-spacing:.02em;padding:2px 4px}
  .fo-key{flex-wrap:wrap;row-gap:8px}
  .fo-key li{white-space:nowrap}
  .fo-key .fo-tap{flex-basis:100%;margin-left:0}
}

/* ---------- 4. before and now, on the flat Fathom band: two sentences at the display's size, before in Coastal Grey ---------- */
.fo-shift{background:var(--fathom);color:var(--white)}
.fo-shift .detail{color:var(--grey)}
.fo-pair{display:grid;grid-template-columns:1fr 1fr;column-gap:clamp(32px,5vw,96px);margin-top:var(--head)}
.fo-pair > div{border-top:1px solid var(--slate);padding-top:20px}
.fo-big{margin-top:16px;font-size:clamp(32px,3.6vw,64px);font-weight:400;line-height:1.08;letter-spacing:-.02em;text-wrap:balance}
.fo-pair > div:first-child .fo-big{color:var(--grey)}
.fo-big span{color:var(--grey)}
@media (max-width:760px){.fo-pair{grid-template-columns:1fr;row-gap:40px}}

/* ---------- 5. how it works: four steps on one rule, each with its number in Medium; then how it starts ---------- */
.fo-steps{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));column-gap:var(--gap);margin-top:var(--head)}
.fo-steps li{padding-top:20px;border-top:1px solid var(--fathom)}
.fo-n{display:block;font-size:clamp(40px,3.6vw,72px);font-weight:500;line-height:1;letter-spacing:-.02em;color:var(--deep)}
.fo-steps h3{margin:20px 0 8px}
.fo-steps p{font-size:var(--t-lead);line-height:1.45;color:var(--deep);text-wrap:pretty}
.fo-start{margin-top:var(--head);max-width:60ch;font-size:var(--t-lead);line-height:1.45}
.fo-start a{text-decoration:underline;text-decoration-thickness:1px;text-underline-offset:.2em;white-space:nowrap}
@media (max-width:900px){.fo-steps{grid-template-columns:1fr 1fr;row-gap:40px}}
@media (max-width:560px){.fo-steps{grid-template-columns:1fr}}
