/* Self hosted. Licenses beside the files in fonts/. */
@font-face { font-family: "Homemade Apple"; font-style: normal; font-weight: 400; font-display: swap; src: url(fonts/homemade-apple.woff2) format("woff2"); }
@font-face { font-family: "Kalam"; font-style: normal; font-weight: 400; font-display: swap; src: url(fonts/kalam-400.woff2) format("woff2"); }
@font-face { font-family: "Kalam"; font-style: normal; font-weight: 700; font-display: swap; src: url(fonts/kalam-700.woff2) format("woff2"); }
@font-face { font-family: "Special Elite"; font-style: normal; font-weight: 400; font-display: swap; src: url(fonts/special-elite.woff2) format("woff2"); }
@font-face { font-family: "Barlow Condensed"; font-style: normal; font-weight: 500; font-display: swap; src: url(fonts/barlow-condensed-500.woff2) format("woff2"); }
@font-face { font-family: "Barlow Condensed"; font-style: normal; font-weight: 600; font-display: swap; src: url(fonts/barlow-condensed-600.woff2) format("woff2"); }
:root {
  --ink: #1f1b18;
  --ink-soft: #3a332d;
  --grid: #d6dadd;
  --cover: #3a3330;
  --stub-ink: #2a0604;
  --focus: #1d5fbf;
  --hand: "Kalam", "Comic Sans MS", cursive;
  --type: "Special Elite", "Courier New", monospace;
  --script: "Homemade Apple", "Brush Script MT", cursive;
  --cond: "Barlow Condensed", "Arial Narrow", sans-serif;
  color-scheme: only light;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  color: var(--ink);
  background: #8a5a33 url(images/nb/wood-800.webp) center top / 800px auto repeat;
  font: 400 17px/1.5 var(--hand);
  overflow-x: hidden;
}
@media (min-width: 801px) {
  body { background-image: url(images/nb/wood.webp); background-size: 1600px auto; }
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
a:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3, p, ul, figure { margin: 0; }
ul { list-style: none; padding: 0; }

/* ---------- the desk and the three notebook pages ---------- */
.desk {
  display: flex; flex-direction: column; align-items: center;
  gap: 30px; padding: 20px 12px 40px 22px;
}
.pages { display: contents; }
.page {
  position: relative; width: 100%; max-width: 420px;
  padding: 26px 18px 30px 46px;
  background-color: #fff;
  background-image:
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 15px 15px;
  background-position: 6px 6px;
  border-radius: 2px 6px 6px 2px;
  box-shadow: 5px -5px 0 0 var(--cover), 5px 5px 0 0 var(--cover), 0 16px 26px rgba(25, 12, 4, .55), 0 2px 4px rgba(25, 12, 4, .35);
}
/* the wire binding: a strip of real coils, repeated down the left edge */
.page::before {
  content: ""; position: absolute; left: -24px; top: 14px; bottom: 14px; width: 56px;
  background: url(images/nb/coil.webp) 0 0 / 56px 31px; background-repeat: no-repeat round;
  pointer-events: none; z-index: 3;
}

.mat { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; }
/* the drop shadow sits on .paper, the layer holding a paper's image and its tape or clip, never on an element
   that holds text (2026-11-18: real Chrome 157 at 2x painted the text blank inside a rotated element with
   filter: drop-shadow, the name tag, the Call ticket and the grid note; values unchanged, moved here) */
.paper { position: absolute; inset: 0; z-index: 0; }
.tape { position: absolute; z-index: 4; pointer-events: none; height: auto; }

/* ---------- prints (instant photos) ---------- */
.print { position: relative; aspect-ratio: 420 / 513; }
.print > .paper { filter: drop-shadow(0 3px 4px rgba(0,0,0,.28)); }
.print .pf { position: absolute; left: 9.6%; top: 9.6%; right: 9.6%; bottom: 19.8%; overflow: hidden; background: #ece4d6; }
.print .pf img { width: 100%; height: 100%; object-fit: cover; }
.print .frame { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 1; }
.print figcaption {
  position: absolute; left: 6%; right: 4%; top: 80.5%; z-index: 2;
  font: 400 16px/1.1 var(--hand); text-align: center; color: var(--ink);
}
.tape-top { width: 46%; left: 27%; top: -5%; }

/* ---------- page 1 ---------- */
.p1 { display: flex; flex-direction: column; align-items: center; }
.tag { position: relative; width: 300px; max-width: 100%; aspect-ratio: 680 / 355; transform: rotate(-5deg); margin: 10px 0 0 -6px; }
.tag > .paper { filter: drop-shadow(0 4px 5px rgba(0,0,0,.3)); }
.tag-tape, .tape-tag { width: 44%; left: 30%; top: -14%; transform: rotate(3deg); }
.tag h1 {
  position: absolute; inset: 0 6% 0 26%; z-index: 2;
  display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center;
  font: 400 34px/1.08 var(--type); color: #1b120b; letter-spacing: .01em;
}
.hero { width: 190px; margin: 4px 0 0 -20px; transform: rotate(1.5deg); }
.since {
  font: 400 21px/1.75 var(--script); color: var(--ink); text-align: center;
  margin: 12px 0 4px; transform: rotate(-2deg);
}
.ticket { position: relative; display: block; text-decoration: none; }
.ticket > .paper { filter: drop-shadow(0 4px 5px rgba(0,0,0,.3)); }
.ticket-solo { width: 236px; aspect-ratio: 500 / 220; margin: 14px 0 6px 40px; transform: rotate(-8deg); }
.ticket-text {
  position: absolute; inset: 0; z-index: 1; display: flex; align-items: center; justify-content: center; text-align: center;
  font: 600 24px/1.15 var(--cond); color: var(--stub-ink); letter-spacing: .01em; /* Call at 24px (Carlos 2026-11-18) */
}
.ticket:hover .ticket-text, .stub:hover span { text-decoration: underline; }

/* ---------- page 2 ---------- */
.p2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 12px; align-items: start; }
.dragon { grid-column: 1; grid-row: 1; transform: rotate(-2deg); margin: 4px 0 0 -6px; filter: drop-shadow(0 3px 3px rgba(0,0,0,.22)); }
.frenchies { grid-column: 2; grid-row: 1; transform: rotate(3deg); margin-top: 18px; }
.pig { grid-column: 1; grid-row: 2; transform: rotate(-4deg); margin-top: 14px; }
.chicken { grid-column: 2; grid-row: 2; width: 100px; align-self: center; margin: 20px 0 0 22px; }
.receipt {
  grid-column: 1 / -1; grid-row: 4; position: relative; width: 270px; justify-self: center;
  padding: 58px 26px 40px 30px; transform: rotate(-1.5deg);
  font: 400 17px/1.4 var(--hand); color: var(--ink);
}
.receipt > .paper { filter: drop-shadow(0 4px 5px rgba(0,0,0,.25)); }
.receipt > :not(.paper):not(.paperclip) { position: relative; z-index: 1; }
.receipt .paperclip { position: absolute; z-index: 2; width: 24px; left: 62%; top: -36px; transform: rotate(4deg); }
/* the clips stay over the words, as before: a copy inside .paper casts the shadow (aria hidden by alt=""),
   the clip itself paints on top unfiltered */
.receipt h2, .receipt h3 { font: 700 18px/1.3 var(--hand); }
.receipt h2 { border-top: 1.5px dashed #9a958e; padding-top: 10px; }
.receipt ul + ul { margin-top: 8px; }
.receipt h3 { margin-top: 14px; }

/* ---------- page 3 ---------- */
.p3 { display: flex; flex-direction: column; }
.dates-row { display: flex; align-items: flex-start; }
.notepad {
  position: relative; width: 225px; flex: none; padding: 50px 18px 44px 22px;
  transform: rotate(-2deg);
}
.notepad > .paper { filter: drop-shadow(0 4px 5px rgba(0,0,0,.25)); }
.notepad > :not(.paper) { position: relative; z-index: 1; }
.tape-pad { position: absolute !important; width: 48%; left: 30%; top: -6px; }
.notepad h2 { font: 700 27px/1.2 var(--hand); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 5px; margin-bottom: 6px; }
.dates { font: 400 18px/1.4 var(--hand); }
.dates-stamp { margin: 0; } /* a caption, not a date range (second opinion 11-09 A11Y-5) */
.text-me {
  display: flex; flex-direction: column; align-items: center; min-width: 44px; min-height: 44px;
  margin: 22px 0 0 -2px; text-decoration: none; font: 400 18px/1.2 var(--hand); text-align: center; transform: rotate(-4deg);
}
.text-me img { width: 48px; margin: 0 0 4px 0; }
.note-row { display: flex; align-items: center; margin-top: -10px; }
.doodles { flex: none; width: 56px; display: flex; flex-direction: column; gap: 10px; align-items: center; }
.doodles img:first-child { width: 50px; }
.doodles img:last-child { width: 42px; }
.gridnote {
  position: relative; flex: 1; padding: 26px 22px 34px 22px; transform: rotate(1.5deg);
  font: 400 18px/1.45 var(--hand);
}
.gridnote > .paper { filter: drop-shadow(0 4px 5px rgba(0,0,0,.25)); }
.gridnote > p { position: relative; z-index: 1; }
.binder { position: absolute; z-index: 2; width: 34px; right: 22px; top: -22px; }
.fishbub { position: absolute; z-index: 2; width: 40px; right: 10px; bottom: 6px; }

.friends { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-top: 18px; }
.snap .tape-top { width: 52%; left: 24%; top: -6%; }
.s1 { transform: rotate(-2deg); }
.s2 { transform: rotate(1deg); margin-top: 3px; }
.s3 { transform: rotate(3deg); }
.friends-label { grid-column: 1 / -1; text-align: center; font: 400 17px/1.6 var(--script); margin-top: 12px; }

.contact { margin-top: 16px; text-align: center; }
.stubs { position: relative; width: 100%; max-width: 330px; aspect-ratio: 720 / 191; margin: 0 auto; isolation: isolate; }
/* its shadow is baked into an image (the old drop-shadow(0 4px 5px rgba(0,0,0,.3)), 26px of margin at 720 wide):
   WebKit's filter inside the turning stack left a see-through patch by the binding (11-09, b6915c2 A11Y-3) */
.stubs::before { content: ""; position: absolute; z-index: -1; pointer-events: none; left: -3.611%; top: -13.613%; width: 107.222%; height: 127.225%;
  background: url(images/nb/stubs-shadow.webp) 0 0 / 100% 100% no-repeat; }
/* each link sits exactly on its stub's printed inner border (measured on stubs.webp: x 59-303 and
   419-660 of 720, y 17-170 of 191), so the words stay inside it and clear of the grommets */
.stub {
  position: absolute; top: 8.9%; bottom: 11%; z-index: 1; display: flex; align-items: center; justify-content: center; gap: 7px;
  padding: 0 6px; text-decoration: none; text-align: center; font: 600 15px/1.15 var(--cond); color: var(--stub-ink);
}
.stub-l { left: 8.2%; width: 33.9%; }
.stubs .stub-l { font-size: 24px; } /* the page 2 Call matches the cover's Call ticket at every width (Carlos 2026-11-18) */
.stub-r { left: 58.2%; width: 33.5%; }
.fb { width: 30px; height: 30px; flex: none; }
.contact-icons { display: flex; justify-content: center; gap: 12px; margin-top: 4px; }
.contact-icons a { display: flex; align-items: center; justify-content: center; gap: 5px; min-width: 44px; height: 44px; color: var(--ink); font: 600 18px/1 var(--cond); text-decoration: none; }
.contact-icons a:hover { text-decoration: underline; }
.contact-icons svg { width: 24px; height: 24px; }
.pay { margin-top: 10px; font: 500 18px/1.3 var(--cond); color: var(--ink); }
.pay a, .credit a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 2px; text-decoration: underline; text-underline-offset: 3px; }
.credit a { text-decoration: underline dotted; text-underline-offset: 3px; }
.pay a:hover { text-decoration-thickness: 2px; }
.credit a:hover { text-decoration: underline; }
.credit a:hover { text-decoration-style: solid; }
/* the legal line and the credit sit on the desk under the notebook (2026-11-09, Carlos: one footer line), on a dark
   band so they read on the wood: one line where it fits, the credit wraps under the legal name on a phone */
.desk-foot { display: flex; justify-content: center; padding: 0 16px 28px; }
.credit { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; column-gap: 1.1em;
  padding: 2px 14px; border-radius: 6px; background: rgba(26, 15, 7, .8); color: #fbf3e4;
  font: 500 16px/1.3 var(--cond); text-align: center; }
.credit .legal, .credit-made { white-space: nowrap; }
.credit-made { display: inline; }
.credit a:focus-visible { outline-color: #ffd27a; }
.heart { font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif; font-size: .85em; margin: 0 .25em; }

/* ---------- wider windows: pages sit side by side on the desk ----------
   Each page keeps the mock's shape (555 x 1025 in pet-phone-var4.jpg) and every piece sits at the
   mock's share of page width (left, width) and page height (top), so the pages fill like the picture. */
@media (min-width: 700px) {
  .desk { flex-direction: row; flex-wrap: wrap; align-items: flex-start; justify-content: center; gap: 36px 40px; padding: 28px 24px 40px 48px; }
  .page { flex: 0 1 410px; max-width: 410px; min-width: 0; aspect-ratio: 555 / 1025; padding: 0; display: block; container-type: inline-size; }
  .page > *, .dates-row > *, .note-row > * { position: absolute; margin: 0; }
  .dates-row, .note-row { display: contents; }

  /* page 1 */
  .tag { left: 9.5%; top: 9%; width: 81%; }
  .tag h1 { font-size: 8.4cqw; }
  .tape-tag { top: -16%; }
  .hero { left: 27%; top: 31%; width: 44%; }
  .since { left: 12%; width: 76%; top: 62.5%; font-size: 5.3cqw; line-height: 1.75; }
  .ticket-solo { left: 24%; top: 78%; width: 52%; }

  /* page 2 */
  .dragon { left: 6%; top: 4.4%; width: 52%; }
  .frenchies { left: 52%; top: 8.5%; width: 43%; }
  .frenchies figcaption { font-size: 16px; }
  .pig { left: 7%; top: 35%; width: 40%; }
  .chicken { left: 15%; top: 70%; width: 23%; }
  .receipt { left: 44%; top: 44%; width: 55%; padding: 11% 5% 7% 6%; font-size: 16px; line-height: 1.28; }
  .receipt .paperclip { width: 9%; left: 46%; top: -6%; }
  .receipt h2 { padding-top: 6px; }
  .receipt h2, .receipt h3 { font-size: 16px; }
  .receipt ul + ul { margin-top: 6px; }
  .receipt h3 { margin-top: 8px; }
  .receipt li.one { white-space: nowrap; }

  /* page 3 */
  .notepad { left: 12%; top: 3.6%; width: 58%; padding: 12% 4% 9% 8%; }
  .tape-pad { top: 9%; width: 44%; left: 28%; }
  .notepad h2 { font-size: 6.4cqw; margin-bottom: 4px; }
  .dates { font-size: 17px; line-height: 1.35; }
  .dates li, .dates-stamp { white-space: nowrap; }
  .text-me { left: 72%; top: 12%; width: 24%; transform: rotate(-4deg); font-size: 17px; }
  .text-me img { width: 44%; }
  .doodles { left: 11%; top: 43%; width: 15%; }
  .doodles img:first-child { width: 80%; }
  .doodles img:last-child { width: 66%; }
  .gridnote { left: 30%; top: 34%; width: 66%; padding: 5% 5% 6% 7%; font-size: 16px; line-height: 1.4; }
  .binder { width: 11%; right: 6%; top: 0; margin-top: -10%; } /* on the paper's top edge, clear of "work" (Carlos 2026-11-22); margin % runs on width, like the clip's own size; moves the clip and its shadow copy in .paper together */
  .fishbub { width: 12%; right: 3%; bottom: 3%; }
  .friends { left: 15%; top: 52.5%; width: 72%; gap: 4%; }
  .friends-label { font-size: 4.3cqw; margin-top: 3cqw; }
  /* the page is fixed height here, so the icons share the pay line instead of pushing the stubs up */
  .contact { left: 7%; top: auto; bottom: 3%; width: 88%; display: flex; flex-wrap: wrap; justify-content: center; align-items: center; }
  .contact-icons { margin-top: 0; gap: 2px; margin-right: 8px; }
  .stubs { max-width: none; width: 90%; flex: 0 0 90%; }
  .stub { font-size: 16px; }
  .fb { width: 32px; height: 32px; }
  .pay { margin-top: 2px; }
}
@media (max-width: 380px) {
  .page { padding-left: 40px; padding-right: 12px; }
  .tag h1 { font-size: 30px; }
  .notepad { width: 205px; }
  .stub { font-size: 14px; }
}

/* ---------- the page turn (phone and tablet; flip.js adds html.flip) ----------
   Plain layout: the wrappers vanish and the pages stack as before. In the stack, each .leaf scrolls a
   tall page up (nb-read), its .sheet turns over the binding (nb-turn), and the page beneath gets a
   moving shadow (nb-cast). Transform and opacity only. */
.stage, .leaf, .sheet { display: contents; }
.nb-x { display: none; }

html.flip .desk { display: block; padding: 0; position: relative; gap: 0; min-height: 0;
  timeline-scope: --nb-r0, --nb-t0, --nb-r1, --nb-t1, --nb-r2, --nb-t2, --nb-r3; }
/* clip, not just hidden: a hidden box can still be scrolled by focus or script (Tab in Chrome left the stack 29px off, 2026-10-27) */
html.flip .stage { display: block; position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; overflow: clip;
  perspective: 1100px; perspective-origin: 50% 50%; }
html.flip .leaf {
  --pw: min(420px, calc(100% - 34px));
  display: block; position: absolute; top: 20px; width: var(--pw); left: calc(22px + (100% - 34px - var(--pw)) / 2);
  -webkit-transform-style: preserve-3d; transform-style: preserve-3d;
}
/* only the bottom page (the request page) carries the dark cover edge; pages above it get a soft shadow,
   so no hard line follows a turning edge */
html.flip .page { box-shadow: 0 10px 22px rgba(25, 12, 4, .32), 0 1px 3px rgba(25, 12, 4, .2); }
html.flip .leaf[data-i="0"] { z-index: 4; }
html.flip .leaf[data-i="1"] { z-index: 3; }
html.flip .leaf[data-i="2"] { z-index: 2; }
html.flip .leaf[data-i="3"] { z-index: 1; }
html.flip .leaf.nb-turned { pointer-events: none; }
/* the leaf box stays put while its page swings away: only the page itself takes taps, so a tap beside a lifting
   page reaches the page under it (11-09, b6915c2 sweep: Chromium sent them to the empty leaf box) */
html.flip .leaf { pointer-events: none; }
html.flip .leaf:not(.nb-turned) .page, html.flip .leaf:not(.nb-turned) .formpage { pointer-events: auto; }
/* the page under a steeply turning one takes no taps (flip.js nb-inert, 65 to 90 degrees) */
html.flip .leaf.nb-inert .page, html.flip .leaf.nb-inert .formpage { pointer-events: none; }
html.flip .page { transform: translateZ(0); } /* Chromium hit-tests a turning page in its own plane (as in the book) */
html.flip .sheet { display: block; position: relative; -webkit-transform-style: preserve-3d; transform-style: preserve-3d; transform-origin: 0 50%; }
html.flip .sheet.nb-live { will-change: transform; }
html.flip .page { max-width: none; width: 100%; -webkit-backface-visibility: hidden; backface-visibility: hidden; }
html.flip .page::before { display: none; }
html.flip .p1 { justify-content: center; }
html.flip .nb-x { display: block; position: absolute; pointer-events: none; }
html.flip .nb-seg { left: 0; width: 1px; visibility: hidden; }

/* the face of the turning page darkens as it lifts away from the light */
html.flip .nb-shade { inset: 0; z-index: 40; opacity: 0; border-radius: inherit;
  background: linear-gradient(90deg, rgba(30, 18, 8, .42) 0%, rgba(30, 18, 8, .16) 30%, rgba(255, 250, 240, .14) 72%, rgba(30, 18, 8, .10) 100%); }
/* its back is plain grid paper */
html.flip .nb-back { inset: 0; border-radius: 6px 2px 2px 6px; transform: rotateY(180deg);
  -webkit-backface-visibility: hidden; backface-visibility: hidden;
  background-color: #fbfbfa;
  background-image: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 15px 15px; background-position: 6px 6px;
  box-shadow: 0 16px 26px rgba(25, 12, 4, .45); }
html.flip .nb-backshade { inset: 0; border-radius: inherit;
  background: linear-gradient(270deg, rgba(30, 18, 8, .05), rgba(30, 18, 8, .35)); }
/* the shadow the turning page casts on the one beneath */
html.flip .nb-cast-clip { inset: 0; overflow: hidden; z-index: 5; border-radius: 2px 6px 6px 2px; }
html.flip .nb-cast { inset: 0; opacity: 0; transform: translateX(100%);
  background: linear-gradient(90deg, rgba(25, 12, 4, 0) 0%, rgba(25, 12, 4, .30) 3%, rgba(25, 12, 4, .16) 10%, rgba(25, 12, 4, .05) 28%, rgba(25, 12, 4, 0) 45%); }
/* the wire binding is one static layer on top of the stack; it never turns or doubles */
html.flip .nb-coilbar { z-index: 10; width: 56px; background: url(images/nb/coil-free.webp) 0 0 / 56px 31px repeat-y; }
/* the request page in the stack: the notebook's width and paper; its coils carry on below the strip above */
html.flip .desk-end { display: none; }
html.flip .nb-formleaf .formpage { max-width: none; width: 100%; padding: 30px 18px 34px 46px; scroll-margin-top: 0; }
html.flip .formpage::before { display: none; }
html.flip .nb-formcoil { left: -24px; width: 56px; z-index: 3; background: url(images/nb/coil-free.webp) 0 0 / 56px 31px repeat-y; }

@keyframes nb-read { from { transform: translateY(0); } to { transform: translateY(calc(-1 * var(--r, 0px))); } }
@keyframes nb-cread { from { translate: 0 0; } to { translate: 0 calc(-1 * var(--c, 0px)); } }
/* perspective comes from the stage, so the free edge grows toward the viewer as it lifts */
@keyframes nb-turn {
  0%   { transform: rotateY(0deg) translateZ(0px); }
  50%  { transform: rotateY(-42deg) translateZ(6px); }
  80%  { transform: rotateY(-78deg) translateZ(6px); }
  90%  { transform: rotateY(-102deg) translateZ(6px); }
  100% { transform: rotateY(-180deg) translateZ(0px); }
}
@keyframes nb-shade { 0% { opacity: 0; } 80% { opacity: 1; } 100% { opacity: 1; } }
@keyframes nb-backshade { 0%, 85% { opacity: 1; } 100% { opacity: 0; } }
@keyframes nb-cast {
  0%   { transform: translateX(100%); opacity: 0; }
  10%  { opacity: .7; }
  50%  { transform: translateX(74%); opacity: .9; }
  80%  { transform: translateX(20%); opacity: .6; }
  88%, 100% { transform: translateX(0%); opacity: 0; }
}
/* faces swap at 90 degrees (85% of nb-turn); WebKit doesn't reliably honor backface-visibility here */
@keyframes nb-front { 0%, 84.9% { opacity: 1; } 85%, 100% { opacity: 0; } } /* 85% = 90 degrees: flip.js counts the page turned there too */
/* once past the binding the back fades out, so a turned page ends hidden and only the current page shows */
@keyframes nb-backvis { 0%, 84.9% { opacity: 0; } 85%, 92% { opacity: 1; } 99%, 100% { opacity: 0; } }

/* without scroll timelines flip.js scrubs these paused animations itself */
html.flip .leaf[data-seg], html.flip .nb-coilbar[data-seg] { animation: nb-read 1s linear both paused; }
html.flip .sheet[data-seg]        { animation: nb-turn 1s linear both paused; }
html.flip .page[data-seg]         { animation: nb-front 1s linear both paused; }
html.flip .nb-back[data-seg]      { animation: nb-backvis 1s linear both paused; }
html.flip .nb-shade[data-seg]     { animation: nb-shade 1s linear both paused; }
html.flip .nb-backshade[data-seg] { animation: nb-backshade 1s linear both paused; }
html.flip .nb-cast[data-seg]      { animation: nb-cast 1s linear both paused; }
/* phones (flip.js html.nbf): the page's content and its paper read up inside the page's frame */
html.nbf .nb-c[data-seg]           { animation: nb-cread 1s linear both paused; }
html.flip.sda [data-seg] {
  animation-duration: auto; animation-play-state: running;
  animation-timeline: var(--tl); animation-range: exit-crossing 0% exit-crossing 100%;
}

/* the turned page's back never shows: on a phone it was only a strip past the left edge, and from 900px it lay
   on the bare wood as a see-through ghost while it faded (blind review DC-1, Carlos's 1352 x 672 shots, 2026-11-09).
   The page turns edge on over the binding and is gone, at every width. */
html.flip .nb-back { visibility: hidden; }
@media (min-width: 700px) {
  html.flip .leaf { --pw: min(410px, calc(100% - 72px)); top: 28px; left: calc(48px + (100% - 72px - var(--pw)) / 2); }
  html.flip .page { flex: none; }
}

/* ---------- the request page: the notebook's last page ----------
   In the HTML it sits on the desk after the notebook (no JS, reduced motion). Below 1240 flip.js lays it in
   the stack as the bottom page, which never turns: turning the open dates page reveals it, then it reads up
   with the scroll and stays put while someone types (html.flip .nb-formleaf). */
.desk-end { display: flex; justify-content: center; padding: 0 12px 48px 22px; }
.formpage {
  position: relative; width: 100%; max-width: 420px; padding: 30px 18px 34px 46px; scroll-margin-top: 16px;
  background-color: #fff;
  background-image: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 15px 15px; background-position: 6px 6px;
  border-radius: 2px 6px 6px 2px;
  box-shadow: 5px -5px 0 0 var(--cover), 5px 5px 0 0 var(--cover), 0 16px 26px rgba(25, 12, 4, .55), 0 2px 4px rgba(25, 12, 4, .35);
}
.formpage::before {
  content: ""; position: absolute; left: -24px; top: 14px; bottom: 14px; width: 56px;
  background: url(images/nb/coil.webp) 0 0 / 56px 31px; background-repeat: no-repeat round; pointer-events: none;
}
.formpage h2 { font: 700 30px/1.25 var(--hand); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 6px; transform: rotate(-1.5deg); margin: 0 0 18px; }
.req-nojs { font: 400 19px/1.5 var(--hand); }
.req-area { font: 400 19px/1.45 var(--hand); margin: -4px 0 18px; }
.req-cancel { font: 400 17px/1.45 var(--hand); color: var(--ink-soft); margin: 18px 0 0; }
.req-cancel b { font-weight: 700; color: var(--ink); }
.rq-grid { display: grid; gap: 18px; }
.rq-field { display: flex; flex-direction: column; min-width: 0; }
.rq label, .rq legend { font: 700 18px/1.3 var(--hand); margin-bottom: 4px; padding: 0; }
.rq-mark { font: 500 15px/1 var(--cond); letter-spacing: .02em; color: var(--ink-soft); margin-left: 6px; }
.rq-hint { font: 400 16px/1.4 var(--hand); color: var(--ink-soft); margin: -2px 0 6px; }
.rq input[type="text"], .rq input[type="tel"], .rq input[type="email"], .rq textarea {
  width: 100%; min-height: 50px; padding: 10px 12px; font: 500 19px/1.35 var(--cond); color: var(--ink);
  background: #fffefb; border: 2px solid #6a5f56; border-radius: 6px; -webkit-appearance: none; appearance: none;
}
.rq textarea { min-height: 80px; resize: vertical; }
.rq input::placeholder, .rq textarea::placeholder { color: #7d746c; opacity: 1; font-family: var(--hand); font-style: italic; font-weight: 400; }
.rq input:focus-visible, .rq textarea:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-color: var(--ink); }
.rq-set { border: 0; margin: 0; padding: 0; min-width: 0; }
.rq-set legend { float: left; width: 100%; }
.rq-set legend + * { clear: both; }
.rq-pair { display: grid; gap: 14px; }
.rq-pair label { font-size: 17px; }
.rq-check { display: flex; align-items: flex-start; gap: 12px; min-height: 44px; padding: 8px 0; cursor: pointer; font: 400 18px/1.35 var(--hand) !important; margin: 0 !important; }
.rq-check input { flex: none; width: 24px; height: 24px; margin: 1px 0 0;
  /* drawn, not the browser's: its default border was 2.5:1 in Chromium and 1.7:1 in WebKit (second opinion 11-09 A11Y-5) */
  -webkit-appearance: none; appearance: none; border: 2px solid #6a5f56; border-radius: 4px; background: #fffefb center / 78% no-repeat; cursor: pointer; }
.rq-check input:checked { border-color: #2a5f3a; background-color: #2a5f3a;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3 8.5l3.2 3.2L13 4.8' fill='none' stroke='%23fff' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
.rq-check input:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
/* a focused control is scrolled to with room for its ring (second opinion 11-09 A11Y-6/7) */
a, button, input, textarea, select, summary { scroll-margin: 32px; }
.rq-hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.rq-err[hidden] { display: none; }
.rq-err { display: flex; gap: 8px; align-items: flex-start; margin: 6px 0 0; color: #a3221b; font: 700 16px/1.4 var(--hand); }
.rq-icon { width: 20px; height: 20px; flex: none; margin-top: 1px; }
.rq [aria-invalid="true"], .rq-bad > input, .rq-bad > textarea { border-color: #a3221b; }
.rq-summary { margin: 0 0 18px; padding: 12px 14px; border: 2px solid #a3221b; border-radius: 6px; background: #fdf0ee; color: #6e140f; }
.rq-summary:focus-visible, .rq-fail:focus-visible, .rq-done:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
.rq-summary-title { display: flex; gap: 8px; align-items: center; font: 700 18px/1.3 var(--hand); color: #a3221b; }
.rq-summary ul { margin-top: 4px; padding-left: 26px; list-style: disc; }
.rq-summary a { display: inline-block; vertical-align: top; padding: 6px 0; font: 400 16px/1.4 var(--hand); color: #6e140f; text-underline-offset: .15em; }
.rq-fix { margin: 4px 0 0; }
.rq-fix button { min-height: 44px; padding: 6px 0; border: 0; background: none; font: 700 16px/1.3 var(--hand); color: var(--ink); text-decoration: underline; cursor: pointer; }
.rq-fail { margin: 18px 0 0; padding: 12px 14px; border: 2px solid #a3221b; border-radius: 6px; background: #fdf0ee; color: #6e140f; }
.rq-fail p:first-child { display: flex; gap: 8px; align-items: flex-start; font: 700 17px/1.45 var(--hand); }
.rq-fail .rq-icon { color: #a3221b; }
.rq-fail-links { display: flex; gap: 12px; margin-top: 8px; }
.rq-fail-links a { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; min-width: 96px; padding: 0 18px; border: 2px solid #6e140f; border-radius: 6px; font: 600 18px/1 var(--cond); text-decoration: none; }
/* the send button is a ticket, like the call ticket on the first page */
.rq-send {
  position: relative; display: flex; align-items: center; justify-content: center; gap: 10px;
  width: 240px; max-width: 100%; aspect-ratio: 500 / 220; margin: 22px auto 0; padding: 0 30px;
  border: 0; background: none; cursor: pointer;
  font: 600 22px/1.15 var(--cond); color: var(--stub-ink); transform: rotate(-3deg); /* 22px, a step under Call's 24px (Carlos 2026-11-22); the open book keeps 17px, below */
}
/* the ticket and its shadow are a layer under the words (see .paper) */
.rq-send::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: url(images/nb/ticket.webp) center / 100% 100% no-repeat; filter: drop-shadow(0 4px 5px rgba(0,0,0,.3)); }
.rq-send:hover .rq-send-text { text-decoration: underline; }
.rq-send:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 4px; }
.rq-send:disabled { cursor: progress; }
.rq-spin { display: none; width: 18px; height: 18px; border: 2.5px solid rgba(42, 6, 4, .3); border-top-color: var(--stub-ink); border-radius: 50%; animation: rq-spin .8s linear infinite; }
.rq-busy .rq-spin { display: inline-block; }
@keyframes rq-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .rq-spin { animation-duration: 2.4s; } }
.rq-done { margin-top: 8px; padding: 16px; border: 2px dashed #9a958e; border-radius: 6px; background: #fffefb; font: 400 20px/1.5 var(--hand); }
@media (min-width: 480px) {
  .rq-grid { grid-template-columns: 1fr 1fr; }
  .rq-wide { grid-column: 1 / -1; }
  .rq-pair { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 380px) { .formpage { padding-left: 40px; padding-right: 12px; } }
@media (max-width: 380px) { html.flip .nb-formleaf .formpage { padding-left: 40px; padding-right: 12px; } }
/* no JS and reduced motion, 700 to 1239: the request page is the notebook's fourth page, same size, in the same
   flow as the others (one column on a tablet, two spreads from about 1000) */
@media (min-width: 700px) and (max-width: 1239px) {
  html:not(.flip) .book { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: center; gap: 36px 40px; padding: 28px 24px 56px 48px; }
  html:not(.flip) .desk, html:not(.flip) .desk-end { display: contents; }
  html:not(.flip) .formpage { flex: 0 1 410px; max-width: 410px; padding: 30px 18px 34px 46px; }
}
@media (min-width: 700px) {
  .desk-end { padding: 0 24px 56px 48px; }
  .formpage { max-width: 560px; padding: 40px 40px 44px 56px; }
}

/* ---------- desktop (1240px and up): an open notebook, two pages to a spread ----------
   Spread 1 is the cover and the rates, spread 2 the open dates and the request page. Without JS, with
   reduced motion or in a window under 650px tall the two spreads sit one above the other on the desk; flip.js
   (html.spread) stacks them into one open book and turns the right page over as the visitor scrolls.
   Every page keeps its 410px design width; the book is scaled to the window, never relaid. */
@media (min-width: 1240px) {
  .book { display: grid; grid-template-columns: repeat(2, 410px); column-gap: 20px; row-gap: 64px;
    justify-content: center; align-items: start; padding: 36px 24px 64px; }
  .desk, .desk-end { display: contents; }
  .page { flex: none; width: 410px; max-width: none; }
  /* left hand pages: the binding is on their right, so their corners and cover edge mirror */
  .p1, .p3 { border-radius: 6px 2px 2px 6px;
    box-shadow: -5px -5px 0 0 var(--cover), -5px 5px 0 0 var(--cover), 0 16px 26px rgba(25, 12, 4, .55), 0 2px 4px rgba(25, 12, 4, .35); }
  .p1::before, .p3::before { display: none; }

  /* the request page is a page of the book: same size, the form in two columns */
  .formpage { width: 410px; max-width: none; aspect-ratio: 555 / 1025; padding: 22px 18px 18px 42px; scroll-margin-top: 24px; }
  .formpage h2 { font-size: 26px; margin: 0 0 12px; }
  .req-area { font-size: 16px; line-height: 1.4; margin: 0 0 18px; }
  .req-nojs { font-size: 18px; }
  form.rq:not([hidden]) { display: grid; grid-template-columns: 1fr auto; column-gap: 10px; align-items: center; }
  form.rq > * { grid-column: 1 / -1; }
  /* dates across; pets and city side by side; the care choices across the page so each reads on a line or two;
     first and last; phone or email. Grid order is the DOM order, so tab order reads the page left to right. */
  .rq-grid { grid-template-columns: repeat(12, 1fr); column-gap: 14px; row-gap: 15px; align-items: start; }
  .rq-grid > .rq-field:nth-child(n), .rq-grid > .rq-set:nth-child(n) { grid-column: 1 / -1; }
  .rq-grid > .rq-field:nth-child(2) { grid-column: 1 / 8; } /* pets is the longer message */
  .rq-grid > .rq-field:nth-child(3) { grid-column: 8 / -1; }
  /* pets and city: the hints wrap to different heights, so the hint takes up the slack and the two inputs share a line (11-09 DC-2) */
  .rq-grid > .rq-field:nth-child(2), .rq-grid > .rq-field:nth-child(3) { align-self: stretch; display: flex; flex-direction: column; }
  .rq-grid > .rq-field:nth-child(2) > .rq-hint, .rq-grid > .rq-field:nth-child(3) > .rq-hint { flex: 1 0 auto; }
  .rq-grid > .rq-field:nth-child(5) { grid-column: 1 / 7; }
  .rq-grid > .rq-field:nth-child(6) { grid-column: 7 / -1; }
  .rq-checks .rq-check { float: left; }
  .rq-checks .rq-check:nth-of-type(1) { clear: left; width: auto; margin-right: 18px !important; } /* 18px between the options; 20 wraps the second (11-09 DC-3) */
  .rq-checks .rq-check:nth-of-type(2) { width: auto; }
  .rq-checks .rq-check:nth-of-type(3) { clear: left; width: 100%; letter-spacing: -.01em; } /* one line, just */
  .rq-checks::after { content: ""; display: block; clear: both; }
  /* on a set the hint follows the legend on its line when there is room */
  .rq-set legend { width: auto; margin-right: 14px; } /* clear space between "Required" and the hint (11-09) */
  .rq-set legend + .rq-hint { float: left; clear: none; margin: 0; line-height: 19.2px; }
  .rq-set > .rq-hint + * { clear: both; }
  .rq label, .rq legend { font-size: 16px; line-height: 1.2; margin-bottom: 2px; }
  .rq-mark { font-size: 14px; margin-left: 4px; }
  .rq-hint { font-size: 14.5px; line-height: 1.3; margin: -1px 0 4px; }
  .rq input[type="text"], .rq input[type="tel"], .rq input[type="email"], .rq textarea { min-height: 48px; padding: 8px 10px; font-size: 17px; }
  .rq textarea { min-height: 48px; height: 48px; }
  .rq-pair { gap: 14px; }
  .rq-pair label { font-size: 16px; }
  .rq-check { gap: 8px; min-height: 44px; padding: 4px 0; font-size: 16px !important; line-height: 1.3 !important; }
  .rq-check input { width: 22px; height: 22px; }
  .rq-err { gap: 6px; font-size: 15px; line-height: 1.25; margin-top: 3px; letter-spacing: -.015em; }
  .rq-err .rq-icon { width: 17px; height: 17px; margin-top: 1px; }
  /* errors on a page: the summary names the fields in one run of links (flip.js splits each link into the
     field's name and its message; the message stays in the text for screen readers and is shown under the field),
     a field's hint gives way to its error, which says the same, and the area line gives way to the summary */
  .rq-summary { margin: 0 0 2px; padding: 3px 10px 4px; }
  .rq-summary-title { font-size: 16px; line-height: 1.25; }
  .rq-summary-title .rq-icon { width: 18px; height: 18px; }
  .rq-summary { line-height: 22px; }
  .rq-summary-title { display: inline; }
  .rq-summary-title .rq-icon { vertical-align: -3px; margin-right: 6px; }
  .rq-summary-title span::after { content: ":"; }
  .rq-summary ul { display: inline; margin: 0 0 0 4px; padding: 0; list-style: none; }
  .rq-summary li { display: inline; }
  .rq-summary li:not(:last-child)::after { content: ", "; }
  .rq-summary a { display: inline; padding: 2px 0; font-size: 15px; line-height: 22px; white-space: nowrap; }
  .rq-sum-msg { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
  .rq-field.rq-bad > .rq-hint, .rq-set.rq-bad > .rq-hint { display: none; }
  /* the care choices' error takes its hint's place on the legend line */
  .rq-checks { position: relative; }
  .rq-checks > .rq-err { position: absolute; top: 0; right: 0; margin: 0; line-height: 19.2px; }
  .formpage:has(.rq-summary:not([hidden])) { padding-top: 12px; padding-bottom: 8px; }
  .formpage:has(.rq-summary:not([hidden])) h2 { margin-bottom: 4px; }
  form.rq:has(.rq-summary:not([hidden])) .rq-grid { row-gap: 4px; }
  form.rq:has(.rq-summary:not([hidden])) > .rq-send, form.rq:has(.rq-summary:not([hidden])) > .req-cancel { margin-top: 3px; }
  form.rq:has(.rq-summary:not([hidden])) label, form.rq:has(.rq-summary:not([hidden])) legend { margin-bottom: 0; }
  .formpage:has(.rq-summary:not([hidden])) .req-area { display: none; }
  .rq-fail { margin: 12px 0 0; padding: 8px 12px; }
  .rq-fail p:first-child { font-size: 15px; line-height: 1.35; }
  .rq-fail-links { margin-top: 6px; }
  form.rq > .req-cancel { grid-column: 1; font-size: 15.5px; line-height: 1.3; margin: 14px 0 0; } /* 1.3 so its four lines beside the wider ticket fit the page */
  form.rq > .rq-send { grid-column: 2; width: 208px; margin: 6px 0 0; padding: 0 20px; font-size: 20px; } /* wider ticket, 20px (Carlos 2026-11-22, second opinion 9a7ed5c DC-2); the words clear the rivets (the outer 15.2% each side) by ~13px; top margin 14 to 6px so the form page keeps the left page's height (second opinion a3ede46 DC-1) */
  form.rq > .rq-send { translate: 0 6px; } /* drawn 6px lower at rest, clear of the Email field above; layout (and so the page height) unchanged (second opinion 2a5571f DC-1) */
  form.rq > .rq-send:focus-visible { outline-offset: 1px !important; box-shadow: 0 0 0 4px #fff !important; } /* over the global ring (3px offset, 6px halo): the ring and its halo clear the Email field and the cancel note (2a5571f A11Y-1) */
  .rq-done { font-size: 18px; }
}

/* the open book (flip.js adds html.spread at 1240px and up in a tall enough window) */
/* scaled down to 0.84 in a short window, the smallest words get ~1.5px back (second opinion 11-09 A11Y-4) */
html.spread .rq-mark { font-size: 15.5px; }
html.spread .rq-hint { font-size: 16px; }
html.spread .q-since { font-size: 16.5px; }
html.spread .chicken { top: 92%; } /* clear of the larger "client since" line and the 17px name (78c49d4) */
.sp-x { display: none; }
html.spread .book { display: block; padding: 0; }
html.spread .desk { display: block; position: relative; padding: 0; gap: 0; min-height: 0; }
html.spread .desk-end { display: none; }
html.spread .stage { display: block; position: sticky; top: 0; height: 100vh; overflow: hidden; overflow: clip;
  perspective: 2600px; perspective-origin: 50% 50%; }
html.spread .leaf, html.spread .stage > .formpage { display: block; position: absolute; left: 0; top: 0; width: 410px; transform-origin: 0 0;
  -webkit-transform-style: preserve-3d; transform-style: preserve-3d; }
html.spread .sheet { display: block; position: relative; -webkit-transform-style: preserve-3d; transform-style: preserve-3d; }
html.spread .sheet.sp-live { will-change: transform; }
html.spread .page { -webkit-backface-visibility: hidden; backface-visibility: hidden; }
html.spread .page::before, html.spread .formpage::before { display: none; }
html.spread .leaf[data-i="0"], html.spread .stage > .formpage { z-index: 1; }
html.spread .leaf[data-i="1"], html.spread .leaf[data-i="2"] { z-index: 3; }
/* pages that lie on another page get a soft shadow instead of the dark cover edge */
html.spread .p2, html.spread .p3 { box-shadow: 0 10px 22px rgba(25, 12, 4, .32), 0 1px 3px rgba(25, 12, 4, .2); }
html.spread .sp-x { display: block; position: absolute; pointer-events: none; }
/* the wire binding: one static strip down the middle of the book */
html.spread .sp-coil { z-index: 10; background: url(images/nb/coil-spine.webp) 0 0 repeat-y; }
/* the pages meet at the spine: the two covers run on under the join, with square corners there */
html.spread .p1 { border-radius: 6px 0 0 6px;
  box-shadow: -5px -5px 0 0 var(--cover), -5px 5px 0 0 var(--cover), 0 -5px 0 0 var(--cover), 0 5px 0 0 var(--cover), 0 16px 26px rgba(25, 12, 4, .55), 0 2px 4px rgba(25, 12, 4, .35); }
html.spread .stage > .formpage { border-radius: 0 6px 6px 0;
  box-shadow: 5px -5px 0 0 var(--cover), 5px 5px 0 0 var(--cover), 0 -5px 0 0 var(--cover), 0 5px 0 0 var(--cover), 0 16px 26px rgba(25, 12, 4, .55), 0 2px 4px rgba(25, 12, 4, .35); }
/* the turning page darkens as it lifts; the page it lands on and the one it leaves get its shadow */
html.spread .sp-shade { inset: 0; z-index: 40; opacity: 0; border-radius: inherit; }
html.spread .p2 > .sp-shade { background: linear-gradient(90deg, rgba(30, 18, 8, .42) 0%, rgba(30, 18, 8, .16) 30%, rgba(255, 250, 240, .14) 72%, rgba(30, 18, 8, .10) 100%); }
html.spread .p3 > .sp-shade { background: linear-gradient(270deg, rgba(30, 18, 8, .42) 0%, rgba(30, 18, 8, .16) 30%, rgba(255, 250, 240, .14) 72%, rgba(30, 18, 8, .10) 100%); }
html.spread .sp-cast { inset: 0; z-index: 40; opacity: 0; border-radius: inherit; }
html.spread .formpage > .sp-cast { background: linear-gradient(90deg, rgba(25, 12, 4, .34) 0%, rgba(25, 12, 4, .16) 14%, rgba(25, 12, 4, .04) 34%, rgba(25, 12, 4, 0) 50%); }
html.spread .p1 > .sp-cast { background: linear-gradient(270deg, rgba(25, 12, 4, .34) 0%, rgba(25, 12, 4, .16) 14%, rgba(25, 12, 4, .04) 34%, rgba(25, 12, 4, 0) 50%); }
/* the cue: the right page's bottom corner is lifted, showing grid paper beneath; clicking it turns the page */
html.spread .sp-corner { right: 0; bottom: 0; width: 58px; height: 58px; z-index: 41; pointer-events: auto; cursor: pointer;
  border-radius: 0 0 6px 0; transform-origin: 100% 100%;
  background-color: #fbfbfa;
  background-image: linear-gradient(315deg, rgba(25, 12, 4, 0) 40%, rgba(25, 12, 4, .16) 50%, rgba(25, 12, 4, 0) 51%),
    linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 100% 100%, 15px 15px, 15px 15px; background-position: 0 0, 2px 0, 2px 0; }
html.spread .sp-flap { position: absolute; inset: 0; filter: drop-shadow(2px 2px 3px rgba(25, 12, 4, .42)); }
html.spread .sp-corner { transition: transform .25s ease-out; }
html.spread .sp-corner:hover { transform: scale(1.25); }
html.spread .sp-flap::before { content: ""; position: absolute; inset: 0; clip-path: polygon(0 0, 100% 0, 0 100%);
  background: linear-gradient(135deg, #ffffff 0%, #efece6 48%, #d9d3c8 100%); }
html.spread .sp-corner.sp-peek { animation: sp-peek 1.6s ease-in-out 1; }
@keyframes sp-peek { 0%, 100% { transform: scale(1); } 35%, 55% { transform: scale(1.9); } }

/* the stack from 1240px wide, in a window too short for the open book (flip.js, 2026-11-09): one page at a time,
   as on a tablet, so the desktop grid and the left hand pages' mirrored corners give way to the stack's */
@media (min-width: 1240px) {
  html.flip .book { display: block; padding: 0; }
  html.flip .p1, html.flip .p3 { border-radius: 2px 6px 6px 2px; }
  html.flip .nb-formleaf .formpage { aspect-ratio: auto; padding: 30px 18px 34px 42px; }
}

/* ---------- phone density, 2026-11-01 (Carlos: restyle, don't accept) ----------
   Spacing and type only. The checklist's density rules at 390: body line height 1.5, 32px between text
   blocks, 8px under a heading. The 700px+ pages keep their measured layout above. */
@media (max-width: 699px) {
  .print figcaption { font-size: 15px; line-height: 1.5; top: 79%; }
  .receipt { line-height: 1.5; }
  .receipt li { line-height: 1.5; }
  /* the receipt's own dashed tear line (same as under the clip) separates the three groups of lines */
  .receipt ul + ul { margin-top: 20px; padding-top: 22px; border-top: 1.5px dashed #9a958e; }
  .receipt h3 { margin-top: 20px; padding-top: 22px; border-top: 1.5px dashed #9a958e; }
  .text-me { line-height: 1.5; }
  .gridnote { line-height: 1.5; }
  .gridnote > p { line-height: 1.5; }
  .formpage h2 { margin-bottom: 24px; }
  .req-area { line-height: 1.5; margin: 0 0 18px; }
}

/* go-live review 2026-11-04 */
.sr { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.ticket-num { display: block; font-size: .9em; }
.phone-line { margin-top: 8px; font: 500 18px/1.3 var(--cond); color: var(--ink); }
.phone-line a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 2px; text-underline-offset: 3px; }
.text-me span { text-decoration: underline; text-underline-offset: 3px; }
.ticket-text { flex-direction: column; line-height: 1.15; }
@media (max-width: 389px) { .dates li, .dates-stamp { line-height: 1.5; } }

/* ---------- client quotes, 2026-11-09 ----------
   A grid note card taped to the rates page: a short pull from the client's letter, her name, and Read more,
   which opens the whole letter (#letters, a modal dialog drawn as a page torn from the notebook). One card per
   client in .quotes; on a phone the cards follow the rates receipt, from 700px the first sits under the pig. */
.quotes { grid-column: 1 / -1; grid-row: 5; justify-self: center; width: 270px; max-width: 100%; margin-top: 10px; }
.quote { position: relative; padding: 32px 20px 6px 22px; transform: rotate(1.5deg); }
.quote > .paper { filter: drop-shadow(0 4px 5px rgba(0,0,0,.25)); }
.quote + .quote { margin-top: 28px; transform: rotate(-1.5deg); }
.quote .mat { object-fit: cover; }
.quote > :not(.paper) { position: relative; z-index: 1; }
.tape-quote { width: 46%; left: 27%; top: -15px; transform: rotate(-3deg); }
.q-pull { margin: 0; }
.q-pull p { font: 400 17px/1.5 var(--hand); }
.quote figcaption, .letter-sign { display: flex; flex-direction: column; }
.quote figcaption { margin-top: 10px; }
.q-name { font: 700 17px/1.4 var(--hand); white-space: nowrap; } /* the hand print face, bold, so "Salina R." reads as the name over "client since" (Carlos 2026-11-10: the script's R read as an L) */
.q-since { font: 400 16px/1.3 var(--hand); color: var(--ink-soft); }
.q-more {
  display: inline-flex; align-items: center; min-height: 44px; min-width: 44px; padding: 0; margin: 2px 0 0;
  border: 0; background: none; cursor: pointer; color: var(--ink);
  font: 700 17px/1.2 var(--hand); text-decoration: underline; text-underline-offset: 3px;
}
.q-more:hover { text-decoration-thickness: 2px; }
.q-more:focus-visible, .letters-close:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 4px; }

.letters {
  width: min(600px, calc(100vw - 24px)); max-width: none; max-height: calc(100vh - 32px); max-height: calc(100dvh - 32px);
  margin: auto; padding: 0; border: 0; background: transparent; color: var(--ink);
  overflow: auto; overscroll-behavior: contain;
}
.letters::backdrop { background: rgba(25, 12, 4, .62); }
.letters-sheet {
  position: relative; padding: 14px 22px 26px 30px;
  background-color: #fff;
  background-image: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 15px 15px; background-position: 6px 6px;
  border-radius: 2px 6px 6px 2px;
}
/* opaque band so the sticky Close never sits over letter text; the ring stays inside it (second opinion 11-09 A11Y-2) */
.letters-bar { position: sticky; top: -14px; z-index: 2; display: flex; justify-content: flex-end; margin: -14px -22px 0 -30px; padding: 14px 22px 8px 30px; background: #fff; }
.letters-close {
  display: inline-flex; align-items: center; justify-content: center; min-height: 44px; min-width: 88px; padding: 0 16px;
  border: 2px solid #6a5f56; border-radius: 6px; background: #fffefb; cursor: pointer;
  font: 600 18px/1 var(--cond); color: var(--ink);
}
.letters-close:hover { border-color: var(--ink); text-decoration: underline; }
.letters h2 { font: 700 26px/1.25 var(--hand); margin: 2px 0 16px; } /* no underline: the names under it are the links (11-09 DC-9) */
.letter p { font: 400 18px/1.55 var(--hand); margin: 0 0 14px; }
.letter + .letter { margin-top: 28px; padding-top: 24px; border-top: 1.5px dashed #9a958e; }
.letter .letter-sign { margin: 4px 0 0; }

@media (min-width: 700px) {
  /* under the pig (raised a little to make room), left of the receipt; the chicken stands on the card's corner,
     the way the fish doodle sits on the open dates page's note */
  .pig { top: 32.5%; }
  .quotes { left: 7.5%; top: 61.6%; width: 37.5%; }
  .receipt { z-index: 1; } /* the card's right edge tucks under the receipt */
  .quote { padding: 9% 7% 3% 9%; transform: rotate(1deg); }
  .tape-quote { top: -5%; }
  .q-pull p { font-size: 16px; line-height: 1.3; }
  .quote figcaption { margin-top: 4px; }
  .q-name { font-size: 17px; line-height: 1.3; } /* Kalam 700 (Carlos 2026-11-10) */
  .q-since { font-size: 15px; }
  /* a one line link to look at; the button itself is a 44px tall target, its padding taken back by negative
     margins so the words don't move (in the open book 44px is divided by the book's scale, --sp-k) */
  .q-more { --pad: calc((44px / var(--sp-k, 1) - 19.2px) / 2); position: relative; min-height: 0; font-size: 16px; line-height: 19.2px;
    padding: var(--pad) 8px; margin: calc(4px - var(--pad)) -8px calc(-1 * var(--pad)); }
  .chicken { z-index: 2; left: 32%; top: 92%; width: 9%; } /* clear of "client since 2014" outside the book too, as in it (2026-11-12; was 88.6%, 2.5 to 3.2px off the words) */
}
@media (max-width: 380px) { .letters-sheet { padding: 12px 14px 22px 18px; } .letter p { font-size: 17px; }
  .letters-bar { margin: -12px -14px 0 -18px; padding: 12px 14px 8px 18px; } /* fits the narrower sheet (320px scrolled sideways, 2c2f51e A11Y-3) */ }

/* ---------- second opinion 2026-11-09 (b5cdf20) ---------- */
/* two tone focus ring: a white band against the control and a navy band outside it, so one of them clears 3:1
   on paper, on the coral tickets and on the dark footer band (A11Y-5); scrollable boxes such as the letters
   dialog get the same ring when they take a Tab stop (A11Y-6) */
:focus-visible { outline: 3px solid #0b2a57 !important; outline-offset: 3px !important; box-shadow: 0 0 0 6px #fff !important; border-radius: 4px; }
.rq input:focus-visible, .rq textarea:focus-visible, .rq-check input:focus-visible { border-radius: 6px; }
/* forced colors: the drawn checkbox would hide its tick, so the system draws it again (A11Y-1) */
@media (forced-colors: active) {
  .rq-check input { -webkit-appearance: auto; appearance: auto; background-image: none !important; }
  :focus-visible { outline-color: Highlight !important; box-shadow: none !important; }
}
/* the open book shrinks to 0.84 in a short window: Text, Email and the pay links keep a 44px tall target on screen,
   the extra height taken back by negative margins so nothing moves (A11Y-4) */
html.spread .contact-icons a { height: calc(44px / var(--sp-k, 1)); margin-block: calc((44px - 44px / var(--sp-k, 1)) / 2); }
html.spread .pay a { min-height: calc(44px / var(--sp-k, 1)); margin-block: calc((44px - 44px / var(--sp-k, 1)) / 2); }
/* the letters dialog: the two names at the top jump to each letter, below the sticky Close bar (DC-5) */
.letters-names { margin: -6px 0 18px; font: 600 18px/1.3 var(--cond); }
.letters-names a { display: inline-flex; align-items: center; min-height: 44px; color: var(--ink); text-underline-offset: 3px; }
.letter { scroll-margin-top: 80px; }
.letter:focus { outline: none; }
/* a short stack (a laptop browser under 650px tall, a tablet under 720px): the cover packs tighter so the whole
   Call ticket shows in the first view (DC-1) */
@media (min-width: 700px) and (max-height: 720px) {
  html:not(.spread) .p1 .tag { top: 4%; width: 74%; left: 13%; }
  /* the photo and the ticket scale with the window's height (--cv from flip.js, 1 from about 625px up) and each
     piece sits under the one above, so the whole Call ticket shows down to a 560px tall window (11-09 DC-2) */
  html:not(.spread) .p1 .hero { top: 23.5%; width: calc(39% * var(--cv, 1)); left: calc(49.5% - 19.5% * var(--cv, 1)); }
  html:not(.spread) .p1 .since { top: calc(191px + 195px * var(--cv, 1)); line-height: 1.4; }
  html:not(.spread) .p1 .ticket-solo { top: calc(297px + 195px * var(--cv, 1)); width: calc(48% * var(--cv, 1)); left: calc(50% - 24% * var(--cv, 1)); }
}

/* ---------- second opinion 2026-11-09 (1b6f7a1) ---------- */
/* Read more: the 44px box stays the tap area, the ring hugs the words (A11Y-3) */
.q-more { position: relative; }
.q-more:focus-visible { outline: none !important; box-shadow: none !important; }
.q-more:focus-visible::after { content: ""; position: absolute; pointer-events: none; left: -5px; right: -5px; /* below 700 the button has no side padding (11-09 A11Y-2) */
  top: calc(var(--pad, 12px) - 1px); bottom: calc(var(--pad, 12px) - 1px); border-radius: 4px; box-shadow: 0 0 0 2px #fff, 0 0 0 5px #0b2a57; }
@media (min-width: 700px) { .q-more:focus-visible::after { left: 4px; right: 4px; } } /* 8px side padding there */
@media (forced-colors: active) { .q-more:focus-visible::after { box-shadow: none; outline: 3px solid Highlight; } }
/* Email is an icon only: in the book its box is 44px wide on screen too, the growth taken back by margins (A11Y-4) */
html.spread .contact-icons a[href^="mailto:"] { min-width: calc(44px / var(--sp-k, 1)); margin-inline: calc((44px - 44px / var(--sp-k, 1)) / 2); }
html.spread .pay a { padding-inline: 6px; margin-inline: -4px; }
/* a letter jumped to from the names takes focus: its ring clears the words and the divider (A11Y-6) */
.letter { padding: 8px; margin-inline: -8px; }
.letter + .letter { padding-top: 24px; }
/* each letter opens with its writer's name (DC-10) */
.letter-name { font: 700 20px/1.3 var(--hand); margin: 0 0 10px; }

/* ---------- second opinion 2026-11-09 (8ff581a) ---------- */
/* pages under the face up one: clipped to their box (flip.js nb-deep); WebKit otherwise left a hole */
html.flip .leaf.nb-deep { clip-path: inset(0); }
html.flip .leaf.nb-buried { clip-path: inset(50%) !important; } /* over the request page's inline clip from flip.js: buried pages are never hit (2c2f51e turn.mjs: taps reached the form) */ /* drawn nowhere, but still focusable and read by screen readers (visibility: hidden would hide its links from Tab) */
/* forced colors: placeholders read as hints, not typed values */
@media (forced-colors: active) { ::placeholder { color: GrayText; opacity: 1; } }

/* ---------- second opinion 2026-11-09 (b6915c2) ---------- */
/* Chromium hit-tested the book's turning page as a flat sheet behind its own words (Read more went to the page
   from 1 degree): each page gets its own plane (A11Y-2a) */
html.spread .page { transform: translateZ(0); }
/* the leaf boxes stay flat while their pages turn: only the pages take clicks, where they are drawn (e9d9a6b A11Y-1) */
html.spread .leaf { pointer-events: none; }
html.spread .page { pointer-events: auto; }
/* a little room under "Phone or email" before the Phone and Email labels (DC-4) */
@media (min-width: 1240px) { #rq-contact > .rq-pair { margin-top: 6px; } }
/* a phone on its side (under 700 wide, under 500 tall): the cover sits in two columns, the photo beside the tag,
   the lines and the Call ticket, so the whole ticket shows in the first view (A11Y-6) */
@media (max-width: 699px) and (max-height: 500px) and (orientation: landscape) {
  .p1 { display: grid !important; grid-template-columns: auto auto; grid-template-rows: auto auto auto; column-gap: 18px; align-content: center; justify-content: center; align-items: center; justify-items: center; }
  .p1 > .tag { grid-column: 2; grid-row: 1; width: 200px; margin: 0; }
  .p1 > .tag h1 { font-size: 21px; white-space: nowrap; }
  .p1 > .hero { grid-column: 1; grid-row: 1 / span 3; width: 132px; margin: 0; }
  .p1 > .since { grid-column: 2; grid-row: 2; margin: 8px 0 0; line-height: 1.2; white-space: nowrap; } /* clear of the tag (fe9f36e DC-4) */
  .p1 > .ticket-solo { grid-column: 2; grid-row: 3; width: 140px; margin: 8px 0 2px; }
}
/* under 340px wide (a 320px phone) the fixed widths overhang the page and the window scrolled sideways (A11Y-4) */
@media (max-width: 339px) {
  .ticket-solo { width: 206px; margin-left: 22px; }
  .receipt, .quotes { width: calc(100% - 16px); }
  .frenchies { max-width: calc(100% - 12px); margin-right: 4px; }
  .chicken { width: 80px; margin-left: 8px; }
}
/* the form's error state in the book (1240+): even gaps between the groups, 8px under the summary, 4px under "Phone or
   email", "One is enough." stays on its line, and each message clears its field's focus ring; error lines at 1.15
   and 4px less page bottom, so all seven errors still fit the page at 0.84 (e9d9a6b DC-2, 2c2f51e DC-1) */
@media (min-width: 1240px) {
  form.rq:has(.rq-summary:not([hidden])) .rq-grid { row-gap: 5px; } /* 6 to 5 with the 208px ticket, still even (2026-11-22) */
  /* the checkbox rows keep their 44px targets, but the space under the last one is taken back so the gap after the
     care group matches the others (11-10, 2c2f51e DC-1) */
  form.rq:has(.rq-summary:not([hidden])) .rq-checks { margin-bottom: -20px; }
  .rq-summary { margin-bottom: 8px; }
  form.rq:has(.rq-summary:not([hidden])) #rq-contact > .rq-pair { clear: both; margin-top: 0; padding-top: 4px; } /* at rest the 6px margin stays */
  #rq-contact.rq-bad > .rq-hint { display: block; }
  .rq-err { margin-top: 5px; line-height: 1.15; }
  /* in the error state a focused field's ring is a 2px navy line on its edge (13.7:1 on the paper), so it ends 3px
     above the message under it instead of touching it (fe9f36e A11Y-5) */
  form.rq:has(.rq-summary:not([hidden])) input:not([type="checkbox"]):focus-visible,
  form.rq:has(.rq-summary:not([hidden])) textarea:focus-visible,
  form.rq:has(.rq-summary:not([hidden])) input[type="checkbox"]:focus-visible { outline: 2px solid #0b2a57 !important; outline-offset: 0 !important; box-shadow: none !important; } /* checkboxes too: their halo ran into "Required" (f967bc6 A11Y-2) */
  /* the cancel line keeps the same gap as the groups above it (fe9f36e DC-1) */
  form.rq:has(.rq-summary:not([hidden])) > .req-cancel, form.rq:has(.rq-summary:not([hidden])) > .rq-send { margin-top: 10px; }
  form.rq:has(.rq-summary:not([hidden])) > .rq-send { margin-top: 0; translate: none; } /* the wider 208px ticket is 15px taller; no margin above it keeps all seven errors on the page (2026-11-22) */
  .formpage:has(.rq-summary:not([hidden])) { padding-bottom: 4px; }
}
/* ---------- second opinion 2026-11-10 (2c2f51e) ---------- */
/* forced colors: the error icons keep their "!" as a ringed mark in system colors (A11Y-6) */
@media (forced-colors: active) {
  .rq-icon { forced-color-adjust: none; }
  .rq-icon circle:first-of-type { fill: none; stroke: CanvasText; stroke-width: 2px; }
  .rq-icon path { stroke: CanvasText; }
  .rq-icon circle:last-of-type { fill: CanvasText; }
}
/* a narrow phone held upright with a short window (320 x 568): the cover packs tighter so the whole Call ticket
   shows in the first view (DC-4) */
@media (max-width: 699px) and (max-height: 700px) and (orientation: portrait) {
  .p1 > .tag { width: 236px; margin-top: 2px; }
  .p1 > .tag h1 { font-size: 26px; }
  .p1 > .hero { width: 150px; }
  .p1 > .since { line-height: 1.45; margin: 8px 0 2px; }
  .p1 > .ticket-solo { width: 196px; margin-top: 8px; }
}
@media (max-width: 699px) and (max-height: 600px) and (orientation: portrait) {
  .p1 > .tag { width: 216px; }
  .p1 > .tag h1 { font-size: 24px; }
  .p1 > .hero { width: 136px; }
}
/* 320px: "Send me your dates" beside the open dates note ran 7px past the page edge (fe9f36e DC-2) */
@media (max-width: 339px) { .notepad { width: 194px; } } /* the note gives the link beside it room */
/* from 700px (stack, book and flat layout): more mat under Read more, which ran past the card's paper; the larger
   name made the card taller at every width (78c49d4 DC-2) */
@media (min-width: 700px) { .quote { padding-bottom: calc(3% + 10px); } }

/* ---------- beta round 2026-11-12 ---------- */
/* open dates: one link to her booking calendar (/dates) in the dates' own hand and size. The note keeps
   the height of the four lines it held (the stamp and three ranges), so nothing on the page moves; the tap area is
   44px tall without changing how the words look */
.dates-link { min-height: 5.6em; } /* 4 lines at 1.4 */
.dates-link a { position: relative; text-decoration: underline; text-underline-offset: 3px; }
.dates-link a::after { content: ""; position: absolute; left: -4px; right: -4px; top: 50%; height: 44px; transform: translateY(-50%); }
@media (min-width: 700px) { .dates-link { min-height: 5.4em; } } /* 4 lines at 1.35 */
@media (max-width: 389px) { .dates-link { line-height: 1.5; min-height: 6em; } }
/* Read more from 700px: the same 44px target and the same words, with 6px more of the target above them and 6px less
   below, so in the open book at 0.84 its box clears the card's foot (it sat 1 to 2px off it) */
@media (min-width: 700px) {
  .q-more { --up: 6px; padding: calc(var(--pad) + var(--up)) 8px calc(var(--pad) - var(--up));
    margin: calc(4px - var(--pad) - var(--up)) -8px calc(var(--up) - var(--pad)); }
}
.q-more:focus-visible::after { top: calc(var(--pad, 12px) + var(--up, 0px) - 1px); bottom: calc(var(--pad, 12px) - var(--up, 0px) - 1px); }

/* ---------- phone fix 2026-11-12 (Carlos on his Android: "Second page is awkwardly long") ----------
   Under 700px the rates page opens on her two photos side by side, then the lizard and the chicken drawn small on
   either side of the receipt's paperclip (the lizard's scrap laid over the receipt's blank top corner), so the rates
   card starts about a third higher. Same pictures, same
   words; tablet and desktop untouched. */
@media (max-width: 699px) {
  .p2 { row-gap: 0; }
  .p2 .frenchies { grid-column: 1; grid-row: 1; margin-top: 8px; }
  .p2 .pig { grid-column: 2; grid-row: 1; margin-top: 14px; }
  .p2 .dragon { position: relative; z-index: 2; grid-column: 1; grid-row: 2; width: 112px; max-width: 100%; justify-self: start; margin: 16px 0 0 0; }
  .p2 .chicken { grid-column: 2; grid-row: 2; width: 54px; justify-self: end; align-self: start; margin: 22px 10px 0 0; }
  .p2 .receipt { grid-row: 3; margin-top: -34px; }
  .p2 .quotes { grid-row: 4; }
}
/* the flat layout (reduced motion, no JS): after a send with fields to fix, the browser scrolls the error summary in
   with 16px of paper above it, not flush with the window's top (second opinion 5adf975 A11Y-3) */
.rq-summary { scroll-margin-top: 16px; }

/* ---------- phones 2026-11-13 (Carlos on his Android: "You should see the whole notebook and if it's a long page the
   content is hidden until you scroll. The fact the top of the notebook moves just seems off.") ----------
   Under 700px (flip.js html.nbf) each page is a frame that fits the screen: its top edge, the coils and its foot stay
   put, and reading a page moves its content and its grid paper (.nb-paper) up inside it, clipped by the page's own
   edges. Then the whole page turns. Tablets, the open book, reduced motion and no JS are unchanged. */
html.flip .nb-paper { display: none; }
html.flip.nbf .nb-frame { overflow: hidden; overflow: clip; background-image: none; isolation: isolate; }
html.flip.nbf .nb-paper { display: block; left: 0; right: 0; top: 0; z-index: -1; background-color: #fff;
  background-image: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 15px 15px; background-position: 6px 6px; }
html.flip.nbf .p1.nb-long { justify-content: flex-start; } /* a cover taller than its frame reads from its top */
html.flip.nbf .nb-formcoil { display: none; } /* the request page's frame is the others' size: the binding covers it */
