@font-face { font-family: "Alte Haas Grotesk"; src: url("fonts/AlteHaasGrotesk-Regular.ttf") format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Alte Haas Grotesk"; src: url("fonts/AlteHaasGrotesk-Bold.ttf") format("truetype"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Miss Fajardose"; src: url("fonts/MissFajardose.woff2") format("woff2"); font-display: swap; }
@font-face { font-family: "Biro Script"; src: url("fonts/BiroScriptReduced.ttf") format("truetype"); font-display: swap; }
/* ============================================================
   THEME: swap fonts, colours and feel here.
   Everything below the tokens reads from these variables.
   ============================================================ */
:root {
  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Inter", system-ui, sans-serif;
  --font-logo: "Young Serif", Georgia, serif;
  --font-nav: "EB Garamond", Georgia, serif;
  --font-hand: "Biro Script", "Caveat", "Comic Sans MS", cursive;
  --folder: #3d2525;
  --font-script: "Biro Script", "Pinyon Script", "Snell Roundhand", cursive;
  --display-weight: 600;
  --display-tracking: -0.02em;

  --bg: #f6f3ec;
  --surface: #ffffff;
  --ink: #161513;
  --muted: #6d6a63;
  --line: #dcd7cc;
  --accent: #0099dc;      /* Symcor blue for now; final brand accent TBD */
  --accent-ink: #ffffff;

  --radius: 14px;
  --radius-sm: 8px;
  --maxw: 1320px;
  --gutter: clamp(20px, 4vw, 56px);
  --ease: cubic-bezier(.2,.7,.1,1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--font-body); font-size: 17px; line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }
h1, h2, h3 { font-family: var(--font-display); font-weight: var(--display-weight); letter-spacing: var(--display-tracking); line-height: 1.02; margin: 0; }
.eyebrow { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }

