/* Musionic — Insights. Library (hub) + notebook (article). Built by _build/build_insights.py.
   Brand palette only (user, 2026-11-16): onyx + off-white, and four colours — azure blue, lime green, electric orange, violet —
   each with a dark and a light tone. Fonts: Funnel Display (main), Instrument Serif, IBM Plex Mono (the site's three). */
@view-transition { navigation: auto; }
::view-transition-group(cover) { animation-duration: .5s; animation-timing-function: cubic-bezier(.2, .8, .2, 1); }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .28s; }

:root {
  --onyx: #0A0A0B; --onyx-2: #161618; --onyx-3: #26262A; --stone: #8C8A85; --mist: #D9D5CB; --off: #F4F1EA; --off-2: #FAF8F3;
  --azure: #0066FF; --azure-d: #0A2A9E; --azure-l: #BFD6FF;
  --lime: #C8FF2E; --lime-d: #3C5A10; --lime-l: #ECFFC4;
  --orange: #FF6A1F; --orange-d: #8A2E05; --orange-l: #FFD6C2;
  --violet: #7A3CFF; --violet-d: #2E0F73; --violet-l: #DDD0FF;
  --sans: "Funnel Display", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  --serif: "Instrument Serif", Georgia, serif; --mono: "IBM Plex Mono", ui-monospace, Menlo, monospace;
  --pad: clamp(16px, 4vw, 48px); --ease: cubic-bezier(.2, .8, .2, 1); --spring: cubic-bezier(.34, 1.56, .64, 1);
  /* a moving audio waveform, used as the hover underline of the menu */
  --wave: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 10'%3E%3Cg fill='%23000'%3E%3Crect x='0' y='6' width='2' height='4'/%3E%3Crect x='4' y='3' width='2' height='7'/%3E%3Crect x='8' y='0' width='2' height='10'/%3E%3Crect x='12' y='4' width='2' height='6'/%3E%3Crect x='16' y='7' width='2' height='3'/%3E%3Crect x='20' y='2' width='2' height='8'/%3E%3Crect x='24' y='5' width='2' height='5'/%3E%3Crect x='28' y='1' width='2' height='9'/%3E%3Crect x='32' y='6' width='2' height='4'/%3E%3Crect x='36' y='3' width='2' height='7'/%3E%3Crect x='40' y='5' width='2' height='5'/%3E%3Crect x='44' y='2' width='2' height='8'/%3E%3C/g%3E%3C/svg%3E");
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 400 17px/1.6 var(--sans); }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--onyx); color: var(--off); padding: 8px 12px; z-index: 200; }
.skip:focus { left: 8px; }
.mono { font-family: var(--mono); font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; }
.hand { font-family: var(--serif); font-style: italic; font-weight: 400; }
:focus-visible { outline: 2px solid var(--azure); outline-offset: 3px; }

/* ═════════ shared top strip ═════════ */
.nb-nav { position: sticky; top: 0; z-index: 40; display: flex; align-items: stretch; height: 46px; background: var(--off-2); border-bottom: 1.5px solid var(--onyx); }
.nb-logo { display: grid; place-items: center; width: 54px; border-right: 1.5px solid var(--onyx); transition: background .25s; }
.nb-logo img { width: 20px; transition: transform .5s var(--spring); }
.nb-logo:hover img { transform: rotate(-12deg) scale(1.12); }
.nb-tabs { display: flex; min-width: 0; overflow-x: auto; scrollbar-width: none; }
.nb-tabs::-webkit-scrollbar { display: none; }
.nb-tabs a { position: relative; display: flex; align-items: center; gap: .45rem; padding: 0 1rem; text-decoration: none; font: 500 .68rem/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; white-space: nowrap; border-right: 1.5px solid var(--onyx); }
.nb-tabs a svg { width: 12px; height: 12px; fill: currentColor; transition: transform .4s var(--spring); }
/* hover: a little audio waveform rises under the label and keeps scrolling */
.nb-tabs a::after { content: ""; position: absolute; left: .9rem; right: .9rem; bottom: 6px; height: 8px; background: currentColor; opacity: .55;
  -webkit-mask: var(--wave) 0 100% / 24px 8px repeat-x; mask: var(--wave) 0 100% / 24px 8px repeat-x; transform: scaleY(0); transform-origin: bottom; transition: transform .25s var(--ease); }
