/* Home page: base styles every section relies on. Each section's own styles live next to its
 component (src/components/<section>/<section>.css), imported in page order. */
html { scroll-behavior: smooth; }
body { margin: 0; background: #fffaf3; color: #2b1900; font-family: Manrope, system-ui, sans-serif; }
canvas { display: block; }
canvas { touch-action: pan-y; cursor: grab; }       /* horizontal drag = time; vertical still scrolls */
body.dragging canvas { cursor: grabbing; }
.btn {
  display: inline-flex; align-items: center; gap: 8px; text-decoration: none;
  padding: 12px 20px; border-radius: 999px; font: 600 14px/1 Manrope, system-ui, sans-serif;
  transition: transform 0.15s, background 0.2s, color 0.2s;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: #140533; color: #fff6e3; }
.btn-ghost { background: rgba(255, 250, 240, 0.55); color: #140533; box-shadow: inset 0 0 0 1px rgba(20, 5, 51, 0.25); backdrop-filter: blur(6px); }
body.night .btn-primary { background: #fff6e3; color: #140533; }
body.night .btn-ghost { background: rgba(20, 5, 51, 0.35); color: #fff6e3; box-shadow: inset 0 0 0 1px rgba(255, 246, 227, 0.4); }
/* ---- sections below the hero ---- */
section.page { max-width: 1180px; margin: 0 auto; padding: clamp(56px, 8vw, 110px) clamp(16px, 4vw, 48px); scroll-margin-top: 60px; }
section.page h2.sec { font: 600 clamp(28px, 4vw, 44px)/1.1 "Bricolage Grotesque", sans-serif; color: #140533; margin: 0 0 8px; }
section.page p.lede { font: italic 17px/1.5 "Libre Baskerville", serif; color: #5a4630; margin: 0 0 36px; max-width: 60ch; }
.placeholder { display: inline-block; font: 600 11px/1 Manrope, sans-serif; letter-spacing: 0.06em; text-transform: uppercase; color: #9a6b00; background: #fff0c2; padding: 5px 8px; border-radius: 6px; margin-bottom: 14px; }
html, body { overflow-x: clip; }                 /* full-bleed grid lines never cause sideways scroll */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
footer.page { text-align: center; padding: 40px 16px 60px; font: 13px/1 Manrope, sans-serif; color: #8a7760; }
/* ---- one rhythm for the whole page: every section sits --gap from the next ---- */
:root { --gap: clamp(88px, 9vw, 128px); }
section.page { padding-block: 0 var(--gap) !important; }
footer.page { padding-top: 0 !important; }
/* ================= one screen per section ================= */
:root { --screen: calc(100svh - 68px); }
/* About, Bookshelf, Contact: exactly one screen, content centred */
/* every section: same --gap below it, content sized to the screen (not centred, so gaps stay equal) */
#about, #bookshelf, #art { padding-block: 0 var(--gap) !important; }
section.page + section.page { margin-top: 0; }
/* ---- one typeface for the whole site: Satoshi ---- */
*, *::before, *::after, button, input { font-family: Satoshi, system-ui, -apple-system, sans-serif !important; }
@media (max-width: 760px) {
  :root { --gap: 84px; }
}
/* before the font is in, the copy waits invisibly (only when JS runs, so no-JS still shows it) */
html.js:not(.is-ready) .intro, html.js:not(.is-ready) #heroTag .w { opacity: 0; }
@keyframes introUp { from { opacity: 0; transform: translateY(16px); } }
html.is-ready .intro { animation: introUp 0.95s cubic-bezier(0.2, 0.8, 0.2, 1) var(--d, 0s) backwards; }
@media (prefers-reduced-motion: reduce) { html.is-ready .intro { animation-duration: 0.01s; } }
/* ================= loader: a sunflower that blooms with real progress, then lifts away ================= */
#loader { position: fixed; inset: 0; z-index: 1000; display: grid; place-content: center; justify-items: center;
  background: radial-gradient(ellipse 70% 55% at 50% 46%, #fff6e2 0%, #fbf3e4 45%, #f3e8d4 100%);
  box-shadow: 0 30px 60px rgba(40, 24, 8, 0.25);
  transition: transform 1s cubic-bezier(0.76, 0, 0.24, 1); will-change: transform; }
#loader.lift { transform: translateY(calc(-100% - 70px)); pointer-events: none; }
html.is-loading, html.is-loading body { overflow: hidden; }
.ld-bloom { width: 132px; height: 132px; animation: ldSpin 14s linear infinite; }
.ld-bloom svg { width: 100%; height: 100%; overflow: visible; display: block; transition: transform 0.5s cubic-bezier(0.2, 1.3, 0.3, 1); }
.ld-petal { fill: #f2b51c; transform: rotate(var(--a)) scale(0.15, 0.1); transform-origin: 0 0; opacity: 0;
  transition: transform 0.7s cubic-bezier(0.2, 1.4, 0.3, 1), opacity 0.4s; }
.ld-petal.back { fill: #dc9512; }
.ld-petal.on { transform: rotate(var(--a)) scale(1); opacity: 1; }
.ld-disk { fill: #5a3a14; }
.ld-seeds circle { fill: #2e1d08; opacity: 0.75; }
#loader.bloom .ld-bloom svg { transform: scale(1.14); }
.ld-name { margin: 26px 0 0; font: 700 30px/1 Satoshi, system-ui, sans-serif; letter-spacing: -0.03em; color: #1f1a17; }
.ld-line { margin: 12px 0 0; display: flex; gap: 10px; align-items: baseline; font: 500 13px/1 Satoshi, system-ui, sans-serif; color: #8a7760; }
.ld-pct { min-width: 2.2em; text-align: right; font-variant-numeric: tabular-nums; color: #b8862b; font-weight: 700; }
.ld-pct::after { content: "%"; }
@keyframes ldSpin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) {
  .ld-bloom { animation: none; } #loader { transition: opacity 0.4s; } #loader.lift { transform: none; opacity: 0; }
}
/* ---- site header ---- */
body.nav-header #topnav .right { display: flex; align-items: center; gap: clamp(14px, 2.2vw, 24px); }
/* ---- top header ---- */
#topnav { display: none; }
body.nav-header #topnav {
  display: flex; position: fixed; inset: 0 0 auto; z-index: 100; height: 68px;   /* above every page layer (shelf, notes…) */ box-sizing: border-box;
  align-items: center; justify-content: space-between; padding: 0 clamp(16px, 4vw, 48px);
  color: #140533; transition: background 0.3s, box-shadow 0.3s, color 0.3s;
}
body.nav-header.night #topnav:not(.solid) { color: #fff6e3; }
#topnav.solid { background: rgba(255, 250, 243, 0.92); backdrop-filter: blur(10px); box-shadow: 0 1px 0 rgba(20, 5, 51, 0.08); }
#topnav .brand { font: 600 20px/1 "Bricolage Grotesque", sans-serif; color: inherit; text-decoration: none; letter-spacing: -0.01em; }
#topnav .brand span { color: #e0a100; }
#topnav ul { display: flex; align-items: center; gap: clamp(14px, 2.2vw, 28px); list-style: none; margin: 0; padding: 0; }
#topnav a.link { color: inherit; text-decoration: none; font: 500 15px/1 Manrope, sans-serif; position: relative; padding: 6px 0; }
#topnav a.link::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; border-radius: 2px; background: #e0a100; transform: scaleX(0); transition: transform 0.2s; }
#topnav a.link:hover::after, #topnav a.link.active::after { transform: scaleX(1); }
#topnav .cta { padding: 11px 18px; }
body.nav-header.night #topnav:not(.solid) .cta { background: #fff6e3; color: #140533; }
#topnav .menu-btn { display: none; }
@media (max-width: 760px) {
  #topnav ul { display: none; }
  #topnav .menu-btn { display: block; font: 600 14px/1 Manrope, sans-serif; color: inherit; background: transparent; border: 1px solid currentColor; border-radius: 999px; padding: 9px 14px; cursor: pointer; }
  #topnav.open ul {
  display: flex; flex-direction: column; align-items: stretch; gap: 0; position: absolute; top: 64px; right: 12px; left: 12px;
  padding: 8px; border-radius: 18px; background: #fffaf3; color: #140533; box-shadow: 0 8px 30px rgba(0, 0, 0, 0.18);
  }
  #topnav.open ul a.link { display: block; padding: 14px 12px; color: #140533; }
  #topnav.open ul .cta { margin-top: 6px; justify-content: center; }
}
/* ================= premium header ================= */
body.nav-header #topnav { height: 76px; padding: 0 clamp(20px, 4vw, 56px); transition: height 0.35s ease, background 0.35s, box-shadow 0.35s, color 0.35s; }
body.nav-header #topnav:not(.solid) { background: linear-gradient(180deg, rgba(255, 250, 243, 0.55), rgba(255, 250, 243, 0)); }
body.nav-header.night #topnav:not(.solid) { background: linear-gradient(180deg, rgba(8, 10, 28, 0.5), rgba(8, 10, 28, 0)); }
body.nav-header #topnav.solid { height: 62px; background: rgba(255, 250, 243, 0.86); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); box-shadow: 0 1px 0 rgba(20, 5, 51, 0.07); }
/* the original wordmark: a 1000px square GIF with the lettering in a band across the middle */
#topnav .brand { position: relative; display: block; width: 210px; height: 44px; flex: none; }
#topnav .brand .wm { display: block; width: 210px; height: 44px; }
#topnav .brand .wm-src { position: absolute; left: 0; top: 0; width: 8px; height: 8px; opacity: 0.01; pointer-events: none; }   /* kept rendered so the GIF keeps animating */
/* links: smaller, tracked, quieter */
#topnav ul { gap: clamp(18px, 2.4vw, 34px); }
#topnav a.link { font: 500 13.5px/1 Satoshi, sans-serif !important; letter-spacing: 0.02em; opacity: 0.78; transition: opacity 0.2s; padding: 8px 0; }
#topnav a.link:hover, #topnav a.link.active { opacity: 1; }
#topnav a.link::after { height: 1px; bottom: 2px; background: currentColor; transform-origin: left; transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1); }
#topnav .divider { width: 1px; height: 18px; background: currentColor; opacity: 0.18; }
#topnav .cta { padding: 10px 18px !important; font: 600 13.5px/1 Satoshi, sans-serif !important; letter-spacing: 0.01em; border-radius: 999px; }
#topnav .cta .arr { display: inline-block; margin-left: 6px; transition: transform 0.25s; }
#topnav .cta:hover .arr { transform: translateY(2px); }
@media (max-width: 860px) { #topnav .brand, #topnav .brand .wm { width: 160px; height: 34px; } #topnav .divider { display: none; } }
/* ================= tablets: header links fold into the menu before they wrap ================= */
@media (min-width: 761px) and (max-width: 980px) {
  #topnav ul { display: none; }
  #topnav .menu-btn { display: block; font: 600 14px/1 Satoshi, sans-serif; color: inherit; background: transparent; border: 1px solid currentColor; border-radius: 999px; padding: 9px 14px; cursor: pointer; }
  #topnav.open ul { display: flex; flex-direction: column; align-items: stretch; gap: 0; position: absolute; top: 64px; right: 16px; width: 280px;
    padding: 8px; border-radius: 18px; background: #fffaf3; color: #140533; box-shadow: 0 8px 30px rgba(0, 0, 0, 0.18); }
  #topnav.open ul a.link { display: block; padding: 14px 12px; color: #140533; }
  #topnav.open ul .cta { margin-top: 6px; justify-content: center; }
  #topnav .divider { display: none; }
}
/* ---- sound ---- */
#soundbox { position: relative; display: flex; }
#soundhint { position: absolute; top: calc(100% + 10px); right: 0; white-space: nowrap; pointer-events: none; }
#soundhint::before { content: ""; position: absolute; top: -5px; right: 22px; width: 10px; height: 10px; background: inherit; transform: rotate(45deg); }
#soundhint[hidden] { display: none; }
body.nav-header.night #topnav:not(.solid) #sound:not([aria-pressed="true"]) { background: rgba(20, 5, 51, 0.45); color: #fff6e3; }
#sound {
  display: flex; align-items: center; gap: 8px; cursor: pointer;
  padding: 9px 14px 9px 11px; border-radius: 999px; border: 0;
  background: rgba(255, 250, 240, 0.82); backdrop-filter: blur(10px);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
  font: 500 13px/1 Manrope, system-ui, sans-serif; color: #2b1900;
  transition: background 0.2s, color 0.2s, transform 0.1s;
}
#sound:hover { transform: translateY(-1px); }
#sound:focus-visible { outline: 2px solid #e0a100; outline-offset: 2px; }
#sound[aria-pressed="true"] { background: #2b1900; color: #fff6e3; }
#sound svg { display: block; }
#sound .wave { transition: opacity 0.1s; }
#sound[aria-pressed="false"] .wave { display: none; }
#sound[aria-pressed="true"] .mute { display: none; }
#soundhint {
  font: italic 12px/1.2 "Libre Baskerville", serif; color: #2b1900;
  background: rgba(255, 250, 240, 0.72); padding: 5px 9px; border-radius: 8px;
}
@media (max-width: 760px) {
  body.nav-header #soundhint { display: none; }
}
/* sound: a quiet round icon button */
body.nav-header #sound { width: 38px; height: 38px; padding: 0; justify-content: center; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(20, 5, 51, 0.16); background: transparent; }
body.nav-header #sound #soundtext { display: none; }
body.nav-header #sound[aria-pressed="true"] { background: #140533; color: #fff6e3; box-shadow: none; }
body.nav-header.night #topnav:not(.solid) #sound { box-shadow: inset 0 0 0 1px rgba(255, 246, 227, 0.4); }
body.nav-header #soundhint { display: none !important; }
/* ---- hero ---- */
#hero { position: relative; height: max(560px, 100svh); overflow: hidden; background: #9cc8ee; }
.tb-btn:focus-visible, #scrub:focus-visible { outline: 2px solid #e0a100; outline-offset: 2px; }
/* ---- timeline ---- */
#timebar {
  position: absolute; right: 16px; bottom: 16px;
  z-index: 3; width: min(460px, calc(100vw - 32px)); box-sizing: border-box;
  display: flex; align-items: center; gap: 12px;
  padding: 10px 14px 22px; border-radius: 18px;
  background: rgba(255, 250, 240, 0.8); backdrop-filter: blur(12px);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.16);
  font: 500 12px/1 Manrope, system-ui, sans-serif; color: #2b1900;
}
.tb-btn {
  flex: none; display: grid; place-items: center; cursor: pointer;
  height: 32px; min-width: 32px; padding: 0 10px; border-radius: 999px;
  border: 1px solid rgba(43, 25, 0, 0.18); background: transparent; color: inherit; font: inherit;
}
.tb-btn:hover { background: rgba(43, 25, 0, 0.06); }
#play { width: 32px; padding: 0; }
#live[aria-pressed="true"] { background: #2b1900; color: #fff6e3; border-color: #2b1900; }
#live .dot { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: #e0a100; margin-right: 6px; vertical-align: 1px; }
#live[aria-pressed="true"] .dot { background: #7ddc6a; box-shadow: 0 0 6px #7ddc6a; }
.track { position: relative; flex: 1; min-width: 0; height: 32px; }
#scrub {
  -webkit-appearance: none; appearance: none; position: absolute; inset: 11px 0 auto; width: 100%; height: 10px; margin: 0;
  border-radius: 999px; background: linear-gradient(90deg, #0a1030, #9cc8ee, #0a1030); cursor: pointer;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.12);
}
#scrub::-webkit-slider-thumb { -webkit-appearance: none; width: 26px; height: 26px; border-radius: 50%; background: transparent; border: 0; }
#scrub::-moz-range-thumb { width: 26px; height: 26px; border-radius: 50%; background: transparent; border: 0; }
#tknob {
  position: absolute; top: 3px; width: 26px; height: 26px; margin-left: -13px; border-radius: 50%;
  display: grid; place-items: center; pointer-events: none; font-size: 15px; line-height: 1;
  background: #fffaf0; box-shadow: 0 1px 6px rgba(0, 0, 0, 0.3); color: #e0a100;
}
#tknob.moon { background: #1b2250; color: #f2ecd8; }
.tmark { position: absolute; top: 26px; transform: translateX(-50%); white-space: nowrap; font-size: 10px; opacity: 0.7; pointer-events: none; }
#tlabel { flex: none; min-width: 64px; text-align: right; font-size: 13px; font-variant-numeric: tabular-nums; }
#draghint {
  position: absolute; right: 16px; bottom: 92px; z-index: 3;
  font: italic 12px/1.2 "Libre Baskerville", serif; color: #2b1900;
  background: rgba(255, 250, 240, 0.72); padding: 5px 10px; border-radius: 8px; pointer-events: none;
  transition: opacity 0.6s;
}
#draghint.gone { opacity: 0; }
/* ---- hero call to action (positioned under the tagline by JS) ---- */
#heroHello { position: absolute; z-index: 3; margin: 0; font: 500 18px/1.2 Satoshi, sans-serif; color: #5a4630; letter-spacing: -0.005em; }
#heroHello b { font-weight: 700; color: #2b1900; }
body.night #heroHello { color: rgba(255, 244, 222, 0.8); } body.night #heroHello b { color: #fff4de; }
#heroProof { position: absolute; z-index: 3; margin: 0; font: 500 15px/1.4 Satoshi, sans-serif; color: #5a4630; }
#heroProof b { font-weight: 700; color: #2b1900; }
#heroProof a { color: inherit; text-decoration: none; border-bottom: 1px solid currentColor; }
#heroProof a:hover { color: #2b1900; }
#heroProof i { font-style: normal; margin: 0 8px; color: #b8862b; }
body.night #heroProof { color: rgba(255, 244, 222, 0.8); } body.night #heroProof b { color: #fff4de; }
#heroCta { position: absolute; z-index: 3; display: flex; gap: 10px; flex-wrap: wrap; }
@media (max-width: 520px) {
  #timebar { gap: 8px; padding: 8px 10px 22px; }
  #live .word { display: none; }
  #tlabel { min-width: 56px; font-size: 12px; }
}
@media (max-width: 760px) {
  /* hero: proof line breaks cleanly, time bar stays tidy */
  #heroProof { font-size: 15px; line-height: 1.55; }
  #heroCta .btn { padding: 13px 20px; font-size: 15px; }
  #timebar { left: 12px; right: 12px; bottom: 12px; width: auto; padding: 8px 10px; gap: 8px; border-radius: 16px; }
  .tmark { display: none; }
  #draghint { right: 12px; bottom: 70px; }
}
/* ================= hero entrance: text first, the field fades in behind it ================= */
#hero { background: var(--hero-bg, #9cc8ee); }
#hero canvas { opacity: 0; transition: opacity 1.1s ease; }
#hero.ready canvas { opacity: 1; }
.hero-copy { position: absolute; z-index: 3; left: 160px; top: max(156px, calc(25% - 24px)); max-width: min(980px, calc(100% - 200px)); }
.hero-copy > * { position: static !important; }
#heroHello { margin: 0 0 12px; }
#heroTag { margin: 0 0 18px; font: 500 clamp(34px, 3.3vw, 52px)/1.08 Satoshi, sans-serif; letter-spacing: -0.035em; color: rgb(31, 18, 0); text-wrap: balance; }
#heroTag .serif { font-family: "Instrument Serif", Georgia, serif; font-style: italic; font-weight: 400; font-size: 1.1em; letter-spacing: -0.01em; }
body.night #heroTag { color: rgb(255, 244, 222); }
#heroTag .w { display: inline-block; white-space: pre; }
#heroProof { margin: 0 0 18px; }
#heroGreet { display: inline-block; }
#heroProof .nw { white-space: nowrap; }
#heroProof { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; }
#heroProof a.status { border-bottom: 0; }

/* "obvious", marked by hand in sunflower yellow, the way the journal marks things */
#heroTag .mark { position: relative; z-index: 0; }
#heroTag .scribble { position: absolute; left: -0.08em; bottom: 0.02em; width: calc(100% + 0.12em); height: 0.34em; z-index: -1; overflow: visible; pointer-events: none; }
#heroTag .scribble path { fill: none; stroke: #f2b51c; stroke-width: 7; stroke-linecap: round; opacity: 0.9; stroke-dasharray: 1; stroke-dashoffset: 1; vector-effect: non-scaling-stroke; }
#heroTag .scribble .s2 { stroke-width: 3.5; opacity: 0.55; }
html.is-ready #heroTag .scribble path { animation: drawMark 0.85s cubic-bezier(0.6, 0, 0.2, 1) 1.05s forwards; }
html.is-ready #heroTag .scribble .s2 { animation-delay: 1.4s; animation-duration: 0.6s; }
@keyframes drawMark { to { stroke-dashoffset: 0; } }
@media (prefers-reduced-motion: reduce) { #heroTag .scribble path { stroke-dashoffset: 0; animation: none !important; } }

/* a small sunflower that turns to face you, the way real ones follow the sun */
.sunny { display: inline-block; width: 1.25em; height: 1.25em; margin-left: 0.32em; vertical-align: -0.28em; perspective: 120px; }
.sunny svg { width: 100%; height: 100%; display: block; overflow: visible; transform: rotateY(var(--ry, 0deg)) rotateX(var(--rx, 0deg)); transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1); }
.sunny .petals { fill: #f2b51c; animation: sunnySpin 22s linear infinite; transform-origin: 0 0; }
.sunny .disk { fill: #5a3a14; }
.sunny.idle svg { animation: sunnySway 4.5s ease-in-out infinite; }
@keyframes sunnySpin { to { transform: rotate(360deg); } }
@keyframes sunnySway { 0%, 100% { transform: rotate(-6deg); } 50% { transform: rotate(6deg); } }
@media (prefers-reduced-motion: reduce) { .sunny .petals, .sunny.idle svg { animation: none; } }
#heroProof i { margin: 0 3px !important; }
#heroGreet.swap { animation: greetSwap 0.6s ease; }
@keyframes greetSwap { from { opacity: 0; transform: translateY(6px); } }

/* one clear action; the résumé is a quiet link; a live status says she's looking */
#heroCta { align-items: center; gap: 22px !important; }
#heroCta .btn { padding: 15px 24px; font: 600 15px/1 Satoshi, sans-serif; }
#heroCta .btn .arr { display: inline-block; transition: transform 0.25s; }
#heroCta .btn:hover .arr { transform: translateY(3px); }
.cta-link { font: 600 15px/1 Satoshi, sans-serif; color: #2b1900; text-decoration: none; padding: 6px 0; background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size 0.3s; }
.cta-link:hover { background-size: 100% 1px; }
.status { display: inline-flex; align-items: center; gap: 9px; padding: 8px 14px 8px 12px; border-radius: 999px; font: 500 13px/1 Satoshi, sans-serif; color: #2b1900; text-decoration: none;
  background: rgba(255, 250, 240, 0.45); box-shadow: inset 0 0 0 1px rgba(43, 25, 0, 0.12); backdrop-filter: blur(6px); }
.status .pulse { position: relative; width: 7px; height: 7px; border-radius: 50%; background: #3aa65b; }
.status .pulse::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 1.5px solid #3aa65b; opacity: 0; animation: pulseRing 2.4s ease-out infinite; }
@keyframes pulseRing { 0% { transform: scale(0.4); opacity: 0.8; } 80%, 100% { transform: scale(1.5); opacity: 0; } }
body.night .cta-link, body.night .status { color: #fff4de; }
body.night .status { background: rgba(20, 5, 51, 0.35); box-shadow: inset 0 0 0 1px rgba(255, 244, 222, 0.22); }
body.night .status .pulse { background: #6fe08c; } body.night .status .pulse::after { border-color: #6fe08c; }
@media (prefers-reduced-motion: reduce) { .status .pulse::after { animation: none; } }
@media (max-width: 900px) {
  .hero-copy { left: 20px; right: 20px; top: max(136px, calc(22% - 28px)); max-width: none; }
  #heroTag { font-size: clamp(30px, 8vw, 38px); line-height: 1.1; margin-bottom: 14px; }
  .br-wide { display: none; }
  #heroCta { gap: 14px 18px !important; }
  #heroProof { margin-bottom: 16px; }
}
@keyframes wordUp { from { opacity: 0; transform: translateY(0.45em); filter: blur(6px); } }
html.is-ready #heroTag .w { animation: wordUp 0.75s cubic-bezier(0.2, 0.8, 0.2, 1) calc(0.12s + var(--i) * 0.045s) backwards; }
@media (prefers-reduced-motion: reduce) { html.is-ready #heroTag .w { animation: none; } }
/* ---- selected work: blueprint grid ---- */
#work { max-width: none; padding: 70px 0 0; }
.works { --line: rgba(20, 5, 51, 0.13); --gut: 26px; position: relative; width: calc(100% - clamp(32px, 14vw, 250px)); max-width: 1320px; margin: 0 auto;
         border-left: 1px solid var(--line); border-right: 1px solid var(--line); }
.w-row { position: relative; }
.w-row::before { content: ""; position: absolute; top: 0; left: 50%; width: 100vw; margin-left: -50vw; border-top: 1px solid var(--line); pointer-events: none; }
.w-row:last-child::after { content: ""; position: absolute; bottom: 0; left: 50%; width: 100vw; margin-left: -50vw; border-bottom: 1px solid var(--line); pointer-events: none; }
.w-cross { position: absolute; top: -18px; width: 36px; height: 36px; pointer-events: none; }
.w-cross::before, .w-cross::after { content: ""; position: absolute; background: #140533; }
.w-cross::before { left: 17.5px; top: 0; width: 1px; height: 36px; }
.w-cross::after { top: 17.5px; left: 0; height: 1px; width: 36px; }
.w-cross.l { left: -18px; } .w-cross.r { right: -18px; }
.w-title h2 { margin: 0; padding: 34px 26px 30px; font: 400 clamp(28px, 3.2vw, 42px)/1 Manrope, sans-serif; letter-spacing: -0.01em; color: #1d1a22; }
.w-grid { display: grid; grid-template-columns: 1fr var(--gut) 1fr; }
.w-grid > .gut { border-left: 1px solid var(--line); border-right: 1px solid var(--line); }
.w-sub .cell { padding: 22px 26px; font: 400 clamp(15px, 1.4vw, 19px)/1.4 "JetBrains Mono", ui-monospace, monospace; color: #6d6874; }
.work { display: block; padding: 38px 38px 44px; color: inherit; text-decoration: none; transition: background 0.25s; }
.work:hover, .work:focus-visible { background: rgba(20, 5, 51, 0.045); outline: none; }
.shot { position: relative; aspect-ratio: 16 / 10; border-radius: 22px; overflow: hidden; background: #e9e6e1; isolation: isolate; }
.shot::before {                                   /* soft glow built from the screenshot's own colours */
  content: ""; position: absolute; inset: -20%; z-index: -1; background: var(--img) center / cover;
  filter: blur(38px) saturate(1.4) brightness(1.05); opacity: 0.9;
}
.shot img { position: absolute; left: 50%; top: 50%; width: 84%; height: auto; max-height: 82%; object-fit: contain;
            transform: translate(-50%, -50%); border-radius: 10px; box-shadow: 0 18px 40px -12px rgba(0, 0, 0, 0.35);
            transition: transform 0.45s cubic-bezier(0.2, 0.8, 0.2, 1); }
.work:hover .shot img { transform: translate(-50%, -53%) scale(1.02); }
.tags { margin: 26px 0 10px; font: 400 clamp(13px, 1.15vw, 16px)/1.6 "JetBrains Mono", ui-monospace, monospace; letter-spacing: 0.04em; color: #6d6874; text-transform: uppercase; }
.tags span { white-space: nowrap; margin-right: 12px; }
.work h3 { margin: 0 0 10px; font: 400 clamp(21px, 2vw, 28px)/1.2 Manrope, sans-serif; color: #1d1a22; }
.work p { margin: 0; font: 400 clamp(14px, 1.2vw, 17px)/1.65 "JetBrains Mono", ui-monospace, monospace; color: #7b7682; }
.work .go { display: inline-block; margin-top: 14px; font: 500 13px/1 "JetBrains Mono", monospace; color: #140533; opacity: 0; transform: translateX(-4px); transition: opacity 0.25s, transform 0.25s; }
.work:hover .go, .work:focus-visible .go { opacity: 1; transform: none; }
@media (max-width: 760px) {
  .w-grid { grid-template-columns: 1fr; }
  .w-grid > .gut, .w-sub .cell:empty { display: none; }
  .w-grid > .work + .gut + .work { border-top: 1px solid var(--line); }
  .work { padding: 26px 18px 32px; }
  .w-cross { display: none; }
}
#work { padding-top: var(--gap) !important; }
/* Work: each row of two case studies is one screen */
#work { padding-bottom: var(--gap) !important; }
.w-grid:not(.w-sub) .work { min-height: calc(var(--screen) - 40px); box-sizing: border-box; display: flex; flex-direction: column; justify-content: center;
  padding-block: clamp(24px, 4vh, 44px); }
.shot { width: min(100%, calc((var(--screen) - 330px) * 1.6)); margin-inline: auto; }
@media (max-width: 860px) {
  .w-grid:not(.w-sub) .work { min-height: 0; }
  .shot { width: 100%; }
}
@media (max-width: 760px) {
  /* work: a touch more air inside each card */
  .works { width: calc(100% - 32px); }
  .w-title h2 { padding: 26px 18px 22px; font-size: 32px; }
  .w-sub .cell { padding: 16px 18px; font-size: 14px; }
  .shot { border-radius: 16px; }
  .tags { margin-top: 20px; font-size: 12px; }
}
/* ================= about: a designer's field journal ================= */
#about { max-width: 1240px; padding-top: 90px; }
.hand { font-family: Kalam, "Libre Baskerville", cursive; }
.journal {
  --paper: #fbf8f0; --ink: #2b1d12; --blue: #2f5fb3; --red: #b3261e; --hl: rgba(255, 212, 80, 0.55);
  position: relative; margin: 0 auto; max-width: 1140px; outline: none;
}
.jtabs { position: absolute; right: -52px; top: 70px; z-index: 6; display: flex; flex-direction: column; gap: 8px; }
.jtabs button {
  width: 42px; min-height: 110px; padding: 14px 0; border: 0; border-radius: 0 10px 10px 0; cursor: pointer;
  writing-mode: vertical-rl; font: 700 13px/1 Kalam, cursive; letter-spacing: 0.04em; color: #fff;
  box-shadow: 3px 2px 6px rgba(50, 30, 12, 0.18); transition: transform 0.2s, filter 0.2s;
}
.jtabs button:nth-child(1) { background: #d98a2b; } .jtabs button:nth-child(2) { background: #b3261e; } .jtabs button:nth-child(3) { background: #3e7a3a; }
.jtabs button[aria-selected="true"] { transform: translateX(8px); }
.jtabs button[aria-selected="false"] { filter: saturate(0.6) brightness(0.95); }
.jtabs button:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }

.book-shell { position: relative; perspective: 2400px; }
.book-shell::before {                              /* the hard cover peeking around the pages */
  content: ""; position: absolute; inset: -12px -10px -14px; border-radius: 16px; z-index: -1;
  background: #6b3a1f; box-shadow: 0 30px 60px -20px rgba(50, 28, 10, 0.45), inset 0 0 0 2px rgba(0,0,0,0.15);
}
.ribbon { position: absolute; z-index: 7; top: -12px; left: calc(50% + 24px); width: 16px; height: 108%; pointer-events: none;
  background: linear-gradient(90deg, #8f1d17, #c43a2f 50%, #8f1d17); clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 96%, 0 100%);
  box-shadow: 2px 0 4px rgba(0,0,0,0.2); }
.spread { display: none; grid-template-columns: 1fr 1fr; position: relative; }
.spread.active { display: grid; }
.jpage {
  position: relative; min-height: 640px; padding: 50px 54px 44px; box-sizing: border-box; color: var(--ink);
  background-color: var(--paper);
  background-image: radial-gradient(circle, rgba(43, 29, 18, 0.16) 1.1px, transparent 1.5px);
  background-size: 22px 22px; background-position: 11px 11px;
}
.jpage.left { border-radius: 10px 0 0 10px; box-shadow: inset -26px 0 30px -22px rgba(60, 35, 12, 0.35); }
.jpage.right { border-radius: 0 10px 10px 0; box-shadow: inset 26px 0 30px -22px rgba(60, 35, 12, 0.35); }
.jpage.left::after { content: ""; position: absolute; top: 0; bottom: 0; right: 0; width: 1px; background: rgba(60, 35, 12, 0.18); }
.kicker { font: 700 11px/1 Manrope, sans-serif; letter-spacing: 0.2em; text-transform: uppercase; color: #a08a70; }
.jname { margin: 10px 0 0; font: 700 clamp(34px, 3.6vw, 46px)/1 Kalam, cursive; color: var(--ink); }
.jmeta { display: flex; align-items: center; gap: 14px; margin: 14px 0 6px; flex-wrap: wrap; }
.hl { background: linear-gradient(transparent 38%, var(--hl) 38% 88%, transparent 88%); padding: 0 4px; font: 400 17px/1.3 Kalam, cursive; }
.circled { position: relative; padding: 4px 12px; font: 400 17px/1 Kalam, cursive; }
.circled svg { position: absolute; inset: -8px -12px; width: calc(100% + 24px); height: calc(100% + 16px); overflow: visible; }
.jline { margin: 8px 0 0; font: italic 15px/1.5 "Libre Baskerville", serif; color: #6a5641; }

/* growth stem */
.stem-wrap { position: relative; height: 400px; margin-top: 18px; }
.stem-wrap svg.stem { position: absolute; left: 44px; top: 0; height: 100%; width: 120px; overflow: visible; }
.stem-path { fill: none; stroke: #4f7a2f; stroke-width: 4; stroke-linecap: round; stroke-dasharray: 700; stroke-dashoffset: 700; }
.journal.grown .stem-path { transition: stroke-dashoffset 1.8s ease-out; stroke-dashoffset: 0; }
.leaf, .bloom { opacity: 0; transform-box: fill-box; transform-origin: center; transform: scale(0.3); transition: opacity 0.5s, transform 0.5s; }
.journal.grown .leaf, .journal.grown .bloom { opacity: 1; transform: none; }
.journal.grown .l1 { transition-delay: 0.5s; } .journal.grown .l2 { transition-delay: 0.9s; } .journal.grown .l3 { transition-delay: 1.3s; } .journal.grown .bloom { transition-delay: 1.7s; }
.stage {
  position: absolute; left: 150px; transform: translateY(-50%); display: block; text-align: left; cursor: pointer;
  border: 0; background: none; padding: 6px 10px 6px 0; color: var(--ink); max-width: 300px;
}
.stage .yr { display: block; font: 400 14px/1 Kalam, cursive; color: var(--blue); }
.stage .nm { display: block; margin-top: 3px; font: 700 20px/1.15 Kalam, cursive; }
.stage .rl { display: block; font: 13px/1.3 Manrope, sans-serif; color: #7a6a58; }
.stage::before { content: ""; position: absolute; left: -64px; top: 50%; width: 52px; border-top: 1.5px dashed rgba(43, 29, 18, 0.3); }
.stage[aria-pressed="true"] .nm { background: linear-gradient(transparent 45%, var(--hl) 45% 92%, transparent 92%); }
.stage:hover .nm { color: var(--red); }
.stage:focus-visible { outline: 2px dashed var(--blue); outline-offset: 2px; }
.tip { position: absolute; left: 150px; bottom: -6px; font: 400 15px/1.2 Kalam, cursive; color: var(--blue); transform: rotate(-3deg); }

/* stage detail page */
.detail { animation: inkIn 0.45s ease; }
@keyframes inkIn { from { opacity: 0; transform: translateY(6px); } }
.detail .when { font: 400 18px/1 Kalam, cursive; color: var(--blue); }
.detail h3 { margin: 8px 0 2px; font: 700 34px/1.05 Kalam, cursive; }
.detail .role { font: 600 14px/1.3 Manrope, sans-serif; color: #7a6a58; }
.detail ul { list-style: none; margin: 22px 0 0; padding: 0; }
.detail li { position: relative; padding-left: 26px; margin: 0 0 12px; font: 15px/1.55 Manrope, sans-serif; color: #3d2d1f; }
.detail li::before { content: "✓"; position: absolute; left: 0; top: -1px; font: 700 17px/1.4 Kalam, cursive; color: #3e7a3a; }
.stamps { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 18px; }
.stamp {
  width: 96px; height: 96px; border-radius: 50%; display: grid; place-items: center; text-align: center;
  border: 2px solid var(--red); color: var(--red); transform: rotate(var(--r, -8deg)); box-shadow: inset 0 0 0 4px var(--paper), inset 0 0 0 5.5px rgba(179, 38, 30, 0.5);
  mix-blend-mode: multiply; opacity: 0.88;
}
.stamp b { display: block; font: 800 22px/1 Manrope, sans-serif; }
.stamp span { display: block; margin-top: 3px; font: 700 9px/1.15 Manrope, sans-serif; letter-spacing: 0.06em; text-transform: uppercase; padding: 0 8px; }

/* taped contact scrap */
.scrap {
  position: absolute; left: 44px; bottom: 34px; width: 250px; padding: 18px 20px 16px; transform: rotate(-2deg);
  background: #fff; background-image: linear-gradient(rgba(47, 95, 179, 0.08) 1px, transparent 1px), linear-gradient(90deg, rgba(47, 95, 179, 0.08) 1px, transparent 1px);
  background-size: 14px 14px; box-shadow: 0 6px 16px -6px rgba(50, 30, 12, 0.35); font: 14px/1.9 Manrope, sans-serif;
}
.scrap::before { content: ""; position: absolute; top: -10px; left: 50%; width: 80px; height: 20px; margin-left: -40px; transform: rotate(-4deg); background: rgba(238, 220, 170, 0.85); }
.scrap a { color: var(--ink); }

/* scrapbook spread */
.spread.board .jpage { min-height: 640px; }
.board-layer { position: absolute; inset: 0; z-index: 3; }
.stk {
  position: absolute; touch-action: none; cursor: grab; user-select: none; transform: rotate(var(--r, 0deg));
  transition: box-shadow 0.2s, transform 0.2s;
}
.stk:active { cursor: grabbing; }
.stk.dragging { transform: rotate(0deg) scale(1.04); z-index: 20; }
.stk .cap { display: block; margin-top: 6px; font: 400 16px/1.2 Kalam, cursive; color: var(--ink); text-align: center; }
.stk a { color: var(--red); }
.polaroid { width: 190px; padding: 12px 12px 14px; background: #fff; box-shadow: 0 10px 24px -8px rgba(50, 30, 12, 0.4); }
.polaroid .ph img { width: 100%; height: 100%; object-fit: cover; display: block; pointer-events: none; }
.polaroid.small { width: 138px; padding: 10px 10px 12px; } .polaroid.small .ph { height: 118px; }
.polaroid.tall { width: 176px; } .polaroid.tall .ph { height: 236px; }
.polaroid .ph { overflow: hidden; height: 190px; display: grid; place-items: center; background: repeating-linear-gradient(45deg, #efe8da 0 8px, #f6f1e6 8px 16px); font: 13px/1.3 Manrope, sans-serif; color: #9a8870; text-align: center; }
.sticky { width: 150px; min-height: 130px; padding: 16px 14px; box-sizing: border-box; font: 400 17px/1.35 Kalam, cursive; color: #5a4a2a;
  box-shadow: 0 10px 18px -8px rgba(50, 30, 12, 0.35); }
.sticky.y { background: #fff1a8; } .sticky.p { background: #ffd6de; } .sticky.g { background: #d9f0c9; }
.toolstamp { padding: 8px 14px; border: 2px solid var(--blue); color: var(--blue); border-radius: 6px; font: 700 13px/1 "JetBrains Mono", monospace; letter-spacing: 0.06em; text-transform: uppercase; background: rgba(251, 248, 240, 0.6); mix-blend-mode: multiply; }
.minibooks { display: flex; align-items: flex-end; gap: 3px; }
.minibooks i { display: block; width: 18px; border-radius: 2px 2px 0 0; box-shadow: inset -2px 0 0 rgba(0,0,0,0.12); }
.board-hint { position: absolute; z-index: 2; right: 60px; bottom: 30px; font: 400 18px/1.2 Kalam, cursive; color: var(--blue); transform: rotate(4deg); pointer-events: none; }
.tidy { position: absolute; z-index: 4; left: 54px; bottom: 26px; font: 400 15px/1 Kalam, cursive; color: #7a6a58; background: none; border: 1px dashed #b9a88f; border-radius: 999px; padding: 8px 14px; cursor: pointer; }
.tidy:hover { color: var(--ink); border-color: var(--ink); }

/* how I work */
.golden { position: relative; width: 380px; height: 380px; margin: 24px auto 0; }
.golden svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.golden .ring { position: absolute; left: 50%; transform: translateX(-50%); text-align: center; width: 220px; }
.golden .ring b { display: block; font: 700 22px/1 Kalam, cursive; color: var(--red); }
.golden .ring span { display: block; margin-top: 4px; font: 400 15px/1.3 Kalam, cursive; color: var(--ink); }
.principles { list-style: none; margin: 22px 0 0; padding: 0; }
.principles li { padding: 10px 0; border-bottom: 1px dashed rgba(43, 29, 18, 0.18); font: 400 18px/1.35 Kalam, cursive; }
.principles li small { display: block; font: 600 11px/1.2 Manrope, sans-serif; letter-spacing: 0.12em; text-transform: uppercase; color: #a08a70; margin-top: 2px; }
.today {
  margin-top: 26px; border-radius: 12px; background: #fff; box-shadow: 0 8px 22px -10px rgba(50, 30, 12, 0.35); overflow: hidden;
}
.today .bar { display: flex; gap: 6px; padding: 10px 12px; background: #f3efe6; }
.today .bar i { width: 10px; height: 10px; border-radius: 50%; background: #e0655a; } .today .bar i + i { background: #e6b23d; } .today .bar i + i + i { background: #5bb45c; }
.today .body { padding: 14px 18px 18px; font: 14px/1.55 Manrope, sans-serif; color: #3d2d1f; }
.today .body b { display: block; font: 700 14px/1.2 Manrope, sans-serif; margin-bottom: 6px; }

/* page turn */
.turner { position: absolute; top: 0; bottom: 0; width: 50%; z-index: 5; pointer-events: none; display: none; transform-style: preserve-3d; }
.turner.fwd { left: 50%; transform-origin: 0 50%; animation: turnFwd 0.75s cubic-bezier(0.45, 0.05, 0.3, 1) forwards; }
.turner.back { left: 0; transform-origin: 100% 50%; animation: turnBack 0.75s cubic-bezier(0.45, 0.05, 0.3, 1) forwards; }
.turner.fwd, .turner.back { display: block; }
.turner .leaf { position: absolute; inset: 0; background: var(--paper); backface-visibility: hidden;
  background-image: radial-gradient(circle, rgba(43, 29, 18, 0.14) 1.1px, transparent 1.5px); background-size: 22px 22px; }
.turner .leaf.b { transform: rotateY(180deg); }
.turner .leaf::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0,0,0,0.22), transparent 30%, transparent 70%, rgba(0,0,0,0.12)); }
@keyframes turnFwd { from { transform: rotateY(0); } to { transform: rotateY(-180deg); } }
@keyframes turnBack { from { transform: rotateY(0); } to { transform: rotateY(180deg); } }
.jfoot { display: flex; justify-content: space-between; align-items: center; max-width: 1140px; margin: 26px auto 0; font: 400 16px/1 Kalam, cursive; color: #7a6a58; }
.jfoot button { font: inherit; color: var(--ink, #2b1d12); background: none; border: 0; cursor: pointer; padding: 8px 4px; }
.jfoot button:disabled { opacity: 0.3; cursor: default; }

@media (max-width: 860px) {
  .jtabs { position: static; flex-direction: row; justify-content: center; margin-bottom: 14px; }
  .jtabs button { writing-mode: horizontal-tb; min-height: 0; padding: 10px 14px; border-radius: 10px; width: auto; }
  .jtabs button[aria-selected="true"] { transform: translateY(-3px); }
  .spread { grid-template-columns: 1fr; }
  .jpage.left, .jpage.right { border-radius: 10px; box-shadow: none; min-height: 0; padding: 32px 22px; }
  .jpage.left::after, .ribbon, .turner { display: none; }
  .board-layer { position: static; display: flex; flex-wrap: wrap; gap: 18px; justify-content: center; padding: 20px; }
  .stk { position: static !important; }
  .board-hint, .tidy { display: none; }
  .scrap { position: static; margin-top: 24px; }
  .golden { width: 300px; height: 300px; }
  .stage { left: 130px; }
}
@media (prefers-reduced-motion: reduce) { .turner { display: none !important; } .journal .stem-path { stroke-dashoffset: 0; } .leaf, .bloom { opacity: 1; transform: none; } }

/* ---- premium refinement: quieter journal ---- */
.journal { --ink: #1f1a17; --muted: #8a8178; --line: rgba(31, 26, 23, 0.1); --gold: #b8862b; --paper: #fcfaf5; }
.serif { font-family: "Instrument Serif", "Libre Baskerville", serif; }

.book-shell { border-radius: 14px; box-shadow: 0 0 0 1px var(--line), 0 40px 80px -40px rgba(40, 25, 10, 0.28), 0 2px 6px rgba(40, 25, 10, 0.05); }
.book-shell::before {                               /* leather cover framing the pages */
  display: block; inset: -16px -14px -20px; border-radius: 18px 20px 20px 18px; z-index: -2;
  background-color: #5a3019;
  background-image:
    linear-gradient(90deg, transparent calc(50% - 10px), rgba(0,0,0,0.38) calc(50% - 2px), rgba(255,220,180,0.10) 50%, rgba(0,0,0,0.3) calc(50% + 3px), transparent calc(50% + 12px)),  /* spine fold */
    radial-gradient(ellipse 60% 50% at 18% 12%, rgba(255, 214, 170, 0.16), transparent 70%),                /* light from the top-left */
    radial-gradient(circle at 0 0, rgba(255, 210, 160, 0.18), transparent 40px),                              /* worn corners */
    radial-gradient(circle at 100% 0, rgba(255, 210, 160, 0.14), transparent 40px),
    radial-gradient(circle at 0 100%, rgba(255, 210, 160, 0.12), transparent 40px),
    radial-gradient(circle at 100% 100%, rgba(255, 210, 160, 0.12), transparent 40px),
    linear-gradient(180deg, rgba(0,0,0,0) 60%, rgba(0,0,0,0.22)),
    url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20width%3D%22200%22%20height%3D%22200%22%3E%3Cfilter%20id%3D%22p%22%20x%3D%220%22%20y%3D%220%22%3E%3CfeTurbulence%20type%3D%22turbulence%22%20baseFrequency%3D%220.22%22%20numOctaves%3D%222%22%20seed%3D%224%22/%3E%3CfeColorMatrix%20values%3D%220%200%200%200%201%20%200%200%200%200%200.85%20%200%200%200%200%200.7%20%200%200%200%200.18%20-0.04%22/%3E%3C/filter%3E%3Crect%20width%3D%22200%22%20height%3D%22200%22%20filter%3D%22url%28%23p%29%22/%3E%3C/svg%3E"), url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20width%3D%22260%22%20height%3D%22260%22%3E%3Cfilter%20id%3D%22l%22%20x%3D%220%22%20y%3D%220%22%3E%3CfeTurbulence%20type%3D%22fractalNoise%22%20baseFrequency%3D%220.85%22%20numOctaves%3D%223%22%20seed%3D%2211%22/%3E%3CfeColorMatrix%20values%3D%220%200%200%200%200.08%20%200%200%200%200%200.04%20%200%200%200%200%200.01%20%200%200%200%200.55%20-0.12%22/%3E%3C/filter%3E%3Crect%20width%3D%22260%22%20height%3D%22260%22%20filter%3D%22url%28%23l%29%22/%3E%3C/svg%3E");
  box-shadow:
    0 44px 80px -30px rgba(40, 20, 6, 0.55), 0 10px 20px -8px rgba(40, 20, 6, 0.35),
    inset 0 0 0 1px rgba(0, 0, 0, 0.35), inset 0 2px 1px rgba(255, 220, 180, 0.14), inset 0 -3px 6px rgba(0, 0, 0, 0.3);
}
.book-shell::after {                                /* stitching around the cover edge */
  content: ""; position: absolute; inset: -9px -7px -13px; border-radius: 13px 15px 15px 13px; z-index: -1; pointer-events: none;
  border: 1.5px dashed rgba(236, 196, 150, 0.5); filter: drop-shadow(0 1px 0 rgba(0,0,0,0.35));
}
/* the page block: stacked page edges showing under and beside the open pages */
.pageblock { position: absolute; z-index: -1; pointer-events: none; }
.pageblock.b { left: 6px; right: 6px; bottom: -7px; height: 8px; border-radius: 0 0 6px 6px;
  background: repeating-linear-gradient(180deg, #f3ecde 0 1px, #d8ccb6 1px 2px); box-shadow: 0 2px 2px rgba(0,0,0,0.25); }
.pageblock.l, .pageblock.r { top: 4px; bottom: -4px; width: 7px;
  background: repeating-linear-gradient(90deg, #f3ecde 0 1px, #d8ccb6 1px 2px); box-shadow: 0 0 2px rgba(0,0,0,0.25); }
.pageblock.l { left: -5px; border-radius: 6px 0 0 6px; }
.pageblock.r { right: -5px; border-radius: 0 6px 6px 0; }
.jpage { background-color: var(--paper); background-image: radial-gradient(circle, rgba(31, 26, 23, 0.07) 1px, transparent 1.3px); padding: 56px 60px 52px; }
.jpage.left { border-radius: 14px 0 0 14px; box-shadow: inset -40px 0 40px -40px rgba(60, 35, 12, 0.18); }
.jpage.right { border-radius: 0 14px 14px 0; box-shadow: inset 40px 0 40px -40px rgba(60, 35, 12, 0.18); }
.jpage.left::after { background: var(--line); }

.kicker { color: var(--muted); letter-spacing: 0.22em; }
.jname { font: 400 clamp(44px, 4.4vw, 58px)/1 "Instrument Serif", serif; letter-spacing: -0.01em; color: var(--ink); margin-top: 14px; }
.jmeta2 { margin: 14px 0 0; font: 500 13px/1 Manrope, sans-serif; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.jmeta2 i { font-style: normal; color: var(--gold); margin: 0 6px; }
.jline { margin-top: 12px; font: italic 400 20px/1.4 "Instrument Serif", serif; color: #5a5048; }

.stem-path { stroke: #7d8f5a; stroke-width: 2; }
.leaf path { fill: #9aab76; }
.leaf { transform: scale(0.8); }
.journal.grown .leaf { transform: scale(0.8); }
.stage .yr { font: 600 11px/1 Manrope, sans-serif; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.stage .nm { margin-top: 6px; font: 400 26px/1.1 "Instrument Serif", serif; color: #6f665e; transition: color 0.2s; }
.stage .rl { margin-top: 2px; color: var(--muted); }
.stage::before { border-top: 1px solid var(--line); }
.stage::after { content: ""; position: absolute; left: -69px; top: 50%; width: 9px; height: 9px; margin-top: -4.5px; border-radius: 50%; background: var(--paper); border: 1px solid #9aab76; transition: background 0.2s; }
.stage[aria-pressed="true"] .nm { background: none; color: var(--ink); }
.stage[aria-pressed="true"]::after { background: var(--gold); border-color: var(--gold); }
.stage:hover .nm { color: var(--ink); }
.tip { font: 600 11px/1 Manrope, sans-serif; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); transform: none; }

.detail .when { font: 600 11px/1 Manrope, sans-serif; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold); }
.detail h3 { margin: 14px 0 6px; font: 400 52px/1 "Instrument Serif", serif; letter-spacing: -0.01em; color: var(--ink); }
.detail .role { font: 500 14px/1.4 Manrope, sans-serif; color: var(--muted); }
.detail ul { margin-top: 30px; border-top: 1px solid var(--line); }
.detail li { padding: 14px 0 14px 28px; margin: 0; border-bottom: 1px solid var(--line); font: 15px/1.55 Manrope, sans-serif; color: #3b332d; }
.detail li::before { content: "•"; top: 14px; font: 400 15px/1.55 Manrope, sans-serif; color: var(--gold); }
.stamps { gap: 0; margin-top: 30px; display: grid; grid-template-columns: repeat(4, 1fr); }
.stamp, .stamp[style] {
  width: auto; height: auto; border: 0; border-left: 1px solid var(--line); border-radius: 0; box-shadow: none;
  transform: none !important; mix-blend-mode: normal; opacity: 1; place-items: start; text-align: left; padding: 0 0 0 16px; color: var(--ink);
}
.stamp:first-child { border-left: 0; padding-left: 0; }
.stamp b { font: 400 40px/1 "Instrument Serif", serif; letter-spacing: -0.02em; }
.stamp span { margin-top: 8px; padding: 0; font: 500 11px/1.35 Manrope, sans-serif; letter-spacing: 0.06em; color: var(--muted); }

.scrap { position: static; width: auto; margin-top: 40px; padding: 18px 0 0; transform: none; background: none; box-shadow: none;
  border-top: 1px solid var(--line); font: 500 13px/1.6 Manrope, sans-serif; color: var(--muted); }
.scrap::before { display: none; }
.scrap a { color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--line); }
.scrap a:hover { border-bottom-color: var(--ink); }

/* scrapbook + how-I-work: calmer versions */
.toolstamp { border: 1px solid var(--line); color: #4a423b; border-radius: 999px; background: #fff; mix-blend-mode: normal; font: 500 12px/1 Manrope, sans-serif; letter-spacing: 0.08em; padding: 9px 14px; }
.sticky.y { background: #f7efcf; } .sticky.p { background: #f5e3e1; }
.sticky { box-shadow: 0 8px 18px -10px rgba(40, 25, 10, 0.3); color: #5a5048; }
.polaroid { box-shadow: 0 16px 30px -14px rgba(40, 25, 10, 0.35), 0 0 0 1px var(--line); }
.stk .cap { font: italic 400 17px/1.2 "Instrument Serif", serif; color: #5a5048; }
.stk a { color: var(--ink); }
.board-hint { font: 600 11px/1 Manrope, sans-serif; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); transform: none; }
.tidy { font: 600 11px/1 Manrope, sans-serif; letter-spacing: 0.14em; text-transform: uppercase; border: 1px solid var(--line); color: var(--muted); }
.golden svg path { stroke-width: 1.2; }
.golden svg path:nth-child(1) { stroke: #9aab76; } .golden svg path:nth-child(2) { stroke: #c9a45c; } .golden svg path:nth-child(3) { stroke: #b8862b; }
.golden .ring b { font: 400 26px/1 "Instrument Serif", serif; color: var(--ink); }
.golden .ring span { font: 500 13px/1.35 Manrope, sans-serif; color: var(--muted); }
.principles li { font: italic 400 22px/1.3 "Instrument Serif", serif; color: var(--ink); border-bottom: 1px solid var(--line); padding: 14px 0; }
.principles li small { font-style: normal; color: var(--muted); margin-top: 6px; }
.today { box-shadow: 0 0 0 1px var(--line); border-radius: 10px; }
.today .bar { display: none; }
.today .body b { font: 600 11px/1 Manrope, sans-serif; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold); margin-bottom: 10px; }
.jfoot { font: 600 11px/1 Manrope, sans-serif; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }
.jfoot button { color: #1f1a17; letter-spacing: inherit; text-transform: inherit; }
@media (max-width: 860px) { .stamps { grid-template-columns: repeat(2, 1fr); row-gap: 20px; } .stamp:nth-child(3) { border-left: 0; padding-left: 0; } .jtabs { gap: 18px; flex-wrap: wrap; } }

/* ---- minimal type: one sans for the whole journal (switchable) ---- */
.journal { --jf: Satoshi, "Inter Tight", system-ui, sans-serif; }
.journal, .journal .jname, .journal .jline, .journal .stage .nm, .journal .detail h3, .journal .stamp b,
.journal .golden .ring b, .journal .principles li, .journal .stk .cap, .journal .jtabs button, .journal .sticky,
.journal .detail li, .journal .scrap, .journal .kicker, .journal .jmeta2, .journal .stage .yr, .journal .stage .rl,
.journal .detail .when, .journal .detail .role, .journal .stamp span, .journal .tip, .jfoot { font-family: var(--jf); }
.journal .jname { font-weight: 500; font-size: clamp(38px, 3.8vw, 50px); letter-spacing: -0.035em; line-height: 1.02; }
.journal .jline { font-style: normal; font-weight: 400; font-size: 17px; color: #6f665e; letter-spacing: -0.005em; }
.journal .stage .nm { font-weight: 500; font-size: 21px; letter-spacing: -0.02em; }
.journal .detail h3 { font-weight: 500; font-size: 42px; letter-spacing: -0.035em; }
.journal .stamp b { font-weight: 500; font-size: 34px; letter-spacing: -0.04em; }
.journal .golden .ring b { font-weight: 600; font-size: 18px; letter-spacing: -0.01em; }
.journal .principles li { font-style: normal; font-weight: 500; font-size: 18px; letter-spacing: -0.015em; }
.journal .stk .cap { font-style: normal; font-size: 13px; font-weight: 500; }
.journal .sticky { font-size: 15px; font-weight: 500; line-height: 1.4; }
.journal .jtabs button { font-weight: 600; font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; }
.journal .stage[data-stage="bloom"]::after { display: none; }   /* the sunflower itself marks the top stage */
.font-switch { display: flex; justify-content: center; flex-wrap: wrap; gap: 4px; margin: 0 auto 26px; width: max-content; max-width: 100%;
  padding: 4px; border-radius: 999px; background: rgba(31, 26, 23, 0.05); font: 500 12px/1 Manrope, sans-serif; }
.font-switch span { align-self: center; padding: 0 8px; color: #8a8178; }
.font-switch button { border: 0; background: none; padding: 7px 12px; border-radius: 999px; cursor: pointer; color: #3b332d; font-size: 13px; }
.font-switch button[aria-pressed="true"] { background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,0.12); }
/* ---- realistic page curl (StPageFlip) ---- */
.flipbook { position: relative; width: 100%; }
.flipbook .jpage { height: 100%; min-height: 0 !important; overflow: hidden; }
.flipbook .stf__item { background: var(--paper); }
.board-page { position: relative; }
.board-page .board-layer { position: absolute; inset: 0; z-index: 3; }
.board-page .board-hint { right: 40px; bottom: 26px; }
.board-page .tidy { left: 40px; bottom: 22px; }
.stf__parent { margin: 0 auto; }

/* nudge: the side tabs are clickable */
.tab-hint { display: none; flex-direction: column-reverse; align-items: flex-end; position: absolute; top: -52px; right: -128px; width: 150px; z-index: 6; color: #b8862b; pointer-events: none; text-align: right;
  animation: hintNudge 2.4s ease-in-out infinite; transition: opacity 0.4s; }
.tab-hint svg { display: block; width: 58px; height: 84px; margin-right: 36px; }
.tab-hint span { display: block; margin-top: 2px; font: 600 13px/1.3 Satoshi, sans-serif; color: #8a6d4c; transform: rotate(-4deg); }
.journal.tabs-used .tab-hint { opacity: 0; }
@keyframes hintNudge { 0%, 100% { transform: translate(0, 0); } 50% { transform: translate(-6px, 4px); } }
@media (min-width: 1380px) { .tab-hint { display: flex; } }
@media (prefers-reduced-motion: reduce) { .tab-hint { animation: none; } }
.jtabs button { cursor: pointer; transition: transform 0.2s, filter 0.2s, box-shadow 0.2s; }
.jtabs button[aria-selected="false"]:hover { transform: translateX(5px); filter: none; box-shadow: 4px 3px 10px rgba(50, 30, 12, 0.25); }
#about { padding-top: 0 !important; }
#about .journal, #about .jfoot { width: 100%; }
/* journal pages scale with the screen height */
.jpage, .spread.board .jpage { min-height: clamp(460px, calc(var(--screen) - 150px), 700px) !important; padding-block: clamp(28px, 5vh, 56px) !important; }
.stem-wrap { height: 420px; }   /* fixed: four chapters need ~100px each; never squeeze them */
.jname { font-size: clamp(32px, min(4.4vw, 6.5vh), 58px) !important; }
/* ================= journal below 1000px: tall pages (one on phones, two side by side on tablets) ================= */
@media (max-width: 999px) {
  #about { padding-inline: 16px; }
  .jtabs { position: static !important; flex-direction: row !important; justify-content: center; max-width: 560px; margin-inline: auto; }
  .jtabs button { writing-mode: horizontal-tb !important; min-height: 0 !important; width: auto !important; }
  .tab-hint { display: none !important; }
  .jtabs { gap: 8px !important; margin-bottom: 18px; flex-wrap: nowrap !important; }
  .jtabs button { flex: 1; padding: 11px 6px !important; font-size: 10.5px !important; letter-spacing: 0.04em !important; border-radius: 10px !important; white-space: nowrap; }
  .jtabs button[aria-selected="true"] { transform: translateY(-2px) !important; }
  .book-shell::before { inset: -8px -6px -10px; border-radius: 12px; }
  .flipbook .jpage { padding: 26px 20px !important; }
  .journal .jname { font-size: 34px !important; }
  .jmeta, .jmeta2 { font-size: 12px; row-gap: 6px; }
  .stem-wrap { height: 360px; margin-top: 6px; }
  .journal .principles { margin-top: 14px; }
  .journal .principles li { padding: 8px 0; font-size: 16px; }
  .journal .today { margin-top: 18px; }
  .stem-wrap svg.stem { left: 0; }
  .stage { left: 96px !important; max-width: calc(100% - 100px); }
  .stage::before { left: -40px; width: 32px; }
  .journal .stage .nm { font-size: 19px; }
  .journal .detail h3 { font-size: 32px; }
  .stamps { gap: 10px; }
  .journal .stamp { width: 84px; height: 84px; }
  .journal .stamp b { font-size: 26px; }
  .golden { width: 100% !important; max-width: 300px; height: auto !important; aspect-ratio: 1; }
  .board-page .board-layer { display: block; padding: 0; }
  .board-page .stk { position: absolute !important; scale: 0.72; transform-origin: 0 0; }
  .board-page .tidy { display: block; left: 20px; bottom: 18px; }
  .board-page .board-hint { display: none; }
  .jfoot { margin-top: 22px; padding: 0 4px; }

}
/* ---- bookshelf: each book is a project, covers facing out ---- */
#bookshelf { text-align: center; max-width: 1440px; }
.shelf-stage { transform-origin: top center; }
.shelf-scroll.scrolls { overflow-x: auto; }
.shelf-scroll { overflow: visible; padding: 40px 8px 0; margin: 0 -8px; scrollbar-width: none; }
.shelf-scroll::-webkit-scrollbar { display: none; }
.shelf-stage { position: relative; width: 1640px; margin: 0 auto; padding-top: 10px; }
.books { position: relative; display: flex; align-items: flex-end; justify-content: center; padding: 0 30px; }
.shelf-head { text-align: center; margin: 32px 0 22px; }
.shelf-head .big { display: block; font: 700 clamp(40px, 5.2vw, 62px)/1.02 Satoshi, sans-serif; letter-spacing: -0.035em; color: #1f1a17; }
.shelf-head .en { display: block; margin-top: 12px; font: 600 12px/1 Satoshi, sans-serif; letter-spacing: 0.28em; text-transform: uppercase; color: #8a7760; }
.shelf-label { margin: 0 0 6px; font: 600 12px/1 Manrope, sans-serif; letter-spacing: 0.18em; text-transform: uppercase; color: #8a7760; }

/* the wall: warm plaster, lit from above, fading into the page */
.shelf-wall { position: relative; padding: 70px 0 110px; }
.shelf-wall::before {
  content: ""; position: absolute; inset: -30px -80px 0; z-index: -1; pointer-events: none;
  background: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20width%3D%22300%22%20height%3D%22300%22%3E%3Cfilter%20id%3D%22p%22%3E%3CfeTurbulence%20type%3D%22fractalNoise%22%20baseFrequency%3D%220.9%22%20numOctaves%3D%222%22%20seed%3D%223%22/%3E%3CfeColorMatrix%20values%3D%220%200%200%200%200.45%20%200%200%200%200%200.35%20%200%200%200%200%200.25%20%200%200%200%200.07%200%22/%3E%3C/filter%3E%3Crect%20width%3D%22300%22%20height%3D%22300%22%20filter%3D%22url%28%23p%29%22/%3E%3C/svg%3E"), radial-gradient(ellipse 60% 85% at 50% 8%, #fdf8ef 0%, #f1e7d6 55%, #eadcc6 100%);
  -webkit-mask-image: radial-gradient(ellipse 58% 50% at 50% 44%, #000 55%, transparent 100%);
          mask-image: radial-gradient(ellipse 58% 50% at 50% 44%, #000 55%, transparent 100%);
}

/* books lean back against the wall on a picture ledge */
.books.reading { height: 340px; perspective: 1400px; perspective-origin: 50% -40%; margin-bottom: -10px; }
.lbook {
  position: relative; flex: none; width: var(--w); height: var(--h); outline: none;
  transform-origin: 50% 100%; transform: rotateX(5deg) rotate(var(--tilt, 0deg));
  transition: transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.lbook + .lbook { margin-left: -30px; }
.lbook.back { transform: translateY(-6px) scale(0.965) rotateX(6deg) rotate(var(--tilt, 0deg)); filter: brightness(0.93); }
.lbook .cover {
  position: absolute; inset: 0; border-radius: 2px 5px 5px 2px; overflow: hidden;
  box-shadow:
    16px -10px 22px -10px rgba(50, 30, 12, 0.38),   /* shadow thrown on the wall behind */
    4px 0 8px -3px rgba(0, 0, 0, 0.3),                /* shadow on the book to its right */
    0 1px 2px rgba(0, 0, 0, 0.25);
}
.lbook img { width: 100%; height: 100%; object-fit: cover; display: block; }
.lbook .cover::before {                               /* hinge crease */
  content: ""; position: absolute; inset: 0 auto 0 0; width: 22px; pointer-events: none;
  background: linear-gradient(90deg, rgba(0,0,0,0.3), rgba(255,255,255,0.18) 30%, rgba(0,0,0,0.14) 50%, transparent 75%);
}
.lbook .cover::after {                                /* sheen + lamp falloff toward the bottom */
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(105deg, rgba(255,255,255,0.2), rgba(255,255,255,0) 38%, rgba(0,0,0,0) 70%, rgba(0,0,0,0.12)),
              linear-gradient(180deg, rgba(255,250,235,0.08), rgba(0,0,0,0.16));
}
.lbook .pages {                                       /* page block peeking over the top edge */
  position: absolute; left: 4px; right: 2px; top: -6px; height: 7px; border-radius: 1px 2px 0 0;
  background: repeating-linear-gradient(0deg, #f7f1e3 0 1px, #d9ccb3 1px 2px);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.7), 2px -1px 2px rgba(0,0,0,0.12);
}
.lbook:hover, .lbook:focus-visible { transform: translateY(-16px) rotateX(-3deg) rotate(calc(var(--tilt, 0deg) * 0.3)); z-index: 25 !important; filter: none; }

/* quote note: a small paper card taped above the book you're looking at */
.qnote {
  position: absolute; bottom: calc(100% - 30px); z-index: 40; width: 280px; margin: 0; padding: 22px 22px 18px;
  background: #fffdf6; color: #2b1d12; text-align: left; border-radius: 3px;
  box-shadow: 0 1px 2px rgba(0,0,0,0.12), 0 14px 30px -10px rgba(50, 30, 12, 0.35);
  transform: translateX(-50%) rotate(var(--r, -1.5deg)); transform-origin: 50% 100%;
  background-image: repeating-linear-gradient(180deg, transparent 0 25px, rgba(47, 99, 216, 0.07) 25px 26px);
  animation: noteIn 0.28s cubic-bezier(0.2, 0.8, 0.2, 1);
}
@keyframes noteIn { from { opacity: 0; transform: translateX(-50%) translateY(10px) rotate(var(--r, -1.5deg)); } }
.qnote .tape { position: absolute; top: -10px; left: 50%; width: 72px; height: 20px; margin-left: -36px; transform: rotate(3deg);
  background: rgba(238, 220, 170, 0.8); box-shadow: 0 1px 1px rgba(0,0,0,0.08); }
.qnote .qkind { display: block; margin-bottom: 8px; font: 700 10px/1 Manrope, sans-serif; letter-spacing: 0.16em; text-transform: uppercase; color: #b3261e; }
.qnote blockquote { margin: 0; font: italic 15px/1.55 "Libre Baskerville", serif; }
.qnote figcaption { margin-top: 10px; font: 600 12px/1.3 Manrope, sans-serif; color: #7a6a58; }
@media (prefers-reduced-motion: reduce) { .qnote { animation: none; } }

/* props */
.stack { flex: none; align-self: flex-end; margin-right: 26px; display: flex; flex-direction: column; align-items: flex-start; }
.flat { height: 24px; border-radius: 2px; position: relative; box-shadow: 0 2px 4px rgba(0,0,0,0.25), 8px -4px 12px -6px rgba(50,30,12,0.3); }
.flat::before, .flat::after { content: ""; position: absolute; top: 5px; bottom: 5px; width: 2px; background: rgba(230, 200, 130, 0.8); }
.flat::before { left: 14px; } .flat::after { right: 14px; }
.flat.a { width: 150px; background: linear-gradient(180deg, #3f5b78, #2d4560); margin-left: 10px; }
.flat.b { width: 170px; background: linear-gradient(180deg, #b4492f, #8f3620); }
.pot { flex: none; align-self: flex-end; margin-left: 22px; width: 120px; filter: drop-shadow(12px -6px 10px rgba(50,30,12,0.25)); }
.pot svg { display: block; width: 100%; height: auto; }

/* the ledge: oak plank, front lip, corbels, shadow on the wall */
.ledge { position: relative; z-index: 30; height: 40px; margin: 0 -20px; }
.ledge .lip, .ledge .top, .ledge .front { position: absolute; left: 0; right: 0; background-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20width%3D%22900%22%20height%3D%2260%22%3E%3Cfilter%20id%3D%22g%22%20x%3D%220%22%20y%3D%220%22%3E%3CfeTurbulence%20type%3D%22fractalNoise%22%20baseFrequency%3D%220.0035%200.42%22%20numOctaves%3D%224%22%20seed%3D%227%22/%3E%3CfeColorMatrix%20values%3D%220%200%200%200%200.30%20%200%200%200%200%200.17%20%200%200%200%200%200.06%20%200%200%200%200.55%200%22/%3E%3C/filter%3E%3Crect%20width%3D%22900%22%20height%3D%2260%22%20filter%3D%22url%28%23g%29%22/%3E%3C/svg%3E"); background-size: 900px 100%; }
.ledge .lip { top: -14px; height: 16px; border-radius: 3px 3px 0 0; background-color: #c28c55;
  box-shadow: inset 0 2px 0 rgba(255, 225, 180, 0.55), inset 0 -2px 3px rgba(60, 30, 10, 0.25), 0 -3px 6px rgba(0,0,0,0.08); }
.ledge .top { top: 2px; height: 10px; background-color: #d6a973; box-shadow: inset 0 3px 5px rgba(60, 30, 10, 0.25); }
.ledge .front { top: 12px; height: 28px; border-radius: 0 0 4px 4px; background-color: #a9713d;
  box-shadow: inset 0 2px 0 rgba(255, 220, 170, 0.25), 0 20px 30px -12px rgba(50, 28, 10, 0.5), 0 5px 8px -3px rgba(50, 28, 10, 0.35); }
.ledge .corbel { position: absolute; top: 40px; width: 22px; height: 64px; background: #93602f url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20width%3D%22900%22%20height%3D%2260%22%3E%3Cfilter%20id%3D%22g%22%20x%3D%220%22%20y%3D%220%22%3E%3CfeTurbulence%20type%3D%22fractalNoise%22%20baseFrequency%3D%220.0035%200.42%22%20numOctaves%3D%224%22%20seed%3D%227%22/%3E%3CfeColorMatrix%20values%3D%220%200%200%200%200.30%20%200%200%200%200%200.17%20%200%200%200%200%200.06%20%200%200%200%200.55%200%22/%3E%3C/filter%3E%3Crect%20width%3D%22900%22%20height%3D%2260%22%20filter%3D%22url%28%23g%29%22/%3E%3C/svg%3E");
  clip-path: polygon(0 0, 100% 0, 100% 14%, 34% 100%, 0 100%); filter: drop-shadow(8px 6px 6px rgba(50,28,10,0.3)); }
.ledge .corbel.l { left: 12%; } .ledge .corbel.r { right: 12%; }
.ledge::after { content: ""; position: absolute; left: 3%; right: 3%; top: 40px; height: 70px; pointer-events: none;
  background: radial-gradient(ellipse 50% 100% at 50% 0, rgba(60, 35, 12, 0.22), transparent 70%); }
.cover-credit { margin-top: 8px; font: 11px/1 Manrope, sans-serif; color: #a8977f; }
.cover-credit a { color: inherit; }
.shelf-line { margin: 44px auto 0; font: 300 clamp(22px, 3vw, 34px)/1.3 Manrope, sans-serif; color: #3b3040; }
.shelf-line b { font-weight: 800; color: #140533; }
.shelf-note { margin-top: 10px; font: italic 13px/1.4 "Libre Baskerville", serif; color: #8a7760; }
.shelf-scroll { padding-top: 0 !important; }
.shelf-wall { padding-top: 40px !important; padding-bottom: 70px !important; }
/* ---- reading lamp: off by default; on, it lights the books ---- */
.lamp { flex: none; align-self: flex-end; width: 200px; height: 360px; margin: 0 14px 20px -10px; padding: 0; border: 0; background: none; cursor: pointer; position: relative; z-index: 36; }
.lamp svg { width: 100%; height: 100%; overflow: visible; display: block; transition: filter 0.6s; }
.lamp .shade { fill: url(#shadeOff); }
.lamp .cone { opacity: 0; transition: opacity 0.7s; }
.lamp .weave { opacity: 0.9; } .lamp .glow { opacity: 0; transition: opacity 0.6s; }
.lamp .cord { transform-box: view-box; transform-origin: 104px 90px; }
.lamp:hover .cord { animation: cordSway 1.4s ease-in-out infinite; }
.lamp .cord.pull { animation: cordPull 0.35s ease-out; }
.lamp.nudge .cord { animation: cordSway 1.2s ease-in-out 2; }
@keyframes cordSway { 0%, 100% { transform: rotate(0); } 25% { transform: rotate(5deg); } 75% { transform: rotate(-5deg); } }
@keyframes cordPull { 40% { transform: translateY(7px); } 100% { transform: translateY(0); } }
#bookshelf.lamp-on .lamp .glow { opacity: 1; }
@media (prefers-reduced-motion: reduce) { .lamp .cord { animation: none !important; } }
.lamp:focus-visible { outline: 2px solid #b8862b; outline-offset: 4px; border-radius: 8px; }
.lamp::after { content: "Pull to switch on"; position: absolute; left: 150px; top: 230px; white-space: nowrap; pointer-events: none;
  padding-left: 22px; font: 500 13px/1 Satoshi, sans-serif; color: #8a7760; opacity: 0.9; transition: opacity 0.4s;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='12'%3E%3Cpath d='M17 9 C 12 10, 6 8, 2 3 M2 3 l1 5 M2 3 l5 0' fill='none' stroke='%238a7760' stroke-width='1.4' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat 0 50%; }
.lamp.used::after { opacity: 0; }
.lamp.used:hover::after, .lamp:focus-visible::after { opacity: 0.9; }
.lamp:hover::after, .lamp:focus-visible::after { opacity: 0.85; }
.lamp[aria-pressed="true"]::after { content: "Pull to switch off"; }
#bookshelf.lamp-on .lamp .shade { fill: url(#shadeOn); }
#bookshelf.lamp-on .lamp .cone { opacity: 1; }
#bookshelf.lamp-on .lamp svg { filter: drop-shadow(0 0 22px rgba(255, 200, 110, 0.6)); }

/* the light itself: a warm pool on wall + shelf, falling off with distance */
.room-light { position: absolute; inset: -40px -90px -20px; z-index: 35; pointer-events: none; opacity: 0; transition: opacity 0.8s;
  background:
    radial-gradient(ellipse 22% 55% at var(--lx, 12%) var(--ly, 45%), rgba(255, 214, 140, 0.55), rgba(255, 190, 100, 0) 70%),
    radial-gradient(ellipse 60% 85% at var(--lx, 12%) var(--ly, 45%), rgba(255, 176, 90, 0.28), rgba(255, 176, 90, 0) 75%);
  mix-blend-mode: soft-light;
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 22%, #000 80%, transparent); mask-image: linear-gradient(to bottom, transparent, #000 22%, #000 80%, transparent); }
#bookshelf.lamp-on .room-light { opacity: 1; }

/* each book catches the light by how close it is to the lamp (--lit, 0…1) */
.lbook .cover { transition: filter 0.8s, box-shadow 0.8s; }
.lbook .shine { position: absolute; inset: 0; z-index: 2; pointer-events: none; opacity: 0; transition: opacity 0.8s;
  background:
    linear-gradient(to right, rgba(255, 206, 130, 0.45), rgba(255, 206, 130, 0.12) 45%, rgba(255, 206, 130, 0) 75%),
    linear-gradient(115deg, rgba(255, 255, 255, 0) 30%, rgba(255, 248, 225, 0.38) 42%, rgba(255, 255, 255, 0) 52%); }
#bookshelf.lamp-on .lbook .shine { opacity: calc(0.25 + var(--lit, 0) * 0.75); }
#bookshelf.lamp-on .lbook .cover {
  filter: brightness(calc(1 + var(--lit, 0) * 0.12)) saturate(calc(1 + var(--lit, 0) * 0.15)) sepia(calc(var(--lit, 0) * 0.12));
  box-shadow:
    calc(16px + var(--lit, 0) * 26px) -10px calc(22px + var(--lit, 0) * 12px) -10px rgba(50, 26, 8, calc(0.38 + var(--lit, 0) * 0.14)),
    4px 0 8px -3px rgba(0, 0, 0, 0.3), 0 1px 2px rgba(0, 0, 0, 0.25); }
#bookshelf .stack, #bookshelf .pot { transition: filter 0.8s; }
#bookshelf.lamp-on .stack { filter: brightness(1.12) sepia(0.15); }
.shelf-swipe { display: none; margin: 6px 0 0; font: 500 13px/1 Satoshi, sans-serif; color: #8a7760; }
#bookshelf.shelf-scrolls .shelf-swipe { display: block; }
@media (max-width: 760px) {
  /* bookshelf: scrolls sideways at a readable size */
  #bookshelf { padding-inline: 0; }
  .shelf-head { margin: 0 16px 6px; }
  .shelf-head .big { font-size: 40px; }
  .shelf-head .en { font-size: 11px; letter-spacing: 0.22em; }
  .shelf-scroll.scrolls { scroll-snap-type: x proximity; -webkit-overflow-scrolling: touch; padding-inline: 16px; margin: 0;
  -webkit-mask-image: linear-gradient(90deg, #000 88%, transparent); mask-image: linear-gradient(90deg, #000 88%, transparent); }
  .shelf-line { margin-top: 26px; padding-inline: 20px; font-size: 24px; }
}
/* ================= कला + कल : by hand × with AI ================= */
.art-head .kala em { font-style: normal; color: #b8862b; margin: 0 0.18em; font-family: Satoshi, sans-serif !important; font-weight: 500; font-size: 0.7em; vertical-align: 0.12em; }
.art-head .gloss i { font-style: italic; } .art-head .gloss b { font-weight: 700; color: #4a3626; }
.art-head .gloss { display: block; margin: 14px auto 0; max-width: 620px; font: 400 15px/1.5 Satoshi, sans-serif; color: #7a6a58; }
.art-head .gloss .dev { font-family: "Tiro Devanagari Hindi", serif !important; color: #b3261e; font-size: 1.1em; }
.art-stage.duo { height: auto; padding: 60px clamp(24px, 18vw, 270px) 64px; overflow: clip; }
.art-stage.duo.patch { padding: 40px clamp(20px, 5vw, 70px) 50px; }
.art-stage.duo.embroidery { padding-left: clamp(24px, 6vw, 90px); padding-right: clamp(24px, 6vw, 90px); }
.duo-grid { position: relative; z-index: 2; display: grid; grid-template-columns: 1fr minmax(260px, 1.05fr) 1fr; gap: clamp(18px, 3vw, 44px); align-items: center; }
.side-label { margin: 0 0 18px; font: 700 11px/1 Satoshi, sans-serif; letter-spacing: 0.2em; text-transform: uppercase; color: #8a7760; }
.side-label b { display: block; margin-bottom: 6px; font-size: 20px; letter-spacing: -0.01em; text-transform: none; color: #2b1d12; }
.col-ai .side-label { text-align: right; }
.duo-stack { display: flex; flex-direction: column; gap: 14px; }
.card { will-change: transform, opacity; transition: box-shadow 0.3s; }

/* by hand: paper, tape, photo */
.hand-card { position: relative; background: #fffdf8; padding: 12px 12px 14px; border-radius: 4px;
  box-shadow: 0 1px 2px rgba(0,0,0,0.08), 0 16px 30px -18px rgba(60, 30, 10, 0.45); }
.hand-card::before { content: ""; position: absolute; top: -9px; left: 50%; width: 64px; height: 18px; margin-left: -32px; transform: rotate(-3deg);
  background: rgba(236, 220, 176, 0.85); box-shadow: 0 1px 1px rgba(0,0,0,0.06); }
.hand-card .pic { height: 96px; border-radius: 2px; overflow: hidden; display: grid; place-items: center;
  background: repeating-linear-gradient(45deg, #f1eadc 0 8px, #f7f2e8 8px 16px); color: #a8977f; font: 500 12px/1.3 Satoshi, sans-serif; text-align: center; }
.hand-card .pic { position: relative; }
.hand-card .pic.tall { height: 210px; }
.hand-card .pic img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.hand-card h4 { margin: 12px 2px 3px; font: 700 16px/1.2 Satoshi, sans-serif; color: #2b1d12; letter-spacing: -0.01em; }
.hand-card p { margin: 0 2px; font: 400 13px/1.45 Satoshi, sans-serif; color: #6f665e; }

/* with AI: skill-file cards */
.ai-card { position: relative; background: #17130f; color: #efe7da; padding: 16px 18px 18px; border-radius: 12px; text-decoration: none; display: block;
  box-shadow: 0 1px 0 rgba(255,255,255,0.06) inset, 0 18px 34px -18px rgba(20, 10, 0, 0.6); }
.ai-card .path { display: flex; align-items: center; gap: 8px; font: 500 11px/1 Satoshi, sans-serif; letter-spacing: 0.04em; color: #a39a8c; }
.ai-card .path i { width: 7px; height: 7px; border-radius: 50%; background: #e0a100; box-shadow: 0 0 8px rgba(224, 161, 0, 0.7); }
.ai-card h4 { margin: 12px 0 5px; font: 700 17px/1.2 Satoshi, sans-serif; letter-spacing: -0.01em; color: #fff; }
.ai-card p { margin: 0; font: 400 13px/1.5 Satoshi, sans-serif; color: #bdb3a4; }
.ai-card .chip { display: inline-block; margin-top: 12px; padding: 5px 9px; border-radius: 999px; font: 600 10px/1 Satoshi, sans-serif; letter-spacing: 0.1em; text-transform: uppercase;
  color: #17130f; background: #e8c46a; }
.ai-card .chip.draft { background: #fff0c2; color: #9a6b00; }
a.ai-card:hover { box-shadow: 0 1px 0 rgba(255,255,255,0.06) inset, 0 22px 40px -16px rgba(20, 10, 0, 0.7); }

/* the meeting point */
.meet { text-align: center; position: relative; }
.meet .knot { display: block; width: 64px; height: 64px; margin: 0 auto 18px; }
.meet blockquote { margin: 0; font: 500 clamp(20px, 2.1vw, 27px)/1.35 Satoshi, sans-serif; letter-spacing: -0.015em; color: #2b1d12; }
.meet blockquote .h { color: #b3261e; } .meet blockquote .m { color: #1d4ed8; }
.meet .draft { display: inline-block; margin-bottom: 14px; }
.meet .links { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 24px; }

@media (max-width: 900px) {
  .art-stage.duo, .art-stage.duo.patch, .art-stage.duo.embroidery { padding: 50px 20px 56px; }
  .art-stage.duo.redgold .edge { opacity: 0.35; }
  .duo-grid { grid-template-columns: 1fr; }
  .meet { order: -1; margin-bottom: 10px; }
  .col-ai .side-label { text-align: left; }
}

/* bigger AI cards + richer meeting point */
.duo-grid { grid-template-columns: 0.9fr minmax(260px, 1fr) 1.2fr; }
.ai-card { padding: 22px 24px 20px; border-radius: 16px; min-height: 172px; box-sizing: border-box; display: flex; flex-direction: column; transition: transform 0.25s, box-shadow 0.25s; }
.ai-card h4 { margin: 14px 0 6px; font-size: 21px; }
.ai-card p { font-size: 14px; line-height: 1.55; }
.ai-card .foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: auto; padding-top: 16px; }
.ai-card .foot .chip { margin-top: 0; }
.ai-card .go { font: 600 13px/1 Satoshi, sans-serif; color: #e8c46a; opacity: 0.85; transition: opacity 0.2s, transform 0.2s; }
a.ai-card:hover .go { opacity: 1; transform: translateX(3px); }
.meet-sub { margin: 16px auto 0; max-width: 34ch; font: 400 15px/1.6 Satoshi, sans-serif; color: #6f665e; }
.epigraph { margin: 20px auto 0; max-width: 32ch; font: 500 14px/1.5 Satoshi, sans-serif; color: #8a7760; }
.epigraph span { display: block; margin-top: 4px; font-size: 12px; letter-spacing: 0.04em; color: #a8977f; }
.epigraph i { font-style: italic; }
@media (max-width: 900px) { .duo-grid { grid-template-columns: 1fr; } }
/* ---- art life: simple arc of photos, framed by an Indian border ---- */
#art { max-width: none; padding-left: 0; padding-right: 0; }
.art-head { text-align: center; margin-bottom: 22px; }
.art-head .kala { display: block; font: 400 clamp(46px, 6vw, 72px)/1 "Tiro Devanagari Hindi", serif; color: #b3261e; }
.art-head .en { display: block; margin-top: 6px; font: 600 12px/1 Manrope, sans-serif; letter-spacing: 0.28em; text-transform: uppercase; color: #7a4a22; }
.art-stage {
  --R: min(470px, 40vw);
  --tile: clamp(84px, 8.6vw, 124px);
  position: relative; height: calc(var(--R) * 0.95 + 120px); overflow: clip;
  margin: 0 auto; max-width: 1400px; box-sizing: border-box;
}
/* option A — red & gold ornamental edges (left, mirrored right); white paper blends away */
.art-stage.redgold { background: #fbf7f0; }
.art-stage .edge { position: absolute; top: 0; height: 100%; width: auto; z-index: 3; mix-blend-mode: multiply; pointer-events: none;
  -webkit-mask-image: linear-gradient(90deg, #000 40%, transparent 62%); mask-image: linear-gradient(90deg, #000 40%, transparent 62%); }
.art-stage .edge.l { left: 0; }
.art-stage .edge.r { right: 0; transform: scaleX(-1); }
.art-stage.patch .edge { display: none; }
/* option B — Mughal patchwork frame on all four sides */
.art-stage.patch {
  border: clamp(34px, 3.8vw, 54px) solid transparent;
  border-image: url("/assets/art/border-patchwork.jpg") 148 102 148 103 round;
  background: #fff;
}
/* white tiles on a white ground: a hairline edge + softer, wider shadow keeps them visible */
.art-stage.patch .tile-in { box-shadow: 0 0 0 1px rgba(60, 25, 10, 0.08), 0 10px 26px rgba(60, 25, 10, 0.14); }
/* option C — cross-stitch embroidery strips (left + right) cut from the source image at 80% */
.art-stage.embroidery { background: #eeebd8; }
.art-stage .stitch { display: none; position: absolute; top: 0; bottom: 0; z-index: 3; pointer-events: none;
  background: url("/assets/art/border-embroidery.jpg") repeat-y; background-size: 600px 800px; }
.art-stage.embroidery .stitch { display: block; }
.art-stage .stitch.l { left: 0; width: 46px; background-position: 0 0; }
.art-stage .stitch.r { right: 0; width: 44px; background-position: -556px 0; }
.art-stage.embroidery .edge { display: none; }
.border-switch {
  position: absolute; right: 12px; top: -44px; display: flex; gap: 4px; padding: 4px; border-radius: 999px;
  background: rgba(20, 5, 51, 0.06); font: 500 12px/1 Manrope, sans-serif;
}
.border-switch span { align-self: center; padding: 0 6px 0 8px; color: #7a6a58; }
.border-switch button { font: inherit; color: #3b2a1a; background: transparent; border: 0; padding: 7px 11px; border-radius: 999px; cursor: pointer; }
.border-switch button[aria-pressed="true"] { background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,0.12); }
.art-wrap { position: relative; max-width: 1400px; margin: 0 auto; }

.wheel { position: absolute; left: 50%; top: calc(var(--R) + 110px); width: 0; height: 0; will-change: transform; z-index: 1; }
.art-stage.patch .wheel { top: calc(var(--R) + 96px); }
.tile {
  position: absolute; left: 0; top: 0; width: var(--tile); height: var(--tile);
  margin: calc(var(--tile) / -2) 0 0 calc(var(--tile) / -2);
  transform: rotate(var(--a)) translateY(calc(var(--R) * -1));
}
.tile-in {
  width: 100%; height: 100%; border-radius: 24%; overflow: hidden; background: #fff;
  box-shadow: 0 6px 18px rgba(60, 25, 10, 0.16), 0 1px 2px rgba(0, 0, 0, 0.08);
  display: grid; place-items: center; text-align: center;
  transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.tile-in img { width: 100%; height: 100%; object-fit: cover; }
.tile-in .ph { font: 600 10px/1.4 Manrope, sans-serif; letter-spacing: 0.1em; text-transform: uppercase; color: #b8a58c; }
.tile-in .ph b { display: block; font-size: 11px; color: #8a6d4c; }
.tile:hover .tile-in { transform: translateY(-12px) scale(1.06); }

.art-copy { position: absolute; left: 50%; bottom: 60px; transform: translateX(-50%); width: min(420px, 70vw); text-align: center; z-index: 2; }
.art-stage.patch .art-copy { bottom: 30px; }
.art-copy p { margin: 0 0 20px; font: 600 clamp(17px, 1.9vw, 23px)/1.4 "Bricolage Grotesque", sans-serif; color: #3b1d10; }
.art-copy .draft { display: inline-block; margin-bottom: 10px; }
.insta {
  display: inline-flex; align-items: center; gap: 14px; padding: 7px 7px 7px 20px; border-radius: 999px;
  background: #fff; color: #8a2f18; text-decoration: none; font: 600 14px/1 Manrope, sans-serif;
  box-shadow: 0 3px 12px rgba(60, 20, 5, 0.14); transition: transform 0.2s;
}
.insta:hover { transform: translateY(-2px); }
.insta .arrow { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: #b3261e; color: #fff; }
.art-head { margin-top: 0; }
/* Art life: heading + panel sized to the screen */
.art-head { margin-bottom: clamp(12px, 2.5vh, 22px); }
.art-head .kala { font-size: clamp(40px, 8vh, 72px) !important; }
.art-stage.duo { min-height: calc(var(--screen) - 40px); display: flex; align-items: center; padding-block: clamp(24px, 4.5vh, 60px) !important; }
.duo-grid { width: 100%; }
.duo-stack { gap: clamp(8px, 1.6vh, 14px) !important; }
.side-label { margin-bottom: clamp(10px, 2vh, 18px) !important; }
.hand-card .pic { height: clamp(62px, 10vh, 96px) !important; }
.hand-card .pic.tall { height: clamp(100px, 16vh, 210px) !important; }
.hand-card h4 { margin-top: clamp(8px, 1.2vh, 12px) !important; }
.ai-card { min-height: clamp(118px, 18vh, 172px) !important; padding: clamp(14px, 2.4vh, 22px) clamp(18px, 2vw, 24px) !important; }
.ai-card h4 { margin-top: clamp(8px, 1.4vh, 14px) !important; }
@media (max-width: 860px) {
  .art-stage.duo { min-height: 0; }
}
/* By hand: three real polaroids in a small overlapping collage */
.col-hand .duo-stack { display: grid !important; grid-template-columns: 1fr 1fr; gap: 0 clamp(10px, 1.4vw, 18px) !important; align-items: start; }
.col-hand .hand-card { margin: 0 !important; padding: 9px 9px 0; border-radius: 3px; background: #fffefb;
  box-shadow: 0 1px 1px rgba(0, 0, 0, 0.06), 0 18px 32px -16px rgba(60, 30, 10, 0.45); }
.col-hand .hand-card .pic { height: auto !important; aspect-ratio: 4 / 5; border-radius: 1px; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.06); }
.col-hand .hand-card h4 { margin: 0 !important; padding: clamp(9px, 1.4vh, 13px) 4px clamp(11px, 1.7vh, 16px); text-align: center; font: 500 15px/1 Satoshi, sans-serif !important; letter-spacing: 0.01em; color: #3b2a1a; }
.col-hand .hand-card::before { width: 54px; height: 16px; margin-left: -27px; top: -8px; }
.col-hand .hand-card:nth-child(2) { margin-top: clamp(28px, 5vh, 48px) !important; z-index: 3; }   /* stagger the pair; sits above Pottery so its caption shows */
.col-hand .hand-card:nth-child(3) { grid-column: 1 / -1; justify-self: center; width: calc(50% - 9px); margin-top: clamp(-70px, -7vh, -30px) !important; z-index: 2; transform-origin: 50% 0; }
.col-hand .hand-card:hover { z-index: 5; }
@media (max-width: 900px) { .col-hand .duo-stack { grid-template-columns: 1fr 1fr 1fr; } .col-hand .hand-card:nth-child(3) { grid-column: auto; width: auto; margin-top: 0 !important; } .col-hand .hand-card:nth-child(2) { margin-top: 18px !important; } }
.art-head .kala { font-family: "Tiro Devanagari Hindi", serif !important; }   /* Satoshi has no Devanagari */
/* ================= art life stacks below 900px: slimmer embroidery so nothing hides under it ================= */
@media (max-width: 900px) {
  .art-head .kala { font-size: 52px !important; }
  .art-head .gloss { padding-inline: 20px; font-size: 14px; }
  .art-stage.duo.embroidery { padding: 36px 34px 40px !important; min-height: 0; }
  .art-stage .stitch { background-size: 300px 400px; }
  .art-stage .stitch.l { width: 22px; }
  .art-stage .stitch.r { width: 22px; background-position: -278px 0; }
  .duo-grid { gap: 30px; }
  .meet blockquote { font-size: 22px; }
  .meet-sub { font-size: 15px; }
  .col-hand .duo-stack { grid-template-columns: 1fr 1fr !important; max-width: 320px; margin: 0 auto; }
  .col-hand .hand-card:nth-child(2) { margin-top: 30px !important; }
  .col-hand .hand-card:nth-child(3) { grid-column: 1 / -1; justify-self: center; width: calc(50% - 6px) !important; margin-top: -26px !important; }
  .side-label { text-align: center !important; }
  .ai-card { margin: 0 !important; min-height: 0 !important; }
  .art-stage .card { --r: 0deg !important; }
  .col-hand .card:nth-child(1) { --r: -3deg !important; } .col-hand .card:nth-child(2) { --r: 3deg !important; } .col-hand .card:nth-child(3) { --r: -1.5deg !important; }

}
@media (max-width: 760px) {
  .border-switch { display: none !important; }                      /* prototype-only control */
}
/* ================= closing: back at the edge of the field ================= */
#contact { position: relative; max-width: none; padding: 0 !important; overflow: hidden; color: #fff; scroll-margin-top: 0;
  --sky-top: #6a9fd8; --sky-hor: #f6c98a; background: linear-gradient(180deg, var(--sky-top) 0%, var(--sky-hor) 78%); transition: background 1.2s; }
#contact .celestial { position: absolute; left: 86%; top: 34%; width: 70px; height: 70px; margin: -35px 0 0 -35px; border-radius: 50%;
  background: radial-gradient(circle, #fffdf4 0 40%, rgba(255, 236, 190, 0.6) 55%, rgba(255, 220, 160, 0) 72%); filter: blur(0.3px); transition: top 1.2s, background 1.2s; }
#contact.night .celestial { width: 36px; height: 36px; margin: -18px 0 0 -18px; background: radial-gradient(circle, #f7f2e3 0 58%, rgba(200, 214, 255, 0.35) 62%, rgba(200, 214, 255, 0) 100%); }
#contact .stars { position: absolute; inset: 0 0 40% 0; opacity: 0; transition: opacity 1.2s;
  background-image: radial-gradient(1.2px 1.2px at 12% 20%, #fff, transparent), radial-gradient(1px 1px at 28% 42%, #fff, transparent), radial-gradient(1.4px 1.4px at 47% 14%, #fff, transparent),
    radial-gradient(1px 1px at 63% 33%, #fff, transparent), radial-gradient(1.2px 1.2px at 81% 18%, #fff, transparent), radial-gradient(1px 1px at 90% 48%, #fff, transparent), radial-gradient(1px 1px at 6% 55%, #fff, transparent), radial-gradient(1.3px 1.3px at 38% 60%, #fff, transparent); }
#contact.night .stars { opacity: 0.9; }
.close-inner { position: relative; z-index: 2; max-width: 760px; margin: 0 auto; padding: clamp(90px, 11vw, 150px) 24px clamp(270px, 27vw, 370px); text-align: center; }
.close-inner .kicker { font: 700 12px/1 Satoshi, sans-serif; letter-spacing: 0.22em; text-transform: uppercase; opacity: 0.8; }
.close-inner h2 { margin: 16px 0 14px; font: 700 clamp(40px, 5.4vw, 68px)/1.02 Satoshi, sans-serif; letter-spacing: -0.035em; text-shadow: 0 2px 24px rgba(40, 20, 0, 0.18); }
.close-inner p.lead { margin: 0 auto; max-width: 46ch; font: 400 18px/1.55 Satoshi, sans-serif; opacity: 0.92; }
.close-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 32px; }
.close-actions a, .close-actions button { display: inline-flex; align-items: center; gap: 10px; padding: 14px 22px; border-radius: 999px; border: 0; cursor: pointer;
  font: 600 15px/1 Satoshi, sans-serif; text-decoration: none; transition: transform 0.2s, background 0.2s; }
.close-actions a:hover, .close-actions button:hover { transform: translateY(-2px); }
.close-actions .primary { background: #fffaf0; color: #140533; box-shadow: 0 10px 26px -12px rgba(40, 20, 0, 0.5); }
.close-actions .ghost { background: rgba(255, 255, 255, 0.14); color: #fff; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.45); backdrop-filter: blur(6px); }
.close-actions .copy { padding: 14px 16px; }
.close-time { margin-top: 26px; font: 500 14px/1.4 Satoshi, sans-serif; opacity: 0.85; }
.close-field { position: absolute; left: 0; right: 0; bottom: 46px; width: 100%; height: clamp(200px, 22vw, 300px); z-index: 1; }
.close-field .b path, .close-field .b ellipse, .close-field .b circle { fill: var(--sil-back, #4b3a1c); stroke: var(--sil-back, #4b3a1c); }
.close-field .f path, .close-field .f ellipse, .close-field .f circle { fill: var(--sil, #2d2210); stroke: var(--sil, #2d2210); }
.close-field .f .pet ellipse { fill: var(--petal, #c98a14); stroke: none; }
.close-field .b .pet ellipse { fill: var(--petal-back, #a5741a); stroke: none; }
.close-field .ground { fill: var(--sil, #2d2210); }
.close-foot { position: absolute; left: 0; right: 0; bottom: 0; height: 46px; margin: 0; display: grid; place-items: center; z-index: 3; background: var(--sil, #2d2210); text-align: center; font: 500 12px/1 Satoshi, sans-serif; letter-spacing: 0.06em; color: rgba(255, 244, 220, 0.75); }
.toast { position: fixed; left: 50%; bottom: 28px; z-index: 50; transform: translate(-50%, 20px); opacity: 0; transition: all 0.3s; pointer-events: none;
  background: #140533; color: #fff6e3; padding: 10px 16px; border-radius: 999px; font: 600 13px/1 Satoshi, sans-serif; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
/* Contact: one screen, field scales with height */
#contact { min-height: var(--screen); display: flex; flex-direction: column; justify-content: flex-start; }
.close-inner { padding: clamp(48px, 11vh, 150px) 24px calc(clamp(150px, 26vh, 300px) + 70px) !important; }
.close-field { height: clamp(150px, 26vh, 300px) !important; }
/* closing: realistic small sunflowers + readable buttons by day */
canvas.close-field { display: block; transition: filter 1.2s; }
#contact.night canvas.close-field { filter: brightness(0.38) saturate(0.6) hue-rotate(-12deg); }
#contact:not(.night) { color: #140533; }
#contact:not(.night) .close-inner h2 { text-shadow: 0 1px 18px rgba(255, 250, 240, 0.55); }
#contact:not(.night) .close-inner p.lead, #contact:not(.night) .close-time { color: #2b1d40; opacity: 1; }
#contact:not(.night) .close-actions .primary { background: #140533; color: #fff6e3; box-shadow: 0 12px 26px -12px rgba(20, 5, 51, 0.55); }
#contact:not(.night) .close-actions .ghost { background: rgba(255, 250, 240, 0.82); color: #140533; box-shadow: inset 0 0 0 1px rgba(20, 5, 51, 0.12), 0 6px 16px -10px rgba(20, 5, 51, 0.35); }
#contact:not(.night) .close-actions .ghost:hover { background: #fffaf0; }
@media (max-width: 760px) {
  /* contact */
  .close-inner { padding-inline: 20px !important; }
  .close-inner h2 { font-size: 40px; }
  .close-inner p.lead { font-size: 16px; }
  .close-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; max-width: 340px; margin-inline: auto; }
  .close-actions a, .close-actions button { justify-content: center; padding: 14px 12px; font-size: 14px; }
}
/* ================= closing: a sunflower bouquet to take with you ================= */
#contact .bq-inner { position: relative; z-index: 2; box-sizing: border-box; width: 100%; max-width: 1140px; margin: 0 auto;
  padding: clamp(84px, 11vh, 120px) 32px calc(clamp(190px, 30vh, 320px) + 24px);
  display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: clamp(32px, 5vw, 72px); align-items: center;
  pointer-events: none; }                                   /* the field below stays pickable through the padding */
#contact .bq-inner > * { pointer-events: auto; }
#contact .close-field { height: clamp(190px, 30vh, 320px) !important; }
canvas.close-field.full { cursor: default !important; }

.bq-copy .kicker { font: 700 12px/1 Satoshi, sans-serif; letter-spacing: 0.22em; text-transform: uppercase; opacity: 0.8; }
.bq-copy h2 { margin: 14px 0 12px; font: 700 clamp(34px, 3.4vw, 50px)/1.04 Satoshi, sans-serif; letter-spacing: -0.035em; white-space: nowrap; }
.bq-copy h2 em { font: italic 400 1.08em/1 "Instrument Serif", Georgia, serif; letter-spacing: -0.01em; }
.bq-copy .lead { margin: 0; max-width: 40ch; font: 400 18px/1.55 Satoshi, sans-serif; opacity: 0.92; }



.bq-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 14px; margin-top: 20px; }
.bq-btn[hidden] { display: none; }
.bq-actions { margin-top: 26px; min-height: 48px; }
.bq-done { display: flex; flex-direction: column; gap: 6px; max-width: 300px; margin: 0; font: 500 13px/1 Satoshi, sans-serif; animation: doneIn 0.7s ease both; }
.bq-done span { opacity: 0.75; }
.bq-done input { font: italic 400 28px/1.15 "Instrument Serif", Georgia, serif; color: inherit; background: transparent; border: 0; border-bottom: 1.5px solid currentColor; padding: 4px 0 6px; outline: none; }
.bq-done input::placeholder { color: inherit; opacity: 0.4; }
.bq-done input:focus { border-bottom-color: #e0a100; }
.bq-done[hidden] { display: none; }
@keyframes doneIn { from { opacity: 0; transform: translateY(6px); } }
.bq-btn { display: inline-flex; align-items: center; gap: 8px; padding: 14px 22px; border-radius: 999px; border: 0; cursor: pointer;
  font: 600 15px/1 Satoshi, sans-serif; color: inherit; background: none; transition: transform 0.2s, background 0.2s, opacity 0.2s; }
.bq-btn:hover:not(:disabled) { transform: translateY(-2px); }
.bq-btn:disabled { opacity: 0.4; cursor: default; }
.bq-btn.primary { background: #140533; color: #fff6e3; box-shadow: 0 12px 26px -12px rgba(20, 5, 51, 0.55); }
.bq-btn.ghost { background: rgba(255, 250, 240, 0.82); color: #140533; box-shadow: inset 0 0 0 1px rgba(20, 5, 51, 0.12); }
.bq-btn.quiet { padding: 8px 2px; font-weight: 600; background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat; border-radius: 0; }
#contact.night .bq-btn.primary { background: #fff6e3; color: #140533; }
#contact.night .bq-btn.ghost { background: rgba(255, 255, 255, 0.14); color: #fff; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.4); }

.bq-hello { margin-top: 26px; padding-top: 18px; border-top: 1px solid currentColor; border-color: rgba(20, 5, 51, 0.14); }
#contact.night .bq-hello { border-color: rgba(255, 244, 222, 0.2); }
.bq-hello-label { font: 700 11px/1 Satoshi, sans-serif; letter-spacing: 0.2em; text-transform: uppercase; opacity: 0.7; }
.bq-hello .close-actions { justify-content: flex-start; gap: 8px; margin-top: 0; }
.bq-hello .close-actions a, .bq-hello .close-actions button { padding: 10px 16px; font-size: 14px; }
.bq-hello .close-time { margin-top: 12px; font-size: 13px; }

/* the bouquet itself, with a paper tag on the twine */
.bq-card { position: relative; margin: 0; justify-self: center; width: min(330px, 100%); }
.bq-card::before { content: ""; position: absolute; inset: 6% -8% 0; z-index: -1; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(255, 246, 220, 0.75), rgba(255, 246, 220, 0)); }
#contact.night .bq-card::before { background: radial-gradient(closest-side, rgba(255, 220, 150, 0.16), rgba(255, 220, 150, 0)); }
.bq-canvas { display: block; width: 100%; height: auto; aspect-ratio: 360 / 440; filter: drop-shadow(0 22px 30px rgba(60, 35, 10, 0.25)); }
.bq-tag { position: absolute; left: 60%; top: 79%; display: flex; flex-direction: column; gap: 4px; padding: 10px 14px 11px; min-width: 120px;
  background: #fffaf0; color: #2b1d12; border-radius: 4px 4px 4px 14px; transform: rotate(-7deg); transform-origin: 0 0;
  box-shadow: 0 8px 18px -8px rgba(60, 35, 10, 0.45); opacity: 0; transition: opacity 0.5s 0.2s, transform 0.6s cubic-bezier(0.2, 1.3, 0.3, 1); }
.bq-tag::before { content: ""; position: absolute; left: -26px; top: 10px; width: 30px; height: 1.5px; background: #8a5a2b; transform: rotate(-24deg); transform-origin: right; }
.bq-for { font: italic 400 22px/1 "Instrument Serif", Georgia, serif; }
.bq-from { font: 600 9.5px/1 Satoshi, sans-serif; letter-spacing: 0.14em; text-transform: uppercase; color: #8a7760; }
.bq-card.has-flowers .bq-tag { opacity: 1; transform: rotate(-4deg); }

.bq-flyer { position: fixed; left: 0; top: 0; z-index: 60; pointer-events: none; will-change: transform; filter: drop-shadow(0 10px 14px rgba(60, 35, 10, 0.3)); }

/* phones: heading, then the bouquet, then the controls */
@media (max-width: 860px) {
  #contact .bq-inner { display: flex; flex-direction: column; align-items: stretch; gap: 0; padding: 92px 20px calc(clamp(190px, 30vh, 320px) + 56px); }
  .bq-copy { display: contents; }
  .bq-copy .kicker, .bq-copy h2, .bq-copy .lead { order: 1; text-align: center; }
  .bq-copy .lead { margin-inline: auto; font-size: 16px; }
  .bq-copy h2 { font-size: 38px; white-space: normal; text-wrap: balance; }
  .bq-card { order: 2; align-self: center; width: min(300px, 82vw); margin-top: 18px; }
  .bq-actions, .bq-hello { order: 3; }
  .bq-actions { justify-content: center; }
  .bq-done { align-items: center; margin-inline: auto; } .bq-done input { text-align: center; width: 100%; }
  .bq-hello { text-align: center; }
  .bq-hello .close-actions { justify-content: center; }
}
@media (prefers-reduced-motion: reduce) { .bq-tag { transition: opacity 0.2s; } }

/* ---- arriving at the section ---- */
@keyframes bqRise { from { opacity: 0; transform: translateY(18px); } }
@keyframes bqSettle { 0% { opacity: 0; transform: translateY(-26px) rotate(-5deg); } 60% { opacity: 1; transform: translateY(4px) rotate(1.5deg); } 100% { transform: none; } }
#contact.waiting .bq-copy > *, #contact.waiting .bq-card { opacity: 0; }
#contact.arrived .bq-copy > * { animation: bqRise 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) backwards; }
#contact.arrived .bq-copy > :nth-child(1) { animation-delay: 0.35s; }
#contact.arrived .bq-copy > :nth-child(2) { animation-delay: 0.45s; }
#contact.arrived .bq-copy > :nth-child(3) { animation-delay: 0.58s; }
#contact.arrived .bq-copy > :nth-child(4) { animation-delay: 0.72s; }
#contact.arrived .bq-copy > :nth-child(5) { animation-delay: 0.85s; }
#contact.arrived .bq-card { animation: bqSettle 1.1s cubic-bezier(0.3, 0.9, 0.3, 1) 0.6s backwards; transform-origin: 50% 0; }

/* loose petals drifting across the sky on the breeze */
#contact .drift { position: absolute; inset: 0 0 30% 0; z-index: 1; overflow: hidden; pointer-events: none; }
#contact .drift i { position: absolute; left: -40px; width: 14px; height: 6px; border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
  background: linear-gradient(90deg, #f6c43a, #e39b16); opacity: 0; box-shadow: 0 2px 4px rgba(120, 70, 0, 0.15); }
#contact.arrived .drift i { animation: petalDrift var(--t, 12s) linear var(--d, 0s) infinite; }
#contact .drift i:nth-child(1) { top: 18%; --t: 13s; --d: 1.2s; }
#contact .drift i:nth-child(2) { top: 34%; --t: 16s; --d: 3.5s; transform: scale(0.8); }
#contact .drift i:nth-child(3) { top: 12%; --t: 11s; --d: 6s; }
#contact .drift i:nth-child(4) { top: 46%; --t: 15s; --d: 8.5s; }
#contact .drift i:nth-child(5) { top: 26%; --t: 18s; --d: 11s; }
#contact .drift i:nth-child(6) { top: 40%; --t: 12.5s; --d: 14s; }
@keyframes petalDrift {
  0% { opacity: 0; transform: translate(0, 0) rotate(0deg); }
  8% { opacity: 0.9; }
  25% { transform: translate(28vw, 26px) rotate(160deg); }
  50% { transform: translate(55vw, -10px) rotate(320deg); }
  75% { transform: translate(82vw, 30px) rotate(470deg); }
  92% { opacity: 0.8; }
  100% { opacity: 0; transform: translate(110vw, 8px) rotate(620deg); }
}
#contact.night .drift i { filter: brightness(0.55) saturate(0.7); }
@media (prefers-reduced-motion: reduce) { #contact .drift { display: none; } }

/* ---- the share card ---- */
.bq-done { flex-direction: row !important; flex-wrap: wrap; align-items: flex-end !important; gap: 16px 22px !important; max-width: none !important; }
.bq-namefield { display: flex; flex-direction: column; gap: 6px; width: 300px; max-width: 100%; }
.bq-namefield span { opacity: 0.75; }
.bq-namefield input { font: italic 400 28px/1.15 "Instrument Serif", Georgia, serif; color: inherit; background: transparent; border: 0; border-bottom: 1.5px solid currentColor; padding: 4px 0 6px; outline: none; }
.bq-namefield input::placeholder { color: inherit; opacity: 0.4; }
.bq-namefield input:focus { border-bottom-color: #e0a100; }
.bq-share { margin-bottom: 4px; }
@media (max-width: 860px) { .bq-done { justify-content: center; } .bq-namefield { align-items: center; } .bq-namefield input { text-align: center; width: 100%; } }

/* the share sheet: the card first, then clear ways to send it */
.bq-sheet { width: min(440px, 94vw); max-height: 94vh; padding: 22px 22px 18px; border: 0; border-radius: 26px; background: #fffaf0; color: #1f1a17; overflow: auto;
  box-shadow: 0 40px 100px -24px rgba(30, 15, 0, 0.55); }
.bq-sheet[open] { animation: sheetIn 0.45s cubic-bezier(0.2, 0.9, 0.25, 1); }
@keyframes sheetIn { from { opacity: 0; transform: translateY(18px) scale(0.97); } }
.bq-sheet::backdrop { background: rgba(20, 12, 4, 0.5); backdrop-filter: blur(6px); }
.bq-x { position: absolute; right: 14px; top: 12px; width: 34px; height: 34px; border: 0; border-radius: 50%; background: rgba(31, 26, 23, 0.06); color: #1f1a17; font: 400 22px/1 Satoshi, sans-serif; cursor: pointer; z-index: 2; }
.bq-x:hover { background: rgba(31, 26, 23, 0.12); }
.bq-sheet-stage { padding: 14px 20px 6px; perspective: 900px; }
.bq-sheet-img { display: block; width: 100%; height: auto; border-radius: 16px; transform: rotate(-1.6deg);
  box-shadow: 0 2px 0 rgba(255, 255, 255, 0.6) inset, 0 24px 44px -18px rgba(40, 20, 0, 0.55); animation: cardIn 0.7s cubic-bezier(0.2, 0.9, 0.25, 1) both; }
@keyframes cardIn { from { opacity: 0; transform: translateY(14px) rotate(-5deg) scale(0.96); } }
.bq-sheet-title { margin: 16px 0 4px; text-align: center; font: 700 22px/1.2 Satoshi, sans-serif; letter-spacing: -0.02em; }
.bq-sheet-note { margin: 0; text-align: center; font: 500 14px/1.4 Satoshi, sans-serif; color: #6f5a42; }
.bq-sheet-actions { display: grid; grid-template-columns: repeat(auto-fit, minmax(84px, 1fr)); gap: 8px; margin-top: 18px; }
.bq-act { display: flex; flex-direction: column; align-items: center; gap: 7px; padding: 12px 6px 10px; border: 0; border-radius: 14px; cursor: pointer; text-decoration: none;
  background: rgba(31, 26, 23, 0.05); color: #1f1a17; font: 600 12.5px/1.1 Satoshi, sans-serif; transition: background 0.2s, transform 0.15s; }
.bq-act:hover { background: rgba(31, 26, 23, 0.1); }
.bq-act:active { transform: scale(0.97); }
.bq-act[hidden] { display: none; }
.bq-act svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.bq-act.ok { background: #140533; color: #fff6e3; }
.bq-sheet-quick { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 6px 14px; margin-top: 16px; padding-top: 14px; border-top: 1px solid rgba(31, 26, 23, 0.08);
  font: 500 13px/1 Satoshi, sans-serif; color: #6f5a42; }
.bq-q { color: #1f1a17; font-weight: 600; text-decoration: none; background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size 0.25s; padding-bottom: 2px; }
.bq-q:hover { background-size: 100% 1px; }
@media (max-width: 520px) {
  .bq-sheet { position: fixed; inset: auto 0 0 0; width: 100%; max-width: none; margin: 0; border-radius: 26px 26px 0 0; padding-bottom: max(18px, env(safe-area-inset-bottom)); }
  .bq-sheet[open] { animation: sheetUp 0.45s cubic-bezier(0.2, 0.9, 0.25, 1); }
  @keyframes sheetUp { from { transform: translateY(100%); } }
  .bq-sheet-stage { padding-inline: 34px; }
}
