/* ux_kels site — built on brand-system/tokens.json.
   Layout: a designer's notebook. Editorial columns on a 1200px measure,
   square-cornered photos, notebook rules only behind covers, lime used as a pen. */

:root {
  --charcoal: #0c1014; --forest: #183d2b; --lime: #b8f542; --off-white: #e5e7eb; --black: #080a0b;
  /* Dark is the only look */
  --surface: #0c1014; --surface-raised: #141a20; --surface-deep: #080a0b;
  --ink: #e5e7eb; --ink-muted: #9aa3ad; --line: #26303a;
  --accent: #b8f542; --on-accent: #0c1014; --accent-text: #b8f542; --focus: #b8f542;
  --rule: rgba(184, 245, 66, .16);
  --font-display: "Bricolage Grotesque", "Helvetica Neue", Arial, sans-serif;
  --font-sans: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-hand: Caveat, "Bradley Hand", "Segoe Print", cursive;
  --space-1: 4px; --space-2: 8px; --space-3: 12px; --space-4: 16px; --space-5: 24px; --space-6: 40px; --space-7: 64px;
  --radius-sm: 6px; --radius-md: 12px; --radius-pill: 999px;
  --measure: 1200px;
  --gutter-l: max(16px, env(safe-area-inset-left, 0px));
  --gutter-r: max(16px, env(safe-area-inset-right, 0px));
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--surface); color: var(--ink);
  font: 400 16px/26px var(--font-sans); -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--accent-text); }
a:hover { color: var(--ink); }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }
h1, h2, h3 { font-family: var(--font-display); margin: 0; text-wrap: balance; }
p { margin: 0; }

/* ---------- layout ---------- */
.wrap { max-width: calc(var(--measure) + 48px); margin: 0 auto; padding-left: var(--gutter-l); padding-right: var(--gutter-r); }
@media (min-width: 720px) { .wrap { --gutter-l: max(24px, env(safe-area-inset-left, 0px)); --gutter-r: max(24px, env(safe-area-inset-right, 0px)); } }
.section { padding-block: clamp(64px, 9vw, 104px); }
.band-raised { background: var(--surface-raised); border-block: 1px solid var(--line); }
.band-deep { background: var(--surface-deep); border-top: 1px solid var(--line); }

/* ---------- type ---------- */
.label { font: 500 12px/16px var(--font-sans); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-muted); }
.label--accent { color: var(--accent-text); }
.display { font-weight: 700; font-size: clamp(44px, 7vw, 92px); line-height: .95; letter-spacing: -0.035em; }
.h1 { font-weight: 700; font-size: clamp(34px, 4.4vw, 52px); line-height: 1.04; letter-spacing: -0.025em; }
.h2 { font-weight: 600; font-size: clamp(24px, 2.6vw, 30px); line-height: 1.2; letter-spacing: -0.01em; }
.h3 { font-weight: 600; font-size: 20px; line-height: 26px; }
.lead { font-size: clamp(17px, 1.6vw, 19px); line-height: 1.6; color: var(--ink-muted); max-width: 54ch; }
.muted { color: var(--ink-muted); }
.hand { font-family: var(--font-hand); font-weight: 500; font-size: 28px; line-height: 1; color: var(--accent-text); }
.tilt { display: inline-block; justify-self: start; transform: rotate(-4deg); }
mark.hl { background: var(--accent); color: var(--on-accent); padding: 0 .16em; box-decoration-break: clone; -webkit-box-decoration-break: clone; }
.ph { color: var(--ink-muted); background: repeating-linear-gradient(90deg, var(--line) 0 6px, transparent 6px 10px) bottom / 100% 1px no-repeat; }

.section-head { position: relative; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: var(--space-4) var(--space-6); margin-bottom: var(--space-6); }
.section-head > div:first-of-type { display: grid; gap: var(--space-3); min-width: 0; flex: 1 1 420px; align-self: flex-start; }
/* headings get their own row and stay on one line, sized down to fit; they wrap again on phones */
.section-head > .h1, .do-head > .h1 { flex: 1 1 100%; grid-column: 1 / -1; white-space: nowrap; font-size: min(clamp(34px, 4.4vw, 52px), calc((100vw - 48px) / 18.5)); }
@media (max-width: 720px) { .section-head > .h1, .do-head > .h1 { white-space: normal; font-size: clamp(34px, 4.4vw, 52px); } }
.section-head > p { max-width: 42ch; font-size: 15px; line-height: 24px; color: var(--ink-muted); flex: 0 1 auto; }