.nb-tabs a:hover::after { transform: scaleY(1); animation: wave 1.1s linear infinite; }
.nb-tabs a:hover svg { transform: translateY(-3px) rotate(-10deg); }
@keyframes wave { to { -webkit-mask-position: 24px 100%; mask-position: 24px 100%; } }
.nb-tabs a[aria-current] { background: var(--lime); }
.nb-lang { margin-left: auto; display: flex; align-items: center; gap: 4px; padding: 0 10px; font: 500 .66rem/1 var(--mono); }
.nb-lang > * { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; text-decoration: none; border: 1.5px solid var(--onyx); transition: transform .35s var(--spring), background .2s, color .2s; }
.nb-lang [aria-current] { background: var(--violet); color: var(--off); border-color: var(--violet); }
.nb-lang a:hover { background: var(--onyx); color: var(--off); transform: rotate(-180deg); }
/* buttons: the colour fills from the icon side, like a fader pushed up */
.nb-contact, .btn-ink, .btn-line, .lc-go { position: relative; isolation: isolate; overflow: hidden; }
.nb-contact::before, .btn-ink::before, .btn-line::before, .lc-go::before { content: ""; position: absolute; inset: 0; z-index: -1; transform: scaleX(0); transform-origin: left; transition: transform .45s var(--ease); }
.nb-contact:hover::before, .btn-ink:hover::before, .btn-line:hover::before, .lc-go:hover::before { transform: scaleX(1); }
.nb-contact { display: flex; align-items: center; gap: .45rem; margin: 7px 10px 7px 0; padding: 0 .9rem; border: 1.5px solid var(--onyx); text-decoration: none; font: 500 .66rem/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; background: var(--off-2); transition: color .3s; }
.nb-contact::before { background: var(--orange); }
.nb-contact svg { width: 12px; height: 12px; fill: currentColor; transition: transform .4s var(--spring); }
.nb-contact:hover svg { transform: scale(1.35); animation: beat .8s ease-in-out infinite; }
@keyframes beat { 50% { transform: scale(1.1); } }
@media (max-width: 700px) { .nb-tabs a svg, .nb-tabs a:first-child, .nb-contact svg { display: none; } .nb-tabs a { padding: 0 .7rem; } .nb-contact { padding: 0 .6rem; } .nb-lang { padding: 0 6px; } }

.foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; padding: 26px var(--pad); background: var(--onyx); color: var(--off); }
.foot nav { display: flex; flex-wrap: wrap; gap: 1.1rem; }
.foot a { position: relative; text-decoration: none; opacity: .8; transition: opacity .2s, color .2s; }
.foot nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -3px; height: 4px; background: var(--lime); -webkit-mask: var(--wave) 0 100% / 18px 4px repeat-x; mask: var(--wave) 0 100% / 18px 4px repeat-x; transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease); }
.foot a:hover { opacity: 1; color: var(--lime); } .foot nav a:hover::after { transform: scaleX(1); }
.foot p { margin: 0; opacity: .6; }
.foot.dark { border-top: 1px solid rgba(244,241,234,.12); }

/* ═════════ books (library shelf + "more from the shelf") ═════════ */
.slot { display: flex; flex-direction: column; align-items: center; justify-content: flex-end; }
.book { --lift: 0; --pull: 0; --tilt: 0deg; --base: 0deg; position: relative; overflow: hidden; display: flex; flex-direction: column; align-items: center; justify-content: space-between;
  width: var(--w); height: var(--h); padding: 12px 0 10px; border: 0; border-radius: 3px 3px 2px 2px; cursor: pointer; text-decoration: none; font: inherit; color: var(--onyx);
  transform-origin: 50% 100%; transform: translateY(calc(-1px * (var(--lift) + var(--pull)))) rotate(calc(var(--base) + var(--tilt)));
  transition: transform .45s var(--spring), opacity .35s, filter .35s;
  box-shadow: inset 4px 0 0 rgba(255,255,255,.22), inset -5px 0 0 rgba(0,0,0,.2), inset 0 -10px 0 rgba(0,0,0,.08), 0 14px 22px -8px rgba(0,0,0,.55); }
