/* ==========================================================
   Portfolio v5 — "The Journey"
   Warm, playful and personal: her own painting as the hero,
   a flight path from Ahmedabad to Philadelphia, a fanned hand
   of project cards and a sketchbook of paintings.
   Loads after base.css (case-study, gate, lightbox styles).
   ========================================================== */
:root {
  --bg: #fbf5e9;
  --bg-2: #f6ecda;
  --surface: #fffdf8;
  --ink: #1f2440;
  --ink-2: #555a72;
  --ink-3: #9a9bab;
  --line: #ecdfc8;
  --line-2: #e0d0b2;
  --accent: #e8613f;
  --accent-soft: #fde3d9;
  --coral: #e8613f;
  --sun: #f5b83d;
  --sky: #5b8def;
  --teal: #2a9d8f;
  --plum: #9b5de5;
  --display: "Bricolage Grotesque", "Inter", system-ui, sans-serif;
  --hand: "Caveat", cursive;
  --serif: "Bricolage Grotesque", "Inter", sans-serif;
}
html { scroll-behavior: auto; }
body { background: var(--bg); color: var(--ink); }
.disp { font-family: var(--display); font-weight: 800; letter-spacing: -.035em; line-height: .98; margin: 0; }
.hand { font-family: var(--hand); font-weight: 600; }
.lbl { font-size: 13px; font-weight: 600; color: var(--ink-2); }
.wrap5 { max-width: 1240px; margin: 0 auto; padding: 0 clamp(16px, 4vw, 40px); }

/* ---------- Floating pill nav ---------- */
.pill { position: fixed; z-index: 80; left: 50%; bottom: 18px; transform: translateX(-50%); display: flex; align-items: center; gap: 2px; padding: 6px; border-radius: 999px;
  background: rgba(255,253,248,.88); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: 0 12px 34px -14px rgba(31,36,64,.35), 0 0 0 1px rgba(31,36,64,.06); }
