/* ReadMe Mortgage motion-plus (2026-11-21): calm energy layer.
   Companion to the motion-plus IIFEs appended to assets/motion.js.
   Hidden pre-motion states exist ONLY under html.rmx-motion, added by JS
   after observers are armed; no-JS / reduced-motion = everything visible.
   The oak seal is never transformed: only a soft light fades in behind it. */

/* ---- sequenced reveals: glossary groups, start-here steps, opt-ins ---- */
html.rmx-motion .rmx-reveal{opacity:0;transform:translateY(12px)}
html.rmx-motion .rmx-reveal.rmx-in{opacity:1;transform:none;transition:opacity .65s ease,transform .65s cubic-bezier(.22,.61,.36,1)}

/* ---- footer oak seal: a soft glow settles behind the mark, seal still ---- */
footer .brand-icon{transition:filter 1.4s ease}
footer .brand-icon.rmx-seal-lit{filter:drop-shadow(0 0 13px rgba(216,164,65,.5))}

@media (prefers-reduced-motion: reduce){
  html.rmx-motion .rmx-reveal{opacity:1;transform:none;transition:none}
  footer .brand-icon{transition:none}
}

/* ===== 3D depth layer (2026-11-21): craftsman paper depth, sitewide =====
   Companion to the motion-3d IIFEs appended to assets/motion.js.
   The vocabulary is paper, not plastic: stacked sheets with hard offset
   edges in broadsheet tones, a spine and page block on the guide "books",
   inset wells and raised slabs on the calculator instruments, a clipboard
   board under the Start Here steps, and light raking across card faces
   (the sheen position arrives as --d3d-mx/--d3d-my from JS; at rest the
   highlight sits off-card, so no-JS and touch see plain depth only).
   Transform/opacity only; every animated piece is gated by JS classes
   that are never added under prefers-reduced-motion, and the media
   query at the bottom stills everything regardless. */

/* ---- card depth + raking light (guides, pillars, glossary, blog, areas) ---- */
.card,.pl-card,.pl-term,.contact-card,.vm-contact-card{
  box-shadow:2px 2px 0 rgba(31,61,43,.05),6px 9px 20px -8px rgba(14,34,64,.16),16px 24px 38px -24px rgba(14,34,64,.22);
}
.card,.pl-card,.pl-term,.v2h-card{
  background-image:radial-gradient(340px circle at var(--d3d-mx,-30%) var(--d3d-my,-30%),rgba(255,255,255,.55),rgba(255,255,255,0) 62%);
}
.pl-term{transition:transform .3s ease,box-shadow .3s ease}