.book::before { content: ""; position: absolute; left: 0; right: 0; top: 34px; height: 5px; background: var(--acc); box-shadow: 0 9px 0 -3px var(--acc); opacity: .95; }
/* hover: the studio light sweeps across the spine once */
.book::after { content: ""; position: absolute; inset: -10% -60%; background: linear-gradient(100deg, transparent 40%, rgba(244,241,234,.55) 50%, transparent 60%); transform: translateX(-70%); pointer-events: none; }
a.book:hover::after, a.book:focus-visible::after { transform: translateX(70%); transition: transform .8s var(--ease); }
.book .sp-n { font: 500 .6rem/1 var(--mono); letter-spacing: .08em; opacity: .75; }
.book .sp-t { flex: 1; display: flex; align-items: center; justify-content: center; margin: 22px 0 10px; writing-mode: vertical-rl; white-space: nowrap; overflow: hidden; max-height: calc(var(--h) - 84px); }
/* the Musionic logo at the foot of every spine, in the book's text colour */
.book .sp-m { width: 17px; height: 21px; background: currentColor; -webkit-mask: url(/assets/musionic-logo-black.png) center / contain no-repeat; mask: url(/assets/musionic-logo-black.png) center / contain no-repeat; transition: transform .45s var(--spring); }
a.book:hover .sp-m { transform: rotate(-360deg) scale(1.2); }
.book:focus-visible { outline: 3px solid var(--azure); outline-offset: 4px; }
.book.lean { --base: 8deg; transform-origin: 0% 100%; margin-right: 22px; }
/* every book wears its service's colours (--bg / --fg / --acc set by the builder); eight typographic spine designs */
.book { background: linear-gradient(180deg, color-mix(in srgb, var(--bg) 86%, #fff), var(--bg) 22%, var(--bg)); color: var(--fg); }
.s0 .sp-t { font: 800 1.3rem/1 var(--sans); text-transform: uppercase; letter-spacing: -.02em; }
.s1 .sp-t { font: italic 400 1.6rem/1 var(--serif); }
.s2 .sp-t { font: 800 1.35rem/1 var(--sans); text-transform: uppercase; letter-spacing: -.03em; }
.s3 .sp-t { font: 500 .85rem/1 var(--mono); text-transform: uppercase; letter-spacing: .18em; }
.s4 .sp-t { font: 700 1.25rem/1 var(--sans); }
.s5 .sp-t { font: italic 400 1.7rem/1 var(--serif); }
.s6 .sp-t { font: 800 1.05rem/1 var(--sans); text-transform: uppercase; background: var(--fg); color: var(--bg); padding: 10px 5px; flex: 0 1 auto; }
.s7 .sp-t { font: 800 1.45rem/1 var(--sans); text-transform: uppercase; color: transparent; -webkit-text-stroke: 1px var(--fg); }
/* books still being written: wrapped in film */
.book.soon { cursor: default; opacity: .84; }
.book .wrapf { position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: linear-gradient(105deg, transparent 30%, rgba(244,241,234,.22) 42%, transparent 54%), repeating-linear-gradient(45deg, rgba(244,241,234,.07) 0 2px, transparent 2px 9px); }
.book .soon-tag { position: absolute; bottom: 46px; left: 50%; transform: translateX(-50%) rotate(-8deg); padding: 3px 5px; background: var(--off); color: var(--onyx); font: 500 .5rem/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; white-space: nowrap; box-shadow: 0 2px 6px rgba(0,0,0,.3); }
.book.soon:hover, .book.soon:focus-visible { opacity: 1; }
.book.soon.shake { animation: shake .45s; }
@keyframes shake { 20% { transform: rotate(-4deg); } 45% { transform: rotate(3deg); } 70% { transform: rotate(-2deg); } }
.plank { height: 18px; margin: 0 var(--pad); background: linear-gradient(var(--onyx-3), var(--onyx-2) 60%, var(--onyx)); border-top: 1px solid rgba(244,241,234,.14); box-shadow: 0 24px 40px rgba(0,0,0,.6); border-radius: 2px; }
.plank.light { max-width: 520px; margin: 0 auto; background: linear-gradient(var(--mist), #C9C4B8); border-top-color: rgba(255,255,255,.6); box-shadow: 0 16px 24px rgba(10,10,11,.16); }
/* the opening book: grows to the screen, then the article takes over (view transition "cover") */
.flip { position: fixed; z-index: 300; pointer-events: none; background: var(--acc, var(--onyx)) center / cover no-repeat; border-radius: 3px;
  transition: top .42s cubic-bezier(.7,0,.2,1), left .42s cubic-bezier(.7,0,.2,1), width .42s cubic-bezier(.7,0,.2,1), height .42s cubic-bezier(.7,0,.2,1), border-radius .42s; box-shadow: 0 30px 80px rgba(0,0,0,.5); }

/* ═════════ LIBRARY (hub) ═════════ */
body.lib { background: var(--onyx); color: var(--off); }
body.lib .nb-nav { background: var(--onyx); color: var(--off); border-bottom-color: rgba(244,241,234,.2); }
body.lib .nb-logo, body.lib .nb-tabs a { border-right-color: rgba(244,241,234,.2); }
body.lib .nb-logo img { filter: invert(1); }
body.lib .nb-tabs a[aria-current] { background: var(--lime); color: var(--onyx); }
body.lib .nb-lang > * { border-color: rgba(244,241,234,.5); }
body.lib .nb-lang [aria-current] { background: var(--lime); color: var(--onyx); border-color: var(--lime); }
body.lib .nb-lang a:hover { background: var(--off); color: var(--onyx); }
body.lib .nb-contact { background: var(--off); color: var(--onyx); border-color: var(--off); }
.lib-head { text-align: center; padding: clamp(36px, 6vw, 72px) var(--pad) 0; }
.lib-head h1, .lib-head h2 { margin: 0; font: 300 clamp(2rem, 5.4vw, 4.4rem)/1 var(--sans); letter-spacing: -.03em; }
.lib-head h1 span, .lib-head h2 span { text-transform: uppercase; letter-spacing: .02em; }
.lib-head h1 i, .lib-head h2 i { display: inline-block; font: italic 400 .8em/1 var(--serif); margin: 0 .15em; color: var(--azure); transition: transform .6s var(--spring); }
.lib-head h1:hover i, .lib-head h2:hover i { transform: rotate(90deg) scale(1.2); }
.lib-head h1 b, .lib-head h2 b { font-weight: 800; }
.lib-head p { margin: 1rem auto 0; max-width: 40rem; color: rgba(244,241,234,.62); }
.chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; padding: 26px var(--pad) 0; }
/* chips: the colour dot spreads until it fills the chip */
.chip { position: relative; isolation: isolate; overflow: hidden; display: inline-flex; align-items: center; gap: .5rem; padding: .55rem .95rem; border-radius: 999px; border: 1px solid rgba(244,241,234,.28); background: transparent; color: var(--off); font: 500 .68rem/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; cursor: pointer; transition: color .35s, border-color .35s; }
.chip i { width: 9px; height: 9px; border-radius: 50%; background: var(--acc); }
.chip::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--acc, var(--off)); clip-path: circle(0 at 1.2rem 50%); transition: clip-path .5s var(--ease); }
.chip:hover::before, .chip.on::before { clip-path: circle(150% at 1.2rem 50%); }
.chip:hover, .chip.on { color: var(--onyx); border-color: var(--acc, var(--off)); }
.chip[data-f="video"]:hover, .chip[data-f="video"].on, .chip[data-f="tours"]:hover, .chip[data-f="tours"].on { color: var(--off); }
.chip:hover i, .chip.on i { background: currentColor; }
.shelf-wrap { padding-top: clamp(40px, 6vw, 70px); }
.shelf { display: flex; align-items: flex-end; justify-content: center; gap: 5px; margin: 0; padding: 70px var(--pad) 0; list-style: none; min-height: 500px; overflow-x: auto; overflow-y: visible; scrollbar-width: none; }
.shelf::-webkit-scrollbar { display: none; }
.shelf[data-f]:not([data-f="all"]) .book { opacity: .12; }
.shelf[data-f="video"] .book[data-svc="video"], .shelf[data-f="sound"] .book[data-svc="sound"], .shelf[data-f="event"] .book[data-svc="event"], .shelf[data-f="tours"] .book[data-svc="tours"], .shelf[data-f="ai"] .book[data-svc="ai"] { opacity: 1; filter: none; --pull: 14; }
.shelf[data-f="video"] .book.soon[data-svc="video"], .shelf[data-f="sound"] .book.soon[data-svc="sound"], .shelf[data-f="event"] .book.soon[data-svc="event"], .shelf[data-f="tours"] .book.soon[data-svc="tours"], .shelf[data-f="ai"] .book.soon[data-svc="ai"] { opacity: .6; }
.hint { text-align: center; color: rgba(244,241,234,.45); margin: 18px var(--pad) 0; }
.lcard { display: grid; grid-template-columns: minmax(0, 300px) minmax(0, 1fr); gap: clamp(18px, 3vw, 36px); align-items: center; max-width: 1060px; margin: clamp(36px, 5vw, 56px) auto 0; padding: 18px; border: 1px solid rgba(244,241,234,.16); background: var(--onyx-2); position: relative; }
.lcard::before { content: ""; position: absolute; left: -1px; top: -1px; width: 64px; height: 4px; background: var(--acc, var(--azure)); transition: background .3s, width .5s var(--ease); }
.lcard:hover::before { width: calc(100% + 2px); }
.lc-img { aspect-ratio: 3 / 2; overflow: hidden; background: var(--onyx-3); }
.lc-img img { width: 100%; height: 100%; object-fit: cover; transition: opacity .25s, transform 1.2s var(--ease); }
.lcard:hover .lc-img img { transform: scale(1.06); }
.lcard.swap .lc-img img, .lcard.swap .lc-txt { opacity: .15; }
.lc-txt { transition: opacity .2s; }
.lc-txt p.mono { margin: 0 0 .6rem; color: rgba(244,241,234,.6); }
.lc-txt h2, .lc-txt h3 { margin: 0; font: 700 clamp(1.3rem, 2.2vw, 1.9rem)/1.12 var(--sans); letter-spacing: -.02em; }
.lc-txt #lcD { margin: .7rem 0 1rem; color: rgba(244,241,234,.75); font-size: .98rem; line-height: 1.55; }
.lc-go { display: inline-flex; align-items: center; gap: .5rem; padding: .7rem 1.1rem; background: var(--azure); color: var(--off); text-decoration: none; font: 500 .7rem/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; transition: color .3s; }
.lc-go::before { background: var(--off); } .lc-go:hover { color: var(--onyx); }
.lc-go svg { width: 16px; height: 16px; transition: transform .35s var(--spring); } .lc-go:hover svg { transform: translateX(5px); }
.lc-go[hidden] { display: none; }
.cat { max-width: 1060px; margin: clamp(56px, 8vw, 96px) auto; padding: 0 var(--pad); }
.cat h2 { margin: 0 0 .8rem; color: rgba(244,241,234,.6); }
.cat ol { list-style: none; margin: 0; padding: 0; border-top: 1px solid rgba(244,241,234,.3); }
.cat li > * { position: relative; display: grid; grid-template-columns: 2.6rem minmax(0, 1fr) 11rem 6rem; gap: 1rem; align-items: baseline; padding: .9rem 0; border-bottom: 1px solid rgba(244,241,234,.12); text-decoration: none; }
.cat li b { font-weight: 600; transition: transform .4s var(--ease), color .3s; } .cat li .mono { color: rgba(244,241,234,.5); }
/* catalogue: a spine in the row's topic colour slides in, the title steps aside for it */
.cat li a::before { content: ""; position: absolute; left: -14px; top: 18%; bottom: 18%; width: 6px; background: var(--acc); transform: scaleY(0); transition: transform .35s var(--spring); }
.cat li a:hover::before { transform: scaleY(1); }
.cat li a:hover b { transform: translateX(10px); color: var(--acc); }
.cat li.is-soon b { font-weight: 400; color: rgba(244,241,234,.45); }
@media (max-width: 760px) {
  .shelf { justify-content: flex-start; padding-top: 44px; min-height: 0; scroll-snap-type: x proximity; }
  .shelf-wrap { padding-top: 6px; }
  .slot { scroll-snap-align: center; }
  .book { height: calc(var(--h) * .82); width: calc(var(--w) * .9); }
  .book .sp-t { zoom: .78; max-height: calc((var(--h) * .82 - 84px) / .78); }
  .lcard { grid-template-columns: 1fr; }
  .cat li > * { grid-template-columns: 2.2rem minmax(0, 1fr); } .cat li > * > .mono:nth-child(n+3) { grid-column: 2; }
}

/* ═════════ NOTEBOOK (article) ═════════ */
body.nb { background-color: var(--stone); background-image: linear-gradient(rgba(244,241,234,.3) 1.5px, transparent 1.5px), linear-gradient(90deg, rgba(244,241,234,.3) 1.5px, transparent 1.5px); background-size: 52px 52px; padding: clamp(0px, 2.4vw, 30px) clamp(0px, 2.4vw, 30px) 0; color: var(--onyx); }
.sheet { max-width: 1240px; margin: 0 auto; background: var(--off-2); box-shadow: 0 30px 80px rgba(10,10,11,.25); overflow: clip; }
body.nb .foot { max-width: 1240px; margin: 0 auto; }
.progress { position: fixed; top: 0; left: 0; right: 0; z-index: 801; height: 3px; pointer-events: none; } .progress i { display: block; height: 100%; width: calc(var(--p, 0) * 100%); background: linear-gradient(90deg, var(--azure-d), var(--azure)); }
.crumbs { text-align: left; color: var(--stone); } .crumbs a { text-decoration: none; transition: color .2s; } .crumbs a:hover { color: var(--onyx); }
.nb-hero { padding: 22px var(--pad) 10px; text-align: center; }
.about { margin: 34px auto 0; width: fit-content; font-size: 1.45rem; display: flex; flex-direction: column; align-items: center; }
.about svg { width: 70px; height: 8px; } .about path { fill: none; stroke: var(--onyx); stroke-width: 1.5; }
.tbox { position: relative; display: inline-block; margin: 6px auto 0; padding: 46px clamp(20px, 7vw, 90px) 0; }
.pix-box { position: relative; display: inline-block; padding: 16px clamp(18px, 3vw, 36px) 12px; cursor: default; }
.hbox { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.hbox path { fill: none; stroke: var(--orange); stroke-width: 2.6; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 1; vector-effect: non-scaling-stroke; animation: draw 1.2s .25s var(--ease) forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
/* the topic word: Funnel Display, solid and quiet; it rises once into place while the orange frame draws itself */
.pix { display: block; font: 700 clamp(3rem, 11vw, 8.6rem)/.9 var(--sans); letter-spacing: -.045em; text-transform: uppercase; color: var(--onyx); animation: rise 1.1s .15s var(--ease) both; }
@keyframes rise { from { opacity: 0; transform: translateY(.14em); } }
.pix-box.small .pix { font-size: clamp(2.2rem, 7vw, 5rem); }
.tag { display: inline-block; padding: 6px 10px; border-radius: 6px; font: 500 .62rem/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; border: 1px solid rgba(10,10,11,.18); box-shadow: 0 2px 0 rgba(10,10,11,.12); }
.hand-note { display: inline-block; padding: 4px 12px 6px; font: italic 400 1.25rem/1 var(--serif); text-decoration: none; background: color-mix(in srgb, var(--acc, var(--lime)) 30%, var(--off-2)); border: 1px solid rgba(10,10,11,.15); transition: background .3s; }
a.hand-note:hover { background: var(--acc); color: var(--off); }
a.hand-note[style*="C8FF2E"]:hover { color: var(--onyx); }
.hand-note.t4 { background: var(--azure-l); }
.t1, .t2, .t3, .t4 { position: absolute; z-index: 2; transition: rotate .4s var(--spring); }
.t1 { top: 4px; left: 0; transform: rotate(-4deg); } .t2 { top: 0; right: 4px; transform: rotate(3deg); }
.t3 { bottom: 34px; left: -6px; transform: rotate(-3deg); } .t4 { bottom: 40px; right: -4px; transform: rotate(4deg); }
.tbox:hover .t1, .tbox:hover .t3 { rotate: 5deg; } .tbox:hover .t2, .tbox:hover .t4 { rotate: -5deg; }
.harrow { position: absolute; width: 44px; height: 30px; overflow: visible; } .harrow path { fill: none; stroke: var(--onyx); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.harrow.a1 { left: 64px; bottom: 58px; } .harrow.a2 { right: 70px; bottom: 64px; transform: scaleX(-1); }
.under { margin: 12px 0 0; }
.pop { animation: pop .6s var(--spring) both; } .t1 { animation-delay: .5s; } .t2 { animation-delay: .62s; } .t3 { animation-delay: .74s; } .t4 { animation-delay: .86s; }
@keyframes pop { from { opacity: 0; scale: .4; } }
.nb-hero h1 { margin: 30px auto 0; max-width: 22ch; font: 600 clamp(1.9rem, 4.4vw, 3.5rem)/1.08 var(--sans); letter-spacing: -.028em; text-wrap: balance; }
.stk { display: inline-block; width: .85em; height: .85em; vertical-align: -.1em; }
.nb-hero h1 .stk { animation: spin 7s linear infinite; transition: scale .4s var(--spring); }
.nb-hero h1:hover .stk { animation-duration: 1.2s; scale: 1.15; }
@keyframes spin { to { transform: rotate(360deg); } }
.lede { max-width: 40rem; margin: 18px auto 0; font-size: 1.12rem; line-height: 1.55; color: var(--onyx-3); }
.lede .stk { width: 1.1em; height: 1.1em; vertical-align: -.25em; transition: transform .6s var(--spring); }
.lede:hover .stk { transform: rotate(180deg) scale(1.15); }
.hero-cta { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 12px; margin-top: 26px; }
.btn-ink { display: inline-flex; align-items: center; gap: .7rem; padding: 9px 16px 9px 9px; background: var(--onyx); color: var(--off); text-decoration: none; font: 500 .7rem/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; }
.btn-ink::before { background: var(--azure); }
.btn-ink i { display: grid; place-items: center; width: 24px; height: 24px; background: var(--azure); transition: background .3s, transform .45s var(--spring); }
.btn-ink svg { width: 14px; height: 14px; transition: transform .45s var(--spring); }
.btn-ink:hover i { background: var(--onyx); transform: rotate(-90deg); } .btn-ink:hover svg { transform: rotate(90deg) translateX(0); }
.btn-line { padding: 13px 16px; border: 1.5px solid var(--onyx); text-decoration: none; font: 500 .7rem/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; background: var(--off-2); transition: color .3s; }
.btn-line::before { background: var(--lime); }
.wave { display: block; width: 100%; height: 50px; margin-top: 30px; } .wave path { fill: none; stroke: rgba(10,10,11,.35); stroke-width: 1.2; vector-effect: non-scaling-stroke; }
.side-label { position: absolute; top: 0; left: var(--pad); margin: 0; font-size: 1.45rem; transform: rotate(-3deg); }
.short { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 36rem) minmax(0, 1fr); gap: clamp(16px, 3vw, 40px); align-items: center; padding: 40px var(--pad) 50px; }
.short-in { text-align: center; }
.boxed { display: inline-block; margin: 0 0 14px; padding: 4px 16px 6px; border: 1.5px solid var(--onyx); border-radius: 6px; background: var(--off-2); font: 500 1.35rem/1.2 var(--sans); }
.answer { margin: 0; font-size: clamp(1.5rem, 2.3vw, 1.9rem); line-height: 1.32; }
/* polaroids: on hover the photo "develops" again, straightens and the tape lifts */
.pola { margin: 0; justify-self: center; width: min(100%, 250px); padding: 10px 10px 12px; background: #fff; box-shadow: 0 12px 26px rgba(10,10,11,.16); position: relative; transform: rotate(var(--r, 0deg)); transition: transform .45s var(--spring), box-shadow .45s; }
.pola img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; }
.pola figcaption { margin-top: 8px; font: italic 400 1.08rem/1.25 var(--serif); text-align: center; color: var(--onyx-3); }
.pola:hover { transform: rotate(0deg) translateY(-6px) scale(1.03); box-shadow: 0 22px 40px rgba(10,10,11,.22); }
.pola:hover img { animation: develop 1s var(--ease); }
@keyframes develop { 0% { filter: brightness(1.9) saturate(0) contrast(.7); } 60% { filter: brightness(1.15) saturate(.6); } 100% { filter: none; } }
.taped::before, .taped::after { content: ""; position: absolute; top: -11px; width: 62px; height: 22px; z-index: 2; transition: transform .45s var(--spring); }
.taped::before { left: -16px; transform: rotate(-32deg); background: color-mix(in srgb, var(--azure-l) 75%, transparent); }
.taped::after { right: -16px; transform: rotate(34deg); background: color-mix(in srgb, var(--lime) 55%, transparent); }
.taped:hover::before { transform: rotate(-44deg) translate(-4px, -6px); } .taped:hover::after { transform: rotate(46deg) translate(4px, -6px); }
.hero-img { view-transition-name: cover; }
.stickers { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 28px; }
.sticker, .sq { --z: 9px; mask: conic-gradient(from 135deg at top, #0000, #000 1deg 89deg, #0000 90deg) top / var(--z) 51% repeat-x, conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) bottom / var(--z) 51% repeat-x;
  -webkit-mask: conic-gradient(from 135deg at top, #0000, #000 1deg 89deg, #0000 90deg) top / var(--z) 51% repeat-x, conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) bottom / var(--z) 51% repeat-x; }
/* stickers: on hover the right corner peels back to show the off-white paper underneath */
.sticker { position: relative; display: inline-block; padding: 12px 22px 12px 18px; font: 600 .98rem/1.15 var(--sans); text-decoration: none; transform: rotate(var(--r, 0deg)); transition: transform .35s var(--spring); }
.sticker::after { content: ""; position: absolute; right: 0; top: 50%; width: 0; height: 0; translate: 0 -50%; background: linear-gradient(225deg, var(--off-2) 50%, rgba(10,10,11,.28) 50%, rgba(10,10,11,.05)); transition: width .3s var(--ease), height .3s var(--ease); }
.sticker:hover { transform: rotate(0deg) translateY(-3px); }
.sticker:hover::after { width: 16px; height: 22px; }
.sq { display: inline-grid; place-items: center; width: 44px; height: 44px; transition: transform .5s var(--spring); } .sq svg { width: 18px; height: 18px; fill: var(--onyx); }
.sq:hover { transform: rotate(180deg); }
.lime { background: var(--lime); color: var(--onyx); } .azure { background: var(--azure); color: var(--off); } .azure svg { fill: var(--off); }
.orange { background: var(--orange); color: var(--onyx); } .violet { background: var(--violet); color: var(--off); } .violet svg { fill: var(--off); }
.lime-l { background: var(--lime-l); } .violet-l { background: var(--violet-l); } .orange-l { background: var(--orange-l); } .azure-l { background: var(--azure-l); }
.sticker.ink { background: var(--onyx); color: var(--off); }

.folders { max-width: 1120px; margin: 0 auto; padding: 50px var(--pad) 10px; }
.folder { position: relative; margin-top: 54px; padding: clamp(24px, 4vw, 48px); border-radius: 0 10px 10px 10px; scroll-margin-top: 110px; transition: transform .5s var(--spring), box-shadow .5s; }
.folder:first-child { margin-top: 30px; }
.folder .tab { position: absolute; top: -30px; left: var(--tab); height: 31px; display: flex; align-items: center; padding: 0 30px 0 18px; background: inherit; clip-path: polygon(0 100%, 7% 0, 86% 0, 100% 100%); transition: top .35s var(--spring), height .35s var(--spring); }
/* folders: the tab pulls up like a file being taken out, and the folder tilts toward you */
.folder:hover .tab { top: -38px; height: 39px; }
.folder:hover { box-shadow: 0 24px 50px -20px rgba(10,10,11,.45); }
.js .folder.in:hover { transform: rotate(-.35deg) translateY(-4px); }
.folder.ink { background: linear-gradient(160deg, var(--onyx-3), var(--onyx)); color: var(--off); }
.folder.lime { background: linear-gradient(160deg, var(--lime-l), var(--lime) 45%); color: var(--onyx); }
.folder.paper { background: var(--off-2); color: var(--onyx); box-shadow: inset 0 0 0 1.5px var(--onyx); }
.folder.paper .tab { background: var(--onyx); color: var(--off); }
.folder.azure { background: linear-gradient(160deg, var(--azure), var(--azure-d)); color: var(--off); }
.folder.violet { background: linear-gradient(160deg, var(--violet), var(--violet-d)); color: var(--off); }
.folder.orange { background: linear-gradient(160deg, var(--orange-l), var(--orange) 40%); color: var(--onyx); }
.folder.azure .tab { background: var(--azure); } .folder.violet .tab { background: var(--violet); } .folder.ink .tab { background: var(--onyx-3); }
.folder.lime .tab { background: var(--lime-l); } .folder.orange .tab { background: var(--orange-l); }
.f-in { display: grid; gap: clamp(24px, 4vw, 48px); }
.folder.has-fig .f-in { grid-template-columns: minmax(0, 1.3fr) minmax(0, .7fr); align-items: start; }
.folder.has-fig .pola { margin-top: 14px; color: var(--onyx); width: min(100%, 300px); }
.f-k { margin: 0; opacity: .7; }
.folder h2 { margin: 10px 0 18px; font: 600 clamp(1.7rem, 3.3vw, 2.7rem)/1.05 var(--sans); letter-spacing: -.025em; }
.folder p, .folder li { font-size: 1.05rem; line-height: 1.7; }
.folder p { margin: 0 0 1rem; } .folder ul, .folder ol { margin: 0 0 1.1rem; padding-left: 1.25rem; } .folder li { margin-bottom: .5rem; }
.folder strong { font-weight: 700; } .folder em { font-family: var(--serif); font-size: 1.12em; }
.folder table { width: 100%; border-collapse: collapse; margin: 0 0 1rem; font-size: .95rem; display: block; overflow-x: auto; }
.folder th, .folder td { text-align: left; vertical-align: top; padding: .7rem .9rem .7rem 0; border-bottom: 1px solid color-mix(in srgb, currentColor 25%, transparent); min-width: 8.5rem; }
.folder thead th { font: 500 .68rem/1.2 var(--mono); letter-spacing: .1em; text-transform: uppercase; border-bottom-color: currentColor; }
.folder tbody td:first-child { font-weight: 700; min-width: 7rem; }
.folder tbody tr { transition: background .2s; } .folder tbody tr:hover { background: color-mix(in srgb, currentColor 8%, transparent); }
.js .folder { opacity: 0; transform: translateY(46px) rotate(-.8deg); transition: opacity .7s var(--ease), transform .8s var(--spring), box-shadow .5s; }
.js .folder.in { opacity: 1; transform: none; }
.faq { position: relative; max-width: 1120px; margin: 0 auto; padding: 70px var(--pad) 40px; text-align: center; scroll-margin-top: 90px; }
.faq .side-label { top: 40px; }
.notes { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; margin-top: 18px; text-align: left; align-items: start; }
/* sticky notes: on hover the bottom corner curls up */
.note { position: relative; padding: 20px 22px 14px; transform: rotate(var(--r, 0deg)); box-shadow: 0 10px 20px rgba(10,10,11,.12); transition: transform .35s var(--spring); }
.note::before { content: ""; position: absolute; top: -10px; left: 50%; width: 70px; height: 20px; transform: translateX(-50%) rotate(-3deg); background: rgba(244,241,234,.6); box-shadow: 0 1px 2px rgba(10,10,11,.08); }
.note::after { content: ""; position: absolute; right: 0; bottom: 0; width: 0; height: 0; background: linear-gradient(315deg, var(--off-2) 50%, rgba(10,10,11,.2) 50%, rgba(10,10,11,.04)); transition: width .35s var(--ease), height .35s var(--ease); }
.note:hover { transform: rotate(0deg) translateY(-3px); } .note:hover::after { width: 26px; height: 26px; }
.note summary { display: flex; justify-content: space-between; gap: 1rem; cursor: pointer; list-style: none; font: 700 1.08rem/1.35 var(--sans); }
.note summary::-webkit-details-marker { display: none; }
.note summary::after { content: "+"; font: 400 1.6rem/1 var(--sans); transition: transform .3s var(--spring); }
.note[open] summary::after { transform: rotate(45deg); }
.note p { margin: 10px 0 6px; font-size: 1rem; line-height: 1.6; }
.nb-cta { text-align: center; padding: 60px var(--pad) 50px; }
.nb-cta .hand { margin: 0 0 6px; font-size: 1.45rem; transform: rotate(-2deg); }
.nb-cta h2 { margin: 26px auto 0; max-width: 22ch; font: 600 clamp(1.6rem, 3vw, 2.4rem)/1.1 var(--sans); letter-spacing: -.02em; }
.nb-cta > p:not(.hand) { max-width: 34rem; margin: 12px auto 0; color: var(--onyx-3); }
.more { text-align: center; padding: 40px var(--pad) 70px; }
.mini-shelf { display: flex; justify-content: center; align-items: flex-end; gap: clamp(20px, 5vw, 60px); list-style: none; margin: 30px 0 0; padding: 0; }
.mini-shelf .s3 { color: var(--off); }
.mini-shelf .book:hover, .mini-shelf .book:focus-visible { --pull: 18; }
.mini-t { max-width: 11rem; margin: 14px auto 10px; font: 500 .88rem/1.3 var(--sans); }
.back { display: inline-flex; gap: .4rem; margin-top: 26px; text-decoration: none; border-bottom: 1px solid currentColor; transition: gap .35s var(--spring); }
.back:hover { gap: 1rem; }
.js .pola.rv, .js .note.rv { opacity: 0; translate: 0 26px; transition: opacity .6s var(--ease), translate .7s var(--spring), transform .45s var(--spring), box-shadow .45s; }
.js .pola.rv.in, .js .note.rv.in { opacity: 1; translate: 0 0; }
@media (max-width: 900px) {
  .short { grid-template-columns: 1fr 1fr; padding-top: 56px; }
  .short-in { grid-column: 1 / -1; grid-row: 1; }
  .folder.has-fig .f-in { grid-template-columns: 1fr; }
  .notes { grid-template-columns: 1fr; }
  .tbox { padding-left: 8px; padding-right: 8px; padding-top: 52px; }
  .t3 { left: 0; bottom: auto; top: 26px; } .t4 { right: 0; bottom: auto; top: 30px; } .t1 { left: 2%; top: -6px; } .t2 { right: 2%; top: -8px; }
  .harrow { display: none; }
  .mini-t { display: none; }
}
@media (hover: none) { .nb-tabs a::after { display: none; } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .hbox path { stroke-dashoffset: 0; }
}

/* ═════════ the shelf at the end of every article (dark, full width of the sheet) ═════════ */
.shelf-sec { margin-top: clamp(40px, 6vw, 70px); padding: clamp(50px, 7vw, 90px) 0 clamp(50px, 7vw, 80px); background: var(--onyx); color: var(--off); }
.shelf-sec .lib-head { padding-top: 0; }
.shelf-sec .lcard { margin-left: var(--pad); margin-right: var(--pad); }
@media (min-width: 1140px) { .shelf-sec .lcard { margin-left: auto; margin-right: auto; } }
.shelf-sec .back-w { text-align: center; margin: 34px 0 0; }
.shelf-sec .back { color: var(--off); }
.chip[data-f="ai"]:hover, .chip[data-f="ai"].on { color: var(--onyx); }
/* the shelf scales with the screen so all twenty books fit (or swipe on phones) */
.shelf { --k: .8; justify-content: flex-start; }   /* the article sheet is at most 1240px wide */
.shelf .slot:first-child { margin-left: auto; } .shelf .slot:last-child { margin-right: auto; }
.shelf .book { width: calc(var(--w) * var(--k)); height: calc(var(--h) * var(--k)); }
.shelf .book .sp-t { zoom: var(--k); max-height: calc((var(--h) * var(--k) - 84px) / var(--k)); }
.shelf { min-height: 420px; }
@media (max-width: 1180px) { .shelf { --k: .68; min-height: 380px; } }
@media (max-width: 760px) { .shelf { --k: .64; } .shelf .book { height: calc(var(--h) * var(--k)); width: calc(var(--w) * var(--k)); } .shelf .book .sp-t { zoom: var(--k); max-height: calc((var(--h) * var(--k) - 84px) / var(--k)); } }

/* the site header sits above the notebook sheet */
body.nb { padding-top: clamp(82px, 9vw, 96px); }

/* sources (studies cited in an article) */
.sources { max-width: 1120px; margin: 0 auto; padding: 40px var(--pad) 0; }
.sources h2 { margin: 0 0 12px; padding-top: 12px; border-top: 1px solid var(--onyx); color: var(--onyx-3); }
.sources ol { margin: 0; padding-left: 1.3rem; display: grid; gap: .5rem; }
.sources li { font-size: .92rem; line-height: 1.5; color: var(--onyx-3); }
.sources a { text-decoration: underline; text-decoration-color: rgba(10,10,11,.3); text-underline-offset: 3px; transition: color .2s, text-decoration-color .2s; }
.sources a:hover { color: var(--azure); text-decoration-color: var(--azure); }