.pill a { display: inline-flex; align-items: center; gap: 6px; padding: 9px 15px; border-radius: 999px; font-size: 14px; font-weight: 500; color: var(--ink-2); transition: background .25s, color .25s; white-space: nowrap; }
.pill a:hover { color: var(--ink); }
.pill a.on { background: #fff; color: var(--ink); box-shadow: 0 2px 8px -3px rgba(31,36,64,.25); }
.pill a.res { background: var(--ink); color: #fff; margin-left: 6px; }
.pill a.res:hover { background: var(--coral); }
.pill .av { width: 22px; height: 22px; border-radius: 50%; object-fit: cover; object-position: 50% 20%; }
.top5 { position: fixed; z-index: 80; top: 16px; right: 18px; display: flex; gap: 8px; }
.top5 span { display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border-radius: 999px; background: rgba(255,253,248,.9); backdrop-filter: blur(10px); font-size: 13px; font-weight: 500; box-shadow: 0 6px 18px -10px rgba(31,36,64,.35); }
.top5 i { width: 8px; height: 8px; border-radius: 50%; background: #2fa865; box-shadow: 0 0 0 4px rgba(47,168,101,.18); }

/* ---------- Hero: her painting ---------- */
.hero5 { position: relative; height: 100svh; min-height: 640px; overflow: hidden; }
.hero5 .scene { position: absolute; inset: 0; }
.hero5 .scene img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 62%; transform: scale(1.08); animation: drift 22s ease-in-out infinite alternate; }
@keyframes drift { from { transform: scale(1.08) translate(0, 0); } to { transform: scale(1.14) translate(-1.5%, -1%); } }
.hero5 .fade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(251,245,233,.94) 0%, rgba(251,245,233,.7) 26%, rgba(251,245,233,0) 52%), linear-gradient(0deg, var(--bg) 0%, rgba(251,245,233,0) 16%); }
.hero5 .copy { position: relative; z-index: 2; padding: clamp(80px, 11vh, 120px) clamp(16px, 4vw, 56px) 0; max-width: 1100px; }
.hero5 .hey { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: 17px; }
.hero5 .hey .wave { display: inline-block; animation: wave 2.4s ease-in-out infinite; transform-origin: 70% 70%; }
@keyframes wave { 0%, 60%, 100% { transform: rotate(0); } 10%, 30% { transform: rotate(14deg); } 20%, 40% { transform: rotate(-8deg); } }
.hero5 h1 { font-size: clamp(52px, 7.6vw, 124px); margin-top: 14px; }
.hero5 h1 .strike { position: relative; display: inline-block; }
.hero5 h1 .strike::after { content: ""; position: absolute; left: -2%; right: -2%; top: 54%; height: .09em; background: var(--coral); border-radius: 4px; transform: scaleX(0); transform-origin: left; animation: strike .7s cubic-bezier(.6,.1,.2,1) 1s forwards; }
@keyframes strike { to { transform: scaleX(1); } }
.hero5 h1 .fix { font-family: var(--hand); font-weight: 600; color: var(--coral); font-size: .62em; letter-spacing: 0; position: absolute; transform: rotate(-6deg) translate(-.4em, -1.05em); opacity: 0; animation: pop .5s var(--spring) 1.6s forwards; white-space: nowrap; }
@keyframes pop { from { opacity: 0; transform: rotate(-6deg) translate(-.4em, -.7em) scale(.6); } to { opacity: 1; transform: rotate(-6deg) translate(-.4em, -1.05em) scale(1); } }
.hero5 .sub { margin: 18px 0 0; font-size: clamp(17px, 1.6vw, 20px); color: var(--ink-2); max-width: 46ch; }
.pinchip { position: absolute; z-index: 3; display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px 8px 8px; border-radius: 999px; background: rgba(255,253,248,.92); backdrop-filter: blur(8px); font-size: 13px; font-weight: 600; box-shadow: 0 10px 24px -12px rgba(31,36,64,.45); animation: bob 5s ease-in-out infinite; }
.pinchip b { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-size: 11px; background: var(--c); }
.pinchip small { color: var(--ink-3); font-weight: 500; }
@keyframes bob { 0%, 100% { translate: 0 0; } 50% { translate: 0 -8px; } }
.paint-note { position: absolute; z-index: 3; right: clamp(16px, 6vw, 90px); bottom: 110px; font-size: 26px; color: #fff; text-shadow: 0 2px 10px rgba(0,0,0,.35); transform: rotate(-5deg); }
.scroll-cue { position: absolute; z-index: 3; left: 50%; bottom: 86px; transform: translateX(-50%); padding: 9px 16px; border-radius: 999px; background: rgba(31,36,64,.55); color: #fff; font-size: 13px; backdrop-filter: blur(6px); }

/* ---------- Story ---------- */
.story { padding: clamp(96px, 13vw, 170px) 0 clamp(80px, 10vw, 130px); position: relative; }
.story .lbl { display: block; margin-bottom: 20px; }
.story p.big { font-family: var(--display); font-weight: 800; font-size: clamp(34px, 4.6vw, 68px); letter-spacing: -.03em; line-height: 1.12; margin: 0; max-width: 17ch; }
.story .w { color: #e3d6bd; transition: color .25s; }
.story .w.on { color: var(--ink); }
.story .mark { position: relative; white-space: nowrap; }
.story .mark svg { position: absolute; left: -3%; width: 106%; pointer-events: none; overflow: visible; }
.story .mark svg path { fill: none; stroke-width: 3.5; stroke-linecap: round; stroke-dasharray: 900; stroke-dashoffset: 900; transition: stroke-dashoffset 1s cubic-bezier(.6,.1,.2,1); }
.story .mark.u svg { bottom: -.12em; height: .3em; } .story .mark.u path { stroke: var(--sky); }
.story .mark.o svg { top: -.12em; height: 1.3em; } .story .mark.o path { stroke: var(--coral); }
.story .mark.on svg path { stroke-dashoffset: 0; }
.story .hl { background: linear-gradient(var(--sun), var(--sun)) no-repeat 0 85% / 0% 38%; transition: background-size .8s cubic-bezier(.6,.1,.2,1), color .25s; }
.story .hl.on { background-size: 100% 38%; }
.snote { position: absolute; z-index: 2; width: 220px; padding: 14px 16px 16px; font-size: 15px; line-height: 1.4; background: var(--c); box-shadow: 0 16px 30px -18px rgba(31,36,64,.45); transform: rotate(var(--r)); animation: bob 6s ease-in-out infinite; animation-delay: var(--dl); }
.snote small { display: block; margin-top: 8px; font-size: 10.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; opacity: .55; }
.snote .hand { font-size: 22px; display: block; margin-top: 6px; }
.moves { position: absolute; right: clamp(16px, 4vw, 40px); bottom: 40px; font-size: 22px; color: var(--ink-3); transform: rotate(-4deg); }

/* ---------- Journey (pinned map) ---------- */
.jhead { padding: 0 0 36px; }
.jhead h2 { font-size: clamp(44px, 6vw, 92px); margin-top: 12px; }
.jhead p { margin: 14px 0 0; color: var(--ink-2); font-size: 18px; }
.journey { position: relative; height: 560vh; }
.jstage { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; background: #f3ead6; }
.jmap { position: absolute; inset: 0; width: 100%; height: 100%; }
.jmap .sea-grid line { stroke: rgba(91,141,239,.12); stroke-width: 1; }
.jmap .land { fill: #fbf5e9; stroke: #e2d2b2; stroke-width: 2; }
.jmap .land-label { font-family: var(--display); font-weight: 800; font-size: 26px; fill: #e5d6b9; letter-spacing: .12em; }
.jmap .route-bg { fill: none; stroke: rgba(31,36,64,.18); stroke-width: 3; stroke-dasharray: 2 10; stroke-linecap: round; }
.jmap .route { fill: none; stroke: var(--coral); stroke-width: 4; stroke-linecap: round; }
.jmap .pin circle.halo { fill: var(--c); opacity: .18; transition: r .4s; }
.jmap .pin circle.dot { fill: #fff; stroke: var(--c); stroke-width: 4; }
.jmap .pin text { font-family: var(--display); font-weight: 800; font-size: 13px; fill: var(--c); text-anchor: middle; dominant-baseline: central; }
.jmap .pin .name { font-family: var(--sans); font-weight: 600; font-size: 13px; fill: var(--ink); text-anchor: start; dominant-baseline: auto; }
.jmap .pin { transition: opacity .3s; opacity: .55; cursor: pointer; }
.jmap .pin.on { opacity: 1; }
.jmap .pin.on circle.halo { r: 30; animation: halo 1.8s ease-out infinite; }
@keyframes halo { 0% { opacity: .35; } 100% { opacity: .05; } }
.jmap .pin.next circle.dot { stroke-dasharray: 4 4; }
.jmap .city { font-family: var(--hand); font-weight: 600; font-size: 24px; fill: var(--ink-2); }
.plane { transition: none; }
.jcard { position: absolute; z-index: 3; left: clamp(16px, 4vw, 56px); top: 50%; transform: translateY(-50%); width: min(380px, calc(100vw - 32px)); background: var(--surface); border-radius: 22px; padding: 22px; box-shadow: 0 30px 60px -30px rgba(31,36,64,.45), 0 0 0 1px rgba(31,36,64,.05); }
.jcard .row { display: flex; align-items: center; gap: 12px; }
.jcard .logo { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--c); color: #fff; font-family: var(--display); font-weight: 800; font-size: 15px; flex: 0 0 auto; }
.jcard .org { font-weight: 700; font-size: 15px; }
.jcard .when { font-size: 13px; color: var(--ink-3); }
.jcard .count { margin-left: auto; font-size: 12px; color: var(--ink-3); font-weight: 600; }
.jcard h3 { font-family: var(--display); font-weight: 800; font-size: 30px; letter-spacing: -.03em; line-height: 1.02; margin: 18px 0 0; }
.jcard p { margin: 10px 0 0; color: var(--ink-2); font-size: 15px; line-height: 1.55; }
.jcard .ph { margin-top: 14px; border-radius: 12px; overflow: hidden; aspect-ratio: 16/9; background: #eee; }
.jcard .ph img { width: 100%; height: 100%; object-fit: cover; }
.jcard .go { display: inline-flex; gap: 6px; align-items: center; margin-top: 14px; font-weight: 600; font-size: 14px; padding: 9px 14px; border-radius: 999px; background: var(--ink); color: #fff; }
.jcard .go:hover { background: var(--coral); }
.jcard .inner { transition: opacity .25s, transform .35s var(--ease); }
.jcard.swap .inner { opacity: 0; transform: translateY(8px); }
.jdots { position: absolute; z-index: 3; left: 50%; bottom: 86px; transform: translateX(-50%); display: flex; gap: 6px; align-items: center; padding: 8px 12px; border-radius: 999px; background: rgba(255,253,248,.9); box-shadow: 0 8px 20px -12px rgba(31,36,64,.4); font-size: 12.5px; font-weight: 600; }
.jdots i { width: 9px; height: 9px; border-radius: 50%; background: #d9ccb2; transition: background .3s, transform .3s; }
.jdots i.on { background: var(--c, var(--coral)); transform: scale(1.3); }
.jdots span { margin-left: 8px; color: var(--ink-2); }
.compass { position: absolute; z-index: 3; right: 22px; top: 76px; width: 54px; height: 54px; border-radius: 50%; background: rgba(255,253,248,.9); box-shadow: 0 8px 20px -12px rgba(31,36,64,.4); display: grid; place-items: center; font-size: 10px; font-weight: 800; color: var(--ink-2); }

/* ---------- Work: a fanned hand of cards ---------- */
.work5 { padding: clamp(96px, 12vw, 150px) 0 clamp(60px, 8vw, 100px); text-align: center; overflow: hidden; }
.work5 h2 { font-size: clamp(42px, 5.6vw, 86px); margin-top: 12px; }
.work5 > .wrap5 > p { margin: 14px auto 0; color: var(--ink-2); font-size: 18px; max-width: 46ch; }
.hand5 { position: relative; height: 460px; margin: 40px auto 0; max-width: 1100px; }
.pcard { position: absolute; left: 50%; bottom: 10px; width: 230px; height: 320px; margin-left: -115px; border-radius: 18px; background: var(--surface); padding: 10px; text-align: left;
  transform-origin: 50% 190%; transform: rotate(var(--a)) translateY(0); transition: transform .5s var(--spring), box-shadow .3s; box-shadow: 0 18px 34px -20px rgba(31,36,64,.55), 0 0 0 1px rgba(31,36,64,.06); cursor: pointer; }
.pcard .im { height: 58%; border-radius: 11px; overflow: hidden; background: var(--c); }
.pcard .im img { width: 100%; height: 100%; object-fit: cover; }
.pcard .n { display: inline-block; margin-top: 10px; font-size: 11px; font-weight: 700; color: #fff; background: var(--c); padding: 3px 8px; border-radius: 999px; }
.pcard h3 { font-family: var(--display); font-weight: 800; font-size: 20px; letter-spacing: -.02em; line-height: 1.05; margin: 8px 2px 0; }
.pcard p { margin: 4px 2px 0; font-size: 12.5px; color: var(--ink-2); line-height: 1.35; }
.pcard .lk { position: absolute; top: 18px; right: 18px; font-size: 11px; font-weight: 600; background: rgba(31,36,64,.85); color: #fff; padding: 4px 8px; border-radius: 999px; }
.hand5:hover .pcard { transform: rotate(calc(var(--a) * 1.15)) translateY(0); }
.hand5 .pcard:hover { transform: rotate(calc(var(--a) * .4)) translateY(-70px) scale(1.06); z-index: 20; box-shadow: 0 40px 60px -26px rgba(31,36,64,.55), 0 0 0 1px rgba(31,36,64,.06); }
.pick { margin-top: 10px; font-size: 24px; color: var(--ink-3); transform: rotate(-2deg); display: inline-block; }
.plist { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; margin-top: 46px; text-align: left; border-top: 1px solid var(--line-2); }
.plist a { display: block; padding: 16px 14px 16px 0; border-bottom: 1px solid var(--line-2); }
.plist a b { display: block; font-weight: 700; font-size: 15px; }
.plist a b i { font-style: normal; color: var(--c); margin-right: 6px; }
.plist a span { font-size: 13px; color: var(--ink-3); }
.plist a:hover b { color: var(--coral); }

/* ---------- Sketchbook ---------- */
.sketch { padding: clamp(80px, 10vw, 130px) 0; background: var(--bg-2); }
.sketch .top { display: flex; justify-content: space-between; align-items: end; gap: 20px; flex-wrap: wrap; }
.sketch h2 { font-size: clamp(42px, 5.6vw, 86px); margin-top: 12px; }
.sketch .top p { color: var(--ink-2); max-width: 36ch; margin: 0; font-size: 17px; }
.book { position: relative; margin: 44px auto 0; max-width: 980px; display: grid; grid-template-columns: 1fr 1fr; background: #fffdf6; border-radius: 10px 10px 10px 10px; box-shadow: 0 40px 70px -40px rgba(31,36,64,.55), 0 0 0 1px rgba(31,36,64,.06); perspective: 1800px; }
.book::before { content: ""; position: absolute; left: 50%; top: 14px; bottom: 14px; width: 22px; margin-left: -11px; z-index: 3;
  background: radial-gradient(circle at 50% 50%, #b9b2a3 0 4px, transparent 4.5px) 0 0 / 22px 26px repeat-y; }
.book::after { content: ""; position: absolute; left: 50%; top: 0; bottom: 0; width: 60px; margin-left: -30px; background: linear-gradient(90deg, transparent, rgba(0,0,0,.07) 45%, rgba(0,0,0,.07) 55%, transparent); pointer-events: none; }
.page { position: relative; padding: clamp(22px, 3.4vw, 44px); min-height: 520px; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.page figure { margin: 0; position: relative; background: #fff; padding: 10px; box-shadow: 0 14px 26px -18px rgba(0,0,0,.5); transform: rotate(var(--r)); max-width: 82%; cursor: zoom-in; transition: opacity .35s; }
.page figure::before { content: ""; position: absolute; top: -12px; left: 50%; width: 80px; height: 22px; margin-left: -40px; background: rgba(245,184,61,.55); transform: rotate(-3deg); }
.page figure img { max-height: 380px; width: auto; object-fit: contain; }
.page .cap { font-family: var(--hand); font-size: 26px; color: var(--ink-2); margin-top: 16px; }
.page .pg { position: absolute; bottom: 14px; font-size: 12px; color: var(--ink-3); }
.page.l .pg { left: 22px; } .page.r .pg { right: 22px; }
.flip { position: absolute; inset: 0 0 0 50%; transform-origin: left center; background: #fffdf6; border-radius: 0 10px 10px 0; z-index: 4; transform: rotateY(0deg); backface-visibility: hidden; transition: transform .7s cubic-bezier(.4,.1,.2,1); pointer-events: none; opacity: 0; }
.flip.go { opacity: 1; transform: rotateY(-180deg); }
.bctl { display: flex; justify-content: center; gap: 10px; margin-top: 26px; align-items: center; }
.bctl button { height: 44px; padding: 0 18px; border-radius: 999px; background: var(--ink); color: #fff; font-weight: 600; font-size: 14px; }
.bctl button:hover { background: var(--coral); }
.bctl span { font-size: 14px; color: var(--ink-2); font-weight: 600; min-width: 90px; text-align: center; }

/* ---------- About + contact ---------- */
.about5 { padding: clamp(90px, 11vw, 140px) 0; }
.about5 .grid { display: grid; grid-template-columns: 320px minmax(0, 1fr); gap: clamp(32px, 6vw, 80px); align-items: start; }
.about5 .me { background: #fff; padding: 12px 12px 52px; transform: rotate(-3deg); box-shadow: 0 24px 46px -26px rgba(31,36,64,.55); position: relative; }
.about5 .me img { aspect-ratio: 4/5; object-fit: cover; width: 100%; }
.about5 .me .hand { position: absolute; left: 16px; bottom: 12px; font-size: 24px; color: var(--ink-2); }
.about5 h2 { font-size: clamp(40px, 5vw, 76px); margin-top: 12px; }
.about5 p { color: var(--ink-2); font-size: 17px; max-width: 58ch; }
.facts5 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 26px; }
.facts5 div { background: var(--surface); border-radius: 16px; padding: 18px; box-shadow: 0 0 0 1px rgba(31,36,64,.06); }
.facts5 b { display: block; font-family: var(--display); font-weight: 800; font-size: 34px; letter-spacing: -.03em; color: var(--c); line-height: 1; }
.facts5 span { display: block; margin-top: 8px; font-size: 13.5px; color: var(--ink-2); }
.skills5 { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.skills5 span { font-size: 13px; padding: 7px 12px; border-radius: 999px; background: var(--surface); box-shadow: 0 0 0 1px rgba(31,36,64,.08); }
.contact5 { padding: clamp(100px, 13vw, 170px) 0 120px; text-align: center; background: var(--ink); color: #fff; border-radius: 36px 36px 0 0; }
.contact5 .lbl { color: rgba(255,255,255,.6); }
.contact5 h2 { font-size: clamp(60px, 10vw, 160px); margin-top: 14px; }
.contact5 h2 em { font-style: normal; color: var(--sun); }
.contact5 p { color: rgba(255,255,255,.72); font-size: 18px; margin: 18px auto 0; max-width: 44ch; }
.contact5 .row { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; margin-top: 34px; }
.contact5 .b5 { display: inline-flex; align-items: center; gap: 8px; height: 52px; padding: 0 24px; border-radius: 999px; background: var(--sun); color: var(--ink); font-weight: 700; font-size: 16px; transition: transform .3s var(--spring); }
.contact5 .b5:hover { transform: translateY(-3px) rotate(-1deg); }
.contact5 .b5.alt { background: rgba(255,255,255,.12); color: #fff; }
.contact5 .fine { margin-top: 70px; font-size: 13px; color: rgba(255,255,255,.45); }
.toast { position: fixed; left: 50%; bottom: 84px; z-index: 90; transform: translate(-50%, 16px); opacity: 0; background: var(--ink); color: #fff; padding: 11px 16px; border-radius: 12px; font-size: 13px; transition: opacity .3s, transform .4s var(--spring); pointer-events: none; }
.toast.on { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Case study skin ---------- */
.inner { padding-bottom: 80px; }
.inner .cs-head { padding-top: 70px; }
.inner .cs-head h1, .inner .cs-section h2, .inner .next-project h2, .inner .cs-stat b { font-family: var(--display); font-weight: 800; letter-spacing: -.035em; }
.inner .cs-section > .eyebrow b { color: var(--coral); font-family: var(--display); font-weight: 800; }
.inner .cs-cover { border-radius: 22px; }
.inner .cs-card, .inner .cs-stat { border-radius: 16px; }
.inner .cs-callout { background: var(--ink); border-radius: 22px; }
.inner .cs-quote { border-left-color: var(--sun); border-left-width: 5px; }
.inner .cs-quote p { font-family: var(--display) !important; font-weight: 600; }
.inner .cs-list li::before { background: var(--coral); }
.inner .toc a.active { border-left-color: var(--coral); }
.inner .gate input:focus { border-color: var(--ink); }

/* ---------- Small screens ---------- */
@media (max-width: 900px) {
  .pill a:not(.res):not(.home) { display: none; }
  .top5 { display: none; }
  .hero5 .scene img { object-position: 50% 70%; }
  .pinchip { display: none; }
  .paint-note { bottom: 150px; font-size: 22px; }
  .snote { position: relative; display: block; margin: 16px 0 0; transform: rotate(var(--r)); width: auto; max-width: 300px; left: auto !important; right: auto !important; top: auto !important; bottom: auto !important; }
  .moves { display: none; }
  .journey { height: auto; }
  .jstage { position: relative; height: auto; padding: 0 0 40px; overflow: visible; background: #f3ead6; }
  .jmap { position: relative; height: 300px; }
  .jcard { position: relative; left: auto; top: auto; transform: none; margin: -20px auto 0; }
  .jdots { position: relative; left: auto; bottom: auto; transform: none; margin: 16px auto 0; width: max-content; }
  .compass { display: none; }
  .hand5 { height: auto; display: flex; gap: 14px; overflow-x: auto; padding: 20px 16px 30px; scroll-snap-type: x mandatory; }
  .pcard { position: relative; left: auto; bottom: auto; margin: 0; flex: 0 0 210px; height: 300px; transform: none !important; scroll-snap-align: center; }
  .plist { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .book { grid-template-columns: 1fr; }
  .book::before, .book::after { display: none; }
  .page.r { display: none; }
  .page { min-height: 420px; }
  .about5 .grid { grid-template-columns: minmax(0, 1fr); }
  .about5 .me { max-width: 300px; }
  .facts5 { grid-template-columns: minmax(0, 1fr); }
}
.hero5 .fade { background: linear-gradient(180deg, rgba(251,245,233,.95) 0%, rgba(251,245,233,.86) 36%, rgba(251,245,233,0) 66%), linear-gradient(0deg, var(--bg) 0%, rgba(251,245,233,0) 16%); }
.pcard { transform-origin: 50% 100%; transform: translate(var(--x), var(--y)) rotate(var(--a)); }
.hand5:hover .pcard { transform: translate(calc(var(--x) * 1.06), var(--y)) rotate(calc(var(--a) * 1.1)); }
.hand5 .pcard:hover { transform: translate(var(--x), calc(var(--y) - 74px)) rotate(0deg) scale(1.07); }
.hand5 { height: 430px; }
@media (max-width: 900px) { .pcard, .hand5:hover .pcard, .hand5 .pcard:hover { transform: none; } }

:root { --spring: cubic-bezier(.34, 1.56, .64, 1); }
/* headline correction: visible by default, animated only when JS adds .pre then removes it */
.hero5 h1 .strike::after { animation: none; transform: scaleX(1); transition: transform .7s cubic-bezier(.6,.1,.2,1) .3s; }
.hero5 h1 .fix { animation: none; opacity: 1; transform: rotate(-6deg) translate(-.4em, -1.05em); transition: opacity .4s 1s, transform .6s var(--spring) 1s; }
.hero5 h1.pre .strike::after { transform: scaleX(0); transition: none; }
.hero5 h1.pre .fix { opacity: 0; transform: rotate(-6deg) translate(-.4em, -.6em) scale(.6); transition: none; }
.hero5 .fade { background: linear-gradient(180deg, rgba(251,245,233,.96) 0%, rgba(251,245,233,.9) 46%, rgba(251,245,233,0) 72%), linear-gradient(0deg, var(--bg) 0%, rgba(251,245,233,0) 16%); }
.hero5 h1 .fix { left: 100%; top: .05em; margin-left: .12em; font-size: .7em; transform: rotate(-7deg); }
.hero5 h1.pre .fix { transform: rotate(-7deg) translateY(.3em) scale(.6); }
@media (max-width: 900px) {
  .hero5 h1 .strike { position: static; }
  .hero5 h1 .strike > .word { position: relative; display: inline-block; }
  .hero5 h1 .fix { position: static; display: inline-block; margin-left: .2em; font-size: .62em; transform: rotate(-6deg); }
}
.hero5 h1 .strike::after { right: auto; width: 0; }
.hero5 h1 .strike > .word { position: relative; display: inline-block; }
.hero5 h1 .strike > .word::after { content: ""; position: absolute; left: -2%; right: -2%; top: 54%; height: .09em; background: var(--coral); border-radius: 4px; transform-origin: left; transform: scaleX(1); transition: transform .7s cubic-bezier(.6,.1,.2,1) .3s; }
.hero5 h1.pre .strike > .word::after { transform: scaleX(0); transition: none; }

/* ================= v5.2 polish ================= */
/* Hero: crafted dawn-over-the-sea scene */
.hero5 .scene svg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.hero5 .scene .ly { transition: transform .2s linear; will-change: transform; }
.hero5 .shimmer line { animation: shim 5s ease-in-out infinite; }
.hero5 .shimmer line:nth-child(2n) { animation-delay: -1.6s; } .hero5 .shimmer line:nth-child(3n) { animation-delay: -3.1s; }
@keyframes shim { 0%, 100% { opacity: .15; transform: translateX(0); } 50% { opacity: .7; transform: translateX(10px); } }
.hero5 .boat > g { animation: sail 7s ease-in-out infinite; transform-box: fill-box; }
@keyframes sail { 0%, 100% { transform: translate(700px, 640px) rotate(-1deg); } 50% { transform: translate(712px, 643px) rotate(1.2deg); } }
.hero5 .fade { background: linear-gradient(90deg, rgba(246,239,228,.72) 0%, rgba(246,239,228,.35) 42%, rgba(246,239,228,0) 62%), linear-gradient(0deg, var(--bg) 0%, rgba(251,245,233,0) 14%); }
.hero5 .hey { font-size: 14px; font-weight: 600; letter-spacing: .02em; color: var(--ink-2); }
.hero5 .hey .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--coral); box-shadow: 0 0 0 4px rgba(232,97,63,.18); }
.hero5 h1 { color: #241f33; }
.hero5 .sub { color: #5a5266; }
.hcta { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 30px; }
.hb { display: inline-flex; align-items: center; height: 50px; padding: 0 24px; border-radius: 999px; background: var(--ink); color: #fff; font-weight: 600; font-size: 15px; transition: transform .3s var(--spring), background .2s; }
.hb:hover { transform: translateY(-2px); background: #2c3357; }
.hb.ghost { background: rgba(255,255,255,.55); color: var(--ink); backdrop-filter: blur(8px); box-shadow: inset 0 0 0 1px rgba(31,36,64,.15); }
.coord { position: absolute; z-index: 3; font: 500 11px/1 ui-monospace, Menlo, monospace; letter-spacing: .08em; color: rgba(60,50,70,.55); }
.coord.c1 { left: clamp(16px, 4vw, 56px); bottom: 30px; } .coord.c2 { right: clamp(16px, 4vw, 56px); bottom: 30px; }
.pinchip, .paint-note, .scroll-cue { display: none !important; }

  display: grid; grid-template-columns: minmax(300px, 400px) minmax(0, 1fr); grid-template-rows: auto 1fr auto; column-gap: clamp(24px, 4vw, 64px); padding: clamp(28px, 4vh, 48px) clamp(16px, 4vw, 56px) 96px; }

@media (max-width: 900px) {
  .hero5 .fade { background: linear-gradient(180deg, rgba(246,239,228,.85) 0%, rgba(246,239,228,.6) 45%, rgba(246,239,228,0) 70%), linear-gradient(0deg, var(--bg) 0%, rgba(251,245,233,0) 14%); }
  .coord.c2 { display: none; }
}
@media (max-width: 900px) { .hero5 .scene svg { width: auto; height: 100%; aspect-ratio: 16 / 9; left: 50%; transform: translateX(-60%); } }

/* ================= v5.3 — watercolor hero ================= */
.paint5 { background: #fbf6ec; cursor: crosshair; }
.paint5 .wash, .paint5 .brush { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.paint5 .paper { position: absolute; inset: 0; pointer-events: none; z-index: 1; opacity: .5; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .45 0 0 0 0 .4 0 0 0 0 .35 0 0 0 .22 0'/%3E%3C/filter%3E%3Crect width='240' height='240' filter='url(%23n)'/%3E%3C/svg%3E"); }
.paint5 .copy { z-index: 3; padding-top: clamp(96px, 15vh, 160px); cursor: auto; }
.paint5 .copy a { cursor: pointer; }
.paint5 .hey { font-size: 14px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--ink-2); display: inline-flex; align-items: center; gap: 10px; }
.paint5 .hey .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--coral); box-shadow: 0 0 0 4px rgba(232,97,63,.18); }
.paint5 h1.hi { font-size: clamp(60px, 9vw, 150px); line-height: .92; letter-spacing: -.045em; margin-top: 18px; color: #1f2440; }
.paint5 h1.hi .name { display: inline-block; }
.paint5 .h1b { margin: .95em 0 0; font-weight: 700; font-size: clamp(24px, 2.7vw, 40px); line-height: 1.15; letter-spacing: -.025em; color: #3a3f5c; max-width: 24ch; }
.paint5 .h1b .strike { position: relative; display: inline-block; }
.paint5 .h1b .strike > .word { position: relative; display: inline-block; color: #8a8ca3; }
.paint5 .h1b .strike > .word::after { content: ""; position: absolute; left: -3%; right: -3%; top: 55%; height: .1em; background: var(--coral); border-radius: 4px; transform-origin: left; transform: scaleX(1); transition: transform .7s cubic-bezier(.6,.1,.2,1) .3s; }
.paint5 .h1b .fix { position: absolute; left: 4%; top: -1.05em; font-family: var(--hand); font-weight: 600; font-size: 1.05em; letter-spacing: 0; color: var(--coral); white-space: nowrap; transform: rotate(-5deg); opacity: 1; transition: opacity .4s 1s, transform .6s var(--spring) 1s; }
.paint5 .h1b.pre .strike > .word::after { transform: scaleX(0); transition: none; }
.paint5 .h1b.pre .fix { opacity: 0; transform: rotate(-5deg) translateY(.4em) scale(.7); transition: none; }
.paint5 .sub { margin-top: 22px; max-width: 46ch; color: var(--ink-2); }
.paint5 .hcta { margin-top: 28px; }

/* paint palette */
.palette { position: absolute; z-index: 4; right: clamp(16px, 4vw, 56px); bottom: 96px; display: flex; flex-direction: column; align-items: flex-end; gap: 10px; cursor: auto; }
.pl-hint { font-size: 24px; color: var(--ink-2); transform: rotate(-3deg); transition: opacity .6s, transform .6s; }
.pl-hint.gone { opacity: 0; transform: rotate(-3deg) translateY(6px); }
.pans { display: flex; align-items: center; gap: 8px; padding: 9px 10px; border-radius: 16px; background: rgba(255,255,255,.82); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 14px 30px -18px rgba(31,36,64,.5), inset 0 0 0 1px rgba(31,36,64,.06); }
.pan, .wipe { width: 30px; height: 30px; border-radius: 50%; border: 0; padding: 0; cursor: pointer; transition: transform .25s var(--spring), box-shadow .2s; }
.pan { background: radial-gradient(circle at 35% 30%, rgba(255,255,255,.55), rgba(255,255,255,0) 45%), var(--p); box-shadow: inset 0 -3px 6px rgba(0,0,0,.18), 0 0 0 2px #fff, 0 0 0 3px rgba(31,36,64,.08); }
.pan:hover { transform: translateY(-2px); }
.pan.on { box-shadow: inset 0 -3px 6px rgba(0,0,0,.18), 0 0 0 2px #fff, 0 0 0 4px var(--p); transform: scale(1.08); }
.wipe { margin-left: 4px; background: #f3efe6; color: var(--ink-2); font-size: 16px; line-height: 30px; text-align: center; box-shadow: inset 0 0 0 1px rgba(31,36,64,.1); }
.wipe:hover { background: var(--ink); color: #fff; }

@media (max-width: 900px) {
  .paint5 { cursor: auto; }
  .paint5 .copy { padding-top: 92px; }
  .paint5 h1.hi { font-size: clamp(52px, 15vw, 76px); }
  .paint5 .h1b { font-size: 24px; }
  .palette { right: 16px; bottom: 92px; }
  .pl-hint { display: none; }
  .pan, .wipe { width: 26px; height: 26px; }
}
@media (hover: none) { .palette { display: none; } }

/* ================= v5.4 — illustrated hero ================= */
.paint5 .hgrid { position: relative; z-index: 3; min-height: 100svh; display: grid; grid-template-columns: minmax(0, 1.02fr) minmax(0, .98fr); align-items: center; gap: clamp(16px, 3vw, 48px); padding: 90px clamp(16px, 4vw, 56px) 90px; max-width: 1480px; margin: 0 auto; }
.paint5 .copy { padding: 0; max-width: none; }
.hi-small { display: inline-block; font-size: clamp(28px, 2.4vw, 36px); color: var(--coral); transform: rotate(-3deg); margin-left: 4px; }
.paint5 h1.big { font-size: clamp(50px, 5.7vw, 96px); line-height: .98; letter-spacing: -.045em; margin-top: 14px; color: #1f2440; }
.paint5 h1.big .strike { position: relative; display: inline-block; }
.paint5 h1.big .strike > .word { position: relative; display: inline-block; color: #9b9db1; }
.paint5 h1.big .strike > .word::after { content: ""; position: absolute; left: -2%; right: -2%; top: 54%; height: .085em; background: var(--coral); border-radius: 4px; transform-origin: left; transform: scaleX(1); transition: transform .7s cubic-bezier(.6,.1,.2,1) .3s; }
.paint5 h1.big .fix { position: absolute; left: 100%; top: .08em; margin-left: .12em; font-family: var(--hand); font-weight: 600; font-size: .66em; letter-spacing: 0; color: var(--coral); white-space: nowrap; transform: rotate(-7deg); opacity: 1; transition: opacity .4s 1s, transform .6s var(--spring) 1s; }
.paint5 h1.big.pre .strike > .word::after { transform: scaleX(0); transition: none; }
.paint5 h1.big.pre .fix { opacity: 0; transform: rotate(-7deg) translateY(.3em) scale(.6); transition: none; }
.paint5 .sub { margin-top: 24px; max-width: 44ch; }
.palette { position: static; flex-direction: row; align-items: center; gap: 12px; margin-top: 26px; }
.pl-hint { font-size: 24px; transform: rotate(-2deg); }
.art5 { position: relative; justify-self: center; width: 100%; max-width: 680px; pointer-events: none; }
.art5 .ill { width: 100%; height: auto; display: block; overflow: visible; }
.ill .ln { fill: none; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 1.1s cubic-bezier(.5,.1,.3,1) forwards; animation-delay: var(--d, 0s); }
.ill .fl { opacity: 0; animation: fadein .7s ease forwards; animation-delay: calc(var(--d, 0s) + .25s); }
.ill .bob { animation: bob var(--b, 6s) ease-in-out infinite; transform-box: fill-box; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes fadein { to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .ill .ln { stroke-dashoffset: 0; animation: none; } .ill .fl { opacity: 1; animation: none; } .ill .bob { animation: none; } }
@media (max-width: 900px) {
  .paint5 .hgrid { grid-template-columns: minmax(0, 1fr); padding: 84px 16px 110px; gap: 10px; }
  .paint5 h1.big { font-size: clamp(42px, 12vw, 60px); }
  .paint5 h1.big .fix { position: static; display: inline-block; margin-left: .15em; font-size: .7em; }
  .art5 { max-width: 440px; margin-top: 10px; }
  .palette { display: none; }
}
/* illustration: visible by default; JS adds .pre then removes it so it draws itself on */
.ill .ln { stroke-dasharray: 1; stroke-dashoffset: 0; animation: none; transition: stroke-dashoffset 1.1s cubic-bezier(.5,.1,.3,1); transition-delay: var(--d, 0s); }
.ill .fl { opacity: 1; animation: none; transition: opacity .7s ease; transition-delay: calc(var(--d, 0s) + .25s); }
.ill.pre .ln { stroke-dashoffset: 1; transition: none; }
.ill.pre .fl { opacity: 0; transition: none; }

/* ================= v5.4 — refined journey map ================= */
.jstage { background: #e9eff1; }
.jmap .grat .lat { fill: none; stroke: rgba(70,100,120,.14); stroke-width: 1; stroke-dasharray: 2 7; }
.jmap .grat .lon { fill: none; stroke: rgba(70,100,120,.07); stroke-width: 1; }
.jmap .shore { fill: none; stroke: #f5efe3; stroke-width: 16; stroke-linejoin: round; opacity: .9; }
.jmap .land { fill: #fbf6ec; stroke: #cbbd9c; stroke-width: 1.6; stroke-linejoin: round; }
.jmap .hatch { fill: url(#hatch); opacity: .5; pointer-events: none; }
.jmap .land-label { font-family: var(--display); font-weight: 800; font-size: 20px; letter-spacing: .38em; fill: #d9ccb0; }
.jmap .sea-label { font: 600 14px/1 var(--sans); letter-spacing: .24em; fill: #8fa1ab; text-transform: uppercase; }
.jmap .city { font-family: var(--hand); font-weight: 600; font-size: 22px; fill: #5a5f78; }
.jmap .route-bg { stroke: rgba(31,36,64,.22); stroke-width: 2.2; stroke-dasharray: 1 8; }
.jmap .route { stroke: var(--coral); stroke-width: 3.2; filter: drop-shadow(0 2px 4px rgba(232,97,63,.35)); }
.jmap .pin { opacity: .7; }
.jmap .pin.on { opacity: 1; }
.jmap .pin circle.halo { fill: var(--c); opacity: .14; r: 16; }
.jmap .pin.on circle.halo { r: 20; animation: halo 1.8s ease-out infinite; }
.jmap .pin circle.ring { fill: #fff; stroke: var(--c); stroke-width: 3; }
.jmap .pin circle.core { fill: var(--c); }
.jmap .pin.next circle.ring { stroke-dasharray: 3 3; }
.jmap .pin .tag rect { fill: #fff; stroke: rgba(31,36,64,.12); transition: fill .3s; }
.jmap .pin .tag text { font: 600 11px/1 var(--sans); fill: var(--ink); text-anchor: middle; dominant-baseline: middle; letter-spacing: 0; }
.jmap .pin.on .tag rect { fill: var(--c); stroke: none; }
.jmap .pin.on .tag text { fill: #fff; }
.compass { width: 58px; height: 58px; display: grid; place-items: center; position: absolute; }
.compass svg { position: absolute; inset: 9px; }
.compass span { position: absolute; top: 2px; font-size: 9px; font-weight: 800; color: var(--ink-2); }
.jcard { border-radius: 20px; padding: 22px 22px 20px; box-shadow: 0 30px 60px -32px rgba(31,36,64,.45), 0 0 0 1px rgba(31,36,64,.05); }
.jcard .logo { border-radius: 12px; }
.jcard h3 { font-size: 28px; }
.jdots { gap: 8px; padding: 9px 14px; }
.jdots i { width: 8px; height: 8px; }

/* plain paper hero: no watercolor */
.paint5 { cursor: auto; background: #fbf7ef; }
.paint5 .paper { opacity: .35; }

/* ================= v5.5 — project grid (all projects visible) ================= */
.work5 { text-align: left; }
.work5 > .wrap5 > p { margin-left: 0; }
.pgrid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: clamp(16px, 2vw, 28px); margin-top: clamp(36px, 5vw, 56px); }
.pj { grid-column: span 4; display: flex; flex-direction: column; background: var(--surface); border-radius: 22px; padding: 10px; box-shadow: 0 1px 0 rgba(31,36,64,.04), 0 0 0 1px rgba(31,36,64,.06); transition: transform .45s var(--spring), box-shadow .35s; }
.pj.big:nth-child(1) { grid-column: span 7; } .pj.big:nth-child(2) { grid-column: span 5; }
.pj:hover { transform: translateY(-6px); box-shadow: 0 26px 50px -28px rgba(31,36,64,.4), 0 0 0 1px rgba(31,36,64,.06); }
.pj-media { position: relative; border-radius: 15px; overflow: hidden; aspect-ratio: 4 / 3; background: color-mix(in srgb, var(--c) 14%, #fff); padding: 14px; }
.pj.big .pj-media { aspect-ratio: 16 / 11; padding: 18px; }
.pj-media img { width: 100%; height: 100%; object-fit: cover; border-radius: 10px; transition: transform .8s var(--ease); box-shadow: 0 14px 30px -18px rgba(31,36,64,.5); }
.pj:hover .pj-media img { transform: scale(1.035); }
.pj-lock { position: absolute; top: 24px; right: 24px; display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border-radius: 999px; background: rgba(31,36,64,.86); color: #fff; font-size: 11.5px; font-weight: 600; backdrop-filter: blur(6px); }
.pj-body { padding: 16px 10px 10px; display: flex; flex-direction: column; flex: 1; }
.pj-meta { display: flex; align-items: center; gap: 10px; font-size: 12.5px; font-weight: 600; color: var(--ink-3); }
.pj-n { display: inline-grid; place-items: center; min-width: 30px; height: 22px; padding: 0 8px; border-radius: 999px; background: var(--c); color: #fff; font-size: 11.5px; }
.pj h3 { font-family: var(--display); font-weight: 800; font-size: clamp(22px, 1.9vw, 28px); letter-spacing: -.03em; line-height: 1.08; margin: 12px 0 0; color: var(--ink); }
.pj.big h3 { font-size: clamp(28px, 2.6vw, 38px); }
.pj p { margin: 8px 0 0; color: var(--ink-2); font-size: 15px; line-height: 1.5; }
.pj-go { margin-top: auto; padding-top: 16px; display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; color: var(--ink); }
.pj-go svg { transition: transform .3s var(--ease); }
.pj:hover .pj-go { color: var(--c); }
.pj:hover .pj-go svg { transform: translateX(4px); }
@media (max-width: 1000px) { .pj, .pj.big:nth-child(1), .pj.big:nth-child(2) { grid-column: span 6; } }
@media (max-width: 640px) { .pgrid { grid-template-columns: minmax(0, 1fr); } .pj, .pj.big:nth-child(1), .pj.big:nth-child(2) { grid-column: auto; } }

/* ================= v5.6 — smaller illustration + polaroid strip ================= */
.art5 { max-width: 560px; }
@media (max-width: 900px) { .art5 { max-width: 380px; } }

.sketch { padding: clamp(84px, 10vw, 130px) 0 clamp(70px, 8vw, 100px); background: var(--bg); overflow: hidden; }
.sk-top { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; }
.sk-top h2 { font-size: clamp(40px, 5.2vw, 80px); margin-top: 12px; }
.sk-top p { margin: 16px 0 0; color: var(--ink-2); font-size: 17px; max-width: 48ch; }
.hlx { background: linear-gradient(transparent 12%, #ffe27a 12%, #ffe27a 92%, transparent 92%); padding: 0 .06em; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.sk-ctl { display: flex; gap: 10px; flex: 0 0 auto; }
.sk-ctl button { width: 52px; height: 52px; border-radius: 50%; border: 0; background: var(--surface); color: var(--ink); cursor: pointer; display: grid; place-items: center; box-shadow: 0 0 0 1px rgba(31,36,64,.1), 0 10px 20px -14px rgba(31,36,64,.4); transition: background .2s, color .2s, transform .3s var(--spring); }
.sk-ctl button:hover { background: var(--ink); color: #fff; transform: translateY(-2px); }
.strip5 { display: flex; gap: 28px; overflow-x: auto; overflow-y: visible; padding: 46px max(16px, calc((100vw - 1240px) / 2 + 40px)) 50px; scroll-snap-type: x proximity; scrollbar-width: none; cursor: grab; outline: none; user-select: none; -webkit-user-select: none; }
.strip5::-webkit-scrollbar { display: none; }
.strip5.drag { cursor: grabbing; scroll-snap-type: none; }
.pol { flex: 0 0 auto; width: clamp(230px, 24vw, 320px); margin: 0; background: #fff; padding: 12px 12px 52px; position: relative; scroll-snap-align: start;
  transform: rotate(var(--r)); box-shadow: 0 1px 2px rgba(0,0,0,.06), 0 22px 40px -24px rgba(31,36,64,.45); transition: transform .45s var(--spring), box-shadow .35s; cursor: zoom-in; }
.pol::before { content: ""; position: absolute; top: -12px; left: 50%; width: 84px; height: 24px; margin-left: -42px; background: rgba(255,226,122,.75); transform: rotate(calc(var(--r) * -1.4)); box-shadow: 0 1px 2px rgba(0,0,0,.06); }
.pol:hover { transform: rotate(0deg) translateY(-10px) scale(1.02); box-shadow: 0 1px 2px rgba(0,0,0,.06), 0 34px 54px -26px rgba(31,36,64,.5); z-index: 2; }
.pol .ph { aspect-ratio: 4 / 5; overflow: hidden; background: #f1efe9; }
.pol img { width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.pol figcaption { position: absolute; left: 16px; bottom: 15px; font-family: var(--hand); font-weight: 600; font-size: 24px; color: var(--ink-2); }
.pol-end { flex: 0 0 1px; }
.sk-bot { display: flex; align-items: center; gap: 18px; }
.sk-bar { flex: 1; height: 3px; border-radius: 3px; background: rgba(31,36,64,.1); overflow: hidden; }
.sk-bar i { display: block; height: 100%; width: 12%; background: var(--ink); border-radius: 3px; transition: width .15s linear; }
.sk-count { font: 600 13px/1 var(--sans); color: var(--ink-2); font-variant-numeric: tabular-nums; }
@media (max-width: 900px) {
  .sk-top { flex-direction: column; align-items: flex-start; }
  .sk-ctl { display: none; }
  .strip5 { gap: 18px; padding: 36px 16px 40px; }
  .pol { width: 72vw; }
}

/* ================= v5.7 — one consistent type scale ================= */
/* display */
.paint5 h1.big { font-size: clamp(44px, 5vw, 72px); }
.hi-small { font-size: clamp(26px, 2vw, 30px); }
.story p.big { font-size: clamp(28px, 3.1vw, 44px); line-height: 1.18; max-width: 20ch; }
.jhead h2, .work5 h2, .sk-top h2, .about5 h2 { font-size: clamp(34px, 3.9vw, 56px); line-height: 1.02; }
.contact5 h2 { font-size: clamp(52px, 6.2vw, 88px); }
.pj h3 { font-size: clamp(20px, 1.7vw, 24px); }
.pj.big h3 { font-size: clamp(24px, 2.2vw, 32px); }
.jcard h3 { font-size: 26px; }
.facts5 b { font-size: 30px; }
/* body */
.paint5 .sub { font-size: 18px; }
.jhead p, .work5 > .wrap5 > p, .sk-top p, .contact5 p { font-size: 17px; }
.about5 p, .jcard p { font-size: 16px; }
.pj p { font-size: 15px; }
/* nothing below 12px */
.snote small { font-size: 12px; }
.compass span { font-size: 10px; }
.lbl { font-size: 13px; }

/* case-study pages */
.inner .cs-head h1 { font-size: clamp(40px, 5vw, 72px); }
.inner .cs-head .headline { font-size: clamp(18px, 1.6vw, 22px); }
.inner .cs-section h2 { font-size: clamp(26px, 2.8vw, 38px); }
.inner .next-project h2 { font-size: clamp(32px, 4vw, 56px); }
.inner .cs-stat b { font-size: 40px; }
.inner .cs-quote p { font-size: clamp(19px, 1.8vw, 23px) !important; }
.inner .cs-callout p { font-size: clamp(20px, 2.1vw, 27px) !important; }

@media (max-width: 900px) {
  .story p.big { font-size: 28px; }
  .contact5 h2 { font-size: 52px; }
}

/* ===== v5.8 work-only hero illustration: 14s loop (wireframe -> design -> code) ===== */
.ill .cur { transform: translate(640px, 412px); }
.ill .clk { opacity: 0; }
.ill .cv { transform: scaleX(0); }
.ill .hf-cta, .ill .hf-bar, .ill .ghost, .ill .clk, .ill .cv { transform-box: fill-box; }
.ill .hf-cta, .ill .ghost, .ill .clk { transform-origin: 50% 50%; }
.ill .hf-bar { transform-origin: 50% 100%; }
.ill .cv { transform-origin: 100% 50%; }
.ill .cur, .ill .ghost, .ill .clk, .ill .seg, .ill .hf-hdr, .ill .hf-cta, .ill .hf-bar, .ill .hf-noodle, .ill .cv {
  animation-duration: 14s; animation-iteration-count: infinite; animation-delay: calc(4.2s + var(--o, 0s));
}
.ill .cur { animation-name: ill-cur; animation-timing-function: cubic-bezier(.6, 0, .3, 1); }
.ill .ghost { animation-name: ill-ghost; opacity: 0; }
.ill .clk { animation-name: ill-clk; animation-timing-function: ease-out; }
.ill .seg { animation-name: ill-seg; animation-timing-function: cubic-bezier(.5, 0, .2, 1); }
.ill .hf-hdr { animation-name: ill-fade; }
.ill .hf-cta { animation-name: ill-cta; }
.ill .hf-bar { animation-name: ill-bar; animation-timing-function: cubic-bezier(.3, 1.3, .5, 1); }
.ill .hf-noodle { animation-name: ill-noodle; }
.ill .cv { animation-name: ill-cv; animation-timing-function: steps(8, end); }
.ill .march { animation: ill-march 3s linear infinite; }
.ill .caret { animation: ill-blink 1s steps(1) infinite; }
@keyframes ill-cur {
  0%, 10% { transform: translate(640px, 412px); }
  16%, 20% { transform: translate(337px, 78px); }
  30%, 33% { transform: translate(104px, 187px); }
  45%, 47% { transform: translate(380px, 487px); }
  54%, 57% { transform: translate(380px, 192px); }
  63%, 66% { transform: translate(380px, 330px); }
  75%, 100% { transform: translate(640px, 412px); }
}
@keyframes ill-ghost { 0%, 32.9% { opacity: 0; transform: scale(.9); } 33.6% { opacity: 1; transform: scale(1.06); } 44.6% { opacity: 1; transform: scale(1); } 45.2%, 100% { opacity: 0; } }
@keyframes ill-clk {
  0%, 16.4% { opacity: 0; transform: scale(.2); } 17% { opacity: .8; transform: scale(.3); } 19.5% { opacity: 0; transform: scale(1.5); }
  32.4% { opacity: 0; transform: scale(.2); } 33% { opacity: .8; transform: scale(.3); } 35.5% { opacity: 0; transform: scale(1.5); }
  46.4% { opacity: 0; transform: scale(.2); } 47% { opacity: .8; transform: scale(.3); } 49.5% { opacity: 0; transform: scale(1.5); }
  56.4% { opacity: 0; transform: scale(.2); } 57% { opacity: .8; transform: scale(.3); } 59.5% { opacity: 0; transform: scale(1.5); }
  65.4% { opacity: 0; transform: scale(.2); } 66% { opacity: .8; transform: scale(.3); } 68.5% { opacity: 0; transform: scale(1.5); }
  100% { opacity: 0; }
}
@keyframes ill-seg { 0%, 17% { transform: translateX(0); } 19.5%, 56% { transform: translateX(-86px); } 59%, 100% { transform: translateX(0); } }
@keyframes ill-fade { 0%, 17.5% { opacity: 1; } 20.5%, 56.5% { opacity: 0; } 59.5%, 100% { opacity: 1; } }
@keyframes ill-cta { 0%, 17.5% { opacity: 1; transform: scale(1); } 20.5%, 44.8% { opacity: 0; transform: scale(.7); } 46.5% { opacity: 1; transform: scale(1.08); } 49%, 100% { opacity: 1; transform: scale(1); } }
@keyframes ill-noodle { 0%, 17.5% { opacity: 1; } 20.5%, 48% { opacity: 0; } 52%, 100% { opacity: 1; } }
@keyframes ill-bar { 0%, 17.5% { transform: scaleY(1); } 20.5%, 66% { transform: scaleY(.06); } 70%, 100% { transform: scaleY(1); } }
@keyframes ill-cv { 0%, 17.5% { transform: scaleX(0); } 19%, 74% { transform: scaleX(1); } 77.5%, 100% { transform: scaleX(0); } }
@keyframes ill-march { to { stroke-dashoffset: -36; } }
@keyframes ill-blink { 50% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) {
  .ill .cur, .ill .ghost, .ill .clk, .ill .seg, .ill .hf-hdr, .ill .hf-cta, .ill .hf-bar, .ill .hf-noodle, .ill .cv, .ill .march, .ill .caret { animation: none; }
}

/* ===== v5.9 stealth stop: badge + what-I-do tags ===== */
.jcard .org .badge { display: inline-flex; align-items: center; gap: 5px; margin-left: 8px; padding: 3px 9px 3px 7px; border-radius: 999px; background: #1f2440; color: #fff; font-size: 11px; font-weight: 600; letter-spacing: .02em; vertical-align: 2px; }
.jcard .org .badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #7ee0b5; box-shadow: 0 0 0 3px rgba(126,224,181,.25); animation: ill-blink 2s ease-in-out infinite; }
.jcard .tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.jcard .tags span { padding: 6px 11px; border-radius: 999px; background: var(--bg-2); color: var(--ink); font-size: 13px; font-weight: 500; }

/* ===== v5.10 case-study type + spacing system (all project pages) ===== */
/* root fix: .cs-content p {margin:0} was beating the section rhythm, so paragraphs touched */
.inner .cs-content .cs-section > * + * { margin-top: 18px; }
.inner .cs-content .cs-section > .eyebrow + h2 { margin-top: 10px; }
.inner .cs-content .cs-section > h2 + * { margin-top: 20px; }
.inner .cs-content .cs-section > .eyebrow + p { margin-top: 12px; }
.inner .cs-content .cs-section > :is(figure, .cs-gallery, .cs-cards, .cs-stats, .cs-quotes, .cs-callout, .cs-list, .cs-quote, div) { margin-top: 32px; }
.inner .cs-content .cs-section > :is(figure, .cs-gallery, .cs-cards, .cs-stats, .cs-quotes, .cs-callout, .cs-list, .cs-quote, div) + p { margin-top: 32px; }
.inner .cs-content .cs-section > p.sub { margin-top: 40px; }
.inner .cs-section { padding-bottom: clamp(56px, 6vw, 80px); }
.inner .cs-section + .cs-section { padding-top: clamp(8px, 1vw, 12px); }

/* type scale: body 17, small 15, meta 13, labels 12-13 */
.inner .cs-section > .eyebrow { font-size: 13px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-2); line-height: 1.4; }
.inner .cs-section > .eyebrow b { font-size: 13px; letter-spacing: .04em; }
.inner .cs-section h2 { font-size: clamp(26px, 2.5vw, 36px); line-height: 1.12; }
.inner .cs-content p { font-size: 17px; line-height: 1.7; }
.inner .cs-list li { font-size: 17px; line-height: 1.6; padding: 12px 0 12px 28px; }
.inner .cs-list li::before { top: 25px; }
.inner .cs-card { padding: 22px 22px 24px; }
.inner .cs-card .n { font-size: 13px; font-weight: 700; letter-spacing: .04em; }
.inner .cs-card h4 { font-size: 17px; line-height: 1.35; margin-top: 10px; }
.inner .cs-card p { font-size: 15px !important; line-height: 1.6 !important; margin-top: 8px !important; }
.inner .cs-cards, .inner .cs-stats, .inner .cs-gallery { gap: 14px; }
.inner .cs-stat { padding: 22px 20px; }
.inner .cs-stat b { font-size: 36px; }
.inner .cs-stat span { font-size: 14.5px; line-height: 1.5; margin-top: 12px; }
.inner .cs-quotes { gap: 32px 36px; }
.inner .cs-quote { padding: 2px 0 2px 22px; }
.inner .cs-quote p { font-size: clamp(18px, 1.5vw, 20px) !important; line-height: 1.45 !important; font-weight: 600; letter-spacing: -.01em; }
.inner .cs-quote cite { font-size: 13px; margin-top: 12px; }
.inner .cs-callout { padding: clamp(26px, 3vw, 38px) clamp(26px, 3.4vw, 44px); }
.inner .cs-callout p { font-size: clamp(20px, 1.9vw, 25px) !important; line-height: 1.35 !important; }
.inner .cs-callout p + p { margin-top: 14px; }
.inner .cs-figure figcaption { font-size: 13px; margin-top: 12px; }
.inner .cs-link { font-size: 15px; }
.inner .cs-head .eyebrow { font-size: 13px; letter-spacing: .12em; }
.inner .cs-head .headline { font-size: clamp(18px, 1.5vw, 21px); line-height: 1.5; margin-top: 16px; }
.inner .cs-meta { margin-top: clamp(32px, 4vw, 44px); }
.inner .cs-meta dt { font-size: 12px; font-weight: 600; }
.inner .cs-meta dd { font-size: 15px; margin-top: 8px; }
.inner .toc a { font-size: 14px; }
.inner .next-project h2 { font-size: clamp(36px, 4.4vw, 56px); }
.inner .gate h2 { font-size: clamp(28px, 3vw, 34px); }
.inner .gate p { font-size: 16px; line-height: 1.6; }
@media (max-width: 640px) {
  .inner .cs-content p, .inner .cs-list li { font-size: 16px; }
  .inner .cs-section h2 { font-size: 26px; }
  .inner .cs-quote p { font-size: 18px !important; }
  .inner .cs-stat b { font-size: 30px; }
  .inner .cs-content .cs-section > :is(figure, .cs-gallery, .cs-cards, .cs-stats, .cs-quotes, .cs-callout, .cs-list, .cs-quote, div) { margin-top: 26px; }
}

/* home project grid: second big card image fills so text lines up, no empty gap */
.pj.big:nth-child(2) .pj-media { aspect-ratio: auto; flex: 1 1 auto; min-height: 240px; }
.pj.big:nth-child(2) .pj-media img { position: absolute; inset: 18px; width: calc(100% - 36px); height: calc(100% - 36px); }
.pj-lock, .pj-n { font-size: 12px; }
.pj-meta { font-size: 13px; }

/* ===== v5.11 case-study images: logos, icon rows, single gallery ===== */
.inner .cs-gallery.one { grid-template-columns: minmax(0, 1fr); }
.inner .frame.logo { display: grid; place-items: center; padding: clamp(24px, 3vw, 36px); background: #fff; cursor: default; }
.inner .frame.logo img { width: auto; max-width: min(320px, 80%); max-height: 110px; object-fit: contain; }
.inner .cs-figure .frame.logo { max-width: 100%; }
.inner .cs-gallery.icons { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.inner .cs-gallery.icons .frame { cursor: default; border: 0; border-radius: 14px; aspect-ratio: 1; display: grid; place-items: center; overflow: hidden; }
.inner .cs-gallery.icons .frame img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 640px) { .inner .cs-gallery.icons { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; } }
.inner .cs-cards.five { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.inner .cs-cards.five .cs-card { grid-column: span 2; }
.inner .cs-cards.five .cs-card:nth-child(n+4) { grid-column: span 3; }
.inner .cs-card .ic { width: 48px; height: 48px; border-radius: 12px; object-fit: cover; display: block; margin-bottom: 14px; }
@media (max-width: 640px) { .inner .cs-cards.five { grid-template-columns: minmax(0, 1fr); } .inner .cs-cards.five .cs-card, .inner .cs-cards.five .cs-card:nth-child(n+4) { grid-column: auto; } }
/* no orphan half-rows in 2-up card grids */
.inner .cs-cards:not(.three):not(.five) > .cs-card:last-child:nth-child(odd) { grid-column: 1 / -1; }
/* cs-body padding shorthand was wiping the side gutter (content touched the screen edge on phones) */
.inner .cs-body { padding-left: var(--gutter); padding-right: var(--gutter); }

/* ===== v5.12 richer hero loop: curved cursor paths, selection boxes, Dev cursor tests the prototype, parallax ===== */
.ill .cur { animation-timing-function: linear; }
@keyframes ill-cur {
  0% { transform: translate(640.0px, 412.0px); }
  10% { transform: translate(640.0px, 412.0px); }
  10.55% { transform: translate(639.4px, 410.7px); }
  11.09% { transform: translate(635.5px, 401.4px); }
  11.64% { transform: translate(624.4px, 376.8px); }
  12.18% { transform: translate(600.4px, 330.8px); }
  12.73% { transform: translate(554.4px, 260.9px); }
  13.27% { transform: translate(479.0px, 177.9px); }
  13.82% { transform: translate(414.0px, 125.3px); }
  14.36% { transform: translate(370.6px, 97.0px); }
  14.91% { transform: translate(347.1px, 83.5px); }
  15.45% { transform: translate(338.3px, 78.7px); }
  16% { transform: translate(337.0px, 78.0px); }
  20% { transform: translate(337.0px, 78.0px); }
  21.67% { transform: translate(333.4px, 81.5px); }
  23.33% { transform: translate(307.4px, 104.7px); }
  25% { transform: translate(230.3px, 153.5px); }
  26.67% { transform: translate(143.5px, 181.4px); }
  28.33% { transform: translate(109.0px, 186.5px); }
  30% { transform: translate(104.0px, 187.0px); }
  33% { transform: translate(104.0px, 187.0px); }
  34.2% { transform: translate(104.7px, 188.6px); }
  35.4% { transform: translate(109.5px, 199.7px); }
  36.6% { transform: translate(123.4px, 229.0px); }
  37.8% { transform: translate(154.1px, 282.7px); }
  39% { transform: translate(215.0px, 361.8px); }
  40.2% { transform: translate(288.8px, 429.1px); }
  41.4% { transform: translate(339.8px, 464.2px); }
  42.6% { transform: translate(367.8px, 480.5px); }
  43.8% { transform: translate(378.5px, 486.2px); }
  45% { transform: translate(380.0px, 487.0px); }
  47% { transform: translate(380.0px, 487.0px); }
  48% { transform: translate(378.8px, 483.6px); }
  49% { transform: translate(371.0px, 459.5px); }
  50% { transform: translate(357.1px, 394.1px); }
  51% { transform: translate(357.1px, 284.9px); }
  52% { transform: translate(371.0px, 219.5px); }
  53% { transform: translate(378.8px, 195.4px); }
  54% { transform: translate(380.0px, 192.0px); }
  57% { transform: translate(380.0px, 192.0px); }
  58% { transform: translate(379.1px, 194.6px); }
  59% { transform: translate(373.7px, 212.4px); }
  60% { transform: translate(367.6px, 261.0px); }
  61% { transform: translate(373.7px, 309.6px); }
  62% { transform: translate(379.1px, 327.4px); }
  63% { transform: translate(380.0px, 330.0px); }
  66% { transform: translate(380.0px, 330.0px); }
  67.5% { transform: translate(385.4px, 329.8px); }
  69% { transform: translate(422.2px, 330.3px); }
  70.5% { transform: translate(517.4px, 347.6px); }
  72% { transform: translate(605.2px, 388.0px); }
  73.5% { transform: translate(635.7px, 408.8px); }
  75% { transform: translate(640.0px, 412.0px); }
  100% { transform: translate(640.0px, 412.0px); }
}
.ill .cur2 { transform: translate(716px, 262px); animation: ill-cur2 14s linear infinite; animation-delay: 4.2s; }
@keyframes ill-cur2 {
  0% { transform: translate(716.0px, 262.0px); }
  3.67% { transform: translate(715.7px, 262.2px); }
  7.33% { transform: translate(713.5px, 263.7px); }
  11% { transform: translate(708.2px, 268.2px); }
  14.67% { transform: translate(703.7px, 273.5px); }
  18.33% { transform: translate(702.2px, 275.7px); }
  22% { transform: translate(702.0px, 276.0px); }
  25.67% { transform: translate(702.3px, 275.3px); }
  29.33% { transform: translate(704.4px, 270.9px); }
  33% { transform: translate(711.2px, 259.7px); }
  36.67% { transform: translate(719.8px, 249.8px); }
  40.33% { transform: translate(723.5px, 246.5px); }
  44% { transform: translate(724.0px, 246.0px); }
  47.67% { transform: translate(723.8px, 246.3px); }
  51.33% { transform: translate(722.3px, 248.1px); }
  55% { transform: translate(719.0px, 253.5px); }
  58.67% { transform: translate(716.7px, 259.4px); }
  62.33% { transform: translate(716.1px, 261.7px); }
  66% { transform: translate(716.0px, 262.0px); }
  76% { transform: translate(716.0px, 262.0px); }
  77.11% { transform: translate(716.2px, 264.1px); }
  78.22% { transform: translate(717.5px, 279.0px); }
  79.33% { transform: translate(719.7px, 319.3px); }
  80.44% { transform: translate(718.3px, 396.9px); }
  81.56% { transform: translate(702.8px, 508.8px); }
  82.67% { transform: translate(683.1px, 583.9px); }
  83.78% { transform: translate(670.1px, 622.0px); }
  84.89% { transform: translate(664.8px, 636.0px); }
  86% { transform: translate(664.0px, 638.0px); }
  93% { transform: translate(664.0px, 638.0px); }
  93.78% { transform: translate(664.8px, 636.0px); }
  94.56% { transform: translate(670.1px, 622.0px); }
  95.33% { transform: translate(683.1px, 583.9px); }
  96.11% { transform: translate(702.8px, 508.8px); }
  96.89% { transform: translate(718.3px, 396.9px); }
  97.67% { transform: translate(719.7px, 319.3px); }
  98.44% { transform: translate(717.5px, 279.0px); }
  99.22% { transform: translate(716.2px, 264.1px); }
  100% { transform: translate(716.0px, 262.0px); }
}
.ill .clk2, .ill .sel, .ill .ping { opacity: 0; }
.ill .clk2, .ill .pop, .ill .ping { transform-box: fill-box; transform-origin: 50% 50%; }
.ill .clk2 { animation: ill-clk2 14s ease-out infinite 4.2s; }
.ill .pop { animation: ill-pop 14s infinite 4.2s; }
.ill .ping { animation: ill-ping 14s ease-out infinite 4.2s; }
.ill .sel { animation: 14s ease infinite 4.2s; }
.ill .sel-c { animation-name: ill-selc; }
.ill .sel-h { animation-name: ill-selh; }
.ill .sel-g { animation-name: ill-selg; }
@keyframes ill-clk2 { 0%, 86.4% { opacity: 0; transform: scale(.2); } 87% { opacity: .9; transform: scale(.3); } 90% { opacity: 0; transform: scale(1.6); } 100% { opacity: 0; } }
@keyframes ill-pop { 0%, 86.8% { transform: scale(1); } 88.2% { transform: scale(.82); } 90% { transform: scale(1.12); } 92%, 100% { transform: scale(1); } }
@keyframes ill-ping { 0%, 87.5% { opacity: 0; transform: scale(1); } 88.5% { opacity: .8; transform: scale(1); } 94%, 100% { opacity: 0; transform: scale(2.1); } }
@keyframes ill-selc { 0%, 45.2% { opacity: 0; } 46% { opacity: 1; } 52% { opacity: 1; } 53.5%, 100% { opacity: 0; } }
@keyframes ill-selh { 0%, 55.2% { opacity: 0; } 56% { opacity: 1; } 61.5% { opacity: 1; } 63%, 100% { opacity: 0; } }
@keyframes ill-selg { 0%, 64.6% { opacity: 0; } 65.4% { opacity: 1; } 71% { opacity: 1; } 72.5%, 100% { opacity: 0; } }
.ill .par { transition: transform .9s cubic-bezier(.2, .7, .2, 1); }
@media (prefers-reduced-motion: reduce) { .ill .cur2, .ill .clk2, .ill .pop, .ill .ping, .ill .sel { animation: none; } .ill .par { transition: none; } }


/* ===== v5.13 wide-screen balance: hero + story sit as one centered composition, no empty middle ===== */
@media (min-width: 901px) {
  .paint5 .hgrid { grid-template-columns: minmax(0, 600px) minmax(0, 680px); justify-content: center; column-gap: clamp(32px, 5vw, 96px); max-width: none; }
  .art5 { max-width: 680px; justify-self: stretch; }
  .story .story-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(250px, 300px); grid-template-areas: "lbl notes" "txt notes"; column-gap: clamp(48px, 7vw, 120px); align-items: center; max-width: 1180px; }
  .story .story-grid > .lbl { grid-area: lbl; align-self: end; }
  .story .story-grid > p.big { grid-area: txt; align-self: start; max-width: 21ch; }
  .story .snotes { grid-area: notes; display: flex; flex-direction: column; gap: 22px; }
  .story .snotes .snote { position: relative; width: auto; right: auto !important; top: auto !important; }
  .story .snotes .snote:nth-child(1) { margin-left: 18px; }
  .story .snotes .snote:nth-child(2) { margin-right: 18px; }
  .story .snotes .snote:nth-child(3) { margin-left: 30px; }
}

/* ===== v5.14 case-study videos ===== */
.inner .cs-video { margin: 0; }
.inner .vframe { position: relative; aspect-ratio: var(--ar, 16/9); border-radius: 18px; overflow: hidden; background: #10131f; box-shadow: 0 24px 50px -28px rgba(31,36,64,.55); }
.inner .vframe iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.inner .cs-video figcaption { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 14px; font-size: 13px; color: var(--ink-3); }
.inner .cs-video figcaption b { font-size: 15px; font-weight: 700; color: var(--ink); }
.inner .cs-video figcaption a { display: inline-flex; align-items: center; gap: 5px; color: var(--ink-2); font-weight: 600; }
.inner .cs-video figcaption a:hover { color: var(--coral); }
.inner .cs-videos.phones { display: grid; grid-template-columns: repeat(2, minmax(0, 270px)); justify-content: center; gap: clamp(24px, 6vw, 72px); padding: clamp(28px, 4vw, 48px) clamp(20px, 3vw, 40px); border-radius: 22px; background: color-mix(in srgb, #255150 9%, #fff); }
.inner .cs-video.laptop .lap { position: relative; max-width: 720px; margin: 0 auto; }
.inner .cs-video.laptop .lap img { width: 100%; display: block; }
.inner .cs-video.laptop .scr { position: absolute; left: 12.63%; right: 12.56%; top: 10.15%; bottom: 14.21%; overflow: hidden; background: #10131f; }
.inner .cs-video.laptop .scr iframe { position: absolute; top: 0; height: 100%; width: 104.3%; left: -2.15%; border: 0; pointer-events: none; }
.inner .cs-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 220px); gap: clamp(24px, 4vw, 56px); align-items: center; }
.inner .cs-split > div > * + * { margin-top: 18px; }
@media (max-width: 640px) {
  .inner .cs-videos.phones { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; padding: 18px 14px; }
  .inner .cs-video figcaption { flex-direction: column; align-items: flex-start; gap: 4px; }
  .inner .cs-split { grid-template-columns: minmax(0, 1fr); }
  .inner .cs-split .cs-video { max-width: 240px; margin: 0 auto; }
}
.inner .cs-video.laptop .lap img { mix-blend-mode: multiply; }

/* ===== v5.15 Expense Mgmt: solution box, screen trio, audience, numbered flow ===== */
.inner .cs-solution { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: clamp(22px, 3vw, 34px) clamp(22px, 3.4vw, 40px); }
.inner .cs-solution p { font-size: clamp(18px, 1.6vw, 21px) !important; line-height: 1.55 !important; color: var(--ink) !important; }
.inner .cs-screens { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(14px, 2.4vw, 28px); align-items: start; }
.inner .cs-screens figure { margin: 0; }
.inner .cs-screens figcaption { text-align: center; font-size: 14px; font-weight: 600; color: var(--ink-2); margin: 0 0 12px; min-height: 2.6em; display: flex; align-items: flex-end; justify-content: center; }
.inner .cs-screens .frame { border-radius: 22px; box-shadow: 0 24px 44px -30px rgba(31,36,64,.5); }
.inner .cs-audience { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.inner .cs-audience .aud { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 22px; }
.inner .cs-audience .ico { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; color: var(--c); background: color-mix(in srgb, var(--c) 13%, #fff); }
.inner .cs-audience h4 { margin: 16px 0 0; font-size: 17px; line-height: 1.35; font-weight: 600; }
.inner .cs-flow { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 36px 22px; counter-reset: f; }
.inner .cs-flow li { position: relative; }
.inner .cs-flow .shot { border-radius: 18px; background: color-mix(in srgb, #9b5de5 7%, #fff); padding: 14px 14px 0; height: 300px; overflow: hidden; display: flex; justify-content: center; }
.inner .cs-flow .shot img { width: auto; max-width: 100%; height: auto; object-fit: contain; object-position: top; border-radius: 12px 12px 0 0; box-shadow: 0 10px 26px -16px rgba(31,36,64,.5); }
.inner .cs-flow .cap { margin-top: 14px; }
.inner .cs-flow .num { display: inline-grid; place-items: center; min-width: 32px; height: 24px; padding: 0 8px; border-radius: 999px; background: var(--ink); color: #fff; font-size: 12px; font-weight: 700; }
.inner .cs-flow h4 { margin: 10px 0 0; font-size: 16px; font-weight: 600; line-height: 1.35; }
.inner .cs-flow p { font-size: 14.5px !important; line-height: 1.55 !important; margin-top: 6px !important; }
/* connector arrows between steps in a row */
.inner .cs-flow li:not(:nth-child(3n))::after { content: ""; position: absolute; top: 150px; right: -19px; width: 16px; height: 16px; border-radius: 50%; background: var(--bg) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8h8M9 5l3 3-3 3' fill='none' stroke='%231f2440' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 16px no-repeat; box-shadow: 0 0 0 1px var(--line); z-index: 2; }
@media (max-width: 900px) { .inner .cs-flow { grid-template-columns: repeat(2, minmax(0, 1fr)); } .inner .cs-flow li::after { display: none; } }
@media (max-width: 640px) {
  .inner .cs-screens { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .inner .cs-screens figcaption { font-size: 12px; }
  .inner .cs-audience { grid-template-columns: minmax(0, 1fr); }
  .inner .cs-flow { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px 12px; }
  .inner .cs-flow .shot { height: 230px; padding: 10px 10px 0; }
}
.jhead { padding-left: clamp(16px, 4vw, 40px); padding-right: clamp(16px, 4vw, 40px); }

/* ===== v6.0 senior case-study layout system ===== */
/* sub headings inside a section */
.inner .cs-content h3.cs-h3, .inner .cs-content p.sub { font-family: var(--display); font-weight: 800; font-size: clamp(19px, 1.6vw, 22px); letter-spacing: -.02em; line-height: 1.25; color: var(--ink); margin-top: 44px; }
.inner .cs-content .cs-section > h2 + h3.cs-h3, .inner .cs-content .cs-section > p + h3.cs-h3 { margin-top: 40px; }
.inner .cs-content .cs-section > h3.cs-h3 + * { margin-top: 12px; }
.inner .cs-content .cs-section > h3.cs-h3 + :is(figure, div) { margin-top: 18px; }
/* overview + role */
.inner .cs-overview { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: clamp(28px, 4vw, 56px); align-items: start; }
.inner .cs-overview .lab { display: block; font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 12px; }
.inner .cs-overview p + p { margin-top: 14px; }
.inner .chips { display: flex; flex-wrap: wrap; gap: 8px; }
.inner .chips span { padding: 7px 12px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); font-size: 13.5px; font-weight: 500; color: var(--ink); line-height: 1.2; }
/* text + media side by side */
.inner .cs-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .9fr); gap: clamp(24px, 4vw, 48px); align-items: center; }
.inner .cs-row.rev > .media { order: -1; }
.inner .cs-row .txt > * + * { margin-top: 14px; }
.inner .cs-row .media .frame { border-radius: 16px; }
.inner .cs-row .media.logo .frame { display: grid; place-items: center; padding: 28px; background: #fff; cursor: default; }
.inner .cs-row .media.logo img { width: auto; max-height: 90px; max-width: 70%; }
/* brand perception board */
.inner .cs-board { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.inner .cs-board .frame { aspect-ratio: 1; border-radius: 16px; }
.inner .cs-board .frame img { width: 100%; height: 100%; object-fit: cover; }
.inner .cs-insights { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-top: 14px; }
.inner .cs-insights .ins { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 18px 20px; }
.inner .cs-insights .ins b { display: block; font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--coral); margin-bottom: 6px; }
.inner .cs-insights .ins p { font-size: 15.5px !important; line-height: 1.55 !important; color: var(--ink) !important; }
/* paired flow images (legend + flow) */
.inner .cs-flowpair { display: grid; grid-template-columns: minmax(0, 140fr) minmax(0, 515fr); gap: 14px; align-items: start; }
.inner .cs-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; align-items: start; }
/* design outcome rows: copy beside device */
.inner .cs-outcome { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(24px, 4vw, 56px); align-items: center; padding: clamp(22px, 3vw, 34px); border-radius: 22px; background: var(--surface); border: 1px solid var(--line); }
.inner .cs-outcome + .cs-outcome { margin-top: 16px !important; }
.inner .cs-outcome.phone { grid-template-columns: minmax(0, 1fr) minmax(0, 220px); }
.inner .cs-outcome.rev > .media { order: -1; }
.inner .cs-outcome.rev.phone { grid-template-columns: minmax(0, 220px) minmax(0, 1fr); }
.inner .cs-outcome .txt h3 { font-family: var(--display); font-weight: 800; font-size: 20px; letter-spacing: -.02em; margin: 0; }
.inner .cs-outcome .txt h3 small { display: block; font-family: var(--sans); font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--coral); margin-bottom: 6px; }
.inner .cs-outcome .txt .cs-list { margin-top: 14px; }
.inner .cs-outcome .txt .cs-list li { font-size: 15.5px; padding: 9px 0 9px 26px; }
.inner .cs-outcome .txt .cs-list li::before { top: 20px; }
.inner .cs-outcome .txt .cs-link { margin-top: 18px; }
.inner .cs-outcome .cs-video.laptop .lap { max-width: none; }
/* process: abstract -> concrete */
.inner .cs-process { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; position: relative; }
.inner .cs-process .st { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 16px 14px 18px; }
.inner .cs-process .st img { width: 44px; height: 44px; border-radius: 12px; display: block; }
.inner .cs-process .st h4 { margin: 12px 0 0; font-size: 15.5px; font-weight: 700; }
.inner .cs-process .st ul { list-style: none; margin: 8px 0 0; padding: 0; }
.inner .cs-process .st li { font-size: 13.5px; line-height: 1.45; color: var(--ink-2); padding: 3px 0; }
.inner .cs-axis { display: flex; align-items: center; gap: 12px; margin-top: 14px !important; font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); }
.inner .cs-axis i { flex: 1; height: 1px; background: linear-gradient(90deg, var(--line), var(--ink-3)); position: relative; }
.inner .cs-axis i::after { content: ""; position: absolute; right: -1px; top: -4px; border: 4.5px solid transparent; border-left: 7px solid var(--ink-3); }
/* hi-fi screens, gently staggered */
.inner .cs-phones { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(10px, 2vw, 22px); align-items: start; padding: clamp(24px, 3vw, 40px) clamp(16px, 3vw, 36px) clamp(36px, 4vw, 56px); border-radius: 22px; background: color-mix(in srgb, #e8613f 8%, #fff); }
.inner .cs-phones .frame { border: 0; border-radius: 18px; box-shadow: 0 20px 40px -26px rgba(31,36,64,.55); background: transparent; }
.inner .cs-phones .frame:nth-child(even) { margin-top: 36px; }
/* usability metrics */
.inner .cs-metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.inner .cs-metrics .grp { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 18px 18px 6px; }
.inner .cs-metrics .grp > span { display: block; font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.inner .cs-metrics .m { padding: 14px 0; }
.inner .cs-metrics .m + .m { border-top: 1px dashed var(--line); }
.inner .cs-metrics .m b { display: block; font-family: var(--display); font-weight: 800; font-size: 30px; letter-spacing: -.03em; line-height: 1; color: var(--ink); }
.inner .cs-metrics .m em { display: block; margin-top: 6px; font-style: normal; font-size: 13.5px; color: var(--ink-2); }
.inner .cs-stat .ic { width: 36px; height: 36px; object-fit: contain; display: block; margin-bottom: 12px; opacity: .85; }
/* SCAMPER tags */
.inner .cs-scamper { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; }
.inner .cs-scamper h3 { margin: 0 !important; }
.inner .cs-scamper .word { display: inline-flex; gap: 2px; font-family: var(--display); font-weight: 800; font-size: 15px; letter-spacing: .04em; }
.inner .cs-scamper .word i { font-style: normal; width: 22px; height: 26px; display: grid; place-items: center; border-radius: 6px; color: var(--ink-3); background: var(--surface); border: 1px solid var(--line); }
.inner .cs-scamper .word i.on { color: #fff; background: var(--coral); border-color: var(--coral); }
.inner .cs-scamper .verb { font-size: 13px; font-weight: 600; color: var(--coral); }
/* how might we callout label */
.inner .cs-callout .hmw { display: block; font-family: var(--sans); font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: rgba(255,255,255,.55); margin-bottom: 10px; }
/* definition list next to a prototype video */
.inner .cs-dl { margin: 0; }
.inner .cs-dl div + div { margin-top: 18px; }
.inner .cs-dl dt { font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--coral); }
.inner .cs-dl dd { margin: 6px 0 0; font-size: 16.5px; line-height: 1.55; color: var(--ink); }
/* impact = results with checks; takeaways = numbered */
.inner .cs-section[id^="impact"] .cs-list li { padding-left: 34px; color: var(--ink); }
.inner .cs-section[id^="impact"] .cs-list li::before { width: 18px; height: 18px; top: 15px; left: 0; border-radius: 50%; background: #e3f3ee url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Cpath d='M5 9.4l2.6 2.6L13 6.6' fill='none' stroke='%232a9d8f' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 18px no-repeat; }
.inner .cs-section[id^="takeaways"] .cs-list, .inner .cs-section[id^="learnings"] .cs-list { counter-reset: tk; }
.inner .cs-section[id^="takeaways"] .cs-list li, .inner .cs-section[id^="learnings"] .cs-list li { counter-increment: tk; padding-left: 40px; }
.inner .cs-section[id^="takeaways"] .cs-list li::before, .inner .cs-section[id^="learnings"] .cs-list li::before { content: counter(tk, decimal-leading-zero); width: auto; height: auto; background: none; top: 13px; left: 0; font-family: var(--display); font-weight: 800; font-size: 14px; color: var(--coral); }
@media (max-width: 900px) {
  .inner .cs-process { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .inner .cs-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .inner .cs-overview, .inner .cs-row, .inner .cs-outcome, .inner .cs-outcome.phone, .inner .cs-outcome.rev.phone { grid-template-columns: minmax(0, 1fr); }
  .inner .cs-outcome.rev > .media, .inner .cs-row.rev > .media { order: 0; }
  .inner .cs-outcome.phone .media, .inner .cs-outcome.rev.phone .media { max-width: 220px; margin: 0 auto; }
  .inner .cs-board { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .inner .cs-insights { grid-template-columns: minmax(0, 1fr); }
  .inner .cs-phones { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .inner .cs-flowpair { grid-template-columns: minmax(0, 1fr) minmax(0, 3fr); gap: 8px; }
}

/* ===== v6.1 polish: one type scale + one spacing rhythm on every case page =====
   type: 12 labels (caps) · 13 captions/meta · 14 UI/nav · 15 secondary · 17 body · 20 sub-heads · 36 h2 · 72 h1
   space: label→content 14 · h2→content 22 · paragraph→paragraph 16 · text↔block 32 · sub-head 44 above / 12 below */
.inner .cs-content .cs-section > .eyebrow + * { margin-top: 14px; }
.inner .cs-content .cs-section > .eyebrow + h2 { margin-top: 10px; }
.inner .cs-content .cs-section > h2 + * { margin-top: 22px; }
.inner .cs-content .cs-section > h2 + h3.cs-h3 { margin-top: 30px; }
.inner .cs-content .cs-section > p + p { margin-top: 16px; }
.inner .cs-content h3.cs-h3, .inner .cs-content p.sub, .inner .cs-outcome .txt h3 { font-size: 20px; line-height: 1.3; }
/* secondary text = 15 */
.inner .cs-insights .ins p, .inner .cs-outcome .txt .cs-list li, .inner .cs-process .st h4, .inner .cs-stat span, .inner .cs-flow p, .inner .cs-card p { font-size: 15px !important; }
.inner .cs-dl dd { font-size: 17px; }
/* small text = 13 */
.inner .chips span, .inner .cs-process .st li, .inner .cs-metrics .m em, .inner .cs-video figcaption, .inner .cs-stat small, .inner .cs-figure figcaption { font-size: 13px; }
/* card titles */
.inner .cs-card h4, .inner .cs-audience h4, .inner .cs-flow h4 { font-size: 16px; line-height: 1.35; }
/* stat numbers share one size */
.inner .cs-stat b, .inner .cs-metrics .m b { font-size: 32px; }
/* figures breathe a little less than sections, more than paragraphs */
.inner .cs-figure + .cs-figure { margin-top: 20px !important; }
/* consistent card radius + padding */
.inner .cs-card, .inner .cs-stat, .inner .cs-insights .ins, .inner .cs-audience .aud, .inner .cs-metrics .grp, .inner .cs-process .st { border-radius: 16px; }
.inner .cs-card, .inner .cs-stat, .inner .cs-insights .ins, .inner .cs-audience .aud { padding: 20px 22px 22px; }
/* readable measure for long paragraphs */
.inner .cs-content .cs-section > p { max-width: 68ch; }
/* header block */
.inner .cs-head .headline { max-width: 46ch; }
.inner .cs-meta dd { font-size: 15px; line-height: 1.5; }
/* next project card */
.inner .next-project .eyebrow { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; }
@media (max-width: 640px) {
  .inner .cs-content .cs-section > h2 + * { margin-top: 18px; }
  .inner .cs-content h3.cs-h3, .inner .cs-content p.sub { margin-top: 36px; font-size: 19px; }
  .inner .cs-stat b, .inner .cs-metrics .m b { font-size: 28px; }
}
/* home: small labels to the same 12/13 steps */
.pj-meta { font-size: 13px; }
.jcard .when { font-size: 13px; }
/* home section labels match the case-study eyebrows */
.story .lbl, .jhead .lbl, .work5 .lbl, .sk-top .lbl, .about5 .lbl, .contact5 .lbl { font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-2); display: inline-flex; align-items: center; gap: 10px; }
.story .lbl::before, .jhead .lbl::before, .work5 .lbl::before, .sk-top .lbl::before, .about5 .lbl::before, .contact5 .lbl::before { content: ""; width: 18px; height: 2px; border-radius: 2px; background: var(--coral); }
.contact5 .lbl { color: rgba(255,255,255,.7); }

/* ===== v6.2 click-to-play video poster (loads Vimeo only when tapped) ===== */
.inner .vface { position: absolute; inset: 0; width: 100%; height: 100%; padding: 0; border: 0; cursor: pointer; background: #10131f; display: block; }
.inner .vface img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .6s var(--ease), filter .3s; }
.inner .vface .play { position: absolute; left: 50%; top: 50%; width: 64px; height: 64px; margin: -32px 0 0 -32px; border-radius: 50%; background: rgba(255,255,255,.92); box-shadow: 0 10px 30px -8px rgba(0,0,0,.45); transition: transform .3s var(--spring); }
.inner .vface .play::after { content: ""; position: absolute; left: 26px; top: 21px; border: 11px solid transparent; border-left: 17px solid var(--ink); border-right: 0; }
.inner .vface:hover .play, .inner .vface:focus-visible .play { transform: scale(1.08); }
.inner .vface:hover img { filter: brightness(.92); }
.inner .vface:focus-visible { outline: 3px solid var(--coral); outline-offset: -3px; }
/* usability page: breathing room between image content and the card edge */
.page-usability .cs-section[id^="testing"] .cs-figure .frame, .page-usability .cs-section[id^="results"] .cs-figure .frame, .page-usability .cs-section[id^="analysis"] .cs-figure .frame,
.page-usability .cs-section[id^="prioritization"] .frame, .page-usability .cs-section[id^="scamper"] .cs-figure .frame { padding: clamp(16px, 3vw, 36px); background: #fffefb; }
@media (max-width: 640px) { .page-usability .cs-section[id^="scamper"] .cs-figure .frame { padding: 12px; } }
.pol figcaption { right: 16px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; letter-spacing: .01em; }

/* ===== v6.3 identity card, fixed top-left on every page ===== */
.me5 { position: fixed; z-index: 80; top: 14px; left: 18px; display: inline-flex; align-items: center; gap: 10px; padding: 5px 18px 5px 5px; border-radius: 999px; background: rgba(255,253,248,.88); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); box-shadow: 0 0 0 1px rgba(31,36,64,.06), 0 8px 22px -12px rgba(31,36,64,.4); color: var(--ink); text-decoration: none; transition: transform .35s var(--spring), box-shadow .3s; }
.me5:hover { transform: translateY(-1px); box-shadow: 0 0 0 1px rgba(31,36,64,.08), 0 14px 28px -14px rgba(31,36,64,.45); }
.me5:focus-visible { outline: 3px solid var(--coral); outline-offset: 3px; }
.me5 img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 2px #fff; flex: 0 0 auto; }
.me5 span { display: flex; flex-direction: column; line-height: 1.2; }
.me5 b { font-size: 15px; font-weight: 600; letter-spacing: -.01em; color: var(--ink); }
.me5 em { font-style: normal; font-size: 13px; color: var(--ink-2); margin-top: 1px; }
@media (max-width: 640px) {
  .me5 { top: 10px; left: 12px; gap: 8px; padding: 4px 14px 4px 4px; }
  .me5 img { width: 34px; height: 34px; }
  .me5 b { font-size: 14px; }
  .me5 em { font-size: 12px; }
}
@media print { .me5 { display: none; } }