/* ---- the guides as books: spine, page block, settle toward the reader ---- */
.card[data-guide-card]{position:relative;padding-left:calc(var(--card-pad) + 10px)}
.card[data-guide-card]::before{
  content:"";position:absolute;left:0;top:0;bottom:0;width:11px;border-radius:2px 0 0 2px;
  background:linear-gradient(90deg,rgba(31,61,43,.30),rgba(255,255,255,.30) 42%,rgba(31,61,43,.16) 78%,rgba(31,61,43,.36));
  border-right:1px solid rgba(31,61,43,.25);
}
.card[data-guide-card]::after{
  content:"";position:absolute;right:-4px;top:5px;bottom:5px;width:4px;border-radius:0 2px 2px 0;
  background:repeating-linear-gradient(90deg,#F9EFCD 0 1px,#E2CFA0 1px 2.2px,#F2E3B6 2.2px 2.9px,#D2B985 2.9px 4px);
  border:1px solid rgba(31,61,43,.18);border-left:none;
}
@keyframes d3dBookIn{
  from{transform:perspective(1100px) rotateX(9deg) translateY(14px)}
  to{transform:perspective(1100px) rotateX(0deg) translateY(0)}
}
.d3d-in{animation:d3dBookIn .75s cubic-bezier(.22,.61,.36,1) both}

/* ---- guide-page header: the short version as the book's cover ---- */
article.prose .short-version{
  position:relative;
  background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='matrix' values='0 0 0 0 0.42 0 0 0 0 0.33 0 0 0 0 0.18 0 0 0 0.45 0'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E"),
  radial-gradient(130% 100% at 50% 40%,rgba(0,0,0,0) 58%,rgba(146,104,44,.10) 100%),
  linear-gradient(180deg,#FBF3DC,var(--surface));
  background-blend-mode:multiply,normal,normal;
  box-shadow:4px 4px 0 -1px #F7F2E3,4px 4px 0 0 var(--line-dark),12px 16px 30px -12px rgba(14,34,64,.28);
}
article.prose .short-version::before{
  content:"";position:absolute;left:0;top:0;bottom:0;width:11px;
  background:linear-gradient(90deg,rgba(31,61,43,.30),rgba(255,255,255,.30) 42%,rgba(31,61,43,.16) 78%,rgba(31,61,43,.36));
  border-right:1px solid rgba(31,61,43,.25);
}
article.prose .short-version::after{
  content:"";position:absolute;right:-4px;top:5px;bottom:5px;width:4px;
  background:repeating-linear-gradient(90deg,#F9EFCD 0 1px,#E2CFA0 1px 2.2px,#F2E3B6 2.2px 2.9px,#D2B985 2.9px 4px);
  border:1px solid rgba(31,61,43,.18);border-left:none;
}

/* ---- calculators as raised instruments ---- */
.v2h-card.v2h-calc{
  position:relative;
  box-shadow:5px 5px 0 -1px #F7F2E3,5px 5px 0 0 var(--line-dark),11px 11px 0 -1px #FBF8EE,11px 11px 0 0 var(--line),20px 26px 38px -18px rgba(14,34,64,.30);
}
.v2h-calc .v2h-input,.pv-controls .v2h-input,.v2h-calc select.v2h-input{
  box-shadow:inset 0 2px 4px rgba(14,34,64,.13),inset 0 -1px 0 rgba(255,255,255,.65);
}
.v2h-calc-result{
  background:linear-gradient(180deg,#FFFDF6,var(--paper));
  border:1px solid var(--line-dark);border-radius:2px;
  padding:14px 16px;
  box-shadow:inset 0 1px 0 #fff,4px 4px 0 -1px #F7F2E3,4px 4px 0 0 var(--line-dark),10px 14px 24px -14px rgba(14,34,64,.35);
}
.pv-controls{
  box-shadow:inset 0 0 0 1px rgba(255,255,255,.5),inset 0 2px 6px rgba(14,34,64,.06),3px 3px 0 rgba(31,61,43,.05),10px 14px 28px -12px rgba(14,34,64,.22);
}
.pv-output{
  background:var(--surface);border:1.5px solid var(--ink-news);border-radius:2px;
  padding:clamp(18px,3vw,28px);
  box-shadow:5px 5px 0 -1px #F7F2E3,5px 5px 0 0 var(--line-dark),16px 22px 34px -16px rgba(14,34,64,.28);
}
.guide-compare{
  box-shadow:4px 4px 0 -1px #F7F2E3,4px 4px 0 0 var(--line-dark),12px 16px 28px -12px rgba(14,34,64,.24);
}

/* ---- Start Here: the steps as sheets on a clipboard ---- */
.sh-steps .sh-step-list{
  position:relative;z-index:0;perspective:1200px;
  padding:22px;border-radius:30px;
  background:linear-gradient(180deg,#244831,#1F3D2B);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.16),inset 0 -2px 6px rgba(0,0,0,.25),0 30px 50px -20px rgba(14,34,64,.42);
}
.sh-steps .sh-step-list::after{
  content:"";position:absolute;top:-13px;left:50%;transform:translateX(-50%);z-index:2;
  width:118px;height:28px;border-radius:8px;
  background:linear-gradient(180deg,#C9A44A,#A97B26);
  border:1.5px solid rgba(60,45,10,.55);
  box-shadow:0 4px 10px rgba(14,34,64,.30),inset 0 1px 0 rgba(255,255,255,.5);
}
.sh-step{
  box-shadow:0 1px 0 rgba(255,255,255,.8) inset,4px 5px 0 -1px #F3EDDC,4px 5px 0 0 rgba(31,61,43,.35),0 18px 30px -18px rgba(0,0,0,.45);
}
html.rmx-motion .sh-step.rmx-reveal{transform:translateY(16px) rotateX(7deg)}
html.rmx-motion .sh-step.rmx-reveal.rmx-in{transform:none}
.area-checklist{
  box-shadow:4px 4px 0 -1px #F7F2E3,4px 4px 0 0 var(--line-dark),12px 16px 28px -12px rgba(14,34,64,.22);
}

/* ---- pointer tilt targets driven by motion.js (not .b3d-tilt cards) ---- */
.d3d-tilt{transition:transform .3s ease,box-shadow .3s ease}
.pl-term.d3d-tilt:hover,.v2h-calc-result.d3d-tilt:hover{
  box-shadow:var(--d3d-shx,0px) var(--d3d-shy,12px) 26px rgba(14,34,64,.18);
}
article.prose .short-version.d3d-tilt:hover{
  box-shadow:4px 4px 0 -1px #F7F2E3,4px 4px 0 0 var(--line-dark),var(--d3d-shx,0px) var(--d3d-shy,14px) 30px rgba(14,34,64,.22);
}
.pv-output.d3d-tilt:hover{
  box-shadow:5px 5px 0 -1px #F7F2E3,5px 5px 0 0 var(--line-dark),var(--d3d-shx,0px) var(--d3d-shy,16px) 34px rgba(14,34,64,.24);
}
.about-portrait.d3d-tilt:hover{box-shadow:none}

/* ---- footer oak seal: layered light, a sheen pass, a gentle tilt ----
   Depth and light only: the seal image is never spun, flipped, or
   re-drawn; it tips a few degrees toward the reader in the footer and
   settles back, the way a stamped seal catches light on paper. */
footer .brand{position:relative}
footer .brand-icon{transition:filter 1.4s ease,transform .35s ease}
footer .brand.d3d-seal-in .brand-icon{
  filter:drop-shadow(0 3px 4px rgba(60,45,10,.35)) drop-shadow(0 0 13px rgba(216,164,65,.5));
}
footer .brand::after{
  content:"";position:absolute;left:0;top:50%;width:52px;height:52px;border-radius:50%;
  transform:translateY(-50%);pointer-events:none;opacity:0;
  background:linear-gradient(115deg,transparent 32%,rgba(255,255,255,.55) 48%,transparent 64%);
  background-size:250% 100%;background-position:130% 0;
}
footer .brand.d3d-seal-in::after{animation:d3dSheen 1.6s ease .25s 1 both}
@keyframes d3dSheen{
  0%{background-position:130% 0;opacity:0}
  25%{opacity:.9}
  100%{background-position:-60% 0;opacity:0}
}

@media (prefers-reduced-motion: reduce){
  .d3d-in{animation:none}
  .d3d-tilt{transition:none}
  footer .brand.d3d-seal-in::after{animation:none}
  footer .brand-icon{transition:none}
}
@media print{
  .sh-steps .sh-step-list{background:none;box-shadow:none;padding:0}
  .sh-steps .sh-step-list::after,.card[data-guide-card]::after{display:none}
}


/* ===== 3D visibility pass (2026-11-21, second round): resting perspective
   + ambient life =====
   Kc's verdict on the first 3D round: "i see nothing different." That
   layer only moved on hover or once on scroll-in, so at rest, and on
   phones (no hover), the site read as flat. This round gives every
   signature object a RESTING 3D angle with its thickness showing, plus
   a slow ambient sway on the books, covers, and instruments.
   Contract: every rule lives under html.d3d-motion, a class the
   motion-3d-visible IIFE in motion.js adds ONLY after observers are
   armed and reduced motion is confirmed absent. No class = the flat,
   fully readable page (no-JS, reduced motion, any JS failure).
   Resting angles apply to objects and cards, never to paragraphs.
   The sway yields to hover (:not(:hover)) so the pointer-tilt drivers
   own the transform while a fine pointer is on the object. */

/* ---- stronger depth cues: spine, page block, sheet shadows at rest ---- */
.card[data-guide-card]::before,article.prose .short-version::before{width:13px;
  background:linear-gradient(90deg,rgba(31,61,43,.42),rgba(255,255,255,.34) 40%,rgba(31,61,43,.24) 76%,rgba(31,61,43,.5));
  border-right:1px solid rgba(31,61,43,.34)}
.card[data-guide-card]::after,article.prose .short-version::after{width:6px;right:-6px;
  background:repeating-linear-gradient(90deg,#F9EFCD 0 1.4px,#DEC99E 1.4px 2.8px,#F2E3B6 2.8px 3.7px,#CDB384 3.7px 5.2px);
  border:1px solid rgba(31,61,43,.3);border-left:none}

/* ---- resting transform engine (per-object angles arrive as vars) ---- */
html.d3d-motion .d3d-rest{
  transform:perspective(var(--d3d-persp,1200px)) rotateX(var(--d3d-rx,0deg)) rotateY(var(--d3d-ry,0deg));
  transition:transform .95s cubic-bezier(.22,.61,.36,1);
}
html.d3d-motion .d3d-rest.d3d-pre{
  transform:perspective(var(--d3d-persp,1200px)) rotateX(var(--d3d-prx,6deg)) rotateY(var(--d3d-pry,-8deg)) translateY(16px);
}
@keyframes d3dSway{
  from{transform:perspective(var(--d3d-persp,1200px)) rotateX(calc(var(--d3d-rx,0deg) - var(--d3d-sx,.5deg))) rotateY(calc(var(--d3d-ry,0deg) - var(--d3d-sy,1deg)))}
  to{transform:perspective(var(--d3d-persp,1200px)) rotateX(calc(var(--d3d-rx,0deg) + var(--d3d-sx,.5deg))) rotateY(calc(var(--d3d-ry,0deg) + var(--d3d-sy,1deg)))}
}
html.d3d-motion .d3d-rest.d3d-live:not(:hover){
  animation:d3dSway var(--d3d-dur,9s) ease-in-out var(--d3d-delay,0s) infinite alternate;
}

/* ---- the books: guide cards rest open toward the reader ---- */
html.d3d-motion .card[data-guide-card].d3d-rest{
  --d3d-persp:1150px;--d3d-rx:1.8deg;--d3d-ry:-4.6deg;
  --d3d-prx:7deg;--d3d-pry:-10.5deg;--d3d-sx:.5deg;--d3d-sy:1.15deg;--d3d-dur:9s;
  box-shadow:3px 3px 0 rgba(31,61,43,.06),12px 16px 26px -10px rgba(14,34,64,.30),26px 34px 44px -26px rgba(14,34,64,.30);
}
/* ---- guide-page cover (the short version as the book's front) ---- */
html.d3d-motion article.prose .short-version.d3d-rest{
  --d3d-persp:1150px;--d3d-rx:1.6deg;--d3d-ry:-3.4deg;
  --d3d-prx:6deg;--d3d-pry:-8.5deg;--d3d-sx:.45deg;--d3d-sy:.95deg;--d3d-dur:10s;
  box-shadow:4px 4px 0 -1px #F7F2E3,4px 4px 0 0 var(--line-dark),16px 22px 36px -14px rgba(14,34,64,.36);
}
/* ---- calculator instruments rest at a working angle ---- */
html.d3d-motion .v2h-card.v2h-calc.d3d-rest{
  --d3d-persp:1350px;--d3d-rx:2deg;--d3d-ry:-3.6deg;
  --d3d-prx:5deg;--d3d-pry:-7.5deg;--d3d-sx:.4deg;--d3d-sy:.8deg;--d3d-dur:11s;
  box-shadow:5px 5px 0 -1px #F7F2E3,5px 5px 0 0 var(--line-dark),11px 11px 0 -1px #FBF8EE,11px 11px 0 0 var(--line),26px 32px 44px -18px rgba(14,34,64,.38);
}
html.d3d-motion .pv-output.d3d-rest{
  --d3d-persp:1350px;--d3d-rx:1.8deg;--d3d-ry:3.4deg;
  --d3d-prx:5deg;--d3d-pry:6.5deg;--d3d-sx:.4deg;--d3d-sy:.7deg;--d3d-dur:11s;
  box-shadow:5px 5px 0 -1px #F7F2E3,5px 5px 0 0 var(--line-dark),20px 26px 38px -18px rgba(14,34,64,.34);
}
/* ---- the Start Here clipboard leans on the desk (rest only, no sway) ---- */
html.d3d-motion .sh-steps .sh-step-list.d3d-rest{
  --d3d-persp:1500px;--d3d-rx:3.6deg;--d3d-ry:0deg;
  --d3d-prx:9deg;--d3d-pry:0deg;--d3d-sx:0deg;--d3d-sy:0deg;
}

/* ---- footer oak seal: resting depth + the sheen returns on a slow cycle ----
   Light only, on a 9-second cycle (a 1.6s sweep, then quiet). The seal
   image is never transformed by this rule, never spun, never flipped. */
footer .brand-icon{filter:drop-shadow(0 3px 5px rgba(60,45,10,.30))}
footer .brand.d3d-seal-in::after{animation:d3dSheenCycle 9s ease-in-out 1.2s infinite}
@keyframes d3dSheenCycle{
  0%{background-position:130% 0;opacity:0}
  4%{opacity:.9}
  18%{background-position:-60% 0;opacity:0}
  100%{background-position:-60% 0;opacity:0}
}

@media (prefers-reduced-motion: reduce){
  html.d3d-motion .d3d-rest{transform:none;transition:none;animation:none}
  footer .brand.d3d-seal-in::after{animation:none}
}
@media print{
  html.d3d-motion .d3d-rest{transform:none;animation:none}
}

/* ===== the flipping books (2026-11-21, Phase 2): one engine, two books =====
   The hero book (homepage showcase, auto-turning) and the flagship
   guide book (reader-driven) share this machinery: a stack of leaves
   on a center spine, each leaf carrying two pages (front = right page
   of one spread, back = left page of the next). Turning is a real
   rotateY around the spine. The book's words are the site's own
   (guide titles, summaries, section openings, verbatim); the full
   text always remains on the page beneath/after the book. The .bk-book
   subtree is aria-hidden in markup (a labelled experience layer);
   the controls live outside it and stay fully operable. With JS off
   the book shows its cover spread, still and complete-looking. */
.bk-wrap{--bk-w:640px;outline:none}
.bk-wrap:focus-visible{outline:3px solid var(--gold,#B98A2F);outline-offset:6px;border-radius:6px}
.bk-stage{perspective:1700px;max-width:var(--bk-w);margin-inline:auto;padding:10px 12px 4px}
.bk-book{position:relative;aspect-ratio:1.44;transform-style:preserve-3d}
html.d3d-motion .bk-book{transform:rotateX(5deg)}
html.d3d-motion [data-bk-auto] .bk-book{animation:bkSway 11s ease-in-out infinite alternate}
@keyframes bkSway{from{transform:rotateX(4.1deg)}to{transform:rotateX(5.9deg)}}
.bk-board{position:absolute;top:-9px;bottom:-9px;width:calc(50% + 9px);z-index:0;
  background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='matrix' values='0 0 0 0 0.42 0 0 0 0 0.33 0 0 0 0 0.18 0 0 0 0.45 0'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E"),
  radial-gradient(130% 105% at 16% -4%,rgba(255,236,190,.15),rgba(255,236,190,0) 55%),
  linear-gradient(160deg,#2A5740,#1F3D2B 58%,#132A1D);
  background-blend-mode:soft-light,normal,normal;
  border:1px solid rgba(60,45,10,.5);
  box-shadow:0 2px 3px rgba(10,20,14,.35),0 38px 48px -20px rgba(14,34,64,.52),0 64px 88px -44px rgba(24,32,18,.40)}
.bk-board--left{left:-9px;border-radius:6px 2px 2px 6px}
.bk-board--right{right:-9px;border-radius:2px 6px 6px 2px}
.bk-board::after{content:"";position:absolute;inset:6px;border:1px solid rgba(216,164,65,.55);border-radius:3px;
  box-shadow:inset 0 0 0 3px rgba(10,22,14,.45),inset 0 0 0 4px rgba(216,164,65,.40)}
.bk-board::before{content:"";position:absolute;bottom:3px;height:5px;z-index:0;
  background:repeating-linear-gradient(180deg,#F9EFCD 0 1px,#DEC99E 1px 2.2px,#F2E3B6 2.2px 3px,#CDB384 3px 4.6px);
  border:1px solid rgba(84,58,18,.28);border-top:none;border-radius:0 0 2px 2px}
.bk-board--left::before{left:10px;right:-1px}
.bk-board--right::before{right:10px;left:-1px}
.bk-book::before{content:"";position:absolute;right:-6px;top:5px;bottom:5px;width:6px;z-index:0;
  background:linear-gradient(180deg,rgba(255,255,255,.35),rgba(122,84,33,.16)),
  repeating-linear-gradient(90deg,#F9EFCD 0 1.1px,#E0CC9C 1.1px 2.5px,#F3E5BE 2.5px 3.2px,#D0B57F 3.2px 4.8px,#EDDCB0 4.8px 5.6px);
  border:1px solid rgba(84,58,18,.30);border-left:none;border-radius:0 2px 2px 0}
.bk-book::after{content:"";position:absolute;top:0;bottom:0;left:50%;width:68px;transform:translateX(-50%);
  background:linear-gradient(90deg,rgba(84,58,18,0) 0%,rgba(84,58,18,.05) 24%,rgba(84,58,18,.15) 41%,rgba(59,40,10,.30) 50%,rgba(84,58,18,.15) 59%,rgba(84,58,18,.05) 76%,rgba(84,58,18,0) 100%);
  z-index:65;pointer-events:none}
.bk-leaf{position:absolute;top:0;bottom:0;left:50%;width:50%;transform-origin:left center;
  transform-style:preserve-3d;transition:transform .92s cubic-bezier(.32,.58,.28,1)}
.bk-leaf.bk-turned{transform:rotateY(-180deg)}
.bk-book.bk-snap .bk-leaf{transition:none!important}
.bk-face{position:absolute;inset:0;backface-visibility:hidden;-webkit-backface-visibility:hidden;overflow:hidden;
  display:flex;flex-direction:column;padding:clamp(13px,6%,26px);
  background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='matrix' values='0 0 0 0 0.42 0 0 0 0 0.33 0 0 0 0 0.18 0 0 0 0.45 0'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E"),
  radial-gradient(46px 30px at 84% 16%,rgba(150,104,44,.12),rgba(150,104,44,0) 70%),
  radial-gradient(30px 22px at 10% 82%,rgba(150,104,44,.10),rgba(150,104,44,0) 70%),
  radial-gradient(125% 95% at 50% 42%,rgba(0,0,0,0) 55%,rgba(147,105,45,.13) 88%,rgba(122,84,33,.21) 100%),
  linear-gradient(102deg,#FCF3DA,#F5E8C6);
  border:1px solid rgba(84,58,18,.30);color:var(--ink-news,#17140F)}
.bk-front{border-radius:0 3px 3px 0;box-shadow:inset 26px 0 34px -20px rgba(84,58,18,.52),inset -10px 0 18px -12px rgba(255,253,240,.55),inset 0 -14px 18px -14px rgba(84,58,18,.18)}
.bk-back{transform:rotateY(180deg);border-radius:3px 0 0 3px;box-shadow:inset -26px 0 34px -20px rgba(84,58,18,.52),inset 10px 0 18px -12px rgba(255,253,240,.55),inset 0 -14px 18px -14px rgba(84,58,18,.18);
  background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='matrix' values='0 0 0 0 0.42 0 0 0 0 0.33 0 0 0 0 0.18 0 0 0 0.45 0'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E"),
  radial-gradient(40px 28px at 14% 22%,rgba(150,104,44,.12),rgba(150,104,44,0) 70%),
  radial-gradient(34px 24px at 88% 76%,rgba(150,104,44,.10),rgba(150,104,44,0) 70%),
  radial-gradient(125% 95% at 50% 42%,rgba(0,0,0,0) 55%,rgba(147,105,45,.13) 88%,rgba(122,84,33,.21) 100%),
  linear-gradient(258deg,#FCF3DA,#F5E8C6)}
.bk-kicker{font-size:.68rem;font-weight:700;letter-spacing:.16em;text-transform:uppercase;color:#A2771F;margin:0 0 .55em}
.bk-title{font-family:Newsreader,Georgia,serif;font-weight:600;font-size:clamp(1.12rem,.95rem + 1.1vw,1.55rem);line-height:1.14;margin:0;color:#0E2240}
.bk-line{font-size:clamp(.8rem,.76rem + .35vw,.94rem);line-height:1.52;margin:.7em 0 0}
.bk-link{margin-top:auto;padding-top:.8em;font-weight:700;font-size:.9rem;color:#1F3D2B;text-decoration:none}
.bk-link:hover{text-decoration:underline}
.bk-cont{display:block;margin-top:auto;padding-top:.8em;font-size:.78rem;letter-spacing:.08em;text-transform:uppercase;color:#A2771F;font-weight:700}
.bk-cover{background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='matrix' values='0 0 0 0 0.42 0 0 0 0 0.33 0 0 0 0 0.18 0 0 0 0.45 0'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E"),
  radial-gradient(130% 100% at 20% 0%,rgba(255,236,190,.16),rgba(255,236,190,0) 55%),
  linear-gradient(155deg,#2A5740,#1F3D2B 62%,#142A1C);
  background-blend-mode:soft-light,normal,normal;
  box-shadow:inset 26px 0 34px -20px rgba(20,30,16,.55),inset 0 0 0 1px rgba(216,164,65,.45),inset 0 0 0 5px rgba(10,22,14,.35),inset 0 0 0 6px rgba(216,164,65,.30);
  color:#F7F2E3;align-items:flex-start;justify-content:center}
.bk-cover .bk-kicker{color:#D8A441}
.bk-cover .bk-title{color:#FFFDF6;font-size:clamp(1.5rem,1.2rem + 1.9vw,2.3rem)}
.bk-cover .bk-title em{font-style:italic;color:#D8A441}
.bk-cover .bk-line{color:rgba(247,242,227,.88)}
.bk-cover-rule{width:54px;height:3px;background:#B98A2F;margin:1em 0 0;border-radius:2px}
.bk-controls{display:flex;align-items:center;justify-content:center;gap:16px;margin-top:16px}
.bk-btn{appearance:none;border:1.5px solid rgba(31,61,43,.55);background:#FFFDF6;color:#1F3D2B;
  width:44px;height:44px;border-radius:50%;font-size:1.05rem;line-height:1;cursor:pointer;
  box-shadow:0 3px 0 rgba(31,61,43,.35);transition:transform .18s ease,box-shadow .18s ease}
.bk-btn:hover{transform:translateY(-2px);box-shadow:0 5px 0 rgba(31,61,43,.35)}
.bk-btn:active{transform:translateY(1px);box-shadow:0 1px 0 rgba(31,61,43,.35)}
.bk-ind{font-size:.86rem;color:var(--muted,#5A6472);min-width:92px;text-align:center;font-variant-numeric:tabular-nums}
.bk-note{text-align:center;font-size:.84rem;color:var(--muted,#5A6472);margin:10px 0 0}
.bk-wrap--guide{--bk-w:780px;margin:30px auto 8px}
@media (max-width:560px){
  .bk-face{padding:12px 13px}
  .bk-line{font-size:.78rem;line-height:1.45}
  .bk-title{font-size:1.08rem}
  .bk-cover .bk-title{font-size:1.35rem}
}
@media (prefers-reduced-motion: reduce){
  .bk-leaf{transition:none}
  html.d3d-motion .bk-book{transform:none}
  html.d3d-motion [data-bk-auto] .bk-book{animation:none}
}
.bk-face::after{content:"";position:absolute;inset:0;z-index:3;pointer-events:none;opacity:0;
  background:linear-gradient(98deg,rgba(59,40,10,.22) 0%,rgba(255,253,240,.36) 32%,rgba(255,253,240,.05) 55%,rgba(59,40,10,.12) 82%,rgba(59,40,10,0) 100%);
  background-size:280% 100%;background-position:125% 0}
.bk-leaf.bk-turned .bk-face::after{animation:bkCurl .92s cubic-bezier(.32,.58,.28,1)}
@keyframes bkCurl{0%{opacity:0;background-position:125% 0}20%{opacity:1}58%{opacity:.9}100%{opacity:0;background-position:-70% 0}}
.bk-leaf:nth-child(4) .bk-face{background-position:0 0,26px -10px,-18px 22px,0 0,0 0}
.bk-leaf:nth-child(6) .bk-face{background-position:0 0,-30px 14px,24px -16px,0 0,0 0}
.bk-leaf:nth-child(8) .bk-face{background-position:0 0,12px 26px,-26px -8px,0 0,0 0}
@media (prefers-reduced-motion: reduce){
  .bk-face::after{animation:none}
}
@media print{.bk-wrap{display:none}}
