/* Option 3 · editorial scrapbook. Two families: Fraunces (display) + Google Sans Flex (UI). */
:root {
  /* Page background pattern (dots). Graph-paper alternative:
     --bg-pat: linear-gradient(rgba(62, 11, 14, .07) 1px, transparent 1px), linear-gradient(90deg, rgba(62, 11, 14, .07) 1px, transparent 1px); --bg-size: 36px 36px; */
  --bg-pat: radial-gradient(circle at 1px 1px, rgba(62, 11, 14, .08) 1px, transparent 1.2px);
  --bg-size: 22px 22px;
  --head: #3e0b0e; --ink: #57534e; --ink-2: #57534e; --paper: #f7f6f4; --paper-2: #fbf8f2; --line: rgba(62, 11, 14, .14);
  --pink: #f6bfd3; --pink-dot: #f08fb0; --blue-pill: #cfdde7; --blue-pill-b: #8ea9df; --sky-a: #6f9bcb; --sky-b: #a9c6e4; --green: #bfe39b; --green-b: #8dba62;
  --serif: 'Fraunces', Georgia, serif;
  --sans: 'Google Sans Flex', 'Helvetica Neue', Arial, sans-serif;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --tabs-h: 76px;
  --u: min(1vw, 1.55vh);
}
*, *::before, *::after { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0; color: var(--ink); font: 400 17px/1.55 var(--sans); -webkit-font-smoothing: antialiased; overflow: hidden;
  background-color: var(--paper);
  background-image: var(--bg-pat);
  background-size: var(--bg-size);
}
body::after { content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 100; opacity: .06; mix-blend-mode: multiply;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
a { color: inherit; }
h1, h2, h3, h4, p, figure { margin: 0; }
img { display: block; max-width: 100%; }
em { font-style: italic; }
:focus-visible { outline: 2px solid var(--head); outline-offset: 4px; border-radius: 4px; }
.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }

/* shared type */
.cap, .cc-place, .cc-zone, .cc-time span, .sky-cap, .compare .tagL, .compare .tagR, .case .margin-note b, .desk-cap b, .w-ln { font: 500 11px/1.5 var(--sans); font-stretch: 85%; text-transform: uppercase; letter-spacing: .8px; font-variant-numeric: tabular-nums; color: var(--ink-2); }
.fig { font: italic 400 15px/1 var(--serif); color: var(--ink-2); display: inline-block; }
.fig::after { content: ""; display: block; width: 28px; height: 1px; background: currentColor; margin-top: 6px; margin-left: auto; }
.margin-note { border-left: 1px solid var(--ink-2); padding-left: 12px; font: 400 14.5px/1.5 var(--sans); color: var(--ink-2); max-width: 17ch; }
.btn { display: inline-flex; align-items: center; gap: 10px; position: relative; padding: 14px 24px; border-radius: 999px; background: var(--head); color: var(--paper-2); text-decoration: none; font: 500 15px var(--sans); transition: transform .2s var(--ease), box-shadow .2s var(--ease); }
.btn:hover { transform: translateY(-2px); box-shadow: 0 10px 20px -12px rgba(62, 11, 14, .6); }
.btn.big { font: 600 clamp(18px, 2vw, 24px) var(--serif); letter-spacing: -.02em; padding: 18px 28px; }
.link { font: 500 15px var(--sans); text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; color: var(--ink); }
.link:hover { text-decoration-thickness: 2px; }
.pill { display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px 7px 10px; border-radius: 999px; background: #fff; border: 1px solid rgba(62, 11, 14, .18); box-shadow: 0 1px 0 rgba(62, 11, 14, .12), 0 4px 10px -6px rgba(62, 11, 14, .25); font: 500 14px/1 var(--sans); color: var(--ink); text-decoration: none; transition: transform .2s var(--ease); }
.pill::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--pink-dot); }
a.pill:hover { transform: translateY(-2px); }

/* ---------- Board (home) ---------- */
.app { position: relative; height: 100%; }
.board { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; position: absolute; inset: 0 0 var(--tabs-h) 0; overflow: hidden; transition: opacity .5s var(--ease), filter .5s var(--ease); }
.panel-open .board { opacity: .35; filter: blur(2px); }
.topbar { position: absolute; left: 0; right: 0; top: 0; z-index: 5; display: flex; justify-content: space-between; align-items: center; padding: 22px clamp(20px, 3vw, 44px); }
.wordmark { font: 600 26px/1 var(--serif); letter-spacing: -.03em; text-decoration: none; }
.wordmark span { color: var(--pink-dot); }