/* ---------- buttons, tags ---------- */
.btn { display: inline-flex; align-items: center; gap: var(--space-2); font: 600 15px/20px var(--font-sans); padding: var(--space-3) 20px; border-radius: var(--radius-pill); border: 1.5px solid transparent; cursor: pointer; text-decoration: none; }
/* every CTA shares one feel: lift with a hard offset shadow on hover, press flat on click */
.btn { transition: background .15s, color .15s, border-color .15s, translate .15s, box-shadow .15s; }
.btn:hover { translate: -2px -2px; }
.btn:active { translate: 1px 1px; box-shadow: none; }
.btn--primary { background: var(--accent); color: var(--on-accent); }
.btn--primary:hover { background: var(--accent); color: var(--on-accent); box-shadow: 4px 4px 0 0 var(--off-white); }
.btn--secondary { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn--secondary:hover { background: var(--surface-raised); color: var(--ink); box-shadow: 4px 4px 0 0 var(--accent); }
.btn .icon { width: 18px; height: 18px; transition: transform .15s; }
.btn:hover .icon { transform: translateX(3px); }
/* round "in" badge for LinkedIn buttons */
.btn--badge { padding: 7px 20px 7px 7px; }
.btn__in { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; font: 700 14px/1 var(--font-sans); letter-spacing: -0.02em; flex: none; }
.btn--primary .btn__in { background: var(--charcoal); color: var(--lime); }
.btn--secondary .btn__in { background: var(--lime); color: var(--charcoal); }
@media (prefers-reduced-motion: reduce) { .btn:hover, .btn:active, .pill__cta:hover, .pill__cta:active { translate: none; } }
.link { font-weight: 600; text-decoration: none; color: var(--accent-text); display: inline-flex; gap: 6px; align-items: center; }
.link .arr { transition: transform .15s; }
.link:hover .arr, a:hover .link .arr { transform: translateX(4px); }
.tags { display: flex; flex-wrap: wrap; gap: var(--space-2); margin: 0; padding: 0; list-style: none; }
.tag { font: 500 13px/18px var(--font-sans); padding: 5px 13px; border: 1px solid var(--accent-text); border-radius: var(--radius-pill); color: var(--ink); }

.icon { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* ---------- nav ---------- */
.site-header { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 10; background: color-mix(in srgb, var(--surface) 88%, transparent); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.nav { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-3) var(--space-5); padding-block: 16px; }
.wordmark { font: 700 24px/1 var(--font-display); letter-spacing: -0.035em; color: var(--ink); text-decoration: none; }
.wordmark span { color: var(--accent-text); }
.nav__links { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2) clamp(14px, 2.4vw, 28px); font-size: 15px; font-weight: 500; }
.nav__links a:not(.btn) { color: var(--ink); text-decoration: none; background: linear-gradient(var(--accent-text), var(--accent-text)) left bottom / 0 1.5px no-repeat; transition: background-size .2s; padding-bottom: 2px; }
.nav__links a:not(.btn):hover, .nav__links a.is-current { background-size: 100% 1.5px; }
.nav__links a.is-current { color: var(--accent-text); }
.nav__links .btn { padding: 8px 16px; }
.nav__links .btn.is-current { background: var(--accent); color: var(--on-accent); border-color: var(--accent); }
.nav__hint { display: none; }

/* burger: the two uneven bars from the mock screen's nav, on a lime sticker. Opens into a hand-drawn X. */
.burger { display: none; align-items: center; gap: 8px; padding: 0; border: 0; background: none; color: var(--ink); cursor: pointer; }
.burger__word { font: 500 22px/1 var(--font-hand); color: var(--accent-text); rotate: -6deg; transition: opacity .2s, translate .2s; }
.burger__bars { position: relative; width: 44px; height: 44px; border-radius: 50%; background: var(--lime); border: 2px solid var(--charcoal); box-shadow: 3px 3px 0 0 var(--off-white); transition: box-shadow .15s, translate .15s, rotate .35s cubic-bezier(.3,1.6,.5,1); }
.burger__bars i { position: absolute; right: 10px; height: 3px; border-radius: 3px; background: var(--charcoal); transition: width .25s, top .25s, rotate .3s cubic-bezier(.3,1.6,.5,1), opacity .2s; }
.burger__bars i:nth-child(1) { top: 13px; width: 20px; rotate: -3deg; }
.burger__bars i:nth-child(2) { top: 19.5px; width: 13px; rotate: 2deg; }
.burger__bars i:nth-child(3) { top: 26px; width: 17px; rotate: -2deg; }
.burger:hover .burger__bars i { width: 20px; }
.burger:active .burger__bars { translate: 2px 2px; box-shadow: 1px 1px 0 0 var(--off-white); }
.burger[aria-expanded="true"] .burger__bars { rotate: 90deg; }
.burger[aria-expanded="true"] .burger__word { opacity: 0; translate: 6px 0; }
.burger[aria-expanded="true"] .burger__bars i { width: 22px; right: 9px; top: 19.5px; }
.burger[aria-expanded="true"] .burger__bars i:nth-child(1) { rotate: 45deg; }
.burger[aria-expanded="true"] .burger__bars i:nth-child(2) { opacity: 0; width: 0; }
.burger[aria-expanded="true"] .burger__bars i:nth-child(3) { rotate: -42deg; }

/* phones and small tablets: links fold into a drop-down sheet under the header */
@media (max-width: 640px) {
  .nav { flex-wrap: nowrap; padding-block: 10px; }
  .burger { display: inline-flex; }
  .nav__links { position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: flex-start; flex-wrap: nowrap; gap: 18px; padding: 20px var(--gutter-r) 28px var(--gutter-l); background: var(--surface-raised); border-bottom: 1px solid var(--line); box-shadow: 0 18px 32px rgba(8,10,11,.45); visibility: hidden; opacity: 0; translate: 0 -12px; transition: opacity .2s, translate .25s, visibility 0s .25s; }
  .nav.is-open .nav__links { visibility: visible; opacity: 1; translate: 0 0; transition: opacity .2s, translate .3s cubic-bezier(.3,1.6,.5,1), visibility 0s; }
  .nav__hint { display: block; font-size: 24px; rotate: -3deg; }
  .nav__links a:not(.btn) { font: 700 34px/1.1 var(--font-display); letter-spacing: -0.025em; background-size: 0 3px; }
  .nav__links a:not(.btn):hover, .nav__links a.is-current { background-size: 100% 3px; }
  .nav__links .btn { padding: 12px 22px; font-size: 16px; margin-top: 6px; }
}
@media (max-width: 640px) and (prefers-reduced-motion: reduce) { .nav__links, .nav.is-open .nav__links { translate: none; } }

/* ---------- hero ---------- */
.hero { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(40px, 6vw, 80px); align-items: center; padding-block: clamp(48px, 8vw, 96px) clamp(56px, 8vw, 88px); }
.hero__text { display: grid; gap: 28px; min-width: 0; }
.hero__text .display { max-width: 11ch; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 14px; }
.hero__photo { position: relative; justify-self: center; width: min(400px, 100%); display: grid; justify-items: center; padding-top: 64px; }
.hero__note { position: absolute; left: -18px; top: -30px; display: grid; justify-items: start; font-size: 32px; transform: rotate(-7deg); z-index: 1; }
.hero__note svg { width: 70px; height: 46px; margin: 2px 0 0 60px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.hero__photo .hero__toon { position: relative; width: min(300px, 80%); height: auto; z-index: 2; transform-origin: 50% 100%; pointer-events: none; }
.hero__caption { position: absolute; right: -22px; bottom: -54px; font-size: 13px; line-height: 18px; color: var(--ink-muted); }
@media (max-width: 720px) {
  .hero { grid-template-columns: 1fr; }
  .hero__photo { width: min(340px, calc(100% - 28px)); justify-self: start; margin-top: 30px; }
  .hero__note { left: auto; right: -8px; }
  .hero__photo .hero__toon { width: min(220px, 70%); }
}

/* ---------- process strip: five even steps on one dashed track ---------- */
.process { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); align-items: start; padding-block: 28px; }
.process::before { content: ""; position: absolute; left: 10%; right: 10%; top: calc(48px + 26px); border-top: 2px dashed var(--line); }
.process__step { position: relative; display: flex; flex-direction: column; align-items: center; gap: var(--space-2); text-align: center; }
.process__box { position: relative; width: 52px; height: 52px; border: 1.75px solid var(--ink); border-radius: var(--radius-sm); display: grid; place-items: center; background: var(--surface-raised); }
.process__label { font-family: var(--font-hand); font-size: clamp(22px, 2.4vw, 30px); line-height: 1; }
.process__arrow { display: none; }
@media (max-width: 560px) {
  .process { padding-block: 20px 24px; }
  .process::before { top: calc(48px + 21px); }
  .process__box { width: 42px; height: 42px; }
  .process__box .icon { width: 20px; height: 20px; }
}

/* ---------- work cards ---------- */
.case { display: flex; flex-direction: column; color: var(--ink); text-decoration: none; border: 1px solid var(--line); border-radius: var(--radius-md); overflow: hidden; background: var(--surface-raised); transition: border-color .15s; }
.case:hover { border-color: var(--accent-text); color: var(--ink); }
.case__cover { position: relative; aspect-ratio: 16 / 10; padding: var(--space-5); display: flex; align-items: flex-end; justify-content: space-between; gap: var(--space-4); overflow: hidden; }
.case__cover--forest { background: var(--forest); background-image: repeating-linear-gradient(to bottom, transparent 0 23px, rgba(184,245,66,.2) 23px 24px); color: var(--off-white); }
.case__cover--paper { background: var(--off-white); background-image: repeating-linear-gradient(to bottom, transparent 0 23px, rgba(24,61,43,.14) 23px 24px); color: var(--charcoal); }
.case__cover--lime { background: var(--lime); color: var(--charcoal); }
.case__cover--black { background: var(--black); color: var(--off-white); }
.case__num { position: absolute; top: var(--space-5); left: var(--space-5); font: 700 13px/1 var(--font-display); letter-spacing: .04em; }
.case__ph { font-size: 13px; line-height: 18px; opacity: .85; max-width: 26ch; }
/* little wireframe sketch, so empty covers read as "design work goes here" */
.sketch { width: 46%; max-width: 220px; aspect-ratio: 3 / 4; border: 1.75px solid currentColor; border-radius: 10px; padding: 10px; display: grid; gap: 7px; align-content: start; opacity: .9; transform: rotate(3deg) translateY(18%); }
.sketch i { display: block; height: 7px; border-radius: 4px; background: currentColor; opacity: .5; }
.sketch i:nth-child(1) { height: 34%; opacity: .18; border-radius: 6px; }
.sketch i:nth-child(3) { width: 70%; }
.sketch i:nth-child(5) { width: 45%; height: 20px; border-radius: 999px; opacity: .9; }
.case__cover--forest .sketch i:nth-child(5), .case__cover--black .sketch i:nth-child(5) { background: var(--lime); }
.case__body { padding: var(--space-5); display: grid; gap: var(--space-3); }
.case__meta { font: 500 11px/16px var(--font-sans); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-muted); }
.case__title { font: 600 24px/30px var(--font-display); letter-spacing: -0.01em; }
.case__summary { font-size: 15px; line-height: 24px; color: var(--ink-muted); }
.case .link { margin-top: var(--space-2); }

/* ---------- work deck: one project open, the rest folded into spines ---------- */
.deck { display: grid; gap: var(--space-5); }
.deck__track { list-style: none; margin: 0; padding: 0; position: relative; }
.deck__spine { display: none; }
.deck__controls { display: flex; align-items: center; gap: var(--space-4); max-width: 560px; width: 100%; justify-self: center; }
.deck__btn { flex: none; width: 48px; height: 48px; display: grid; place-items: center; border-radius: 50%; border: 1.5px solid var(--ink); background: transparent; color: var(--ink); cursor: pointer; transition: background .15s, color .15s, border-color .15s, opacity .15s; }
.deck__btn--prev .icon { rotate: 180deg; }
.deck__btn:hover:not(:disabled) { background: var(--lime); border-color: var(--lime); color: var(--charcoal); }
.deck__btn:disabled { opacity: .3; cursor: default; }
.deck__count { flex: none; font: 500 13px/1 var(--font-sans); letter-spacing: .12em; color: var(--ink-muted); min-width: 7ch; text-align: center; }
.deck__count b { color: var(--ink); font-weight: 600; }
.deck__range { flex: 1; min-width: 0; height: 28px; margin: 0; background: transparent; cursor: pointer; -webkit-appearance: none; appearance: none; --fill: 0%; }
.deck__range::-webkit-slider-runnable-track { height: 4px; border-radius: 4px; background: linear-gradient(to right, var(--accent-text) var(--fill), var(--line) var(--fill)); }
.deck__range::-moz-range-track { height: 4px; border-radius: 4px; background: linear-gradient(to right, var(--accent-text) var(--fill), var(--line) var(--fill)); }
.deck__range::-webkit-slider-thumb { -webkit-appearance: none; width: 26px; height: 26px; margin-top: -11px; border-radius: 50%; background: var(--lime); border: 2px solid var(--charcoal); box-shadow: 0 0 0 2px var(--lime); cursor: grab; }
.deck__range::-moz-range-thumb { width: 22px; height: 22px; border-radius: 50%; background: var(--lime); border: 2px solid var(--charcoal); box-shadow: 0 0 0 2px var(--lime); cursor: grab; }

