/* Scroll-pinned book scene. All selectors are isolated to this section. */
.f1d-book-story { --fbs-paper:#f0ede4; --fbs-page-ratio:.7; --fbs-ink:#292721; position:relative; width:100%; min-height:var(--fbs-scroll-height,300svh); margin-top:var(--section-gap,80px); background:#000; color:#f5f5f7; overflow-anchor:none; }
.f1d-book-story * { box-sizing:border-box; }
.f1d-book-story .fbs-sticky { position:sticky; top:0; display:grid; grid-template-rows:auto minmax(0,1fr); width:100%; height:100svh; min-height:600px; padding:120px 4vw 25px; overflow:hidden; isolation:isolate; }
.f1d-book-story .fbs-title { z-index:2; width:100%; margin:0 0 26px; padding:0; color:#f5f5f7; font-family:var(--type-display,var(--display-font,-apple-system,BlinkMacSystemFont,"Helvetica Neue",Arial,sans-serif)); font-size:var(--type-heading,56px); font-weight:600; line-height:var(--type-heading-leading,1.08); letter-spacing:var(--type-heading-tracking,-.005em); text-align:center; }
.f1d-book-story .fbs-stage { position:relative; display:grid; min-height:0; place-items:center; width:100%; perspective:1600px; overflow:visible; }
.f1d-book-story .fbs-volume { position:relative; width:min(78vw,860px); aspect-ratio:1.4; transform:translateX(-25%) rotateX(8deg); transform-style:preserve-3d; will-change:transform; }
.f1d-book-story .fbs-board { position:absolute; inset:-3px; border-radius:3px 8px 8px 3px; background:#3e433b; box-shadow:0 14px 32px #0007,0 2px 3px #0009; transform:scaleX(.5); transform-origin:right center; }
.f1d-book-story .fbs-paper { position:absolute; top:0; width:50%; height:100%; border:1px solid #8c897d55; background:var(--fbs-paper); overflow:hidden; }
.f1d-book-story .fbs-left-page { left:0; border-radius:3px 0 0 3px; box-shadow:-2px 2px 0 #d5d0c4,-4px 4px 0 #bbb6ab,-6px 6px 0 #e7e2d6; opacity:0; visibility:hidden; clip-path:inset(0 0 0 100%); }
.f1d-book-story .fbs-right-page { right:0; border-radius:0 3px 3px 0; box-shadow:2px 2px 0 #d5d0c4,4px 4px 0 #bbb6ab,6px 6px 0 #e7e2d6; visibility:hidden; }
.f1d-book-story .fbs-scan[hidden] { display:none; }
.f1d-book-story .has-scan .fbs-cover-fallback { display:none; }
.f1d-book-story .fbs-scan { display:block; width:100%; height:100%; margin:0; border:0; object-fit:fill; opacity:1; user-select:none; pointer-events:none; mix-blend-mode:multiply; }
.f1d-book-story .fbs-left-page .fbs-scan { filter:blur(var(--fbs-blur,0px)); }
.f1d-book-story .fbs-left-page .fbs-scan { position:absolute; inset:0; }
.f1d-book-story .fbs-right-page .fbs-scan { filter:blur(var(--fbs-blur,0px)); }
.f1d-book-story .fbs-paper:after { content:""; position:absolute; z-index:2; inset:0; pointer-events:none; }
.f1d-book-story .fbs-left-page:after { background:linear-gradient(90deg,#0000 78%,#3c35260b 90%,#3027173d); }
.f1d-book-story .fbs-right-page:after { background:linear-gradient(90deg,#3027173d,#3c352608 7%,#fff0 17%,#fff0 97%,#42372214); }
.f1d-book-story .fbs-spine { position:absolute; z-index:7; left:calc(50% - 1px); top:0; bottom:0; width:2px; background:#554a3d7a; pointer-events:none; opacity:0; }
.f1d-book-story .fbs-leaf { position:absolute; z-index:4; top:0; left:50%; width:50%; height:100%; transform-origin:left center; transform-style:preserve-3d; will-change:transform; }
.f1d-book-story .fbs-leaf-two { z-index:3; }
.f1d-book-story :is(.fbs-leaf-one,.fbs-leaf-two) { visibility:hidden; }
.f1d-book-story .fbs-leaf-face { position:absolute; inset:0; background:var(--fbs-paper); border:1px solid #96908066; backface-visibility:hidden; -webkit-backface-visibility:hidden; overflow:hidden; }
.f1d-book-story .fbs-leaf-face:after { content:""; position:absolute; inset:0; background:linear-gradient(90deg,#3b301b24,#fff0 12%,#fff0 75%,#201c1514); pointer-events:none; }
.f1d-book-story .fbs-leaf-back { transform:rotateY(180deg); }
.f1d-book-story .fbs-cover { z-index:6; }
.f1d-book-story .fbs-cover .fbs-leaf-front { background:#3c453e; box-shadow:3px 0 0 #18251f,6px 3px 0 #111a16; }
.f1d-book-story .fbs-cover .fbs-scan { mix-blend-mode:normal; object-fit:fill; }
.f1d-book-story .fbs-cover .fbs-leaf-back { background:linear-gradient(90deg,#dfdbcd,#eee9dc 12%,#e9e4d7); }
.f1d-book-story .fbs-cover-fallback { display:flex; position:absolute; inset:0; flex-direction:column; justify-content:center; align-items:center; gap:24px; padding:12%; color:#f6f2dd; text-align:center; background:linear-gradient(100deg,#29342f,#48564a 6%,#414c41 95%,#25312a); }
.f1d-book-story .fbs-cover-fallback small { font-family:var(--type-text,-apple-system,sans-serif); font-size:12px; letter-spacing:.1em; text-transform:uppercase; }
.f1d-book-story .fbs-cover-fallback strong { font-family:Georgia,"Times New Roman",serif; font-size:clamp(19px,2.6vw,38px); font-weight:400; line-height:1.13; letter-spacing:0; }
.f1d-book-story .fbs-selected-quote { position:absolute; z-index:5; left:12%; top:30%; width:76%; min-height:0; display:flex; align-items:center; margin:0; padding:0; border:0; color:var(--fbs-ink); background:var(--fbs-paper); font-family:Georgia,"Times New Roman",serif!important; font-size:12px; font-weight:400; line-height:1.25; letter-spacing:0; text-align:left; opacity:var(--fbs-quote-opacity,0); white-space:pre-line; }
.f1d-book-story .fbs-selected-quote:before,.f1d-book-story .fbs-selected-quote:after { display:none; }
.f1d-book-story .fbs-scene-footer { position:relative; z-index:8; display:grid; justify-items:center; gap:8px; margin:20px auto 0; text-align:center; font-family:var(--type-text,-apple-system,BlinkMacSystemFont,"Helvetica Neue",Arial,sans-serif); }
.f1d-book-story .fbs-source { max-width:740px; margin:0; color:#a1a1a6; font-size:12px; line-height:1.45; letter-spacing:0; }
.f1d-book-story .fbs-selection-note { display:block; color:#c9bc99; }
.f1d-book-story .fbs-progress { width:110px; height:2px; background:#ffffff24; overflow:hidden; }
.f1d-book-story .fbs-progress i { display:block; width:100%; height:100%; background:#c9c2ad; transform:scaleX(var(--fbs-progress,0)); transform-origin:left; }
.f1d-book-story .fbs-motion-hint { margin:0; color:#89898e; font-size:11px; line-height:1.4; letter-spacing:.04em; }
.f1d-book-story .fbs-paper.is-empty:before,.f1d-book-story .fbs-leaf-face.is-empty:before { content:""; position:absolute; inset:12%; background:repeating-linear-gradient(#433b261c 0 1px,#0000 1px 10px); opacity:.35; }
.f1d-book-story.is-reduced-motion { min-height:100svh; }
.f1d-book-story.is-reduced-motion .fbs-sticky { position:relative; }
.f1d-book-story.is-reduced-motion .fbs-progress,.f1d-book-story.is-reduced-motion .fbs-motion-hint { display:none; }
@media(prefers-reduced-motion:reduce) { .f1d-book-story .fbs-volume,.f1d-book-story .fbs-leaf { will-change:auto; } }

.f1d-book-story .fbs-skip { color:#a1a1a6; font-size:11px; line-height:1.4; text-decoration:underline; text-underline-offset:3px; }
.f1d-book-story .fbs-skip:hover { color:#f5f5f7; }

/* A centered reading pause between the book scene and the tools chapter. */
.f1d-reflection {
  padding:clamp(224px,28svh,384px) 24px 0;
  background:#000;
  text-align:center;
  scroll-margin-top:120px;
}
.f1d-reflection-quotation {
  width:min(100%,920px);
  margin:0 auto 30px;
  padding:0;
  border:0;
}
.f1d-reflection-quotation p {
  margin:0;
  color:#f5f5f7;
  font-family:var(--type-display,var(--display-font,sans-serif));
  font-size:var(--type-subheading,28px);
  font-weight:600;
  line-height:var(--type-subheading-leading,1.14286);
  letter-spacing:.007em;
  text-wrap:balance;
}
.f1d-reflection-body {
  width:min(100%,760px);
  margin:0 auto;
  color:var(--type-body-color,#86868b);
  font-family:var(--type-text,var(--home-font,sans-serif));
  font-size:var(--type-body,17px);
  font-weight:400;
  line-height:1.6;
  letter-spacing:-.012em;
  text-wrap:pretty;
}
.f1d-reflection-body + .f1d-reflection-body {
  margin-top:24px;
}
.f1d-reflection + #tools {
  padding-top:clamp(224px,28svh,384px);
}