.hero { position: absolute; left: 50%; top: 41%; transform: translate(-50%, -50%); width: min(980px, 92vw); text-align: center; z-index: 2; }
.headline { font: 800 clamp(64px, calc(var(--u) * 9.6), 150px)/.86 var(--serif); letter-spacing: -.035em; font-optical-sizing: auto; }
.headline .line { display: block; overflow: hidden; padding: .02em .12em .22em; margin-bottom: -.16em; }
.headline .line.l2 { margin-left: 1.1em; }
.headline .li { display: inline-block; }
.headline em { font-weight: 400; letter-spacing: -.01em; }
.hl { position: relative; z-index: 0; display: inline-block; }
.hl::before { content: ""; position: absolute; z-index: -1; left: -.1em; right: -.14em; top: .2em; bottom: .04em; background: var(--pink); transform: translate(.04em, .03em); filter: url(#grain); transform-origin: left center; }
.hl::after { content: ""; position: absolute; right: -.2em; top: .1em; width: .14em; height: .14em; border-radius: 50%; background: var(--pink-dot); }

.tag { position: absolute; z-index: 3; white-space: nowrap; pointer-events: none; }
.pill-handle { padding: 7px 14px; border-radius: 999px; background: var(--blue-pill); border: 1px solid var(--blue-pill-b); font: 500 14px/1 var(--sans); }
.tag.pill { pointer-events: none; }
.bubble { padding: 8px 12px; background: var(--green); border: 1px solid var(--green-b); border-radius: 4px; font: 600 15px/.98 var(--serif); letter-spacing: -.02em; text-align: center; box-shadow: 0 3px 8px -5px rgba(0, 0, 0, .3); }
.bubble::after { content: ""; position: absolute; left: 50%; bottom: -8px; width: 14px; height: 14px; background: inherit; border: inherit; border-top: 0; border-left: 0; transform: translateX(-50%) rotate(45deg); }
.label { padding: 4px 12px 6px; background: var(--pink); font: 600 clamp(20px, 2.2vw, 30px)/1 var(--serif); letter-spacing: -.02em; clip-path: polygon(0 4%, 100% 0, 98% 100%, 2% 96%); }
.t1 { left: 6%; top: -6%; rotate: -2deg; }
.t2 { right: 6%; top: 15%; }
.t3 { left: 2%; top: 34%; }
.t4 { left: 1%; top: 58%; rotate: -4deg; }

.offer { max-width: 50ch; margin: 30px auto 0; font: 400 18px/1.5 var(--sans); color: var(--ink-2); }

/* floating objects (draggable, calm) */
.float { --dx: 0px; --dy: 0px; --px: 0px; --py: 0px; position: absolute; left: var(--x); top: var(--y); z-index: 3; user-select: none; -webkit-user-select: none;
  transform: translate(calc(var(--px) + var(--dx)), calc(var(--py) + var(--dy))) rotate(var(--r)); transition: filter .25s var(--ease); }
.float.dragging { cursor: grabbing; z-index: 20; filter: drop-shadow(0 18px 22px rgba(62, 11, 14, .18)); }
.sketch-fig { width: calc(var(--u) * 27); min-width: 250px; display: grid; gap: 8px; }
.sketch-fig .margin-note { position: absolute; left: 0; top: -10px; translate: 0 -100%; }
.sketch-fig svg { width: 100%; height: auto; overflow: visible; }
.sketch-fig .fig { justify-self: end; margin-right: 8%; }
.wash { mix-blend-mode: multiply; opacity: .55; }
.ink path { fill: none; stroke: #2a2522; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.ink .steam { stroke-width: 1.1; opacity: .7; }

.sky { width: calc(var(--u) * 17); min-width: 210px; padding: 26px 22px 18px; background: linear-gradient(180deg, var(--sky-a), var(--sky-b)); border-radius: 3px; box-shadow: 0 20px 34px -24px rgba(30, 50, 80, .6); }
.stamp-wrap { position: relative; filter: drop-shadow(0 6px 10px rgba(30, 50, 80, .22)); }
.stamp { --r: 6px; --g: 16px; position: relative; background: var(--paper-2); padding: 14px;
  -webkit-mask: radial-gradient(var(--r) at var(--r) var(--r), #0000 98%, #000) calc(var(--g) / -2 + var(--r)) calc(var(--g) / -2 + var(--r)) / var(--g) var(--g) round, linear-gradient(#000 0 0) center / calc(100% - var(--r) * 2) calc(100% - var(--r) * 2) no-repeat;
          mask: radial-gradient(var(--r) at var(--r) var(--r), #0000 98%, #000) calc(var(--g) / -2 + var(--r)) calc(var(--g) / -2 + var(--r)) / var(--g) var(--g) round, linear-gradient(#000 0 0) center / calc(100% - var(--r) * 2) calc(100% - var(--r) * 2) no-repeat; }
.stamp-text { font: 600 clamp(24px, calc(var(--u) * 2.4), 34px)/1.05 var(--serif); letter-spacing: -.02em; text-align: center; color: #1f1a19; }
.stamp-text em { font-weight: 400; }
.postmark { position: absolute; left: -38px; top: -42px; width: 150px; opacity: .85; rotate: -8deg; pointer-events: none; }
.stamp img { display: block; width: 100%; height: auto; aspect-ratio: 3 / 4; object-fit: cover; object-position: 50% 30%; }
.stamp-val { position: absolute; right: 22px; bottom: 20px; font: 400 15px/1 var(--serif); font-style: italic; color: var(--paper-2); text-shadow: 0 1px 4px rgba(0, 0, 0, .45); }
.sky-cap { margin-top: 16px; color: #fff; text-align: right; }

/* entrance: reading order first, then the supporting objects */
@media (prefers-reduced-motion: no-preference) {
  .headline .li { animation: rise .9s var(--ease) both; }
  .headline .l2 .li { animation-delay: .12s; }
  .hl::before { animation: swipe .7s var(--ease) .65s both; }
  .tag { animation: fadein .6s var(--ease) both; }
  .t1 { animation-delay: .9s; } .t2 { animation-delay: 1s; } .t3 { animation-delay: 1.1s; } .t4 { animation-delay: 1.2s; }
  .offer { animation: fadeup .7s var(--ease) .5s both; }
  .float { animation: fadeup .8s var(--ease) both; }
  .clock-card { animation-delay: .55s; } .french { animation-delay: .6s; } .journal-tease { animation-delay: .7s; } .coffee { animation-delay: .75s; } .folder { animation-delay: .8s; } .interests { animation-delay: .85s; } .game-tease { animation-delay: .9s; } .sky { animation-delay: .95s; }
  .sticky-xp { animation: fadeup .7s var(--ease) .9s both; }
  .sticky-xp mark { animation: mark .6s var(--ease) both; } .m-pink { animation-delay: 1.4s !important; } .m-blue { animation-delay: 1.65s !important; }
  .squig path { stroke-dasharray: 200; stroke-dashoffset: 200; animation: draw .7s var(--ease) 1.9s forwards; }
  .sticky-xp .tape { animation: fadein .4s ease 1.1s both; }
  .ink .dr { stroke-dasharray: 600; stroke-dashoffset: 600; animation: draw 1.6s var(--ease) 1s forwards; }
  .ink .dr:first-child { stroke-dasharray: 14 3 2 5; stroke-dashoffset: 0; animation: none; }
  .wash { animation: washin 1.2s ease 2.1s both; }
  .postmark { animation: postmark .5s var(--ease) 1.6s both; }
}
@keyframes rise { from { transform: translateY(105%); } }
@keyframes swipe { from { transform: translate(.04em, .03em) scaleX(0); } }
@keyframes fadein { from { opacity: 0; } }
@keyframes fadeup { from { opacity: 0; translate: 0 14px; } }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes mark { from { background-size: 0 100%; } }
@keyframes washin { from { opacity: 0; } }
@keyframes postmark { from { opacity: 0; scale: 1.25; } }

/* ---------- Journal teaser ---------- */
.journal-tease { width: calc(var(--u) * 25); min-width: 250px; }
.print { position: absolute; left: -7%; top: -52%; width: 44%; margin: 0; padding: 7px 7px 26px; background: #fff; rotate: -5deg; z-index: -1; box-shadow: 0 0 0 1px var(--line), 0 14px 24px -18px rgba(62, 11, 14, .5); }
.print img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; object-position: 30% 70%; }
.print .fig { position: absolute; left: 9px; bottom: 6px; font-size: 13px; }
.print .fig::after { display: none; }
.notes-card { position: relative; display: grid; gap: 10px; padding: 14px 20px 18px; background: #fff; border-radius: 16px; text-decoration: none; color: var(--ink); box-shadow: 0 0 0 1px var(--line), 0 24px 40px -28px rgba(62, 11, 14, .55); transition: box-shadow .25s var(--ease), translate .25s var(--ease); }
.notes-card:hover { translate: 0 -3px; box-shadow: 0 0 0 1px rgba(62, 11, 14, .22), 0 30px 44px -28px rgba(62, 11, 14, .6); }
.nc-top { display: flex; justify-content: space-between; font: 500 13px var(--sans); color: var(--pink-dot); }
.nc-date { color: var(--ink-2); opacity: .7; }
.nc-title { font: 600 24px/1.1 var(--serif); letter-spacing: -.02em; }
.nc-list { display: grid; gap: 8px; }
.nc-list span { display: flex; gap: 10px; align-items: center; font: 400 14.5px/1.3 var(--sans); color: var(--ink-2); }
.nc-list span::before { content: ""; flex: none; width: 13px; height: 13px; border-radius: 50%; border: 1.3px solid rgba(62, 11, 14, .35); }
.nc-list span:nth-child(-n+2)::before { background: var(--pink-dot); border-color: var(--pink-dot); box-shadow: inset 0 0 0 2.5px #fff; }

/* ---------- Clock card ---------- */
.clock-card { padding: 13px 18px 12px; background: #fff; border-radius: 14px; box-shadow: 0 0 0 1px var(--line), 0 22px 36px -26px rgba(62, 11, 14, .5); }
.cc-zone { margin-top: 8px; }
.cc-time { margin-top: 6px; display: flex; align-items: baseline; gap: 6px; color: var(--ink); }
.cc-time time { font: 600 calc(var(--u) * 2.7)/1 var(--sans); letter-spacing: -.02em; font-variant-numeric: tabular-nums; min-width: 5.2ch; }
.cc-time time i { display: inline-block; width: .64em; text-align: center; font-style: normal; }
.cc-time time i.c { width: .28em; }

/* ---------- Sticky note (experience) ---------- */
.sticky-xp { position: absolute; left: -1%; top: 27%; z-index: 3; width: 218px; padding: 30px 18px 20px; text-align: left; rotate: -4deg; display: grid; gap: 2px; color: var(--ink); }
.xp-paper { position: absolute; inset: 0; z-index: -1; border-radius: 2px 2px 3px 3px; background: linear-gradient(180deg, #fdf3b9 0%, #fbeba0 70%, #f6e08a 100%); box-shadow: 0 0 0 .5px rgba(120, 90, 20, .18), 0 1px 2px rgba(62, 11, 14, .12), inset 0 -10px 18px -12px rgba(160, 120, 30, .35); }

.sticky-xp .tape { position: absolute; left: 50%; top: -62px; width: 124px; height: auto; translate: -50% 0; rotate: 22deg; opacity: .95; pointer-events: none; }
.sticky-xp mark { color: var(--ink); padding: 0 4px; margin: 0 -4px; background: linear-gradient(transparent 46%, var(--hl) 46% 90%, transparent 90%) no-repeat 0 0 / 100% 100%; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.m-pink { --hl: var(--pink); }
.m-blue { --hl: rgba(111, 160, 230, .45); }
.xp-1 { font: 800 40px/1 var(--serif); letter-spacing: -.035em; }
.xp-2 { font: 400 14.5px/1.3 var(--sans); white-space: nowrap; color: var(--ink-2); margin-top: 4px; }
.xp-2 em { font: italic 400 18px var(--serif); color: var(--ink); }
.xp-3 { font: 600 25px/1.15 var(--serif); letter-spacing: -.02em; margin-top: 2px; }
.xp-4 { font: italic 400 21px/1.2 var(--serif); }
.squig { position: relative; display: inline-block; }
.squig svg { position: absolute; left: -2px; right: -4px; bottom: -7px; width: calc(100% + 6px); height: 10px; overflow: visible; }
.squig path { fill: none; stroke: var(--pink-dot); stroke-width: 2; stroke-linecap: round; vector-effect: non-scaling-stroke; }
/* ---------- Home objects ---------- */
.french { width: max-content; padding: 15px 22px; text-align: center; background: #fdf3d2; border: 1.5px solid #f0dc9c; border-radius: 12px; outline-offset: 6px;
  font: 400 14.5px/1.3 var(--sans); color: #6e5a2c; box-shadow: 0 16px 26px -24px rgba(110, 90, 44, .6); }
.french .flag { font-size: 13px; margin-right: 3px; }
.board [data-say], .board [data-say] * { cursor: none; }
.board .t2 { pointer-events: auto; }
.fr-say { position: fixed; left: 0; top: 0; z-index: 200; white-space: nowrap; padding: 12px 20px; border-radius: 999px; background: #d63d8c; color: #fff;
  font: 500 15px/1 var(--sans); box-shadow: 0 12px 22px -12px rgba(214, 61, 140, .7); pointer-events: none; opacity: 0; transition: opacity .15s ease; will-change: transform; }
.fr-say.on { opacity: 1; }
.coffee { width: calc(var(--u) * 9); min-width: 100px; margin: 0; rotate: var(--r); display: grid; gap: 4px; }
.coffee { mix-blend-mode: multiply; }
.coffee img { width: 100%; height: auto; pointer-events: none; -webkit-user-drag: none; }
.coffee .fig { justify-self: end; font-size: 13px; }
.desk-work { display: block; width: calc(var(--u) * 19); min-width: 240px; mix-blend-mode: multiply; }
.desk-work img { width: 100%; height: auto; pointer-events: none; -webkit-user-drag: none; transition: translate .35s var(--ease); }
.desk-work:hover img { translate: 0 -4px; }
.plant { width: calc(var(--u) * 10); min-width: 110px; margin: 0; mix-blend-mode: multiply; }
.plant img { width: 100%; height: auto; pointer-events: none; -webkit-user-drag: none; }
.folder { display: block; width: calc(var(--u) * 10.5); min-width: 142px; aspect-ratio: 220 / 180; position: relative; text-decoration: none; color: var(--ink); filter: drop-shadow(0 14px 14px rgba(120, 30, 60, .2)); }
.folder-back, .folder-front { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.folder-paper { position: absolute; left: 10%; right: 12%; top: 8%; bottom: 24%; background: #fff; box-shadow: 0 0 0 1px var(--line); rotate: -3deg; transition: translate .35s var(--ease), rotate .35s var(--ease); background-image: repeating-linear-gradient(transparent 0 11px, rgba(62, 11, 14, .1) 11px 12px); background-position: 0 14px; }
.folder-paper.p2 { rotate: 2.5deg; left: 13%; right: 9%; background-color: #fbf8f2; }
.folder-paper.p3 { rotate: -6deg; left: 7%; right: 15%; background-color: #f4efe6; }
.folder:hover .folder-paper.p1 { translate: 0 -10px; }
.folder:hover .folder-paper.p2 { translate: 6px -18px; rotate: 6deg; transition-delay: .04s; }
.folder:hover .folder-paper.p3 { translate: -6px -24px; rotate: -10deg; transition-delay: .08s; }
.interests { width: calc(var(--u) * 16.5); min-width: 220px; padding: 14px 16px; background: var(--paper-2); rotate: var(--r); box-shadow: 0 0 0 1px var(--line), 0 16px 26px -22px rgba(62, 11, 14, .5); }
.interests ul { list-style: none; margin: 10px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.interests li { padding: 5px 11px; border-radius: 999px; font: 500 13px/1.2 var(--sans); border: 1px solid rgba(62, 11, 14, .16); background: #fff; }
.interests li:nth-child(1) { background: var(--blue-pill); border-color: transparent; }
.game-tease { display: flex; align-items: center; gap: 14px; padding: 12px 18px 12px 12px; background: #fff; border-radius: 12px; text-decoration: none; color: var(--ink); rotate: var(--r); box-shadow: 0 0 0 1px var(--line), 0 16px 26px -22px rgba(62, 11, 14, .5); transition: box-shadow .25s var(--ease); }
.game-tease:hover { box-shadow: 0 0 0 1px rgba(62, 11, 14, .25), 0 22px 30px -22px rgba(62, 11, 14, .55); }
.gt-cards { display: flex; }
.gt-cards i { width: 34px; height: 44px; margin-right: -8px; border-radius: 4px; display: grid; place-items: center; font: 600 13px var(--serif); letter-spacing: -.03em; color: var(--paper-2); background: var(--head); box-shadow: 0 0 0 2px #fff; rotate: -6deg; transition: rotate .3s var(--ease), translate .3s var(--ease); }
.gt-cards i:nth-child(2) { rotate: 2deg; }
.gt-cards i.up { background: var(--paper-2); rotate: 9deg; overflow: hidden; }
.gt-cards i.up img { width: 70%; mix-blend-mode: multiply; }
.game-tease:hover .gt-cards i.up { rotate: 14deg; translate: 4px -4px; }
.gt-txt { display: grid; margin-left: 8px; }
.gt-txt b { font: 600 17px/1.15 var(--serif); letter-spacing: -.02em; }
.gt-txt span { font: 500 13px var(--sans); color: var(--ink-2); }

/* ---------- Sticky note: post-it with curled corner ---------- */
.sticky-xp { translate: var(--dx, 0px) var(--dy, 0px); }
.sticky-xp[data-note] .xp-paper { background: none; box-shadow: none; filter: drop-shadow(0 0 .5px rgba(62, 11, 14, .25)) drop-shadow(0 2px 2px rgba(62, 11, 14, .08)) drop-shadow(0 16px 16px rgba(62, 11, 14, .2)); transition: filter .45s var(--ease); }
.sticky-xp[data-note] .xp-paper::before { content: ""; position: absolute; inset: 0; }
.sticky-xp[data-note]:hover .xp-paper { filter: drop-shadow(0 0 .5px rgba(62, 11, 14, .25)) drop-shadow(0 4px 4px rgba(62, 11, 14, .08)) drop-shadow(0 26px 22px rgba(62, 11, 14, .18)); }
/* 1 post-it: rounded corners, curled bottom-right corner, brush highlights */
.xp-sheet, .xp-spark, .xp-arrow { display: none; }
.sticky-xp[data-note="postit"] { padding: 34px 20px 30px 22px; rotate: -4deg; }
.sticky-xp[data-note="postit"] .xp-sheet { display: block; position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.sticky-xp[data-note="postit"] .xp-sheet .cu { filter: drop-shadow(-2px -1px 2px rgba(120, 80, 20, .18)); transform-origin: 215px 206px; transition: scale .45s var(--ease); }
.sticky-xp[data-note="postit"]:hover .xp-sheet .cu { scale: 1.12; }
.sticky-xp[data-note="postit"] .tape { top: -66px; width: 132px; rotate: 24deg; }
.sticky-xp[data-note="postit"] .xp-spark { display: block; position: absolute; width: 22px; left: 168px; top: 22px; pointer-events: none; }
.sticky-xp[data-note="postit"] .xp-arrow { display: block; position: absolute; width: 58px; right: 14px; bottom: 34px; pointer-events: none; }
.sticky-xp[data-note="postit"] mark { padding: 0 6px; margin: 0 -6px; background: linear-gradient(var(--hl), var(--hl)) no-repeat 0 82% / 100% 62%; border-radius: 3px 9px 4px 10px / 7px 3px 9px 4px; }
.sticky-xp[data-note="postit"] .m-pink { --hl: rgba(246, 176, 196, .85); }
.sticky-xp[data-note="postit"] .m-blue { --hl: rgba(150, 192, 228, .75); }
.sticky-xp[data-note="postit"] .xp-4 { margin-top: 4px; }

/* ---------- Hover moments (one per card, each different) ---------- */
.french { transition: rotate .45s var(--ease), scale .45s var(--ease); }
.french:hover { rotate: 5deg; scale: 1.04; }
.board[data-layout] .sticky-xp { transition: scale .45s var(--ease); }
.board[data-layout] .sticky-xp:hover { scale: 1.035; }
.sticky-xp:hover .sticky-xp:hover .coffee img { transform-origin: 50% 100%; }
.plant img { transform-origin: 50% 100%; }
.stamp-wrap { transition: translate .4s var(--ease), rotate .4s var(--ease); }
.sky:hover .stamp-wrap { translate: 0 -6px; rotate: -2deg; }
.interests li { transition: translate .3s var(--ease), background-color .3s; }
.interests:hover li { translate: 0 -3px; }
.interests:hover li:nth-child(2) { transition-delay: .04s; } .interests:hover li:nth-child(3) { transition-delay: .08s; } .interests:hover li:nth-child(4) { transition-delay: .12s; } .interests:hover li:nth-child(5) { transition-delay: .16s; }
.cc-zone { transition: color .3s; }
.clock-card.local .cc-zone { color: #d63d8c; }
@media (prefers-reduced-motion: no-preference) {
  .coffee:hover img { animation: sip 1.1s var(--ease); }
  .plant:hover img { animation: rustle 1.6s ease-in-out; }
  .sky:hover .postmark { animation: restamp .45s var(--ease); }
}
@keyframes sip { 30% { translate: 0 -8px; rotate: -5deg; } 65% { translate: 0 -4px; rotate: 3deg; } }
@keyframes rustle { 20% { rotate: -3deg; } 45% { rotate: 2.5deg; } 70% { rotate: -1.5deg; } 90% { rotate: .5deg; } }
@keyframes restamp { 0% { scale: 1; } 40% { scale: 1.18; opacity: .5; } 100% { scale: 1; } }

/* ---------- Tabs ---------- */
.tabs { position: fixed; left: 50%; bottom: 16px; transform: translateX(-50%); z-index: 50; display: flex; gap: 2px; padding: 5px; background: rgba(251, 248, 242, .92); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border: 1px solid var(--line); border-radius: 999px; box-shadow: 0 12px 28px -18px rgba(62, 11, 14, .45); }
.tabs a { display: inline-flex; align-items: center; gap: 7px; text-decoration: none; padding: 9px 15px; border-radius: 999px; font: 500 14px var(--sans); color: var(--ink-2); transition: background .2s, color .2s; white-space: nowrap; }
.tabs a::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--pink-dot); transform: scale(0); transition: transform .25s var(--ease); margin-left: -4px; }
.tabs a[aria-current="page"] { background: #fff; color: var(--ink); box-shadow: 0 0 0 1px var(--line); }
.tabs a[aria-current="page"]::before { transform: scale(1); margin-left: 0; }
.tabs a:hover { color: var(--ink); }

/* ---------- Panels ---------- */
.panel { position: fixed; left: 50%; top: 16px; bottom: calc(var(--tabs-h) + 6px); width: min(1120px, calc(100% - 32px)); transform: translateX(-50%); z-index: 30;
  background: var(--paper-2); border: 1px solid var(--line); border-radius: 6px; box-shadow: 0 30px 60px -34px rgba(62, 11, 14, .45); overflow: auto; overscroll-behavior: contain;
  opacity: 0; translate: 0 14px; transition: opacity .4s var(--ease), translate .5s var(--ease); }
.panel.show { opacity: 1; translate: 0 0; }
.panel[hidden] { display: block; visibility: hidden; pointer-events: none; }
.panel.grid { background-image: linear-gradient(rgba(62, 11, 14, .07) 1px, transparent 1px), linear-gradient(90deg, rgba(62, 11, 14, .07) 1px, transparent 1px); background-size: 24px 24px; }
.panel-in { padding: clamp(24px, 4.5vw, 64px); }
.p-head { margin-bottom: 48px; max-width: 820px; }
.p-head.row { max-width: none; display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; flex-wrap: wrap; }
.p-head .cap { margin-bottom: 14px; }
.panel h2 { font: 600 clamp(36px, 4.6vw, 64px)/.95 var(--serif); letter-spacing: -.02em; }
.panel h2 em { font-weight: 400; }
.lead { margin-top: 18px; color: var(--ink-2); max-width: 56ch; font-size: 18px; }

/* work: case files */
.case { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr) 150px; gap: clamp(20px, 3vw, 40px); align-items: start; padding: 40px 0; border-top: 1px solid var(--line); }
.case:first-child { border-top: 0; padding-top: 0; }
.compare { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--paper-2); box-shadow: 0 0 0 1px var(--line), 0 16px 30px -24px rgba(62, 11, 14, .5); --pos: 50%; }
.compare .layer { position: absolute; inset: 0; }
.compare .final { clip-path: inset(0 0 0 var(--pos)); background: #fff; }
.compare .final img { width: 100%; height: 100%; object-fit: cover; }
.compare svg { width: 100%; height: 100%; display: block; }
.compare .tagL, .compare .tagR { position: absolute; top: 12px; z-index: 3; pointer-events: none; padding: 5px 10px; border-radius: 999px; background: #fff; box-shadow: 0 0 0 1px var(--line); }
.compare .tagL { left: 12px; } .compare .tagR { right: 12px; background: var(--head); color: var(--paper-2); }
.compare .handle { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 0; z-index: 4; pointer-events: none; }
.compare .handle::before { content: ""; position: absolute; top: 0; bottom: 0; left: -.5px; width: 1px; background: var(--head); }
.compare .handle::after { content: "↔"; position: absolute; top: 50%; left: 0; translate: -50% -50%; width: 40px; height: 40px; border-radius: 50%; background: var(--paper-2); border: 1px solid var(--head); display: grid; place-items: center; font: 400 16px var(--serif); }
.compare input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: ew-resize; z-index: 5; margin: 0; }
.compare input:focus-visible + .handle::after { outline: 2px solid var(--head); outline-offset: 3px; }
.sk { fill: none; stroke: #2a2522; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; filter: url(#ink); }
.sk-wash { filter: url(#wash); mix-blend-mode: multiply; opacity: .55; }
.sk-note { font-family: var(--serif); font-style: italic; font-size: 19px; fill: #b9654a; }
.case-txt .cap { display: block; margin-bottom: 10px; }
.case-txt h3 { font: 600 clamp(28px, 3vw, 40px)/.98 var(--serif); letter-spacing: -.02em; }
.case-txt h3 em { font-weight: 400; }
.case-txt > p { color: var(--ink-2); margin-top: 12px; }
.metric { margin-top: 22px; display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.metric b { font: 800 clamp(44px, 4.6vw, 64px)/.9 var(--serif); letter-spacing: -.04em; }
.metric span { font-size: 14.5px; color: var(--ink-2); max-width: 20ch; }
.case-links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.case .margin-note { margin-top: 6px; font-size: 14.5px; max-width: none; }
.case .margin-note b { display: block; margin-bottom: 6px; }

/* journal */
.j-grid { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: 32px; align-items: start; }
.ios-note { background: #fff; border-radius: 18px; padding: 18px 22px 16px; box-shadow: 0 0 0 1px var(--line), 0 24px 40px -30px rgba(62, 11, 14, .5); }
.ios-top, .ios-bottom { display: flex; justify-content: space-between; align-items: center; color: #c9930f; font: 500 15px var(--sans); }
.ios-icons { display: flex; gap: 12px; }
.ios-icons i, .ios-bottom i { width: 17px; height: 17px; border: 1.6px solid #c9930f; border-radius: 50%; display: block; }
.ios-bottom i { border-radius: 4px; }
.ios-note h3 { font: 600 26px/1.15 var(--serif); letter-spacing: -.02em; margin: 26px 0 16px; }
.ios-note ul { margin: 0 0 26px; padding-left: 22px; display: grid; gap: 8px; font-size: 17px; }
.desk { padding: 4px 0 0; }
.desk h3, .j-title { font: 600 26px var(--serif); letter-spacing: -.02em; display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; }
.desk-items { list-style: none; margin: 18px 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px 18px; }
.desk-items li { display: grid; gap: 4px; }
.desk-items .fig { justify-self: end; font-size: 13px; }
.desk-art svg { width: 100%; height: auto; overflow: visible; display: block; }
.desk-cap { font: 400 14.5px/1.5 var(--sans); color: var(--ink-2); }
.desk-cap b { margin-left: 4px; }
.ideation { margin-top: 56px; }
.wall { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; padding: 24px 4px 16px; }
.note { --dx: 0px; --dy: 0px; position: relative; background: #fff; padding: 22px 18px 22px; min-height: 200px; rotate: var(--r); translate: var(--dx) var(--dy); box-shadow: 0 0 0 1px var(--line), 0 16px 26px -20px rgba(62, 11, 14, .5); cursor: grab; touch-action: none;
  background-image: linear-gradient(transparent 46px, rgba(240, 143, 176, .7) 46px 47px, transparent 47px), repeating-linear-gradient(transparent 0 23px, rgba(110, 150, 200, .22) 23px 24px); background-position: 0 0, 0 47px; }
.note.dragging { cursor: grabbing; z-index: 5; box-shadow: 0 0 0 1px var(--line), 0 26px 34px -20px rgba(62, 11, 14, .55); }
.note h4 { font: 600 21px/1.05 var(--serif); letter-spacing: -.02em; margin: 18px 0 8px; }
.note h4 em { font-weight: 400; }
.note p { font-size: 14.5px; line-height: 1.5; color: var(--ink-2); }

/* play */
.play-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 28px; align-items: start; }
.game, .radio { background: #fff; padding: 24px; box-shadow: 0 0 0 1px var(--line); }
.game-head { display: flex; align-items: baseline; gap: 16px; flex-wrap: wrap; margin-bottom: 18px; }
.game-head h3, .radio h3 { font: 600 26px var(--serif); letter-spacing: -.02em; }
.game-head .cap { margin-right: auto; }
.g-board { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; perspective: 900px; }
.g-card { aspect-ratio: 1 / 1; position: relative; transform-style: preserve-3d; transition: transform .5s var(--ease); }
.g-card.up, .g-card.done { transform: rotateY(180deg); }
.g-face { position: absolute; inset: 0; backface-visibility: hidden; -webkit-backface-visibility: hidden; display: grid; place-items: center; box-shadow: 0 0 0 1px var(--line); }
.g-back { background-color: var(--paper); background-image: radial-gradient(circle at 1px 1px, rgba(62, 11, 14, .18) 1px, transparent 1.2px); background-size: 12px 12px; font: 600 26px var(--serif); letter-spacing: -.03em; }
.g-front { background: var(--paper-2); transform: rotateY(180deg); padding: 10%; }
.g-front svg { width: 100%; height: 100%; overflow: visible; }
.g-card.done .g-front { background: #fdeef3; }
.g-msg { margin-top: 14px; font: 400 15px/1.5 var(--sans); color: var(--ink-2); min-height: 1.5em; }
.radio { text-align: center; display: grid; justify-items: center; gap: 10px; }
.vinyl { width: 170px; height: 170px; border-radius: 50%; background: repeating-radial-gradient(#231a1a 0 2px, #33282a 2px 4px); display: grid; place-items: center; box-shadow: 0 18px 30px -16px rgba(62, 11, 14, .6); margin-bottom: 8px; }
.vinyl span { width: 60px; height: 60px; border-radius: 50%; background: var(--pink); box-shadow: inset 0 0 0 26px var(--pink), inset 0 0 0 30px var(--paper-2); }
.radio.on .vinyl { animation: spin 3.2s linear infinite; }
@keyframes spin { to { rotate: 360deg; } }
.r-controls { display: flex; gap: 10px; align-items: center; margin-top: 6px; }
.r-btn { width: 42px; height: 42px; border-radius: 50%; box-shadow: inset 0 0 0 1px var(--head); display: grid; place-items: center; font-size: 18px; }
.r-btn.play { width: 56px; height: 56px; background: var(--head); color: var(--paper-2); box-shadow: none; }
.r-vol { display: flex; align-items: center; gap: 8px; }
.r-vol input { accent-color: var(--ink); }
.r-note { font: 400 14.5px/1.5 var(--sans); color: var(--ink-2); }

/* about / resume / contact */
.about { display: grid; grid-template-columns: minmax(0, .7fr) minmax(0, 1.3fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
.portrait { display: grid; gap: 10px; }
.portrait-wash { aspect-ratio: 4 / 5; position: relative; display: grid; place-items: end start; padding: 14px; font: 400 14.5px/1.5 var(--sans); color: var(--ink-2);
  background: radial-gradient(60% 50% at 40% 45%, rgba(143, 169, 199, .55), transparent 70%), radial-gradient(50% 40% at 65% 70%, rgba(217, 200, 174, .7), transparent 70%), var(--paper-2); box-shadow: 0 0 0 1px var(--line); }
.portrait .fig { justify-self: end; }
.portrait img { width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; object-position: 30% 70%; box-shadow: 0 0 0 1px var(--line); }
.facts { margin: 28px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; border-top: 1px solid var(--line); padding-top: 18px; }
.facts dd { margin: 4px 0 0; font: 600 18px/1.25 var(--serif); letter-spacing: -.02em; }
.sub { margin: 40px 0 12px; }
.awards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); border-top: 1px solid var(--line); }
.awards li { padding: 14px 0; border-bottom: 1px solid var(--line); display: grid; gap: 2px; margin-right: 20px; }
.awards b { font: 600 17px/1.2 var(--serif); letter-spacing: -.02em; }
.awards span { font: 500 13px var(--sans); color: var(--ink-2); }
.timeline { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.timeline li { display: grid; grid-template-columns: 130px 1fr; gap: 2px 24px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.timeline time { grid-row: span 2; padding-top: 5px; }
.timeline b { font: 600 21px/1.2 var(--serif); letter-spacing: -.02em; }
.timeline span { font-size: 15px; color: var(--ink-2); }
.timeline li.next b::after { content: ""; display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: var(--pink-dot); margin-left: 10px; vertical-align: middle; }
.skills { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; margin-top: 40px; }
.skills h3 { font: 600 20px var(--serif); letter-spacing: -.02em; margin-bottom: 6px; }
.skills p { font-size: 15px; color: var(--ink-2); }
.contact { text-align: center; display: grid; justify-items: center; padding-top: clamp(48px, 9vh, 110px); }
.contact .cap { margin-bottom: 14px; }
.contact h2 { font-size: clamp(44px, 6.4vw, 92px); font-weight: 800; letter-spacing: -.035em; }
.contact-row { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 12px 20px; margin-top: 34px; }
.copied { font-size: 14.5px; color: var(--ink-2); min-width: 1px; }
.contact-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 30px; }

/* ---------- Below 900px: the home becomes a scrolling page ---------- */
@media (max-width: 767px) {
  :root { --tabs-h: 70px; }
  body { overflow: auto; }
  .board { position: relative; inset: auto; min-height: 100svh; padding: 90px 20px calc(var(--tabs-h) + 48px); display: grid; justify-items: center; gap: 56px; overflow: visible; }
  .panel-open .board { opacity: 1; filter: none; }
  .hero { position: relative; left: auto; top: auto; transform: none; width: 100%; padding-top: 30px; }
  .headline { font-size: clamp(52px, 15vw, 96px); }
  .headline .line.l2 { margin-left: .5em; }
  .t1 { display: none; }
  .t2 { position: relative; display: inline-block; right: auto; left: auto; top: auto; margin: 14px 4px 0; }
  .board { gap: 44px; }
  .sticky-xp { position: relative; left: auto; top: auto; margin: 40px auto 0; rotate: -2deg; }
  .wordmark { white-space: nowrap; }
  .float { position: relative; left: auto; top: auto; }
  .journal-tease { width: min(88%, 340px); }

  .cc-time time { font-size: 33px; }
  .coffee { width: 130px; }
  .plant { width: 140px; }
  .desk-work { width: min(100%, 360px); }
  .interests { width: min(88%, 320px); }
  .sky { width: min(100%, 320px); }
  .tabs { left: 8px; right: 8px; transform: none; bottom: 10px; overflow-x: auto; justify-content: flex-start; scrollbar-width: none; }
  .panel { top: 8px; width: calc(100% - 16px); }
  .case { grid-template-columns: 1fr; }
  .j-grid, .play-grid, .about { grid-template-columns: 1fr; }
  .wall { grid-template-columns: 1fr 1fr; }
  .portrait { max-width: 260px; }
  .skills, .facts { grid-template-columns: 1fr; }
  .board[data-layout] .sticky-xp { left: auto; right: auto; top: auto; translate: none; }
  /* C: scrapbook zigzag, cards overlap a little */
  .board[data-mobile="c"] { gap: 0; justify-items: stretch; }
  .board[data-mobile="c"] > .float { margin-top: -6px; }
  .board[data-mobile="c"] .hero { margin-bottom: 40px; }
  .board[data-mobile="c"] .clock-card, .board[data-mobile="c"] .coffee, .board[data-mobile="c"] .folder, .board[data-mobile="c"] .game-tease { justify-self: end; margin-right: 4px; }
  .board[data-mobile="c"] .french, .board[data-mobile="c"] .journal-tease, .board[data-mobile="c"] .interests, .board[data-mobile="c"] .sky { justify-self: start; margin-left: 4px; }
  .board[data-mobile="c"] .desk-work { order: 1; justify-self: center; margin-bottom: 20px; } .board[data-mobile="c"] .clock-card { order: 1; } .board[data-mobile="c"] .french { order: 2; margin-top: -22px; } .board[data-mobile="c"] .coffee { order: 3; margin-top: -30px; } .board[data-mobile="c"] .plant { order: 3; justify-self: start; margin-left: 24px; margin-top: -60px; }
  .board[data-mobile="c"] .journal-tease { order: 4; margin-top: -40px; } .board[data-mobile="c"] .game-tease { order: 5; margin-top: 18px; } .board[data-mobile="c"] .interests { order: 6; margin-top: 18px; }
  .board[data-mobile="c"] .folder { order: 7; margin-top: -10px; } .board[data-mobile="c"] .sky { order: 8; margin-top: 10px; }
}
@media (max-width: 520px) {
  .wall { grid-template-columns: 1fr; }
  .timeline li { grid-template-columns: 1fr; }
  .timeline time { grid-row: auto; }
  .desk-items { grid-template-columns: repeat(2, 1fr); }
  .g-board { gap: 6px; }
}
.board .float img { -webkit-user-drag: none; }

/* ---------- Work v2: project grid + case view ---------- */
.panel.dots { background-color: var(--paper); background-image: var(--bg-pat); background-size: var(--bg-size); background-attachment: scroll; }
.p-close { position: sticky; top: 16px; float: right; margin: 16px 16px -60px 0; z-index: 6; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--paper-2); box-shadow: 0 0 0 1px var(--line), 0 8px 18px -12px rgba(62, 11, 14, .5); transition: background .2s, rotate .3s var(--ease); }
.p-close svg { width: 18px; height: 18px; fill: none; stroke: var(--head); stroke-width: 1.8; stroke-linecap: round; }
.p-close:hover { background: var(--pink); rotate: 90deg; }
.w-intro { margin-bottom: 40px; }
.w-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(18px, 2.4vw, 32px); }
.w-card { display: flex; flex-direction: column; width: 100%; height: 100%; text-align: left; background: var(--paper-2); border-radius: 6px; overflow: hidden; box-shadow: 0 0 0 1px var(--line), 0 18px 34px -28px rgba(62, 11, 14, .55); transition: translate .35s var(--ease), box-shadow .35s var(--ease); }
.w-thumb { display: block; aspect-ratio: 16 / 10; overflow: hidden; background: #fff; border-bottom: 1px solid var(--line); }
.w-thumb img, .w-thumb svg { width: 100%; height: 100%; object-fit: cover; display: block; transition: scale .6s var(--ease); }
.w-body { display: flex; flex-direction: column; gap: 8px; padding: 20px 22px 22px; flex: 1; }
.w-title { font: 600 clamp(26px, 2.4vw, 34px)/1 var(--serif); letter-spacing: -.02em; }
.w-title em { font-weight: 400; }
.w-line { color: var(--ink-2); font-size: 15px; line-height: 1.5; }
.w-foot { margin-top: auto; padding-top: 14px; display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; border-top: 1px dashed var(--line); }
.w-metric { font-size: 14.5px; color: var(--ink-2); }
.w-metric b { font: 800 19px var(--serif); letter-spacing: -.035em; color: var(--ink); margin-right: 2px; }
.w-go { font: 500 14px var(--sans); padding: 6px 12px; border-radius: 999px; background: var(--pink); white-space: nowrap; transition: background .25s; }
.w-go span { display: inline-block; transition: translate .3s var(--ease); }
.w-card:hover { translate: 0 -4px; box-shadow: 0 0 0 1px rgba(62, 11, 14, .24), 0 26px 40px -26px rgba(62, 11, 14, .6); }
.w-card:hover .w-thumb img, .w-card:hover .w-thumb svg { scale: 1.04; }
.w-card:hover .w-go span { translate: 4px 0; }
.w-card:focus-visible { outline-offset: 4px; border-radius: 6px; }

.panel.in-case .w-intro { display: none; }
.w-case { max-width: 1000px; margin: 0 auto; }
.w-back { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; background: var(--paper-2); box-shadow: 0 0 0 1px var(--line); font: 500 14px var(--sans); margin-bottom: 32px; transition: background .2s; }
.w-back:hover { background: var(--pink); }
.w-head .cap { margin-bottom: 12px; }
.w-head h3 { font: 600 clamp(40px, 5vw, 68px)/.95 var(--serif); letter-spacing: -.02em; }
.w-head h3 em { font-weight: 400; }
.w-head h3:focus { outline: none; }
.w-facts { display: grid; grid-template-columns: 1fr 1fr .8fr; gap: 14px; margin: 36px 0 28px; }
.w-facts section { background: var(--paper-2); border-radius: 6px; padding: 18px 20px; box-shadow: 0 0 0 1px var(--line); }
.w-facts .cap { margin-bottom: 8px; }
.w-facts p:not(.cap) { font-size: 15px; line-height: 1.55; }
.w-result { background: var(--head) !important; color: var(--paper-2); }
.w-result .cap { color: var(--pink); }
.w-result b { display: block; font: 800 clamp(40px, 4vw, 56px)/.95 var(--serif); letter-spacing: -.04em; margin-bottom: 6px; }
.w-fig .compare { border-radius: 6px; }
.w-fig .fig { margin-top: 12px; font: 400 14.5px/1.5 var(--sans); }
.w-fig .fig::after { display: none; }
.w-links { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 28px; }
.w-next { display: flex; flex-direction: column; gap: 6px; width: 100%; margin-top: 48px; padding: 24px 0 4px; border-top: 1px solid var(--line); text-align: left; }
.w-next .w-title span { display: inline-block; transition: translate .3s var(--ease); }
.w-next:hover .w-title span { translate: 6px 0; }
@media (max-width: 767px) {
  .w-grid { grid-template-columns: 1fr; }
  .w-facts { grid-template-columns: 1fr; }
  .p-close { top: 10px; margin: 10px 10px -54px 0; }
}
@media (prefers-reduced-motion: reduce) { .w-card, .w-thumb img, .w-thumb svg, .p-close { transition: none; } }

/* ---------- Work as a full page (not a popup) ---------- */
.panel.page { left: 0; right: 0; top: 0; bottom: 0; width: auto; transform: none; border: 0; border-radius: 0; box-shadow: none; translate: 0 0; padding-bottom: calc(var(--tabs-h) + 24px); }
.panel.page .page-top { position: sticky; top: 0; z-index: 20; background-color: var(--paper); background-image: var(--bg-pat); background-size: var(--bg-size); background-attachment: fixed; }
.panel.page .panel-in { max-width: 1200px; margin: 0 auto; padding-top: clamp(20px, 3vw, 40px); }
.page-open .board { opacity: 0; filter: none; pointer-events: none; }
@media (max-width: 767px) {
  .panel.page { top: 0; width: auto; }
  .page-open .board { display: none; }
}

/* ---------- Work: three illustration cards, side by side, one screen ---------- */
#panel-work:not(.in-case) { overflow: hidden; display: flex; flex-direction: column; padding-bottom: calc(var(--tabs-h) + 16px); }
#panel-work:not(.in-case) .panel-in { flex: 1; min-height: 0; width: 100%; max-width: none; padding-top: 0; padding-bottom: 0; display: flex; }
#panel-work:not(.in-case) .w-intro { display: none; }
#panel-work:not(.in-case) #projects { flex: 1; min-height: 0; container-type: size; display: grid; place-items: center; }
.w-cards { list-style: none; margin: 0; padding: 0; display: flex; justify-content: center; align-items: center; gap: clamp(20px, 3vw, 48px); width: 100%; height: 100%; }
.w-cards li { height: calc(min(92cqh, (100cqw - 2 * clamp(20px, 3vw, 48px)) / 3 * 1448 / 1086) * .675); aspect-ratio: 1086 / 1448; animation: w-in .7s var(--ease) both; animation-delay: calc(var(--n) * .09s); }
.w-ccard { display: block; width: 100%; height: 100%; padding: 8px; background: #fff; rotate: calc((var(--n) - 1) * 2.5deg); box-shadow: 0 0 0 1px var(--line), 0 26px 40px -28px rgba(62, 11, 14, .6); transition: rotate .45s var(--ease), translate .45s var(--ease), box-shadow .45s var(--ease); }
.w-cards li:nth-child(2) .w-ccard { translate: 0 -10px; }
.w-ccard img { display: block; width: 100%; height: 100%; object-fit: cover; -webkit-user-drag: none; }
.w-cards li { position: relative; z-index: 1; }
.w-cards li:hover, .w-cards li:focus-within { z-index: 2; }
.w-ccard { transition: rotate .45s var(--ease), translate .45s var(--ease), scale .45s var(--ease), box-shadow .45s var(--ease); }
.w-ccard:hover, .w-ccard:focus-visible { scale: 1.15; rotate: 0deg; translate: 0 -10px; box-shadow: 0 0 0 1px rgba(62, 11, 14, .2), 0 36px 50px -28px rgba(62, 11, 14, .7); }
.w-ccard:active { scale: 1.13; }
@keyframes w-in { from { opacity: 0; translate: 0 24px; } to { opacity: 1; translate: 0 0; } }
@media (max-width: 700px) {
  #panel-work:not(.in-case) { overflow-x: auto; }
  .w-cards { justify-content: flex-start; overflow-x: auto; scroll-snap-type: x mandatory; padding: 0 20px; scrollbar-width: none; }
  .w-cards li { flex: 0 0 auto; height: calc(min(88cqh, 78vw * 1448 / 1086) * .675); scroll-snap-align: center; }
}
@media (prefers-reduced-motion: reduce) { .w-cards li { animation: none; } .w-ccard { transition: none; } }
@media (max-width: 700px) { .w-ccard:hover, .w-ccard:focus-visible, .w-ccard:active { scale: 1; } }

/* ---------- Case study as four sticky notes ---------- */
.w-notes { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(16px, 2vw, 26px); margin: 40px 0 44px; padding-top: 10px; }
.w-note { position: relative; padding: 30px 22px 34px 22px; min-height: 230px; rotate: var(--r, 0deg); filter: drop-shadow(0 14px 14px rgba(62, 11, 14, .14)) drop-shadow(0 2px 2px rgba(62, 11, 14, .08)); transition: rotate .4s var(--ease), translate .4s var(--ease), filter .4s var(--ease); }
.w-sheet { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; overflow: visible; }
.w-sheet .sh { fill: var(--nc); }
.w-sheet .cu { fill: var(--nd); filter: drop-shadow(-2px -1px 2px rgba(62, 11, 14, .16)); transform-origin: 215px 206px; transition: scale .4s var(--ease); }
.w-note { isolation: isolate; }
.w-note.n1 { --nc: #fcebb0; --nd: #efd27c; --r: -2.5deg; }
.w-note.n2 { --nc: #f9d3e0; --nd: #eeaec4; --r: 1.5deg; translate: 0 10px; }
.w-note.n3 { --nc: #d6e4ef; --nd: #b3c9dc; --r: -1deg; }
.w-note.n4 { --nc: #dcecc6; --nd: #bcd69c; --r: 2.5deg; translate: 0 8px; }
.w-note:hover { rotate: 0deg; translate: 0 -6px; filter: drop-shadow(0 22px 20px rgba(62, 11, 14, .18)) drop-shadow(0 2px 2px rgba(62, 11, 14, .08)); }
.w-note:hover .w-sheet .cu { scale: 1.12; }
.w-ntape { position: absolute; top: -16px; right: -22px; width: 92px; rotate: 38deg; pointer-events: none; }
.w-note.n3 .w-ntape { right: -18px; top: -12px; rotate: 24deg; }
.panel.page { overflow-x: hidden; }
.w-nlabel { font: 600 20px/1.1 var(--serif); margin: 0 0 12px; letter-spacing: -.02em; }
.w-note p { font-size: 15px; line-height: 1.5; color: var(--ink); }
.w-big b { display: block; font: 800 clamp(44px, 4.4vw, 60px)/.9 var(--serif); letter-spacing: -.04em; margin-bottom: 8px; }
@media (max-width: 1100px) { .w-notes { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 30px; } }
@media (max-width: 520px) { .w-ntape, .w-note.n3 .w-ntape { right: -6px; } .w-notes { grid-template-columns: 1fr; } .w-note { min-height: 0; } .w-note.n2, .w-note.n4 { translate: none; } }
@media (prefers-reduced-motion: reduce) { .w-note, .w-sheet .cu { transition: none; } }

/* ---------- Project page: illustration card ---------- */
.w-head.has-card { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 32px; }
.w-cardfig { position: relative; margin: 0; width: clamp(180px, 22vw, 280px); rotate: 3deg; padding: 8px; background: #fff; box-shadow: 0 0 0 1px var(--line), 0 26px 40px -26px rgba(62, 11, 14, .6); transition: rotate .45s var(--ease), translate .45s var(--ease); }
.w-cardfig img:first-child { display: block; width: 100%; aspect-ratio: 1086 / 1448; object-fit: cover; }
.w-cardfig .w-ntape { top: -18px; right: auto; left: 50%; translate: -50% 0; rotate: -4deg; width: 96px; }
.w-cardfig:hover { rotate: 0deg; translate: 0 -6px; }
@media (max-width: 640px) { .w-head.has-card { grid-template-columns: 1fr; } .w-cardfig { justify-self: center; width: min(70%, 260px); margin-top: 8px; } }
@media (prefers-reduced-motion: reduce) { .w-cardfig { transition: none; } }

/* ---------- Work card titles: two options ---------- */
.w-ccard { position: relative; }
.w-label { position: absolute; left: 50%; top: calc(100% + 18px); width: max(100%, 260px); translate: -50% 0; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 4px; pointer-events: none; transition: translate .45s var(--ease), opacity .35s var(--ease); }
.w-ln { color: var(--pink-dot); }
.w-lt { font: 600 24px/1.05 var(--serif); letter-spacing: -.02em; color: var(--ink); }
.w-ld { font: 400 14.5px/1.45 var(--sans); color: var(--ink-2); max-width: 30ch; }
/* B: only the card shows; on hover a paper ticket slides out from under it */
.w-cards[data-label="b"] .w-label { top: calc(100% - 30px); z-index: -1; width: calc(100% - 24px); padding: 40px 18px 16px; background: var(--paper-2); box-shadow: 0 0 0 1px var(--line), 0 18px 30px -20px rgba(62, 11, 14, .5); border-radius: 0 0 4px 4px; opacity: 0; translate: -50% -30px; }
.w-cards[data-label="b"] .w-lt { font-size: 20px; }
.w-cards[data-label="b"] .w-ld { font-size: 14.5px; }
.w-cards[data-label="b"] .w-ccard:hover .w-label, .w-cards[data-label="b"] .w-ccard:focus-visible .w-label { opacity: 1; translate: -50% 0; transition-delay: .12s; }
@media (max-width: 700px) {
  .w-cards { align-items: flex-start; padding-top: 4cqh; }
  .w-cards[data-label="b"] .w-label { opacity: 1; translate: -50% 0; }
}

/* ---------- Hover ticket: kraft paper texture, original cream colour ---------- */
.w-cards[data-label="b"] .w-label { overflow: hidden; isolation: isolate; }
.w-cards[data-label="b"] .w-label::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: url("assets/paper-kraft.webp") 50% 62% / 120% auto no-repeat;
  filter: grayscale(1) brightness(.92) contrast(6.5); mix-blend-mode: soft-light; opacity: .95; }

/* ---------- Hero line: PM keywords in bold ---------- */
.offer mark { background: none; color: var(--ink); font-weight: 600; padding: 0; margin: 0; }

/* ---------- Case page: clean and neat ---------- */
.w-facts2 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(20px, 3vw, 40px); margin: 44px 0 48px; padding-top: 22px; border-top: 1px solid var(--line); }
.w-fact h4 { margin: 0 0 10px; }
.w-fact p { font: 400 15px/1.55 var(--sans); color: var(--ink-2); }
.w-fact .w-big b { display: block; font: 800 clamp(40px, 4vw, 56px)/.9 var(--serif); letter-spacing: -.04em; color: var(--ink); margin-bottom: 8px; }
.w-cardfig { rotate: 0deg; padding: 0; background: none; border-radius: 6px; overflow: hidden; box-shadow: 0 0 0 1px var(--line), 0 18px 32px -26px rgba(62, 11, 14, .45); }
.w-cardfig:hover { rotate: 0deg; translate: 0 -4px; }
@media (max-width: 1100px) { .w-facts2 { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 28px; } }
@media (max-width: 520px) { .w-facts2 { grid-template-columns: 1fr; } }

/* ---------- Overview page: links to the full case study ---------- */
.w-topcta { margin-top: 22px; }
.w-cs { display: flex; justify-content: space-between; align-items: center; gap: 20px 40px; flex-wrap: wrap; margin-top: 44px; padding: 26px 28px; background: var(--paper-2); border-radius: 6px; box-shadow: 0 0 0 1px var(--line); }
.w-cs h4 { margin: 8px 0 6px; font: 600 26px/1.1 var(--serif); letter-spacing: -.02em; }
.w-cs > div > p:not(.cap) { font: 400 15px/1.55 var(--sans); color: var(--ink-2); max-width: 46ch; }
.w-cs .w-links { margin-top: 0; }

/* ---------- Work: responsive pass (tablet + phone) ---------- */
/* Overview pages: one fluid type scale, phone → laptop */
.w-head h3 { font-size: clamp(38px, 5vw + 20px, 68px); }
.w-fact .w-big b, .w-big b { font-size: clamp(40px, 2.4vw + 30px, 56px); }
.w-cs h4 { font-size: clamp(22px, .6vw + 19px, 26px); }
.w-next .w-title { font-size: clamp(22px, 1.2vw + 17px, 30px); }
.w-fact p, .w-cs > div > p:not(.cap) { font-size: clamp(14.5px, .15vw + 14px, 15.5px); }
@media (max-width: 1100px) { .w-cardfig { width: clamp(200px, 28vw, 280px); } }

/* Touch screens have no hover: show each card's ticket all the time */
@media (hover: none) {
  .w-cards[data-label="b"] .w-label { opacity: 1; translate: -50% 0; }
}

/* Tablet: bigger cards, room for the tickets underneath */
@media (min-width: 701px) and (max-width: 1100px) {
  .w-cards { align-items: center; padding: 0 0 130px; }
  .w-cards[data-label="b"] .w-label { opacity: 1; translate: -50% 0; }
  .w-cards li { height: min(64cqh, (100cqw - 2 * clamp(20px, 3vw, 48px)) / 3 * 1448 / 1086 * .94); }
  .w-cards[data-label="b"] .w-lt { font-size: 19px; }
  .w-cards[data-label="b"] .w-ld { font-size: 13.5px; }
}

/* Phone: cards stacked one under another, page scrolls, ticket is the caption */
@media (max-width: 700px) {
  #panel-work:not(.in-case) { overflow-x: hidden; overflow-y: auto; display: block; padding-bottom: calc(var(--tabs-h) + 28px); }
  #panel-work:not(.in-case) .panel-in { display: block; }
  #panel-work:not(.in-case) #projects { display: block; container-type: normal; }
  .w-cards { flex-direction: column; align-items: center; justify-content: flex-start; overflow: visible; scroll-snap-type: none; height: auto; gap: 40px; padding: 12px 0 8px; }
  .w-cards li { flex: none; width: min(84vw, 340px); height: auto; aspect-ratio: auto; }
  .w-ccard { height: auto; rotate: calc((var(--n) - 1) * 1.5deg); }
  .w-cards li:nth-child(2) .w-ccard { translate: none; }
  .w-ccard img { height: auto; aspect-ratio: 1086 / 1448; }
  .w-cards[data-label="b"] .w-label { position: relative; left: auto; top: auto; z-index: 0; width: auto; translate: none; opacity: 1; margin: 8px 0 0; padding: 14px 12px 6px; background: var(--paper-2); box-shadow: none; border-radius: 0; }
  .w-cards[data-label="b"] .w-lt { font-size: 22px; }
  .w-cards[data-label="b"] .w-ld { font-size: 14.5px; }
}

/* ---------- Phones: "best on desktop" notice ---------- */
.dk { position: fixed; inset: 0; z-index: 300; display: grid; place-items: end center; padding: 16px 16px calc(16px + env(safe-area-inset-bottom)); background: rgba(62, 11, 14, .28); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); }
.dk[hidden] { display: none; }
.dk-card { width: min(100%, 440px); padding: 26px 22px 22px; background: var(--paper-2); border-radius: 14px; box-shadow: 0 0 0 1px var(--line), 0 30px 50px -24px rgba(62, 11, 14, .55); animation: dk-in .45s var(--ease) both; }
.dk-card .cap { color: var(--pink-dot); margin-bottom: 10px; }
.dk-card h2 { font: 600 clamp(26px, 7vw, 32px)/1.08 var(--serif); letter-spacing: -.02em; }
.dk-card h2 em { font-weight: 400; }
.dk-card p:not(.cap) { margin-top: 12px; font: 400 15px/1.55 var(--sans); color: var(--ink-2); }
.dk-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.dk-actions .btn { width: 100%; justify-content: center; min-height: 48px; }
.dk-actions .pill { flex: 1 1 auto; justify-content: center; min-height: 44px; padding: 10px 14px; }
.dk-open body { overflow: hidden; }
@keyframes dk-in { from { opacity: 0; translate: 0 24px; } }
@media (prefers-reduced-motion: reduce) { .dk-card { animation: none; } }


/* ---------- Writing: index + article (full page) ---------- */
.wr { max-width: 760px; margin: 0 auto; }
.wr-head { padding: clamp(8px, 3vh, 32px) 0 28px; border-bottom: 1px solid var(--line); }
.wr-head h2 { font: 600 clamp(40px, 4vw + 14px, 60px)/1.02 var(--serif); letter-spacing: -.02em; margin-top: 12px; }
.wr-head h2 em { font-weight: 400; }
.wr-head .lead { margin-top: 14px; max-width: 52ch; font-size: clamp(16px, .3vw + 15px, 18px); }
.wr-list { list-style: none; margin: 0; padding: 0; }
.wr-list li { border-bottom: 1px solid var(--line); }
.wr-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px 24px; align-items: center; width: 100%; padding: 28px 4px; text-align: left; }
.wr-row .cap { grid-column: 1; }
.wr-title { grid-column: 1; font: 600 clamp(24px, 1.2vw + 18px, 32px)/1.12 var(--serif); letter-spacing: -.02em; color: var(--ink); transition: color .15s; }
.wr-title em { font-weight: 400; }
.wr-dek { grid-column: 1; font: 400 16px/1.5 var(--sans); color: var(--ink-2); max-width: 58ch; }
.wr-go { grid-column: 2; grid-row: 1 / 4; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; box-shadow: 0 0 0 1px var(--line); font: 400 18px var(--serif); transition: background .2s, translate .2s var(--ease); }
.wr-row:hover .wr-go, .wr-row:focus-visible .wr-go { background: var(--pink); translate: 4px 0; }
.wr-row:hover .wr-title { color: #6b1d2a; }
.wr-tag { color: var(--pink-dot); }

/* article */
.wr-art { max-width: 680px; margin: 0 auto; }
.wr-art .w-back { margin-bottom: 36px; }
.wr-art h1 { font: 600 clamp(38px, 3.6vw + 18px, 60px)/1.04 var(--serif); letter-spacing: -.02em; margin: 14px 0 0; }
.wr-art h1 em { font-weight: 400; }
.wr-art h1:focus { outline: none; }
.wr-dekL { margin-top: 18px; font: 400 clamp(17px, .4vw + 15.5px, 20px)/1.5 var(--sans); color: var(--ink-2); }
.wr-body { margin-top: 36px; padding-top: 32px; border-top: 1px solid var(--line); font: 400 clamp(16.5px, .2vw + 16px, 18px)/1.7 var(--sans); color: var(--ink); }
.wr-body > * + * { margin-top: 1.05em; }
.wr-body h2 { margin-top: 2.2em; font: 600 clamp(24px, .6vw + 21px, 28px)/1.15 var(--serif); letter-spacing: -.02em; }
.wr-body ul, .wr-body ol { padding-left: 1.3em; }
.wr-body li + li { margin-top: .45em; }
.wr-body li::marker { color: var(--pink-dot); }
.wr-body strong { font-weight: 600; }
.wr-body blockquote { margin: 2em 0; padding: 4px 0 4px 22px; border-left: 3px solid var(--pink); }
.wr-body blockquote p { font: 600 clamp(22px, .6vw + 19px, 26px)/1.3 var(--serif); letter-spacing: -.02em; color: var(--ink); }
.wr-end { margin-top: 56px; padding-top: 28px; border-top: 1px solid var(--line); }
.wr-author { display: flex; align-items: center; gap: 14px; }
.wr-author img { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 1px var(--line); }
.wr-author p { font: 400 15px/1.5 var(--sans); color: var(--ink-2); }
.wr-author b { display: block; font: 600 18px/1.2 var(--serif); letter-spacing: -.02em; color: var(--ink); }
.wr-cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.wr-more { margin-top: 48px; }
.wr-more .cap { margin-bottom: 12px; }
.wr-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.wr-card { display: flex; flex-direction: column; gap: 8px; padding: 20px; text-align: left; background: var(--paper-2); border-radius: 10px; box-shadow: 0 0 0 1px var(--line); transition: translate .25s var(--ease), box-shadow .25s var(--ease); }
.wr-card:hover, .wr-card:focus-visible { translate: 0 -3px; box-shadow: 0 0 0 1px rgba(62, 11, 14, .22), 0 18px 28px -22px rgba(62, 11, 14, .5); }
.wr-card .wr-title { font-size: 22px; }
@media (max-width: 640px) {
  .wr-row { grid-template-columns: 1fr; padding: 22px 0; }
  .wr-go { display: none; }
  .wr-cards { grid-template-columns: 1fr; }
}

/* Essay spot illustrations: ink line art, solid ink depth, one pink accent */
.wr-fig { margin: 3em 0; padding: 8px 0 0; }
.wr-fig svg { display: block; width: 100%; max-width: 480px; height: auto; margin: 0 auto; overflow: visible; }
.wr-fig figcaption { margin-top: 10px; text-align: center; font: 400 14px/1.4 var(--sans); color: var(--ink-2); opacity: .8; }
.sk-l, .sk-w, .sk-acc { stroke: var(--head); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.sk-l { fill: none; }
.sk-l.thin { stroke-width: 1.1; }
.sk-l.dash { stroke-dasharray: 3 4; }
.sk-l.faint { opacity: .3; }
.sk-ghost { opacity: .45; }
.sk-w { fill: #fffdf9; }
.sk-acc { fill: var(--pink-dot); }
.sk-ink { fill: var(--head); stroke: none; }
.sk-q { font: 600 17px var(--sans); fill: var(--head); }



/* ===== Project overview pages (redesign) ===== */
.cs2 { max-width: 1120px; }
.cs2 .w-back { margin-bottom: clamp(24px, 3vw, 40px); }
.cs2-hero { max-width: 767px; }
.cs2-hero .cap { margin-bottom: 14px; }
.cs2-hero h3 { font: 600 clamp(38px, 4.2vw + 12px, 68px)/1 var(--serif); letter-spacing: -.025em; color: var(--ink); text-wrap: balance; }
.cs2-hero h3 em { font-weight: 400; }
.cs2-hero h3:focus { outline: none; }
.cs2-sub { margin-top: 18px; max-width: 56ch; font: 400 clamp(16.5px, .3vw + 15.5px, 19px)/1.55 var(--sans); color: var(--ink-2); }
.cs2-heroimg { margin: clamp(28px, 3vw, 44px) 0 0; border-radius: 18px; overflow: hidden; background: var(--paper-2); box-shadow: 0 0 0 1px var(--line), 0 30px 50px -34px rgba(62, 11, 14, .55); }
.cs2-heroimg img { display: block; width: 100%; aspect-ratio: 2 / 1; object-fit: cover; }

.cs2-glance { display: flex; align-items: center; justify-content: space-between; gap: 24px 40px; flex-wrap: wrap; padding: 22px 0; border-bottom: 1px solid var(--line); }
.cs2-glance dl { display: grid; grid-template-columns: repeat(4, auto); gap: 8px clamp(24px, 3vw, 48px); margin: 0; }
.cs2-glance dt { margin-bottom: 4px; }
.cs2-glance dd { margin: 0; font: 500 15px/1.4 var(--sans); color: var(--ink); }
.cs2-glance-cta { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.cs2-fmt { font: 400 12.5px var(--sans); color: var(--ink-2); }

.cs2-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; margin-top: clamp(32px, 3.5vw, 52px); }
.cs2-stat { padding: 24px 26px 22px; background: var(--paper-2); border-radius: 16px; box-shadow: 0 0 0 1px var(--line); }
.cs2-stat:first-child { background: var(--pink); box-shadow: none; }
.cs2-stat b { display: block; font: 800 clamp(48px, 3.4vw + 20px, 72px)/.9 var(--serif); letter-spacing: -.04em; color: var(--ink); }
.cs2-stat span { display: block; margin-top: 10px; font: 400 15px/1.45 var(--sans); color: var(--ink-2); max-width: 30ch; }

.cs2-two { margin-top: clamp(44px, 5vw, 72px); }
.cs2-two h4, .cs2-call h4 { margin: 0 0 12px; }
.cs2-two p { font: 400 clamp(22px, .8vw + 17px, 30px)/1.35 var(--serif); letter-spacing: -.01em; color: var(--ink); max-width: 34ch; }

.cs2-call { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); align-items: center; gap: clamp(24px, 4vw, 64px); margin-top: clamp(44px, 5vw, 72px); padding-top: clamp(32px, 3vw, 44px); border-top: 1px solid var(--line); }
.cs2-call ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 22px; }
.cs2-call li { display: grid; grid-template-columns: 44px 1fr; align-items: baseline; }
.cs2-n { font: italic 400 22px var(--serif); color: var(--pink-dot); }
.cs2-call li p { font: 600 clamp(20px, .7vw + 16px, 25px)/1.3 var(--serif); letter-spacing: -.015em; color: var(--ink); }
.cs2-ill { margin: 0; }
.cs2-ill svg { display: block; width: 100%; max-width: 520px; height: auto; margin-left: auto; overflow: visible; }

.cs2-gallery { display: grid; gap: 20px; margin-top: clamp(40px, 4.5vw, 64px); }
.cs2-gallery figure { margin: 0; }
.cs2-gallery img { display: block; width: 100%; height: auto; border-radius: 14px; box-shadow: 0 0 0 1px var(--line), 0 24px 40px -30px rgba(62, 11, 14, .5); }
.cs2-gallery figcaption { margin-top: 10px; font: 400 14px/1.45 var(--sans); color: var(--ink-2); }
.cs2-gallery.phones { grid-template-columns: repeat(2, minmax(0, 240px)); justify-content: center; gap: clamp(24px, 6vw, 90px); }
.cs2-gallery.phones img { border-radius: 22px; }

.cs2-band { display: flex; justify-content: space-between; align-items: center; gap: 20px 40px; flex-wrap: wrap; margin-top: clamp(48px, 5vw, 80px); padding: clamp(28px, 3vw, 44px); border-radius: 20px; background: var(--head); color: var(--paper-2); }
.cs2-band .cap { color: var(--pink); }
.cs2-band h4 { margin: 8px 0 6px; font: 600 clamp(24px, 1vw + 18px, 32px)/1.1 var(--serif); letter-spacing: -.02em; color: var(--paper-2); }
.cs2-band p:not(.cap):not(.cs2-links) { font: 400 15.5px/1.55 var(--sans); color: rgba(251, 248, 242, .75); max-width: 46ch; }
.cs2-links { display: flex; gap: 12px; flex-wrap: wrap; }
.cs2-band .btn { background: var(--pink); color: var(--ink); }
.cs2-band .pill { background: transparent; color: var(--paper-2); border-color: rgba(251, 248, 242, .35); box-shadow: none; }
.cs2-band .pill::before { background: var(--pink); }

.cs2-next { display: grid; grid-template-columns: minmax(0, 260px) 1fr; align-items: center; gap: clamp(20px, 3vw, 40px); width: 100%; margin-top: clamp(40px, 4vw, 64px); padding: 18px; text-align: left; background: var(--paper-2); border: 0; border-radius: 18px; box-shadow: 0 0 0 1px var(--line); cursor: pointer; transition: translate .3s var(--ease), box-shadow .3s var(--ease); }
.cs2-next:hover { translate: 0 -3px; box-shadow: 0 0 0 1px var(--line), 0 24px 40px -30px rgba(62, 11, 14, .5); }
.cs2-next img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 12px; }
.cs2-nt { display: block; margin: 8px 0 12px; font: 600 clamp(22px, 1vw + 16px, 30px)/1.12 var(--serif); letter-spacing: -.02em; color: var(--ink); }
.cs2-nt em { font-weight: 400; }
.cs2-go { font: 500 14px var(--sans); color: var(--ink-2); }
.cs2-go span { display: inline-block; transition: translate .3s var(--ease); }
.cs2-next:hover .cs2-go span { translate: 5px 0; }

@media (max-width: 767px) {
  .cs2-glance dl { grid-template-columns: repeat(2, auto); }
  .cs2-glance-cta { align-items: flex-start; }
  .cs2-call { grid-template-columns: 1fr; }
  .cs2-ill svg { margin: 0 auto; }
  .cs2-next { grid-template-columns: 1fr; }
}

/* overview pages: info sections */
.cs2-glance dl { grid-template-columns: repeat(auto-fit, minmax(140px, auto)); flex: 1 1 560px; }
.cs2-over { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 3fr); gap: 8px clamp(24px, 4vw, 64px); margin-top: clamp(32px, 3.5vw, 52px); }
.cs2-over p { font: 400 clamp(17px, .35vw + 15.5px, 20px)/1.6 var(--sans); color: var(--ink); max-width: 62ch; }
.cs2-stats { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.cs2-more { margin-top: 14px; font: 400 16.5px/1.6 var(--sans) !important; color: var(--ink-2) !important; max-width: 60ch !important; letter-spacing: 0 !important; }
.cs2-pts { margin-top: 28px; }
.cs2-pts h5, .cs2-learn h5 { margin: 0 0 14px; }
.cs2-pts ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; }
.cs2-pts li { display: grid; gap: 6px; padding: 18px 20px; background: var(--paper-2); border-radius: 14px; box-shadow: 0 0 0 1px var(--line); }
.cs2-pts li .cs2-n { font-size: 18px; }
.cs2-pts b { font: 600 18px/1.25 var(--serif); color: var(--ink); }
.cs2-pts li > span:last-child { font: 400 15px/1.5 var(--sans); color: var(--ink-2); }
.cs2-proc { margin-top: clamp(44px, 5vw, 72px); }
.cs2-proc h4 { margin: 0 0 18px; }
.cs2-proc ol { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 24px 20px; position: relative; }
.cs2-proc li { display: grid; gap: 6px; align-content: start; position: relative; padding-top: 22px; }
.cs2-proc li::before { content: ""; position: absolute; top: 5px; left: 0; right: -20px; border-top: 1.5px dashed var(--line-2, rgba(62,11,14,.25)); }
.cs2-proc li:last-child::before { right: 0; }
.cs2-dot { position: absolute; top: 0; left: 0; width: 11px; height: 11px; border-radius: 50%; background: var(--pink-dot); }
.cs2-proc .cs2-n { font-size: 17px; }
.cs2-proc b { font: 600 18px/1.25 var(--serif); color: var(--ink); }
.cs2-proc li > span:last-child { font: 400 14.5px/1.5 var(--sans); color: var(--ink-2); }
.cs2-feat { margin-top: clamp(44px, 5vw, 72px); }
.cs2-feat h4 { margin: 0 0 16px; }
.cs2-feat > div { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.cs2-feat article { padding: 22px 24px; border-radius: 16px; background: var(--paper-2); box-shadow: 0 0 0 1px var(--line); }
.cs2-feat h5 { margin: 0 0 8px; font: 600 20px/1.2 var(--serif); color: var(--ink); }
.cs2-feat p { font: 400 15px/1.55 var(--sans); color: var(--ink-2); }
.cs2-learn { margin-top: clamp(44px, 5vw, 72px); padding-top: clamp(28px, 3vw, 40px); border-top: 1px solid var(--line); }
.cs2-learn h4 { margin: 0 0 18px; }
.cs2-learn ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px clamp(20px, 3vw, 40px); }
.cs2-learn li { display: grid; gap: 8px; }
.cs2-learn b { font: 600 clamp(19px, .5vw + 16px, 22px)/1.3 var(--serif); letter-spacing: -.01em; color: var(--ink); }
.cs2-learn span { font: 400 15px/1.55 var(--sans); color: var(--ink-2); }
@media (max-width: 767px) {
  .cs2-over { grid-template-columns: 1fr; }
  .cs2-proc li::before { display: none; }
}

/* ===== About page (site design system) ===== */
.ab2 { max-width: 1120px; }
.ab2 .cap { margin: 0; }
.ab2-head h2 { margin-top: 14px; max-width: 22ch; font: 600 clamp(34px, 2.6vw + 18px, 60px)/1.04 var(--serif); letter-spacing: -.025em; color: var(--ink); text-wrap: balance; }
.ab2-head h2 em, .ab2-h em, .ab2-craft em { font-weight: 400; font-style: italic; }
.ab2-facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin: clamp(32px, 4vw, 56px) 0 0; }
.ab2-facts div { padding: 18px 20px; background: var(--paper-2); border-radius: 14px; box-shadow: 0 0 0 1px var(--line); }
.ab2-facts div:first-child { background: var(--pink); box-shadow: none; }
.ab2-facts dd { margin: 8px 0 0; font: 600 clamp(18px, .5vw + 15px, 22px)/1.25 var(--serif); letter-spacing: -.015em; color: var(--ink); }
.ab2-hello { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(28px, 5vw, 80px); align-items: center; margin-top: clamp(48px, 6vw, 88px); }
.ab2-photo { margin: 0; display: grid; gap: 10px; }
.ab2-photo img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; object-position: 30% 70%; border-radius: 4px; box-shadow: 0 0 0 1px var(--line), 0 30px 50px -34px rgba(62, 11, 14, .55); rotate: -1.5deg; }
.ab2-photo .fig { justify-self: end; }
.ab2-craft { margin-top: 14px; font: 600 clamp(22px, 1vw + 16px, 32px)/1.25 var(--serif); letter-spacing: -.02em; color: var(--ink); }
.ab2-note { margin-top: 18px; font: 400 17px/1.6 var(--sans); color: var(--ink-2); max-width: 54ch; }
.ab2-sec { margin-top: clamp(56px, 6vw, 96px); }
.ab2-h { margin: 0 0 22px; font: 600 clamp(28px, 1.6vw + 18px, 42px)/1.05 var(--serif); letter-spacing: -.025em; color: var(--ink); }
.ab2-h .cap { display: block; margin-bottom: 10px; }
.ab2-jobs { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.ab2-jobs li { display: grid; grid-template-columns: 170px minmax(0, 1fr) minmax(0, 1.7fr); gap: 8px clamp(20px, 3vw, 44px); padding: 24px 0; border-bottom: 1px solid var(--line); align-items: baseline; }
.ab2-jobs li:first-child b::after { content: ""; display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: var(--pink-dot); margin-left: 10px; vertical-align: middle; }
.ab2-jobs b { display: block; font: 600 clamp(20px, .6vw + 16px, 24px)/1.2 var(--serif); letter-spacing: -.02em; color: var(--ink); }
.ab2-jobs div span { display: block; margin-top: 4px; font: 500 14.5px var(--sans); color: var(--ink-2); }
.ab2-jobs p { font: 400 15.5px/1.6 var(--sans); color: var(--ink-2); }
.ab2-skills { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.ab2-skills article { padding: 22px 22px 24px; background: var(--paper-2); border-radius: 16px; box-shadow: 0 0 0 1px var(--line); }
.ab2-skills h4 { margin: 0 0 14px; font: 600 20px/1.2 var(--serif); letter-spacing: -.015em; color: var(--ink); }
.ab2-skills ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 7px; }
.ab2-skills li { padding: 6px 12px; border-radius: 999px; font: 500 13.5px/1.2 var(--sans); color: var(--ink); background: #fff; border: 1px solid rgba(62, 11, 14, .16); }
.ab2-skills article:first-child li:first-child { background: var(--blue-pill); border-color: transparent; }
.ab2-awards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.ab2-awards li { display: grid; gap: 6px; padding: 22px 22px 24px; background: var(--paper-2); border-radius: 16px; box-shadow: 0 0 0 1px var(--line); }
.ab2-awards li:first-child { background: var(--pink); box-shadow: none; }
.ab2-awards b { font: 600 21px/1.2 var(--serif); letter-spacing: -.02em; color: var(--ink); }
.ab2-awards li > span:last-child { font: 400 14.5px/1.45 var(--sans); color: var(--ink-2); }
.ab2-say { margin-top: clamp(56px, 6vw, 96px); padding: clamp(28px, 4vw, 52px); border-radius: 20px; background: var(--head); color: var(--paper-2); }
.ab2-say .cap { color: var(--pink); }
.ab2-say p { margin: 12px 0 26px; max-width: 32ch; font: 600 clamp(24px, 1.3vw + 16px, 36px)/1.2 var(--serif); letter-spacing: -.02em; color: var(--paper-2); }
.ab2-say p em { font-weight: 400; color: var(--pink); }
.ab2-say .btn { background: var(--pink); color: var(--ink); }
@media (max-width: 767px) {
  .ab2-facts, .ab2-skills, .ab2-awards { grid-template-columns: 1fr; }
  .ab2-hello { grid-template-columns: 1fr; }
  .ab2-photo { max-width: 300px; }
  .ab2-jobs li { grid-template-columns: 1fr; }
}
.ab2 > .sr + .ab2-hello { margin-top: clamp(8px, 1.5vw, 20px); }

/* About: plainer, personal voice */
.ab2-hi { margin: 0; font: 600 clamp(36px, 2.4vw + 22px, 60px)/1 var(--serif); letter-spacing: -.03em; color: var(--ink); }
.ab2-lede { margin-top: 18px; max-width: 46ch; font: 400 clamp(18px, .4vw + 16px, 21px)/1.55 var(--sans); color: var(--ink); }
.ab2-h2 { margin: 0 0 18px; padding-top: 14px; border-top: 1px solid var(--line); font: 600 clamp(24px, .8vw + 18px, 30px)/1.15 var(--serif); letter-spacing: -.02em; color: var(--ink); }
.ab2-date { margin-left: 8px; font: 500 13px var(--sans); letter-spacing: 0; color: var(--ink-2); }
.ab2-prose { max-width: 64ch; }
.ab2-prose p { font: 400 17px/1.7 var(--sans); color: var(--ink); }
.ab2-prose p + p { margin-top: 16px; }
.ab2-now { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(28px, 4vw, 64px); }
.ab2-list { margin: 0; }
.ab2-list div { display: grid; grid-template-columns: 110px 1fr; gap: 12px; padding: 9px 0; border-bottom: 1px dashed var(--line); }
.ab2-list dt { font: 500 14px var(--sans); color: var(--ink-2); }
.ab2-list dd { margin: 0; font: 400 15.5px/1.5 var(--sans); color: var(--ink); }
.ab2-plain { font: 400 17px/1.7 var(--sans); color: var(--ink); max-width: 46ch; }
.ab2-say-links { display: flex; flex-wrap: wrap; gap: 12px; margin: 0 !important; font: inherit !important; }
.ab2-say .pill { background: transparent; color: var(--paper-2); border-color: rgba(251, 248, 242, .35); box-shadow: none; }
.ab2-say p:not(.cap):not(.ab2-say-links) { font: 600 clamp(22px, 1vw + 16px, 30px)/1.3 var(--serif) !important; }
.ab2-jobs li:first-child b::after { display: none; }
@media (max-width: 767px) { .ab2-now { grid-template-columns: 1fr; } }

/* ===== Case overview v3: plain, first-person ===== */
.cs3 { max-width: 1120px; }
.cs3 .w-back { margin-bottom: clamp(24px, 3vw, 40px); }
.cs3-head .cap { margin-bottom: 12px; }
.cs3-head h3 { max-width: 24ch; font: 600 clamp(32px, 2.4vw + 18px, 54px)/1.06 var(--serif); letter-spacing: -.025em; color: var(--ink); text-wrap: balance; }
.cs3-head h3:focus { outline: none; }
.cs3-meta { display: flex; flex-wrap: wrap; gap: 10px 36px; margin: 22px 0 0; }
.cs3-meta dt { font: 500 13px var(--sans); color: var(--ink-2); }
.cs3-meta dd { margin: 2px 0 0; font: 500 15.5px/1.4 var(--sans); color: var(--ink); }
.cs3-hero { margin: clamp(26px, 3vw, 40px) 0 0; border-radius: 16px; overflow: hidden; box-shadow: 0 0 0 1px var(--line), 0 30px 50px -34px rgba(62, 11, 14, .55); }
.cs3-hero img { display: block; width: 100%; aspect-ratio: 2 / 1; object-fit: cover; }
.cs3-body { margin-top: clamp(36px, 4vw, 60px); }
.cs3-sec { display: grid; grid-template-columns: minmax(0, 220px) minmax(0, 1fr); gap: 8px clamp(24px, 4vw, 64px); padding: 26px 0; border-top: 1px solid var(--line); }
.cs3-sec h4 { margin: 0; font: 600 20px/1.25 var(--serif); letter-spacing: -.015em; color: var(--ink); }
.cs3-txt { max-width: 64ch; }
.cs3-txt p { font: 400 17px/1.7 var(--sans); color: var(--ink); }
.cs3-txt p + p { margin-top: 14px; }
.cs3-sec.has-ill .cs3-ill { grid-column: 2; margin: 18px 0 0; max-width: 460px; }
.cs3-ill svg { display: block; width: 100%; height: auto; overflow: visible; }
.cs3-tab { border-collapse: collapse; width: 100%; max-width: 560px; }
.cs3-tab th, .cs3-tab td { padding: 10px 0; border-bottom: 1px dashed var(--line); text-align: left; }
.cs3-tab th { font: 400 16px/1.4 var(--sans); color: var(--ink); }
.cs3-tab td { text-align: right; font: 600 22px/1 var(--serif); letter-spacing: -.02em; color: var(--ink); white-space: nowrap; padding-left: 20px; }
.cs3-note { grid-column: 2; margin-top: 14px; max-width: 60ch; font: 400 15px/1.6 var(--sans); color: var(--ink-2); }
.cs3 .cs2-band h4 { max-width: 30ch; font-size: clamp(20px, .8vw + 16px, 26px); line-height: 1.25; }
@media (max-width: 767px) {
  .cs3-sec { grid-template-columns: 1fr; }
  .cs3-sec.has-ill .cs3-ill, .cs3-note { grid-column: 1; }
}

/* ===== About v3: visual, short ===== */
.ab3-hello { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 6fr); gap: clamp(32px, 6vw, 96px); align-items: center; padding-top: clamp(8px, 2vw, 24px); }
.ab3-photo { position: relative; margin: 0; display: grid; gap: 10px; rotate: -2.5deg; }
.ab3-photo img:not(.tape) { display: block; width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; object-position: 30% 70%; background: #fff; padding: 12px 12px 44px; box-shadow: 0 0 0 1px var(--line), 0 30px 50px -30px rgba(62, 11, 14, .55); }
.ab3-photo .tape { position: absolute; left: 50%; top: -34px; width: 120px; translate: -50% 0; rotate: -6deg; z-index: 2; pointer-events: none; }
.ab3-photo .fig { position: absolute; left: 0; right: 0; bottom: 14px; text-align: center; }
.ab3-intro h3 { margin: 12px 0 0; font: 600 clamp(48px, 4vw + 20px, 92px)/.95 var(--serif); letter-spacing: -.04em; color: var(--ink); }
.ab3-intro > p:not(.cap) { margin-top: 20px; max-width: 34ch; font: 400 clamp(19px, .6vw + 16px, 23px)/1.45 var(--sans); color: var(--ink); }
.ab3-note { position: relative; display: grid; gap: 6px; width: min(300px, 100%); margin-top: 32px; padding: 22px 22px 24px; rotate: 2deg; background: linear-gradient(180deg, #fcefb6 0%, #f9e59c 100%); box-shadow: 0 0 0 .5px rgba(120, 90, 20, .18), 0 18px 24px -18px rgba(62, 11, 14, .45); }
.ab3-note b { font: 600 13px var(--sans); text-transform: uppercase; letter-spacing: .12em; color: var(--ink-2); }
.ab3-note span { font: 500 16px/1.4 var(--sans); color: var(--ink); }
.ab3-want { margin-top: 6px; font-family: var(--serif) !important; font-weight: 600 !important; font-size: 18px !important; }
.ab3-note mark { padding: 0 3px; background: linear-gradient(transparent 50%, var(--pink) 50% 92%, transparent 92%); color: inherit; }
.ab3-road { margin-top: clamp(64px, 7vw, 110px); }
.ab3-road ol { list-style: none; margin: 8px 0 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; position: relative; }
.ab3-road ol::before { content: ""; position: absolute; left: 6px; right: 6px; top: 6px; border-top: 2px dashed rgba(62, 11, 14, .22); }
.ab3-road li { position: relative; padding-top: 30px; display: grid; gap: 6px; align-content: start; }
.ab3-dot { position: absolute; top: 0; left: 0; width: 14px; height: 14px; border-radius: 50%; background: var(--paper); border: 2px solid var(--head); }
.ab3-road li.now .ab3-dot { background: var(--pink-dot); border-color: var(--pink-dot); box-shadow: 0 0 0 6px rgba(240, 143, 176, .25); }
.ab3-road b { font: 600 20px/1.2 var(--serif); letter-spacing: -.015em; color: var(--ink); }
.ab3-road p { font: 400 15px/1.5 var(--sans); color: var(--ink-2); }
.ab3-off { margin-top: clamp(48px, 5vw, 72px); display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; padding: 20px 24px; border-radius: 16px; background: var(--paper-2); box-shadow: 0 0 0 1px var(--line); }
.ab3-off ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.ab3-off li { padding: 7px 14px; border-radius: 999px; background: #fff; border: 1px solid rgba(62, 11, 14, .14); font: 500 14px var(--sans); color: var(--ink); }
.ab3-off li:nth-child(1) { background: var(--blue-pill); border-color: transparent; }
.ab3-off li:nth-child(5) { background: var(--pink); border-color: transparent; }
.ab3 .ab2-jobs p { font-size: 15px; }
.ab3 .ab2-say p em { font-weight: 400; color: var(--pink); }
@media (max-width: 767px) {
  .ab3-hello { grid-template-columns: 1fr; }
  .ab3-photo { max-width: 280px; }
  .ab3-road ol { grid-template-columns: 1fr; gap: 22px; }
  .ab3-road ol::before { left: 6px; right: auto; top: 6px; bottom: 6px; border-top: 0; border-left: 2px dashed rgba(62, 11, 14, .22); }
  .ab3-road li { padding: 0 0 0 32px; }
}

/* ===== Case overview v4: visual + short story ===== */
.cs4 .cs2-glance-cta .btn { white-space: nowrap; }
.cs4-story { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: clamp(44px, 5vw, 72px); }
.cs4-story article { position: relative; padding: 26px 24px 28px; background: var(--paper-2); border-radius: 18px; box-shadow: 0 0 0 1px var(--line); }
.cs4-n { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--head); color: var(--paper-2); font: 600 14px var(--sans); }
.cs4-story article:nth-child(2) .cs4-n { background: var(--pink-dot); color: var(--ink); }
.cs4-story h4 { margin: 16px 0 8px; font: 600 22px/1.2 var(--serif); letter-spacing: -.02em; color: var(--ink); }
.cs4-story p { font: 400 16px/1.6 var(--sans); color: var(--ink-2); }
.cs4-band { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 64px); align-items: center; margin-top: clamp(44px, 5vw, 72px); padding: clamp(28px, 4vw, 52px); border-radius: 20px; background: var(--pink); }
.cs4-band.no-q { grid-template-columns: 1fr; justify-items: center; background: var(--paper-2); box-shadow: 0 0 0 1px var(--line); }
.cs4-band blockquote { margin: 0; }
.cs4-band blockquote p { font: 600 clamp(24px, 1.4vw + 16px, 36px)/1.2 var(--serif); letter-spacing: -.02em; color: var(--ink); }
.cs4-band blockquote footer { margin-top: 18px; }
.cs4-ill { margin: 0; width: 100%; max-width: 520px; justify-self: center; }
.cs4-ill svg { display: block; width: 100%; height: auto; overflow: visible; }
@media (max-width: 767px) {
  .cs4-story, .cs4-band { grid-template-columns: 1fr; }
}

/* ===== Case page v5: contents rail, decisions (after benroachdesign.com) ===== */
.w-case.cs5 { max-width: 1200px; display: grid; grid-template-columns: 210px minmax(0, 1fr); gap: clamp(32px, 4vw, 64px); align-items: start; }
.cs5-main { min-width: 0; max-width: 767px; }
.cs5 [id] { scroll-margin-top: 96px; }

.cs5-toc { position: sticky; top: 96px; max-height: calc(100vh - 200px); overflow-y: auto; padding-right: 4px; }
.cs5-toc .w-back { margin-bottom: 22px; }
.cs5-toc ol { list-style: none; margin: 0; padding: 0; border-left: 1px solid var(--line); }
.cs5-toc li a { display: block; margin-left: -1px; padding: 6px 0 6px 14px; border-left: 2px solid transparent; font: 500 13.5px/1.35 var(--sans); color: var(--ink-2); text-decoration: none; transition: color .2s, border-color .2s; }
.cs5-toc li.cs5-sub a { padding-left: 26px; font-weight: 400; font-size: 13px; }
.cs5-toc li a:hover { color: var(--ink); }
.cs5-toc li a.on { color: var(--ink); border-left-color: var(--pink-dot); font-weight: 600; }

.cs5-head { display: grid; grid-template-columns: minmax(0, 1fr) 220px; gap: 24px clamp(28px, 4vw, 56px); align-items: start; }
.cs5-head .cap { margin-bottom: 14px; }
.cs5-head h3 { font: 600 clamp(34px, 2.6vw + 14px, 54px)/1.04 var(--serif); letter-spacing: -.025em; color: var(--ink); text-wrap: balance; }
.cs5-head h3 em { font-weight: 400; }
.cs5-head h3:focus { outline: none; }
.cs5-sum { margin-top: 18px; max-width: 52ch; font: 400 17px/1.55 var(--sans); color: var(--ink-2); }
.cs5-meta { display: grid; gap: 16px; margin: 4px 0 0; }
.cs5-meta dt { margin-bottom: 3px; }
.cs5-meta dd { margin: 0; font: 500 14.5px/1.4 var(--sans); color: var(--ink); }

.cs5-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); margin-top: clamp(32px, 3.5vw, 48px); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.cs5-stats > div { padding: 24px 20px 22px 0; }
.cs5-stats > div + div { padding-left: 20px; border-left: 1px solid var(--line); }
.cs5-stats b { display: block; font: 700 clamp(40px, 2.4vw + 20px, 60px)/.95 var(--serif); letter-spacing: -.04em; color: var(--ink); }
.cs5-stats > div:first-child b { background: linear-gradient(transparent 58%, var(--pink) 58% 92%, transparent 92%); width: fit-content; }
.cs5-stats span { display: block; margin-top: 10px; font: 400 14px/1.45 var(--sans); color: var(--ink-2); max-width: 24ch; }

.cs5-short { margin-top: clamp(48px, 5vw, 72px); }
.cs5-short > h4, .cs5-sec h4, .cs5-dec h4 { font: 600 clamp(26px, 1.2vw + 18px, 36px)/1.1 var(--serif); letter-spacing: -.02em; color: var(--ink); text-wrap: balance; }
.cs5-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-top: 20px; }
.cs5-grid > div { padding: 20px 22px; background: var(--paper-2); border-radius: 14px; box-shadow: 0 0 0 1px var(--line); }
.cs5-grid > div:last-child { background: var(--pink); box-shadow: none; }
.cs5-grid .cap { margin-bottom: 8px; }
.cs5-grid p:not(.cap) { font: 400 15.5px/1.5 var(--sans); color: var(--ink); }

.cs5-sec, .cs5-dec { margin-top: clamp(56px, 6vw, 88px); max-width: 720px; }
.cs5-sec > .cap, .cs5-dec > .cap { margin-bottom: 10px; }
.cs5-sec > p:not(.cap), .cs5-dec > p:not(.cap):not(.cs5-pull) { margin-top: 14px; font: 400 16.5px/1.6 var(--sans); color: var(--ink-2); }
.cs5-sec b, .cs5-dec b, .cs5-grid b { font-weight: 600; color: var(--ink); }
.cs5-what { padding-top: clamp(40px, 4vw, 56px); border-top: 1px solid var(--line); }
.cs5-what + .cs5-dec { margin-top: clamp(32px, 3vw, 44px); }
.cs5-dec + .cs5-dec { padding-top: clamp(48px, 5vw, 72px); margin-top: clamp(48px, 5vw, 72px); border-top: 1px dashed var(--line); }
.cs5-pull { margin-top: 18px; padding-left: 18px; border-left: 3px solid var(--pink-dot); font: 400 italic clamp(19px, .5vw + 16px, 23px)/1.4 var(--serif); color: var(--ink); }

.cs5-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-top: 24px; }
.cs5-pair > div { padding: 18px 20px; border-radius: 14px; }
.cs5-pair .alt { background: var(--paper-2); box-shadow: 0 0 0 1px var(--line); }
.cs5-pair .alt p:not(.cap) { color: var(--ink-2); }
.cs5-pair .call { background: var(--pink); }
.cs5-pair .cap { margin-bottom: 8px; }
.cs5-pair p:not(.cap) { font: 400 15px/1.5 var(--sans); color: var(--ink); }

.cs5-viz { margin: 28px 0 0; padding: 22px 24px; background: var(--paper-2); border-radius: 16px; box-shadow: 0 0 0 1px var(--line); }
.cs5-viz figcaption { margin-bottom: 16px; }
.cs5-bars { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.cs5-bars li { display: grid; grid-template-columns: 170px minmax(0, 1fr) 48px; align-items: center; gap: 14px; font: 500 14px/1.3 var(--sans); color: var(--ink); }
.cs5-bars i { height: 14px; border-radius: 99px; background: var(--paper); box-shadow: inset 0 0 0 1px var(--line); position: relative; overflow: hidden; }
.cs5-bars i::after { content: ''; position: absolute; inset: 0 auto 0 0; width: var(--w); border-radius: inherit; background: var(--head); }
.cs5-bars li:last-child i::after { background: var(--pink-dot); }
.cs5-bars b { font: 700 18px/1 var(--serif); text-align: right; }
.cs5-flow { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px 26px; }
.cs5-flow li { position: relative; display: flex; align-items: center; gap: 8px; padding: 8px 14px 8px 8px; background: var(--paper); border-radius: 99px; box-shadow: 0 0 0 1px var(--line); font: 500 14px/1 var(--sans); color: var(--ink); }
.cs5-flow li + li::before { content: '→'; position: absolute; left: -20px; color: var(--ink-2); }
.cs5-flow li:last-child { background: var(--pink); box-shadow: none; }
.cs5-fn { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--head); color: var(--paper-2); font: 600 11px/1 var(--sans); }
.cs5-funnel { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.cs5-funnel li { display: flex; align-items: center; gap: 14px; }
.cs5-funnel span { display: block; width: calc(100% - var(--i) * 12%); max-width: 420px; margin-left: calc(var(--i) * 3%); padding: 10px 16px; border-radius: 10px; background: var(--paper); box-shadow: 0 0 0 1px var(--line); font: 500 14px/1 var(--sans); color: var(--ink); }
.cs5-funnel li.hot span { background: var(--pink); box-shadow: none; font-weight: 600; }
.cs5-funnel em { flex: none; font: 400 italic 16px/1 var(--serif); color: var(--pink-dot); }

.cs5 .cs4-band, .cs5 .cs2-gallery { margin-top: clamp(56px, 6vw, 88px); }

@media (max-width: 1080px) {
  .w-case.cs5 { display: block; max-width: 767px; }
  .cs5-toc { position: static; max-height: none; }
  .cs5-toc ol { display: none; }
  .cs5-toc .w-back { margin-bottom: 24px; }
}
@media (max-width: 760px) {
  .cs5-head { grid-template-columns: 1fr; }
  .cs5-meta { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cs5-grid, .cs5-pair { grid-template-columns: 1fr; }
  .cs5-stats > div + div { padding-left: 0; border-left: 0; border-top: 1px solid var(--line); }
  .cs5-stats { grid-template-columns: 1fr 1fr; }
  .cs5-stats > div:nth-child(even) { padding-left: 16px; border-left: 1px solid var(--line); }
  .cs5-stats > div:nth-child(-n+2) { border-top: 0; }
  .cs5-bars li { grid-template-columns: 1fr 44px; }
  .cs5-bars i { grid-column: 1 / -1; grid-row: 2; }
}

/* ===== Case pages: Google Sans Flex, as in the benroachdesign.com reference ===== */
.w-case.cs5 { --serif: 'Google Sans Flex', system-ui, sans-serif; --sans: 'Google Sans Flex', system-ui, sans-serif; }
.cs5 em, .cs5 i:not([style]) { font-style: normal; }
.cs5-head h3 { font-weight: 500; letter-spacing: -.02em; line-height: 1.1; }
.cs5-head h3 em { font-weight: 500; color: var(--pink-dot); }
.cs5-short > h4, .cs5-sec h4, .cs5-dec h4 { font-weight: 500; letter-spacing: -.015em; }
.cs5-stats b { font-weight: 500; letter-spacing: -.03em; }
.cs5-pull { font-style: normal; font-weight: 500; letter-spacing: -.01em; }
.cs5-bars b { font-weight: 600; }
.cs5-funnel em { font-weight: 500; font-size: 14px; }
.cs5 .cs4-band blockquote p, .cs5 .cs2-band h4, .cs5 .cs2-nt { font-weight: 500; font-style: normal; letter-spacing: -.015em; }

/* ===== Step flow as one connected track (no wrapping) ===== */
.cs5-flow { position: relative; display: grid; grid-auto-rows: 44px; row-gap: 40px; column-gap: 8px; flex-wrap: nowrap; }
.cs5-flow.line { grid-template-columns: repeat(var(--n), minmax(0, 1fr)); }
.cs5-flow.loop { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.cs5-flow li { justify-self: center; align-self: center; z-index: 1; white-space: nowrap; }
.cs5-flow li + li::before { content: none; }
.cs5-flow::before, .cs5-flow::after { content: ''; position: absolute; border: 0 solid var(--ink-2); opacity: .45; pointer-events: none; }
/* straight: first centre to last centre */
.cs5-flow.line::before { top: 21px; height: 0; border-top-width: 2px; left: calc(50% / var(--n)); right: calc(50% / var(--n)); }
.cs5-flow.line::after { content: none; }
/* loop: 1–4 along the top, curve down, 5–7 back along the bottom */
.cs5-flow.loop::before { top: 21px; height: 42px; left: 12.5%; right: 12.5%; border-top-width: 2px; border-right-width: 2px; border-top-right-radius: 42px; }
.cs5-flow.loop::after { top: 63px; height: 42px; left: 37.5%; right: 12.5%; border-bottom-width: 2px; border-right-width: 2px; border-bottom-right-radius: 42px; }
.cs5-flow.loop li:nth-child(5) { grid-row: 2; grid-column: 4; }
.cs5-flow.loop li:nth-child(6) { grid-row: 2; grid-column: 3; }
.cs5-flow.loop li:nth-child(7) { grid-row: 2; grid-column: 2; }
@media (max-width: 760px) {
  .cs5-flow.line, .cs5-flow.loop { grid-template-columns: 1fr; grid-auto-rows: auto; row-gap: 12px; }
  .cs5-flow li, .cs5-flow.loop li:nth-child(n) { grid-row: auto; grid-column: 1; justify-self: start; }
  .cs5-flow::before, .cs5-flow.loop::before { top: 20px; bottom: 20px; height: auto; left: 18px; right: auto; width: 0; border-width: 0 0 0 2px; border-radius: 0; }
  .cs5-flow::after, .cs5-flow.loop::after { content: none; }
}

/* case pages: small uppercase labels 2px bigger */
.cs5 .cap { font-size: 13px; letter-spacing: .8px; }

/* case pages: facts column like the reference (label, value, hairline between) */
.cs5-head { grid-template-columns: minmax(0, 1fr) 240px; }
.cs5-meta { gap: 0; margin: 0; }
.cs5-meta > div { padding: 14px 0; }
.cs5-meta > div:first-child { padding-top: 0; }
.cs5-meta > div:last-child { padding-bottom: 0; }
.cs5-meta > div + div { border-top: 1px solid var(--line); }
.cs5-meta dt { margin-bottom: 6px; }
.cs5-meta dd { font: 500 16px/1.4 var(--sans); }
@media (max-width: 760px) {
  .cs5-meta { grid-template-columns: 1fr; }
}

/* loop: the curve leaves Clip art and enters Packaging at their right edge, mid-height */
.cs5-flow.loop { padding-right: 34px; }
.cs5-flow.loop li:nth-child(4), .cs5-flow.loop li:nth-child(5) { justify-self: end; }
.cs5-flow.loop::before { left: calc((100% - 34px) * .125); right: 0; border-top-right-radius: 34px; }
.cs5-flow.loop::after { left: calc((100% - 34px) * .375); right: 0; border-bottom-right-radius: 34px; }
@media (max-width: 760px) { .cs5-flow.loop { padding-right: 0; } .cs5-flow.loop li:nth-child(4), .cs5-flow.loop li:nth-child(5) { justify-self: start; } }

/* back buttons everywhere: outline only, pink on hover */
.w-back { background: transparent; box-shadow: none; border: 1px solid var(--line); }
.w-back:hover, .w-back:focus-visible { background: var(--pink); }

/* clock card: tighter gaps around the dot */
.cc-zone { word-spacing: -.1em; }

/* Writing page: Google Sans Flex only (logo keeps Fraunces) */
#panel-writing .panel-in { --serif: 'Google Sans Flex', system-ui, sans-serif; }
#panel-writing .panel-in :is(h1, h2, h3, h4, .wr-title) { font-weight: 500; letter-spacing: -.02em; }
#panel-writing .panel-in :is(h1, h2, h3, h4, .wr-title) em { font-style: normal; font-weight: 500; color: var(--pink-dot); }

/* essay illustration as an image */
.wr-fig-img img { display: block; width: 100%; max-width: 560px; height: auto; margin: 0 auto; }
.wr-fig-img.wide img { max-width: 680px; }
.cs4-ill.img img { display: block; width: 100%; height: auto; }
.cs4-band:has(.cs4-ill.img) { grid-template-columns: minmax(0, .85fr) minmax(0, 1.3fr); }
.cs4-ill.img { max-width: 620px; }
@media (max-width: 767px) { .cs4-band:has(.cs4-ill.img) { grid-template-columns: 1fr; } }
/* Aroya illustration 30% larger */
.cs4-band:has(.cs4-ill.img) { grid-template-columns: minmax(0, 1fr) min(515px, 70%); gap: 24px; padding-right: 20px; }
.cs4-ill.img { max-width: none; }
.cs4-band:has(.cs4-ill.img) blockquote p { font-size: clamp(22px, .9vw + 16px, 30px); }
@media (max-width: 767px) { .cs4-band:has(.cs4-ill.img) { grid-template-columns: 1fr; padding-right: clamp(28px, 4vw, 52px); } }
/* Aroya band: tight padding, cropped illustration */
.cs4-band:has(.cs4-ill.img) { padding: 28px 32px; gap: 32px; grid-template-columns: minmax(0, 1fr) min(560px, 66%); }
@media (max-width: 767px) { .cs4-band:has(.cs4-ill.img) { grid-template-columns: 1fr; padding: 24px; } }
.cs4-band.long:has(.cs4-ill.img) { grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); }
.cs4-band.long:has(.cs4-ill.img) blockquote p { font-size: clamp(20px, .6vw + 15px, 25px); line-height: 1.3; }
@media (max-width: 767px) { .cs4-band.long:has(.cs4-ill.img) { grid-template-columns: 1fr; } }

/* ===== Tab bar: a centred pill at every size, padding scales down ===== */
.tabs { left: 50%; right: auto; transform: translateX(-50%); width: max-content; max-width: calc(100% - 24px); justify-content: center; gap: 4px; padding: 6px; }
.tabs a { padding: 10px 18px; }
@media (max-width: 767px) {
  .tabs { left: 50%; right: auto; transform: translateX(-50%); bottom: 12px; justify-content: center; gap: 2px; padding: 5px; }
  .tabs a { padding: 9px 14px; }
}
@media (max-width: 520px) {
  .tabs { bottom: 10px; padding: 4px; gap: 0; }
  .tabs a { padding: 9px 11px; font-size: 13.5px; gap: 6px; }
}
@media (max-width: 380px) {
  .tabs a { padding: 8px 9px; font-size: 13px; }
  .tabs a[aria-current="page"]::before { width: 6px; height: 6px; }
}
@media (max-width: 350px) {
  .tabs { max-width: calc(100% - 16px); padding: 3px; }
  .tabs a { padding: 8px 6px; font-size: 12.5px; gap: 4px; }
}

/* active tab: no dot, solid pink like the cursor pill */
.tabs a::before, .tabs a[aria-current="page"]::before { content: none; }
.tabs a[aria-current="page"] { background: #d63d8c; color: #fff; box-shadow: none; }
.tabs a[aria-current="page"]:hover { color: #fff; }

/* Home "5 years" sticky note: Google Sans Flex instead of Fraunces */
.sticky-xp { --serif: 'Google Sans Flex', system-ui, sans-serif; }
.sticky-xp .xp-1 { font-weight: 700; letter-spacing: -.04em; }
.sticky-xp .xp-2 em { font-style: normal; font-weight: 600; font-size: 16px; }
.sticky-xp .xp-3 { font-weight: 700; letter-spacing: -.025em; }
.sticky-xp .xp-4 { font-style: normal; font-weight: 500; font-size: 20px; letter-spacing: -.01em; }
.sticky-xp .xp-5 { font-family: "Fraunces", Georgia, serif; font-weight: 800; letter-spacing: -.02em; }
.sticky-xp .xp-2 em { font-family: "Fraunces", Georgia, serif; font-style: italic; font-weight: 400; font-size: 18px; }
.sticky-xp .xp-2 em { font-family: "Google Sans Flex", system-ui, sans-serif; font-style: normal; font-variation-settings: "slnt" -10; font-weight: 500; font-size: 16px; }

/* ===== About (first design) in the case-study / writing style ===== */
#panel-about .panel-in.about { --serif: 'Google Sans Flex', system-ui, sans-serif; max-width: 1100px; }
.about .cap { font-size: 13px; letter-spacing: .8px; }
.about h2 { margin-top: 14px; font: 500 clamp(34px, 2.6vw + 14px, 54px)/1.08 var(--sans); letter-spacing: -.025em; text-wrap: balance; }
.about h2 em { font-style: normal; font-weight: 500; color: var(--pink-dot); }
.about .lead { margin-top: 18px; font: 400 17px/1.6 var(--sans); max-width: 54ch; }
/* photo: rounded like the case hero image */
.about .portrait img { border-radius: 18px; box-shadow: 0 0 0 1px var(--line), 0 30px 50px -34px rgba(62, 11, 14, .55); }
.about .portrait .fig { font: 400 13px/1 var(--sans); letter-spacing: .2px; }
/* facts: the case results row (hairlines top and bottom, dividers between) */
.about .facts { gap: 0; margin-top: 32px; padding-top: 0; border-bottom: 1px solid var(--line); }
.about .facts > div { padding: 18px 18px 18px 0; }
.about .facts > div + div { padding-left: 18px; border-left: 1px solid var(--line); }
.about .facts dt { margin-bottom: 6px; }
.about .facts dd { margin: 0; font: 500 18px/1.3 var(--sans); letter-spacing: -.01em; }
/* awards: the case "short version" boxes, first one pink */
.about .sub { margin: 44px 0 14px; }
.about .awards { grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 12px; border-top: 0; }
.about .awards li { margin: 0; padding: 16px 18px; gap: 6px; border: 0; border-radius: 14px; background: var(--paper-2); box-shadow: 0 0 0 1px var(--line); }
.about .awards li:first-child { background: var(--pink); box-shadow: none; }
.about .awards b { font: 500 16px/1.3 var(--sans); letter-spacing: -.01em; }
.about .awards span { font: 400 13.5px/1.4 var(--sans); }
@media (max-width: 760px) {
  .about .facts > div + div { padding-left: 0; border-left: 0; border-top: 1px solid var(--line); }
}

/* Home intro: greeting in ink */
.offer-hi { color: var(--ink); font-weight: 600; }
/* Home intro: no bold */
.offer mark, .offer-hi { font-weight: 400; color: inherit; }

/* ===== Text colour: headings brown (#3e0b0e), everything else #57534e ===== */
h1, h2, h3, h4, h5, .wordmark, .wr-title, .cs2-nt, .cs5-head h3 { color: var(--head); }
:is(h1, h2, h3, h4, h5):not(.cap):not(.cs2-band *):not(.ab2-say *):not(.sr), .wordmark, .wr-title, .cs2-nt { color: var(--head) !important; }

/* important sub-headings: #1c1917 (page titles stay brown) */
:is(h3, h4, h5):not(.cap):not(.cs2-band *):not(.ab2-say *):not(.sr):not(.cs5-head h3), .wr-art h2 { color: #1c1917 !important; }
#panel-writing .wr-art h2:not(.cap):not(.sr) { color: #1c1917 !important; }

/* Home: sticky note, clock time and journal title in near-black */
.sticky-xp, .sticky-xp mark, .sticky-xp .xp-2 em, .cc-time time, .nc-title { color: #1c1917; }
.sticky-xp .xp-2 { color: #1c1917; }

/* ===== "What I bring" as a terminal window (design after yanliuportfolio.vercel.app) ===== */
.interests { --mono: ui-monospace, 'SF Mono', Menlo, Consolas, monospace; width: calc(var(--u) * 19); min-width: 250px; padding: 0; overflow: hidden; border-radius: 12px; background: #fdfcfa; box-shadow: 0 0 0 1px rgba(0, 0, 0, .08), 0 18px 30px -20px rgba(0, 0, 0, .28); }
.interests .term-bar { position: relative; display: flex; align-items: center; gap: 7px; height: 30px; padding: 0 12px; margin: 0; background: #f3f1ed; border-bottom: 1px solid rgba(0, 0, 0, .06); }
.interests .term-bar i { width: 11px; height: 11px; border-radius: 50%; background: #ff5f57; box-shadow: inset 0 0 0 .5px rgba(0, 0, 0, .18); }
.interests .term-bar i:nth-child(2) { background: #febc2e; }
.interests .term-bar i:nth-child(3) { background: #28c840; }
.interests .term-bar span { position: absolute; left: 0; right: 0; text-align: center; font: 400 12px/1 var(--sans); color: #a8a29e; pointer-events: none; }
.interests .term-body { padding: 14px 16px 18px; font: 400 13px/1.7 var(--mono); }
.interests .term-cmd { margin: 0; color: #1c1917; }
.interests .term-p { color: #5f9e8f; }
.interests ul.term-out { display: block; margin: 2px 0 0; padding: 0; list-style: none; color: #78716c; }
.interests ul.term-out li { display: inline; padding: 0; border: 0; border-radius: 0; background: none; font: inherit; translate: none; }
.interests ul.term-out li + li::before { content: '/'; }
.interests ul.term-out li:first-child { background: none; color: #4f7fa8; }
.interests:hover ul.term-out li { translate: none; }
.interests ul.term-out::after { content: ''; display: inline-block; width: 7px; height: 14px; margin-left: 4px; vertical-align: -2px; background: #1c1917; animation: term-blink 1.1s steps(1) infinite; }
@keyframes term-blink { 50% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .interests ul.term-out::after { animation: none; } }
.interests ul.term-out li { white-space: nowrap; }
.interests ul.term-out li + li::before { content: "/\200B"; }
.interests { width: calc(var(--u) * 20); min-width: 260px; }
.interests .term-body { font-size: 12.5px; }
.interests ul.term-out { display: flex; flex-wrap: wrap; align-items: baseline; }
.interests ul.term-out li { display: block; }
.interests ul.term-out li + li::before { content: "/"; }
.interests ul.term-out::after { align-self: center; }
.interests ul.term-out { gap: 0; }
.interests ul.term-out li + li::before { content: none; }
.interests ul.term-out li:not(:last-child)::after { content: "/"; color: #78716c; }
/* terminal: same width as the old card */
.interests { width: calc(var(--u) * 16.5); min-width: 220px; }
/* terminal: no blinking cursor */
.interests ul.term-out::after { content: none; animation: none; }

/* terminal: ASCII dancer appears on hover */
.interests .term-art { margin: 0; max-height: 0; overflow: hidden; opacity: 0; font: 400 6px/5.2px var(--mono); letter-spacing: 0; color: #1c1917; text-align: left; white-space: pre; transition: max-height .4s var(--ease), opacity .3s, margin .4s var(--ease); }
.interests.dancing .term-art { max-height: 170px; opacity: 1; margin-top: 10px; }
.interests .term-art { display: block; width: max-content; margin-left: auto; margin-right: auto; }
.interests { transition: margin-top .4s var(--ease); }
.interests.dancing { margin-top: -146px; }
.interests.dancing .term-art { max-height: 140px; }
@media (max-width: 767px) { .interests.dancing { margin-top: 0; } }
/* dog: 3/4 of the old dancer */
.interests.dancing { margin-top: -114px; }
.interests.dancing .term-art { max-height: 108px; }
@media (max-width: 767px) { .interests.dancing { margin-top: 0; } }
.interests.dancing { margin-top: -104px; }
.interests.dancing .term-art { max-height: 98px; }
@media (max-width: 767px) { .interests.dancing { margin-top: 0; } }
/* dog: finer characters, same overall size */
.interests .term-art { font-size: 4px; line-height: 3.3px; }
.interests.dancing .term-art { max-height: 104px; }
.interests.dancing { margin-top: -110px; }
@media (max-width: 767px) { .interests.dancing { margin-top: 0; } }
.interests.dancing .term-art { max-height: 94px; }
.interests.dancing { margin-top: -100px; }
@media (max-width: 767px) { .interests.dancing { margin-top: 0; } }

/* active tab: brand brown instead of pink */
.tabs a[aria-current="page"], .tabs a[aria-current="page"]:hover { background: var(--head, #3e0b0e); color: #fff; }

/* ===== "5 years" note v2: plain yellow post-it with a blue lettered card stuck on it ===== */
.sticky-xp.xp-v2 { padding: 38px 30px 42px; display: grid; place-items: center; min-height: 210px; }
.sticky-xp.xp-v2 .xp-spark, .sticky-xp.xp-v2 .xp-arrow, .sticky-xp.xp-v2 .tape { display: none; }
.xp-card { display: grid; gap: 2px; justify-items: start; width: 132px; padding: 14px 14px 16px; rotate: -3deg;
  background: #5b7fc6;
  background-image: radial-gradient(120% 80% at 20% 10%, rgba(255, 255, 255, .14), transparent 60%), radial-gradient(90% 70% at 90% 100%, rgba(20, 40, 90, .22), transparent 60%);
  box-shadow: 0 1px 1px rgba(20, 30, 60, .25), 0 6px 10px -6px rgba(20, 30, 60, .45); }
.xp-card .xc-l { display: block; font: 800 19px/1.08 var(--sans); letter-spacing: .01em; text-transform: uppercase; color: #fbf8f2; white-space: nowrap; }
.xp-card .xc-l:nth-child(1) { rotate: -2deg; font-size: 23px; }
.xp-card .xc-l:nth-child(2) { rotate: 1.5deg; translate: 3px 0; }
.xp-card .xc-l:nth-child(3) { rotate: -1deg; }
.xp-card .xc-l:nth-child(4) { rotate: 2deg; translate: 4px 0; }
.sticky-xp.xp-v2 .xp-card { transition: rotate .45s var(--ease); }
.sticky-xp.xp-v2:hover .xp-card { rotate: -1deg; }
@media (prefers-reduced-motion: no-preference) { .sticky-xp.xp-v2 .xp-card { animation: fadein .5s ease 1.2s both; } }
.xp-card { width: max-content; max-width: 100%; padding: 14px 16px 16px; }
.xp-card .xc-l { font-size: 16px; line-height: 1.12; }
.xp-card .xc-l:nth-child(1) { font-size: 21px; }

/* crayon on painted paper (blue card on the "5 years" note) */
.xp-card { position: relative; isolation: isolate; background: none; box-shadow: none; }
.xp-card::before { content: ''; position: absolute; inset: 0; z-index: -1; background: #5b7fc6; filter: url(#paper) drop-shadow(0 1px 1px rgba(20, 30, 60, .25)) drop-shadow(0 6px 8px rgba(20, 30, 60, .3)); }
.xp-card .xc-l { filter: url(#crayon); color: #fdfbf6; letter-spacing: .02em; }

/* blue card: clean straight edges; on hover the right side lifts as if caught by air */
.sticky-xp.xp-v2 { perspective: 520px; }
.xp-card { transform-origin: 0% 50%; transform-style: preserve-3d; transition: transform .6s cubic-bezier(.3, 1.4, .5, 1), rotate .45s var(--ease); }
.xp-card::after { content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: 0; transition: opacity .5s var(--ease);
  background: linear-gradient(90deg, transparent 55%, rgba(255, 255, 255, .16) 80%, rgba(10, 20, 50, .18) 100%); }
.xp-card::before { transition: filter .6s var(--ease); }
.sticky-xp.xp-v2:hover .xp-card { rotate: -3deg; transform: rotateY(-24deg) rotateX(4deg) skewY(-1.5deg); }
.sticky-xp.xp-v2:hover .xp-card::after { opacity: 1; }
.sticky-xp.xp-v2:hover .xp-card::before { filter: url(#paper) drop-shadow(0 1px 1px rgba(20, 30, 60, .2)) drop-shadow(10px 10px 10px rgba(20, 30, 60, .28)); }
@media (prefers-reduced-motion: no-preference) {
  .sticky-xp.xp-v2:hover .xp-card { animation: xp-flutter 2.4s ease-in-out .6s infinite; }
}
@keyframes xp-flutter { 0%, 100% { transform: rotateY(-24deg) rotateX(4deg) skewY(-1.5deg); } 50% { transform: rotateY(-16deg) rotateX(2deg) skewY(-.8deg); } }
@media (prefers-reduced-motion: reduce) { .xp-card { transition: none; } }
/* no separate fade-in on the card (it would restart after hover) */
.sticky-xp.xp-v2 .xp-card { animation: none; }
@media (prefers-reduced-motion: no-preference) { .sticky-xp.xp-v2:hover .xp-card { animation: xp-flutter 2.4s ease-in-out .6s infinite; } }

/* ===== "5 years" note v3: white rounded card, pink tape, soft pink panel ===== */
.sticky-xp.xp-v3 { width: 210px; padding: 12px; rotate: -8deg; display: block; min-height: 0; background: #fff; border-radius: 22px;
  box-shadow: 0 0 0 1px rgba(62, 11, 14, .06), 0 2px 4px rgba(62, 11, 14, .06), 0 22px 34px -18px rgba(62, 11, 14, .35); transition: rotate .5s var(--ease), translate .5s var(--ease), box-shadow .5s var(--ease); }
.sticky-xp.xp-v3 .xp-paper, .sticky-xp.xp-v3 .xp-sheet, .sticky-xp.xp-v3 .xp-spark, .sticky-xp.xp-v3 .xp-arrow, .sticky-xp.xp-v3 .tape { display: none; }
.sticky-xp.xp-v3 .xp-tag { position: absolute; left: 50%; top: -26px; width: 30px; height: 58px; translate: -50% 0; rotate: 4deg; z-index: 2;
  background: #e8558f; background-image: linear-gradient(160deg, rgba(255, 255, 255, .28), transparent 40%, rgba(0, 0, 0, .08) 60%, transparent 75%), repeating-linear-gradient(0deg, rgba(255, 255, 255, .06) 0 2px, transparent 2px 5px);
  clip-path: polygon(6% 0, 94% 2%, 100% 8%, 96% 100%, 70% 96%, 45% 100%, 20% 95%, 0 100%, 4% 6%); opacity: .92; box-shadow: 0 2px 4px rgba(0, 0, 0, .12); }
.sticky-xp.xp-v3 .xp-panel { display: block; padding: 46px 16px 18px; border-radius: 16px; background: linear-gradient(180deg, #fdf3f7, #f9e3ec); text-align: left; }
.sticky-xp.xp-v3 .xp-num { display: block; font: 500 13px/1 var(--sans); letter-spacing: .02em; color: #e0457f; }
.sticky-xp.xp-v3 .xp-h { display: block; margin-top: 8px; font: 600 26px/1.05 var(--sans); letter-spacing: -.02em; color: #1c1917; }
.sticky-xp.xp-v3 .xp-b { display: block; margin-top: 8px; font: 400 13.5px/1.35 var(--sans); color: #a8a29e; text-align: justify; hyphens: auto; }
.board[data-layout] .sticky-xp.xp-v3:hover { scale: 1; rotate: -5deg; translate: 0 -4px; box-shadow: 0 0 0 1px rgba(62, 11, 14, .06), 0 2px 4px rgba(62, 11, 14, .06), 0 30px 40px -18px rgba(62, 11, 14, .4); }
@media (max-width: 767px) { .sticky-xp.xp-v3 { rotate: -5deg; } }
.sticky-xp.xp-v3 .xp-b { hyphens: manual; text-align: left; }
/* "5 years" card in blue */
.sticky-xp.xp-v3 .xp-tag { background-color: #5b8fd8; }
.sticky-xp.xp-v3 .xp-panel { background: linear-gradient(180deg, #f2f7fd, #e1ecf9); }
.sticky-xp.xp-v3 .xp-num { color: #3f74c4; }
/* "5 years" card in yellow */
.sticky-xp.xp-v3 .xp-tag { background-color: #f2c94c; }
.sticky-xp.xp-v3 .xp-panel { background: linear-gradient(180deg, #fffaea, #fcefc4); }
.sticky-xp.xp-v3 .xp-num { color: #b0820f; }
.sticky-xp.xp-v3 .xp-b { color: #1c1917; }

/* =====================================================================
   About additions: punched yellow note, statement lines, app window
   (structure after yanliuportfolio.vercel.app, in this site's colours)
   ===================================================================== */
#panel-about .panel-in.abx { --mono: ui-monospace, 'SF Mono', Menlo, Consolas, monospace; max-width: 1100px; padding-top: 0; }
.abx-intro { margin-top: clamp(56px, 7vw, 96px); text-align: center; }
.abx-note { position: relative; width: min(560px, 100%); margin: 0 auto; padding: 66px 64px 52px; rotate: 2deg; text-align: left;
  background: linear-gradient(180deg, #fde59a, #fbdd85); box-shadow: 0 1px 2px rgba(62, 11, 14, .08), 0 22px 34px -20px rgba(62, 11, 14, .35); }
.abx-holes { position: absolute; left: 7%; right: 7%; top: 20px; display: flex; justify-content: space-between; }
.abx-holes i { width: 22px; height: 22px; background: var(--paper); box-shadow: inset 0 1px 2px rgba(62, 11, 14, .14); }
.abx-note blockquote { margin: 0; font: 400 19px/1.6 var(--sans); color: #1c1917; }
.abx-pin { position: absolute; right: 17%; bottom: -14px; width: 30px; height: 30px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #6d4048, #3e0b0e 60%); box-shadow: 0 4px 6px rgba(62, 11, 14, .35); }
.abx-line { max-width: 767px; margin: 0 auto; font: 400 clamp(17px, .7vw + 12px, 22px)/2 var(--mono); color: #57534e; }
.abx-note + .abx-line { margin-top: clamp(52px, 6vw, 80px); }
.abx-line + .abx-line { margin-top: 18px; }
.abx-box { display: inline-block; padding: 0 12px; line-height: 1.8; border: 1.5px solid #57534e; color: #1c1917; }
.abx-doodle { display: inline-block; width: 30px; height: 36px; vertical-align: middle; fill: none; stroke: #1c1917; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.abx-doodle.star { width: 32px; height: 32px; margin-right: 6px; }

/* window */
.abx-win { margin: clamp(64px, 8vw, 110px) auto 0; border-radius: 16px; overflow: hidden; background: #f6f3ee; box-shadow: 0 0 0 1px var(--line), 0 30px 50px -30px rgba(62, 11, 14, .4); }
.abx-bar { position: relative; display: flex; align-items: center; height: 40px; padding: 0 16px; background: #efebe5; border-bottom: 1px solid var(--line); }
.abx-dots { display: flex; gap: 8px; }
.abx-dots i { width: 12px; height: 12px; border-radius: 50%; background: #ff5f57; box-shadow: inset 0 0 0 .5px rgba(0, 0, 0, .18); }
.abx-dots i:nth-child(2) { background: #febc2e; } .abx-dots i:nth-child(3) { background: #28c840; }
.abx-path { position: absolute; left: 0; right: 0; text-align: center; font: 400 12.5px/1 var(--mono); color: #a8a29e; pointer-events: none; }
.abx-body { display: grid; grid-template-columns: 190px minmax(0, 1fr); min-height: 560px; }
.abx-side { padding: 18px 10px; background: #ebe6df; border-right: 1px solid var(--line); display: grid; align-content: start; gap: 2px; }
.abx-fav { margin: 0 10px 8px; font: 500 12px/1 var(--sans); color: #a8a29e; }
.abx-side button { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 8px; font: 500 14.5px/1 var(--sans); color: #1c1917; text-align: left; transition: background .2s; }
.abx-side button svg { width: 18px; height: 18px; fill: none; stroke: #5b7fc6; stroke-width: 1.6; stroke-linejoin: round; stroke-linecap: round; }
.abx-side button:hover { background: rgba(62, 11, 14, .05); }
.abx-side button.on { background: #e0d6c8; }
.abx-pane { padding: 22px; }
.abx-pane[hidden] { display: none; }
.abx-cap { margin: 0 0 14px; font: 500 12px/1.2 var(--mono) !important; letter-spacing: .14em; text-transform: uppercase; color: #a8a29e !important; }
.abx-pane > .abx-cap:not(:first-child) { margin-top: 30px; }

/* snapshot grid */
.abx-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-rows: minmax(220px, auto); gap: 12px; }
.abx-card { padding: 16px; border-radius: 12px; background: #fff; box-shadow: 0 0 0 1px rgba(62, 11, 14, .06); }
.abx-card.notes { position: relative; box-shadow: 0 0 0 1px rgba(62, 11, 14, .08), 5px 6px 0 #3e0b0e; border-top: 6px dotted #d9d2c8; border-radius: 4px 4px 10px 10px; }
.abx-chips { list-style: none; margin: 26px 0 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.abx-chips li { padding: 7px 12px; border-radius: 999px; font: 500 13px/1 var(--sans); color: #fff; }
.abx-chips .c1 { background: #5b9a83; } .abx-chips .c2 { background: #6b98c6; } .abx-chips .c3 { background: #a585c9; }
.abx-chips .c4 { background: #c9a35c; } .abx-chips .c5 { background: #d27a6c; } .abx-chips .c6 { background: #5d8e9b; }
.abx-card.energy, .abx-card.fuel { text-align: center; }
.abx-card.energy .abx-cap, .abx-card.fuel .abx-cap { text-align: left; }
.abx-ring { width: 118px; margin: 8px auto 0; display: block; transform: rotate(-90deg); }
.abx-ring circle { fill: none; stroke: #ece7e0; stroke-width: 9; }
.abx-ring circle.v { stroke: #5b9a83; stroke-linecap: round; }
.abx-ring text { transform: rotate(90deg); transform-origin: 60px 60px; font: 600 26px var(--sans); fill: #1c1917; }
.abx-card.energy p { margin-top: 10px; font: 400 14.5px/1.3 var(--sans); color: #57534e; }
.abx-radar { width: 100%; max-width: 260px; display: block; margin: 0 auto; overflow: visible; }
.abx-radar .g { fill: none; stroke: #e6e0d8; stroke-width: 1; }
.abx-radar .v { fill: rgba(91, 127, 198, .18); stroke: #5b7fc6; stroke-width: 1.6; }
.abx-radar text { font: 400 12px var(--sans); fill: #57534e; }
.abx-card.journey { grid-row: span 2; }
.abx-card.journey ol { list-style: none; margin: 0; padding: 0; }
.abx-card.journey li { display: grid; grid-template-columns: 28px minmax(0, 1fr) auto; align-items: center; gap: 8px; padding: 11px 0; border-bottom: 1px solid #f0ebe4; font: 400 14px/1.3 var(--sans); color: #a8a29e; }
.abx-card.journey li span { font: 400 12px var(--mono); color: #c4beb6; }
.abx-card.journey li em { font: 500 10.5px/1 var(--mono); font-style: normal; letter-spacing: .08em; text-transform: uppercase; padding: 4px 6px; border-radius: 4px; background: #f3efe9; color: #a8a29e; }
.abx-card.journey li.now { margin-top: 14px; padding: 16px 14px; border: 1px solid #e3ddd4; border-radius: 12px; background: #f6f3ee; font: 600 17px/1.2 var(--sans); color: #1c1917; }
.abx-card.journey li.now em { background: #e3f2ea; color: #3f8a6c; }
.abx-card.fun { grid-column: span 2; grid-row: span 2; display: grid; grid-template-rows: auto 1fr; }
.abx-polas { position: relative; display: grid; place-items: center; min-height: 300px; }
.abx-polas figure { position: absolute; width: 190px; margin: 0; padding: 10px 10px 34px; background: #fff; box-shadow: 0 0 0 1px rgba(62, 11, 14, .06), 0 18px 28px -16px rgba(62, 11, 14, .35); transition: rotate .5s var(--ease), translate .5s var(--ease); }
.abx-polas figure:first-child { rotate: -7deg; translate: -40px 0; }
.abx-polas figure:last-child { rotate: 5deg; translate: 40px 10px; }
.abx-polas img { display: block; width: 100%; aspect-ratio: 1 / 1.05; object-fit: cover; background: #f3efe9; }
.abx-polas figure:last-child img { object-fit: contain; padding: 8px; }
.abx-polas figcaption { position: absolute; left: 0; right: 0; bottom: 10px; text-align: center; font: 400 13px/1 var(--sans); color: #57534e; }
.abx-card.fun:hover .abx-polas figure:first-child { rotate: -11deg; translate: -64px -4px; }
.abx-card.fun:hover .abx-polas figure:last-child { rotate: 9deg; translate: 64px 14px; }

/* achievements + projects */
.abx-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.abx-stats div { padding: 16px 16px 14px; border-radius: 10px; background: #ece7e0; }
.abx-stats b { display: block; font: 600 24px/1 var(--sans); color: #1c1917; }
.abx-stats span { display: block; margin-top: 10px; font: 400 11px/1.2 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: #a8a29e; }
.abx-list { list-style: none; margin: 0; padding: 0; }
.abx-list li { display: grid; grid-template-columns: 52px minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 14px 8px; border-bottom: 1px solid #e8e2da; transition: background .2s; }
.abx-list li:hover { background: rgba(62, 11, 14, .03); }
.abx-list time { font: 400 12px var(--mono); color: #a8a29e; }
.abx-list b { display: block; font: 600 15.5px/1.3 var(--sans); color: #1c1917; }
.abx-list span { display: block; margin-top: 4px; font: 400 13.5px/1.4 var(--sans); color: #57534e; }
.abx-list .t { display: inline-block; margin-left: 6px; padding: 3px 6px; border-radius: 4px; font: 500 10px/1 var(--mono); font-style: normal; letter-spacing: .1em; text-transform: uppercase; vertical-align: 1px; }
.abx-list .t.award { background: #f6e7c8; color: #9a6b13; }
.abx-list .t.ship { background: #e3edf8; color: #3f6aa8; }
.abx-go { padding: 7px 12px; border-radius: 999px; border: 1px solid var(--line); font: 500 13px/1 var(--sans); color: #1c1917; transition: background .2s; }
.abx-go:hover { background: var(--pink); }

@media (max-width: 767px) {
  .abx-body { grid-template-columns: 1fr; }
  .abx-side { display: flex; flex-wrap: wrap; border-right: 0; border-bottom: 1px solid var(--line); padding: 10px; }
  .abx-fav { display: none; }
  .abx-grid { grid-template-columns: 1fr; }
  .abx-card.journey, .abx-card.fun { grid-row: auto; grid-column: auto; }
  .abx-stats { grid-template-columns: 1fr; }
  .abx-note { padding: 58px 28px 40px; rotate: 1deg; }
  .abx-note blockquote { font-size: 16.5px; }
  .abx-polas figure { width: 150px; }
}

/* About: the app-window sections now open the page */
#panel-about .panel-in.abx > .abx-intro:first-child { margin-top: clamp(24px, 3vw, 48px); }

/* =====================================================================
   About motion (after yanliuportfolio.vercel.app/#about)
   ===================================================================== */
@media (prefers-reduced-motion: no-preference) {
  /* scroll reveal: fade + rise, lines one after another */
  .abx [data-rv] { opacity: 0; transform: translateY(28px); transition: opacity .7s ease-out, transform .7s ease-out; transition-delay: var(--d, 0s); }
  .abx .abx-note[data-rv] { transform: translateY(40px) rotate(2deg); rotate: 0deg; }
  .abx [data-rv].in { opacity: 1; transform: none; }
  .abx .abx-note[data-rv].in { transform: rotate(2deg); animation: abx-float 5s ease-in-out 1s infinite; }
  @keyframes abx-float { 0%, 100% { translate: 0 0; } 50% { translate: 0 -8px; } }
  /* doodles: scribble draws itself, star twinkles */
  .abx-doodle.scrib path { stroke-dasharray: 220; stroke-dashoffset: 220; transition: stroke-dashoffset 1.4s ease .5s; }
  .abx-line.in .abx-doodle.scrib path { stroke-dashoffset: 0; }
  .abx-doodle.star { animation: abx-twinkle 2.4s ease-in-out infinite; }
  @keyframes abx-twinkle { 0%, 100% { opacity: .35; scale: .9; } 50% { opacity: 1; scale: 1.05; } }
  /* tab panes fade in */
  .abx-pane.enter { animation: abx-up .45s ease-out both; }
  @keyframes abx-up { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
  /* achievements rows slide in one by one */
  .abx-pane.enter .abx-list li, .abx-pane.enter .abx-stats > div { animation: abx-up .5s ease-out both; animation-delay: calc(var(--i, 0) * 55ms + .08s); }
}
.abx .abx-note { rotate: 0deg; transform: rotate(2deg); }

/* achievements: hover nudges the row and shows an accent bar */
.abx-list li { position: relative; border-radius: 8px; transition: background .2s, padding .2s; }
.abx-list li::before { content: ''; position: absolute; left: 0; top: 10px; bottom: 10px; width: 2px; border-radius: 2px; background: var(--head, #3e0b0e); opacity: 0; transition: opacity .2s; }
.abx-list li:hover { background: rgba(62, 11, 14, .045); padding-left: 16px; }
.abx-list li:hover::before { opacity: 1; }
.abx-stats > div { transition: translate .25s var(--ease), box-shadow .25s; }
.abx-stats > div:hover { translate: 0 -3px; box-shadow: 0 10px 18px -12px rgba(62, 11, 14, .35); }

/* snapshot: physics chips */
.abx-card.notes { display: flex; flex-direction: column; }
.abx-chips.phys { position: relative; flex: 1; min-height: 170px; margin: 8px 0 0; display: block; overflow: hidden; touch-action: none; }
.abx-chips.phys li { position: absolute; left: 0; top: 0; cursor: grab; user-select: none; will-change: transform; white-space: nowrap; }
.abx-chips.phys li.drag { cursor: grabbing; }

/* energy ring draws, radar grows */
.abx-ring circle.v { transition: stroke-dasharray 1.4s cubic-bezier(.3, .8, .3, 1); }
.abx-radar .v { transform: scale(0); transition: transform 1s cubic-bezier(.3, 1.3, .5, 1) .2s; }
.abx-pane.play .abx-radar .v { transform: scale(1); }
/* journey gets stronger towards now */
.abx-card.journey li { transition: opacity .3s; }
.abx-card.journey li:nth-child(1) { opacity: .5; } .abx-card.journey li:nth-child(2) { opacity: .58; } .abx-card.journey li:nth-child(3) { opacity: .66; }
.abx-card.journey li:nth-child(4) { opacity: .75; } .abx-card.journey li:nth-child(5) { opacity: .83; } .abx-card.journey li:nth-child(6) { opacity: .92; }
.abx-card.journey li:hover { opacity: 1; }
.abx-card.journey li.now { animation: abx-pulse 2.4s ease-in-out infinite; }
@keyframes abx-pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(63, 138, 108, 0); } 50% { box-shadow: 0 0 0 5px rgba(63, 138, 108, .12); } }
/* fun facts: click to shuffle the polaroids */
.abx-polas { cursor: pointer; }
.abx-polas figure { transition: rotate .6s cubic-bezier(.2, .85, .2, 1), translate .6s cubic-bezier(.2, .85, .2, 1), z-index 0s .3s; }
.abx-polas.swap figure:first-child { z-index: 2; }
@media (prefers-reduced-motion: reduce) { .abx-card.journey li.now, .abx-doodle.star { animation: none; } }
.abx-polas.swap figure:first-child, .abx-card.fun:hover .abx-polas.swap figure:first-child { rotate: 5deg; translate: 36px 8px; }
.abx-polas.swap figure:last-child, .abx-card.fun:hover .abx-polas.swap figure:last-child { rotate: -8deg; translate: -40px 0; z-index: 1; }

/* snapshot: wider design notes, no fun facts */
.abx-card.notes { grid-column: span 2; }
.abx-card.journey { grid-column: span 2; grid-row: auto; }
.abx-chips.phys { min-height: 160px; }
@media (max-width: 767px) { .abx-card.notes, .abx-card.journey { grid-column: auto; } }
/* energy hover: ring spins while the caption swaps */
.abx-card.energy p { transition: opacity .18s, transform .18s; }
.abx-card.energy p.swap { opacity: 0; transform: translateY(6px); }
.abx-ring { transition: scale .4s var(--ease); }
@media (prefers-reduced-motion: no-preference) {
  .abx-card.energy.live .abx-ring { scale: 1.06; }
  .abx-card.energy.live .abx-ring circle.v { animation: abx-spin 2.4s linear 1.4s infinite; transform-origin: 60px 60px; }
}
@keyframes abx-spin { to { transform: rotate(360deg); } }
.abx-radar .v { transition: transform 1s cubic-bezier(.3, 1.3, .5, 1) .2s, fill .3s; }
.abx-card.fuel.live .abx-radar .v { fill: rgba(91, 127, 198, .28); }

/* Scramble text (after designbookmark.com/motion/scramble-text): monospace so a
   scrambling letter never changes the line width; unsettled letters dim, settled ones dark */
.abx-scramble { white-space: pre; cursor: default; }
.abx-scramble .c { color: #a8a29e; }
.abx-scramble .c.ok { color: #1c1917; }
.abx-scramble .caret { display: inline-block; width: .56em; height: 1.08em; margin-left: .1em; vertical-align: -.18em; background: var(--head, #3e0b0e); border-radius: 2px; }

/* Typewriter (after Kokonut UI type-writer, MIT): every phrase sits invisibly in one grid cell
   so the box is as wide as the widest phrase; the caret takes no room and blinks only when idle */
.abx-tw-in { display: inline-grid; justify-items: start; white-space: pre; padding-right: .25em; opacity: 0; transition: opacity .5s; }
.abx-tw-in.on { opacity: 1; }
.abx-tw-in > span { grid-column: 1; grid-row: 1; }
.abx-tw-in > .ghost { visibility: hidden; }
.abx-tw-in > .live { min-height: 1.2em; }
.abx-tw .caret-w { position: relative; display: inline-block; width: 0; }
.abx-tw .caret { position: absolute; bottom: -.1em; left: .04em; height: 1.05em; width: .08em; min-width: 2px; background: currentColor; }
@keyframes kokonutui-typewriter-caret { 0%, 33.333% { opacity: 1; } 66.667%, 100% { opacity: 0; } }
@media (prefers-reduced-motion: no-preference) { .abx-tw .caret[data-idle="true"] { animation: kokonutui-typewriter-caret 1s linear infinite; } }
/* About intro: statement lines first, then the yellow note */
.abx-intro > .abx-line:first-child { margin-top: 0; }
.abx-line + .abx-note { margin-top: clamp(56px, 6vw, 84px); }
.abx-note + .abx-line { margin-top: 0; }
@media (prefers-reduced-motion: no-preference) { .abx .abx-note[data-rv] { transition-delay: .5s; } }
/* Impact at a glance: no hover */
.abx-stats > div:hover { translate: none; box-shadow: none; }
.abx-chips.phys li { cursor: default; }
/* energy: ring fills once on hover, no spinning */
.abx-card.energy.live .abx-ring circle.v { animation: none; }
.abx-card.energy.live .abx-ring { scale: 1; }

/* ===== Snapshot: "On repeat" vinyl card (replaces Fuel mix) ===== */
.abx-player { display: grid; gap: 14px; justify-items: center; margin-top: 4px; }
.abx-deck { position: relative; width: 132px; height: 120px; }
.abx-record { position: absolute; left: 0; top: 0; width: 120px; height: 120px; }
.abx-record .disc { fill: #1f1b1a; }
.abx-record .groove { fill: none; stroke: rgba(255, 255, 255, .07); stroke-width: 1.2; }
.abx-record .label { fill: #f08fb0; }
.abx-record .shine { fill: none; stroke: rgba(255, 255, 255, .5); stroke-width: 2; stroke-linecap: round; }
.abx-record .hole { fill: #fff; }
.abx-arm { position: absolute; right: -8px; top: -4px; width: 46px; height: 70px; transform-origin: 77% 11%; rotate: -24deg; transition: rotate .6s cubic-bezier(.3, 1.3, .5, 1); }
.abx-arm .pivot { fill: #d9d2c8; stroke: #a8a29e; stroke-width: 1.5; }
.abx-arm .rod { fill: none; stroke: #a8a29e; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.abx-arm .head { fill: #57534e; }
.abx-track { width: 100%; text-align: center; }
.abx-track b { display: block; font: 600 14.5px/1.2 var(--sans); color: #1c1917; }
.abx-track span { display: block; margin-top: 4px; font: 400 12.5px/1.3 var(--sans); color: #78716c; }
.abx-prog { height: 4px; margin: 12px 6px 0; border-radius: 4px; background: #ece7e0; overflow: hidden; }
.abx-prog i { display: block; width: 18%; height: 100%; border-radius: inherit; background: #5b9a83; }
.abx-eq { display: flex; justify-content: center; align-items: flex-end; gap: 3px; height: 14px; margin-top: 10px; }
.abx-eq i { width: 3px; height: 4px; border-radius: 2px; background: #5b9a83; transition: height .3s; }
.abx-card.abx-spin.live .abx-arm { rotate: 0deg; }
@media (prefers-reduced-motion: no-preference) {
  .abx-record { transition: rotate 1.2s ease-out; }
  .abx-card.abx-spin.live .abx-record { animation: abx-vinyl 3.2s linear infinite; }
  .abx-card.abx-spin.live .abx-prog i { animation: abx-prog 12s linear forwards; }
  .abx-card.abx-spin.live .abx-eq i { animation: abx-eq .9s ease-in-out infinite; }
  .abx-card.abx-spin.live .abx-eq i:nth-child(2) { animation-delay: -.3s; } .abx-card.abx-spin.live .abx-eq i:nth-child(3) { animation-delay: -.6s; }
  .abx-card.abx-spin.live .abx-eq i:nth-child(4) { animation-delay: -.15s; } .abx-card.abx-spin.live .abx-eq i:nth-child(5) { animation-delay: -.45s; }
}
@keyframes abx-vinyl { to { rotate: 360deg; } }
@keyframes abx-prog { from { width: 18%; } to { width: 100%; } }
@keyframes abx-eq { 0%, 100% { height: 4px; } 50% { height: 14px; } }

/* ===== My journey: readable, loads one by one on hover ===== */
.abx-card.journey li, .abx-card.journey li:nth-child(n) { opacity: 1; color: #78716c; font-size: 14.5px; }
.abx-card.journey li span { color: #a8a29e; }
.abx-card.journey li em { color: #78716c; background: #f1ece5; }
.abx-card.journey li::after { content: none; }
.abx-card.journey li { position: relative; transition: color .35s, transform .35s; }
.abx-card.journey li.lit { color: #1c1917; }
.abx-card.journey li.lit span { color: #57534e; }
.abx-card.journey li.now { color: #1c1917; }
@media (prefers-reduced-motion: no-preference) {
  .abx-card.journey li.pop { animation: abx-jpop .45s cubic-bezier(.3, 1.4, .5, 1); }
}
@keyframes abx-jpop { 0% { transform: translateX(-6px); } 100% { transform: none; } }
.abx-arm { rotate: -40deg; }

/* About intro: statement lines and yellow note 30% smaller */
.abx-line { font-size: clamp(12px, .49vw + 8.4px, 15.4px); }
.abx-box { padding: 0 8px; border-width: 1px; }
.abx-doodle { width: 21px; height: 25px; }
.abx-doodle.star { width: 22px; height: 22px; margin-right: 4px; }
.abx-line + .abx-line { margin-top: 12px; }
.abx-note { width: min(392px, 100%); padding: 46px 45px 36px; }
.abx-holes { top: 14px; }
.abx-holes i { width: 15px; height: 15px; }
.abx-note blockquote { font-size: 13.3px; }
.abx-line + .abx-note { margin-top: clamp(40px, 4.2vw, 59px); }
.abx-scramble .caret { border-radius: 1.5px; }
@media (max-width: 767px) { .abx-note { padding: 40px 22px 30px; } .abx-note blockquote { font-size: 13px; } }
/* journey replay: on hover every step fades out, then they return one by one */
@media (prefers-reduced-motion: no-preference) {
  .abx-card.journey li { transition: opacity .25s ease, color .35s, transform .35s; }
  .abx-card.journey.replay li { opacity: 0; transform: translateY(6px); }
  .abx-card.journey.replay li.lit { opacity: 1; transform: none; transition: opacity .4s ease-out, transform .4s ease-out, color .35s; }
}

/* ===== On repeat: pocket music player (after the Pinterest reference) ===== */
.abx-pod { position: relative; width: 150px; margin: 6px auto 0; padding: 18px 0 10px; }
.abx-cord { position: absolute; left: -35px; top: -10px; width: 220px; height: 230px; overflow: visible; pointer-events: none; }
.abx-cord .wire { fill: none; stroke: #f4f1ec; stroke-width: 3.2; stroke-linecap: round; filter: drop-shadow(0 1px 0 rgba(0, 0, 0, .18)); }
.abx-cord .bud path { fill: #fbfaf7; stroke: #d6d0c7; stroke-width: 1.2; }
.abx-cord .bud { transform-box: fill-box; transform-origin: 50% 100%; }
.abx-pod-body { position: relative; z-index: 1; width: 112px; margin: 0 auto; padding: 10px 10px 12px; border-radius: 16px; background: linear-gradient(160deg, #2b2524, #161312); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .12), 0 14px 22px -12px rgba(0, 0, 0, .55); }
.abx-pod-screen { position: relative; height: 70px; border-radius: 6px; overflow: hidden; background: #f0833a; box-shadow: inset 0 0 0 2px #3a302e; }
.abx-flower { position: absolute; left: 50%; top: 10px; width: 28px; translate: -50% 0; }
.abx-flower g circle { fill: #c43b45; } .abx-flower .mid { fill: #f6c344; }
.abx-marquee { position: absolute; left: 0; right: 0; bottom: 16px; display: flex; white-space: nowrap; font: 600 10px/1 var(--sans); color: #3a1a10; }
.abx-marquee span { flex: none; padding-right: 4px; }
.abx-pod-bar { position: absolute; left: 8px; right: 8px; bottom: 6px; height: 3px; border-radius: 3px; background: rgba(58, 26, 16, .25); overflow: hidden; }
.abx-pod-bar i { display: block; width: 22%; height: 100%; background: #3a1a10; }
.abx-wheel { position: relative; width: 80px; height: 80px; margin: 12px auto 0; border-radius: 50%; background: radial-gradient(circle at 50% 35%, #3a3332, #1d1918 70%); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08); display: grid; place-items: center; }
.abx-wheel-art { position: absolute; inset: 6px; width: calc(100% - 12px); height: calc(100% - 12px); opacity: .9; }
.abx-wheel-art circle { fill: #b9363f; }
.abx-wheel-btn { position: relative; width: 26px; height: 26px; border-radius: 50%; background: #f6c344; box-shadow: 0 0 0 3px #1d1918; }
@media (prefers-reduced-motion: no-preference) {
  .abx-card.abx-spin.live .abx-marquee span { animation: abx-marq 6s linear infinite; }
  .abx-card.abx-spin.live .abx-flower g { animation: abx-vinyl 6s linear infinite; transform-origin: 20px 21px; }
  .abx-card.abx-spin.live .abx-wheel-art { animation: abx-vinyl 9s linear infinite; }
  .abx-card.abx-spin.live .abx-pod-bar i { animation: abx-prog 12s linear forwards; }
  .abx-card.abx-spin.live .abx-cord .bud.l { animation: abx-bob .9s ease-in-out infinite; }
  .abx-card.abx-spin.live .abx-cord .bud.r { animation: abx-bob .9s ease-in-out -.45s infinite; }
}
@keyframes abx-marq { to { transform: translateX(-100%); } }
@keyframes abx-bob { 0%, 100% { rotate: 0deg; } 50% { rotate: -10deg; } }
.abx-pod-body { transition: translate .4s var(--ease); }
.abx-card.abx-spin.live .abx-pod-body { translate: 0 -3px; }
.abx-cord .wire { stroke: #fff; stroke-width: 3.4; filter: drop-shadow(0 0 .6px #8f8880) drop-shadow(0 1px 1px rgba(0, 0, 0, .18)); }
.abx-cord .bud path { fill: #fff; stroke: #9f988f; stroke-width: 1.3; }
.abx-card.abx-spin { display: flex; flex-direction: column; }
.abx-card.abx-spin .abx-pod { margin: auto; }

/* ===== Camera roll: back of a compact camera, photos loop on its screen ===== */
.abx-card.abx-cam { display: flex; flex-direction: column; }
.abx-camera { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) 46px; gap: 10px; width: 100%; max-width: 240px; margin: auto; padding: 12px 10px 14px 12px; border-radius: 16px 16px 18px 18px;
  background: linear-gradient(170deg, #ece5d8 0%, #d9d0c0 55%, #cbc1af 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .7), inset 0 -2px 0 rgba(0, 0, 0, .08), 0 0 0 1px rgba(62, 11, 14, .12), 0 16px 24px -16px rgba(62, 11, 14, .5); }
.abx-cam-screen { position: relative; aspect-ratio: 4 / 3.4; border-radius: 6px; overflow: hidden; background: #111; box-shadow: 0 0 0 4px #24201e, 0 0 0 5px rgba(0, 0, 0, .25); }
.abx-cam-screen img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .6s ease; }
.abx-cam-screen img.on { opacity: 1; }
.abx-cam-screen::after { content: ''; position: absolute; inset: 0; background: linear-gradient(150deg, rgba(255, 255, 255, .14), transparent 40%); pointer-events: none; }
.abx-cam-hud { position: absolute; left: 6px; top: 5px; z-index: 2; display: flex; gap: 5px; align-items: center; font: 600 8.5px/1 var(--mono, ui-monospace, monospace); color: #fff; text-shadow: 0 1px 2px rgba(0, 0, 0, .6); }
.abx-cam-hud b { font-size: 7px; color: #7be08f; }
.abx-cam-hud em { font-style: normal; }
.abx-cam-bat { position: absolute; right: 7px; top: 6px; z-index: 2; width: 14px; height: 7px; border: 1px solid #fff; border-radius: 1.5px; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .2); }
.abx-cam-bat::before { content: ''; position: absolute; left: 1px; top: 1px; bottom: 1px; width: 70%; background: #fff; }
.abx-cam-bat::after { content: ''; position: absolute; right: -3px; top: 1.5px; width: 2px; height: 3px; background: #fff; border-radius: 0 1px 1px 0; }
.abx-cam-side { display: grid; justify-items: center; align-content: start; gap: 7px; padding-top: 2px; }
.abx-cam-vf { width: 30px; height: 18px; border-radius: 4px; background: #1d1918; box-shadow: inset 0 0 0 2px #3a3332; }
.abx-cam-zoom { display: flex; gap: 2px; padding: 2px 3px; border-radius: 8px; background: #bfb5a3; font: 700 6px/1 var(--sans); color: #57534e; }
.abx-cam-zoom i { font-style: normal; padding: 1px 2px; }
.abx-cam-btn { width: 12px; height: 12px; border-radius: 50%; background: #e9e2d5; box-shadow: inset 0 -1px 1px rgba(0, 0, 0, .18), 0 1px 1px rgba(0, 0, 0, .15); }
.abx-cam-pad { position: relative; width: 34px; height: 34px; border-radius: 50%; background: #e9e2d5; box-shadow: inset 0 -2px 2px rgba(0, 0, 0, .15), 0 1px 1px rgba(0, 0, 0, .15); display: grid; place-items: center; }
.abx-cam-pad i { width: 12px; height: 12px; border-radius: 50%; background: #cfc6b5; box-shadow: inset 0 1px 1px rgba(0, 0, 0, .2); }
.abx-cam-side .abx-cam-btn:nth-of-type(n) { transition: transform .15s; }
.abx-card.abx-cam:hover .abx-cam-pad i { background: #f08fb0; }

/* ===== Camera roll v2: portrait silver-cream compact (after both Pinterest references) ===== */
.abx-camera { display: block; position: relative; width: 168px; max-width: none; margin: 6px auto 48px; padding: 9px 12px 8px 9px; border-radius: 9px; grid-template-columns: none;
  background: linear-gradient(100deg, #e9e6e0 0%, #f7f5f1 18%, #ebe8e2 45%, #f6f4ef 72%, #dcd8d0 100%);
  box-shadow: inset 0 1px 0 #fff, inset 0 -1px 0 rgba(0, 0, 0, .12), inset -1px 0 0 rgba(0, 0, 0, .08), 0 0 0 1px rgba(62, 11, 14, .14), 0 18px 26px -18px rgba(28, 25, 23, .55); }
.abx-cam-face { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) 12px; gap: 4px; }
.abx-cam-screen { aspect-ratio: 3 / 4; border-radius: 3px; box-shadow: 0 0 0 4px #121010, 0 0 0 5px #8f8b84; margin: 5px; }
.abx-cam-brand { writing-mode: vertical-rl; align-self: start; margin-top: 8px; font: 700 7.5px/1 var(--sans); letter-spacing: .18em; color: #57534e; }
.abx-cam-ctrl { position: relative; display: flex; align-items: center; gap: 7px; margin-top: 8px; padding: 6px 4px 2px 6px; border-top: 1px solid rgba(0, 0, 0, .06); }
.abx-cam-small { display: grid; justify-items: center; gap: 2px; }
.abx-cam-small i { width: 9px; height: 9px; border-radius: 50%; background: radial-gradient(circle at 40% 35%, #f5f4f1, #bdb8af); box-shadow: 0 0 0 1px rgba(0, 0, 0, .15); }
.abx-cam-small em { font: 700 4.5px/1 var(--sans); font-style: normal; letter-spacing: .1em; color: #78716c; }
.abx-cam-dial { position: relative; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center;
  background: repeating-conic-gradient(from 0deg, #f4f3f0 0deg 6deg, #cfcbc4 6deg 12deg), radial-gradient(#eee, #bbb);
  box-shadow: 0 0 0 1.5px #b6b1a8, inset 0 1px 1px rgba(255, 255, 255, .7), 0 2px 3px rgba(0, 0, 0, .18); transition: rotate .5s var(--ease); }
.abx-cam-dial i { width: 13px; height: 13px; border-radius: 50%; background: radial-gradient(circle at 40% 35%, #fbfaf8, #c9c4bb); box-shadow: 0 0 0 1px rgba(0, 0, 0, .18); }
.abx-cam-pad2 { width: 26px; height: 26px; border-radius: 50%; margin-left: auto; background: radial-gradient(circle at 45% 40%, #f3f1ec, #dcd8d0); box-shadow: inset 0 1px 2px rgba(0, 0, 0, .12); }
.abx-cam-slide { width: 8px; height: 22px; border-radius: 4px; background: #d6d2ca; box-shadow: inset 0 1px 2px rgba(0, 0, 0, .2); display: grid; justify-items: center; padding-top: 2px; }
.abx-cam-slide i { width: 6px; height: 9px; border-radius: 3px; background: linear-gradient(#fbfaf8, #c9c4bb); box-shadow: 0 1px 1px rgba(0, 0, 0, .2); transition: translate .4s var(--ease); }
.abx-cam-rocker { position: absolute; right: -3px; top: 60px; width: 3px; height: 20px; border-radius: 0 2px 2px 0; background: #c9c4bb; }
.abx-cam-key { position: absolute; right: -2px; top: 92px; width: 2px; height: 12px; border-radius: 0 2px 2px 0; background: #bdb8af; }
.abx-cam-key.k2 { top: 110px; }
.abx-cam-strap { position: absolute; right: 10px; bottom: -52px; width: 24px; height: 56px; overflow: visible; }
.abx-cam-strap path { fill: none; stroke: #57534e; stroke-width: 2.4; stroke-linecap: round; }
.abx-cam-strap rect { fill: #8f8b84; }
.abx-camera { transition: rotate .5s var(--ease), translate .5s var(--ease); }
@media (prefers-reduced-motion: no-preference) {
  .abx-cam-strap { transform-origin: 30% 0; animation: abx-strap 3.2s ease-in-out infinite; }
  .abx-card.abx-cam:hover .abx-camera { rotate: -2deg; translate: 0 -3px; }
  .abx-card.abx-cam:hover .abx-cam-dial { rotate: 45deg; }
  .abx-card.abx-cam:hover .abx-cam-slide i { translate: 0 9px; }
}
@keyframes abx-strap { 0%, 100% { rotate: 0deg; } 50% { rotate: 6deg; } }
.abx-card.abx-cam:hover .abx-cam-pad i { background: none; }
/* camera: no hover motion, 30% bigger */
.abx-card.abx-cam:hover .abx-camera { rotate: none; translate: none; }
.abx-card.abx-cam:hover .abx-cam-dial { rotate: none; }
.abx-card.abx-cam:hover .abx-cam-slide i { translate: none; }
.abx-card.abx-cam { padding-left: 8px; padding-right: 8px; }
.abx-card.abx-cam .abx-cap { padding-left: 8px; }
.abx-camera { zoom: 1.3; }
@media (max-width: 767px) { .abx-camera { zoom: 1.15; } }
/* snapshot grid: top row 2/3 + 1/3, bottom row Camera roll 40% + My journey 60% */
@media (min-width: 768px) {
  .abx-grid { grid-template-columns: repeat(30, minmax(0, 1fr)); column-gap: 0; }
  .abx-card.notes { grid-column: span 20; }
  .abx-card.energy { grid-column: span 10; margin-left: 12px; }
  .abx-card.abx-cam { grid-column: span 12; }
  .abx-card.journey { grid-column: span 18; margin-left: 12px; }
}
/* no wrist strap: drop the space reserved for it */
.abx-camera { margin-bottom: 12px; }
/* window keeps one size for both tabs; longer content scrolls inside it, like an app window */
@media (min-width: 768px) {
  .abx-body { height: 700px; min-height: 0; }
  .abx-pane { min-height: 0; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: #d6cfc5 transparent; }
  .abx-pane::-webkit-scrollbar { width: 8px; } .abx-pane::-webkit-scrollbar-thumb { background: #d6cfc5; border-radius: 8px; }
  .abx-pane[data-pane="snapshot"] .abx-grid { min-height: 100%; grid-template-rows: auto 1fr; }
}

/* small uppercase labels everywhere use the same code font as the About page */
:root { --mono: ui-monospace, 'SF Mono', Menlo, Consolas, monospace; }
.cap, .sky-cap, .desk-cap b { font-family: var(--mono) !important; font-stretch: normal; letter-spacing: .12em; }
.cs5 .cap { letter-spacing: .08em; }
/* Work cards: title in Google Sans Flex, calmer sizes, a touch more space under the title */
.w-cards[data-label="b"] .w-label { gap: 6px; padding-top: 42px; padding-bottom: 18px; }
.w-cards[data-label="b"] .w-lt { font: 600 18px/1.2 var(--sans); letter-spacing: -.01em; color: #1c1917; }
.w-cards[data-label="b"] .w-ld { font: 400 13.5px/1.45 var(--sans); color: #57534e; max-width: 28ch; }
@media (max-width: 1100px) { .w-cards[data-label="b"] .w-lt { font-size: 17px; } .w-cards[data-label="b"] .w-ld { font-size: 13px; } }
@media (max-width: 700px) { .w-cards[data-label="b"] .w-lt { font-size: 19px; } .w-cards[data-label="b"] .w-ld { font-size: 14px; } }
/* bottom nav: SF Mono, uppercase */
.tabs a { font: 500 12.5px/1 var(--mono); letter-spacing: .06em; text-transform: uppercase; }
@media (max-width: 520px) { .tabs a { font-size: 11px; letter-spacing: .03em; } }
@media (max-width: 380px) { .tabs a { font-size: 10px; letter-spacing: 0; } }
/* Home journal card: not a link */
.notes-card { cursor: default; }
/* yellow note 15% bigger */
.abx-note { width: min(451px, 100%); padding: 53px 52px 41px; }
.abx-holes { top: 16px; }
.abx-holes i { width: 17px; height: 17px; }
.abx-note blockquote { font-size: 15.3px; }
@media (max-width: 767px) { .abx-note { padding: 46px 25px 34px; } .abx-note blockquote { font-size: 14.5px; } }

/* Personal tab: contact rows */
.abx-links { list-style: none; margin: 0 0 6px; padding: 0; }
.abx-links li { display: grid; grid-template-columns: 34px minmax(0, 1fr) auto auto; align-items: center; gap: 12px; padding: 14px 8px; border-bottom: 1px solid #e8e2da; border-radius: 8px; transition: background .2s, padding .2s; }
.abx-links li[hidden] { display: none; }
.abx-links li:hover { background: rgba(62, 11, 14, .045); padding-left: 14px; }
.abx-links .ic { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 9px; background: #ece7e0; }
.abx-links .ic svg { width: 18px; height: 18px; fill: none; stroke: #3e0b0e; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.abx-links b { display: block; font: 600 15px/1.25 var(--sans); color: #1c1917; }
.abx-links div span { display: block; margin-top: 3px; font: 400 13px/1.3 var(--mono); color: #78716c; }
.abx-links .abx-go { text-decoration: none; white-space: nowrap; }
.abx-links .abx-go:not(:last-child) { margin-right: -4px; }
.abx-stats.now { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.abx-stats.now b { font-size: 20px; }
@media (max-width: 767px) { .abx-links li { grid-template-columns: 34px minmax(0, 1fr) auto; } .abx-links li [data-copy] { display: none; } .abx-stats.now { grid-template-columns: 1fr; } }

/* ===== Personal: macOS-style dock ===== */
.abx-dockwrap { display: grid; place-items: center; padding: 70px 0 16px; }
.abx-dock { display: flex; align-items: flex-end; gap: 12px; padding: 10px 14px; border-radius: 22px;
  background: rgba(255, 255, 255, .55); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 0 0 1px rgba(62, 11, 14, .1), inset 0 1px 0 rgba(255, 255, 255, .8), 0 18px 30px -18px rgba(28, 25, 23, .45); }
.abx-app { --s: 1; position: relative; display: block; width: 58px; height: 58px; text-decoration: none;
  transform-origin: 50% 100%; transform: scale(var(--s)) translateY(calc((var(--s) - 1) * -6px)); transition: transform .18s cubic-bezier(.3, 1.3, .5, 1); margin: 0 calc((var(--s) - 1) * 18px); }
.abx-app .tile { display: block; width: 100%; height: 100%; border-radius: 14px; overflow: hidden;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35), 0 6px 10px -6px rgba(0, 0, 0, .35), 0 0 0 .5px rgba(0, 0, 0, .12); }
.abx-app .tile svg { width: 100%; height: 100%; display: block; }
.tile.mail { background: linear-gradient(180deg, #5fb3ff, #1f6fe0); }
.tile.li { background: linear-gradient(180deg, #2f8ae0, #0a66c2); }
.tile.cv { background: linear-gradient(180deg, #fffdf6, #f3efe6); }
.tile.gh { background: linear-gradient(180deg, #3a3a3d, #121214); }
.tile.be { background: linear-gradient(180deg, #2b74ff, #0047d8); }
/* the name bubble above an icon */
.abx-app::before { content: attr(data-name); position: absolute; left: 50%; bottom: calc(100% + 12px); translate: -50% 4px; padding: 6px 12px; border-radius: 9px; white-space: nowrap;
  font: 500 12px/1 var(--sans); color: #fff; background: rgba(60, 54, 51, .82); backdrop-filter: blur(8px); opacity: 0; pointer-events: none; transition: opacity .15s, translate .15s; transform: scale(calc(1 / var(--s))); transform-origin: 50% 100%; }
.abx-app::after { content: ''; position: absolute; left: 50%; bottom: calc(100% + 6px); width: 10px; height: 6px; translate: -50% 4px; background: rgba(60, 54, 51, .82); clip-path: polygon(0 0, 100% 0, 50% 100%); opacity: 0; transition: opacity .15s, translate .15s; transform: scale(calc(1 / var(--s))); transform-origin: 50% 0; }
.abx-app:hover::before, .abx-app:focus-visible::before, .abx-app:hover::after, .abx-app:focus-visible::after { opacity: 1; translate: -50% 0; }
.abx-mail { margin: 4px 0 26px; text-align: center; font: 400 13px/1 var(--mono); color: #78716c; }
.abx-mail .abx-go { margin-left: 8px; }
@media (max-width: 767px) { .abx-dock { gap: 8px; padding: 8px 10px; } .abx-app { width: 46px; height: 46px; } .abx-dockwrap { padding-top: 40px; } }

/* Personal: app-grid (Launchpad style) instead of a dock */
.abx-dockwrap { padding: 28px 0 10px; }
.abx-dock.abx-grid-apps { display: grid; grid-template-columns: repeat(5, 96px); justify-content: center; gap: 22px 18px; padding: 0; background: none; box-shadow: none; backdrop-filter: none; -webkit-backdrop-filter: none; border-radius: 0; }
.abx-grid-apps .abx-app { --s: 1 !important; width: auto; height: auto; margin: 0; display: grid; justify-items: center; gap: 10px; transform: none; }
.abx-grid-apps .abx-app::before, .abx-grid-apps .abx-app::after { content: none; }
.abx-grid-apps .tile { width: 72px; height: 72px; border-radius: 18px; transition: transform .25s cubic-bezier(.3, 1.4, .5, 1), box-shadow .25s; }
.abx-grid-apps .abx-app:hover .tile, .abx-grid-apps .abx-app:focus-visible .tile { transform: scale(1.08); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35), 0 12px 18px -10px rgba(0, 0, 0, .4), 0 0 0 .5px rgba(0, 0, 0, .12); }
.abx-grid-apps .abx-app:active .tile { transform: scale(.96); }
.abx-grid-apps .lbl { font: 500 14px/1.2 var(--sans); color: #1c1917; white-space: nowrap; }
@media (max-width: 767px) { .abx-dock.abx-grid-apps { grid-template-columns: repeat(3, 84px); gap: 18px 12px; } .abx-grid-apps .tile { width: 60px; height: 60px; border-radius: 15px; } }
/* Personal app grid: left-aligned, icons 10% smaller */
.abx-dockwrap { display: block; padding: 18px 0 10px; }
.abx-dock.abx-grid-apps { justify-content: start; grid-template-columns: repeat(5, 86px); gap: 20px 14px; }
.abx-grid-apps .tile { width: 65px; height: 65px; border-radius: 16px; }
.abx-mail { text-align: left; margin-left: 10px; }
@media (max-width: 767px) { .abx-dock.abx-grid-apps { grid-template-columns: repeat(3, 76px); } .abx-grid-apps .tile { width: 54px; height: 54px; border-radius: 13.5px; } }
.abx-dock.abx-grid-apps { width: 100%; margin: 0; justify-content: start !important; justify-items: start; }
/* Personal apps: left-aligned, 20px more space between icons */
.abx-dock.abx-grid-apps { column-gap: 34px; }
.abx-dockwrap { padding-bottom: 26px; }



/* case quote band: no pink background */
.cs5 .cs4-band { background: transparent; box-shadow: none; padding-left: 0; padding-right: 0; }
/* case quote band styled exactly like the "The short version" cards */
.cs5 .cs4-band { background: var(--paper-2); box-shadow: 0 0 0 1px var(--line); border-radius: 14px; padding: 28px 32px; }
/* first result number: no pink highlight */
.cs5 .cs5-stats > div:first-child b { background: none; }

/* case CTA: white button on the brown band */
.cs2-band .btn { background: #fff; color: var(--head); }

/* ===== Home clock: flip-clock tiles (hours | minutes, AM/PM tucked in the corner) ===== */
.cc-time.fc { margin-top: 8px; display: block; }
.cc-time.fc time { display: flex; gap: 6px; min-width: 0; font: inherit; perspective: 300px; }
.fc-tile { position: relative; display: grid; place-items: center; width: calc(var(--u) * 4.4); height: calc(var(--u) * 4); border-radius: 9px; background: linear-gradient(#2a2523 0 50%, #221e1c 50% 100%); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06), 0 6px 12px -8px rgba(28, 25, 23, .6); transform-origin: 50% 50%; }
.fc-tile b { font: 700 calc(var(--u) * 3)/1 var(--sans); font-stretch: 90%; letter-spacing: -.04em; font-variant-numeric: tabular-nums; color: #f5f1ea; }
.fc-tile::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1.5px; margin-top: -.75px; background: #0f0d0c; }
.fc-ap { position: absolute; left: 7px; bottom: 6px; font: 700 8.5px/1 var(--sans); letter-spacing: .04em; color: #f5f1ea; }
.fc-tile.flip b { animation: fcflip .5s cubic-bezier(.45, 0, .3, 1); }
@keyframes fcflip { 0% { transform: rotateX(0); } 46% { transform: rotateX(88deg); opacity: .6; } 54% { transform: rotateX(-88deg); opacity: .6; } 100% { transform: rotateX(0); } }
.clock-card .cc-zone { margin-top: 9px; }
@media (max-width: 760px) { .fc-tile { width: 58px; height: 52px; } .fc-tile b { font-size: 38px; } }
.fc-tile { width: calc(var(--u) * 5); }
.fc-tile b { font-size: calc(var(--u) * 2.8); }
.fc-tile:has(.fc-ap) b { transform: translateX(calc(var(--u) * .45)); }
.fc-tile:has(.fc-ap).flip b { animation-name: fcflipx; }
@keyframes fcflipx { 0% { transform: translateX(calc(var(--u) * .45)) rotateX(0); } 46% { transform: translateX(calc(var(--u) * .45)) rotateX(88deg); opacity: .6; } 54% { transform: translateX(calc(var(--u) * .45)) rotateX(-88deg); opacity: .6; } 100% { transform: translateX(calc(var(--u) * .45)) rotateX(0); } }
.fc-ap { left: 6px; bottom: 5px; font-size: 7.5px; }
@media (max-width: 760px) { .fc-tile { width: 64px; } .fc-tile b { font-size: 36px; } }
.cc-time .fc-ap { font: 700 7.5px/1 var(--sans); letter-spacing: .04em; color: #f5f1ea; }
.cc-time .fc-tile { font: inherit; letter-spacing: normal; text-transform: none; }
/* three tiles: hours | minutes | seconds */
.fc-tile { width: calc(var(--u) * 4.4); height: calc(var(--u) * 3.6); }
.fc-tile b { font-size: calc(var(--u) * 2.4); }
.cc-time.fc time { gap: 5px; }
@media (max-width: 760px) { .fc-tile { width: 54px; height: 48px; } .fc-tile b { font-size: 30px; } }

/* ===== Clock tiles: rolling digits (after the countdown-timer inspiration) ===== */
.fc-tile.flip b { animation: none; }
.fc-tile b { display: flex; transform: none !important; }
.fc-tile:has(.fc-ap) b { margin-left: calc(var(--u) * .6); }
.fc-tile { overflow: hidden; }
.fd { position: relative; display: inline-grid; width: .6em; height: 1em; overflow: hidden; }
.fd i { grid-area: 1 / 1; font-style: normal; text-align: center; line-height: 1; }
.fd i.in { animation: fdIn .6s cubic-bezier(.2, 1.3, .4, 1) both; }
.fd i.out { animation: fdOut .35s cubic-bezier(.5, 0, .9, .4) both; }
@keyframes fdIn { from { transform: translateY(85%); opacity: 0; } 30% { opacity: 1; } to { transform: none; opacity: 1; } }
@keyframes fdOut { from { opacity: 1; transform: none; } to { opacity: 0; transform: translateY(-40%) scale(.9); } }
.cc-time .fd { font: inherit; color: inherit; letter-spacing: inherit; text-transform: none; }
/* smoother roll: old and new digit move together like one reel, one gentle ease, no bounce */
.fd { height: 1.08em; align-items: center; }
.fd i { will-change: transform, opacity; backface-visibility: hidden; }
.fd i.in { animation: fdIn2 .55s cubic-bezier(.22, 1, .36, 1) both; }
.fd i.out { animation: fdOut2 .55s cubic-bezier(.22, 1, .36, 1) both; }
@keyframes fdIn2 { from { transform: translate3d(0, 100%, 0); opacity: .2; } to { transform: translate3d(0, 0, 0); opacity: 1; } }
@keyframes fdOut2 { from { transform: translate3d(0, 0, 0); opacity: 1; } to { transform: translate3d(0, -100%, 0); opacity: .2; } }

/* ===== Writing index in the About window ===== */
.wr:has(.wr-win) { max-width: 1040px; }
.wr:has(.wr-win) .wr-head { border-bottom: 0; padding-bottom: 0; }
.wr-win { margin-top: clamp(28px, 4vw, 44px); }
.wr-win .abx-body { min-height: 0; }
.wr-n { margin-left: auto; font: 400 11.5px/1 var(--mono); color: #a8a29e; }
.wr-win .abx-side button { width: 100%; }
.wr-wlist { list-style: none; margin: 0; padding: 0; }
.wr-wlist li { position: relative; border-bottom: 1px solid #e8e2da; border-radius: 8px; transition: background .2s; }
.wr-wlist li[hidden] { display: none; }
.wr-wlist li::before { content: ''; position: absolute; left: 0; top: 14px; bottom: 14px; width: 2px; border-radius: 2px; background: var(--head); opacity: 0; transition: opacity .2s; }
.wr-wlist li:hover, .wr-wlist li:focus-within { background: rgba(62, 11, 14, .045); }
.wr-wlist li:hover::before, .wr-wlist li:focus-within::before { opacity: 1; }
.wr-wrow { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; align-items: center; gap: 14px; width: 100%; padding: 22px 10px; text-align: left; transition: padding .2s; }
.wr-wlist li:hover .wr-wrow { padding-left: 18px; }
.wr-num { font: 400 12px var(--mono); color: #a8a29e; }
.wr-wrow .wr-title { display: block; font: 600 clamp(17px, .3vw + 15px, 19px)/1.3 var(--sans); letter-spacing: -.01em; color: #1c1917 !important; }
.wr-wrow .wr-title em { font-style: normal; }
.wr-wrow .wr-dek { display: block; margin-top: 6px; font: 400 14.5px/1.5 var(--sans); color: #57534e; max-width: 60ch; }
.wr-tags { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 10px; }
.wr-tags .t { padding: 3px 6px; border-radius: 4px; font: 500 10px/1 var(--mono); font-style: normal; letter-spacing: .1em; text-transform: uppercase; background: #ece6de; color: #57534e; }
.wr-tags .t.ux { background: #f6e7c8; color: #9a6b13; }
.wr-tags .t.ai { background: #e3edf8; color: #3f6aa8; }
.wr-rt { margin-left: 4px; font: 400 11.5px var(--mono); color: #a8a29e; }
.wr-wrow .wr-go { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line); color: #1c1917; transition: background .2s, translate .2s; }
.wr-wlist li:hover .wr-go { background: var(--pink); translate: 3px 0; }
@media (max-width: 767px) { .wr-win .abx-side button { width: auto; } .wr-n { margin-left: 6px; } }
@media (max-width: 600px) { .wr-wrow { grid-template-columns: minmax(0, 1fr); } .wr-num, .wr-wrow .wr-go { display: none; } }
.wr-wrow .wr-go { grid-column: auto; grid-row: auto; font: 400 15px var(--sans); box-shadow: none; }
#panel-writing .wr-wrow .wr-title { font-weight: 600; letter-spacing: -.01em; }
#panel-writing .wr-wrow .wr-title em { font-weight: 600; color: inherit; }
.wr-wrow .wr-dek { grid-column: auto; }
.abx-win.wr-win { height: auto; }
.wr-win .abx-pane { height: auto; overflow: visible; }
.wr-win .abx-body { height: auto; }
.wr-win { margin-top: clamp(8px, 3vh, 32px); }
/* writing window: same size for All essays, UX and AI */
.wr-win .abx-body { height: 630px; }
.wr-win .abx-pane { overflow: auto; }
@media (max-width: 767px) { .wr-win .abx-body { height: auto; } }
/* writing window 20% larger */
.wr:has(.wr-win) { max-width: 1248px; }
.wr-win .abx-body { height: 756px; grid-template-columns: 228px minmax(0, 1fr); }
@media (max-width: 767px) { .wr-win .abx-body { height: auto; grid-template-columns: 1fr; } }
#panel-writing .panel-in:has(.wr-win) { max-width: 1376px; }
/* writing window never runs under the bottom tab bar */
.wr-win .abx-body { height: clamp(420px, calc(100dvh - 300px), 756px); }
#panel-writing .panel-in:has(.wr-win) { padding-bottom: 120px; }
@media (max-width: 767px) { .wr-win .abx-body { height: auto; } }

/* ===== Opened essay: same window, same size, the essay scrolls inside ===== */
.wr-win .abx-pane.wr-reading { padding: clamp(24px, 3vw, 44px) clamp(20px, 4vw, 64px) 56px; scroll-behavior: smooth; }
.wr-reading .wr-art { max-width: 700px; }
.wr-reading .wr-art .w-back { margin-bottom: 28px; }
.wr-reading .wr-art h1 { font-size: clamp(32px, 2.4vw + 16px, 48px); }
/* taller writing window: less space above, closer to the tab bar */
#panel-writing .panel-in:has(.wr-win) { padding-top: 12px; padding-bottom: 96px; }
.wr-win { margin-top: 0; }
.wr-win .abx-body { height: clamp(420px, calc(100dvh - 212px), 1000px); }
@media (max-width: 767px) { .wr-win .abx-body { height: auto; } }

/* ===== Essay reading type, sized for the window (Mac document feel) ===== */
.wr-reading { --sf: -apple-system, BlinkMacSystemFont, 'SF Pro Text', system-ui, sans-serif; }
.wr-reading .wr-art { max-width: 620px; }
.wr-reading .wr-art > .cap { margin-top: 4px; }
#panel-writing .wr-reading .wr-art h1 { margin-top: 12px; font-size: clamp(26px, 1vw + 20px, 32px); line-height: 1.15; font-weight: 600; letter-spacing: -.02em; }
#panel-writing .wr-reading .wr-art h1 em { font-weight: 600; }
.wr-reading .wr-dekL { margin-top: 12px; font-size: 16px; line-height: 1.55; color: #78716c; }
.wr-reading .wr-body { margin-top: 26px; padding-top: 24px; font-size: 15.5px; line-height: 1.7; color: #44403c; }
.wr-reading .wr-body > * + * { margin-top: .95em; }
#panel-writing .wr-reading .wr-body h2 { margin-top: 2em; font-size: 19px; line-height: 1.3; font-weight: 600; letter-spacing: -.01em; }
.wr-reading .wr-body h2 + * { margin-top: .6em; }
.wr-reading .wr-body em { font-family: var(--sf); font-style: normal; font-weight: 600; font-size: .97em; color: #1c1917; letter-spacing: -.01em; }
.wr-reading .wr-body strong { font-weight: 600; color: #1c1917; }
.wr-reading .wr-body blockquote { margin: 1.8em 0; padding: 14px 18px; border-left: 0; border-radius: 10px; background: #ebe6df; }
.wr-reading .wr-body blockquote p { font: 500 17px/1.45 var(--sans); letter-spacing: -.01em; color: #1c1917; }
.wr-reading .wr-body ol, .wr-reading .wr-body ul { padding-left: 1.2em; }
.wr-reading .wr-body li + li { margin-top: .55em; }
.wr-reading .wr-body li::marker { font: 500 13px var(--mono); color: #a8a29e; }
.wr-reading .wr-fig { margin: 1.8em 0; }
.wr-reading .wr-fig figcaption { font-size: 13px; color: #a8a29e; }
.wr-reading .wr-end { margin-top: 44px; padding-top: 22px; }
.wr-reading .wr-author p { font-size: 13.5px; }
.wr-reading .wr-author b { font-size: 15px; }
.wr-reading .wr-author img { width: 42px; height: 42px; }
/* reading progress in the title bar */
.wr-win .abx-bar::after { content: ''; position: absolute; left: 0; bottom: -1px; height: 2px; width: calc(var(--rp, 0) * 100%); background: var(--head); transition: width .1s linear; }
/* smaller essay illustrations */
.wr-reading .wr-fig-img img { max-width: 400px; }
.wr-reading .wr-fig-img.wide img { max-width: 500px; }
.wr-reading .wr-fig svg { max-width: 380px; }
.wr-reading .wr-fig figcaption { margin-top: 6px; }

/* ===== Home: "hi, i'm nansi" die-cut sticker ===== */
.hi-sticker { display: table; margin: 0 auto 14px; padding: 2px 4px; rotate: -3deg; font: 700 clamp(22px, 1.1vw + 16px, 28px)/1.1 'Google Sans Flex', system-ui, sans-serif; font-variation-settings: "slnt" -10; font-style: oblique 10deg; letter-spacing: -.035em; color: #1c1917;
  text-shadow: 0 0 0 #fff, 3px 0 0 #fff, -3px 0 0 #fff, 0 3px 0 #fff, 0 -3px 0 #fff, 2px 2px 0 #fff, -2px 2px 0 #fff, 2px -2px 0 #fff, -2px -2px 0 #fff, 4px 1px 0 #fff, -4px 1px 0 #fff, 1px 4px 0 #fff, 1px -4px 0 #fff, 3px 3px 0 #fff, -3px 3px 0 #fff, 3px -3px 0 #fff, -3px -3px 0 #fff;
  filter: drop-shadow(0 1px 0 rgba(28, 25, 23, .08)) drop-shadow(0 6px 8px rgba(62, 11, 14, .16)); cursor: default; transition: rotate .35s cubic-bezier(.34, 1.56, .64, 1), translate .35s cubic-bezier(.34, 1.56, .64, 1), filter .35s; }
.hi-sticker:hover { rotate: 1deg; translate: 0 -3px; filter: drop-shadow(0 1px 0 rgba(28, 25, 23, .08)) drop-shadow(0 12px 14px rgba(62, 11, 14, .2)); }
/* sticker stays inline, where the greeting was */
.hi-sticker { display: inline-block; margin: 0 6px 0 0; padding: 0 3px; font-size: 1.1em; vertical-align: -.05em; }
/* sticker: straight, no shadow */
.hi-sticker, .hi-sticker:hover { rotate: 0deg; translate: none; filter: none; }
/* sticker: shadow back, still straight */
.hi-sticker, .hi-sticker:hover { filter: drop-shadow(0 1px 0 rgba(28, 25, 23, .08)) drop-shadow(0 6px 8px rgba(62, 11, 14, .16)); }

/* ===== Home: plant-a-tree card (replaces the memory game teaser) ===== */
.tree-card { font: inherit; text-align: left; cursor: pointer; border: 0; }
.tc-land { position: relative; display: block; flex: none; width: 104px; height: 52px; border-radius: 8px; overflow: hidden; background: linear-gradient(#f7efe6, #fbf6ef); box-shadow: inset 0 0 0 1px rgba(62, 11, 14, .08); }
.tc-sun { position: absolute; right: 10px; top: 8px; width: 12px; height: 12px; border-radius: 50%; background: #f3c46b; opacity: .85; }
.tc-ground { position: absolute; left: 0; right: 0; bottom: 0; height: 9px; background: #c9b79c; border-top: 1px solid #b8a487; }
.tc-trees { position: absolute; inset: 0 0 8px; }
.tc-tree { position: absolute; bottom: 0; left: var(--x); width: 20px; height: 30px; margin-left: -10px; transform-origin: 50% 100%; scale: var(--s); }
.tc-tree svg { display: block; width: 100%; height: 100%; }
.tc-tree.grow { animation: tcGrow .7s cubic-bezier(.34, 1.56, .64, 1) both; }
@keyframes tcGrow { from { scale: 0 0; } 60% { scale: calc(var(--s) * .9) calc(var(--s) * 1.12); } to { scale: var(--s); } }
.tc-pop { position: absolute; top: 4px; margin-left: -8px; font: 700 11px/1 var(--sans); color: var(--head); pointer-events: none; animation: tcPop .9s ease-out both; }
@keyframes tcPop { from { opacity: 0; translate: 0 8px; } 25% { opacity: 1; } to { opacity: 0; translate: 0 -10px; } }
.tree-card:active .tc-land { scale: .97; }
.tree-card .gt-txt { margin-left: 0; }
@media (prefers-reduced-motion: reduce) { .tc-tree.grow, .tc-pop { animation: none; } }

/* ===== Shared forest (opens from the Plant a tree card) ===== */
.tc-tree { left: auto; margin-left: -10px; }
.tf { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; padding: 20px; background: rgba(28, 25, 23, .35); opacity: 0; transition: opacity .25s; }
.tf.on { opacity: 1; }
.tf[hidden] { display: none; }
.tf-card { width: min(1000px, 100%); max-height: calc(100dvh - 40px); display: flex; flex-direction: column; border-radius: 16px; overflow: hidden; background: #f6f3ee; box-shadow: 0 0 0 1px var(--line), 0 40px 70px -30px rgba(62, 11, 14, .55); translate: 0 14px; transition: translate .35s cubic-bezier(.22, 1, .36, 1); }
.tf.on .tf-card { translate: 0 0; }
.tf-x { position: absolute; right: 12px; top: 50%; translate: 0 -50%; width: 26px; height: 26px; border-radius: 50%; font: 400 18px/1 var(--sans); color: #78716c; }
.tf-x:hover { background: rgba(62, 11, 14, .07); }
.tf-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 22px 26px 18px; }
.tf-top h2 { font: 600 clamp(22px, 1vw + 18px, 28px)/1.15 'Google Sans Flex', system-ui, sans-serif !important; letter-spacing: -.02em; color: var(--head) !important; }
.tf-top h2 em { font-style: normal; color: var(--pink-dot); }
.tf-top p { margin-top: 6px; font: 400 14.5px/1.4 var(--sans); color: #57534e; }
.tf-top p b { color: #1c1917; font-weight: 600; }
.tf-land { position: relative; flex: 1; min-height: 320px; height: 52vh; margin: 0 16px 16px; border-radius: 12px; overflow: hidden; background: linear-gradient(#f7efe6 0 30%, #e9e2cf 30% 31%, #ddd3b9 31%, #cfc3a4); box-shadow: inset 0 0 0 1px rgba(62, 11, 14, .08); }
.tf-sun { position: absolute; right: 7%; top: 9%; width: 34px; height: 34px; border-radius: 50%; background: #f3c46b; opacity: .85; }
.tf-field { position: absolute; left: 0; right: 0; top: 24%; bottom: 3%; }
.tf-field .tc-tree { width: 22px; height: 33px; margin-left: -11px; }
@media (max-width: 600px) { .tf-land { height: 46vh; } .tf-top { padding: 18px; } }

/* ===== Forest window v2: community-garden layout ===== */
.tf-card { width: min(1180px, 100%); }
.tf-top { align-items: flex-start; padding: 18px 24px 14px; }
.tf-top h2.cap { font: 500 12px/1 var(--mono) !important; letter-spacing: .32em !important; color: #a8a29e !important; text-transform: uppercase; }
.tf-sub { margin-top: 10px !important; font: 400 15.5px/1.4 var(--sans) !important; color: #57534e !important; }
.tf-ctl { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.tf-seg { display: inline-flex; padding: 3px; border-radius: 999px; background: #fff; box-shadow: 0 0 0 1px var(--line); }
.tf-seg button { padding: 7px 14px; border-radius: 999px; font: 500 14px/1 var(--sans); color: #57534e; transition: background .2s, color .2s; }
.tf-seg button.on { background: #1c1917; color: #fff; }
.tf-mine { font: 400 14px var(--sans); color: #a8a29e; }
.tf-mine:empty { display: none; }
.tf-plant { padding: 10px 18px; font-size: 14px; }
.tf-land { height: 64vh; min-height: 360px; margin: 0 16px 16px; background: #faf8f4; box-shadow: inset 0 0 0 1px rgba(62, 11, 14, .06); }
.tf-sun { display: none; }
.tf-field { inset: 3% 2%; top: 3%; bottom: 3%; }
.tf-field .tc-tree { bottom: auto; width: 20px; height: 30px; margin: -30px 0 0 -10px; transition: left .9s cubic-bezier(.22, 1, .36, 1), top .9s cubic-bezier(.22, 1, .36, 1), opacity .5s, scale .5s; }
.tf-field .tc-tree.gone { opacity: 0; scale: .4; pointer-events: none; }
.tf-way { position: absolute; inset: 3% 2%; width: 96%; height: 94%; overflow: visible; opacity: 0; transition: opacity .6s .3s; }
.tf-way.on { opacity: 1; }
.tf-way path { fill: none; stroke: #c9b79c; stroke-width: 1.5; stroke-dasharray: 3 4; vector-effect: non-scaling-stroke; stroke-linecap: round; }
@media (max-width: 700px) { .tf-ctl { width: 100%; } .tf-land { height: 52vh; } }
.tf-field .tc-tree { width: 14px; height: 21px; margin: -21px 0 0 -7px; }
.tf-field .tc-tree.tidy { width: 24px; height: 36px; margin: -36px 0 0 -12px; }

/* ---- watercolour tree illustrations (replace the drawn shapes) ---- */
.tc-tree { width: auto; height: 34px; margin-left: 0; translate: -50% 0; }
.tc-tree img { display: block; height: 100%; width: auto; pointer-events: none; user-select: none; }
.tf-field .tc-tree { width: auto; height: 38px; margin: 0; translate: -50% -100%;
  transition: left .9s cubic-bezier(.22, 1, .36, 1), top .9s cubic-bezier(.22, 1, .36, 1), height .9s cubic-bezier(.22, 1, .36, 1), opacity .5s, scale .5s; }
.tf-field .tc-tree.tidy { width: auto; height: 92px; margin: 0; }
@media (max-width: 700px) { .tf-field .tc-tree { height: 28px; } .tf-field .tc-tree.tidy { height: 56px; } }
/* one soft, even ground shadow under every tree (the painted washes were trimmed off) */
.tc-tree::after { content: ''; position: absolute; z-index: -1; left: 50%; bottom: 0; width: 64%; height: 9%; translate: -50% 45%;
  border-radius: 50%; background: radial-gradient(closest-side, rgba(87, 70, 52, .28), rgba(87, 70, 52, .12) 55%, transparent); }
.tc-tree { isolation: isolate; }
/* forest window: narrower and taller, about 62% × 80% of the screen */
.tf-card { width: min(1240px, max(62vw, 720px), 100%); height: min(80dvh, 1000px); }
.tf-land { height: auto; flex: 1; min-height: 320px; }
@media (max-width: 700px) { .tf-card { height: auto; } .tf-land { height: 52vh; flex: none; } }
/* the canvas itself plants a tree where you click */
.tf-land { cursor: pointer; outline: none; }
.tf-land:focus-visible { box-shadow: inset 0 0 0 2px var(--head); }
.tf-hint { position: absolute; left: 50%; bottom: 14px; translate: -50% 0; margin: 0; padding: 6px 12px; border-radius: 999px;
  font: 400 12px/1 var(--mono); letter-spacing: .02em; color: #a8a29e; background: rgba(250, 248, 244, .85); pointer-events: none; white-space: nowrap; }
@media (hover: none) { .tf-hint { font-size: 0; } .tf-hint::after { content: 'Tap anywhere to plant a tree'; font-size: 12px; } }

/* ---- Plant a tree card, refined ---- */
.tree-card { gap: 14px; padding: 10px 18px 10px 10px; }
.tree-card .tc-land { width: 92px; height: 58px; border-radius: 9px;
  background: radial-gradient(60% 50% at 22% 26%, rgba(250, 219, 160, .55), transparent 70%), linear-gradient(#f6efe3 0 62%, #efe6d4 62%, #e9dfca);
  box-shadow: inset 0 0 0 1px rgba(62, 11, 14, .07); }
.tree-card .tc-sun { left: 13px; right: auto; top: 9px; width: 9px; height: 9px; background: #f1bf68; opacity: .9; box-shadow: 0 0 0 4px rgba(241, 191, 104, .18); }
.tree-card .tc-ground { height: 22px; background: none; border: 0; }
.tree-card .tc-trees { inset: 0 0 9px; }
.tree-card .tc-tree { bottom: 0; width: auto; translate: -50% 0; transform-origin: 50% 100%; scale: 1;
  transition: rotate .5s cubic-bezier(.34, 1.56, .64, 1) var(--d, 0s), translate .5s cubic-bezier(.34, 1.56, .64, 1) var(--d, 0s); }
.tree-card .tc-tree::after { width: 70%; height: 10%; }
.tree-card:hover .tc-tree:nth-child(odd) { rotate: -3deg; }
.tree-card:hover .tc-tree:nth-child(even) { rotate: 3deg; translate: -50% -1px; }
.tree-card .gt-txt { gap: 2px; }
.tree-card .gt-txt > b { font: 600 17px/1.15 var(--serif); color: var(--head); letter-spacing: -.015em; }
.tree-card .tc-count { font: 400 13px/1.3 var(--sans); color: var(--ink-2); white-space: nowrap; }
.tree-card .tc-count b { font: 600 13px var(--sans); color: var(--head); font-variant-numeric: tabular-nums; }
@media (prefers-reduced-motion: reduce) { .tree-card .tc-tree { transition: none; } .tree-card:hover .tc-tree { rotate: 0deg; } }

/* ---- "Best on desktop" notice (below tablet width) ---- */
.bigscreen { position: fixed; z-index: 300; top: 72px; left: 16px; right: 16px; max-width: 520px; margin: 0 auto;
  display: flex; align-items: center; gap: 14px; padding: 16px 16px 16px 18px; border-radius: 18px;
  background: rgba(46, 42, 39, .96); color: #f5f1ea; box-shadow: 0 18px 40px -18px rgba(28, 25, 23, .6);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); animation: bsIn .35s cubic-bezier(.22, 1, .36, 1) both; }
.bigscreen[hidden] { display: none; }
.bigscreen.out { opacity: 0; translate: 0 -8px; transition: opacity .25s, translate .25s; }
.bigscreen .bs-ic { flex: none; width: 26px; height: 26px; }
.bigscreen p { margin: 0; flex: 1; font: 400 14px/1.45 var(--sans); color: #ece6dc; }
.bigscreen .bs-x { flex: none; width: 32px; height: 32px; margin: -4px -4px -4px 0; border: 0; border-radius: 50%; background: none; color: #a8a29e; font: 400 22px/1 var(--sans); cursor: pointer; }
.bigscreen .bs-x:hover, .bigscreen .bs-x:focus-visible { background: rgba(255, 255, 255, .08); color: #f5f1ea; }
@keyframes bsIn { from { opacity: 0; translate: 0 -10px; } }
@media (prefers-reduced-motion: reduce) { .bigscreen { animation: none; } }

/* ---- responsive: shrink the home collage on small laptops and tablets so nothing collides ---- */
@media (min-width: 768px) and (max-width: 1279px) { .board > .float, .board .sticky-xp { zoom: .84; } }
@media (min-width: 1280px) and (max-height: 800px) { .board > .float, .board .sticky-xp { zoom: .9; } }
@media (min-width: 768px) and (max-width: 1023px) { .board > .float, .board .sticky-xp { zoom: .72; } }

/* ---- portrait tablets: rearrange the collage to use the tall screen ---- */
@media (min-width: 768px) and (max-width: 1100px) and (orientation: portrait) {
  .board > .float, .board .sticky-xp { zoom: .8; }
  .hero { top: 30%; }
  /* top band */
  .board > .clock-card { --x: 5% !important; --y: 9% !important; }
  .board > .plant { --x: 22% !important; --y: 3% !important; }
  .board > .game-tease { --x: 38% !important; --y: 4% !important; }
  .board > .sky { --x: 76% !important; --y: 3% !important; zoom: .7; }
  /* under the intro, row one */
  .board .sticky-xp { left: 2% !important; top: calc(100% + 28px) !important; }
  .board > .desk-work { --x: 38% !important; --y: 52% !important; }
  .board > .journal-tease { --x: 64% !important; --y: 50% !important; }
  /* row two */
  .board > .coffee { --x: 5% !important; --y: 72% !important; }
  .board > .folder { --x: 18% !important; --y: 79% !important; }
  .board > .interests { --x: 36% !important; --y: 75% !important; }
  .board > .french { --x: 71% !important; --y: 79% !important; }
}

/* ---- tablets: About and Writing windows ---- */
.abx-dock.abx-grid-apps { grid-template-columns: repeat(auto-fill, 86px); }   /* app icons wrap instead of running off the edge */
@media (min-width: 768px) and (max-width: 1023px) {
  .abx-body { grid-template-columns: 170px minmax(0, 1fr) !important; }
  .abx-card.notes { grid-column: span 18; }
  .abx-card.energy { grid-column: span 12; }
  .abx-card.abx-cam, .abx-card.journey { grid-column: span 30; margin-left: 0; }
  .abx-card.journey { grid-row: auto; }
}

/* camera roll clips sit exactly like the photos */
.abx-cam-screen video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .6s ease; background: #111; }
.abx-cam-screen video.on { opacity: 1; }

/* About intro squiggle, 80% bigger; same line weight, and it doesn't push the line height */
.abx-doodle.scrib { width: 38px; height: 45px; margin: -12px 0 -8px; stroke-width: 1.15; }
.nowrap { white-space: nowrap; }
/* About intro: no block cursor on the scrambling phrase */
.abx-scramble .caret { display: none; }

/* ---- About note as three torn kraft-paper strips (cut-out poem look), current font ---- */
.abx-note.strips { width: min(660px, 100%); padding: 0; background: none; box-shadow: none; }
.abx .abx-note.strips, .abx .abx-note.strips[data-rv].in { transform: none; animation: none; }
.abx-note.strips blockquote { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; font: 400 18px/1.2 var(--sans); color: #2b2420; }
.abx-note.strips .strip { position: relative; display: block; padding: 8px 18px 9px; white-space: nowrap;
  background: url(assets/paper-kraft.jpg) 0 0 / 900px 160px, #e9d3b0; }
.abx-note.strips .strip:nth-child(1) { margin-left: 7%;  background-position: -40px -20px; }
.abx-note.strips .strip:nth-child(2) { margin-left: 0;   background-position: -380px -70px; }
.abx-note.strips .strip:nth-child(3) { align-self: flex-end; margin-right: 6%; background-position: -620px -40px; }
.abx-note.strips .strip:nth-child(1) { clip-path: polygon(0.0% 2.6%, 2.5% 2.8%, 5.0% 2.2%, 7.5% 2.9%, 10.0% 2.7%, 12.5% 1.2%, 15.0% 1.2%, 17.5% 2.3%, 20.0% 1.3%, 22.5% 3.6%, 25.0% 4.6%, 27.5% 2.9%, 30.0% 2.6%, 32.5% 4.3%, 35.0% 3.7%, 37.5% 2.6%, 40.0% 2.1%, 42.5% 1.5%, 45.0% 0.0%, 47.5% 1.4%, 50.0% 2.3%, 52.5% 4.5%, 55.0% 5.1%, 57.5% 5.4%, 60.0% 3.9%, 62.5% 4.7%, 65.0% 6.7%, 67.5% 5.9%, 70.0% 5.8%, 72.5% 7.4%, 75.0% 5.6%, 77.5% 7.1%, 80.0% 6.6%, 82.5% 7.1%, 85.0% 6.0%, 87.5% 6.2%, 90.0% 4.7%, 92.5% 5.0%, 95.0% 4.2%, 97.5% 3.1%, 100.0% 2.4%, 98.8% 11.1%, 99.4% 22.2%, 98.9% 33.3%, 98.9% 44.4%, 98.6% 55.6%, 98.5% 66.7%, 99.3% 77.8%, 98.4% 88.9%, 100.0% 96.9%, 97.5% 98.2%, 95.0% 98.1%, 92.5% 99.3%, 90.0% 97.3%, 87.5% 98.5%, 85.0% 99.9%, 82.5% 98.9%, 80.0% 98.8%, 77.5% 97.3%, 75.0% 97.9%, 72.5% 99.2%, 70.0% 97.9%, 67.5% 98.2%, 65.0% 97.2%, 62.5% 97.7%, 60.0% 99.1%, 57.5% 98.9%, 55.0% 99.7%, 52.5% 99.7%, 50.0% 100.0%, 47.5% 99.0%, 45.0% 97.9%, 42.5% 98.1%, 40.0% 98.9%, 37.5% 97.9%, 35.0% 99.9%, 32.5% 98.6%, 30.0% 96.7%, 27.5% 95.2%, 25.0% 96.4%, 22.5% 96.3%, 20.0% 96.4%, 17.5% 95.4%, 15.0% 94.5%, 12.5% 95.3%, 10.0% 95.1%, 7.5% 96.1%, 5.0% 94.9%, 2.5% 93.2%, 0.0% 92.2%, 0.4% 88.9%, 1.1% 77.8%, 0.5% 66.7%, 0.1% 55.6%, 0.6% 44.4%, 0.5% 33.3%, 1.4% 22.2%, 0.5% 11.1%); }
.abx-note.strips .strip:nth-child(2) { clip-path: polygon(0.0% 3.6%, 2.5% 4.5%, 5.0% 5.3%, 7.5% 6.5%, 10.0% 5.6%, 12.5% 5.6%, 15.0% 4.4%, 17.5% 5.5%, 20.0% 5.5%, 22.5% 3.4%, 25.0% 2.7%, 27.5% 3.2%, 30.0% 3.2%, 32.5% 4.0%, 35.0% 4.0%, 37.5% 3.6%, 40.0% 2.3%, 42.5% 1.8%, 45.0% 2.8%, 47.5% 2.2%, 50.0% 2.1%, 52.5% 3.0%, 55.0% 1.2%, 57.5% 1.4%, 60.0% 2.7%, 62.5% 3.1%, 65.0% 3.7%, 67.5% 4.2%, 70.0% 3.6%, 72.5% 2.9%, 75.0% 4.3%, 77.5% 4.9%, 80.0% 4.6%, 82.5% 4.1%, 85.0% 4.2%, 87.5% 4.5%, 90.0% 4.8%, 92.5% 4.0%, 95.0% 3.9%, 97.5% 3.8%, 100.0% 4.0%, 98.5% 11.1%, 99.5% 22.2%, 99.6% 33.3%, 98.6% 44.4%, 99.8% 55.6%, 98.9% 66.7%, 99.7% 77.8%, 99.0% 88.9%, 100.0% 94.9%, 97.5% 96.2%, 95.0% 95.9%, 92.5% 95.6%, 90.0% 95.2%, 87.5% 93.5%, 85.0% 92.1%, 82.5% 93.6%, 80.0% 92.3%, 77.5% 90.7%, 75.0% 91.7%, 72.5% 90.5%, 70.0% 90.7%, 67.5% 90.1%, 65.0% 90.9%, 62.5% 91.1%, 60.0% 92.0%, 57.5% 90.6%, 55.0% 91.0%, 52.5% 91.3%, 50.0% 92.6%, 47.5% 91.4%, 45.0% 90.1%, 42.5% 91.0%, 40.0% 90.9%, 37.5% 91.4%, 35.0% 91.9%, 32.5% 93.0%, 30.0% 92.3%, 27.5% 91.3%, 25.0% 93.1%, 22.5% 91.3%, 20.0% 92.2%, 17.5% 91.6%, 15.0% 90.5%, 12.5% 90.9%, 10.0% 90.9%, 7.5% 91.8%, 5.0% 91.4%, 2.5% 92.3%, 0.0% 90.6%, 0.3% 88.9%, 0.1% 77.8%, 0.6% 66.7%, 0.9% 55.6%, 1.0% 44.4%, 0.3% 33.3%, 1.1% 22.2%, 0.8% 11.1%); }
.abx-note.strips .strip:nth-child(3) { clip-path: polygon(0.0% 2.8%, 2.5% 3.8%, 5.0% 3.7%, 7.5% 5.3%, 10.0% 5.4%, 12.5% 6.4%, 15.0% 8.3%, 17.5% 8.3%, 20.0% 8.5%, 22.5% 9.0%, 25.0% 8.8%, 27.5% 9.5%, 30.0% 9.2%, 32.5% 9.6%, 35.0% 9.7%, 37.5% 9.4%, 40.0% 8.1%, 42.5% 7.2%, 45.0% 8.0%, 47.5% 6.5%, 50.0% 6.8%, 52.5% 5.4%, 55.0% 3.9%, 57.5% 5.7%, 60.0% 6.9%, 62.5% 5.4%, 65.0% 5.6%, 67.5% 6.6%, 70.0% 6.6%, 72.5% 6.5%, 75.0% 6.3%, 77.5% 6.6%, 80.0% 5.5%, 82.5% 5.8%, 85.0% 6.5%, 87.5% 7.7%, 90.0% 7.0%, 92.5% 8.1%, 95.0% 8.7%, 97.5% 7.0%, 100.0% 8.3%, 99.2% 11.1%, 99.9% 22.2%, 99.4% 33.3%, 98.7% 44.4%, 99.2% 55.6%, 99.3% 66.7%, 99.4% 77.8%, 99.0% 88.9%, 100.0% 95.6%, 97.5% 96.7%, 95.0% 96.8%, 92.5% 97.2%, 90.0% 99.2%, 87.5% 99.1%, 85.0% 98.3%, 82.5% 98.9%, 80.0% 99.7%, 77.5% 99.7%, 75.0% 98.9%, 72.5% 98.4%, 70.0% 97.5%, 67.5% 97.0%, 65.0% 97.0%, 62.5% 96.0%, 60.0% 96.3%, 57.5% 94.6%, 55.0% 96.0%, 52.5% 96.1%, 50.0% 96.0%, 47.5% 97.7%, 45.0% 97.8%, 42.5% 97.7%, 40.0% 98.2%, 37.5% 98.2%, 35.0% 97.0%, 32.5% 95.6%, 30.0% 95.9%, 27.5% 95.8%, 25.0% 94.6%, 22.5% 93.2%, 20.0% 93.1%, 17.5% 92.5%, 15.0% 91.4%, 12.5% 91.1%, 10.0% 91.0%, 7.5% 91.1%, 5.0% 90.2%, 2.5% 90.3%, 0.0% 91.0%, 0.4% 88.9%, 1.0% 77.8%, 0.2% 66.7%, 0.3% 55.6%, 0.9% 44.4%, 1.3% 33.3%, 0.8% 22.2%, 1.1% 11.1%); }
@media (max-width: 767px) {
  .abx-note.strips blockquote { font-size: 15px; }
  .abx-note.strips .strip { white-space: normal; padding: 7px 13px 8px; }
  .abx-note.strips .strip:nth-child(n) { margin-left: 0; margin-right: 0; align-self: flex-start; }
}

/* ---- phones: work card caption and case page header ---- */
@media (max-width: 700px) {
  /* a tap counts as hover on phones; keep the caption in place under the card */
  .w-cards[data-label="b"] .w-label,
  .w-cards[data-label="b"] .w-ccard:hover .w-label,
  .w-cards[data-label="b"] .w-ccard:focus-visible .w-label { translate: none; opacity: 1; padding: 14px 14px 8px; }
}
@media (max-width: 767px) {
  .cs5-head { grid-template-columns: 1fr; gap: 28px; }
  .cs5-head h3 { font-size: clamp(30px, 8.4vw, 40px); }
  .cs5-meta { grid-template-columns: 1fr 1fr; column-gap: 20px; }
  .cs5-meta > div, .cs5-meta > div:first-child, .cs5-meta > div:last-child { padding: 12px 0; }
  .cs5-meta > div, .cs5-meta > div + div { border-top: 0; }
}

/* red window dot is a real close button, with a small × on hover like macOS */
.abx-red { position: relative; width: 12px; height: 12px; padding: 0; border: 0; border-radius: 50%; background: #ff5f57; box-shadow: inset 0 0 0 .5px rgba(0, 0, 0, .18); cursor: pointer; }
.abx-red::before { content: '×'; position: absolute; inset: 0; display: grid; place-items: center; font: 700 11px/1 var(--sans); color: rgba(77, 0, 0, .8); opacity: 0; transition: opacity .15s; }
.abx-dots:hover .abx-red::before, .abx-red:focus-visible::before { opacity: 1; }
.abx-red:focus-visible { outline: 2px solid var(--head); outline-offset: 2px; }
.abx-red::after { content: ''; position: absolute; inset: -8px; }   /* bigger tap area */