/* desktop: an accordion of cards that slides open sideways */
@media (min-width: 900px) {
  .deck__track { display: flex; align-items: center; gap: 10px; height: clamp(440px, 38vw, 500px); container-type: inline-size; touch-action: pan-y; }
  .deck__card { --open: calc(100cqw - (var(--n) - 1) * 86px); position: relative; flex: none; width: 76px; height: calc(100% - var(--d, 0) * 26px); border-radius: var(--radius-md); overflow: hidden; }
  .deck__card.is-active { width: var(--open); height: 100%; }
  .deck__spine { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; gap: var(--space-4); padding: var(--space-4) 0 0; border: 1px solid var(--line); border-radius: inherit; cursor: pointer; overflow: hidden; z-index: 1; }
  .deck__no { font: 700 13px/1 var(--font-display); letter-spacing: .04em; }
  .deck__name { flex: 1; min-height: 0; writing-mode: vertical-rl; rotate: 180deg; font: 600 13px/1 var(--font-sans); letter-spacing: .14em; text-transform: uppercase; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .deck__toon { width: 46px; height: auto; margin-bottom: -10px; transform-origin: 50% 100%; transition: translate .3s cubic-bezier(.3,1.6,.5,1); }
  .deck__spine:hover .deck__toon, .deck__spine:focus-visible .deck__toon { translate: 0 -8px; }
  .deck__card.is-active .deck__spine { visibility: hidden; opacity: 0; }
  .deck__card:not(.is-active) .case { visibility: hidden; opacity: 0; }
  /* the open card keeps its full width while the slot grows, so it slides into view rather than squashing */
  .deck .case { position: absolute; inset: 0 auto 0 0; width: var(--open); flex-direction: row; }
  .deck .case__cover { flex: 1 1 56%; aspect-ratio: auto; padding: var(--space-6); }
  .deck .case__body { flex: 0 0 44%; align-content: center; padding: var(--space-6); gap: var(--space-4); }
  .deck .case__title { font-size: clamp(26px, 2.4vw, 32px); line-height: 1.15; }
}

/* phones and tablets: a swipeable carousel, next card peeking in */
@media (max-width: 899.98px) {
  .deck__track { display: flex; gap: var(--space-4); overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain; scrollbar-width: none;
    margin-left: calc(-1 * var(--gutter-l)); margin-right: calc(-1 * var(--gutter-r)); padding: 4px var(--gutter-r) 8px var(--gutter-l); scroll-padding-inline: var(--gutter-l); }
  .deck__track::-webkit-scrollbar { display: none; }
  .deck__card { flex: 0 0 min(86%, 460px); scroll-snap-align: start; display: flex; }
  .deck .case { width: 100%; }
  .deck .case__body { align-content: start; }
}

@media (prefers-reduced-motion: no-preference) {
  .deck__card { transition: width .6s cubic-bezier(.65,0,.25,1), height .6s cubic-bezier(.65,0,.25,1); }
  .deck__spine { transition: opacity .12s, visibility 0s .12s; }
  .deck__card:not(.is-active) .deck__spine { transition: opacity .3s .15s, visibility 0s; }
  .deck .case { transition: opacity .35s .2s, visibility 0s, border-color .15s; }
  .deck__card:not(.is-active) .case { transition: opacity .2s, visibility 0s .2s; }
}

/* work, coming soon: one open card in the deck's shape until the projects are ready */
.soon .case:hover { border-color: var(--line); }
.soon .case:hover .case__toon { translate: 0 8%; rotate: -4deg; }
@media (min-width: 900px) {
  .soon .case { flex-direction: row; min-height: clamp(440px, 38vw, 500px); }
  .soon .case__cover { flex: 1 1 56%; aspect-ratio: auto; padding: var(--space-6); }
  .soon .case__body { flex: 0 0 44%; align-content: center; padding: var(--space-6); gap: var(--space-4); }
  .soon .case__title { font-size: clamp(26px, 2.4vw, 32px); line-height: 1.15; }
}

/* ---------- about ---------- */
.about { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(40px, 6vw, 80px); align-items: start; }
@media (max-width: 720px) { .about { grid-template-columns: 1fr; } }
.about__copy { display: grid; gap: 20px; font-size: 17px; line-height: 28px; min-width: 0; }
.about__copy p { max-width: 62ch; }
.facts { margin: 12px 0 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 20px; border-top: 1px solid var(--line); padding-top: 20px; }
.facts div { display: grid; gap: 4px; }
.facts dt { font: 500 11px/14px var(--font-sans); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-muted); }
.facts dd { margin: 0; font-size: 15px; line-height: 22px; }
.now { margin-top: 12px; display: flex; gap: var(--space-4); align-items: center; padding: var(--space-4) var(--space-5); background: var(--surface-raised); border: 1px solid var(--line); border-radius: var(--radius-sm); }
.now__face { width: 56px; height: 56px; }
.now div { display: grid; gap: 2px; min-width: 0; font-size: 15px; line-height: 22px; }

/* ---------- photo band ---------- */

/* ---------- off-screen grid (post tiles) ---------- */
/* ---------- tools ---------- */
/* stickers on the desk: each one sits a little crooked and straightens up when you point at it */
.tools__group .tools__peek { justify-content: flex-start; margin-top: var(--space-5); }
.tools__group .tools__peek .hand { flex: 1 1 0; min-width: 0; max-width: 150px; text-align: right; line-height: 1.15; }
.tools__group .tools__peek .toon--portrait { height: 190px; margin-bottom: 0; rotate: 3deg; }
@media (max-width: 560px) { .tools__group .tools__peek .toon--portrait { height: 150px; } .tools__group .tools__peek .hand { max-width: 112px; } }
.tools { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--space-6) var(--space-5); }
@media (max-width: 1100px) { .tools { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .tools { grid-template-columns: 1fr; gap: var(--space-5); } }
.tools__group { display: grid; align-content: start; gap: var(--space-4); }
.tools__group .label { padding-bottom: var(--space-3); border-bottom: 1px solid var(--line); }
.tools__list { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-3); }
.tool { display: flex; align-items: center; gap: 14px; padding: 10px 14px 10px 10px; background: var(--surface-raised); border: 1.5px solid var(--line); border-radius: var(--radius-md); font-weight: 600; font-size: 15px; line-height: 20px; rotate: -1.2deg; transition: rotate .35s cubic-bezier(.3,1.6,.5,1), translate .35s cubic-bezier(.3,1.6,.5,1), border-color .15s, box-shadow .15s; }
.tool:nth-child(even) { rotate: 1.4deg; }
.tool:nth-child(3n) { rotate: -.6deg; }
.tool:hover { rotate: 0deg; translate: 0 -3px; border-color: var(--lime); box-shadow: 4px 4px 0 0 var(--lime); }
.tool__logo { display: grid; place-items: center; width: 44px; height: 44px; flex: none; border-radius: 10px; background: var(--off-white); border: 2px solid var(--charcoal); }
.tool__logo img { width: 28px; height: 28px; }
.tool:hover .tool__logo { animation: tool-hop .5s cubic-bezier(.3,1.6,.5,1); }
@keyframes tool-hop { 40% { translate: 0 -5px; rotate: -8deg; } 100% { translate: 0 0; rotate: 0deg; } }
@media (prefers-reduced-motion: reduce) { .tool, .tool:nth-child(n) { rotate: none; } .tool:hover { translate: none; } .tool:hover .tool__logo { animation: none; } }
.facts dd a { color: var(--ink); text-decoration-color: var(--accent-text); text-underline-offset: 3px; }
.facts dd a:hover { color: var(--accent-text); }