/* ---------- nav: name centred, links split ---------- */
.nav { position: sticky; top: 0; z-index: 50; background: #fff; border-bottom: 0.5px solid #000; transition: box-shadow .3s; }
.nav .nav-in { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; height: 104px; padding: 0 var(--gutter); max-width: 1600px; margin: 0 auto; }
.nav .logo { display: inline-flex; align-items: center; gap: .12em; font-family: "Miss Fajardose Pro", "Miss Fajardose", var(--font-logo); font-size: 92px; line-height: 1; letter-spacing: 0; color: #2b2b2b; text-decoration: none; filter: url(#ink); }
.nav .logo .star { width: .26em; height: .26em; fill: currentColor; margin: 0 .05em; animation: spin 7s linear infinite; }
.nav .logo:hover .star { animation-duration: 1.4s; }
@keyframes spin { to { transform: rotate(360deg); } }
.nav ul { display: flex; gap: 28px; list-style: none; margin: 0; padding: 0; font-family: var(--font-nav); font-style: italic; font-size: 17px; line-height: 1; }
.nav .nav-r { justify-content: flex-end; }
.nav ul a { text-decoration: none; color: #555; position: relative; transition: color .25s; }
.nav ul a:hover { color: #000; }
.nav ul a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -3px; height: .5px; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform .35s var(--ease); }
.nav ul a:hover::after { transform: scaleX(1); transform-origin: left; }
.hand { font-family: var(--font-hand); }

/* ---------- landing: the closed notebook ---------- */
.stage { height: 230vh; position: relative; }
.stage-sticky { position: sticky; top: 104px; height: calc(100vh - 104px); min-height: 680px; overflow: hidden; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 22px; }
.bgstar { position: absolute; z-index: 1; pointer-events: none; filter: drop-shadow(0 4px 4px rgba(0,0,0,.18)) saturate(.6); will-change: transform, opacity; }
.book-wrap { flex: none; --bh: min(calc(100vh - 104px - 110px), 660px); --bw: calc(var(--bh) * .76); perspective: 2400px; width: var(--bw); height: var(--bh); position: relative; z-index: 2; transform-style: preserve-3d; }
.book { position: absolute; inset: 0; transform-style: preserve-3d; --bt: 26px; --ct: 6px; --ox: 0%; transform: translateX(var(--ox)); }
/* back cover + the stacked page edges peeking out right/bottom */
.book > .back { position: absolute; inset: 0; border-radius: 6px 16px 16px 6px; background: #f2dcd6 url(img/notebook-plaid.svg) center / cover; box-shadow: inset 0 0 0 2px #e6c7bf, 0 40px 70px -30px rgba(60,30,20,.55); }
.page-r { position: absolute; inset: 2.4% 2.6% 2.6% 0; transform: translateZ(var(--bt)); background-color: #f8f4ea; border-radius: 0 6px 6px 0; padding: 7% 8% 6% 13%; display: flex; flex-direction: column;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='p'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='4' seed='5' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .45 0 0 0 0 .4 0 0 0 0 .32 0 0 0 .16 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url%28%23p%29'/%3E%3C/svg%3E"), url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='500' height='500'%3E%3Cfilter id='f'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.012 .08' numOctaves='3' seed='11' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .5 0 0 0 0 .45 0 0 0 0 .38 0 0 0 .1 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url%28%23f%29'/%3E%3C/svg%3E"), linear-gradient(90deg, transparent 0 9.5%, rgba(200,80,80,.22) 9.5% calc(9.5% + 1px), transparent 0), linear-gradient(transparent 0 calc(100% - 1px), rgba(70,110,170,.16) 0), radial-gradient(130% 100% at 100% 50%, transparent 60%, rgba(120,100,70,.08));
  background-size: 300px 300px, 500px 500px, 100% 100%, 100% 26px, 100% 100%;
  box-shadow: inset 16px 0 22px -16px rgba(0,0,0,.35), 1px 1px 0 #e8e1d3, 2px 2px 0 #f6f1e7, 3px 3px 0 #e8e1d3, 4px 4px 0 #f6f1e7, 5px 5px 0 #ddd4c4, 6px 6px 8px -2px rgba(0,0,0,.18); }
.page-title { font-family: var(--font-logo); font-weight: 400; font-size: clamp(26px, 2.6vw, 36px); margin: 0 0 16px; }
.cats { display: flex; flex-direction: column; gap: 14px; }
.cat h4 a { display: flex; align-items: baseline; gap: 6px; color: inherit; text-decoration: none; }
.cat h4 .cat-go { margin-left: auto; transition: transform .3s var(--ease); }
.cat h4 a:hover .cat-go { transform: translateX(4px); }
.cat h4 a:hover { color: #5c3a33; }
.cat h4 { margin: 0 0 4px; font: 600 11px/1 var(--font-body); letter-spacing: .14em; text-transform: uppercase; color: #8a5a50; border-bottom: 1px solid rgba(0,0,0,.15); padding-bottom: 6px; }
.cat h4 sup { font-size: 9px; color: var(--muted); }
.cat ul { list-style: none; margin: 0; padding: 0; }
.cat li a { display: flex; align-items: baseline; gap: 8px; padding: 5px 0; text-decoration: none; color: #222; border-bottom: 1px dashed rgba(0,0,0,.12); font-family: var(--font-logo); font-size: clamp(14px, 1.3vw, 18px); transition: padding .3s var(--ease), color .2s; }
.cat li a .ext { width: 12px; height: 12px; flex: none; }
.cat li a:hover { padding-left: 6px; color: #8a5a50; }
.see-all { margin-top: auto; font: italic 15px var(--font-nav); color: #333; }

/* ring-binder mechanism in the gutter */

.cover { position: absolute; inset: 0; transform-origin: left center; transform-style: preserve-3d; z-index: 5; will-change: transform; }
.cover-front, .cover-inside { position: absolute; inset: 0; backface-visibility: hidden; -webkit-backface-visibility: hidden; border-radius: 6px 16px 16px 6px; }
.cover-front { transform: translateZ(var(--ct)); }
.cv-edge { position: absolute; background: #d8b7ae; background-image: repeating-linear-gradient(90deg, rgba(0,0,0,.06) 0 1px, transparent 1px 3px); }
.cv-r { left: 100%; top: 2%; bottom: 2%; width: var(--ct); transform-origin: left center; transform: rotateY(-90deg); }
.cv-t { left: 0; right: 2%; top: 0; height: var(--ct); transform-origin: center top; transform: rotateX(90deg); }
.cv-b { left: 0; right: 2%; bottom: 0; height: var(--ct); transform-origin: center bottom; transform: rotateX(-90deg); }
.leather { background: #f2b9c4 url(img/pink-notebook-cover.webp) center / cover no-repeat;
  box-shadow: inset 0 0 0 2px #d9b8af, inset 6px 0 10px -6px rgba(0,0,0,.3), 0 30px 60px -26px rgba(40,25,10,.5); }
.leather::before { display: none; content: ""; position: absolute; inset: 9px; border: 1.5px dashed rgba(150,110,100,.6); border-radius: 4px 12px 12px 4px; pointer-events: none; z-index: 1; }
.leather::after { display: none; content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; z-index: 1;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='w'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.6 .9' numOctaves='2' seed='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .3 0 0 0 0 .22 0 0 0 0 .2 0 0 0 .22 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url%28%23w%29'/%3E%3C/svg%3E"), radial-gradient(90% 80% at 85% 100%, rgba(60,35,15,.10), transparent 60%); }
.cover-inside { transform: rotateY(180deg); border-radius: 16px 6px 6px 16px; background: #f2dcd6 url(img/notebook-plaid.svg) center / cover; box-shadow: inset 0 0 0 2px #e6c7bf; }
.lining { position: absolute; inset: 2.4% 2.6% 2.4% 2.6%; background-color: #f8f4ea; border-radius: 10px 4px 4px 10px; padding: 12% 12% 6% 9%; overflow: hidden; display: flex; flex-direction: column;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='p'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='4' seed='5' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .45 0 0 0 0 .4 0 0 0 0 .32 0 0 0 .16 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url%28%23p%29'/%3E%3C/svg%3E"), url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='500' height='500'%3E%3Cfilter id='f'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.012 .08' numOctaves='3' seed='11' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .5 0 0 0 0 .45 0 0 0 0 .38 0 0 0 .1 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url%28%23f%29'/%3E%3C/svg%3E"), linear-gradient(transparent 0 calc(100% - 1px), rgba(70,110,170,.16) 0), radial-gradient(130% 100% at 0% 50%, transparent 60%, rgba(120,100,70,.08));
  background-size: 300px 300px, 500px 500px, 100% 26px, 100% 100%; box-shadow: inset -16px 0 22px -16px rgba(0,0,0,.3), 0 0 0 1px rgba(0,0,0,.05); }

/* clasp: hinged at the fore-edge; swings round and tucks behind the back cover */

/* items on the cover (positioned in % of the cover) — static while the cover opens */
.frame-cap { position: absolute; inset: auto 0 0 0; padding: 22px 8px 7px; display: flex; align-items: center; justify-content: space-between; gap: 6px; color: #fff; font: 600 10.5px/1.15 var(--font-body); letter-spacing: .03em;
  background: linear-gradient(transparent, rgba(0,0,0,.65)); opacity: 0; transform: translateY(6px); transition: opacity .3s, transform .3s var(--ease); pointer-events: none; }
.frame-cap .ext { width: 13px; height: 13px; flex: none; } .frame-cap em { font: italic 10px var(--font-body); opacity: .8; }
.strip .frame { position: relative; display: block; aspect-ratio: .82; overflow: hidden; background: #111; }
.strip .frame img { width: 100%; height: 100%; object-fit: cover; transition: filter .35s, transform .5s var(--ease); }
.strip .frame:hover img { transform: scale(1.05); }
.lace { position: absolute; right: 2.5%; top: 0; bottom: 0; width: 11%; z-index: 2; background: url(img/lace.png) center top / 100% auto repeat-y; filter: drop-shadow(-1px 1px 2px rgba(0,0,0,.25)); }

/* envelope: hover opens the flap, a business card rises; click the card to flip it */
.env-back { position: absolute; inset: 0; background: #e2ddd3; border-radius: 3px; box-shadow: 0 12px 20px -10px rgba(0,0,0,.5); }
.env-front { position: absolute; left: 0; right: 0; bottom: 0; height: 74%; background: #ebe7df; border-radius: 0 0 3px 3px; z-index: 3; box-shadow: 0 -1px 0 rgba(0,0,0,.05); }
.flap { position: absolute; left: 0; right: 0; top: 0; height: 34%; background: #f1eee8; border-radius: 3px 3px 50% 50% / 3px 3px 30% 30%; z-index: 4; transform-origin: top center;
  transition: transform .5s var(--ease), z-index 0s .25s; box-shadow: 0 2px 3px rgba(0,0,0,.08); }

/* inside of the front cover: intake sheet, resume stamp & socials */
.sheet-kicker { margin: 0; font: 600 11px/1.2 var(--font-body); letter-spacing: .14em; text-transform: uppercase; }
.sheet-name { font-family: var(--font-logo); font-weight: 400; font-size: clamp(24px, 2.6vw, 34px); margin: 4px 0 10px; letter-spacing: -0.01em; }
.form { display: flex; flex-wrap: wrap; border: 1px dashed rgba(0,0,0,.35); }
.field { width: 100%; padding: 4px 8px 5px; border-bottom: 1px dashed rgba(0,0,0,.35); }
.field:last-child { border-bottom: 0; }
.field.half { width: 50%; } .field.half + .field.half { border-left: 1px dashed rgba(0,0,0,.35); }
.field label { display: block; font: 600 8.5px/1 var(--font-body); letter-spacing: .1em; text-transform: uppercase; color: rgba(0,0,0,.55); margin-bottom: 2px; }
.field .hand { font-size: clamp(14px, 1.2vw, 18px); line-height: 1.05; color: #233a8c; }
.page-foot { margin-top: auto; display: flex; gap: 18px; align-items: center; padding-top: 14px; }
.socials { list-style: none; margin: 0; padding: 0; font-size: 13px; display: flex; flex-direction: column; gap: 5px; }
.socials a { color: #222; } .socials span { color: #666; }
.stamp { flex: none; width: 84px; height: 84px; border: 0; padding: 0; color: #2b2422; background: transparent; display: grid; place-items: center; cursor: pointer; transform: rotate(0);
  font: 700 11px/1.1 var(--font-body); letter-spacing: .1em; text-transform: uppercase; position: relative; transition: transform .3s var(--ease), background .3s; }
.stamp svg.vstamp { display: block; width: 100%; height: 100%; overflow: visible; }

.stamp:hover { transform: scale(1.06); }
.scroll-hint { position: relative; z-index: 3; flex: none; height: 20px; font: italic 16px var(--font-nav); color: var(--muted); text-decoration: none; display: grid; }
.scroll-hint span { grid-area: 1/1; text-align: center; transition: opacity .5s; }
.scroll-hint .h-work { opacity: 0; pointer-events: none; }
.scroll-hint.opened .h-open { opacity: 0; }
.scroll-hint.opened .h-work { opacity: 1; pointer-events: auto; animation: pulse 2.4s ease-in-out infinite; }
@keyframes pulse { 0%, 100% { opacity: .35; } 50% { opacity: 1; } }

/* ---------- resume: exact copy viewer ---------- */
.modal { position: fixed; inset: 0; z-index: 120; background: rgba(20,20,20,.6); display: none; place-items: center; padding: 28px; backdrop-filter: blur(4px); }
.modal.on { display: grid; animation: pageIn .35s var(--ease); }
.cv-sheet { position: relative; width: min(820px, 100%); max-height: 92vh; overflow: auto; background: #fff; border-radius: 6px; box-shadow: 0 30px 80px rgba(0,0,0,.4); }
.cv-sheet img { width: 100%; display: block; }
.cv-bar { position: sticky; top: 0; display: flex; align-items: center; gap: 16px; padding: 10px 14px 10px 20px; background: rgba(255,255,255,.94); border-bottom: 1px solid #eee; font-size: 13px; z-index: 1; }
.cv-bar span { margin-right: auto; color: #555; } .cv-bar a { color: #222; }
.modal-x { border: 0; background: none; font-size: 26px; line-height: 1; cursor: pointer; color: #333; }

/* ---------- awards (beside case-study title) ---------- */
.cs-head { display: grid; grid-template-columns: 1fr 300px; gap: 48px; align-items: end; margin: 28px 0 32px; }
.cs-head .cs-title { margin: 0; }
.awards { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.awards > li { border-bottom: 1px solid var(--line); padding: 10px 0; font-size: 13px; line-height: 1.35; position: relative; }
.awards .aw-row { display: grid; grid-template-columns: 14px 1fr auto; gap: 8px; align-items: start; }
.awards .star { width: 11px; height: 11px; fill: var(--muted); margin-top: 3px; }
.awards b { font-weight: 500; display: block; }
.awards .aw-meta { color: var(--muted); }
.awards .aw-links { display: flex; gap: 6px; align-items: center; }
.awards .aw-info { width: 20px; height: 20px; border-radius: 50%; border: 1px solid var(--line); background: transparent; color: var(--muted); font: italic 12px/1 var(--font-nav); cursor: pointer; transition: all .2s; }
.awards .aw-src { width: 20px; height: 20px; border-radius: 50%; border: 1px solid var(--line); display: grid; place-items: center; color: var(--muted); text-decoration: none; font-size: 11px; transition: all .2s; }
.awards .aw-src:hover { border-color: var(--ink); color: var(--ink); }
.awards .aw-info:hover, .awards li.open .aw-info { border-color: var(--ink); color: var(--ink); }
.awards .aw-pop { display: none; position: absolute; z-index: 20; right: 0; top: calc(100% + 6px); width: 300px; padding: 12px 14px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); color: var(--ink); font-size: 12.5px; box-shadow: 0 10px 30px rgba(0,0,0,.08); }
.awards li.open .aw-pop { display: block; animation: pageIn .3s var(--ease); }
.awards .aw-pop a { color: var(--ink); }
.awards-label { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; display: block; }

/* ---------- filters + grid ---------- */
.work-head { display: flex; justify-content: space-between; align-items: end; margin: 80px 0 24px; gap: 24px; flex-wrap: wrap; }
.work-head h2 { font-size: clamp(36px, 4vw, 56px); }
.filters { display: flex; gap: 8px; flex-wrap: wrap; }
.filters button { font: inherit; font-size: 14px; border: 1px solid var(--line); background: transparent; padding: 8px 16px; border-radius: 99px; cursor: pointer; transition: all .25s; color: var(--ink); }
.filters button:hover { border-color: var(--ink); }
.filters button.on { background: var(--ink); color: var(--bg); border-color: var(--ink); }

.grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 28px 24px; padding-bottom: 120px; }
.card { grid-column: span 4; text-decoration: none; color: inherit; cursor: pointer; transition: opacity .4s, transform .4s var(--ease); }
.card.big { grid-column: span 8; }
.card.hide { display: none; }
.card .media { position: relative; aspect-ratio: 4/3; border-radius: var(--radius); overflow: hidden; background: var(--surface); }
.card.big .media { aspect-ratio: 16/10; }
.card .media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease), opacity .5s; }
.card .media img.alt { opacity: 0; }
.card:hover .media img { transform: scale(1.04); }
.card:hover .media img.alt { opacity: 1; }
.card .placeholder { position: absolute; inset: 0; display: grid; place-items: center; color: var(--muted); font-size: 13px; letter-spacing: .1em; text-transform: uppercase;
  background: repeating-linear-gradient(-45deg, transparent 0 14px, color-mix(in srgb, var(--line) 60%, transparent) 14px 15px), var(--surface); }
.card .badge { position: absolute; top: 14px; left: 14px; background: var(--bg); padding: 5px 11px; border-radius: 99px; font-size: 12px; }
.card .go { position: absolute; right: 14px; bottom: 14px; width: 44px; height: 44px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); display: grid; place-items: center; transform: scale(0) rotate(-45deg); transition: transform .45s var(--ease); }
.card:hover .go { transform: scale(1) rotate(0); }
.card .meta { display: flex; justify-content: space-between; gap: 12px; margin-top: 14px; }
.card h3 { font-size: 26px; }
.card .client { color: var(--muted); font-size: 14px; margin-top: 4px; }
.card .year { color: var(--muted); font-size: 14px; white-space: nowrap; }
.tags { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 10px; }
.tags span { font-size: 12px; border: 1px solid var(--line); border-radius: 99px; padding: 3px 9px; color: var(--muted); }

/* ---------- case study ---------- */
.cs-top { padding-top: 48px; padding-bottom: 32px; }
a.back { font-size: 14px; text-decoration: none; color: var(--muted); display: inline-flex; gap: 8px; align-items: center; }
a.back:hover { color: var(--ink); }
.cs-title { font-size: clamp(52px, 7vw, 116px); max-width: 12ch; }
.cs-meta { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; border-top: 1px solid var(--line); padding-top: 20px; }
.cs-meta .v { margin-top: 6px; font-size: 15px; }
.cs-hero { margin: 40px 0 0; border-radius: var(--radius); overflow: hidden; aspect-ratio: 16/8; background: var(--accent); }
.cs-hero img { width: 100%; height: 100%; object-fit: cover; object-position: center 22%; transform: scale(1.08); will-change: transform; }

.cs-body { display: grid; grid-template-columns: 220px 1fr; gap: 64px; padding-top: 96px; padding-bottom: 96px; }
.toc { position: sticky; top: 128px; align-self: start; list-style: none; margin: 0; padding: 0; font-size: 14px; }
.toc li { margin-bottom: 10px; }
.toc a { --h: 0; text-decoration: none; color: color-mix(in srgb, var(--ink) calc(40% + 60% * var(--h)), transparent); display: flex; gap: 10px; align-items: center; font-weight: 400; transition-property: font-weight, color; transition-duration: 90ms; transition-timing-function: ease-out; }
.toc .dot { flex: none; width: 10px; height: 10px; border-radius: 50%; border: 1.25px solid currentColor; box-sizing: border-box; background: transparent; transition: background-color .2s; }
.toc a.on .dot { background: currentColor; }

.block { margin-bottom: 96px; scroll-margin-top: 100px; }
.block h2 { font-size: clamp(40px, 4.5vw, 64px); margin-bottom: 20px; }
.block .lead { font-size: clamp(20px, 1.8vw, 26px); line-height: 1.45; max-width: 40ch; margin: 0; }
.duo { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
.duo h3 { font-size: 34px; margin-bottom: 12px; }
.duo p { margin: 0; }
.intent { list-style: none; counter-reset: i; padding: 0; margin: 0; }
.intent li { counter-increment: i; display: grid; grid-template-columns: 48px 1fr; padding: 14px 0; border-top: 1px solid var(--line); }
.intent li::before { content: counter(i, decimal-leading-zero); font-family: var(--font-display); color: var(--accent); }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 28px; }
.stats div { background: var(--surface); border-radius: var(--radius); padding: 22px; }
.stats b { font-family: var(--font-display); font-size: 48px; line-height: 1; display: block; color: var(--accent); }
.stats span { font-size: 14px; color: var(--muted); }

.work-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.work-grid figure { margin: 0; cursor: zoom-in; }
.work-grid figure.wide { grid-column: 1 / -1; }
.work-grid img { border-radius: var(--radius); width: 100%; transition: transform .6s var(--ease); }
.work-grid figure:hover img { transform: scale(.985); }
figcaption { font-size: 14px; color: var(--muted); margin-top: 10px; max-width: 60ch; }

.compare { position: relative; border-radius: var(--radius); overflow: hidden; user-select: none; cursor: ew-resize; aspect-ratio: 1; max-width: 720px; touch-action: none; }
.compare img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.compare .top { clip-path: inset(0 calc(100% - var(--pos, 50%)) 0 0); }
.compare .handle { position: absolute; top: 0; bottom: 0; left: var(--pos, 50%); width: 2px; background: #fff; transform: translateX(-1px); }
.compare .handle::after { content: "↔"; position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); width: 46px; height: 46px; border-radius: 50%; background: #fff; color: #111; display: grid; place-items: center; font-size: 18px; box-shadow: 0 4px 18px rgba(0,0,0,.2); }
.compare .lbl { position: absolute; bottom: 14px; font-size: 12px; background: rgba(0,0,0,.55); color: #fff; padding: 4px 10px; border-radius: 99px; }
.pair { display: grid; grid-template-columns: 1fr auto 1fr; gap: 16px; align-items: center; }
.pair img { border-radius: var(--radius); width: 100%; aspect-ratio: 4/3; object-fit: cover; background: #fff; cursor: zoom-in; }
.pair .arrow { font-size: 28px; color: var(--muted); }
.process > * + * { margin-top: 48px; }

.next { display: block; text-decoration: none; border-top: 1px solid var(--line); padding-top: 48px; padding-bottom: 120px; }
.next h2 { font-size: clamp(48px, 7vw, 110px); transition: color .3s, transform .5s var(--ease); }
.next:hover h2 { color: var(--accent); transform: translateX(16px); }

/* ---------- case-study theme ---------- */
main.cs { background: var(--cs-bg); color: var(--cs-ink); }
main.cs .eyebrow, main.cs .muted { color: color-mix(in srgb, var(--cs-ink) 60%, transparent); }
main.cs .cs-meta { border-color: color-mix(in srgb, var(--cs-ink) 18%, transparent); }
main.cs .awards .star { fill: var(--cs-accent); }
main.cs .intent li::before, main.cs .stats b { color: var(--cs-accent); }
main.cs .toc a { color: color-mix(in srgb, var(--cs-ink, var(--ink)) calc(40% + 60% * var(--h)), transparent); }
.paper { background: var(--cs-paper); border-radius: 6px; padding: 32px 34px; box-shadow: 0 14px 30px -20px rgba(0,0,0,.25); position: relative; }
.paper.tilt { transform: rotate(.8deg); }
.paper.rv.in.tilt { transform: rotate(.8deg); }
.block.paper { margin-bottom: 96px; }
.cs-body { padding-top: 80px; padding-bottom: 40px; }
.stats div { background: var(--cs-paper); }

/* ---------- spreads (hand-placed collages) ---------- */
.spread-wrap { padding: 0 var(--gutter); max-width: 1600px; margin: 0 auto 96px; }
.spread-title { padding: 0; margin-bottom: 20px; } .spread-title h2 { font-size: clamp(40px, 4.5vw, 64px); }
.spread { position: relative; width: 100%; aspect-ratio: 1 / var(--ratio); border-radius: calc(var(--radius) + 4px); overflow: hidden; }
.pat-grid-soft { background-image: linear-gradient(rgba(255,255,255,.12) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.12) 1px, transparent 1px); background-size: 48px 48px; }
.pat-blueprint { background-image: linear-gradient(rgba(255,255,255,.22) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.22) 1px, transparent 1px),
  linear-gradient(rgba(255,255,255,.08) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.08) 1px, transparent 1px); background-size: 120px 120px, 120px 120px, 24px 24px, 24px 24px; }
.pat-dots { background-image: radial-gradient(rgba(0,80,130,.18) 1.2px, transparent 1.2px); background-size: 18px 18px; }
.ci { position: absolute; margin: 0; transform: rotate(var(--rot)); transition: transform .5s var(--ease), box-shadow .3s; cursor: zoom-in; }
.ci img { width: 100%; display: block; }
.ci:hover { transform: rotate(var(--rot)) scale(1.02); }
.frame-none img { box-shadow: 0 16px 30px -18px rgba(0,0,0,.5); }
.frame-poster { background: #fff; padding: 1.2%; box-shadow: 0 22px 40px -22px rgba(0,0,0,.55); }
.frame-polaroid { background: #fff; padding: 4% 4% 0; box-shadow: 0 22px 40px -22px rgba(0,0,0,.55); }
.frame-polaroid figcaption { padding: 6% 2% 7%; font-size: clamp(14px, 1.3vw, 20px); color: #333; text-align: center; }
.ci figcaption { margin: 0; }
.frame-poster figcaption, .frame-none figcaption { position: absolute; left: 0; top: 100%; margin-top: 8px; font-size: clamp(14px, 1.2vw, 19px); color: inherit; white-space: nowrap; }
.spread[style*="#0099dc"] .ci figcaption, .spread[style*="#03668f"] .ci figcaption, .spread.on-dark .ci figcaption { color: #fff; }
.frame-polaroid figcaption { color: #333 !important; }
.fx { position: absolute; z-index: 2; pointer-events: none; }
.tape { width: 34%; height: 9%; min-height: 18px; top: -4%; left: 33%; background: rgba(240,232,205,.78); transform: rotate(-4deg); box-shadow: 0 1px 2px rgba(0,0,0,.08);
  -webkit-mask: linear-gradient(90deg, transparent 0 2px, #000 2px calc(100% - 2px), transparent 0), repeating-linear-gradient(0deg, #000 0 3px, transparent 3px 5px); mask-composite: add; }
.tape.t2 { left: -5%; top: -2%; width: 26%; transform: rotate(-38deg); } .tape.t3 { left: auto; right: -5%; top: auto; bottom: 2%; width: 26%; transform: rotate(-38deg); }
.clip { width: 7%; min-width: 16px; top: -9%; right: 12%; filter: drop-shadow(0 2px 1px rgba(0,0,0,.25)); }
.pin { width: 18px; height: 18px; top: -7px; left: 50%; margin-left: -9px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #ff8a7a, #c0392b 60%, #7b1d14); box-shadow: 0 4px 5px rgba(0,0,0,.35); }
.as { position: absolute; z-index: 15; pointer-events: none; }
.as-star .star { width: 100%; fill: currentColor; filter: drop-shadow(0 3px 3px rgba(0,0,0,.18)); }
.as-label { font: italic 600 clamp(14px, 1.4vw, 22px)/1 var(--font-nav); letter-spacing: .02em; }
.as-scribble { font-size: clamp(16px, 1.5vw, 24px); line-height: 1.1; }
.as-sticker { display: grid; place-items: center; width: 11%; aspect-ratio: 1; border-radius: 50%; text-align: center; font: 700 clamp(10px, .9vw, 14px)/1.1 var(--font-body); letter-spacing: .06em; text-transform: uppercase; box-shadow: 0 10px 18px -10px rgba(0,0,0,.4); }
.as-sticker .star { position: absolute; width: 22%; top: 14%; fill: currentColor; }
.as-sticker b { margin-top: 18%; padding: 0 10%; }
.cmp-wrap { margin-top: 32px; }

/* arrange mode */
body.arrange .ci { cursor: grab; outline: 1.5px dashed rgba(255,80,80,.9); outline-offset: 4px; }
body.arrange .ci.dragging { cursor: grabbing; transition: none; }
body.arrange .ci:hover { transform: rotate(var(--rot)); }

/* ---------- footer ---------- */
footer { background: var(--ink); color: var(--bg); padding: 26px 0; font-size: 13px; line-height: 1.4; }
.foot-row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 14px 40px; }
.foot-k { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; opacity: .6; }
.foot-list { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; }
.foot-list a { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; color: inherit; }
footer a { text-decoration: none; }
footer a { color: var(--bg); }

/* ---------- lightbox ---------- */
.lb { position: fixed; inset: 0; z-index: 100; background: rgba(10,10,10,.92); display: none; place-items: center; }
.lb.on { display: grid; }
.lb img { max-width: 88vw; max-height: 86vh; border-radius: var(--radius-sm); }
.lb button { position: absolute; background: none; border: 0; color: #fff; font-size: 30px; cursor: pointer; padding: 20px; }
.lb .x { top: 10px; right: 16px; } .lb .p { left: 10px; } .lb .n { right: 10px; }

/* ---------- reveal on scroll ---------- */
.rv { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.rv.in { opacity: 1; transform: none; }

/* ---------- draft flags ---------- */
.draft { background: color-mix(in srgb, #ffcc00 28%, transparent); border-bottom: 1px dashed #b38f00; }
.draft::after { content: "DRAFT"; font-family: var(--font-body); font-size: 9px; letter-spacing: .1em; vertical-align: super; margin-left: 3px; color: #8a6d00; font-weight: 700; }
body.hide-drafts .draft { background: none; border: 0; }
body.hide-drafts .draft::after { display: none; }

/* ---------- route transition ---------- */
main { animation: pageIn .6s var(--ease); }
@keyframes pageIn { from { opacity: 0; transform: translateY(12px); } }


/* ---------- work list: stacked sticky tabs (after ornament.design) ---------- */
.cases { margin-top: 40px; padding-bottom: 120px; }
.cases__top { padding-bottom: 28px; } .cases__top h2 { font-size: clamp(40px, 5vw, 80px); }
.case-item { background: var(--bg); padding: 18px 0 32px; overflow: hidden; width: 100%; top: 0; border-top: 1px solid var(--ink); }
.case-item:last-child { border-bottom: 1px solid var(--ink); }
@media (min-width: 993px) { .case-item { position: sticky; } }
.case-item__wrap { overflow: hidden; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }
.case-item__inner { display: flex; justify-content: space-between; gap: 48px; height: 420px; }
.case-item__body { display: flex; flex-direction: column; align-items: flex-start; min-width: 210px; flex: 0 0 42%; }
.case-item__text { margin-bottom: auto; }
.case-item__num { float: left; margin: 0 14px 0 0; font: italic 16px/1 var(--font-nav); color: var(--muted); padding-top: .55em; }
.case-item__title { font-size: clamp(22px, 2.2vw, 36px); text-transform: uppercase; letter-spacing: -0.01em; line-height: 1; white-space: nowrap; }
.case-item__sub { clear: left; font-size: 15px; letter-spacing: .08em; text-transform: uppercase; margin: 12px 0 0; color: var(--muted); }
.case-item__desc { font-size: 16px; line-height: 1.5; margin: 22px 0 14px; max-width: 36ch; }
.cta { display: inline-block; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink); text-decoration: none; border: 1px solid var(--ink); border-radius: 99px; padding: 9px 18px; transition: background .25s, color .25s; }
a.cta:hover { background: var(--ink); color: var(--bg); }
.cta.off { opacity: .5; border-style: dashed; }
.case-item__picture { position: relative; display: block; flex: 1; max-width: 910px; height: 100%; overflow: hidden; border-radius: var(--radius-sm); background: var(--surface); }
.case-item__picture img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease); }
a.case-item__picture { cursor: pointer; }
a.case-item__picture:hover img { transform: scale(1.04); }
.case-item__picture .placeholder { position: absolute; inset: 0; display: grid; place-items: center; color: var(--muted); font-size: 13px; letter-spacing: .1em; text-transform: uppercase;
  background: repeating-linear-gradient(-45deg, transparent 0 14px, color-mix(in srgb, var(--line) 60%, transparent) 14px 15px), var(--surface); }
.peek { position: absolute; right: 16px; bottom: 16px; background: var(--ink); color: var(--bg); font-size: 13px; letter-spacing: .06em; text-transform: uppercase; padding: 9px 16px; border-radius: 99px;
  opacity: 0; transform: translateY(8px); transition: opacity .3s, transform .3s var(--ease); }
a.case-item__picture:hover .peek { opacity: 1; transform: none; }
@media (max-width: 992px) {
  .case-item__inner { flex-direction: column-reverse; height: auto; gap: 20px; }
  .case-item__picture { height: 300px; flex: none; width: 100%; }
  .case-item__title { font-size: 28px; }
}

/* ---------- ring binding: rings and punched holes share the same y-list ---------- */

/* ---------- snap socket on the front cover (revealed once the strap unbuttons) ---------- */
.snap { position: absolute; left: 77.1%; top: 49.75%; width: 3.6%; transform: translate(-50%,-50%); aspect-ratio: 1; border-radius: 50%; z-index: 2;
  background: radial-gradient(circle at 50% 50%, #6d7074 0 22%, #c9ccd0 24% 40%, #8c8f93 44% 58%, #d9dbde 62% 74%, #9a9da1 78%);
  box-shadow: 0 1px 0 rgba(255,255,255,.55), inset 0 1px 2px rgba(0,0,0,.4), 0 0 0 2px rgba(150,100,90,.18); }
/* stud on the strap that buttons into it */

/* ---------- debossed name — script, bottom right ---------- */
.engraved { position: absolute; right: 18%; bottom: 5%; z-index: 2; pointer-events: none; line-height: 1.1;
  font-family: var(--font-script); font-size: clamp(26px, 3vw, 44px); color: #6b4038;
  text-shadow: 0 1px 0 rgba(255,255,255,.5), 0 -1px 0 rgba(70,35,25,.35); }

/* card front: "Contact info" */

/* while the cover is still over the pages, keep the hinge-side strip of the page block from sorting above it */
.book .page-r { clip-path: inset(0 0 0 var(--under, 0%)); }

/* ---------- per-project additions ---------- */
main.cs .cs-title { font-family: var(--cs-title, inherit); }
main.cs-ripple .cs-title { font-weight: 400; line-height: 1.1; }
main.cs .paper { color: var(--cs-paper-ink, inherit); }
.frame-cutout { cursor: zoom-in; }
.frame-cutout img { filter: drop-shadow(0 10px 10px rgba(0,0,0,.18)); }
.frame-cutout figcaption { position: absolute; left: 50%; top: 100%; transform: translateX(-50%); white-space: nowrap; font-size: clamp(14px, 1.2vw, 19px); }
.pat-dots-light { background-image: radial-gradient(rgba(255,255,255,.35) 1.3px, transparent 1.3px); background-size: 20px 20px; }
.pat-grid-paper { background-image: linear-gradient(rgba(60,50,40,.08) 1px, transparent 1px), linear-gradient(90deg, rgba(60,50,40,.08) 1px, transparent 1px); background-size: 28px 28px; }
.pat-grid-ink { background-image: linear-gradient(rgba(20,40,90,.07) 1px, transparent 1px), linear-gradient(90deg, rgba(20,40,90,.07) 1px, transparent 1px); background-size: 64px 64px; }
.pat-lines { background-image: linear-gradient(transparent calc(100% - 1px), rgba(40,60,120,.14) 0); background-size: 100% 30px; }
.pat-halftone { background-image: radial-gradient(rgba(226,85,122,.35) 2px, transparent 2.4px); background-size: 14px 14px; }
.pat-stars { background-image: radial-gradient(1.4px 1.4px at 20% 30%, rgba(255,255,255,.7), transparent), radial-gradient(1px 1px at 70% 80%, rgba(255,255,255,.6), transparent), radial-gradient(1.6px 1.6px at 85% 15%, rgba(255,235,160,.7), transparent), radial-gradient(1px 1px at 40% 60%, rgba(255,255,255,.5), transparent); background-size: 180px 160px; }
.pat-grain { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .5 0 0 0 0 .45 0 0 0 0 .35 0 0 0 .18 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url%28%23g%29'/%3E%3C/svg%3E"); }
.spread { color: #2a2a2a; } .spread.on-dark { color: #fff; }
.duo > :only-child { grid-column: 1 / -1; max-width: 640px; }

/* ---------- interactive flip book (no drop shadows: just a hairline edge and the gutter line) ---------- */
.fb-sec { padding: 24px 0 8px; }
.fb-wrap { display: flex; flex-direction: column; align-items: center; gap: 14px; padding: 0 var(--gutter); }
.fbook { --bw: min(980px, 84vw, calc(72vh * 2 * var(--pr))); width: var(--bw); height: calc(var(--bw) / 2 / var(--pr)); position: relative; perspective: 2800px; transition: transform .8s cubic-bezier(.45,.05,.25,1); outline: none; }
.fbook.closed-front { transform: translateX(-25%); }
.fbook.closed-back { transform: translateX(25%); }
.leaf { position: absolute; left: 50%; top: 0; width: 50%; height: 100%; transform-style: preserve-3d; transform-origin: left center; transition: transform .9s cubic-bezier(.45,.05,.25,1); cursor: zoom-in; will-change: transform; }
.leaf.edge { cursor: pointer; }
.leaf.turned { transform: rotateY(-180deg); }
.fbook.instant .leaf, .fbook.instant { transition: none !important; }
.face { position: absolute; inset: 0; backface-visibility: hidden; -webkit-backface-visibility: hidden; overflow: hidden; background-color: #fbfaf7; box-shadow: inset 0 0 0 1px rgba(0,0,0,.09); }
.face.back { transform: rotateY(180deg); }
.face.img { background-size: 200% 100%; background-repeat: no-repeat; }
.face.img.l { background-position: left center; } .face.img.r { background-position: right center; }
.face.img.full { background-size: cover; background-position: center; }
.fbook:not(.closed-front):not(.closed-back)::before { content: ""; position: absolute; left: 50%; top: 0; bottom: 0; width: 1px; background: rgba(0,0,0,.14); z-index: 999; pointer-events: none; }
.fb-ui { display: flex; align-items: center; gap: 18px; }
.fb-ui button { width: 40px; height: 40px; border-radius: 50%; border: 1px solid currentColor; background: transparent; color: inherit; cursor: pointer; font-size: 16px; }
.fb-ui button:hover { background: var(--cs-ink); color: var(--cs-bg); }
.fb-count { min-width: 220px; text-align: center; font-size: 20px; }
.fb-help { margin: 0; font-size: 12.5px; color: var(--muted); }

/* progress bar with chapter dots */
.fb-bar { position: relative; width: min(640px, 80vw); height: 4px; margin: 10px 0 6px; border-radius: 2px; background: color-mix(in srgb, var(--cs-ink) 14%, transparent); cursor: pointer; }
.fb-bar::before { content: ""; position: absolute; inset: -10px 0; }
.fb-fill { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 2px; background: var(--cs-accent); transition: width .5s var(--ease); }
.fb-dot { position: absolute; top: 50%; width: 10px; height: 10px; margin: -5px 0 0 -5px; padding: 0; border-radius: 50%; border: 2px solid var(--cs-accent); background: var(--cs-bg); cursor: pointer; transition: transform .2s; }
.fb-dot.past { background: var(--cs-accent); }
.fb-dot.mine { border-color: #d9603b; } .fb-dot.mine.past { background: #d9603b; }
.fb-dot:hover, .fb-dot:focus-visible { transform: scale(1.35); z-index: 2; outline: none; }
.fb-tip { position: absolute; left: 50%; bottom: calc(100% + 10px); transform: translateX(-50%) translateY(4px); white-space: nowrap; padding: 6px 9px; border-radius: 6px; background: var(--cs-ink); color: var(--cs-bg); font: 500 11.5px/1.2 var(--font-body); opacity: 0; pointer-events: none; transition: opacity .18s, transform .18s; }
.fb-tip::after { content: ""; position: absolute; left: 50%; top: 100%; margin-left: -5px; border: 5px solid transparent; border-top-color: var(--cs-ink); }
.fb-tip em { display: block; font-style: normal; font-size: 10px; opacity: .7; margin-top: 2px; }
.fb-dot:hover .fb-tip, .fb-dot:focus-visible .fb-tip { opacity: 1; transform: translateX(-50%) translateY(0); }

/* zoomed page */
.fb-zoom { position: fixed; inset: 0; z-index: 400; background: rgba(20,20,20,.86); display: flex; align-items: center; justify-content: center; gap: 18px; opacity: 0; pointer-events: none; transition: opacity .25s; }
.fb-zoom.on { opacity: 1; pointer-events: auto; }
.fz-page { height: min(92vh, calc(86vw / .7925)); aspect-ratio: .7925; background-color: #fff; background-repeat: no-repeat; background-size: 200% 100%; cursor: zoom-in; }
.fz-page.l { background-position: left center; } .fz-page.r { background-position: right center; } .fz-page.full { background-size: cover; background-position: center; }
.fz-page.mag { cursor: zoom-out; background-size: 400% 200%; background-position: calc(var(--mx, 50%) * .5) var(--my, 50%); }
.fz-page.r.mag { background-position: calc(50% + var(--mx, 50%) * .5) var(--my, 50%); }
.fz-page.full.mag { background-size: 200% 200%; background-position: var(--mx, 50%) var(--my, 50%); }
.fb-zoom button { width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(255,255,255,.6); background: transparent; color: #fff; font-size: 18px; cursor: pointer; flex: none; }
.fb-zoom button:hover { background: rgba(255,255,255,.15); }
.fz-x { position: absolute; top: 18px; right: 18px; font-size: 24px !important; }
.fz-c { position: absolute; bottom: 14px; left: 0; right: 0; text-align: center; color: #fff; font-size: 20px; }

/* ---------- book cards ---------- */
.bookcards { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; margin-top: 20px; }
.bookcard { background: var(--cs-paper); border-radius: 6px; padding: 22px; display: grid; grid-template-columns: 38% 1fr; gap: 20px; box-shadow: 0 14px 30px -20px rgba(0,0,0,.25); }
.bc-cover img { width: 100%; display: block; border-radius: 2px 6px 6px 2px; box-shadow: 0 14px 22px -12px rgba(0,0,0,.45); transition: transform .4s var(--ease); }
.bc-cover:hover img { transform: rotate(-2deg) scale(1.03); }
.bookcard h3 { margin: 4px 0 6px; font-size: 24px; }
.bookcard p { font-size: 14px; line-height: 1.5; margin: 0 0 10px; }
.bc-by { font-size: 14px; }
.bk-links, .cs-links { display: flex; flex-wrap: wrap; gap: 6px 14px; }
.bk-links a, .cs-links a { font-size: 13px; color: var(--cs-accent); text-decoration: none; border-bottom: 1px solid currentColor; }
.cs-links { margin-top: 22px; }
@media (max-width: 900px) { .bookcards { grid-template-columns: 1fr; } }

/* ===================== cover v3 ===================== */
.book { --lift: 2px; }
.cover { transform: translateZ(calc(var(--bt) + var(--lift))); }
.strip .frame:hover img { filter: brightness(.55); }
.strip .frame:hover .frame-cap { opacity: 1; transform: none; }

/* photo-booth strips + art-curating polaroid. Layering is fixed: things that start behind stay behind and
   slide completely clear on hover instead of jumping to the front. Clicking a white border jumps to that category below. */
.strip { position: absolute; background: #f4f2ee; padding: 0 5px 5px; display: flex; flex-direction: column; gap: 5px; box-shadow: 0 12px 20px -10px rgba(0,0,0,.6); transition: transform .5s var(--ease); cursor: pointer; }
.strip-h { display: block; overflow: hidden; padding: 3px 2px 0; font-size: clamp(14px, 1.45vw, 21px); line-height: 1.15; color: #6b4038; white-space: nowrap; }
.strip-h::after { content: none; }
.strip-main { left: 38%; top: 4%; width: 18%; transform: rotate(-1.2deg); z-index: 6; }
.strip-personal { left: 52%; top: 9%; width: 16%; transform: rotate(4deg); z-index: 5; padding: 5px 5px 0; }
.strip-personal .strip-h { order: 9; padding: 0 2px 3px; text-align: right; }
.strip-personal .strip-h::after { display: none; }
.strip-personal .strip-h::before { content: none; }
.strip-personal:hover { transform: translateX(34%) rotate(5deg); }
.polaroid { position: absolute; left: 8%; top: 6%; width: 32%; z-index: 3; display: block; background: #fdfcf8; padding: 6px 6px 0; transform: rotate(-6deg); box-shadow: 0 10px 16px -8px rgba(0,0,0,.5); cursor: pointer; transition: transform .5s var(--ease); }
.pol-clip { position: absolute; left: 6%; top: -15%; width: 36%; z-index: 4; transform: rotate(-14deg); pointer-events: none; filter: drop-shadow(0 2px 2px rgba(0,0,0,.35)); }
.lace-paper { position: absolute; left: 5%; top: 1.5%; width: 56%; z-index: 2; transform: rotate(-3deg); pointer-events: none; filter: drop-shadow(0 6px 10px rgba(60,30,20,.3)); }
.cover-stars { position: absolute; inset: 0; z-index: 7; pointer-events: none; }
.cover-stars img { position: absolute; height: auto; filter: drop-shadow(0 3px 4px rgba(40,20,20,.35)); }
.cs-pink { left: 1.5%; top: 1.5%; width: 12%; transform: rotate(-8deg); }
.cs-silver1 { left: 66%; top: 2.5%; width: 8.5%; transform: rotate(6deg); }
.cs-silver2 { left: 74%; top: 4.5%; width: 10%; transform: rotate(-4deg); }
.cs-silver3 { left: 4%; top: 88%; width: 10%; transform: rotate(-10deg); }
.cs-silver4 { left: 14.5%; top: 86.5%; width: 8.5%; transform: rotate(8deg); }
.cs-blue { left: 70%; top: 75%; width: 13%; transform: rotate(10deg); }
.polaroid:hover { transform: translate(-16%, -3%) rotate(-8deg); }
.pol-img { position: relative; display: block; aspect-ratio: .86; overflow: hidden; background: #ddd; }
.pol-img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: filter .35s; }
.pol-img:hover img { filter: brightness(.55); } .pol-img:hover .frame-cap { opacity: 1; transform: none; }
.pol-cap { display: block; text-align: center; padding: 5px 0 7px; font-size: clamp(15px, 1.55vw, 22px); line-height: 1; color: #6b4038; white-space: nowrap; }

/* envelope: lower left, nothing overlaps it. Click → the business card slides out and lands beside the book */
.envelope { position: absolute; left: 5%; top: 60%; width: 36%; height: 25%; z-index: 4; cursor: pointer; transform: rotate(-3deg); outline: none; }
.env-label { position: absolute; left: 7%; bottom: 30%; font-size: clamp(18px, 2vw, 28px); line-height: 1; color: #6b4038; }
.env-to { position: absolute; left: 7%; right: 6%; bottom: 11%; font: 500 clamp(7px, .7vw, 10px)/1.2 var(--font-body); color: #6f5a54; border-top: 1px solid rgba(110,70,60,.35); padding-top: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.envelope .flap { height: 38%; }
.envelope:hover .flap, .envelope:focus-visible .flap, .envelope.out .flap { transform: rotateX(180deg); z-index: 1; transition: transform .5s var(--ease), z-index 0s .2s; }
.envelope:hover .bcard { transform: translateY(-22%); }

/* business card: everything on one side, cream card stock with paper grain */
.bcard { position: absolute; left: 6%; right: 6%; top: 8%; height: 80%; z-index: 2; transform-origin: 100% 50%; transition: transform .7s var(--ease); overflow: hidden;
  padding: 5% 6%; display: flex; flex-direction: column; color: #2a2220; font-size: 4px; line-height: 1.35; border-radius: 3px;
  background-color: #fbf8f1;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='c'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' seed='8' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .45 0 0 0 0 .38 0 0 0 0 .3 0 0 0 .16 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23c)'/%3E%3C/svg%3E"), radial-gradient(120% 90% at 30% 20%, #fffdf8, #f3eee3);
  background-size: 110px 110px, 100% 100%; box-shadow: 0 1px 0 #e9e2d2, 0 7px 14px -6px rgba(0,0,0,.45); }
.envelope.out .bcard { transform: translate(var(--cx, -120%), var(--cy, 0)) rotate(3deg) scale(var(--cs, 2)); z-index: 6; overflow: visible; }
.bcard b { font-family: var(--font-logo); font-weight: 400; font-size: 3.2em; line-height: 1.05; }
.bc-roles { color: #8a5a50; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; font-size: 1.05em; margin: .3em 0 .5em; }
.bc-quals { margin: 0 0 auto; padding-left: 1.1em; font-size: 1.25em; }
.bc-quals li { white-space: nowrap; overflow: hidden; }
.bc-contact { display: grid; grid-template-columns: 1fr 1fr; gap: .1em 1em; font-size: 1.25em; border-top: 1px solid rgba(138,90,80,.35); padding-top: .4em; }
.bc-contact a, .bc-contact span { color: #2a2220; white-space: nowrap; }
.bc-contact a { text-decoration: underline; text-decoration-color: rgba(138,90,80,.5); text-underline-offset: 2px; }
.bc-contact a:hover { color: #8a5a50; }

/* strap: sewn to the back cover's fore-edge. Hover lifts it off the snap; it folds away behind the back cover once the book opens */
.strap3d { position: absolute; left: 100%; top: 43.8%; width: 0; height: 13.6%; transform-style: preserve-3d; z-index: 6; cursor: pointer; outline: none; }
.strap-side { position: absolute; left: 0; top: 0; height: 100%; width: calc(var(--bt) + var(--lift) + var(--ct) + 2px); transform-origin: 0 50%; transform: rotateY(var(--sa, -90deg)); transform-style: preserve-3d; background: #e6c5bc; box-shadow: inset 0 0 0 1.5px #d4aca1; transition: transform .35s var(--ease); }
.strap-flap { position: absolute; left: 100%; top: 0; height: 100%; width: calc(var(--bw) * .277); transform-origin: 0 50%; transform: rotateY(var(--fa, -90deg)); transform-style: preserve-3d; transition: transform .35s var(--ease); }
.strap3d.tucked { visibility: hidden; }
.sf { position: absolute; inset: 0; border-radius: 0 6px 6px 0; backface-visibility: hidden; -webkit-backface-visibility: hidden; }
.sf-top { transform: rotateY(180deg); background: url(img/notebook-tab.png) center / 100% 100% no-repeat; border-radius: 0 !important; filter: drop-shadow(-2px 3px 3px rgba(80,40,30,.3)); }
.sf-top::before { display: none; content: ""; position: absolute; inset: 5px 8px 5px 5px; border: 1.2px dashed rgba(150,110,100,.6); border-radius: 4px; }
.sf-under { background: #dcb8ae; box-shadow: inset 0 0 0 1.5px #c99f94; }
.strap-flap .stud { position: absolute; left: 12%; top: 50%; width: 9.5%; aspect-ratio: 1; transform: translate(-50%, -50%); border-radius: 50%;
  background: radial-gradient(circle at 38% 34%, #fff 0 8%, #e2e4e7 16%, #a9acb0 52%, #7d8085 78%, #5f6267); box-shadow: 0 2px 3px rgba(60,30,20,.45), inset 0 -1px 1px rgba(0,0,0,.25); }

/* right-hand contents page: one line per entry, shrinking rather than wrapping */
.cat h4 { color: #161513; border-bottom: 2px solid currentColor; }
.cat h4 a:hover { color: #5c3a33; }
.fit { white-space: nowrap; overflow: hidden; }
.cat li a.fit { display: flex; }
.cat li a > * { flex: none; }
.cat li a .cl { margin-left: auto; padding-left: 10px; font: .62em var(--font-body); color: var(--muted); }
.cat li a:hover { color: var(--cat); }
.field .hand.fit { display: block; }
.strip-h .fit { display: block; }

/* category colour bars on the stacked project tabs: one soft pastel bar at the top of each category group */
.case-item { border-top: 1px solid color-mix(in srgb, var(--cat) 35%, var(--line)); padding-top: 18px; background: var(--bg); }
.case-item.cat-first { padding-top: 0; border-top: 0; background: linear-gradient(color-mix(in srgb, var(--cat) 16%, var(--bg)) 0 30px, var(--bg) 30px); }
.case-item__cat { display: flex; align-items: center; justify-content: space-between; gap: 12px; height: 30px; margin-bottom: 14px; color: color-mix(in srgb, var(--cat) 80%, #000); font: 600 10.5px/1 var(--font-body); letter-spacing: .16em; text-transform: uppercase; white-space: nowrap; }
.case-item__cat em { font-style: normal; letter-spacing: .06em; text-transform: none; opacity: .75; font-weight: 500; }
.case-item .tags span { border-color: color-mix(in srgb, var(--cat) 45%, transparent); }
.case-item .cta { color: var(--cat); }
.cs-cat { margin: 14px 0 0; font: 500 12px/1 var(--font-body); color: var(--muted); letter-spacing: .04em; }
.cs-cat span { display: inline-block; padding: 5px 9px 4px; border-radius: 3px; background: color-mix(in srgb, var(--cat) 18%, #fff); color: color-mix(in srgb, var(--cat) 80%, #000); font-weight: 600; letter-spacing: .14em; text-transform: uppercase; font-size: 10.5px; margin-right: 4px; }

/* ---------- writing sits on the ruled lines (26px rule; +5px so baselines rest just above each line) ---------- */
.page-r, .lining { --rule: 26px; line-height: var(--rule); }
.page-r { padding: calc(var(--rule) * 2 + 5px) 8% var(--rule) 13%; }
.page-title { margin: 0; height: calc(var(--rule) * 2); padding-top: var(--rule); line-height: var(--rule); font-size: clamp(24px, 2.3vw, 31px); box-sizing: border-box; }
.cats { gap: var(--rule); }
.cat h4 { margin: 0; padding: 0; height: var(--rule); line-height: var(--rule); border: 0; font-size: 10.5px;
  background: linear-gradient(transparent 19px, currentColor 19px 21px, transparent 21px); }
.cat h4 a { align-items: baseline; height: var(--rule); }
.cat li a { padding: 0; border: 0; height: var(--rule); line-height: var(--rule); font-size: clamp(14px, 1.2vw, 17px); align-items: baseline; }
.cat li a .cl { font-size: 10.5px; }
.lining { padding: calc(var(--rule) * 2 + 5px) 10% var(--rule) 9%; }
.sheet-kicker { line-height: var(--rule); height: var(--rule); font-size: 10.5px; }
.sheet-name { margin: 0; height: calc(var(--rule) * 2); padding-top: var(--rule); line-height: var(--rule); font-size: clamp(24px, 2.3vw, 31px); box-sizing: border-box; }
.form { display: flex; flex-wrap: wrap; border: 0; margin-top: var(--rule); }
.field { width: 100%; height: var(--rule); padding: 0; border: 0 !important; display: flex; align-items: baseline; gap: 8px; }
.field.half { width: 50%; } .field.half + .field.half { padding-left: 10px; }
.field label { display: inline; flex: none; margin: 0; font: 600 8px/1 var(--font-body); letter-spacing: .1em; }
.field .hand { flex: none; font-size: clamp(14px, 1.2vw, 17px); line-height: var(--rule); }
.page-foot { margin-top: var(--rule); padding: 0; align-items: flex-start; gap: 16px; }
.stamp { width: calc(var(--rule) * 4.2); height: calc(var(--rule) * 3.15); margin-top: -2px; }
.socials { gap: 0; font-size: 13px; line-height: var(--rule); }
.socials li { height: var(--rule); }

/* same hover highlight as the project links: nudge right + accent colour */
.socials a, .bc-contact a { display: inline-block; color: #222; text-decoration: none; transition: transform .3s var(--ease), color .3s; }
.socials a:hover, .bc-contact a:hover { transform: translateX(6px); color: #8a5a50; }
.cat li a { transition: padding .3s var(--ease), color .3s; }
.cat h4 a { transform: translateY(-4px); }
.page-title, .sheet-name { line-height: 22px; }
/* shrink-to-fit rows: children sized in em so the whole row scales together */
.field { font-size: clamp(14px, 1.2vw, 17px); }
.field label { font-size: .5em; } .field .hand { font-size: 1em; }
.cat li a { font-size: clamp(14px, 1.2vw, 17px); } .cat li a .cl { font-size: .62em; }
.bcard { font-size: 4.6px; } .bc-quals { margin-bottom: .6em; } .bcard { justify-content: space-between; }
.draft::after { line-height: 0; vertical-align: 0.6em; } .field, .cat li a { overflow: hidden; }
.intent.bullets li { grid-template-columns: 22px 1fr; } .intent.bullets li::before { content: "•"; font-size: 1.3em; line-height: 1; }

/* prev / next projects */
.pnav { display: flex; flex-direction: column; align-items: center; gap: 28px; border-top: 1px solid var(--line); padding-top: 48px; padding-bottom: 52px; }
.pnav-row { width: 100%; display: grid; grid-template-columns: 1fr auto 1fr; align-items: end; gap: 40px; }
.pnav .pv { justify-self: start; } .pnav .nx { justify-self: end; }
.pnav-cur { font-family: var(--font-display); font-size: 22px; font-weight: 700; white-space: nowrap; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 6px; }
.pill { padding: 9px 18px; border: 1px solid currentColor; border-radius: 30px; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; white-space: nowrap; text-decoration: none; color: inherit; opacity: .75; transition: opacity .2s; }
.pill:hover { opacity: 1; }
@media (max-width: 800px) { .pnav-row { grid-template-columns: 1fr; justify-items: center; } .pnav .pv, .pnav .nx { justify-self: center; } }

/* real notebook photo carries its own tab + snap */
.cover-front > .snap, .strap-flap .stud { display: none; }

/* open spread uses the real open-binder photo (open book.jpg) on a notebook-pink inner cover */
.cover-inside { background: #d6969f url(img/openbook-left.jpg) right center / cover no-repeat; box-shadow: none; }
.book > .back { background-color: #d6969f; }
.lining { inset: 0; background: transparent; border-radius: 0; padding: calc(12.4% + 21px) 9% calc(11% + 6px) 14%; }
.page-r { inset: 0; background: #d6969f url(img/openbook-right.jpg) left center / cover no-repeat; box-shadow: none; border-radius: 0 16px 16px 0; padding: calc(12.4% + 21px) 15% calc(11% + 6px) 10%; }

/* transparent doodles: no frame, no shadow */
.frame-doodle img { box-shadow: none; background: transparent; }
.frame-doodle figcaption { position: absolute; left: 0; right: 0; top: 100%; margin-top: 6px; text-align: center; font-size: clamp(14px, 1.2vw, 19px); color: inherit; white-space: nowrap; }

.case-item__picture video { display: block; width: 100%; height: 100%; object-fit: cover; background: #0099dc; }

/* ---------- OpenArt assets: clean cover, real strap and snap stud ---------- */
.leather { background-image: url(img/pink-notebook-cover-clean.webp); }
.cover-front > .snap { display: block; left: 83.5%; top: 50.7%; background: url(img/snap-stud.png) center / contain no-repeat; box-shadow: 0 1px 2px rgba(60,30,20,.35); width: 3.4%; }
.sf-top { background-image: url(img/strap-tab.png); background-size: 100% 100%; }
.sf-under { background: url(img/strap-tab-under.png) center / 100% 100% no-repeat; box-shadow: none; border-radius: 0; }
.strap-side { background: url(img/strap-side.png) center / 100% 100%; box-shadow: none; }

/* ---------- open book: each category is a vintage label sticker; clicking anywhere on it goes to that category ---------- */
.page-r .cats { gap: 8px; }
.cat.sticker { --rule: 22px; display: block; position: relative; text-decoration: none; color: inherit; cursor: pointer; margin: 0 -14px; padding: 13px 26px 11px;
  background: center / 100% 100% no-repeat; filter: drop-shadow(0 2px 2px rgba(70, 35, 30, .22)); transform: rotate(var(--tilt, 0deg)); transition: transform .3s var(--ease), filter .3s; }
.cat.sticker:hover, .cat.sticker:focus-visible { transform: rotate(var(--tilt, 0deg)) translateY(-2px); filter: drop-shadow(0 6px 6px rgba(70, 35, 30, .3)); outline: none; }
.cat.st-ad-campaigns { background-image: url(img/sticker-ad.webp); --tilt: -.7deg; }
.cat.st-commissions { background-image: url(img/sticker-com.webp); --tilt: .5deg; padding: 15px 30px 13px; }
.cat.st-art-curating { background-image: url(img/sticker-art.webp); --tilt: -.4deg; padding: 16px 40px 14px; }
.cat.st-personal-work { background-image: url(img/sticker-per.webp); --tilt: .8deg; }
.cat.sticker h4 { height: var(--rule); line-height: var(--rule); border: 0; }
.cat.sticker h4 > .fit { display: flex; align-items: baseline; gap: 6px; height: var(--rule); }
.cat.sticker:hover h4 .cat-go { transform: translateX(4px); }
.cat.sticker li > .row { display: flex; align-items: baseline; gap: 8px; height: var(--rule); line-height: var(--rule); overflow: hidden; color: #222; font-family: var(--font-logo); font-size: clamp(13px, 1.1vw, 16px); }
.cat.sticker li > .row > * { flex: none; }
.cat.sticker li .cl { margin-left: auto; padding-left: 10px; font: .62em var(--font-body); color: #6d5a55; }

/* header links in bold */
.nav ul a { font-weight: 700; }

/* SPOTS doodles jiggle on hover, like iOS icons being moved */
@keyframes jiggle { 0% { transform: rotate(-2.2deg); } 50% { transform: rotate(2.2deg); } 100% { transform: rotate(-2.2deg); } }
.frame-doodle:hover img { animation: jiggle .26s ease-in-out infinite; transform-origin: 50% 70%; }
.cat.sticker h4 { background: linear-gradient(transparent 20px, currentColor 20px 21px, transparent 21px); }
.cat.sticker li > .row.fit { white-space: nowrap; }
.cat.sticker li > .row.wrap { height: auto; line-height: 1.2; padding: 3px 0; white-space: normal; }
.cat.sticker li > .row.wrap .t { flex: 1 1 auto; min-width: 0; }
.cat.st-commissions { padding: 16px 38px 14px; }

/* ===== business card is lifted straight up out of the pocket, flipped over, then laid on top of the envelope ===== */
.envelope { perspective: 900px; }
.envelope.lift, .envelope.out { z-index: 9; }
.bcard { overflow: visible; padding: 0; background: none !important; box-shadow: none; transform-style: preserve-3d; transform-origin: 50% 50%;
  transition: transform .55s cubic-bezier(.3,.7,.2,1), z-index 0s .55s; }
.bc-side { position: absolute; inset: 0; border-radius: 3px; backface-visibility: hidden; -webkit-backface-visibility: hidden; overflow: hidden;
  background-color: #fbf8f1; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='c'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' seed='8' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .45 0 0 0 0 .38 0 0 0 0 .3 0 0 0 .16 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23c)'/%3E%3C/svg%3E");
  background-size: 110px 110px; box-shadow: 0 1px 0 #e9e2d2, 0 7px 14px -6px rgba(0,0,0,.45); }
.bc-front { transform: rotateY(180deg); padding: 5% 6%; display: flex; flex-direction: column; justify-content: space-between; }
.bc-back { display: grid; place-items: center; }
.bc-mark .star { width: 14px; height: 14px; fill: #c9a49b; }
.envelope:hover .bcard { transform: translateY(-22%); }
.envelope.lift .bcard { transform: translateY(-96%); }
.envelope.out .bcard { transform: translate(var(--lx, 0px), var(--ly, 0)) rotateY(180deg) rotate(-2deg) scale(var(--cs, 2)); z-index: 6; transition: transform .7s cubic-bezier(.3,.7,.2,1), z-index 0s 0s; }
.env-to { display: none; }

/* ===== open book — pink leather inner cover with a stitched edge; lined binder pages fill almost all of it ===== */
.cover-inside, .book > .back { background: #d6969f url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='l'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='1.1' numOctaves='3' seed='4' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .35 0 0 0 0 .15 0 0 0 0 .18 0 0 0 .22 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23l)'/%3E%3C/svg%3E") 0 0 / 160px 160px; box-shadow: inset 0 0 0 1px rgba(120,60,70,.25); }
.cover-inside::before, .book > .back::before { content: ""; position: absolute; inset: 1.4%; border: 1.6px dashed rgba(255,236,240,.8); border-radius: inherit; pointer-events: none; z-index: 0; }
.cover-inside::before { border-radius: 12px 3px 3px 12px; } .book > .back::before { border-radius: 3px 12px 12px 3px; }
/* the pages: the real binder photo, cropped to its paper and rings, with blue rules on top */
.lining { inset: 3.4% 0 3.4% 3.6%; border-radius: 3px 0 0 3px; z-index: 1;
  background: linear-gradient(rgba(70,100,160,.0) 0, rgba(70,100,160,.0) 100%),
    url(img/pages-left.jpg) right center / 100% 100% no-repeat;
  background-color: #f2f0ee; }
.page-r { inset: 3.4% 3.6% 3.4% 0; border-radius: 0 3px 3px 0; background: url(img/pages-right.jpg) left center / 100% 100% no-repeat; background-color: #f2f0ee; box-shadow: 1px 1px 0 #e3e0dc, 2px 2px 0 #f4f2ef, 3px 3px 0 #e0ddd8, 4px 4px 6px -2px rgba(0,0,0,.2); }
.lining::before, .page-r::before { content: ""; position: absolute; top: 0; bottom: 0; pointer-events: none; z-index: 0;
  background: linear-gradient(transparent calc(var(--rule) - 1px), rgba(80,115,175,.28) calc(var(--rule) - 1px)) 0 var(--rule-off, 0px) / 100% var(--rule) repeat-y; }
.lining::before { left: 0; right: 13%; }
.page-r::before { left: 13%; right: 0; }
.lining > *, .page-r > * { position: relative; z-index: 1; }
.lining { padding: calc(var(--rule) * 2 + 5px) 15% var(--rule) 7%; }
.page-r { padding: calc(var(--rule) * 2 + 5px) 8% var(--rule) 16%; }
/* selected-work list: tags never touch the View project button */
.case-item__body .tags { margin-bottom: 18px; }

/* ===== case-study contents list gets its own lane, flush to the left edge, with nothing else in it ===== */
.cs-lanes { display: grid; grid-template-columns: 210px minmax(0, 1fr); }
.toc-lane { padding: 80px 16px 0 28px; border-right: 1px solid color-mix(in srgb, var(--cs-ink, var(--ink)) 12%, transparent); }
.toc-lane .toc { position: sticky; top: 128px; }
.cs-main { min-width: 0; }
.cs-body { display: block; }
@media (max-width: 900px) { .cs-lanes { display: block; } .toc-lane { display: none; } }
.book:not(.covered) .cv-edge { opacity: 0; }

/* headings in Alte Haas Grotesk Bold, as on the design canvas */
h1, h2, h3, .cs-title, .page-title, .case-item__title, .spread-title h2, .block h2, .paper h3 { font-family: "Alte Haas Grotesk", "Helvetica Neue", Arial, sans-serif; font-weight: 700; letter-spacing: -0.01em; }
/* no draft highlighting anywhere */
.draft { background: none !important; border: 0 !important; padding: 0 !important; }
.draft::after { display: none !important; }
/* Alterna monsters wiggle on hover, like the SPOTS doodles */
.cs-alterna #s-process .ci:hover img { animation: jiggle .26s ease-in-out infinite; transform-origin: 50% 70%; }


/* ===== case pages copied from the design canvas ===== */
main.cv { display: block; }
.cv .pnav { background: transparent; }
.cv-zoom { position: fixed; inset: 0; z-index: 200; display: none; align-items: center; justify-content: center; padding: 40px; background: rgba(10,10,12,.9); cursor: zoom-out; }
.cv-zoom.on { display: flex; }
.cv-zoom img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 10px; }
.cv-zoom button { position: absolute; top: 20px; right: 20px; width: 44px; height: 44px; border-radius: 50%; border: 0; background: #fff; font-size: 24px; cursor: pointer; }
.cv .snd { position: absolute; right: 14px; bottom: 14px; width: 40px; height: 40px; border-radius: 50%; border: 0; background: rgba(11,42,61,.72); color: #fff; display: flex; align-items: center; justify-content: center; cursor: pointer; padding: 0; z-index: 5; }
.cv .zicon { position: absolute; top: 50%; left: 50%; width: 56px; height: 56px; margin: -28px 0 0 -28px; border-radius: 50%; background: rgba(20,20,30,.75); color: #fff; display: flex; align-items: center; justify-content: center; opacity: 0; transition: opacity .2s; pointer-events: none; }
.cv .slot-zoom:hover .zicon { opacity: 1; }
.cv .slot-side { cursor: pointer; } .cv .slot-zoom { cursor: zoom-in; }
.cv .fb-sec { margin: 0; }
/* catalogue */
.cv [style*="Caveat"],.cv [style*="Pinyon Script"]{font-family:'Biro Script','Caveat',cursive !important}
.cv-catalogue h1,.cv-catalogue h2,.cv-catalogue h3,.cv-catalogue .head{font-family:'Alte Haas Grotesk',var(--head),'Inter',system-ui,sans-serif !important;letter-spacing:-0.01em}
/* vmg */
.cv [style*="Caveat"],.cv [style*="Pinyon Script"]{font-family:'Biro Script','Caveat',cursive !important}
.cv-vmg h1,.cv-vmg h2,.cv-vmg h3,.cv-vmg .head{font-family:'Alte Haas Grotesk',var(--head),'Inter',system-ui,sans-serif !important;letter-spacing:-0.01em}
.cv-vmg .zoomable{cursor:zoom-in}
/* personal */
.cv [style*="Caveat"],.cv [style*="Pinyon Script"]{font-family:'Biro Script','Caveat',cursive !important}
.cv-personal h1,.cv-personal h2,.cv-personal h3,.cv-personal .head{font-family:'Alte Haas Grotesk',var(--head),'Inter',system-ui,sans-serif !important;letter-spacing:-0.01em}
/* ripple */
.cv [style*="Caveat"],.cv [style*="Pinyon Script"]{font-family:'Biro Script','Caveat',cursive !important}
.cv-ripple h1,.cv-ripple h2,.cv-ripple h3,.cv-ripple .head{font-family:'Alte Haas Grotesk',var(--head),'Inter',system-ui,sans-serif !important;letter-spacing:-0.01em}
.cv-ripple h1,.cv-ripple h2,.cv-ripple h3,.cv-ripple .hb{font-weight:700 !important}
.cv-ripple .cover-z{cursor:zoom-in}
.cv-ripple .slot-side{cursor:pointer}
.cv-ripple .slot-zoom{cursor:zoom-in}
.cv-ripple .zicon{position:absolute;top:50%;left:50%;width:56px;height:56px;margin:-28px 0 0 -28px;border-radius:50%;background:rgba(29,24,86,.78);color:#ffffff;display:flex;align-items:center;justify-content:center;opacity:0;transition:opacity .2s ease;pointer-events:none}
.cv-ripple .slot-zoom:hover .zicon{opacity:1}
/* memento */
.cv [style*="Caveat"],.cv [style*="Pinyon Script"]{font-family:'Biro Script','Caveat',cursive !important}
.cv-memento h1,.cv-memento h2,.cv-memento h3,.cv-memento .head{font-family:'Alte Haas Grotesk',var(--head),'Inter',system-ui,sans-serif !important;letter-spacing:-0.01em}
.cv-memento .slot-side{cursor:pointer}
.cv-memento .slot-zoom{cursor:zoom-in}
.cv-memento .zicon{position:absolute;top:50%;left:50%;width:56px;height:56px;margin:-28px 0 0 -28px;border-radius:50%;background:rgba(31,27,46,.8);color:#ffffff;display:flex;align-items:center;justify-content:center;opacity:0;transition:opacity .2s ease;pointer-events:none}
.cv-memento .slot-zoom:hover .zicon{opacity:1}
/* spots */
@keyframes jiggle{0%{transform:rotate(-2.2deg)}50%{transform:rotate(2.2deg)}100%{transform:rotate(-2.2deg)}}
.cv-spots section[aria-label="Character family"] figure:hover img{animation:jiggle .26s ease-in-out infinite;transform-origin:50% 70%}
.cv [style*="Caveat"],.cv [style*="Pinyon Script"]{font-family:'Biro Script','Caveat',cursive !important}
.cv-spots h1,.cv-spots h2,.cv-spots h3,.cv-spots .head{font-family:'Alte Haas Grotesk',var(--head),'Inter',system-ui,sans-serif !important;letter-spacing:-0.01em}
.cv-spots .spots-bg{background-image:url("img/cv/af84981798f9bfd6.svg");background-size:100% auto;background-repeat:no-repeat;background-position:top center}
/* symcor */
.cv [style*="Caveat"],.cv [style*="Pinyon Script"]{font-family:'Biro Script','Caveat',cursive !important}
.cv-symcor h1,.cv-symcor h2,.cv-symcor h3,.cv-symcor .head{font-family:'Alte Haas Grotesk',var(--head),'Inter',system-ui,sans-serif !important;letter-spacing:-0.01em}
.cv-symcor .award{position:relative}
.cv-symcor .award .about{position:absolute;left:0;top:calc(100% + 8px);width:320px;padding:12px 14px;background:#0b2a3d;color:#ffffff;border-radius:8px;box-shadow:0 16px 32px -14px rgba(0,0,0,.5);font-size:12px;line-height:1.5;opacity:0;visibility:hidden;transform:translateY(-4px);transition:opacity .2s ease,transform .2s ease,visibility .2s;z-index:30;pointer-events:none}
.cv-symcor .award .about::before{content:"";position:absolute;left:18px;top:-6px;border-left:6px solid transparent;border-right:6px solid transparent;border-bottom:6px solid #0b2a3d}
.cv-symcor .award:hover .about,.cv-symcor .award:focus .about,.cv-symcor .award:focus-within .about{opacity:1;visibility:visible;transform:none}
.cv-symcor .slot-side{cursor:pointer}
.cv-symcor .slot-zoom{cursor:zoom-in}
.cv-symcor .snd{position:absolute;right:14px;bottom:14px;width:40px;height:40px;border-radius:50%;border:0;background:rgba(11,42,61,.72);color:#ffffff;display:flex;align-items:center;justify-content:center;cursor:pointer;padding:0;z-index:5}
.cv-symcor .snd:hover{background:rgba(11,42,61,.92)}
.cv-symcor .zicon{position:absolute;top:50%;left:50%;width:56px;height:56px;margin:-28px 0 0 -28px;border-radius:50%;background:rgba(11,42,61,.78);color:#ffffff;display:flex;align-items:center;justify-content:center;opacity:0;transition:opacity .2s ease;pointer-events:none}
.cv-symcor .slot-zoom:hover .zicon{opacity:1}
/* alterna */
.cv [style*="Caveat"],.cv [style*="Pinyon Script"]{font-family:'Biro Script','Caveat',cursive !important}
.cv-alterna h1,.cv-alterna h2,.cv-alterna h3,.cv-alterna .head{font-family:'Alte Haas Grotesk',var(--head),'Inter',system-ui,sans-serif !important;letter-spacing:-0.01em}
@keyframes jiggle{0%{transform:rotate(-2.2deg)}50%{transform:rotate(2.2deg)}100%{transform:rotate(-2.2deg)}}
.cv-alterna section:has(h2[data-k="caseStudies.alterna.processTitle"]) figure:hover img{animation:jiggle .26s ease-in-out infinite;transform-origin:50% 70%}

/* canvas carousels: centre item shows the zoom icon; nothing fades or dims while sliding */
.cv .cv-slot { cursor: pointer; }
.cv .cv-slot.is-cur { cursor: zoom-in; }
.cv .cv-slot .zicon { display: flex; }
.cv .cv-slot:not(.is-cur) .zicon { display: none; }
.cv .cv-slot.is-cur:hover .zicon { opacity: 1; }

.pnb { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.pnav .pnb.nx { align-items: flex-end; }
.pnb-name { font-family: var(--font-display); font-size: 15px; font-weight: 700; }
.pbtn { padding: 13px 26px; border: 2px solid var(--pbi, currentColor); border-radius: 30px; background: var(--pbi, currentColor); color: var(--pbg, #fff); font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; white-space: nowrap; text-decoration: none; transition: transform .2s; }
.pbtn:hover { transform: translateY(-2px); }
.pill.dull { padding: 7px 14px; font-size: 11px; font-weight: 400; opacity: .4; }
.pill.dull:hover { opacity: .7; }
@media (max-width: 800px) { .pnb, .pnav .pnb.nx { align-items: center; } }
.cv-symcor .pnav{--pbi:#0b2a3d;--pbg:#e9f4fb}.cv-alterna .pnav{--pbi:#3b3532;--pbg:#f4f1ec}.cv-spots .pnav{--pbi:#1b1a18;--pbg:#efe6d8}.cv-vmg .pnav{--pbi:#f3ead7;--pbg:#111110}.cv-ripple .pnav{--pbi:#1d1856;--pbg:#ecebff}.cv-catalogue .pnav{--pbi:#1a1a1a;--pbg:#f3f2ef}.cv-memento .pnav{--pbi:#f4ecf7;--pbg:#1f1b2e}.cv-personal .pnav{--pbi:#3a2416;--pbg:#f6e3b0}
.cv-memento .pnav{background:#1f1b2e;color:#f4ecf7;box-shadow:0 0 0 100vmax #1f1b2e;clip-path:inset(0 -100vmax);border-top-color:transparent}
.cv-vmg .pnav{background:#111110;color:#f3ead7;box-shadow:0 0 0 100vmax #111110;clip-path:inset(0 -100vmax);border-top-color:transparent}
/* stickers: names only, every line kept inside the printed border */
.cat.sticker { margin: 0 -10px; }
.cat.st-ad-campaigns { padding: 16px 30px 16px; }
.cat.st-commissions { padding: 22px 56px 22px; }
.cat.st-art-curating { padding: 22px 52px 20px; }
.cat.st-personal-work { padding: 18px 30px 18px; }
.cat.sticker li > .row { display: block; white-space: nowrap; overflow: hidden; }
.cat.sticker li > .row .t { display: inline; }
/* envelope: the flap is fully open before the card moves, stays open while the card is out,
   and only closes once the card is back down inside the pocket */
.envelope .flap { transition: transform .45s var(--ease) .45s, z-index 0s .68s; }
.envelope:hover .flap, .envelope:focus-visible .flap, .envelope.held .flap { transform: rotateX(180deg); z-index: 1; transition: transform .45s var(--ease) 0s, z-index 0s .22s; }
.envelope:not(.held):hover .bcard { transform: translateY(-22%); transition: transform .45s cubic-bezier(.3,.7,.2,1) .3s, z-index 0s .55s; }
.envelope.held:not(.lift) .bcard { transform: none; }
/* ===== home footer: a proper landing spot for "Contact" ===== */
footer.foot-big { position: relative; overflow: hidden; padding: 0; min-height: min(640px, 82vh); display: flex; align-items: stretch; }
.foot-big .fb { position: relative; z-index: 1; display: flex; flex-direction: column; justify-content: center; gap: 22px; width: 100%; padding-top: 96px; padding-bottom: 28px; }
.foot-big .foot-k { margin: 0; }
.fb-head { font-family: var(--font-logo); font-weight: 400; font-size: clamp(40px, 5.4vw, 78px); line-height: 1.04; letter-spacing: -0.015em; color: var(--bg); max-width: 14ch; }
.fb-mail { align-self: flex-start; font-family: var(--font-logo); font-size: clamp(20px, 2.2vw, 32px); color: var(--bg); text-decoration: none; background: linear-gradient(currentColor, currentColor) 0 100% / 0 1.5px no-repeat; padding-bottom: 4px; transition: background-size .45s var(--ease); }
.fb-mail span { display: inline-block; transition: transform .3s var(--ease); }
.fb-mail:hover { background-size: 100% 1.5px; }
.fb-mail:hover span { transform: translateX(6px); }
.fb-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 40px; margin-top: 18px; padding-top: 22px; border-top: 1px solid rgba(245,241,234,.18); }
.foot-big .foot-list a { padding: 9px 16px; border: 1px solid rgba(245,241,234,.3); border-radius: 30px; transition: background .25s, color .25s; }
.foot-big .foot-list a:hover { background: var(--bg); color: var(--ink); }
.fb-stamp { color: var(--bg); width: 112px; height: 84px; transform: rotate(-6deg); opacity: .9; }
.fb-stamp:hover { transform: rotate(-2deg) scale(1.06); opacity: 1; }
.fb-base { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin-top: auto; padding-top: 40px; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; opacity: .55; }
.fb-base a { display: inline-flex; align-items: center; gap: 8px; color: var(--bg); }
.fb-base .star { width: 12px; height: 12px; fill: currentColor; transition: transform .5s var(--ease); }
.fb-base a:hover .star { transform: rotate(144deg); }
.fstar { position: absolute; z-index: 0; pointer-events: auto; transform: rotate(var(--r)); filter: drop-shadow(0 4px 8px rgba(0,0,0,.45)); animation: fstar 5.5s ease-in-out infinite; transition: transform .6s var(--ease); }
.fstar:hover { transform: rotate(calc(var(--r) + 72deg)) scale(1.15); }
@keyframes fstar { 0%, 100% { opacity: .95; translate: 0 0; } 50% { opacity: .55; translate: 0 -6px; } }
@media (prefers-reduced-motion: reduce) { .fstar { animation: none; } }
@media (max-width: 800px) { .fstar { display: none; } .fstar:nth-child(2), .fstar:nth-child(4) { display: block; width: 34px !important; } .fb-row { flex-direction: column; align-items: flex-start; } }
.foot-big .foot-list .fb-phone { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; padding: 9px 16px; border: 1px solid rgba(245,241,234,.3); border-radius: 30px; cursor: text; user-select: all; }
/* video carousels: only the centre clip plays; the clips either side wait, dimmed */
.cv .cv-slot video { transition: filter .6s cubic-bezier(.45,0,.2,1); }
.cv .cv-slot:not(.is-cur) video { filter: brightness(.38) saturate(.7); }
.socials li > span { color: #2b2b2b; }
/* SPOTS: the bean walks along the rule under the title every few seconds */
.bean-track { position: absolute; left: -80px; right: -80px; bottom: 100%; height: 80px; overflow: hidden; pointer-events: none; z-index: 1; }
.bean-track img { position: absolute; bottom: -4px; left: -90px; height: 74px; width: auto; animation: beanwalk 24s linear 1.2s infinite; }
@keyframes beanwalk { 0% { left: -90px; } 85% { left: calc(100% + 10px); } 100% { left: calc(100% + 10px); } }
@media (prefers-reduced-motion: reduce) { .bean-track { display: none; } }
/* Ad Campaigns strip: label at the foot, and a small lift on hover like the other two */
.strip-main { padding: 5px 5px 0; }
.strip-main .strip-h { order: 9; padding: 0 2px 3px; }
.strip-main:hover { transform: translateY(-3%) rotate(-2.4deg); }
/* two-line form fields (expertise, degrees): two ruled lines tall, text sits on the rules */
.field.two { height: calc(var(--rule) * 2); align-items: baseline; }
.field.two .hand { white-space: nowrap; }
/* SPOTS row in the work list: the bean walks across the picture, level with the wordmark */
.bean-pic { position: absolute; left: 0; right: 0; pointer-events: none; z-index: 2; }
.bean-pic img { position: absolute; top: 0; height: 100%; width: auto !important; object-fit: contain; left: calc(-1 * var(--bw)); animation: beanpic var(--dur, 8s) linear infinite; animation-play-state: paused; transition: none !important; }
.bean-pic.go img { animation-play-state: running; }
a.case-item__picture:hover .bean-pic img { transform: none; }
@keyframes beanpic { 0% { left: calc(-1 * var(--bw)); } 100% { left: 100%; } }
@media (prefers-reduced-motion: reduce) { .bean-pic { display: none; } }
/* project pages: contents list in its own lane on the left, as in earlier builds */
.cv-lanes { display: grid; grid-template-columns: 210px minmax(0, 1fr); }
.cv .toc-lane { padding: 150px 16px 40px 28px; font-family: Inter, system-ui, sans-serif; }
.cv .toc a { color: color-mix(in srgb, var(--cs-ink, var(--ink)) calc(40% + 60% * var(--h)), transparent); }
.cv-fit { min-width: 0; }
@media (max-width: 900px) { .cv-lanes { display: block; } .cv .toc-lane { display: none; } }

/* ---------- phones and small tablets (review 1–3) ---------- */
@media (max-width: 700px) {
  .nav .nav-in { height: 68px; padding: 0 14px; }
  .nav .logo { font-size: clamp(34px, 10.5vw, 92px); }
  .nav ul { font-size: 14px; gap: 12px; }
  .stage-sticky { top: 68px; height: calc(100vh - 68px); min-height: 0; }
}
@media (max-width: 900px) {
  .stage { height: 300vh; }
  .book-wrap { --bh: min(calc(100svh - 104px - 90px), 660px); }
}
/* touch screens: a small hint that the envelope opens */
.env-tap { display: none; }
@media (hover: none) {
  .env-tap { display: inline-block; position: absolute; right: 8%; bottom: 10%; z-index: 3; font: italic 600 12px/1 var(--font-nav); color: #6b3d45; background: rgba(255,255,255,.75); border-radius: 999px; padding: 5px 9px; pointer-events: none; animation: envtap 2.4s ease-in-out infinite; }
  .envelope.out .env-tap, .envelope.lift .env-tap { display: none; }
}
@keyframes envtap { 0%, 100% { transform: translateY(0); opacity: .9; } 50% { transform: translateY(-3px); opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .env-tap { animation: none; } }

/* ---------- project pages on phones: one column instead of a shrunken desktop page (review 8) ---------- */
.cv.mob .cv-fit { zoom: 1 !important; overflow-x: hidden; }
.cv.mob .cv-fit * { max-width: 100%; }
.cv.mob .cv-fit section, .cv.mob .cv-fit header { padding-left: 30px !important; padding-right: 18px !important; }
.cv.mob .cv-fit section { padding-top: 40px !important; padding-bottom: 40px !important; }
.cv.mob .cv-fit [style*="padding: 0 80px"], .cv.mob .cv-fit [style*="padding: 0 120px"] { padding-left: 0 !important; padding-right: 0 !important; }
.cv.mob .cv-fit [style*="grid-template-columns"] { grid-template-columns: minmax(0, 1fr) !important; gap: 20px !important; }
.cv.mob .cv-fit [style*="grid-column"] { grid-column: auto !important; }
.cv.mob .cv-fit [style*="display: flex"]:not(.cv-track) { flex-wrap: wrap; }
.cv.mob .cv-fit [data-eqrow] { flex-direction: column; }
.cv.mob .cv-fit [data-eqrow] > * { flex: none !important; width: 100% !important; }
.cv.mob .cv-fit h1 { font-size: clamp(34px, 10vw, 48px) !important; width: auto !important; }
.cv.mob .cv-fit h2 { font-size: clamp(24px, 7vw, 34px) !important; }
.cv.mob .cv-fit [style*="font-size: 2"], .cv.mob .cv-fit [style*="font-size: 3"] { font-size: 19px !important; line-height: 1.4 !important; }
.cv.mob .cv-fit img, .cv.mob .cv-fit video { height: auto; }
.cv.mob .cv-fit .cv-slot img { height: 100% !important; }
.cv.mob .cv-fit [style*="width: "][style*="px"]:not(.cv-slot):not(.cv-track):not(button):not([style*="border-radius: 50%"]) { width: auto !important; }
.cv.mob .cv-fit [style*="min-height"] { min-height: 0 !important; }
.cv.mob .pnav { padding-left: 20px; padding-right: 20px; }
.cv.mob .cv-fit [style*="grid-template-columns: repeat("] { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
.cv.mob .cv-fit [style*="font-size: 4"]:not(h1), .cv.mob .cv-fit [style*="font-size: 5"]:not(h1), .cv.mob .cv-fit [style*="font-size: 6"]:not(h1), .cv.mob .cv-fit [style*="font-size: 7"]:not(h1), .cv.mob .cv-fit [style*="font-size: 8"]:not(h1), .cv.mob .cv-fit [style*="font-size: 9"]:not(h1) { font-size: 30px !important; line-height: 1.1 !important; }
.cv.mob .cv-fit [style*="grid-template-columns: repeat("]:not(:has(img, video)) { grid-template-columns: minmax(0, 1fr) !important; }
.cv.mob .cv-fit dl[style*="grid-template-columns: repeat("], .cv.mob .cv-fit [style*="grid-template-columns: repeat(4"]:not(:has(img, video)) { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }

/* contents lane: starts under the title's line; the line runs across the lane */
.cv .toc-lane { position: relative; padding-top: 34px; }
/* folder tab: a slim tab in the category colour, flush with the left edge; no vertical line */
.cv .toc-lane { border-right: 0; padding: 30px 0 40px 0; z-index: 3; }
.cv .toc-lane .toc { width: max-content; max-width: 186px; box-sizing: border-box; padding: 14px 18px 14px 20px; background: var(--tab-bg, #eee); color: var(--tab-ink, inherit); border-radius: 0 14px 14px 0; box-shadow: 0 10px 24px -14px rgba(0,0,0,.35); font-size: 13.5px; }
.cv .toc-lane .toc li:last-child { margin-bottom: 0; }
.cv .toc-lane .toc a { color: color-mix(in srgb, var(--tab-ink, var(--cs-ink)) calc(62% + 38% * var(--h)), transparent); }
.cv-lanes { align-items: stretch; }
/* the bean sets off as soon as the SPOTS page opens */
.bean-track img { animation-delay: -1s; }

/* ---------- phones: fixes ---------- */
/* keep the walking bean at its own size */
.cv.mob .cv-fit .bean-track { max-width: none; left: -20px; right: -20px; }
.cv.mob .cv-fit .bean-track img { height: 64px !important; max-width: none; animation-duration: 9s; animation-delay: -1.2s; }
/* round carousel buttons keep their size */
.cv.mob .cv-fit button, .cv.mob .cv-fit [style*="border-radius: 50%"] { flex: none; }
/* contents list: a small floating rail on the left; tap to open it with names */
@media (max-width: 900px) {
  .cv .toc-lane { display: block !important; position: fixed; left: 0; top: 50%; transform: translateY(-50%); z-index: 45; margin: 0 !important; padding: 0; border: 0; background: none; font-size: 13px; cursor: pointer; max-width: calc(100vw - 32px); }
  .cv .toc-lane::before { display: none; }
  .cv .toc-lane .toc { position: static; padding: 9px 8px 9px 7px; max-width: calc(100vw - 32px); }
  .cv .toc-lane.open .toc { padding: 12px 16px 12px 12px; }
  .cv .toc-lane:not(.open) .dot { width: 8px; height: 8px; }
  .cv .toc-lane:not(.open) { opacity: .88; }
  .cv .toc-lane .toc li { margin-bottom: 8px; } .cv .toc-lane .toc li:last-child { margin-bottom: 0; }
  .cv .toc-lane .toc span { display: none; }
  .cv .toc-lane.open { cursor: default; }
  .cv .toc-lane.open .toc span { display: inline; }
}
.cv { overflow-x: clip; }

/* selected work: each category band is a ribbon, repeated across the page; the name sits on a small chip */
.case-item.cat-first { background: var(--rib) left top / auto 30px repeat-x, var(--bg); }
.case-item.cat-ad-campaigns { --rib: url(img/ribbons/rib-ad.webp); }
.case-item.cat-commissions { --rib: url(img/ribbons/rib-com.webp); }
.case-item.cat-art-curating { --rib: url(img/ribbons/rib-art.webp); }
.case-item.cat-personal-work { --rib: url(img/ribbons/rib-per.webp); }
.case-item__cat > span { background: color-mix(in srgb, var(--cat) 16%, var(--bg)); padding: 5px 10px; border-radius: 3px; box-shadow: 0 1px 3px rgba(0,0,0,.18); }
/* bottom of each project page: Alte Haas Grotesk Bold */
.pnav, .pnav * { font-family: "Alte Haas Grotesk", "Helvetica Neue", Arial, sans-serif !important; font-weight: 700 !important; }

/* ribbon colours: chips are white with the ribbon colour as text; each section's buttons are outlined in it */
.case-item.cat-ad-campaigns { --rink: #dd7a7f; } .case-item.cat-commissions { --rink: #a5a04f; } .case-item.cat-art-curating { --rink: #cd3940; } .case-item.cat-personal-work { --rink: #5a344c; }
.case-item__cat > span { background: #fff; color: var(--rink); }
.case-item .cta { color: var(--rink); border: 1.5px solid var(--rink); }
.case-item .cta:hover { background: var(--rink); color: #fff; border-color: var(--rink); }

/* ---------- contents tab v3: no lane; the page runs edge to edge; a slim white tab (like the header) sits under the title line
   and sticks to the header once it reaches it; it stays on top of everything ---------- */
.cv-lanes { display: block !important; position: relative; }
.cv .toc-lane { display: block !important; position: absolute !important; left: 0; top: 0; bottom: 0; width: 0; margin: 0 !important; padding: 0 !important; border: 0 !important; transform: none !important; background: none !important; z-index: 45; }
.cv .toc-lane::before { display: none !important; }
.cv .toc-lane .toc { position: sticky !important; top: var(--navh, 104px); width: max-content; max-width: 200px; margin: 0; padding: 9px 8px 9px 7px !important; background: #fff !important; color: #222 !important; border: .5px solid #000; border-left: 0; border-radius: 0 9px 9px 0; box-shadow: 0 6px 16px -12px rgba(0,0,0,.35); font: 500 12.5px/1.2 Inter, system-ui, sans-serif; opacity: .9; transition: opacity .2s; }
.cv .toc-lane .toc li { margin: 0 0 8px; } .cv .toc-lane .toc li:last-child { margin-bottom: 0; }
.cv .toc-lane .toc a { color: color-mix(in srgb, #222 calc(45% + 55% * var(--h)), transparent) !important; gap: 8px; }
.cv .toc-lane .toc .dot { width: 7px; height: 7px; border-width: 1px; }
.cv .toc-lane .toc span { display: none !important; }
.cv .toc-lane:hover .toc, .cv .toc-lane.open .toc { opacity: 1; padding: 11px 14px 11px 9px !important; }
.cv .toc-lane:hover .toc span, .cv .toc-lane.open .toc span { display: inline !important; }
.cv .toc-lane[hidden] { display: none !important; }

/* business card: name, titles and degrees beside the resume stamp (which has its own space and pulses gently); contacts with icons underneath */
.bc-top { display: grid; grid-template-columns: minmax(0, 1fr) 21%; gap: 0 4%; align-items: start; }
.bc-id { min-width: 0; display: flex; flex-direction: column; }
.bc-quals { margin: .2em 0 0; padding-left: 1.1em; font-size: 1.12em; line-height: 1.35; }
.bc-stamp { position: static; width: 100%; height: auto; aspect-ratio: 4 / 3; margin-top: .3em; padding: 0; border: 0; background: none; color: #b0413e; cursor: pointer; animation: stamppulse 2.6s ease-in-out infinite; transform: rotate(-8deg); }
.bc-stamp svg { width: 100%; height: 100%; display: block; }
@keyframes stamppulse { 0%, 100% { transform: rotate(-8deg) scale(1); } 50% { transform: rotate(-8deg) scale(1.07); } }
@media (prefers-reduced-motion: reduce) { .bc-stamp { animation: none; } }
.bc-contact { margin-top: auto; padding-right: 0; display: flex; flex-wrap: wrap; gap: .25em 1.1em; }
.bc-contact a { display: inline-flex; align-items: center; gap: .35em; }
.bc-contact .bci { width: 1.05em; height: 1.05em; flex: none; }

/* contact card and the inside of the book: Alte Haas Grotesk (bold titles, regular text); handwriting and the resume stamp keep their own fonts */
.bcard, .cover-inside, .page-r { --font-logo: "Alte Haas Grotesk", "Helvetica Neue", Arial, sans-serif; --font-body: "Alte Haas Grotesk", "Helvetica Neue", Arial, sans-serif; font-family: "Alte Haas Grotesk", "Helvetica Neue", Arial, sans-serif; font-weight: 400; }
.bcard b, .sheet-name, .page-title, .cat.sticker h4, .bc-roles, .sheet-kicker { font-family: "Alte Haas Grotesk", "Helvetica Neue", Arial, sans-serif; font-weight: 700; }
.bc-quals, .bc-contact, .field label, .cat.sticker li > .row, .cat.sticker li .cl, .socials { font-family: "Alte Haas Grotesk", "Helvetica Neue", Arial, sans-serif; font-weight: 400; }

/* catalogue flip book: a clearer progress bar; pages read so far are filled in, a handle marks where you are, chapter markers are darker */
.fb-bar { height: 8px; border-radius: 4px; background: #dcd8d1; margin: 14px 0 8px; }
.fb-fill { border-radius: 4px; background: #8fb2da; }
.fb-fill::after { content: ""; position: absolute; right: -8px; top: 50%; width: 16px; height: 16px; margin-top: -8px; border-radius: 50%; background: #fff; border: 2px solid #1f3a5c; box-shadow: 0 1px 4px rgba(0,0,0,.25); box-sizing: border-box; }
.fb-dot { width: 12px; height: 12px; margin: -6px 0 0 -6px; border: 2.5px solid #1f3a5c; background: #fff; z-index: 1; }
.fb-dot.past { background: #1f3a5c; }
.fb-dot.mine { border-color: #d9603b; } .fb-dot.mine.past { background: #d9603b; }
.fb-legend { display: flex; gap: 16px; justify-content: center; font: 400 11.5px/1 "Alte Haas Grotesk", Inter, sans-serif; color: #5b5a57; margin-bottom: 4px; }
.fb-legend i { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 5px; vertical-align: -1px; }
.bc-roles { white-space: normal; line-height: 1.35; }
.socials li { white-space: nowrap; } .socials { font-size: clamp(10.5px, .95vw, 13px); min-width: 0; }
