/* The Fable build (Q975, 22 Nov 2026): the graphics slotted into Home, /website/ and /seo/ per the overlay map Colin saw (21 Nov 22:3x).
   Loaded after perth.css. Everything is prefixed fb-; colours and fonts are the site's tokens. The live pieces are framed in by
   js/pages/fable.js; until then (and with Save-Data or no script) each slot shows its still, so nothing here ever jumps. */

/* ---------- a row of graphics under a section's words ---------- */
.fb-row{display:grid;gap:28px;align-items:center;margin-top:56px}
.fb-row--together{grid-template-columns:minmax(0,2fr) minmax(0,1.3333fr)}
.fb-row--numbers{grid-template-columns:minmax(0,1fr);margin-top:0;margin-bottom:22px}
/* 22 Nov 2026 (Q802 fix): Speed left this row (the hero film above already shows the dial); The numbers stands alone at its wide size */
.fb-row--numbers .fb-mod[data-fb-mod="numbers"]{max-width:820px;width:100%}
.fb-row--built{grid-template-columns:minmax(0,1fr) minmax(0,1.5fr);gap:40px;margin-top:72px}
.fb-row--built .p-connect{margin:0}
.fb-row--ai{grid-template-columns:minmax(0,1fr);max-width:940px;margin:64px auto 0}
.perth .fb-row--ai+.fb-modline{max-width:940px;margin:14px auto 0}
.perth .fb-modline{margin:14px 0 0}
.fb-row--numbers+.fb-modline{margin:-8px 0 56px}

/* ---------- one of Studio's board modules: a still, then the live module over it ---------- */
.fb-mod{position:relative;margin:0;min-width:0;aspect-ratio:var(--ar,3/2)}
.fb-mod picture,.fb-mod img{position:absolute;inset:0;width:100%;height:100%;display:block}
.fb-mod picture{transition:opacity .4s ease}
.fb-mod iframe{position:absolute;left:0;top:0;width:100%;height:100%;border:0;background:transparent;color-scheme:light;opacity:0;transform-origin:0 0;transition:opacity .4s ease}
.fb-mod.is-live iframe{opacity:1}
.fb-mod.is-live picture{opacity:0;pointer-events:none}