.grid9 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(4px, .8vw, 10px); }
@media (max-width: 520px) { .grid9 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .grid9 > :last-child { display: none; } }
.tile { position: relative; aspect-ratio: 1; overflow: hidden; margin: 0; }
.tile img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.tile:hover img { transform: scale(1.03); }
.tile figcaption { position: absolute; left: 12px; bottom: 10px; font-family: var(--font-hand); font-size: clamp(18px, 2.2vw, 26px); color: var(--lime); text-shadow: 0 1px 8px rgba(0,0,0,.5); }
.post { padding: clamp(12px, 2vw, 24px); display: flex; flex-direction: column; justify-content: space-between; }
.post__eyebrow { font: 500 clamp(8px, 1vw, 10px)/14px var(--font-sans); letter-spacing: .12em; text-transform: uppercase; }
.post__head { font-family: var(--font-display); font-weight: 700; letter-spacing: -0.02em; margin: 0; }
.post__foot { display: flex; justify-content: space-between; align-items: flex-end; font: 500 clamp(9px, 1vw, 11px)/15px var(--font-sans); }
.post--dark, a.post--dark:hover { background: var(--charcoal); color: var(--off-white); outline: 1px solid #26303a; outline-offset: -1px; }
.post--dark .post__head { font-size: clamp(20px, 3.4vw, 42px); line-height: .95; text-transform: uppercase; color: var(--lime); }
.post--light, a.post--light:hover { background: var(--off-white); color: var(--charcoal); }
.post--light .post__head { font-size: clamp(16px, 2.3vw, 28px); line-height: 1.05; font-weight: 600; }
.post--light mark { background: var(--lime); color: var(--charcoal); padding: 0 3px; }
.post--feature, a.post--feature:hover { background: var(--forest); color: var(--lime); justify-content: center; align-items: center; text-align: center; font-family: var(--font-hand); font-size: clamp(20px, 2.8vw, 34px); line-height: 1.05; background-image: repeating-linear-gradient(to bottom, transparent 0 23px, rgba(184,245,66,.14) 23px 24px); }
.post--accent, a.post--accent:hover { background: var(--lime); color: var(--charcoal); }
.post--accent .post__head { font-size: clamp(16px, 2.3vw, 28px); line-height: 1; text-transform: uppercase; }
.post .icon { width: 18px; height: 18px; }
a.post { text-decoration: none; }
a.post .post__foot .icon { transition: translate .2s; }
a.post:hover .post__foot .icon, a.post:focus-visible .post__foot .icon { translate: 4px 0; }

/* ---------- notes ---------- */
.notes { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: var(--space-5); }
.notes li { display: grid; }
.notes a { display: grid; grid-template-rows: auto auto 1fr auto; gap: var(--space-3); padding: var(--space-5); background: var(--surface-raised); border: 1px solid var(--line); border-radius: var(--radius-md); color: var(--ink); text-decoration: none; transition: border-color .15s, translate .25s cubic-bezier(.3,1.6,.5,1); }
.notes a:hover, .notes a:focus-visible { border-color: var(--accent-text); translate: 0 -4px; }
.notes .note-cat { font: 500 12px/16px var(--font-sans); letter-spacing: .12em; text-transform: uppercase; color: var(--accent-text); }
.notes .h3 { transition: color .15s; }
.notes a:hover .h3 { color: var(--accent-text); }
.notes .note-teaser { font-size: 15px; line-height: 24px; color: var(--ink-muted); }
.notes .note-more { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 600; color: var(--accent-text); margin-top: var(--space-2); }
.notes .note-more .icon { width: 16px; height: 16px; transition: translate .2s; }
.notes a:hover .note-more .icon { translate: 4px 0; }

/* ---------- contact ---------- */
.contact { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: clamp(40px, 6vw, 80px); align-items: end; }
@media (max-width: 720px) { .contact { grid-template-columns: 1fr; } }
.contact__text { display: grid; gap: 22px; min-width: 0; }
.contact .display { font-size: clamp(40px, 6vw, 76px); max-width: 13ch; }
.contact__links { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; margin-top: 6px; padding-top: 22px; border-top: 1px dashed var(--line); }
.contact__hint { font-size: 20px; color: var(--ink-muted); rotate: -3deg; }
.email-row { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-3); }
.email { font: 600 clamp(20px, 2.4vw, 26px)/1.2 var(--font-display); color: var(--accent-text); user-select: all; overflow-wrap: anywhere; }
.copy-btn { font: 500 13px/1 var(--font-sans); padding: 8px 14px; border-radius: var(--radius-pill); border: 1px solid var(--accent-text); background: transparent; color: var(--ink); cursor: pointer; }
.copy-btn:hover { background: var(--surface); }
.contact__photo { position: relative; max-width: 340px; }
.contact__photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.contact__photo .hand { position: absolute; left: -14px; top: -34px; transform: rotate(-6deg); }

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--line); }
.site-footer .wrap { padding-block: 28px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font: 500 12px/16px var(--font-sans); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-muted); }

/* ---------- case study ---------- */
.cs-title { display: grid; gap: 22px; padding-block: clamp(48px, 7vw, 80px) 48px; }
.cs-title .display { font-size: clamp(40px, 5.8vw, 76px); max-width: 16ch; }
.cs-cover { aspect-ratio: 16 / 8; max-width: 100%; background: var(--forest); background-image: repeating-linear-gradient(to bottom, transparent 0 23px, rgba(184,245,66,.2) 23px 24px); color: var(--off-white); display: flex; align-items: flex-end; justify-content: space-between; padding: clamp(16px, 3vw, 32px); gap: var(--space-5); overflow: hidden; }
.cs-cover .sketch { width: 26%; max-width: 240px; transform: rotate(-3deg) translateY(16%); }
.cs-layout { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); padding-block: clamp(64px, 8vw, 96px); }
.toc { position: sticky; top: calc(env(safe-area-inset-top, 0px) + 96px); align-self: start; display: grid; gap: 10px; font-size: 14px; }
.toc a { color: var(--ink-muted); text-decoration: none; display: flex; gap: 10px; }
.toc a span { color: var(--accent-text); font: 700 12px/20px var(--font-display); }
.toc a:hover, .toc a.is-active { color: var(--ink); }
@media (max-width: 900px) { .cs-layout { grid-template-columns: 1fr; } .toc { display: none; } }
.chapters { display: grid; gap: clamp(64px, 8vw, 96px); min-width: 0; }
.chapter { display: grid; gap: 20px; scroll-margin-top: 100px; }
.chapter__head { display: grid; gap: 6px; }
.chapter__num { font: 700 15px/1 var(--font-display); color: var(--accent-text); }
.chapter p { font-size: 17px; line-height: 28px; max-width: 64ch; }
.quote { margin: 8px 0 0; padding: 22px 26px; background: var(--surface-raised); border-left: 2px solid var(--accent-text); font: 600 22px/30px var(--font-display); }
.insights { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: 16px; }
.insight { border-top: 2px solid var(--accent-text); padding-top: 14px; display: grid; gap: 8px; align-content: start; }
.insight p { font-size: 15px; line-height: 24px; }
.figs { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 20px; }
.fig { margin: 0; display: grid; gap: 10px; }
.fig__box { aspect-ratio: 4 / 3; background: var(--surface-raised); border: 1px solid var(--line); display: grid; place-items: center; padding: 16px; text-align: center; font-size: 13px; color: var(--ink-muted); }
.fig__box--paper { background: var(--off-white); background-image: repeating-linear-gradient(to bottom, transparent 0 23px, rgba(24,61,43,.14) 23px 24px); color: var(--charcoal); border: 0; }
.fig__box--after { border: 2px solid var(--accent-text); }
.fig figcaption.hand { font-size: 24px; }
.outcome { background: var(--surface-raised); border: 1px solid var(--line); border-radius: var(--radius-md); padding: clamp(24px, 4vw, 48px); display: grid; gap: 32px; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: 28px; }
.stat { display: grid; gap: 6px; align-content: start; }
.stat b { font: 700 52px/1 var(--font-display); color: var(--accent-text); }
.stat span { font-size: 15px; line-height: 22px; }
.next { display: block; border-top: 1px solid var(--line); color: var(--ink); text-decoration: none; }
.next .wrap { padding-block: 56px; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 16px; }
.next:hover { color: var(--ink); background: var(--surface-raised); }


/* ---------- rubber-hose characters (the playful 20%) ---------- */
.toon { height: auto; pointer-events: none; user-select: none; }
.toon--desk { width: min(420px, 100%); justify-self: end; }
.do-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 420px); gap: var(--space-4) var(--space-6); align-items: end; margin-bottom: var(--space-6); }
.do-head__text { display: grid; gap: var(--space-3); align-self: start; }
@media (max-width: 720px) { .do-head { grid-template-columns: 1fr; } .toon--desk { justify-self: start; width: min(360px, 100%); } }
.off-side { position: relative; display: flex; align-items: flex-end; gap: var(--space-4); max-width: 46ch; font-size: 15px; line-height: 24px; color: var(--ink-muted); }
.toon--plant { width: 92px; flex: none; margin-bottom: -8px; }
.toon--laptop { width: 140px; margin-bottom: -12px; }
.toon--wave { width: min(260px, 60%); justify-self: center; align-self: end; margin-bottom: calc(-1 * clamp(64px, 9vw, 104px)); }
@media (max-width: 720px) { .toon--wave { justify-self: start; width: 180px; } }
.toon--wave:hover, .toon--wave { transform-origin: 50% 100%; }
@media (prefers-reduced-motion: no-preference) {
  .hero__photo .hero__toon { animation: toon-pop .9s cubic-bezier(.3,1.5,.5,1) .5s both, toon-idle 2.8s ease-in-out 1.6s infinite; }
  .hero__photo:hover .hero__toon { animation: toon-hop .7s ease-out, toon-idle 2.8s ease-in-out .7s infinite; }
  @keyframes toon-pop {
    0% { opacity: 0; transform: translate(-70px, 40px) rotate(-25deg) scale(.4); }
    55% { opacity: 1; transform: translate(0, -26px) rotate(6deg) scale(1.06, .94); }
    75% { transform: translate(0, 0) rotate(-2deg) scale(.94, 1.06); }
    100% { opacity: 1; transform: none; }
  }
  @keyframes toon-idle { 0%, 100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-6px) rotate(2deg); } }
  @keyframes toon-hop {
    0% { transform: scale(1.08, .9); }
    40% { transform: translateY(-34px) rotate(-6deg) scale(.95, 1.06); }
    80% { transform: translateY(0) scale(1.06, .94); }
    100% { transform: none; }
  }
  .toon--wave { animation: wave-bob 3.2s ease-in-out infinite; }
  @keyframes wave-bob { 0%, 100% { transform: rotate(0deg); } 50% { transform: rotate(-2.5deg); } }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

.learned { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: var(--space-6); align-items: end; }
.learned .toon { width: 110px; }
@media (max-width: 560px) { .learned { grid-template-columns: 1fr; } }

/* ---------- interactive layer (crency-inspired, brand palette only) ---------- */

