/* ==========================================================================
   Fonts (self-hosted): VC Henrietta Bold for headings, Space Mono for everything else
   ========================================================================== */
@font-face { font-family: "VC Henrietta"; src: url("fonts/VCHenrietta-Bold.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Space Mono"; src: url("fonts/SpaceMono-Regular.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Space Mono"; src: url("fonts/SpaceMono-Bold.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Space Mono"; src: url("fonts/SpaceMono-Italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }

/* ==========================================================================
   Vita Addelia — portfolio
   Palette: plum ink / cream / blush / sun yellow / berry.
   Shared by the homepage and the case study pages.
   ========================================================================== */

:root {
  --ink: #3B1E33;
  --cream: #FBF7F2;
  --beige: #EFDDE6;
  --lbeige: #F7EEF2;
  --sun: #FFE386;
  --berry: #9B3A6E;
  --plum: #5A1D44;
  --leaf: #7FA04A;

  --ink-body: rgba(59, 30, 51, 0.95);     /* body copy: 95% of the ink */
  --ink-soft: rgba(59, 30, 51, 0.78);     /* secondary text on light */
  --cream-soft: rgba(251, 247, 242, 0.86);/* secondary text on dark  */

  --display: "Khand", "Arial Narrow", Impact, sans-serif;
  --hand: "Patrick Hand", "Comic Neue", "Segoe Print", cursive;
  --ui: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  --ease: cubic-bezier(.65, 0, .35, 1);
  --out: cubic-bezier(.2, .8, .2, 1);

  --fh: clamp(460px, 68vh, 700px);        /* height of the footer that is revealed underneath */
  --gutter: max(3vw, 18px);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 90px; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink-body);
  font-family: var(--ui);
  font-size: clamp(16px, 1.08vw, 19px);
  line-height: 1.55;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
p, h1, h2, h3, h4, ul, ol, figure, blockquote { margin: 0; }
ul { padding: 0; list-style: none; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--berry); outline-offset: 3px; border-radius: 6px; }
[data-tone="dark"] :focus-visible, .on-dark :focus-visible { outline-color: var(--sun); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: fixed; left: 12px; top: -60px; z-index: 2000; background: var(--sun); color: var(--ink); padding: .6em 1em; border-radius: 10px; font-weight: 600; transition: top .2s; }
.skip:focus { top: 12px; }
.paddx { padding-left: var(--gutter); padding-right: var(--gutter); }

/* smooth-scroll library hooks */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }

/* ---------- type ---------- */
.d1, .d2, .d3 { font-family: var(--display); font-weight: 600; text-transform: uppercase; letter-spacing: -.03em; }
.d1 { font-size: clamp(54px, 9vw, 180px); line-height: .86; }
.d2 { font-size: clamp(44px, 7vw, 140px); line-height: .9; }
.d3 { font-size: clamp(26px, 2.7vw, 52px); line-height: .98; letter-spacing: -.015em; }
.lead { font-size: clamp(17px, 1.5vw, 28px); line-height: 1.3; }
.hand { font-family: var(--hand); }
.eyebrow { font-family: var(--hand); font-size: clamp(18px, 1.35vw, 24px); color: var(--berry); line-height: 1.1; }
[data-tone="dark"] .eyebrow { color: var(--sun); }
.doodle { display: block; width: 100%; height: auto; overflow: visible; }

/* ---------- reveals (only when JS is present) ---------- */
.js [data-split] .w { display: inline-block; overflow: hidden; vertical-align: top; padding: .04em .02em .1em; margin: -.04em -.02em -.1em; }
.js [data-split] .w > span { display: inline-block; transform: translateY(112%); transition: transform 1s var(--out); transition-delay: calc(var(--i, 0) * 38ms); }
.js [data-split].in .w > span { transform: none; }
.js [data-rise] { opacity: 0; transform: translateY(26px); transition: opacity .9s var(--out), transform .9s var(--out); transition-delay: var(--d, 0ms); }
.js [data-rise].in { opacity: 1; transform: none; }

/* ---------- buttons ---------- */
.rbtn {
  position: relative; display: inline-flex; align-items: center; gap: .5em; cursor: pointer;
  border: 2px solid var(--ink); background: var(--sun); color: var(--ink); border-radius: 14px;
  padding: .5em 1.1em .6em; font-family: var(--hand); font-size: clamp(18px, 1.4vw, 24px); line-height: 1.2;
  white-space: nowrap; overflow: hidden; isolation: isolate; transition: color .4s var(--ease);
}
.rbtn::before { content: ""; position: absolute; inset: 0; background: var(--ink); transform: translateY(101%); transition: transform .55s var(--ease); z-index: -1; }
.rbtn:hover::before, .rbtn:focus-visible::before { transform: none; }
.rbtn:hover, .rbtn:focus-visible { color: var(--sun); }
.rbtn .word { display: inline-flex; }
.rbtn .ch { position: relative; display: inline-block; height: 1.2em; overflow: hidden; vertical-align: bottom; }
.rbtn .ch span { display: block; transition: transform .5s var(--ease); transition-delay: calc(var(--i) * 18ms); }
.rbtn .ch span + span { position: absolute; top: 100%; left: 0; }
.rbtn:hover .ch span, .rbtn:focus-visible .ch span { transform: translateY(-100%); }
.rbtn.ghost { background: transparent; }
.rbtn.ghost:hover, .rbtn.ghost:focus-visible { color: var(--sun); }
.rbtn.light { border-color: var(--sun); }
.rbtn.light::before { background: var(--cream); }
.rbtn.light:hover, .rbtn.light:focus-visible { color: var(--ink); }
.rbtn.ghost.light { background: transparent; color: var(--cream); border-color: var(--cream); }
.rbtn.ghost.light::before { background: var(--sun); }
.rbtn.ghost.light:hover, .rbtn.ghost.light:focus-visible { color: var(--ink); }

.cbtn {
  position: relative; display: grid; place-items: center; width: clamp(52px, 5vw, 88px); aspect-ratio: 1; border-radius: 50%;
  border: 2px solid var(--ink); background: var(--ink); color: var(--cream); cursor: pointer; overflow: hidden; flex: none; padding: 0;
}
.cbtn .f { position: absolute; left: var(--x, 50%); top: var(--y, 50%); width: 250%; aspect-ratio: 1; border-radius: 50%; background: var(--sun); transform: translate(-50%, -50%) scale(0); transition: transform .5s ease; pointer-events: none; }
.cbtn:hover .f, .cbtn:focus-visible .f { transform: translate(-50%, -50%) scale(1); }
.cbtn svg { position: relative; width: 34%; height: 34%; transition: color .4s; }
.cbtn:hover svg, .cbtn:focus-visible svg { color: var(--ink); }

/* "read case study" pill that follows the cursor over a project image */
.pill {
  position: absolute; left: 50%; top: 50%; z-index: 3; transform: translate(-50%, -50%) scale(.6); opacity: 0; pointer-events: none;
  display: inline-flex; align-items: center; gap: .5em; background: var(--sun); color: var(--ink); border-radius: 999px;
  padding: .7em 1.2em; font-family: var(--hand); font-size: clamp(17px, 1.3vw, 22px); white-space: nowrap; box-shadow: 0 10px 24px rgba(59,30,51,.28);
  transition: opacity .2s ease, transform .25s var(--out), left .12s ease-out, top .12s ease-out;
}
.pill svg { width: 1.1em; height: 1.1em; flex: none; }
.has-pill:hover .pill { opacity: 1; transform: translate(-50%, -50%) scale(1); }

/* ---------- loader ---------- */
#loader { display: none; position: fixed; inset: 0; z-index: 1000; place-items: center; overflow: hidden; }
.loading #loader { display: grid; }
.loading { overflow: hidden; }
.lp { position: absolute; top: -30vh; height: 160vh; width: 58%; transition: transform .7s var(--ease); will-change: transform; }
.lp.l { left: 0; transform-origin: right center; }
.lp.r { right: 0; transform-origin: left center; }
.lp.b { background: var(--beige); z-index: 1; }
.lp.k { background: var(--ink); z-index: 2; }
#loader.out .lp { transform: scaleX(0); }
#loader.out .lp.b { transition-delay: .12s; }
.lmark { position: relative; z-index: 10; font-family: var(--display); font-weight: 700; font-size: clamp(90px, 17vw, 280px); line-height: .8; letter-spacing: -.04em; text-transform: uppercase; color: var(--sun); clip-path: inset(100% 0 0 0); transition: clip-path .9s var(--ease); }
.lmark.in { clip-path: inset(0 0 0 0); }
.lcount { position: fixed; left: var(--gutter); bottom: calc(26px + env(safe-area-inset-bottom, 0px)); z-index: 10; display: flex; align-items: flex-end; gap: 2px; color: var(--beige); font-family: var(--display); font-weight: 600; font-size: clamp(48px, 6vw, 84px); line-height: 1; transition: opacity .3s; }
.odo { display: inline-flex; }
.odo .col { display: inline-block; height: 1em; width: .52em; overflow: hidden; }
.odo .col span { display: block; transition: transform .45s var(--ease); }
.odo .col i { display: flex; height: 1em; align-items: center; justify-content: center; font-style: normal; font-variant-numeric: tabular-nums; }
.lcount .pc { font-size: .36em; opacity: .7; padding-bottom: .25em; }
#loader.out .lcount, #loader.out .lmark { opacity: 0; transition: opacity .3s; }

/* ---------- nav ---------- */
.nav { position: fixed; top: 0; left: 0; right: 0; z-index: 900; display: flex; justify-content: space-between; align-items: center; padding-top: calc(max(1.4vw, 14px) + env(safe-area-inset-top, 0px)); padding-bottom: max(1.4vw, 14px); pointer-events: none; }
.nav > * { pointer-events: auto; }
.nav::before, .nav::after { content: ""; position: absolute; left: 0; right: 0; top: 0; bottom: -28px; z-index: -1; pointer-events: none; transition: opacity .4s; }
.nav::before { background: linear-gradient(to bottom, rgba(251, 247, 242, .94) 45%, rgba(251, 247, 242, 0)); }
.nav::after { background: linear-gradient(to bottom, rgba(59, 30, 51, .94) 45%, rgba(59, 30, 51, 0)); opacity: 0; }
.nav.dark::after { opacity: 1; }
.nav.dark::before { opacity: 0; }
.menu-on .nav::before, .menu-on .nav::after { opacity: 0; }
.logo { display: inline-flex; align-items: center; gap: .45em; font-family: var(--display); font-weight: 700; font-size: clamp(22px, 2vw, 34px); text-transform: uppercase; letter-spacing: -.02em; line-height: 1; color: var(--ink); transition: color .5s; }
.logo svg { width: .95em; height: .95em; color: var(--berry); transition: color .5s; }
.navr { display: flex; gap: max(.5vw, 8px); align-items: center; }
.bk, .mbtn {
  position: relative; height: clamp(40px, 2.8vw, 52px); border-radius: 12px; background: var(--ink); color: var(--cream); border: 0; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; gap: .5em; padding: 0 max(1.3vw, 16px); overflow: hidden;
  font-family: var(--hand); font-size: clamp(19px, 1.5vw, 28px); line-height: 1; transition: background .5s, color .5s, transform .2s;
}
.bk svg { width: 1em; height: 1em; color: var(--sun); transition: color .5s; }
.bk:active, .mbtn:active { transform: scale(.94); }
.mbtn .g { display: grid; }
.mbtn .g span { grid-area: 1 / 1; transition: transform .4s var(--ease), opacity .4s; }
.mbtn .g span + span { transform: translateY(130%); opacity: 0; }
.menu-on .mbtn .g span:first-child { transform: translateY(-130%); opacity: 0; }
.menu-on .mbtn .g span + span { transform: none; opacity: 1; }
.nav.dark .logo, .menu-on .nav .logo { color: var(--cream); }
.nav.dark .logo svg, .menu-on .nav .logo svg { color: var(--sun); }
.nav.dark .bk, .nav.dark .mbtn, .menu-on .bk, .menu-on .mbtn { background: var(--beige); color: var(--ink); }
.nav.dark .bk svg, .menu-on .bk svg { color: var(--berry); }

/* ---------- full-screen menu ---------- */
.menu {
  position: fixed; inset: 0; z-index: 800; background: var(--ink); color: var(--lbeige); visibility: hidden;
  clip-path: ellipse(75% 0% at 50% -5%); transition: clip-path .9s var(--ease), visibility 0s .9s;
  display: flex; flex-direction: column; align-items: center; justify-content: space-between; padding-block: max(7vw, 104px) max(3vw, 28px);
}
.menu-on .menu { clip-path: ellipse(150% 150% at 50% -5%); visibility: visible; transition: clip-path .9s var(--ease), visibility 0s; }
.menu .glow { position: absolute; left: 50%; top: -15vw; width: 60vw; aspect-ratio: 1; transform: translateX(-50%); border-radius: 50%; opacity: .3; filter: blur(8vw); background: radial-gradient(circle, var(--berry), transparent 70%); pointer-events: none; }
.menu nav { position: relative; flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.menu nav a { display: block; overflow: hidden; font-family: var(--display); font-weight: 600; font-size: min(11vw, 13vh); line-height: 1; text-transform: uppercase; letter-spacing: -.03em; padding: .04em .5vw .14em; margin-block: -.06em; }
.menu nav a .in { display: block; position: relative; transform: translateY(112%); transition: transform .8s var(--out); }
.menu-on .menu nav a .in { transform: none; transition-delay: calc(.25s + var(--i) * 60ms); }
.menu nav a .fill { position: absolute; inset: 0; color: var(--sun); clip-path: inset(0 100% 0 0); transition: clip-path .5s var(--ease); }
.menu nav a:hover .fill, .menu nav a:focus-visible .fill { clip-path: inset(0 0 0 0); }
.hello { position: relative; display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; }
.hello .row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; justify-content: center; }
.hello strong { font-weight: 500; font-size: clamp(16px, 1.4vw, 26px); }
.copy { position: relative; width: 38px; height: 38px; border-radius: 9px; border: 1.5px solid var(--lbeige); background: transparent; color: var(--lbeige); cursor: pointer; display: grid; place-items: center; padding: 0; }
.copy svg { width: 17px; height: 17px; }
.copy:hover { background: var(--lbeige); color: var(--ink); }
.tip { position: absolute; bottom: calc(100% + 8px); left: 50%; transform: translate(-50%, 6px); background: var(--sun); color: var(--ink); border-radius: 8px; padding: 3px 10px; font-family: var(--hand); font-size: 17px; white-space: nowrap; opacity: 0; transition: opacity .3s, transform .3s; pointer-events: none; }
.tip.on { opacity: 1; transform: translate(-50%, 0); }

/* ---------- page stack: every section sits above the fixed footer ---------- */
main { position: relative; z-index: 1; background: var(--cream); margin-bottom: var(--fh); border-radius: 0 0 clamp(20px, 3vw, 48px) clamp(20px, 3vw, 48px); }
section { position: relative; }

/* ---------- hero ---------- */
#hero { min-height: 100vh; min-height: 100svh; background: var(--cream); overflow: hidden; display: flex; flex-direction: column; justify-content: space-between; gap: 40px; padding: max(8vw, 118px) var(--gutter) max(4vw, 36px); }
#hero h1 { position: relative; z-index: 2; font-size: clamp(44px, 7.1vw, 136px); max-width: min(70vw, 1500px); }
.hero-deco { position: absolute; top: 3vw; right: -5vw; width: 34vw; aspect-ratio: 1; color: var(--beige); transform: rotate(-12deg); pointer-events: none; }
.hero-bottom { position: relative; z-index: 2; display: flex; justify-content: space-between; align-items: flex-end; gap: 32px 48px; flex-wrap: wrap; }
.hero-list { display: flex; align-items: flex-end; gap: 14px; }
.hero-list .sp { width: clamp(42px, 5vw, 80px); color: var(--berry); transform: rotate(-6deg); flex: none; }
.hero-list ul { list-style: disc; padding-left: 1.1em; display: grid; gap: .25em; font-size: clamp(16px, 1.35vw, 26px); line-height: 1.25; }
.hero-cta { display: grid; gap: 16px; justify-items: start; width: min(30vw, 460px); min-width: 260px; }
.hero-cta p { font-size: clamp(16px, 1.25vw, 22px); line-height: 1.35; }
.hero-cta .row { display: flex; gap: 12px; flex-wrap: wrap; }

/* ---------- impact: stat circles that rise as you scroll ---------- */
#impact { background: var(--cream); padding: max(8vw, 72px) var(--gutter) max(8vw, 72px); }
.imp-head { display: grid; grid-template-columns: 1fr minmax(240px, 26vw); gap: 24px 6vw; align-items: end; }
.imp-head .wave { width: clamp(120px, 24vw, 420px); color: var(--berry); margin-top: 1.2vw; }
.imp-head .wave path { stroke-dasharray: 900; stroke-dashoffset: 900; transition: stroke-dashoffset 2s var(--out); }
.imp-head.in .wave path { stroke-dashoffset: 0; }
.imp-head p { font-size: clamp(16px, 1.25vw, 22px); line-height: 1.4; }
.imp-head small { display: block; margin-top: .8em; font-size: .78em; color: var(--ink-soft); line-height: 1.4; }
.circs { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; margin-top: 40px; }
.circ { position: relative; aspect-ratio: 1; border-radius: 50%; border: 3px solid var(--ink); background: var(--beige); color: var(--ink); display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 12%; will-change: transform; }
.circ.alt { border-color: var(--beige); background: var(--berry); color: var(--cream); }
.circ .n { font-family: var(--display); font-weight: 600; font-size: clamp(44px, 12vw, 80px); line-height: .9; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.circ p { font-weight: 500; font-size: clamp(12px, 3vw, 15px); line-height: 1.2; margin-top: .5em; }
@media (min-width: 900px) {
  #impact.is-pinned { height: 300vh; padding: 0; }
  #impact.is-pinned .imp-pin { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; padding: max(8vw, 110px) var(--gutter) 0; }
  #impact.is-pinned .circs { display: block; margin: 0; }
  #impact.is-pinned .circ { position: absolute; width: clamp(190px, 18vw, 330px); aspect-ratio: 1; padding: 2%; }
  #impact.is-pinned .circ .n { font-size: clamp(54px, 5vw, 96px); }
  #impact.is-pinned .circ p { font-size: clamp(13px, 1.1vw, 19px); padding: 0 1.4em; }
  #impact.is-pinned .c1 { left: 6vw;  top: 46vh; }
  #impact.is-pinned .c2 { left: 28vw; top: 58vh; }
  #impact.is-pinned .c3 { left: 51vw; top: 44vh; }
  #impact.is-pinned .c4 { right: 5vw; top: 57vh; }
}
@media (min-width: 900px) {
  #impact:not(.is-pinned) .circs { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 899px) { .imp-head { grid-template-columns: 1fr; } }

/* ---------- 3D laptop sequence ---------- */
#sequence { background: var(--cream); }
#sequence.is3d { height: 380vh; }
.seq-pin { position: relative; min-height: 100vh; min-height: 100svh; overflow: hidden; padding: max(8vw, 112px) var(--gutter) max(3vw, 28px); display: flex; flex-direction: column; justify-content: space-between; gap: 24px; }
#sequence.is3d .seq-pin { position: sticky; top: 0; height: 100vh; height: 100svh; }
#three { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
#three canvas { display: block; width: 100% !important; height: 100% !important; }
.seq-head, .seq-foot { position: relative; z-index: 3; }
.seq-head h2 { white-space: nowrap; }
.seq-head p { margin-top: 1.2vw; width: min(30vw, 440px); min-width: 240px; font-size: clamp(16px, 1.2vw, 21px); line-height: 1.35; }
.seq-foot { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; }
.meter { width: min(24vw, 400px); min-width: 220px; }
.meter .row { display: flex; justify-content: space-between; align-items: flex-end; font-family: var(--display); font-weight: 700; text-transform: uppercase; line-height: 1; font-size: clamp(20px, 1.9vw, 34px); margin-bottom: .6vw; }
.meter .row span:last-child { font-variant-numeric: tabular-nums; }
.meter .bar { height: max(.55vw, 7px); border-radius: 999px; background: rgba(59, 30, 51, .14); overflow: hidden; }
.meter .bar i { display: block; height: 100%; width: 0; background: var(--ink); border-radius: 999px; }
.seq-now { margin-right: 58px; display: grid; gap: 10px; justify-items: end; text-align: right; width: min(26vw, 420px); min-width: 240px; }
.seq-now .tag { font-family: var(--hand); font-size: clamp(17px, 1.3vw, 23px); color: var(--berry); }
.seq-now h3 { transition: opacity .3s; }
.seq-fallback { display: none; }
#sequence:not(.is3d) .seq-fallback { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; position: relative; z-index: 2; }
#sequence:not(.is3d) .seq-meter-wrap { display: none; }
.fb-card { display: block; border-radius: 20px; overflow: hidden; border: 2px solid var(--ink); background: var(--beige); }
.fb-card img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.fb-card span { display: block; padding: .7em 1em; font-family: var(--hand); font-size: 20px; }

/* ---------- break + scalloped bands ---------- */
#break { background: var(--cream); display: grid; place-items: center; min-height: 80vh; padding: 10vw var(--gutter) 14vw; text-align: center; }
.scallop { --above: var(--cream); --below: var(--ink); display: flex; justify-content: center; align-items: flex-start; overflow: hidden; width: 100%; height: calc(100vw / 11); background: var(--above); position: relative; z-index: 9; margin-bottom: -1px; }
.scallop i { flex: none; width: calc(100vw / 5.5); aspect-ratio: 1; border-radius: 50%; background: var(--below); }
.scallop.to-cream { --above: var(--ink); --below: var(--cream); }
.scallop.to-plum { --above: var(--cream); --below: var(--plum); }
@media (max-width: 700px) {
  .scallop { height: calc(100vw / 7); }
  .scallop i { width: calc(100vw / 3.5); }
}

/* ---------- dark intro with rotating word ---------- */
.dark-band { background: var(--ink); color: var(--cream); }
#intro { min-height: 100vh; min-height: 100svh; display: grid; place-items: center; padding: 10vw var(--gutter); overflow: hidden; }
#intro h2 { position: relative; z-index: 2; width: min(92vw, 1700px); text-align: center; }
.rot { position: relative; display: inline-block; overflow: hidden; vertical-align: bottom; height: .9em; line-height: .9em; color: var(--sun); transition: width .5s var(--ease); }
.rot .g { display: grid; transition: transform .7s var(--ease); }
.rot .g span { height: .9em; line-height: .9em; white-space: nowrap; text-align: left; }
.idoo { position: absolute; pointer-events: none; z-index: 0; }
.idoo.a { width: 10vw; top: 10vw; left: 5vw; color: var(--berry); }
.idoo.b { width: 16vw; bottom: 8vw; left: 6vw; color: var(--lbeige); opacity: .16; }
.idoo.c { width: 14vw; top: 9vw; right: 5vw; color: var(--sun); opacity: .9; }

/* ---------- work ---------- */
#work { padding: max(6vw, 56px) var(--gutter) max(9vw, 80px); }
.work-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: max(4vw, 32px); flex-wrap: wrap; }
.work-head p { max-width: 30ch; color: var(--cream-soft); font-size: clamp(16px, 1.25vw, 22px); line-height: 1.35; }
.proj-grid { display: grid; grid-template-columns: 1fr 1fr; gap: max(3vw, 28px); align-items: start; }
.proj:nth-child(2) { margin-top: max(8vw, 0px); }
.proj-media { position: relative; display: block; aspect-ratio: 3 / 2; overflow: hidden; border-radius: clamp(16px, 1.8vw, 28px); background: var(--beige); isolation: isolate; cursor: pointer; }
.proj-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--out); }
.proj-media::after { content: ""; position: absolute; inset: 0; background: rgba(59, 30, 51, .16); opacity: 0; transition: opacity .3s; z-index: 1; }
.proj-media:hover::after { opacity: 1; }
.proj-media:hover img { transform: scale(1.03); }
.proj-meta { display: grid; gap: 10px; padding-top: 18px; justify-items: start; }
.proj-meta .tag { font-family: var(--hand); font-size: clamp(17px, 1.3vw, 23px); color: var(--sun); }
.proj-meta p { color: var(--cream-soft); max-width: 46ch; font-size: clamp(15px, 1.1vw, 19px); }
.proj-meta .rbtn { margin-top: 6px; }

/* ---------- experience carousel ---------- */
#experience { background: var(--cream); padding: max(5vw, 48px) 0 max(9vw, 80px); overflow: hidden; }
.exp-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: max(3vw, 28px); flex-wrap: wrap; }
.exp-ctrl { display: flex; align-items: center; gap: 12px; }
.exp-ctrl .hint { font-family: var(--hand); font-size: clamp(17px, 1.3vw, 23px); color: var(--ink-soft); margin-right: 6px; }
.exp-ctrl .cbtn.prev svg { transform: rotate(0deg); }
.exp-ctrl .cbtn.next svg { transform: rotate(180deg); }
.exp-wrap { cursor: grab; touch-action: pan-y; user-select: none; -webkit-user-select: none; }
.exp-wrap.drag { cursor: grabbing; }
.exp-track { display: flex; gap: clamp(14px, 1.6vw, 28px); will-change: transform; padding-left: var(--gutter); }
.xcard { flex: none; width: clamp(270px, 29vw, 520px); background: var(--lbeige); border: 2px solid var(--ink); border-radius: clamp(18px, 1.8vw, 30px); padding: clamp(20px, 2vw, 34px); display: flex; flex-direction: column; gap: 12px; min-height: clamp(290px, 24vw, 420px); }
.xcard .yr { font-family: var(--hand); font-size: clamp(18px, 1.4vw, 25px); color: var(--berry); }
.xcard h3 { font-family: var(--display); font-weight: 600; text-transform: uppercase; letter-spacing: -.02em; font-size: clamp(30px, 3vw, 56px); line-height: .92; }
.xcard .role { font-weight: 600; font-size: clamp(15px, 1.1vw, 19px); }
.xcard p { margin-top: auto; font-size: clamp(14px, 1.05vw, 18px); line-height: 1.4; color: var(--ink-soft); }
.xcard:nth-child(even) { background: var(--beige); }

/* ---------- contact ---------- */
#contact { background: var(--plum); color: var(--cream); padding: max(8vw, 72px) var(--gutter) max(8vw, 72px); border-radius: 0 0 clamp(20px, 3vw, 48px) clamp(20px, 3vw, 48px); overflow: hidden; }
#contact h2 { color: var(--sun); position: relative; z-index: 2; }
#contact p { position: relative; z-index: 2; max-width: 34ch; margin-top: 2vw; font-size: clamp(17px, 1.5vw, 28px); line-height: 1.3; color: var(--cream-soft); }
.contact-row { position: relative; z-index: 2; display: flex; gap: 14px; flex-wrap: wrap; margin-top: max(3vw, 28px); }
.cdoo { position: absolute; pointer-events: none; color: var(--berry); z-index: 0; }
.cdoo.a { width: 22vw; right: 4vw; top: 4vw; opacity: .8; }
.cdoo.b { width: 9vw; right: 24vw; bottom: 5vw; color: var(--sun); opacity: .9; }

/* ---------- footer revealed underneath ---------- */
.site-footer { position: fixed; left: 0; right: 0; bottom: 0; z-index: 0; height: var(--fh); background: var(--ink); color: var(--cream); display: flex; flex-direction: column; justify-content: space-between; padding: max(3.5vw, 28px) var(--gutter) max(1.8vw, 18px); overflow: hidden; }
.foot-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 24px; flex-wrap: wrap; }
.foot-links { display: grid; gap: 2px; }
.foot-links a { font-family: var(--display); font-weight: 600; text-transform: uppercase; font-size: clamp(30px, 3.4vw, 64px); line-height: 1; letter-spacing: -.02em; transition: color .25s; }
.foot-links a:hover, .foot-links a:focus-visible { color: var(--sun); }
.foot-social { display: grid; gap: 10px; justify-items: start; text-align: left; }
.foot-social a { font-family: var(--hand); font-size: clamp(18px, 1.5vw, 26px); border-bottom: 2px solid var(--berry); transition: color .25s, border-color .25s; }
.foot-social a:hover, .foot-social a:focus-visible { color: var(--sun); border-color: var(--sun); }
.foot-word { font-family: var(--display); font-weight: 700; text-transform: uppercase; letter-spacing: -.045em; line-height: .78; white-space: nowrap; font-size: clamp(60px, 18.6vw, 400px); color: var(--lbeige); margin-left: -.03em; }
.foot-bottom { padding-right: 70px; display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; font-family: var(--hand); font-size: clamp(16px, 1.25vw, 21px); color: var(--cream-soft); }