/* ---------- an ink drawing from the illustration bank, straight on the paper ---------- */
.fb-art{position:relative;isolation:isolate;margin:0;min-width:0;display:grid;place-items:center}
.fb-art--43{aspect-ratio:4/3}
.fb-art--11{aspect-ratio:1/1}
.fb-art--desk .fb-desk{height:auto;width:min(100%,480px)}
.fb-art--sky{margin-top:34px;max-width:440px}
.fb-art--sky>img{width:100%;height:auto}
.fb-art--sky::before{inset:-12% -6%}
.fb-art>img,.fb-desk{display:block;max-width:100%;max-height:100%;width:auto;height:100%;object-fit:contain}
/* a patch of the studio's grid paper behind it, fading out to the section */
.fb-art::before{content:"";position:absolute;inset:-7% -5%;z-index:-1;background-image:linear-gradient(var(--sd-grid-minor) 1px,transparent 1px),linear-gradient(90deg,var(--sd-grid-minor) 1px,transparent 1px);background-size:24px 24px;-webkit-mask-image:radial-gradient(closest-side,#000 52%,transparent);mask-image:radial-gradient(closest-side,#000 52%,transparent)}
.p-sec--paper .fb-art::before{opacity:.8}

/* "Never a template": the sample website on a drawn laptop and phone, inside the designer's desk */
.fb-desk{position:relative;aspect-ratio:900/1093;height:100%;width:auto}
.fb-desk-frame{position:absolute;inset:0;width:100%;height:100%}
.fb-desk-lap,.fb-desk-ph{position:absolute;display:block;background:var(--sd-paper);border:2px solid var(--sd-ink);overflow:hidden;box-shadow:3px 4px 0 var(--sd-ink)}
.fb-desk-lap{left:19%;top:25.5%;width:53%;border-radius:9px;transform:rotate(-1.5deg)}
.fb-desk-lap i{display:block;height:11px;border-bottom:2px solid var(--sd-ink);background:radial-gradient(circle at 9px 50%,var(--sd-ink) 2px,transparent 2.6px),radial-gradient(circle at 17px 50%,var(--sd-gold) 2px,transparent 2.6px),radial-gradient(circle at 25px 50%,var(--sd-ink) 2px,transparent 2.6px),var(--sd-paper)}
.fb-desk-lap img,.fb-desk-ph img{display:block;width:100%;height:auto}
.fb-desk-ph{left:58%;top:40.5%;width:22%;aspect-ratio:300/600;border-radius:14px;border-width:2.5px;transform:rotate(2.5deg)}
.fb-desk-ph img{height:100%;object-fit:cover;object-position:top}

/* ---------- How Studio works: the loop replaces the five cards ---------- */
.fb-how{padding-bottom:72px;overflow:hidden}
.fb-how .aml,.fb-loop{padding:0;background:none;overflow:visible}
.fb-loop .aml-stage{margin-top:-4px;aspect-ratio:1440/912}
.fb-loop .aml-foot{margin-top:0}
.fb-how-after{display:grid;grid-template-columns:minmax(0,1fr) 190px;gap:48px;align-items:center;margin-top:18px}
.perth .fb-how-after .p-loop-after{margin-top:0}
@media (max-width:760px){.fb-loop .aml-stage{aspect-ratio:350/690;margin-top:14px}}

/* ---------- the hero film sits where the two phones did ---------- */
/* the film's phone and star run off the right edge on a phone, as storyboarded; the section clips them so the page never scrolls sideways
   (the live page was 417 px wide at 390, found 21 Nov 22:48) */
.p-hero{overflow-x:clip}
.fb-film [data-home-hero-anim]{aspect-ratio:660/690;width:100%;position:relative}
/* the poster (Q802 R2) is the film's own frame at 13.3 s, WHOLE: the phone's sparkles and the dots run past the box, as in the film, so the
   picture is bigger than the box and placed by these offsets (% of the box, measured by the render) to sit exactly where the film draws */
.fb-film [data-home-hero-anim]>picture{position:absolute;inset:0;display:block;pointer-events:none}
.fb-film [data-home-hero-anim]>picture img{position:absolute;display:block;max-width:none;height:auto;left:-.755%;top:-3.971%;width:114.528%}
.fb-film .hha{max-width:none}
@media (max-width:480px){.fb-film [data-home-hero-anim]{aspect-ratio:700/946}.fb-film [data-home-hero-anim]>picture img{left:-1.143%;top:-14.991%;width:122.571%}}

/* ---------- narrower ---------- */
@media (max-width:1100px){
  .fb-row--together,.fb-row--built{grid-template-columns:minmax(0,1fr)}
  .fb-row--together .fb-art{max-width:460px;width:100%;margin:0 auto}
  .fb-row--built .p-connect{max-width:560px;width:100%;margin:0 auto}
}
@media (max-width:900px){
  .fb-row--numbers{grid-template-columns:minmax(0,1fr)}
  .fb-row--numbers .fb-mod[data-fb-mod="health"]{max-width:420px;width:100%;margin:0 auto}
  .fb-how-after{grid-template-columns:minmax(0,1fr);gap:8px}
  .fb-how-after .fb-art{max-width:200px;margin:0 auto}
  .fb-art--desk .fb-desk{width:min(100%,400px)}
  .fb-art--sky{max-width:380px}
}
@media (max-width:760px){
  .fb-row{gap:20px;margin-top:36px}
  .fb-row--numbers{margin-top:0}
  .fb-mod{aspect-ratio:var(--ar-ph,var(--ar,3/2))}
  .fb-row--numbers+.fb-modline{margin-bottom:36px}
}
@media (prefers-reduced-motion:reduce){.fb-mod picture,.fb-mod iframe{transition:none}}

/* ---------- /seo/ hero: the searches climbing to Google's first page ---------- */
@font-face{font-family:"Caveat FB";src:url(/assets/site/fable/fonts/caveat-700.woff2) format("woff2");font-weight:700;font-display:swap}
.fsm{margin:0;position:relative}
.fsm-svg{display:block;width:100%;height:auto;overflow:visible}
.fsm-svg--ph{display:none}
@media (max-width:760px){.fsm-svg--desk{display:none}.fsm-svg--ph{display:block}.fsm-svg--ph .fsm-h1{font-size:40px}.fsm-svg--ph .fsm-h2{font-size:21.5px}.fsm-svg--ph .fsm-q{font-size:20.5px}.fb-hero-art{max-width:400px;margin:0 auto}}
.fsm-svg text{font-family:var(--sd-font);fill:var(--sd-ink)}
.fsm-svg .fsm-hand{font-family:"Caveat FB",Caveat,"Segoe Print",cursive;font-weight:700}
.fsm-big{font-size:62px;font-weight:800;letter-spacing:-.04em}
.fsm-h1{font-size:44px}.fsm-h2{font-size:25px;fill:#3e5c55!important}
.fsm-lab{font-size:13.5px;font-weight:800;letter-spacing:.1em;fill:#1f7a55!important}
.fsm-sum{font-size:26px;fill:#1f7a55!important}
.fsm-tick{font-size:22px;fill:#5f6f69!important}
.fsm-was{font-size:21px;fill:#3e5c55!important}
.fsm-rank{font-size:23px;font-weight:800;letter-spacing:-.02em}
.fsm-climb{font-size:27px;fill:#1f7a55!important}
.fsm-q{font-size:24px}
/* the climb: each flag starts where the search was, then rises to where it is now */
/* (only once the script has armed it: with no script the picture is simply where the searches stand now) */
.fsm.is-armed:not(.is-on) .fsm-rise{transform:translateY(var(--dy))}
.fsm.is-armed:not(.is-on) .fsm-up,.fsm.is-armed:not(.is-on) .fsm-pole{opacity:0}
.fsm-rise{transition:transform 1.1s cubic-bezier(.2,1.1,.35,1) calc(var(--i)*.22s + .2s)}
.fsm-up,.fsm-pole{transition:opacity .4s ease calc(var(--i)*.22s + 1.1s)}
@media (prefers-reduced-motion:reduce){.fsm-rise,.fsm-up,.fsm-pole{transition:none}.fsm .fsm-rise{transform:none!important}.fsm .fsm-up,.fsm .fsm-pole{opacity:1!important}}

/* ---------- /website/ ---------- */
.fb-row--plan{grid-template-columns:minmax(0,2fr) minmax(0,1.3333fr);margin-top:52px}
.fb-row--plan+.fb-modline{margin-bottom:26px}
/* Built, connected, switched on: the steps, their drawing, then what Connect switches on */
.p-steps-grid.fb-steps3{grid-template-columns:minmax(0,1fr) minmax(0,.62fr) minmax(0,.95fr);gap:36px}
.fb-art--steps>img{height:auto;width:100%;max-width:300px}
/* Never redesign (22 Nov 2026, Q802 fix: the dials left this section, the tablet tells it): the words full width, as live */
#review>.wrap>.rf-fig{margin-top:48px}
@media (max-width:1100px){
  .fb-row--plan{grid-template-columns:minmax(0,1fr)}
  .fb-row--plan .fb-art{max-width:420px;width:100%;margin:0 auto}
  .p-steps-grid.fb-steps3{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}
  .p-steps-grid.fb-steps3 .fb-art--steps{grid-column:2;grid-row:1}
  .p-steps-grid.fb-steps3 .p-connect{grid-column:1/-1;max-width:560px;width:100%;margin:0 auto}
}
@media (max-width:760px){
  .p-steps-grid.fb-steps3{grid-template-columns:minmax(0,1fr)}
  .p-steps-grid.fb-steps3 .fb-art--steps{grid-column:auto;grid-row:auto;max-width:260px;margin:0 auto}
}
/* the down arrow on the summit keeps its own red */
.fsm-svg .fsm-climb.is-down{fill:#b42318!important}

/* ---------- /seo/ ---------- */
.fb-hero-art{min-width:0}
.fb-hero-art .p-hero-fine{margin-top:6px;text-align:right}
/* the Autonomous Marketing Loop as its own section: its drawing keeps its place before the script arrives */
.fb-amls .aml-stage{aspect-ratio:1440/912}
@media (max-width:760px){.fb-amls .aml-stage{aspect-ratio:350/690}}
/* three bills into one plan */
.fb-art--bills{margin-top:30px;max-width:330px}
.fb-art--bills>img{width:100%;height:auto}
.fb-bills-tag{position:absolute;left:30%;top:60%;transform:rotate(-5deg);font:700 21px/1 "Caveat FB",Caveat,"Segoe Print",cursive;color:var(--sd-ink);white-space:nowrap}
/* four questions: one small module a question */
.fb-four{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:22px}
.perth .fb-four+.fb-modline{margin:10px 0 36px}
/* /seo/ (Colin 22 Nov 09:57, Q802): the phones are gone, so each question sits under its own card, set as the phones' questions were */
.fb-four--q{list-style:none;margin:0;padding:0}
.fb-four--q>li{min-width:0}
.fb-four--q h3{margin-top:18px}
.fb-four--q li>p{margin-top:6px;font-size:15px;line-height:1.45}
.perth .fb-four--q+.fb-modline{margin:22px 0 0}
.fb-row--care{grid-template-columns:minmax(0,2fr) minmax(0,1.3333fr);margin-top:64px}
.fb-row--market{grid-template-columns:minmax(0,1.5fr) minmax(0,1fr);margin-top:64px}
@media (max-width:1100px){
  .fb-row--care,.fb-row--market{grid-template-columns:minmax(0,1fr)}
  .fb-row--care .fb-art,.fb-row--market .fb-art{max-width:420px;width:100%;margin:0 auto}
}
@media (max-width:900px){
  /* the four swipe sideways, as the site's own tabs do */
  .fb-four{display:flex;overflow-x:auto;scroll-snap-type:x mandatory;gap:14px;margin:0 -20px;padding:0 20px 8px;scrollbar-width:none}
  .fb-four::-webkit-scrollbar{display:none}
  .fb-four .fb-mod{flex:0 0 250px;scroll-snap-align:center}
  .fb-four--q>li{flex:0 0 250px;scroll-snap-align:center}
  .fb-four--q>li>.fb-mod{width:100%}
}
/* a 320 px phone: the WordPress section's row of dots sits under its big number instead of running off the paper (found 22 Nov, the site's own width check) */
@media (max-width:360px){.wpv .wpv-dots{width:100%;max-width:200px;height:auto;flex:0 1 auto;min-width:0}.wpv-dotsv{flex-wrap:wrap}.wpv .wpv-viz{flex-wrap:wrap;gap:6px 16px}.wpv .wpv-viz>svg{max-width:100%;height:auto}}

/* ---------- the other pages: one drawing from the bank where a page was bare ---------- */
.fb-art--area{margin-top:30px;max-width:400px}
.fb-art--area>img,.fb-art--lp>img{width:100%;height:auto}
.fb-art--lp{max-width:420px;width:100%;margin:0 auto}
.lp-hero-grid--art .lp-hero-copy{max-width:none}
@media (max-width:980px){.fb-art--lp{max-width:320px}.fb-art--area{max-width:320px}}
/* stacked (a tablet, a small laptop): a module keeps a sensible width instead of filling the whole column */
@media (max-width:1100px) and (min-width:761px){.fb-row--together .fb-mod,.fb-row--built .fb-mod,.fb-row--plan .fb-mod,.fb-row--care .fb-mod,.fb-row--market .fb-mod,.fb-row--numbers .fb-mod[data-fb-mod="numbers"]{max-width:820px;width:100%;margin-left:auto;margin-right:auto}}
/* the Monday report's stage is drawn wider than its column for the 3D phone; where the 3D never runs (a phone, a tablet, no script)
   that extra width must not push the page sideways (the rest of the 390 fix: with scripts off Home was 454 px wide) */
@media (max-width:1100px){.x-report-stage{overflow-x:clip}}
/* Home: the Socials module links to its own page (Q802, 22 Nov 2026: /socials/ is new, and no page is an orphan) */
.perth .fb-socials-more{margin:14px 0 0;text-align:right}