/* wavy band tops: the band bulges up into the section above */
.wavy { position: relative; border-top: 0; }
.wavy::before {
  content: ""; position: absolute; left: 0; right: 0; top: -27px; height: 28px; background: inherit; pointer-events: none;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 240 28'%3E%3Cpath d='M0 28V16C40 16 40 4 80 4s40 12 80 12 40-12 80-12v24Z'/%3E%3C/svg%3E") 0 0 / 240px 28px repeat-x;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 240 28'%3E%3Cpath d='M0 28V16C40 16 40 4 80 4s40 12 80 12 40-12 80-12v24Z'/%3E%3C/svg%3E") 0 0 / 240px 28px repeat-x;
}

/* cursor tag: a little "you" label that trails the pointer */
.cursor { position: fixed; left: 0; top: 0; z-index: 100; pointer-events: none; font: 600 18px/1 var(--font-hand); padding: 4px 10px 5px; border-radius: var(--radius-pill); background: var(--lime); color: var(--charcoal); border: 1.5px solid var(--charcoal); white-space: nowrap; opacity: 0; transition: opacity .2s, scale .2s; }
.cursor.is-on { opacity: 1; }
.cursor.is-big { scale: 1.15; }
@media (hover: none) { .cursor { display: none; } }

/* hero headline letters stretch like rubber on hover */
.ch { display: inline-block; transform-origin: 50% 90%; }
.w { white-space: nowrap; }

/* statement: pinned while the stickers fly into the sentence */
.say { position: relative; }
.say__pin { min-height: 70vh; display: grid; align-items: center; padding-block: clamp(64px, 9vw, 120px); overflow: hidden; }
.say__text { font: 700 clamp(34px, 6.4vw, 88px)/1.08 var(--font-display); letter-spacing: -0.035em; max-width: 16ch; text-wrap: balance; }
.say__pin > .wrap { width: 100%; }
.say__hint { display: block; margin-top: 28px; font-size: 26px; transition: opacity .3s; }
.say.is-done .say__hint { opacity: 0; }
.say.is-live { height: 260vh; }
.say.is-live .say__pin { position: sticky; top: 0; height: 100vh; height: 100svh; min-height: 0; padding-top: 72px; }
@media (max-width: 560px) { .say.is-live { height: 200vh; } .say.is-live .say__pin { padding-top: 110px; } }
.say .wd { transition: opacity .25s; }
.slot { display: inline-block; width: 1.5em; height: .86em; vertical-align: -.06em; margin: 0 .04em; border-radius: .22em; overflow: hidden; border: 3px solid var(--charcoal); }
.slot img, .sticker img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 12%; }
.slot--lime, .sticker.slot--lime { background: var(--lime); }
.slot--paper, .sticker.slot--paper { background: var(--off-white); }
.slot--forest, .sticker.slot--forest { background: var(--forest); }
.say.is-live .slot { background: transparent; border: 2px dashed var(--line); }
.say.is-live .slot img { visibility: hidden; }
.sticker { position: absolute; left: 0; top: 0; border-radius: .22em; overflow: hidden; border: 3px solid var(--charcoal); box-shadow: 0 10px 0 -2px rgba(8,10,11,.35); will-change: transform; pointer-events: none; }
.sticker.is-home { box-shadow: none; }

/* cards lean toward the pointer */
.case { transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: border-color .15s, transform .35s cubic-bezier(.3,1.4,.5,1); }
.case.is-tilting { transition: border-color .15s, transform .08s linear; }
.case .sketch { translate: var(--px, 0) var(--py, 0); transition: translate .35s; }

/* any cartoon can be poked */
.toon, .hero__photo .hero__toon { pointer-events: auto; cursor: pointer; }
.drag-toon { cursor: grab; touch-action: none; }
.drag-toon.is-dragging { cursor: grabbing; }
.poke { position: fixed; z-index: 90; pointer-events: none; font: 600 26px/1 var(--font-hand); color: var(--accent-text); translate: -50% -50%; animation: poke-up .9s ease-out forwards; }
@keyframes poke-up { 0% { opacity: 0; transform: translateY(6px) scale(.6) rotate(-8deg); } 20% { opacity: 1; transform: translateY(-10px) scale(1.1) rotate(4deg); } 100% { opacity: 0; transform: translateY(-56px) scale(1) rotate(-4deg); } }

/* contact: pick what you need, cartoon me changes outfit */
.vibe__picks { display: flex; flex-wrap: wrap; gap: 10px; }
.chip { font: 600 14px/1 var(--font-sans); padding: 10px 16px; border-radius: var(--radius-pill); border: 1.5px solid var(--ink); background: transparent; color: var(--ink); cursor: pointer; transition: background .15s, color .15s, transform .2s cubic-bezier(.3,1.6,.5,1); }
.chip:hover { transform: translateY(-3px) rotate(-2deg); }
.chip[aria-pressed="true"] { background: var(--lime); color: var(--charcoal); border-color: var(--lime); }
.vibe__stage { position: relative; height: clamp(320px, 36vw, 440px); display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 10px; align-self: end; margin-bottom: calc(-1 * clamp(64px, 9vw, 104px)); }
.vibe__toon { flex: 0 1 auto; min-height: 0; max-height: 78%; width: auto; max-width: 100%; object-fit: contain; object-position: 50% 100%; transform-origin: 50% 100%; }
.vibe__bubble { position: relative; z-index: 1; align-self: center; translate: -30% 0; font: 600 24px/1.05 var(--font-hand); padding: 10px 16px 12px; max-width: 15ch; background: var(--off-white); color: var(--charcoal); border: 2px solid var(--charcoal); border-radius: 18px 18px 18px 4px; rotate: -4deg; }
@media (max-width: 720px) { .vibe__stage { align-items: flex-start; height: 320px; } .vibe__bubble { align-self: flex-start; translate: 40px 0; } }

/* floating pill nav, appears once you've left the hero */
.pill { position: fixed; z-index: 20; left: 50%; bottom: max(16px, env(safe-area-inset-bottom, 0px)); translate: -50% 140%; display: flex; align-items: center; gap: 12px; padding: 6px 6px 6px 6px; border-radius: var(--radius-pill); background: var(--charcoal); color: var(--off-white); border: 1px solid #26303a; box-shadow: 0 12px 32px rgba(8,10,11,.35); transition: translate .5s cubic-bezier(.3,1.4,.5,1); max-width: calc(100vw - 32px); }
.pill.is-shown { translate: -50% 0; }
.pill__face { width: 36px; height: 36px; border-radius: 50%; overflow: hidden; background: var(--lime); flex: none; }
.pill__face img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 4%; scale: 1.9; translate: 0 26%; }
.pill__where { font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; color: #9aa3ad; }
.pill__where b { color: var(--off-white); font-weight: 600; }
.pill__cta { font: 600 13px/1 var(--font-sans); padding: 11px 16px; border-radius: var(--radius-pill); background: var(--lime); color: var(--charcoal); text-decoration: none; white-space: nowrap; flex: none; }
.pill__cta { transition: translate .15s, box-shadow .15s; }
.pill__cta:hover { background: var(--lime); color: var(--charcoal); translate: -1px -1px; box-shadow: 3px 3px 0 0 var(--off-white); }
.pill__cta:active { translate: 1px 1px; box-shadow: none; }

@media (prefers-reduced-motion: no-preference) {
  .wavy::before { animation: wave-drift 9s linear infinite; }
  @keyframes wave-drift { to { -webkit-mask-position: 240px 0; mask-position: 240px 0; } }
  .ch.is-boing { animation: boing .7s cubic-bezier(.3,1.6,.5,1); }
  @keyframes boing { 0% { transform: none; } 25% { transform: scale(1.2, .75) translateY(4px); } 55% { transform: scale(.85, 1.25) translateY(-14px) rotate(-6deg); } 80% { transform: scale(1.06, .95); } 100% { transform: none; } }
  .toon.is-poked { animation: poke .55s cubic-bezier(.3,1.6,.5,1); }
  @keyframes poke { 0% { scale: 1; } 30% { scale: 1.1 .86; } 60% { scale: .94 1.08; rotate: -3deg; } 100% { scale: 1; rotate: 0deg; } }
  .vibe__toon { animation: vibe-idle 3.2s ease-in-out infinite; }
  @keyframes vibe-idle { 0%, 100% { rotate: 0deg; } 50% { rotate: -2deg; } }
  .vibe__bubble.is-new { animation: bubble-pop .5s cubic-bezier(.3,1.6,.5,1); }
  @keyframes bubble-pop { 0% { scale: .3; opacity: 0; } 100% { scale: 1; opacity: 1; } }
}

/* ---------- case study interactions ---------- */
/* cropped cartoon face in a lime circle, shared by the toc marker and compare handle */
.face { display: block; width: 32px; height: 32px; border-radius: 50%; overflow: hidden; background: var(--lime); border: 2px solid var(--charcoal); flex: none; }
.face img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 4%; scale: 1.9; translate: 0 26%; }

/* toc: little me slides to the chapter you're reading */
.toc { padding-left: 42px; }
.toc__toon { position: absolute; left: 0; top: 0; translate: 0 var(--y, -4px); transition: translate .5s cubic-bezier(.3,1.5,.5,1); }