/* ---------- cursor trail ---------- */
#trail { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 950; }

/* ---------- VitaLLM chat widget ---------- */
.vlm-launcher { position: fixed; right: max(1.4vw, 16px); bottom: max(1.4vw, 16px); width: 56px; height: 56px; border-radius: 50%; border: 2px solid var(--ink); background: var(--sun); color: var(--ink); font-size: 1.4rem; cursor: pointer; display: flex; align-items: center; justify-content: center; box-shadow: 0 6px 18px rgba(59,30,51,.22); z-index: 960; transition: opacity .15s ease, transform .15s ease; padding: 0; }
.vlm-launcher:hover { transform: scale(1.07) rotate(8deg); }
.vlm-launcher.hidden { opacity: 0; pointer-events: none; transform: scale(.8); }
.vlm-panel { position: fixed; right: max(1.4vw, 16px); bottom: max(1.4vw, 16px); width: min(390px, calc(100vw - 32px)); height: min(580px, calc(100vh - 32px)); background: var(--cream); color: var(--ink-body); border: 2px solid var(--ink); border-radius: 22px; box-shadow: 0 18px 50px rgba(59,30,51,.3); display: flex; flex-direction: column; overflow: hidden; z-index: 1100; opacity: 0; transform: translateY(14px) scale(.97); pointer-events: none; visibility: hidden; transition: opacity .2s ease, transform .2s ease, visibility 0s .2s; }
.vlm-panel.open { opacity: 1; transform: none; pointer-events: auto; visibility: visible; transition: opacity .2s ease, transform .2s ease, visibility 0s; }
.vlm-header { display: flex; justify-content: space-between; align-items: center; padding: .85rem 1.1rem; border-bottom: 2px solid var(--ink); background: var(--sun); color: var(--ink); font-family: var(--display); font-weight: 700; font-size: 1.25rem; text-transform: uppercase; letter-spacing: .01em; }
.vlm-title { display: flex; align-items: center; gap: .45rem; }
.vlm-info { font-family: var(--ui); font-size: .95rem; cursor: help; font-weight: 400; }
.vlm-header-actions { display: flex; gap: .4rem; }
.vlm-header-actions button { background: none; border: none; cursor: pointer; font-size: 1.25rem; line-height: 1; padding: .2rem .45rem; border-radius: 8px; color: var(--ink); }
.vlm-header-actions button:hover { background: rgba(59,30,51,.12); }
.vlm-body { flex: 1; overflow-y: auto; padding: 1.2rem 1.1rem; display: flex; flex-direction: column; gap: .9rem; overscroll-behavior: contain; }
.vlm-greeting { font-family: var(--display); font-weight: 600; text-transform: uppercase; font-size: 1.9rem; line-height: .95; letter-spacing: -.01em; color: var(--ink); margin-bottom: .2rem; }
.vlm-suggestions { display: flex; flex-direction: column; gap: .15rem; }
.vlm-suggestion { text-align: left; background: none; border: none; padding: .45rem 0; font-family: var(--ui); font-size: .95rem; color: var(--ink-soft); cursor: pointer; }
.vlm-suggestion:hover { color: var(--berry); }
.vlm-msg { max-width: 86%; padding: .65rem .9rem; border-radius: 16px; font-size: .92rem; line-height: 1.5; white-space: pre-line; }
.vlm-msg--user { align-self: flex-end; background: var(--berry); color: #fff; border-bottom-right-radius: 4px; }
.vlm-msg--bot { align-self: flex-start; background: var(--beige); color: var(--ink-body); border-bottom-left-radius: 4px; }
.vlm-input-row { display: flex; align-items: center; gap: .5rem; padding: .7rem; border-top: 2px solid var(--ink); background: var(--lbeige); }
.vlm-input-row input { flex: 1; border: none; background: none; font-family: var(--ui); font-size: .95rem; padding: .45rem .3rem; outline: none; color: var(--ink); }
.vlm-input-row button { width: 36px; height: 36px; border-radius: 50%; border: 2px solid var(--ink); background: var(--sun); color: var(--ink); cursor: pointer; font-size: 1rem; flex-shrink: 0; }
.vlm-input-row button:hover { background: var(--ink); color: var(--sun); }

/* ---------- responsive ---------- */
@media (max-width: 899px) {
  :root { --fh: clamp(520px, 78vh, 700px); }
  .proj-grid { grid-template-columns: 1fr; }
  .proj:nth-child(2) { margin-top: 0; }
  .hero-cta { width: 100%; min-width: 0; }
  .seq-head h2 { white-space: normal; }
  .seq-head p, .seq-now { width: 100%; }
  .seq-now { justify-items: start; text-align: left; }
  .hero-deco { width: 60vw; right: -16vw; }
  .foot-word { font-size: 19.5vw; }
  .idoo.a { width: 18vw; top: 8vw; } .idoo.c { width: 22vw; } .idoo.b { width: 24vw; }
  .cdoo.a { width: 38vw; } .cdoo.b { width: 16vw; right: 8vw; bottom: 4vw; }
  #sequence:not(.is3d) .seq-fallback { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .bk .bk-label { display: none; }
  .bk { padding: 0 14px; }
  .vlm-panel { right: 8px; left: 8px; bottom: 8px; width: auto; height: min(78vh, 640px); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .001ms !important; animation-duration: .001ms !important; scroll-behavior: auto !important; }
  .js [data-split] .w > span, .js [data-rise] { transform: none; opacity: 1; }
}

/* ---------- additions: highlight word, typographic project card, fallback placeholders ---------- */
.hl { color: var(--berry); }
.proj-media .tcard { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .5rem; text-align: center; }
.tcard .big { font-family: var(--display); font-weight: 700; font-size: clamp(120px, 15vw, 250px); line-height: .8; letter-spacing: -.05em; }
.tcard .small { font-family: var(--hand); font-size: clamp(18px, 1.6vw, 26px); }
.fb-card .fb-ph { display: grid; place-items: center; aspect-ratio: 16 / 10; padding: 1rem; font-family: var(--display); font-weight: 600; font-size: clamp(26px, 3vw, 42px); text-transform: uppercase; text-align: center; line-height: .95; }
.cbtn.up svg { transform: rotate(90deg); }

/* ---------- small fixes from testing ---------- */
.site-footer .cbtn { background: transparent; border-color: var(--cream); color: var(--cream); }
@media (max-width: 899px) { .cdoo.b { display: none; } }

/* ==========================================================================
   One 3D laptop rides hero -> stats -> selected work -> "keep scrolling"
   (same structure as the reference: a sticky layer inside #seqwrap)
   ========================================================================== */
.logo img { display: block; height: clamp(50px, 4.6vw, 76px); width: auto; }
#seqwrap { position: relative; z-index: 1; }
.pin3d { position: sticky; top: 0; height: 100vh; height: 100svh; margin-bottom: -100vh; margin-bottom: -100svh; z-index: 5; pointer-events: none; }
.pin3d #three { position: absolute; inset: 0; z-index: auto; }
#three .fallback { position: absolute; left: 50%; top: 50%; width: min(36vw, 360px); transform: translate(-50%, -50%); }
#three.ready .fallback { display: none; }
#seqwrap ~ .scallop, #intro { position: relative; z-index: 2; }

/* hero: headline on the left, laptop on the right */
#hero { min-height: 100vh; min-height: 100svh; }
@media (min-width: 768px) {
  #hero h1 { font-size: clamp(44px, 6vw, 120px); max-width: 56vw; }
  .hero-cta { width: min(25vw, 440px); }
}

/* stats: four circles flank a centre lane the laptop spins through */
#impact.is-pinned { height: 180vh; padding: 0; }
#impact.is-pinned .imp-pin { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; padding: max(8vw, 110px) var(--gutter) 0; }
#impact.is-pinned .circs { display: block; margin: 0; }
#impact.is-pinned .circ { position: absolute; width: clamp(170px, 15vw, 280px); aspect-ratio: 1; padding: 2%; }
#impact.is-pinned .circ .n { font-size: clamp(44px, 4.2vw, 84px); }
#impact.is-pinned .circ p { font-size: clamp(12px, 1vw, 17px); padding: 0 1.2em; }
#impact.is-pinned .c1 { left: 5vw;  right: auto; top: 40vh; }
#impact.is-pinned .c2 { left: 21vw; right: auto; top: 62vh; }
#impact.is-pinned .c3 { right: 21vw; left: auto; top: 40vh; }
#impact.is-pinned .c4 { right: 5vw;  left: auto; top: 62vh; }

/* selected work: title top-left, lid meter bottom-left, link bottom-right */
#sequence { height: auto; }
#sequence.is3d { height: 190vh; }
#sequence.is3d .seq-pin { position: sticky; top: 0; height: 100vh; height: 100svh; display: block; }
.seq-head h2 { white-space: nowrap; }
#sequence.is3d .meter { position: absolute; left: var(--gutter); bottom: max(3vw, 24px); }
.seq-side { display: grid; gap: 12px; justify-items: end; text-align: right; }
.seq-side p { font-size: clamp(16px, 1.2vw, 21px); line-height: 1.35; }
#sequence.is3d .seq-side { position: absolute; right: calc(var(--gutter) + 58px); bottom: max(3vw, 24px); width: min(26vw, 420px); }
#sequence:not(.is3d) .seq-meter-wrap { display: none; }
#sequence:not(.is3d) ~ * .pin3d, #seqwrap:has(#sequence:not(.is3d)) .pin3d { display: none; }

#break { min-height: 70vh; min-height: 70svh; padding: 0 var(--gutter); }

@media (max-width: 767px) {
  #impact.is-pinned .imp-pin { padding-top: 96px; }
  #impact .imp-head small { display: none; }
  #impact.is-pinned .circ { width: 40vw; padding: 3%; }
  #impact.is-pinned .circ .n { font-size: clamp(30px, 9vw, 44px); }
  #impact.is-pinned .circ p { font-size: 11px; padding: 0 .9em; }
  #impact.is-pinned .c1 { left: 5vw; top: 41vh; }
  #impact.is-pinned .c3 { right: 5vw; top: 41vh; }
  #impact.is-pinned .c2 { left: 5vw; top: 76vh; }
  #impact.is-pinned .c4 { right: 5vw; top: 76vh; }
  .seq-head h2 { white-space: normal; }
  #sequence.is3d .seq-side { left: var(--gutter); right: auto; width: auto; justify-items: start; text-align: left; bottom: calc(max(3vw, 24px) + 70px); }
  #sequence.is3d .seq-side p { display: none; }
  #sequence.is3d .meter { width: calc(100vw - 2 * var(--gutter) - 70px); min-width: 0; }
}

/* logo: plum on light sections, cream on the dark plum sections and inside the open menu */
.logo { position: relative; }
.logo img { transition: opacity .4s; }
.logo .on-dark { position: absolute; left: 0; top: 0; opacity: 0; }
.nav.dark .logo .on-light, .menu-on .nav .logo .on-light { opacity: 0; }
.nav.dark .logo .on-dark, .menu-on .nav .logo .on-dark { opacity: 1; }
/* the bigger open laptop reaches the bottom corners: keep just the button there */
#sequence.is3d .seq-side p { display: none; }

/* ==========================================================================
   Smoother hovers: one soft ease-out curve, slightly longer durations
   ========================================================================== */
:root { --soft: cubic-bezier(.22, 1, .36, 1); }

/* pill: position + scale are eased in JS; CSS only fades it */
.pill.follow { left: 0; top: 0; transform: translate(-50%, -50%) scale(0); transition: opacity .35s var(--soft); will-change: transform, opacity; }

/* project image: gentle, longer zoom and a soft tint */
.proj-media img { transition: transform 1.2s var(--soft); will-change: transform; }
.proj-media:hover img { transform: scale(1.05); }
.proj-media::after { transition: opacity .6s var(--soft); }

/* rolling-letter buttons */
.rbtn { transition: color .5s var(--soft), border-color .5s var(--soft); }
.rbtn::before { transition: transform .7s var(--soft); }
.rbtn .ch span { transition: transform .65s var(--soft); transition-delay: calc(var(--i) * 22ms); }

/* circle buttons and menu links */
.cbtn .f { transition: transform .7s var(--soft); }
.cbtn svg { transition: color .5s var(--soft); }
.menu nav a .fill { transition: clip-path .7s var(--soft); }
.copy, .bk { transition: background .5s var(--soft), color .5s var(--soft), transform .4s var(--soft); }

/* VitaLLM: links inside answers, and follow-up suggestions after each answer */
.vlm-msg--bot a { color: var(--berry); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }
.vlm-msg--bot a:hover { color: var(--ink); }
.vlm-followups { margin-top: -.3rem; }


/* ==========================================================================
   Audit fixes: name beside the logo, hero links, case-study menu on phones
   ========================================================================== */
.logo .logo-name { font-size: clamp(18px, 1.5vw, 26px); white-space: nowrap; }
.hero-links a { color: var(--berry); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.hero-links a:hover { color: var(--ink); }

.cs-toc { display: none; }
@media (max-width: 900px) {
  .cs-toc { display: block; position: sticky; top: 78px; z-index: 6; margin: 0 0 1.6rem; background: var(--cream); border: 2px solid var(--ink); border-radius: 14px; }
  .cs-toc summary { list-style: none; cursor: pointer; padding: .75rem 1rem; font-family: var(--hand); font-size: 1.2rem; color: var(--ink); display: flex; justify-content: space-between; align-items: center; min-height: 44px; box-sizing: border-box; }
  .cs-toc summary::-webkit-details-marker { display: none; }
  .cs-toc summary::after { content: "+"; font-family: var(--ui); font-size: 1.3rem; color: var(--berry); }
  .cs-toc[open] summary::after { content: "–"; }
  .cs-toc nav { display: flex; flex-direction: column; padding: 0 1rem .8rem; max-height: 55vh; overflow-y: auto; }
  .cs-toc nav a { padding: .55rem 0; border-top: 1px solid var(--beige); font-size: .95rem; color: var(--ink); }
}
@media (max-width: 420px) { .logo .logo-name { font-size: 17px; } }

/* ==========================================================================
   Resume page (screen) — the same markup prints to the A4 PDF
   ========================================================================== */
.resume-wrap { max-width: 920px; margin: 0 auto; padding: clamp(110px, 10vw, 150px) var(--gutter) clamp(3rem, 6vw, 6rem); }
.resume-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 24px; }
.resume { background: #fff; border: 2px solid var(--ink); border-radius: clamp(16px, 2vw, 28px); padding: clamp(24px, 5vw, 60px); color: var(--ink); }
.r-head { border-bottom: 2px solid var(--ink); padding-bottom: 22px; margin-bottom: 8px; }
.r-head h1 { margin: 0; font-family: var(--display); font-weight: 700; text-transform: uppercase; letter-spacing: -.03em; line-height: .9; font-size: clamp(48px, 7vw, 84px); }
.r-title { margin: 10px 0 14px; font-size: clamp(16px, 1.5vw, 20px); font-weight: 600; color: var(--berry); }
.r-contact { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: 15px; }
.r-contact a, .r-cases a { color: var(--berry); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.r-sec { padding-top: 22px; }
.r-sec h2 { margin: 0 0 12px; font-family: var(--display); font-weight: 600; text-transform: uppercase; font-size: 26px; letter-spacing: .01em; color: var(--ink); }
.r-sec > p { margin: 0; font-size: 16px; line-height: 1.6; color: var(--ink-body); }
.r-job { padding: 14px 0 16px; border-top: 1px solid var(--beige); }
.r-job:first-of-type { border-top: 0; padding-top: 0; }
.r-job-head { display: flex; justify-content: space-between; gap: 16px; align-items: baseline; }
.r-job h3 { margin: 0; font-size: 18px; font-weight: 700; }
.r-co { margin: 2px 0 0; font-size: 15px; color: var(--ink-soft); }
.r-when { margin: 0; font-size: 14px; color: var(--ink-soft); white-space: nowrap; }
.r-blurb { margin: 8px 0 0; font-size: 15px; font-style: italic; color: var(--ink-soft); }
.r-job ul, .r-cases { margin: 8px 0 0; padding-left: 1.1em; }
.r-job li { font-size: 15px; line-height: 1.55; margin: 4px 0; color: var(--ink-body); }
.r-cases li { font-size: 15px; line-height: 1.5; margin: 6px 0; }
.r-cases li span { display: block; color: var(--ink-soft); font-size: 14px; }
.r-skills { margin: 0; display: grid; gap: 10px; }
.r-skills div { display: grid; grid-template-columns: 140px minmax(0, 1fr); gap: 12px; font-size: 15px; line-height: 1.5; }
.r-skills dt { font-weight: 700; }
.r-skills dd { margin: 0; color: var(--ink-body); }
@media (max-width: 600px) {
  .r-job-head { flex-direction: column; gap: 2px; }
  .r-skills div { grid-template-columns: 1fr; gap: 0; }
}

@page { size: A4; margin: 12mm 14mm; }
@media print {
  html, body { background: #fff !important; }
  .nav, .menu, .site-footer, .vlm-launcher, .vlm-panel, .resume-actions, .skip, #trail, #loader, .cursor, svg[width="0"] { display: none !important; }
  main { margin: 0 !important; background: #fff !important; box-shadow: none !important; border-radius: 0 !important; }
  .resume-wrap { padding: 0; max-width: none; }
  .resume { border: 0; border-radius: 0; padding: 0; }
  .r-head { padding-bottom: 10px; }
  .r-head h1 { font-size: 34pt; }
  .r-title { font-size: 11.5pt; margin: 4px 0 6px; }
  .r-contact { font-size: 9.5pt; gap: 2px 16px; }
  .r-sec { padding-top: 10px; }
  .r-sec h2 { font-size: 13pt; margin-bottom: 4px; }
  .r-sec > p, .r-job li, .r-cases li, .r-skills div { font-size: 9.5pt; line-height: 1.42; }
  .r-job { padding: 6px 0 7px; break-inside: avoid; }
  .r-job h3 { font-size: 10.5pt; }
  .r-co, .r-when, .r-blurb, .r-cases li span { font-size: 9pt; }
  .r-blurb { margin-top: 2px; }
  .r-job ul { margin-top: 3px; }
  .r-job li { margin: 1px 0; }
  .r-cases li { margin: 3px 0; }
  .r-skills { gap: 3px; }
  .r-skills div { grid-template-columns: 95px minmax(0, 1fr); }
  .r-sec { break-inside: auto; }
  .r-sec h2 { break-after: avoid; }
}
.r-job ul { list-style: disc; }
.r-job li::marker { color: var(--berry); }
.r-cases { list-style: none; padding-left: 0; }
/* phones: give the hero laptop its own space between the headline and the bullet list */
@media (max-width: 767px) { #hero { min-height: 118vh; min-height: 118svh; } }
@media (max-width: 380px) { #hero { min-height: 130vh; min-height: 130svh; } }

/* ==========================================================================
   Project cards: Palmo-style hover
   colour circle grows from the cursor · screenshot lifts and tilts ·
   sparkles spin in from the corners · title letters roll
   ========================================================================== */
.proj-media { background: var(--lbeige); }
.proj-media::after { display: none; }
.pm-fill { position: absolute; inset: 0; z-index: 0; background: var(--pc, var(--berry)); clip-path: circle(0% at var(--mx, 50%) var(--my, 50%)); transition: clip-path .8s var(--soft); }
.pm-img { position: absolute; inset: 0; z-index: 1; transition: transform .9s var(--soft), border-radius .9s var(--soft), box-shadow .9s var(--soft); overflow: hidden; }
.proj-media .pm-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: none !important; }
.pm-doo { position: absolute; inset: 0; z-index: 2; pointer-events: none; }
.pm-doo svg { position: absolute; width: clamp(34px, 4.4vw, 70px); height: auto; aspect-ratio: 1; color: var(--sun); opacity: 0; transition: transform .9s var(--soft), opacity .5s var(--soft); }
.pm-doo .d1 { left: 4%; top: 6%; transform: translate(-60%, -60%) scale(.3) rotate(-90deg); }
.pm-doo .d2 { right: 5%; top: 8%; transform: translate(60%, -60%) scale(.3) rotate(90deg); width: clamp(24px, 3vw, 46px); }
.pm-doo .d3 { left: 7%; bottom: 7%; transform: translate(-60%, 60%) scale(.3) rotate(90deg); width: clamp(22px, 2.6vw, 40px); color: var(--cream); }
.pm-doo .d4 { right: 4%; bottom: 5%; transform: translate(60%, 60%) scale(.3) rotate(-90deg); color: var(--cream); }
.proj-media[style*="#FFE386"] .pm-doo svg, .proj-media[style*="#EFDDE6"] .pm-doo svg { color: var(--plum); }
.proj-media .pill { z-index: 4; }

@media (hover: hover) and (pointer: fine) {
  .proj:hover .pm-fill, .proj-media:focus-visible .pm-fill { clip-path: circle(150% at var(--mx, 50%) var(--my, 50%)); }
  .proj:hover .pm-img, .proj-media:focus-visible .pm-img { transform: scale(.84) rotate(-2.5deg); border-radius: 14px; box-shadow: 0 24px 50px rgba(30, 10, 25, .35); }
  .proj:hover .pm-doo svg, .proj-media:focus-visible .pm-doo svg { opacity: 1; transform: none; }
  .proj:hover .pm-doo .d2 { transition-delay: .06s; }
  .proj:hover .pm-doo .d3 { transition-delay: .1s; }
  .proj:hover .pm-doo .d4 { transition-delay: .14s; }
}
@media (prefers-reduced-motion: reduce) {
  .pm-fill, .pm-img, .pm-doo svg { transition: opacity .3s; }
  .proj:hover .pm-img { transform: none; }
}

/* rolling title letters */
.proj-meta h3 .tl { display: inline-block; position: relative; overflow: hidden; vertical-align: bottom; }
.proj-meta h3 .tl > span { display: block; transition: transform .6s var(--soft); transition-delay: calc(var(--i) * 16ms); }
.proj-meta h3 .tl > span + span { position: absolute; left: 0; top: 100%; color: var(--sun); }
@media (hover: hover) and (pointer: fine) {
  .proj:hover .proj-meta h3 .tl > span { transform: translateY(-100%); }
}

/* ==========================================================================
   Footer slicing game (Palmo-style). Canvas sits behind the footer content;
   content ignores the pointer except links and buttons, so swipes reach the game.
   ========================================================================== */
.site-footer .foot-game, .site-footer .foot-trail { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 1; pointer-events: none; }
.site-footer > :not(canvas) { position: relative; z-index: 2; }
.site-footer.game-on > :not(canvas) { pointer-events: none; }
.site-footer.game-on a, .site-footer.game-on button { pointer-events: auto; }
@media (pointer: fine) { .site-footer.game-on { cursor: crosshair; } }
.site-footer.playing { touch-action: none; }
.foot-score { display: none; }
.site-footer.game-on .foot-score { display: flex; align-self: center; align-items: center; gap: 14px; width: fit-content; padding: 6px 16px; margin: 0 auto; border-radius: 999px; border: 1px solid rgba(251, 247, 242, .22); background: rgba(59, 30, 51, .7); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); font-family: var(--hand); font-size: clamp(15px, 1.1vw, 19px); color: var(--cream-soft); }
.foot-score b { font-family: var(--display); font-weight: 700; font-size: 1.35em; color: var(--sun); font-variant-numeric: tabular-nums; }
.foot-score .hint { color: var(--sun); }
.foot-play { display: none; font-family: var(--hand); font-size: 1em; padding: 4px 12px; min-height: 36px; border-radius: 999px; border: 1px solid var(--sun); background: transparent; color: var(--sun); cursor: pointer; }
@media (pointer: coarse) { .foot-play { display: inline-flex; align-items: center; } .foot-score .hint { display: none; } }
/* every section after the 3D laptop's track sits above it, so the falling laptop never covers the work */
#seqwrap ~ section, #seqwrap ~ .scallop { position: relative; z-index: 2; }

/* ==========================================================================
   Round 3 fixes
   ========================================================================== */
/* footer grows to fit its content, so the bottom row (and its arrow) is never cut off */
.site-footer { height: auto; min-height: var(--fh); }
main { margin-bottom: var(--fhv, var(--fh)); }
.cbtn.up svg { transform: none; overflow: visible; }
@media (max-height: 760px) {
  .foot-word { font-size: min(18.6vw, 24vh); }
  .foot-links a { font-size: min(3.4vw, 6.5vh); }
}

/* case studies: start right under the header */
.cs-layout { padding-top: calc(max(78px, 7.5vw) + 14px); }
.cs-sidebar { top: calc(max(78px, 7.5vw) + 14px); }
.cs-main > .cs-toc + .cs-eyebrow { margin-top: 0; }

/* loader: the logo fills up from the bottom as the counter runs (Palmo-style) */
.lmark { position: relative; width: clamp(170px, 20vw, 320px); clip-path: none !important; font-size: 0; line-height: 0; }
.lmark img { display: block; width: 100%; height: auto; }
.lm-base { opacity: .14; }
.lm-fill { position: absolute; left: 0; top: 0; clip-path: inset(calc(100% - var(--lp, 0%)) 0 0 0); transition: clip-path .18s linear; }

/* page transitions: curtains close on the way out, open on the way in */
.pt { position: fixed; inset: 0; z-index: 1200; pointer-events: none; overflow: hidden; }
.pt i { position: absolute; top: -30vh; height: 160vh; width: 58%; transform: scaleX(0); will-change: transform; }
.pt .l { left: 0; transform-origin: left center; }
.pt .r { right: 0; transform-origin: right center; }
.pt .b { background: var(--beige); z-index: 1; }
.pt .k { background: var(--ink); z-index: 2; }
.pt-out .pt i { transform: scaleX(1); transition: transform .55s var(--ease); }
.pt-out .pt .k { transition-delay: .08s; }
.pt-in .pt i { transform: scaleX(1); transition: none; }
.pt-in.pt-open .pt i { transform: scaleX(0); transition: transform .75s var(--ease); }
.pt-in.pt-open .pt .b { transition-delay: .12s; }
@media (prefers-reduced-motion: reduce) { .pt { display: none; } }
/* circle-button icons: size by width + aspect ratio. A % height inside an auto-height grid row
   falls back to the SVG's default 150px, which pushed the footer arrow down and out of its circle. */
.cbtn svg { width: 34%; height: auto; aspect-ratio: 1; }

/* ==========================================================================
   Writing: article pages and the /writing list
   ========================================================================== */
.art-layout { max-width: 780px; margin: 0 auto; padding: calc(max(78px, 7.5vw) + 14px) var(--gutter) clamp(3rem, 6vw, 6rem); }
.art-layout .cs-back { display: inline-flex; margin-bottom: 1.2rem; }
.cs-main.art > .cs-eyebrow:first-child { margin-top: 0; }
.cs-main.art .cs-eyebrow { margin-top: 0; }
.art-title { font-size: clamp(40px, 5.4vw, 80px); max-width: 18ch; margin-bottom: .8rem; }
.art-byline { font-family: var(--hand); font-size: 1.2rem; color: var(--berry) !important; margin: 0 0 2rem !important; }
.cs-main.art h2 { font-size: clamp(28px, 3vw, 44px); margin-top: 2.4rem; }
.cs-main.art p { max-width: 68ch; }
.art-note { margin: 2.6rem 0 0; padding: 1.1rem 1.3rem; border: 2px dashed var(--beige); border-radius: 14px; }
.cs-main.art .art-note p { margin: 0; font-size: .95rem; color: var(--ink-soft); }
.art-note a, .art-related a { color: var(--berry); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.art-related { margin-top: 1.6rem; }
.cs-main.art .art-related h2 { font-size: clamp(22px, 2vw, 30px); margin-top: 0; }

.art-list { max-width: 1100px; }
.art-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.2rem; margin-top: 2rem; }
.art-card { display: grid; gap: .6rem; align-content: start; padding: 1.5rem 1.5rem 1.3rem; border: 2px solid var(--ink); border-radius: 20px; background: var(--lbeige); color: var(--ink); transition: transform .5s var(--soft), background .4s var(--soft), box-shadow .5s var(--soft); }
.art-card .tag { font-family: var(--hand); font-size: 1.05rem; color: var(--berry); }
.art-card h2 { margin: 0; font-family: var(--display); font-weight: 600; text-transform: uppercase; font-size: clamp(24px, 2.2vw, 34px); line-height: .95; letter-spacing: -.02em; }
.art-card p { margin: 0; font-size: .95rem; line-height: 1.55; color: var(--ink-body); }
.art-card .more { font-family: var(--hand); font-size: 1.1rem; color: var(--ink); margin-top: .3rem; }
@media (hover: hover) and (pointer: fine) {
  .art-card:hover { transform: translateY(-4px) rotate(-.4deg); background: var(--sun); box-shadow: 0 16px 30px rgba(59, 30, 51, .15); }
}
@media (max-width: 760px) { .art-grid { grid-template-columns: 1fr; } }

/* ==========================================================================
   Writing v2: image cards, featured article, sidebar layout, homepage section
   ========================================================================== */
.art-card { display: flex; flex-direction: column; padding: 0; overflow: hidden; gap: 0; border: 2px solid var(--ink); border-radius: 22px; background: var(--cream); color: var(--ink); text-decoration: none; transition: transform .6s var(--soft), box-shadow .6s var(--soft), background .4s var(--soft); }
.art-card .art-img { display: block; aspect-ratio: 16 / 10; overflow: hidden; border-bottom: 2px solid var(--ink); background: var(--beige); }
.art-card .art-img img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--soft); }
.art-card .art-body { display: grid; gap: .55rem; padding: 1.2rem 1.3rem 1.3rem; }
.art-card .tag { font-family: var(--hand); font-size: 1.05rem; color: var(--berry); }
.art-card .art-h { font-family: var(--display); font-weight: 600; text-transform: uppercase; font-size: clamp(22px, 1.9vw, 30px); line-height: .98; letter-spacing: -.02em; }
.art-card .art-p { font-size: .95rem; line-height: 1.55; color: var(--ink-body); }
.art-card .more { font-family: var(--hand); font-size: 1.1rem; display: inline-flex; gap: .4rem; align-items: center; }
.art-card .more::after { content: "→"; transition: transform .5s var(--soft); }
@media (hover: hover) and (pointer: fine) {
  .art-card:hover { transform: translateY(-6px) rotate(-.5deg); box-shadow: 0 22px 40px rgba(59, 30, 51, .18); background: var(--sun); }
  .art-card:hover .art-img img { transform: scale(1.06); }
  .art-card:hover .more::after { transform: translateX(6px); }
}
.art-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.4rem; margin-top: 1.4rem; }
.art-feature { display: grid; grid-template-columns: 1.25fr 1fr; margin-top: 2.2rem; }
.art-feature .art-img { aspect-ratio: auto; height: 100%; min-height: 340px; border-bottom: 0; border-right: 2px solid var(--ink); }
.art-feature .art-body { align-content: center; padding: clamp(1.4rem, 3vw, 2.6rem); gap: .8rem; }
.art-feature .art-h { font-size: clamp(30px, 3.2vw, 52px); line-height: .92; }
.art-feature .art-p { font-size: 1.02rem; }
.art-list { max-width: 1240px; }
@media (max-width: 1000px) { .art-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 700px) {
  .art-grid { grid-template-columns: 1fr; }
  .art-feature { grid-template-columns: 1fr; }
  .art-feature .art-img { min-height: 0; aspect-ratio: 16 / 10; border-right: 0; border-bottom: 2px solid var(--ink); }
}

/* article page: case-study layout with a reading-width column */
.art-page .cs-main { max-width: 760px; }
.art-page .art-cover { margin: .4rem 0 2rem; border: 2px solid var(--ink); }
.art-page .art-cover img { max-height: none; object-fit: cover; }
.art-page .cs-main section { padding-top: .4rem; }
.art-next { margin-top: 2.6rem; display: grid; gap: .7rem; }
.art-next > .tag { font-family: var(--hand); font-size: 1.15rem; color: var(--berry); }
.art-card--wide { flex-direction: row; }
.art-card--wide .art-img { width: 42%; flex: none; aspect-ratio: auto; border-bottom: 0; border-right: 2px solid var(--ink); }
@media (max-width: 700px) { .art-card--wide { flex-direction: column; } .art-card--wide .art-img { width: 100%; aspect-ratio: 16 / 10; border-right: 0; border-bottom: 2px solid var(--ink); } }

/* homepage section */
#writing-home { position: relative; z-index: 2; padding-top: clamp(3rem, 6vw, 6rem); padding-bottom: clamp(3rem, 6vw, 5rem); }
.wh-head { display: flex; align-items: end; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.wh-intro { margin: .8rem 0 0; font-size: clamp(16px, 1.2vw, 20px); color: var(--ink-body); max-width: 50ch; }
.art-grid-home { margin-top: 2rem; }

/* ==========================================================================
   UI exploration gallery (inside the laptop sequence)
   ========================================================================== */
#sequence.is3d { height: 430vh; }
.pin3d .gal-title { position: absolute; left: var(--gutter); right: var(--gutter); top: max(10vh, 96px); z-index: 2; pointer-events: none;
  opacity: var(--gal, 0); transform: translateY(calc((1 - var(--gal, 0)) * 28px)); }
.gal-title .eyebrow { color: var(--berry); }
.gal-title h2 { margin: .3rem 0 .4rem; max-width: 18ch; }
.gal-title p:last-child { margin: 0; max-width: 46ch; font-size: clamp(15px, 1.15vw, 19px); color: var(--ink-body); }
#sequence.is3d .seq-head, #sequence.is3d .seq-meter-wrap { opacity: calc(1 - var(--seqhide, 0)); }
.gal-title h2 { max-width: none; }
@media (max-width: 767px) {
  .pin3d .gal-title { top: 84px; }
  .gal-title h2 { font-size: 34px; }
  .gal-title p:last-child { font-size: 14px; }
}

/* ==========================================================================
   Two typefaces only: Khand (display) + Inter (everything else).
   The former handwritten accents become clean, tracked labels and buttons.
   ========================================================================== */
:root { --hand: var(--ui); }
.eyebrow, .proj-meta .tag, .seq-now .tag, .xcard .yr, .art-card .tag, .art-next > .tag, .gal-title .eyebrow, .menu .hello .hand {
  font-family: var(--ui); font-weight: 600; font-size: clamp(11.5px, .82vw, 13.5px); letter-spacing: .1em; text-transform: uppercase; line-height: 1.3; }
.rbtn { font-weight: 600; font-size: clamp(14px, 1vw, 16px); letter-spacing: .01em; padding: .75em 1.3em .8em; }
.pill { font-weight: 600; font-size: clamp(13px, .95vw, 15px); }
.mbtn { font-weight: 600; font-size: clamp(14px, 1vw, 16px); }
.exp-ctrl .hint, .fb-card span, .tcard .small, .foot-play, .art-card .more, .tip { font-weight: 600; font-size: 14px; }
.foot-social a { font-weight: 500; font-size: clamp(15px, 1.1vw, 18px); }
.foot-bottom { font-weight: 500; font-size: 13px; letter-spacing: .04em; }
.site-footer.game-on .foot-score { font-weight: 500; font-size: 14px; }
.cs-toc summary { font-weight: 600; font-size: 15px; }
.art-byline { font-weight: 500; font-size: .95rem; }


/* ==========================================================================
   Type system: VC Henrietta (display, sentence case) + Space Mono (text)
   Henrietta is about 40% wider than Khand, so display sizes are scaled down.
   ========================================================================== */
:root { --display: "VC Henrietta", Georgia, "Times New Roman", serif; --ui: "Space Mono", ui-monospace, Menlo, Consolas, monospace; --hand: var(--ui); }
body { font-family: var(--ui); }
.d1:not(svg), .d2:not(svg), .d3:not(svg), .xcard h3, .foot-links a, .foot-word, .vlm-greeting, .r-head h1, .r-sec h2,
.art-card h2, .art-card .art-h, .menu nav a, .meter .row { font-weight: 700; text-transform: none; letter-spacing: -.012em; }
.d1:not(svg) { font-size: clamp(38px, 6.2vw, 124px); line-height: .98; }
.d2:not(svg) { font-size: clamp(32px, 4.9vw, 98px); line-height: 1; }
.d3:not(svg) { font-size: clamp(21px, 1.95vw, 36px); line-height: 1.06; }
#hero h1 { font-size: clamp(34px, 5vw, 104px); }
@media (min-width: 768px) { #hero h1 { font-size: clamp(36px, 4.4vw, 88px); max-width: 56vw; } }
.xcard h3 { font-size: clamp(20px, 1.7vw, 28px); }
.menu nav a { font-size: min(8.4vw, 11vh); line-height: 1.04; }
.foot-links a { font-size: clamp(22px, 2.5vw, 44px); line-height: 1.12; }
.foot-word { font-size: 13vw; letter-spacing: -.03em; line-height: .9; }
@media (max-height: 760px) { .foot-word { font-size: min(13vw, 18vh); } .foot-links a { font-size: min(2.5vw, 5vh); } }
.circ .n { font-size: clamp(30px, 2.9vw, 56px); letter-spacing: -.02em; }
#impact.is-pinned .circ .n { font-size: clamp(30px, 2.9vw, 56px); }
@media (max-width: 767px) { #impact.is-pinned .circ .n { font-size: clamp(20px, 6.2vw, 30px); } }
.vlm-greeting { font-size: 1.45rem; line-height: 1.05; }
.meter .row { font-size: clamp(15px, 1.2vw, 20px); }
.r-head h1 { font-size: clamp(40px, 5.4vw, 68px); line-height: 1; }
.r-sec h2 { font-size: 22px; }
.art-card h2, .art-card .art-h { font-size: clamp(19px, 1.5vw, 24px); line-height: 1.1; }
.art-feature .art-h { font-size: clamp(24px, 2.4vw, 40px); line-height: 1.04; }
/* Space Mono is wide: slightly smaller reading text, a little more leading */
.cs-main p, .r-sec > p, .r-job li { line-height: 1.75; }
.proj-meta p, .hero-cta p, .wh-intro, .cs-intro { letter-spacing: -.01em; }
@media print { .r-head h1 { font-size: 28pt; } .r-sec h2 { font-size: 12pt; } .r-sec > p, .r-job li, .r-cases li, .r-skills div { font-size: 8.8pt; line-height: 1.45; } }

/* ==========================================================================
   Gallery: purple backdrop + "keep scrolling" hint
   ========================================================================== */
.pin3d .gal-bg { position: absolute; inset: 0; z-index: 0; background: var(--ink); opacity: var(--galbg, 0); pointer-events: none; }
.pin3d #three { z-index: 1; }
.pin3d .gal-hint { position: absolute; left: 50%; bottom: calc(26px + env(safe-area-inset-bottom, 0px)); z-index: 2; pointer-events: none;
  display: inline-flex; align-items: center; gap: 10px; padding: 11px 20px; border-radius: 999px; border: 2px solid var(--ink);
  background: var(--sun); color: var(--ink); font-family: var(--ui); font-weight: 700; font-size: 13px; letter-spacing: .1em; text-transform: uppercase;
  box-shadow: 0 14px 34px rgba(20, 8, 16, .45); white-space: nowrap;
  opacity: var(--galhint, 0); transform: translate(-50%, calc((1 - var(--galhint, 0)) * 18px)); }
.gal-hint svg { animation: galbob 1.3s ease-in-out infinite; }
@keyframes galbob { 0%, 100% { transform: translateY(-3px); } 50% { transform: translateY(3px); } }
@media (prefers-reduced-motion: reduce) { .gal-hint svg { animation: none; } }

/* ==========================================================================
   Resume content in Inter (page and PDF)
   ========================================================================== */
@font-face { font-family: "Inter"; src: url("fonts/Inter-400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Inter"; src: url("fonts/Inter-500.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Inter"; src: url("fonts/Inter-600.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Inter"; src: url("fonts/Inter-700.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Inter"; src: url("fonts/Inter-400-italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
.r-head, .r-head *, .r-sec, .r-sec * { font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif !important; }
.r-head h1 { font-weight: 700; letter-spacing: -.025em; font-size: clamp(36px, 4.8vw, 58px); line-height: 1.05; }
.r-head .r-title { font-weight: 500; letter-spacing: 0; text-transform: none; }
.r-sec h2 { font-weight: 700; font-size: 14px; letter-spacing: .1em; text-transform: uppercase; }
.r-job h3 { font-weight: 600; }
.r-sec > p, .r-job li, .r-cases li, .r-skills div { line-height: 1.6; }
@media print {
  .r-head h1 { font-size: 24pt; }
  .r-sec h2 { font-size: 9.5pt; letter-spacing: .1em; }
  .r-sec > p, .r-job li, .r-cases li, .r-skills div { font-size: 9pt; line-height: 1.45; }
}

/* case studies now sit inside the laptop's track: they cover the laptop as it passes underneath */
#seqwrap > #work, #seqwrap > .scallop { position: relative; z-index: 6; }

/* Body text in Inter for readability; Space Mono stays for labels, tags, buttons and captions (var(--ui)) */
:root { --body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif; }
body { font-family: var(--body); }
p, li, blockquote:not(.cs-quote), .proj-meta p, .xcard p, .art-card .art-p, .vlm-msg, .vlm-input, dd, td { font-family: var(--body); }
.proj-meta p, .hero-cta p, .wh-intro, .cs-intro { letter-spacing: 0; }
/* labels stay in Space Mono even when they are <p> or <li> elements */
p.eyebrow, p.cs-eyebrow, p.art-byline, .cs-meta-label, figcaption, .tag, .tag-before, .tag-after, .gal-hint, .xcard .yr, .cs-diagram-caption, .cs-code .cap { font-family: var(--ui); }

/* ==========================================================================
   Testimonials: "Kind words"
   ========================================================================== */
#testimonials { position: relative; z-index: 2; padding-top: clamp(3rem, 6vw, 6rem); padding-bottom: clamp(1rem, 3vw, 2rem); }
.tm-head { display: flex; align-items: end; justify-content: space-between; gap: 1rem 3rem; flex-wrap: wrap; }
.tm-head p { margin: 0; max-width: 44ch; font-size: clamp(16px, 1.15vw, 19px); color: var(--ink-body); }
.tm-grid { columns: 3 320px; column-gap: 18px; margin-top: 2.2rem; }
.tm-card { break-inside: avoid; margin: 0 0 18px; padding: 1.5rem 1.5rem 1.3rem; border: 2px solid var(--ink); border-radius: 22px; background: var(--cream); color: var(--ink);
  transition: transform .6s var(--soft), box-shadow .6s var(--soft); }
.tm-card blockquote { margin: 0; }
.tm-card blockquote p { margin: 0; font-family: var(--body); font-size: clamp(15.5px, 1.05vw, 17.5px); line-height: 1.6; }
.tm-card figcaption { display: flex; align-items: center; gap: .8rem; margin-top: 1.2rem; }
.tm-av { flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; border: 2px solid var(--ink); background: var(--sun); font-family: var(--ui); font-weight: 700; font-size: 14px; }
.tm-who { display: grid; gap: 2px; }
.tm-who strong { font-family: var(--display); font-weight: 700; font-size: 1.1rem; }
.tm-role { font-family: var(--ui); font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-soft); }
.tm-sun { background: var(--sun); }
.tm-sun .tm-av { background: var(--cream); }
.tm-blush { background: var(--beige); }
.tm-plum { background: var(--ink); color: var(--cream); border-color: var(--ink); }
.tm-plum .tm-role { color: var(--beige); }
.tm-plum .tm-av { border-color: var(--sun); color: var(--ink); }
.tm-foot { margin-top: 1rem; }
@media (hover: hover) and (pointer: fine) { .tm-card:hover { transform: translateY(-4px) rotate(-.4deg); box-shadow: 0 18px 34px rgba(59, 30, 51, .14); } }
@media (prefers-reduced-motion: reduce) { .tm-card { transition: none; } }

/* ==========================================================================
   Hero review highlight
   ========================================================================== */
.hero-review { display: flex; gap: 12px; align-items: flex-start; width: 100%; padding: 12px 14px; border: 2px solid var(--ink); border-radius: 16px; background: var(--cream); color: var(--ink); text-decoration: none;
  box-shadow: 0 8px 0 var(--ink); transition: transform .4s var(--soft), box-shadow .4s var(--soft); }
.hero-review:hover, .hero-review:focus-visible { transform: translateY(-2px); box-shadow: 0 10px 0 var(--ink); }
.hr-avs { display: flex; flex: none; padding-top: 2px; }
.hr-avs i { display: grid; place-items: center; width: 30px; height: 30px; margin-left: -9px; border-radius: 50%; border: 2px solid var(--ink); background: var(--sun); font: 700 10px/1 var(--ui); font-style: normal; }
.hr-avs i:first-child { margin-left: 0; }
.hr-avs i:nth-child(2) { background: var(--beige); }
.hr-avs i:nth-child(3) { background: var(--cream); }
.hr-avs i:nth-child(4) { background: var(--berry); color: var(--cream); }
.hr-body { display: grid; gap: 3px; min-width: 0; }
.hr-quote { font-family: var(--body); font-size: clamp(13.5px, .95vw, 15.5px); line-height: 1.4; transition: opacity .35s; }
.hr-by { font: 700 11px/1.3 var(--ui); letter-spacing: .06em; text-transform: uppercase; color: var(--berry); transition: opacity .35s; }
.hr-count { font: 400 11px/1.3 var(--ui); letter-spacing: .04em; color: var(--ink-soft); }
.hero-review.swap .hr-quote, .hero-review.swap .hr-by { opacity: 0; }
/* the review card and buttons sit above the 3D laptop layer */
#hero .hero-cta { position: relative; z-index: 6; }
/* phones: links and buttons first, the review card after them */
@media (max-width: 767px) { .hr-count { display: none; } }
#hero .hero-bottom { position: relative; z-index: 6; }
/* review card now sits right under the hero heading, above the 3D laptop */
#hero > .hero-review { position: relative; z-index: 6; width: min(440px, 100%); margin-top: clamp(16px, 2vw, 30px); }
@media (max-width: 767px) { #hero > .hero-review { margin-top: 14px; padding: 10px 12px; } .hr-avs i { width: 26px; height: 26px; } }
#hero > .hero-review { margin-bottom: auto; }   /* hug the heading; free space goes below the card */

/* ==========================================================================
   Hero review card, in the style of a "tell me about yourself" card
   ========================================================================== */
#hero > .hero-review.rc { display: grid; grid-template-columns: 1fr auto; align-items: start; gap: 0 14px; width: min(520px, 100%);
  padding: 16px 18px 16px; background: #FFFDF9; border: 2px solid var(--ink); border-radius: 20px; box-shadow: 0 8px 0 var(--ink); }
.rc-head { display: grid; justify-items: start; padding-top: 4px; }
.rc-tape { position: relative; z-index: 1; margin: 0 0 -9px 14px; padding: 3px 10px; background: var(--sun); border: 1.5px solid var(--ink); transform: rotate(-3deg);
  font: 700 11px/1.2 var(--ui); letter-spacing: .22em; text-transform: uppercase; }
.rc-title { font-family: var(--display); font-weight: 700; font-size: clamp(28px, 2.6vw, 40px); line-height: 1; letter-spacing: -.015em; color: var(--ink); }
.rc-card { margin-left: 6px; font: 700 12px/1 var(--ui); letter-spacing: .28em; text-transform: uppercase; color: var(--berry); vertical-align: baseline; }
.rc-polaroid { position: relative; width: clamp(74px, 6.6vw, 98px); padding: 6px 6px 18px; background: #fff; border: 1px solid rgba(59, 30, 51, .25); box-shadow: 0 8px 18px rgba(59, 30, 51, .18); transform: rotate(6deg); margin-top: -26px; }
.rc-photo { display: grid; place-items: center; aspect-ratio: 1; background: var(--plum); }
.rc-photo img { width: 84%; height: auto; }
.rc-cursor { position: absolute; right: -16px; bottom: -14px; width: 36px; height: 36px; transform: rotate(-8deg); }
.rc-rows { grid-column: 1 / -1; display: grid; margin-top: 14px; border: 1.5px solid var(--ink); }
.rc-row { display: flex; gap: 8px; align-items: baseline; padding: 7px 10px; border-top: 1.5px solid var(--ink); }
.rc-row:first-child { border-top: 0; }
.rc-k { flex: none; font: 400 12.5px/1.4 var(--ui); color: var(--ink); }
.rc-v { font-family: var(--body); font-style: italic; font-size: clamp(13.5px, .95vw, 15px); line-height: 1.4; color: var(--berry); transition: opacity .35s; }
.hero-review.swap .rc-v.hr-by, .hero-review.swap .rc-v.hr-role, .hero-review.swap .rc-v.hr-quote { opacity: 0; }
#hero > .hero-review.rc:hover, #hero > .hero-review.rc:focus-visible { transform: translateY(-2px) rotate(-.4deg); box-shadow: 0 10px 0 var(--ink); }
@media (max-width: 767px) {
  #hero > .hero-review.rc { padding: 12px 12px 12px; }
  .rc-polaroid { width: 62px; margin-top: -18px; }
  .rc-cursor { width: 28px; height: 28px; right: -12px; bottom: -10px; }
  .rc-row { padding: 6px 8px; }
}
.rc-v.hr-by { font-family: var(--body); font-weight: 600; font-size: clamp(13.5px, .95vw, 15px); letter-spacing: 0; text-transform: none; color: var(--berry); }
/* short laptop screens: a more compact card so the hero still fits */
@media (min-width: 768px) and (max-height: 820px) {
  #hero > .hero-review.rc { width: min(480px, 100%); padding: 12px 14px; margin-top: 12px; }
  .rc-title { font-size: 26px; }
  .rc-polaroid { width: 66px; margin-top: -18px; }
  .rc-rows { margin-top: 10px; }
  .rc-row { padding: 5px 9px; }
  .rc-row:last-child { display: none; }
}

/* ==========================================================================
   Hero review: simple card, initials on top, text stacked below
   ========================================================================== */
#hero > .hero-review { flex-direction: column; align-items: flex-start; gap: 10px; width: min(420px, 100%); }
#hero > .hero-review .hr-avs { padding-top: 0; }

/* ==========================================================================
   Kind words: "tell me about yourself" style cards with a round photo frame
   ========================================================================== */
.kw-title { display: grid; justify-items: start; margin: 0; }
.kw-title .rc-tape { font-size: 12px; margin: 0 0 -12px 22px; }
.kw-title .rc-title { font-size: clamp(42px, 5.6vw, 92px); }
.kw-title .rc-card { font-size: clamp(12px, .95vw, 15px); }
.tm-grid { padding-top: 22px; column-gap: 26px; }
.kc { position: relative; display: block; break-inside: avoid; margin: 0 0 34px; padding: 26px 16px 16px; background: #FFFDF9; color: var(--ink);
  border: 2px solid var(--ink); border-radius: 20px; box-shadow: 0 8px 0 var(--ink); transition: transform .6s var(--soft), box-shadow .6s var(--soft); }
.kc-tape { position: absolute; top: -13px; left: 18px; padding: 3px 11px; background: var(--sun); border: 1.5px solid var(--ink); transform: rotate(-3deg);
  font: 700 11px/1.2 var(--ui); letter-spacing: .22em; text-transform: uppercase; }
.kc-ring { position: absolute; top: -22px; right: -12px; display: grid; place-items: center; width: 70px; height: 70px; border-radius: 50%;
  border: 7px solid var(--ring, var(--berry)); background: var(--cream); box-shadow: 0 0 0 2px var(--ink), 0 8px 16px rgba(59, 30, 51, .18); }
.kc-ring span { font-family: var(--display); font-weight: 700; font-size: 21px; color: var(--ink); }
.kc-rows { display: grid; border: 1.5px solid var(--ink); }
.kc-row { display: flex; gap: 8px; align-items: baseline; padding: 7px 10px; border-top: 1.5px solid var(--ink); }
.kc-row:first-child { border-top: 0; padding-right: 54px; }
.kc-k { flex: none; font: 400 12.5px/1.4 var(--ui); }
.kc-v { font-family: var(--body); font-style: italic; font-weight: 600; font-size: 15px; line-height: 1.4; color: var(--berry); }
.kc-row:nth-child(2) .kc-v { font-weight: 400; }
.kc-says { display: block; }
.kc-says .kc-k { display: block; margin-bottom: 4px; }
.kc-q { margin: 0; }
.kc-q p { margin: 0; font-family: var(--body); font-size: clamp(15px, 1.02vw, 17px); line-height: 1.6; color: var(--plum); }
@media (hover: hover) and (pointer: fine) { .kc:hover { transform: translateY(-4px) rotate(-.5deg); box-shadow: 0 12px 0 var(--ink); } }
@media (prefers-reduced-motion: reduce) { .kc { transition: none; } }
/* a real grid (not CSS columns), so tapes and round frames are never clipped or split across columns */
.tm-grid { columns: auto; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 330px), 1fr)); gap: 40px 28px; align-items: start; padding-top: 24px; }
.tm-grid .kc { margin: 0; }

/* reviewer portraits: tilted polaroids on the Kind words cards, circles in the hero card */
.kc-pol { position: absolute; top: -28px; right: -14px; z-index: 2; width: 88px; padding: 5px 5px 17px; background: #fff;
  border: 1px solid rgba(59, 30, 51, .25); box-shadow: 0 8px 18px rgba(59, 30, 51, .2); transform: rotate(6deg); }
.kc:nth-child(even) .kc-pol { transform: rotate(-5deg); }
.kc-pol img { display: block; width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; }
.kc-cursor { position: absolute; right: -16px; bottom: -14px; width: 34px; height: 34px; transform: rotate(-8deg); }
.kc-row:first-child { padding-right: 78px; }
.hr-avs i { width: 34px; height: 34px; overflow: hidden; padding: 0; }
.hr-avs i img { display: block; width: 100%; height: 100%; object-fit: cover; }
/* phones: keep the polaroids inside the screen */
#testimonials { overflow-x: clip; }
@media (max-width: 767px) { .kc-pol { right: -4px; width: 74px; } .kc-cursor { right: -8px; } .kc-row:first-child { padding-right: 66px; } }




/* ==========================================================================
   Film after the hero: a white rounded frame with a soft shadow.
   The section sits above the 3D laptop layer, so the laptop passes behind it.
   ========================================================================== */
#seqwrap > #film { position: relative; z-index: 6; }
#film { --fp: clamp(8px, 1.1vw, 16px); --fr: clamp(22px, 2.6vw, 38px);
  min-height: 100vh; min-height: 100svh; display: grid; place-items: center;
  padding: clamp(20px, 4vw, 64px) var(--gutter); background: var(--cream); }
.film-frame { position: relative; width: min(1280px, 100%, calc((100svh - 2 * clamp(20px, 4vw, 64px) - 2 * var(--fp)) * 16 / 9 + 2 * var(--fp)));
  padding: var(--fp); background: #fff; border-radius: var(--fr);
  box-shadow: 0 0 0 1px rgba(59, 30, 51, .07), 0 30px 70px rgba(59, 30, 51, .14), 0 6px 18px rgba(59, 30, 51, .06); }
.film-video { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; background: #F6F2E9;
  border-radius: calc(var(--fr) - var(--fp)); }
.film-center { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); display: grid; justify-items: center; gap: 6px;
  padding: 0; border: 0; background: none; color: #fff; cursor: pointer; filter: drop-shadow(0 4px 14px rgba(0, 0, 0, .35)); transition: transform .3s var(--soft); }
.film-center:hover, .film-center:focus-visible { transform: translate(-50%, -50%) scale(1.06); }
.film-center svg { width: clamp(44px, 5vw, 72px); height: auto; }
.film-dur { font: 600 clamp(14px, 1.3vw, 20px)/1 var(--body); letter-spacing: .02em; }
.film-center[hidden], .film-tap[hidden] { display: none; }
.film-ui { position: absolute; left: calc(var(--fp) + 14px); bottom: calc(var(--fp) + 14px); display: flex; gap: 8px; }
.film-btn { display: inline-flex; align-items: center; gap: 8px; min-height: 38px; padding: 7px 14px; border-radius: 999px; border: 2px solid var(--ink);
  background: var(--cream); color: var(--ink); font: 700 12px/1 var(--ui); letter-spacing: .08em; text-transform: uppercase; cursor: pointer;
  box-shadow: 0 3px 0 var(--ink); transition: transform .3s var(--soft), box-shadow .3s var(--soft), background .3s; }
.film-btn:hover, .film-btn:focus-visible { transform: translateY(-2px); box-shadow: 0 5px 0 var(--ink); }
.film-sound[aria-pressed="true"] { background: var(--sun); }
.film-sound[aria-pressed="false"] .w { opacity: .25; }
.film-tap { position: absolute; top: calc(var(--fp) + 14px); right: calc(var(--fp) + 14px); display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 16px; border-radius: 999px; border: 2px solid var(--ink); background: var(--sun); color: var(--ink); cursor: pointer;
  font: 700 12px/1 var(--ui); letter-spacing: .08em; text-transform: uppercase; box-shadow: 0 3px 0 var(--ink); animation: tapPulse 1.6s ease-in-out infinite; }
@keyframes tapPulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.05); } }
@media (prefers-reduced-motion: reduce) { .film-tap { animation: none; } }
@media (max-width: 767px) {
  #film { min-height: 0; padding: 28px var(--gutter); }
  .film-frame { width: 100%; }
  .film-ui { left: calc(var(--fp) + 8px); bottom: calc(var(--fp) + 8px); }
  .film-btn { min-height: 32px; padding: 5px 10px; font-size: 10.5px; }
  .film-tap { top: calc(var(--fp) + 8px); right: calc(var(--fp) + 8px); padding: 7px 12px; font-size: 10.5px; }
}
/* the film is light, so the centred play button sits in a dark circle with the duration below */
.film-center { filter: none; gap: 10px; }
.film-center svg { box-sizing: content-box; width: clamp(30px, 3vw, 44px); padding: clamp(18px, 1.8vw, 26px); border-radius: 50%;
  background: rgba(59, 30, 51, .82); color: #fff; box-shadow: 0 10px 30px rgba(59, 30, 51, .3); }
.film-center svg path { transform: translateX(1.5px); }
.film-dur { padding: 5px 12px; border-radius: 999px; background: rgba(59, 30, 51, .82); color: #fff; font-size: clamp(13px, 1.1vw, 17px); }

/* ==========================================================================
   Footer v4: "the footer is the main character".
   A plum info band, then a cream stage with a giant faded name and a
   line-art crowd that rises as the footer is revealed. Vita stands centre.
   ========================================================================== */
.site-footer { display: block; padding: 0; height: auto; min-height: 0; background: var(--ink); }
.site-footer.is-static { position: relative; }
.ft-band { padding: clamp(32px, 3.4vw, 56px) var(--gutter) clamp(22px, 2.2vw, 34px); }
.ft-cols { display: grid; grid-template-columns: 1.15fr 1.2fr 1fr; gap: clamp(24px, 4vw, 72px); align-items: start; }
.ft-name { font-family: var(--display); font-weight: 700; font-size: clamp(26px, 2.3vw, 40px); line-height: 1; letter-spacing: -.012em; color: var(--cream); }
.ft-name span { color: var(--sun); }
.ft-brand p { margin-top: 14px; font-size: 13px; line-height: 1.6; color: var(--cream-soft); }
.ft-lbl { display: block; margin-bottom: 14px; font-size: 11.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: rgba(251, 247, 242, .5); }
.ft-links { display: flex; flex-wrap: wrap; gap: 10px 26px; max-width: 30em; }
.ft-links a, .ft-out { font-size: 14px; color: var(--cream); transition: color .2s; }
.ft-links a:hover, .ft-links a:focus-visible, .ft-out:hover, .ft-out:focus-visible, .ft-up:hover, .ft-up:focus-visible { color: var(--sun); }
.ft-touch { display: grid; gap: 8px; justify-items: start; }
.ft-out { display: inline-flex; align-items: center; gap: 6px; word-break: break-all; }
.ft-out svg { width: 14px; height: 14px; flex: none; }
.ft-touch small { margin-top: 8px; font-size: 12px; color: rgba(251, 247, 242, .55); }
.ft-bye { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; margin-top: clamp(26px, 2.8vw, 44px); }
.ft-see { font-family: var(--display); font-weight: 700; font-size: clamp(30px, 3.4vw, 60px); line-height: 1; letter-spacing: -.015em; color: var(--cream); }
.ft-up { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--cream); white-space: nowrap; }
.ft-up svg { width: 15px; height: 15px; }

.ft-stage { position: relative; overflow: hidden; background-color: var(--cream); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .23 0 0 0 0 .12 0 0 0 0 .2 0 0 0 .07 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23g)'/%3E%3C/svg%3E"); height: max(260px, 31.25vw); }
.ft-word { position: absolute; left: 0; right: 0; top: 4%; text-align: center; white-space: nowrap; font-family: var(--display); font-weight: 700; font-size: 14.6vw; line-height: .9; letter-spacing: -.03em; color: var(--beige); will-change: transform; user-select: none; }
.ft-crowd { position: absolute; inset: 0; }

.fc-lane { position: absolute; inset: 0; will-change: transform; pointer-events: none; }
.fc-l { position: absolute; left: 0; top: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.fc-defs { position: absolute; width: 0; height: 0; overflow: hidden; }
/* a passer-by: the outer box travels (Web Animations), the inner box steps */
.fc-ped { position: absolute; left: 0; will-change: transform; }
.fc-ped svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.fc-ped svg.fc-flip { transform: scaleX(-1); }
.fc-gait { position: absolute; inset: 0; transform-origin: 50% 100%; will-change: transform;
  animation: fcGait calc(var(--step, .8s) * 2) linear infinite paused; }
/* two steps per cycle: body rises mid-stride and sways a touch from side to side */
@keyframes fcGait {
  0%   { transform: translate3d(0, 0, 0) rotate(-.6deg); }
  25%  { transform: translate3d(0, -1.6%, 0) rotate(0deg); }
  50%  { transform: translate3d(0, 0, 0) rotate(.6deg); }
  75%  { transform: translate3d(0, -1.6%, 0) rotate(0deg); }
  100% { transform: translate3d(0, 0, 0) rotate(-.6deg); }
}
.ft-crowd.fc-run .fc-gait { animation-play-state: running; }
.fc-shadow { position: absolute; z-index: -1; left: 22%; right: 22%; bottom: 0.4%; height: 1.6%; border-radius: 50%; background: var(--ink); opacity: .08; }
.fc-vita { pointer-events: auto; }
.fc-vita { cursor: pointer; outline: none; pointer-events: auto; }
.fc-bounce { transform-box: fill-box; transform-origin: 50% 100%; transition: transform .45s var(--out); }
.fc-vita.hi .fc-bounce { animation: fcHop .55s var(--out) 2; }
@keyframes fcHop { 0%, 100% { transform: none; } 45% { transform: translateY(-14px) scale(1.01, .99); } }
.fc-bubble, .fc-pop { opacity: 0; transition: opacity .25s; }
.fc-vita.hi .fc-bubble, .fc-vita.hi .fc-pop { opacity: 1; }
.fc-vita:focus-visible .fc-bubble { opacity: 1; }
.fc-bubble text { font-family: var(--display); font-weight: 700; font-size: 19px; fill: var(--ink); }
.fc-bubble text.sm { font-family: var(--ui); font-weight: 400; font-size: 12px; fill: var(--berry); }
.fc-twk { transform-box: fill-box; transform-origin: 50% 50%; animation: fcTwk 2.6s ease-in-out var(--t, 0s) infinite alternate; }
@keyframes fcTwk { from { transform: scale(.8) rotate(-10deg); } to { transform: scale(1.1) rotate(10deg); } }

@media (max-width: 899px) {
  .ft-cols { grid-template-columns: 1fr 1fr; }
  .ft-brand { grid-column: 1 / -1; }
  .ft-stage { height: clamp(260px, 62vw, 380px); }
  .ft-word { font-size: 17vw; top: 6%; }
}
@media (max-width: 560px) {
  .ft-cols { grid-template-columns: 1fr; gap: 26px; }
  .ft-bye { flex-direction: column; align-items: flex-start; }
}
@media (prefers-reduced-motion: reduce) { .fc-twk, .fc-vita.hi .fc-bounce, .fc-gait { animation: none; } }

/* ==========================================================================
   Hybrid positioning: work filter, category chips, "How I work", "What I do"
   ========================================================================== */
.work-filter { display: flex; flex-wrap: wrap; gap: 10px; margin: calc(-1 * max(2vw, 14px)) 0 max(3.4vw, 28px); }
.wf-btn { display: inline-flex; align-items: center; gap: .55em; padding: .62em 1.15em; border-radius: 999px; border: 2px solid var(--cream); background: transparent; color: var(--cream); font-weight: 600; font-size: clamp(14px, 1vw, 17px); cursor: pointer; transition: background .3s var(--out), color .3s var(--out), border-color .3s var(--out); }
.wf-btn:hover { border-color: var(--sun); color: var(--sun); }
.wf-btn[aria-pressed="true"] { background: var(--sun); border-color: var(--sun); color: var(--ink); }
.wf-n { font-family: var(--hand); font-size: 1.1em; line-height: 1; opacity: .8; }
.proj[hidden] { display: none; }
.proj-grid.is-filtered .proj { margin-top: 0; }
.js .proj.wf-in { animation: wfIn .6s var(--out) both; }
@keyframes wfIn { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

.cat-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { display: inline-block; padding: .22em .7em; border-radius: 999px; font-size: 13px; font-weight: 600; line-height: 1.5; }
.chip.cro { background: var(--sun); color: var(--ink); }
.chip.ui { background: var(--beige); color: var(--ink); }

/* How I work */
#approach { background: var(--cream); padding-top: max(7vw, 64px); padding-bottom: max(4vw, 40px); }
.ap-head, .svc-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; margin-bottom: max(3.4vw, 28px); }
.ap-head p { max-width: 38ch; font-size: clamp(16px, 1.25vw, 22px); line-height: 1.35; color: var(--ink-soft); }
.ap-steps { padding: 0; list-style: none; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: clamp(12px, 1.2vw, 20px); }
.ap-step { position: relative; background: var(--lbeige); border: 2px solid var(--ink); border-radius: clamp(18px, 1.8vw, 30px); padding: clamp(18px, 1.7vw, 30px); display: flex; flex-direction: column; gap: 10px; min-height: clamp(240px, 19vw, 340px); }
.ap-step:nth-child(even) { background: var(--beige); }
.ap-step:nth-child(4) { background: var(--sun); }
.ap-n { font-family: var(--hand); font-size: clamp(20px, 1.6vw, 28px); color: var(--berry); line-height: 1; }
.ap-step h3 { font-family: var(--display); font-weight: 600; letter-spacing: -.02em; font-size: clamp(28px, 2.6vw, 48px); line-height: .92; color: var(--ink); }
.ap-step p { margin-top: auto; font-size: clamp(14px, 1vw, 17px); line-height: 1.42; color: var(--ink-soft); }
.ap-step:not(:last-child)::after { content: ""; position: absolute; top: 50%; right: calc(-1 * clamp(12px, 1.2vw, 20px)); width: clamp(12px, 1.2vw, 20px); height: 2px; background: var(--ink); }

/* What I do */
.svc-head { margin-top: max(7vw, 64px); }
.svc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(14px, 1.6vw, 28px); }
.svc-card { position: relative; border: 2px solid var(--ink); border-radius: clamp(20px, 2vw, 34px); padding: clamp(24px, 2.6vw, 46px); display: flex; flex-direction: column; gap: 18px; align-items: flex-start; }
.svc-card.cro { background: var(--ink); color: var(--cream); }
.svc-card.ui { background: var(--beige); color: var(--ink); }
.svc-tape { font-family: var(--hand); font-size: clamp(18px, 1.4vw, 25px); line-height: 1.1; }
.svc-card.cro .svc-tape { color: var(--sun); }
.svc-card.ui .svc-tape { color: var(--berry); }
.svc-card h3 { max-width: 16ch; }
.svc-card ul { display: grid; gap: 0; width: 100%; margin-bottom: 8px; }
.svc-card li { padding: .7em 0; border-top: 1.5px solid currentColor; font-size: clamp(15px, 1.12vw, 19px); display: flex; gap: .7em; align-items: baseline; }
.svc-card li:last-child { border-bottom: 1.5px solid currentColor; }
.svc-card li::before { content: "\2726"; font-size: .8em; opacity: .7; }
.svc-card.cro li { border-color: rgba(251, 247, 242, .28); }
.svc-card.ui li { border-color: rgba(59, 30, 51, .22); }
.svc-card.cro .rbtn { border-color: var(--sun); background: var(--sun); color: var(--ink); }
.svc-card.cro .rbtn::before { background: var(--cream); }
.svc-card.cro .rbtn:hover, .svc-card.cro .rbtn:focus-visible { color: var(--ink); }
.svc-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin-top: clamp(20px, 2vw, 34px); }
.svc-tools .hand { font-size: clamp(18px, 1.4vw, 24px); color: var(--berry); margin-right: 6px; }
.svc-tools ul { display: flex; flex-wrap: wrap; gap: 8px; }
.svc-tools li { padding: .38em .9em; border: 2px solid var(--ink); border-radius: 999px; font-size: clamp(13px, .95vw, 16px); font-weight: 600; background: var(--lbeige); }

@media (max-width: 1100px) {
  .ap-steps { grid-template-columns: repeat(2, 1fr); }
  .ap-step:last-child { grid-column: 1 / -1; min-height: 0; }
  .ap-step::after { display: none; }
}
@media (max-width: 760px) {
  .ap-steps, .svc-grid { grid-template-columns: 1fr; }
  .ap-step { min-height: 0; }
  .ap-step p { margin-top: 4px; }
}

/* project tags in normal case */
.proj-meta .tag { text-transform: none; letter-spacing: .01em; font-size: clamp(13px, .95vw, 15.5px); }