/* the cover leans toward the pointer, like the work cards */
.cs-cover { transform: perspective(1200px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform .35s cubic-bezier(.3,1.4,.5,1); }
.cs-cover.is-tilting { transition: transform .08s linear; }
.cs-cover .sketch { translate: var(--px, 0) var(--py, 0); transition: translate .35s; }

/* research: cartoon me peeks in beside the chapter heading */
.chapter__toonhead { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: var(--space-4); }
.peek { display: flex; align-items: center; gap: 4px; }
.peek .hand { font-size: 22px; rotate: -6deg; }
.peek .toon { width: auto; height: 124px; margin-bottom: -20px; }

/* before / after slider */
.compare { position: relative; margin: 0; aspect-ratio: 16 / 9; display: grid; }
.compare__pane { grid-area: 1 / 1; aspect-ratio: auto; justify-items: start; padding-inline: 8%; }
.compare__pane--after { justify-items: end; clip-path: inset(0 0 0 var(--pos)); }
.compare__tag { position: absolute; top: 14px; left: 16px; }
.compare__tag--after { left: auto; right: 16px; }
.compare__handle { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 3px; translate: -50% 0; background: var(--lime); pointer-events: none; display: grid; place-items: center; }
.compare__handle .face { width: 44px; height: 44px; box-shadow: 0 6px 0 -2px rgba(8,10,11,.35); }
.compare__range { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; }
.compare:has(.compare__range:focus-visible) { outline: 2px solid var(--focus); outline-offset: 4px; }
.compare__hint { position: absolute; right: 0; bottom: -38px; font-size: 24px; }
.chapter:has(.compare) { padding-bottom: 24px; }

/* next project band */
.next.wavy { border-top: 0; }
.next .wrap { align-items: center; }
.next__toon { width: 92px; height: auto; margin-block: -40px -56px; margin-left: auto; pointer-events: none; transform-origin: 50% 100%; }

@media (prefers-reduced-motion: no-preference) {
  .next:hover .next__toon { animation: toon-hop .7s ease-out; }
  .compare__handle .face { animation: vibe-idle 2.4s ease-in-out infinite; }
}

/* ---------- the same playful layer, everywhere ---------- */

/* scroll-in: things rise into place as they reach you, siblings one after another */
@media (prefers-reduced-motion: no-preference) {
  .js-reveal .rv:not(.is-in) { opacity: 0; }
  .js-reveal .rv.is-in { animation: rise .7s cubic-bezier(.2,1.2,.4,1) calc(var(--i, 0) * 90ms) backwards; }
  @keyframes rise { from { opacity: 0; translate: 0 32px; } to { opacity: 1; translate: 0 0; } }
}

/* how I work: little me hops along the steps */
.process { position: relative; padding-top: 48px; }
@media (max-width: 560px) { .process { padding-top: 48px; } }
.process__face { position: absolute; left: 0; top: 0; translate: var(--x, -60px) var(--y, 0); transition: translate .55s cubic-bezier(.3,1.6,.5,1); z-index: 1; }
.process__star { display: block; width: 32px; height: 32px; }
.process__star svg { display: block; width: 100%; height: 100%; overflow: visible; }
.process__star path { fill: var(--lime); stroke: var(--charcoal); stroke-width: 6; stroke-linejoin: round; }
.process__box { transition: background .2s, color .2s, border-color .2s, rotate .3s cubic-bezier(.3,1.6,.5,1); }
.process__step { cursor: default; }
.process__step.is-on .process__box { background: var(--lime); color: var(--charcoal); border-color: var(--lime); rotate: -6deg; }
.process__step.is-on .process__label { color: var(--accent-text); }

/* work: a cartoon pops out of each cover */
.case__toon { position: absolute; right: 12%; bottom: 0; width: 22%; max-width: 110px; height: auto; z-index: 1; translate: 0 70%; rotate: 8deg; transform-origin: 50% 100%; transition: translate .45s cubic-bezier(.3,1.5,.5,1), rotate .45s cubic-bezier(.3,1.5,.5,1); pointer-events: none; }
.case:hover .case__toon, .case:focus-visible .case__toon { translate: 0 8%; rotate: -4deg; }
.section-head > .peek { align-self: flex-end; }
.section-head .peek .toon { height: 150px; margin-bottom: -8px; }

/* about: a "hello my name is" badge on a lanyard that swings when you brush past it */
.about__badge { position: relative; display: grid; justify-items: center; padding-top: 64px; max-width: 360px; width: 100%; justify-self: center; }
.badge__string { position: absolute; top: 0; left: 50%; width: 20px; height: 78px; translate: -50% 0; background: var(--lime); border: 2.5px solid var(--charcoal); border-top: 0; border-radius: 0 0 6px 6px; rotate: var(--swing, 0deg); transform-origin: 50% 0; }
.badge { position: relative; width: 100%; transform-style: preserve-3d; transform-origin: 50% -64px; rotate: var(--swing, 0deg); cursor: pointer; transition: transform .8s cubic-bezier(.3,1.3,.5,1); }
.badge.is-flipped { transform: rotateY(180deg); }
/* two sides of one card: the back is turned away until you flip it */
.badge__side { display: flex; flex-direction: column; background: var(--off-white); color: var(--charcoal); border: 3px solid var(--charcoal); border-radius: 20px; box-shadow: 8px 8px 0 0 var(--black); -webkit-backface-visibility: hidden; backface-visibility: hidden; }
.badge__side--back { position: absolute; inset: 0; transform: rotateY(180deg); }
.badge__side--back .badge__top--back { background: var(--forest); color: var(--lime); }
.badge__side--back .badge__art--back { flex: 1; align-items: center; background-color: var(--lime); background-image: repeating-linear-gradient(to bottom, transparent 0 23px, rgba(24,61,43,.16) 23px 24px); }
.badge__dogs { width: auto; height: 94%; max-width: 94%; object-fit: contain; }
.badge__pups { display: flex; justify-content: space-between; width: 100%; padding-inline: 8%; }
.badge__pup { font: 600 40px/1 var(--font-hand); }
.badge__clip { position: absolute; top: -14px; left: 50%; translate: -50% 0; width: 54px; height: 24px; border-radius: 8px; background: var(--charcoal); border: 2.5px solid var(--charcoal); box-shadow: inset 0 0 0 5px #3a4652; z-index: 1; transform: translateZ(2px); }
.badge__top { display: grid; justify-items: center; padding: 22px 16px 12px; background: var(--lime); border-radius: 17px 17px 0 0; border-bottom: 3px solid var(--charcoal); }
.badge__hello { font: 800 clamp(40px, 5vw, 52px)/.9 var(--font-display); letter-spacing: -0.04em; text-transform: uppercase; }
.badge__my { font: 600 13px/1 var(--font-sans); letter-spacing: .16em; text-transform: uppercase; margin-top: 6px; }
.badge__art { height: clamp(220px, 26vw, 280px); display: flex; justify-content: center; align-items: flex-end; overflow: hidden; background: var(--forest); background-image: repeating-linear-gradient(to bottom, transparent 0 23px, rgba(184,245,66,.18) 23px 24px); border-bottom: 3px solid var(--charcoal); }
.badge__art .about__toon { width: auto; height: 86%; margin-bottom: 6%; transform-origin: 50% 100%; }
.badge__foot { display: grid; justify-items: center; gap: 4px; padding: 12px 16px 18px; }
.badge__name { font: 600 54px/1 var(--font-hand); }
.badge__role { font: 500 12px/16px var(--font-sans); letter-spacing: .12em; text-transform: uppercase; color: #4a535c; }
.about__note { margin-top: 26px; font-size: 24px; rotate: -4deg; background: none; border: 0; padding: 4px 8px; cursor: pointer; color: var(--accent-text); transition: scale .25s cubic-bezier(.3,1.6,.5,1); }
.about__note:hover { scale: 1.08; }
/* Melon: small, and she head-bobs when you say hi */
.melon { display: flex; align-items: flex-end; gap: 6px; margin-top: 18px; }
.melon__note { font-size: 20px; line-height: 1.1; text-align: right; rotate: -5deg; margin-bottom: 26px; color: var(--ink-muted); white-space: nowrap; }
.melon__toon { width: 130px; height: auto; cursor: pointer; transform-origin: 30% 100%; }
.melon__toon:focus-visible { outline-offset: 6px; border-radius: 12px; }
@media (max-width: 860px) { .melon__toon { width: 110px; } .melon__note { font-size: 18px; } }
@media (prefers-reduced-motion: no-preference) {
  .melon__toon:hover, .melon__toon:focus-visible, .melon__toon.is-bobbing { animation: melon-bob .9s ease-in-out; }
  @keyframes melon-bob { 0%, 100% { translate: 0 0; rotate: 0deg; } 15%, 45%, 75% { translate: 0 -6px; rotate: -3deg; } 30%, 60%, 90% { translate: 0 0; rotate: 0deg; } }
}
.about__badge { perspective: 1400px; }
@media (max-width: 720px) { .about__badge { justify-self: center; max-width: 300px; } }


/* off-screen tiles and case study figures lean toward the pointer too */
.tile, .figs .fig__box { transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform .35s cubic-bezier(.3,1.4,.5,1); }
.tile.is-tilting, .figs .fig__box.is-tilting { transition: transform .08s linear; }


/* footer: a wave goodbye */
.site-footer .wrap { align-items: center; }
.footer__bye { position: relative; z-index: 1; display: inline-flex; align-items: flex-end; gap: 6px; text-transform: none; letter-spacing: 0; }
.footer__toon { width: 40px; margin-block: -84px -6px; transform-origin: 50% 100%; }
.footer__bye .hand { font-size: 22px; }
@media (max-width: 720px) {
  .site-footer .wrap { flex-direction: column; align-items: flex-start; }
  .footer__bye { order: -1; }
  .footer__toon { margin-block: 0 -6px; }
}

/* case study: drag the cartoon on the cover, wide peeks for the desk */
.cs-cover-wrap { position: relative; }
.cs-cover__toon { position: absolute; right: calc(var(--gutter-r) + 20px); bottom: -36px; width: clamp(64px, 8vw, 96px); z-index: 2; transform-origin: 50% 100%; }
.peek .toon--wide { width: 150px; height: auto; margin-bottom: -6px; }
@media (max-width: 560px) { .peek .toon--wide { width: 96px; } .peek .hand { font-size: 19px; } }

@media (prefers-reduced-motion: no-preference) {
  .cs-cover__toon { animation: toon-idle 2.8s ease-in-out infinite; }
  .footer__bye:hover .footer__toon:not(.is-poked), .chapter__toonhead:hover .peek .toon:not(.is-poked), .section-head:hover .peek .toon:not(.is-poked), .tools__peek:hover .toon:not(.is-poked) { animation: toon-hop .7s ease-out; }
  .about__toon { animation: wave-bob 3.2s ease-in-out infinite; }
  .process__face { animation: vibe-idle 2.4s ease-in-out infinite; }
}

/* ---------- what I do: the screen is only the top layer ---------- */
.layers { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
@media (max-width: 720px) { .layers { grid-template-columns: 1fr; } }
.layers__stage { display: grid; justify-items: center; gap: var(--space-5); min-width: 0; }
.stack { --gap: 0px; position: relative; width: min(250px, 58vw); aspect-ratio: 3 / 4; margin: calc(var(--gap-max, 64px) * 2.5 - 10px) 0 -30px; transform-style: preserve-3d; transform: rotateX(56deg) rotateZ(-36deg); }
.layer { position: absolute; inset: 0; border-radius: 16px; border: 3px solid var(--charcoal); box-shadow: 7px 7px 0 0 var(--charcoal); transform-style: preserve-3d; transform-origin: 50% 0; transform: translateZ(calc(var(--k) * var(--gap))); transition: transform .7s cubic-bezier(.3,1.25,.5,1), opacity .5s; cursor: pointer; }
.layer > svg { position: absolute; inset: 0; width: 100%; height: 100%; border-radius: 13px; }
.layer--research { background: #fff; background-image: repeating-linear-gradient(to bottom, transparent 0 23px, rgba(24,61,43,.12) 23px 24px); }
.layer--flow { background: var(--forest); background-image: repeating-linear-gradient(to bottom, transparent 0 23px, rgba(184,245,66,.14) 23px 24px); }
.layer--system { background: var(--black); border-color: #3a4652; }
.layer--screen { background: var(--off-white); }
/* the layers above the one you picked flip back like notebook pages */
.layer.is-peeled { opacity: .07; transform: translateZ(calc(var(--k) * var(--gap))) rotateX(calc(-96deg - var(--fi, 0) * 14deg)); pointer-events: none; }
.layer.is-active { box-shadow: 7px 7px 0 0 var(--charcoal), 0 0 0 5px var(--lime); }
/* a label that always faces you, whatever the stack is doing */
.layer__tag { position: absolute; left: 4%; top: 12%; transform-origin: 0 50%; transform: translateZ(28px) rotateZ(36deg) rotateX(-56deg) scale(0); font: 600 22px/1 var(--font-hand); white-space: nowrap; padding: 5px 12px 7px; border-radius: var(--radius-pill); background: var(--lime); color: var(--charcoal); border: 2px solid var(--charcoal); transition: transform .45s cubic-bezier(.3,1.6,.5,1); pointer-events: none; }
.layer.is-active .layer__tag, .layers.is-pretty .layer--screen .layer__tag { transform: translateZ(28px) rotateZ(36deg) rotateX(-56deg) scale(1); }
.layers__ctrl { display: grid; justify-items: center; gap: var(--space-2); text-align: center; position: relative; z-index: 1; }
.layers__note { font-size: 24px; rotate: -3deg; min-height: 1em; }
.pretty { display: inline-flex; align-items: center; gap: 10px; font: 600 14px/1 var(--font-sans); color: var(--ink); background: var(--surface); border: 1.5px solid var(--line); border-radius: var(--radius-pill); padding: 6px 16px 6px 6px; cursor: pointer; transition: border-color .15s; }
.pretty:hover { border-color: var(--ink); }
.pretty__track { position: relative; width: 42px; height: 24px; border-radius: var(--radius-pill); background: var(--line); transition: background .2s; }
.pretty__knob { position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: var(--ink); transition: translate .4s cubic-bezier(.3,1.6,.5,1), background .2s; }
.pretty[aria-checked="true"] .pretty__track { background: var(--lime); }
.pretty[aria-checked="true"] .pretty__knob { translate: 18px 0; background: var(--charcoal); }

.do-list { border-top: 1px solid var(--line); min-width: 0; }
.do-item { position: relative; border-bottom: 1px solid var(--line); }
.do-item__head { margin: 0; font: inherit; }
.do-item__btn { width: 100%; display: flex; align-items: center; gap: 14px; padding: 20px 0; background: none; border: 0; color: var(--ink); font: 600 clamp(19px, 2vw, 24px)/1.2 var(--font-display); letter-spacing: -0.01em; text-align: left; cursor: pointer; }
.do-item__no { font: 700 13px/1 var(--font-display); letter-spacing: .04em; color: var(--ink-muted); min-width: 2ch; }
.do-item__icon { width: 46px; height: 46px; flex: none; display: grid; place-items: center; border: 1.75px solid var(--ink); border-radius: var(--radius-sm); transition: background .2s, color .2s, border-color .2s, rotate .4s cubic-bezier(.3,1.6,.5,1), scale .4s cubic-bezier(.3,1.6,.5,1); }
.do-item__title { flex: 1; min-width: 0; transition: color .2s; }
.do-item__plus { position: relative; width: 30px; height: 30px; flex: none; border-radius: 50%; border: 1.5px solid var(--line); transition: rotate .4s cubic-bezier(.3,1.6,.5,1), background .2s, border-color .2s; }
.do-item__plus::before, .do-item__plus::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 2px; translate: -50% -50%; background: currentColor; border-radius: 2px; }
.do-item__plus::after { rotate: 90deg; transition: scale .3s; }
.do-item__btn:hover .do-item__icon { rotate: -8deg; scale: 1.08; }
.do-item.is-open .do-item__icon { background: var(--lime); color: var(--charcoal); border-color: var(--lime); rotate: -6deg; }
.do-item.is-open .do-item__title { color: var(--accent-text); }
.do-item.is-open .do-item__plus { rotate: 180deg; border-color: var(--accent-text); }
.do-item.is-open .do-item__plus::after { scale: 0 1; }
.do-item__body { display: grid; grid-template-rows: 1fr; transition: grid-template-rows .5s cubic-bezier(.3,1.1,.5,1), visibility 0s; }
.do-item__inner { min-height: 0; overflow: hidden; display: grid; gap: var(--space-4); padding-left: calc(2ch + 14px + 46px + 14px); }
.do-item__inner > :last-child { margin-bottom: 24px; }
.do-item__inner p { font-size: 16px; line-height: 26px; color: var(--ink-muted); max-width: 46ch; }
.layers.is-live .do-item:not(.is-open) .do-item__body { grid-template-rows: 0fr; visibility: hidden; transition: grid-template-rows .4s cubic-bezier(.5,0,.5,1), visibility 0s .4s; }
.do-item__timer { position: absolute; left: 0; bottom: -1px; height: 2px; width: 0; background: var(--accent-text); }
.do-item.is-timing .do-item__timer { animation: do-timer var(--cycle, 5s) linear forwards; }
@keyframes do-timer { to { width: 100%; } }
@media (max-width: 560px) { .do-item__inner { padding-left: 0; } .do-item__btn { gap: 10px; } .do-item__icon { width: 40px; height: 40px; } .layer__tag { font-size: 18px; } }

/* ---------- section transitions ---------- */
/* band edges are rubber: they stretch with how fast you scroll and spring back */
.wavy::before { transform-origin: 50% 100%; transform: scaleY(calc(1 + var(--wob, 0) * 1.1)); }
.wavy--both::after {
  content: ""; position: absolute; z-index: 1; left: 0; right: 0; top: calc(100% - 1px); height: 28px; background: inherit; pointer-events: none;
  transform-origin: 50% 0; transform: scaleY(calc(1 + var(--wob, 0) * 1.1));
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 240 28'%3E%3Cpath d='M0 0v12c40 0 40 12 80 12s40-12 80-12 40 12 80 12V0Z'/%3E%3C/svg%3E") 0 0 / 240px 28px repeat-x;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 240 28'%3E%3Cpath d='M0 0v12c40 0 40 12 80 12s40-12 80-12 40 12 80 12V0Z'/%3E%3C/svg%3E") 0 0 / 240px 28px repeat-x;
}
main { overflow-x: clip; }
main > section { position: relative; }
/* content in a section settles in with a little squash as the section arrives */
@media (prefers-reduced-motion: no-preference) {
  .wavy--both::after { animation: wave-drift-back 11s linear infinite; }
  @keyframes wave-drift-back { to { -webkit-mask-position: -240px 0; mask-position: -240px 0; } }
  .js-reveal .rv.is-in { animation-name: rise-squash; }
  @keyframes rise-squash { 0% { opacity: 0; translate: 0 40px; scale: 1 1.04; } 60% { opacity: 1; translate: 0 -6px; scale: 1 .98; } 100% { opacity: 1; translate: 0 0; scale: 1; } }
}
/* a hand-drawn line that draws itself between sections, with a rider on the pen tip */
.squiggle { position: absolute; left: var(--gutter-l); right: var(--gutter-r); top: clamp(4px, 1.6vw, 20px); height: 36px; max-width: var(--measure); margin-inline: auto; pointer-events: none; }
.squiggle__line { width: 100%; height: 100%; overflow: visible; }
.squiggle__line path { fill: none; stroke: var(--accent-text); stroke-width: 3px; stroke-linecap: round; vector-effect: non-scaling-stroke; stroke-dasharray: 1 1; stroke-dashoffset: var(--draw, 0); }
.squiggle .squiggle__rider { left: var(--rx, 100%); top: var(--ry, 50%); translate: -50% -60%; pointer-events: auto; }

/* ---------- rubber-hose shapes: they all bob to the same beat ---------- */
:root { --beat: 1.2s; }
.rh { position: absolute; z-index: 2; left: var(--x); top: var(--y); width: var(--s, 56px); aspect-ratio: 1; color: var(--charcoal); cursor: pointer; -webkit-tap-highlight-color: transparent; }
.rh svg { display: block; width: 100%; height: 100%; overflow: visible; transform-origin: 50% 100%; }
.rh svg * { vector-effect: none; }
.rh .rh-fill { fill: var(--f, var(--lime)); }
.rh .rh-ink { stroke: var(--charcoal); stroke-width: 4; stroke-linejoin: round; stroke-linecap: round; }
.rh .rh-eye { transform-box: fill-box; transform-origin: center; }
@media (max-width: 720px) { .rh--sm-hide { display: none; } .rh { width: calc(var(--s, 56px) * .75); left: var(--xs, var(--x)); top: var(--ys, var(--y)); } }
@media (prefers-reduced-motion: no-preference) {
  .rh[data-rh="ball"] svg { animation: rh-bounce var(--beat) infinite; }
  .rh[data-rh="star"] svg { animation: rh-twinkle var(--beat) ease-in-out infinite alternate; transform-origin: 50% 50%; }
  .rh[data-rh="heart"] svg { animation: rh-beat var(--beat) infinite; transform-origin: 50% 60%; }
  .rh[data-rh="cloud"] svg { animation: rh-drift calc(var(--beat) * 2) ease-in-out infinite alternate; }
  .rh[data-rh="flower"] svg { animation: rh-sway calc(var(--beat) * 2) ease-in-out infinite alternate; transform-origin: 50% 96%; }
  .rh[data-rh="worm"] svg { animation: rh-wiggle var(--beat) ease-in-out infinite alternate; transform-origin: 50% 70%; }
  .rh[data-rh="spark"] svg { animation: rh-zing var(--beat) infinite; transform-origin: 20% 80%; }
  .rh .rh-eye { animation: rh-blink 5.2s infinite; }
  .rh.is-boing { animation: rh-boing .6s cubic-bezier(.3,1.6,.5,1); }
  @keyframes rh-bounce {
    0% { transform: translateY(0) scale(1.18, .8); animation-timing-function: cubic-bezier(.2,.7,.4,1); }
    12% { transform: translateY(-6%) scale(.9, 1.12); animation-timing-function: cubic-bezier(.2,.7,.4,1); }
    50% { transform: translateY(-42%) scale(.98, 1.02); animation-timing-function: cubic-bezier(.6,0,.8,.3); }
    88% { transform: translateY(-4%) scale(.9, 1.12); }
    100% { transform: translateY(0) scale(1.18, .8); }
  }
  @keyframes rh-twinkle { from { transform: scale(.78) rotate(-14deg); } to { transform: scale(1.08) rotate(14deg); } }
  @keyframes rh-beat { 0%, 50%, 100% { transform: scale(1); } 12% { transform: scale(1.16, 1.08); } 26% { transform: scale(.94, 1.04); } 62% { transform: scale(1.1, 1.04); } }
  @keyframes rh-drift { from { transform: translateX(-10%) scale(1.04, .96); } to { transform: translateX(10%) scale(.96, 1.04); } }
  @keyframes rh-sway { from { transform: rotate(-10deg) skewX(4deg); } to { transform: rotate(10deg) skewX(-4deg); } }
  @keyframes rh-wiggle { from { transform: skewX(-12deg) scaleX(1.06); } to { transform: skewX(12deg) scaleX(.94); } }
  @keyframes rh-zing { 0%, 100% { transform: scale(1); opacity: 1; } 40% { transform: scale(.6); opacity: .4; } 55% { transform: scale(1.15); opacity: 1; } }
  @keyframes rh-blink { 0%, 90%, 100% { transform: scaleY(1); } 94% { transform: scaleY(.1); } }
  @keyframes rh-boing { 0% { scale: 1; } 25% { scale: 1.35 .7; } 55% { scale: .8 1.3; } 80% { scale: 1.08 .94; } 100% { scale: 1; } }
}

/* what I do on phones and tablets: the stack is the illustration, kept compact and fully on screen */
@media (max-width: 899.98px) {
  .layers { gap: var(--space-5); }
  .stack { width: min(230px, 52vw); }
  .layer.is-peeled { opacity: 0; }
  .layers__stage { gap: var(--space-4); }
  .do-head { margin-bottom: var(--space-4); }
}
@media (max-width: 560px) {
  .do-head .toon--desk { display: none; }
  .layers__note { font-size: 21px; }
}

/* ---------- post pages (the "same energy" tiles, opened up) ---------- */
.post-page { padding-block: clamp(40px, 6vw, 72px) clamp(64px, 8vw, 96px); display: grid; gap: clamp(32px, 5vw, 56px); }
.post-intro { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 340px); gap: clamp(24px, 5vw, 64px); align-items: end; }
.post-intro__text { display: grid; gap: 18px; align-content: start; }
.post-intro .tile { border-radius: var(--radius-md); }
.post-intro .post--dark .post__head { font-size: clamp(30px, 4vw, 44px); }
.post-intro .post--light .post__head, .post-intro .post--accent .post__head { font-size: clamp(24px, 3vw, 32px); }
.post-intro .post--feature { font-size: clamp(30px, 4vw, 42px); }
.post-intro .post__eyebrow { font-size: 11px; }
.post-intro .post__foot { font-size: 12px; }
@media (max-width: 760px) { .post-intro { grid-template-columns: 1fr; } .post-intro .tile { max-width: 300px; } }
.post-body { display: grid; gap: 22px; max-width: 64ch; }
.post-body p { font-size: 17px; line-height: 28px; }
.post-body h2 { margin-top: 12px; }
.post-list { margin: 0; padding: 0; list-style: none; display: grid; gap: 14px; counter-reset: pl; }
.post-list li { counter-increment: pl; display: grid; grid-template-columns: 36px minmax(0, 1fr); gap: 12px; font-size: 17px; line-height: 28px; }
.post-list li::before { content: counter(pl, decimal-leading-zero); font: 700 15px/28px var(--font-display); color: var(--accent-text); }
.post-list b { color: var(--ink); }
.post-video { margin: 8px 0; display: grid; gap: 10px; }
.post-video__frame { position: relative; aspect-ratio: 16 / 9; border: 2px solid var(--charcoal); border-radius: var(--radius-md); overflow: hidden; background: var(--surface-deep); box-shadow: 6px 6px 0 0 var(--lime); }
.post-video__frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.post-video figcaption { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; font-size: 14px; color: var(--ink-muted); }
.post-video figcaption .hand { font-size: 22px; }
.post-more { border-top: 1px solid var(--line); padding-top: clamp(32px, 5vw, 48px); display: grid; gap: 20px; }
.post-more__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr)); gap: 10px; max-width: 760px; }
.post-more .tile { border-radius: var(--radius-sm); }
.post-more .post--dark .post__head { font-size: clamp(18px, 2vw, 24px); }
.post-more .post--light .post__head, .post-more .post--accent .post__head { font-size: clamp(15px, 1.6vw, 19px); }
.post-more .post--feature { font-size: clamp(20px, 2.2vw, 26px); }
